diff --git a/packages/apps-config/package.json b/packages/apps-config/package.json index de370f0655..e5423f1c96 100644 --- a/packages/apps-config/package.json +++ b/packages/apps-config/package.json @@ -29,7 +29,7 @@ "@frequency-chain/api-augment": "1.11.1", "@interlay/interbtc-types": "1.13.0", "@jamton/parachain-ts-interfaces": "1.10.4", - "@kiltprotocol/type-definitions": "^1.11401.0", + "@kiltprotocol/type-definitions": "^1.11502.1", "@laminar/type-definitions": "0.3.1", "@logion/node-api": "0.27.0-4", "@mangata-finance/type-definitions": "^2.1.2", diff --git a/packages/apps-config/src/api/typesBundle.ts b/packages/apps-config/src/api/typesBundle.ts index c503ba30a6..00f1504813 100644 --- a/packages/apps-config/src/api/typesBundle.ts +++ b/packages/apps-config/src/api/typesBundle.ts @@ -31491,6 +31491,156 @@ export const typesBundle = { } }, "version": 2 + }, + { + "methods": { + "query_by_web3_name": { + "description": "Return the information relative to the owner of the provided web3name, if any.", + "params": [ + { + "name": "name", + "type": "Text" + } + ], + "type": "Option" + }, + "query_by_account": { + "description": "Return the information relative to the DID to which the provided account is linked, if any.", + "params": [ + { + "name": "account", + "type": "DidApiAccountId" + } + ], + "type": "Option" + }, + "query": { + "description": "Return the information relative to the owner of the provided DID, if present.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Option" + }, + "batch_query_by_web3_name": { + "description": "Batch multiple calls of `query_by_web3_name`.", + "params": [ + { + "name": "names", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query_by_account": { + "description": "Batch multiple calls of `query_by_account`.", + "params": [ + { + "name": "accounts", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query": { + "description": "Batch multiple calls of `query`.", + "params": [ + { + "name": "dids", + "type": "Vec" + } + ], + "type": "Vec>" + } + }, + "version": 3 + }, + { + "methods": { + "query_by_web3_name": { + "description": "Return the information relative to the owner of the provided web3name, if any.", + "params": [ + { + "name": "name", + "type": "Text" + } + ], + "type": "Option" + }, + "query_by_account": { + "description": "Return the information relative to the DID to which the provided account is linked, if any.", + "params": [ + { + "name": "account", + "type": "DidApiAccountId" + } + ], + "type": "Option" + }, + "query": { + "description": "Return the information relative to the owner of the provided DID, if present.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Option" + }, + "batch_query_by_web3_name": { + "description": "Batch multiple calls of `query_by_web3_name`.", + "params": [ + { + "name": "names", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query_by_account": { + "description": "Batch multiple calls of `query_by_account`.", + "params": [ + { + "name": "accounts", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query": { + "description": "Batch multiple calls of `query`.", + "params": [ + { + "name": "dids", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "linked_resources": { + "description": "Returns the list of linked resources for a given DID that must be deleted before the DID itself can be deleted.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Vec" + }, + "linked_resources_deletion_calls": { + "description": "Returns the list of calls that must be executed to delete the linked resources of a given DID, before deleting the DID itself.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Vec" + } + }, + "version": 4 } ], "Staking": [ @@ -31582,6 +31732,47 @@ export const typesBundle = { } }, "version": 1 + }, + { + "methods": { + "pool_account_id": { + "description": "Calculate the pool account address for a switch pallet instance and asset ID", + "params": [ + { + "name": "pair_id", + "type": "Text" + }, + { + "name": "asset_id", + "type": "XcmVersionedAssetId" + } + ], + "type": "Result" + }, + "xcm_for_switch": { + "description": "Computes the XCM program that will be executed at destination to complete the cross-chain switch.", + "params": [ + { + "name": "pair_id", + "type": "Text" + }, + { + "name": "from", + "type": "AccountId32" + }, + { + "name": "to", + "type": "XcmVersionedLocation" + }, + { + "name": "amount", + "type": "u128" + } + ], + "type": "Result" + } + }, + "version": 2 } ] }, @@ -35002,7 +35193,7 @@ export const typesBundle = { { "minmax": [ 11400, - null + 11499 ], "types": { "DidApiAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", @@ -35117,6 +35308,252 @@ export const typesBundle = { ] } } + }, + { + "minmax": [ + 11500, + 11501 + ], + "types": { + "DidApiAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RawDidLinkedInfo": { + "identifier": "AccountId32", + "accounts": "Vec", + "w3n": "Option", + "serviceEndpoints": "Vec", + "details": "DidDidDetails" + }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, + "StakingRates": { + "collatorStakingRate": "Perquintill", + "collatorRewardRate": "Perquintill", + "delegatorStakingRate": "Perquintill", + "delegatorRewardRate": "Perquintill" + }, + "IdentityCommitmentVersion": "u16", + "DipProofRequest": { + "identifier": "AccountId32", + "version": "IdentityCommitmentVersion", + "proofKeys": "Vec", + "accounts": "Vec", + "shouldIncludeWeb3Name": "bool" + }, + "CompleteMerkleProof": { + "root": "MerkleRoot", + "proof": "MerkleProof" + }, + "MerkleRoot": "Hash", + "MerkleProof": { + "blinded": "BlindedLeaves", + "revealed": "RevealedLeaves" + }, + "BlindedLeaves": "Vec", + "BlindedValue": "Bytes", + "RevealedLeaves": "Vec", + "RevealedLeaf": { + "_enum": { + "DidKey": "RevealedDidKey", + "Web3Name": "RevealedWeb3Name", + "LinkedAccount": "RevealedAccountId" + } + }, + "RevealedDidKey": { + "id": "Hash", + "relationship": "KeyRelationship", + "details": "DidDidDetailsDidPublicKeyDetails" + }, + "KeyRelationship": { + "_enum": { + "Encryption": "Null", + "Verification": "VerificationRelationship" + } + }, + "VerificationRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "RevealedWeb3Name": { + "web3Name": "Text", + "claimedAt": "BlockNumber" + }, + "RevealedAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RuntimeApiDipProofError": { + "_enum": { + "IdentityProvider": "LinkedDidIdentityProviderError", + "MerkleProof": "DidMerkleProofError" + } + }, + "LinkedDidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "DidDeleted", + "Internal" + ] + }, + "DidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "Internal" + ] + }, + "DidMerkleProofError": { + "_enum": [ + "UnsupportedVersion", + "KeyNotFound", + "LinkedAccountNotFound", + "Web3NameNotFound", + "Internal" + ] + }, + "AssetSwitchApiError": { + "_enum": [ + "InvalidInput", + "SwitchPoolNotFound", + "SwitchPoolNotSet", + "Internal" + ] + } + } + }, + { + "minmax": [ + 11502, + null + ], + "types": { + "DidApiAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RawDidLinkedInfo": { + "identifier": "AccountId32", + "accounts": "Vec", + "w3n": "Option", + "serviceEndpoints": "Vec", + "details": "DidDidDetails" + }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, + "StakingRates": { + "collatorStakingRate": "Perquintill", + "collatorRewardRate": "Perquintill", + "delegatorStakingRate": "Perquintill", + "delegatorRewardRate": "Perquintill" + }, + "IdentityCommitmentVersion": "u16", + "DipProofRequest": { + "identifier": "AccountId32", + "version": "IdentityCommitmentVersion", + "proofKeys": "Vec", + "accounts": "Vec", + "shouldIncludeWeb3Name": "bool" + }, + "CompleteMerkleProof": { + "root": "MerkleRoot", + "proof": "MerkleProof" + }, + "MerkleRoot": "Hash", + "MerkleProof": { + "blinded": "BlindedLeaves", + "revealed": "RevealedLeaves" + }, + "BlindedLeaves": "Vec", + "BlindedValue": "Bytes", + "RevealedLeaves": "Vec", + "RevealedLeaf": { + "_enum": { + "DidKey": "RevealedDidKey", + "Web3Name": "RevealedWeb3Name", + "LinkedAccount": "RevealedAccountId" + } + }, + "RevealedDidKey": { + "id": "Hash", + "relationship": "KeyRelationship", + "details": "DidDidDetailsDidPublicKeyDetails" + }, + "KeyRelationship": { + "_enum": { + "Encryption": "Null", + "Verification": "VerificationRelationship" + } + }, + "VerificationRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "RevealedWeb3Name": { + "web3Name": "Text", + "claimedAt": "BlockNumber" + }, + "RevealedAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RuntimeApiDipProofError": { + "_enum": { + "IdentityProvider": "LinkedDidIdentityProviderError", + "MerkleProof": "DidMerkleProofError" + } + }, + "LinkedDidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "DidDeleted", + "Internal" + ] + }, + "DidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "Internal" + ] + }, + "DidMerkleProofError": { + "_enum": [ + "UnsupportedVersion", + "KeyNotFound", + "LinkedAccountNotFound", + "Web3NameNotFound", + "Internal" + ] + }, + "AssetSwitchApiError": { + "_enum": [ + "InvalidInput", + "SwitchPoolNotFound", + "SwitchPoolNotSet", + "Internal" + ] + }, + "LinkedDidResource": { + "_enum": { + "Web3Name": "Text", + "Web3NameAccount": "PalletDidLookupLinkableAccountLinkableAccountId" + } + } + } } ] }, @@ -35264,6 +35701,156 @@ export const typesBundle = { } }, "version": 2 + }, + { + "methods": { + "query_by_web3_name": { + "description": "Return the information relative to the owner of the provided web3name, if any.", + "params": [ + { + "name": "name", + "type": "Text" + } + ], + "type": "Option" + }, + "query_by_account": { + "description": "Return the information relative to the DID to which the provided account is linked, if any.", + "params": [ + { + "name": "account", + "type": "DidApiAccountId" + } + ], + "type": "Option" + }, + "query": { + "description": "Return the information relative to the owner of the provided DID, if present.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Option" + }, + "batch_query_by_web3_name": { + "description": "Batch multiple calls of `query_by_web3_name`.", + "params": [ + { + "name": "names", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query_by_account": { + "description": "Batch multiple calls of `query_by_account`.", + "params": [ + { + "name": "accounts", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query": { + "description": "Batch multiple calls of `query`.", + "params": [ + { + "name": "dids", + "type": "Vec" + } + ], + "type": "Vec>" + } + }, + "version": 3 + }, + { + "methods": { + "query_by_web3_name": { + "description": "Return the information relative to the owner of the provided web3name, if any.", + "params": [ + { + "name": "name", + "type": "Text" + } + ], + "type": "Option" + }, + "query_by_account": { + "description": "Return the information relative to the DID to which the provided account is linked, if any.", + "params": [ + { + "name": "account", + "type": "DidApiAccountId" + } + ], + "type": "Option" + }, + "query": { + "description": "Return the information relative to the owner of the provided DID, if present.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Option" + }, + "batch_query_by_web3_name": { + "description": "Batch multiple calls of `query_by_web3_name`.", + "params": [ + { + "name": "names", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query_by_account": { + "description": "Batch multiple calls of `query_by_account`.", + "params": [ + { + "name": "accounts", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query": { + "description": "Batch multiple calls of `query`.", + "params": [ + { + "name": "dids", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "linked_resources": { + "description": "Returns the list of linked resources for a given DID that must be deleted before the DID itself can be deleted.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Vec" + }, + "linked_resources_deletion_calls": { + "description": "Returns the list of calls that must be executed to delete the linked resources of a given DID, before deleting the DID itself.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Vec" + } + }, + "version": 4 } ], "Staking": [ @@ -35355,6 +35942,205 @@ export const typesBundle = { } }, "version": 1 + }, + { + "methods": { + "pool_account_id": { + "description": "Calculate the pool account address for a switch pallet instance and asset ID", + "params": [ + { + "name": "pair_id", + "type": "Text" + }, + { + "name": "asset_id", + "type": "XcmVersionedAssetId" + } + ], + "type": "Result" + }, + "xcm_for_switch": { + "description": "Computes the XCM program that will be executed at destination to complete the cross-chain switch.", + "params": [ + { + "name": "pair_id", + "type": "Text" + }, + { + "name": "from", + "type": "AccountId32" + }, + { + "name": "to", + "type": "XcmVersionedLocation" + }, + { + "name": "amount", + "type": "u128" + } + ], + "type": "Result" + } + }, + "version": 2 + } + ], + "BondedCurrency": [ + { + "version": 1, + "methods": { + "pool_info": { + "description": "Query the pool status in a human readable format.", + "params": [ + { + "name": "pool_id", + "type": "PoolId" + } + ], + "type": "Result" + }, + "pool_infos": { + "description": "Query the pools status in a human readable format.", + "params": [ + { + "name": "pool_ids", + "type": "Vec" + } + ], + "type": "Result, BondedCurrencyError>" + }, + "quote_for": { + "description": "Calculates the collateral for the given amount. The operation is determining whether the amount is minted or burned. The calculated collateral amount is based on the current state of the pool.", + "params": [ + { + "name": "pool_id", + "type": "PoolId" + }, + { + "name": "currency_idx", + "type": "u8" + }, + { + "name": "operation", + "type": "MintBurnOperation" + } + ], + "type": "Result" + }, + "quote_for_low_and_high_bounds": { + "description": "Calculates the collateral for the given integral bounds lower and upper. This function computes the collateral amount based on the provided lower and upper bounds, regardless of the current state.", + "params": [ + { + "name": "pool_id", + "type": "PoolId" + }, + { + "name": "currency_idx", + "type": "u8" + }, + { + "name": "low", + "type": "BondedCurrenciesBalance" + }, + { + "name": "high", + "type": "BondedCurrenciesBalance" + }, + { + "name": "rounding", + "type": "RoundingKind" + } + ], + "type": "Result" + }, + "decode_curve_coefficient": { + "description": "Parses the bit representation for the coefficient to a human readable format.", + "params": [ + { + "name": "bit_representation", + "type": "FixedPointBitsType" + } + ], + "type": "Result" + }, + "encode_curve_coefficient": { + "description": "Calculates the bit representation for the coefficient. The coefficient is constructed by `coefficient_int.coefficient_frac`. The first value in the tuple is the internal calculated coefficient, represented as a Text. The second value is the bit representation.", + "params": [ + { + "name": "coefficient", + "type": "Text" + } + ], + "type": "Result" + }, + "query_pools_by_owner": { + "description": "Query all pool IDs where the given account is the owner.", + "params": [ + { + "name": "account", + "type": "AccountId32" + } + ], + "type": "Vec" + }, + "query_pools_by_manager": { + "description": "Query all pool IDs where the given account is the manager.", + "params": [ + { + "name": "account", + "type": "AccountId32" + } + ], + "type": "Vec" + } + } + } + ], + "UniqueLinking": [ + { + "version": 1, + "methods": { + "address_for_name": { + "description": "Looks up a nickname, returning the address it is linked to or None", + "params": [ + { + "name": "name", + "type": "Text" + } + ], + "type": "Option" + }, + "batch_address_for_name": { + "description": "Looks up multiple nicknames at once. For each name it returns either the address it is linked to or None", + "params": [ + { + "name": "names", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "name_for_address": { + "description": "Looks up an address, returned the nickname that is linked to it or None.", + "params": [ + { + "name": "address", + "type": "DidApiAccountId" + } + ], + "type": "Option" + }, + "batch_name_for_address": { + "description": "Looks up multiple addresses at once. For each address it returns either the nickname it is linked to or None", + "params": [ + { + "name": "addresses", + "type": "Vec" + } + ], + "type": "Vec>" + } + } } ] }, @@ -38775,7 +39561,7 @@ export const typesBundle = { { "minmax": [ 11400, - null + 11499 ], "types": { "DidApiAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", @@ -38890,6 +39676,418 @@ export const typesBundle = { ] } } + }, + { + "minmax": [ + 11500, + 11501 + ], + "types": { + "DidApiAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RawDidLinkedInfo": { + "identifier": "AccountId32", + "accounts": "Vec", + "w3n": "Option", + "serviceEndpoints": "Vec", + "details": "DidDidDetails" + }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, + "StakingRates": { + "collatorStakingRate": "Perquintill", + "collatorRewardRate": "Perquintill", + "delegatorStakingRate": "Perquintill", + "delegatorRewardRate": "Perquintill" + }, + "IdentityCommitmentVersion": "u16", + "DipProofRequest": { + "identifier": "AccountId32", + "version": "IdentityCommitmentVersion", + "proofKeys": "Vec", + "accounts": "Vec", + "shouldIncludeWeb3Name": "bool" + }, + "CompleteMerkleProof": { + "root": "MerkleRoot", + "proof": "MerkleProof" + }, + "MerkleRoot": "Hash", + "MerkleProof": { + "blinded": "BlindedLeaves", + "revealed": "RevealedLeaves" + }, + "BlindedLeaves": "Vec", + "BlindedValue": "Bytes", + "RevealedLeaves": "Vec", + "RevealedLeaf": { + "_enum": { + "DidKey": "RevealedDidKey", + "Web3Name": "RevealedWeb3Name", + "LinkedAccount": "RevealedAccountId" + } + }, + "RevealedDidKey": { + "id": "Hash", + "relationship": "KeyRelationship", + "details": "DidDidDetailsDidPublicKeyDetails" + }, + "KeyRelationship": { + "_enum": { + "Encryption": "Null", + "Verification": "VerificationRelationship" + } + }, + "VerificationRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "RevealedWeb3Name": { + "web3Name": "Text", + "claimedAt": "BlockNumber" + }, + "RevealedAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RuntimeApiDipProofError": { + "_enum": { + "IdentityProvider": "LinkedDidIdentityProviderError", + "MerkleProof": "DidMerkleProofError" + } + }, + "LinkedDidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "DidDeleted", + "Internal" + ] + }, + "DidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "Internal" + ] + }, + "DidMerkleProofError": { + "_enum": [ + "UnsupportedVersion", + "KeyNotFound", + "LinkedAccountNotFound", + "Web3NameNotFound", + "Internal" + ] + }, + "AssetSwitchApiError": { + "_enum": [ + "InvalidInput", + "SwitchPoolNotFound", + "SwitchPoolNotSet", + "Internal" + ] + }, + "BondedCurrencyError": { + "_enum": [ + "PoolNotFound", + "CurrencyNotFound", + "BalanceConversion", + "CalculationError", + "Internal", + "InvalidInput" + ] + }, + "MintBurnOperation": { + "_enum": { + "Mint": "BondedCurrenciesBalance", + "Burn": "BondedCurrenciesBalance" + } + }, + "RoundingKind": { + "_enum": [ + "Up", + "Down" + ] + }, + "PoolId": "AccountId32", + "BondedCurrenciesId": "u32", + "BondedCurrenciesBalance": "u128", + "CollateralBalance": "u128", + "FixedPointBitsType": "I128", + "EncodedCoefficient": { + "representation": "Text", + "bits": "FixedPointBitsType" + }, + "BondedCurrencyDetails": { + "id": "BondedCurrenciesId", + "name": "Text", + "symbol": "Text", + "supply": "BondedCurrenciesBalance" + }, + "TextParametrizedPolynomialCurve": { + "m": "Text", + "n": "Text", + "o": "Text" + }, + "TextParametrizedSquareRootCurve": { + "m": "Text", + "n": "Text" + }, + "TextParametrizedLmsr": { + "m": "Text" + }, + "TextParametrizedCurve": { + "_enum": { + "Polynomial": "TextParametrizedPolynomialCurve", + "SquareRoot": "TextParametrizedSquareRootCurve", + "Lmsr": "TextParametrizedLmsr" + } + }, + "CollateralDetails": { + "id": "StagingXcmV4Location", + "name": "Text", + "symbol": "Text", + "denomination": "u8" + }, + "HumanReadablePoolDetails": { + "poolId": "PoolId", + "owner": "AccountId32", + "manager": "Option", + "curve": "TextParametrizedCurve", + "collateral": "CollateralDetails", + "bondedCurrencies": "Vec", + "state": "PalletBondedCoinsPoolStatus", + "transferable": "bool", + "denomination": "u8", + "minOperationBalance": "BondedCurrenciesBalance", + "deposit": "Balance" + }, + "AccountLookupResult": { + "name": "Text", + "extra": "Option" + }, + "NameLookupResult": { + "address": "DidApiAccountId", + "extra": "Option" + } + } + }, + { + "minmax": [ + 11502, + null + ], + "types": { + "DidApiAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RawDidLinkedInfo": { + "identifier": "AccountId32", + "accounts": "Vec", + "w3n": "Option", + "serviceEndpoints": "Vec", + "details": "DidDidDetails" + }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, + "StakingRates": { + "collatorStakingRate": "Perquintill", + "collatorRewardRate": "Perquintill", + "delegatorStakingRate": "Perquintill", + "delegatorRewardRate": "Perquintill" + }, + "IdentityCommitmentVersion": "u16", + "DipProofRequest": { + "identifier": "AccountId32", + "version": "IdentityCommitmentVersion", + "proofKeys": "Vec", + "accounts": "Vec", + "shouldIncludeWeb3Name": "bool" + }, + "CompleteMerkleProof": { + "root": "MerkleRoot", + "proof": "MerkleProof" + }, + "MerkleRoot": "Hash", + "MerkleProof": { + "blinded": "BlindedLeaves", + "revealed": "RevealedLeaves" + }, + "BlindedLeaves": "Vec", + "BlindedValue": "Bytes", + "RevealedLeaves": "Vec", + "RevealedLeaf": { + "_enum": { + "DidKey": "RevealedDidKey", + "Web3Name": "RevealedWeb3Name", + "LinkedAccount": "RevealedAccountId" + } + }, + "RevealedDidKey": { + "id": "Hash", + "relationship": "KeyRelationship", + "details": "DidDidDetailsDidPublicKeyDetails" + }, + "KeyRelationship": { + "_enum": { + "Encryption": "Null", + "Verification": "VerificationRelationship" + } + }, + "VerificationRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "RevealedWeb3Name": { + "web3Name": "Text", + "claimedAt": "BlockNumber" + }, + "RevealedAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RuntimeApiDipProofError": { + "_enum": { + "IdentityProvider": "LinkedDidIdentityProviderError", + "MerkleProof": "DidMerkleProofError" + } + }, + "LinkedDidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "DidDeleted", + "Internal" + ] + }, + "DidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "Internal" + ] + }, + "DidMerkleProofError": { + "_enum": [ + "UnsupportedVersion", + "KeyNotFound", + "LinkedAccountNotFound", + "Web3NameNotFound", + "Internal" + ] + }, + "AssetSwitchApiError": { + "_enum": [ + "InvalidInput", + "SwitchPoolNotFound", + "SwitchPoolNotSet", + "Internal" + ] + }, + "BondedCurrencyError": { + "_enum": [ + "PoolNotFound", + "CurrencyNotFound", + "BalanceConversion", + "CalculationError", + "Internal", + "InvalidInput" + ] + }, + "MintBurnOperation": { + "_enum": { + "Mint": "BondedCurrenciesBalance", + "Burn": "BondedCurrenciesBalance" + } + }, + "RoundingKind": { + "_enum": [ + "Up", + "Down" + ] + }, + "PoolId": "AccountId32", + "BondedCurrenciesId": "u32", + "BondedCurrenciesBalance": "u128", + "CollateralBalance": "u128", + "FixedPointBitsType": "I128", + "EncodedCoefficient": { + "representation": "Text", + "bits": "FixedPointBitsType" + }, + "BondedCurrencyDetails": { + "id": "BondedCurrenciesId", + "name": "Text", + "symbol": "Text", + "supply": "BondedCurrenciesBalance" + }, + "TextParametrizedPolynomialCurve": { + "m": "Text", + "n": "Text", + "o": "Text" + }, + "TextParametrizedSquareRootCurve": { + "m": "Text", + "n": "Text" + }, + "TextParametrizedLmsr": { + "m": "Text" + }, + "TextParametrizedCurve": { + "_enum": { + "Polynomial": "TextParametrizedPolynomialCurve", + "SquareRoot": "TextParametrizedSquareRootCurve", + "Lmsr": "TextParametrizedLmsr" + } + }, + "CollateralDetails": { + "id": "StagingXcmV4Location", + "name": "Text", + "symbol": "Text", + "denomination": "u8" + }, + "HumanReadablePoolDetails": { + "poolId": "PoolId", + "owner": "AccountId32", + "manager": "Option", + "curve": "TextParametrizedCurve", + "collateral": "CollateralDetails", + "bondedCurrencies": "Vec", + "state": "PalletBondedCoinsPoolStatus", + "transferable": "bool", + "denomination": "u8", + "minOperationBalance": "BondedCurrenciesBalance", + "deposit": "Balance" + }, + "AccountLookupResult": { + "name": "Text", + "extra": "Option" + }, + "NameLookupResult": { + "address": "DidApiAccountId", + "extra": "Option" + }, + "LinkedDidResource": { + "_enum": { + "Web3Name": "Text", + "Web3NameAccount": "PalletDidLookupLinkableAccountLinkableAccountId" + } + } + } } ] }, @@ -39037,6 +40235,156 @@ export const typesBundle = { } }, "version": 2 + }, + { + "methods": { + "query_by_web3_name": { + "description": "Return the information relative to the owner of the provided web3name, if any.", + "params": [ + { + "name": "name", + "type": "Text" + } + ], + "type": "Option" + }, + "query_by_account": { + "description": "Return the information relative to the DID to which the provided account is linked, if any.", + "params": [ + { + "name": "account", + "type": "DidApiAccountId" + } + ], + "type": "Option" + }, + "query": { + "description": "Return the information relative to the owner of the provided DID, if present.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Option" + }, + "batch_query_by_web3_name": { + "description": "Batch multiple calls of `query_by_web3_name`.", + "params": [ + { + "name": "names", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query_by_account": { + "description": "Batch multiple calls of `query_by_account`.", + "params": [ + { + "name": "accounts", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query": { + "description": "Batch multiple calls of `query`.", + "params": [ + { + "name": "dids", + "type": "Vec" + } + ], + "type": "Vec>" + } + }, + "version": 3 + }, + { + "methods": { + "query_by_web3_name": { + "description": "Return the information relative to the owner of the provided web3name, if any.", + "params": [ + { + "name": "name", + "type": "Text" + } + ], + "type": "Option" + }, + "query_by_account": { + "description": "Return the information relative to the DID to which the provided account is linked, if any.", + "params": [ + { + "name": "account", + "type": "DidApiAccountId" + } + ], + "type": "Option" + }, + "query": { + "description": "Return the information relative to the owner of the provided DID, if present.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Option" + }, + "batch_query_by_web3_name": { + "description": "Batch multiple calls of `query_by_web3_name`.", + "params": [ + { + "name": "names", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query_by_account": { + "description": "Batch multiple calls of `query_by_account`.", + "params": [ + { + "name": "accounts", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query": { + "description": "Batch multiple calls of `query`.", + "params": [ + { + "name": "dids", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "linked_resources": { + "description": "Returns the list of linked resources for a given DID that must be deleted before the DID itself can be deleted.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Vec" + }, + "linked_resources_deletion_calls": { + "description": "Returns the list of calls that must be executed to delete the linked resources of a given DID, before deleting the DID itself.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Vec" + } + }, + "version": 4 } ], "PublicCredentials": [ @@ -42488,7 +43836,7 @@ export const typesBundle = { { "minmax": [ 11400, - null + 11499 ], "types": { "DidApiAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", @@ -42603,6 +43951,252 @@ export const typesBundle = { ] } } + }, + { + "minmax": [ + 11500, + 11501 + ], + "types": { + "DidApiAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RawDidLinkedInfo": { + "identifier": "AccountId32", + "accounts": "Vec", + "w3n": "Option", + "serviceEndpoints": "Vec", + "details": "DidDidDetails" + }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, + "StakingRates": { + "collatorStakingRate": "Perquintill", + "collatorRewardRate": "Perquintill", + "delegatorStakingRate": "Perquintill", + "delegatorRewardRate": "Perquintill" + }, + "IdentityCommitmentVersion": "u16", + "DipProofRequest": { + "identifier": "AccountId32", + "version": "IdentityCommitmentVersion", + "proofKeys": "Vec", + "accounts": "Vec", + "shouldIncludeWeb3Name": "bool" + }, + "CompleteMerkleProof": { + "root": "MerkleRoot", + "proof": "MerkleProof" + }, + "MerkleRoot": "Hash", + "MerkleProof": { + "blinded": "BlindedLeaves", + "revealed": "RevealedLeaves" + }, + "BlindedLeaves": "Vec", + "BlindedValue": "Bytes", + "RevealedLeaves": "Vec", + "RevealedLeaf": { + "_enum": { + "DidKey": "RevealedDidKey", + "Web3Name": "RevealedWeb3Name", + "LinkedAccount": "RevealedAccountId" + } + }, + "RevealedDidKey": { + "id": "Hash", + "relationship": "KeyRelationship", + "details": "DidDidDetailsDidPublicKeyDetails" + }, + "KeyRelationship": { + "_enum": { + "Encryption": "Null", + "Verification": "VerificationRelationship" + } + }, + "VerificationRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "RevealedWeb3Name": { + "web3Name": "Text", + "claimedAt": "BlockNumber" + }, + "RevealedAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RuntimeApiDipProofError": { + "_enum": { + "IdentityProvider": "LinkedDidIdentityProviderError", + "MerkleProof": "DidMerkleProofError" + } + }, + "LinkedDidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "DidDeleted", + "Internal" + ] + }, + "DidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "Internal" + ] + }, + "DidMerkleProofError": { + "_enum": [ + "UnsupportedVersion", + "KeyNotFound", + "LinkedAccountNotFound", + "Web3NameNotFound", + "Internal" + ] + }, + "AssetSwitchApiError": { + "_enum": [ + "InvalidInput", + "SwitchPoolNotFound", + "SwitchPoolNotSet", + "Internal" + ] + } + } + }, + { + "minmax": [ + 11502, + null + ], + "types": { + "DidApiAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RawDidLinkedInfo": { + "identifier": "AccountId32", + "accounts": "Vec", + "w3n": "Option", + "serviceEndpoints": "Vec", + "details": "DidDidDetails" + }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, + "StakingRates": { + "collatorStakingRate": "Perquintill", + "collatorRewardRate": "Perquintill", + "delegatorStakingRate": "Perquintill", + "delegatorRewardRate": "Perquintill" + }, + "IdentityCommitmentVersion": "u16", + "DipProofRequest": { + "identifier": "AccountId32", + "version": "IdentityCommitmentVersion", + "proofKeys": "Vec", + "accounts": "Vec", + "shouldIncludeWeb3Name": "bool" + }, + "CompleteMerkleProof": { + "root": "MerkleRoot", + "proof": "MerkleProof" + }, + "MerkleRoot": "Hash", + "MerkleProof": { + "blinded": "BlindedLeaves", + "revealed": "RevealedLeaves" + }, + "BlindedLeaves": "Vec", + "BlindedValue": "Bytes", + "RevealedLeaves": "Vec", + "RevealedLeaf": { + "_enum": { + "DidKey": "RevealedDidKey", + "Web3Name": "RevealedWeb3Name", + "LinkedAccount": "RevealedAccountId" + } + }, + "RevealedDidKey": { + "id": "Hash", + "relationship": "KeyRelationship", + "details": "DidDidDetailsDidPublicKeyDetails" + }, + "KeyRelationship": { + "_enum": { + "Encryption": "Null", + "Verification": "VerificationRelationship" + } + }, + "VerificationRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "RevealedWeb3Name": { + "web3Name": "Text", + "claimedAt": "BlockNumber" + }, + "RevealedAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RuntimeApiDipProofError": { + "_enum": { + "IdentityProvider": "LinkedDidIdentityProviderError", + "MerkleProof": "DidMerkleProofError" + } + }, + "LinkedDidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "DidDeleted", + "Internal" + ] + }, + "DidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "Internal" + ] + }, + "DidMerkleProofError": { + "_enum": [ + "UnsupportedVersion", + "KeyNotFound", + "LinkedAccountNotFound", + "Web3NameNotFound", + "Internal" + ] + }, + "AssetSwitchApiError": { + "_enum": [ + "InvalidInput", + "SwitchPoolNotFound", + "SwitchPoolNotSet", + "Internal" + ] + }, + "LinkedDidResource": { + "_enum": { + "Web3Name": "Text", + "Web3NameAccount": "PalletDidLookupLinkableAccountLinkableAccountId" + } + } + } } ] }, @@ -42750,6 +44344,156 @@ export const typesBundle = { } }, "version": 2 + }, + { + "methods": { + "query_by_web3_name": { + "description": "Return the information relative to the owner of the provided web3name, if any.", + "params": [ + { + "name": "name", + "type": "Text" + } + ], + "type": "Option" + }, + "query_by_account": { + "description": "Return the information relative to the DID to which the provided account is linked, if any.", + "params": [ + { + "name": "account", + "type": "DidApiAccountId" + } + ], + "type": "Option" + }, + "query": { + "description": "Return the information relative to the owner of the provided DID, if present.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Option" + }, + "batch_query_by_web3_name": { + "description": "Batch multiple calls of `query_by_web3_name`.", + "params": [ + { + "name": "names", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query_by_account": { + "description": "Batch multiple calls of `query_by_account`.", + "params": [ + { + "name": "accounts", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query": { + "description": "Batch multiple calls of `query`.", + "params": [ + { + "name": "dids", + "type": "Vec" + } + ], + "type": "Vec>" + } + }, + "version": 3 + }, + { + "methods": { + "query_by_web3_name": { + "description": "Return the information relative to the owner of the provided web3name, if any.", + "params": [ + { + "name": "name", + "type": "Text" + } + ], + "type": "Option" + }, + "query_by_account": { + "description": "Return the information relative to the DID to which the provided account is linked, if any.", + "params": [ + { + "name": "account", + "type": "DidApiAccountId" + } + ], + "type": "Option" + }, + "query": { + "description": "Return the information relative to the owner of the provided DID, if present.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Option" + }, + "batch_query_by_web3_name": { + "description": "Batch multiple calls of `query_by_web3_name`.", + "params": [ + { + "name": "names", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query_by_account": { + "description": "Batch multiple calls of `query_by_account`.", + "params": [ + { + "name": "accounts", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "batch_query": { + "description": "Batch multiple calls of `query`.", + "params": [ + { + "name": "dids", + "type": "Vec" + } + ], + "type": "Vec>" + }, + "linked_resources": { + "description": "Returns the list of linked resources for a given DID that must be deleted before the DID itself can be deleted.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Vec" + }, + "linked_resources_deletion_calls": { + "description": "Returns the list of calls that must be executed to delete the linked resources of a given DID, before deleting the DID itself.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Vec" + } + }, + "version": 4 } ], "DipProvider": [ @@ -46187,7 +47931,7 @@ export const typesBundle = { { "minmax": [ 11400, - null + 11499 ], "types": { "DidApiAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", @@ -46302,6 +48046,252 @@ export const typesBundle = { ] } } + }, + { + "minmax": [ + 11500, + 11501 + ], + "types": { + "DidApiAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RawDidLinkedInfo": { + "identifier": "AccountId32", + "accounts": "Vec", + "w3n": "Option", + "serviceEndpoints": "Vec", + "details": "DidDidDetails" + }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, + "StakingRates": { + "collatorStakingRate": "Perquintill", + "collatorRewardRate": "Perquintill", + "delegatorStakingRate": "Perquintill", + "delegatorRewardRate": "Perquintill" + }, + "IdentityCommitmentVersion": "u16", + "DipProofRequest": { + "identifier": "AccountId32", + "version": "IdentityCommitmentVersion", + "proofKeys": "Vec", + "accounts": "Vec", + "shouldIncludeWeb3Name": "bool" + }, + "CompleteMerkleProof": { + "root": "MerkleRoot", + "proof": "MerkleProof" + }, + "MerkleRoot": "Hash", + "MerkleProof": { + "blinded": "BlindedLeaves", + "revealed": "RevealedLeaves" + }, + "BlindedLeaves": "Vec", + "BlindedValue": "Bytes", + "RevealedLeaves": "Vec", + "RevealedLeaf": { + "_enum": { + "DidKey": "RevealedDidKey", + "Web3Name": "RevealedWeb3Name", + "LinkedAccount": "RevealedAccountId" + } + }, + "RevealedDidKey": { + "id": "Hash", + "relationship": "KeyRelationship", + "details": "DidDidDetailsDidPublicKeyDetails" + }, + "KeyRelationship": { + "_enum": { + "Encryption": "Null", + "Verification": "VerificationRelationship" + } + }, + "VerificationRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "RevealedWeb3Name": { + "web3Name": "Text", + "claimedAt": "BlockNumber" + }, + "RevealedAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RuntimeApiDipProofError": { + "_enum": { + "IdentityProvider": "LinkedDidIdentityProviderError", + "MerkleProof": "DidMerkleProofError" + } + }, + "LinkedDidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "DidDeleted", + "Internal" + ] + }, + "DidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "Internal" + ] + }, + "DidMerkleProofError": { + "_enum": [ + "UnsupportedVersion", + "KeyNotFound", + "LinkedAccountNotFound", + "Web3NameNotFound", + "Internal" + ] + }, + "AssetSwitchApiError": { + "_enum": [ + "InvalidInput", + "SwitchPoolNotFound", + "SwitchPoolNotSet", + "Internal" + ] + } + } + }, + { + "minmax": [ + 11502, + null + ], + "types": { + "DidApiAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RawDidLinkedInfo": { + "identifier": "AccountId32", + "accounts": "Vec", + "w3n": "Option", + "serviceEndpoints": "Vec", + "details": "DidDidDetails" + }, + "PublicCredentialFilter": { + "_enum": { + "ctypeHash": "Hash", + "attester": "AccountId32" + } + }, + "PublicCredentialError": { + "_enum": [ + "InvalidSubjectId" + ] + }, + "StakingRates": { + "collatorStakingRate": "Perquintill", + "collatorRewardRate": "Perquintill", + "delegatorStakingRate": "Perquintill", + "delegatorRewardRate": "Perquintill" + }, + "IdentityCommitmentVersion": "u16", + "DipProofRequest": { + "identifier": "AccountId32", + "version": "IdentityCommitmentVersion", + "proofKeys": "Vec", + "accounts": "Vec", + "shouldIncludeWeb3Name": "bool" + }, + "CompleteMerkleProof": { + "root": "MerkleRoot", + "proof": "MerkleProof" + }, + "MerkleRoot": "Hash", + "MerkleProof": { + "blinded": "BlindedLeaves", + "revealed": "RevealedLeaves" + }, + "BlindedLeaves": "Vec", + "BlindedValue": "Bytes", + "RevealedLeaves": "Vec", + "RevealedLeaf": { + "_enum": { + "DidKey": "RevealedDidKey", + "Web3Name": "RevealedWeb3Name", + "LinkedAccount": "RevealedAccountId" + } + }, + "RevealedDidKey": { + "id": "Hash", + "relationship": "KeyRelationship", + "details": "DidDidDetailsDidPublicKeyDetails" + }, + "KeyRelationship": { + "_enum": { + "Encryption": "Null", + "Verification": "VerificationRelationship" + } + }, + "VerificationRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "RevealedWeb3Name": { + "web3Name": "Text", + "claimedAt": "BlockNumber" + }, + "RevealedAccountId": "PalletDidLookupLinkableAccountLinkableAccountId", + "RuntimeApiDipProofError": { + "_enum": { + "IdentityProvider": "LinkedDidIdentityProviderError", + "MerkleProof": "DidMerkleProofError" + } + }, + "LinkedDidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "DidDeleted", + "Internal" + ] + }, + "DidIdentityProviderError": { + "_enum": [ + "DidNotFound", + "Internal" + ] + }, + "DidMerkleProofError": { + "_enum": [ + "UnsupportedVersion", + "KeyNotFound", + "LinkedAccountNotFound", + "Web3NameNotFound", + "Internal" + ] + }, + "AssetSwitchApiError": { + "_enum": [ + "InvalidInput", + "SwitchPoolNotFound", + "SwitchPoolNotSet", + "Internal" + ] + }, + "LinkedDidResource": { + "_enum": { + "Web3Name": "Text", + "Web3NameAccount": "PalletDidLookupLinkableAccountLinkableAccountId" + } + } + } } ] }, diff --git a/yarn.lock b/yarn.lock index 50f8b92257..5a7a05206b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -865,12 +865,12 @@ __metadata: languageName: node linkType: hard -"@kiltprotocol/type-definitions@npm:^1.11401.0": - version: 1.11401.0 - resolution: "@kiltprotocol/type-definitions@npm:1.11401.0" +"@kiltprotocol/type-definitions@npm:^1.11502.1": + version: 1.11502.1 + resolution: "@kiltprotocol/type-definitions@npm:1.11502.1" peerDependencies: "@polkadot/types": ^12.2.0 - checksum: 10/b37bcc3e0630598a2f5844709502debb7b4ab6e63abc3919ad2791ab12e3c8f9579199efd6095b03b545c1d334ab831340033a5d8145952218c2a6f112e34281 + checksum: 10/dc00532617383022d02583705122914f1e57036efdfd3d0b134f1298dfa75f1071316fb8dd2dd62c6b6ae74419f59f27011afecaa019f9f8e96eb5f12aad7ff4 languageName: node linkType: hard @@ -2127,7 +2127,7 @@ __metadata: "@frequency-chain/api-augment": "npm:1.11.1" "@interlay/interbtc-types": "npm:1.13.0" "@jamton/parachain-ts-interfaces": "npm:1.10.4" - "@kiltprotocol/type-definitions": "npm:^1.11401.0" + "@kiltprotocol/type-definitions": "npm:^1.11502.1" "@laminar/type-definitions": "npm:0.3.1" "@logion/node-api": "npm:0.27.0-4" "@mangata-finance/type-definitions": "npm:^2.1.2"