Class: SteerProtocolSDK
Steer Protocol SDK and Node Operator
Constructors
constructor
• new SteerProtocolSDK(ipfsConfig
, identityConfig
, networkConfig
, registryConfig
, userInterfaceConfig?
)
Creates an instance of the Steer Protocol SDK
Parameters
Name | Type | Description |
---|---|---|
ipfsConfig | Options | Options Config for IPFS client |
identityConfig | IdentityManagerConfig | Identity manager that provides the current identity of the user of the protocol |
networkConfig | NetworkConfig | Network config for ethers |
registryConfig | RegistryConfig | Network config for Steer Protocol, the global registry address is provided through this config. |
userInterfaceConfig | UserInterfaceConfig | Network config for Steer Protocol, the global registry address is provided through this config. |
Defined in
Properties
connectionManager
• connectionManager: ConnectionManager
Defined in
connectionStatistics
• connectionStatistics: ConnectionStatistics
Defined in
events
• events: SteerEventEmitter
Defined in
identityManager
• identityManager: IdentityManager
Defined in
ipfs
• ipfs: IPFS
Defined in
ipfsConfig
• ipfsConfig: Options
Defined in
logger
• logger: Logger
Defined in
networkConfig
• networkConfig: NetworkConfig
Defined in
orbit
• orbit: Orbit
Defined in
registry
• registry: Registry
Defined in
registryConfig
• registryConfig: RegistryConfig
Defined in
userInterface
• Optional
userInterface: UserInterface
Defined in
userInterfaceConfig
• userInterfaceConfig: UserInterfaceConfig
Defined in
wallet
• wallet: Wallet
Defined in
Methods
handleForcedExit
▸ Private
handleForcedExit(): void
Provides a process.on hook for SIGINT which will ask the IPFS and Orbit instance to close their connections
Returns
void
Defined in
initialize
▸ initialize(): Promise
<void
>
Initialize performs all async required setup steps. This includes required library instances as well as the initial connection to the registry address. The node IPFS, orbit, identity, and peer connections are performed within this call. Once a proper connection to the network is established, initialize will resolve it's promise.
Returns
Promise
<void
>
Defined in
start
▸ start(): Promise
<void
>
Start sequence for the node
Returns
Promise
<void
>
Defined in
stop
▸ stop(exit?
): Promise
<void
>
Shutdown sequence for the node
Parameters
Name | Type | Default value |
---|---|---|
exit | boolean | true |
Returns
Promise
<void
>