- AssetHistoryEventType
- ENSNamespaceTypes
- ERROR_MESSAGES
- MessagingMethod
- Order
- RegistrationTypes
- StakeStatus
- TransactionSpeed
- WalletProvider
- CacheClientNotProvidedError
- CacheServerClient
- ChangeOwnershipNotPossibleError
- ControllableWalletConnect
- DeletingNamespaceNotPossibleError
- ENSRegistryNotInitializedError
- ENSResolverNotInitializedError
- ENSTypeNotSupportedError
- GnosisIam
- IAM
- IAMBase
- MethodNotAvailableInNodeEnvError
- NATSConnectionNotEstablishedError
- Owner
- StakingPool
- StakingPoolService
- WalletConnectService
- Asset
- AssetHistory
- AssetProfile
- AssetProfiles
- CacheServerClientOptions
- ChainConfig
- ChangeResolverParams
- Claim
- ClaimData
- IApp
- ICacheServerClient
- IClaimIssuance
- IClaimRejection
- IClaimRequest
- IMessage
- IOrganization
- IPubKeyAndIdentityToken
- IRole
- MessagingOptions
- Profile
- BASE_TRANSACTION_SPEED
- BigNumber
- JsonRpcProvider
- NATS_EXCHANGE_TOPIC
- NODE_FIELDS_KEY
- PUBLIC_KEY
- VOLTA_CHAIN_ID
- WALLET_PROVIDER
- abi1056
- agreement_type_hash
- arrayify
- bigNumberify
- computeAddress
- computePublicKey
- defaultAbiCoder
- defaultClaimExpiry
- emptyAddress
- erc712_type_hash
- getAddress
- hashMessage
- hexlify
- id
- keccak256
- owners
- proof_type_hash
- recoverPublicKey
- sha3
- solidityKeccak256
- typedMsgPrefix
- validators
- addSupportedDID
- canonizeSig
- changeResolver
- decodeLabelhash
- getPublicKeyAndIdentityToken
- isBrowser
- isEncodedLabelhash
- isValidDID
- labelhash
- namehash
- parseDID
- setCacheClientOptions
- setChainConfig
- setMessagingOptions
- supportedDIDMethods
Ƭ ConnectionOptions: { bridgeUrl?: undefined | string ; ewKeyManagerUrl?: undefined | string ; infuraId?: undefined | string ; ipfsUrl?: undefined | string ; privateKey?: undefined | string ; rpcUrl?: undefined | string }
Name | Type | Description |
---|---|---|
bridgeUrl? |
undefined | string | - |
ewKeyManagerUrl? |
undefined | string | - |
infuraId? |
undefined | string | - |
ipfsUrl? |
undefined | string | - |
privateKey? |
undefined | string | - |
rpcUrl? |
undefined | string | only required in node env |
Ƭ EncodedCall: { data: string ; to: string ; value?: undefined | string }
Name | Type |
---|---|
data |
string |
to |
string |
value? |
undefined | string |
Ƭ InitializeData: { connected: boolean ; did: string | undefined ; didDocument: IDIDDocument | null ; identityToken?: undefined | string ; realtimeExchangeConnected: boolean ; userClosedModal: boolean }
Name | Type |
---|---|
connected |
boolean |
did |
string | undefined |
didDocument |
IDIDDocument | null |
identityToken? |
undefined | string |
realtimeExchangeConnected |
boolean |
userClosedModal |
boolean |
Ƭ Service: { org: string ; pool: string ; provider: string }
Name | Type | Description |
---|---|---|
org |
string | organization ENS name |
pool |
string | pool address |
provider |
string | provider address |
Ƭ Stake: { amount: BigNumber ; depositEnd: BigNumber ; depositStart: BigNumber ; status: StakeStatus }
Name | Type |
---|---|
amount |
BigNumber |
depositEnd |
BigNumber |
depositStart |
BigNumber |
status |
StakeStatus |
Ƭ Transaction: { calls: EncodedCall[] ; from: string }
Name | Type |
---|---|
calls |
EncodedCall[] |
from |
string |
• Const
BASE_TRANSACTION_SPEED: 10 = 10
• BigNumber: BigNumber
• JsonRpcProvider: JsonRpcProvider
• Const
NATS_EXCHANGE_TOPIC: "claim.exchange" = "claim.exchange"
• Const
NODE_FIELDS_KEY: "metadata" = "metadata"
• Const
PUBLIC_KEY: "PublicKey" = "PublicKey"
• Const
VOLTA_CHAIN_ID: 73799 = 73799
• Const
WALLET_PROVIDER: "WalletProvider" = "WalletProvider"
• abi1056: ({ anonymous?: undefined ; constant: boolean ; inputs: { name: string ; type: string }[] ; name: string ; outputs: { name: string ; type: string }[] ; payable: boolean ; stateMutability: string ; type: string } | { anonymous: boolean ; constant?: undefined ; inputs: { indexed: boolean ; name: string ; type: string }[] ; name: string ; outputs?: undefined ; payable?: undefined ; stateMutability?: undefined ; type: string })[]
• Const
agreement_type_hash: string = utils.id("Agreement(address subject,bytes32 role,uint256 version)")
• arrayify: arrayify
• bigNumberify: bigNumberify
• computeAddress: computeAddress
• computePublicKey: computePublicKey
• defaultAbiCoder: AbiCoder
• Const
defaultClaimExpiry: number = Number.MAX_SAFE_INTEGER
• Const
emptyAddress: "0x0000000000000000000000000000000000000000" = "0x0000000000000000000000000000000000000000"
• Const
erc712_type_hash: string = utils.id("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)")
• getAddress: getAddress
• hashMessage: hashMessage
• hexlify: hexlify
• id: id
• keccak256: keccak256
• Const
owners: Record<string, string>
• Const
proof_type_hash: string = utils.id("Proof(address subject,bytes32 role,uint256 version,uint256 expiry,address issuer)")
• recoverPublicKey: recoverPublicKey
• Const
sha3: any = require("js-sha3").keccak_256
• solidityKeccak256: keccak256
• Const
typedMsgPrefix: "1901" = "1901"
• Const
validators: Map<Methods, (did: string) => boolean> = new Map<Methods, (did: string) => boolean>()
▸ addSupportedDID(method
: Methods, validator
: (did: string) => boolean): void
Name | Type |
---|---|
method |
Methods |
validator |
(did: string) => boolean |
Returns: void
▸ canonizeSig(sig
: string): string
Name | Type |
---|---|
sig |
string |
Returns: string
▸ changeResolver(__namedParameters
: { domainHierarchy: DomainHierarchy ; newResolverAddr: string ; privateKey: string ; registryAddr: string ; resolverAddr: string ; rootNode: string ; rpcUrl: string }): Promise<void>
description
- Updates resolver on all subnodes of parentNode
Name | Type |
---|---|
__namedParameters |
{ domainHierarchy: DomainHierarchy ; newResolverAddr: string ; privateKey: string ; registryAddr: string ; resolverAddr: string ; rootNode: string ; rpcUrl: string } |
Returns: Promise<void>
▸ decodeLabelhash(hash
: string): string
Name | Type |
---|---|
hash |
string |
Returns: string
▸ getPublicKeyAndIdentityToken(signer
: Signer): Promise<IPubKeyAndIdentityToken>
Name | Type |
---|---|
signer |
Signer |
Returns: Promise<IPubKeyAndIdentityToken>
▸ Const
isBrowser(): boolean
Returns: boolean
▸ isEncodedLabelhash(hash
: string): boolean
Name | Type |
---|---|
hash |
string |
Returns: boolean
▸ isValidDID(did
: string): boolean
Name | Type |
---|---|
did |
string |
Returns: boolean
▸ labelhash(unnormalizedLabelOrLabelhash
: string): string
Name | Type |
---|---|
unnormalizedLabelOrLabelhash |
string |
Returns: string
▸ namehash(inputName
: string): string
Name | Type |
---|---|
inputName |
string |
Returns: string
▸ parseDID(did
: string): string
Name | Type |
---|---|
did |
string |
Returns: string
▸ Const
setCacheClientOptions(chainId
: number, options
: Partial<CacheServerClientOptions>): 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> |
Returns: void
▸ Const
setChainConfig(chainId
: number, config
: Partial<ChainConfig>): 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> |
Returns: void
▸ Const
setMessagingOptions(chainId
: number, options
: Partial<MessagingOptions>): 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<MessagingOptions> |
Returns: void
▸ supportedDIDMethods(): Methods[]
Returns: Methods[]
▪ Const
cacheServerClientOptions: object
Name | Type | Value |
---|---|---|
[VOLTA_CHAIN_ID] |
object | { cacheServerSupportsAuth: true = true; url: string = "https://volta-identitycache.energyweb.org/" } |
▪ Const
chainConfigs: object
Set of parameters to configure connection to chain with id received from wallet.
If configuration for some chain is missing or should be reconfigured use setChainConfig
before class instantiation
Name | Type | Value |
---|---|---|
[VOLTA_CHAIN_ID] |
object | { assetManagerAddress: string = VOLTA_IDENTITY_MANAGER_ADDRESS; claimManagerAddress: string = VOLTA_CLAIM_MANAGER_ADDRESS; didContractAddress: string = VoltaAddress1056; domainNotifierAddress: string = VOLTA_DOMAIN_NOTIFER_ADDRESS; ensPublicResolverAddress: string = VOLTA_PUBLIC_RESOLVER_ADDRESS; ensRegistryAddress: string = VOLTA_ENS_REGISTRY_ADDRESS; ensResolverAddress: string = VOLTA_RESOLVER_V1_ADDRESS; rpcUrl: string = "https://volta-rpc.energyweb.org"; stakingPoolFactoryAddress: string = VOLTA_STAKING_POOL_FACTORY_ADDRESS } |
▪ Const
messagingOptions: object
Name | Type | Value |
---|---|---|
[VOLTA_CHAIN_ID] |
object | { messagingMethod: Nats = MessagingMethod.Nats; natsServerUrl: string = "https://volta-identityevents.energyweb.org/" } |