Module: init
Table of contents
Functions
- init
- initWithEKC
- initWithGnosis
- initWithKms
- initWithMetamask
- initWithPrivateKeySigner
- initWithWalletConnect
Functions
init
▸ init(signerService
): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Initializes messaging service and creates initializer of cache client
Parameters
Name | Type | Description |
---|---|---|
signerService |
SignerService |
initialized instance of signer service |
Returns
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
initWithEKC
▸ initWithEKC(proxyUrl?
): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Parameters
Name | Type | Default value |
---|---|---|
proxyUrl |
string |
defaultAzureProxyUrl |
Returns
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
initWithGnosis
▸ initWithGnosis(safeAppSdk
): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Parameters
Name | Type |
---|---|
safeAppSdk |
SafeAppsSDK |
Returns
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
initWithKms
▸ initWithKms(«destructured»?
): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Parameters
Name | Type |
---|---|
«destructured» |
Object |
› bridge |
undefined | string |
› kmsServerUrl |
undefined | string |
Returns
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
initWithMetamask
▸ initWithMetamask(): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Returns
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
initWithPrivateKeySigner
▸ initWithPrivateKeySigner(privateKey
, rpcUrl
): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Parameters
Name | Type |
---|---|
privateKey |
string |
rpcUrl |
string |
Returns
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
initWithWalletConnect
▸ initWithWalletConnect(bridge?
): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Parameters
Name | Type | Default value |
---|---|---|
bridge |
string |
defaultBridgeUrl |
Returns
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsConfig
: IpfsConfig
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; verifiableCredentialsService
: VerifiableCredentialsServiceBase
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>