- AssetHistoryEventType
- ClaimEventType
- ERROR_MESSAGES
- ExecutionEnvironment
- MessagingMethod
- NamespaceType
- Order
- ProviderEvent
- ProviderType
- RegistrationTypes
- SearchType
- StakeStatus
- AssetsService
- CacheClient
- ChangeOwnershipNotPossibleError
- ClaimsService
- DeletingNamespaceNotPossibleError
- DidRegistry
- DomainsService
- ENSOwnerNotValidAddressError
- ENSTypeNotSupportedError
- EkcSigner
- MalformedDIDError
- MessagingService
- MethodNotAvailableInNodeEnvError
- SignerService
- StakingFactoryService
- StakingPool
- StakingPoolService
- StakingService
- Asset
- AssetHistory
- AssetProfile
- AssetProfiles
- CacheServerClientOptions
- ChainConfig
- Claim
- ClaimData
- IApp
- ICacheClient
- IClaimIssuance
- IClaimRejection
- IClaimRequest
- IMessage
- IOrganization
- IPubKeyAndIdentityToken
- IRole
- MessagingConfig
- Profile
- AccountInfo
- AssetsFilter
- ChainId
- ClaimsFilter
- IssueClaim
- RejectClaim
- RequestClaim
- Service
- ServiceInitializer
- Stake
- IS_ETH_SIGNER
- NODE_FIELDS_KEY
- PUBLIC_KEY
- TEST_LOGIN_ENDPOINT
- VOLTA_CHAIN_ID
- agreement_type_hash
- defaultAzureProxyUrl
- defaultBridgeUrl
- defaultClaimExpiry
- defaultKmsServerUrl
- didPattern
- emptyAddress
- erc712_type_hash
- proof_type_hash
- typedMsgPrefix
- addSupportedDID
- cacheConfigs
- chainConfigs
- compareDID
- createWalletConnectProvider
- executionEnvironment
- fromGnosis
- fromKms
- fromMetaMask
- fromPrivateKey
- fromWalletConnectMetamask
- getMessagingConfig
- init
- initWithEKC
- initWithGnosis
- initWithKms
- initWithMetamask
- initWithPrivateKeySigner
- initWithWalletConnect
- isMetamaskExtensionPresent
- isValidDID
- readyToBeRegisteredOnchain
- setCacheConfig
- setChainConfig
- setMessagingConfig
- supportedDIDMethods
Ƭ AccountInfo: Object
Name | Type |
---|---|
account |
string |
chainId |
number |
chainName |
string |
Ƭ AssetsFilter: Object
Name | Type |
---|---|
order? |
Order |
skip? |
number |
take? |
number |
type? |
AssetHistoryEventType |
Ƭ ChainId: number
Ƭ ClaimsFilter: Object
Name | Type |
---|---|
isAccepted? |
boolean |
namespace? |
string |
Ƭ IssueClaim: Object
Name | Type |
---|---|
issuer |
string |
message |
IClaimIssuance |
Ƭ RejectClaim: Object
Name | Type |
---|---|
issuer |
string |
message |
IClaimRejection |
Ƭ RequestClaim: Object
Name | Type |
---|---|
message |
IClaimRequest |
requester |
string |
Ƭ Service: Object
Name | Type | Description |
---|---|---|
org |
string |
organization ENS name |
pool |
string |
pool address |
provider |
string |
provider address |
Ƭ ServiceInitializer: () => Promise
<void
>
▸ (): Promise
<void
>
Promise
<void
>
Ƭ Stake: Object
Name | Type |
---|---|
amount |
BigNumber |
depositEnd |
BigNumber |
depositStart |
BigNumber |
status |
StakeStatus |
• IS_ETH_SIGNER: "isEthSigner"
• NODE_FIELDS_KEY: "metadata"
• PUBLIC_KEY: "PublicKey"
• TEST_LOGIN_ENDPOINT: "/auth/status"
• VOLTA_CHAIN_ID: 73799
• agreement_type_hash: string
• defaultAzureProxyUrl: "https://azure-proxy-server.energyweb.org/api/v1"
• defaultBridgeUrl: "https://bridge.walletconnect.org"
• defaultClaimExpiry: number
• defaultKmsServerUrl: "https://km.aws.energyweb.org/connect/new"
• didPattern: "^(?:did:(?<method>[a-z0-9]+?):)((?<chain>[a-z0-9]+?):)?(?<id>0x[A-Fa-f0-9]{40})$"
• emptyAddress: "0x0000000000000000000000000000000000000000"
• erc712_type_hash: string
• proof_type_hash: string
• typedMsgPrefix: "1901"
▸ addSupportedDID(methodWithChain
, validator
): void
Name | Type |
---|---|
methodWithChain |
string |
validator |
(did : string ) => boolean |
void
▸ Const
cacheConfigs(): Object
Object
▸ Const
chainConfigs(): Object
Object
▸ compareDID(didA
, didB
): boolean
description
For verification which envolves legacy and chain-specific DID's
Name | Type |
---|---|
didA |
string |
didB |
string |
boolean
▸ Const
createWalletConnectProvider(bridge
, infuraId?
): WalletConnectProvider
Name | Type |
---|---|
bridge |
string |
infuraId? |
string |
WalletConnectProvider
▸ Const
executionEnvironment(): ExecutionEnvironment
ExecutionEnvironment
▸ Const
fromGnosis(safeAppSdk
): Promise
<SignerService
>
description
Intended for use in Volta Gnosis web interface(https://volta.gnosis-safe.io/).
Dapp should provide SafeAppSdk injected by Gnosis interface
Name | Type |
---|---|
safeAppSdk |
SafeAppsSDK |
Promise
<SignerService
>
▸ fromKms(bridge
, kmsServerUrl
, infuraId?
): Promise
<SignerService
>
Name | Type |
---|---|
bridge |
string |
kmsServerUrl |
string |
infuraId? |
string |
Promise
<SignerService
>
▸ Const
fromMetaMask(): Promise
<SignerService
>
Promise
<SignerService
>
▸ Const
fromPrivateKey(privateKey
, rpcUrl
): Promise
<SignerService
>
Name | Type |
---|---|
privateKey |
string |
rpcUrl |
string |
Promise
<SignerService
>
▸ Const
fromWalletConnectMetamask(bridge
, infuraId?
): Promise
<SignerService
>
Name | Type |
---|---|
bridge |
string |
infuraId? |
string |
Promise
<SignerService
>
▸ Const
getMessagingConfig(): Object
Object
▸ init(signerService
): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Name | Type |
---|---|
signerService |
SignerService |
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
▸ initWithEKC(proxyUrl?
): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Name | Type | Default value |
---|---|---|
proxyUrl |
string |
defaultAzureProxyUrl |
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
▸ initWithGnosis(safeAppSdk
): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Name | Type |
---|---|
safeAppSdk |
SafeAppsSDK |
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
▸ initWithKms(__namedParameters?
): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Name | Type |
---|---|
__namedParameters |
Object |
__namedParameters.bridge |
undefined | string |
__namedParameters.kmsServerUrl |
undefined | string |
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
▸ initWithMetamask(): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
▸ initWithPrivateKeySigner(privateKey
, rpcUrl
): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Name | Type |
---|---|
privateKey |
string |
rpcUrl |
string |
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
▸ initWithWalletConnect(bridge?
): Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
Name | Type | Default value |
---|---|---|
bridge |
string |
defaultBridgeUrl |
Promise
<{ connectToCacheServer
: () => Promise
<{ assetsService
: AssetsService
; cacheClient
: CacheClient
; connectToDidRegistry
: (ipfsStore?
: string
) => Promise
<{ claimsService
: ClaimsService
; didRegistry
: DidRegistry
}> ; domainsService
: DomainsService
; stakingPoolService
: null
| StakingFactoryService
; stakingService
: null
| StakingService
}> ; messagingService
: MessagingService
; signerService
: SignerService
}>
▸ Const
isMetamaskExtensionPresent(): Promise
<{ chainId
: undefined
| number
; isMetamaskPresent
: boolean
= !!provider }>
Promise
<{ chainId
: undefined
| number
; isMetamaskPresent
: boolean
= !!provider }>
▸ isValidDID(did
): boolean
Name | Type |
---|---|
did |
string |
boolean
▸ Const
readyToBeRegisteredOnchain(claim
): claim is Required<Pick<Claim, "subjectAgreement" | "onChainProof" | "acceptedBy">>
Name | Type |
---|---|
claim |
object |
claim is Required<Pick<Claim, "subjectAgreement" | "onChainProof" | "acceptedBy">>
▸ Const
setCacheConfig(chainId
, options
): void
Used to override existing cache server configuration or add a missing one
Configuration must be set before constructing IAM
Name | Type |
---|---|
chainId |
number |
options |
Partial <CacheServerClientOptions > |
void
▸ Const
setChainConfig(chainId
, config
): void
Used to override existing chain configuration or add a missing one
Configuration must be set before constructing IAM
Name | Type |
---|---|
chainId |
number |
config |
Partial <ChainConfig > |
void
▸ Const
setMessagingConfig(chainId
, options
): void
Used to override existing messaging configuration or add a missing one
Configuration must be set before constructing IAM
Name | Type |
---|---|
chainId |
number |
options |
Partial <MessagingConfig > |
void
▸ supportedDIDMethods(): string
[]
string
[]