diff --git a/package.json b/package.json index 050caffc4d..6c6012f144 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "@babel/runtime": "^7.20.13", "@crustio/crust-pin": "^1.0.0", "@pinata/sdk": "^1.2.1", - "@polkadot/dev": "^0.68.7", + "@polkadot/dev": "^0.68.10", "@types/chart.js": "^2.9.37", "@types/file-saver": "^2.0.5", "@types/jest": "^29.4.0", diff --git a/packages/apps-config/package.json b/packages/apps-config/package.json index 53961d923d..998f84a316 100644 --- a/packages/apps-config/package.json +++ b/packages/apps-config/package.json @@ -25,10 +25,10 @@ "@equilab/definitions": "1.4.18", "@frequency-chain/api-augment": "1.2.0-rc1", "@interlay/interbtc-types": "1.11.1", - "@kiltprotocol/type-definitions": "0.30.0", + "@kiltprotocol/type-definitions": "0.31.0", "@laminar/type-definitions": "0.3.1", "@logion/node-api": "0.9.0-3", - "@mangata-finance/types": "0.17.0", + "@mangata-finance/types": "0.18.0", "@metaverse-network-sdk/type-definitions": "0.0.1-13", "@parallel-finance/type-definitions": "1.7.14", "@phala/typedefs": "0.2.33", @@ -41,9 +41,9 @@ "@polkadot/x-fetch": "^10.3.1", "@polymathnetwork/polymesh-types": "0.0.2", "@snowfork/snowbridge-types": "0.2.7", - "@sora-substrate/type-definitions": "1.14.2", - "@subsocial/definitions": "0.7.11", - "@unique-nft/opal-testnet-types": "936.50.4", + "@sora-substrate/type-definitions": "1.14.9", + "@subsocial/definitions": "0.7.12", + "@unique-nft/opal-testnet-types": "937.52.0", "@unique-nft/quartz-mainnet-types": "936.50.4", "@unique-nft/unique-mainnet-types": "930.33.0", "@zeitgeistpm/type-defs": "1.0.0", diff --git a/packages/apps-config/src/api/typesBundle.ts b/packages/apps-config/src/api/typesBundle.ts index 79338ebcce..c22d673567 100644 --- a/packages/apps-config/src/api/typesBundle.ts +++ b/packages/apps-config/src/api/typesBundle.ts @@ -156,6 +156,37 @@ export const typesBundle = { }, "version": 2 } + ], + "PublicCredentials": [ + { + "methods": { + "get_by_id": { + "description": "Return the public credential with the specified ID, if found.", + "params": [ + { + "name": "credential_id", + "type": "Hash" + } + ], + "type": "Option" + }, + "get_by_subject": { + "description": "Return all the public credentials linked to the specified subject.\n An optional filter can be passed to be applied to the result before being returned to the client.\n It returns an error if the provided specified subject ID is not valid.\n ", + "params": [ + { + "name": "subject", + "type": "Text" + }, + { + "name": "filter", + "type": "Option" + } + ], + "type": "Result, PublicCredentialError>" + } + }, + "version": 1 + } ] }, "types": [ @@ -165,6 +196,7 @@ export const typesBundle = { 8 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithDualRefCount", "Address": "AccountId", "Attestation": { @@ -249,6 +281,7 @@ export const typesBundle = { 9 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -430,6 +463,7 @@ export const typesBundle = { 11 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -668,6 +702,7 @@ export const typesBundle = { 16 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -912,6 +947,265 @@ export const typesBundle = { 17 ], "types": { + "DispatchError": "DispatchErrorPre6First", + "AccountInfo": "AccountInfoWithTripleRefCount", + "Address": "MultiAddress", + "AmountOf": "i128", + "Balance": "u128", + "BlockNumber": "u64", + "Index": "u64", + "LookupSource": "MultiAddress", + "CtypeCreatorOf": "AccountId", + "CtypeHashOf": "Hash", + "ClaimHashOf": "Hash", + "AttesterOf": "AccountId", + "AttestationDetails": { + "ctypeHash": "CtypeHashOf", + "attester": "AttesterOf", + "delegationId": "Option", + "revoked": "bool" + }, + "Permissions": "u32", + "DelegationNodeIdOf": "Hash", + "DelegatorIdOf": "AccountId", + "DelegateSignatureTypeOf": "Vec", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, + "DelegationNode": { + "hierarchyRootId": "DelegationNodeIdOf", + "parent": "Option", + "children": "BTreeSet", + "details": "DelegationDetails" + }, + "KeyIdOf": "Hash", + "DidIdentifierOf": "AccountId", + "AccountIdentifierOf": "AccountId", + "BlockNumberOf": "BlockNumber", + "DidCallableOf": "Call", + "DidVerificationKey": { + "_enum": { + "Ed25519": "[u8; 32]", + "Sr25519": "[u8; 32]", + "Secp256k1": "[u8; 33]" + } + }, + "DidEncryptionKey": { + "_enum": { + "X25519": "[u8; 32]" + } + }, + "DidPublicKey": { + "_enum": { + "PublicVerificationKey": "DidVerificationKey", + "PublicEncryptionKey": "DidEncryptionKey" + } + }, + "DidVerificationKeyRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "DidSignature": { + "_enum": { + "Ed25519": "Ed25519Signature", + "Sr25519": "Sr25519Signature", + "Ecdsa-Secp256k1": "EcdsaSignature" + } + }, + "DidError": { + "_enum": { + "StorageError": "StorageError", + "SignatureError": "SignatureError", + "UrlError": "UrlError", + "InputError": "InputError", + "InternalError": "Null" + } + }, + "StorageError": { + "_enum": { + "DidAlreadyPresent": "Null", + "DidNotPresent": "Null", + "DidKeyNotPresent": "DidVerificationKeyRelationship", + "VerificationKeyNotPresent": "Null", + "CurrentlyActiveKey": "Null", + "MaxTxCounterValue": "Null" + } + }, + "SignatureError": { + "_enum": [ + "InvalidSignatureFormat", + "InvalidSignature", + "InvalidNonce" + ] + }, + "KeyError": { + "_enum": [ + "InvalidVerificationKeyFormat", + "InvalidEncryptionKeyFormat" + ] + }, + "UrlError": { + "_enum": [ + "InvalidUrlEncoding", + "InvalidUrlScheme" + ] + }, + "InputError": { + "_enum": [ + "MaxKeyAgreementKeysLimitExceeded", + "MaxVerificationKeysToRemoveLimitExceeded", + "MaxUrlLengthExceeded" + ] + }, + "DidPublicKeyDetails": { + "key": "DidPublicKey", + "blockNumber": "BlockNumberOf" + }, + "DidDetails": { + "authenticationKey": "KeyIdOf", + "keyAgreementKeys": "BTreeSet", + "delegationKey": "Option", + "attestationKey": "Option", + "publicKeys": "BTreeMap", + "endpointUrl": "Option", + "lastTxCounter": "u64" + }, + "DidCreationOperation": { + "did": "DidIdentifierOf", + "newAuthenticationKey": "DidVerificationKey", + "newKeyAgreementKeys": "BTreeSet", + "newAttestationKey": "Option", + "newDelegationKey": "Option", + "newEndpointUrl": "Option" + }, + "DidUpdateOperation": { + "did": "DidIdentifierOf", + "newAuthenticationKey": "Option", + "newKeyAgreementKeys": "BTreeSet", + "attestationKeyUpdate": "DidVerificationKeyUpdateAction", + "delegationKeyUpdate": "DidVerificationKeyUpdateAction", + "publicKeysToRemove": "BTreeSet", + "newEndpointUrl": "Option", + "txCounter": "u64" + }, + "DidVerificationKeyUpdateAction": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "DidDeletionOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64" + }, + "DidAuthorizedCallOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64", + "call": "DidCallableOf" + }, + "HttpUrl": { + "payload": "Text" + }, + "FtpUrl": { + "payload": "Text" + }, + "IpfsUrl": { + "payload": "Text" + }, + "Url": { + "_enum": { + "Http": "HttpUrl", + "Ftp": "FtpUrl", + "Ipfs": "IpfsUrl" + } + }, + "LockedBalance": { + "block": "BlockNumber", + "amount": "Balance" + }, + "BalanceOf": "Balance", + "RoundInfo": { + "current": "SessionIndex", + "first": "BlockNumber", + "length": "BlockNumber" + }, + "OrderedSet": "Vec", + "Stake": { + "owner": "AccountId", + "amount": "Balance" + }, + "TotalStake": { + "collators": "Balance", + "delegators": "Balance" + }, + "InflationInfo": { + "collator": "StakingInfo", + "delegator": "StakingInfo" + }, + "StakingInfo": { + "maxRate": "Perquintill", + "rewardRate": "RewardRate" + }, + "RewardRate": { + "annual": "Perquintill", + "perBlock": "Perquintill" + }, + "Delegator": { + "delegations": "Vec", + "total": "Balance" + }, + "CollatorSnapshot": { + "stake": "Balance", + "delegators": "Vec", + "total": "Balance" + }, + "Collator": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "state": "CollatorStatus" + }, + "CollatorStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, + "DelegationCounter": { + "round": "SessionIndex", + "counter": "u32" + }, + "DelegationDetails": { + "owner": "DelegatorIdOf", + "revoked": "bool", + "permissions": "Permissions" + }, + "DelegationHierarchyDetails": { + "ctypeHash": "CtypeHashOf" + }, + "DelegationStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + } + } + }, + { + "minmax": [ + 18, + 18 + ], + "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -1133,234 +1427,6 @@ export const typesBundle = { "DelegationHierarchyDetails": { "ctypeHash": "CtypeHashOf" }, - "DelegationStorageVersion": { - "_enum": [ - "V1", - "V2" - ] - } - } - }, - { - "minmax": [ - 18, - 18 - ], - "types": { - "AccountInfo": "AccountInfoWithTripleRefCount", - "Address": "MultiAddress", - "AmountOf": "i128", - "Balance": "u128", - "BlockNumber": "u64", - "Index": "u64", - "LookupSource": "MultiAddress", - "CtypeCreatorOf": "AccountId", - "CtypeHashOf": "Hash", - "ClaimHashOf": "Hash", - "AttesterOf": "AccountId", - "AttestationDetails": { - "ctypeHash": "CtypeHashOf", - "attester": "AttesterOf", - "delegationId": "Option", - "revoked": "bool" - }, - "Permissions": "u32", - "DelegationNodeIdOf": "Hash", - "DelegatorIdOf": "AccountId", - "DelegateSignatureTypeOf": "Vec", - "DelegationRoot": { - "ctypeHash": "CtypeHashOf", - "owner": "DelegatorIdOf", - "revoked": "bool" - }, - "DelegationNode": { - "hierarchyRootId": "DelegationNodeIdOf", - "parent": "Option", - "children": "BTreeSet", - "details": "DelegationDetails" - }, - "KeyIdOf": "Hash", - "DidIdentifierOf": "AccountId", - "AccountIdentifierOf": "AccountId", - "BlockNumberOf": "BlockNumber", - "DidCallableOf": "Call", - "DidVerificationKey": { - "_enum": { - "Ed25519": "[u8; 32]", - "Sr25519": "[u8; 32]", - "Secp256k1": "[u8; 33]" - } - }, - "DidEncryptionKey": { - "_enum": { - "X25519": "[u8; 32]" - } - }, - "DidPublicKey": { - "_enum": { - "PublicVerificationKey": "DidVerificationKey", - "PublicEncryptionKey": "DidEncryptionKey" - } - }, - "DidVerificationKeyRelationship": { - "_enum": [ - "Authentication", - "CapabilityDelegation", - "CapabilityInvocation", - "AssertionMethod" - ] - }, - "DidSignature": { - "_enum": { - "Ed25519": "Ed25519Signature", - "Sr25519": "Sr25519Signature", - "Ecdsa-Secp256k1": "EcdsaSignature" - } - }, - "DidError": { - "_enum": { - "StorageError": "StorageError", - "SignatureError": "SignatureError", - "UrlError": "UrlError", - "InputError": "InputError", - "InternalError": "Null" - } - }, - "StorageError": { - "_enum": { - "DidAlreadyPresent": "Null", - "DidNotPresent": "Null", - "DidKeyNotPresent": "DidVerificationKeyRelationship", - "VerificationKeyNotPresent": "Null", - "CurrentlyActiveKey": "Null", - "MaxTxCounterValue": "Null" - } - }, - "SignatureError": { - "_enum": [ - "InvalidSignatureFormat", - "InvalidSignature", - "InvalidNonce" - ] - }, - "KeyError": { - "_enum": [ - "InvalidVerificationKeyFormat", - "InvalidEncryptionKeyFormat" - ] - }, - "UrlError": { - "_enum": [ - "InvalidUrlEncoding", - "InvalidUrlScheme" - ] - }, - "InputError": { - "_enum": [ - "MaxKeyAgreementKeysLimitExceeded", - "MaxVerificationKeysToRemoveLimitExceeded", - "MaxUrlLengthExceeded" - ] - }, - "DidPublicKeyDetails": { - "key": "DidPublicKey", - "blockNumber": "BlockNumberOf" - }, - "DidDetails": { - "authenticationKey": "KeyIdOf", - "keyAgreementKeys": "BTreeSet", - "delegationKey": "Option", - "attestationKey": "Option", - "publicKeys": "BTreeMap", - "endpointUrl": "Option", - "lastTxCounter": "u64" - }, - "DidAuthorizedCallOperation": { - "did": "DidIdentifierOf", - "txCounter": "u64", - "call": "DidCallableOf" - }, - "HttpUrl": { - "payload": "Text" - }, - "FtpUrl": { - "payload": "Text" - }, - "IpfsUrl": { - "payload": "Text" - }, - "Url": { - "_enum": { - "Http": "HttpUrl", - "Ftp": "FtpUrl", - "Ipfs": "IpfsUrl" - } - }, - "LockedBalance": { - "block": "BlockNumber", - "amount": "Balance" - }, - "BalanceOf": "Balance", - "RoundInfo": { - "current": "SessionIndex", - "first": "BlockNumber", - "length": "BlockNumber" - }, - "OrderedSet": "Vec", - "Stake": { - "owner": "AccountId", - "amount": "Balance" - }, - "TotalStake": { - "collators": "Balance", - "delegators": "Balance" - }, - "InflationInfo": { - "collator": "StakingInfo", - "delegator": "StakingInfo" - }, - "StakingInfo": { - "maxRate": "Perquintill", - "rewardRate": "RewardRate" - }, - "RewardRate": { - "annual": "Perquintill", - "perBlock": "Perquintill" - }, - "Delegator": { - "delegations": "Vec", - "total": "Balance" - }, - "CollatorSnapshot": { - "stake": "Balance", - "delegators": "Vec", - "total": "Balance" - }, - "Collator": { - "id": "AccountId", - "stake": "Balance", - "delegators": "Vec", - "total": "Balance", - "state": "CollatorStatus" - }, - "CollatorStatus": { - "_enum": { - "Active": "Null", - "Leaving": "SessionIndex" - } - }, - "DelegationCounter": { - "round": "SessionIndex", - "counter": "u32" - }, - "DelegationDetails": { - "owner": "DelegatorIdOf", - "revoked": "bool", - "permissions": "Permissions" - }, - "DelegationHierarchyDetails": { - "ctypeHash": "CtypeHashOf" - }, "DelegationStorageVersion": { "_enum": [ "V1", @@ -1390,6 +1456,7 @@ export const typesBundle = { 19 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -1574,6 +1641,11 @@ export const typesBundle = { "delegations": "Vec", "total": "Balance" }, + "CollatorSnapshot": { + "stake": "Balance", + "delegators": "Vec", + "total": "Balance" + }, "Collator": { "id": "AccountId", "stake": "Balance", @@ -1659,6 +1731,7 @@ export const typesBundle = { 20 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -1821,6 +1894,7 @@ export const typesBundle = { "first": "BlockNumber", "length": "BlockNumber" }, + "OrderedSet": "BoundedVec", "Stake": { "owner": "AccountId", "amount": "Balance" @@ -1883,6 +1957,14 @@ export const typesBundle = { "newDelegationKey": "Option", "newServiceEndpoints": "Option" }, + "DidUpdateDetails": { + "newAuthenticationKey": "Option", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "attestationKeyUpdate": "DidFragmentUpdateAction_DidVerificationKey", + "delegationKeyUpdate": "DidFragmentUpdateAction_DidVerificationKey", + "publicKeysToRemove": "DidVerificationKeysToRevoke", + "serviceEndpointsUpdate": "DidFragmentUpdateAction_ServiceEndpoints" + }, "ServiceEndpoints": { "contentHash": "Hash", "urls": "BoundedVec", @@ -1946,6 +2028,7 @@ export const typesBundle = { 22 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -2132,6 +2215,19 @@ export const typesBundle = { "delegations": "Vec", "total": "Balance" }, + "Collator": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "state": "CollatorStatus" + }, + "CollatorStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, "DelegationCounter": { "round": "SessionIndex", "counter": "u32" @@ -2188,6 +2284,7 @@ export const typesBundle = { "V2" ] }, + "MaxCollatorCandidates": "u32", "MaxDelegatorsPerCollator": "u32", "MaxCollatorsPerDelegator": "u32", "StakingStorageVersion": { @@ -2210,7 +2307,8 @@ export const typesBundle = { "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", "MaxUrlLength": "u32", - "MaxEndpointUrlsCount": "u32" + "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1" } }, { @@ -2219,6 +2317,7 @@ export const typesBundle = { 24 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -2485,6 +2584,7 @@ export const typesBundle = { "DidPublicKeyMap": "BoundedBTreeMap", "MaxUrlLength": "u32", "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -2508,6 +2608,7 @@ export const typesBundle = { 2699 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -2529,6 +2630,11 @@ export const typesBundle = { "DelegationNodeIdOf": "Hash", "DelegatorIdOf": "AccountId", "DelegateSignatureTypeOf": "DidSignature", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, "DelegationNode": { "hierarchyRootId": "DelegationNodeIdOf", "parent": "Option", @@ -2608,6 +2714,12 @@ export const typesBundle = { "InvalidEncryptionKeyFormat" ] }, + "UrlError": { + "_enum": [ + "InvalidUrlEncoding", + "InvalidUrlScheme" + ] + }, "InputError": { "_enum": [ "MaxKeyAgreementKeysLimitExceeded", @@ -2634,6 +2746,22 @@ export const typesBundle = { "call": "DidCallableOf", "submitter": "AccountId" }, + "HttpUrl": { + "payload": "Text" + }, + "FtpUrl": { + "payload": "Text" + }, + "IpfsUrl": { + "payload": "Text" + }, + "Url": { + "_enum": { + "Http": "HttpUrl", + "Ftp": "FtpUrl", + "Ipfs": "IpfsUrl" + } + }, "LockedBalance": { "block": "BlockNumber", "amount": "Balance" @@ -2693,6 +2821,11 @@ export const typesBundle = { "newCapabilityDelegationKey": "Option", "newServiceEndpoints": "Option" }, + "ServiceEndpoints": { + "contentHash": "Hash", + "urls": "BoundedVec", + "contentType": "ContentType" + }, "DidFragmentUpdateAction_ServiceEndpoints": { "_enum": { "Ignore": "Null", @@ -2707,6 +2840,12 @@ export const typesBundle = { "Delete": "Null" } }, + "ContentType": { + "_enum": [ + "application/json", + "application/ld+json" + ] + }, "DidStorageVersion": { "_enum": [ "V1", @@ -2735,6 +2874,9 @@ export const typesBundle = { "MaxVerificationKeysToRevoke": "u32", "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", + "MaxUrlLength": "u32", + "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -2755,7 +2897,265 @@ export const typesBundle = { { "minmax": [ 2700, - 10710 + 10409 + ], + "types": { + "DispatchError": "DispatchErrorPre6First", + "AccountInfo": "AccountInfoWithTripleRefCount", + "Address": "MultiAddress", + "AmountOf": "i128", + "Balance": "u128", + "BlockNumber": "u64", + "Index": "u64", + "LookupSource": "MultiAddress", + "CtypeCreatorOf": "AccountId", + "CtypeHashOf": "Hash", + "ClaimHashOf": "Hash", + "AttesterOf": "AccountId", + "AttestationDetails": { + "ctypeHash": "CtypeHashOf", + "attester": "AttesterOf", + "delegationId": "Option", + "revoked": "bool", + "deposit": "Deposit" + }, + "Permissions": "u32", + "DelegationNodeIdOf": "Hash", + "DelegatorIdOf": "AccountId", + "DelegateSignatureTypeOf": "DidSignature", + "DelegationNode": { + "hierarchyRootId": "DelegationNodeIdOf", + "parent": "Option", + "children": "BoundedBTreeSet", + "details": "DelegationDetails", + "deposit": "Deposit" + }, + "KeyIdOf": "Hash", + "DidIdentifierOf": "AccountId", + "AccountIdentifierOf": "AccountId", + "BlockNumberOf": "BlockNumber", + "DidCallableOf": "Call", + "DidVerificationKey": { + "_enum": { + "Ed25519": "[u8; 32]", + "Sr25519": "[u8; 32]", + "Secp256k1": "[u8; 33]" + } + }, + "DidEncryptionKey": { + "_enum": { + "X25519": "[u8; 32]" + } + }, + "DidPublicKey": { + "_enum": { + "PublicVerificationKey": "DidVerificationKey", + "PublicEncryptionKey": "DidEncryptionKey" + } + }, + "DidVerificationKeyRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "DidSignature": { + "_enum": { + "Ed25519": "Ed25519Signature", + "Sr25519": "Sr25519Signature", + "Ecdsa-Secp256k1": "EcdsaSignature" + } + }, + "DidError": { + "_enum": { + "StorageError": "StorageError", + "SignatureError": "SignatureError", + "InputError": "InputError", + "InternalError": "Null" + } + }, + "StorageError": { + "_enum": { + "DidAlreadyPresent": "Null", + "DidNotPresent": "Null", + "DidKeyNotPresent": "DidVerificationKeyRelationship", + "KeyNotPresent": "Null", + "CurrentlyActiveKey": "Null", + "MaxPublicKeysPerDidExceeded": "Null", + "MaxTotalKeyAgreementKeysExceeded": "Null", + "DidAlreadyDeleted": "Null" + } + }, + "SignatureError": { + "_enum": [ + "InvalidSignatureFormat", + "InvalidSignature", + "InvalidNonce", + "TransactionExpired" + ] + }, + "KeyError": { + "_enum": [ + "InvalidVerificationKeyFormat", + "InvalidEncryptionKeyFormat" + ] + }, + "InputError": { + "_enum": [ + "MaxKeyAgreementKeysLimitExceeded", + "MaxVerificationKeysToRemoveLimitExceeded" + ] + }, + "DidPublicKeyDetails": { + "key": "DidPublicKey", + "blockNumber": "BlockNumberOf" + }, + "DidDetails": { + "authenticationKey": "KeyIdOf", + "keyAgreementKeys": "DidKeyAgreementKeys", + "capabilityDelegationKey": "Option", + "assertionMethodKey": "Option", + "publicKeys": "DidPublicKeyMap", + "lastTxCounter": "u64", + "deposit": "Deposit" + }, + "DidAuthorizedCallOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64", + "call": "DidCallableOf", + "blockNumber": "BlockNumber", + "submitter": "AccountId" + }, + "LockedBalance": { + "block": "BlockNumber", + "amount": "Balance" + }, + "BalanceOf": "Balance", + "RoundInfo": { + "current": "SessionIndex", + "first": "BlockNumber", + "length": "BlockNumber" + }, + "Stake": { + "owner": "AccountId", + "amount": "Balance" + }, + "TotalStake": { + "collators": "Balance", + "delegators": "Balance" + }, + "InflationInfo": { + "collator": "StakingInfo", + "delegator": "StakingInfo" + }, + "StakingInfo": { + "maxRate": "Perquintill", + "rewardRate": "RewardRate" + }, + "RewardRate": { + "annual": "Perquintill", + "perBlock": "Perquintill" + }, + "Delegator": { + "delegations": "Vec", + "total": "Balance" + }, + "DelegationCounter": { + "round": "SessionIndex", + "counter": "u32" + }, + "DelegationDetails": { + "owner": "DelegatorIdOf", + "revoked": "bool", + "permissions": "Permissions" + }, + "DelegationHierarchyDetails": { + "ctypeHash": "CtypeHashOf" + }, + "DelegationStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + }, + "DidCreationDetails": { + "did": "DidIdentifierOf", + "submitter": "AccountId", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "newAssertionMethodKey": "Option", + "newCapabilityDelegationKey": "Option" + }, + "DidFragmentUpdateAction_ServiceEndpoints": { + "_enum": { + "Ignore": "Null", + "Change": "ServiceEndpoints", + "Delete": "Null" + } + }, + "DidFragmentUpdateAction_DidVerificationKey": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "DidStorageVersion": { + "_enum": [ + "V1", + "V2", + "V3" + ] + }, + "MaxDelegatorsPerCollator": "u32", + "MaxCollatorsPerDelegator": "u32", + "StakingStorageVersion": { + "_enum": [ + "V1_0_0", + "V2_0_0", + "V3_0_0", + "V4", + "V5" + ] + }, + "MaxDelegatedAttestations": "u32", + "MaxClaims": "u32", + "MaxChildren": "u32", + "DidNewKeyAgreementKeys": "BoundedBTreeSet", + "DidKeyAgreementKeys": "BoundedBTreeSet", + "DidVerificationKeysToRevoke": "BoundedBTreeSet", + "MaxNewKeyAgreementKeys": "u32", + "MaxTotalKeyAgreementKeys": "u32", + "MaxVerificationKeysToRevoke": "u32", + "MaxPublicKeysPerDid": "u32", + "DidPublicKeyMap": "BoundedBTreeMap", + "Keys": "SessionKeys1", + "MinCollators": "u32", + "MaxTopCandidates": "u32", + "Candidate": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "status": "CandidateStatus" + }, + "CandidateStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, + "Deposit": { + "owner": "AccountId", + "amount": "Balance" + } + } + }, + { + "minmax": [ + 10410, + 10719 ], "types": { "AccountInfo": "AccountInfoWithTripleRefCount", @@ -2987,6 +3387,7 @@ export const typesBundle = { "MaxVerificationKeysToRevoke": "u32", "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -3038,6 +3439,17 @@ export const typesBundle = { "serviceEndpoints": "Vec", "details": "DidDidDetails" }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, "StakingRates": { "collatorStakingRate": "Perquintill", "collatorRewardRate": "Perquintill", @@ -3060,6 +3472,17 @@ export const typesBundle = { "serviceEndpoints": "Vec", "details": "DidDidDetails" }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, "StakingRates": { "collatorStakingRate": "Perquintill", "collatorRewardRate": "Perquintill", @@ -3237,6 +3660,37 @@ export const typesBundle = { }, "version": 1 } + ], + "PublicCredentials": [ + { + "methods": { + "get_by_id": { + "description": "Return the public credential with the specified ID, if found.", + "params": [ + { + "name": "credential_id", + "type": "Hash" + } + ], + "type": "Option" + }, + "get_by_subject": { + "description": "Return all the public credentials linked to the specified subject.\n An optional filter can be passed to be applied to the result before being returned to the client.\n It returns an error if the provided specified subject ID is not valid.\n ", + "params": [ + { + "name": "subject", + "type": "Text" + }, + { + "name": "filter", + "type": "Option" + } + ], + "type": "Result, PublicCredentialError>" + } + }, + "version": 1 + } ] }, "types": [ @@ -3246,6 +3700,7 @@ export const typesBundle = { 8 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithDualRefCount", "Address": "AccountId", "Attestation": { @@ -3330,6 +3785,7 @@ export const typesBundle = { 9 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -3511,6 +3967,7 @@ export const typesBundle = { 11 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -3749,6 +4206,7 @@ export const typesBundle = { 16 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -3993,6 +4451,265 @@ export const typesBundle = { 17 ], "types": { + "DispatchError": "DispatchErrorPre6First", + "AccountInfo": "AccountInfoWithTripleRefCount", + "Address": "MultiAddress", + "AmountOf": "i128", + "Balance": "u128", + "BlockNumber": "u64", + "Index": "u64", + "LookupSource": "MultiAddress", + "CtypeCreatorOf": "AccountId", + "CtypeHashOf": "Hash", + "ClaimHashOf": "Hash", + "AttesterOf": "AccountId", + "AttestationDetails": { + "ctypeHash": "CtypeHashOf", + "attester": "AttesterOf", + "delegationId": "Option", + "revoked": "bool" + }, + "Permissions": "u32", + "DelegationNodeIdOf": "Hash", + "DelegatorIdOf": "AccountId", + "DelegateSignatureTypeOf": "Vec", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, + "DelegationNode": { + "hierarchyRootId": "DelegationNodeIdOf", + "parent": "Option", + "children": "BTreeSet", + "details": "DelegationDetails" + }, + "KeyIdOf": "Hash", + "DidIdentifierOf": "AccountId", + "AccountIdentifierOf": "AccountId", + "BlockNumberOf": "BlockNumber", + "DidCallableOf": "Call", + "DidVerificationKey": { + "_enum": { + "Ed25519": "[u8; 32]", + "Sr25519": "[u8; 32]", + "Secp256k1": "[u8; 33]" + } + }, + "DidEncryptionKey": { + "_enum": { + "X25519": "[u8; 32]" + } + }, + "DidPublicKey": { + "_enum": { + "PublicVerificationKey": "DidVerificationKey", + "PublicEncryptionKey": "DidEncryptionKey" + } + }, + "DidVerificationKeyRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "DidSignature": { + "_enum": { + "Ed25519": "Ed25519Signature", + "Sr25519": "Sr25519Signature", + "Ecdsa-Secp256k1": "EcdsaSignature" + } + }, + "DidError": { + "_enum": { + "StorageError": "StorageError", + "SignatureError": "SignatureError", + "UrlError": "UrlError", + "InputError": "InputError", + "InternalError": "Null" + } + }, + "StorageError": { + "_enum": { + "DidAlreadyPresent": "Null", + "DidNotPresent": "Null", + "DidKeyNotPresent": "DidVerificationKeyRelationship", + "VerificationKeyNotPresent": "Null", + "CurrentlyActiveKey": "Null", + "MaxTxCounterValue": "Null" + } + }, + "SignatureError": { + "_enum": [ + "InvalidSignatureFormat", + "InvalidSignature", + "InvalidNonce" + ] + }, + "KeyError": { + "_enum": [ + "InvalidVerificationKeyFormat", + "InvalidEncryptionKeyFormat" + ] + }, + "UrlError": { + "_enum": [ + "InvalidUrlEncoding", + "InvalidUrlScheme" + ] + }, + "InputError": { + "_enum": [ + "MaxKeyAgreementKeysLimitExceeded", + "MaxVerificationKeysToRemoveLimitExceeded", + "MaxUrlLengthExceeded" + ] + }, + "DidPublicKeyDetails": { + "key": "DidPublicKey", + "blockNumber": "BlockNumberOf" + }, + "DidDetails": { + "authenticationKey": "KeyIdOf", + "keyAgreementKeys": "BTreeSet", + "delegationKey": "Option", + "attestationKey": "Option", + "publicKeys": "BTreeMap", + "endpointUrl": "Option", + "lastTxCounter": "u64" + }, + "DidCreationOperation": { + "did": "DidIdentifierOf", + "newAuthenticationKey": "DidVerificationKey", + "newKeyAgreementKeys": "BTreeSet", + "newAttestationKey": "Option", + "newDelegationKey": "Option", + "newEndpointUrl": "Option" + }, + "DidUpdateOperation": { + "did": "DidIdentifierOf", + "newAuthenticationKey": "Option", + "newKeyAgreementKeys": "BTreeSet", + "attestationKeyUpdate": "DidVerificationKeyUpdateAction", + "delegationKeyUpdate": "DidVerificationKeyUpdateAction", + "publicKeysToRemove": "BTreeSet", + "newEndpointUrl": "Option", + "txCounter": "u64" + }, + "DidVerificationKeyUpdateAction": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "DidDeletionOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64" + }, + "DidAuthorizedCallOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64", + "call": "DidCallableOf" + }, + "HttpUrl": { + "payload": "Text" + }, + "FtpUrl": { + "payload": "Text" + }, + "IpfsUrl": { + "payload": "Text" + }, + "Url": { + "_enum": { + "Http": "HttpUrl", + "Ftp": "FtpUrl", + "Ipfs": "IpfsUrl" + } + }, + "LockedBalance": { + "block": "BlockNumber", + "amount": "Balance" + }, + "BalanceOf": "Balance", + "RoundInfo": { + "current": "SessionIndex", + "first": "BlockNumber", + "length": "BlockNumber" + }, + "OrderedSet": "Vec", + "Stake": { + "owner": "AccountId", + "amount": "Balance" + }, + "TotalStake": { + "collators": "Balance", + "delegators": "Balance" + }, + "InflationInfo": { + "collator": "StakingInfo", + "delegator": "StakingInfo" + }, + "StakingInfo": { + "maxRate": "Perquintill", + "rewardRate": "RewardRate" + }, + "RewardRate": { + "annual": "Perquintill", + "perBlock": "Perquintill" + }, + "Delegator": { + "delegations": "Vec", + "total": "Balance" + }, + "CollatorSnapshot": { + "stake": "Balance", + "delegators": "Vec", + "total": "Balance" + }, + "Collator": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "state": "CollatorStatus" + }, + "CollatorStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, + "DelegationCounter": { + "round": "SessionIndex", + "counter": "u32" + }, + "DelegationDetails": { + "owner": "DelegatorIdOf", + "revoked": "bool", + "permissions": "Permissions" + }, + "DelegationHierarchyDetails": { + "ctypeHash": "CtypeHashOf" + }, + "DelegationStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + } + } + }, + { + "minmax": [ + 18, + 18 + ], + "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -4214,234 +4931,6 @@ export const typesBundle = { "DelegationHierarchyDetails": { "ctypeHash": "CtypeHashOf" }, - "DelegationStorageVersion": { - "_enum": [ - "V1", - "V2" - ] - } - } - }, - { - "minmax": [ - 18, - 18 - ], - "types": { - "AccountInfo": "AccountInfoWithTripleRefCount", - "Address": "MultiAddress", - "AmountOf": "i128", - "Balance": "u128", - "BlockNumber": "u64", - "Index": "u64", - "LookupSource": "MultiAddress", - "CtypeCreatorOf": "AccountId", - "CtypeHashOf": "Hash", - "ClaimHashOf": "Hash", - "AttesterOf": "AccountId", - "AttestationDetails": { - "ctypeHash": "CtypeHashOf", - "attester": "AttesterOf", - "delegationId": "Option", - "revoked": "bool" - }, - "Permissions": "u32", - "DelegationNodeIdOf": "Hash", - "DelegatorIdOf": "AccountId", - "DelegateSignatureTypeOf": "Vec", - "DelegationRoot": { - "ctypeHash": "CtypeHashOf", - "owner": "DelegatorIdOf", - "revoked": "bool" - }, - "DelegationNode": { - "hierarchyRootId": "DelegationNodeIdOf", - "parent": "Option", - "children": "BTreeSet", - "details": "DelegationDetails" - }, - "KeyIdOf": "Hash", - "DidIdentifierOf": "AccountId", - "AccountIdentifierOf": "AccountId", - "BlockNumberOf": "BlockNumber", - "DidCallableOf": "Call", - "DidVerificationKey": { - "_enum": { - "Ed25519": "[u8; 32]", - "Sr25519": "[u8; 32]", - "Secp256k1": "[u8; 33]" - } - }, - "DidEncryptionKey": { - "_enum": { - "X25519": "[u8; 32]" - } - }, - "DidPublicKey": { - "_enum": { - "PublicVerificationKey": "DidVerificationKey", - "PublicEncryptionKey": "DidEncryptionKey" - } - }, - "DidVerificationKeyRelationship": { - "_enum": [ - "Authentication", - "CapabilityDelegation", - "CapabilityInvocation", - "AssertionMethod" - ] - }, - "DidSignature": { - "_enum": { - "Ed25519": "Ed25519Signature", - "Sr25519": "Sr25519Signature", - "Ecdsa-Secp256k1": "EcdsaSignature" - } - }, - "DidError": { - "_enum": { - "StorageError": "StorageError", - "SignatureError": "SignatureError", - "UrlError": "UrlError", - "InputError": "InputError", - "InternalError": "Null" - } - }, - "StorageError": { - "_enum": { - "DidAlreadyPresent": "Null", - "DidNotPresent": "Null", - "DidKeyNotPresent": "DidVerificationKeyRelationship", - "VerificationKeyNotPresent": "Null", - "CurrentlyActiveKey": "Null", - "MaxTxCounterValue": "Null" - } - }, - "SignatureError": { - "_enum": [ - "InvalidSignatureFormat", - "InvalidSignature", - "InvalidNonce" - ] - }, - "KeyError": { - "_enum": [ - "InvalidVerificationKeyFormat", - "InvalidEncryptionKeyFormat" - ] - }, - "UrlError": { - "_enum": [ - "InvalidUrlEncoding", - "InvalidUrlScheme" - ] - }, - "InputError": { - "_enum": [ - "MaxKeyAgreementKeysLimitExceeded", - "MaxVerificationKeysToRemoveLimitExceeded", - "MaxUrlLengthExceeded" - ] - }, - "DidPublicKeyDetails": { - "key": "DidPublicKey", - "blockNumber": "BlockNumberOf" - }, - "DidDetails": { - "authenticationKey": "KeyIdOf", - "keyAgreementKeys": "BTreeSet", - "delegationKey": "Option", - "attestationKey": "Option", - "publicKeys": "BTreeMap", - "endpointUrl": "Option", - "lastTxCounter": "u64" - }, - "DidAuthorizedCallOperation": { - "did": "DidIdentifierOf", - "txCounter": "u64", - "call": "DidCallableOf" - }, - "HttpUrl": { - "payload": "Text" - }, - "FtpUrl": { - "payload": "Text" - }, - "IpfsUrl": { - "payload": "Text" - }, - "Url": { - "_enum": { - "Http": "HttpUrl", - "Ftp": "FtpUrl", - "Ipfs": "IpfsUrl" - } - }, - "LockedBalance": { - "block": "BlockNumber", - "amount": "Balance" - }, - "BalanceOf": "Balance", - "RoundInfo": { - "current": "SessionIndex", - "first": "BlockNumber", - "length": "BlockNumber" - }, - "OrderedSet": "Vec", - "Stake": { - "owner": "AccountId", - "amount": "Balance" - }, - "TotalStake": { - "collators": "Balance", - "delegators": "Balance" - }, - "InflationInfo": { - "collator": "StakingInfo", - "delegator": "StakingInfo" - }, - "StakingInfo": { - "maxRate": "Perquintill", - "rewardRate": "RewardRate" - }, - "RewardRate": { - "annual": "Perquintill", - "perBlock": "Perquintill" - }, - "Delegator": { - "delegations": "Vec", - "total": "Balance" - }, - "CollatorSnapshot": { - "stake": "Balance", - "delegators": "Vec", - "total": "Balance" - }, - "Collator": { - "id": "AccountId", - "stake": "Balance", - "delegators": "Vec", - "total": "Balance", - "state": "CollatorStatus" - }, - "CollatorStatus": { - "_enum": { - "Active": "Null", - "Leaving": "SessionIndex" - } - }, - "DelegationCounter": { - "round": "SessionIndex", - "counter": "u32" - }, - "DelegationDetails": { - "owner": "DelegatorIdOf", - "revoked": "bool", - "permissions": "Permissions" - }, - "DelegationHierarchyDetails": { - "ctypeHash": "CtypeHashOf" - }, "DelegationStorageVersion": { "_enum": [ "V1", @@ -4471,6 +4960,7 @@ export const typesBundle = { 19 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -4655,6 +5145,11 @@ export const typesBundle = { "delegations": "Vec", "total": "Balance" }, + "CollatorSnapshot": { + "stake": "Balance", + "delegators": "Vec", + "total": "Balance" + }, "Collator": { "id": "AccountId", "stake": "Balance", @@ -4740,6 +5235,7 @@ export const typesBundle = { 20 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -4902,6 +5398,7 @@ export const typesBundle = { "first": "BlockNumber", "length": "BlockNumber" }, + "OrderedSet": "BoundedVec", "Stake": { "owner": "AccountId", "amount": "Balance" @@ -4964,6 +5461,14 @@ export const typesBundle = { "newDelegationKey": "Option", "newServiceEndpoints": "Option" }, + "DidUpdateDetails": { + "newAuthenticationKey": "Option", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "attestationKeyUpdate": "DidFragmentUpdateAction_DidVerificationKey", + "delegationKeyUpdate": "DidFragmentUpdateAction_DidVerificationKey", + "publicKeysToRemove": "DidVerificationKeysToRevoke", + "serviceEndpointsUpdate": "DidFragmentUpdateAction_ServiceEndpoints" + }, "ServiceEndpoints": { "contentHash": "Hash", "urls": "BoundedVec", @@ -5027,6 +5532,7 @@ export const typesBundle = { 22 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -5213,6 +5719,19 @@ export const typesBundle = { "delegations": "Vec", "total": "Balance" }, + "Collator": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "state": "CollatorStatus" + }, + "CollatorStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, "DelegationCounter": { "round": "SessionIndex", "counter": "u32" @@ -5269,6 +5788,7 @@ export const typesBundle = { "V2" ] }, + "MaxCollatorCandidates": "u32", "MaxDelegatorsPerCollator": "u32", "MaxCollatorsPerDelegator": "u32", "StakingStorageVersion": { @@ -5291,7 +5811,8 @@ export const typesBundle = { "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", "MaxUrlLength": "u32", - "MaxEndpointUrlsCount": "u32" + "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1" } }, { @@ -5300,6 +5821,7 @@ export const typesBundle = { 24 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -5566,6 +6088,7 @@ export const typesBundle = { "DidPublicKeyMap": "BoundedBTreeMap", "MaxUrlLength": "u32", "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -5589,6 +6112,7 @@ export const typesBundle = { 2699 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -5610,6 +6134,11 @@ export const typesBundle = { "DelegationNodeIdOf": "Hash", "DelegatorIdOf": "AccountId", "DelegateSignatureTypeOf": "DidSignature", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, "DelegationNode": { "hierarchyRootId": "DelegationNodeIdOf", "parent": "Option", @@ -5689,6 +6218,12 @@ export const typesBundle = { "InvalidEncryptionKeyFormat" ] }, + "UrlError": { + "_enum": [ + "InvalidUrlEncoding", + "InvalidUrlScheme" + ] + }, "InputError": { "_enum": [ "MaxKeyAgreementKeysLimitExceeded", @@ -5715,6 +6250,22 @@ export const typesBundle = { "call": "DidCallableOf", "submitter": "AccountId" }, + "HttpUrl": { + "payload": "Text" + }, + "FtpUrl": { + "payload": "Text" + }, + "IpfsUrl": { + "payload": "Text" + }, + "Url": { + "_enum": { + "Http": "HttpUrl", + "Ftp": "FtpUrl", + "Ipfs": "IpfsUrl" + } + }, "LockedBalance": { "block": "BlockNumber", "amount": "Balance" @@ -5774,6 +6325,11 @@ export const typesBundle = { "newCapabilityDelegationKey": "Option", "newServiceEndpoints": "Option" }, + "ServiceEndpoints": { + "contentHash": "Hash", + "urls": "BoundedVec", + "contentType": "ContentType" + }, "DidFragmentUpdateAction_ServiceEndpoints": { "_enum": { "Ignore": "Null", @@ -5788,6 +6344,12 @@ export const typesBundle = { "Delete": "Null" } }, + "ContentType": { + "_enum": [ + "application/json", + "application/ld+json" + ] + }, "DidStorageVersion": { "_enum": [ "V1", @@ -5816,6 +6378,9 @@ export const typesBundle = { "MaxVerificationKeysToRevoke": "u32", "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", + "MaxUrlLength": "u32", + "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -5836,7 +6401,265 @@ export const typesBundle = { { "minmax": [ 2700, - 10710 + 10409 + ], + "types": { + "DispatchError": "DispatchErrorPre6First", + "AccountInfo": "AccountInfoWithTripleRefCount", + "Address": "MultiAddress", + "AmountOf": "i128", + "Balance": "u128", + "BlockNumber": "u64", + "Index": "u64", + "LookupSource": "MultiAddress", + "CtypeCreatorOf": "AccountId", + "CtypeHashOf": "Hash", + "ClaimHashOf": "Hash", + "AttesterOf": "AccountId", + "AttestationDetails": { + "ctypeHash": "CtypeHashOf", + "attester": "AttesterOf", + "delegationId": "Option", + "revoked": "bool", + "deposit": "Deposit" + }, + "Permissions": "u32", + "DelegationNodeIdOf": "Hash", + "DelegatorIdOf": "AccountId", + "DelegateSignatureTypeOf": "DidSignature", + "DelegationNode": { + "hierarchyRootId": "DelegationNodeIdOf", + "parent": "Option", + "children": "BoundedBTreeSet", + "details": "DelegationDetails", + "deposit": "Deposit" + }, + "KeyIdOf": "Hash", + "DidIdentifierOf": "AccountId", + "AccountIdentifierOf": "AccountId", + "BlockNumberOf": "BlockNumber", + "DidCallableOf": "Call", + "DidVerificationKey": { + "_enum": { + "Ed25519": "[u8; 32]", + "Sr25519": "[u8; 32]", + "Secp256k1": "[u8; 33]" + } + }, + "DidEncryptionKey": { + "_enum": { + "X25519": "[u8; 32]" + } + }, + "DidPublicKey": { + "_enum": { + "PublicVerificationKey": "DidVerificationKey", + "PublicEncryptionKey": "DidEncryptionKey" + } + }, + "DidVerificationKeyRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "DidSignature": { + "_enum": { + "Ed25519": "Ed25519Signature", + "Sr25519": "Sr25519Signature", + "Ecdsa-Secp256k1": "EcdsaSignature" + } + }, + "DidError": { + "_enum": { + "StorageError": "StorageError", + "SignatureError": "SignatureError", + "InputError": "InputError", + "InternalError": "Null" + } + }, + "StorageError": { + "_enum": { + "DidAlreadyPresent": "Null", + "DidNotPresent": "Null", + "DidKeyNotPresent": "DidVerificationKeyRelationship", + "KeyNotPresent": "Null", + "CurrentlyActiveKey": "Null", + "MaxPublicKeysPerDidExceeded": "Null", + "MaxTotalKeyAgreementKeysExceeded": "Null", + "DidAlreadyDeleted": "Null" + } + }, + "SignatureError": { + "_enum": [ + "InvalidSignatureFormat", + "InvalidSignature", + "InvalidNonce", + "TransactionExpired" + ] + }, + "KeyError": { + "_enum": [ + "InvalidVerificationKeyFormat", + "InvalidEncryptionKeyFormat" + ] + }, + "InputError": { + "_enum": [ + "MaxKeyAgreementKeysLimitExceeded", + "MaxVerificationKeysToRemoveLimitExceeded" + ] + }, + "DidPublicKeyDetails": { + "key": "DidPublicKey", + "blockNumber": "BlockNumberOf" + }, + "DidDetails": { + "authenticationKey": "KeyIdOf", + "keyAgreementKeys": "DidKeyAgreementKeys", + "capabilityDelegationKey": "Option", + "assertionMethodKey": "Option", + "publicKeys": "DidPublicKeyMap", + "lastTxCounter": "u64", + "deposit": "Deposit" + }, + "DidAuthorizedCallOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64", + "call": "DidCallableOf", + "blockNumber": "BlockNumber", + "submitter": "AccountId" + }, + "LockedBalance": { + "block": "BlockNumber", + "amount": "Balance" + }, + "BalanceOf": "Balance", + "RoundInfo": { + "current": "SessionIndex", + "first": "BlockNumber", + "length": "BlockNumber" + }, + "Stake": { + "owner": "AccountId", + "amount": "Balance" + }, + "TotalStake": { + "collators": "Balance", + "delegators": "Balance" + }, + "InflationInfo": { + "collator": "StakingInfo", + "delegator": "StakingInfo" + }, + "StakingInfo": { + "maxRate": "Perquintill", + "rewardRate": "RewardRate" + }, + "RewardRate": { + "annual": "Perquintill", + "perBlock": "Perquintill" + }, + "Delegator": { + "delegations": "Vec", + "total": "Balance" + }, + "DelegationCounter": { + "round": "SessionIndex", + "counter": "u32" + }, + "DelegationDetails": { + "owner": "DelegatorIdOf", + "revoked": "bool", + "permissions": "Permissions" + }, + "DelegationHierarchyDetails": { + "ctypeHash": "CtypeHashOf" + }, + "DelegationStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + }, + "DidCreationDetails": { + "did": "DidIdentifierOf", + "submitter": "AccountId", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "newAssertionMethodKey": "Option", + "newCapabilityDelegationKey": "Option" + }, + "DidFragmentUpdateAction_ServiceEndpoints": { + "_enum": { + "Ignore": "Null", + "Change": "ServiceEndpoints", + "Delete": "Null" + } + }, + "DidFragmentUpdateAction_DidVerificationKey": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "DidStorageVersion": { + "_enum": [ + "V1", + "V2", + "V3" + ] + }, + "MaxDelegatorsPerCollator": "u32", + "MaxCollatorsPerDelegator": "u32", + "StakingStorageVersion": { + "_enum": [ + "V1_0_0", + "V2_0_0", + "V3_0_0", + "V4", + "V5" + ] + }, + "MaxDelegatedAttestations": "u32", + "MaxClaims": "u32", + "MaxChildren": "u32", + "DidNewKeyAgreementKeys": "BoundedBTreeSet", + "DidKeyAgreementKeys": "BoundedBTreeSet", + "DidVerificationKeysToRevoke": "BoundedBTreeSet", + "MaxNewKeyAgreementKeys": "u32", + "MaxTotalKeyAgreementKeys": "u32", + "MaxVerificationKeysToRevoke": "u32", + "MaxPublicKeysPerDid": "u32", + "DidPublicKeyMap": "BoundedBTreeMap", + "Keys": "SessionKeys1", + "MinCollators": "u32", + "MaxTopCandidates": "u32", + "Candidate": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "status": "CandidateStatus" + }, + "CandidateStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, + "Deposit": { + "owner": "AccountId", + "amount": "Balance" + } + } + }, + { + "minmax": [ + 10410, + 10719 ], "types": { "AccountInfo": "AccountInfoWithTripleRefCount", @@ -6068,6 +6891,7 @@ export const typesBundle = { "MaxVerificationKeysToRevoke": "u32", "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -6119,6 +6943,17 @@ export const typesBundle = { "serviceEndpoints": "Vec", "details": "DidDidDetails" }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, "StakingRates": { "collatorStakingRate": "Perquintill", "collatorRewardRate": "Perquintill", @@ -6141,6 +6976,17 @@ export const typesBundle = { "serviceEndpoints": "Vec", "details": "DidDidDetails" }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, "StakingRates": { "collatorStakingRate": "Perquintill", "collatorRewardRate": "Perquintill", @@ -6318,6 +7164,37 @@ export const typesBundle = { }, "version": 1 } + ], + "PublicCredentials": [ + { + "methods": { + "get_by_id": { + "description": "Return the public credential with the specified ID, if found.", + "params": [ + { + "name": "credential_id", + "type": "Hash" + } + ], + "type": "Option" + }, + "get_by_subject": { + "description": "Return all the public credentials linked to the specified subject.\n An optional filter can be passed to be applied to the result before being returned to the client.\n It returns an error if the provided specified subject ID is not valid.\n ", + "params": [ + { + "name": "subject", + "type": "Text" + }, + { + "name": "filter", + "type": "Option" + } + ], + "type": "Result, PublicCredentialError>" + } + }, + "version": 1 + } ] }, "types": [ @@ -6327,6 +7204,7 @@ export const typesBundle = { 8 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithDualRefCount", "Address": "AccountId", "Attestation": { @@ -6411,6 +7289,7 @@ export const typesBundle = { 9 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -6592,6 +7471,7 @@ export const typesBundle = { 11 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -6830,6 +7710,7 @@ export const typesBundle = { 16 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -7074,6 +7955,265 @@ export const typesBundle = { 17 ], "types": { + "DispatchError": "DispatchErrorPre6First", + "AccountInfo": "AccountInfoWithTripleRefCount", + "Address": "MultiAddress", + "AmountOf": "i128", + "Balance": "u128", + "BlockNumber": "u64", + "Index": "u64", + "LookupSource": "MultiAddress", + "CtypeCreatorOf": "AccountId", + "CtypeHashOf": "Hash", + "ClaimHashOf": "Hash", + "AttesterOf": "AccountId", + "AttestationDetails": { + "ctypeHash": "CtypeHashOf", + "attester": "AttesterOf", + "delegationId": "Option", + "revoked": "bool" + }, + "Permissions": "u32", + "DelegationNodeIdOf": "Hash", + "DelegatorIdOf": "AccountId", + "DelegateSignatureTypeOf": "Vec", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, + "DelegationNode": { + "hierarchyRootId": "DelegationNodeIdOf", + "parent": "Option", + "children": "BTreeSet", + "details": "DelegationDetails" + }, + "KeyIdOf": "Hash", + "DidIdentifierOf": "AccountId", + "AccountIdentifierOf": "AccountId", + "BlockNumberOf": "BlockNumber", + "DidCallableOf": "Call", + "DidVerificationKey": { + "_enum": { + "Ed25519": "[u8; 32]", + "Sr25519": "[u8; 32]", + "Secp256k1": "[u8; 33]" + } + }, + "DidEncryptionKey": { + "_enum": { + "X25519": "[u8; 32]" + } + }, + "DidPublicKey": { + "_enum": { + "PublicVerificationKey": "DidVerificationKey", + "PublicEncryptionKey": "DidEncryptionKey" + } + }, + "DidVerificationKeyRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "DidSignature": { + "_enum": { + "Ed25519": "Ed25519Signature", + "Sr25519": "Sr25519Signature", + "Ecdsa-Secp256k1": "EcdsaSignature" + } + }, + "DidError": { + "_enum": { + "StorageError": "StorageError", + "SignatureError": "SignatureError", + "UrlError": "UrlError", + "InputError": "InputError", + "InternalError": "Null" + } + }, + "StorageError": { + "_enum": { + "DidAlreadyPresent": "Null", + "DidNotPresent": "Null", + "DidKeyNotPresent": "DidVerificationKeyRelationship", + "VerificationKeyNotPresent": "Null", + "CurrentlyActiveKey": "Null", + "MaxTxCounterValue": "Null" + } + }, + "SignatureError": { + "_enum": [ + "InvalidSignatureFormat", + "InvalidSignature", + "InvalidNonce" + ] + }, + "KeyError": { + "_enum": [ + "InvalidVerificationKeyFormat", + "InvalidEncryptionKeyFormat" + ] + }, + "UrlError": { + "_enum": [ + "InvalidUrlEncoding", + "InvalidUrlScheme" + ] + }, + "InputError": { + "_enum": [ + "MaxKeyAgreementKeysLimitExceeded", + "MaxVerificationKeysToRemoveLimitExceeded", + "MaxUrlLengthExceeded" + ] + }, + "DidPublicKeyDetails": { + "key": "DidPublicKey", + "blockNumber": "BlockNumberOf" + }, + "DidDetails": { + "authenticationKey": "KeyIdOf", + "keyAgreementKeys": "BTreeSet", + "delegationKey": "Option", + "attestationKey": "Option", + "publicKeys": "BTreeMap", + "endpointUrl": "Option", + "lastTxCounter": "u64" + }, + "DidCreationOperation": { + "did": "DidIdentifierOf", + "newAuthenticationKey": "DidVerificationKey", + "newKeyAgreementKeys": "BTreeSet", + "newAttestationKey": "Option", + "newDelegationKey": "Option", + "newEndpointUrl": "Option" + }, + "DidUpdateOperation": { + "did": "DidIdentifierOf", + "newAuthenticationKey": "Option", + "newKeyAgreementKeys": "BTreeSet", + "attestationKeyUpdate": "DidVerificationKeyUpdateAction", + "delegationKeyUpdate": "DidVerificationKeyUpdateAction", + "publicKeysToRemove": "BTreeSet", + "newEndpointUrl": "Option", + "txCounter": "u64" + }, + "DidVerificationKeyUpdateAction": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "DidDeletionOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64" + }, + "DidAuthorizedCallOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64", + "call": "DidCallableOf" + }, + "HttpUrl": { + "payload": "Text" + }, + "FtpUrl": { + "payload": "Text" + }, + "IpfsUrl": { + "payload": "Text" + }, + "Url": { + "_enum": { + "Http": "HttpUrl", + "Ftp": "FtpUrl", + "Ipfs": "IpfsUrl" + } + }, + "LockedBalance": { + "block": "BlockNumber", + "amount": "Balance" + }, + "BalanceOf": "Balance", + "RoundInfo": { + "current": "SessionIndex", + "first": "BlockNumber", + "length": "BlockNumber" + }, + "OrderedSet": "Vec", + "Stake": { + "owner": "AccountId", + "amount": "Balance" + }, + "TotalStake": { + "collators": "Balance", + "delegators": "Balance" + }, + "InflationInfo": { + "collator": "StakingInfo", + "delegator": "StakingInfo" + }, + "StakingInfo": { + "maxRate": "Perquintill", + "rewardRate": "RewardRate" + }, + "RewardRate": { + "annual": "Perquintill", + "perBlock": "Perquintill" + }, + "Delegator": { + "delegations": "Vec", + "total": "Balance" + }, + "CollatorSnapshot": { + "stake": "Balance", + "delegators": "Vec", + "total": "Balance" + }, + "Collator": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "state": "CollatorStatus" + }, + "CollatorStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, + "DelegationCounter": { + "round": "SessionIndex", + "counter": "u32" + }, + "DelegationDetails": { + "owner": "DelegatorIdOf", + "revoked": "bool", + "permissions": "Permissions" + }, + "DelegationHierarchyDetails": { + "ctypeHash": "CtypeHashOf" + }, + "DelegationStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + } + } + }, + { + "minmax": [ + 18, + 18 + ], + "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -7295,234 +8435,6 @@ export const typesBundle = { "DelegationHierarchyDetails": { "ctypeHash": "CtypeHashOf" }, - "DelegationStorageVersion": { - "_enum": [ - "V1", - "V2" - ] - } - } - }, - { - "minmax": [ - 18, - 18 - ], - "types": { - "AccountInfo": "AccountInfoWithTripleRefCount", - "Address": "MultiAddress", - "AmountOf": "i128", - "Balance": "u128", - "BlockNumber": "u64", - "Index": "u64", - "LookupSource": "MultiAddress", - "CtypeCreatorOf": "AccountId", - "CtypeHashOf": "Hash", - "ClaimHashOf": "Hash", - "AttesterOf": "AccountId", - "AttestationDetails": { - "ctypeHash": "CtypeHashOf", - "attester": "AttesterOf", - "delegationId": "Option", - "revoked": "bool" - }, - "Permissions": "u32", - "DelegationNodeIdOf": "Hash", - "DelegatorIdOf": "AccountId", - "DelegateSignatureTypeOf": "Vec", - "DelegationRoot": { - "ctypeHash": "CtypeHashOf", - "owner": "DelegatorIdOf", - "revoked": "bool" - }, - "DelegationNode": { - "hierarchyRootId": "DelegationNodeIdOf", - "parent": "Option", - "children": "BTreeSet", - "details": "DelegationDetails" - }, - "KeyIdOf": "Hash", - "DidIdentifierOf": "AccountId", - "AccountIdentifierOf": "AccountId", - "BlockNumberOf": "BlockNumber", - "DidCallableOf": "Call", - "DidVerificationKey": { - "_enum": { - "Ed25519": "[u8; 32]", - "Sr25519": "[u8; 32]", - "Secp256k1": "[u8; 33]" - } - }, - "DidEncryptionKey": { - "_enum": { - "X25519": "[u8; 32]" - } - }, - "DidPublicKey": { - "_enum": { - "PublicVerificationKey": "DidVerificationKey", - "PublicEncryptionKey": "DidEncryptionKey" - } - }, - "DidVerificationKeyRelationship": { - "_enum": [ - "Authentication", - "CapabilityDelegation", - "CapabilityInvocation", - "AssertionMethod" - ] - }, - "DidSignature": { - "_enum": { - "Ed25519": "Ed25519Signature", - "Sr25519": "Sr25519Signature", - "Ecdsa-Secp256k1": "EcdsaSignature" - } - }, - "DidError": { - "_enum": { - "StorageError": "StorageError", - "SignatureError": "SignatureError", - "UrlError": "UrlError", - "InputError": "InputError", - "InternalError": "Null" - } - }, - "StorageError": { - "_enum": { - "DidAlreadyPresent": "Null", - "DidNotPresent": "Null", - "DidKeyNotPresent": "DidVerificationKeyRelationship", - "VerificationKeyNotPresent": "Null", - "CurrentlyActiveKey": "Null", - "MaxTxCounterValue": "Null" - } - }, - "SignatureError": { - "_enum": [ - "InvalidSignatureFormat", - "InvalidSignature", - "InvalidNonce" - ] - }, - "KeyError": { - "_enum": [ - "InvalidVerificationKeyFormat", - "InvalidEncryptionKeyFormat" - ] - }, - "UrlError": { - "_enum": [ - "InvalidUrlEncoding", - "InvalidUrlScheme" - ] - }, - "InputError": { - "_enum": [ - "MaxKeyAgreementKeysLimitExceeded", - "MaxVerificationKeysToRemoveLimitExceeded", - "MaxUrlLengthExceeded" - ] - }, - "DidPublicKeyDetails": { - "key": "DidPublicKey", - "blockNumber": "BlockNumberOf" - }, - "DidDetails": { - "authenticationKey": "KeyIdOf", - "keyAgreementKeys": "BTreeSet", - "delegationKey": "Option", - "attestationKey": "Option", - "publicKeys": "BTreeMap", - "endpointUrl": "Option", - "lastTxCounter": "u64" - }, - "DidAuthorizedCallOperation": { - "did": "DidIdentifierOf", - "txCounter": "u64", - "call": "DidCallableOf" - }, - "HttpUrl": { - "payload": "Text" - }, - "FtpUrl": { - "payload": "Text" - }, - "IpfsUrl": { - "payload": "Text" - }, - "Url": { - "_enum": { - "Http": "HttpUrl", - "Ftp": "FtpUrl", - "Ipfs": "IpfsUrl" - } - }, - "LockedBalance": { - "block": "BlockNumber", - "amount": "Balance" - }, - "BalanceOf": "Balance", - "RoundInfo": { - "current": "SessionIndex", - "first": "BlockNumber", - "length": "BlockNumber" - }, - "OrderedSet": "Vec", - "Stake": { - "owner": "AccountId", - "amount": "Balance" - }, - "TotalStake": { - "collators": "Balance", - "delegators": "Balance" - }, - "InflationInfo": { - "collator": "StakingInfo", - "delegator": "StakingInfo" - }, - "StakingInfo": { - "maxRate": "Perquintill", - "rewardRate": "RewardRate" - }, - "RewardRate": { - "annual": "Perquintill", - "perBlock": "Perquintill" - }, - "Delegator": { - "delegations": "Vec", - "total": "Balance" - }, - "CollatorSnapshot": { - "stake": "Balance", - "delegators": "Vec", - "total": "Balance" - }, - "Collator": { - "id": "AccountId", - "stake": "Balance", - "delegators": "Vec", - "total": "Balance", - "state": "CollatorStatus" - }, - "CollatorStatus": { - "_enum": { - "Active": "Null", - "Leaving": "SessionIndex" - } - }, - "DelegationCounter": { - "round": "SessionIndex", - "counter": "u32" - }, - "DelegationDetails": { - "owner": "DelegatorIdOf", - "revoked": "bool", - "permissions": "Permissions" - }, - "DelegationHierarchyDetails": { - "ctypeHash": "CtypeHashOf" - }, "DelegationStorageVersion": { "_enum": [ "V1", @@ -7552,6 +8464,7 @@ export const typesBundle = { 19 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -7736,6 +8649,11 @@ export const typesBundle = { "delegations": "Vec", "total": "Balance" }, + "CollatorSnapshot": { + "stake": "Balance", + "delegators": "Vec", + "total": "Balance" + }, "Collator": { "id": "AccountId", "stake": "Balance", @@ -7821,6 +8739,7 @@ export const typesBundle = { 20 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -7983,6 +8902,7 @@ export const typesBundle = { "first": "BlockNumber", "length": "BlockNumber" }, + "OrderedSet": "BoundedVec", "Stake": { "owner": "AccountId", "amount": "Balance" @@ -8045,6 +8965,14 @@ export const typesBundle = { "newDelegationKey": "Option", "newServiceEndpoints": "Option" }, + "DidUpdateDetails": { + "newAuthenticationKey": "Option", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "attestationKeyUpdate": "DidFragmentUpdateAction_DidVerificationKey", + "delegationKeyUpdate": "DidFragmentUpdateAction_DidVerificationKey", + "publicKeysToRemove": "DidVerificationKeysToRevoke", + "serviceEndpointsUpdate": "DidFragmentUpdateAction_ServiceEndpoints" + }, "ServiceEndpoints": { "contentHash": "Hash", "urls": "BoundedVec", @@ -8108,6 +9036,7 @@ export const typesBundle = { 22 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -8294,6 +9223,19 @@ export const typesBundle = { "delegations": "Vec", "total": "Balance" }, + "Collator": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "state": "CollatorStatus" + }, + "CollatorStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, "DelegationCounter": { "round": "SessionIndex", "counter": "u32" @@ -8350,6 +9292,7 @@ export const typesBundle = { "V2" ] }, + "MaxCollatorCandidates": "u32", "MaxDelegatorsPerCollator": "u32", "MaxCollatorsPerDelegator": "u32", "StakingStorageVersion": { @@ -8372,7 +9315,8 @@ export const typesBundle = { "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", "MaxUrlLength": "u32", - "MaxEndpointUrlsCount": "u32" + "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1" } }, { @@ -8381,6 +9325,7 @@ export const typesBundle = { 24 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -8647,6 +9592,7 @@ export const typesBundle = { "DidPublicKeyMap": "BoundedBTreeMap", "MaxUrlLength": "u32", "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -8670,6 +9616,7 @@ export const typesBundle = { 2699 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -8691,6 +9638,11 @@ export const typesBundle = { "DelegationNodeIdOf": "Hash", "DelegatorIdOf": "AccountId", "DelegateSignatureTypeOf": "DidSignature", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, "DelegationNode": { "hierarchyRootId": "DelegationNodeIdOf", "parent": "Option", @@ -8770,6 +9722,12 @@ export const typesBundle = { "InvalidEncryptionKeyFormat" ] }, + "UrlError": { + "_enum": [ + "InvalidUrlEncoding", + "InvalidUrlScheme" + ] + }, "InputError": { "_enum": [ "MaxKeyAgreementKeysLimitExceeded", @@ -8796,6 +9754,22 @@ export const typesBundle = { "call": "DidCallableOf", "submitter": "AccountId" }, + "HttpUrl": { + "payload": "Text" + }, + "FtpUrl": { + "payload": "Text" + }, + "IpfsUrl": { + "payload": "Text" + }, + "Url": { + "_enum": { + "Http": "HttpUrl", + "Ftp": "FtpUrl", + "Ipfs": "IpfsUrl" + } + }, "LockedBalance": { "block": "BlockNumber", "amount": "Balance" @@ -8855,6 +9829,11 @@ export const typesBundle = { "newCapabilityDelegationKey": "Option", "newServiceEndpoints": "Option" }, + "ServiceEndpoints": { + "contentHash": "Hash", + "urls": "BoundedVec", + "contentType": "ContentType" + }, "DidFragmentUpdateAction_ServiceEndpoints": { "_enum": { "Ignore": "Null", @@ -8869,6 +9848,12 @@ export const typesBundle = { "Delete": "Null" } }, + "ContentType": { + "_enum": [ + "application/json", + "application/ld+json" + ] + }, "DidStorageVersion": { "_enum": [ "V1", @@ -8897,6 +9882,9 @@ export const typesBundle = { "MaxVerificationKeysToRevoke": "u32", "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", + "MaxUrlLength": "u32", + "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -8917,7 +9905,265 @@ export const typesBundle = { { "minmax": [ 2700, - 10710 + 10409 + ], + "types": { + "DispatchError": "DispatchErrorPre6First", + "AccountInfo": "AccountInfoWithTripleRefCount", + "Address": "MultiAddress", + "AmountOf": "i128", + "Balance": "u128", + "BlockNumber": "u64", + "Index": "u64", + "LookupSource": "MultiAddress", + "CtypeCreatorOf": "AccountId", + "CtypeHashOf": "Hash", + "ClaimHashOf": "Hash", + "AttesterOf": "AccountId", + "AttestationDetails": { + "ctypeHash": "CtypeHashOf", + "attester": "AttesterOf", + "delegationId": "Option", + "revoked": "bool", + "deposit": "Deposit" + }, + "Permissions": "u32", + "DelegationNodeIdOf": "Hash", + "DelegatorIdOf": "AccountId", + "DelegateSignatureTypeOf": "DidSignature", + "DelegationNode": { + "hierarchyRootId": "DelegationNodeIdOf", + "parent": "Option", + "children": "BoundedBTreeSet", + "details": "DelegationDetails", + "deposit": "Deposit" + }, + "KeyIdOf": "Hash", + "DidIdentifierOf": "AccountId", + "AccountIdentifierOf": "AccountId", + "BlockNumberOf": "BlockNumber", + "DidCallableOf": "Call", + "DidVerificationKey": { + "_enum": { + "Ed25519": "[u8; 32]", + "Sr25519": "[u8; 32]", + "Secp256k1": "[u8; 33]" + } + }, + "DidEncryptionKey": { + "_enum": { + "X25519": "[u8; 32]" + } + }, + "DidPublicKey": { + "_enum": { + "PublicVerificationKey": "DidVerificationKey", + "PublicEncryptionKey": "DidEncryptionKey" + } + }, + "DidVerificationKeyRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "DidSignature": { + "_enum": { + "Ed25519": "Ed25519Signature", + "Sr25519": "Sr25519Signature", + "Ecdsa-Secp256k1": "EcdsaSignature" + } + }, + "DidError": { + "_enum": { + "StorageError": "StorageError", + "SignatureError": "SignatureError", + "InputError": "InputError", + "InternalError": "Null" + } + }, + "StorageError": { + "_enum": { + "DidAlreadyPresent": "Null", + "DidNotPresent": "Null", + "DidKeyNotPresent": "DidVerificationKeyRelationship", + "KeyNotPresent": "Null", + "CurrentlyActiveKey": "Null", + "MaxPublicKeysPerDidExceeded": "Null", + "MaxTotalKeyAgreementKeysExceeded": "Null", + "DidAlreadyDeleted": "Null" + } + }, + "SignatureError": { + "_enum": [ + "InvalidSignatureFormat", + "InvalidSignature", + "InvalidNonce", + "TransactionExpired" + ] + }, + "KeyError": { + "_enum": [ + "InvalidVerificationKeyFormat", + "InvalidEncryptionKeyFormat" + ] + }, + "InputError": { + "_enum": [ + "MaxKeyAgreementKeysLimitExceeded", + "MaxVerificationKeysToRemoveLimitExceeded" + ] + }, + "DidPublicKeyDetails": { + "key": "DidPublicKey", + "blockNumber": "BlockNumberOf" + }, + "DidDetails": { + "authenticationKey": "KeyIdOf", + "keyAgreementKeys": "DidKeyAgreementKeys", + "capabilityDelegationKey": "Option", + "assertionMethodKey": "Option", + "publicKeys": "DidPublicKeyMap", + "lastTxCounter": "u64", + "deposit": "Deposit" + }, + "DidAuthorizedCallOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64", + "call": "DidCallableOf", + "blockNumber": "BlockNumber", + "submitter": "AccountId" + }, + "LockedBalance": { + "block": "BlockNumber", + "amount": "Balance" + }, + "BalanceOf": "Balance", + "RoundInfo": { + "current": "SessionIndex", + "first": "BlockNumber", + "length": "BlockNumber" + }, + "Stake": { + "owner": "AccountId", + "amount": "Balance" + }, + "TotalStake": { + "collators": "Balance", + "delegators": "Balance" + }, + "InflationInfo": { + "collator": "StakingInfo", + "delegator": "StakingInfo" + }, + "StakingInfo": { + "maxRate": "Perquintill", + "rewardRate": "RewardRate" + }, + "RewardRate": { + "annual": "Perquintill", + "perBlock": "Perquintill" + }, + "Delegator": { + "delegations": "Vec", + "total": "Balance" + }, + "DelegationCounter": { + "round": "SessionIndex", + "counter": "u32" + }, + "DelegationDetails": { + "owner": "DelegatorIdOf", + "revoked": "bool", + "permissions": "Permissions" + }, + "DelegationHierarchyDetails": { + "ctypeHash": "CtypeHashOf" + }, + "DelegationStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + }, + "DidCreationDetails": { + "did": "DidIdentifierOf", + "submitter": "AccountId", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "newAssertionMethodKey": "Option", + "newCapabilityDelegationKey": "Option" + }, + "DidFragmentUpdateAction_ServiceEndpoints": { + "_enum": { + "Ignore": "Null", + "Change": "ServiceEndpoints", + "Delete": "Null" + } + }, + "DidFragmentUpdateAction_DidVerificationKey": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "DidStorageVersion": { + "_enum": [ + "V1", + "V2", + "V3" + ] + }, + "MaxDelegatorsPerCollator": "u32", + "MaxCollatorsPerDelegator": "u32", + "StakingStorageVersion": { + "_enum": [ + "V1_0_0", + "V2_0_0", + "V3_0_0", + "V4", + "V5" + ] + }, + "MaxDelegatedAttestations": "u32", + "MaxClaims": "u32", + "MaxChildren": "u32", + "DidNewKeyAgreementKeys": "BoundedBTreeSet", + "DidKeyAgreementKeys": "BoundedBTreeSet", + "DidVerificationKeysToRevoke": "BoundedBTreeSet", + "MaxNewKeyAgreementKeys": "u32", + "MaxTotalKeyAgreementKeys": "u32", + "MaxVerificationKeysToRevoke": "u32", + "MaxPublicKeysPerDid": "u32", + "DidPublicKeyMap": "BoundedBTreeMap", + "Keys": "SessionKeys1", + "MinCollators": "u32", + "MaxTopCandidates": "u32", + "Candidate": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "status": "CandidateStatus" + }, + "CandidateStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, + "Deposit": { + "owner": "AccountId", + "amount": "Balance" + } + } + }, + { + "minmax": [ + 10410, + 10719 ], "types": { "AccountInfo": "AccountInfoWithTripleRefCount", @@ -9149,6 +10395,7 @@ export const typesBundle = { "MaxVerificationKeysToRevoke": "u32", "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -9200,6 +10447,17 @@ export const typesBundle = { "serviceEndpoints": "Vec", "details": "DidDidDetails" }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, "StakingRates": { "collatorStakingRate": "Perquintill", "collatorRewardRate": "Perquintill", @@ -9222,6 +10480,17 @@ export const typesBundle = { "serviceEndpoints": "Vec", "details": "DidDidDetails" }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, "StakingRates": { "collatorStakingRate": "Perquintill", "collatorRewardRate": "Perquintill", @@ -9399,6 +10668,37 @@ export const typesBundle = { }, "version": 1 } + ], + "PublicCredentials": [ + { + "methods": { + "get_by_id": { + "description": "Return the public credential with the specified ID, if found.", + "params": [ + { + "name": "credential_id", + "type": "Hash" + } + ], + "type": "Option" + }, + "get_by_subject": { + "description": "Return all the public credentials linked to the specified subject.\n An optional filter can be passed to be applied to the result before being returned to the client.\n It returns an error if the provided specified subject ID is not valid.\n ", + "params": [ + { + "name": "subject", + "type": "Text" + }, + { + "name": "filter", + "type": "Option" + } + ], + "type": "Result, PublicCredentialError>" + } + }, + "version": 1 + } ] }, "types": [ @@ -9408,6 +10708,7 @@ export const typesBundle = { 8 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithDualRefCount", "Address": "AccountId", "Attestation": { @@ -9492,6 +10793,7 @@ export const typesBundle = { 9 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -9673,6 +10975,7 @@ export const typesBundle = { 11 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -9911,6 +11214,7 @@ export const typesBundle = { 16 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -10155,6 +11459,265 @@ export const typesBundle = { 17 ], "types": { + "DispatchError": "DispatchErrorPre6First", + "AccountInfo": "AccountInfoWithTripleRefCount", + "Address": "MultiAddress", + "AmountOf": "i128", + "Balance": "u128", + "BlockNumber": "u64", + "Index": "u64", + "LookupSource": "MultiAddress", + "CtypeCreatorOf": "AccountId", + "CtypeHashOf": "Hash", + "ClaimHashOf": "Hash", + "AttesterOf": "AccountId", + "AttestationDetails": { + "ctypeHash": "CtypeHashOf", + "attester": "AttesterOf", + "delegationId": "Option", + "revoked": "bool" + }, + "Permissions": "u32", + "DelegationNodeIdOf": "Hash", + "DelegatorIdOf": "AccountId", + "DelegateSignatureTypeOf": "Vec", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, + "DelegationNode": { + "hierarchyRootId": "DelegationNodeIdOf", + "parent": "Option", + "children": "BTreeSet", + "details": "DelegationDetails" + }, + "KeyIdOf": "Hash", + "DidIdentifierOf": "AccountId", + "AccountIdentifierOf": "AccountId", + "BlockNumberOf": "BlockNumber", + "DidCallableOf": "Call", + "DidVerificationKey": { + "_enum": { + "Ed25519": "[u8; 32]", + "Sr25519": "[u8; 32]", + "Secp256k1": "[u8; 33]" + } + }, + "DidEncryptionKey": { + "_enum": { + "X25519": "[u8; 32]" + } + }, + "DidPublicKey": { + "_enum": { + "PublicVerificationKey": "DidVerificationKey", + "PublicEncryptionKey": "DidEncryptionKey" + } + }, + "DidVerificationKeyRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "DidSignature": { + "_enum": { + "Ed25519": "Ed25519Signature", + "Sr25519": "Sr25519Signature", + "Ecdsa-Secp256k1": "EcdsaSignature" + } + }, + "DidError": { + "_enum": { + "StorageError": "StorageError", + "SignatureError": "SignatureError", + "UrlError": "UrlError", + "InputError": "InputError", + "InternalError": "Null" + } + }, + "StorageError": { + "_enum": { + "DidAlreadyPresent": "Null", + "DidNotPresent": "Null", + "DidKeyNotPresent": "DidVerificationKeyRelationship", + "VerificationKeyNotPresent": "Null", + "CurrentlyActiveKey": "Null", + "MaxTxCounterValue": "Null" + } + }, + "SignatureError": { + "_enum": [ + "InvalidSignatureFormat", + "InvalidSignature", + "InvalidNonce" + ] + }, + "KeyError": { + "_enum": [ + "InvalidVerificationKeyFormat", + "InvalidEncryptionKeyFormat" + ] + }, + "UrlError": { + "_enum": [ + "InvalidUrlEncoding", + "InvalidUrlScheme" + ] + }, + "InputError": { + "_enum": [ + "MaxKeyAgreementKeysLimitExceeded", + "MaxVerificationKeysToRemoveLimitExceeded", + "MaxUrlLengthExceeded" + ] + }, + "DidPublicKeyDetails": { + "key": "DidPublicKey", + "blockNumber": "BlockNumberOf" + }, + "DidDetails": { + "authenticationKey": "KeyIdOf", + "keyAgreementKeys": "BTreeSet", + "delegationKey": "Option", + "attestationKey": "Option", + "publicKeys": "BTreeMap", + "endpointUrl": "Option", + "lastTxCounter": "u64" + }, + "DidCreationOperation": { + "did": "DidIdentifierOf", + "newAuthenticationKey": "DidVerificationKey", + "newKeyAgreementKeys": "BTreeSet", + "newAttestationKey": "Option", + "newDelegationKey": "Option", + "newEndpointUrl": "Option" + }, + "DidUpdateOperation": { + "did": "DidIdentifierOf", + "newAuthenticationKey": "Option", + "newKeyAgreementKeys": "BTreeSet", + "attestationKeyUpdate": "DidVerificationKeyUpdateAction", + "delegationKeyUpdate": "DidVerificationKeyUpdateAction", + "publicKeysToRemove": "BTreeSet", + "newEndpointUrl": "Option", + "txCounter": "u64" + }, + "DidVerificationKeyUpdateAction": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "DidDeletionOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64" + }, + "DidAuthorizedCallOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64", + "call": "DidCallableOf" + }, + "HttpUrl": { + "payload": "Text" + }, + "FtpUrl": { + "payload": "Text" + }, + "IpfsUrl": { + "payload": "Text" + }, + "Url": { + "_enum": { + "Http": "HttpUrl", + "Ftp": "FtpUrl", + "Ipfs": "IpfsUrl" + } + }, + "LockedBalance": { + "block": "BlockNumber", + "amount": "Balance" + }, + "BalanceOf": "Balance", + "RoundInfo": { + "current": "SessionIndex", + "first": "BlockNumber", + "length": "BlockNumber" + }, + "OrderedSet": "Vec", + "Stake": { + "owner": "AccountId", + "amount": "Balance" + }, + "TotalStake": { + "collators": "Balance", + "delegators": "Balance" + }, + "InflationInfo": { + "collator": "StakingInfo", + "delegator": "StakingInfo" + }, + "StakingInfo": { + "maxRate": "Perquintill", + "rewardRate": "RewardRate" + }, + "RewardRate": { + "annual": "Perquintill", + "perBlock": "Perquintill" + }, + "Delegator": { + "delegations": "Vec", + "total": "Balance" + }, + "CollatorSnapshot": { + "stake": "Balance", + "delegators": "Vec", + "total": "Balance" + }, + "Collator": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "state": "CollatorStatus" + }, + "CollatorStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, + "DelegationCounter": { + "round": "SessionIndex", + "counter": "u32" + }, + "DelegationDetails": { + "owner": "DelegatorIdOf", + "revoked": "bool", + "permissions": "Permissions" + }, + "DelegationHierarchyDetails": { + "ctypeHash": "CtypeHashOf" + }, + "DelegationStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + } + } + }, + { + "minmax": [ + 18, + 18 + ], + "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -10376,234 +11939,6 @@ export const typesBundle = { "DelegationHierarchyDetails": { "ctypeHash": "CtypeHashOf" }, - "DelegationStorageVersion": { - "_enum": [ - "V1", - "V2" - ] - } - } - }, - { - "minmax": [ - 18, - 18 - ], - "types": { - "AccountInfo": "AccountInfoWithTripleRefCount", - "Address": "MultiAddress", - "AmountOf": "i128", - "Balance": "u128", - "BlockNumber": "u64", - "Index": "u64", - "LookupSource": "MultiAddress", - "CtypeCreatorOf": "AccountId", - "CtypeHashOf": "Hash", - "ClaimHashOf": "Hash", - "AttesterOf": "AccountId", - "AttestationDetails": { - "ctypeHash": "CtypeHashOf", - "attester": "AttesterOf", - "delegationId": "Option", - "revoked": "bool" - }, - "Permissions": "u32", - "DelegationNodeIdOf": "Hash", - "DelegatorIdOf": "AccountId", - "DelegateSignatureTypeOf": "Vec", - "DelegationRoot": { - "ctypeHash": "CtypeHashOf", - "owner": "DelegatorIdOf", - "revoked": "bool" - }, - "DelegationNode": { - "hierarchyRootId": "DelegationNodeIdOf", - "parent": "Option", - "children": "BTreeSet", - "details": "DelegationDetails" - }, - "KeyIdOf": "Hash", - "DidIdentifierOf": "AccountId", - "AccountIdentifierOf": "AccountId", - "BlockNumberOf": "BlockNumber", - "DidCallableOf": "Call", - "DidVerificationKey": { - "_enum": { - "Ed25519": "[u8; 32]", - "Sr25519": "[u8; 32]", - "Secp256k1": "[u8; 33]" - } - }, - "DidEncryptionKey": { - "_enum": { - "X25519": "[u8; 32]" - } - }, - "DidPublicKey": { - "_enum": { - "PublicVerificationKey": "DidVerificationKey", - "PublicEncryptionKey": "DidEncryptionKey" - } - }, - "DidVerificationKeyRelationship": { - "_enum": [ - "Authentication", - "CapabilityDelegation", - "CapabilityInvocation", - "AssertionMethod" - ] - }, - "DidSignature": { - "_enum": { - "Ed25519": "Ed25519Signature", - "Sr25519": "Sr25519Signature", - "Ecdsa-Secp256k1": "EcdsaSignature" - } - }, - "DidError": { - "_enum": { - "StorageError": "StorageError", - "SignatureError": "SignatureError", - "UrlError": "UrlError", - "InputError": "InputError", - "InternalError": "Null" - } - }, - "StorageError": { - "_enum": { - "DidAlreadyPresent": "Null", - "DidNotPresent": "Null", - "DidKeyNotPresent": "DidVerificationKeyRelationship", - "VerificationKeyNotPresent": "Null", - "CurrentlyActiveKey": "Null", - "MaxTxCounterValue": "Null" - } - }, - "SignatureError": { - "_enum": [ - "InvalidSignatureFormat", - "InvalidSignature", - "InvalidNonce" - ] - }, - "KeyError": { - "_enum": [ - "InvalidVerificationKeyFormat", - "InvalidEncryptionKeyFormat" - ] - }, - "UrlError": { - "_enum": [ - "InvalidUrlEncoding", - "InvalidUrlScheme" - ] - }, - "InputError": { - "_enum": [ - "MaxKeyAgreementKeysLimitExceeded", - "MaxVerificationKeysToRemoveLimitExceeded", - "MaxUrlLengthExceeded" - ] - }, - "DidPublicKeyDetails": { - "key": "DidPublicKey", - "blockNumber": "BlockNumberOf" - }, - "DidDetails": { - "authenticationKey": "KeyIdOf", - "keyAgreementKeys": "BTreeSet", - "delegationKey": "Option", - "attestationKey": "Option", - "publicKeys": "BTreeMap", - "endpointUrl": "Option", - "lastTxCounter": "u64" - }, - "DidAuthorizedCallOperation": { - "did": "DidIdentifierOf", - "txCounter": "u64", - "call": "DidCallableOf" - }, - "HttpUrl": { - "payload": "Text" - }, - "FtpUrl": { - "payload": "Text" - }, - "IpfsUrl": { - "payload": "Text" - }, - "Url": { - "_enum": { - "Http": "HttpUrl", - "Ftp": "FtpUrl", - "Ipfs": "IpfsUrl" - } - }, - "LockedBalance": { - "block": "BlockNumber", - "amount": "Balance" - }, - "BalanceOf": "Balance", - "RoundInfo": { - "current": "SessionIndex", - "first": "BlockNumber", - "length": "BlockNumber" - }, - "OrderedSet": "Vec", - "Stake": { - "owner": "AccountId", - "amount": "Balance" - }, - "TotalStake": { - "collators": "Balance", - "delegators": "Balance" - }, - "InflationInfo": { - "collator": "StakingInfo", - "delegator": "StakingInfo" - }, - "StakingInfo": { - "maxRate": "Perquintill", - "rewardRate": "RewardRate" - }, - "RewardRate": { - "annual": "Perquintill", - "perBlock": "Perquintill" - }, - "Delegator": { - "delegations": "Vec", - "total": "Balance" - }, - "CollatorSnapshot": { - "stake": "Balance", - "delegators": "Vec", - "total": "Balance" - }, - "Collator": { - "id": "AccountId", - "stake": "Balance", - "delegators": "Vec", - "total": "Balance", - "state": "CollatorStatus" - }, - "CollatorStatus": { - "_enum": { - "Active": "Null", - "Leaving": "SessionIndex" - } - }, - "DelegationCounter": { - "round": "SessionIndex", - "counter": "u32" - }, - "DelegationDetails": { - "owner": "DelegatorIdOf", - "revoked": "bool", - "permissions": "Permissions" - }, - "DelegationHierarchyDetails": { - "ctypeHash": "CtypeHashOf" - }, "DelegationStorageVersion": { "_enum": [ "V1", @@ -10633,6 +11968,7 @@ export const typesBundle = { 19 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -10817,6 +12153,11 @@ export const typesBundle = { "delegations": "Vec", "total": "Balance" }, + "CollatorSnapshot": { + "stake": "Balance", + "delegators": "Vec", + "total": "Balance" + }, "Collator": { "id": "AccountId", "stake": "Balance", @@ -10902,6 +12243,7 @@ export const typesBundle = { 20 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -11064,6 +12406,7 @@ export const typesBundle = { "first": "BlockNumber", "length": "BlockNumber" }, + "OrderedSet": "BoundedVec", "Stake": { "owner": "AccountId", "amount": "Balance" @@ -11126,6 +12469,14 @@ export const typesBundle = { "newDelegationKey": "Option", "newServiceEndpoints": "Option" }, + "DidUpdateDetails": { + "newAuthenticationKey": "Option", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "attestationKeyUpdate": "DidFragmentUpdateAction_DidVerificationKey", + "delegationKeyUpdate": "DidFragmentUpdateAction_DidVerificationKey", + "publicKeysToRemove": "DidVerificationKeysToRevoke", + "serviceEndpointsUpdate": "DidFragmentUpdateAction_ServiceEndpoints" + }, "ServiceEndpoints": { "contentHash": "Hash", "urls": "BoundedVec", @@ -11189,6 +12540,7 @@ export const typesBundle = { 22 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -11375,6 +12727,19 @@ export const typesBundle = { "delegations": "Vec", "total": "Balance" }, + "Collator": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "state": "CollatorStatus" + }, + "CollatorStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, "DelegationCounter": { "round": "SessionIndex", "counter": "u32" @@ -11431,6 +12796,7 @@ export const typesBundle = { "V2" ] }, + "MaxCollatorCandidates": "u32", "MaxDelegatorsPerCollator": "u32", "MaxCollatorsPerDelegator": "u32", "StakingStorageVersion": { @@ -11453,7 +12819,8 @@ export const typesBundle = { "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", "MaxUrlLength": "u32", - "MaxEndpointUrlsCount": "u32" + "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1" } }, { @@ -11462,6 +12829,7 @@ export const typesBundle = { 24 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -11728,6 +13096,7 @@ export const typesBundle = { "DidPublicKeyMap": "BoundedBTreeMap", "MaxUrlLength": "u32", "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -11751,6 +13120,7 @@ export const typesBundle = { 2699 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -11772,6 +13142,11 @@ export const typesBundle = { "DelegationNodeIdOf": "Hash", "DelegatorIdOf": "AccountId", "DelegateSignatureTypeOf": "DidSignature", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, "DelegationNode": { "hierarchyRootId": "DelegationNodeIdOf", "parent": "Option", @@ -11851,6 +13226,12 @@ export const typesBundle = { "InvalidEncryptionKeyFormat" ] }, + "UrlError": { + "_enum": [ + "InvalidUrlEncoding", + "InvalidUrlScheme" + ] + }, "InputError": { "_enum": [ "MaxKeyAgreementKeysLimitExceeded", @@ -11877,6 +13258,22 @@ export const typesBundle = { "call": "DidCallableOf", "submitter": "AccountId" }, + "HttpUrl": { + "payload": "Text" + }, + "FtpUrl": { + "payload": "Text" + }, + "IpfsUrl": { + "payload": "Text" + }, + "Url": { + "_enum": { + "Http": "HttpUrl", + "Ftp": "FtpUrl", + "Ipfs": "IpfsUrl" + } + }, "LockedBalance": { "block": "BlockNumber", "amount": "Balance" @@ -11936,6 +13333,11 @@ export const typesBundle = { "newCapabilityDelegationKey": "Option", "newServiceEndpoints": "Option" }, + "ServiceEndpoints": { + "contentHash": "Hash", + "urls": "BoundedVec", + "contentType": "ContentType" + }, "DidFragmentUpdateAction_ServiceEndpoints": { "_enum": { "Ignore": "Null", @@ -11950,6 +13352,12 @@ export const typesBundle = { "Delete": "Null" } }, + "ContentType": { + "_enum": [ + "application/json", + "application/ld+json" + ] + }, "DidStorageVersion": { "_enum": [ "V1", @@ -11978,6 +13386,9 @@ export const typesBundle = { "MaxVerificationKeysToRevoke": "u32", "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", + "MaxUrlLength": "u32", + "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -11998,7 +13409,265 @@ export const typesBundle = { { "minmax": [ 2700, - 10710 + 10409 + ], + "types": { + "DispatchError": "DispatchErrorPre6First", + "AccountInfo": "AccountInfoWithTripleRefCount", + "Address": "MultiAddress", + "AmountOf": "i128", + "Balance": "u128", + "BlockNumber": "u64", + "Index": "u64", + "LookupSource": "MultiAddress", + "CtypeCreatorOf": "AccountId", + "CtypeHashOf": "Hash", + "ClaimHashOf": "Hash", + "AttesterOf": "AccountId", + "AttestationDetails": { + "ctypeHash": "CtypeHashOf", + "attester": "AttesterOf", + "delegationId": "Option", + "revoked": "bool", + "deposit": "Deposit" + }, + "Permissions": "u32", + "DelegationNodeIdOf": "Hash", + "DelegatorIdOf": "AccountId", + "DelegateSignatureTypeOf": "DidSignature", + "DelegationNode": { + "hierarchyRootId": "DelegationNodeIdOf", + "parent": "Option", + "children": "BoundedBTreeSet", + "details": "DelegationDetails", + "deposit": "Deposit" + }, + "KeyIdOf": "Hash", + "DidIdentifierOf": "AccountId", + "AccountIdentifierOf": "AccountId", + "BlockNumberOf": "BlockNumber", + "DidCallableOf": "Call", + "DidVerificationKey": { + "_enum": { + "Ed25519": "[u8; 32]", + "Sr25519": "[u8; 32]", + "Secp256k1": "[u8; 33]" + } + }, + "DidEncryptionKey": { + "_enum": { + "X25519": "[u8; 32]" + } + }, + "DidPublicKey": { + "_enum": { + "PublicVerificationKey": "DidVerificationKey", + "PublicEncryptionKey": "DidEncryptionKey" + } + }, + "DidVerificationKeyRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "DidSignature": { + "_enum": { + "Ed25519": "Ed25519Signature", + "Sr25519": "Sr25519Signature", + "Ecdsa-Secp256k1": "EcdsaSignature" + } + }, + "DidError": { + "_enum": { + "StorageError": "StorageError", + "SignatureError": "SignatureError", + "InputError": "InputError", + "InternalError": "Null" + } + }, + "StorageError": { + "_enum": { + "DidAlreadyPresent": "Null", + "DidNotPresent": "Null", + "DidKeyNotPresent": "DidVerificationKeyRelationship", + "KeyNotPresent": "Null", + "CurrentlyActiveKey": "Null", + "MaxPublicKeysPerDidExceeded": "Null", + "MaxTotalKeyAgreementKeysExceeded": "Null", + "DidAlreadyDeleted": "Null" + } + }, + "SignatureError": { + "_enum": [ + "InvalidSignatureFormat", + "InvalidSignature", + "InvalidNonce", + "TransactionExpired" + ] + }, + "KeyError": { + "_enum": [ + "InvalidVerificationKeyFormat", + "InvalidEncryptionKeyFormat" + ] + }, + "InputError": { + "_enum": [ + "MaxKeyAgreementKeysLimitExceeded", + "MaxVerificationKeysToRemoveLimitExceeded" + ] + }, + "DidPublicKeyDetails": { + "key": "DidPublicKey", + "blockNumber": "BlockNumberOf" + }, + "DidDetails": { + "authenticationKey": "KeyIdOf", + "keyAgreementKeys": "DidKeyAgreementKeys", + "capabilityDelegationKey": "Option", + "assertionMethodKey": "Option", + "publicKeys": "DidPublicKeyMap", + "lastTxCounter": "u64", + "deposit": "Deposit" + }, + "DidAuthorizedCallOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64", + "call": "DidCallableOf", + "blockNumber": "BlockNumber", + "submitter": "AccountId" + }, + "LockedBalance": { + "block": "BlockNumber", + "amount": "Balance" + }, + "BalanceOf": "Balance", + "RoundInfo": { + "current": "SessionIndex", + "first": "BlockNumber", + "length": "BlockNumber" + }, + "Stake": { + "owner": "AccountId", + "amount": "Balance" + }, + "TotalStake": { + "collators": "Balance", + "delegators": "Balance" + }, + "InflationInfo": { + "collator": "StakingInfo", + "delegator": "StakingInfo" + }, + "StakingInfo": { + "maxRate": "Perquintill", + "rewardRate": "RewardRate" + }, + "RewardRate": { + "annual": "Perquintill", + "perBlock": "Perquintill" + }, + "Delegator": { + "delegations": "Vec", + "total": "Balance" + }, + "DelegationCounter": { + "round": "SessionIndex", + "counter": "u32" + }, + "DelegationDetails": { + "owner": "DelegatorIdOf", + "revoked": "bool", + "permissions": "Permissions" + }, + "DelegationHierarchyDetails": { + "ctypeHash": "CtypeHashOf" + }, + "DelegationStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + }, + "DidCreationDetails": { + "did": "DidIdentifierOf", + "submitter": "AccountId", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "newAssertionMethodKey": "Option", + "newCapabilityDelegationKey": "Option" + }, + "DidFragmentUpdateAction_ServiceEndpoints": { + "_enum": { + "Ignore": "Null", + "Change": "ServiceEndpoints", + "Delete": "Null" + } + }, + "DidFragmentUpdateAction_DidVerificationKey": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "DidStorageVersion": { + "_enum": [ + "V1", + "V2", + "V3" + ] + }, + "MaxDelegatorsPerCollator": "u32", + "MaxCollatorsPerDelegator": "u32", + "StakingStorageVersion": { + "_enum": [ + "V1_0_0", + "V2_0_0", + "V3_0_0", + "V4", + "V5" + ] + }, + "MaxDelegatedAttestations": "u32", + "MaxClaims": "u32", + "MaxChildren": "u32", + "DidNewKeyAgreementKeys": "BoundedBTreeSet", + "DidKeyAgreementKeys": "BoundedBTreeSet", + "DidVerificationKeysToRevoke": "BoundedBTreeSet", + "MaxNewKeyAgreementKeys": "u32", + "MaxTotalKeyAgreementKeys": "u32", + "MaxVerificationKeysToRevoke": "u32", + "MaxPublicKeysPerDid": "u32", + "DidPublicKeyMap": "BoundedBTreeMap", + "Keys": "SessionKeys1", + "MinCollators": "u32", + "MaxTopCandidates": "u32", + "Candidate": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "status": "CandidateStatus" + }, + "CandidateStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, + "Deposit": { + "owner": "AccountId", + "amount": "Balance" + } + } + }, + { + "minmax": [ + 10410, + 10719 ], "types": { "AccountInfo": "AccountInfoWithTripleRefCount", @@ -12230,6 +13899,7 @@ export const typesBundle = { "MaxVerificationKeysToRevoke": "u32", "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -12281,6 +13951,17 @@ export const typesBundle = { "serviceEndpoints": "Vec", "details": "DidDidDetails" }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, "StakingRates": { "collatorStakingRate": "Perquintill", "collatorRewardRate": "Perquintill", @@ -12303,6 +13984,17 @@ export const typesBundle = { "serviceEndpoints": "Vec", "details": "DidDidDetails" }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, "StakingRates": { "collatorStakingRate": "Perquintill", "collatorRewardRate": "Perquintill", @@ -12480,6 +14172,37 @@ export const typesBundle = { }, "version": 1 } + ], + "PublicCredentials": [ + { + "methods": { + "get_by_id": { + "description": "Return the public credential with the specified ID, if found.", + "params": [ + { + "name": "credential_id", + "type": "Hash" + } + ], + "type": "Option" + }, + "get_by_subject": { + "description": "Return all the public credentials linked to the specified subject.\n An optional filter can be passed to be applied to the result before being returned to the client.\n It returns an error if the provided specified subject ID is not valid.\n ", + "params": [ + { + "name": "subject", + "type": "Text" + }, + { + "name": "filter", + "type": "Option" + } + ], + "type": "Result, PublicCredentialError>" + } + }, + "version": 1 + } ] }, "types": [ @@ -12489,6 +14212,7 @@ export const typesBundle = { 8 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithDualRefCount", "Address": "AccountId", "Attestation": { @@ -12573,6 +14297,7 @@ export const typesBundle = { 9 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -12754,6 +14479,7 @@ export const typesBundle = { 11 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -12992,6 +14718,7 @@ export const typesBundle = { 16 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -13236,6 +14963,265 @@ export const typesBundle = { 17 ], "types": { + "DispatchError": "DispatchErrorPre6First", + "AccountInfo": "AccountInfoWithTripleRefCount", + "Address": "MultiAddress", + "AmountOf": "i128", + "Balance": "u128", + "BlockNumber": "u64", + "Index": "u64", + "LookupSource": "MultiAddress", + "CtypeCreatorOf": "AccountId", + "CtypeHashOf": "Hash", + "ClaimHashOf": "Hash", + "AttesterOf": "AccountId", + "AttestationDetails": { + "ctypeHash": "CtypeHashOf", + "attester": "AttesterOf", + "delegationId": "Option", + "revoked": "bool" + }, + "Permissions": "u32", + "DelegationNodeIdOf": "Hash", + "DelegatorIdOf": "AccountId", + "DelegateSignatureTypeOf": "Vec", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, + "DelegationNode": { + "hierarchyRootId": "DelegationNodeIdOf", + "parent": "Option", + "children": "BTreeSet", + "details": "DelegationDetails" + }, + "KeyIdOf": "Hash", + "DidIdentifierOf": "AccountId", + "AccountIdentifierOf": "AccountId", + "BlockNumberOf": "BlockNumber", + "DidCallableOf": "Call", + "DidVerificationKey": { + "_enum": { + "Ed25519": "[u8; 32]", + "Sr25519": "[u8; 32]", + "Secp256k1": "[u8; 33]" + } + }, + "DidEncryptionKey": { + "_enum": { + "X25519": "[u8; 32]" + } + }, + "DidPublicKey": { + "_enum": { + "PublicVerificationKey": "DidVerificationKey", + "PublicEncryptionKey": "DidEncryptionKey" + } + }, + "DidVerificationKeyRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "DidSignature": { + "_enum": { + "Ed25519": "Ed25519Signature", + "Sr25519": "Sr25519Signature", + "Ecdsa-Secp256k1": "EcdsaSignature" + } + }, + "DidError": { + "_enum": { + "StorageError": "StorageError", + "SignatureError": "SignatureError", + "UrlError": "UrlError", + "InputError": "InputError", + "InternalError": "Null" + } + }, + "StorageError": { + "_enum": { + "DidAlreadyPresent": "Null", + "DidNotPresent": "Null", + "DidKeyNotPresent": "DidVerificationKeyRelationship", + "VerificationKeyNotPresent": "Null", + "CurrentlyActiveKey": "Null", + "MaxTxCounterValue": "Null" + } + }, + "SignatureError": { + "_enum": [ + "InvalidSignatureFormat", + "InvalidSignature", + "InvalidNonce" + ] + }, + "KeyError": { + "_enum": [ + "InvalidVerificationKeyFormat", + "InvalidEncryptionKeyFormat" + ] + }, + "UrlError": { + "_enum": [ + "InvalidUrlEncoding", + "InvalidUrlScheme" + ] + }, + "InputError": { + "_enum": [ + "MaxKeyAgreementKeysLimitExceeded", + "MaxVerificationKeysToRemoveLimitExceeded", + "MaxUrlLengthExceeded" + ] + }, + "DidPublicKeyDetails": { + "key": "DidPublicKey", + "blockNumber": "BlockNumberOf" + }, + "DidDetails": { + "authenticationKey": "KeyIdOf", + "keyAgreementKeys": "BTreeSet", + "delegationKey": "Option", + "attestationKey": "Option", + "publicKeys": "BTreeMap", + "endpointUrl": "Option", + "lastTxCounter": "u64" + }, + "DidCreationOperation": { + "did": "DidIdentifierOf", + "newAuthenticationKey": "DidVerificationKey", + "newKeyAgreementKeys": "BTreeSet", + "newAttestationKey": "Option", + "newDelegationKey": "Option", + "newEndpointUrl": "Option" + }, + "DidUpdateOperation": { + "did": "DidIdentifierOf", + "newAuthenticationKey": "Option", + "newKeyAgreementKeys": "BTreeSet", + "attestationKeyUpdate": "DidVerificationKeyUpdateAction", + "delegationKeyUpdate": "DidVerificationKeyUpdateAction", + "publicKeysToRemove": "BTreeSet", + "newEndpointUrl": "Option", + "txCounter": "u64" + }, + "DidVerificationKeyUpdateAction": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "DidDeletionOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64" + }, + "DidAuthorizedCallOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64", + "call": "DidCallableOf" + }, + "HttpUrl": { + "payload": "Text" + }, + "FtpUrl": { + "payload": "Text" + }, + "IpfsUrl": { + "payload": "Text" + }, + "Url": { + "_enum": { + "Http": "HttpUrl", + "Ftp": "FtpUrl", + "Ipfs": "IpfsUrl" + } + }, + "LockedBalance": { + "block": "BlockNumber", + "amount": "Balance" + }, + "BalanceOf": "Balance", + "RoundInfo": { + "current": "SessionIndex", + "first": "BlockNumber", + "length": "BlockNumber" + }, + "OrderedSet": "Vec", + "Stake": { + "owner": "AccountId", + "amount": "Balance" + }, + "TotalStake": { + "collators": "Balance", + "delegators": "Balance" + }, + "InflationInfo": { + "collator": "StakingInfo", + "delegator": "StakingInfo" + }, + "StakingInfo": { + "maxRate": "Perquintill", + "rewardRate": "RewardRate" + }, + "RewardRate": { + "annual": "Perquintill", + "perBlock": "Perquintill" + }, + "Delegator": { + "delegations": "Vec", + "total": "Balance" + }, + "CollatorSnapshot": { + "stake": "Balance", + "delegators": "Vec", + "total": "Balance" + }, + "Collator": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "state": "CollatorStatus" + }, + "CollatorStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, + "DelegationCounter": { + "round": "SessionIndex", + "counter": "u32" + }, + "DelegationDetails": { + "owner": "DelegatorIdOf", + "revoked": "bool", + "permissions": "Permissions" + }, + "DelegationHierarchyDetails": { + "ctypeHash": "CtypeHashOf" + }, + "DelegationStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + } + } + }, + { + "minmax": [ + 18, + 18 + ], + "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -13457,234 +15443,6 @@ export const typesBundle = { "DelegationHierarchyDetails": { "ctypeHash": "CtypeHashOf" }, - "DelegationStorageVersion": { - "_enum": [ - "V1", - "V2" - ] - } - } - }, - { - "minmax": [ - 18, - 18 - ], - "types": { - "AccountInfo": "AccountInfoWithTripleRefCount", - "Address": "MultiAddress", - "AmountOf": "i128", - "Balance": "u128", - "BlockNumber": "u64", - "Index": "u64", - "LookupSource": "MultiAddress", - "CtypeCreatorOf": "AccountId", - "CtypeHashOf": "Hash", - "ClaimHashOf": "Hash", - "AttesterOf": "AccountId", - "AttestationDetails": { - "ctypeHash": "CtypeHashOf", - "attester": "AttesterOf", - "delegationId": "Option", - "revoked": "bool" - }, - "Permissions": "u32", - "DelegationNodeIdOf": "Hash", - "DelegatorIdOf": "AccountId", - "DelegateSignatureTypeOf": "Vec", - "DelegationRoot": { - "ctypeHash": "CtypeHashOf", - "owner": "DelegatorIdOf", - "revoked": "bool" - }, - "DelegationNode": { - "hierarchyRootId": "DelegationNodeIdOf", - "parent": "Option", - "children": "BTreeSet", - "details": "DelegationDetails" - }, - "KeyIdOf": "Hash", - "DidIdentifierOf": "AccountId", - "AccountIdentifierOf": "AccountId", - "BlockNumberOf": "BlockNumber", - "DidCallableOf": "Call", - "DidVerificationKey": { - "_enum": { - "Ed25519": "[u8; 32]", - "Sr25519": "[u8; 32]", - "Secp256k1": "[u8; 33]" - } - }, - "DidEncryptionKey": { - "_enum": { - "X25519": "[u8; 32]" - } - }, - "DidPublicKey": { - "_enum": { - "PublicVerificationKey": "DidVerificationKey", - "PublicEncryptionKey": "DidEncryptionKey" - } - }, - "DidVerificationKeyRelationship": { - "_enum": [ - "Authentication", - "CapabilityDelegation", - "CapabilityInvocation", - "AssertionMethod" - ] - }, - "DidSignature": { - "_enum": { - "Ed25519": "Ed25519Signature", - "Sr25519": "Sr25519Signature", - "Ecdsa-Secp256k1": "EcdsaSignature" - } - }, - "DidError": { - "_enum": { - "StorageError": "StorageError", - "SignatureError": "SignatureError", - "UrlError": "UrlError", - "InputError": "InputError", - "InternalError": "Null" - } - }, - "StorageError": { - "_enum": { - "DidAlreadyPresent": "Null", - "DidNotPresent": "Null", - "DidKeyNotPresent": "DidVerificationKeyRelationship", - "VerificationKeyNotPresent": "Null", - "CurrentlyActiveKey": "Null", - "MaxTxCounterValue": "Null" - } - }, - "SignatureError": { - "_enum": [ - "InvalidSignatureFormat", - "InvalidSignature", - "InvalidNonce" - ] - }, - "KeyError": { - "_enum": [ - "InvalidVerificationKeyFormat", - "InvalidEncryptionKeyFormat" - ] - }, - "UrlError": { - "_enum": [ - "InvalidUrlEncoding", - "InvalidUrlScheme" - ] - }, - "InputError": { - "_enum": [ - "MaxKeyAgreementKeysLimitExceeded", - "MaxVerificationKeysToRemoveLimitExceeded", - "MaxUrlLengthExceeded" - ] - }, - "DidPublicKeyDetails": { - "key": "DidPublicKey", - "blockNumber": "BlockNumberOf" - }, - "DidDetails": { - "authenticationKey": "KeyIdOf", - "keyAgreementKeys": "BTreeSet", - "delegationKey": "Option", - "attestationKey": "Option", - "publicKeys": "BTreeMap", - "endpointUrl": "Option", - "lastTxCounter": "u64" - }, - "DidAuthorizedCallOperation": { - "did": "DidIdentifierOf", - "txCounter": "u64", - "call": "DidCallableOf" - }, - "HttpUrl": { - "payload": "Text" - }, - "FtpUrl": { - "payload": "Text" - }, - "IpfsUrl": { - "payload": "Text" - }, - "Url": { - "_enum": { - "Http": "HttpUrl", - "Ftp": "FtpUrl", - "Ipfs": "IpfsUrl" - } - }, - "LockedBalance": { - "block": "BlockNumber", - "amount": "Balance" - }, - "BalanceOf": "Balance", - "RoundInfo": { - "current": "SessionIndex", - "first": "BlockNumber", - "length": "BlockNumber" - }, - "OrderedSet": "Vec", - "Stake": { - "owner": "AccountId", - "amount": "Balance" - }, - "TotalStake": { - "collators": "Balance", - "delegators": "Balance" - }, - "InflationInfo": { - "collator": "StakingInfo", - "delegator": "StakingInfo" - }, - "StakingInfo": { - "maxRate": "Perquintill", - "rewardRate": "RewardRate" - }, - "RewardRate": { - "annual": "Perquintill", - "perBlock": "Perquintill" - }, - "Delegator": { - "delegations": "Vec", - "total": "Balance" - }, - "CollatorSnapshot": { - "stake": "Balance", - "delegators": "Vec", - "total": "Balance" - }, - "Collator": { - "id": "AccountId", - "stake": "Balance", - "delegators": "Vec", - "total": "Balance", - "state": "CollatorStatus" - }, - "CollatorStatus": { - "_enum": { - "Active": "Null", - "Leaving": "SessionIndex" - } - }, - "DelegationCounter": { - "round": "SessionIndex", - "counter": "u32" - }, - "DelegationDetails": { - "owner": "DelegatorIdOf", - "revoked": "bool", - "permissions": "Permissions" - }, - "DelegationHierarchyDetails": { - "ctypeHash": "CtypeHashOf" - }, "DelegationStorageVersion": { "_enum": [ "V1", @@ -13714,6 +15472,7 @@ export const typesBundle = { 19 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -13898,6 +15657,11 @@ export const typesBundle = { "delegations": "Vec", "total": "Balance" }, + "CollatorSnapshot": { + "stake": "Balance", + "delegators": "Vec", + "total": "Balance" + }, "Collator": { "id": "AccountId", "stake": "Balance", @@ -13983,6 +15747,7 @@ export const typesBundle = { 20 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -14145,6 +15910,7 @@ export const typesBundle = { "first": "BlockNumber", "length": "BlockNumber" }, + "OrderedSet": "BoundedVec", "Stake": { "owner": "AccountId", "amount": "Balance" @@ -14207,6 +15973,14 @@ export const typesBundle = { "newDelegationKey": "Option", "newServiceEndpoints": "Option" }, + "DidUpdateDetails": { + "newAuthenticationKey": "Option", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "attestationKeyUpdate": "DidFragmentUpdateAction_DidVerificationKey", + "delegationKeyUpdate": "DidFragmentUpdateAction_DidVerificationKey", + "publicKeysToRemove": "DidVerificationKeysToRevoke", + "serviceEndpointsUpdate": "DidFragmentUpdateAction_ServiceEndpoints" + }, "ServiceEndpoints": { "contentHash": "Hash", "urls": "BoundedVec", @@ -14270,6 +16044,7 @@ export const typesBundle = { 22 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -14456,6 +16231,19 @@ export const typesBundle = { "delegations": "Vec", "total": "Balance" }, + "Collator": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "state": "CollatorStatus" + }, + "CollatorStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, "DelegationCounter": { "round": "SessionIndex", "counter": "u32" @@ -14512,6 +16300,7 @@ export const typesBundle = { "V2" ] }, + "MaxCollatorCandidates": "u32", "MaxDelegatorsPerCollator": "u32", "MaxCollatorsPerDelegator": "u32", "StakingStorageVersion": { @@ -14534,7 +16323,8 @@ export const typesBundle = { "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", "MaxUrlLength": "u32", - "MaxEndpointUrlsCount": "u32" + "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1" } }, { @@ -14543,6 +16333,7 @@ export const typesBundle = { 24 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -14809,6 +16600,7 @@ export const typesBundle = { "DidPublicKeyMap": "BoundedBTreeMap", "MaxUrlLength": "u32", "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -14832,6 +16624,7 @@ export const typesBundle = { 2699 ], "types": { + "DispatchError": "DispatchErrorPre6First", "AccountInfo": "AccountInfoWithTripleRefCount", "Address": "MultiAddress", "AmountOf": "i128", @@ -14853,6 +16646,11 @@ export const typesBundle = { "DelegationNodeIdOf": "Hash", "DelegatorIdOf": "AccountId", "DelegateSignatureTypeOf": "DidSignature", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, "DelegationNode": { "hierarchyRootId": "DelegationNodeIdOf", "parent": "Option", @@ -14932,6 +16730,12 @@ export const typesBundle = { "InvalidEncryptionKeyFormat" ] }, + "UrlError": { + "_enum": [ + "InvalidUrlEncoding", + "InvalidUrlScheme" + ] + }, "InputError": { "_enum": [ "MaxKeyAgreementKeysLimitExceeded", @@ -14958,6 +16762,22 @@ export const typesBundle = { "call": "DidCallableOf", "submitter": "AccountId" }, + "HttpUrl": { + "payload": "Text" + }, + "FtpUrl": { + "payload": "Text" + }, + "IpfsUrl": { + "payload": "Text" + }, + "Url": { + "_enum": { + "Http": "HttpUrl", + "Ftp": "FtpUrl", + "Ipfs": "IpfsUrl" + } + }, "LockedBalance": { "block": "BlockNumber", "amount": "Balance" @@ -15017,6 +16837,11 @@ export const typesBundle = { "newCapabilityDelegationKey": "Option", "newServiceEndpoints": "Option" }, + "ServiceEndpoints": { + "contentHash": "Hash", + "urls": "BoundedVec", + "contentType": "ContentType" + }, "DidFragmentUpdateAction_ServiceEndpoints": { "_enum": { "Ignore": "Null", @@ -15031,6 +16856,12 @@ export const typesBundle = { "Delete": "Null" } }, + "ContentType": { + "_enum": [ + "application/json", + "application/ld+json" + ] + }, "DidStorageVersion": { "_enum": [ "V1", @@ -15059,6 +16890,9 @@ export const typesBundle = { "MaxVerificationKeysToRevoke": "u32", "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", + "MaxUrlLength": "u32", + "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -15079,7 +16913,265 @@ export const typesBundle = { { "minmax": [ 2700, - 10710 + 10409 + ], + "types": { + "DispatchError": "DispatchErrorPre6First", + "AccountInfo": "AccountInfoWithTripleRefCount", + "Address": "MultiAddress", + "AmountOf": "i128", + "Balance": "u128", + "BlockNumber": "u64", + "Index": "u64", + "LookupSource": "MultiAddress", + "CtypeCreatorOf": "AccountId", + "CtypeHashOf": "Hash", + "ClaimHashOf": "Hash", + "AttesterOf": "AccountId", + "AttestationDetails": { + "ctypeHash": "CtypeHashOf", + "attester": "AttesterOf", + "delegationId": "Option", + "revoked": "bool", + "deposit": "Deposit" + }, + "Permissions": "u32", + "DelegationNodeIdOf": "Hash", + "DelegatorIdOf": "AccountId", + "DelegateSignatureTypeOf": "DidSignature", + "DelegationNode": { + "hierarchyRootId": "DelegationNodeIdOf", + "parent": "Option", + "children": "BoundedBTreeSet", + "details": "DelegationDetails", + "deposit": "Deposit" + }, + "KeyIdOf": "Hash", + "DidIdentifierOf": "AccountId", + "AccountIdentifierOf": "AccountId", + "BlockNumberOf": "BlockNumber", + "DidCallableOf": "Call", + "DidVerificationKey": { + "_enum": { + "Ed25519": "[u8; 32]", + "Sr25519": "[u8; 32]", + "Secp256k1": "[u8; 33]" + } + }, + "DidEncryptionKey": { + "_enum": { + "X25519": "[u8; 32]" + } + }, + "DidPublicKey": { + "_enum": { + "PublicVerificationKey": "DidVerificationKey", + "PublicEncryptionKey": "DidEncryptionKey" + } + }, + "DidVerificationKeyRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "DidSignature": { + "_enum": { + "Ed25519": "Ed25519Signature", + "Sr25519": "Sr25519Signature", + "Ecdsa-Secp256k1": "EcdsaSignature" + } + }, + "DidError": { + "_enum": { + "StorageError": "StorageError", + "SignatureError": "SignatureError", + "InputError": "InputError", + "InternalError": "Null" + } + }, + "StorageError": { + "_enum": { + "DidAlreadyPresent": "Null", + "DidNotPresent": "Null", + "DidKeyNotPresent": "DidVerificationKeyRelationship", + "KeyNotPresent": "Null", + "CurrentlyActiveKey": "Null", + "MaxPublicKeysPerDidExceeded": "Null", + "MaxTotalKeyAgreementKeysExceeded": "Null", + "DidAlreadyDeleted": "Null" + } + }, + "SignatureError": { + "_enum": [ + "InvalidSignatureFormat", + "InvalidSignature", + "InvalidNonce", + "TransactionExpired" + ] + }, + "KeyError": { + "_enum": [ + "InvalidVerificationKeyFormat", + "InvalidEncryptionKeyFormat" + ] + }, + "InputError": { + "_enum": [ + "MaxKeyAgreementKeysLimitExceeded", + "MaxVerificationKeysToRemoveLimitExceeded" + ] + }, + "DidPublicKeyDetails": { + "key": "DidPublicKey", + "blockNumber": "BlockNumberOf" + }, + "DidDetails": { + "authenticationKey": "KeyIdOf", + "keyAgreementKeys": "DidKeyAgreementKeys", + "capabilityDelegationKey": "Option", + "assertionMethodKey": "Option", + "publicKeys": "DidPublicKeyMap", + "lastTxCounter": "u64", + "deposit": "Deposit" + }, + "DidAuthorizedCallOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64", + "call": "DidCallableOf", + "blockNumber": "BlockNumber", + "submitter": "AccountId" + }, + "LockedBalance": { + "block": "BlockNumber", + "amount": "Balance" + }, + "BalanceOf": "Balance", + "RoundInfo": { + "current": "SessionIndex", + "first": "BlockNumber", + "length": "BlockNumber" + }, + "Stake": { + "owner": "AccountId", + "amount": "Balance" + }, + "TotalStake": { + "collators": "Balance", + "delegators": "Balance" + }, + "InflationInfo": { + "collator": "StakingInfo", + "delegator": "StakingInfo" + }, + "StakingInfo": { + "maxRate": "Perquintill", + "rewardRate": "RewardRate" + }, + "RewardRate": { + "annual": "Perquintill", + "perBlock": "Perquintill" + }, + "Delegator": { + "delegations": "Vec", + "total": "Balance" + }, + "DelegationCounter": { + "round": "SessionIndex", + "counter": "u32" + }, + "DelegationDetails": { + "owner": "DelegatorIdOf", + "revoked": "bool", + "permissions": "Permissions" + }, + "DelegationHierarchyDetails": { + "ctypeHash": "CtypeHashOf" + }, + "DelegationStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + }, + "DidCreationDetails": { + "did": "DidIdentifierOf", + "submitter": "AccountId", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "newAssertionMethodKey": "Option", + "newCapabilityDelegationKey": "Option" + }, + "DidFragmentUpdateAction_ServiceEndpoints": { + "_enum": { + "Ignore": "Null", + "Change": "ServiceEndpoints", + "Delete": "Null" + } + }, + "DidFragmentUpdateAction_DidVerificationKey": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "DidStorageVersion": { + "_enum": [ + "V1", + "V2", + "V3" + ] + }, + "MaxDelegatorsPerCollator": "u32", + "MaxCollatorsPerDelegator": "u32", + "StakingStorageVersion": { + "_enum": [ + "V1_0_0", + "V2_0_0", + "V3_0_0", + "V4", + "V5" + ] + }, + "MaxDelegatedAttestations": "u32", + "MaxClaims": "u32", + "MaxChildren": "u32", + "DidNewKeyAgreementKeys": "BoundedBTreeSet", + "DidKeyAgreementKeys": "BoundedBTreeSet", + "DidVerificationKeysToRevoke": "BoundedBTreeSet", + "MaxNewKeyAgreementKeys": "u32", + "MaxTotalKeyAgreementKeys": "u32", + "MaxVerificationKeysToRevoke": "u32", + "MaxPublicKeysPerDid": "u32", + "DidPublicKeyMap": "BoundedBTreeMap", + "Keys": "SessionKeys1", + "MinCollators": "u32", + "MaxTopCandidates": "u32", + "Candidate": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "status": "CandidateStatus" + }, + "CandidateStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + }, + "Deposit": { + "owner": "AccountId", + "amount": "Balance" + } + } + }, + { + "minmax": [ + 10410, + 10719 ], "types": { "AccountInfo": "AccountInfoWithTripleRefCount", @@ -15311,6 +17403,7 @@ export const typesBundle = { "MaxVerificationKeysToRevoke": "u32", "MaxPublicKeysPerDid": "u32", "DidPublicKeyMap": "BoundedBTreeMap", + "Keys": "SessionKeys1", "MinCollators": "u32", "MaxTopCandidates": "u32", "Candidate": { @@ -15362,6 +17455,17 @@ export const typesBundle = { "serviceEndpoints": "Vec", "details": "DidDidDetails" }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, "StakingRates": { "collatorStakingRate": "Perquintill", "collatorRewardRate": "Perquintill", @@ -15384,6 +17488,17 @@ export const typesBundle = { "serviceEndpoints": "Vec", "details": "DidDidDetails" }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, "StakingRates": { "collatorStakingRate": "Perquintill", "collatorRewardRate": "Perquintill", @@ -70571,7 +72686,8 @@ export const typesBundle = { "failed": "bool", "lpTokens": "Balance", "claimedLpTokens": "bool", - "finishTimestamp": "Moment" + "finishTimestamp": "Moment", + "baseAsset": "AssetId" }, "PoolData": { "multiplier": "u32", @@ -70581,7 +72697,8 @@ export const typesBundle = { "totalTokensInPool": "Balance", "rewards": "Balance", "rewardsToBeDistributed": "Balance", - "isRemoved": "bool" + "isRemoved": "bool", + "baseAsset": "AssetId" }, "TokenInfo": { "farmsTotalMultiplier": "u32", @@ -70597,7 +72714,8 @@ export const typesBundle = { "rewardAsset": "AssetId", "isFarm": "bool", "pooledTokens": "Balance", - "rewards": "Balance" + "rewards": "Balance", + "baseAsset": "AssetId" }, "MultiChainHeight": { "_enum": { @@ -70964,6 +73082,26 @@ export const typesBundle = { "block": "BlockNumber", "weight": "Balance" }, + "VotingOption": { + "_enum": [ + "Yes", + "No" + ] + }, + "HermesVotingInfo": { + "votingOption": "VotingOption", + "numberOfHermes": "Balance", + "hermesWithdrawn": "bool" + }, + "HermesPollInfo": { + "creator": "AccountId", + "hermesLocked": "Balance", + "pollStartTimestamp": "Moment", + "pollEndTimestamp": "Moment", + "title": "String", + "description": "String", + "creatorHermesWithdrawn": "bool" + }, "PendingMultisigAccount": { "approvingAccounts": "Vec", "migrateAt": "Option" @@ -72216,7 +74354,8 @@ export const typesBundle = { "failed": "bool", "lpTokens": "Balance", "claimedLpTokens": "bool", - "finishTimestamp": "Moment" + "finishTimestamp": "Moment", + "baseAsset": "AssetId" }, "PoolData": { "multiplier": "u32", @@ -72226,7 +74365,8 @@ export const typesBundle = { "totalTokensInPool": "Balance", "rewards": "Balance", "rewardsToBeDistributed": "Balance", - "isRemoved": "bool" + "isRemoved": "bool", + "baseAsset": "AssetId" }, "TokenInfo": { "farmsTotalMultiplier": "u32", @@ -72242,7 +74382,8 @@ export const typesBundle = { "rewardAsset": "AssetId", "isFarm": "bool", "pooledTokens": "Balance", - "rewards": "Balance" + "rewards": "Balance", + "baseAsset": "AssetId" }, "MultiChainHeight": { "_enum": { @@ -72609,6 +74750,26 @@ export const typesBundle = { "block": "BlockNumber", "weight": "Balance" }, + "VotingOption": { + "_enum": [ + "Yes", + "No" + ] + }, + "HermesVotingInfo": { + "votingOption": "VotingOption", + "numberOfHermes": "Balance", + "hermesWithdrawn": "bool" + }, + "HermesPollInfo": { + "creator": "AccountId", + "hermesLocked": "Balance", + "pollStartTimestamp": "Moment", + "pollEndTimestamp": "Moment", + "title": "String", + "description": "String", + "creatorHermesWithdrawn": "bool" + }, "PendingMultisigAccount": { "approvingAccounts": "Vec", "migrateAt": "Option" diff --git a/packages/apps-electron/package.json b/packages/apps-electron/package.json index 2061525a14..b65301ef83 100644 --- a/packages/apps-electron/package.json +++ b/packages/apps-electron/package.json @@ -14,7 +14,7 @@ "dependencies": { "@babel/core": "^7.20.12", "@babel/polyfill": "^7.12.1", - "@polkadot/dev": "^0.68.7", + "@polkadot/dev": "^0.68.10", "@polkadot/react-components": "^0.124.2-62-x", "electron-log": "^5.0.0-beta.16", "electron-updater": "^5.3.0" diff --git a/packages/apps/package.json b/packages/apps/package.json index fa9d7d8365..6f3086331d 100644 --- a/packages/apps/package.json +++ b/packages/apps/package.json @@ -18,7 +18,7 @@ "@babel/runtime": "^7.20.13", "@polkadot/apps-config": "^0.124.2-62-x", "@polkadot/apps-routing": "^0.124.2-62-x", - "@polkadot/dev": "^0.68.7", + "@polkadot/dev": "^0.68.10", "@polkadot/react-api": "^0.124.2-62-x", "@polkadot/react-components": "^0.124.2-62-x", "@polkadot/react-hooks": "^0.124.2-62-x", @@ -35,14 +35,11 @@ "buffer": "^6.0.3", "copy-webpack-plugin": "^11.0.0", "crypto-browserify": "^3.12.0", - "css-loader": "^5.2.7", + "css-loader": "^6.7.3", "empty": "^0.10.1", - "html-loader": "^4.2.0", "html-webpack-plugin": "^5.5.0", "https-browserify": "^1.0.0", - "markdown-loader": "^8.0.0", "mini-css-extract-plugin": "^2.7.2", - "null-loader": "^4.0.1", "os-browserify": "^0.3.0", "path-browserify": "^1.0.1", "process": "^0.11.10", diff --git a/packages/apps/src/Menu/NodeInfo.tsx b/packages/apps/src/Menu/NodeInfo.tsx index 41037b249b..fe07c4b7de 100644 --- a/packages/apps/src/Menu/NodeInfo.tsx +++ b/packages/apps/src/Menu/NodeInfo.tsx @@ -9,10 +9,9 @@ import styled from 'styled-components'; import { useApi } from '@polkadot/react-hooks'; import { NodeName, NodeVersion } from '@polkadot/react-query'; -// eslint-disable-next-line @typescript-eslint/no-var-requires -const pkgJson = require('../../package.json') as { version: string }; +import { packageInfo } from '../packageInfo'; -const uiInfo = `apps v${pkgJson.version.replace('-x', '')}`; +const uiInfo = `apps v${packageInfo.version.replace('-x', '')}`; function NodeInfo ({ className = '' }: Props): React.ReactElement { const { api, isApiReady } = useApi(); diff --git a/packages/apps/webpack.base.cjs b/packages/apps/webpack.base.cjs index f66e45a402..f8ce7eb487 100644 --- a/packages/apps/webpack.base.cjs +++ b/packages/apps/webpack.base.cjs @@ -45,7 +45,12 @@ function createWebpack (context, mode = 'production') { test: /\.css$/, use: [ MiniCssExtractPlugin.loader, - require.resolve('css-loader') + { + loader: require.resolve('css-loader'), + options: { + url: false + } + } ] }, { @@ -58,38 +63,6 @@ function createWebpack (context, mode = 'production') { options: require('@polkadot/dev/config/babel-config-webpack.cjs') } ] - }, - { - test: /\.md$/, - use: [ - require.resolve('html-loader'), - require.resolve('markdown-loader') - ] - }, - { - exclude: [/semantic-ui-css/], - test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/], - type: 'asset/resource', - generator: { - filename: 'res.[contenthash].[ext]' - } - }, - { - exclude: [/semantic-ui-css/], - test: [/\.eot$/, /\.ttf$/, /\.svg$/, /\.woff$/, /\.woff2$/], - type: 'asset/resource', - generator: { - filename: 'res.[contenthash].[ext]' - } - }, - { - include: [/semantic-ui-css/], - test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/, /\.eot$/, /\.ttf$/, /\.svg$/, /\.woff$/, /\.woff2$/], - use: [ - { - loader: require.resolve('null-loader') - } - ] } ] }, @@ -105,32 +78,34 @@ function createWebpack (context, mode = 'production') { runtimeChunk: 'single', splitChunks: { cacheGroups: [ - /apps-config[\\/]src[\\/]api[\\/]typesBundle/, - /apps-config[\\/]src[\\/]ui[\\/]logos/, - /react-components[\\/]src[\\/]IdentityIcon[\\/]RoboHash/, - /node_modules/ - ].reduce((result, test, index) => ({ + ['type', /[\\/]packages[\\/]apps-config[\\/]src[\\/]api[\\/]typesBundle/], + ['logo', /[\\/]packages[\\/]apps-config[\\/]src[\\/]ui[\\/]logos/], + ['robo', /[\\/]packages[\\/]react-components[\\/]src[\\/]IdentityIcon[\\/]RoboHash/], + ['comm', /[\\/]packages[\\/]react-.*[\\/]src[\\/]/], + ['page', /[\\/]packages[\\/]page-.*[\\/]src[\\/]/], + ['modu', /[\\/]node_modules[\\/]/] + ].reduce((result, [name, test], index) => ({ ...result, [`cacheGroup${index}`]: { chunks: 'initial', enforce: true, maxSize: 1_500_000, minSize: 0, + name, priority: -1 * index, test } - }), {}), - name: 'x' + }), {}) } }, output: { // this is for dynamic imports - chunkFilename: 'dyn.[contenthash].js', + chunkFilename: 'dyna.[contenthash].js', // this is via splitChunks filename: ({ chunk: { name } }) => ['main', 'runtime'].includes(name) - ? `${name === 'main' ? 'app' : 'run'}.[contenthash].js` - : 'mod.[contenthash].js', + ? `${name === 'main' ? 'main' : 'load'}.[contenthash].js` + : `${name.split('-')[0]}.[contenthash].js`, globalObject: '(typeof self !== \'undefined\' ? self : this)', hashFunction: 'xxhash64', path: path.join(context, 'build'), @@ -157,7 +132,7 @@ function createWebpack (context, mode = 'production') { }), new webpack.optimize.SplitChunksPlugin(), new MiniCssExtractPlugin({ - filename: 'res.[contenthash].css' + filename: 'extr.[contenthash].css' }) ].concat(plugins), resolve: { diff --git a/packages/page-addresses/package.json b/packages/page-addresses/package.json index bbb546bf75..0f9378fc6e 100644 --- a/packages/page-addresses/package.json +++ b/packages/page-addresses/package.json @@ -19,6 +19,6 @@ }, "devDependencies": { "@testing-library/react": "^13.4.0", - "testcontainers": "^9.1.1" + "testcontainers": "^9.1.2" } } diff --git a/packages/page-claims/src/usePolkadotPreclaims.ts b/packages/page-claims/src/usePolkadotPreclaims.ts index bc7199f71b..dfd37ad1d7 100644 --- a/packages/page-claims/src/usePolkadotPreclaims.ts +++ b/packages/page-claims/src/usePolkadotPreclaims.ts @@ -43,7 +43,7 @@ function usePolkadotPreclaimsImpl (): string[] { .map(([address]) => address) ); } - ); + ).catch(console.error); }, [api, allAccounts, mountedRef, preclaims]); return needsAttest; diff --git a/packages/page-council/src/Overview/Vote.tsx b/packages/page-council/src/Overview/Vote.tsx index dbc271891a..06e63f8e67 100644 --- a/packages/page-council/src/Overview/Vote.tsx +++ b/packages/page-council/src/Overview/Vote.tsx @@ -45,13 +45,16 @@ function Vote ({ electionsInfo }: Props): React.ReactElement | null { }, [electionsInfo]); useEffect((): void => { - accountId && api.derive.council.votesOf(accountId).then(({ votes }): void => { - setDefaultVotes( - votes - .map((a) => a.toString()) - .filter((a) => available.includes(a)) - ); - }); + accountId && api.derive.council + .votesOf(accountId) + .then(({ votes }): void => { + setDefaultVotes( + votes + .map((a) => a.toString()) + .filter((a) => available.includes(a)) + ); + }) + .catch(console.error); }, [api, accountId, available]); const bondValue = useMemo( diff --git a/packages/page-settings/src/useExtensions.ts b/packages/page-settings/src/useExtensions.ts index b73ae94bcf..f807314da8 100644 --- a/packages/page-settings/src/useExtensions.ts +++ b/packages/page-settings/src/useExtensions.ts @@ -157,7 +157,9 @@ function useExtensionsImpl (): Extensions { }, []); useEffect((): void => { - extensions && getKnown(api, extensions, trigger).then(setAll); + extensions && getKnown(api, extensions, trigger) + .then(setAll) + .catch(console.error); }, [api, extensions, trigger]); return useMemo( diff --git a/packages/react-components/package.json b/packages/react-components/package.json index 5f25777514..f3fd20d443 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -14,8 +14,8 @@ "version": "0.124.2-62-x", "dependencies": { "@babel/runtime": "^7.20.13", - "@fortawesome/fontawesome-svg-core": "^6.2.1", - "@fortawesome/free-solid-svg-icons": "^6.2.1", + "@fortawesome/fontawesome-svg-core": "^6.3.0", + "@fortawesome/free-solid-svg-icons": "^6.3.0", "@fortawesome/react-fontawesome": "^0.2.0", "@polkadot/keyring": "^10.3.1", "@polkadot/react-api": "^0.124.2-62-x", diff --git a/packages/react-components/src/Button/index.tsx b/packages/react-components/src/Button/index.tsx index 6b1ec79265..09c089ef79 100644 --- a/packages/react-components/src/Button/index.tsx +++ b/packages/react-components/src/Button/index.tsx @@ -13,22 +13,30 @@ import Group from './Group'; function ButtonBase ({ activeOnEnter, children, className = '', dataTestId = '', icon, isBasic, isBusy, isCircular, isDisabled, isFull, isIcon, isSelected, isToplevel, label, onClick, isReadOnly = !onClick, onMouseEnter, onMouseLeave, tabIndex, withoutLink }: Props): React.ReactElement { const _onClick = useCallback( (): void => { - !(isBusy || isDisabled) && onClick && onClick(); + !(isBusy || isDisabled) && onClick && Promise + .resolve(onClick()) + .catch(console.error); }, [isBusy, isDisabled, onClick] ); const _onMouseEnter = useCallback((): void => { - onMouseEnter && onMouseEnter(); + onMouseEnter && Promise + .resolve(onMouseEnter()) + .catch(console.error); }, [onMouseEnter]); const _onMouseLeave = useCallback((): void => { - onMouseLeave && onMouseLeave(); + onMouseLeave && Promise + .resolve(onMouseLeave()) + .catch(console.error); }, [onMouseLeave]); const listenKeyboard = useCallback((event: KeyboardEvent): void => { if (!isBusy && !isDisabled && event.key === 'Enter') { - onClick && onClick(); + onClick && Promise + .resolve(onClick()) + .catch(console.error); } }, [isBusy, isDisabled, onClick]); diff --git a/packages/react-components/src/Menu/Item.tsx b/packages/react-components/src/Menu/Item.tsx index 20b6e5ba05..399a5c7db8 100644 --- a/packages/react-components/src/Menu/Item.tsx +++ b/packages/react-components/src/Menu/Item.tsx @@ -11,7 +11,9 @@ import Icon from '../Icon'; function Item ({ children, className = '', icon, isDisabled, label, onClick }: ItemProps): React.ReactElement { const _onClick = useCallback( (): void => { - !isDisabled && onClick && onClick(); + !isDisabled && onClick && Promise + .resolve(onClick()) + .catch(console.error); }, [isDisabled, onClick] ); diff --git a/packages/test-support/package.json b/packages/test-support/package.json index 8bf4876f36..5c3cc23afb 100644 --- a/packages/test-support/package.json +++ b/packages/test-support/package.json @@ -14,7 +14,7 @@ "version": "0.124.2-62-x", "dependencies": { "@testing-library/react": "^13.4.0", - "testcontainers": "^9.1.1" + "testcontainers": "^9.1.2" }, "devDependencies": { "@polkadot/types-support": "^9.13.6", diff --git a/yarn.lock b/yarn.lock index 16e7f6fd58..36ec8f73da 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1914,28 +1914,28 @@ __metadata: languageName: node linkType: hard -"@fortawesome/fontawesome-common-types@npm:6.2.1": - version: 6.2.1 - resolution: "@fortawesome/fontawesome-common-types@npm:6.2.1" - checksum: 1a6e202beac46bc7e7bf791b37b6164b15453cc70b078456121c77d516a1077a1cfdab8aa9c77358c71f87f54560c0d9cbfb440cfb871f6d0f1f4671aabf9a0a +"@fortawesome/fontawesome-common-types@npm:6.3.0": + version: 6.3.0 + resolution: "@fortawesome/fontawesome-common-types@npm:6.3.0" + checksum: ece71539190abb17144861c58d65b6cd818d38a28cc3c9694325f5dca13739b2d78655e7bc1cba58cc13947f5ca80659e87c5c8bee7beb77d7f991e508312146 languageName: node linkType: hard -"@fortawesome/fontawesome-svg-core@npm:^6.2.1": - version: 6.2.1 - resolution: "@fortawesome/fontawesome-svg-core@npm:6.2.1" +"@fortawesome/fontawesome-svg-core@npm:^6.3.0": + version: 6.3.0 + resolution: "@fortawesome/fontawesome-svg-core@npm:6.3.0" dependencies: - "@fortawesome/fontawesome-common-types": 6.2.1 - checksum: 16caf6052b77c03826274325d4bd76d11cba486411c3101a635d3342dd764df8f5b4789456c9caa1667c232853a670f91dddf0449218e5fea7a27f4396b838af + "@fortawesome/fontawesome-common-types": 6.3.0 + checksum: 2479d4b0dc45bba2638b05ba816df91fad6331cd3254d846705a0c342dc12259724706066c71461809804b4f41f15425439cfbabc42d7918e6c26b2b467b4b59 languageName: node linkType: hard -"@fortawesome/free-solid-svg-icons@npm:^6.2.1": - version: 6.2.1 - resolution: "@fortawesome/free-solid-svg-icons@npm:6.2.1" +"@fortawesome/free-solid-svg-icons@npm:^6.3.0": + version: 6.3.0 + resolution: "@fortawesome/free-solid-svg-icons@npm:6.3.0" dependencies: - "@fortawesome/fontawesome-common-types": 6.2.1 - checksum: a24170b676fced926cccdd08171357b20714483ceddeb052985a9acae3a347ffe853de2e757bf95cc7add74807d82eb1cc578e17430c32ca2c6a844c8276f91a + "@fortawesome/fontawesome-common-types": 6.3.0 + checksum: 5cffcdb954f9ea8d48c6872118f21840f206d6279a6b803a31563e48fee34fbf5bc05848f5dedf07fc16f60910712c6bd0dc83f7a4e408cf062153a48022525d languageName: node linkType: hard @@ -2318,10 +2318,10 @@ __metadata: languageName: node linkType: hard -"@kiltprotocol/type-definitions@npm:0.30.0": - version: 0.30.0 - resolution: "@kiltprotocol/type-definitions@npm:0.30.0" - checksum: 5d80ea2c2b9c6f7c2316f377a6ae9e341a3ad325c12123373f247f6c1ae52c5bcd19bcf9eae95d6e30932b2ce01b6c9f88a46fbf84dc26a14e4ca55f06d642cd +"@kiltprotocol/type-definitions@npm:0.31.0": + version: 0.31.0 + resolution: "@kiltprotocol/type-definitions@npm:0.31.0" + checksum: c8f211e28644147c742a7f21bba921baf953d24a876736867ac942fa02281fd06568c3e624966509e1d0ccdd216ee9e99eda271b5e01206421f8253821229256 languageName: node linkType: hard @@ -2489,10 +2489,10 @@ __metadata: languageName: node linkType: hard -"@mangata-finance/types@npm:0.17.0": - version: 0.17.0 - resolution: "@mangata-finance/types@npm:0.17.0" - checksum: 02a36f4f2ab24211967a2ae1be049c4b056841e5776bee349b1f100f5d27c18d4f70f8f2e176f2c5d397984b7dfbf6c3c4ab8acd2f38bbc6a24d9489b5eaf2d0 +"@mangata-finance/types@npm:0.18.0": + version: 0.18.0 + resolution: "@mangata-finance/types@npm:0.18.0" + checksum: 0dda1490321971bb9e75faaa7f2ec41eb640864607c2d3b7b560d888b634aa68d1a66e1f65afcd82651e77f417d1af3177d0c7fdb4898554930f83bb5cae86f4 languageName: node linkType: hard @@ -2905,7 +2905,7 @@ __metadata: "@polkadot/react-components": ^0.124.2-62-x "@testing-library/react": ^13.4.0 file-saver: ^2.0.5 - testcontainers: ^9.1.1 + testcontainers: ^9.1.2 languageName: unknown linkType: soft @@ -3257,10 +3257,10 @@ __metadata: "@equilab/definitions": 1.4.18 "@frequency-chain/api-augment": 1.2.0-rc1 "@interlay/interbtc-types": 1.11.1 - "@kiltprotocol/type-definitions": 0.30.0 + "@kiltprotocol/type-definitions": 0.31.0 "@laminar/type-definitions": 0.3.1 "@logion/node-api": 0.9.0-3 - "@mangata-finance/types": 0.17.0 + "@mangata-finance/types": 0.18.0 "@metaverse-network-sdk/type-definitions": 0.0.1-13 "@parallel-finance/type-definitions": 1.7.14 "@phala/typedefs": 0.2.33 @@ -3273,9 +3273,9 @@ __metadata: "@polkadot/x-fetch": ^10.3.1 "@polymathnetwork/polymesh-types": 0.0.2 "@snowfork/snowbridge-types": 0.2.7 - "@sora-substrate/type-definitions": 1.14.2 - "@subsocial/definitions": 0.7.11 - "@unique-nft/opal-testnet-types": 936.50.4 + "@sora-substrate/type-definitions": 1.14.9 + "@subsocial/definitions": 0.7.12 + "@unique-nft/opal-testnet-types": 937.52.0 "@unique-nft/quartz-mainnet-types": 936.50.4 "@unique-nft/unique-mainnet-types": 930.33.0 "@zeitgeistpm/type-defs": 1.0.0 @@ -3292,7 +3292,7 @@ __metadata: dependencies: "@babel/core": ^7.20.12 "@babel/polyfill": ^7.12.1 - "@polkadot/dev": ^0.68.7 + "@polkadot/dev": ^0.68.10 "@polkadot/react-components": ^0.124.2-62-x "@types/react-dom": ^18.0.10 "@types/tmp": ^0.2.3 @@ -3325,7 +3325,7 @@ __metadata: "@babel/runtime": ^7.20.13 "@polkadot/apps-config": ^0.124.2-62-x "@polkadot/apps-routing": ^0.124.2-62-x - "@polkadot/dev": ^0.68.7 + "@polkadot/dev": ^0.68.10 "@polkadot/react-api": ^0.124.2-62-x "@polkadot/react-components": ^0.124.2-62-x "@polkadot/react-hooks": ^0.124.2-62-x @@ -3338,14 +3338,11 @@ __metadata: buffer: ^6.0.3 copy-webpack-plugin: ^11.0.0 crypto-browserify: ^3.12.0 - css-loader: ^5.2.7 + css-loader: ^6.7.3 empty: ^0.10.1 - html-loader: ^4.2.0 html-webpack-plugin: ^5.5.0 https-browserify: ^1.0.0 - markdown-loader: ^8.0.0 mini-css-extract-plugin: ^2.7.2 - null-loader: ^4.0.1 os-browserify: ^0.3.0 path-browserify: ^1.0.1 process: ^0.11.10 @@ -3356,9 +3353,9 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/dev@npm:^0.68.7": - version: 0.68.7 - resolution: "@polkadot/dev@npm:0.68.7" +"@polkadot/dev@npm:^0.68.10": + version: 0.68.10 + resolution: "@polkadot/dev@npm:0.68.10" dependencies: "@babel/cli": ^7.20.7 "@babel/core": ^7.20.12 @@ -3388,8 +3385,10 @@ __metadata: "@swc/core": ^1.3.32 "@swc/helpers": ^0.4.14 "@swc/jest": ^0.2.24 - "@typescript-eslint/eslint-plugin": ^5.50.0 - "@typescript-eslint/parser": ^5.50.0 + "@testing-library/jest-dom": ^5.16.5 + "@testing-library/react": ^13.4.0 + "@typescript-eslint/eslint-plugin": ^5.51.0 + "@typescript-eslint/parser": ^5.51.0 "@vue/component-compiler-utils": ^3.3.0 babel-plugin-module-extension-resolver: ^1.0.0 babel-plugin-module-resolver: ^5.0.0 @@ -3419,7 +3418,7 @@ __metadata: jest-resolve: ^29.4.1 madge: ^6.0.0 prettier: ^2.8.3 - rollup: ^3.12.1 + rollup: ^3.14.0 rollup-plugin-cleanup: ^3.2.1 typescript: ^4.9.5 webpack: ^5.75.0 @@ -3454,7 +3453,7 @@ __metadata: polkadot-exec-swc: scripts/polkadot-exec-swc.mjs polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs - checksum: 3b05da5e02fdde95ff62cd3773d290f33319c9db4831ad86d0153bf6b29e226664d45850ef7ee4e8f6f40c1b48ccc10c3faf6fcc7af3f96c50a264dd7f8d0c72 + checksum: cb5ed87c40ae08a348e5c154dc75b139290900a019a3214fdb47c824ed43d84d36f0b575d1fac238ffce5ffd821d34ea3f43571c4983fc0cbf039959acd077ce languageName: node linkType: hard @@ -3592,8 +3591,8 @@ __metadata: resolution: "@polkadot/react-components@workspace:packages/react-components" dependencies: "@babel/runtime": ^7.20.13 - "@fortawesome/fontawesome-svg-core": ^6.2.1 - "@fortawesome/free-solid-svg-icons": ^6.2.1 + "@fortawesome/fontawesome-svg-core": ^6.3.0 + "@fortawesome/free-solid-svg-icons": ^6.3.0 "@fortawesome/react-fontawesome": ^0.2.0 "@polkadot/keyring": ^10.3.1 "@polkadot/react-api": ^0.124.2-62-x @@ -3778,7 +3777,7 @@ __metadata: "@polkadot/types-support": ^9.13.6 "@testing-library/jest-dom": ^5.16.5 "@testing-library/react": ^13.4.0 - testcontainers: ^9.1.1 + testcontainers: ^9.1.2 tsconfig-paths: ^4.1.2 languageName: unknown linkType: soft @@ -4308,12 +4307,12 @@ __metadata: languageName: node linkType: hard -"@sora-substrate/type-definitions@npm:1.14.2": - version: 1.14.2 - resolution: "@sora-substrate/type-definitions@npm:1.14.2" +"@sora-substrate/type-definitions@npm:1.14.9": + version: 1.14.9 + resolution: "@sora-substrate/type-definitions@npm:1.14.9" dependencies: "@open-web3/orml-type-definitions": 0.9.4-26 - checksum: 9ec5d0229dad40a9435b96eb78047e07c402762d433fe54489e63f3cc5f7aa4832d5c67e2fd29d33d601a92ca9bfc09f83eba3ba6a090001390f9612cd862bb6 + checksum: a951fe8dd48cb758454f7b2c5b0eeebe0bf9d8165cc02e930dc1462a79deebbb243f57e0176e5d2b4f32f70bb35d3b981bfb0de5c81407e6168f56ffc2e074cb languageName: node linkType: hard @@ -4344,13 +4343,13 @@ __metadata: languageName: node linkType: hard -"@subsocial/definitions@npm:0.7.11": - version: 0.7.11 - resolution: "@subsocial/definitions@npm:0.7.11" +"@subsocial/definitions@npm:0.7.12": + version: 0.7.12 + resolution: "@subsocial/definitions@npm:0.7.12" dependencies: "@polkadot/api": latest lodash.camelcase: ^4.3.0 - checksum: 513ef62dec875226f3002b7922187e8b2629f33bef4245c6431e656797a0f366d40a91227d268f5d90c751f2edae9b362e0ebd247ba3de997fac11437582dbed + checksum: d73a6cbc108725da674918ff0a0852717c23a5c82f030e48d5462f56fa905b69af43f4ee464d16be1ccfbcace7f718d29706b5adbf667b2d6f8e15124a10b49c languageName: node linkType: hard @@ -5479,13 +5478,13 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^5.50.0": - version: 5.50.0 - resolution: "@typescript-eslint/eslint-plugin@npm:5.50.0" +"@typescript-eslint/eslint-plugin@npm:^5.51.0": + version: 5.51.0 + resolution: "@typescript-eslint/eslint-plugin@npm:5.51.0" dependencies: - "@typescript-eslint/scope-manager": 5.50.0 - "@typescript-eslint/type-utils": 5.50.0 - "@typescript-eslint/utils": 5.50.0 + "@typescript-eslint/scope-manager": 5.51.0 + "@typescript-eslint/type-utils": 5.51.0 + "@typescript-eslint/utils": 5.51.0 debug: ^4.3.4 grapheme-splitter: ^1.0.4 ignore: ^5.2.0 @@ -5499,7 +5498,7 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 351c4a157a7d717cc3835bdc09324b20d649463738a029c5701e5a38cdb162305ff7d56adff196a0c3245c24ea3167bbdac7f1c30399b8c1d495abbdbc1c53d6 + checksum: 5351d8cec13bd9867ce4aaf7052aa31c9ca867fc89c620fc0fe5718ac2cbc165903275db59974324d98e45df0d33a73a4367d236668772912731031a672cfdcd languageName: node linkType: hard @@ -5514,20 +5513,20 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/parser@npm:^5.50.0": - version: 5.50.0 - resolution: "@typescript-eslint/parser@npm:5.50.0" +"@typescript-eslint/parser@npm:^5.51.0": + version: 5.51.0 + resolution: "@typescript-eslint/parser@npm:5.51.0" dependencies: - "@typescript-eslint/scope-manager": 5.50.0 - "@typescript-eslint/types": 5.50.0 - "@typescript-eslint/typescript-estree": 5.50.0 + "@typescript-eslint/scope-manager": 5.51.0 + "@typescript-eslint/types": 5.51.0 + "@typescript-eslint/typescript-estree": 5.51.0 debug: ^4.3.4 peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: typescript: optional: true - checksum: 816a421ce9a5c61a2e92499d6d400aed4211ca5b685e0212844b6659f7acfeba1cca0418b462236c44eea6e8a2574cd51ccb7abc2bf4a8cad5b7a275d71ae9bf + checksum: 096ec819132839febd4f390c4bbf31687e06191092c244dbd189a64cd7383fbaba728f2765e8809cd9834c0069163ab38b0e5f0f6360157d831647d4c295f8cd languageName: node linkType: hard @@ -5541,22 +5540,22 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:5.50.0": - version: 5.50.0 - resolution: "@typescript-eslint/scope-manager@npm:5.50.0" +"@typescript-eslint/scope-manager@npm:5.51.0": + version: 5.51.0 + resolution: "@typescript-eslint/scope-manager@npm:5.51.0" dependencies: - "@typescript-eslint/types": 5.50.0 - "@typescript-eslint/visitor-keys": 5.50.0 - checksum: bd49447a834c82cb130e6900644042c3a84195bf7a63483385e90b6454c65856d6f276c997cad6bf9c36c9d0cb168fdde625ce4c78c3b8bcce42da782270794b + "@typescript-eslint/types": 5.51.0 + "@typescript-eslint/visitor-keys": 5.51.0 + checksum: b3c9f48b6b7a7ae2ebcad4745ef91e4727776b2cf56d31be6456b1aa063aa649539e20f9fffa83cad9ccaaa9c492f2354a1c15526a2b789e235ec58b3a82d22c languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:5.50.0": - version: 5.50.0 - resolution: "@typescript-eslint/type-utils@npm:5.50.0" +"@typescript-eslint/type-utils@npm:5.51.0": + version: 5.51.0 + resolution: "@typescript-eslint/type-utils@npm:5.51.0" dependencies: - "@typescript-eslint/typescript-estree": 5.50.0 - "@typescript-eslint/utils": 5.50.0 + "@typescript-eslint/typescript-estree": 5.51.0 + "@typescript-eslint/utils": 5.51.0 debug: ^4.3.4 tsutils: ^3.21.0 peerDependencies: @@ -5564,7 +5563,7 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: d2fc2fd10ef300865fd6a902ae92aef6c45cddc4359445f1e5c6dc9511063b52d2170cc6b525763395d4171c177b3d0fffd77cf9a2ab7e01fcd7109bd1a5a585 + checksum: ab9747b0c629cfaaab903eed8ce1e39d34d69a402ce5faf2f1fff2bbb461bdbe034044b1368ba67ba8e5c1c512172e07d83c8a563635d8de811bf148d95c7dec languageName: node linkType: hard @@ -5582,10 +5581,10 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/types@npm:5.50.0": - version: 5.50.0 - resolution: "@typescript-eslint/types@npm:5.50.0" - checksum: 1189c63d35abeec685dd519fd923926b884e63d5e10e4a9fe995aebfde59b8a2e10773090ec3ba32a0ec408746b18f6a454d9bedb0b6c7ce8b6066547144fb4d +"@typescript-eslint/types@npm:5.51.0": + version: 5.51.0 + resolution: "@typescript-eslint/types@npm:5.51.0" + checksum: b31021a0866f41ba5d71b6c4c7e20cc9b99d49c93bb7db63b55b2e51542fb75b4e27662ee86350da3c1318029e278a5a807facaf4cb5aeea724be8b0e021e836 languageName: node linkType: hard @@ -5607,12 +5606,12 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:5.50.0, @typescript-eslint/typescript-estree@npm:^5.13.0": - version: 5.50.0 - resolution: "@typescript-eslint/typescript-estree@npm:5.50.0" +"@typescript-eslint/typescript-estree@npm:5.51.0, @typescript-eslint/typescript-estree@npm:^5.13.0": + version: 5.51.0 + resolution: "@typescript-eslint/typescript-estree@npm:5.51.0" dependencies: - "@typescript-eslint/types": 5.50.0 - "@typescript-eslint/visitor-keys": 5.50.0 + "@typescript-eslint/types": 5.51.0 + "@typescript-eslint/visitor-keys": 5.51.0 debug: ^4.3.4 globby: ^11.1.0 is-glob: ^4.0.3 @@ -5621,7 +5620,7 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: cb1ac8d39647da6d52750c713d9635750ed41245ec82f937a159a71ad3bf490ebabfad3b43eeca07bca39d60df30d3a2f31f8bed0061381731d92a62e284b867 + checksum: aec23e5cab48ee72fefa6d1ac266639ebabf6cebec1e0207ad47011d3a48186ac9a632c8e34c3bac896155f54895a497230c11d789fd81263b08eb267d7113ce languageName: node linkType: hard @@ -5661,21 +5660,21 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/utils@npm:5.50.0": - version: 5.50.0 - resolution: "@typescript-eslint/utils@npm:5.50.0" +"@typescript-eslint/utils@npm:5.51.0": + version: 5.51.0 + resolution: "@typescript-eslint/utils@npm:5.51.0" dependencies: "@types/json-schema": ^7.0.9 "@types/semver": ^7.3.12 - "@typescript-eslint/scope-manager": 5.50.0 - "@typescript-eslint/types": 5.50.0 - "@typescript-eslint/typescript-estree": 5.50.0 + "@typescript-eslint/scope-manager": 5.51.0 + "@typescript-eslint/types": 5.51.0 + "@typescript-eslint/typescript-estree": 5.51.0 eslint-scope: ^5.1.1 eslint-utils: ^3.0.0 semver: ^7.3.7 peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - checksum: 4471ae8b24449300e009f1cc09ee0d38cce20ae9171e8fbf4ef752ce4eb87104cc0d813d8f7051b619fa05e1e7c12b748dad49832911685297b1bbfef3c01f0b + checksum: c6e28c942fbac5500f0e8ed67ef304b484ba296486e55306f78fb090dc9d5bb1f25a0bedc065e14680041eadce5e95fa10aab618cb0c316599ec987e6ea72442 languageName: node linkType: hard @@ -5699,23 +5698,23 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:5.50.0": - version: 5.50.0 - resolution: "@typescript-eslint/visitor-keys@npm:5.50.0" +"@typescript-eslint/visitor-keys@npm:5.51.0": + version: 5.51.0 + resolution: "@typescript-eslint/visitor-keys@npm:5.51.0" dependencies: - "@typescript-eslint/types": 5.50.0 + "@typescript-eslint/types": 5.51.0 eslint-visitor-keys: ^3.3.0 - checksum: 55319cb7ee7b78d07d9dc67a388d69fe0b7f11cbc79190e17e7f87a39c9992d08dab3b5872d5a7f01094dda28ad6ac61d3573e59015ef70bf138d4c4f8c45b88 + checksum: b49710f3c6b3b62a846a163afffd81be5eb2b1f44e25bec51ff3c9f4c3b579d74aa4cbd3753b4fc09ea3dbc64a7062f9c658c08d22bb2740a599cb703d876220 languageName: node linkType: hard -"@unique-nft/opal-testnet-types@npm:936.50.4": - version: 936.50.4 - resolution: "@unique-nft/opal-testnet-types@npm:936.50.4" +"@unique-nft/opal-testnet-types@npm:937.52.0": + version: 937.52.0 + resolution: "@unique-nft/opal-testnet-types@npm:937.52.0" peerDependencies: "@polkadot/api": ^9.10.2 "@polkadot/types": ^9.10.2 - checksum: b35a98f54603d568433f77d5498bf7fde158ae21f753c0473e7f3c9ca8e415fd712be366de8af3394028f035e4cb7ac99a6473ea518a54dbab13a422bf985fc4 + checksum: e5ec8ee236336aed43c970ff4a3969bb2bc027bf1bdb6f2d4e46e50f87ed2349843cf1ee8e5317a378c23a3cbdea3ab1eedcac46c665379ac4815b002e74def2 languageName: node linkType: hard @@ -7881,15 +7880,6 @@ __metadata: languageName: node linkType: hard -"clean-css@npm:5.2.0": - version: 5.2.0 - resolution: "clean-css@npm:5.2.0" - dependencies: - source-map: ~0.6.0 - checksum: ccb63b244b200abf53a005429b50132845a49b994fb6a2889a7eb775d53fbde7cb0d0b13655e435b0c3a6788d5d0fbcd2f56ccf32da852ef21ae933198dcad24 - languageName: node - linkType: hard - "clean-css@npm:^5.2.2": version: 5.3.1 resolution: "clean-css@npm:5.3.1" @@ -8641,23 +8631,21 @@ __metadata: languageName: node linkType: hard -"css-loader@npm:^5.2.7": - version: 5.2.7 - resolution: "css-loader@npm:5.2.7" +"css-loader@npm:^6.7.3": + version: 6.7.3 + resolution: "css-loader@npm:6.7.3" dependencies: icss-utils: ^5.1.0 - loader-utils: ^2.0.0 - postcss: ^8.2.15 + postcss: ^8.4.19 postcss-modules-extract-imports: ^3.0.0 postcss-modules-local-by-default: ^4.0.0 postcss-modules-scope: ^3.0.0 postcss-modules-values: ^4.0.0 - postcss-value-parser: ^4.1.0 - schema-utils: ^3.0.0 - semver: ^7.3.5 + postcss-value-parser: ^4.2.0 + semver: ^7.3.8 peerDependencies: - webpack: ^4.27.0 || ^5.0.0 - checksum: fb0742b30ac0919f94b99a323bdefe6d48ae46d66c7d966aae59031350532f368f8bba5951fcd268f2e053c5e6e4655551076268e9073ccb58e453f98ae58f8e + webpack: ^5.0.0 + checksum: 473cc32b6c837c2848e2051ad1ba331c1457449f47442e75a8c480d9891451434ada241f7e3de2347e57de17fcd84610b3bcfc4a9da41102cdaedd1e17902d31 languageName: node linkType: hard @@ -9877,7 +9865,7 @@ __metadata: languageName: node linkType: hard -"entities@npm:^4.3.0, entities@npm:^4.4.0": +"entities@npm:^4.3.0": version: 4.4.0 resolution: "entities@npm:4.4.0" checksum: 84d250329f4b56b40fa93ed067b194db21e8815e4eb9b59f43a086f0ecd342814f6bc483de8a77da5d64e0f626033192b1b4f1792232a7ea6b970ebe0f3187c2 @@ -12376,18 +12364,6 @@ __metadata: languageName: node linkType: hard -"html-loader@npm:^4.2.0": - version: 4.2.0 - resolution: "html-loader@npm:4.2.0" - dependencies: - html-minifier-terser: ^7.0.0 - parse5: ^7.0.0 - peerDependencies: - webpack: ^5.0.0 - checksum: ae54ecebad2d7be683f9d4e6fda6e7adb05b5d3b35549958bf01ad127bcad8e97d9f41daaaee38a3ae9c24726242de383bf1f2c2681154dfbbad5ac74643cb16 - languageName: node - linkType: hard - "html-minifier-terser@npm:^6.0.2": version: 6.1.0 resolution: "html-minifier-terser@npm:6.1.0" @@ -12405,23 +12381,6 @@ __metadata: languageName: node linkType: hard -"html-minifier-terser@npm:^7.0.0": - version: 7.1.0 - resolution: "html-minifier-terser@npm:7.1.0" - dependencies: - camel-case: ^4.1.2 - clean-css: 5.2.0 - commander: ^9.4.1 - entities: ^4.4.0 - param-case: ^3.0.4 - relateurl: ^0.2.7 - terser: ^5.15.1 - bin: - html-minifier-terser: cli.js - checksum: 351de28d85f142314a6a9b5222bdcaf068cef6bf2f521952ef55d99a6acdcecd0b4dbc42578da2d438d579c6e868b899ca19eac901ee6f9f0c69c223b5942099 - languageName: node - linkType: hard - "html-parse-stringify@npm:^3.0.1": version: 3.0.1 resolution: "html-parse-stringify@npm:3.0.1" @@ -14868,26 +14827,6 @@ __metadata: languageName: node linkType: hard -"markdown-loader@npm:^8.0.0": - version: 8.0.0 - resolution: "markdown-loader@npm:8.0.0" - dependencies: - marked: ^4.0.12 - peerDependencies: - webpack: ^5.0.0 - checksum: c5f878a24afb80ba7fa1de098b50434393dc4ed3d7477f9d7f710c2f2dc9ddb7a93b6edeaaaaece54a2f16adf26a699d4bc4fb50c68edd4b6288f2dd53d4485c - languageName: node - linkType: hard - -"marked@npm:^4.0.12": - version: 4.0.12 - resolution: "marked@npm:4.0.12" - bin: - marked: bin/marked.js - checksum: 7575117f85a8986652f3ac8b8a7b95056c4c5fce01a1fc76dc4c7960412cb4c9bd9da8133487159b6b3ff84f52b543dfe9a36f826a5f358892b5ec4b6824f192 - languageName: node - linkType: hard - "matcher@npm:^3.0.0": version: 3.0.0 resolution: "matcher@npm:3.0.0" @@ -16112,18 +16051,6 @@ __metadata: languageName: node linkType: hard -"null-loader@npm:^4.0.1": - version: 4.0.1 - resolution: "null-loader@npm:4.0.1" - dependencies: - loader-utils: ^2.0.0 - schema-utils: ^3.0.0 - peerDependencies: - webpack: ^4.0.0 || ^5.0.0 - checksum: eeb4c4dd2f8f41e46f5665e4500359109e95ec1028a178a60e0161984906572da7dd87644bcc3cb29f0125d77e2b2508fb4f3813cfb1c6604a15865beb4b987b - languageName: node - linkType: hard - "number-is-nan@npm:^1.0.0": version: 1.0.1 resolution: "number-is-nan@npm:1.0.1" @@ -16873,7 +16800,7 @@ __metadata: "@babel/runtime": ^7.20.13 "@crustio/crust-pin": ^1.0.0 "@pinata/sdk": ^1.2.1 - "@polkadot/dev": ^0.68.7 + "@polkadot/dev": ^0.68.10 "@types/chart.js": ^2.9.37 "@types/file-saver": ^2.0.5 "@types/jest": ^29.4.0 @@ -16971,7 +16898,7 @@ __metadata: languageName: node linkType: hard -"postcss-value-parser@npm:^4.0.2, postcss-value-parser@npm:^4.1.0": +"postcss-value-parser@npm:^4.0.2, postcss-value-parser@npm:^4.1.0, postcss-value-parser@npm:^4.2.0": version: 4.2.0 resolution: "postcss-value-parser@npm:4.2.0" checksum: 819ffab0c9d51cf0acbabf8996dffbfafbafa57afc0e4c98db88b67f2094cb44488758f06e5da95d7036f19556a4a732525e84289a425f4f6fd8e412a9d7442f @@ -17013,7 +16940,7 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.1.7, postcss@npm:^8.2.15, postcss@npm:^8.4.12": +"postcss@npm:^8.1.7, postcss@npm:^8.4.12, postcss@npm:^8.4.19": version: 8.4.21 resolution: "postcss@npm:8.4.21" dependencies: @@ -18424,9 +18351,9 @@ __metadata: languageName: node linkType: hard -"rollup@npm:^3.12.1": - version: 3.12.1 - resolution: "rollup@npm:3.12.1" +"rollup@npm:^3.14.0": + version: 3.14.0 + resolution: "rollup@npm:3.14.0" dependencies: fsevents: ~2.3.2 dependenciesMeta: @@ -18434,7 +18361,7 @@ __metadata: optional: true bin: rollup: dist/bin/rollup - checksum: b6b3aa4bcc13b1f15c1945201f3837be07b249854ed8a73bd67411ffe56f691b808d5b563246b78ecea4110afdb9e9e6cc7d5a3f82965a5592187dbb10d3671f + checksum: 48f4da224753b8022529256243b74b3f6f41d9b4358ba079ac42f2a2cf07e4bd01b5d94579338194238e3c575487974ca508e144cf6195123293e7fdf82506cb languageName: node linkType: hard @@ -19944,7 +19871,7 @@ __metadata: languageName: node linkType: hard -"terser@npm:^5.10.0, terser@npm:^5.15.1, terser@npm:^5.7.0": +"terser@npm:^5.10.0, terser@npm:^5.7.0": version: 5.16.1 resolution: "terser@npm:5.16.1" dependencies: @@ -19969,9 +19896,9 @@ __metadata: languageName: node linkType: hard -"testcontainers@npm:^9.1.1": - version: 9.1.1 - resolution: "testcontainers@npm:9.1.1" +"testcontainers@npm:^9.1.2": + version: 9.1.2 + resolution: "testcontainers@npm:9.1.2" dependencies: "@balena/dockerignore": ^1.0.2 "@types/archiver": ^5.3.1 @@ -19986,7 +19913,7 @@ __metadata: properties-reader: ^2.2.0 ssh-remote-port-forward: ^1.0.4 tar-fs: ^2.1.1 - checksum: 1af59b5e63635c8ab7e48a909e9fcaa76b0ac31198c8a474322c0b06563acc098abcae036339511b368bd654e273604a7be594162e5e9ce19d19463ea1d6ebe3 + checksum: dbd52133fcfde3f60486af2fe1a99f82735d12dda6b222081c78cfb41766ed0283c844fb4383c0090a55ab39a1b1ec05caf9a2f338d87efe6be488486f72a069 languageName: node linkType: hard