DeveloperProvider

Interface
Provides the core functionality required by the DeveloperClient.
export interface DeveloperProvider { 
  readonly network: NetworkType; 
  readonly runConsensusNow: () => Promise<void>; 
  readonly updateSettings: (options: Partial<PrivateNetworkSettings>) => Promise<void>; 
  readonly getSettings: () => Promise<PrivateNetworkSettings>; 
  readonly fastForwardOffset: (seconds: number) => Promise<void>; 
  readonly fastForwardToTime: (seconds: number) => Promise<void>; 
  readonly reset: () => Promise<void>; 
  readonly getNEOTrackerURL: () => Promise<string | undefined>; 
  readonly resetProject: () => Promise<void>; 
} 

Properties

network
Network the DeveloperProvider is acting on.

Methods

runConsensusNow

Trigger consensus to run immediately.
() => Promise<void> 

updateSettings

Update the network's settings.
(options: Partial<PrivateNetworkSettings>) => Promise<void> 

getSettings

() => Promise<PrivateNetworkSettings> 

fastForwardOffset

(seconds: number) => Promise<void> 

fastForwardToTime

(seconds: number) => Promise<void> 

reset

Reset the network to it's initial state, restarting from the genesis Block.
() => Promise<void> 

getNEOTrackerURL

Fetch the NEO Tracker URL for the project.
() => Promise<string | undefined> 

resetProject

Reset the project this network is associated with to it's initial state.
() => Promise<void> 
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE