diff --git a/CONTRIBUTORS b/CONTRIBUTORS index b32fc14705e9..dd8a0088dcd4 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -8,6 +8,7 @@ 31 Stefanie Doll Set higher default gas limit, switch from bitlength u32 to u128 for input fields (#2743) 30 brenzi make encointer teleporter again (#10484) 30 RadiumBlock Adding RadiumBlock as Polkadot AssetHub, Kusama AssetHub, BridgeHub-Kusama and BridgeHub-Polkadot Endpoint provider (#10292) + 30 Tarik Gul Disable unreachable endpoints (#10569) 30 Yongfeng LI Add more statescan external links (#10479) 29 Ewa Kowalska Style badges in accounts list (#6208) 27 Yiwei Li Re-add OnFinality endpoints for Parallel and Unique (#9641) @@ -15,7 +16,6 @@ 25 Krzysztof Jelski Increase UI test timeouts and mark interBTC unreachable (#6247) 25 Luke Schoen fix typo kusama (#3083) 24 sxlwar crab config (#6995) - 24 Tarik Gul 0.137.1 (#10518) 24 WoeOm feat: subscan support fellowship, referenda v2 (#8987) 20 Nikita Update icon and colors for Realis.Network (#6336) 18 fomod-in Update translation.json (#5942) @@ -37,6 +37,7 @@ 12 Kun [Substrate Files] New files module (#6106) 12 Nikos Kontakis Change ethereum icons based on URL; Fixes #9632 (#9694) 12 Oleh Mell Add new chains for Sub.ID external link (#9540) + 11 Bulat Saifullin Add people-kusama RPC (#10546) 11 Daniel Savu Change InterBTC network name to Interlay (#6700) 11 Gérard Dethier Archive Logion solochain and switch testnet (#10496) 11 Jay Remove Crab Dwellir endpoint (#10222) @@ -44,14 +45,13 @@ 11 lumir-mrkva refactored lbp types updated (#6504) 11 qwer951123 update acala types (#8394) 11 Ross Bulat Substrate tab theme adjustment (#939) - 10 Bulat Saifullin Add coretime-kusama RPC (#10454) 10 Greg Zaitsev Update Unique Network and Quartz by Unique endpoints (#7689) + 10 Jakob Dwellir: update AssetHub endpoints (#10529) 10 Nantian add karura (#5441) 10 zzcwoshizz rm elara endpoint (#6778) 9 albertov19 update dancebox endpoint (#10502) 9 Chevdor Add doc related to IPFS and pinning (#2788) 9 darkfriend77 fix: bad logo after PR 8941 (#8947) - 9 Jakob Add Dwellir asset-hub-paseo-rpc endpoint (#10492) 9 Justin Pham Add extra metaverse network pioneer RPC (#9935) 9 Nikhil Ranjan Identity fix. Username has been introduced in identity pallet. (#10491) 9 NZT48 Remove connection between 3360 chain id and NeuroWeb (#10467) @@ -81,6 +81,7 @@ 7 Qiwei Yang fix: remove local account storage override (#10461) 7 Rob Thijssen new (Manta Network) load balanced provider url (#9343) 7 Will | Paradox | ParaNodes.io Enable LuckyFriday Bridgehub (#10306) + 6 2075 update zero canary, alphaville (#10537) 6 benjichat Remove Dwellir from Pendulum (#10429) 6 Daniel Yamuza Swap yes/no (voting) to Toggle (#2519) 6 Dominik Harz refactor: update testnet URL (#7013) @@ -91,6 +92,7 @@ 6 Ivan Rukhavets Update README.md for electron apps (#3362) 6 Joshy Orndorff clarify conviction locking (#6008) 6 mateuszaaa replace outdate mangata testnet with rococo testnet (#7710) + 6 Milos Kriz Maintenance of IBP endpoints for several chains (#10514) 6 Nizar L Firmansyah Update Bahasa Indonesia Translation (#3823) 6 pangwa update clover types (#6852) 6 stanly-johnson Update rocfinity paraId (#7094) @@ -109,13 +111,12 @@ 5 FreePoi remove support of karura by elara (#6639) 5 imstar15 Remove the Turing Network endpoint provided by the provider Dwellir (#10370) 5 Ismail Mbarack (Nas) updated Darwinia crab RPC (#9166) + 5 kaioh33 add dwellir tangle to polkadot.js (#10535) 5 Lovesh Harchandani Update types (#5499) - 5 marco feat: add subzero (#8657) 5 Marko Petrlić Update Ternoa logo and mainnet name (#7758) 5 Marni trying to get mapping of nominators correct (#346) 5 Masterdubs update and clean galital standalone chain specs and type (#5225) 5 Michael Müller Rename `Canvas` to `Contracts` (#7633) - 5 Milos Kriz add Paseo's IBP endpoint (#10336) 5 Min-seong Kwon Update chain text. (thebifrost network) (#9966) 5 mosonyi Add new OnFinality endpoint for Integritee and remove Solo (#7628) 5 Myron [Crust] Add crust shadow crowdloan 2 (#8185) @@ -124,6 +125,7 @@ 5 sebastianmontero Updated endpoints for Hashed Systems 1 and 2 providers. (#10464) 5 Shamilkhan Add CereStats as an externalLink for Cere Mainnet. (#9887) 5 Shankar D. Warang feat: add edgscan.ink explorer (#10186) + 5 SURF removing onfinality endpoint for Peaq (#10567) 5 xnorly trying to improve the filtering options for target validators (#7080) 4 1xstj fix : Update tangle testnet url/images (#9885) 4 Abhishek Update the provider Phyken Network (#10399) @@ -139,13 +141,12 @@ 4 Jegor Sidorenko Support ipfs://ipfs/ links (#9772) 4 Jianping Deng Update calamari crowdloan UI and Dropdown menu (#6021) 4 John Whitton Update EAVE Parachain id for Rococo (#5286) - 4 kaioh33 Add dwellir liberland endpoint (#10332) 4 Kami Fixes #9260 (#10002) 4 lavish0000 Update krest network providers (#10046) 4 Leemo Updated Robonomics RPCs (#8329) 4 Luke Sugiura Refactor Backup component with hooks (#1927) 4 Marcin Wachulski Account row collapsible row details (#5894) - 4 marco feat: add subzero (#8657) + 4 marco update zero canary, alphaville (#10537) 4 Max Gravitt adding Hashed Network endpoint back and removing Luhn Network (#9100) 4 Michal Danco feat: update mangata type definitons to new major version (#9976) 4 MinjieTian Add onfinaliy Aleph zero endpoint (#9926) @@ -167,6 +168,7 @@ 3 Andreea Eftene change chain name (#7114) 3 Andy Smith Enable appPromotion RPC for Unique Network (#9188) 3 Anthony Lazam Add Polkadot Bridgehub (#8985) + 3 Antonio chore: upgrade KILT to SDK 0.35.1 (#10536) 3 Aten Jin add altlayer's ethereum dev chain to `ethereumChains` (#10019) 3 bari remote uniarts's isUnreachable (#6027) 3 Benjamin Lau Added Pinknode Endpoints (#5935) @@ -224,7 +226,6 @@ 2 André Silva Fix typo in chain specifications (#5659) 2 Anoymous Hentai Update Phala's type definition (#5131) 2 Antonio feat: re-introduce support for chain names (#8594) - 2 Antonio chore: replace spec-based with name-based declarations for KILT (#8696) 2 BoBin Update subscan.ts, change the host of some networks (#10402) 2 Bobo Rename StakeTechnologies to Astar (#9813) 2 Branan Riley Re-enable Altair endpoint (#5739) @@ -286,7 +287,6 @@ 2 soufiane-capsule Ternoa is a live network (#10180) 2 Sourabh Niyogi disable polkaholic (#10360) 2 superpw minor fix for button/sliders colors (#4715) - 2 SURF OnFinality Frequency Recovery (#10159) 2 Teodorus Nathaniel Set provider for subsocial to only para.subsocial.network (#8868) 2 Tom Add IBP RPC endpoints for coretime-westend, coretime-people, and asset-hub-paseo (#10462) 2 Toney change chainid from 128 to 2048 for apron (#5081) @@ -364,6 +364,7 @@ 1 FOB Fix Polymesh types bundle to use correct specNames and update branding (#9182) 1 Fr4ctalbit Turn Submit proposal tab into a modal (#1698) 1 Francesco Occhipinti [CI Skip] update the remote server location, closes #487 (#492) + 1 Frank Bell chore(pop): add rpc (#10538) 1 gabriel klawitter CI: add file for substrate-ui and substrate-ui-light domains (#767) 1 George Angelopoulos typo fix (#5704) 1 Georgi Zlatarev Dolphin parachain on Rococo (#7401) @@ -380,6 +381,7 @@ 1 Harjyot Singh Update translation.json (#3570) 1 Harold Glenn Minerva Add Xode Project (#10273) 1 Harry Liu Update README.md (#1437) + 1 Hector Bulgarini Adding RPCs to Paseo Network. (#10530) 1 Henry Bump moonbeam-types-bundle version in apps-config to fix some missing types (#8008) 1 Ian He add onfinality endpoint for polkadot and kusama (#4070) 1 igorgogo Add Spanner (#6058) @@ -480,6 +482,7 @@ 1 Sam Hellawell Fix dock logos being blurry/low res (#4427) 1 Sasha Gryaznov Add Yerba Network to Kusama (#10203) 1 Satyam Agrawal Add Polymesh ITN Provider (#5242) + 1 Sephiroth Add Allnodes endpoints for Polkadot, Kusama, Moonbeam, Moonriver (#10520) 1 Sergei Lonshakov Robonomics ParaID 2077 added (#5706) 1 Shailesh B Nair Add KlugDossier (#5456) 1 Shamil Move Vara from Live networks to Test networks (#8295) diff --git a/package.json b/package.json index 31625ee0738c..1179f9668441 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "versions": { - "git": "0.137.1", + "git": "0.137.2-16-x", "npm": "0.137.1" }, "workspaces": [ @@ -98,24 +98,24 @@ "source-map-explorer": "^2.5.3" }, "resolutions": { - "@polkadot/api": "^11.0.2", - "@polkadot/api-augment": "^11.0.2", - "@polkadot/api-base": "^11.0.2", - "@polkadot/api-contract": "^11.0.2", - "@polkadot/api-derive": "^11.0.2", + "@polkadot/api": "^11.0.3", + "@polkadot/api-augment": "^11.0.3", + "@polkadot/api-base": "^11.0.3", + "@polkadot/api-contract": "^11.0.3", + "@polkadot/api-derive": "^11.0.3", "@polkadot/hw-ledger": "^12.6.2", "@polkadot/keyring": "^12.6.2", "@polkadot/networks": "^12.6.2", "@polkadot/phishing": "^0.22.6", - "@polkadot/rpc-augment": "^11.0.2", - "@polkadot/rpc-core": "^11.0.2", - "@polkadot/rpc-provider": "^11.0.2", - "@polkadot/types": "^11.0.2", - "@polkadot/types-augment": "^11.0.2", - "@polkadot/types-codec": "^11.0.2", - "@polkadot/types-create": "^11.0.2", - "@polkadot/types-known": "^11.0.2", - "@polkadot/types-support": "^11.0.2", + "@polkadot/rpc-augment": "^11.0.3", + "@polkadot/rpc-core": "^11.0.3", + "@polkadot/rpc-provider": "^11.0.3", + "@polkadot/types": "^11.0.3", + "@polkadot/types-augment": "^11.0.3", + "@polkadot/types-codec": "^11.0.3", + "@polkadot/types-create": "^11.0.3", + "@polkadot/types-known": "^11.0.3", + "@polkadot/types-support": "^11.0.3", "@polkadot/util": "^12.6.2", "@polkadot/util-crypto": "^12.6.2", "@polkadot/wasm-crypto": "^7.3.2", @@ -126,7 +126,7 @@ "@polkadot/x-textdecoder": "^12.6.2", "@polkadot/x-textencoder": "^12.6.2", "@polkadot/x-ws": "^12.6.2", - "typescript": "^5.3.3", - "@zondax/ledger-substrate": "^0.42.1" + "@zondax/ledger-substrate": "^0.42.1", + "typescript": "^5.3.3" } } diff --git a/packages/apps-config/package.json b/packages/apps-config/package.json index 451018980a8e..ccd842af1f6d 100644 --- a/packages/apps-config/package.json +++ b/packages/apps-config/package.json @@ -13,7 +13,7 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "main": "index.js", "dependencies": { "@acala-network/type-definitions": "5.1.2", @@ -28,7 +28,7 @@ "@fragnova/api-augment": "0.1.0-spec-1.0.4-mainnet", "@frequency-chain/api-augment": "1.11.1", "@interlay/interbtc-types": "1.13.0", - "@kiltprotocol/type-definitions": "0.34.0", + "@kiltprotocol/type-definitions": "0.35.1", "@laminar/type-definitions": "0.3.1", "@logion/node-api": "0.27.0-4", "@mangata-finance/type-definitions": "^2.1.2", @@ -37,12 +37,12 @@ "@peaqnetwork/type-definitions": "0.0.4", "@pendulum-chain/type-definitions": "0.3.8", "@phala/typedefs": "0.2.33", - "@polkadot/api": "^11.0.2", - "@polkadot/api-derive": "^11.0.2", + "@polkadot/api": "^11.0.3", + "@polkadot/api-derive": "^11.0.3", "@polkadot/networks": "^12.6.2", "@polkadot/react-identicon": "^3.6.6", - "@polkadot/types": "^11.0.2", - "@polkadot/types-codec": "^11.0.2", + "@polkadot/types": "^11.0.3", + "@polkadot/types-codec": "^11.0.3", "@polkadot/util": "^12.6.2", "@polkadot/wasm-util": "^7.3.2", "@polkadot/x-fetch": "^12.6.2", diff --git a/packages/apps-config/src/api/chain/index.ts b/packages/apps-config/src/api/chain/index.ts index b2160294affc..b3f9f1b5557f 100644 --- a/packages/apps-config/src/api/chain/index.ts +++ b/packages/apps-config/src/api/chain/index.ts @@ -15,6 +15,7 @@ const chain: Record = { 'Cere Mainnet Beta': cere, 'KILT Mashnet': kilt['KILT Mashnet'], 'KILT Peregrine': kilt['KILT Peregrine'], + 'KILT Peregrine Develop': kilt['KILT Peregrine Develop'], 'KILT Peregrine Stagenet': kilt['KILT Peregrine Stagenet'], 'KILT Spiritnet': kilt['KILT Spiritnet'], 'KILT Spiritnet Develop': kilt['KILT Spiritnet Develop'] diff --git a/packages/apps-config/src/api/typesBundle.ts b/packages/apps-config/src/api/typesBundle.ts index 8d0b89c22294..753db95e8c1e 100644 --- a/packages/apps-config/src/api/typesBundle.ts +++ b/packages/apps-config/src/api/typesBundle.ts @@ -3539,6 +3539,39 @@ export const typesBundle = { { "minmax": [ 10900, + 11199 + ], + "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" + } + } + }, + { + "minmax": [ + 11200, null ], "types": { @@ -3566,6 +3599,85 @@ export const typesBundle = { "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" + ] } } } @@ -3769,6 +3881,23 @@ export const typesBundle = { }, "version": 1 } + ], + "DipProvider": [ + { + "methods": { + "generate_proof": { + "description": "Generate a Merkle proof for the DIP protocol for the specified request parameters.", + "params": [ + { + "name": "request", + "type": "DipProofRequest" + } + ], + "type": "Result" + } + }, + "version": 1 + } ] }, "types": [ @@ -7042,7 +7171,3673 @@ export const typesBundle = { }, { "minmax": [ - 10900, + 10900, + 11199 + ], + "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" + } + } + }, + { + "minmax": [ + 11200, + 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" + ] + } + } + } + ] + }, + "KILT Peregrine Develop": { + "runtime": { + "DidApi": [ + { + "methods": { + "query_did_by_w3n": { + "description": "Return the information relative to the owner of the provided web3name, if any.", + "params": [ + { + "name": "name", + "type": "Text" + } + ], + "type": "Option" + }, + "query_did_by_account_id": { + "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_did": { + "description": "Return the information relative to the owner of the provided DID, if present.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Option" + } + }, + "version": 1 + }, + { + "methods": { + "query_did_by_w3n": { + "description": "Return the information relative to the owner of the provided web3name, if any.", + "params": [ + { + "name": "name", + "type": "Text" + } + ], + "type": "Option" + }, + "query_did_by_account_id": { + "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_did": { + "description": "Return the information relative to the owner of the provided DID, if present.", + "params": [ + { + "name": "did", + "type": "AccountId32" + } + ], + "type": "Option" + } + }, + "version": 2 + } + ], + "Did": [ + { + "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" + } + }, + "version": 1 + }, + { + "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" + } + }, + "version": 2 + } + ], + "Staking": [ + { + "methods": { + "get_staking_rates": { + "description": "Calculate the current staking and reward rates for collators and delegators", + "params": [], + "type": "StakingRates" + }, + "get_unclaimed_staking_rewards": { + "description": "Calculate the claimable staking rewards for a given account address", + "params": [ + { + "name": "account", + "type": "AccountId32" + } + ], + "type": "Balance" + } + }, + "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 + } + ], + "DipProvider": [ + { + "methods": { + "generate_proof": { + "description": "Generate a Merkle proof for the DIP protocol for the specified request parameters.", + "params": [ + { + "name": "request", + "type": "DipProofRequest" + } + ], + "type": "Result" + } + }, + "version": 1 + } + ] + }, + "types": [ + { + "minmax": [ + 0, + 8 + ], + "types": { + "DispatchError": "DispatchErrorPre6First", + "AccountInfo": "AccountInfoWithDualRefCount", + "Address": "AccountId", + "Attestation": { + "ctypeHash": "Hash", + "attester": "AccountId", + "delegationId": "Option", + "revoked": "bool" + }, + "Balance": "u128", + "DelegationNode": { + "rootId": "DelegationNodeId", + "parent": "Option", + "owner": "AccountId", + "permissions": "Permissions", + "revoked": "bool" + }, + "DelegationNodeId": "Hash", + "DelegationRoot": { + "ctypeHash": "Hash", + "owner": "AccountId", + "revoked": "bool" + }, + "DidRecord": { + "signKey": "Hash", + "boxKey": "Hash", + "docRef": "Option>" + }, + "Index": "u64", + "LookupSource": "AccountId", + "Permissions": "u32", + "PublicBoxKey": "Hash", + "PublicSigningKey": "Hash", + "Signature": "MultiSignature", + "XCurrencyId": { + "chainId": "ChainId", + "currencyId": "Vec" + }, + "ChainId": { + "_enum": { + "RelayChain": "Null", + "ParaChain": "ParaId" + } + }, + "CurrencyIdOf": "CurrencyId", + "CurrencyId": { + "_enum": { + "DOT": 0, + "KSM": 1, + "KILT": 2 + } + }, + "XcmError": { + "_enum": { + "Undefined": 0, + "Unimplemented": 1, + "UnhandledXcmVersion": 2, + "UnhandledXcmMessage": 3, + "UnhandledEffect": 4, + "EscalationOfPrivilege": 5, + "UntrustedReserveLocation": 6, + "UntrustedTeleportLocation": 7, + "DestinationBufferOverflow": 8, + "CannotReachDestination": 9, + "MultiLocationFull": 10, + "FailedToDecode": 11, + "BadOrigin": 12, + "ExceedsMaxMessageSize": 13, + "FailedToTransactAsset": 14 + } + }, + "ReferendumInfo": { + "_enum": { + "Ongoing": "ReferendumStatus", + "Finished": "ReferendumInfoFinished" + } + } + } + }, + { + "minmax": [ + 9, + 9 + ], + "types": { + "DispatchError": "DispatchErrorPre6First", + "AccountInfo": "AccountInfoWithTripleRefCount", + "Address": "MultiAddress", + "AmountOf": "i128", + "Balance": "u128", + "BlockNumber": "u64", + "Index": "u64", + "LookupSource": "MultiAddress", + "CtypeCreatorOf": "DidIdentifierOf", + "CtypeHashOf": "Hash", + "ClaimHashOf": "Hash", + "AttesterOf": "DidIdentifierOf", + "AttestationDetails": { + "ctypeHash": "CtypeHashOf", + "attester": "AttesterOf", + "delegationId": "Option", + "revoked": "bool" + }, + "Permissions": "u32", + "DelegationNodeIdOf": "Hash", + "DelegatorIdOf": "DidIdentifierOf", + "DelegationSignature": "DidSignature", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, + "DelegationNode": { + "rootId": "DelegationNodeIdOf", + "parent": "Option", + "owner": "DelegatorIdOf", + "permissions": "Permissions", + "revoked": "bool" + }, + "KeyIdOf": "Hash", + "DidIdentifierOf": "AccountId", + "AccountIdentifierOf": "AccountId", + "BlockNumberOf": "BlockNumber", + "DidCallableOf": "Call", + "DidVerificationKey": { + "_enum": { + "Ed25519": "[u8; 32]", + "Sr25519": "[u8; 32]" + } + }, + "DidEncryptionKey": { + "_enum": { + "X25519": "[u8; 32]" + } + }, + "DidPublicKey": { + "_enum": { + "PublicVerificationKey": "DidVerificationKey", + "PublicEncryptionKey": "DidEncryptionKey" + } + }, + "DidVerificationKeyRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "DidSignature": { + "_enum": { + "Ed25519": "Ed25519Signature", + "Sr25519": "Sr25519Signature" + } + }, + "DidError": { + "_enum": { + "StorageError": "StorageError", + "SignatureError": "SignatureError", + "UrlError": "UrlError", + "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" + ] + }, + "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" + } + } + }, + { + "minmax": [ + 10, + 11 + ], + "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": { + "rootId": "DelegationNodeIdOf", + "parent": "Option", + "owner": "DelegatorIdOf", + "permissions": "Permissions", + "revoked": "bool" + }, + "KeyIdOf": "Hash", + "DidIdentifierOf": "AccountId", + "AccountIdentifierOf": "AccountId", + "BlockNumberOf": "BlockNumber", + "DidCallableOf": "Call", + "DidVerificationKey": { + "_enum": { + "Ed25519": "[u8; 32]", + "Sr25519": "[u8; 32]" + } + }, + "DidEncryptionKey": { + "_enum": { + "X25519": "[u8; 32]" + } + }, + "DidPublicKey": { + "_enum": { + "PublicVerificationKey": "DidVerificationKey", + "PublicEncryptionKey": "DidEncryptionKey" + } + }, + "DidVerificationKeyRelationship": { + "_enum": [ + "Authentication", + "CapabilityDelegation", + "CapabilityInvocation", + "AssertionMethod" + ] + }, + "DidSignature": { + "_enum": { + "Ed25519": "Ed25519Signature", + "Sr25519": "Sr25519Signature" + } + }, + "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" + } + } + } + }, + { + "minmax": [ + 12, + 16 + ], + "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": { + "rootId": "DelegationNodeIdOf", + "parent": "Option", + "owner": "DelegatorIdOf", + "permissions": "Permissions", + "revoked": "bool" + }, + "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" + } + } + }, + { + "minmax": [ + 17, + 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", + "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" + }, + "DidVerificationKeyUpdateAction": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "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" + ] + }, + "DidCreationDetails": { + "did": "DidIdentifierOf", + "newKeyAgreementKeys": "BTreeSet", + "newAttestationKey": "Option", + "newDelegationKey": "Option", + "newEndpointUrl": "Option" + }, + "DidUpdateDetails": { + "newAuthenticationKey": "Option", + "newKeyAgreementKeys": "BTreeSet", + "attestationKeyUpdate": "DidVerificationKeyUpdateAction", + "delegationKeyUpdate": "DidVerificationKeyUpdateAction", + "publicKeysToRemove": "BTreeSet", + "newEndpointUrl": "Option" + } + } + }, + { + "minmax": [ + 19, + 19 + ], + "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", + "serviceEndpoints": "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", + "V2" + ] + }, + "DidCreationDetails": { + "did": "DidIdentifierOf", + "newKeyAgreementKeys": "BTreeSet", + "newAttestationKey": "Option", + "newDelegationKey": "Option", + "newServiceEndpoints": "Option" + }, + "DidUpdateDetails": { + "newAuthenticationKey": "Option", + "newKeyAgreementKeys": "BTreeSet", + "attestationKeyUpdate": "DidFragmentUpdateAction_DidVerificationKey", + "delegationKeyUpdate": "DidFragmentUpdateAction_DidVerificationKey", + "publicKeysToRemove": "BTreeSet", + "serviceEndpointsUpdate": "DidFragmentUpdateAction_ServiceEndpoints" + }, + "ServiceEndpoints": { + "contentHash": "Hash", + "urls": "Vec", + "contentType": "ContentType" + }, + "DidFragmentUpdateAction_ServiceEndpoints": { + "_enum": { + "Ignore": "Null", + "Change": "ServiceEndpoints", + "Delete": "Null" + } + }, + "DidFragmentUpdateAction_DidVerificationKey": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "ContentType": { + "_enum": [ + "ApplicationJson", + "ApplicationJsonLd" + ] + }, + "DidStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + } + } + }, + { + "minmax": [ + 20, + 20 + ], + "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": "BoundedBTreeSet", + "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", + "MaxPublicKeysPerDidKeyIdentifierExceeded": "Null", + "MaxTotalKeyAgreementKeysExceeded": "Null", + "MaxOldAttestationKeysExceeded": "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": "DidKeyAgreementKeys", + "delegationKey": "Option", + "attestationKey": "Option", + "publicKeys": "DidPublicKeyMap", + "serviceEndpoints": "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": "BoundedVec", + "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": "OrderedSet", + "total": "Balance" + }, + "Collator": { + "id": "AccountId", + "stake": "Balance", + "delegators": "OrderedSet", + "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" + ] + }, + "DidCreationDetails": { + "did": "DidIdentifierOf", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "newAttestationKey": "Option", + "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", + "contentType": "ContentType" + }, + "DidFragmentUpdateAction_ServiceEndpoints": { + "_enum": { + "Ignore": "Null", + "Change": "ServiceEndpoints", + "Delete": "Null" + } + }, + "DidFragmentUpdateAction_DidVerificationKey": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "ContentType": { + "_enum": [ + "ApplicationJson", + "ApplicationJsonLd" + ] + }, + "DidStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + }, + "MaxCollatorCandidates": "u32", + "MaxDelegatorsPerCollator": "u32", + "MaxCollatorsPerDelegator": "u32", + "StakingStorageVersion": { + "_enum": [ + "V1_0_0", + "V2_0_0", + "V3_0_0", + "V4" + ] + }, + "MaxDelegatedAttestations": "u32", + "MaxClaims": "u32", + "MaxChildren": "u32", + "DidNewKeyAgreementKeys": "BoundedBTreeSet", + "DidKeyAgreementKeys": "BoundedBTreeSet", + "DidVerificationKeysToRevoke": "BoundedBTreeSet", + "MaxNewKeyAgreementKeys": "u32", + "MaxTotalKeyAgreementKeys": "u32", + "MaxVerificationKeysToRevoke": "u32", + "MaxPublicKeysPerDid": "u32", + "DidPublicKeyMap": "BoundedBTreeMap", + "MaxUrlLength": "u32", + "MaxEndpointUrlsCount": "u32" + } + }, + { + "minmax": [ + 21, + 22 + ], + "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": "DidSignature", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, + "DelegationNode": { + "hierarchyRootId": "DelegationNodeIdOf", + "parent": "Option", + "children": "BoundedBTreeSet", + "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", + "MaxPublicKeysPerDidKeyIdentifierExceeded": "Null", + "MaxTotalKeyAgreementKeysExceeded": "Null", + "MaxOldAttestationKeysExceeded": "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": "DidKeyAgreementKeys", + "capabilityDelegationKey": "Option", + "assertionMethodKey": "Option", + "publicKeys": "DidPublicKeyMap", + "serviceEndpoints": "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" + }, + "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" + }, + "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" + ] + }, + "DidCreationDetails": { + "did": "DidIdentifierOf", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "newAssertionMethodKey": "Option", + "newCapabilityDelegationKey": "Option", + "newServiceEndpoints": "Option" + }, + "ServiceEndpoints": { + "contentHash": "Hash", + "urls": "BoundedVec", + "contentType": "ContentType" + }, + "DidFragmentUpdateAction_ServiceEndpoints": { + "_enum": { + "Ignore": "Null", + "Change": "ServiceEndpoints", + "Delete": "Null" + } + }, + "DidFragmentUpdateAction_DidVerificationKey": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "ContentType": { + "_enum": [ + "application/json", + "application/ld+json" + ] + }, + "DidStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + }, + "MaxCollatorCandidates": "u32", + "MaxDelegatorsPerCollator": "u32", + "MaxCollatorsPerDelegator": "u32", + "StakingStorageVersion": { + "_enum": [ + "V1_0_0", + "V2_0_0", + "V3_0_0", + "V4" + ] + }, + "MaxDelegatedAttestations": "u32", + "MaxClaims": "u32", + "MaxChildren": "u32", + "DidNewKeyAgreementKeys": "BoundedBTreeSet", + "DidKeyAgreementKeys": "BoundedBTreeSet", + "DidVerificationKeysToRevoke": "BoundedBTreeSet", + "MaxNewKeyAgreementKeys": "u32", + "MaxTotalKeyAgreementKeys": "u32", + "MaxVerificationKeysToRevoke": "u32", + "MaxPublicKeysPerDid": "u32", + "DidPublicKeyMap": "BoundedBTreeMap", + "MaxUrlLength": "u32", + "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1" + } + }, + { + "minmax": [ + 23, + 24 + ], + "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": "DidSignature", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, + "DelegationNode": { + "hierarchyRootId": "DelegationNodeIdOf", + "parent": "Option", + "children": "BoundedBTreeSet", + "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", + "MaxPublicKeysPerDidKeyIdentifierExceeded": "Null", + "MaxTotalKeyAgreementKeysExceeded": "Null", + "MaxOldAttestationKeysExceeded": "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": "DidKeyAgreementKeys", + "capabilityDelegationKey": "Option", + "assertionMethodKey": "Option", + "publicKeys": "DidPublicKeyMap", + "serviceEndpoints": "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" + }, + "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", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "newAssertionMethodKey": "Option", + "newCapabilityDelegationKey": "Option", + "newServiceEndpoints": "Option" + }, + "ServiceEndpoints": { + "contentHash": "Hash", + "urls": "BoundedVec", + "contentType": "ContentType" + }, + "DidFragmentUpdateAction_ServiceEndpoints": { + "_enum": { + "Ignore": "Null", + "Change": "ServiceEndpoints", + "Delete": "Null" + } + }, + "DidFragmentUpdateAction_DidVerificationKey": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "ContentType": { + "_enum": [ + "application/json", + "application/ld+json" + ] + }, + "DidStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + }, + "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", + "MaxUrlLength": "u32", + "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1", + "MinCollators": "u32", + "MaxTopCandidates": "u32", + "Candidate": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "status": "CandidateStatus" + }, + "CandidateStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + } + } + }, + { + "minmax": [ + 25, + 2699 + ], + "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": "DidSignature", + "DelegationRoot": { + "ctypeHash": "CtypeHashOf", + "owner": "DelegatorIdOf", + "revoked": "bool" + }, + "DelegationNode": { + "hierarchyRootId": "DelegationNodeIdOf", + "parent": "Option", + "children": "BoundedBTreeSet", + "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", + "MaxPublicKeysPerDidKeyIdentifierExceeded": "Null", + "MaxTotalKeyAgreementKeysExceeded": "Null", + "MaxOldAttestationKeysExceeded": "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": "DidKeyAgreementKeys", + "capabilityDelegationKey": "Option", + "assertionMethodKey": "Option", + "publicKeys": "DidPublicKeyMap", + "serviceEndpoints": "Option", + "lastTxCounter": "u64" + }, + "DidAuthorizedCallOperation": { + "did": "DidIdentifierOf", + "txCounter": "u64", + "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" + }, + "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", + "newKeyAgreementKeys": "DidNewKeyAgreementKeys", + "newAssertionMethodKey": "Option", + "newCapabilityDelegationKey": "Option", + "newServiceEndpoints": "Option" + }, + "ServiceEndpoints": { + "contentHash": "Hash", + "urls": "BoundedVec", + "contentType": "ContentType" + }, + "DidFragmentUpdateAction_ServiceEndpoints": { + "_enum": { + "Ignore": "Null", + "Change": "ServiceEndpoints", + "Delete": "Null" + } + }, + "DidFragmentUpdateAction_DidVerificationKey": { + "_enum": { + "Ignore": "Null", + "Change": "DidVerificationKey", + "Delete": "Null" + } + }, + "ContentType": { + "_enum": [ + "application/json", + "application/ld+json" + ] + }, + "DidStorageVersion": { + "_enum": [ + "V1", + "V2" + ] + }, + "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", + "MaxUrlLength": "u32", + "MaxEndpointUrlsCount": "u32", + "Keys": "SessionKeys1", + "MinCollators": "u32", + "MaxTopCandidates": "u32", + "Candidate": { + "id": "AccountId", + "stake": "Balance", + "delegators": "Vec", + "total": "Balance", + "status": "CandidateStatus" + }, + "CandidateStatus": { + "_enum": { + "Active": "Null", + "Leaving": "SessionIndex" + } + } + } + }, + { + "minmax": [ + 2700, + 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", + "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": [ + 10720, + 10750 + ], + "types": { + "DidApiAccountId": "AccountId32", + "RawDidLinkedInfo": { + "identifier": "AccountId32", + "accounts": "Vec", + "w3n": "Option", + "serviceEndpoints": "Vec", + "details": "DidDidDetails" + } + } + }, + { + "minmax": [ + 10800, + 10899 + ], + "types": { + "DidApiAccountId": "AccountId32", + "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" + } + } + }, + { + "minmax": [ + 10900, + 11199 + ], + "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" + } + } + }, + { + "minmax": [ + 11200, null ], "types": { @@ -7070,6 +10865,85 @@ export const typesBundle = { "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" + ] } } } @@ -7273,6 +11147,23 @@ export const typesBundle = { }, "version": 1 } + ], + "DipProvider": [ + { + "methods": { + "generate_proof": { + "description": "Generate a Merkle proof for the DIP protocol for the specified request parameters.", + "params": [ + { + "name": "request", + "type": "DipProofRequest" + } + ], + "type": "Result" + } + }, + "version": 1 + } ] }, "types": [ @@ -10547,6 +14438,39 @@ export const typesBundle = { { "minmax": [ 10900, + 11199 + ], + "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" + } + } + }, + { + "minmax": [ + 11200, null ], "types": { @@ -10574,6 +14498,85 @@ export const typesBundle = { "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" + ] } } } @@ -10777,6 +14780,23 @@ export const typesBundle = { }, "version": 1 } + ], + "DipProvider": [ + { + "methods": { + "generate_proof": { + "description": "Generate a Merkle proof for the DIP protocol for the specified request parameters.", + "params": [ + { + "name": "request", + "type": "DipProofRequest" + } + ], + "type": "Result" + } + }, + "version": 1 + } ] }, "types": [ @@ -14051,6 +18071,39 @@ export const typesBundle = { { "minmax": [ 10900, + 11199 + ], + "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" + } + } + }, + { + "minmax": [ + 11200, null ], "types": { @@ -14078,6 +18131,85 @@ export const typesBundle = { "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" + ] } } } @@ -14281,6 +18413,23 @@ export const typesBundle = { }, "version": 1 } + ], + "DipProvider": [ + { + "methods": { + "generate_proof": { + "description": "Generate a Merkle proof for the DIP protocol for the specified request parameters.", + "params": [ + { + "name": "request", + "type": "DipProofRequest" + } + ], + "type": "Result" + } + }, + "version": 1 + } ] }, "types": [ @@ -17555,6 +21704,39 @@ export const typesBundle = { { "minmax": [ 10900, + 11199 + ], + "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" + } + } + }, + { + "minmax": [ + 11200, null ], "types": { @@ -17582,6 +21764,85 @@ export const typesBundle = { "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" + ] } } } diff --git a/packages/apps-config/src/endpoints/productionRelayKusama.ts b/packages/apps-config/src/endpoints/productionRelayKusama.ts index 8ffef004d79a..d33869d5d9ea 100644 --- a/packages/apps-config/src/endpoints/productionRelayKusama.ts +++ b/packages/apps-config/src/endpoints/productionRelayKusama.ts @@ -256,7 +256,7 @@ export const prodParasKusama: Omit[] = [ info: 'hyperbridge', paraId: 3340, providers: { - BlockOps: 'wss://hyperbridge-messier-rpc.blockops.network' + // BlockOps: 'wss://hyperbridge-messier-rpc.blockops.network' // https://github.com/polkadot-js/apps/issues/10555 }, text: 'Hyperbridge (Messier)', ui: { @@ -450,6 +450,7 @@ export const prodParasKusama: Omit[] = [ paraId: 2241, providers: { Krest: 'wss://wss-krest.peaq.network/', + OnFinality: 'wss://krest.api.onfinality.io/public-ws', UnitedBloc: 'wss://krest.unitedbloc.com/' }, text: 'Krest', @@ -528,6 +529,7 @@ export const prodParasKusama: Omit[] = [ info: 'moonriver', paraId: 2023, providers: { + Allnodes: 'wss://moonriver-rpc.publicnode.com', Blast: 'wss://moonriver.public.blastapi.io', Dwellir: 'wss://moonriver-rpc.dwellir.com', 'Moonbeam Foundation': 'wss://wss.api.moonriver.moonbeam.network', @@ -796,19 +798,6 @@ export const prodParasKusama: Omit[] = [ logo: nodesSubsocialXSVG } }, - { - homepage: 'https://zero.io', - info: 'zero', - paraId: 2236, - providers: { - ZeroNetwork: 'wss://rpc-1.kusama.node.zero.io' - }, - text: 'subzero', - ui: { - color: '#000000', - logo: nodesZeroSVG - } - }, { homepage: 'https://www.t3rn.io/', info: 't1rn', @@ -896,6 +885,19 @@ export const prodParasKusama: Omit[] = [ color: '#a5503c', logo: nodesYerbanetworkPNG } + }, + { + homepage: 'https://zero.io', + info: 'zero', + paraId: 2236, + providers: { + 'Zero Network': 'wss://rpc-1.kusama.node.zero.io' + }, + text: 'ZERO Canary', + ui: { + color: '#000000', + logo: nodesZeroSVG + } } ]; @@ -904,7 +906,7 @@ export const prodParasKusamaCommon: EndpointOption[] = [ info: 'KusamaAssetHub', paraId: 1000, providers: { - Dwellir: 'wss://statemine-rpc.dwellir.com', + Dwellir: 'wss://asset-hub-kusama-rpc.dwellir.com', 'Dwellir Tunisia': 'wss://statemine-rpc-tn.dwellir.com', 'IBP-GeoDNS1': 'wss://sys.ibp.network/statemine', 'IBP-GeoDNS2': 'wss://sys.dotters.network/statemine', @@ -945,6 +947,8 @@ export const prodParasKusamaCommon: EndpointOption[] = [ info: 'kusamaCoretime', paraId: 1005, providers: { + 'IBP-GeoDNS1': 'wss://sys.ibp.network/coretime-kusama', + 'IBP-GeoDNS2': 'wss://sys.dotters.network/coretime-kusama', Parity: 'wss://kusama-coretime-rpc.polkadot.io' }, teleport: [-1], @@ -969,6 +973,16 @@ export const prodParasKusamaCommon: EndpointOption[] = [ color: '#0000cc', logo: nodesEncointerBlueSVG } + }, + { + info: 'kusamaPeople', + paraId: 1004, + providers: { + Parity: 'wss://kusama-people-rpc.polkadot.io' + }, + teleport: [-1], + text: 'People', + ui: {} } ]; @@ -983,6 +997,7 @@ export const prodRelayKusama: EndpointOption = { providers: { // 'Geometry Labs': 'wss://kusama.geometry.io/websockets', // https://github.com/polkadot-js/apps/pull/6746 // 'Automata 1RPC': 'wss://1rpc.io/ksm', + Allnodes: 'wss://kusama-rpc.publicnode.com', Blockops: 'wss://kusama-public-rpc.blockops.network/ws', // https://github.com/polkadot-js/apps/issues/9840 Dwellir: 'wss://kusama-rpc.dwellir.com', 'Dwellir Tunisia': 'wss://kusama-rpc-tn.dwellir.com', diff --git a/packages/apps-config/src/endpoints/productionRelayPolkadot.ts b/packages/apps-config/src/endpoints/productionRelayPolkadot.ts index 79486296b160..8b97b662e217 100644 --- a/packages/apps-config/src/endpoints/productionRelayPolkadot.ts +++ b/packages/apps-config/src/endpoints/productionRelayPolkadot.ts @@ -509,7 +509,8 @@ export const prodParasPolkadot: Omit[] = [ info: 'moonbeam', paraId: 2004, providers: { - 'Automata 1RPC': 'wss://1rpc.io/glmr', + Allnodes: 'wss://moonbeam-rpc.publicnode.com', + // 'Automata 1RPC': 'wss://1rpc.io/glmr', // https://github.com/polkadot-js/apps/issues/10566 Blast: 'wss://moonbeam.public.blastapi.io', Dwellir: 'wss://moonbeam-rpc.dwellir.com', 'Moonbeam Foundation': 'wss://wss.api.moonbeam.network', @@ -624,9 +625,12 @@ export const prodParasPolkadot: Omit[] = [ homepage: 'https://peaq.network/', info: 'peaq', paraId: 3338, - providers: {}, + providers: { + // OnFinality: 'wss://peaq.api.onfinality.io/public-ws' + }, text: 'peaq', ui: { + color: '#281C66', logo: chainsPeaqPNG } }, @@ -829,7 +833,7 @@ export const prodParasPolkadotCommon: EndpointOption[] = [ info: 'PolkadotAssetHub', paraId: 1000, providers: { - Dwellir: 'wss://statemint-rpc.dwellir.com', + Dwellir: 'wss://asset-hub-polkadot-rpc.dwellir.com', 'Dwellir Tunisia': 'wss://statemint-rpc-tn.dwellir.com', 'IBP-GeoDNS1': 'wss://sys.ibp.network/statemint', 'IBP-GeoDNS2': 'wss://sys.dotters.network/statemint', @@ -898,6 +902,7 @@ export const prodRelayPolkadot: EndpointOption = { ...prodParasPolkadot ], providers: { + Allnodes: 'wss://polkadot-rpc.publicnode.com', // 'Geometry Labs': 'wss://polkadot.geometry.io/websockets', // https://github.com/polkadot-js/apps/pull/6746 // 'Automata 1RPC': 'wss://1rpc.io/dot', Blockops: 'wss://polkadot-public-rpc.blockops.network/ws', // https://github.com/polkadot-js/apps/issues/9840 diff --git a/packages/apps-config/src/endpoints/testingRelayPaseo.ts b/packages/apps-config/src/endpoints/testingRelayPaseo.ts index f24af84171e8..069f026c7293 100644 --- a/packages/apps-config/src/endpoints/testingRelayPaseo.ts +++ b/packages/apps-config/src/endpoints/testingRelayPaseo.ts @@ -89,7 +89,8 @@ export const testParasPaseo: Omit[] = [ paraId: 4001, providers: { 'R0GUE-RPC1': 'wss://rpc1.paseo.popnetwork.xyz', - 'R0GUE-RPC2': 'wss://rpc2.paseo.popnetwork.xyz' + 'R0GUE-RPC2': 'wss://rpc2.paseo.popnetwork.xyz', + 'R0GUE-RPC3': 'wss://rpc3.paseo.popnetwork.xyz' }, text: 'Pop Network', ui: { @@ -105,7 +106,9 @@ export const testParasPaseoCommon: EndpointOption[] = [ paraId: 1000, providers: { Dwellir: 'wss://asset-hub-paseo-rpc.dwellir.com', - 'IBP-GeoDNS2': 'wss://sys.dotters.network/asset-hub-paseo' + 'IBP-GeoDNS1': 'wss://sys.ibp.network/asset-hub-paseo', + 'IBP-GeoDNS2': 'wss://sys.dotters.network/asset-hub-paseo', + StakeWorld: 'wss://pas-rpc.stakeworld.io/assethub' }, teleport: [-1], text: 'AssetHub', @@ -128,7 +131,8 @@ export const testRelayPaseo: EndpointOption = { Amforc: 'wss://paseo.rpc.amforc.com', Dwellir: 'wss://paseo-rpc.dwellir.com', 'IBP-GeoDNS1': 'wss://rpc.ibp.network/paseo', - 'IBP-GeoDNS2': 'wss://rpc.dotters.network/paseo' + 'IBP-GeoDNS2': 'wss://rpc.dotters.network/paseo', + StakeWorld: 'wss://pas-rpc.stakeworld.io' // 'light client': 'light://substrate-connect/paseo' }, teleport: getTeleports(testParasPaseoCommon), diff --git a/packages/apps-config/src/endpoints/testingRelayRococo.ts b/packages/apps-config/src/endpoints/testingRelayRococo.ts index 7e6b7c750d3e..c11b98524506 100644 --- a/packages/apps-config/src/endpoints/testingRelayRococo.ts +++ b/packages/apps-config/src/endpoints/testingRelayRococo.ts @@ -21,7 +21,7 @@ export const testParasRococo: Omit[] = [ info: 'rococoAcurast', paraId: 2239, providers: { - Acurast: 'wss://acurast-testnet-ws.prod.gke.papers.tech' + // Acurast: 'wss://acurast-testnet-ws.prod.gke.papers.tech' // https://github.com/polkadot-js/apps/issues/10566 }, text: 'Acurast Testnet', ui: { @@ -308,7 +308,7 @@ export const testParasRococo: Omit[] = [ info: 'rococoInvo', paraId: 4377, providers: { - 'Invo Network': 'wss://chain.dev.ourinvo.com' + // 'Invo Network': 'wss://chain.dev.ourinvo.com' // https://github.com/polkadot-js/apps/issues/10555 }, text: 'Invo Testnet', ui: { @@ -654,7 +654,7 @@ export const testParasRococo: Omit[] = [ info: 'rococoTuring', paraId: 2114, providers: { - OAK: 'wss://rpc.turing-staging.oak.tech' + // OAK: 'wss://rpc.turing-staging.oak.tech' // https://github.com/polkadot-js/apps/issues/10555 }, text: 'Turing Network (Staging)', ui: { @@ -729,7 +729,7 @@ export const testParasRococoCommon: EndpointOption[] = [ info: 'RococoAssetHub', paraId: 1000, providers: { - Dwellir: 'wss://rococo-asset-hub-rpc.dwellir.com', + Dwellir: 'wss://asset-hub-rococo-rpc.dwellir.com', Parity: 'wss://rococo-asset-hub-rpc.polkadot.io' }, teleport: [-1], diff --git a/packages/apps-config/src/endpoints/testingRelayWestend.ts b/packages/apps-config/src/endpoints/testingRelayWestend.ts index 4d99672e6967..384722eaae5a 100644 --- a/packages/apps-config/src/endpoints/testingRelayWestend.ts +++ b/packages/apps-config/src/endpoints/testingRelayWestend.ts @@ -115,7 +115,7 @@ export const testParasWestendCommon: EndpointOption[] = [ info: 'WestendAssetHub', paraId: 1000, providers: { - Dwellir: 'wss://westmint-rpc.dwellir.com', + Dwellir: 'wss://asset-hub-westend-rpc.dwellir.com', 'Dwellir Tunisia': 'wss://westmint-rpc-tn.dwellir.com', 'IBP-GeoDNS1': 'wss://sys.ibp.network/westmint', 'IBP-GeoDNS2': 'wss://sys.dotters.network/westmint', @@ -167,6 +167,7 @@ export const testParasWestendCommon: EndpointOption[] = [ info: 'westendCoretime', paraId: 1005, providers: { + 'IBP-GeoDNS1': 'wss://sys.ibp.network/coretime-westend', 'IBP-GeoDNS2': 'wss://sys.dotters.network/coretime-westend', Parity: 'wss://westend-coretime-rpc.polkadot.io' }, @@ -178,6 +179,7 @@ export const testParasWestendCommon: EndpointOption[] = [ info: 'westendPeople', paraId: 1004, providers: { + 'IBP-GeoDNS1': 'wss://sys.ibp.network/people-westend', 'IBP-GeoDNS2': 'wss://sys.dotters.network/people-westend', Parity: 'wss://westend-people-rpc.polkadot.io' }, diff --git a/packages/apps-config/src/packageInfo.ts b/packages/apps-config/src/packageInfo.ts index bd7c96ff3042..fa16b06eefb3 100644 --- a/packages/apps-config/src/packageInfo.ts +++ b/packages/apps-config/src/packageInfo.ts @@ -3,4 +3,4 @@ // Do not edit, auto-generated by @polkadot/dev -export const packageInfo = { name: '@polkadot/apps-config', path: 'auto', type: 'auto', version: '0.137.1' }; +export const packageInfo = { name: '@polkadot/apps-config', path: 'auto', type: 'auto', version: '0.137.2-16-x' }; diff --git a/packages/apps-electron/package.json b/packages/apps-electron/package.json index 5cb136b8a8f8..89c7a1a28736 100644 --- a/packages/apps-electron/package.json +++ b/packages/apps-electron/package.json @@ -15,7 +15,7 @@ "url": "https://github.com/availproject/avail-apps.git" }, "sideEffects": false, - "version": "0.137.1", + "version": "0.137.2-16-x", "main": "build/electron.js", "dependencies": { "electron-log": "^5.0.1", diff --git a/packages/apps-routing/package.json b/packages/apps-routing/package.json index 963a1823bbf5..8a31f3c7ef5e 100644 --- a/packages/apps-routing/package.json +++ b/packages/apps-routing/package.json @@ -14,7 +14,7 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "peerDependencies": { "react": "*", "react-dom": "*", diff --git a/packages/apps-routing/src/index.ts b/packages/apps-routing/src/index.ts index b4d066dec0b3..cb4f19cbac58 100644 --- a/packages/apps-routing/src/index.ts +++ b/packages/apps-routing/src/index.ts @@ -36,6 +36,7 @@ import signing from './signing.js'; import society from './society.js'; import staking from './staking.js'; import staking2 from './staking2.js'; +import stakingLegacy from './stakingLegacy.js'; import storage from './storage.js'; import sudo from './sudo.js'; import techcomm from './techcomm.js'; @@ -56,6 +57,8 @@ export default function create (t: TFunction): Routes { teleport(t), staking(t), staking2(t), + // Legacy staking Pre v14 pallet version. + stakingLegacy(t), collator(t), // governance v2 referenda(t), diff --git a/packages/apps-routing/src/stakingLegacy.ts b/packages/apps-routing/src/stakingLegacy.ts new file mode 100644 index 000000000000..694706ab5da5 --- /dev/null +++ b/packages/apps-routing/src/stakingLegacy.ts @@ -0,0 +1,93 @@ +// Copyright 2017-2024 @polkadot/apps-routing authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import type { ApiPromise } from '@polkadot/api'; +import type { u32, Vec } from '@polkadot/types'; +import type { PalletStakingStakingLedger, SpStakingExposure } from '@polkadot/types/lookup'; +import type { Route, TFunction } from './types.js'; + +import Component from '@polkadot/app-staking-legacy'; +import { ZERO_ACCOUNT } from '@polkadot/react-hooks/useWeight'; +import { unwrapStorageType } from '@polkadot/types/util'; +import { assert, BN_ONE } from '@polkadot/util'; + +function needsApiCheck (api: ApiPromise): boolean { + if (typeof api.query.staking.erasStakersOverview === 'function') { + return false; + } + + try { + // we need a known Exposure type + const { others: [{ value, who }], own, total } = api.registry.createType( + unwrapStorageType(api.registry, api.query.staking.erasStakers.creator.meta.type), + { others: [{ value: BN_ONE, who: ZERO_ACCOUNT }], own: BN_ONE, total: BN_ONE } + ); + + assert(total && own && value && who && total.eq(BN_ONE) && own.eq(BN_ONE) && value.eq(BN_ONE), 'Needs a known Exposure type'); + } catch { + console.warn('Unable to create known-shape Exposure type, disabling staking route'); + + return false; + } + + try { + // we need to be able to bond + if (api.tx.staking.bond.meta.args.length === 3) { + // previous generation, controller account is required + // @ts-expect-error Previous generation + api.tx.staking.bond(ZERO_ACCOUNT, BN_ONE, { Account: ZERO_ACCOUNT }); + } else if (api.tx.staking.bond.meta.args.length === 2) { + // current, no controller account + api.tx.staking.bond(BN_ONE, { Account: ZERO_ACCOUNT }); + } else { + // unknown + return false; + } + } catch { + console.warn('Unable to create staking bond transaction, disabling staking route'); + + return false; + } + + // For compatibility - `api.query.staking.ledger` returns `legacyClaimedRewards` instead of `claimedRewards` as of v1.4 + try { + const v = api.registry.createType( + unwrapStorageType(api.registry, api.query.staking.ledger.creator.meta.type), + { claimedRewards: [1, 2, 3] } + ); + + if ((v as unknown as { claimedRewards: Vec }).claimedRewards) { + assert((v as unknown as { claimedRewards: Vec }).claimedRewards.eq([1, 2, 3]), 'Needs a claimedRewards array'); + } else { + const v = api.registry.createType( + unwrapStorageType(api.registry, api.query.staking.ledger.creator.meta.type), + { legacyClaimedRewards: [1, 2, 3] } + ); + + assert(v.legacyClaimedRewards.eq([1, 2, 3]), 'Needs a legacyClaimedRewards array'); + } + } catch { + console.warn('No known legacyClaimedRewards or claimedRewards inside staking ledger, disabling staking route'); + + return false; + } + + return true; +} + +export default function create (t: TFunction): Route { + return { + Component, + display: { + needsApi: [ + 'query.staking.erasStakers', + 'tx.staking.bond' + ], + needsApiCheck + }, + group: 'network', + icon: 'certificate', + name: 'legacy-staking', + text: t('nav.staking', 'Staking', { ns: 'apps-routing' }) + }; +} diff --git a/packages/apps-routing/tsconfig.build.json b/packages/apps-routing/tsconfig.build.json index 979662b51ec6..2749aeeeca15 100644 --- a/packages/apps-routing/tsconfig.build.json +++ b/packages/apps-routing/tsconfig.build.json @@ -39,6 +39,7 @@ { "path": "../page-society/tsconfig.build.json" }, { "path": "../page-staking/tsconfig.build.json" }, { "path": "../page-staking2/tsconfig.build.json" }, + { "path": "../page-staking-legacy/tsconfig.build.json" }, { "path": "../page-storage/tsconfig.build.json" }, { "path": "../page-sudo/tsconfig.build.json" }, { "path": "../page-tech-comm/tsconfig.build.json" }, diff --git a/packages/apps/package.json b/packages/apps/package.json index 0a92f9941d20..a365777559a4 100644 --- a/packages/apps/package.json +++ b/packages/apps/package.json @@ -14,18 +14,18 @@ }, "sideEffects": true, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { "@acala-network/chopsticks-core": "^0.10.0", - "@polkadot/apps-config": "^0.137.1", - "@polkadot/apps-routing": "^0.137.1", + "@polkadot/apps-config": "^0.137.2-16-x", + "@polkadot/apps-routing": "^0.137.2-16-x", "@polkadot/dev": "^0.78.4", - "@polkadot/react-api": "^0.137.1", - "@polkadot/react-components": "^0.137.1", - "@polkadot/react-hooks": "^0.137.1", - "@polkadot/react-params": "^0.137.1", - "@polkadot/react-query": "^0.137.1", - "@polkadot/react-signer": "^0.137.1", + "@polkadot/react-api": "^0.137.2-16-x", + "@polkadot/react-components": "^0.137.2-16-x", + "@polkadot/react-hooks": "^0.137.2-16-x", + "@polkadot/react-params": "^0.137.2-16-x", + "@polkadot/react-query": "^0.137.2-16-x", + "@polkadot/react-signer": "^0.137.2-16-x", "punycode": "^2.3.1", "query-string": "^8.1.0", "react": "^18.2.0", diff --git a/packages/apps/public/locales/en/app-staking-legacy.json b/packages/apps/public/locales/en/app-staking-legacy.json new file mode 100644 index 000000000000..b749ad17adc0 --- /dev/null +++ b/packages/apps/public/locales/en/app-staking-legacy.json @@ -0,0 +1,291 @@ +{ + "A controller account should not be set to manage multiple stashes. The selected controller is already controlling {{stashId}}": "A controller account should not be set to manage multiple stashes. The selected controller is already controlling {{stashId}}", + "A controller account should not map to another stash. This selected controller is a stash, controlled by {{bondedId}}": "A controller account should not map to another stash. This selected controller is a stash, controlled by {{bondedId}}", + "Accounts": "Accounts", + "Active": "Active", + "Active nominations ({{count}})": "Active nominations ({{count}})", + "All bags": "All bags", + "All rewards will go towards the selected output destination when a payout is made.": "All rewards will go towards the selected output destination when a payout is made.", + "All stashes": "All stashes", + "All the listed validators and all their nominators will receive their rewards.": "All the listed validators and all their nominators will receive their rewards.", + "All validators": "All validators", + "Any account can request payout for stakers, this is not limited to accounts that will be rewarded.": "Any account can request payout for stakers, this is not limited to accounts that will be rewarded.", + "As such it is recommended that you setup a proxy to control operations via the stash.": "As such it is recommended that you setup a proxy to control operations via the stash.", + "Aura": "Aura", + "Babe": "Babe", + "Bags": "Bags", + "Bond": "Bond", + "Bond & Nominate": "Bond & Nominate", + "Bond & Validate": "Bond & Validate", + "Bond Extra": "Bond Extra", + "Bond extra into pool": "Bond extra into pool", + "Bond more": "Bond more", + "Bond more funds": "Bond more funds", + "Bonding Preferences": "Bonding Preferences", + "Cancel all": "Cancel all", + "Cancel selected": "Cancel selected", + "Change controller account": "Change controller account", + "Change reward destination": "Change reward destination", + "Change session keys": "Change session keys", + "Change validator preferences": "Change validator preferences", + "Controller account": "Controller account", + "Distinct stash and controller accounts are recommended to ensure fund security. You will be allowed to make the transaction, but take care to not tie up all funds, only use a portion of the available funds during this period.": "Distinct stash and controller accounts are recommended to ensure fund security. You will be allowed to make the transaction, but take care to not tie up all funds, only use a portion of the available funds during this period.", + "For fund security, your session key should not match your stash key.": "For fund security, your session key should not match your stash key.", + "Free balance": "Free balance", + "Grandpa": "Grandpa", + "I'm Online": "I'm Online", + "If you have not claimed rewards straight after the end of the era, the validator is in the active set and you are seeing no rewards, this would mean that the reward payout transaction was made by another account on your behalf. Always check your favorite explorer to see any historic payouts made to your accounts.": "If you have not claimed rewards straight after the end of the era, the validator is in the active set and you are seeing no rewards, this would mean that the reward payout transaction was made by another account on your behalf. Always check your favorite explorer to see any historic payouts made to your accounts.", + "Inactive": "Inactive", + "Inactive nominations ({{count}})": "Inactive nominations ({{count}})", + "Inject Keys": "Inject Keys", + "Inject session keys (advanced)": "Inject session keys (advanced)", + "Keys from rotateKeys": "Keys from rotateKeys", + "Max, {{eras}} eras": "Max, {{eras}} eras", + "Most profitable": "Most profitable", + "Move up {{jumpCount}}": "Move up {{jumpCount}}", + "My bags": "My bags", + "No active validators found": "No active validators found", + "No active validators to check": "No active validators to check", + "No available bags": "No available bags", + "No funds staked yet. Bond funds to validate or nominate a validator": "No funds staked yet. Bond funds to validate or nominate a validator", + "No pending payouts for your stashes": "No pending payouts for your stashes", + "No pending payouts for your validators": "No pending payouts for your validators", + "No waiting validators found": "No waiting validators found", + "No, block all nominations": "No, block all nominations", + "Nominate": "Nominate", + "Nominate Validators": "Nominate Validators", + "Nominate selected": "Nominate selected", + "Nominate validators": "Nominate validators", + "Nominations ({{count}})": "Nominations ({{count}})", + "Nominator": "Nominator", + "Nominators": "Nominators", + "Nominators ({{count}})": "Nominators ({{count}})", + "Nominators can be selected manually from the list of all currently available validators.": "Nominators can be selected manually from the list of all currently available validators.", + "Not participating in any pools. Join a pool first.": "Not participating in any pools. Join a pool first.", + "Once bonded, it will need to be unlocked/withdrawn and will be locked for at least the bonding duration.": "Once bonded, it will need to be unlocked/withdrawn and will be locked for at least the bonding duration.", + "Once transmitted the new selection will only take effect in 2 eras since the selection criteria for the next era was done at the end of the previous era. Until then, the nominations will show as inactive.": "Once transmitted the new selection will only take effect in 2 eras since the selection criteria for the next era was done at the end of the previous era. Until then, the nominations will show as inactive.", + "Once transmitted the new selection will only take effect in 2 eras taking the new validator election cycle into account. Until then, the nominations will show as inactive.": "Once transmitted the new selection will only take effect in 2 eras taking the new validator election cycle into account. Until then, the nominations will show as inactive.", + "One of your available nomination accounts, keyed by the stash. The transaction will be sent from the controller.": "One of your available nomination accounts, keyed by the stash. The transaction will be sent from the controller.", + "Oversubscribed nominations ({{count}})": "Oversubscribed nominations ({{count}})", + "Overview": "Overview", + "Own stashes": "Own stashes", + "Own validators": "Own validators", + "Parachains": "Parachains", + "Payout": "Payout", + "Payout all": "Payout all", + "Payout all stakers": "Payout all stakers", + "Payouts": "Payouts", + "Payouts of rewards for a validator can be initiated by any account. This means that as soon as a validator or nominator requests a payout for an era, all the nominators for that validator will be rewarded. Each user does not need to claim individually and the suggestion is that validators should claim rewards for everybody as soon as an era ends.": "Payouts of rewards for a validator can be initiated by any account. This means that as soon as a validator or nominator requests a payout for an era, all the nominators for that validator will be rewarded. Each user does not need to claim individually and the suggestion is that validators should claim rewards for everybody as soon as an era ends.", + "Pool rewards": "Pool rewards", + "Pooled": "Pooled", + "Pools": "Pools", + "Preparing target display": "Preparing target display", + "Preparing validator list": "Preparing validator list", + "Rebag": "Rebag", + "Rebag dislocated entries": "Rebag dislocated entries", + "Rebag {{count}}": "Rebag {{count}}", + "Rebond": "Rebond", + "Rebond funds": "Rebond funds", + "Remove": "Remove", + "Remove nominees": "Remove nominees", + "Renomination required ({{count}})": "Renomination required ({{count}})", + "Retrieving active nominators": "Retrieving active nominators", + "Retrieving all available bags, this will take some time": "Retrieving all available bags, this will take some time", + "Retrieving info for the selected eras, this will take some time": "Retrieving info for the selected eras, this will take some time", + "Retrieving nominators": "Retrieving nominators", + "Retrieving online status": "Retrieving online status", + "Retrieving validator info": "Retrieving validator info", + "Retrieving validators": "Retrieving validators", + "Rewards (once paid) can be deposited to either the stash or controller, with different effects.": "Rewards (once paid) can be deposited to either the stash or controller, with different effects.", + "Session Key": "Session Key", + "Set Session Key": "Set Session Key", + "Set controller": "Set controller", + "Set nominees": "Set nominees", + "Set reward destination": "Set reward destination", + "Set validator preferences": "Set validator preferences", + "Setup Nominator {{step}}/{{NUM_STEPS}}": "Setup Nominator {{step}}/{{NUM_STEPS}}", + "Setup Validator {{step}}/{{NUM_STEPS}}": "Setup Validator {{step}}/{{NUM_STEPS}}", + "Since this transaction deals with funding, the stash account will be used.": "Since this transaction deals with funding, the stash account will be used.", + "Slashed in era {{eras}}": "Slashed in era {{eras}}", + "Slashes": "Slashes", + "Specified payment account": "Specified payment account", + "Stash": "Stash", + "Stash account (do not increase the amount at stake)": "Stash account (do not increase the amount at stake)", + "Stash account (increase the amount at stake)": "Stash account (increase the amount at stake)", + "Stashed": "Stashed", + "Stop": "Stop", + "Submit key": "Submit key", + "Targets": "Targets", + "The All bags list is composed of bags that each describe a range of active bonded funds of the nominators. In each bag is a list of nodes that correspond to a nominator and their staked funds.": "The All bags list is composed of bags that each describe a range of active bonded funds of the nominators. In each bag is a list of nodes that correspond to a nominator and their staked funds.", + "The Threshold must be a positive number": "The Threshold must be a positive number", + "The Threshold must lower than 11": "The Threshold must lower than 11", + "The UI puts a limit of 40 payouts at a time, where each payout is a single validator for a single era.": "The UI puts a limit of 40 payouts at a time, where each payout is a single validator for a single era.", + "The account that will submit the rebag transaction.": "The account that will submit the rebag transaction.", + "The accounts that will be rebagged as a result of this operation.": "The accounts that will be rebagged as a result of this operation.", + "The amount placed at-stake should allow some free funds for future transactions.": "The amount placed at-stake should allow some free funds for future transactions.", + "The amount placed at-stake should not be your full available amount to allow for transaction fees.": "The amount placed at-stake should not be your full available amount to allow for transaction fees.", + "The amount the is to be rebonded from the value currently unlocking, i.e. previously unbonded": "The amount the is to be rebonded from the value currently unlocking, i.e. previously unbonded", + "The amount to unbond. It should be less or equal to the full bonded amount.": "The amount to unbond. It should be less or equal to the full bonded amount.", + "The bonded amount is less than the current active minimum nominated amount of {{minNomination}} and depending on the network state, may not be selected to participate": "The bonded amount is less than the current active minimum nominated amount of {{minNomination}} and depending on the network state, may not be selected to participate", + "The bonded amount is less than the minimum bond amount of {{existentialDeposit}}": "The bonded amount is less than the minimum bond amount of {{existentialDeposit}}", + "The bonded amount is less than the minimum threshold of {{minBond}} for nominators": "The bonded amount is less than the minimum threshold of {{minBond}} for nominators", + "The bonded amount is less than the minimum threshold of {{minBond}} for validators": "The bonded amount is less than the minimum threshold of {{minBond}} for validators", + "The commission is below the on-chain minimum of {{p}}%": "The commission is below the on-chain minimum of {{p}}%", + "The commission is deducted from all rewards before the remainder is split with nominators.": "The commission is deducted from all rewards before the remainder is split with nominators.", + "The controller does not have sufficient funds available to cover transaction fees. Ensure that a funded controller is used.": "The controller does not have sufficient funds available to cover transaction fees. Ensure that a funded controller is used.", + "The funds will only be available for withdrawal after the unbonding period, however will not be part of the staked amount after the next validator election. You can follow the unlock countdown in the UI.": "The funds will only be available for withdrawal after the unbonding period, however will not be part of the staked amount after the next validator election. You can follow the unlock countdown in the UI.", + "The hex output from author_rotateKeys, as executed on the validator node. The keys will show as pending until applied at the start of a new session.": "The hex output from author_rotateKeys, as executed on the validator node. The keys will show as pending until applied at the start of a new session.", + "The key type and crypto type to use for this key. Be aware that different keys have different crypto requirements. You should be familiar with the type requirements for the different keys.": "The key type and crypto type to use for this key. Be aware that different keys have different crypto requirements. You should be familiar with the type requirements for the different keys.", + "The pool and pool member that is to be affected. The transaction will be sent from the associated pool member account.": "The pool and pool member that is to be affected. The transaction will be sent from the associated pool member account.", + "The seed and derivation path will be submitted to the validator node. this is an advanced operation, only to be performed when you are sure of the security and connection risks.": "The seed and derivation path will be submitted to the validator node. this is an advanced operation, only to be performed when you are sure of the security and connection risks.", + "The selected controller tied to this stash. Once set, this account will be able to control the actions performed by the stash account.": "The selected controller tied to this stash. Once set, this account will be able to control the actions performed by the stash account.", + "The selected destination account does not exist and cannot be used to receive rewards": "The selected destination account does not exist and cannot be used to receive rewards", + "The selected validators to nominate, either via the \"currently best algorithm\" or via a manual selection.": "The selected validators to nominate, either via the \"currently best algorithm\" or via a manual selection.", + "The specified value is large and may not allow enough funds to pay future transaction fees.": "The specified value is large and may not allow enough funds to pay future transaction fees.", + "The stash account that is used. This will allow the controller to perform all non-funds related operations on behalf of the account.": "The stash account that is used. This will allow the controller to perform all non-funds related operations on behalf of the account.", + "The stash should be treated as a cold wallet.": "The stash should be treated as a cold wallet.", + "The stash that is to be affected.": "The stash that is to be affected.", + "The stash that is to be affected. The transaction will be sent from the associated controller account.": "The stash that is to be affected. The transaction will be sent from the associated controller account.", + "The validator can block any new nominations. By default it is set to allow all nominations.": "The validator can block any new nominations. By default it is set to allow all nominations.", + "There are no unapplied/pending slashes": "There are no unapplied/pending slashes", + "There is currently an ongoing election for new validator candidates. As such staking operations are not permitted.": "There is currently an ongoing election for new validator candidates. As such staking operations are not permitted.", + "Think of the stash as your cold wallet and the controller as your hot wallet. Funding operations are controlled by the stash, any other non-funding actions by the controller itself.": "Think of the stash as your cold wallet and the controller as your hot wallet. Funding operations are controlled by the stash, any other non-funding actions by the controller itself.", + "This could mean your nomination has not been applied to any validator in the active set by the election algorithm or it has been applied against a validator who is either oversubscribed or chilled.": "This could mean your nomination has not been applied to any validator in the active set by the election algorithm or it has been applied against a validator who is either oversubscribed or chilled.", + "This operation will submit the seed via an RPC call. Do not perform this operation on a public RPC node, but ensure that the node is local, connected to your validator and secure.": "This operation will submit the seed via an RPC call. Do not perform this operation on a public RPC node, but ensure that the node is local, connected to your validator and secure.", + "This pubic key is what will be visible in your queued keys list. It is generated based on the seed and the crypto used.": "This pubic key is what will be visible in your queued keys list. It is generated based on the seed and the crypto used.", + "To ensure optimal fund security using the same stash/controller is strongly discouraged, but not forbidden.": "To ensure optimal fund security using the same stash/controller is strongly discouraged, but not forbidden.", + "Unbond": "Unbond", + "Unbond funds": "Unbond funds", + "Unbond funds from pool": "Unbond funds from pool", + "Use the account actions to create a new validator/nominator stash and bond it to participate in staking. Do not send funds directly via a transfer to a validator.": "Use the account actions to create a new validator/nominator stash and bond it to participate in staking. Do not send funds directly via a transfer to a validator.", + "Validate": "Validate", + "Validator": "Validator", + "Validator stats": "Validator stats", + "Validators": "Validators", + "Waiting": "Waiting", + "Waiting nominations ({{count}})": "Waiting nominations ({{count}})", + "Withdraw claimable": "Withdraw claimable", + "Withdraw unbonded": "Withdraw unbonded", + "Withdraw unbonded funds": "Withdraw unbonded funds", + "Within the context of a single bag, nodes are not sorted by their stake, but instead placed in insertion order. In other words, the most recently inserted node will be the last node in the bag, regardless of stake. Events like staking rewards or slashes do not automatically put you in a different bag. The bags-list pallet comes with an important permissionless extrinsic: rebag. This allows anyone to specify another account that is in the wrong bag, and place it in the correct one.": "Within the context of a single bag, nodes are not sorted by their stake, but instead placed in insertion order. In other words, the most recently inserted node will be the last node in the bag, regardless of stake. Events like staking rewards or slashes do not automatically put you in a different bag. The bags-list pallet comes with an important permissionless extrinsic: rebag. This allows anyone to specify another account that is in the wrong bag, and place it in the correct one.", + "Yes, allow nominations": "Yes, allow nominations", + "You can either bond a specific amount from your free balance, or all of the accumulated rewards.": "You can either bond a specific amount from your free balance, or all of the accumulated rewards.", + "You should trust your nominations to act competently and honest; basing your decision purely on their current profitability could lead to reduced profits or even loss of funds.": "You should trust your nominations to act competently and honest; basing your decision purely on their current profitability could lead to reduced profits or even loss of funds.", + "Your bonded amount is below the on-chain minimum threshold of {{minBond}} and may be chilled. Bond extra funds to increase the bonded amount.": "Your bonded amount is below the on-chain minimum threshold of {{minBond}} and may be chilled. Bond extra funds to increase the bonded amount.", + "account": "account", + "active / nominators": "active / nominators", + "additional free funds to bond": "additional free funds to bond", + "additional funds to bond": "additional funds to bond", + "allows new nominations": "allows new nominations", + "amount to unbond": "amount to unbond", + "apply": "apply", + "average": "average", + "bags": "bags", + "balance": "balance", + "bonded": "bonded", + "candidate accounts": "candidate accounts", + "capacity < {{maxCap}}%": "capacity < {{maxCap}}%", + "claimable": "claimable", + "comm.": "comm.", + "comm. <= median": "comm. <= median", + "comm. <= {{maxComm}}%": "comm. <= {{maxComm}}%", + "commission": "commission", + "controller": "controller", + "controller account": "controller account", + "crypto type to use": "crypto type to use", + "currently elected": "currently elected", + "defer": "defer", + "ed25519, Edwards": "ed25519, Edwards", + "elected stake": "elected stake", + "era points": "era points", + "era {{era}}": "era {{era}}", + "era {{era}}/unapplied": "era {{era}}/unapplied", + "eras": "eras", + "existing/active nominators": "existing/active nominators", + "filter by name, address or index": "filter by name, address or index", + "first": "first", + "generated public key": "generated public key", + "graphs": "graphs", + "historic results": "historic results", + "ideal staked": "ideal staked", + "inflation": "inflation", + "intentions": "intentions", + "key type to set": "key type to set", + "last": "last", + "last #": "last #", + "last reward": "last reward", + "lowest / avg staked": "lowest / avg staked", + "max": "max", + "member account": "member account", + "min": "min", + "min nominated": "min nominated", + "min nominated / threshold": "min nominated / threshold", + "my nodes": "my nodes", + "next": "next", + "nodes": "nodes", + "nominated accounts": "nominated accounts", + "nominators": "nominators", + "nominators to be removed": "nominators to be removed", + "on-chain bonding duration": "on-chain bonding duration", + "one validator per operator": "one validator per operator", + "other": "other", + "other stake": "other stake", + "overall/validator": "overall/validator", + "own": "own", + "own stake": "own stake", + "payment destination": "payment destination", + "payout": "payout", + "payout stakers for (multiple)": "payout stakers for (multiple)", + "payout stakers for (single)": "payout stakers for (single)", + "payout/stash": "payout/stash", + "payout/validator": "payout/validator", + "points": "points", + "pool id": "pool id", + "pools": "pools", + "prev": "prev", + "rebag from account": "rebag from account", + "rebonded amount": "rebonded amount", + "recent payouts": "recent payouts", + "recently": "recently", + "reporters": "reporters", + "request payout from": "request payout from", + "return": "return", + "returns": "returns", + "reward commission percentage": "reward commission percentage", + "rewards": "rewards", + "rewards & slashes": "rewards & slashes", + "selected validators": "selected validators", + "sr15519, Schnorrkel": "sr15519, Schnorrkel", + "staked": "staked", + "stash account": "stash account", + "stashes": "stashes", + "suri (seed & derivation)": "suri (seed & derivation)", + "the associated controller": "the associated controller", + "the payment account": "the payment account", + "the stash account to nominate with": "the stash account to nominate with", + "to rebag": "to rebag", + "total": "total", + "total bags": "total bags", + "total nodes": "total nodes", + "total stake": "total stake", + "total staked": "total staked", + "type of funds to bond": "type of funds to bond", + "unapplied": "unapplied", + "unbond amount": "unbond amount", + "unselected": "unselected", + "validator to query": "validator to query", + "validators": "validators", + "value bonded": "value bonded", + "waiting": "waiting", + "with an identity": "with an identity", + "with capacity": "with capacity", + "yesterday": "yesterday", + "{{count}} own stashes": "{{count}} own stashes", + "{{currency}} average": "{{currency}} average", + "{{currency}} clipped": "{{currency}} clipped", + "{{currency}} paged": "{{currency}} paged", + "{{currency}} rewards": "{{currency}} rewards", + "{{currency}} slashed": "{{currency}} slashed", + "{{currency}} total": "{{currency}} total", + "{{days}} days": "{{days}} days" +} \ No newline at end of file diff --git a/packages/apps/public/locales/en/index.json b/packages/apps/public/locales/en/index.json index 346a9663cd19..14bf8b42b904 100644 --- a/packages/apps/public/locales/en/index.json +++ b/packages/apps/public/locales/en/index.json @@ -28,6 +28,7 @@ "app-settings.json", "app-signing.json", "app-society.json", + "app-staking-legacy.json", "app-staking.json", "app-staking2.json", "app-storage.json", diff --git a/packages/apps/src/packageInfo.ts b/packages/apps/src/packageInfo.ts index b2b6b7b97ba7..fa8b1614944c 100644 --- a/packages/apps/src/packageInfo.ts +++ b/packages/apps/src/packageInfo.ts @@ -3,4 +3,4 @@ // Do not edit, auto-generated by @polkadot/dev -export const packageInfo = { name: '@polkadot/apps', path: 'auto', type: 'auto', version: '0.137.1' }; +export const packageInfo = { name: '@polkadot/apps', path: 'auto', type: 'auto', version: '0.137.2-16-x' }; diff --git a/packages/page-accounts/package.json b/packages/page-accounts/package.json index 7e699282f725..aa4566fb9989 100644 --- a/packages/page-accounts/package.json +++ b/packages/page-accounts/package.json @@ -14,19 +14,19 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { "@polkadot/hw-ledger": "^12.6.2", "@polkadot/phishing": "^6", - "@polkadot/react-components": "^0.137.1", - "@polkadot/react-hooks": "^0.137.1", + "@polkadot/react-components": "^0.137.2-16-x", + "@polkadot/react-hooks": "^0.137.2-16-x", "@polkadot/util": "^12.6.2", - "@polkadot/vanitygen": "^0.56.9", + "@polkadot/vanitygen": "^0.56.10", "detect-browser": "^5.3.0", "file-saver": "^2.0.5" }, "devDependencies": { - "@polkadot/test-support": "0.137.1" + "@polkadot/test-support": "0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-addresses/package.json b/packages/page-addresses/package.json index 690a51819e1b..2c7f9dec7e64 100644 --- a/packages/page-addresses/package.json +++ b/packages/page-addresses/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1", + "@polkadot/react-components": "^0.137.2-16-x", "file-saver": "^2.0.5" }, "devDependencies": { diff --git a/packages/page-alliance/package.json b/packages/page-alliance/package.json index c7a780bc1da0..83091944b4e4 100644 --- a/packages/page-alliance/package.json +++ b/packages/page-alliance/package.json @@ -14,7 +14,7 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "peerDependencies": { "react": "*", "react-dom": "*", diff --git a/packages/page-assets/package.json b/packages/page-assets/package.json index eeb03e2a57c7..0715ac887125 100644 --- a/packages/page-assets/package.json +++ b/packages/page-assets/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-bounties/package.json b/packages/page-bounties/package.json index 686917b8f699..fbc5eea12208 100644 --- a/packages/page-bounties/package.json +++ b/packages/page-bounties/package.json @@ -14,12 +14,12 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x" }, "devDependencies": { - "@polkadot/test-support": "0.137.1" + "@polkadot/test-support": "0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-calendar/package.json b/packages/page-calendar/package.json index bc8d042eeae2..4cdfc0225837 100644 --- a/packages/page-calendar/package.json +++ b/packages/page-calendar/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-claims/package.json b/packages/page-claims/package.json index df480e1f4795..a60ea8e64c1d 100644 --- a/packages/page-claims/package.json +++ b/packages/page-claims/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1", + "@polkadot/react-components": "^0.137.2-16-x", "secp256k1": "^3.8.0" }, "peerDependencies": { diff --git a/packages/page-collator/package.json b/packages/page-collator/package.json index 0c9dd73444b8..be4977d06194 100644 --- a/packages/page-collator/package.json +++ b/packages/page-collator/package.json @@ -14,7 +14,7 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "peerDependencies": { "react": "*", "react-dom": "*", diff --git a/packages/page-contracts/package.json b/packages/page-contracts/package.json index 43056df1afa0..6d1dff4fa8e2 100644 --- a/packages/page-contracts/package.json +++ b/packages/page-contracts/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/api-contract": "^11.0.2", + "@polkadot/api-contract": "^11.0.3", "eventemitter3": "^5.0.1" }, "peerDependencies": { diff --git a/packages/page-council/package.json b/packages/page-council/package.json index dc0b21ced5d7..b9590b47133b 100644 --- a/packages/page-council/package.json +++ b/packages/page-council/package.json @@ -14,10 +14,10 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1", - "@polkadot/react-query": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x", + "@polkadot/react-query": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-democracy/package.json b/packages/page-democracy/package.json index 368c9aa342ce..ce6452fda269 100644 --- a/packages/page-democracy/package.json +++ b/packages/page-democracy/package.json @@ -14,10 +14,10 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1", - "@polkadot/react-query": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x", + "@polkadot/react-query": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-explorer/package.json b/packages/page-explorer/package.json index 19f14790024d..98494a3df2ef 100644 --- a/packages/page-explorer/package.json +++ b/packages/page-explorer/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-extrinsics/package.json b/packages/page-extrinsics/package.json index b1474e554ddb..b7dbc0b2f3c3 100644 --- a/packages/page-extrinsics/package.json +++ b/packages/page-extrinsics/package.json @@ -14,11 +14,11 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1", - "@polkadot/react-params": "^0.137.1", - "@polkadot/react-signer": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x", + "@polkadot/react-params": "^0.137.2-16-x", + "@polkadot/react-signer": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-fellowship/package.json b/packages/page-fellowship/package.json index de543766b1c0..de8dfa76a016 100644 --- a/packages/page-fellowship/package.json +++ b/packages/page-fellowship/package.json @@ -14,7 +14,7 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "peerDependencies": { "react": "*", "react-dom": "*", diff --git a/packages/page-files/package.json b/packages/page-files/package.json index 63b2e6d9089a..1909e7240183 100644 --- a/packages/page-files/package.json +++ b/packages/page-files/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1", + "@polkadot/react-components": "^0.137.2-16-x", "axios": "^1.6.2" }, "peerDependencies": { diff --git a/packages/page-gilt/package.json b/packages/page-gilt/package.json index 2d253ec32ee8..3cbe80d615ce 100644 --- a/packages/page-gilt/package.json +++ b/packages/page-gilt/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-js/package.json b/packages/page-js/package.json index ee43f3f225f2..3389d2e8e5ee 100644 --- a/packages/page-js/package.json +++ b/packages/page-js/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-membership/package.json b/packages/page-membership/package.json index 9752f1f65632..aaf79beb6304 100644 --- a/packages/page-membership/package.json +++ b/packages/page-membership/package.json @@ -14,10 +14,10 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1", - "@polkadot/react-query": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x", + "@polkadot/react-query": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-nfts/package.json b/packages/page-nfts/package.json index d35d3bbb57e9..79089cf2046f 100644 --- a/packages/page-nfts/package.json +++ b/packages/page-nfts/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-nis/package.json b/packages/page-nis/package.json index 61e7910f59d3..4651ae2f30b4 100644 --- a/packages/page-nis/package.json +++ b/packages/page-nis/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-parachains/package.json b/packages/page-parachains/package.json index db3debbd4df3..2cf3fee64644 100644 --- a/packages/page-parachains/package.json +++ b/packages/page-parachains/package.json @@ -14,10 +14,10 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1", - "@polkadot/react-query": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x", + "@polkadot/react-query": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-poll/package.json b/packages/page-poll/package.json index 6d4d1787b232..1312cfbcd054 100644 --- a/packages/page-poll/package.json +++ b/packages/page-poll/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-preimages/package.json b/packages/page-preimages/package.json index fb137f3fe617..abcd5d6fcf70 100644 --- a/packages/page-preimages/package.json +++ b/packages/page-preimages/package.json @@ -14,7 +14,7 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "peerDependencies": { "react": "*", "react-dom": "*", diff --git a/packages/page-ranked/package.json b/packages/page-ranked/package.json index 38879c4f18a4..e69cfdf05ea0 100644 --- a/packages/page-ranked/package.json +++ b/packages/page-ranked/package.json @@ -14,7 +14,7 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "peerDependencies": { "react": "*", "react-dom": "*", diff --git a/packages/page-referenda/package.json b/packages/page-referenda/package.json index 980bf2fe0b20..54877e620729 100644 --- a/packages/page-referenda/package.json +++ b/packages/page-referenda/package.json @@ -14,7 +14,7 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "devDependencies": { "chart.js": "^4.4.1" }, diff --git a/packages/page-rpc/package.json b/packages/page-rpc/package.json index b677db6d2f29..d2c51234c999 100644 --- a/packages/page-rpc/package.json +++ b/packages/page-rpc/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-runtime/package.json b/packages/page-runtime/package.json index 3962493ff8c7..d5e8a6620fca 100644 --- a/packages/page-runtime/package.json +++ b/packages/page-runtime/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-scheduler/package.json b/packages/page-scheduler/package.json index 83ed27998b15..fef1ef40f1ff 100644 --- a/packages/page-scheduler/package.json +++ b/packages/page-scheduler/package.json @@ -14,7 +14,7 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "peerDependencies": { "react": "*", "react-dom": "*", diff --git a/packages/page-settings/package.json b/packages/page-settings/package.json index f4e9a3513257..f6909106dd7f 100644 --- a/packages/page-settings/package.json +++ b/packages/page-settings/package.json @@ -14,11 +14,11 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/apps-config": "^0.137.1", - "@polkadot/react-components": "^0.137.1", - "@polkadot/react-query": "^0.137.1", + "@polkadot/apps-config": "^0.137.2-16-x", + "@polkadot/react-components": "^0.137.2-16-x", + "@polkadot/react-query": "^0.137.2-16-x", "query-string": "^8.1.0" }, "peerDependencies": { diff --git a/packages/page-signing/package.json b/packages/page-signing/package.json index 1fe7f9c1458b..bf48e35853ae 100644 --- a/packages/page-signing/package.json +++ b/packages/page-signing/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-society/package.json b/packages/page-society/package.json index 1a8199e89e08..af63582ecaff 100644 --- a/packages/page-society/package.json +++ b/packages/page-society/package.json @@ -14,9 +14,9 @@ }, "sideEffects": false, "type": "module", - "version": "0.137.1", + "version": "0.137.2-16-x", "dependencies": { - "@polkadot/react-components": "^0.137.1" + "@polkadot/react-components": "^0.137.2-16-x" }, "peerDependencies": { "react": "*", diff --git a/packages/page-staking-legacy/.skip-build b/packages/page-staking-legacy/.skip-build new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/packages/page-staking-legacy/.skip-npm b/packages/page-staking-legacy/.skip-npm new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/packages/page-staking-legacy/README.md b/packages/page-staking-legacy/README.md new file mode 100644 index 000000000000..f92e00ed7d21 --- /dev/null +++ b/packages/page-staking-legacy/README.md @@ -0,0 +1 @@ +# @polkadot/app-staking-legacy diff --git a/packages/page-staking-legacy/package.json b/packages/page-staking-legacy/package.json new file mode 100644 index 000000000000..0bf807e5f69c --- /dev/null +++ b/packages/page-staking-legacy/package.json @@ -0,0 +1,28 @@ +{ + "bugs": "https://github.com/availproject/avail-apps/issues", + "engines": { + "node": ">=18" + }, + "homepage": "https://github.com/availproject/avail-apps/tree/master/packages/page-staking-legacy#readme", + "license": "Apache-2.0", + "name": "@polkadot/app-staking-legacy", + "private": true, + "repository": { + "directory": "packages/page-staking-legacy", + "type": "git", + "url": "https://github.com/availproject/avail-apps.git" + }, + "sideEffects": false, + "type": "module", + "version": "0.137.2-16-x", + "dependencies": { + "@polkadot/app-explorer": "^0.137.2-16-x", + "@polkadot/react-components": "^0.137.2-16-x", + "@polkadot/react-query": "^0.137.2-16-x" + }, + "peerDependencies": { + "react": "*", + "react-dom": "*", + "react-is": "*" + } +} diff --git a/packages/page-staking-legacy/src/Actions/Account/BondExtra.tsx b/packages/page-staking-legacy/src/Actions/Account/BondExtra.tsx new file mode 100644 index 000000000000..c0402da054bf --- /dev/null +++ b/packages/page-staking-legacy/src/Actions/Account/BondExtra.tsx @@ -0,0 +1,109 @@ +// Copyright 2017-2024 @polkadot/app-staking authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import type { ApiPromise } from '@polkadot/api'; +import type { DeriveBalancesAll, DeriveStakingAccount } from '@polkadot/api-derive/types'; +import type { AmountValidateState } from '../types.js'; + +import React, { useMemo, useState } from 'react'; + +import { InputAddress, InputBalance, Modal, TxButton } from '@polkadot/react-components'; +import { useApi, useCall } from '@polkadot/react-hooks'; +import { BalanceFree } from '@polkadot/react-query'; +import { BN, BN_ZERO } from '@polkadot/util'; + +import { useTranslation } from '../../translate.js'; +import ValidateAmount from './InputValidateAmount.js'; + +interface Props { + controllerId: string | null; + onClose: () => void; + stakingInfo?: DeriveStakingAccount; + stashId: string; +} + +function calcBalance (api: ApiPromise, stakingInfo?: DeriveStakingAccount, stashBalance?: DeriveBalancesAll): BN | null { + if (stakingInfo?.stakingLedger && stashBalance) { + const sumUnlocking = (stakingInfo.unlocking || []).reduce((acc, { value }) => acc.iadd(value), new BN(0)); + const redeemable = stakingInfo.redeemable || BN_ZERO; + const available = stashBalance.freeBalance.sub(stakingInfo.stakingLedger.active?.unwrap() || BN_ZERO).sub(sumUnlocking).sub(redeemable); + + return available.gt(api.consts.balances.existentialDeposit) + ? available.sub(api.consts.balances.existentialDeposit) + : BN_ZERO; + } + + return null; +} + +function BondExtra ({ controllerId, onClose, stakingInfo, stashId }: Props): React.ReactElement { + const { t } = useTranslation(); + const { api } = useApi(); + const [amountError, setAmountError] = useState(null); + const [maxAdditional, setMaxAdditional] = useState(); + const stashBalance = useCall(api.derive.balances?.all, [stashId]); + const currentAmount = useMemo( + () => stakingInfo?.stakingLedger?.active?.unwrap(), + [stakingInfo] + ); + + const startBalance = useMemo( + () => calcBalance(api, stakingInfo, stashBalance), + [api, stakingInfo, stashBalance] + ); + + return ( + + + + + + {startBalance && ( + + {t('balance')}} + params={stashId} + /> + } + onChange={setMaxAdditional} + /> + + + )} + + + + + + ); +} + +export default React.memo(BondExtra); diff --git a/packages/page-staking-legacy/src/Actions/Account/InjectKeys.tsx b/packages/page-staking-legacy/src/Actions/Account/InjectKeys.tsx new file mode 100644 index 000000000000..a1c2dc42b41e --- /dev/null +++ b/packages/page-staking-legacy/src/Actions/Account/InjectKeys.tsx @@ -0,0 +1,133 @@ +// Copyright 2017-2024 @polkadot/app-staking authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import type { KeypairType } from '@polkadot/util-crypto/types'; + +import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; + +import { Button, Dropdown, Input, MarkWarning, Modal } from '@polkadot/react-components'; +import { useQueue } from '@polkadot/react-hooks'; +import { keyring } from '@polkadot/ui-keyring'; +import { assert, u8aToHex } from '@polkadot/util'; +import { keyExtractSuri, mnemonicValidate } from '@polkadot/util-crypto'; + +import { useTranslation } from '../../translate.js'; + +interface Props { + onClose: () => void; +} + +const CRYPTO_MAP: Record = { + aura: ['ed25519', 'sr25519'], + babe: ['sr25519'], + gran: ['ed25519'], + imon: ['ed25519', 'sr25519'], + para: ['sr25519'] +}; + +const EMPTY_KEY = '0x'; + +function InjectKeys ({ onClose }: Props): React.ReactElement | null { + const { t } = useTranslation(); + const { queueRpc } = useQueue(); + // this needs to align with what is set as the first value in `type` + const [crypto, setCrypto] = useState('sr25519'); + const [publicKey, setPublicKey] = useState(EMPTY_KEY); + const [suri, setSuri] = useState(''); + const [keyType, setKeyType] = useState('babe'); + + const keyTypeOptRef = useRef([ + { text: t('Aura'), value: 'aura' }, + { text: t('Babe'), value: 'babe' }, + { text: t('Grandpa'), value: 'gran' }, + { text: t('I\'m Online'), value: 'imon' }, + { text: t('Parachains'), value: 'para' } + ]); + + useEffect((): void => { + setCrypto(CRYPTO_MAP[keyType][0]); + }, [keyType]); + + useEffect((): void => { + try { + const { phrase } = keyExtractSuri(suri); + + assert(mnemonicValidate(phrase), 'Invalid mnemonic phrase'); + + setPublicKey(u8aToHex(keyring.createFromUri(suri, {}, crypto).publicKey)); + } catch { + setPublicKey(EMPTY_KEY); + } + }, [crypto, suri]); + + const _onSubmit = useCallback( + (): void => queueRpc({ + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment + rpc: { method: 'insertKey', section: 'author' } as any, + values: [keyType, suri, publicKey] + }), + [keyType, publicKey, queueRpc, suri] + ); + + const _cryptoOptions = useMemo( + () => CRYPTO_MAP[keyType].map((value): { text: string; value: KeypairType } => ({ + text: value === 'ed25519' + ? t('ed25519, Edwards') + : t('sr15519, Schnorrkel'), + value + })), + [keyType, t] + ); + + return ( + + + + + + + + + + + + + + + +