From 02c0d2e586ac4c5fda6d21f7a2a4a3b518b98ac2 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Tue, 16 May 2023 20:20:15 +0800 Subject: [PATCH 01/25] types generated with parachain-metadata --- .../ts-tests/interfaces/augment-api-consts.ts | 475 +- .../ts-tests/interfaces/augment-api-errors.ts | 1465 +++- .../ts-tests/interfaces/augment-api-events.ts | 2241 +++++- .../ts-tests/interfaces/augment-api-query.ts | 1833 ++++- .../interfaces/augment-api-runtime.ts | 202 +- .../ts-tests/interfaces/augment-api-tx.ts | 5261 ++++++++++++- tee-worker/ts-tests/interfaces/lookup.ts | 5720 +++++++++++++- tee-worker/ts-tests/interfaces/registry.ts | 584 +- .../ts-tests/interfaces/types-lookup.ts | 6888 ++++++++++++++++- 9 files changed, 23568 insertions(+), 1101 deletions(-) diff --git a/tee-worker/ts-tests/interfaces/augment-api-consts.ts b/tee-worker/ts-tests/interfaces/augment-api-consts.ts index b998a70d3b..1e9cf7b094 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-consts.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-consts.ts @@ -6,13 +6,17 @@ import '@polkadot/api-base/types/consts'; import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types'; -import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { Option, U8aFixed, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { Codec } from '@polkadot/types-codec/types'; +import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime'; import type { + FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, + SpWeightsWeightV2Weight, + XcmV3MultiLocation, } from '@polkadot/types/lookup'; export type __AugmentedConst = AugmentedConst; @@ -38,20 +42,356 @@ declare module '@polkadot/api-base/types/consts' { **/ [key: string]: Codec; }; - identityManagement: { + bounties: { /** - * maximum metadata length + * The amount held on deposit for placing a bounty proposal. **/ - maxMetadataLength: u32 & AugmentedConst; + bountyDepositBase: u128 & AugmentedConst; /** - * maximum delay in block numbers between creating an identity and verifying an identity + * The delay period for which a bounty beneficiary need to wait before claim the payout. **/ + bountyDepositPayoutDelay: u32 & AugmentedConst; + /** + * Bounty duration in blocks. + **/ + bountyUpdatePeriod: u32 & AugmentedConst; + /** + * Minimum value for a bounty. + **/ + bountyValueMinimum: u128 & AugmentedConst; + /** + * Maximum amount of funds that should be placed in a deposit for making a proposal. + **/ + curatorDepositMax: Option & AugmentedConst; + /** + * Minimum amount of funds that should be placed in a deposit for making a proposal. + **/ + curatorDepositMin: Option & AugmentedConst; + /** + * The curator deposit is calculated as a percentage of the curator fee. + * + * This deposit has optional upper and lower bounds with `CuratorDepositMax` and + * `CuratorDepositMin`. + **/ + curatorDepositMultiplier: Permill & AugmentedConst; + /** + * The amount held on deposit per byte within the tip report reason or bounty description. + **/ + dataDepositPerByte: u128 & AugmentedConst; + /** + * Maximum acceptable reason length. + * + * Benchmarks depend on this value, be sure to update weights file when changing this value + **/ + maximumReasonLength: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + bridgeTransfer: { + defaultMaximumIssuance: u128 & AugmentedConst; + externalTotalIssuance: u128 & AugmentedConst; + nativeTokenResourceId: U8aFixed & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + chainBridge: { + /** + * The identifier for this chain. + * This must be unique and must not collide with existing IDs within a set of bridged + * chains. + **/ + bridgeChainId: u8 & AugmentedConst; + proposalLifetime: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + democracy: { + /** + * Period in blocks where an external proposal may not be re-submitted after being vetoed. + **/ + cooloffPeriod: u32 & AugmentedConst; + /** + * The period between a proposal being approved and enacted. + * + * It should generally be a little more than the unstake period to ensure that + * voting stakers have an opportunity to remove themselves from the system in the case + * where they are on the losing side of a vote. + **/ + enactmentPeriod: u32 & AugmentedConst; + /** + * Minimum voting period allowed for a fast-track referendum. + **/ + fastTrackVotingPeriod: u32 & AugmentedConst; + /** + * Indicator for whether an emergency origin is even allowed to happen. Some chains may + * want to set this permanently to `false`, others may want to condition it on things such + * as an upgrade having happened recently. + **/ + instantAllowed: bool & AugmentedConst; + /** + * How often (in blocks) new public referenda are launched. + **/ + launchPeriod: u32 & AugmentedConst; + /** + * The maximum number of items which can be blacklisted. + **/ + maxBlacklisted: u32 & AugmentedConst; + /** + * The maximum number of deposits a public proposal may have at any time. + **/ + maxDeposits: u32 & AugmentedConst; + /** + * The maximum number of public proposals that can exist at any time. + **/ + maxProposals: u32 & AugmentedConst; + /** + * The maximum number of votes for an account. + * + * Also used to compute weight, an overly big value can + * lead to extrinsic with very big weight: see `delegate` for instance. + **/ + maxVotes: u32 & AugmentedConst; + /** + * The minimum amount to be used as a deposit for a public referendum proposal. + **/ + minimumDeposit: u128 & AugmentedConst; + /** + * The minimum period of vote locking. + * + * It should be no shorter than enactment period to ensure that in the case of an approval, + * those successful voters are locked into the consequences that their votes entail. + **/ + voteLockingPeriod: u32 & AugmentedConst; + /** + * How often (in blocks) to check for new votes. + **/ + votingPeriod: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + drop3: { + /** + * The maximum length a on-chain string can be + **/ + maximumNameLength: u32 & AugmentedConst; + /** + * percent of the total amount slashed when proposal gets rejected + **/ + slashPercent: Percent & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + identityManagementMock: { maxVerificationDelay: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; + multisig: { + /** + * The base amount of currency needed to reserve for creating a multisig execution or to + * store a dispatch call for later. + * + * This is held for an additional storage item whose value size is + * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is + * `32 + sizeof(AccountId)` bytes. + **/ + depositBase: u128 & AugmentedConst; + /** + * The amount of currency needed per unit threshold when creating a multisig execution. + * + * This is held for adding 32 bytes more into a pre-existing storage value. + **/ + depositFactor: u128 & AugmentedConst; + /** + * The maximum amount of signatories allowed in the multisig. + **/ + maxSignatories: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + parachainIdentity: { + /** + * The amount held on deposit for a registered identity + **/ + basicDeposit: u128 & AugmentedConst; + /** + * The amount held on deposit per additional field for a registered identity. + **/ + fieldDeposit: u128 & AugmentedConst; + /** + * Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O + * required to access an identity, but can be pretty high. + **/ + maxAdditionalFields: u32 & AugmentedConst; + /** + * Maxmimum number of registrars allowed in the system. Needed to bound the complexity + * of, e.g., updating judgements. + **/ + maxRegistrars: u32 & AugmentedConst; + /** + * The maximum number of sub-accounts allowed per identified account. + **/ + maxSubAccounts: u32 & AugmentedConst; + /** + * The amount held on deposit for a registered subaccount. This should account for the fact + * that one storage item's value will increase by the size of an account ID, and there will + * be another trie item whose value is the size of an account ID plus 32 bytes. + **/ + subAccountDeposit: u128 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + parachainStaking: { + /** + * Number of rounds candidate requests to decrease self-bond must wait to be executable + **/ + candidateBondLessDelay: u32 & AugmentedConst; + /** + * Default number of blocks per round at genesis + **/ + defaultBlocksPerRound: u32 & AugmentedConst; + /** + * Default commission due to collators, is `CollatorCommission` storage value in genesis + **/ + defaultCollatorCommission: Perbill & AugmentedConst; + /** + * Default percent of inflation set aside for parachain bond account + **/ + defaultParachainBondReservePercent: Percent & AugmentedConst; + /** + * Number of rounds that delegation less requests must wait before executable + **/ + delegationBondLessDelay: u32 & AugmentedConst; + /** + * Number of rounds that candidates remain bonded before exit request is executable + **/ + leaveCandidatesDelay: u32 & AugmentedConst; + /** + * Number of rounds that delegators remain bonded before exit request is executable + **/ + leaveDelegatorsDelay: u32 & AugmentedConst; + /** + * Maximum bottom delegations (not counted) per candidate + **/ + maxBottomDelegationsPerCandidate: u32 & AugmentedConst; + /** + * Maximum delegations per delegator + **/ + maxDelegationsPerDelegator: u32 & AugmentedConst; + /** + * Maximum top delegations counted per candidate + **/ + maxTopDelegationsPerCandidate: u32 & AugmentedConst; + /** + * Minimum number of blocks per round + **/ + minBlocksPerRound: u32 & AugmentedConst; + /** + * Minimum stake required for any account to be a collator candidate + **/ + minCandidateStk: u128 & AugmentedConst; + /** + * Minimum stake required for any candidate to be in `SelectedCandidates` for the round + **/ + minCollatorStk: u128 & AugmentedConst; + /** + * Minimum stake for any registered on-chain account to delegate + **/ + minDelegation: u128 & AugmentedConst; + /** + * Minimum stake for any registered on-chain account to be a delegator + **/ + minDelegatorStk: u128 & AugmentedConst; + /** + * Minimum number of selected candidates every round + **/ + minSelectedCandidates: u32 & AugmentedConst; + /** + * Number of rounds that delegations remain bonded before revocation request is executable + **/ + revokeDelegationDelay: u32 & AugmentedConst; + /** + * Number of rounds after which block authors are rewarded + **/ + rewardPaymentDelay: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + proxy: { + /** + * The base amount of currency needed to reserve for creating an announcement. + * + * This is held when a new storage item holding a `Balance` is created (typically 16 + * bytes). + **/ + announcementDepositBase: u128 & AugmentedConst; + /** + * The amount of currency needed per announcement made. + * + * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes) + * into a pre-existing storage value. + **/ + announcementDepositFactor: u128 & AugmentedConst; + /** + * The maximum amount of time-delayed announcements that are allowed to be pending. + **/ + maxPending: u32 & AugmentedConst; + /** + * The maximum amount of proxies allowed for a single account. + **/ + maxProxies: u32 & AugmentedConst; + /** + * The base amount of currency needed to reserve for creating a proxy. + * + * This is held for an additional storage item whose value size is + * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes. + **/ + proxyDepositBase: u128 & AugmentedConst; + /** + * The amount of currency needed per proxy added. + * + * This is held for adding 32 bytes plus an instance of `ProxyType` more into a + * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take + * into account `32 + proxy_type.encode().len()` bytes of data. + **/ + proxyDepositFactor: u128 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + scheduler: { + /** + * The maximum weight that may be scheduled per block for any dispatchables. + **/ + maximumWeight: SpWeightsWeightV2Weight & AugmentedConst; + /** + * The maximum number of scheduled calls in the queue for a single block. + **/ + maxScheduledPerBlock: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; system: { /** * Maximum number of block number to block hash mappings to keep (oldest pruned first). @@ -86,6 +426,17 @@ declare module '@polkadot/api-base/types/consts' { **/ [key: string]: Codec; }; + teeracle: { + maxOracleBlobLen: u32 & AugmentedConst; + /** + * Max number of whitelisted oracle's releases allowed + **/ + maxWhitelistedReleases: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; timestamp: { /** * The minimum period between blocks. Beware that this is different to the *expected* @@ -99,6 +450,45 @@ declare module '@polkadot/api-base/types/consts' { **/ [key: string]: Codec; }; + tips: { + /** + * The amount held on deposit per byte within the tip report reason or bounty description. + **/ + dataDepositPerByte: u128 & AugmentedConst; + /** + * Maximum acceptable reason length. + * + * Benchmarks depend on this value, be sure to update weights file when changing this value + **/ + maximumReasonLength: u32 & AugmentedConst; + /** + * The period for which a tip remains open after is has achieved threshold tippers. + **/ + tipCountdown: u32 & AugmentedConst; + /** + * The percent of the final tip which goes to the original reporter of the tip. + **/ + tipFindersFee: Percent & AugmentedConst; + /** + * The amount held on deposit for placing a tip report. + **/ + tipReportDepositBase: u128 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + tokens: { + maxLocks: u32 & AugmentedConst; + /** + * The maximum number of named reserves that can exist on an account. + **/ + maxReserves: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; transactionPayment: { /** * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their @@ -129,5 +519,80 @@ declare module '@polkadot/api-base/types/consts' { **/ [key: string]: Codec; }; + treasury: { + /** + * Percentage of spare funds (if any) that are burnt per spend period. + **/ + burn: Permill & AugmentedConst; + /** + * The maximum number of approvals that can wait in the spending queue. + * + * NOTE: This parameter is also used within the Bounties Pallet extension if enabled. + **/ + maxApprovals: u32 & AugmentedConst; + /** + * The treasury's pallet id, used for deriving its sovereign account ID. + **/ + palletId: FrameSupportPalletId & AugmentedConst; + /** + * Fraction of a proposal's value that should be bonded in order to place the proposal. + * An accepted proposal gets these back. A rejected proposal does not. + **/ + proposalBond: Permill & AugmentedConst; + /** + * Maximum amount of funds that should be placed in a deposit for making a proposal. + **/ + proposalBondMaximum: Option & AugmentedConst; + /** + * Minimum amount of funds that should be placed in a deposit for making a proposal. + **/ + proposalBondMinimum: u128 & AugmentedConst; + /** + * Period between successive spends. + **/ + spendPeriod: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + utility: { + /** + * The limit on the number of batched calls. + **/ + batchedCallsLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + vesting: { + maxVestingSchedules: u32 & AugmentedConst; + /** + * The minimum amount transferred to call `vested_transfer`. + **/ + minVestedTransfer: u128 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + xTokens: { + /** + * Base XCM weight. + * + * The actually weight for an XCM message is `T::BaseXcmWeight + + * T::Weigher::weight(&msg)`. + **/ + baseXcmWeight: SpWeightsWeightV2Weight & AugmentedConst; + /** + * Self chain location. + **/ + selfLocation: XcmV3MultiLocation & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; } // AugmentedConsts } // declare module diff --git a/tee-worker/ts-tests/interfaces/augment-api-errors.ts b/tee-worker/ts-tests/interfaces/augment-api-errors.ts index 838b3d97b1..9dd62d57fe 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-errors.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-errors.ts @@ -11,6 +11,17 @@ export type __AugmentedError = AugmentedError declare module '@polkadot/api-base/types/errors' { interface AugmentedErrors { + assetManager: { + AssetAlreadyExists: AugmentedError; + AssetIdDoesNotExist: AugmentedError; + AssetIdLimitReached: AugmentedError; + AssetTypeDoesNotExist: AugmentedError; + DefaultAssetTypeRemoved: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; balances: { /** * Beneficiary account must pre-exist @@ -49,83 +60,1463 @@ declare module '@polkadot/api-base/types/errors' { **/ [key: string]: AugmentedError; }; - identityManagement: { + bounties: { /** - * challenge code doesn't exist + * The bounty cannot be closed because it has active child bounties. **/ - ChallengeCodeNotExist: AugmentedError; + HasActiveChildBounty: AugmentedError; /** - * creating the prime identity manually is disallowed + * Proposer's balance is too low. **/ - CreatePrimeIdentityNotAllowed: AugmentedError; + InsufficientProposersBalance: AugmentedError; /** - * the pair (litentry-account, identity) already verified when creating an identity + * Invalid bounty fee. **/ - IdentityAlreadyVerified: AugmentedError; + InvalidFee: AugmentedError; /** - * the identity was not created before verification + * No proposal or bounty at that index. **/ - IdentityNotCreated: AugmentedError; + InvalidIndex: AugmentedError; /** - * the pair (litentry-account, identity) doesn't exist + * Invalid bounty value. **/ - IdentityNotExist: AugmentedError; + InvalidValue: AugmentedError; /** - * remove prime identiy should be disallowed + * A bounty payout is pending. + * To cancel the bounty, you must unassign and slash the curator. **/ - RemovePrimeIdentityDisallowed: AugmentedError; + PendingPayout: AugmentedError; /** - * a verification reqeust comes too early + * The bounties cannot be claimed/closed because it's still in the countdown period. **/ - VerificationRequestTooEarly: AugmentedError; + Premature: AugmentedError; /** - * a verification reqeust comes too late + * The reason given is just too big. **/ - VerificationRequestTooLate: AugmentedError; + ReasonTooBig: AugmentedError; + /** + * Require bounty curator. + **/ + RequireCurator: AugmentedError; + /** + * Too many approvals are already queued. + **/ + TooManyQueued: AugmentedError; + /** + * The bounty status is unexpected. + **/ + UnexpectedStatus: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; - sudo: { + bridgeTransfer: { + InvalidCommand: AugmentedError; + InvalidResourceId: AugmentedError; + OverFlow: AugmentedError; + ReachMaximumSupply: AugmentedError; /** - * Sender must be the Sudo account + * Generic error **/ - RequireSudo: AugmentedError; + [key: string]: AugmentedError; + }; + chainBridge: { + CannotPayAsFee: AugmentedError; + /** + * Chain has already been enabled + **/ + ChainAlreadyWhitelisted: AugmentedError; + /** + * Interactions with this chain is not permitted + **/ + ChainNotWhitelisted: AugmentedError; + /** + * No fee with the ID was found + **/ + FeeDoesNotExist: AugmentedError; + /** + * Too expensive fee for withdrawn asset + **/ + FeeTooExpensive: AugmentedError; + /** + * Balance too low to withdraw + **/ + InsufficientBalance: AugmentedError; + /** + * Provided chain Id is not valid + **/ + InvalidChainId: AugmentedError; + /** + * Relayer threshold cannot be 0 + **/ + InvalidThreshold: AugmentedError; + /** + * Protected operation, must be performed by relayer + **/ + MustBeRelayer: AugmentedError; + NonceOverFlow: AugmentedError; + /** + * Proposal has either failed or succeeded + **/ + ProposalAlreadyComplete: AugmentedError; + /** + * A proposal with these parameters has already been submitted + **/ + ProposalAlreadyExists: AugmentedError; + /** + * No proposal with the ID was found + **/ + ProposalDoesNotExist: AugmentedError; + /** + * Lifetime of proposal has been exceeded + **/ + ProposalExpired: AugmentedError; + /** + * Cannot complete proposal, needs more votes + **/ + ProposalNotComplete: AugmentedError; + /** + * Relayer already in set + **/ + RelayerAlreadyExists: AugmentedError; + /** + * Relayer has already submitted some vote for this proposal + **/ + RelayerAlreadyVoted: AugmentedError; + /** + * Provided accountId is not a relayer + **/ + RelayerInvalid: AugmentedError; + /** + * Resource ID provided isn't mapped to anything + **/ + ResourceDoesNotExist: AugmentedError; + /** + * Relayer threshold not set + **/ + ThresholdNotSet: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; - system: { + council: { /** - * The origin filter prevent the call to be dispatched. + * Members are already initialized! **/ - CallFiltered: AugmentedError; + AlreadyInitialized: AugmentedError; /** - * Failed to extract the runtime version from the new runtime. - * - * Either calling `Core_version` or decoding `RuntimeVersion` failed. + * Duplicate proposals not allowed **/ - FailedToExtractRuntimeVersion: AugmentedError; + DuplicateProposal: AugmentedError; /** - * The name of specification does not match between the current runtime - * and the new runtime. + * Duplicate vote ignored **/ - InvalidSpecName: AugmentedError; + DuplicateVote: AugmentedError; /** - * Suicide called when the account has non-default composite data. + * Account is not a member **/ - NonDefaultComposite: AugmentedError; + NotMember: AugmentedError; /** - * There is a non-zero reference count preventing the account from being purged. + * Proposal must exist **/ - NonZeroRefCount: AugmentedError; + ProposalMissing: AugmentedError; /** - * The specification version is not allowed to decrease between the current runtime - * and the new runtime. + * The close call was made too early, before the end of the voting. **/ - SpecVersionNeedsToIncrease: AugmentedError; + TooEarly: AugmentedError; + /** + * There can only be a maximum of `MaxProposals` active proposals. + **/ + TooManyProposals: AugmentedError; + /** + * Mismatched index + **/ + WrongIndex: AugmentedError; + /** + * The given length bound for the proposal was too low. + **/ + WrongProposalLength: AugmentedError; + /** + * The given weight bound for the proposal was too low. + **/ + WrongProposalWeight: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + councilMembership: { + /** + * Already a member. + **/ + AlreadyMember: AugmentedError; + /** + * Not a member. + **/ + NotMember: AugmentedError; + /** + * Too many members. + **/ + TooManyMembers: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + cumulusXcm: { + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + democracy: { + /** + * Cannot cancel the same proposal twice + **/ + AlreadyCanceled: AugmentedError; + /** + * The account is already delegating. + **/ + AlreadyDelegating: AugmentedError; + /** + * Identity may not veto a proposal twice + **/ + AlreadyVetoed: AugmentedError; + /** + * Proposal already made + **/ + DuplicateProposal: AugmentedError; + /** + * The instant referendum origin is currently disallowed. + **/ + InstantNotAllowed: AugmentedError; + /** + * Too high a balance was provided that the account cannot afford. + **/ + InsufficientFunds: AugmentedError; + /** + * Invalid hash + **/ + InvalidHash: AugmentedError; + /** + * Maximum number of votes reached. + **/ + MaxVotesReached: AugmentedError; + /** + * No proposals waiting + **/ + NoneWaiting: AugmentedError; + /** + * Delegation to oneself makes no sense. + **/ + Nonsense: AugmentedError; + /** + * The actor has no permission to conduct the action. + **/ + NoPermission: AugmentedError; + /** + * No external proposal + **/ + NoProposal: AugmentedError; + /** + * The account is not currently delegating. + **/ + NotDelegating: AugmentedError; + /** + * Next external proposal not simple majority + **/ + NotSimpleMajority: AugmentedError; + /** + * The given account did not vote on the referendum. + **/ + NotVoter: AugmentedError; + /** + * The preimage does not exist. + **/ + PreimageNotExist: AugmentedError; + /** + * Proposal still blacklisted + **/ + ProposalBlacklisted: AugmentedError; + /** + * Proposal does not exist + **/ + ProposalMissing: AugmentedError; + /** + * Vote given for invalid referendum + **/ + ReferendumInvalid: AugmentedError; + /** + * Maximum number of items reached. + **/ + TooMany: AugmentedError; + /** + * Value too low + **/ + ValueLow: AugmentedError; + /** + * The account currently has votes attached to it and the operation cannot succeed until + * these are removed, either through `unvote` or `reap_vote`. + **/ + VotesExist: AugmentedError; + /** + * Voting period too low + **/ + VotingPeriodLow: AugmentedError; + /** + * Invalid upper bound. + **/ + WrongUpperBound: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + dmpQueue: { + /** + * The amount of weight given is possibly not enough for executing the message. + **/ + OverLimit: AugmentedError; + /** + * The message index given is unknown. + **/ + Unknown: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + drop3: { + /** + * Error when the remaning of a reward pool is not enough + **/ + InsufficientRemain: AugmentedError; + /** + * Error when the sender doesn't have enough reserved balance + **/ + InsufficientReservedBalance: AugmentedError; + /** + * Error when start_at < end_at when proposing reward pool + **/ + InvalidProposedBlock: AugmentedError; + /** + * Error when `total` amount is 0 when proposing reward pool + **/ + InvalidTotalBalance: AugmentedError; + /** + * Error when a reward pool can't be found + **/ + NoSuchRewardPool: AugmentedError; + /** + * Error when no vacant PoolId can be acquired + **/ + NoVacantPoolId: AugmentedError; + /** + * Error when the caller account is not the admin + **/ + RequireAdmin: AugmentedError; + /** + * Error when the caller account is not the reward pool owner or admin + **/ + RequireAdminOrRewardPoolOwner: AugmentedError; + /** + * Error when the caller account is not the reward pool owner + **/ + RequireRewardPoolOwner: AugmentedError; + /** + * Error when the reward pool is first approved then rejected + **/ + RewardPoolAlreadyApproved: AugmentedError; + /** + * Error when the reward pool is runing before `start_at` + **/ + RewardPoolRanTooEarly: AugmentedError; + /** + * Error when the reward pool is runing after `end_at` + **/ + RewardPoolRanTooLate: AugmentedError; + /** + * Error when the reward pool is stopped + **/ + RewardPoolStopped: AugmentedError; + /** + * Error when the reward pool is unapproved + **/ + RewardPoolUnapproved: AugmentedError; + /** + * Error of unexpected unmoved amount when calling repatriate_reserved + **/ + UnexpectedUnMovedAmount: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + extrinsicFilter: { + /** + * Error when a given extrinsic cannot be blocked (e.g. this pallet) + **/ + CannotBlock: AugmentedError; + /** + * Error during conversion bytes to utf8 string + **/ + CannotConvertToString: AugmentedError; + /** + * Error when trying to block extrinsic more than once + **/ + ExtrinsicAlreadyBlocked: AugmentedError; + /** + * Error when trying to unblock a non-existent extrinsic + **/ + ExtrinsicNotBlocked: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + identityManagement: { + /** + * a delegatee doesn't exist + **/ + DelegateeNotExist: AugmentedError; + /** + * a `create_identity` request from unauthorised user + **/ + UnauthorisedUser: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + identityManagementMock: { + /** + * the challenge code doesn't exist + **/ + ChallengeCodeNotExist: AugmentedError; + /** + * creating the prime identity manually is disallowed + **/ + CreatePrimeIdentityNotAllowed: AugmentedError; + /** + * the creation request block is zero + **/ + CreationRequestBlockZero: AugmentedError; + /** + * a delegatee doesn't exist + **/ + DelegateeNotExist: AugmentedError; + /** + * identity already verified when creating an identity + **/ + IdentityAlreadyVerified: AugmentedError; + /** + * identity not exist when removing an identity + **/ + IdentityNotExist: AugmentedError; + /** + * fail to recover evm address + **/ + RecoverEvmAddressFailed: AugmentedError; + /** + * recover substrate pubkey failed using ecdsa + **/ + RecoverSubstratePubkeyFailed: AugmentedError; + /** + * Error when decrypting using TEE'shielding key + **/ + ShieldingKeyDecryptionFailed: AugmentedError; + /** + * no shielding key for a given AccountId + **/ + ShieldingKeyNotExist: AugmentedError; + /** + * a `create_identity` request from unauthorised user + **/ + UnauthorisedUser: AugmentedError; + /** + * the message in validation data is unexpected + **/ + UnexpectedMessage: AugmentedError; + /** + * a verification reqeust comes too early + **/ + VerificationRequestTooEarly: AugmentedError; + /** + * a verification reqeust comes too late + **/ + VerificationRequestTooLate: AugmentedError; + /** + * verify evm signature failed + **/ + VerifyEvmSignatureFailed: AugmentedError; + /** + * verify substrate signature failed + **/ + VerifySubstrateSignatureFailed: AugmentedError; + /** + * unexpected decoded type + **/ + WrongDecodedType: AugmentedError; + /** + * wrong identity type + **/ + WrongIdentityType: AugmentedError; + /** + * wrong signature type + **/ + WrongSignatureType: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + impExtrinsicWhitelist: { + /** + * Group memeber already in set + **/ + GroupMemberAlreadyExists: AugmentedError; + /** + * Provided accountId is not a Group member + **/ + GroupMemberInvalid: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + multisig: { + /** + * Call is already approved by this signatory. + **/ + AlreadyApproved: AugmentedError; + /** + * The data to be stored is already stored. + **/ + AlreadyStored: AugmentedError; + /** + * The maximum weight information provided was too low. + **/ + MaxWeightTooLow: AugmentedError; + /** + * Threshold must be 2 or greater. + **/ + MinimumThreshold: AugmentedError; + /** + * Call doesn't need any (more) approvals. + **/ + NoApprovalsNeeded: AugmentedError; + /** + * Multisig operation not found when attempting to cancel. + **/ + NotFound: AugmentedError; + /** + * No timepoint was given, yet the multisig operation is already underway. + **/ + NoTimepoint: AugmentedError; + /** + * Only the account that originally created the multisig is able to cancel it. + **/ + NotOwner: AugmentedError; + /** + * The sender was contained in the other signatories; it shouldn't be. + **/ + SenderInSignatories: AugmentedError; + /** + * The signatories were provided out of order; they should be ordered. + **/ + SignatoriesOutOfOrder: AugmentedError; + /** + * There are too few signatories in the list. + **/ + TooFewSignatories: AugmentedError; + /** + * There are too many signatories in the list. + **/ + TooManySignatories: AugmentedError; + /** + * A timepoint was given, yet no multisig operation is underway. + **/ + UnexpectedTimepoint: AugmentedError; + /** + * A different timepoint was given to the multisig operation that is underway. + **/ + WrongTimepoint: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + parachainIdentity: { + /** + * Account ID is already named. + **/ + AlreadyClaimed: AugmentedError; + /** + * Empty index. + **/ + EmptyIndex: AugmentedError; + /** + * Fee is changed. + **/ + FeeChanged: AugmentedError; + /** + * The index is invalid. + **/ + InvalidIndex: AugmentedError; + /** + * Invalid judgement. + **/ + InvalidJudgement: AugmentedError; + /** + * The target is invalid. + **/ + InvalidTarget: AugmentedError; + /** + * The provided judgement was for a different identity. + **/ + JudgementForDifferentIdentity: AugmentedError; + /** + * Judgement given. + **/ + JudgementGiven: AugmentedError; + /** + * Error that occurs when there is an issue paying for judgement. + **/ + JudgementPaymentFailed: AugmentedError; + /** + * No identity found. + **/ + NoIdentity: AugmentedError; + /** + * Account isn't found. + **/ + NotFound: AugmentedError; + /** + * Account isn't named. + **/ + NotNamed: AugmentedError; + /** + * Sub-account isn't owned by sender. + **/ + NotOwned: AugmentedError; + /** + * Sender is not a sub-account. + **/ + NotSub: AugmentedError; + /** + * Sticky judgement. + **/ + StickyJudgement: AugmentedError; + /** + * Too many additional fields. + **/ + TooManyFields: AugmentedError; + /** + * Maximum amount of registrars reached. Cannot add any more. + **/ + TooManyRegistrars: AugmentedError; + /** + * Too many subs-accounts. + **/ + TooManySubAccounts: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + parachainStaking: { + AlreadyActive: AugmentedError; + AlreadyDelegatedCandidate: AugmentedError; + AlreadyOffline: AugmentedError; + CandidateAlreadyLeaving: AugmentedError; + CandidateBondBelowMin: AugmentedError; + CandidateCannotLeaveYet: AugmentedError; + CandidateDNE: AugmentedError; + CandidateExists: AugmentedError; + CandidateNotLeaving: AugmentedError; + CandidateUnauthorized: AugmentedError; + CannotDelegateIfLeaving: AugmentedError; + CannotDelegateLessThanOrEqualToLowestBottomWhenFull: AugmentedError; + CannotGoOnlineIfLeaving: AugmentedError; + CannotSetBelowMin: AugmentedError; + DelegationBelowMin: AugmentedError; + DelegationDNE: AugmentedError; + DelegatorAlreadyLeaving: AugmentedError; + DelegatorBondBelowMin: AugmentedError; + DelegatorCannotLeaveYet: AugmentedError; + DelegatorDNE: AugmentedError; + DelegatorDNEInDelegatorSet: AugmentedError; + DelegatorDNEinTopNorBottom: AugmentedError; + DelegatorExists: AugmentedError; + DelegatorNotLeaving: AugmentedError; + ExceedMaxDelegationsPerDelegator: AugmentedError; + InsufficientBalance: AugmentedError; + InvalidSchedule: AugmentedError; + NoWritingSameValue: AugmentedError; + PendingCandidateRequestAlreadyExists: AugmentedError; + PendingCandidateRequestNotDueYet: AugmentedError; + PendingCandidateRequestsDNE: AugmentedError; + PendingDelegationRequestAlreadyExists: AugmentedError; + PendingDelegationRequestDNE: AugmentedError; + PendingDelegationRequestNotDueYet: AugmentedError; + PendingDelegationRevoke: AugmentedError; + RoundLengthMustBeGreaterThanTotalSelectedCollators: AugmentedError; + TooLowCandidateCountWeightHintCancelLeaveCandidates: AugmentedError; + TooLowCandidateDelegationCountToLeaveCandidates: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + parachainSystem: { + /** + * The inherent which supplies the host configuration did not run this block + **/ + HostConfigurationNotAvailable: AugmentedError; + /** + * No code upgrade has been authorized. + **/ + NothingAuthorized: AugmentedError; + /** + * No validation function upgrade is currently scheduled. + **/ + NotScheduled: AugmentedError; + /** + * Attempt to upgrade validation function while existing upgrade pending + **/ + OverlappingUpgrades: AugmentedError; + /** + * Polkadot currently prohibits this parachain from upgrading its validation function + **/ + ProhibitedByPolkadot: AugmentedError; + /** + * The supplied validation function has compiled into a blob larger than Polkadot is + * willing to run + **/ + TooBig: AugmentedError; + /** + * The given code upgrade has not been authorized. + **/ + Unauthorized: AugmentedError; + /** + * The inherent which supplies the validation data did not run this block + **/ + ValidationDataNotAvailable: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + polkadotXcm: { + /** + * The given account is not an identifiable sovereign account for any location. + **/ + AccountNotSovereign: AugmentedError; + /** + * The location is invalid since it already has a subscription from us. + **/ + AlreadySubscribed: AugmentedError; + /** + * The given location could not be used (e.g. because it cannot be expressed in the + * desired version of XCM). + **/ + BadLocation: AugmentedError; + /** + * The version of the `Versioned` value used is not able to be interpreted. + **/ + BadVersion: AugmentedError; + /** + * Could not re-anchor the assets to declare the fees for the destination chain. + **/ + CannotReanchor: AugmentedError; + /** + * The destination `MultiLocation` provided cannot be inverted. + **/ + DestinationNotInvertible: AugmentedError; + /** + * The assets to be sent are empty. + **/ + Empty: AugmentedError; + /** + * The operation required fees to be paid which the initiator could not meet. + **/ + FeesNotMet: AugmentedError; + /** + * The message execution fails the filter. + **/ + Filtered: AugmentedError; + /** + * The unlock operation cannot succeed because there are still users of the lock. + **/ + InUse: AugmentedError; + /** + * Invalid asset for the operation. + **/ + InvalidAsset: AugmentedError; + /** + * Origin is invalid for sending. + **/ + InvalidOrigin: AugmentedError; + /** + * A remote lock with the corresponding data could not be found. + **/ + LockNotFound: AugmentedError; + /** + * The owner does not own (all) of the asset that they wish to do the operation on. + **/ + LowBalance: AugmentedError; + /** + * The referenced subscription could not be found. + **/ + NoSubscription: AugmentedError; + /** + * There was some other issue (i.e. not to do with routing) in sending the message. Perhaps + * a lack of space for buffering the message. + **/ + SendFailure: AugmentedError; + /** + * Too many assets have been attempted for transfer. + **/ + TooManyAssets: AugmentedError; + /** + * The asset owner has too many locks on the asset. + **/ + TooManyLocks: AugmentedError; + /** + * The desired destination was unreachable, generally because there is a no way of routing + * to it. + **/ + Unreachable: AugmentedError; + /** + * The message's weight could not be determined. + **/ + UnweighableMessage: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + preimage: { + /** + * Preimage has already been noted on-chain. + **/ + AlreadyNoted: AugmentedError; + /** + * The user is not authorized to perform this action. + **/ + NotAuthorized: AugmentedError; + /** + * The preimage cannot be removed since it has not yet been noted. + **/ + NotNoted: AugmentedError; + /** + * The preimage request cannot be removed since no outstanding requests exist. + **/ + NotRequested: AugmentedError; + /** + * A preimage may not be removed when there are outstanding requests. + **/ + Requested: AugmentedError; + /** + * Preimage is too large to store on-chain. + **/ + TooBig: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + proxy: { + /** + * Account is already a proxy. + **/ + Duplicate: AugmentedError; + /** + * Call may not be made by proxy because it may escalate its privileges. + **/ + NoPermission: AugmentedError; + /** + * Cannot add self as proxy. + **/ + NoSelfProxy: AugmentedError; + /** + * Proxy registration not found. + **/ + NotFound: AugmentedError; + /** + * Sender is not a proxy of the account to be proxied. + **/ + NotProxy: AugmentedError; + /** + * There are too many proxies registered or too many announcements pending. + **/ + TooMany: AugmentedError; + /** + * Announcement, if made at all, was made too recently. + **/ + Unannounced: AugmentedError; + /** + * A call which is incompatible with the proxy type's filter was attempted. + **/ + Unproxyable: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + scheduler: { + /** + * Failed to schedule a call + **/ + FailedToSchedule: AugmentedError; + /** + * Attempt to use a non-named function on a named task. + **/ + Named: AugmentedError; + /** + * Cannot find the scheduled call. + **/ + NotFound: AugmentedError; + /** + * Reschedule failed because it does not change scheduled time. + **/ + RescheduleNoChange: AugmentedError; + /** + * Given target block number is in the past. + **/ + TargetBlockNumberInPast: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + session: { + /** + * Registered duplicate key. + **/ + DuplicatedKey: AugmentedError; + /** + * Invalid ownership proof. + **/ + InvalidProof: AugmentedError; + /** + * Key setting account is not live, so it's impossible to associate keys. + **/ + NoAccount: AugmentedError; + /** + * No associated validator ID for account. + **/ + NoAssociatedValidatorId: AugmentedError; + /** + * No keys are associated with this account. + **/ + NoKeys: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + sidechain: { + /** + * The value for the next finalization candidate is invalid. + **/ + InvalidNextFinalizationCandidateBlockNumber: AugmentedError; + /** + * A proposed block is unexpected. + **/ + ReceivedUnexpectedSidechainBlock: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + sudo: { + /** + * Sender must be the Sudo account + **/ + RequireSudo: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + system: { + /** + * The origin filter prevent the call to be dispatched. + **/ + CallFiltered: AugmentedError; + /** + * Failed to extract the runtime version from the new runtime. + * + * Either calling `Core_version` or decoding `RuntimeVersion` failed. + **/ + FailedToExtractRuntimeVersion: AugmentedError; + /** + * The name of specification does not match between the current runtime + * and the new runtime. + **/ + InvalidSpecName: AugmentedError; + /** + * Suicide called when the account has non-default composite data. + **/ + NonDefaultComposite: AugmentedError; + /** + * There is a non-zero reference count preventing the account from being purged. + **/ + NonZeroRefCount: AugmentedError; + /** + * The specification version is not allowed to decrease between the current runtime + * and the new runtime. + **/ + SpecVersionNeedsToIncrease: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + technicalCommittee: { + /** + * Members are already initialized! + **/ + AlreadyInitialized: AugmentedError; + /** + * Duplicate proposals not allowed + **/ + DuplicateProposal: AugmentedError; + /** + * Duplicate vote ignored + **/ + DuplicateVote: AugmentedError; + /** + * Account is not a member + **/ + NotMember: AugmentedError; + /** + * Proposal must exist + **/ + ProposalMissing: AugmentedError; + /** + * The close call was made too early, before the end of the voting. + **/ + TooEarly: AugmentedError; + /** + * There can only be a maximum of `MaxProposals` active proposals. + **/ + TooManyProposals: AugmentedError; + /** + * Mismatched index + **/ + WrongIndex: AugmentedError; + /** + * The given length bound for the proposal was too low. + **/ + WrongProposalLength: AugmentedError; + /** + * The given weight bound for the proposal was too low. + **/ + WrongProposalWeight: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + technicalCommitteeMembership: { + /** + * Already a member. + **/ + AlreadyMember: AugmentedError; + /** + * Not a member. + **/ + NotMember: AugmentedError; + /** + * Too many members. + **/ + TooManyMembers: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + teeracle: { + DataSourceStringTooLong: AugmentedError; + InvalidCurrency: AugmentedError; + OracleBlobTooBig: AugmentedError; + OracleDataNameStringTooLong: AugmentedError; + ReleaseAlreadyWhitelisted: AugmentedError; + ReleaseNotWhitelisted: AugmentedError; + /** + * Too many MrEnclave in the whitelist. + **/ + ReleaseWhitelistOverflow: AugmentedError; + TradingPairStringTooLong: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + teerex: { + /** + * The provided collateral data is invalid + **/ + CollateralInvalid: AugmentedError; + /** + * The length of the `data` passed to `publish_hash` exceeds the limit. + **/ + DataTooLong: AugmentedError; + /** + * No enclave is registered. + **/ + EmptyEnclaveRegistry: AugmentedError; + /** + * The enclave is not registered. + **/ + EnclaveIsNotRegistered: AugmentedError; + /** + * Enclave not in the scheduled list, therefore unexpected. + **/ + EnclaveNotInSchedule: AugmentedError; + /** + * Failed to decode enclave signer. + **/ + EnclaveSignerDecodeError: AugmentedError; + /** + * The worker url is too long. + **/ + EnclaveUrlTooLong: AugmentedError; + /** + * The Remote Attestation report is too long. + **/ + RaReportTooLong: AugmentedError; + RemoteAttestationTooOld: AugmentedError; + /** + * Verifying RA report failed. + **/ + RemoteAttestationVerificationFailed: AugmentedError; + /** + * This operation needs the admin permission + **/ + RequireAdmin: AugmentedError; + /** + * Can not found the desired scheduled enclave. + **/ + ScheduledEnclaveNotExist: AugmentedError; + /** + * Sender does not match attested enclave in report. + **/ + SenderIsNotAttestedEnclave: AugmentedError; + /** + * The enclave cannot attest, because its building mode is not allowed. + **/ + SgxModeNotAllowed: AugmentedError; + /** + * The number of `extra_topics` passed to `publish_hash` exceeds the limit. + **/ + TooManyTopics: AugmentedError; + /** + * The bonding account doesn't match the enclave. + **/ + WrongMrenclaveForBondingAccount: AugmentedError; + /** + * The shard doesn't match the enclave. + **/ + WrongMrenclaveForShard: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + tips: { + /** + * The tip was already found/started. + **/ + AlreadyKnown: AugmentedError; + /** + * The account attempting to retract the tip is not the finder of the tip. + **/ + NotFinder: AugmentedError; + /** + * The tip cannot be claimed/closed because it's still in the countdown period. + **/ + Premature: AugmentedError; + /** + * The reason given is just too big. + **/ + ReasonTooBig: AugmentedError; + /** + * The tip cannot be claimed/closed because there are not enough tippers yet. + **/ + StillOpen: AugmentedError; + /** + * The tip hash is unknown. + **/ + UnknownTip: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + tokens: { + /** + * Cannot convert Amount into Balance type + **/ + AmountIntoBalanceFailed: AugmentedError; + /** + * The balance is too low + **/ + BalanceTooLow: AugmentedError; + /** + * Beneficiary account must pre-exist + **/ + DeadAccount: AugmentedError; + /** + * Value too low to create account due to existential deposit + **/ + ExistentialDeposit: AugmentedError; + /** + * Transfer/payment would kill account + **/ + KeepAlive: AugmentedError; + /** + * Failed because liquidity restrictions due to locking + **/ + LiquidityRestrictions: AugmentedError; + /** + * Failed because the maximum locks was exceeded + **/ + MaxLocksExceeded: AugmentedError; + TooManyReserves: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + treasury: { + /** + * The spend origin is valid but the amount it is allowed to spend is lower than the + * amount to be spent. + **/ + InsufficientPermission: AugmentedError; + /** + * Proposer's balance is too low. + **/ + InsufficientProposersBalance: AugmentedError; + /** + * No proposal or bounty at that index. + **/ + InvalidIndex: AugmentedError; + /** + * Proposal has not been approved. + **/ + ProposalNotApproved: AugmentedError; + /** + * Too many approvals in the queue. + **/ + TooManyApprovals: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + utility: { + /** + * Too many calls batched. + **/ + TooManyCalls: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + vcManagement: { + LengthMismatch: AugmentedError; + /** + * Error when the caller account is not the admin + **/ + RequireAdmin: AugmentedError; + /** + * Schema is active + **/ + SchemaAlreadyActivated: AugmentedError; + /** + * Schema is already disabled + **/ + SchemaAlreadyDisabled: AugmentedError; + SchemaIndexOverFlow: AugmentedError; + /** + * Schema not exists + **/ + SchemaNotExists: AugmentedError; + /** + * The VC is already disabled + **/ + VCAlreadyDisabled: AugmentedError; + /** + * the VC already exists + **/ + VCAlreadyExists: AugmentedError; + /** + * the ID doesn't exist + **/ + VCNotExist: AugmentedError; + /** + * The requester doesn't have the permission (because of subject mismatch) + **/ + VCSubjectMismatch: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + vcmpExtrinsicWhitelist: { + /** + * Group memeber already in set + **/ + GroupMemberAlreadyExists: AugmentedError; + /** + * Provided accountId is not a Group member + **/ + GroupMemberInvalid: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + vesting: { + /** + * Amount being transferred is too low to create a vesting schedule. + **/ + AmountLow: AugmentedError; + /** + * The account already has `MaxVestingSchedules` count of schedules and thus + * cannot add another one. Consider merging existing schedules in order to add another. + **/ + AtMaxVestingSchedules: AugmentedError; + /** + * Failed to create a new schedule because some parameter was invalid. + **/ + InvalidScheduleParams: AugmentedError; + /** + * The account given is not vesting. + **/ + NotVesting: AugmentedError; + /** + * An index was out of bounds of the vesting schedules. + **/ + ScheduleIndexOutOfBounds: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + xcmpQueue: { + /** + * Bad overweight index. + **/ + BadOverweightIndex: AugmentedError; + /** + * Bad XCM data. + **/ + BadXcm: AugmentedError; + /** + * Bad XCM origin. + **/ + BadXcmOrigin: AugmentedError; + /** + * Failed to send XCM message. + **/ + FailedToSend: AugmentedError; + /** + * Provided weight is possibly not enough to execute the message. + **/ + WeightOverLimit: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + xTokens: { + /** + * Asset has no reserve location. + **/ + AssetHasNoReserve: AugmentedError; + /** + * The specified index does not exist in a MultiAssets struct. + **/ + AssetIndexNonExistent: AugmentedError; + /** + * The version of the `Versioned` value used is not able to be + * interpreted. + **/ + BadVersion: AugmentedError; + /** + * Could not re-anchor the assets to declare the fees for the + * destination chain. + **/ + CannotReanchor: AugmentedError; + /** + * The destination `MultiLocation` provided cannot be inverted. + **/ + DestinationNotInvertible: AugmentedError; + /** + * We tried sending distinct asset and fee but they have different + * reserve chains. + **/ + DistinctReserveForAssetAndFee: AugmentedError; + /** + * Fee is not enough. + **/ + FeeNotEnough: AugmentedError; + /** + * Could not get ancestry of asset reserve location. + **/ + InvalidAncestry: AugmentedError; + /** + * The MultiAsset is invalid. + **/ + InvalidAsset: AugmentedError; + /** + * Invalid transfer destination. + **/ + InvalidDest: AugmentedError; + /** + * MinXcmFee not registered for certain reserve location + **/ + MinXcmFeeNotDefined: AugmentedError; + /** + * Not cross-chain transfer. + **/ + NotCrossChainTransfer: AugmentedError; + /** + * Currency is not cross-chain transferable. + **/ + NotCrossChainTransferableCurrency: AugmentedError; + /** + * Not supported MultiLocation + **/ + NotSupportedMultiLocation: AugmentedError; + /** + * The number of assets to be sent is over the maximum. + **/ + TooManyAssetsBeingSent: AugmentedError; + /** + * The message's weight could not be determined. + **/ + UnweighableMessage: AugmentedError; + /** + * XCM execution failed. + **/ + XcmExecutionFailed: AugmentedError; + /** + * The transfering asset amount is zero. + **/ + ZeroAmount: AugmentedError; + /** + * The fee is zero. + **/ + ZeroFee: AugmentedError; /** * Generic error **/ diff --git a/tee-worker/ts-tests/interfaces/augment-api-events.ts b/tee-worker/ts-tests/interfaces/augment-api-events.ts index 269ae0713c..86e5ada37d 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-events.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-events.ts @@ -6,19 +6,101 @@ import '@polkadot/api-base/types/events'; import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types'; -import type { Null, Option, Result, U8aFixed, u128 } from '@polkadot/types-codec'; -import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; +import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; import type { + CorePrimitivesAssertion, + CorePrimitivesErrorErrorDetail, + CorePrimitivesKeyAesOutput, FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, - LitentryPrimitivesIdentity, + MockTeePrimitivesIdentity, + PalletAssetManagerAssetMetadata, + PalletDemocracyMetadataOwner, + PalletDemocracyVoteAccountVote, + PalletDemocracyVoteThreshold, + PalletExtrinsicFilterOperationalMode, + PalletIdentityManagementMockIdentityContext, + PalletMultisigTimepoint, + PalletParachainStakingDelegationRequestsCancelledScheduledRequest, + PalletParachainStakingDelegatorAdded, + RococoParachainRuntimeProxyType, + RuntimeCommonXcmImplCurrencyId, SpRuntimeDispatchError, + SpWeightsWeightV2Weight, + SubstrateFixedFixedU64, + XcmV3MultiAsset, + XcmV3MultiLocation, + XcmV3MultiassetMultiAssets, + XcmV3Response, + XcmV3TraitsError, + XcmV3TraitsOutcome, + XcmV3Xcm, + XcmVersionedMultiAssets, + XcmVersionedMultiLocation, } from '@polkadot/types/lookup'; export type __AugmentedEvent = AugmentedEvent; declare module '@polkadot/api-base/types/events' { interface AugmentedEvents { + assetManager: { + /** + * The foreign asset updated. + **/ + ForeignAssetMetadataUpdated: AugmentedEvent< + ApiType, + [assetId: u128, metadata: PalletAssetManagerAssetMetadata], + { assetId: u128; metadata: PalletAssetManagerAssetMetadata } + >; + /** + * AssetTracker manipulated + **/ + ForeignAssetTrackerUpdated: AugmentedEvent< + ApiType, + [oldAssetTracker: u128, newAssetTracker: u128], + { oldAssetTracker: u128; newAssetTracker: u128 } + >; + /** + * New asset with the asset manager is registered + **/ + ForeignAssetTypeRegistered: AugmentedEvent< + ApiType, + [assetId: u128, assetType: RuntimeCommonXcmImplCurrencyId], + { assetId: u128; assetType: RuntimeCommonXcmImplCurrencyId } + >; + /** + * New Event gives the info about involved asset_id, removed asset_type, and the new + * default asset_id and asset_type mapping after removal + **/ + ForeignAssetTypeRemoved: AugmentedEvent< + ApiType, + [ + assetId: u128, + removedAssetType: RuntimeCommonXcmImplCurrencyId, + defaultAssetType: RuntimeCommonXcmImplCurrencyId + ], + { + assetId: u128; + removedAssetType: RuntimeCommonXcmImplCurrencyId; + defaultAssetType: RuntimeCommonXcmImplCurrencyId; + } + >; + /** + * Changed the amount of units we + * are charging per execution second for a given asset + **/ + UnitsPerSecondChanged: AugmentedEvent< + ApiType, + [assetId: u128, unitsPerSecond: u128], + { assetId: u128; unitsPerSecond: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; balances: { /** * A balance was set by root. @@ -97,125 +179,2168 @@ declare module '@polkadot/api-base/types/events' { **/ [key: string]: AugmentedEvent; }; - identityManagement: { + bounties: { /** - * challenge code was removed + * A bounty is awarded to a beneficiary. **/ - ChallengeCodeRemoved: AugmentedEvent< + BountyAwarded: AugmentedEvent< ApiType, - [who: AccountId32, identity: LitentryPrimitivesIdentity], - { who: AccountId32; identity: LitentryPrimitivesIdentity } + [index: u32, beneficiary: AccountId32], + { index: u32; beneficiary: AccountId32 } >; /** - * challenge code was set + * A bounty proposal is funded and became active. + **/ + BountyBecameActive: AugmentedEvent; + /** + * A bounty is cancelled. **/ - ChallengeCodeSet: AugmentedEvent< + BountyCanceled: AugmentedEvent; + /** + * A bounty is claimed by beneficiary. + **/ + BountyClaimed: AugmentedEvent< ApiType, - [who: AccountId32, identity: LitentryPrimitivesIdentity, code: U8aFixed], - { who: AccountId32; identity: LitentryPrimitivesIdentity; code: U8aFixed } + [index: u32, payout: u128, beneficiary: AccountId32], + { index: u32; payout: u128; beneficiary: AccountId32 } >; /** - * an identity was created + * A bounty expiry is extended. **/ - IdentityCreated: AugmentedEvent< + BountyExtended: AugmentedEvent; + /** + * New bounty proposal. + **/ + BountyProposed: AugmentedEvent; + /** + * A bounty proposal was rejected; funds were slashed. + **/ + BountyRejected: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + bridgeTransfer: { + /** + * MaximumIssuance was changed + **/ + MaximumIssuanceChanged: AugmentedEvent; + /** + * A certain amount of native tokens was minted + **/ + NativeTokenMinted: AugmentedEvent< ApiType, - [who: AccountId32, identity: LitentryPrimitivesIdentity], - { who: AccountId32; identity: LitentryPrimitivesIdentity } + [to: AccountId32, amount: u128], + { to: AccountId32; amount: u128 } >; /** - * an identity was removed + * Generic event **/ - IdentityRemoved: AugmentedEvent< + [key: string]: AugmentedEvent; + }; + chainBridge: { + /** + * Chain now available for transfers (chain_id) + **/ + ChainWhitelisted: AugmentedEvent; + /** + * Update bridge transfer fee + **/ + FeeUpdated: AugmentedEvent; + /** + * FungibleTransfer is for relaying fungibles (dest_id, nonce, resource_id, amount, + * recipient) + **/ + FungibleTransfer: AugmentedEvent; + /** + * GenericTransfer is for a generic data payload (dest_id, nonce, resource_id, metadata) + **/ + GenericTransfer: AugmentedEvent; + /** + * NonFungibleTransfer is for relaying NFTs (dest_id, nonce, resource_id, token_id, + * recipient, metadata) + **/ + NonFungibleTransfer: AugmentedEvent; + /** + * Voting successful for a proposal + **/ + ProposalApproved: AugmentedEvent; + /** + * Execution of call failed + **/ + ProposalFailed: AugmentedEvent; + /** + * Voting rejected a proposal + **/ + ProposalRejected: AugmentedEvent; + /** + * Execution of call succeeded + **/ + ProposalSucceeded: AugmentedEvent; + /** + * Relayer added to set + **/ + RelayerAdded: AugmentedEvent; + /** + * Relayer removed from set + **/ + RelayerRemoved: AugmentedEvent; + /** + * Vote threshold has changed (new_threshold) + **/ + RelayerThresholdChanged: AugmentedEvent; + /** + * Vot submitted against proposal + **/ + VoteAgainst: AugmentedEvent; + /** + * Vote submitted in favour of proposal + **/ + VoteFor: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + council: { + /** + * A motion was approved by the required threshold. + **/ + Approved: AugmentedEvent; + /** + * A proposal was closed because its threshold was reached or after its duration was up. + **/ + Closed: AugmentedEvent< ApiType, - [who: AccountId32, identity: LitentryPrimitivesIdentity], - { who: AccountId32; identity: LitentryPrimitivesIdentity } + [proposalHash: H256, yes: u32, no: u32], + { proposalHash: H256; yes: u32; no: u32 } >; /** - * user shielding key was set + * A motion was not approved by the required threshold. **/ - UserShieldingKeySet: AugmentedEvent< + Disapproved: AugmentedEvent; + /** + * A motion was executed; result will be `Ok` if it returned without error. + **/ + Executed: AugmentedEvent< + ApiType, + [proposalHash: H256, result: Result], + { proposalHash: H256; result: Result } + >; + /** + * A single member did some action; result will be `Ok` if it returned without error. + **/ + MemberExecuted: AugmentedEvent< ApiType, - [who: AccountId32, key: U8aFixed], - { who: AccountId32; key: U8aFixed } + [proposalHash: H256, result: Result], + { proposalHash: H256; result: Result } + >; + /** + * A motion (given hash) has been proposed (by given account) with a threshold (given + * `MemberCount`). + **/ + Proposed: AugmentedEvent< + ApiType, + [account: AccountId32, proposalIndex: u32, proposalHash: H256, threshold: u32], + { account: AccountId32; proposalIndex: u32; proposalHash: H256; threshold: u32 } + >; + /** + * A motion (given hash) has been voted on by given account, leaving + * a tally (yes votes and no votes given respectively as `MemberCount`). + **/ + Voted: AugmentedEvent< + ApiType, + [account: AccountId32, proposalHash: H256, voted: bool, yes: u32, no: u32], + { account: AccountId32; proposalHash: H256; voted: bool; yes: u32; no: u32 } >; /** * Generic event **/ [key: string]: AugmentedEvent; }; - sudo: { + councilMembership: { /** - * The \[sudoer\] just switched identity; the old key is supplied if one existed. + * Phantom member, never used. **/ - KeyChanged: AugmentedEvent], { oldSudoer: Option }>; + Dummy: AugmentedEvent; /** - * A sudo just took place. \[result\] + * One of the members' keys changed. **/ - Sudid: AugmentedEvent< + KeyChanged: AugmentedEvent; + /** + * The given member was added; see the transaction for who. + **/ + MemberAdded: AugmentedEvent; + /** + * The given member was removed; see the transaction for who. + **/ + MemberRemoved: AugmentedEvent; + /** + * The membership was reset; see the transaction for who the new set is. + **/ + MembersReset: AugmentedEvent; + /** + * Two members were swapped; see the transaction for who. + **/ + MembersSwapped: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + cumulusXcm: { + /** + * Downward message executed with the given outcome. + * \[ id, outcome \] + **/ + ExecutedDownward: AugmentedEvent; + /** + * Downward message is invalid XCM. + * \[ id \] + **/ + InvalidFormat: AugmentedEvent; + /** + * Downward message is unsupported version of XCM. + * \[ id \] + **/ + UnsupportedVersion: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + democracy: { + /** + * A proposal_hash has been blacklisted permanently. + **/ + Blacklisted: AugmentedEvent; + /** + * A referendum has been cancelled. + **/ + Cancelled: AugmentedEvent; + /** + * An account has delegated their vote to another account. + **/ + Delegated: AugmentedEvent< ApiType, - [sudoResult: Result], - { sudoResult: Result } + [who: AccountId32, target: AccountId32], + { who: AccountId32; target: AccountId32 } >; /** - * A sudo just took place. \[result\] + * An external proposal has been tabled. **/ - SudoAsDone: AugmentedEvent< + ExternalTabled: AugmentedEvent; + /** + * Metadata for a proposal or a referendum has been cleared. + **/ + MetadataCleared: AugmentedEvent< ApiType, - [sudoResult: Result], - { sudoResult: Result } + [owner: PalletDemocracyMetadataOwner, hash_: H256], + { owner: PalletDemocracyMetadataOwner; hash_: H256 } + >; + /** + * Metadata for a proposal or a referendum has been set. + **/ + MetadataSet: AugmentedEvent< + ApiType, + [owner: PalletDemocracyMetadataOwner, hash_: H256], + { owner: PalletDemocracyMetadataOwner; hash_: H256 } + >; + /** + * Metadata has been transferred to new owner. + **/ + MetadataTransferred: AugmentedEvent< + ApiType, + [prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256], + { prevOwner: PalletDemocracyMetadataOwner; owner: PalletDemocracyMetadataOwner; hash_: H256 } + >; + /** + * A proposal has been rejected by referendum. + **/ + NotPassed: AugmentedEvent; + /** + * A proposal has been approved by referendum. + **/ + Passed: AugmentedEvent; + /** + * A proposal got canceled. + **/ + ProposalCanceled: AugmentedEvent; + /** + * A motion has been proposed by a public account. + **/ + Proposed: AugmentedEvent< + ApiType, + [proposalIndex: u32, deposit: u128], + { proposalIndex: u32; deposit: u128 } + >; + /** + * An account has secconded a proposal + **/ + Seconded: AugmentedEvent< + ApiType, + [seconder: AccountId32, propIndex: u32], + { seconder: AccountId32; propIndex: u32 } + >; + /** + * A referendum has begun. + **/ + Started: AugmentedEvent< + ApiType, + [refIndex: u32, threshold: PalletDemocracyVoteThreshold], + { refIndex: u32; threshold: PalletDemocracyVoteThreshold } + >; + /** + * A public proposal has been tabled for referendum vote. + **/ + Tabled: AugmentedEvent; + /** + * An account has cancelled a previous delegation operation. + **/ + Undelegated: AugmentedEvent; + /** + * An external proposal has been vetoed. + **/ + Vetoed: AugmentedEvent< + ApiType, + [who: AccountId32, proposalHash: H256, until: u32], + { who: AccountId32; proposalHash: H256; until: u32 } + >; + /** + * An account has voted in a referendum + **/ + Voted: AugmentedEvent< + ApiType, + [voter: AccountId32, refIndex: u32, vote: PalletDemocracyVoteAccountVote], + { voter: AccountId32; refIndex: u32; vote: PalletDemocracyVoteAccountVote } >; /** * Generic event **/ [key: string]: AugmentedEvent; }; - system: { + dmpQueue: { /** - * `:code` was updated. + * Downward message executed with the given outcome. **/ - CodeUpdated: AugmentedEvent; + ExecutedDownward: AugmentedEvent< + ApiType, + [messageId: U8aFixed, outcome: XcmV3TraitsOutcome], + { messageId: U8aFixed; outcome: XcmV3TraitsOutcome } + >; /** - * An extrinsic failed. + * Downward message is invalid XCM. **/ - ExtrinsicFailed: AugmentedEvent< + InvalidFormat: AugmentedEvent; + /** + * The maximum number of downward messages was. + **/ + MaxMessagesExhausted: AugmentedEvent; + /** + * Downward message is overweight and was placed in the overweight queue. + **/ + OverweightEnqueued: AugmentedEvent< ApiType, - [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo], - { dispatchError: SpRuntimeDispatchError; dispatchInfo: FrameSupportDispatchDispatchInfo } + [messageId: U8aFixed, overweightIndex: u64, requiredWeight: SpWeightsWeightV2Weight], + { messageId: U8aFixed; overweightIndex: u64; requiredWeight: SpWeightsWeightV2Weight } >; /** - * An extrinsic completed successfully. + * Downward message from the overweight queue was executed. **/ - ExtrinsicSuccess: AugmentedEvent< + OverweightServiced: AugmentedEvent< ApiType, - [dispatchInfo: FrameSupportDispatchDispatchInfo], - { dispatchInfo: FrameSupportDispatchDispatchInfo } + [overweightIndex: u64, weightUsed: SpWeightsWeightV2Weight], + { overweightIndex: u64; weightUsed: SpWeightsWeightV2Weight } >; /** - * An account was reaped. + * Downward message is unsupported version of XCM. **/ - KilledAccount: AugmentedEvent; + UnsupportedVersion: AugmentedEvent; /** - * A new account was created. + * The weight limit for handling downward messages was reached. **/ - NewAccount: AugmentedEvent; + WeightExhausted: AugmentedEvent< + ApiType, + [ + messageId: U8aFixed, + remainingWeight: SpWeightsWeightV2Weight, + requiredWeight: SpWeightsWeightV2Weight + ], + { + messageId: U8aFixed; + remainingWeight: SpWeightsWeightV2Weight; + requiredWeight: SpWeightsWeightV2Weight; + } + >; /** - * On on-chain remark happened. + * Generic event **/ - Remarked: AugmentedEvent; + [key: string]: AugmentedEvent; + }; + drop3: { + /** + * Admin acccount was changed, the \[ old admin \] is provided + **/ + AdminChanged: AugmentedEvent], { oldAdmin: Option }>; + /** + * An \[ amount \] balance of \[ who \] was slashed + **/ + BalanceSlashed: AugmentedEvent< + ApiType, + [who: AccountId32, amount: u128], + { who: AccountId32; amount: u128 } + >; + /** + * A reward pool with \[ id \] was approved by admin + **/ + RewardPoolApproved: AugmentedEvent; + /** + * A reward pool with \[ id, name, owner \] was proposed + **/ + RewardPoolProposed: AugmentedEvent< + ApiType, + [id: u64, name: Bytes, owner: AccountId32], + { id: u64; name: Bytes; owner: AccountId32 } + >; + /** + * A reward pool with \[ id \] was rejected by admin + **/ + RewardPoolRejected: AugmentedEvent; + /** + * A reward pool with \[ id, name, owner \] was removed, either by admin or owner + **/ + RewardPoolRemoved: AugmentedEvent< + ApiType, + [id: u64, name: Bytes, owner: AccountId32], + { id: u64; name: Bytes; owner: AccountId32 } + >; + /** + * A reward pool with \[ id \] was started, either by admin or owner + **/ + RewardPoolStarted: AugmentedEvent; + /** + * A reward pool with \[ id \] was stopped, either by admin or owner + **/ + RewardPoolStopped: AugmentedEvent; + /** + * An \[ amount \] of reward was sent to \[ to \] + **/ + RewardSent: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; - transactionPayment: { + extrinsicFilter: { /** - * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, - * has been paid by `who`. + * some extrinsics are blocked **/ - TransactionFeePaid: AugmentedEvent< + ExtrinsicsBlocked: AugmentedEvent< ApiType, - [who: AccountId32, actualFee: u128, tip: u128], - { who: AccountId32; actualFee: u128; tip: u128 } + [palletNameBytes: Bytes, functionNameBytes: Option], + { palletNameBytes: Bytes; functionNameBytes: Option } + >; + /** + * some extrinsics are unblocked + **/ + ExtrinsicsUnblocked: AugmentedEvent< + ApiType, + [palletNameBytes: Bytes, functionNameBytes: Option], + { palletNameBytes: Bytes; functionNameBytes: Option } + >; + /** + * a new mode was just sent + **/ + ModeSet: AugmentedEvent< + ApiType, + [newMode: PalletExtrinsicFilterOperationalMode], + { newMode: PalletExtrinsicFilterOperationalMode } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + identityManagement: { + CreateIdentityFailed: AugmentedEvent< + ApiType, + [account: Option, detail: CorePrimitivesErrorErrorDetail, reqExtHash: H256], + { account: Option; detail: CorePrimitivesErrorErrorDetail; reqExtHash: H256 } + >; + CreateIdentityRequested: AugmentedEvent; + DelegateeAdded: AugmentedEvent; + DelegateeRemoved: AugmentedEvent; + IdentityCreated: AugmentedEvent< + ApiType, + [ + account: AccountId32, + identity: CorePrimitivesKeyAesOutput, + code: CorePrimitivesKeyAesOutput, + reqExtHash: H256 + ], + { + account: AccountId32; + identity: CorePrimitivesKeyAesOutput; + code: CorePrimitivesKeyAesOutput; + reqExtHash: H256; + } + >; + IdentityRemoved: AugmentedEvent< + ApiType, + [account: AccountId32, identity: CorePrimitivesKeyAesOutput, reqExtHash: H256], + { account: AccountId32; identity: CorePrimitivesKeyAesOutput; reqExtHash: H256 } + >; + IdentityVerified: AugmentedEvent< + ApiType, + [ + account: AccountId32, + identity: CorePrimitivesKeyAesOutput, + idGraph: CorePrimitivesKeyAesOutput, + reqExtHash: H256 + ], + { + account: AccountId32; + identity: CorePrimitivesKeyAesOutput; + idGraph: CorePrimitivesKeyAesOutput; + reqExtHash: H256; + } + >; + ImportScheduledEnclaveFailed: AugmentedEvent; + RemoveIdentityFailed: AugmentedEvent< + ApiType, + [account: Option, detail: CorePrimitivesErrorErrorDetail, reqExtHash: H256], + { account: Option; detail: CorePrimitivesErrorErrorDetail; reqExtHash: H256 } + >; + RemoveIdentityRequested: AugmentedEvent; + SetUserShieldingKeyFailed: AugmentedEvent< + ApiType, + [account: Option, detail: CorePrimitivesErrorErrorDetail, reqExtHash: H256], + { account: Option; detail: CorePrimitivesErrorErrorDetail; reqExtHash: H256 } + >; + SetUserShieldingKeyRequested: AugmentedEvent; + UnclassifiedError: AugmentedEvent< + ApiType, + [account: Option, detail: CorePrimitivesErrorErrorDetail, reqExtHash: H256], + { account: Option; detail: CorePrimitivesErrorErrorDetail; reqExtHash: H256 } + >; + UserShieldingKeySet: AugmentedEvent< + ApiType, + [account: AccountId32, idGraph: CorePrimitivesKeyAesOutput, reqExtHash: H256], + { account: AccountId32; idGraph: CorePrimitivesKeyAesOutput; reqExtHash: H256 } + >; + VerifyIdentityFailed: AugmentedEvent< + ApiType, + [account: Option, detail: CorePrimitivesErrorErrorDetail, reqExtHash: H256], + { account: Option; detail: CorePrimitivesErrorErrorDetail; reqExtHash: H256 } + >; + VerifyIdentityRequested: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + identityManagementMock: { + CreateIdentityRequested: AugmentedEvent; + DelegateeAdded: AugmentedEvent; + DelegateeRemoved: AugmentedEvent; + IdentityCreated: AugmentedEvent< + ApiType, + [ + account: AccountId32, + identity: CorePrimitivesKeyAesOutput, + code: CorePrimitivesKeyAesOutput, + idGraph: CorePrimitivesKeyAesOutput + ], + { + account: AccountId32; + identity: CorePrimitivesKeyAesOutput; + code: CorePrimitivesKeyAesOutput; + idGraph: CorePrimitivesKeyAesOutput; + } + >; + IdentityCreatedPlain: AugmentedEvent< + ApiType, + [ + account: AccountId32, + identity: MockTeePrimitivesIdentity, + code: U8aFixed, + idGraph: Vec> + ], + { + account: AccountId32; + identity: MockTeePrimitivesIdentity; + code: U8aFixed; + idGraph: Vec>; + } + >; + IdentityRemoved: AugmentedEvent< + ApiType, + [account: AccountId32, identity: CorePrimitivesKeyAesOutput, idGraph: CorePrimitivesKeyAesOutput], + { account: AccountId32; identity: CorePrimitivesKeyAesOutput; idGraph: CorePrimitivesKeyAesOutput } + >; + IdentityRemovedPlain: AugmentedEvent< + ApiType, + [ + account: AccountId32, + identity: MockTeePrimitivesIdentity, + idGraph: Vec> + ], + { + account: AccountId32; + identity: MockTeePrimitivesIdentity; + idGraph: Vec>; + } + >; + IdentityVerified: AugmentedEvent< + ApiType, + [account: AccountId32, identity: CorePrimitivesKeyAesOutput, idGraph: CorePrimitivesKeyAesOutput], + { account: AccountId32; identity: CorePrimitivesKeyAesOutput; idGraph: CorePrimitivesKeyAesOutput } + >; + IdentityVerifiedPlain: AugmentedEvent< + ApiType, + [ + account: AccountId32, + identity: MockTeePrimitivesIdentity, + idGraph: Vec> + ], + { + account: AccountId32; + identity: MockTeePrimitivesIdentity; + idGraph: Vec>; + } + >; + RemoveIdentityRequested: AugmentedEvent; + SetUserShieldingKeyRequested: AugmentedEvent; + SomeError: AugmentedEvent; + UserShieldingKeySet: AugmentedEvent; + UserShieldingKeySetPlain: AugmentedEvent; + VerifyIdentityRequested: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + impExtrinsicWhitelist: { + /** + * Group member added to set + **/ + GroupMemberAdded: AugmentedEvent; + /** + * Group member removed from set + **/ + GroupMemberRemoved: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + multisig: { + /** + * A multisig operation has been approved by someone. + **/ + MultisigApproval: AugmentedEvent< + ApiType, + [approving: AccountId32, timepoint: PalletMultisigTimepoint, multisig: AccountId32, callHash: U8aFixed], + { + approving: AccountId32; + timepoint: PalletMultisigTimepoint; + multisig: AccountId32; + callHash: U8aFixed; + } + >; + /** + * A multisig operation has been cancelled. + **/ + MultisigCancelled: AugmentedEvent< + ApiType, + [ + cancelling: AccountId32, + timepoint: PalletMultisigTimepoint, + multisig: AccountId32, + callHash: U8aFixed + ], + { + cancelling: AccountId32; + timepoint: PalletMultisigTimepoint; + multisig: AccountId32; + callHash: U8aFixed; + } + >; + /** + * A multisig operation has been executed. + **/ + MultisigExecuted: AugmentedEvent< + ApiType, + [ + approving: AccountId32, + timepoint: PalletMultisigTimepoint, + multisig: AccountId32, + callHash: U8aFixed, + result: Result + ], + { + approving: AccountId32; + timepoint: PalletMultisigTimepoint; + multisig: AccountId32; + callHash: U8aFixed; + result: Result; + } + >; + /** + * A new multisig operation has begun. + **/ + NewMultisig: AugmentedEvent< + ApiType, + [approving: AccountId32, multisig: AccountId32, callHash: U8aFixed], + { approving: AccountId32; multisig: AccountId32; callHash: U8aFixed } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + parachainIdentity: { + /** + * A name was cleared, and the given balance returned. + **/ + IdentityCleared: AugmentedEvent< + ApiType, + [who: AccountId32, deposit: u128], + { who: AccountId32; deposit: u128 } + >; + /** + * A name was removed and the given balance slashed. + **/ + IdentityKilled: AugmentedEvent< + ApiType, + [who: AccountId32, deposit: u128], + { who: AccountId32; deposit: u128 } + >; + /** + * A name was set or reset (which will remove all judgements). + **/ + IdentitySet: AugmentedEvent; + /** + * A judgement was given by a registrar. + **/ + JudgementGiven: AugmentedEvent< + ApiType, + [target: AccountId32, registrarIndex: u32], + { target: AccountId32; registrarIndex: u32 } + >; + /** + * A judgement was asked from a registrar. + **/ + JudgementRequested: AugmentedEvent< + ApiType, + [who: AccountId32, registrarIndex: u32], + { who: AccountId32; registrarIndex: u32 } + >; + /** + * A judgement request was retracted. + **/ + JudgementUnrequested: AugmentedEvent< + ApiType, + [who: AccountId32, registrarIndex: u32], + { who: AccountId32; registrarIndex: u32 } + >; + /** + * A registrar was added. + **/ + RegistrarAdded: AugmentedEvent; + /** + * A sub-identity was added to an identity and the deposit paid. + **/ + SubIdentityAdded: AugmentedEvent< + ApiType, + [sub: AccountId32, main: AccountId32, deposit: u128], + { sub: AccountId32; main: AccountId32; deposit: u128 } + >; + /** + * A sub-identity was removed from an identity and the deposit freed. + **/ + SubIdentityRemoved: AugmentedEvent< + ApiType, + [sub: AccountId32, main: AccountId32, deposit: u128], + { sub: AccountId32; main: AccountId32; deposit: u128 } + >; + /** + * A sub-identity was cleared, and the given deposit repatriated from the + * main identity account to the sub-identity account. + **/ + SubIdentityRevoked: AugmentedEvent< + ApiType, + [sub: AccountId32, main: AccountId32, deposit: u128], + { sub: AccountId32; main: AccountId32; deposit: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + parachainStaking: { + /** + * Auto-compounding reward percent was set for a delegation. + **/ + AutoCompoundSet: AugmentedEvent< + ApiType, + [candidate: AccountId32, delegator: AccountId32, value: Percent], + { candidate: AccountId32; delegator: AccountId32; value: Percent } + >; + /** + * Set blocks per round + **/ + BlocksPerRoundSet: AugmentedEvent< + ApiType, + [ + currentRound: u32, + firstBlock: u32, + old: u32, + new_: u32, + newPerRoundInflationMin: Perbill, + newPerRoundInflationIdeal: Perbill, + newPerRoundInflationMax: Perbill + ], + { + currentRound: u32; + firstBlock: u32; + old: u32; + new_: u32; + newPerRoundInflationMin: Perbill; + newPerRoundInflationIdeal: Perbill; + newPerRoundInflationMax: Perbill; + } + >; + /** + * Cancelled request to decrease candidate's bond. + **/ + CancelledCandidateBondLess: AugmentedEvent< + ApiType, + [candidate: AccountId32, amount: u128, executeRound: u32], + { candidate: AccountId32; amount: u128; executeRound: u32 } + >; + /** + * Cancelled request to leave the set of candidates. + **/ + CancelledCandidateExit: AugmentedEvent; + /** + * Cancelled request to change an existing delegation. + **/ + CancelledDelegationRequest: AugmentedEvent< + ApiType, + [ + delegator: AccountId32, + cancelledRequest: PalletParachainStakingDelegationRequestsCancelledScheduledRequest, + collator: AccountId32 + ], + { + delegator: AccountId32; + cancelledRequest: PalletParachainStakingDelegationRequestsCancelledScheduledRequest; + collator: AccountId32; + } + >; + /** + * Candidate rejoins the set of collator candidates. + **/ + CandidateBackOnline: AugmentedEvent; + /** + * Candidate has decreased a self bond. + **/ + CandidateBondedLess: AugmentedEvent< + ApiType, + [candidate: AccountId32, amount: u128, newBond: u128], + { candidate: AccountId32; amount: u128; newBond: u128 } + >; + /** + * Candidate has increased a self bond. + **/ + CandidateBondedMore: AugmentedEvent< + ApiType, + [candidate: AccountId32, amount: u128, newTotalBond: u128], + { candidate: AccountId32; amount: u128; newTotalBond: u128 } + >; + /** + * Candidate requested to decrease a self bond. + **/ + CandidateBondLessRequested: AugmentedEvent< + ApiType, + [candidate: AccountId32, amountToDecrease: u128, executeRound: u32], + { candidate: AccountId32; amountToDecrease: u128; executeRound: u32 } + >; + /** + * Candidate has left the set of candidates. + **/ + CandidateLeft: AugmentedEvent< + ApiType, + [exCandidate: AccountId32, unlockedAmount: u128, newTotalAmtLocked: u128], + { exCandidate: AccountId32; unlockedAmount: u128; newTotalAmtLocked: u128 } + >; + /** + * Candidate has requested to leave the set of candidates. + **/ + CandidateScheduledExit: AugmentedEvent< + ApiType, + [exitAllowedRound: u32, candidate: AccountId32, scheduledExit: u32], + { exitAllowedRound: u32; candidate: AccountId32; scheduledExit: u32 } + >; + /** + * Candidate temporarily leave the set of collator candidates without unbonding. + **/ + CandidateWentOffline: AugmentedEvent; + CandidateWhiteListAdded: AugmentedEvent; + CandidateWhiteListRemoved: AugmentedEvent; + /** + * Candidate selected for collators. Total Exposed Amount includes all delegations. + **/ + CollatorChosen: AugmentedEvent< + ApiType, + [round: u32, collatorAccount: AccountId32, totalExposedAmount: u128], + { round: u32; collatorAccount: AccountId32; totalExposedAmount: u128 } + >; + /** + * Set collator commission to this value. + **/ + CollatorCommissionSet: AugmentedEvent< + ApiType, + [old: Perbill, new_: Perbill], + { old: Perbill; new_: Perbill } + >; + /** + * Compounded a portion of rewards towards the delegation. + **/ + Compounded: AugmentedEvent< + ApiType, + [candidate: AccountId32, delegator: AccountId32, amount: u128], + { candidate: AccountId32; delegator: AccountId32; amount: u128 } + >; + /** + * New delegation (increase of the existing one). + **/ + Delegation: AugmentedEvent< + ApiType, + [ + delegator: AccountId32, + lockedAmount: u128, + candidate: AccountId32, + delegatorPosition: PalletParachainStakingDelegatorAdded, + autoCompound: Percent + ], + { + delegator: AccountId32; + lockedAmount: u128; + candidate: AccountId32; + delegatorPosition: PalletParachainStakingDelegatorAdded; + autoCompound: Percent; + } + >; + DelegationDecreased: AugmentedEvent< + ApiType, + [delegator: AccountId32, candidate: AccountId32, amount: u128, inTop: bool], + { delegator: AccountId32; candidate: AccountId32; amount: u128; inTop: bool } + >; + /** + * Delegator requested to decrease a bond for the collator candidate. + **/ + DelegationDecreaseScheduled: AugmentedEvent< + ApiType, + [delegator: AccountId32, candidate: AccountId32, amountToDecrease: u128, executeRound: u32], + { delegator: AccountId32; candidate: AccountId32; amountToDecrease: u128; executeRound: u32 } + >; + DelegationIncreased: AugmentedEvent< + ApiType, + [delegator: AccountId32, candidate: AccountId32, amount: u128, inTop: bool], + { delegator: AccountId32; candidate: AccountId32; amount: u128; inTop: bool } + >; + /** + * Delegation kicked. + **/ + DelegationKicked: AugmentedEvent< + ApiType, + [delegator: AccountId32, candidate: AccountId32, unstakedAmount: u128], + { delegator: AccountId32; candidate: AccountId32; unstakedAmount: u128 } + >; + /** + * Delegator requested to revoke delegation. + **/ + DelegationRevocationScheduled: AugmentedEvent< + ApiType, + [round: u32, delegator: AccountId32, candidate: AccountId32, scheduledExit: u32], + { round: u32; delegator: AccountId32; candidate: AccountId32; scheduledExit: u32 } + >; + /** + * Delegation revoked. + **/ + DelegationRevoked: AugmentedEvent< + ApiType, + [delegator: AccountId32, candidate: AccountId32, unstakedAmount: u128], + { delegator: AccountId32; candidate: AccountId32; unstakedAmount: u128 } + >; + /** + * Cancelled a pending request to exit the set of delegators. + **/ + DelegatorExitCancelled: AugmentedEvent; + /** + * Delegator requested to leave the set of delegators. + **/ + DelegatorExitScheduled: AugmentedEvent< + ApiType, + [round: u32, delegator: AccountId32, scheduledExit: u32], + { round: u32; delegator: AccountId32; scheduledExit: u32 } + >; + /** + * Delegator has left the set of delegators. + **/ + DelegatorLeft: AugmentedEvent< + ApiType, + [delegator: AccountId32, unstakedAmount: u128], + { delegator: AccountId32; unstakedAmount: u128 } + >; + /** + * Delegation from candidate state has been remove. + **/ + DelegatorLeftCandidate: AugmentedEvent< + ApiType, + [delegator: AccountId32, candidate: AccountId32, unstakedAmount: u128, totalCandidateStaked: u128], + { delegator: AccountId32; candidate: AccountId32; unstakedAmount: u128; totalCandidateStaked: u128 } + >; + /** + * Annual inflation input (first 3) was used to derive new per-round inflation (last 3) + **/ + InflationSet: AugmentedEvent< + ApiType, + [ + annualMin: Perbill, + annualIdeal: Perbill, + annualMax: Perbill, + roundMin: Perbill, + roundIdeal: Perbill, + roundMax: Perbill + ], + { + annualMin: Perbill; + annualIdeal: Perbill; + annualMax: Perbill; + roundMin: Perbill; + roundIdeal: Perbill; + roundMax: Perbill; + } + >; + /** + * Account joined the set of collator candidates. + **/ + JoinedCollatorCandidates: AugmentedEvent< + ApiType, + [account: AccountId32, amountLocked: u128, newTotalAmtLocked: u128], + { account: AccountId32; amountLocked: u128; newTotalAmtLocked: u128 } + >; + /** + * Started new round. + **/ + NewRound: AugmentedEvent< + ApiType, + [startingBlock: u32, round: u32, selectedCollatorsNumber: u32, totalBalance: u128], + { startingBlock: u32; round: u32; selectedCollatorsNumber: u32; totalBalance: u128 } + >; + /** + * Account (re)set for parachain bond treasury. + **/ + ParachainBondAccountSet: AugmentedEvent< + ApiType, + [old: AccountId32, new_: AccountId32], + { old: AccountId32; new_: AccountId32 } + >; + /** + * Percent of inflation reserved for parachain bond (re)set. + **/ + ParachainBondReservePercentSet: AugmentedEvent< + ApiType, + [old: Percent, new_: Percent], + { old: Percent; new_: Percent } + >; + /** + * Transferred to account which holds funds reserved for parachain bond. + **/ + ReservedForParachainBond: AugmentedEvent< + ApiType, + [account: AccountId32, value: u128], + { account: AccountId32; value: u128 } + >; + /** + * Paid the account (delegator or collator) the balance as liquid rewards. + **/ + Rewarded: AugmentedEvent< + ApiType, + [account: AccountId32, rewards: u128], + { account: AccountId32; rewards: u128 } + >; + /** + * Staking expectations set. + **/ + StakeExpectationsSet: AugmentedEvent< + ApiType, + [expectMin: u128, expectIdeal: u128, expectMax: u128], + { expectMin: u128; expectIdeal: u128; expectMax: u128 } + >; + /** + * Set total selected candidates to this value. + **/ + TotalSelectedSet: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + parachainSystem: { + /** + * Downward messages were processed using the given weight. + **/ + DownwardMessagesProcessed: AugmentedEvent< + ApiType, + [weightUsed: SpWeightsWeightV2Weight, dmqHead: H256], + { weightUsed: SpWeightsWeightV2Weight; dmqHead: H256 } + >; + /** + * Some downward messages have been received and will be processed. + **/ + DownwardMessagesReceived: AugmentedEvent; + /** + * An upgrade has been authorized. + **/ + UpgradeAuthorized: AugmentedEvent; + /** + * An upward message was sent to the relay chain. + **/ + UpwardMessageSent: AugmentedEvent< + ApiType, + [messageHash: Option], + { messageHash: Option } + >; + /** + * The validation function was applied as of the contained relay chain block number. + **/ + ValidationFunctionApplied: AugmentedEvent; + /** + * The relay-chain aborted the upgrade process. + **/ + ValidationFunctionDiscarded: AugmentedEvent; + /** + * The validation function has been scheduled to apply. + **/ + ValidationFunctionStored: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + polkadotXcm: { + /** + * Some assets have been claimed from an asset trap + * + * \[ hash, origin, assets \] + **/ + AssetsClaimed: AugmentedEvent; + /** + * Some assets have been placed in an asset trap. + * + * \[ hash, origin, assets \] + **/ + AssetsTrapped: AugmentedEvent; + /** + * Execution of an XCM message was attempted. + * + * \[ outcome \] + **/ + Attempted: AugmentedEvent; + /** + * Fees were paid from a location for an operation (often for using `SendXcm`). + * + * \[ paying location, fees \] + **/ + FeesPaid: AugmentedEvent; + /** + * Expected query response has been received but the querier location of the response does + * not match the expected. The query remains registered for a later, valid, response to + * be received and acted upon. + * + * \[ origin location, id, expected querier, maybe actual querier \] + **/ + InvalidQuerier: AugmentedEvent< + ApiType, + [XcmV3MultiLocation, u64, XcmV3MultiLocation, Option] + >; + /** + * Expected query response has been received but the expected querier location placed in + * storage by this runtime previously cannot be decoded. The query remains registered. + * + * This is unexpected (since a location placed in storage in a previously executing + * runtime should be readable prior to query timeout) and dangerous since the possibly + * valid response will be dropped. Manual governance intervention is probably going to be + * needed. + * + * \[ origin location, id \] + **/ + InvalidQuerierVersion: AugmentedEvent; + /** + * Expected query response has been received but the origin location of the response does + * not match that expected. The query remains registered for a later, valid, response to + * be received and acted upon. + * + * \[ origin location, id, expected location \] + **/ + InvalidResponder: AugmentedEvent]>; + /** + * Expected query response has been received but the expected origin location placed in + * storage by this runtime previously cannot be decoded. The query remains registered. + * + * This is unexpected (since a location placed in storage in a previously executing + * runtime should be readable prior to query timeout) and dangerous since the possibly + * valid response will be dropped. Manual governance intervention is probably going to be + * needed. + * + * \[ origin location, id \] + **/ + InvalidResponderVersion: AugmentedEvent; + /** + * Query response has been received and query is removed. The registered notification has + * been dispatched and executed successfully. + * + * \[ id, pallet index, call index \] + **/ + Notified: AugmentedEvent; + /** + * Query response has been received and query is removed. The dispatch was unable to be + * decoded into a `Call`; this might be due to dispatch function having a signature which + * is not `(origin, QueryId, Response)`. + * + * \[ id, pallet index, call index \] + **/ + NotifyDecodeFailed: AugmentedEvent; + /** + * Query response has been received and query is removed. There was a general error with + * dispatching the notification call. + * + * \[ id, pallet index, call index \] + **/ + NotifyDispatchError: AugmentedEvent; + /** + * Query response has been received and query is removed. The registered notification could + * not be dispatched because the dispatch weight is greater than the maximum weight + * originally budgeted by this runtime for the query result. + * + * \[ id, pallet index, call index, actual weight, max budgeted weight \] + **/ + NotifyOverweight: AugmentedEvent; + /** + * A given location which had a version change subscription was dropped owing to an error + * migrating the location to our new XCM format. + * + * \[ location, query ID \] + **/ + NotifyTargetMigrationFail: AugmentedEvent; + /** + * A given location which had a version change subscription was dropped owing to an error + * sending the notification to it. + * + * \[ location, query ID, error \] + **/ + NotifyTargetSendFail: AugmentedEvent; + /** + * Query response has been received and is ready for taking with `take_response`. There is + * no registered notification call. + * + * \[ id, response \] + **/ + ResponseReady: AugmentedEvent; + /** + * Received query response has been read and removed. + * + * \[ id \] + **/ + ResponseTaken: AugmentedEvent; + /** + * A XCM message was sent. + * + * \[ origin, destination, message \] + **/ + Sent: AugmentedEvent; + /** + * The supported version of a location has been changed. This might be through an + * automatic notification or a manual intervention. + * + * \[ location, XCM version \] + **/ + SupportedVersionChanged: AugmentedEvent; + /** + * Query response received which does not match a registered query. This may be because a + * matching query was never registered, it may be because it is a duplicate response, or + * because the query timed out. + * + * \[ origin location, id \] + **/ + UnexpectedResponse: AugmentedEvent; + /** + * An XCM version change notification message has been attempted to be sent. + * + * The cost of sending it (borne by the chain) is included. + * + * \[ destination, result, cost \] + **/ + VersionChangeNotified: AugmentedEvent; + /** + * We have requested that a remote chain sends us XCM version change notifications. + * + * \[ destination location, cost \] + **/ + VersionNotifyRequested: AugmentedEvent; + /** + * A remote has requested XCM version change notification from us and we have honored it. + * A version information message is sent to them and its cost is included. + * + * \[ destination location, cost \] + **/ + VersionNotifyStarted: AugmentedEvent; + /** + * We have requested that a remote chain stops sending us XCM version change notifications. + * + * \[ destination location, cost \] + **/ + VersionNotifyUnrequested: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + preimage: { + /** + * A preimage has ben cleared. + **/ + Cleared: AugmentedEvent; + /** + * A preimage has been noted. + **/ + Noted: AugmentedEvent; + /** + * A preimage has been requested. + **/ + Requested: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + proxy: { + /** + * An announcement was placed to make a call in the future. + **/ + Announced: AugmentedEvent< + ApiType, + [real: AccountId32, proxy: AccountId32, callHash: H256], + { real: AccountId32; proxy: AccountId32; callHash: H256 } + >; + /** + * A proxy was added. + **/ + ProxyAdded: AugmentedEvent< + ApiType, + [ + delegator: AccountId32, + delegatee: AccountId32, + proxyType: RococoParachainRuntimeProxyType, + delay: u32 + ], + { + delegator: AccountId32; + delegatee: AccountId32; + proxyType: RococoParachainRuntimeProxyType; + delay: u32; + } + >; + /** + * A proxy was executed correctly, with the given. + **/ + ProxyExecuted: AugmentedEvent< + ApiType, + [result: Result], + { result: Result } + >; + /** + * A proxy was removed. + **/ + ProxyRemoved: AugmentedEvent< + ApiType, + [ + delegator: AccountId32, + delegatee: AccountId32, + proxyType: RococoParachainRuntimeProxyType, + delay: u32 + ], + { + delegator: AccountId32; + delegatee: AccountId32; + proxyType: RococoParachainRuntimeProxyType; + delay: u32; + } + >; + /** + * A pure account has been created by new proxy with given + * disambiguation index and proxy type. + **/ + PureCreated: AugmentedEvent< + ApiType, + [ + pure: AccountId32, + who: AccountId32, + proxyType: RococoParachainRuntimeProxyType, + disambiguationIndex: u16 + ], + { + pure: AccountId32; + who: AccountId32; + proxyType: RococoParachainRuntimeProxyType; + disambiguationIndex: u16; + } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + scheduler: { + /** + * The call for the provided hash was not found so the task has been aborted. + **/ + CallUnavailable: AugmentedEvent< + ApiType, + [task: ITuple<[u32, u32]>, id: Option], + { task: ITuple<[u32, u32]>; id: Option } + >; + /** + * Canceled some task. + **/ + Canceled: AugmentedEvent; + /** + * Dispatched some task. + **/ + Dispatched: AugmentedEvent< + ApiType, + [task: ITuple<[u32, u32]>, id: Option, result: Result], + { task: ITuple<[u32, u32]>; id: Option; result: Result } + >; + /** + * The given task was unable to be renewed since the agenda is full at that block. + **/ + PeriodicFailed: AugmentedEvent< + ApiType, + [task: ITuple<[u32, u32]>, id: Option], + { task: ITuple<[u32, u32]>; id: Option } + >; + /** + * The given task can never be executed since it is overweight. + **/ + PermanentlyOverweight: AugmentedEvent< + ApiType, + [task: ITuple<[u32, u32]>, id: Option], + { task: ITuple<[u32, u32]>; id: Option } + >; + /** + * Scheduled some task. + **/ + Scheduled: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + session: { + /** + * New session has happened. Note that the argument is the session index, not the + * block number as the type might suggest. + **/ + NewSession: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + sidechain: { + FinalizedSidechainBlock: AugmentedEvent; + ProposedSidechainBlock: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + sudo: { + /** + * The \[sudoer\] just switched identity; the old key is supplied if one existed. + **/ + KeyChanged: AugmentedEvent], { oldSudoer: Option }>; + /** + * A sudo just took place. \[result\] + **/ + Sudid: AugmentedEvent< + ApiType, + [sudoResult: Result], + { sudoResult: Result } + >; + /** + * A sudo just took place. \[result\] + **/ + SudoAsDone: AugmentedEvent< + ApiType, + [sudoResult: Result], + { sudoResult: Result } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + system: { + /** + * `:code` was updated. + **/ + CodeUpdated: AugmentedEvent; + /** + * An extrinsic failed. + **/ + ExtrinsicFailed: AugmentedEvent< + ApiType, + [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo], + { dispatchError: SpRuntimeDispatchError; dispatchInfo: FrameSupportDispatchDispatchInfo } + >; + /** + * An extrinsic completed successfully. + **/ + ExtrinsicSuccess: AugmentedEvent< + ApiType, + [dispatchInfo: FrameSupportDispatchDispatchInfo], + { dispatchInfo: FrameSupportDispatchDispatchInfo } + >; + /** + * An account was reaped. + **/ + KilledAccount: AugmentedEvent; + /** + * A new account was created. + **/ + NewAccount: AugmentedEvent; + /** + * On on-chain remark happened. + **/ + Remarked: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + technicalCommittee: { + /** + * A motion was approved by the required threshold. + **/ + Approved: AugmentedEvent; + /** + * A proposal was closed because its threshold was reached or after its duration was up. + **/ + Closed: AugmentedEvent< + ApiType, + [proposalHash: H256, yes: u32, no: u32], + { proposalHash: H256; yes: u32; no: u32 } + >; + /** + * A motion was not approved by the required threshold. + **/ + Disapproved: AugmentedEvent; + /** + * A motion was executed; result will be `Ok` if it returned without error. + **/ + Executed: AugmentedEvent< + ApiType, + [proposalHash: H256, result: Result], + { proposalHash: H256; result: Result } + >; + /** + * A single member did some action; result will be `Ok` if it returned without error. + **/ + MemberExecuted: AugmentedEvent< + ApiType, + [proposalHash: H256, result: Result], + { proposalHash: H256; result: Result } + >; + /** + * A motion (given hash) has been proposed (by given account) with a threshold (given + * `MemberCount`). + **/ + Proposed: AugmentedEvent< + ApiType, + [account: AccountId32, proposalIndex: u32, proposalHash: H256, threshold: u32], + { account: AccountId32; proposalIndex: u32; proposalHash: H256; threshold: u32 } + >; + /** + * A motion (given hash) has been voted on by given account, leaving + * a tally (yes votes and no votes given respectively as `MemberCount`). + **/ + Voted: AugmentedEvent< + ApiType, + [account: AccountId32, proposalHash: H256, voted: bool, yes: u32, no: u32], + { account: AccountId32; proposalHash: H256; voted: bool; yes: u32; no: u32 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + technicalCommitteeMembership: { + /** + * Phantom member, never used. + **/ + Dummy: AugmentedEvent; + /** + * One of the members' keys changed. + **/ + KeyChanged: AugmentedEvent; + /** + * The given member was added; see the transaction for who. + **/ + MemberAdded: AugmentedEvent; + /** + * The given member was removed; see the transaction for who. + **/ + MemberRemoved: AugmentedEvent; + /** + * The membership was reset; see the transaction for who the new set is. + **/ + MembersReset: AugmentedEvent; + /** + * Two members were swapped; see the transaction for who. + **/ + MembersSwapped: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + teeracle: { + AddedToWhitelist: AugmentedEvent; + ExchangeRateDeleted: AugmentedEvent; + /** + * The exchange rate of trading pair was set/updated with value from source. + * \[data_source], [trading_pair], [new value\] + **/ + ExchangeRateUpdated: AugmentedEvent]>; + OracleUpdated: AugmentedEvent; + RemovedFromWhitelist: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + teerex: { + AddedEnclave: AugmentedEvent; + AdminChanged: AugmentedEvent], { oldAdmin: Option }>; + Forwarded: AugmentedEvent; + ProcessedParentchainBlock: AugmentedEvent; + /** + * An enclave with [mr_enclave] has published some [hash] with some metadata [data]. + **/ + PublishedHash: AugmentedEvent< + ApiType, + [mrEnclave: U8aFixed, hash_: H256, data: Bytes], + { mrEnclave: U8aFixed; hash_: H256; data: Bytes } + >; + RemovedEnclave: AugmentedEvent; + RemovedScheduledEnclave: AugmentedEvent; + SetHeartbeatTimeout: AugmentedEvent; + ShieldFunds: AugmentedEvent; + UnshieldedFunds: AugmentedEvent; + UpdatedScheduledEnclave: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + tips: { + /** + * A new tip suggestion has been opened. + **/ + NewTip: AugmentedEvent; + /** + * A tip suggestion has been closed. + **/ + TipClosed: AugmentedEvent< + ApiType, + [tipHash: H256, who: AccountId32, payout: u128], + { tipHash: H256; who: AccountId32; payout: u128 } + >; + /** + * A tip suggestion has reached threshold and is closing. + **/ + TipClosing: AugmentedEvent; + /** + * A tip suggestion has been retracted. + **/ + TipRetracted: AugmentedEvent; + /** + * A tip suggestion has been slashed. + **/ + TipSlashed: AugmentedEvent< + ApiType, + [tipHash: H256, finder: AccountId32, deposit: u128], + { tipHash: H256; finder: AccountId32; deposit: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + tokens: { + /** + * A balance was set by root. + **/ + BalanceSet: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, free: u128, reserved: u128], + { currencyId: u128; who: AccountId32; free: u128; reserved: u128 } + >; + /** + * Deposited some balance into an account + **/ + Deposited: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * An account was removed whose balance was non-zero but below + * ExistentialDeposit, resulting in an outright loss. + **/ + DustLost: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * An account was created with some free balance. + **/ + Endowed: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * Some free balance was locked. + **/ + Locked: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * Some locked funds were unlocked + **/ + LockRemoved: AugmentedEvent< + ApiType, + [lockId: U8aFixed, currencyId: u128, who: AccountId32], + { lockId: U8aFixed; currencyId: u128; who: AccountId32 } + >; + /** + * Some funds are locked + **/ + LockSet: AugmentedEvent< + ApiType, + [lockId: U8aFixed, currencyId: u128, who: AccountId32, amount: u128], + { lockId: U8aFixed; currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * Some balance was reserved (moved from free to reserved). + **/ + Reserved: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * Some reserved balance was repatriated (moved from reserved to + * another account). + **/ + ReserveRepatriated: AugmentedEvent< + ApiType, + [ + currencyId: u128, + from: AccountId32, + to: AccountId32, + amount: u128, + status: FrameSupportTokensMiscBalanceStatus + ], + { + currencyId: u128; + from: AccountId32; + to: AccountId32; + amount: u128; + status: FrameSupportTokensMiscBalanceStatus; + } + >; + /** + * Some balances were slashed (e.g. due to mis-behavior) + **/ + Slashed: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, freeAmount: u128, reservedAmount: u128], + { currencyId: u128; who: AccountId32; freeAmount: u128; reservedAmount: u128 } + >; + /** + * The total issuance of an currency has been set + **/ + TotalIssuanceSet: AugmentedEvent< + ApiType, + [currencyId: u128, amount: u128], + { currencyId: u128; amount: u128 } + >; + /** + * Transfer succeeded. + **/ + Transfer: AugmentedEvent< + ApiType, + [currencyId: u128, from: AccountId32, to: AccountId32, amount: u128], + { currencyId: u128; from: AccountId32; to: AccountId32; amount: u128 } + >; + /** + * Some locked balance was freed. + **/ + Unlocked: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * Some balance was unreserved (moved from reserved to free). + **/ + Unreserved: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * Some balances were withdrawn (e.g. pay for transaction fee) + **/ + Withdrawn: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + transactionPayment: { + /** + * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, + * has been paid by `who`. + **/ + TransactionFeePaid: AugmentedEvent< + ApiType, + [who: AccountId32, actualFee: u128, tip: u128], + { who: AccountId32; actualFee: u128; tip: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + treasury: { + /** + * Some funds have been allocated. + **/ + Awarded: AugmentedEvent< + ApiType, + [proposalIndex: u32, award: u128, account: AccountId32], + { proposalIndex: u32; award: u128; account: AccountId32 } + >; + /** + * Some of our funds have been burnt. + **/ + Burnt: AugmentedEvent; + /** + * Some funds have been deposited. + **/ + Deposit: AugmentedEvent; + /** + * New proposal. + **/ + Proposed: AugmentedEvent; + /** + * A proposal was rejected; funds were slashed. + **/ + Rejected: AugmentedEvent< + ApiType, + [proposalIndex: u32, slashed: u128], + { proposalIndex: u32; slashed: u128 } + >; + /** + * Spending has finished; this is the amount that rolls over until next spend. + **/ + Rollover: AugmentedEvent; + /** + * A new spend proposal has been approved. + **/ + SpendApproved: AugmentedEvent< + ApiType, + [proposalIndex: u32, amount: u128, beneficiary: AccountId32], + { proposalIndex: u32; amount: u128; beneficiary: AccountId32 } + >; + /** + * We have ended a spend period and will now allocate funds. + **/ + Spending: AugmentedEvent; + /** + * The inactive funds of the pallet have been updated. + **/ + UpdatedInactive: AugmentedEvent< + ApiType, + [reactivated: u128, deactivated: u128], + { reactivated: u128; deactivated: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + utility: { + /** + * Batch of dispatches completed fully with no error. + **/ + BatchCompleted: AugmentedEvent; + /** + * Batch of dispatches completed but has errors. + **/ + BatchCompletedWithErrors: AugmentedEvent; + /** + * Batch of dispatches did not complete fully. Index of first failing dispatch given, as + * well as the error. + **/ + BatchInterrupted: AugmentedEvent< + ApiType, + [index: u32, error: SpRuntimeDispatchError], + { index: u32; error: SpRuntimeDispatchError } + >; + /** + * A call was dispatched. + **/ + DispatchedAs: AugmentedEvent< + ApiType, + [result: Result], + { result: Result } + >; + /** + * A single item within a Batch of dispatches has completed with no error. + **/ + ItemCompleted: AugmentedEvent; + /** + * A single item within a Batch of dispatches has completed with error. + **/ + ItemFailed: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + vcManagement: { + AdminChanged: AugmentedEvent< + ApiType, + [oldAdmin: Option, newAdmin: Option], + { oldAdmin: Option; newAdmin: Option } + >; + RequestVCFailed: AugmentedEvent< + ApiType, + [ + account: Option, + assertion: CorePrimitivesAssertion, + detail: CorePrimitivesErrorErrorDetail, + reqExtHash: H256 + ], + { + account: Option; + assertion: CorePrimitivesAssertion; + detail: CorePrimitivesErrorErrorDetail; + reqExtHash: H256; + } + >; + SchemaActivated: AugmentedEvent< + ApiType, + [account: AccountId32, shard: H256, index: u64], + { account: AccountId32; shard: H256; index: u64 } + >; + SchemaDisabled: AugmentedEvent< + ApiType, + [account: AccountId32, shard: H256, index: u64], + { account: AccountId32; shard: H256; index: u64 } + >; + SchemaIssued: AugmentedEvent< + ApiType, + [account: AccountId32, shard: H256, index: u64], + { account: AccountId32; shard: H256; index: u64 } + >; + SchemaRevoked: AugmentedEvent< + ApiType, + [account: AccountId32, shard: H256, index: u64], + { account: AccountId32; shard: H256; index: u64 } + >; + UnclassifiedError: AugmentedEvent< + ApiType, + [account: Option, detail: CorePrimitivesErrorErrorDetail, reqExtHash: H256], + { account: Option; detail: CorePrimitivesErrorErrorDetail; reqExtHash: H256 } + >; + VCDisabled: AugmentedEvent< + ApiType, + [account: AccountId32, index: H256], + { account: AccountId32; index: H256 } + >; + VCIssued: AugmentedEvent< + ApiType, + [ + account: AccountId32, + assertion: CorePrimitivesAssertion, + index: H256, + vc: CorePrimitivesKeyAesOutput, + reqExtHash: H256 + ], + { + account: AccountId32; + assertion: CorePrimitivesAssertion; + index: H256; + vc: CorePrimitivesKeyAesOutput; + reqExtHash: H256; + } + >; + VCRegistryCleared: AugmentedEvent; + VCRegistryItemAdded: AugmentedEvent< + ApiType, + [account: AccountId32, assertion: CorePrimitivesAssertion, index: H256], + { account: AccountId32; assertion: CorePrimitivesAssertion; index: H256 } + >; + VCRegistryItemRemoved: AugmentedEvent; + VCRequested: AugmentedEvent< + ApiType, + [account: AccountId32, shard: H256, assertion: CorePrimitivesAssertion], + { account: AccountId32; shard: H256; assertion: CorePrimitivesAssertion } + >; + VCRevoked: AugmentedEvent< + ApiType, + [account: AccountId32, index: H256], + { account: AccountId32; index: H256 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + vcmpExtrinsicWhitelist: { + /** + * Group member added to set + **/ + GroupMemberAdded: AugmentedEvent; + /** + * Group member removed from set + **/ + GroupMemberRemoved: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + vesting: { + /** + * An \[account\] has become fully vested. + **/ + VestingCompleted: AugmentedEvent; + /** + * The amount vested has been updated. This could indicate a change in funds available. + * The balance given is the amount which is left unvested (and thus locked). + **/ + VestingUpdated: AugmentedEvent< + ApiType, + [account: AccountId32, unvested: u128], + { account: AccountId32; unvested: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + xcmpQueue: { + /** + * Bad XCM format used. + **/ + BadFormat: AugmentedEvent], { messageHash: Option }>; + /** + * Bad XCM version used. + **/ + BadVersion: AugmentedEvent], { messageHash: Option }>; + /** + * Some XCM failed. + **/ + Fail: AugmentedEvent< + ApiType, + [messageHash: Option, error: XcmV3TraitsError, weight: SpWeightsWeightV2Weight], + { messageHash: Option; error: XcmV3TraitsError; weight: SpWeightsWeightV2Weight } + >; + /** + * An XCM exceeded the individual message weight budget. + **/ + OverweightEnqueued: AugmentedEvent< + ApiType, + [sender: u32, sentAt: u32, index: u64, required: SpWeightsWeightV2Weight], + { sender: u32; sentAt: u32; index: u64; required: SpWeightsWeightV2Weight } + >; + /** + * An XCM from the overweight queue was executed with the given actual weight used. + **/ + OverweightServiced: AugmentedEvent< + ApiType, + [index: u64, used: SpWeightsWeightV2Weight], + { index: u64; used: SpWeightsWeightV2Weight } + >; + /** + * Some XCM was executed ok. + **/ + Success: AugmentedEvent< + ApiType, + [messageHash: Option, weight: SpWeightsWeightV2Weight], + { messageHash: Option; weight: SpWeightsWeightV2Weight } + >; + /** + * An HRMP message was sent to a sibling parachain. + **/ + XcmpMessageSent: AugmentedEvent< + ApiType, + [messageHash: Option], + { messageHash: Option } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + xTokens: { + /** + * Transferred `MultiAsset` with fee. + **/ + TransferredMultiAssets: AugmentedEvent< + ApiType, + [ + sender: AccountId32, + assets: XcmV3MultiassetMultiAssets, + fee: XcmV3MultiAsset, + dest: XcmV3MultiLocation + ], + { + sender: AccountId32; + assets: XcmV3MultiassetMultiAssets; + fee: XcmV3MultiAsset; + dest: XcmV3MultiLocation; + } >; /** * Generic event diff --git a/tee-worker/ts-tests/interfaces/augment-api-query.ts b/tee-worker/ts-tests/interfaces/augment-api-query.ts index 979c34e2d4..5a2b9b337b 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-query.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-query.ts @@ -6,22 +6,102 @@ import '@polkadot/api-base/types/storage'; import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types'; -import type { Bytes, Option, U8aFixed, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec'; -import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; -import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; +import type { Data } from '@polkadot/types'; import type { + BTreeMap, + Bytes, + Null, + Option, + U8aFixed, + Vec, + bool, + u128, + u16, + u32, + u64, + u8, +} from '@polkadot/types-codec'; +import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, Call, H256, Perbill } from '@polkadot/types/interfaces/runtime'; +import type { + CumulusPalletDmpQueueConfigData, + CumulusPalletDmpQueuePageIndexData, + CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, + CumulusPalletXcmpQueueInboundChannelDetails, + CumulusPalletXcmpQueueOutboundChannelDetails, + CumulusPalletXcmpQueueQueueConfigData, FrameSupportDispatchPerDispatchClassWeight, + FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, - LitentryPrimitivesIdentity, + MockTeePrimitivesIdentity, + OrmlTokensAccountData, + OrmlTokensBalanceLock, + OrmlTokensReserveData, + PalletAssetManagerAssetMetadata, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, - PalletIdentityManagementTeeIdentityContext, + PalletBountiesBounty, + PalletBridgeBridgeEvent, + PalletBridgeProposalVotes, + PalletCollectiveVotes, + PalletDemocracyMetadataOwner, + PalletDemocracyReferendumInfo, + PalletDemocracyVoteThreshold, + PalletDemocracyVoteVoting, + PalletDrop3RewardPool, + PalletExtrinsicFilterOperationalMode, + PalletIdentityManagementMockIdentityContext, + PalletIdentityRegistrarInfo, + PalletIdentityRegistration, + PalletMultisigMultisig, + PalletParachainStakingAutoCompoundAutoCompoundConfig, + PalletParachainStakingBond, + PalletParachainStakingCandidateMetadata, + PalletParachainStakingCollatorSnapshot, + PalletParachainStakingDelayedPayout, + PalletParachainStakingDelegationRequestsScheduledRequest, + PalletParachainStakingDelegations, + PalletParachainStakingDelegator, + PalletParachainStakingInflationInflationInfo, + PalletParachainStakingParachainBondConfig, + PalletParachainStakingRoundInfo, + PalletParachainStakingSetOrderedSet, + PalletPreimageRequestStatus, + PalletProxyAnnouncement, + PalletProxyProxyDefinition, + PalletSchedulerScheduled, + PalletTipsOpenTip, PalletTransactionPaymentReleases, + PalletTreasuryProposal, + PalletVcManagementSchemaVcSchema, + PalletVcManagementVcContext, + PalletVestingReleases, + PalletVestingVestingInfo, + PalletXcmQueryStatus, + PalletXcmRemoteLockedFungibleRecord, + PalletXcmVersionMigrationStage, + PolkadotCorePrimitivesOutboundHrmpMessage, + PolkadotPrimitivesV2AbridgedHostConfiguration, + PolkadotPrimitivesV2PersistedValidationData, + PolkadotPrimitivesV2UpgradeRestriction, + RococoParachainRuntimeSessionKeys, + RuntimeCommonXcmImplCurrencyId, + SidechainPrimitivesSidechainBlockConfirmation, + SpConsensusAuraSr25519AppSr25519Public, + SpCoreCryptoKeyTypeId, SpRuntimeDigest, + SpTrieStorageProof, + SpWeightsWeightV2Weight, + SubstrateFixedFixedU64, + TeerexPrimitivesEnclave, + TeerexPrimitivesQuotingEnclave, + TeerexPrimitivesTcbInfoOnChain, + XcmVersionedAssetId, + XcmVersionedMultiLocation, } from '@polkadot/types/lookup'; import type { Observable } from '@polkadot/types/types'; @@ -30,6 +110,111 @@ export type __QueryableStorageEntry = QueryableStorage declare module '@polkadot/api-base/types/storage' { interface AugmentedQueries { + assetManager: { + /** + * The storages for AssetIdMetadata. + * AssetIdMetadata: map AssetId => Option + **/ + assetIdMetadata: AugmentedQuery< + ApiType, + (arg: u128 | AnyNumber | Uint8Array) => Observable>, + [u128] + > & + QueryableStorageEntry; + /** + * Mapping from an asset id to asset type. + * This is mostly used when receiving transaction specifying an asset directly, + * like transferring an asset from this chain to another. + **/ + assetIdType: AugmentedQuery< + ApiType, + (arg: u128 | AnyNumber | Uint8Array) => Observable>, + [u128] + > & + QueryableStorageEntry; + /** + * Stores the units per second for local execution for a AssetType. + * This is used to know how to charge for XCM execution in a particular asset + * Not all assets might contain units per second, hence the different storage + **/ + assetIdUnitsPerSecond: AugmentedQuery< + ApiType, + (arg: u128 | AnyNumber | Uint8Array) => Observable, + [u128] + > & + QueryableStorageEntry; + /** + * Reverse mapping of AssetIdType. Mapping from an asset type to an asset id. + * This is mostly used when receiving a multilocation XCM message to retrieve + * the corresponding asset in which tokens should me minted. + **/ + assetTypeId: AugmentedQuery< + ApiType, + ( + arg: + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array + ) => Observable>, + [RuntimeCommonXcmImplCurrencyId] + > & + QueryableStorageEntry; + /** + * Stores the tracker of foreign assets id that have been + * created so far + **/ + foreignAssetTracker: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + aura: { + /** + * The current authority set. + **/ + authorities: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The current slot of this block. + * + * This will be set in `on_initialize`. + **/ + currentSlot: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + auraExt: { + /** + * Serves as cache for the authorities. + * + * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session, + * but we require the old authorities to verify the seal when validating a PoV. This will always + * be updated to the latest AuRa authorities in `on_finalize`. + **/ + authorities: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + authorship: { + /** + * Author of current block. + **/ + author: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; balances: { /** * The Balances pallet example of storing the balance of an account. @@ -95,214 +280,1634 @@ declare module '@polkadot/api-base/types/storage' { **/ [key: string]: QueryableStorageEntry; }; - identityManagement: { + bounties: { /** - * challenge code is per Litentry account + identity + * Bounties that have been made. **/ - challengeCodes: AugmentedQuery< + bounties: AugmentedQuery< ApiType, - ( - arg1: AccountId32 | string | Uint8Array, - arg2: - | LitentryPrimitivesIdentity - | { Substrate: any } - | { Evm: any } - | { Web2: any } - | string - | Uint8Array - ) => Observable>, - [AccountId32, LitentryPrimitivesIdentity] + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] > & - QueryableStorageEntry; + QueryableStorageEntry; /** - * ID graph is per Litentry account + identity + * Bounty indices that have been approved but not yet funded. **/ - idGraphs: AugmentedQuery< + bountyApprovals: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Number of bounty proposals that have been made. + **/ + bountyCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The description of each bounty. + **/ + bountyDescriptions: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + bridgeTransfer: { + bridgeBalances: AugmentedQuery< ApiType, ( - arg1: AccountId32 | string | Uint8Array, - arg2: - | LitentryPrimitivesIdentity - | { Substrate: any } - | { Evm: any } - | { Web2: any } - | string - | Uint8Array - ) => Observable>, - [AccountId32, LitentryPrimitivesIdentity] + arg1: U8aFixed | string | Uint8Array, + arg2: AccountId32 | string | Uint8Array + ) => Observable>, + [U8aFixed, AccountId32] > & - QueryableStorageEntry; + QueryableStorageEntry; + externalBalances: AugmentedQuery Observable, []> & QueryableStorageEntry; + maximumIssuance: AugmentedQuery Observable, []> & QueryableStorageEntry; /** - * user shielding key is per Litentry account + * Generic query **/ - userShieldingKeys: AugmentedQuery< + [key: string]: QueryableStorageEntry; + }; + chainBridge: { + bridgeEvents: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + bridgeFee: AugmentedQuery Observable>, [u8]> & + QueryableStorageEntry; + chainNonces: AugmentedQuery Observable>, [u8]> & + QueryableStorageEntry; + relayerCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + relayers: AugmentedQuery< ApiType, - (arg: AccountId32 | string | Uint8Array) => Observable>, + (arg: AccountId32 | string | Uint8Array) => Observable, [AccountId32] > & QueryableStorageEntry; + relayerThreshold: AugmentedQuery Observable, []> & QueryableStorageEntry; + resources: AugmentedQuery< + ApiType, + (arg: U8aFixed | string | Uint8Array) => Observable>, + [U8aFixed] + > & + QueryableStorageEntry; + votes: AugmentedQuery< + ApiType, + ( + arg1: u8 | AnyNumber | Uint8Array, + arg2: ITuple<[u64, Call]> | [u64 | AnyNumber | Uint8Array, Call | IMethod | string | Uint8Array] + ) => Observable>, + [u8, ITuple<[u64, Call]>] + > & + QueryableStorageEntry]>; /** * Generic query **/ [key: string]: QueryableStorageEntry; }; - parentchain: { + council: { + /** + * The current members of the collective. This is stored sorted (just by value). + **/ + members: AugmentedQuery Observable>, []> & + QueryableStorageEntry; /** - * Hash of the last block. Set by `set_block`. + * The prime member that helps determine the default vote behavior in case of absentations. **/ - blockHash: AugmentedQuery Observable, []> & QueryableStorageEntry; + prime: AugmentedQuery Observable>, []> & + QueryableStorageEntry; /** - * The current block number being processed. Set by `set_block`. + * Proposals so far. **/ - number: AugmentedQuery Observable, []> & QueryableStorageEntry; + proposalCount: AugmentedQuery Observable, []> & QueryableStorageEntry; /** - * Hash of the previous block. Set by `set_block`. + * Actual proposal for a given hash, if it's current. **/ - parentHash: AugmentedQuery Observable, []> & QueryableStorageEntry; + proposalOf: AugmentedQuery Observable>, [H256]> & + QueryableStorageEntry; + /** + * The hashes of the active proposals. + **/ + proposals: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Votes on a given proposal, if it is ongoing. + **/ + voting: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable>, + [H256] + > & + QueryableStorageEntry; /** * Generic query **/ [key: string]: QueryableStorageEntry; }; - sudo: { + councilMembership: { /** - * The `AccountId` of the sudo key. + * The current membership, stored as an ordered Vec. **/ - key: AugmentedQuery Observable>, []> & + members: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The current prime member, if one exists. + **/ + prime: AugmentedQuery Observable>, []> & QueryableStorageEntry; /** * Generic query **/ [key: string]: QueryableStorageEntry; }; - system: { + democracy: { /** - * The full account information for a particular account ID. + * A record of who vetoed what. Maps proposal hash to a possible existent block number + * (until when it may not be resubmitted) and who vetoed it. **/ - account: AugmentedQuery< + blacklist: AugmentedQuery< ApiType, - (arg: AccountId32 | string | Uint8Array) => Observable, - [AccountId32] + (arg: H256 | string | Uint8Array) => Observable]>>>, + [H256] > & - QueryableStorageEntry; + QueryableStorageEntry; /** - * Total length (in bytes) for all extrinsics put together, for the current block. + * Record of all proposals that have been subject to emergency cancellation. **/ - allExtrinsicsLen: AugmentedQuery Observable>, []> & - QueryableStorageEntry; + cancellations: AugmentedQuery Observable, [H256]> & + QueryableStorageEntry; /** - * Map of block numbers to block hashes. + * Those who have locked a deposit. + * + * TWOX-NOTE: Safe, as increasing integer keys are safe. **/ - blockHash: AugmentedQuery Observable, [u32]> & + depositOf: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable, u128]>>>, + [u32] + > & QueryableStorageEntry; /** - * The current weight for the block. + * True if the last referendum tabled was submitted externally. False if it was a public + * proposal. **/ - blockWeight: AugmentedQuery Observable, []> & + lastTabledWasExternal: AugmentedQuery Observable, []> & QueryableStorageEntry; /** - * Digest of the current block, also part of the block header. + * The lowest referendum index representing an unbaked referendum. Equal to + * `ReferendumCount` if there isn't a unbaked referendum. **/ - digest: AugmentedQuery Observable, []> & QueryableStorageEntry; + lowestUnbaked: AugmentedQuery Observable, []> & QueryableStorageEntry; /** - * The number of events in the `Events` list. + * General information concerning any proposal or referendum. + * The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON + * dump or IPFS hash of a JSON file. + * + * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove) + * large preimages. **/ - eventCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + metadataOf: AugmentedQuery< + ApiType, + ( + arg: + | PalletDemocracyMetadataOwner + | { External: any } + | { Proposal: any } + | { Referendum: any } + | string + | Uint8Array + ) => Observable>, + [PalletDemocracyMetadataOwner] + > & + QueryableStorageEntry; /** - * Events deposited for the current block. - * - * NOTE: The item is unbound and should therefore never be read on chain. - * It could otherwise inflate the PoV size of a block. - * - * Events have a large in-memory size. Box the events to not go out-of-memory - * just in case someone still reads them from within the runtime. + * The referendum to be tabled whenever it would be valid to table an external proposal. + * This happens when a referendum needs to be tabled and one of two conditions are met: + * - `LastTabledWasExternal` is `false`; or + * - `PublicProps` is empty. **/ - events: AugmentedQuery Observable>, []> & + nextExternal: AugmentedQuery< + ApiType, + () => Observable>>, + [] + > & QueryableStorageEntry; /** - * Mapping between a topic (represented by T::Hash) and a vector of indexes - * of events in the `>` list. + * The number of (public) proposals that have been made so far. + **/ + publicPropCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The public proposals. Unsorted. The second item is the proposal. + **/ + publicProps: AugmentedQuery< + ApiType, + () => Observable>>, + [] + > & + QueryableStorageEntry; + /** + * The next free referendum index, aka the number of referenda started so far. + **/ + referendumCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Information concerning any given referendum. * - * All topic vectors have deterministic storage locations depending on the topic. This - * allows light-clients to leverage the changes trie storage tracking mechanism and - * in case of changes fetch the list of events of interest. + * TWOX-NOTE: SAFE as indexes are not under an attacker’s control. + **/ + referendumInfoOf: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] + > & + QueryableStorageEntry; + /** + * All votes for a particular voter. We store the balance for the number of votes that we + * have recorded. The second item is the total amount of delegations, that will be added. * - * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just - * the `EventIndex` then in case if the topic has the same contents on the next block - * no notification will be triggered thus the event might be lost. + * TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway. **/ - eventTopics: AugmentedQuery< + votingOf: AugmentedQuery< ApiType, - (arg: H256 | string | Uint8Array) => Observable>>, - [H256] + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] > & - QueryableStorageEntry; + QueryableStorageEntry; /** - * The execution phase of the block. + * Generic query **/ - executionPhase: AugmentedQuery Observable>, []> & - QueryableStorageEntry; + [key: string]: QueryableStorageEntry; + }; + dmpQueue: { /** - * Total extrinsics count for the current block. + * The configuration. **/ - extrinsicCount: AugmentedQuery Observable>, []> & + configuration: AugmentedQuery Observable, []> & QueryableStorageEntry; /** - * Extrinsics data for the current block (maps an extrinsic's index to its data). + * Counter for the related counted storage map **/ - extrinsicData: AugmentedQuery Observable, [u32]> & - QueryableStorageEntry; + counterForOverweight: AugmentedQuery Observable, []> & + QueryableStorageEntry; /** - * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. + * The overweight messages. **/ - lastRuntimeUpgrade: AugmentedQuery< + overweight: AugmentedQuery< ApiType, - () => Observable>, - [] + (arg: u64 | AnyNumber | Uint8Array) => Observable>>, + [u64] > & + QueryableStorageEntry; + /** + * The page index. + **/ + pageIndex: AugmentedQuery Observable, []> & QueryableStorageEntry; /** - * The current block number being processed. Set by `execute_block`. + * The queue pages. **/ - number: AugmentedQuery Observable, []> & QueryableStorageEntry; + pages: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>>, + [u32] + > & + QueryableStorageEntry; /** - * Hash of the previous block. + * Generic query **/ - parentHash: AugmentedQuery Observable, []> & QueryableStorageEntry; + [key: string]: QueryableStorageEntry; + }; + drop3: { /** - * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False - * (default) if not. + * The reward pool admin account + * The reason why such an account is needed (other than just using ROOT) is for + * fast processing of reward proposals, imagine later when sudo is removed **/ - upgradedToTripleRefCount: AugmentedQuery Observable, []> & + admin: AugmentedQuery Observable>, []> & QueryableStorageEntry; + currentMaxPoolId: AugmentedQuery Observable, []> & QueryableStorageEntry; /** - * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. + * Map for PoolId <> RewardPoolOwner **/ - upgradedToU32RefCount: AugmentedQuery Observable, []> & - QueryableStorageEntry; + rewardPoolOwners: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>, + [u64] + > & + QueryableStorageEntry; + /** + * Map for PoolId <> RewardPool + **/ + rewardPools: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>, + [u64] + > & + QueryableStorageEntry; /** * Generic query **/ [key: string]: QueryableStorageEntry; }; - timestamp: { + extrinsicFilter: { /** - * Did the timestamp get updated in this block? + * a tuple (pallet_name_bytes, Option) to represent blocked extrinsics + * if `Option` is None, then all extrinsics in `pallet_name_bytes` are + * blocked **/ - didUpdate: AugmentedQuery Observable, []> & QueryableStorageEntry; + blockedExtrinsics: AugmentedQuery< + ApiType, + ( + arg: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array] + ) => Observable>, + [ITuple<[Bytes, Bytes]>] + > & + QueryableStorageEntry]>; /** - * Current time for the current block. + * current mode, ValueQuery as it can't be None **/ - now: AugmentedQuery Observable, []> & QueryableStorageEntry; + mode: AugmentedQuery Observable, []> & + QueryableStorageEntry; /** * Generic query **/ [key: string]: QueryableStorageEntry; }; - transactionPayment: { - nextFeeMultiplier: AugmentedQuery Observable, []> & QueryableStorageEntry; - storageVersion: AugmentedQuery Observable, []> & - QueryableStorageEntry; + identityManagement: { + /** + * delegatees who are authorised to send extrinsics(currently only `create_identity`) + * on behalf of the users + **/ + delegatee: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + identityManagementMock: { + /** + * challenge code is per Litentry account + identity + **/ + challengeCodes: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: + | MockTeePrimitivesIdentity + | { Substrate: any } + | { Evm: any } + | { Web2: any } + | string + | Uint8Array + ) => Observable>, + [AccountId32, MockTeePrimitivesIdentity] + > & + QueryableStorageEntry; + /** + * delegatees who are authorised to send extrinsics(currently only `create_identity`) + * on behalf of the users + **/ + delegatee: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * ID graph is per Litentry account + identity + **/ + idGraphs: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: + | MockTeePrimitivesIdentity + | { Substrate: any } + | { Evm: any } + | { Web2: any } + | string + | Uint8Array + ) => Observable>, + [AccountId32, MockTeePrimitivesIdentity] + > & + QueryableStorageEntry; + /** + * user shielding key is per Litentry account + **/ + userShieldingKeys: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + impExtrinsicWhitelist: { + groupControlOn: AugmentedQuery Observable, []> & QueryableStorageEntry; + groupMembers: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + multisig: { + /** + * The set of open multisig operations. + **/ + multisigs: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: U8aFixed | string | Uint8Array + ) => Observable>, + [AccountId32, U8aFixed] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + parachainIdentity: { + /** + * Information that is pertinent to identify the entity behind an account. + * + * TWOX-NOTE: OK ― `AccountId` is a secure hash. + **/ + identityOf: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The set of registrars. Not expected to get very big as can only be added through a + * special origin (likely a council motion). + * + * The index into this can be cast to `RegistrarIndex` to get a valid value. + **/ + registrars: AugmentedQuery Observable>>, []> & + QueryableStorageEntry; + /** + * Alternative "sub" identities of this account. + * + * The first item is the deposit, the second is a vector of the accounts. + * + * TWOX-NOTE: OK ― `AccountId` is a secure hash. + **/ + subsOf: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable]>>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The super-identity of an alternative "sub" identity together with its name, within that + * context. If the account is not some other account's sub-identity, then just `None`. + **/ + superOf: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + parachainInfo: { + parachainId: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + parachainStaking: { + /** + * Snapshot of collator delegation stake at the start of the round + **/ + atStake: AugmentedQuery< + ApiType, + ( + arg1: u32 | AnyNumber | Uint8Array, + arg2: AccountId32 | string | Uint8Array + ) => Observable, + [u32, AccountId32] + > & + QueryableStorageEntry; + /** + * Stores auto-compounding configuration per collator. + **/ + autoCompoundingDelegations: AugmentedQuery< + ApiType, + ( + arg: AccountId32 | string | Uint8Array + ) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Points for each collator per round + **/ + awardedPts: AugmentedQuery< + ApiType, + (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable, + [u32, AccountId32] + > & + QueryableStorageEntry; + /** + * Bottom delegations for collator candidate + **/ + bottomDelegations: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Get collator candidate info associated with an account if account is candidate else None + **/ + candidateInfo: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The pool of collator candidates, each with their total backing stake + **/ + candidatePool: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The whitelist of collation candidates. + * This storage should be safe to delete after + * we release the restriction + **/ + candidates: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Commission percent taken off of rewards for all collators + **/ + collatorCommission: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Delayed payouts + **/ + delayedPayouts: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] + > & + QueryableStorageEntry; + /** + * Stores outstanding delegation requests per collator. + **/ + delegationScheduledRequests: AugmentedQuery< + ApiType, + ( + arg: AccountId32 | string | Uint8Array + ) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Get delegator state associated with an account if account is delegating else None + **/ + delegatorState: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Inflation configuration + **/ + inflationConfig: AugmentedQuery< + ApiType, + () => Observable, + [] + > & + QueryableStorageEntry; + /** + * Parachain bond config info { account, percent_of_inflation } + **/ + parachainBondInfo: AugmentedQuery< + ApiType, + () => Observable, + [] + > & + QueryableStorageEntry; + /** + * Total points awarded to collators for block production in the round + **/ + points: AugmentedQuery Observable, [u32]> & + QueryableStorageEntry; + /** + * Current round index and next round scheduled transition + **/ + round: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * The collator candidates selected for the current round + **/ + selectedCandidates: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Total counted stake for selected candidates in the round + **/ + staked: AugmentedQuery Observable, [u32]> & + QueryableStorageEntry; + /** + * Top delegations for collator candidate + **/ + topDelegations: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Total capital locked by this staking pallet + **/ + total: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The total candidates selected every round + **/ + totalSelected: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + parachainSystem: { + /** + * The number of HRMP messages we observed in `on_initialize` and thus used that number for + * announcing the weight of `on_initialize` and `on_finalize`. + **/ + announcedHrmpMessagesPerCandidate: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * The next authorized upgrade, if there is one. + **/ + authorizedUpgrade: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * A custom head data that should be returned as result of `validate_block`. + * + * See [`Pallet::set_custom_validation_head_data`] for more information. + **/ + customValidationHeadData: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Were the validation data set to notify the relay chain? + **/ + didSetValidationCode: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * The parachain host configuration that was obtained from the relay parent. + * + * This field is meant to be updated each block with the validation data inherent. Therefore, + * before processing of the inherent, e.g. in `on_initialize` this data may be stale. + * + * This data is also absent from the genesis. + **/ + hostConfiguration: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * HRMP messages that were sent in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + hrmpOutboundMessages: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * HRMP watermark that was set in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + hrmpWatermark: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The last downward message queue chain head we have observed. + * + * This value is loaded before and saved after processing inbound downward messages carried + * by the system inherent. + **/ + lastDmqMqcHead: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The message queue chain heads we have observed per each channel incoming channel. + * + * This value is loaded before and saved after processing inbound downward messages carried + * by the system inherent. + **/ + lastHrmpMqcHeads: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The relay chain block number associated with the last parachain block. + **/ + lastRelayChainBlockNumber: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Validation code that is set by the parachain and is to be communicated to collator and + * consequently the relay-chain. + * + * This will be cleared in `on_initialize` of each new block if no other pallet already set + * the value. + **/ + newValidationCode: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Upward messages that are still pending and not yet send to the relay chain. + **/ + pendingUpwardMessages: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * In case of a scheduled upgrade, this storage field contains the validation code to be applied. + * + * As soon as the relay chain gives us the go-ahead signal, we will overwrite the [`:code`][well_known_keys::CODE] + * which will result the next block process with the new validation code. This concludes the upgrade process. + * + * [well_known_keys::CODE]: sp_core::storage::well_known_keys::CODE + **/ + pendingValidationCode: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Number of downward messages processed in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + processedDownwardMessages: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * The state proof for the last relay parent block. + * + * This field is meant to be updated each block with the validation data inherent. Therefore, + * before processing of the inherent, e.g. in `on_initialize` this data may be stale. + * + * This data is also absent from the genesis. + **/ + relayStateProof: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The snapshot of some state related to messaging relevant to the current parachain as per + * the relay parent. + * + * This field is meant to be updated each block with the validation data inherent. Therefore, + * before processing of the inherent, e.g. in `on_initialize` this data may be stale. + * + * This data is also absent from the genesis. + **/ + relevantMessagingState: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * The weight we reserve at the beginning of the block for processing DMP messages. This + * overrides the amount set in the Config trait. + **/ + reservedDmpWeightOverride: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The weight we reserve at the beginning of the block for processing XCMP messages. This + * overrides the amount set in the Config trait. + **/ + reservedXcmpWeightOverride: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * An option which indicates if the relay-chain restricts signalling a validation code upgrade. + * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced + * candidate will be invalid. + * + * This storage item is a mirror of the corresponding value for the current parachain from the + * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is + * set after the inherent. + **/ + upgradeRestrictionSignal: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * Upward messages that were sent in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + upwardMessages: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The [`PersistedValidationData`] set for this block. + * This value is expected to be set only once per block and it's never stored + * in the trie. + **/ + validationData: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + polkadotXcm: { + /** + * The existing asset traps. + * + * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of + * times this pair has been trapped (usually just 1 if it exists at all). + **/ + assetTraps: AugmentedQuery Observable, [H256]> & + QueryableStorageEntry; + /** + * The current migration's stage, if any. + **/ + currentMigration: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Fungible assets which we know are locked on this chain. + **/ + lockedFungibles: AugmentedQuery< + ApiType, + ( + arg: AccountId32 | string | Uint8Array + ) => Observable>>>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The ongoing queries. + **/ + queries: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>, + [u64] + > & + QueryableStorageEntry; + /** + * The latest available query index. + **/ + queryCounter: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Fungible assets which we know are locked on a remote chain. + **/ + remoteLockedFungibles: AugmentedQuery< + ApiType, + ( + arg1: u32 | AnyNumber | Uint8Array, + arg2: AccountId32 | string | Uint8Array, + arg3: XcmVersionedAssetId | { V3: any } | string | Uint8Array + ) => Observable>, + [u32, AccountId32, XcmVersionedAssetId] + > & + QueryableStorageEntry; + /** + * Default version to encode XCM when latest version of destination is unknown. If `None`, + * then the destinations whose XCM version is unknown are considered unreachable. + **/ + safeXcmVersion: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The Latest versions that we know various locations support. + **/ + supportedVersion: AugmentedQuery< + ApiType, + ( + arg1: u32 | AnyNumber | Uint8Array, + arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array + ) => Observable>, + [u32, XcmVersionedMultiLocation] + > & + QueryableStorageEntry; + /** + * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and + * the `u32` counter is the number of times that a send to the destination has been attempted, + * which is used as a prioritization. + **/ + versionDiscoveryQueue: AugmentedQuery< + ApiType, + () => Observable>>, + [] + > & + QueryableStorageEntry; + /** + * All locations that we have requested version notifications from. + **/ + versionNotifiers: AugmentedQuery< + ApiType, + ( + arg1: u32 | AnyNumber | Uint8Array, + arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array + ) => Observable>, + [u32, XcmVersionedMultiLocation] + > & + QueryableStorageEntry; + /** + * The target locations that are subscribed to our version changes, as well as the most recent + * of our versions we informed them of. + **/ + versionNotifyTargets: AugmentedQuery< + ApiType, + ( + arg1: u32 | AnyNumber | Uint8Array, + arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array + ) => Observable>>, + [u32, XcmVersionedMultiLocation] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + preimage: { + preimageFor: AugmentedQuery< + ApiType, + ( + arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array] + ) => Observable>, + [ITuple<[H256, u32]>] + > & + QueryableStorageEntry]>; + /** + * The request status of a given hash. + **/ + statusFor: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable>, + [H256] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + proxy: { + /** + * The announcements made by the proxy (key). + **/ + announcements: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, u128]>>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The set of account proxies. Maps the account which has delegated to the accounts + * which are being delegated to, together with the amount held on deposit. + **/ + proxies: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, u128]>>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + scheduler: { + /** + * Items to be executed, indexed by the block number that they should be executed on. + **/ + agenda: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>>, + [u32] + > & + QueryableStorageEntry; + incompleteSince: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Lookup from a name to the block number and index of the task. + * + * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4 + * identities. + **/ + lookup: AugmentedQuery< + ApiType, + (arg: U8aFixed | string | Uint8Array) => Observable>>, + [U8aFixed] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + session: { + /** + * Current index of the session. + **/ + currentIndex: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Indices of disabled validators. + * + * The vec is always kept sorted so that we can find whether a given validator is + * disabled using binary search. It gets cleared when `on_session_ending` returns + * a new set of identities. + **/ + disabledValidators: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The owner of a key. The key is the `KeyTypeId` + the encoded key. + **/ + keyOwner: AugmentedQuery< + ApiType, + ( + arg: + | ITuple<[SpCoreCryptoKeyTypeId, Bytes]> + | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array] + ) => Observable>, + [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>] + > & + QueryableStorageEntry]>; + /** + * The next session keys for a validator. + **/ + nextKeys: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * True if the underlying economic identities or weighting behind the validators + * has changed in the queued validator set. + **/ + queuedChanged: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The queued keys for the next session. When the next session begins, these keys + * will be used to determine the validator's session keys. + **/ + queuedKeys: AugmentedQuery< + ApiType, + () => Observable>>, + [] + > & + QueryableStorageEntry; + /** + * The current set of validators. + **/ + validators: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + sidechain: { + latestSidechainBlockConfirmation: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable, + [H256] + > & + QueryableStorageEntry; + sidechainBlockFinalizationCandidate: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable, + [H256] + > & + QueryableStorageEntry; + workerForShard: AugmentedQuery Observable, [H256]> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + sudo: { + /** + * The `AccountId` of the sudo key. + **/ + key: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + system: { + /** + * The full account information for a particular account ID. + **/ + account: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Total length (in bytes) for all extrinsics put together, for the current block. + **/ + allExtrinsicsLen: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Map of block numbers to block hashes. + **/ + blockHash: AugmentedQuery Observable, [u32]> & + QueryableStorageEntry; + /** + * The current weight for the block. + **/ + blockWeight: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Digest of the current block, also part of the block header. + **/ + digest: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The number of events in the `Events` list. + **/ + eventCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Events deposited for the current block. + * + * NOTE: The item is unbound and should therefore never be read on chain. + * It could otherwise inflate the PoV size of a block. + * + * Events have a large in-memory size. Box the events to not go out-of-memory + * just in case someone still reads them from within the runtime. + **/ + events: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Mapping between a topic (represented by T::Hash) and a vector of indexes + * of events in the `>` list. + * + * All topic vectors have deterministic storage locations depending on the topic. This + * allows light-clients to leverage the changes trie storage tracking mechanism and + * in case of changes fetch the list of events of interest. + * + * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just + * the `EventIndex` then in case if the topic has the same contents on the next block + * no notification will be triggered thus the event might be lost. + **/ + eventTopics: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable>>, + [H256] + > & + QueryableStorageEntry; + /** + * The execution phase of the block. + **/ + executionPhase: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Total extrinsics count for the current block. + **/ + extrinsicCount: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Extrinsics data for the current block (maps an extrinsic's index to its data). + **/ + extrinsicData: AugmentedQuery Observable, [u32]> & + QueryableStorageEntry; + /** + * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. + **/ + lastRuntimeUpgrade: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * The current block number being processed. Set by `execute_block`. + **/ + number: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Hash of the previous block. + **/ + parentHash: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False + * (default) if not. + **/ + upgradedToTripleRefCount: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. + **/ + upgradedToU32RefCount: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + technicalCommittee: { + /** + * The current members of the collective. This is stored sorted (just by value). + **/ + members: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The prime member that helps determine the default vote behavior in case of absentations. + **/ + prime: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Proposals so far. + **/ + proposalCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Actual proposal for a given hash, if it's current. + **/ + proposalOf: AugmentedQuery Observable>, [H256]> & + QueryableStorageEntry; + /** + * The hashes of the active proposals. + **/ + proposals: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Votes on a given proposal, if it is ongoing. + **/ + voting: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable>, + [H256] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + technicalCommitteeMembership: { + /** + * The current membership, stored as an ordered Vec. + **/ + members: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The current prime member, if one exists. + **/ + prime: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + teeracle: { + /** + * Exchange rates chain's cryptocurrency/currency (trading pair) from different sources + **/ + exchangeRates: AugmentedQuery< + ApiType, + ( + arg1: Bytes | string | Uint8Array, + arg2: Bytes | string | Uint8Array + ) => Observable, + [Bytes, Bytes] + > & + QueryableStorageEntry; + oracleData: AugmentedQuery< + ApiType, + (arg1: Bytes | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable, + [Bytes, Bytes] + > & + QueryableStorageEntry; + /** + * whitelist of trusted oracle's releases for different data sources + **/ + whitelists: AugmentedQuery< + ApiType, + (arg: Bytes | string | Uint8Array) => Observable>, + [Bytes] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + teerex: { + admin: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + allowSGXDebugMode: AugmentedQuery Observable, []> & QueryableStorageEntry; + enclaveCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + enclaveIndex: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] + > & + QueryableStorageEntry; + enclaveRegistry: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>, + [u64] + > & + QueryableStorageEntry; + executedCalls: AugmentedQuery Observable, [H256]> & + QueryableStorageEntry; + heartbeatTimeout: AugmentedQuery Observable, []> & QueryableStorageEntry; + quotingEnclaveRegistry: AugmentedQuery Observable, []> & + QueryableStorageEntry; + scheduledEnclave: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>, + [u64] + > & + QueryableStorageEntry; + tcbInfo: AugmentedQuery< + ApiType, + (arg: U8aFixed | string | Uint8Array) => Observable, + [U8aFixed] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + timestamp: { + /** + * Did the timestamp get updated in this block? + **/ + didUpdate: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Current time for the current block. + **/ + now: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + tips: { + /** + * Simple preimage lookup from the reason's hash to the original data. Again, has an + * insecure enumerable hash since the key is guaranteed to be the result of a secure hash. + **/ + reasons: AugmentedQuery Observable>, [H256]> & + QueryableStorageEntry; + /** + * TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value. + * This has the insecure enumerable hash function since the key itself is already + * guaranteed to be a secure hash. + **/ + tips: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable>, + [H256] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + tokens: { + /** + * The balance of a token type under an account. + * + * NOTE: If the total is ever zero, decrease account ref account. + * + * NOTE: This is only used in the case that this module is used to store + * balances. + **/ + accounts: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: u128 | AnyNumber | Uint8Array + ) => Observable, + [AccountId32, u128] + > & + QueryableStorageEntry; + /** + * Any liquidity locks of a token type under an account. + * NOTE: Should only be accessed when setting, changing and freeing a lock. + **/ + locks: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: u128 | AnyNumber | Uint8Array + ) => Observable>, + [AccountId32, u128] + > & + QueryableStorageEntry; + /** + * Named reserves on some account balances. + **/ + reserves: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: u128 | AnyNumber | Uint8Array + ) => Observable>, + [AccountId32, u128] + > & + QueryableStorageEntry; + /** + * The total issuance of a token type. + **/ + totalIssuance: AugmentedQuery Observable, [u128]> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + transactionPayment: { + nextFeeMultiplier: AugmentedQuery Observable, []> & QueryableStorageEntry; + storageVersion: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + treasury: { + /** + * Proposal indices that have been approved but not yet awarded. + **/ + approvals: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The amount which has been reported as inactive to Currency. + **/ + deactivated: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Number of proposals that have been made. + **/ + proposalCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Proposals that have been made. + **/ + proposals: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + vcManagement: { + admin: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + schemaRegistry: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>, + [u64] + > & + QueryableStorageEntry; + schemaRegistryIndex: AugmentedQuery Observable, []> & + QueryableStorageEntry; + vcRegistry: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable>, + [H256] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + vcmpExtrinsicWhitelist: { + groupControlOn: AugmentedQuery Observable, []> & QueryableStorageEntry; + groupMembers: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + vesting: { + /** + * Storage version of the pallet. + * + * New networks start with latest version, as determined by the genesis build. + **/ + storageVersion: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Information regarding the vesting of a given account. + **/ + vesting: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + xcmpQueue: { + /** + * Counter for the related counted storage map + **/ + counterForOverweight: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Inbound aggregate XCMP messages. It can only be one per ParaId/block. + **/ + inboundXcmpMessages: AugmentedQuery< + ApiType, + (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable, + [u32, u32] + > & + QueryableStorageEntry; + /** + * Status of the inbound XCMP channels. + **/ + inboundXcmpStatus: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * The messages outbound in a given XCMP channel. + **/ + outboundXcmpMessages: AugmentedQuery< + ApiType, + (arg1: u32 | AnyNumber | Uint8Array, arg2: u16 | AnyNumber | Uint8Array) => Observable, + [u32, u16] + > & + QueryableStorageEntry; + /** + * The non-empty XCMP channels in order of becoming non-empty, and the index of the first + * and last outbound message. If the two indices are equal, then it indicates an empty + * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater + * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in + * case of the need to send a high-priority signal message this block. + * The bool is true if there is a signal message waiting to be sent. + **/ + outboundXcmpStatus: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * The messages that exceeded max individual message weight budget. + * + * These message stay in this storage map until they are manually dispatched via + * `service_overweight`. + **/ + overweight: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>>, + [u64] + > & + QueryableStorageEntry; + /** + * The number of overweight messages ever recorded in `Overweight`. Also doubles as the next + * available free overweight index. + **/ + overweightCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The configuration which controls the dynamics of the outbound queue. + **/ + queueConfig: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Whether or not the XCMP queue is suspended from executing incoming XCMs or not. + **/ + queueSuspended: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Any signal messages waiting to be sent. + **/ + signalMessages: AugmentedQuery Observable, [u32]> & + QueryableStorageEntry; /** * Generic query **/ diff --git a/tee-worker/ts-tests/interfaces/augment-api-runtime.ts b/tee-worker/ts-tests/interfaces/augment-api-runtime.ts index 1ca68a9593..96aca8e013 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-runtime.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-runtime.ts @@ -6,17 +6,116 @@ import '@polkadot/api-base/types/calls'; import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types'; -import type { Null } from '@polkadot/types-codec'; +import type { Bytes, Null, Option, Vec, u32 } from '@polkadot/types-codec'; +import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; +import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder'; +import type { BlockHash } from '@polkadot/types/interfaces/chain'; +import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; +import type { CollationInfo } from '@polkadot/types/interfaces/cumulus'; +import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata'; -import type { Block, Header } from '@polkadot/types/interfaces/runtime'; +import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; +import type { + AccountId, + Balance, + Block, + Header, + Index, + KeyTypeId, + SlotDuration, + Weight, +} from '@polkadot/types/interfaces/runtime'; import type { RuntimeVersion } from '@polkadot/types/interfaces/state'; -import type { Observable } from '@polkadot/types/types'; +import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system'; +import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue'; +import type { IExtrinsic, Observable } from '@polkadot/types/types'; export type __AugmentedCall = AugmentedCall; export type __DecoratedCallBase = DecoratedCallBase; declare module '@polkadot/api-base/types/calls' { interface AugmentedCalls { + /** 0xbc9d89904f5b923f/1 */ + accountNonceApi: { + /** + * The API to query account nonce (aka transaction index) + **/ + accountNonce: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xdd718d5cc53262d4/1 */ + auraApi: { + /** + * Return the current set of authorities. + **/ + authorities: AugmentedCall Observable>>; + /** + * Returns the slot duration for Aura. + **/ + slotDuration: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x40fe3ad401f8959a/6 */ + blockBuilder: { + /** + * Apply the given extrinsic. + **/ + applyExtrinsic: AugmentedCall< + ApiType, + (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable + >; + /** + * Check that the inherents are valid. + **/ + checkInherents: AugmentedCall< + ApiType, + ( + block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, + data: InherentData | { data?: any } | string | Uint8Array + ) => Observable + >; + /** + * Finish the current block. + **/ + finalizeBlock: AugmentedCall Observable
>; + /** + * Generate inherent extrinsics. + **/ + inherentExtrinsics: AugmentedCall< + ApiType, + (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable> + >; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xea93e3f16f3d6962/2 */ + collectCollationInfo: { + /** + * Collect information about a collation. + **/ + collectCollationInfo: AugmentedCall< + ApiType, + ( + header: + | Header + | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } + | string + | Uint8Array + ) => Observable + >; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; /** 0xdf6acb689907609b/4 */ core: { /** @@ -59,5 +158,102 @@ declare module '@polkadot/api-base/types/calls' { **/ [key: string]: DecoratedCallBase; }; + /** 0xf78b278be53f454c/2 */ + offchainWorkerApi: { + /** + * Starts the off-chain task for given block header. + **/ + offchainWorker: AugmentedCall< + ApiType, + ( + header: + | Header + | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } + | string + | Uint8Array + ) => Observable + >; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xab3c0572291feb8b/1 */ + sessionKeys: { + /** + * Decode the given public session keys. + **/ + decodeSessionKeys: AugmentedCall< + ApiType, + (encoded: Bytes | string | Uint8Array) => Observable>>> + >; + /** + * Generate a set of session keys with optionally using the given seed. + **/ + generateSessionKeys: AugmentedCall< + ApiType, + (seed: Option | null | Uint8Array | Bytes | string) => Observable + >; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xd2bc9897eed08f15/3 */ + taggedTransactionQueue: { + /** + * Validate the transaction. + **/ + validateTransaction: AugmentedCall< + ApiType, + ( + source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, + tx: Extrinsic | IExtrinsic | string | Uint8Array, + blockHash: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x37c8bb1350a9a2a8/3 */ + transactionPaymentApi: { + /** + * The transaction fee details + **/ + queryFeeDetails: AugmentedCall< + ApiType, + ( + uxt: Extrinsic | IExtrinsic | string | Uint8Array, + len: u32 | AnyNumber | Uint8Array + ) => Observable + >; + /** + * The transaction info + **/ + queryInfo: AugmentedCall< + ApiType, + ( + uxt: Extrinsic | IExtrinsic | string | Uint8Array, + len: u32 | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Query the output of the current LengthToFee given some input + **/ + queryLengthToFee: AugmentedCall Observable>; + /** + * Query the output of the current WeightToFee given some input + **/ + queryWeightToFee: AugmentedCall< + ApiType, + (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable + >; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; } // AugmentedCalls } // declare module diff --git a/tee-worker/ts-tests/interfaces/augment-api-tx.ts b/tee-worker/ts-tests/interfaces/augment-api-tx.ts index 7b833f8f26..5277b0979a 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-tx.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-tx.ts @@ -11,10 +11,54 @@ import type { SubmittableExtrinsic, SubmittableExtrinsicFunction, } from '@polkadot/api-base/types'; -import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec'; +import type { Data } from '@polkadot/types'; +import type { + Bytes, + Compact, + Option, + Struct, + U8aFixed, + Vec, + bool, + u128, + u16, + u32, + u64, + u8, +} from '@polkadot/types-codec'; import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; -import type { AccountId32, Call, MultiAddress } from '@polkadot/types/interfaces/runtime'; -import type { LitentryPrimitivesIdentity, SpRuntimeHeader, SpWeightsWeightV2Weight } from '@polkadot/types/lookup'; +import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; +import type { + CorePrimitivesAssertion, + CorePrimitivesErrorImpError, + CorePrimitivesErrorVcmpError, + CorePrimitivesKeyAesOutput, + CumulusPrimitivesParachainInherentParachainInherentData, + FrameSupportPreimagesBounded, + PalletAssetManagerAssetMetadata, + PalletDemocracyConviction, + PalletDemocracyMetadataOwner, + PalletDemocracyVoteAccountVote, + PalletExtrinsicFilterOperationalMode, + PalletIdentityBitFlags, + PalletIdentityIdentityInfo, + PalletIdentityJudgement, + PalletMultisigTimepoint, + PalletVestingVestingInfo, + RococoParachainRuntimeOriginCaller, + RococoParachainRuntimeProxyType, + RococoParachainRuntimeSessionKeys, + RuntimeCommonXcmImplCurrencyId, + SpWeightsWeightV2Weight, + SubstrateFixedFixedU64, + TeerexPrimitivesRequest, + XcmV3MultiLocation, + XcmV3WeightLimit, + XcmVersionedMultiAsset, + XcmVersionedMultiAssets, + XcmVersionedMultiLocation, + XcmVersionedXcm, +} from '@polkadot/types/lookup'; export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>; export type __SubmittableExtrinsic = SubmittableExtrinsic; @@ -22,6 +66,97 @@ export type __SubmittableExtrinsicFunction = Submittab declare module '@polkadot/api-base/types/submittable' { interface AugmentedSubmittables { + assetManager: { + /** + * Add the xcm type mapping for a existing assetId, other assetType still exists if any. + * TODO: Change add_asset_type with internal function wrapper + **/ + addAssetType: AugmentedSubmittable< + ( + assetId: u128 | AnyNumber | Uint8Array, + newAssetType: + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [u128, RuntimeCommonXcmImplCurrencyId] + >; + /** + * Register new asset with the asset manager + * TODO::Reserve native token multilocation through GenesisBuild/RuntimeUpgrade + * TODO::Add Multilocation filter for register + **/ + registerForeignAssetType: AugmentedSubmittable< + ( + assetType: + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array, + metadata: + | PalletAssetManagerAssetMetadata + | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any; isFrozen?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [RuntimeCommonXcmImplCurrencyId, PalletAssetManagerAssetMetadata] + >; + /** + * We do not allow the destroy of asset id so far; So at least one AssetTpye should be + * assigned to existing AssetId Both asset_type and potential new_default_asset_type must + * be an existing relation with asset_id + * TODO: Change remove_asset_type with internal function wrapper + **/ + removeAssetType: AugmentedSubmittable< + ( + assetType: + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array, + newDefaultAssetType: + | Option + | null + | Uint8Array + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + ) => SubmittableExtrinsic, + [RuntimeCommonXcmImplCurrencyId, Option] + >; + /** + * Change the amount of units we are charging per execution second + * for a given ForeignAssetType + * 0 means not support + **/ + setAssetUnitsPerSecond: AugmentedSubmittable< + ( + assetId: u128 | AnyNumber | Uint8Array, + unitsPerSecond: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [u128, u128] + >; + updateForeignAssetMetadata: AugmentedSubmittable< + ( + assetId: u128 | AnyNumber | Uint8Array, + metadata: + | PalletAssetManagerAssetMetadata + | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any; isFrozen?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [u128, PalletAssetManagerAssetMetadata] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; balances: { /** * Exactly as `transfer`, except the origin must be root and the source account may be @@ -200,119 +335,49 @@ declare module '@polkadot/api-base/types/submittable' { **/ [key: string]: SubmittableExtrinsicFunction; }; - identityManagement: { - createIdentity: AugmentedSubmittable< - ( - who: AccountId32 | string | Uint8Array, - identity: - | LitentryPrimitivesIdentity - | { Substrate: any } - | { Evm: any } - | { Web2: any } - | string - | Uint8Array, - metadata: Option | null | Uint8Array | Bytes | string, - creationRequestBlock: u32 | AnyNumber | Uint8Array, - parentSs58Prefix: u16 | AnyNumber | Uint8Array - ) => SubmittableExtrinsic, - [AccountId32, LitentryPrimitivesIdentity, Option, u32, u16] - >; - removeChallengeCode: AugmentedSubmittable< - ( - who: AccountId32 | string | Uint8Array, - identity: - | LitentryPrimitivesIdentity - | { Substrate: any } - | { Evm: any } - | { Web2: any } - | string - | Uint8Array - ) => SubmittableExtrinsic, - [AccountId32, LitentryPrimitivesIdentity] - >; - removeIdentity: AugmentedSubmittable< - ( - who: AccountId32 | string | Uint8Array, - identity: - | LitentryPrimitivesIdentity - | { Substrate: any } - | { Evm: any } - | { Web2: any } - | string - | Uint8Array - ) => SubmittableExtrinsic, - [AccountId32, LitentryPrimitivesIdentity] - >; - setChallengeCode: AugmentedSubmittable< - ( - who: AccountId32 | string | Uint8Array, - identity: - | LitentryPrimitivesIdentity - | { Substrate: any } - | { Evm: any } - | { Web2: any } - | string - | Uint8Array, - code: U8aFixed | string | Uint8Array - ) => SubmittableExtrinsic, - [AccountId32, LitentryPrimitivesIdentity, U8aFixed] - >; - setUserShieldingKey: AugmentedSubmittable< - ( - who: AccountId32 | string | Uint8Array, - key: U8aFixed | string | Uint8Array, - parentSs58Prefix: u16 | AnyNumber | Uint8Array - ) => SubmittableExtrinsic, - [AccountId32, U8aFixed, u16] - >; - verifyIdentity: AugmentedSubmittable< - ( - who: AccountId32 | string | Uint8Array, - identity: - | LitentryPrimitivesIdentity - | { Substrate: any } - | { Evm: any } - | { Web2: any } - | string - | Uint8Array, - verificationRequestBlock: u32 | AnyNumber | Uint8Array - ) => SubmittableExtrinsic, - [AccountId32, LitentryPrimitivesIdentity, u32] - >; + bounties: { /** - * Generic tx + * Accept the curator role for a bounty. + * A deposit will be reserved from curator and refund upon successful payout. + * + * May only be called from the curator. + * + * ## Complexity + * - O(1). **/ - [key: string]: SubmittableExtrinsicFunction; - }; - parentchain: { - setBlock: AugmentedSubmittable< - ( - header: - | SpRuntimeHeader - | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } - | string - | Uint8Array - ) => SubmittableExtrinsic, - [SpRuntimeHeader] + acceptCurator: AugmentedSubmittable< + (bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] >; /** - * Generic tx + * Approve a bounty proposal. At a later time, the bounty will be funded and become active + * and the original deposit will be returned. + * + * May only be called from `T::SpendOrigin`. + * + * ## Complexity + * - O(1). **/ - [key: string]: SubmittableExtrinsicFunction; - }; - sudo: { + approveBounty: AugmentedSubmittable< + (bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; /** - * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo - * key. + * Award bounty to a beneficiary account. The beneficiary will be able to claim the funds + * after a delay. * - * The dispatch origin for this call must be _Signed_. + * The dispatch origin for this call must be the curator of this bounty. + * + * - `bounty_id`: Bounty ID to award. + * - `beneficiary`: The beneficiary account whom will receive the payout. * * ## Complexity * - O(1). **/ - setKey: AugmentedSubmittable< + awardBounty: AugmentedSubmittable< ( - updated: + bountyId: Compact | AnyNumber | Uint8Array, + beneficiary: | MultiAddress | { Id: any } | { Index: any } @@ -322,32 +387,88 @@ declare module '@polkadot/api-base/types/submittable' { | string | Uint8Array ) => SubmittableExtrinsic, - [MultiAddress] + [Compact, MultiAddress] >; /** - * Authenticates the sudo key and dispatches a function call with `Root` origin. + * Claim the payout from an awarded bounty after payout delay. * - * The dispatch origin for this call must be _Signed_. + * The dispatch origin for this call must be the beneficiary of this bounty. + * + * - `bounty_id`: Bounty ID to claim. * * ## Complexity * - O(1). **/ - sudo: AugmentedSubmittable< - (call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, - [Call] + claimBounty: AugmentedSubmittable< + (bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] >; /** - * Authenticates the sudo key and dispatches a function call with `Signed` origin from - * a given account. + * Cancel a proposed or active bounty. All the funds will be sent to treasury and + * the curator deposit will be unreserved if possible. + * + * Only `T::RejectOrigin` is able to cancel a bounty. + * + * - `bounty_id`: Bounty ID to cancel. + * + * ## Complexity + * - O(1). + **/ + closeBounty: AugmentedSubmittable< + (bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Extend the expiry time of an active bounty. + * + * The dispatch origin for this call must be the curator of this bounty. + * + * - `bounty_id`: Bounty ID to extend. + * - `remark`: additional information. + * + * ## Complexity + * - O(1). + **/ + extendBountyExpiry: AugmentedSubmittable< + ( + bountyId: Compact | AnyNumber | Uint8Array, + remark: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Compact, Bytes] + >; + /** + * Propose a new bounty. * * The dispatch origin for this call must be _Signed_. * + * Payment: `TipReportDepositBase` will be reserved from the origin account, as well as + * `DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval, + * or slashed when rejected. + * + * - `curator`: The curator account whom will manage this bounty. + * - `fee`: The curator fee. + * - `value`: The total payment amount of this bounty, curator fee included. + * - `description`: The description of this bounty. + **/ + proposeBounty: AugmentedSubmittable< + ( + value: Compact | AnyNumber | Uint8Array, + description: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Compact, Bytes] + >; + /** + * Assign a curator to a funded bounty. + * + * May only be called from `T::SpendOrigin`. + * * ## Complexity * - O(1). **/ - sudoAs: AugmentedSubmittable< + proposeCurator: AugmentedSubmittable< ( - who: + bountyId: Compact | AnyNumber | Uint8Array, + curator: | MultiAddress | { Id: any } | { Index: any } @@ -356,132 +477,4912 @@ declare module '@polkadot/api-base/types/submittable' { | { Address20: any } | string | Uint8Array, - call: Call | IMethod | string | Uint8Array + fee: Compact | AnyNumber | Uint8Array ) => SubmittableExtrinsic, - [MultiAddress, Call] + [Compact, MultiAddress, Compact] >; /** - * Authenticates the sudo key and dispatches a function call with `Root` origin. - * This function does not check the weight of the call, and instead allows the - * Sudo user to specify the weight of the call. + * Unassign curator from a bounty. * - * The dispatch origin for this call must be _Signed_. + * This function can only be called by the `RejectOrigin` a signed origin. + * + * If this function is called by the `RejectOrigin`, we assume that the curator is + * malicious or inactive. As a result, we will slash the curator when possible. + * + * If the origin is the curator, we take this as a sign they are unable to do their job and + * they willingly give up. We could slash them, but for now we allow them to recover their + * deposit and exit without issue. (We may want to change this if it is abused.) + * + * Finally, the origin can be anyone if and only if the curator is "inactive". This allows + * anyone in the community to call out that a curator is not doing their due diligence, and + * we should pick a new curator. In this case the curator should also be slashed. * * ## Complexity * - O(1). **/ - sudoUncheckedWeight: AugmentedSubmittable< + unassignCurator: AugmentedSubmittable< + (bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + bridgeTransfer: { + setExternalBalances: AugmentedSubmittable< + (externalBalances: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u128] + >; + setMaximumIssuance: AugmentedSubmittable< + (maximumIssuance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u128] + >; + /** + * Executes a simple currency transfer using the bridge account as the source + **/ + transfer: AugmentedSubmittable< ( - call: Call | IMethod | string | Uint8Array, - weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + to: AccountId32 | string | Uint8Array, + amount: u128 | AnyNumber | Uint8Array, + rid: U8aFixed | string | Uint8Array ) => SubmittableExtrinsic, - [Call, SpWeightsWeightV2Weight] + [AccountId32, u128, U8aFixed] + >; + /** + * Transfers some amount of the native token to some recipient on a (whitelisted) + * destination chain. + **/ + transferNative: AugmentedSubmittable< + ( + amount: u128 | AnyNumber | Uint8Array, + recipient: Bytes | string | Uint8Array, + destId: u8 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [u128, Bytes, u8] >; /** * Generic tx **/ [key: string]: SubmittableExtrinsicFunction; }; - system: { + chainBridge: { /** - * Kill all storage items with a key that starts with the given prefix. + * Commits a vote in favour of the provided proposal. * - * **NOTE:** We rely on the Root origin to provide us the number of subkeys under - * the prefix we are removing to accurately calculate the weight of this function. + * If a proposal with the given nonce and source chain ID does not already exist, it will + * be created with an initial vote in favour from the caller. + * + * # + * - weight of proposed call, regardless of whether execution is performed + * # **/ - killPrefix: AugmentedSubmittable< + acknowledgeProposal: AugmentedSubmittable< ( - prefix: Bytes | string | Uint8Array, - subkeys: u32 | AnyNumber | Uint8Array + nonce: u64 | AnyNumber | Uint8Array, + srcId: u8 | AnyNumber | Uint8Array, + rId: U8aFixed | string | Uint8Array, + call: Call | IMethod | string | Uint8Array ) => SubmittableExtrinsic, - [Bytes, u32] + [u64, u8, U8aFixed, Call] >; /** - * Kill some items from storage. + * Adds a new relayer to the relayer set. + * + * # + * - O(1) lookup and insert + * # **/ - killStorage: AugmentedSubmittable< - (keys: Vec | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic, - [Vec] + addRelayer: AugmentedSubmittable< + (v: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] >; /** - * Make some on-chain remark. + * Evaluate the state of a proposal given the current vote threshold. * - * ## Complexity - * - `O(1)` + * A proposal with enough votes will be either executed or cancelled, and the status + * will be updated accordingly. + * + * # + * - weight of proposed call, regardless of whether execution is performed + * # **/ - remark: AugmentedSubmittable< - (remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, - [Bytes] + evalVoteState: AugmentedSubmittable< + ( + nonce: u64 | AnyNumber | Uint8Array, + srcId: u8 | AnyNumber | Uint8Array, + prop: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [u64, u8, Call] >; /** - * Make some on-chain remark and emit event. + * Commits a vote against a provided proposal. + * + * # + * - Fixed, since execution of proposal should not be included + * # **/ - remarkWithEvent: AugmentedSubmittable< - (remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, - [Bytes] + rejectProposal: AugmentedSubmittable< + ( + nonce: u64 | AnyNumber | Uint8Array, + srcId: u8 | AnyNumber | Uint8Array, + rId: U8aFixed | string | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [u64, u8, U8aFixed, Call] >; /** - * Set the new runtime code. + * Removes an existing relayer from the set. * - * ## Complexity - * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code` + * # + * - O(1) lookup and removal + * # **/ - setCode: AugmentedSubmittable< - (code: Bytes | string | Uint8Array) => SubmittableExtrinsic, - [Bytes] + removeRelayer: AugmentedSubmittable< + (v: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] >; /** - * Set the new runtime code without doing any checks of the given `code`. + * Removes a resource ID from the resource mapping. * - * ## Complexity - * - `O(C)` where `C` length of `code` + * After this call, bridge transfers with the associated resource ID will + * be rejected. + * + * # + * - O(1) removal + * # **/ - setCodeWithoutChecks: AugmentedSubmittable< - (code: Bytes | string | Uint8Array) => SubmittableExtrinsic, - [Bytes] + removeResource: AugmentedSubmittable< + (id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, + [U8aFixed] >; /** - * Set the number of pages in the WebAssembly environment's heap. + * Stores a method name on chain under an associated resource ID. + * + * # + * - O(1) write + * # **/ - setHeapPages: AugmentedSubmittable< - (pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, - [u64] + setResource: AugmentedSubmittable< + ( + id: U8aFixed | string | Uint8Array, + method: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [U8aFixed, Bytes] >; /** - * Set some items of storage. + * Sets the vote threshold for proposals. + * + * This threshold is used to determine how many votes are required + * before a proposal is executed. + * + * # + * - O(1) lookup and insert + * # **/ - setStorage: AugmentedSubmittable< + setThreshold: AugmentedSubmittable< + (threshold: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Change extra bridge transfer fee that user should pay + * + * # + * - O(1) lookup and insert + * # + **/ + updateFee: AugmentedSubmittable< ( - items: Vec> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array][] + destId: u8 | AnyNumber | Uint8Array, + fee: u128 | AnyNumber | Uint8Array ) => SubmittableExtrinsic, - [Vec>] + [u8, u128] + >; + /** + * Enables a chain ID as a source or destination for a bridge transfer. + * + * # + * - O(1) lookup and insert + * # + **/ + whitelistChain: AugmentedSubmittable< + (id: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u8] >; /** * Generic tx **/ [key: string]: SubmittableExtrinsicFunction; }; - timestamp: { + council: { /** - * Set the current time. + * Close a vote that is either approved, disapproved or whose voting period has ended. * - * This call should be invoked exactly once per block. It will panic at the finalization - * phase, if this call hasn't been invoked by that time. + * May be called by any signed account in order to finish voting and close the proposal. * - * The timestamp should be greater than the previous one by the amount specified by - * `MinimumPeriod`. + * If called before the end of the voting period it will only close the vote if it is + * has enough votes to be approved or disapproved. * - * The dispatch origin for this call must be `Inherent`. + * If called after the end of the voting period abstentions are counted as rejections + * unless there is a prime member set and the prime member cast an approval. + * + * If the close operation completes successfully with disapproval, the transaction fee will + * be waived. Otherwise execution of the approved operation will be charged to the caller. + * + * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed + * proposal. + * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via + * `storage::read` so it is `size_of::() == 4` larger than the pure length. * * ## Complexity - * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) - * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in - * `on_finalize`) - * - 1 event handler `on_timestamp_set`. Must be `O(1)`. + * - `O(B + M + P1 + P2)` where: + * - `B` is `proposal` size in bytes (length-fee-bounded) + * - `M` is members-count (code- and governance-bounded) + * - `P1` is the complexity of `proposal` preimage. + * - `P2` is proposal-count (code-bounded) **/ - set: AugmentedSubmittable< - (now: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, - [Compact] + close: AugmentedSubmittable< + ( + proposalHash: H256 | string | Uint8Array, + index: Compact | AnyNumber | Uint8Array, + proposalWeightBound: + | SpWeightsWeightV2Weight + | { refTime?: any; proofSize?: any } + | string + | Uint8Array, + lengthBound: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, Compact, SpWeightsWeightV2Weight, Compact] + >; + /** + * Close a vote that is either approved, disapproved or whose voting period has ended. + * + * May be called by any signed account in order to finish voting and close the proposal. + * + * If called before the end of the voting period it will only close the vote if it is + * has enough votes to be approved or disapproved. + * + * If called after the end of the voting period abstentions are counted as rejections + * unless there is a prime member set and the prime member cast an approval. + * + * If the close operation completes successfully with disapproval, the transaction fee will + * be waived. Otherwise execution of the approved operation will be charged to the caller. + * + * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed + * proposal. + * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via + * `storage::read` so it is `size_of::() == 4` larger than the pure length. + * + * ## Complexity + * - `O(B + M + P1 + P2)` where: + * - `B` is `proposal` size in bytes (length-fee-bounded) + * - `M` is members-count (code- and governance-bounded) + * - `P1` is the complexity of `proposal` preimage. + * - `P2` is proposal-count (code-bounded) + **/ + closeOldWeight: AugmentedSubmittable< + ( + proposalHash: H256 | string | Uint8Array, + index: Compact | AnyNumber | Uint8Array, + proposalWeightBound: Compact | AnyNumber | Uint8Array, + lengthBound: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, Compact, Compact, Compact] + >; + /** + * Disapprove a proposal, close, and remove it from the system, regardless of its current + * state. + * + * Must be called by the Root origin. + * + * Parameters: + * * `proposal_hash`: The hash of the proposal that should be disapproved. + * + * ## Complexity + * O(P) where P is the number of max proposals + **/ + disapproveProposal: AugmentedSubmittable< + (proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + /** + * Dispatch a proposal from a member using the `Member` origin. + * + * Origin must be a member of the collective. + * + * ## Complexity: + * - `O(B + M + P)` where: + * - `B` is `proposal` size in bytes (length-fee-bounded) + * - `M` members-count (code-bounded) + * - `P` complexity of dispatching `proposal` + **/ + execute: AugmentedSubmittable< + ( + proposal: Call | IMethod | string | Uint8Array, + lengthBound: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Call, Compact] + >; + /** + * Add a new proposal to either be voted on or executed directly. + * + * Requires the sender to be member. + * + * `threshold` determines whether `proposal` is executed directly (`threshold < 2`) + * or put up for voting. + * + * ## Complexity + * - `O(B + M + P1)` or `O(B + M + P2)` where: + * - `B` is `proposal` size in bytes (length-fee-bounded) + * - `M` is members-count (code- and governance-bounded) + * - branching is influenced by `threshold` where: + * - `P1` is proposal execution complexity (`threshold < 2`) + * - `P2` is proposals-count (code-bounded) (`threshold >= 2`) + **/ + propose: AugmentedSubmittable< + ( + threshold: Compact | AnyNumber | Uint8Array, + proposal: Call | IMethod | string | Uint8Array, + lengthBound: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Compact, Call, Compact] + >; + /** + * Set the collective's membership. + * + * - `new_members`: The new member list. Be nice to the chain and provide it sorted. + * - `prime`: The prime member whose vote sets the default. + * - `old_count`: The upper bound for the previous number of members in storage. Used for + * weight estimation. + * + * The dispatch of this call must be `SetMembersOrigin`. + * + * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but + * the weight estimations rely on it to estimate dispatchable weight. + * + * # WARNING: + * + * The `pallet-collective` can also be managed by logic outside of the pallet through the + * implementation of the trait [`ChangeMembers`]. + * Any call to `set_members` must be careful that the member set doesn't get out of sync + * with other logic managing the member set. + * + * ## Complexity: + * - `O(MP + N)` where: + * - `M` old-members-count (code- and governance-bounded) + * - `N` new-members-count (code- and governance-bounded) + * - `P` proposals-count (code-bounded) + **/ + setMembers: AugmentedSubmittable< + ( + newMembers: Vec | (AccountId32 | string | Uint8Array)[], + prime: Option | null | Uint8Array | AccountId32 | string, + oldCount: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Vec, Option, u32] + >; + /** + * Add an aye or nay vote for the sender to the given proposal. + * + * Requires the sender to be a member. + * + * Transaction fees will be waived if the member is voting on any particular proposal + * for the first time and the call is successful. Subsequent vote changes will charge a + * fee. + * ## Complexity + * - `O(M)` where `M` is members-count (code- and governance-bounded) + **/ + vote: AugmentedSubmittable< + ( + proposal: H256 | string | Uint8Array, + index: Compact | AnyNumber | Uint8Array, + approve: bool | boolean | Uint8Array + ) => SubmittableExtrinsic, + [H256, Compact, bool] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + councilMembership: { + /** + * Add a member `who` to the set. + * + * May only be called from `T::AddOrigin`. + **/ + addMember: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Swap out the sending member for some other key `new`. + * + * May only be called from `Signed` origin of a current member. + * + * Prime membership is passed from the origin account to `new`, if extant. + **/ + changeKey: AugmentedSubmittable< + ( + updated: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Remove the prime member if it exists. + * + * May only be called from `T::PrimeOrigin`. + **/ + clearPrime: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Remove a member `who` from the set. + * + * May only be called from `T::RemoveOrigin`. + **/ + removeMember: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Change the membership to a new set, disregarding the existing membership. Be nice and + * pass `members` pre-sorted. + * + * May only be called from `T::ResetOrigin`. + **/ + resetMembers: AugmentedSubmittable< + (members: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Set the prime member. Must be a current member. + * + * May only be called from `T::PrimeOrigin`. + **/ + setPrime: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Swap out one member `remove` for another `add`. + * + * May only be called from `T::SwapOrigin`. + * + * Prime membership is *not* passed from `remove` to `add`, if extant. + **/ + swapMember: AugmentedSubmittable< + ( + remove: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + add: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, MultiAddress] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + cumulusXcm: { + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + democracy: { + /** + * Permanently place a proposal into the blacklist. This prevents it from ever being + * proposed again. + * + * If called on a queued public or external proposal, then this will result in it being + * removed. If the `ref_index` supplied is an active referendum with the proposal hash, + * then it will be cancelled. + * + * The dispatch origin of this call must be `BlacklistOrigin`. + * + * - `proposal_hash`: The proposal hash to blacklist permanently. + * - `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be + * cancelled. + * + * Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a + * reasonable value). + **/ + blacklist: AugmentedSubmittable< + ( + proposalHash: H256 | string | Uint8Array, + maybeRefIndex: Option | null | Uint8Array | u32 | AnyNumber + ) => SubmittableExtrinsic, + [H256, Option] + >; + /** + * Remove a proposal. + * + * The dispatch origin of this call must be `CancelProposalOrigin`. + * + * - `prop_index`: The index of the proposal to cancel. + * + * Weight: `O(p)` where `p = PublicProps::::decode_len()` + **/ + cancelProposal: AugmentedSubmittable< + (propIndex: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Remove a referendum. + * + * The dispatch origin of this call must be _Root_. + * + * - `ref_index`: The index of the referendum to cancel. + * + * # Weight: `O(1)`. + **/ + cancelReferendum: AugmentedSubmittable< + (refIndex: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Clears all public proposals. + * + * The dispatch origin of this call must be _Root_. + * + * Weight: `O(1)`. + **/ + clearPublicProposals: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Delegate the voting power (with some given conviction) of the sending account. + * + * The balance delegated is locked for as long as it's delegated, and thereafter for the + * time appropriate for the conviction's lock period. + * + * The dispatch origin of this call must be _Signed_, and the signing account must either: + * - be delegating already; or + * - have no voting activity (if there is, then it will need to be removed/consolidated + * through `reap_vote` or `unvote`). + * + * - `to`: The account whose voting the `target` account's voting power will follow. + * - `conviction`: The conviction that will be attached to the delegated votes. When the + * account is undelegated, the funds will be locked for the corresponding period. + * - `balance`: The amount of the account's balance to be used in delegating. This must not + * be more than the account's current balance. + * + * Emits `Delegated`. + * + * Weight: `O(R)` where R is the number of referendums the voter delegating to has + * voted on. Weight is charged as if maximum votes. + **/ + delegate: AugmentedSubmittable< + ( + to: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + conviction: + | PalletDemocracyConviction + | 'None' + | 'Locked1x' + | 'Locked2x' + | 'Locked3x' + | 'Locked4x' + | 'Locked5x' + | 'Locked6x' + | number + | Uint8Array, + balance: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, PalletDemocracyConviction, u128] + >; + /** + * Schedule an emergency cancellation of a referendum. Cannot happen twice to the same + * referendum. + * + * The dispatch origin of this call must be `CancellationOrigin`. + * + * -`ref_index`: The index of the referendum to cancel. + * + * Weight: `O(1)`. + **/ + emergencyCancel: AugmentedSubmittable< + (refIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Schedule a referendum to be tabled once it is legal to schedule an external + * referendum. + * + * The dispatch origin of this call must be `ExternalOrigin`. + * + * - `proposal_hash`: The preimage hash of the proposal. + **/ + externalPropose: AugmentedSubmittable< + ( + proposal: + | FrameSupportPreimagesBounded + | { Legacy: any } + | { Inline: any } + | { Lookup: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [FrameSupportPreimagesBounded] + >; + /** + * Schedule a negative-turnout-bias referendum to be tabled next once it is legal to + * schedule an external referendum. + * + * The dispatch of this call must be `ExternalDefaultOrigin`. + * + * - `proposal_hash`: The preimage hash of the proposal. + * + * Unlike `external_propose`, blacklisting has no effect on this and it may replace a + * pre-scheduled `external_propose` call. + * + * Weight: `O(1)` + **/ + externalProposeDefault: AugmentedSubmittable< + ( + proposal: + | FrameSupportPreimagesBounded + | { Legacy: any } + | { Inline: any } + | { Lookup: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [FrameSupportPreimagesBounded] + >; + /** + * Schedule a majority-carries referendum to be tabled next once it is legal to schedule + * an external referendum. + * + * The dispatch of this call must be `ExternalMajorityOrigin`. + * + * - `proposal_hash`: The preimage hash of the proposal. + * + * Unlike `external_propose`, blacklisting has no effect on this and it may replace a + * pre-scheduled `external_propose` call. + * + * Weight: `O(1)` + **/ + externalProposeMajority: AugmentedSubmittable< + ( + proposal: + | FrameSupportPreimagesBounded + | { Legacy: any } + | { Inline: any } + | { Lookup: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [FrameSupportPreimagesBounded] + >; + /** + * Schedule the currently externally-proposed majority-carries referendum to be tabled + * immediately. If there is no externally-proposed referendum currently, or if there is one + * but it is not a majority-carries referendum then it fails. + * + * The dispatch of this call must be `FastTrackOrigin`. + * + * - `proposal_hash`: The hash of the current external proposal. + * - `voting_period`: The period that is allowed for voting on this proposal. Increased to + * Must be always greater than zero. + * For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`. + * - `delay`: The number of block after voting has ended in approval and this should be + * enacted. This doesn't have a minimum amount. + * + * Emits `Started`. + * + * Weight: `O(1)` + **/ + fastTrack: AugmentedSubmittable< + ( + proposalHash: H256 | string | Uint8Array, + votingPeriod: u32 | AnyNumber | Uint8Array, + delay: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, u32, u32] + >; + /** + * Propose a sensitive action to be taken. + * + * The dispatch origin of this call must be _Signed_ and the sender must + * have funds to cover the deposit. + * + * - `proposal_hash`: The hash of the proposal preimage. + * - `value`: The amount of deposit (must be at least `MinimumDeposit`). + * + * Emits `Proposed`. + **/ + propose: AugmentedSubmittable< + ( + proposal: + | FrameSupportPreimagesBounded + | { Legacy: any } + | { Inline: any } + | { Lookup: any } + | string + | Uint8Array, + value: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [FrameSupportPreimagesBounded, Compact] + >; + /** + * Remove a vote for a referendum. + * + * If the `target` is equal to the signer, then this function is exactly equivalent to + * `remove_vote`. If not equal to the signer, then the vote must have expired, + * either because the referendum was cancelled, because the voter lost the referendum or + * because the conviction period is over. + * + * The dispatch origin of this call must be _Signed_. + * + * - `target`: The account of the vote to be removed; this account must have voted for + * referendum `index`. + * - `index`: The index of referendum of the vote to be removed. + * + * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on. + * Weight is calculated for the maximum number of vote. + **/ + removeOtherVote: AugmentedSubmittable< + ( + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + index: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, u32] + >; + /** + * Remove a vote for a referendum. + * + * If: + * - the referendum was cancelled, or + * - the referendum is ongoing, or + * - the referendum has ended such that + * - the vote of the account was in opposition to the result; or + * - there was no conviction to the account's vote; or + * - the account made a split vote + * ...then the vote is removed cleanly and a following call to `unlock` may result in more + * funds being available. + * + * If, however, the referendum has ended and: + * - it finished corresponding to the vote of the account, and + * - the account made a standard vote with conviction, and + * - the lock period of the conviction is not over + * ...then the lock will be aggregated into the overall account's lock, which may involve + * *overlocking* (where the two locks are combined into a single lock that is the maximum + * of both the amount locked and the time is it locked for). + * + * The dispatch origin of this call must be _Signed_, and the signer must have a vote + * registered for referendum `index`. + * + * - `index`: The index of referendum of the vote to be removed. + * + * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on. + * Weight is calculated for the maximum number of vote. + **/ + removeVote: AugmentedSubmittable< + (index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Signals agreement with a particular proposal. + * + * The dispatch origin of this call must be _Signed_ and the sender + * must have funds to cover the deposit, equal to the original deposit. + * + * - `proposal`: The index of the proposal to second. + **/ + second: AugmentedSubmittable< + (proposal: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Set or clear a metadata of a proposal or a referendum. + * + * Parameters: + * - `origin`: Must correspond to the `MetadataOwner`. + * - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove` + * threshold. + * - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst` + * threshold. + * - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority` + * threshold. + * - `Signed` by a creator for a public proposal. + * - `Signed` to clear a metadata for a finished referendum. + * - `Root` to set a metadata for an ongoing referendum. + * - `owner`: an identifier of a metadata owner. + * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata. + **/ + setMetadata: AugmentedSubmittable< + ( + owner: + | PalletDemocracyMetadataOwner + | { External: any } + | { Proposal: any } + | { Referendum: any } + | string + | Uint8Array, + maybeHash: Option | null | Uint8Array | H256 | string + ) => SubmittableExtrinsic, + [PalletDemocracyMetadataOwner, Option] + >; + /** + * Undelegate the voting power of the sending account. + * + * Tokens may be unlocked following once an amount of time consistent with the lock period + * of the conviction with which the delegation was issued. + * + * The dispatch origin of this call must be _Signed_ and the signing account must be + * currently delegating. + * + * Emits `Undelegated`. + * + * Weight: `O(R)` where R is the number of referendums the voter delegating to has + * voted on. Weight is charged as if maximum votes. + **/ + undelegate: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Unlock tokens that have an expired lock. + * + * The dispatch origin of this call must be _Signed_. + * + * - `target`: The account to remove the lock on. + * + * Weight: `O(R)` with R number of vote of target. + **/ + unlock: AugmentedSubmittable< + ( + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Veto and blacklist the external proposal hash. + * + * The dispatch origin of this call must be `VetoOrigin`. + * + * - `proposal_hash`: The preimage hash of the proposal to veto and blacklist. + * + * Emits `Vetoed`. + * + * Weight: `O(V + log(V))` where V is number of `existing vetoers` + **/ + vetoExternal: AugmentedSubmittable< + (proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + /** + * Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal; + * otherwise it is a vote to keep the status quo. + * + * The dispatch origin of this call must be _Signed_. + * + * - `ref_index`: The index of the referendum to vote for. + * - `vote`: The vote configuration. + **/ + vote: AugmentedSubmittable< + ( + refIndex: Compact | AnyNumber | Uint8Array, + vote: PalletDemocracyVoteAccountVote | { Standard: any } | { Split: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [Compact, PalletDemocracyVoteAccountVote] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + dmpQueue: { + /** + * Service a single overweight message. + **/ + serviceOverweight: AugmentedSubmittable< + ( + index: u64 | AnyNumber | Uint8Array, + weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [u64, SpWeightsWeightV2Weight] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + drop3: { + /** + * Approve a RewardPool proposal, must be called from admin + **/ + approveRewardPool: AugmentedSubmittable< + (id: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Close a reward pool, can be called by admin or reward pool owner + * + * Note here `approved` state is not required, which gives the owner a + * chance to close it before the admin evaluates the proposal + **/ + closeRewardPool: AugmentedSubmittable< + (id: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Create a RewardPool proposal, can be called by any signed account + **/ + proposeRewardPool: AugmentedSubmittable< + ( + name: Bytes | string | Uint8Array, + total: u128 | AnyNumber | Uint8Array, + startAt: u32 | AnyNumber | Uint8Array, + endAt: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, u128, u32, u32] + >; + /** + * Reject a RewardPool proposal, must be called from admin + **/ + rejectRewardPool: AugmentedSubmittable< + (id: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * transfer an amount of reserved balance to some other user + * must be called by reward pool owner + * TODO: + * `repatriate_reserved()` requires that the destination account is active + * otherwise `DeadAccount` error is returned. Is it OK in our case? + **/ + sendReward: AugmentedSubmittable< + ( + id: u64 | AnyNumber | Uint8Array, + to: AccountId32 | string | Uint8Array, + amount: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [u64, AccountId32, u128] + >; + /** + * Change the admin account + * similar to sudo.set_key, the old account will be supplied in event + **/ + setAdmin: AugmentedSubmittable< + (updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Start a reward pool, can be called by admin or reward pool owner + **/ + startRewardPool: AugmentedSubmittable< + (id: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Stop a reward pool, can be called by admin or reward pool owner + **/ + stopRewardPool: AugmentedSubmittable< + (id: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + extrinsicFilter: { + /** + * block the given extrinsics + * (pallet_name_bytes, function_name_bytes) can uniquely identify an extrinsic + * if function_name_bytes is None, all extrinsics in `pallet_name_bytes` will be blocked + **/ + blockExtrinsics: AugmentedSubmittable< + ( + palletNameBytes: Bytes | string | Uint8Array, + functionNameBytes: Option | null | Uint8Array | Bytes | string + ) => SubmittableExtrinsic, + [Bytes, Option] + >; + /** + * Set the mode + * + * The storage of `BlockedExtrinsics` is unaffected. + * The reason is we'd rather have this pallet behave conservatively: + * having extra blocked extrinsics is better than having unexpected whitelisted extrinsics. + * See the test `set_mode_should_not_clear_blocked_extrinsics()` + * + * Weights should be 2 DB writes: 1 for mode and 1 for event + **/ + setMode: AugmentedSubmittable< + ( + mode: PalletExtrinsicFilterOperationalMode | 'Normal' | 'Safe' | 'Test' | number | Uint8Array + ) => SubmittableExtrinsic, + [PalletExtrinsicFilterOperationalMode] + >; + /** + * unblock the given extrinsics + * (pallet_name_bytes, function_name_bytes) can uniquely identify an extrinsic + * if function_name_bytes is None, all extrinsics in `pallet_name_bytes` will be unblocked + **/ + unblockExtrinsics: AugmentedSubmittable< + ( + palletNameBytes: Bytes | string | Uint8Array, + functionNameBytes: Option | null | Uint8Array | Bytes | string + ) => SubmittableExtrinsic, + [Bytes, Option] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + identityManagement: { + /** + * add an account to the delegatees + **/ + addDelegatee: AugmentedSubmittable< + (account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Create an identity + * We do the origin check for this extrinsic, it has to be + * - either the caller him/herself, i.e. ensure_signed(origin)? == who + * - or from a delegatee in the list + **/ + createIdentity: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + user: AccountId32 | string | Uint8Array, + encryptedIdentity: Bytes | string | Uint8Array, + encryptedMetadata: Option | null | Uint8Array | Bytes | string + ) => SubmittableExtrinsic, + [H256, AccountId32, Bytes, Option] + >; + identityCreated: AugmentedSubmittable< + ( + account: AccountId32 | string | Uint8Array, + identity: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + code: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, CorePrimitivesKeyAesOutput, H256] + >; + identityRemoved: AugmentedSubmittable< + ( + account: AccountId32 | string | Uint8Array, + identity: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, H256] + >; + identityVerified: AugmentedSubmittable< + ( + account: AccountId32 | string | Uint8Array, + identity: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + idGraph: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, CorePrimitivesKeyAesOutput, H256] + >; + /** + * remove an account from the delegatees + **/ + removeDelegatee: AugmentedSubmittable< + (account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Remove an identity + **/ + removeIdentity: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + encryptedIdentity: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, Bytes] + >; + /** + * Set or update user's shielding key + **/ + setUserShieldingKey: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + encryptedKey: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, Bytes] + >; + someError: AugmentedSubmittable< + ( + account: Option | null | Uint8Array | AccountId32 | string, + error: + | CorePrimitivesErrorImpError + | { SetUserShieldingKeyFailed: any } + | { CreateIdentityFailed: any } + | { RemoveIdentityFailed: any } + | { VerifyIdentityFailed: any } + | { ImportScheduledEnclaveFailed: any } + | { UnclassifiedError: any } + | string + | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [Option, CorePrimitivesErrorImpError, H256] + >; + /** + * --------------------------------------------------- + * The following extrinsics are supposed to be called by TEE only + * --------------------------------------------------- + **/ + userShieldingKeySet: AugmentedSubmittable< + ( + account: AccountId32 | string | Uint8Array, + idGraph: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, H256] + >; + /** + * Verify an identity + **/ + verifyIdentity: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + encryptedIdentity: Bytes | string | Uint8Array, + encryptedValidationData: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, Bytes, Bytes] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + identityManagementMock: { + /** + * add an account to the delegatees + **/ + addDelegatee: AugmentedSubmittable< + (account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Create an identity + **/ + createIdentity: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + user: AccountId32 | string | Uint8Array, + encryptedIdentity: Bytes | string | Uint8Array, + encryptedMetadata: Option | null | Uint8Array | Bytes | string + ) => SubmittableExtrinsic, + [H256, AccountId32, Bytes, Option] + >; + identityCreated: AugmentedSubmittable< + ( + account: AccountId32 | string | Uint8Array, + identity: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + code: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + idGraph: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, CorePrimitivesKeyAesOutput, CorePrimitivesKeyAesOutput] + >; + identityRemoved: AugmentedSubmittable< + ( + account: AccountId32 | string | Uint8Array, + identity: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + idGraph: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, CorePrimitivesKeyAesOutput] + >; + identityVerified: AugmentedSubmittable< + ( + account: AccountId32 | string | Uint8Array, + identity: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + idGraph: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, CorePrimitivesKeyAesOutput] + >; + /** + * remove an account from the delegatees + **/ + removeDelegatee: AugmentedSubmittable< + (account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Remove an identity + **/ + removeIdentity: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + encryptedIdentity: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, Bytes] + >; + /** + * Set or update user's shielding key + **/ + setUserShieldingKey: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + encryptedKey: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, Bytes] + >; + someError: AugmentedSubmittable< + ( + func: Bytes | string | Uint8Array, + error: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, Bytes] + >; + userShieldingKeySet: AugmentedSubmittable< + (account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Verify a created identity + **/ + verifyIdentity: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + encryptedIdentity: Bytes | string | Uint8Array, + encryptedValidationData: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, Bytes, Bytes] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + impExtrinsicWhitelist: { + /** + * Adds a new group member + **/ + addGroupMember: AugmentedSubmittable< + (v: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Batch adding of new group members + **/ + batchAddGroupMembers: AugmentedSubmittable< + (vs: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Batch Removing existing group members + **/ + batchRemoveGroupMembers: AugmentedSubmittable< + (vs: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Removes an existing group members + **/ + removeGroupMember: AugmentedSubmittable< + (v: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Swith GroupControlOn off + **/ + switchGroupControlOff: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Swith GroupControlOn on + **/ + switchGroupControlOn: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + multisig: { + /** + * Register approval for a dispatch to be made from a deterministic composite account if + * approved by a total of `threshold - 1` of `other_signatories`. + * + * Payment: `DepositBase` will be reserved if this is the first approval, plus + * `threshold` times `DepositFactor`. It is returned once this dispatch happens or + * is cancelled. + * + * The dispatch origin for this call must be _Signed_. + * + * - `threshold`: The total number of approvals for this dispatch before it is executed. + * - `other_signatories`: The accounts (other than the sender) who can approve this + * dispatch. May not be empty. + * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is + * not the first approval, then it must be `Some`, with the timepoint (block number and + * transaction index) of the first approval transaction. + * - `call_hash`: The hash of the call to be executed. + * + * NOTE: If this is the final approval, you will want to use `as_multi` instead. + * + * ## Complexity + * - `O(S)`. + * - Up to one balance-reserve or unreserve operation. + * - One passthrough operation, one insert, both `O(S)` where `S` is the number of + * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. + * - One encode & hash, both of complexity `O(S)`. + * - Up to one binary search and insert (`O(logS + S)`). + * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. + * - One event. + * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit + * taken for its lifetime of `DepositBase + threshold * DepositFactor`. + **/ + approveAsMulti: AugmentedSubmittable< + ( + threshold: u16 | AnyNumber | Uint8Array, + otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], + maybeTimepoint: + | Option + | null + | Uint8Array + | PalletMultisigTimepoint + | { height?: any; index?: any } + | string, + callHash: U8aFixed | string | Uint8Array, + maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [u16, Vec, Option, U8aFixed, SpWeightsWeightV2Weight] + >; + /** + * Register approval for a dispatch to be made from a deterministic composite account if + * approved by a total of `threshold - 1` of `other_signatories`. + * + * If there are enough, then dispatch the call. + * + * Payment: `DepositBase` will be reserved if this is the first approval, plus + * `threshold` times `DepositFactor`. It is returned once this dispatch happens or + * is cancelled. + * + * The dispatch origin for this call must be _Signed_. + * + * - `threshold`: The total number of approvals for this dispatch before it is executed. + * - `other_signatories`: The accounts (other than the sender) who can approve this + * dispatch. May not be empty. + * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is + * not the first approval, then it must be `Some`, with the timepoint (block number and + * transaction index) of the first approval transaction. + * - `call`: The call to be executed. + * + * NOTE: Unless this is the final approval, you will generally want to use + * `approve_as_multi` instead, since it only requires a hash of the call. + * + * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise + * on success, result is `Ok` and the result from the interior call, if it was executed, + * may be found in the deposited `MultisigExecuted` event. + * + * ## Complexity + * - `O(S + Z + Call)`. + * - Up to one balance-reserve or unreserve operation. + * - One passthrough operation, one insert, both `O(S)` where `S` is the number of + * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. + * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. + * - One encode & hash, both of complexity `O(S)`. + * - Up to one binary search and insert (`O(logS + S)`). + * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. + * - One event. + * - The weight of the `call`. + * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit + * taken for its lifetime of `DepositBase + threshold * DepositFactor`. + **/ + asMulti: AugmentedSubmittable< + ( + threshold: u16 | AnyNumber | Uint8Array, + otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], + maybeTimepoint: + | Option + | null + | Uint8Array + | PalletMultisigTimepoint + | { height?: any; index?: any } + | string, + call: Call | IMethod | string | Uint8Array, + maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [u16, Vec, Option, Call, SpWeightsWeightV2Weight] + >; + /** + * Immediately dispatch a multi-signature call using a single approval from the caller. + * + * The dispatch origin for this call must be _Signed_. + * + * - `other_signatories`: The accounts (other than the sender) who are part of the + * multi-signature, but do not participate in the approval process. + * - `call`: The call to be executed. + * + * Result is equivalent to the dispatched result. + * + * ## Complexity + * O(Z + C) where Z is the length of the call and C its execution weight. + **/ + asMultiThreshold1: AugmentedSubmittable< + ( + otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [Vec, Call] + >; + /** + * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously + * for this operation will be unreserved on success. + * + * The dispatch origin for this call must be _Signed_. + * + * - `threshold`: The total number of approvals for this dispatch before it is executed. + * - `other_signatories`: The accounts (other than the sender) who can approve this + * dispatch. May not be empty. + * - `timepoint`: The timepoint (block number and transaction index) of the first approval + * transaction for this dispatch. + * - `call_hash`: The hash of the call to be executed. + * + * ## Complexity + * - `O(S)`. + * - Up to one balance-reserve or unreserve operation. + * - One passthrough operation, one insert, both `O(S)` where `S` is the number of + * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. + * - One encode & hash, both of complexity `O(S)`. + * - One event. + * - I/O: 1 read `O(S)`, one remove. + * - Storage: removes one item. + **/ + cancelAsMulti: AugmentedSubmittable< + ( + threshold: u16 | AnyNumber | Uint8Array, + otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], + timepoint: PalletMultisigTimepoint | { height?: any; index?: any } | string | Uint8Array, + callHash: U8aFixed | string | Uint8Array + ) => SubmittableExtrinsic, + [u16, Vec, PalletMultisigTimepoint, U8aFixed] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + parachainIdentity: { + /** + * Add a registrar to the system. + * + * The dispatch origin for this call must be `T::RegistrarOrigin`. + * + * - `account`: the account of the registrar. + * + * Emits `RegistrarAdded` if successful. + * + * ## Complexity + * - `O(R)` where `R` registrar-count (governance-bounded and code-bounded). + **/ + addRegistrar: AugmentedSubmittable< + ( + account: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Add the given account to the sender's subs. + * + * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated + * to the sender. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a registered + * sub identity of `sub`. + **/ + addSub: AugmentedSubmittable< + ( + sub: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + data: + | Data + | { None: any } + | { Raw: any } + | { BlakeTwo256: any } + | { Sha256: any } + | { Keccak256: any } + | { ShaThree256: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Data] + >; + /** + * Cancel a previous request. + * + * Payment: A previously reserved deposit is returned on success. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a + * registered identity. + * + * - `reg_index`: The index of the registrar whose judgement is no longer requested. + * + * Emits `JudgementUnrequested` if successful. + * + * ## Complexity + * - `O(R + X)`. + * - where `R` registrar-count (governance-bounded). + * - where `X` additional-field-count (deposit-bounded and code-bounded). + **/ + cancelRequest: AugmentedSubmittable< + (regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Clear an account's identity info and all sub-accounts and return all deposits. + * + * Payment: All reserved balances on the account are returned. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a registered + * identity. + * + * Emits `IdentityCleared` if successful. + * + * ## Complexity + * - `O(R + S + X)` + * - where `R` registrar-count (governance-bounded). + * - where `S` subs-count (hard- and deposit-bounded). + * - where `X` additional-field-count (deposit-bounded and code-bounded). + **/ + clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Remove an account's identity and sub-account information and slash the deposits. + * + * Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by + * `Slash`. Verification request deposits are not returned; they should be cancelled + * manually using `cancel_request`. + * + * The dispatch origin for this call must match `T::ForceOrigin`. + * + * - `target`: the account whose identity the judgement is upon. This must be an account + * with a registered identity. + * + * Emits `IdentityKilled` if successful. + * + * ## Complexity + * - `O(R + S + X)` + * - where `R` registrar-count (governance-bounded). + * - where `S` subs-count (hard- and deposit-bounded). + * - where `X` additional-field-count (deposit-bounded and code-bounded). + **/ + killIdentity: AugmentedSubmittable< + ( + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Provide a judgement for an account's identity. + * + * The dispatch origin for this call must be _Signed_ and the sender must be the account + * of the registrar whose index is `reg_index`. + * + * - `reg_index`: the index of the registrar whose judgement is being made. + * - `target`: the account whose identity the judgement is upon. This must be an account + * with a registered identity. + * - `judgement`: the judgement of the registrar of index `reg_index` about `target`. + * - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided. + * + * Emits `JudgementGiven` if successful. + * + * ## Complexity + * - `O(R + X)`. + * - where `R` registrar-count (governance-bounded). + * - where `X` additional-field-count (deposit-bounded and code-bounded). + **/ + provideJudgement: AugmentedSubmittable< + ( + regIndex: Compact | AnyNumber | Uint8Array, + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + judgement: + | PalletIdentityJudgement + | { Unknown: any } + | { FeePaid: any } + | { Reasonable: any } + | { KnownGood: any } + | { OutOfDate: any } + | { LowQuality: any } + | { Erroneous: any } + | string + | Uint8Array, + identity: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress, PalletIdentityJudgement, H256] + >; + /** + * Remove the sender as a sub-account. + * + * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated + * to the sender (*not* the original depositor). + * + * The dispatch origin for this call must be _Signed_ and the sender must have a registered + * super-identity. + * + * NOTE: This should not normally be used, but is provided in the case that the non- + * controller of an account is maliciously registered as a sub-account. + **/ + quitSub: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Remove the given account from the sender's subs. + * + * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated + * to the sender. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a registered + * sub identity of `sub`. + **/ + removeSub: AugmentedSubmittable< + ( + sub: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Alter the associated name of the given sub-account. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a registered + * sub identity of `sub`. + **/ + renameSub: AugmentedSubmittable< + ( + sub: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + data: + | Data + | { None: any } + | { Raw: any } + | { BlakeTwo256: any } + | { Sha256: any } + | { Keccak256: any } + | { ShaThree256: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Data] + >; + /** + * Request a judgement from a registrar. + * + * Payment: At most `max_fee` will be reserved for payment to the registrar if judgement + * given. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a + * registered identity. + * + * - `reg_index`: The index of the registrar whose judgement is requested. + * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as: + * + * ```nocompile + * Self::registrars().get(reg_index).unwrap().fee + * ``` + * + * Emits `JudgementRequested` if successful. + * + * ## Complexity + * - `O(R + X)`. + * - where `R` registrar-count (governance-bounded). + * - where `X` additional-field-count (deposit-bounded and code-bounded). + **/ + requestJudgement: AugmentedSubmittable< + ( + regIndex: Compact | AnyNumber | Uint8Array, + maxFee: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Compact, Compact] + >; + /** + * Change the account associated with a registrar. + * + * The dispatch origin for this call must be _Signed_ and the sender must be the account + * of the registrar whose index is `index`. + * + * - `index`: the index of the registrar whose fee is to be set. + * - `new`: the new account ID. + * + * ## Complexity + * - `O(R)`. + * - where `R` registrar-count (governance-bounded). + **/ + setAccountId: AugmentedSubmittable< + ( + index: Compact | AnyNumber | Uint8Array, + updated: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress] + >; + /** + * Set the fee required for a judgement to be requested from a registrar. + * + * The dispatch origin for this call must be _Signed_ and the sender must be the account + * of the registrar whose index is `index`. + * + * - `index`: the index of the registrar whose fee is to be set. + * - `fee`: the new fee. + * + * ## Complexity + * - `O(R)`. + * - where `R` registrar-count (governance-bounded). + **/ + setFee: AugmentedSubmittable< + ( + index: Compact | AnyNumber | Uint8Array, + fee: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Compact, Compact] + >; + /** + * Set the field information for a registrar. + * + * The dispatch origin for this call must be _Signed_ and the sender must be the account + * of the registrar whose index is `index`. + * + * - `index`: the index of the registrar whose fee is to be set. + * - `fields`: the fields that the registrar concerns themselves with. + * + * ## Complexity + * - `O(R)`. + * - where `R` registrar-count (governance-bounded). + **/ + setFields: AugmentedSubmittable< + ( + index: Compact | AnyNumber | Uint8Array, + fields: PalletIdentityBitFlags + ) => SubmittableExtrinsic, + [Compact, PalletIdentityBitFlags] + >; + /** + * Set an account's identity information and reserve the appropriate deposit. + * + * If the account already has identity information, the deposit is taken as part payment + * for the new deposit. + * + * The dispatch origin for this call must be _Signed_. + * + * - `info`: The identity information. + * + * Emits `IdentitySet` if successful. + * + * ## Complexity + * - `O(X + X' + R)` + * - where `X` additional-field-count (deposit-bounded and code-bounded) + * - where `R` judgements-count (registrar-count-bounded) + **/ + setIdentity: AugmentedSubmittable< + ( + info: + | PalletIdentityIdentityInfo + | { + additional?: any; + display?: any; + legal?: any; + web?: any; + riot?: any; + email?: any; + pgpFingerprint?: any; + image?: any; + twitter?: any; + } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [PalletIdentityIdentityInfo] + >; + /** + * Set the sub-accounts of the sender. + * + * Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned + * and an amount `SubAccountDeposit` will be reserved for each item in `subs`. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a registered + * identity. + * + * - `subs`: The identity's (new) sub-accounts. + * + * ## Complexity + * - `O(P + S)` + * - where `P` old-subs-count (hard- and deposit-bounded). + * - where `S` subs-count (hard- and deposit-bounded). + **/ + setSubs: AugmentedSubmittable< + ( + subs: + | Vec> + | [ + AccountId32 | string | Uint8Array, + ( + | Data + | { None: any } + | { Raw: any } + | { BlakeTwo256: any } + | { Sha256: any } + | { Keccak256: any } + | { ShaThree256: any } + | string + | Uint8Array + ) + ][] + ) => SubmittableExtrinsic, + [Vec>] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + parachainInfo: { + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + parachainStaking: { + /** + * add white list of candidates + * This function should be safe to delete after restriction removed + **/ + addCandidatesWhitelist: AugmentedSubmittable< + (candidate: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Cancel pending request to adjust the collator candidate self bond + **/ + cancelCandidateBondLess: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Cancel request to change an existing delegation. + **/ + cancelDelegationRequest: AugmentedSubmittable< + (candidate: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Cancel open request to leave candidates + * - only callable by collator account + * - result upon successful call is the candidate is active in the candidate pool + **/ + cancelLeaveCandidates: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Cancel a pending request to exit the set of delegators. Success clears the pending exit + * request (thereby resetting the delay upon another `leave_delegators` call). + **/ + cancelLeaveDelegators: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Increase collator candidate self bond by `more` + **/ + candidateBondMore: AugmentedSubmittable< + (more: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u128] + >; + /** + * If caller is not a delegator and not a collator, then join the set of delegators + * If caller is a delegator, then makes delegation to change their delegation state + **/ + delegate: AugmentedSubmittable< + ( + candidate: AccountId32 | string | Uint8Array, + amount: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, u128] + >; + /** + * If caller is not a delegator and not a collator, then join the set of delegators + * If caller is a delegator, then makes delegation to change their delegation state + * Sets the auto-compound config for the delegation + **/ + delegateWithAutoCompound: AugmentedSubmittable< + ( + candidate: AccountId32 | string | Uint8Array, + amount: u128 | AnyNumber | Uint8Array, + autoCompound: Percent | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, u128, Percent] + >; + /** + * Bond more for delegators wrt a specific collator candidate. + **/ + delegatorBondMore: AugmentedSubmittable< + ( + candidate: AccountId32 | string | Uint8Array, + more: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, u128] + >; + /** + * Execute pending request to adjust the collator candidate self bond + **/ + executeCandidateBondLess: AugmentedSubmittable< + (candidate: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Execute pending request to change an existing delegation + **/ + executeDelegationRequest: AugmentedSubmittable< + ( + delegator: AccountId32 | string | Uint8Array, + candidate: AccountId32 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, AccountId32] + >; + /** + * Execute leave candidates request + **/ + executeLeaveCandidates: AugmentedSubmittable< + (candidate: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Execute the right to exit the set of delegators and revoke all ongoing delegations. + **/ + executeLeaveDelegators: AugmentedSubmittable< + (delegator: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Temporarily leave the set of collator candidates without unbonding + **/ + goOffline: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Rejoin the set of collator candidates if previously had called `go_offline` + **/ + goOnline: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Join the set of collator candidates + **/ + joinCandidates: AugmentedSubmittable< + (bond: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u128] + >; + /** + * remove white list of candidates + * This function should be safe to delete after restriction removed + **/ + removeCandidatesWhitelist: AugmentedSubmittable< + (candidate: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Request by collator candidate to decrease self bond by `less` + **/ + scheduleCandidateBondLess: AugmentedSubmittable< + (less: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u128] + >; + /** + * Request bond less for delegators wrt a specific collator candidate. + **/ + scheduleDelegatorBondLess: AugmentedSubmittable< + ( + candidate: AccountId32 | string | Uint8Array, + less: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, u128] + >; + /** + * Request to leave the set of candidates. If successful, the account is immediately + * removed from the candidate pool to prevent selection as a collator. + **/ + scheduleLeaveCandidates: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Request to leave the set of delegators. If successful, the caller is scheduled to be + * allowed to exit via a [DelegationAction::Revoke] towards all existing delegations. + * Success forbids future delegation requests until the request is invoked or cancelled. + **/ + scheduleLeaveDelegators: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Request to revoke an existing delegation. If successful, the delegation is scheduled + * to be allowed to be revoked via the `execute_delegation_request` extrinsic. + **/ + scheduleRevokeDelegation: AugmentedSubmittable< + (collator: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Sets the auto-compounding reward percentage for a delegation. + **/ + setAutoCompound: AugmentedSubmittable< + ( + candidate: AccountId32 | string | Uint8Array, + value: Percent | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, Percent] + >; + /** + * Set blocks per round + * - if called with `new` less than length of current round, will transition immediately + * in the next block + * - also updates per-round inflation config + **/ + setBlocksPerRound: AugmentedSubmittable< + (updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Set the commission for all collators + **/ + setCollatorCommission: AugmentedSubmittable< + (updated: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Perbill] + >; + /** + * Set the annual inflation rate to derive per-round inflation + **/ + setInflation: AugmentedSubmittable< + ( + schedule: + | ({ + readonly min: Perbill; + readonly ideal: Perbill; + readonly max: Perbill; + } & Struct) + | { min?: any; ideal?: any; max?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [ + { + readonly min: Perbill; + readonly ideal: Perbill; + readonly max: Perbill; + } & Struct + ] + >; + /** + * Set the account that will hold funds set aside for parachain bond + **/ + setParachainBondAccount: AugmentedSubmittable< + (updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Set the percent of inflation set aside for parachain bond + **/ + setParachainBondReservePercent: AugmentedSubmittable< + (updated: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Percent] + >; + /** + * Set the expectations for total staked. These expectations determine the issuance for + * the round according to logic in `fn compute_issuance` + **/ + setStakingExpectations: AugmentedSubmittable< + ( + expectations: + | ({ + readonly min: u128; + readonly ideal: u128; + readonly max: u128; + } & Struct) + | { min?: any; ideal?: any; max?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [ + { + readonly min: u128; + readonly ideal: u128; + readonly max: u128; + } & Struct + ] + >; + /** + * Set the total number of collator candidates selected per round + * - changes are not applied until the start of the next round + **/ + setTotalSelected: AugmentedSubmittable< + (updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + parachainSystem: { + authorizeUpgrade: AugmentedSubmittable< + (codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + enactAuthorizedUpgrade: AugmentedSubmittable< + (code: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Set the current validation data. + * + * This should be invoked exactly once per block. It will panic at the finalization + * phase if the call was not invoked. + * + * The dispatch origin for this call must be `Inherent` + * + * As a side effect, this function upgrades the current validation function + * if the appropriate time has come. + **/ + setValidationData: AugmentedSubmittable< + ( + data: + | CumulusPrimitivesParachainInherentParachainInherentData + | { + validationData?: any; + relayChainState?: any; + downwardMessages?: any; + horizontalMessages?: any; + } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [CumulusPrimitivesParachainInherentParachainInherentData] + >; + sudoSendUpwardMessage: AugmentedSubmittable< + (message: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + polkadotXcm: { + /** + * Execute an XCM message from a local, signed, origin. + * + * An event is deposited indicating whether `msg` could be executed completely or only + * partially. + * + * No more than `max_weight` will be used in its attempted execution. If this is less than the + * maximum amount of weight that the message could take to be executed, then no execution + * attempt will be made. + * + * NOTE: A successful return to this does *not* imply that the `msg` was executed successfully + * to completion; only that *some* of it was executed. + **/ + execute: AugmentedSubmittable< + ( + message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array, + maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedXcm, SpWeightsWeightV2Weight] + >; + /** + * Set a safe XCM version (the version that XCM should be encoded with if the most recent + * version a destination can accept is unknown). + * + * - `origin`: Must be Root. + * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. + **/ + forceDefaultXcmVersion: AugmentedSubmittable< + (maybeXcmVersion: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, + [Option] + >; + /** + * Ask a location to notify us regarding their XCM version and any changes to it. + * + * - `origin`: Must be Root. + * - `location`: The location to which we should subscribe for XCM version notifications. + **/ + forceSubscribeVersionNotify: AugmentedSubmittable< + ( + location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation] + >; + /** + * Require that a particular destination should no longer notify us regarding any XCM + * version changes. + * + * - `origin`: Must be Root. + * - `location`: The location to which we are currently subscribed for XCM version + * notifications which we no longer desire. + **/ + forceUnsubscribeVersionNotify: AugmentedSubmittable< + ( + location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation] + >; + /** + * Extoll that a particular destination can be communicated with through a particular + * version of XCM. + * + * - `origin`: Must be Root. + * - `location`: The destination that is being described. + * - `xcm_version`: The latest version of XCM that `location` supports. + **/ + forceXcmVersion: AugmentedSubmittable< + ( + location: XcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, + xcmVersion: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [XcmV3MultiLocation, u32] + >; + /** + * Transfer some assets from the local chain to the sovereign account of a destination + * chain and forward a notification XCM. + * + * Fee payment on the destination side is made from the asset in the `assets` vector of + * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight + * is needed than `weight_limit`, then the operation will fail and the assets send may be + * at risk. + * + * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. + * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send + * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain. + * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be + * an `AccountId32` value. + * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the + * `dest` side. + * - `fee_asset_item`: The index into `assets` of the item which should be used to pay + * fees. + * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. + **/ + limitedReserveTransferAssets: AugmentedSubmittable< + ( + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, + feeAssetItem: u32 | AnyNumber | Uint8Array, + weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit] + >; + /** + * Teleport some assets from the local chain to some destination chain. + * + * Fee payment on the destination side is made from the asset in the `assets` vector of + * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight + * is needed than `weight_limit`, then the operation will fail and the assets send may be + * at risk. + * + * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. + * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send + * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain. + * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be + * an `AccountId32` value. + * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the + * `dest` side. May not be empty. + * - `fee_asset_item`: The index into `assets` of the item which should be used to pay + * fees. + * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. + **/ + limitedTeleportAssets: AugmentedSubmittable< + ( + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, + feeAssetItem: u32 | AnyNumber | Uint8Array, + weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit] + >; + /** + * Transfer some assets from the local chain to the sovereign account of a destination + * chain and forward a notification XCM. + * + * Fee payment on the destination side is made from the asset in the `assets` vector of + * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, + * with all fees taken as needed from the asset. + * + * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. + * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send + * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain. + * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be + * an `AccountId32` value. + * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the + * `dest` side. + * - `fee_asset_item`: The index into `assets` of the item which should be used to pay + * fees. + **/ + reserveTransferAssets: AugmentedSubmittable< + ( + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, + feeAssetItem: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32] + >; + send: AugmentedSubmittable< + ( + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation, XcmVersionedXcm] + >; + /** + * Teleport some assets from the local chain to some destination chain. + * + * Fee payment on the destination side is made from the asset in the `assets` vector of + * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, + * with all fees taken as needed from the asset. + * + * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. + * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send + * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain. + * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be + * an `AccountId32` value. + * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the + * `dest` side. May not be empty. + * - `fee_asset_item`: The index into `assets` of the item which should be used to pay + * fees. + **/ + teleportAssets: AugmentedSubmittable< + ( + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, + feeAssetItem: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + preimage: { + /** + * Register a preimage on-chain. + * + * If the preimage was previously requested, no fees or deposits are taken for providing + * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. + **/ + notePreimage: AugmentedSubmittable< + (bytes: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Request a preimage be uploaded to the chain without paying any fees or deposits. + * + * If the preimage requests has already been provided on-chain, we unreserve any deposit + * a user may have paid, and take the control of the preimage out of their hands. + **/ + requestPreimage: AugmentedSubmittable< + (hash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + /** + * Clear an unrequested preimage from the runtime storage. + * + * If `len` is provided, then it will be a much cheaper operation. + * + * - `hash`: The hash of the preimage to be removed from the store. + * - `len`: The length of the preimage of `hash`. + **/ + unnotePreimage: AugmentedSubmittable< + (hash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + /** + * Clear a previously made request for a preimage. + * + * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. + **/ + unrequestPreimage: AugmentedSubmittable< + (hash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + proxy: { + /** + * Register a proxy account for the sender that is able to make calls on its behalf. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `proxy`: The account that the `caller` would like to make a proxy. + * - `proxy_type`: The permissions allowed for this proxy account. + * - `delay`: The announcement period required of the initial proxy. Will generally be + * zero. + **/ + addProxy: AugmentedSubmittable< + ( + delegate: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + proxyType: + | RococoParachainRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'CancelProxy' + | 'Collator' + | 'Governance' + | number + | Uint8Array, + delay: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, RococoParachainRuntimeProxyType, u32] + >; + /** + * Publish the hash of a proxy-call that will be made in the future. + * + * This must be called some number of blocks before the corresponding `proxy` is attempted + * if the delay associated with the proxy relationship is greater than zero. + * + * No more than `MaxPending` announcements may be made at any one time. + * + * This will take a deposit of `AnnouncementDepositFactor` as well as + * `AnnouncementDepositBase` if there are no other pending announcements. + * + * The dispatch origin for this call must be _Signed_ and a proxy of `real`. + * + * Parameters: + * - `real`: The account that the proxy will make a call on behalf of. + * - `call_hash`: The hash of the call to be made by the `real` account. + **/ + announce: AugmentedSubmittable< + ( + real: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + callHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, H256] + >; + /** + * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and + * initialize it with a proxy of `proxy_type` for `origin` sender. + * + * Requires a `Signed` origin. + * + * - `proxy_type`: The type of the proxy that the sender will be registered as over the + * new account. This will almost always be the most permissive `ProxyType` possible to + * allow for maximum flexibility. + * - `index`: A disambiguation index, in case this is called multiple times in the same + * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just + * want to use `0`. + * - `delay`: The announcement period required of the initial proxy. Will generally be + * zero. + * + * Fails with `Duplicate` if this has already been called in this transaction, from the + * same sender, with the same parameters. + * + * Fails if there are insufficient funds to pay for deposit. + **/ + createPure: AugmentedSubmittable< + ( + proxyType: + | RococoParachainRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'CancelProxy' + | 'Collator' + | 'Governance' + | number + | Uint8Array, + delay: u32 | AnyNumber | Uint8Array, + index: u16 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [RococoParachainRuntimeProxyType, u32, u16] + >; + /** + * Removes a previously spawned pure proxy. + * + * WARNING: **All access to this account will be lost.** Any funds held in it will be + * inaccessible. + * + * Requires a `Signed` origin, and the sender account must have been created by a call to + * `pure` with corresponding parameters. + * + * - `spawner`: The account that originally called `pure` to create this account. + * - `index`: The disambiguation index originally passed to `pure`. Probably `0`. + * - `proxy_type`: The proxy type originally passed to `pure`. + * - `height`: The height of the chain when the call to `pure` was processed. + * - `ext_index`: The extrinsic index in which the call to `pure` was processed. + * + * Fails with `NoPermission` in case the caller is not a previously created pure + * account whose `pure` call has corresponding parameters. + **/ + killPure: AugmentedSubmittable< + ( + spawner: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + proxyType: + | RococoParachainRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'CancelProxy' + | 'Collator' + | 'Governance' + | number + | Uint8Array, + index: u16 | AnyNumber | Uint8Array, + height: Compact | AnyNumber | Uint8Array, + extIndex: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, RococoParachainRuntimeProxyType, u16, Compact, Compact] + >; + /** + * Dispatch the given `call` from an account that the sender is authorised for through + * `add_proxy`. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `real`: The account that the proxy will make a call on behalf of. + * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. + * - `call`: The call to be made by the `real` account. + **/ + proxy: AugmentedSubmittable< + ( + real: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + forceProxyType: + | Option + | null + | Uint8Array + | RococoParachainRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'CancelProxy' + | 'Collator' + | 'Governance' + | number, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Option, Call] + >; + /** + * Dispatch the given `call` from an account that the sender is authorized for through + * `add_proxy`. + * + * Removes any corresponding announcement(s). + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `real`: The account that the proxy will make a call on behalf of. + * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. + * - `call`: The call to be made by the `real` account. + **/ + proxyAnnounced: AugmentedSubmittable< + ( + delegate: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + real: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + forceProxyType: + | Option + | null + | Uint8Array + | RococoParachainRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'CancelProxy' + | 'Collator' + | 'Governance' + | number, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, MultiAddress, Option, Call] + >; + /** + * Remove the given announcement of a delegate. + * + * May be called by a target (proxied) account to remove a call that one of their delegates + * (`delegate`) has announced they want to execute. The deposit is returned. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `delegate`: The account that previously announced the call. + * - `call_hash`: The hash of the call to be made. + **/ + rejectAnnouncement: AugmentedSubmittable< + ( + delegate: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + callHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, H256] + >; + /** + * Remove a given announcement. + * + * May be called by a proxy account to remove a call they previously announced and return + * the deposit. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `real`: The account that the proxy will make a call on behalf of. + * - `call_hash`: The hash of the call to be made by the `real` account. + **/ + removeAnnouncement: AugmentedSubmittable< + ( + real: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + callHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, H256] + >; + /** + * Unregister all proxy accounts for the sender. + * + * The dispatch origin for this call must be _Signed_. + * + * WARNING: This may be called on accounts created by `pure`, however if done, then + * the unreserved fees will be inaccessible. **All access to this account will be lost.** + **/ + removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Unregister a proxy account for the sender. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `proxy`: The account that the `caller` would like to remove as a proxy. + * - `proxy_type`: The permissions currently enabled for the removed proxy account. + **/ + removeProxy: AugmentedSubmittable< + ( + delegate: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + proxyType: + | RococoParachainRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'CancelProxy' + | 'Collator' + | 'Governance' + | number + | Uint8Array, + delay: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, RococoParachainRuntimeProxyType, u32] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + scheduler: { + /** + * Cancel an anonymously scheduled task. + **/ + cancel: AugmentedSubmittable< + ( + when: u32 | AnyNumber | Uint8Array, + index: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [u32, u32] + >; + /** + * Cancel a named scheduled task. + **/ + cancelNamed: AugmentedSubmittable< + (id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, + [U8aFixed] + >; + /** + * Anonymously schedule a task. + **/ + schedule: AugmentedSubmittable< + ( + when: u32 | AnyNumber | Uint8Array, + maybePeriodic: + | Option> + | null + | Uint8Array + | ITuple<[u32, u32]> + | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], + priority: u8 | AnyNumber | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [u32, Option>, u8, Call] + >; + /** + * Anonymously schedule a task after a delay. + **/ + scheduleAfter: AugmentedSubmittable< + ( + after: u32 | AnyNumber | Uint8Array, + maybePeriodic: + | Option> + | null + | Uint8Array + | ITuple<[u32, u32]> + | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], + priority: u8 | AnyNumber | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [u32, Option>, u8, Call] + >; + /** + * Schedule a named task. + **/ + scheduleNamed: AugmentedSubmittable< + ( + id: U8aFixed | string | Uint8Array, + when: u32 | AnyNumber | Uint8Array, + maybePeriodic: + | Option> + | null + | Uint8Array + | ITuple<[u32, u32]> + | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], + priority: u8 | AnyNumber | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [U8aFixed, u32, Option>, u8, Call] + >; + /** + * Schedule a named task after a delay. + **/ + scheduleNamedAfter: AugmentedSubmittable< + ( + id: U8aFixed | string | Uint8Array, + after: u32 | AnyNumber | Uint8Array, + maybePeriodic: + | Option> + | null + | Uint8Array + | ITuple<[u32, u32]> + | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], + priority: u8 | AnyNumber | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [U8aFixed, u32, Option>, u8, Call] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + session: { + /** + * Removes any session key(s) of the function caller. + * + * This doesn't take effect until the next session. + * + * The dispatch origin of this function must be Signed and the account must be either be + * convertible to a validator ID using the chain's typical addressing system (this usually + * means being a controller account) or directly convertible into a validator ID (which + * usually means being a stash account). + * + * ## Complexity + * - `O(1)` in number of key types. Actual cost depends on the number of length of + * `T::Keys::key_ids()` which is fixed. + **/ + purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Sets the session key(s) of the function caller to `keys`. + * Allows an account to set its session key prior to becoming a validator. + * This doesn't take effect until the next session. + * + * The dispatch origin of this function must be signed. + * + * ## Complexity + * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is + * fixed. + **/ + setKeys: AugmentedSubmittable< + ( + keys: RococoParachainRuntimeSessionKeys | { aura?: any } | string | Uint8Array, + proof: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [RococoParachainRuntimeSessionKeys, Bytes] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + sidechain: { + /** + * The integritee worker calls this function for every imported sidechain_block. + **/ + confirmImportedSidechainBlock: AugmentedSubmittable< + ( + shardId: H256 | string | Uint8Array, + blockNumber: u64 | AnyNumber | Uint8Array, + nextFinalizationCandidateBlockNumber: u64 | AnyNumber | Uint8Array, + blockHeaderHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, u64, u64, H256] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + sudo: { + /** + * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo + * key. + * + * The dispatch origin for this call must be _Signed_. + * + * ## Complexity + * - O(1). + **/ + setKey: AugmentedSubmittable< + ( + updated: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Authenticates the sudo key and dispatches a function call with `Root` origin. + * + * The dispatch origin for this call must be _Signed_. + * + * ## Complexity + * - O(1). + **/ + sudo: AugmentedSubmittable< + (call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, + [Call] + >; + /** + * Authenticates the sudo key and dispatches a function call with `Signed` origin from + * a given account. + * + * The dispatch origin for this call must be _Signed_. + * + * ## Complexity + * - O(1). + **/ + sudoAs: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Call] + >; + /** + * Authenticates the sudo key and dispatches a function call with `Root` origin. + * This function does not check the weight of the call, and instead allows the + * Sudo user to specify the weight of the call. + * + * The dispatch origin for this call must be _Signed_. + * + * ## Complexity + * - O(1). + **/ + sudoUncheckedWeight: AugmentedSubmittable< + ( + call: Call | IMethod | string | Uint8Array, + weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [Call, SpWeightsWeightV2Weight] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + system: { + /** + * Kill all storage items with a key that starts with the given prefix. + * + * **NOTE:** We rely on the Root origin to provide us the number of subkeys under + * the prefix we are removing to accurately calculate the weight of this function. + **/ + killPrefix: AugmentedSubmittable< + ( + prefix: Bytes | string | Uint8Array, + subkeys: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, u32] + >; + /** + * Kill some items from storage. + **/ + killStorage: AugmentedSubmittable< + (keys: Vec | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Make some on-chain remark. + * + * ## Complexity + * - `O(1)` + **/ + remark: AugmentedSubmittable< + (remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Make some on-chain remark and emit event. + **/ + remarkWithEvent: AugmentedSubmittable< + (remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Set the new runtime code. + * + * ## Complexity + * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code` + **/ + setCode: AugmentedSubmittable< + (code: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Set the new runtime code without doing any checks of the given `code`. + * + * ## Complexity + * - `O(C)` where `C` length of `code` + **/ + setCodeWithoutChecks: AugmentedSubmittable< + (code: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Set the number of pages in the WebAssembly environment's heap. + **/ + setHeapPages: AugmentedSubmittable< + (pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Set some items of storage. + **/ + setStorage: AugmentedSubmittable< + ( + items: Vec> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array][] + ) => SubmittableExtrinsic, + [Vec>] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + technicalCommittee: { + /** + * Close a vote that is either approved, disapproved or whose voting period has ended. + * + * May be called by any signed account in order to finish voting and close the proposal. + * + * If called before the end of the voting period it will only close the vote if it is + * has enough votes to be approved or disapproved. + * + * If called after the end of the voting period abstentions are counted as rejections + * unless there is a prime member set and the prime member cast an approval. + * + * If the close operation completes successfully with disapproval, the transaction fee will + * be waived. Otherwise execution of the approved operation will be charged to the caller. + * + * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed + * proposal. + * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via + * `storage::read` so it is `size_of::() == 4` larger than the pure length. + * + * ## Complexity + * - `O(B + M + P1 + P2)` where: + * - `B` is `proposal` size in bytes (length-fee-bounded) + * - `M` is members-count (code- and governance-bounded) + * - `P1` is the complexity of `proposal` preimage. + * - `P2` is proposal-count (code-bounded) + **/ + close: AugmentedSubmittable< + ( + proposalHash: H256 | string | Uint8Array, + index: Compact | AnyNumber | Uint8Array, + proposalWeightBound: + | SpWeightsWeightV2Weight + | { refTime?: any; proofSize?: any } + | string + | Uint8Array, + lengthBound: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, Compact, SpWeightsWeightV2Weight, Compact] + >; + /** + * Close a vote that is either approved, disapproved or whose voting period has ended. + * + * May be called by any signed account in order to finish voting and close the proposal. + * + * If called before the end of the voting period it will only close the vote if it is + * has enough votes to be approved or disapproved. + * + * If called after the end of the voting period abstentions are counted as rejections + * unless there is a prime member set and the prime member cast an approval. + * + * If the close operation completes successfully with disapproval, the transaction fee will + * be waived. Otherwise execution of the approved operation will be charged to the caller. + * + * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed + * proposal. + * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via + * `storage::read` so it is `size_of::() == 4` larger than the pure length. + * + * ## Complexity + * - `O(B + M + P1 + P2)` where: + * - `B` is `proposal` size in bytes (length-fee-bounded) + * - `M` is members-count (code- and governance-bounded) + * - `P1` is the complexity of `proposal` preimage. + * - `P2` is proposal-count (code-bounded) + **/ + closeOldWeight: AugmentedSubmittable< + ( + proposalHash: H256 | string | Uint8Array, + index: Compact | AnyNumber | Uint8Array, + proposalWeightBound: Compact | AnyNumber | Uint8Array, + lengthBound: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, Compact, Compact, Compact] + >; + /** + * Disapprove a proposal, close, and remove it from the system, regardless of its current + * state. + * + * Must be called by the Root origin. + * + * Parameters: + * * `proposal_hash`: The hash of the proposal that should be disapproved. + * + * ## Complexity + * O(P) where P is the number of max proposals + **/ + disapproveProposal: AugmentedSubmittable< + (proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + /** + * Dispatch a proposal from a member using the `Member` origin. + * + * Origin must be a member of the collective. + * + * ## Complexity: + * - `O(B + M + P)` where: + * - `B` is `proposal` size in bytes (length-fee-bounded) + * - `M` members-count (code-bounded) + * - `P` complexity of dispatching `proposal` + **/ + execute: AugmentedSubmittable< + ( + proposal: Call | IMethod | string | Uint8Array, + lengthBound: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Call, Compact] + >; + /** + * Add a new proposal to either be voted on or executed directly. + * + * Requires the sender to be member. + * + * `threshold` determines whether `proposal` is executed directly (`threshold < 2`) + * or put up for voting. + * + * ## Complexity + * - `O(B + M + P1)` or `O(B + M + P2)` where: + * - `B` is `proposal` size in bytes (length-fee-bounded) + * - `M` is members-count (code- and governance-bounded) + * - branching is influenced by `threshold` where: + * - `P1` is proposal execution complexity (`threshold < 2`) + * - `P2` is proposals-count (code-bounded) (`threshold >= 2`) + **/ + propose: AugmentedSubmittable< + ( + threshold: Compact | AnyNumber | Uint8Array, + proposal: Call | IMethod | string | Uint8Array, + lengthBound: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Compact, Call, Compact] + >; + /** + * Set the collective's membership. + * + * - `new_members`: The new member list. Be nice to the chain and provide it sorted. + * - `prime`: The prime member whose vote sets the default. + * - `old_count`: The upper bound for the previous number of members in storage. Used for + * weight estimation. + * + * The dispatch of this call must be `SetMembersOrigin`. + * + * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but + * the weight estimations rely on it to estimate dispatchable weight. + * + * # WARNING: + * + * The `pallet-collective` can also be managed by logic outside of the pallet through the + * implementation of the trait [`ChangeMembers`]. + * Any call to `set_members` must be careful that the member set doesn't get out of sync + * with other logic managing the member set. + * + * ## Complexity: + * - `O(MP + N)` where: + * - `M` old-members-count (code- and governance-bounded) + * - `N` new-members-count (code- and governance-bounded) + * - `P` proposals-count (code-bounded) + **/ + setMembers: AugmentedSubmittable< + ( + newMembers: Vec | (AccountId32 | string | Uint8Array)[], + prime: Option | null | Uint8Array | AccountId32 | string, + oldCount: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Vec, Option, u32] + >; + /** + * Add an aye or nay vote for the sender to the given proposal. + * + * Requires the sender to be a member. + * + * Transaction fees will be waived if the member is voting on any particular proposal + * for the first time and the call is successful. Subsequent vote changes will charge a + * fee. + * ## Complexity + * - `O(M)` where `M` is members-count (code- and governance-bounded) + **/ + vote: AugmentedSubmittable< + ( + proposal: H256 | string | Uint8Array, + index: Compact | AnyNumber | Uint8Array, + approve: bool | boolean | Uint8Array + ) => SubmittableExtrinsic, + [H256, Compact, bool] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + technicalCommitteeMembership: { + /** + * Add a member `who` to the set. + * + * May only be called from `T::AddOrigin`. + **/ + addMember: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Swap out the sending member for some other key `new`. + * + * May only be called from `Signed` origin of a current member. + * + * Prime membership is passed from the origin account to `new`, if extant. + **/ + changeKey: AugmentedSubmittable< + ( + updated: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Remove the prime member if it exists. + * + * May only be called from `T::PrimeOrigin`. + **/ + clearPrime: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Remove a member `who` from the set. + * + * May only be called from `T::RemoveOrigin`. + **/ + removeMember: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Change the membership to a new set, disregarding the existing membership. Be nice and + * pass `members` pre-sorted. + * + * May only be called from `T::ResetOrigin`. + **/ + resetMembers: AugmentedSubmittable< + (members: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Set the prime member. Must be a current member. + * + * May only be called from `T::PrimeOrigin`. + **/ + setPrime: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Swap out one member `remove` for another `add`. + * + * May only be called from `T::SwapOrigin`. + * + * Prime membership is *not* passed from `remove` to `add`, if extant. + **/ + swapMember: AugmentedSubmittable< + ( + remove: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + add: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, MultiAddress] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + teeracle: { + addToWhitelist: AugmentedSubmittable< + ( + dataSource: Bytes | string | Uint8Array, + mrenclave: U8aFixed | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, U8aFixed] + >; + removeFromWhitelist: AugmentedSubmittable< + ( + dataSource: Bytes | string | Uint8Array, + mrenclave: U8aFixed | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, U8aFixed] + >; + updateExchangeRate: AugmentedSubmittable< + ( + dataSource: Bytes | string | Uint8Array, + tradingPair: Bytes | string | Uint8Array, + newValue: + | Option + | null + | Uint8Array + | SubstrateFixedFixedU64 + | { bits?: any } + | string + ) => SubmittableExtrinsic, + [Bytes, Bytes, Option] + >; + updateOracle: AugmentedSubmittable< + ( + oracleName: Bytes | string | Uint8Array, + dataSource: Bytes | string | Uint8Array, + newBlob: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, Bytes, Bytes] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + teerex: { + callWorker: AugmentedSubmittable< + ( + request: TeerexPrimitivesRequest | { shard?: any; cyphertext?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [TeerexPrimitivesRequest] + >; + /** + * The integritee worker calls this function for every processed parentchain_block to + * confirm a state update. + **/ + confirmProcessedParentchainBlock: AugmentedSubmittable< + ( + blockHash: H256 | string | Uint8Array, + blockNumber: u32 | AnyNumber | Uint8Array, + trustedCallsMerkleRoot: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, u32, H256] + >; + /** + * Publish a hash as a result of an arbitrary enclave operation. + * + * The `mrenclave` of the origin will be used as an event topic a client can subscribe to. + * `extra_topics`, if any, will be used as additional event topics. + * + * `data` can be anything worthwhile publishing related to the hash. If it is a + * utf8-encoded string, the UIs will usually even render the text. + **/ + publishHash: AugmentedSubmittable< + ( + hash: H256 | string | Uint8Array, + extraTopics: Vec | (H256 | string | Uint8Array)[], + data: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, Vec, Bytes] + >; + registerDcapEnclave: AugmentedSubmittable< + ( + dcapQuote: Bytes | string | Uint8Array, + workerUrl: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, Bytes] + >; + registerEnclave: AugmentedSubmittable< + ( + raReport: Bytes | string | Uint8Array, + workerUrl: Bytes | string | Uint8Array, + shieldingKey: Option | null | Uint8Array | Bytes | string, + vcPubkey: Option | null | Uint8Array | Bytes | string + ) => SubmittableExtrinsic, + [Bytes, Bytes, Option, Option] + >; + registerQuotingEnclave: AugmentedSubmittable< + ( + enclaveIdentity: Bytes | string | Uint8Array, + signature: Bytes | string | Uint8Array, + certificateChain: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, Bytes, Bytes] + >; + registerTcbInfo: AugmentedSubmittable< + ( + tcbInfo: Bytes | string | Uint8Array, + signature: Bytes | string | Uint8Array, + certificateChain: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, Bytes, Bytes] + >; + removeScheduledEnclave: AugmentedSubmittable< + (sidechainBlockNumber: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Change the admin account + * similar to sudo.set_key, the old account will be supplied in event + **/ + setAdmin: AugmentedSubmittable< + (updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + setHeartbeatTimeout: AugmentedSubmittable< + (timeout: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Sent by a client who requests to get shielded funds managed by an enclave. For this + * on-chain balance is sent to the bonding_account of the enclave. The bonding_account does + * not have a private key as the balance on this account is exclusively managed from + * withing the pallet_teerex. Note: The bonding_account is bit-equivalent to the worker + * shard. + **/ + shieldFunds: AugmentedSubmittable< + ( + incognitoAccountEncrypted: Bytes | string | Uint8Array, + amount: u128 | AnyNumber | Uint8Array, + bondingAccount: AccountId32 | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, u128, AccountId32] + >; + unregisterEnclave: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Sent by enclaves only as a result of an `unshield` request from a client to an enclave. + **/ + unshieldFunds: AugmentedSubmittable< + ( + publicAccount: AccountId32 | string | Uint8Array, + amount: u128 | AnyNumber | Uint8Array, + bondingAccount: AccountId32 | string | Uint8Array, + callHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, u128, AccountId32, H256] + >; + updateScheduledEnclave: AugmentedSubmittable< + ( + sidechainBlockNumber: u64 | AnyNumber | Uint8Array, + mrEnclave: U8aFixed | string | Uint8Array + ) => SubmittableExtrinsic, + [u64, U8aFixed] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + timestamp: { + /** + * Set the current time. + * + * This call should be invoked exactly once per block. It will panic at the finalization + * phase, if this call hasn't been invoked by that time. + * + * The timestamp should be greater than the previous one by the amount specified by + * `MinimumPeriod`. + * + * The dispatch origin for this call must be `Inherent`. + * + * ## Complexity + * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) + * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in + * `on_finalize`) + * - 1 event handler `on_timestamp_set`. Must be `O(1)`. + **/ + set: AugmentedSubmittable< + (now: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + tips: { + /** + * Close and payout a tip. + * + * The dispatch origin for this call must be _Signed_. + * + * The tip identified by `hash` must have finished its countdown period. + * + * - `hash`: The identity of the open tip for which a tip value is declared. This is formed + * as the hash of the tuple of the original tip `reason` and the beneficiary account ID. + * + * ## Complexity + * - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T` + * is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on + * the implementation of `T::Tippers`. + **/ + closeTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; + /** + * Report something `reason` that deserves a tip and claim any eventual the finder's fee. + * + * The dispatch origin for this call must be _Signed_. + * + * Payment: `TipReportDepositBase` will be reserved from the origin account, as well as + * `DataDepositPerByte` for each byte in `reason`. + * + * - `reason`: The reason for, or the thing that deserves, the tip; generally this will be + * a UTF-8-encoded URL. + * - `who`: The account which should be credited for the tip. + * + * Emits `NewTip` if successful. + * + * ## Complexity + * - `O(R)` where `R` length of `reason`. + * - encoding and hashing of 'reason' + **/ + reportAwesome: AugmentedSubmittable< + ( + reason: Bytes | string | Uint8Array, + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, MultiAddress] + >; + /** + * Retract a prior tip-report from `report_awesome`, and cancel the process of tipping. + * + * If successful, the original deposit will be unreserved. + * + * The dispatch origin for this call must be _Signed_ and the tip identified by `hash` + * must have been reported by the signing account through `report_awesome` (and not + * through `tip_new`). + * + * - `hash`: The identity of the open tip for which a tip value is declared. This is formed + * as the hash of the tuple of the original tip `reason` and the beneficiary account ID. + * + * Emits `TipRetracted` if successful. + * + * ## Complexity + * - `O(1)` + * - Depends on the length of `T::Hash` which is fixed. + **/ + retractTip: AugmentedSubmittable< + (hash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + /** + * Remove and slash an already-open tip. + * + * May only be called from `T::RejectOrigin`. + * + * As a result, the finder is slashed and the deposits are lost. + * + * Emits `TipSlashed` if successful. + * + * ## Complexity + * - O(1). + **/ + slashTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; + /** + * Declare a tip value for an already-open tip. + * + * The dispatch origin for this call must be _Signed_ and the signing account must be a + * member of the `Tippers` set. + * + * - `hash`: The identity of the open tip for which a tip value is declared. This is formed + * as the hash of the tuple of the hash of the original tip `reason` and the beneficiary + * account ID. + * - `tip_value`: The amount of tip that the sender would like to give. The median tip + * value of active tippers will be given to the `who`. + * + * Emits `TipClosing` if the threshold of tippers has been reached and the countdown period + * has started. + * + * ## Complexity + * - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert + * tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`. + * The actual cost depends on the implementation of `T::Tippers`. + * + * Actually weight could be lower as it depends on how many tips are in `OpenTip` but it + * is weighted as if almost full i.e of length `T-1`. + **/ + tip: AugmentedSubmittable< + ( + hash: H256 | string | Uint8Array, + tipValue: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, Compact] + >; + /** + * Give a tip for something new; no finder's fee will be taken. + * + * The dispatch origin for this call must be _Signed_ and the signing account must be a + * member of the `Tippers` set. + * + * - `reason`: The reason for, or the thing that deserves, the tip; generally this will be + * a UTF-8-encoded URL. + * - `who`: The account which should be credited for the tip. + * - `tip_value`: The amount of tip that the sender would like to give. The median tip + * value of active tippers will be given to the `who`. + * + * Emits `NewTip` if successful. + * + * ## Complexity + * - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers. + * - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by + * `ContainsLengthBound`. The actual cost depends on the implementation of + * `T::Tippers`. + * - `O(R)`: hashing and encoding of reason of length `R` + **/ + tipNew: AugmentedSubmittable< + ( + reason: Bytes | string | Uint8Array, + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + tipValue: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, MultiAddress, Compact] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + tokens: { + /** + * Exactly as `transfer`, except the origin must be root and the source + * account may be specified. + * + * The dispatch origin for this call must be _Root_. + * + * - `source`: The sender of the transfer. + * - `dest`: The recipient of the transfer. + * - `currency_id`: currency type. + * - `amount`: free balance amount to tranfer. + **/ + forceTransfer: AugmentedSubmittable< + ( + source: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + currencyId: u128 | AnyNumber | Uint8Array, + amount: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, MultiAddress, u128, Compact] + >; + /** + * Set the balances of a given account. + * + * This will alter `FreeBalance` and `ReservedBalance` in storage. it + * will also decrease the total issuance of the system + * (`TotalIssuance`). If the new free or reserved balance is below the + * existential deposit, it will reap the `AccountInfo`. + * + * The dispatch origin for this call is `root`. + **/ + setBalance: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + currencyId: u128 | AnyNumber | Uint8Array, + newFree: Compact | AnyNumber | Uint8Array, + newReserved: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, u128, Compact, Compact] + >; + /** + * Transfer some liquid free balance to another account. + * + * `transfer` will set the `FreeBalance` of the sender and receiver. + * It will decrease the total issuance of the system by the + * `TransferFee`. If the sender's account is below the existential + * deposit as a result of the transfer, the account will be reaped. + * + * The dispatch origin for this call must be `Signed` by the + * transactor. + * + * - `dest`: The recipient of the transfer. + * - `currency_id`: currency type. + * - `amount`: free balance amount to tranfer. + **/ + transfer: AugmentedSubmittable< + ( + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + currencyId: u128 | AnyNumber | Uint8Array, + amount: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, u128, Compact] + >; + /** + * Transfer all remaining balance to the given account. + * + * NOTE: This function only attempts to transfer _transferable_ + * balances. This means that any locked, reserved, or existential + * deposits (when `keep_alive` is `true`), will not be transferred by + * this function. To ensure that this function results in a killed + * account, you might need to prepare the account by removing any + * reference counters, storage deposits, etc... + * + * The dispatch origin for this call must be `Signed` by the + * transactor. + * + * - `dest`: The recipient of the transfer. + * - `currency_id`: currency type. + * - `keep_alive`: A boolean to determine if the `transfer_all` + * operation should send all of the funds the account has, causing + * the sender account to be killed (false), or transfer everything + * except at least the existential deposit, which will guarantee to + * keep the sender account alive (true). + **/ + transferAll: AugmentedSubmittable< + ( + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + currencyId: u128 | AnyNumber | Uint8Array, + keepAlive: bool | boolean | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, u128, bool] + >; + /** + * Same as the [`transfer`] call, but with a check that the transfer + * will not kill the origin account. + * + * 99% of the time you want [`transfer`] instead. + * + * The dispatch origin for this call must be `Signed` by the + * transactor. + * + * - `dest`: The recipient of the transfer. + * - `currency_id`: currency type. + * - `amount`: free balance amount to tranfer. + **/ + transferKeepAlive: AugmentedSubmittable< + ( + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + currencyId: u128 | AnyNumber | Uint8Array, + amount: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, u128, Compact] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + treasury: { + /** + * Approve a proposal. At a later time, the proposal will be allocated to the beneficiary + * and the original deposit will be returned. + * + * May only be called from `T::ApproveOrigin`. + * + * ## Complexity + * - O(1). + **/ + approveProposal: AugmentedSubmittable< + (proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Put forward a suggestion for spending. A deposit proportional to the value + * is reserved and slashed if the proposal is rejected. It is returned once the + * proposal is awarded. + * + * ## Complexity + * - O(1) + **/ + proposeSpend: AugmentedSubmittable< + ( + value: Compact | AnyNumber | Uint8Array, + beneficiary: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress] + >; + /** + * Reject a proposed spend. The original deposit will be slashed. + * + * May only be called from `T::RejectOrigin`. + * + * ## Complexity + * - O(1) + **/ + rejectProposal: AugmentedSubmittable< + (proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Force a previously approved proposal to be removed from the approval queue. + * The original deposit will no longer be returned. + * + * May only be called from `T::RejectOrigin`. + * - `proposal_id`: The index of a proposal + * + * ## Complexity + * - O(A) where `A` is the number of approvals + * + * Errors: + * - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue, + * i.e., the proposal has not been approved. This could also mean the proposal does not + * exist altogether, thus there is no way it would have been approved in the first place. + **/ + removeApproval: AugmentedSubmittable< + (proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Propose and approve a spend of treasury funds. + * + * - `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`. + * - `amount`: The amount to be transferred from the treasury to the `beneficiary`. + * - `beneficiary`: The destination account for the transfer. + * + * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the + * beneficiary. + **/ + spend: AugmentedSubmittable< + ( + amount: Compact | AnyNumber | Uint8Array, + beneficiary: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + utility: { + /** + * Send a call through an indexed pseudonym of the sender. + * + * Filter from origin are passed along. The call will be dispatched with an origin which + * use the same filter as the origin of this call. + * + * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. + * because you expect `proxy` to have been used prior in the call stack and you do not want + * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` + * in the Multisig pallet instead. + * + * NOTE: Prior to version *12, this was called `as_limited_sub`. + * + * The dispatch origin for this call must be _Signed_. + **/ + asDerivative: AugmentedSubmittable< + ( + index: u16 | AnyNumber | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [u16, Call] + >; + /** + * Send a batch of dispatch calls. + * + * May be called from any origin except `None`. + * + * - `calls`: The calls to be dispatched from the same origin. The number of call must not + * exceed the constant: `batched_calls_limit` (available in constant metadata). + * + * If origin is root then the calls are dispatched without checking origin filter. (This + * includes bypassing `frame_system::Config::BaseCallFilter`). + * + * ## Complexity + * - O(C) where C is the number of calls to be batched. + * + * This will return `Ok` in all circumstances. To determine the success of the batch, an + * event is deposited. If a call failed and the batch was interrupted, then the + * `BatchInterrupted` event is deposited, along with the number of successful calls made + * and the error of the failed call. If all were successful, then the `BatchCompleted` + * event is deposited. + **/ + batch: AugmentedSubmittable< + (calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Send a batch of dispatch calls and atomically execute them. + * The whole transaction will rollback and fail if any of the calls failed. + * + * May be called from any origin except `None`. + * + * - `calls`: The calls to be dispatched from the same origin. The number of call must not + * exceed the constant: `batched_calls_limit` (available in constant metadata). + * + * If origin is root then the calls are dispatched without checking origin filter. (This + * includes bypassing `frame_system::Config::BaseCallFilter`). + * + * ## Complexity + * - O(C) where C is the number of calls to be batched. + **/ + batchAll: AugmentedSubmittable< + (calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Dispatches a function call with a provided origin. + * + * The dispatch origin for this call must be _Root_. + * + * ## Complexity + * - O(1). + **/ + dispatchAs: AugmentedSubmittable< + ( + asOrigin: + | RococoParachainRuntimeOriginCaller + | { system: any } + | { Void: any } + | { Council: any } + | { TechnicalCommittee: any } + | { PolkadotXcm: any } + | { CumulusXcm: any } + | string + | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [RococoParachainRuntimeOriginCaller, Call] + >; + /** + * Send a batch of dispatch calls. + * Unlike `batch`, it allows errors and won't interrupt. + * + * May be called from any origin except `None`. + * + * - `calls`: The calls to be dispatched from the same origin. The number of call must not + * exceed the constant: `batched_calls_limit` (available in constant metadata). + * + * If origin is root then the calls are dispatch without checking origin filter. (This + * includes bypassing `frame_system::Config::BaseCallFilter`). + * + * ## Complexity + * - O(C) where C is the number of calls to be batched. + **/ + forceBatch: AugmentedSubmittable< + (calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Dispatch a function call with a specified weight. + * + * This function does not check the weight of the call, and instead allows the + * Root origin to specify the weight of the call. + * + * The dispatch origin for this call must be _Root_. + **/ + withWeight: AugmentedSubmittable< + ( + call: Call | IMethod | string | Uint8Array, + weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [Call, SpWeightsWeightV2Weight] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + vcManagement: { + activateSchema: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + index: u64 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, u64] + >; + addSchema: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + id: Bytes | string | Uint8Array, + content: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, Bytes, Bytes] + >; + addVcRegistryItem: AugmentedSubmittable< + ( + index: H256 | string | Uint8Array, + subject: AccountId32 | string | Uint8Array, + assertion: + | CorePrimitivesAssertion + | { A1: any } + | { A2: any } + | { A3: any } + | { A4: any } + | { A5: any } + | { A6: any } + | { A7: any } + | { A8: any } + | { A9: any } + | { A10: any } + | { A11: any } + | { A13: any } + | string + | Uint8Array, + hash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, AccountId32, CorePrimitivesAssertion, H256] + >; + clearVcRegistry: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + disableSchema: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + index: u64 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, u64] + >; + disableVc: AugmentedSubmittable< + (index: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + removeVcRegistryItem: AugmentedSubmittable< + (index: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + requestVc: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + assertion: + | CorePrimitivesAssertion + | { A1: any } + | { A2: any } + | { A3: any } + | { A4: any } + | { A5: any } + | { A6: any } + | { A7: any } + | { A8: any } + | { A9: any } + | { A10: any } + | { A11: any } + | { A13: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [H256, CorePrimitivesAssertion] + >; + revokeSchema: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + index: u64 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, u64] + >; + revokeVc: AugmentedSubmittable< + (index: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + setAdmin: AugmentedSubmittable< + (updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + someError: AugmentedSubmittable< + ( + account: Option | null | Uint8Array | AccountId32 | string, + error: + | CorePrimitivesErrorVcmpError + | { RequestVCFailed: any } + | { UnclassifiedError: any } + | string + | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [Option, CorePrimitivesErrorVcmpError, H256] + >; + /** + * --------------------------------------------------- + * The following extrinsics are supposed to be called by TEE only + * --------------------------------------------------- + **/ + vcIssued: AugmentedSubmittable< + ( + account: AccountId32 | string | Uint8Array, + assertion: + | CorePrimitivesAssertion + | { A1: any } + | { A2: any } + | { A3: any } + | { A4: any } + | { A5: any } + | { A6: any } + | { A7: any } + | { A8: any } + | { A9: any } + | { A10: any } + | { A11: any } + | { A13: any } + | string + | Uint8Array, + index: H256 | string | Uint8Array, + hash: H256 | string | Uint8Array, + vc: CorePrimitivesKeyAesOutput | { ciphertext?: any; aad?: any; nonce?: any } | string | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesAssertion, H256, H256, CorePrimitivesKeyAesOutput, H256] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + vcmpExtrinsicWhitelist: { + /** + * Adds a new group member + **/ + addGroupMember: AugmentedSubmittable< + (v: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Batch adding of new group members + **/ + batchAddGroupMembers: AugmentedSubmittable< + (vs: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Batch Removing existing group members + **/ + batchRemoveGroupMembers: AugmentedSubmittable< + (vs: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Removes an existing group members + **/ + removeGroupMember: AugmentedSubmittable< + (v: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Swith GroupControlOn off + **/ + switchGroupControlOff: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Swith GroupControlOn on + **/ + switchGroupControlOn: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + vesting: { + /** + * Force a vested transfer. + * + * The dispatch origin for this call must be _Root_. + * + * - `source`: The account whose funds should be transferred. + * - `target`: The account that should be transferred the vested funds. + * - `schedule`: The vesting schedule attached to the transfer. + * + * Emits `VestingCreated`. + * + * NOTE: This will unlock all schedules through the current block. + * + * ## Complexity + * - `O(1)`. + **/ + forceVestedTransfer: AugmentedSubmittable< + ( + source: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + schedule: + | PalletVestingVestingInfo + | { locked?: any; perBlock?: any; startingBlock?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, MultiAddress, PalletVestingVestingInfo] + >; + /** + * Merge two vesting schedules together, creating a new vesting schedule that unlocks over + * the highest possible start and end blocks. If both schedules have already started the + * current block will be used as the schedule start; with the caveat that if one schedule + * is finished by the current block, the other will be treated as the new merged schedule, + * unmodified. + * + * NOTE: If `schedule1_index == schedule2_index` this is a no-op. + * NOTE: This will unlock all schedules through the current block prior to merging. + * NOTE: If both schedules have ended by the current block, no new schedule will be created + * and both will be removed. + * + * Merged schedule attributes: + * - `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block, + * current_block)`. + * - `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`. + * - `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`. + * + * The dispatch origin for this call must be _Signed_. + * + * - `schedule1_index`: index of the first schedule to merge. + * - `schedule2_index`: index of the second schedule to merge. + **/ + mergeSchedules: AugmentedSubmittable< + ( + schedule1Index: u32 | AnyNumber | Uint8Array, + schedule2Index: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [u32, u32] + >; + /** + * Unlock any vested funds of the sender account. + * + * The dispatch origin for this call must be _Signed_ and the sender must have funds still + * locked under this pallet. + * + * Emits either `VestingCompleted` or `VestingUpdated`. + * + * ## Complexity + * - `O(1)`. + **/ + vest: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Create a vested transfer. + * + * The dispatch origin for this call must be _Signed_. + * + * - `target`: The account receiving the vested funds. + * - `schedule`: The vesting schedule attached to the transfer. + * + * Emits `VestingCreated`. + * + * NOTE: This will unlock all schedules through the current block. + * + * ## Complexity + * - `O(1)`. + **/ + vestedTransfer: AugmentedSubmittable< + ( + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + schedule: + | PalletVestingVestingInfo + | { locked?: any; perBlock?: any; startingBlock?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, PalletVestingVestingInfo] + >; + /** + * Unlock any vested funds of a `target` account. + * + * The dispatch origin for this call must be _Signed_. + * + * - `target`: The account whose vested funds should be unlocked. Must have funds still + * locked under this pallet. + * + * Emits either `VestingCompleted` or `VestingUpdated`. + * + * ## Complexity + * - `O(1)`. + **/ + vestOther: AugmentedSubmittable< + ( + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + xcmpQueue: { + /** + * Resumes all XCM executions for the XCMP queue. + * + * Note that this function doesn't change the status of the in/out bound channels. + * + * - `origin`: Must pass `ControllerOrigin`. + **/ + resumeXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Services a single overweight XCM. + * + * - `origin`: Must pass `ExecuteOverweightOrigin`. + * - `index`: The index of the overweight XCM to service + * - `weight_limit`: The amount of weight that XCM execution may take. + * + * Errors: + * - `BadOverweightIndex`: XCM under `index` is not found in the `Overweight` storage map. + * - `BadXcm`: XCM under `index` cannot be properly decoded into a valid XCM format. + * - `WeightOverLimit`: XCM execution may use greater `weight_limit`. + * + * Events: + * - `OverweightServiced`: On success. + **/ + serviceOverweight: AugmentedSubmittable< + ( + index: u64 | AnyNumber | Uint8Array, + weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [u64, SpWeightsWeightV2Weight] + >; + /** + * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. + * + * - `origin`: Must pass `ControllerOrigin`. + **/ + suspendXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Overwrites the number of pages of messages which must be in the queue after which we drop any further + * messages from the channel. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.drop_threshold` + **/ + updateDropThreshold: AugmentedSubmittable< + (updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Overwrites the number of pages of messages which the queue must be reduced to before it signals that + * message sending may recommence after it has been suspended. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.resume_threshold` + **/ + updateResumeThreshold: AugmentedSubmittable< + (updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Overwrites the number of pages of messages which must be in the queue for the other side to be told to + * suspend their sending. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.suspend_value` + **/ + updateSuspendThreshold: AugmentedSubmittable< + (updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Overwrites the amount of remaining weight under which we stop processing messages. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.threshold_weight` + **/ + updateThresholdWeight: AugmentedSubmittable< + ( + updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [SpWeightsWeightV2Weight] + >; + /** + * Overwrites the speed to which the available weight approaches the maximum weight. + * A lower number results in a faster progression. A value of 1 makes the entire weight available initially. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.weight_restrict_decay`. + **/ + updateWeightRestrictDecay: AugmentedSubmittable< + ( + updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [SpWeightsWeightV2Weight] + >; + /** + * Overwrite the maximum amount of weight any individual message may consume. + * Messages above this weight go into the overweight queue and may only be serviced explicitly. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.xcmp_max_individual_weight`. + **/ + updateXcmpMaxIndividualWeight: AugmentedSubmittable< + ( + updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [SpWeightsWeightV2Weight] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + xTokens: { + /** + * Transfer native currencies. + * + * `dest_weight_limit` is the weight for XCM execution on the dest + * chain, and it would be charged from the transferred assets. If set + * below requirements, the execution may fail and assets wouldn't be + * received. + * + * It's a no-op if any error on local XCM execution or message sending. + * Note sending assets out per se doesn't guarantee they would be + * received. Receiving depends on if the XCM message could be delivered + * by the network, and if the receiving chain would handle + * messages correctly. + **/ + transfer: AugmentedSubmittable< + ( + currencyId: + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array, + amount: u128 | AnyNumber | Uint8Array, + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [RuntimeCommonXcmImplCurrencyId, u128, XcmVersionedMultiLocation, XcmV3WeightLimit] + >; + /** + * Transfer `MultiAsset`. + * + * `dest_weight_limit` is the weight for XCM execution on the dest + * chain, and it would be charged from the transferred assets. If set + * below requirements, the execution may fail and assets wouldn't be + * received. + * + * It's a no-op if any error on local XCM execution or message sending. + * Note sending assets out per se doesn't guarantee they would be + * received. Receiving depends on if the XCM message could be delivered + * by the network, and if the receiving chain would handle + * messages correctly. + **/ + transferMultiasset: AugmentedSubmittable< + ( + asset: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiAsset, XcmVersionedMultiLocation, XcmV3WeightLimit] + >; + /** + * Transfer several `MultiAsset` specifying the item to be used as fee + * + * `dest_weight_limit` is the weight for XCM execution on the dest + * chain, and it would be charged from the transferred assets. If set + * below requirements, the execution may fail and assets wouldn't be + * received. + * + * `fee_item` is index of the MultiAssets that we want to use for + * payment + * + * It's a no-op if any error on local XCM execution or message sending. + * Note sending assets out per se doesn't guarantee they would be + * received. Receiving depends on if the XCM message could be delivered + * by the network, and if the receiving chain would handle + * messages correctly. + **/ + transferMultiassets: AugmentedSubmittable< + ( + assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, + feeItem: u32 | AnyNumber | Uint8Array, + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiAssets, u32, XcmVersionedMultiLocation, XcmV3WeightLimit] + >; + /** + * Transfer `MultiAsset` specifying the fee and amount as separate. + * + * `dest_weight_limit` is the weight for XCM execution on the dest + * chain, and it would be charged from the transferred assets. If set + * below requirements, the execution may fail and assets wouldn't be + * received. + * + * `fee` is the multiasset to be spent to pay for execution in + * destination chain. Both fee and amount will be subtracted form the + * callers balance For now we only accept fee and asset having the same + * `MultiLocation` id. + * + * If `fee` is not high enough to cover for the execution costs in the + * destination chain, then the assets will be trapped in the + * destination chain + * + * It's a no-op if any error on local XCM execution or message sending. + * Note sending assets out per se doesn't guarantee they would be + * received. Receiving depends on if the XCM message could be delivered + * by the network, and if the receiving chain would handle + * messages correctly. + **/ + transferMultiassetWithFee: AugmentedSubmittable< + ( + asset: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, + fee: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiAsset, XcmVersionedMultiAsset, XcmVersionedMultiLocation, XcmV3WeightLimit] + >; + /** + * Transfer several currencies specifying the item to be used as fee + * + * `dest_weight_limit` is the weight for XCM execution on the dest + * chain, and it would be charged from the transferred assets. If set + * below requirements, the execution may fail and assets wouldn't be + * received. + * + * `fee_item` is index of the currencies tuple that we want to use for + * payment + * + * It's a no-op if any error on local XCM execution or message sending. + * Note sending assets out per se doesn't guarantee they would be + * received. Receiving depends on if the XCM message could be delivered + * by the network, and if the receiving chain would handle + * messages correctly. + **/ + transferMulticurrencies: AugmentedSubmittable< + ( + currencies: + | Vec> + | [ + ( + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array + ), + u128 | AnyNumber | Uint8Array + ][], + feeItem: u32 | AnyNumber | Uint8Array, + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [Vec>, u32, XcmVersionedMultiLocation, XcmV3WeightLimit] + >; + /** + * Transfer native currencies specifying the fee and amount as + * separate. + * + * `dest_weight_limit` is the weight for XCM execution on the dest + * chain, and it would be charged from the transferred assets. If set + * below requirements, the execution may fail and assets wouldn't be + * received. + * + * `fee` is the amount to be spent to pay for execution in destination + * chain. Both fee and amount will be subtracted form the callers + * balance. + * + * If `fee` is not high enough to cover for the execution costs in the + * destination chain, then the assets will be trapped in the + * destination chain + * + * It's a no-op if any error on local XCM execution or message sending. + * Note sending assets out per se doesn't guarantee they would be + * received. Receiving depends on if the XCM message could be delivered + * by the network, and if the receiving chain would handle + * messages correctly. + **/ + transferWithFee: AugmentedSubmittable< + ( + currencyId: + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array, + amount: u128 | AnyNumber | Uint8Array, + fee: u128 | AnyNumber | Uint8Array, + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [RuntimeCommonXcmImplCurrencyId, u128, u128, XcmVersionedMultiLocation, XcmV3WeightLimit] >; /** * Generic tx diff --git a/tee-worker/ts-tests/interfaces/lookup.ts b/tee-worker/ts-tests/interfaces/lookup.ts index 91a950880d..e54c630ba5 100644 --- a/tee-worker/ts-tests/interfaces/lookup.ts +++ b/tee-worker/ts-tests/interfaces/lookup.ts @@ -61,7 +61,7 @@ export default { }, }, /** - * Lookup18: frame_system::EventRecord + * Lookup18: frame_system::EventRecord **/ FrameSystemEventRecord: { phase: 'FrameSystemPhase', @@ -162,7 +162,161 @@ export default { _enum: ['LimitReached', 'NoLayer'], }, /** - * Lookup29: pallet_balances::pallet::Event + * Lookup29: pallet_scheduler::pallet::Event + **/ + PalletSchedulerEvent: { + _enum: { + Scheduled: { + when: 'u32', + index: 'u32', + }, + Canceled: { + when: 'u32', + index: 'u32', + }, + Dispatched: { + task: '(u32,u32)', + id: 'Option<[u8;32]>', + result: 'Result', + }, + CallUnavailable: { + task: '(u32,u32)', + id: 'Option<[u8;32]>', + }, + PeriodicFailed: { + task: '(u32,u32)', + id: 'Option<[u8;32]>', + }, + PermanentlyOverweight: { + task: '(u32,u32)', + id: 'Option<[u8;32]>', + }, + }, + }, + /** + * Lookup34: pallet_utility::pallet::Event + **/ + PalletUtilityEvent: { + _enum: { + BatchInterrupted: { + index: 'u32', + error: 'SpRuntimeDispatchError', + }, + BatchCompleted: 'Null', + BatchCompletedWithErrors: 'Null', + ItemCompleted: 'Null', + ItemFailed: { + error: 'SpRuntimeDispatchError', + }, + DispatchedAs: { + result: 'Result', + }, + }, + }, + /** + * Lookup35: pallet_multisig::pallet::Event + **/ + PalletMultisigEvent: { + _enum: { + NewMultisig: { + approving: 'AccountId32', + multisig: 'AccountId32', + callHash: '[u8;32]', + }, + MultisigApproval: { + approving: 'AccountId32', + timepoint: 'PalletMultisigTimepoint', + multisig: 'AccountId32', + callHash: '[u8;32]', + }, + MultisigExecuted: { + approving: 'AccountId32', + timepoint: 'PalletMultisigTimepoint', + multisig: 'AccountId32', + callHash: '[u8;32]', + result: 'Result', + }, + MultisigCancelled: { + cancelling: 'AccountId32', + timepoint: 'PalletMultisigTimepoint', + multisig: 'AccountId32', + callHash: '[u8;32]', + }, + }, + }, + /** + * Lookup36: pallet_multisig::Timepoint + **/ + PalletMultisigTimepoint: { + height: 'u32', + index: 'u32', + }, + /** + * Lookup37: pallet_proxy::pallet::Event + **/ + PalletProxyEvent: { + _enum: { + ProxyExecuted: { + result: 'Result', + }, + PureCreated: { + pure: 'AccountId32', + who: 'AccountId32', + proxyType: 'RococoParachainRuntimeProxyType', + disambiguationIndex: 'u16', + }, + Announced: { + real: 'AccountId32', + proxy: 'AccountId32', + callHash: 'H256', + }, + ProxyAdded: { + delegator: 'AccountId32', + delegatee: 'AccountId32', + proxyType: 'RococoParachainRuntimeProxyType', + delay: 'u32', + }, + ProxyRemoved: { + delegator: 'AccountId32', + delegatee: 'AccountId32', + proxyType: 'RococoParachainRuntimeProxyType', + delay: 'u32', + }, + }, + }, + /** + * Lookup38: rococo_parachain_runtime::ProxyType + **/ + RococoParachainRuntimeProxyType: { + _enum: ['Any', 'NonTransfer', 'CancelProxy', 'Collator', 'Governance'], + }, + /** + * Lookup40: pallet_preimage::pallet::Event + **/ + PalletPreimageEvent: { + _enum: { + Noted: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + Requested: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + Cleared: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + }, + }, + /** + * Lookup41: pallet_balances::pallet::Event **/ PalletBalancesEvent: { _enum: { @@ -213,13 +367,27 @@ export default { }, }, /** - * Lookup30: frame_support::traits::tokens::misc::BalanceStatus + * Lookup42: frame_support::traits::tokens::misc::BalanceStatus **/ FrameSupportTokensMiscBalanceStatus: { _enum: ['Free', 'Reserved'], }, /** - * Lookup31: pallet_transaction_payment::pallet::Event + * Lookup43: pallet_vesting::pallet::Event + **/ + PalletVestingEvent: { + _enum: { + VestingUpdated: { + account: 'AccountId32', + unvested: 'u128', + }, + VestingCompleted: { + account: 'AccountId32', + }, + }, + }, + /** + * Lookup44: pallet_transaction_payment::pallet::Event **/ PalletTransactionPaymentEvent: { _enum: { @@ -231,420 +399,5370 @@ export default { }, }, /** - * Lookup32: pallet_sudo::pallet::Event + * Lookup45: pallet_treasury::pallet::Event **/ - PalletSudoEvent: { + PalletTreasuryEvent: { _enum: { - Sudid: { - sudoResult: 'Result', + Proposed: { + proposalIndex: 'u32', }, - KeyChanged: { - oldSudoer: 'Option', + Spending: { + budgetRemaining: 'u128', }, - SudoAsDone: { - sudoResult: 'Result', + Awarded: { + proposalIndex: 'u32', + award: 'u128', + account: 'AccountId32', + }, + Rejected: { + proposalIndex: 'u32', + slashed: 'u128', + }, + Burnt: { + burntFunds: 'u128', + }, + Rollover: { + rolloverBalance: 'u128', + }, + Deposit: { + value: 'u128', + }, + SpendApproved: { + proposalIndex: 'u32', + amount: 'u128', + beneficiary: 'AccountId32', + }, + UpdatedInactive: { + reactivated: 'u128', + deactivated: 'u128', }, }, }, /** - * Lookup36: pallet_identity_management_tee::pallet::Event + * Lookup46: pallet_democracy::pallet::Event **/ - PalletIdentityManagementTeeEvent: { + PalletDemocracyEvent: { _enum: { - UserShieldingKeySet: { + Proposed: { + proposalIndex: 'u32', + deposit: 'u128', + }, + Tabled: { + proposalIndex: 'u32', + deposit: 'u128', + }, + ExternalTabled: 'Null', + Started: { + refIndex: 'u32', + threshold: 'PalletDemocracyVoteThreshold', + }, + Passed: { + refIndex: 'u32', + }, + NotPassed: { + refIndex: 'u32', + }, + Cancelled: { + refIndex: 'u32', + }, + Delegated: { who: 'AccountId32', - key: '[u8;32]', + target: 'AccountId32', + }, + Undelegated: { + account: 'AccountId32', }, - ChallengeCodeSet: { + Vetoed: { who: 'AccountId32', - identity: 'LitentryPrimitivesIdentity', - code: '[u8;16]', + proposalHash: 'H256', + until: 'u32', + }, + Blacklisted: { + proposalHash: 'H256', + }, + Voted: { + voter: 'AccountId32', + refIndex: 'u32', + vote: 'PalletDemocracyVoteAccountVote', + }, + Seconded: { + seconder: 'AccountId32', + propIndex: 'u32', + }, + ProposalCanceled: { + propIndex: 'u32', + }, + MetadataSet: { + _alias: { + hash_: 'hash', + }, + owner: 'PalletDemocracyMetadataOwner', + hash_: 'H256', + }, + MetadataCleared: { + _alias: { + hash_: 'hash', + }, + owner: 'PalletDemocracyMetadataOwner', + hash_: 'H256', + }, + MetadataTransferred: { + _alias: { + hash_: 'hash', + }, + prevOwner: 'PalletDemocracyMetadataOwner', + owner: 'PalletDemocracyMetadataOwner', + hash_: 'H256', + }, + }, + }, + /** + * Lookup47: pallet_democracy::vote_threshold::VoteThreshold + **/ + PalletDemocracyVoteThreshold: { + _enum: ['SuperMajorityApprove', 'SuperMajorityAgainst', 'SimpleMajority'], + }, + /** + * Lookup48: pallet_democracy::vote::AccountVote + **/ + PalletDemocracyVoteAccountVote: { + _enum: { + Standard: { + vote: 'Vote', + balance: 'u128', }, - ChallengeCodeRemoved: { + Split: { + aye: 'u128', + nay: 'u128', + }, + }, + }, + /** + * Lookup50: pallet_democracy::types::MetadataOwner + **/ + PalletDemocracyMetadataOwner: { + _enum: { + External: 'Null', + Proposal: 'u32', + Referendum: 'u32', + }, + }, + /** + * Lookup51: pallet_collective::pallet::Event + **/ + PalletCollectiveEvent: { + _enum: { + Proposed: { + account: 'AccountId32', + proposalIndex: 'u32', + proposalHash: 'H256', + threshold: 'u32', + }, + Voted: { + account: 'AccountId32', + proposalHash: 'H256', + voted: 'bool', + yes: 'u32', + no: 'u32', + }, + Approved: { + proposalHash: 'H256', + }, + Disapproved: { + proposalHash: 'H256', + }, + Executed: { + proposalHash: 'H256', + result: 'Result', + }, + MemberExecuted: { + proposalHash: 'H256', + result: 'Result', + }, + Closed: { + proposalHash: 'H256', + yes: 'u32', + no: 'u32', + }, + }, + }, + /** + * Lookup53: pallet_membership::pallet::Event + **/ + PalletMembershipEvent: { + _enum: ['MemberAdded', 'MemberRemoved', 'MembersSwapped', 'MembersReset', 'KeyChanged', 'Dummy'], + }, + /** + * Lookup56: pallet_bounties::pallet::Event + **/ + PalletBountiesEvent: { + _enum: { + BountyProposed: { + index: 'u32', + }, + BountyRejected: { + index: 'u32', + bond: 'u128', + }, + BountyBecameActive: { + index: 'u32', + }, + BountyAwarded: { + index: 'u32', + beneficiary: 'AccountId32', + }, + BountyClaimed: { + index: 'u32', + payout: 'u128', + beneficiary: 'AccountId32', + }, + BountyCanceled: { + index: 'u32', + }, + BountyExtended: { + index: 'u32', + }, + }, + }, + /** + * Lookup57: pallet_tips::pallet::Event + **/ + PalletTipsEvent: { + _enum: { + NewTip: { + tipHash: 'H256', + }, + TipClosing: { + tipHash: 'H256', + }, + TipClosed: { + tipHash: 'H256', who: 'AccountId32', - identity: 'LitentryPrimitivesIdentity', + payout: 'u128', }, - IdentityCreated: { + TipRetracted: { + tipHash: 'H256', + }, + TipSlashed: { + tipHash: 'H256', + finder: 'AccountId32', + deposit: 'u128', + }, + }, + }, + /** + * Lookup58: pallet_identity::pallet::Event + **/ + PalletIdentityEvent: { + _enum: { + IdentitySet: { who: 'AccountId32', - identity: 'LitentryPrimitivesIdentity', }, - IdentityRemoved: { + IdentityCleared: { + who: 'AccountId32', + deposit: 'u128', + }, + IdentityKilled: { + who: 'AccountId32', + deposit: 'u128', + }, + JudgementRequested: { + who: 'AccountId32', + registrarIndex: 'u32', + }, + JudgementUnrequested: { who: 'AccountId32', - identity: 'LitentryPrimitivesIdentity', + registrarIndex: 'u32', + }, + JudgementGiven: { + target: 'AccountId32', + registrarIndex: 'u32', + }, + RegistrarAdded: { + registrarIndex: 'u32', + }, + SubIdentityAdded: { + sub: 'AccountId32', + main: 'AccountId32', + deposit: 'u128', + }, + SubIdentityRemoved: { + sub: 'AccountId32', + main: 'AccountId32', + deposit: 'u128', + }, + SubIdentityRevoked: { + sub: 'AccountId32', + main: 'AccountId32', + deposit: 'u128', + }, + }, + }, + /** + * Lookup59: cumulus_pallet_parachain_system::pallet::Event + **/ + CumulusPalletParachainSystemEvent: { + _enum: { + ValidationFunctionStored: 'Null', + ValidationFunctionApplied: { + relayChainBlockNum: 'u32', + }, + ValidationFunctionDiscarded: 'Null', + UpgradeAuthorized: { + codeHash: 'H256', + }, + DownwardMessagesReceived: { + count: 'u32', + }, + DownwardMessagesProcessed: { + weightUsed: 'SpWeightsWeightV2Weight', + dmqHead: 'H256', + }, + UpwardMessageSent: { + messageHash: 'Option<[u8;32]>', + }, + }, + }, + /** + * Lookup60: pallet_session::pallet::Event + **/ + PalletSessionEvent: { + _enum: { + NewSession: { + sessionIndex: 'u32', + }, + }, + }, + /** + * Lookup61: pallet_parachain_staking::pallet::Event + **/ + PalletParachainStakingEvent: { + _enum: { + NewRound: { + startingBlock: 'u32', + round: 'u32', + selectedCollatorsNumber: 'u32', + totalBalance: 'u128', + }, + JoinedCollatorCandidates: { + account: 'AccountId32', + amountLocked: 'u128', + newTotalAmtLocked: 'u128', + }, + CollatorChosen: { + round: 'u32', + collatorAccount: 'AccountId32', + totalExposedAmount: 'u128', + }, + CandidateBondLessRequested: { + candidate: 'AccountId32', + amountToDecrease: 'u128', + executeRound: 'u32', + }, + CandidateBondedMore: { + candidate: 'AccountId32', + amount: 'u128', + newTotalBond: 'u128', + }, + CandidateBondedLess: { + candidate: 'AccountId32', + amount: 'u128', + newBond: 'u128', + }, + CandidateWentOffline: { + candidate: 'AccountId32', + }, + CandidateBackOnline: { + candidate: 'AccountId32', + }, + CandidateScheduledExit: { + exitAllowedRound: 'u32', + candidate: 'AccountId32', + scheduledExit: 'u32', + }, + CancelledCandidateExit: { + candidate: 'AccountId32', }, + CancelledCandidateBondLess: { + candidate: 'AccountId32', + amount: 'u128', + executeRound: 'u32', + }, + CandidateLeft: { + exCandidate: 'AccountId32', + unlockedAmount: 'u128', + newTotalAmtLocked: 'u128', + }, + DelegationDecreaseScheduled: { + delegator: 'AccountId32', + candidate: 'AccountId32', + amountToDecrease: 'u128', + executeRound: 'u32', + }, + DelegationIncreased: { + delegator: 'AccountId32', + candidate: 'AccountId32', + amount: 'u128', + inTop: 'bool', + }, + DelegationDecreased: { + delegator: 'AccountId32', + candidate: 'AccountId32', + amount: 'u128', + inTop: 'bool', + }, + DelegatorExitScheduled: { + round: 'u32', + delegator: 'AccountId32', + scheduledExit: 'u32', + }, + DelegationRevocationScheduled: { + round: 'u32', + delegator: 'AccountId32', + candidate: 'AccountId32', + scheduledExit: 'u32', + }, + DelegatorLeft: { + delegator: 'AccountId32', + unstakedAmount: 'u128', + }, + DelegationRevoked: { + delegator: 'AccountId32', + candidate: 'AccountId32', + unstakedAmount: 'u128', + }, + DelegationKicked: { + delegator: 'AccountId32', + candidate: 'AccountId32', + unstakedAmount: 'u128', + }, + DelegatorExitCancelled: { + delegator: 'AccountId32', + }, + CancelledDelegationRequest: { + delegator: 'AccountId32', + cancelledRequest: 'PalletParachainStakingDelegationRequestsCancelledScheduledRequest', + collator: 'AccountId32', + }, + Delegation: { + delegator: 'AccountId32', + lockedAmount: 'u128', + candidate: 'AccountId32', + delegatorPosition: 'PalletParachainStakingDelegatorAdded', + autoCompound: 'Percent', + }, + DelegatorLeftCandidate: { + delegator: 'AccountId32', + candidate: 'AccountId32', + unstakedAmount: 'u128', + totalCandidateStaked: 'u128', + }, + Rewarded: { + account: 'AccountId32', + rewards: 'u128', + }, + ReservedForParachainBond: { + account: 'AccountId32', + value: 'u128', + }, + ParachainBondAccountSet: { + _alias: { + new_: 'new', + }, + old: 'AccountId32', + new_: 'AccountId32', + }, + ParachainBondReservePercentSet: { + _alias: { + new_: 'new', + }, + old: 'Percent', + new_: 'Percent', + }, + InflationSet: { + annualMin: 'Perbill', + annualIdeal: 'Perbill', + annualMax: 'Perbill', + roundMin: 'Perbill', + roundIdeal: 'Perbill', + roundMax: 'Perbill', + }, + StakeExpectationsSet: { + expectMin: 'u128', + expectIdeal: 'u128', + expectMax: 'u128', + }, + TotalSelectedSet: { + _alias: { + new_: 'new', + }, + old: 'u32', + new_: 'u32', + }, + CollatorCommissionSet: { + _alias: { + new_: 'new', + }, + old: 'Perbill', + new_: 'Perbill', + }, + BlocksPerRoundSet: { + _alias: { + new_: 'new', + }, + currentRound: 'u32', + firstBlock: 'u32', + old: 'u32', + new_: 'u32', + newPerRoundInflationMin: 'Perbill', + newPerRoundInflationIdeal: 'Perbill', + newPerRoundInflationMax: 'Perbill', + }, + CandidateWhiteListAdded: { + candidate: 'AccountId32', + }, + CandidateWhiteListRemoved: { + candidate: 'AccountId32', + }, + AutoCompoundSet: { + candidate: 'AccountId32', + delegator: 'AccountId32', + value: 'Percent', + }, + Compounded: { + candidate: 'AccountId32', + delegator: 'AccountId32', + amount: 'u128', + }, + }, + }, + /** + * Lookup62: pallet_parachain_staking::delegation_requests::CancelledScheduledRequest + **/ + PalletParachainStakingDelegationRequestsCancelledScheduledRequest: { + whenExecutable: 'u32', + action: 'PalletParachainStakingDelegationRequestsDelegationAction', + }, + /** + * Lookup63: pallet_parachain_staking::delegation_requests::DelegationAction + **/ + PalletParachainStakingDelegationRequestsDelegationAction: { + _enum: { + Revoke: 'u128', + Decrease: 'u128', + }, + }, + /** + * Lookup64: pallet_parachain_staking::types::DelegatorAdded + **/ + PalletParachainStakingDelegatorAdded: { + _enum: { + AddedToTop: { + newTotal: 'u128', + }, + AddedToBottom: 'Null', + }, + }, + /** + * Lookup67: cumulus_pallet_xcmp_queue::pallet::Event + **/ + CumulusPalletXcmpQueueEvent: { + _enum: { + Success: { + messageHash: 'Option<[u8;32]>', + weight: 'SpWeightsWeightV2Weight', + }, + Fail: { + messageHash: 'Option<[u8;32]>', + error: 'XcmV3TraitsError', + weight: 'SpWeightsWeightV2Weight', + }, + BadVersion: { + messageHash: 'Option<[u8;32]>', + }, + BadFormat: { + messageHash: 'Option<[u8;32]>', + }, + XcmpMessageSent: { + messageHash: 'Option<[u8;32]>', + }, + OverweightEnqueued: { + sender: 'u32', + sentAt: 'u32', + index: 'u64', + required: 'SpWeightsWeightV2Weight', + }, + OverweightServiced: { + index: 'u64', + used: 'SpWeightsWeightV2Weight', + }, + }, + }, + /** + * Lookup68: xcm::v3::traits::Error + **/ + XcmV3TraitsError: { + _enum: { + Overflow: 'Null', + Unimplemented: 'Null', + UntrustedReserveLocation: 'Null', + UntrustedTeleportLocation: 'Null', + LocationFull: 'Null', + LocationNotInvertible: 'Null', + BadOrigin: 'Null', + InvalidLocation: 'Null', + AssetNotFound: 'Null', + FailedToTransactAsset: 'Null', + NotWithdrawable: 'Null', + LocationCannotHold: 'Null', + ExceedsMaxMessageSize: 'Null', + DestinationUnsupported: 'Null', + Transport: 'Null', + Unroutable: 'Null', + UnknownClaim: 'Null', + FailedToDecode: 'Null', + MaxWeightInvalid: 'Null', + NotHoldingFees: 'Null', + TooExpensive: 'Null', + Trap: 'u64', + ExpectationFalse: 'Null', + PalletNotFound: 'Null', + NameMismatch: 'Null', + VersionIncompatible: 'Null', + HoldingWouldOverflow: 'Null', + ExportError: 'Null', + ReanchorFailed: 'Null', + NoDeal: 'Null', + FeesNotMet: 'Null', + LockError: 'Null', + NoPermission: 'Null', + Unanchored: 'Null', + NotDepositable: 'Null', + UnhandledXcmVersion: 'Null', + WeightLimitReached: 'SpWeightsWeightV2Weight', + Barrier: 'Null', + WeightNotComputable: 'Null', + ExceedsStackLimit: 'Null', + }, + }, + /** + * Lookup70: pallet_xcm::pallet::Event + **/ + PalletXcmEvent: { + _enum: { + Attempted: 'XcmV3TraitsOutcome', + Sent: '(XcmV3MultiLocation,XcmV3MultiLocation,XcmV3Xcm)', + UnexpectedResponse: '(XcmV3MultiLocation,u64)', + ResponseReady: '(u64,XcmV3Response)', + Notified: '(u64,u8,u8)', + NotifyOverweight: '(u64,u8,u8,SpWeightsWeightV2Weight,SpWeightsWeightV2Weight)', + NotifyDispatchError: '(u64,u8,u8)', + NotifyDecodeFailed: '(u64,u8,u8)', + InvalidResponder: '(XcmV3MultiLocation,u64,Option)', + InvalidResponderVersion: '(XcmV3MultiLocation,u64)', + ResponseTaken: 'u64', + AssetsTrapped: '(H256,XcmV3MultiLocation,XcmVersionedMultiAssets)', + VersionChangeNotified: '(XcmV3MultiLocation,u32,XcmV3MultiassetMultiAssets)', + SupportedVersionChanged: '(XcmV3MultiLocation,u32)', + NotifyTargetSendFail: '(XcmV3MultiLocation,u64,XcmV3TraitsError)', + NotifyTargetMigrationFail: '(XcmVersionedMultiLocation,u64)', + InvalidQuerierVersion: '(XcmV3MultiLocation,u64)', + InvalidQuerier: '(XcmV3MultiLocation,u64,XcmV3MultiLocation,Option)', + VersionNotifyStarted: '(XcmV3MultiLocation,XcmV3MultiassetMultiAssets)', + VersionNotifyRequested: '(XcmV3MultiLocation,XcmV3MultiassetMultiAssets)', + VersionNotifyUnrequested: '(XcmV3MultiLocation,XcmV3MultiassetMultiAssets)', + FeesPaid: '(XcmV3MultiLocation,XcmV3MultiassetMultiAssets)', + AssetsClaimed: '(H256,XcmV3MultiLocation,XcmVersionedMultiAssets)', + }, + }, + /** + * Lookup71: xcm::v3::traits::Outcome + **/ + XcmV3TraitsOutcome: { + _enum: { + Complete: 'SpWeightsWeightV2Weight', + Incomplete: '(SpWeightsWeightV2Weight,XcmV3TraitsError)', + Error: 'XcmV3TraitsError', + }, + }, + /** + * Lookup72: xcm::v3::multilocation::MultiLocation + **/ + XcmV3MultiLocation: { + parents: 'u8', + interior: 'XcmV3Junctions', + }, + /** + * Lookup73: xcm::v3::junctions::Junctions + **/ + XcmV3Junctions: { + _enum: { + Here: 'Null', + X1: 'XcmV3Junction', + X2: '(XcmV3Junction,XcmV3Junction)', + X3: '(XcmV3Junction,XcmV3Junction,XcmV3Junction)', + X4: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', + X5: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', + X6: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', + X7: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', + X8: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', + }, + }, + /** + * Lookup74: xcm::v3::junction::Junction + **/ + XcmV3Junction: { + _enum: { + Parachain: 'Compact', + AccountId32: { + network: 'Option', + id: '[u8;32]', + }, + AccountIndex64: { + network: 'Option', + index: 'Compact', + }, + AccountKey20: { + network: 'Option', + key: '[u8;20]', + }, + PalletInstance: 'u8', + GeneralIndex: 'Compact', + GeneralKey: { + length: 'u8', + data: '[u8;32]', + }, + OnlyChild: 'Null', + Plurality: { + id: 'XcmV3JunctionBodyId', + part: 'XcmV3JunctionBodyPart', + }, + GlobalConsensus: 'XcmV3JunctionNetworkId', + }, + }, + /** + * Lookup77: xcm::v3::junction::NetworkId + **/ + XcmV3JunctionNetworkId: { + _enum: { + ByGenesis: '[u8;32]', + ByFork: { + blockNumber: 'u64', + blockHash: '[u8;32]', + }, + Polkadot: 'Null', + Kusama: 'Null', + Westend: 'Null', + Rococo: 'Null', + Wococo: 'Null', + Ethereum: { + chainId: 'Compact', + }, + BitcoinCore: 'Null', + BitcoinCash: 'Null', + }, + }, + /** + * Lookup80: xcm::v3::junction::BodyId + **/ + XcmV3JunctionBodyId: { + _enum: { + Unit: 'Null', + Moniker: '[u8;4]', + Index: 'Compact', + Executive: 'Null', + Technical: 'Null', + Legislative: 'Null', + Judicial: 'Null', + Defense: 'Null', + Administration: 'Null', + Treasury: 'Null', + }, + }, + /** + * Lookup81: xcm::v3::junction::BodyPart + **/ + XcmV3JunctionBodyPart: { + _enum: { + Voice: 'Null', + Members: { + count: 'Compact', + }, + Fraction: { + nom: 'Compact', + denom: 'Compact', + }, + AtLeastProportion: { + nom: 'Compact', + denom: 'Compact', + }, + MoreThanProportion: { + nom: 'Compact', + denom: 'Compact', + }, + }, + }, + /** + * Lookup82: xcm::v3::Xcm + **/ + XcmV3Xcm: 'Vec', + /** + * Lookup84: xcm::v3::Instruction + **/ + XcmV3Instruction: { + _enum: { + WithdrawAsset: 'XcmV3MultiassetMultiAssets', + ReserveAssetDeposited: 'XcmV3MultiassetMultiAssets', + ReceiveTeleportedAsset: 'XcmV3MultiassetMultiAssets', + QueryResponse: { + queryId: 'Compact', + response: 'XcmV3Response', + maxWeight: 'SpWeightsWeightV2Weight', + querier: 'Option', + }, + TransferAsset: { + assets: 'XcmV3MultiassetMultiAssets', + beneficiary: 'XcmV3MultiLocation', + }, + TransferReserveAsset: { + assets: 'XcmV3MultiassetMultiAssets', + dest: 'XcmV3MultiLocation', + xcm: 'XcmV3Xcm', + }, + Transact: { + originKind: 'XcmV2OriginKind', + requireWeightAtMost: 'SpWeightsWeightV2Weight', + call: 'XcmDoubleEncoded', + }, + HrmpNewChannelOpenRequest: { + sender: 'Compact', + maxMessageSize: 'Compact', + maxCapacity: 'Compact', + }, + HrmpChannelAccepted: { + recipient: 'Compact', + }, + HrmpChannelClosing: { + initiator: 'Compact', + sender: 'Compact', + recipient: 'Compact', + }, + ClearOrigin: 'Null', + DescendOrigin: 'XcmV3Junctions', + ReportError: 'XcmV3QueryResponseInfo', + DepositAsset: { + assets: 'XcmV3MultiassetMultiAssetFilter', + beneficiary: 'XcmV3MultiLocation', + }, + DepositReserveAsset: { + assets: 'XcmV3MultiassetMultiAssetFilter', + dest: 'XcmV3MultiLocation', + xcm: 'XcmV3Xcm', + }, + ExchangeAsset: { + give: 'XcmV3MultiassetMultiAssetFilter', + want: 'XcmV3MultiassetMultiAssets', + maximal: 'bool', + }, + InitiateReserveWithdraw: { + assets: 'XcmV3MultiassetMultiAssetFilter', + reserve: 'XcmV3MultiLocation', + xcm: 'XcmV3Xcm', + }, + InitiateTeleport: { + assets: 'XcmV3MultiassetMultiAssetFilter', + dest: 'XcmV3MultiLocation', + xcm: 'XcmV3Xcm', + }, + ReportHolding: { + responseInfo: 'XcmV3QueryResponseInfo', + assets: 'XcmV3MultiassetMultiAssetFilter', + }, + BuyExecution: { + fees: 'XcmV3MultiAsset', + weightLimit: 'XcmV3WeightLimit', + }, + RefundSurplus: 'Null', + SetErrorHandler: 'XcmV3Xcm', + SetAppendix: 'XcmV3Xcm', + ClearError: 'Null', + ClaimAsset: { + assets: 'XcmV3MultiassetMultiAssets', + ticket: 'XcmV3MultiLocation', + }, + Trap: 'Compact', + SubscribeVersion: { + queryId: 'Compact', + maxResponseWeight: 'SpWeightsWeightV2Weight', + }, + UnsubscribeVersion: 'Null', + BurnAsset: 'XcmV3MultiassetMultiAssets', + ExpectAsset: 'XcmV3MultiassetMultiAssets', + ExpectOrigin: 'Option', + ExpectError: 'Option<(u32,XcmV3TraitsError)>', + ExpectTransactStatus: 'XcmV3MaybeErrorCode', + QueryPallet: { + moduleName: 'Bytes', + responseInfo: 'XcmV3QueryResponseInfo', + }, + ExpectPallet: { + index: 'Compact', + name: 'Bytes', + moduleName: 'Bytes', + crateMajor: 'Compact', + minCrateMinor: 'Compact', + }, + ReportTransactStatus: 'XcmV3QueryResponseInfo', + ClearTransactStatus: 'Null', + UniversalOrigin: 'XcmV3Junction', + ExportMessage: { + network: 'XcmV3JunctionNetworkId', + destination: 'XcmV3Junctions', + xcm: 'XcmV3Xcm', + }, + LockAsset: { + asset: 'XcmV3MultiAsset', + unlocker: 'XcmV3MultiLocation', + }, + UnlockAsset: { + asset: 'XcmV3MultiAsset', + target: 'XcmV3MultiLocation', + }, + NoteUnlockable: { + asset: 'XcmV3MultiAsset', + owner: 'XcmV3MultiLocation', + }, + RequestUnlock: { + asset: 'XcmV3MultiAsset', + locker: 'XcmV3MultiLocation', + }, + SetFeesMode: { + jitWithdraw: 'bool', + }, + SetTopic: '[u8;32]', + ClearTopic: 'Null', + AliasOrigin: 'XcmV3MultiLocation', + UnpaidExecution: { + weightLimit: 'XcmV3WeightLimit', + checkOrigin: 'Option', + }, + }, + }, + /** + * Lookup85: xcm::v3::multiasset::MultiAssets + **/ + XcmV3MultiassetMultiAssets: 'Vec', + /** + * Lookup87: xcm::v3::multiasset::MultiAsset + **/ + XcmV3MultiAsset: { + id: 'XcmV3MultiassetAssetId', + fun: 'XcmV3MultiassetFungibility', + }, + /** + * Lookup88: xcm::v3::multiasset::AssetId + **/ + XcmV3MultiassetAssetId: { + _enum: { + Concrete: 'XcmV3MultiLocation', + Abstract: '[u8;32]', + }, + }, + /** + * Lookup89: xcm::v3::multiasset::Fungibility + **/ + XcmV3MultiassetFungibility: { + _enum: { + Fungible: 'Compact', + NonFungible: 'XcmV3MultiassetAssetInstance', + }, + }, + /** + * Lookup90: xcm::v3::multiasset::AssetInstance + **/ + XcmV3MultiassetAssetInstance: { + _enum: { + Undefined: 'Null', + Index: 'Compact', + Array4: '[u8;4]', + Array8: '[u8;8]', + Array16: '[u8;16]', + Array32: '[u8;32]', + }, + }, + /** + * Lookup93: xcm::v3::Response + **/ + XcmV3Response: { + _enum: { + Null: 'Null', + Assets: 'XcmV3MultiassetMultiAssets', + ExecutionResult: 'Option<(u32,XcmV3TraitsError)>', + Version: 'u32', + PalletsInfo: 'Vec', + DispatchResult: 'XcmV3MaybeErrorCode', + }, + }, + /** + * Lookup97: xcm::v3::PalletInfo + **/ + XcmV3PalletInfo: { + index: 'Compact', + name: 'Bytes', + moduleName: 'Bytes', + major: 'Compact', + minor: 'Compact', + patch: 'Compact', + }, + /** + * Lookup100: xcm::v3::MaybeErrorCode + **/ + XcmV3MaybeErrorCode: { + _enum: { + Success: 'Null', + Error: 'Bytes', + TruncatedError: 'Bytes', + }, + }, + /** + * Lookup103: xcm::v2::OriginKind + **/ + XcmV2OriginKind: { + _enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm'], + }, + /** + * Lookup104: xcm::double_encoded::DoubleEncoded + **/ + XcmDoubleEncoded: { + encoded: 'Bytes', + }, + /** + * Lookup105: xcm::v3::QueryResponseInfo + **/ + XcmV3QueryResponseInfo: { + destination: 'XcmV3MultiLocation', + queryId: 'Compact', + maxWeight: 'SpWeightsWeightV2Weight', + }, + /** + * Lookup106: xcm::v3::multiasset::MultiAssetFilter + **/ + XcmV3MultiassetMultiAssetFilter: { + _enum: { + Definite: 'XcmV3MultiassetMultiAssets', + Wild: 'XcmV3MultiassetWildMultiAsset', + }, + }, + /** + * Lookup107: xcm::v3::multiasset::WildMultiAsset + **/ + XcmV3MultiassetWildMultiAsset: { + _enum: { + All: 'Null', + AllOf: { + id: 'XcmV3MultiassetAssetId', + fun: 'XcmV3MultiassetWildFungibility', + }, + AllCounted: 'Compact', + AllOfCounted: { + id: 'XcmV3MultiassetAssetId', + fun: 'XcmV3MultiassetWildFungibility', + count: 'Compact', + }, + }, + }, + /** + * Lookup108: xcm::v3::multiasset::WildFungibility + **/ + XcmV3MultiassetWildFungibility: { + _enum: ['Fungible', 'NonFungible'], + }, + /** + * Lookup109: xcm::v3::WeightLimit + **/ + XcmV3WeightLimit: { + _enum: { + Unlimited: 'Null', + Limited: 'SpWeightsWeightV2Weight', + }, + }, + /** + * Lookup110: xcm::VersionedMultiAssets + **/ + XcmVersionedMultiAssets: { + _enum: { + __Unused0: 'Null', + V2: 'XcmV2MultiassetMultiAssets', + __Unused2: 'Null', + V3: 'XcmV3MultiassetMultiAssets', + }, + }, + /** + * Lookup111: xcm::v2::multiasset::MultiAssets + **/ + XcmV2MultiassetMultiAssets: 'Vec', + /** + * Lookup113: xcm::v2::multiasset::MultiAsset + **/ + XcmV2MultiAsset: { + id: 'XcmV2MultiassetAssetId', + fun: 'XcmV2MultiassetFungibility', + }, + /** + * Lookup114: xcm::v2::multiasset::AssetId + **/ + XcmV2MultiassetAssetId: { + _enum: { + Concrete: 'XcmV2MultiLocation', + Abstract: 'Bytes', + }, + }, + /** + * Lookup115: xcm::v2::multilocation::MultiLocation + **/ + XcmV2MultiLocation: { + parents: 'u8', + interior: 'XcmV2MultilocationJunctions', + }, + /** + * Lookup116: xcm::v2::multilocation::Junctions + **/ + XcmV2MultilocationJunctions: { + _enum: { + Here: 'Null', + X1: 'XcmV2Junction', + X2: '(XcmV2Junction,XcmV2Junction)', + X3: '(XcmV2Junction,XcmV2Junction,XcmV2Junction)', + X4: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', + X5: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', + X6: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', + X7: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', + X8: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', + }, + }, + /** + * Lookup117: xcm::v2::junction::Junction + **/ + XcmV2Junction: { + _enum: { + Parachain: 'Compact', + AccountId32: { + network: 'XcmV2NetworkId', + id: '[u8;32]', + }, + AccountIndex64: { + network: 'XcmV2NetworkId', + index: 'Compact', + }, + AccountKey20: { + network: 'XcmV2NetworkId', + key: '[u8;20]', + }, + PalletInstance: 'u8', + GeneralIndex: 'Compact', + GeneralKey: 'Bytes', + OnlyChild: 'Null', + Plurality: { + id: 'XcmV2BodyId', + part: 'XcmV2BodyPart', + }, + }, + }, + /** + * Lookup118: xcm::v2::NetworkId + **/ + XcmV2NetworkId: { + _enum: { + Any: 'Null', + Named: 'Bytes', + Polkadot: 'Null', + Kusama: 'Null', + }, + }, + /** + * Lookup120: xcm::v2::BodyId + **/ + XcmV2BodyId: { + _enum: { + Unit: 'Null', + Named: 'Bytes', + Index: 'Compact', + Executive: 'Null', + Technical: 'Null', + Legislative: 'Null', + Judicial: 'Null', + Defense: 'Null', + Administration: 'Null', + Treasury: 'Null', + }, + }, + /** + * Lookup121: xcm::v2::BodyPart + **/ + XcmV2BodyPart: { + _enum: { + Voice: 'Null', + Members: { + count: 'Compact', + }, + Fraction: { + nom: 'Compact', + denom: 'Compact', + }, + AtLeastProportion: { + nom: 'Compact', + denom: 'Compact', + }, + MoreThanProportion: { + nom: 'Compact', + denom: 'Compact', + }, + }, + }, + /** + * Lookup122: xcm::v2::multiasset::Fungibility + **/ + XcmV2MultiassetFungibility: { + _enum: { + Fungible: 'Compact', + NonFungible: 'XcmV2MultiassetAssetInstance', + }, + }, + /** + * Lookup123: xcm::v2::multiasset::AssetInstance + **/ + XcmV2MultiassetAssetInstance: { + _enum: { + Undefined: 'Null', + Index: 'Compact', + Array4: '[u8;4]', + Array8: '[u8;8]', + Array16: '[u8;16]', + Array32: '[u8;32]', + Blob: 'Bytes', + }, + }, + /** + * Lookup124: xcm::VersionedMultiLocation + **/ + XcmVersionedMultiLocation: { + _enum: { + __Unused0: 'Null', + V2: 'XcmV2MultiLocation', + __Unused2: 'Null', + V3: 'XcmV3MultiLocation', + }, + }, + /** + * Lookup125: cumulus_pallet_xcm::pallet::Event + **/ + CumulusPalletXcmEvent: { + _enum: { + InvalidFormat: '[u8;32]', + UnsupportedVersion: '[u8;32]', + ExecutedDownward: '([u8;32],XcmV3TraitsOutcome)', + }, + }, + /** + * Lookup126: cumulus_pallet_dmp_queue::pallet::Event + **/ + CumulusPalletDmpQueueEvent: { + _enum: { + InvalidFormat: { + messageId: '[u8;32]', + }, + UnsupportedVersion: { + messageId: '[u8;32]', + }, + ExecutedDownward: { + messageId: '[u8;32]', + outcome: 'XcmV3TraitsOutcome', + }, + WeightExhausted: { + messageId: '[u8;32]', + remainingWeight: 'SpWeightsWeightV2Weight', + requiredWeight: 'SpWeightsWeightV2Weight', + }, + OverweightEnqueued: { + messageId: '[u8;32]', + overweightIndex: 'u64', + requiredWeight: 'SpWeightsWeightV2Weight', + }, + OverweightServiced: { + overweightIndex: 'u64', + weightUsed: 'SpWeightsWeightV2Weight', + }, + MaxMessagesExhausted: { + messageId: '[u8;32]', + }, + }, + }, + /** + * Lookup127: orml_xtokens::module::Event + **/ + OrmlXtokensModuleEvent: { + _enum: { + TransferredMultiAssets: { + sender: 'AccountId32', + assets: 'XcmV3MultiassetMultiAssets', + fee: 'XcmV3MultiAsset', + dest: 'XcmV3MultiLocation', + }, + }, + }, + /** + * Lookup128: orml_tokens::module::Event + **/ + OrmlTokensModuleEvent: { + _enum: { + Endowed: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + DustLost: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + Transfer: { + currencyId: 'u128', + from: 'AccountId32', + to: 'AccountId32', + amount: 'u128', + }, + Reserved: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + Unreserved: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + ReserveRepatriated: { + currencyId: 'u128', + from: 'AccountId32', + to: 'AccountId32', + amount: 'u128', + status: 'FrameSupportTokensMiscBalanceStatus', + }, + BalanceSet: { + currencyId: 'u128', + who: 'AccountId32', + free: 'u128', + reserved: 'u128', + }, + TotalIssuanceSet: { + currencyId: 'u128', + amount: 'u128', + }, + Withdrawn: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + Slashed: { + currencyId: 'u128', + who: 'AccountId32', + freeAmount: 'u128', + reservedAmount: 'u128', + }, + Deposited: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + LockSet: { + lockId: '[u8;8]', + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + LockRemoved: { + lockId: '[u8;8]', + currencyId: 'u128', + who: 'AccountId32', + }, + Locked: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + Unlocked: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + }, + }, + /** + * Lookup129: pallet_bridge::pallet::Event + **/ + PalletBridgeEvent: { + _enum: { + RelayerThresholdChanged: 'u32', + ChainWhitelisted: 'u8', + RelayerAdded: 'AccountId32', + RelayerRemoved: 'AccountId32', + FungibleTransfer: '(u8,u64,[u8;32],u128,Bytes)', + NonFungibleTransfer: '(u8,u64,[u8;32],Bytes,Bytes,Bytes)', + GenericTransfer: '(u8,u64,[u8;32],Bytes)', + VoteFor: '(u8,u64,AccountId32)', + VoteAgainst: '(u8,u64,AccountId32)', + ProposalApproved: '(u8,u64)', + ProposalRejected: '(u8,u64)', + ProposalSucceeded: '(u8,u64)', + ProposalFailed: '(u8,u64)', + FeeUpdated: { + destId: 'u8', + fee: 'u128', + }, + }, + }, + /** + * Lookup130: pallet_bridge_transfer::pallet::Event + **/ + PalletBridgeTransferEvent: { + _enum: { + MaximumIssuanceChanged: { + oldValue: 'u128', + }, + NativeTokenMinted: { + to: 'AccountId32', + amount: 'u128', + }, + }, + }, + /** + * Lookup131: pallet_drop3::pallet::Event + **/ + PalletDrop3Event: { + _enum: { + AdminChanged: { + oldAdmin: 'Option', + }, + BalanceSlashed: { + who: 'AccountId32', + amount: 'u128', + }, + RewardPoolApproved: { + id: 'u64', + }, + RewardPoolRejected: { + id: 'u64', + }, + RewardPoolStarted: { + id: 'u64', + }, + RewardPoolStopped: { + id: 'u64', + }, + RewardPoolRemoved: { + id: 'u64', + name: 'Bytes', + owner: 'AccountId32', + }, + RewardPoolProposed: { + id: 'u64', + name: 'Bytes', + owner: 'AccountId32', + }, + RewardSent: { + to: 'AccountId32', + amount: 'u128', + }, + }, + }, + /** + * Lookup133: pallet_extrinsic_filter::pallet::Event + **/ + PalletExtrinsicFilterEvent: { + _enum: { + ModeSet: { + newMode: 'PalletExtrinsicFilterOperationalMode', + }, + ExtrinsicsBlocked: { + palletNameBytes: 'Bytes', + functionNameBytes: 'Option', + }, + ExtrinsicsUnblocked: { + palletNameBytes: 'Bytes', + functionNameBytes: 'Option', + }, + }, + }, + /** + * Lookup134: pallet_extrinsic_filter::OperationalMode + **/ + PalletExtrinsicFilterOperationalMode: { + _enum: ['Normal', 'Safe', 'Test'], + }, + /** + * Lookup136: pallet_identity_management::pallet::Event + **/ + PalletIdentityManagementEvent: { + _enum: { + DelegateeAdded: { + account: 'AccountId32', + }, + DelegateeRemoved: { + account: 'AccountId32', + }, + CreateIdentityRequested: { + shard: 'H256', + }, + RemoveIdentityRequested: { + shard: 'H256', + }, + VerifyIdentityRequested: { + shard: 'H256', + }, + SetUserShieldingKeyRequested: { + shard: 'H256', + }, + UserShieldingKeySet: { + account: 'AccountId32', + idGraph: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + IdentityCreated: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + code: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + IdentityRemoved: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + IdentityVerified: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + SetUserShieldingKeyFailed: { + account: 'Option', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + CreateIdentityFailed: { + account: 'Option', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + RemoveIdentityFailed: { + account: 'Option', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + VerifyIdentityFailed: { + account: 'Option', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + ImportScheduledEnclaveFailed: 'Null', + UnclassifiedError: { + account: 'Option', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + }, + }, + /** + * Lookup137: core_primitives::key::AesOutput + **/ + CorePrimitivesKeyAesOutput: { + ciphertext: 'Bytes', + aad: 'Bytes', + nonce: '[u8;12]', + }, + /** + * Lookup139: core_primitives::error::ErrorDetail + **/ + CorePrimitivesErrorErrorDetail: { + _enum: { + ImportError: 'Null', + StfError: 'Bytes', + SendStfRequestFailed: 'Null', + ChallengeCodeNotFound: 'Null', + UserShieldingKeyNotFound: 'Null', + ParseError: 'Null', + DataProviderError: 'Bytes', + InvalidIdentity: 'Null', + WrongWeb2Handle: 'Null', + UnexpectedMessage: 'Null', + WrongSignatureType: 'Null', + VerifySubstrateSignatureFailed: 'Null', + VerifyEvmSignatureFailed: 'Null', + RecoverEvmAddressFailed: 'Null', + }, + }, + /** + * Lookup141: pallet_asset_manager::pallet::Event + **/ + PalletAssetManagerEvent: { + _enum: { + ForeignAssetMetadataUpdated: { + assetId: 'u128', + metadata: 'PalletAssetManagerAssetMetadata', + }, + ForeignAssetTrackerUpdated: { + oldAssetTracker: 'u128', + newAssetTracker: 'u128', + }, + ForeignAssetTypeRegistered: { + assetId: 'u128', + assetType: 'RuntimeCommonXcmImplCurrencyId', + }, + ForeignAssetTypeRemoved: { + assetId: 'u128', + removedAssetType: 'RuntimeCommonXcmImplCurrencyId', + defaultAssetType: 'RuntimeCommonXcmImplCurrencyId', + }, + UnitsPerSecondChanged: { + assetId: 'u128', + unitsPerSecond: 'u128', + }, + }, + }, + /** + * Lookup142: pallet_asset_manager::pallet::AssetMetadata + **/ + PalletAssetManagerAssetMetadata: { + name: 'Bytes', + symbol: 'Bytes', + decimals: 'u8', + minimalBalance: 'u128', + isFrozen: 'bool', + }, + /** + * Lookup143: runtime_common::xcm_impl::CurrencyId + **/ + RuntimeCommonXcmImplCurrencyId: { + _enum: { + SelfReserve: 'Null', + ParachainReserve: 'XcmV3MultiLocation', + }, + }, + /** + * Lookup144: rococo_parachain_runtime::Runtime + **/ + RococoParachainRuntimeRuntime: 'Null', + /** + * Lookup145: pallet_vc_management::pallet::Event + **/ + PalletVcManagementEvent: { + _enum: { + VCRequested: { + account: 'AccountId32', + shard: 'H256', + assertion: 'CorePrimitivesAssertion', + }, + VCDisabled: { + account: 'AccountId32', + index: 'H256', + }, + VCRevoked: { + account: 'AccountId32', + index: 'H256', + }, + VCIssued: { + account: 'AccountId32', + assertion: 'CorePrimitivesAssertion', + index: 'H256', + vc: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + AdminChanged: { + oldAdmin: 'Option', + newAdmin: 'Option', + }, + SchemaIssued: { + account: 'AccountId32', + shard: 'H256', + index: 'u64', + }, + SchemaDisabled: { + account: 'AccountId32', + shard: 'H256', + index: 'u64', + }, + SchemaActivated: { + account: 'AccountId32', + shard: 'H256', + index: 'u64', + }, + SchemaRevoked: { + account: 'AccountId32', + shard: 'H256', + index: 'u64', + }, + RequestVCFailed: { + account: 'Option', + assertion: 'CorePrimitivesAssertion', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + UnclassifiedError: { + account: 'Option', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + VCRegistryItemAdded: { + account: 'AccountId32', + assertion: 'CorePrimitivesAssertion', + index: 'H256', + }, + VCRegistryItemRemoved: { + index: 'H256', + }, + VCRegistryCleared: 'Null', + }, + }, + /** + * Lookup146: core_primitives::assertion::Assertion + **/ + CorePrimitivesAssertion: { + _enum: { + A1: 'Null', + A2: 'Bytes', + A3: '(Bytes,Bytes,Bytes)', + A4: 'Bytes', + A5: 'Bytes', + A6: 'Null', + A7: 'Bytes', + A8: 'Vec', + A9: 'Null', + A10: 'Bytes', + A11: 'Bytes', + A13: 'u32', + }, + }, + /** + * Lookup149: core_primitives::assertion::IndexingNetwork + **/ + CorePrimitivesAssertionIndexingNetwork: { + _enum: ['Litentry', 'Litmus', 'Polkadot', 'Kusama', 'Khala', 'Ethereum'], + }, + /** + * Lookup151: pallet_group::pallet::Event + **/ + PalletGroupEvent: { + _enum: { + GroupMemberAdded: 'AccountId32', + GroupMemberRemoved: 'AccountId32', + }, + }, + /** + * Lookup153: pallet_teerex::pallet::Event + **/ + PalletTeerexEvent: { + _enum: { + AdminChanged: { + oldAdmin: 'Option', + }, + AddedEnclave: '(AccountId32,Bytes)', + RemovedEnclave: 'AccountId32', + Forwarded: 'H256', + ShieldFunds: 'Bytes', + UnshieldedFunds: 'AccountId32', + ProcessedParentchainBlock: '(AccountId32,H256,H256,u32)', + SetHeartbeatTimeout: 'u64', + UpdatedScheduledEnclave: '(u64,[u8;32])', + RemovedScheduledEnclave: 'u64', + PublishedHash: { + _alias: { + hash_: 'hash', + }, + mrEnclave: '[u8;32]', + hash_: 'H256', + data: 'Bytes', + }, + }, + }, + /** + * Lookup154: pallet_sidechain::pallet::Event + **/ + PalletSidechainEvent: { + _enum: { + ProposedSidechainBlock: '(AccountId32,H256)', + FinalizedSidechainBlock: '(AccountId32,H256)', + }, + }, + /** + * Lookup155: pallet_teeracle::pallet::Event + **/ + PalletTeeracleEvent: { + _enum: { + ExchangeRateUpdated: '(Bytes,Bytes,Option)', + ExchangeRateDeleted: '(Bytes,Bytes)', + OracleUpdated: '(Bytes,Bytes)', + AddedToWhitelist: '(Bytes,[u8;32])', + RemovedFromWhitelist: '(Bytes,[u8;32])', + }, + }, + /** + * Lookup157: substrate_fixed::FixedU64, typenum::bit::B0>, typenum::bit::B0>, typenum::bit::B0>, typenum::bit::B0>, typenum::bit::B0>> + **/ + SubstrateFixedFixedU64: { + bits: 'u64', + }, + /** + * Lookup162: typenum::uint::UInt, typenum::bit::B0> + **/ + TypenumUIntUInt: { + msb: 'TypenumUIntUTerm', + lsb: 'TypenumBitB0', + }, + /** + * Lookup163: typenum::uint::UInt + **/ + TypenumUIntUTerm: { + msb: 'TypenumUintUTerm', + lsb: 'TypenumBitB1', + }, + /** + * Lookup164: typenum::uint::UTerm + **/ + TypenumUintUTerm: 'Null', + /** + * Lookup165: typenum::bit::B1 + **/ + TypenumBitB1: 'Null', + /** + * Lookup166: typenum::bit::B0 + **/ + TypenumBitB0: 'Null', + /** + * Lookup167: pallet_identity_management_mock::pallet::Event + **/ + PalletIdentityManagementMockEvent: { + _enum: { + DelegateeAdded: { + account: 'AccountId32', + }, + DelegateeRemoved: { + account: 'AccountId32', + }, + CreateIdentityRequested: { + shard: 'H256', + }, + RemoveIdentityRequested: { + shard: 'H256', + }, + VerifyIdentityRequested: { + shard: 'H256', + }, + SetUserShieldingKeyRequested: { + shard: 'H256', + }, + UserShieldingKeySetPlain: { + account: 'AccountId32', + }, + UserShieldingKeySet: { + account: 'AccountId32', + }, + IdentityCreatedPlain: { + account: 'AccountId32', + identity: 'MockTeePrimitivesIdentity', + code: '[u8;16]', + idGraph: 'Vec<(MockTeePrimitivesIdentity,PalletIdentityManagementMockIdentityContext)>', + }, + IdentityCreated: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + code: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + }, + IdentityRemovedPlain: { + account: 'AccountId32', + identity: 'MockTeePrimitivesIdentity', + idGraph: 'Vec<(MockTeePrimitivesIdentity,PalletIdentityManagementMockIdentityContext)>', + }, + IdentityRemoved: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + }, + IdentityVerifiedPlain: { + account: 'AccountId32', + identity: 'MockTeePrimitivesIdentity', + idGraph: 'Vec<(MockTeePrimitivesIdentity,PalletIdentityManagementMockIdentityContext)>', + }, + IdentityVerified: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + }, + SomeError: { + func: 'Bytes', + error: 'Bytes', + }, + }, + }, + /** + * Lookup168: mock_tee_primitives::identity::Identity + **/ + MockTeePrimitivesIdentity: { + _enum: { + Substrate: { + network: 'MockTeePrimitivesIdentitySubstrateNetwork', + address: 'MockTeePrimitivesIdentityAddress32', + }, + Evm: { + network: 'MockTeePrimitivesIdentityEvmNetwork', + address: 'MockTeePrimitivesIdentityAddress20', + }, + Web2: { + network: 'MockTeePrimitivesIdentityWeb2Network', + address: 'Bytes', + }, + }, + }, + /** + * Lookup169: mock_tee_primitives::identity::SubstrateNetwork + **/ + MockTeePrimitivesIdentitySubstrateNetwork: { + _enum: ['Polkadot', 'Kusama', 'Litentry', 'Litmus', 'LitentryRococo'], + }, + /** + * Lookup170: mock_tee_primitives::identity::Address32 + **/ + MockTeePrimitivesIdentityAddress32: '[u8;32]', + /** + * Lookup171: mock_tee_primitives::identity::EvmNetwork + **/ + MockTeePrimitivesIdentityEvmNetwork: { + _enum: ['Ethereum', 'BSC'], + }, + /** + * Lookup172: mock_tee_primitives::identity::Address20 + **/ + MockTeePrimitivesIdentityAddress20: '[u8;20]', + /** + * Lookup173: mock_tee_primitives::identity::Web2Network + **/ + MockTeePrimitivesIdentityWeb2Network: { + _enum: ['Twitter', 'Discord', 'Github'], + }, + /** + * Lookup176: pallet_identity_management_mock::identity_context::IdentityContext + **/ + PalletIdentityManagementMockIdentityContext: { + metadata: 'Option', + creationRequestBlock: 'Option', + verificationRequestBlock: 'Option', + isVerified: 'bool', + }, + /** + * Lookup180: pallet_sudo::pallet::Event + **/ + PalletSudoEvent: { + _enum: { + Sudid: { + sudoResult: 'Result', + }, + KeyChanged: { + oldSudoer: 'Option', + }, + SudoAsDone: { + sudoResult: 'Result', + }, + }, + }, + /** + * Lookup181: frame_system::Phase + **/ + FrameSystemPhase: { + _enum: { + ApplyExtrinsic: 'u32', + Finalization: 'Null', + Initialization: 'Null', + }, + }, + /** + * Lookup184: frame_system::LastRuntimeUpgradeInfo + **/ + FrameSystemLastRuntimeUpgradeInfo: { + specVersion: 'Compact', + specName: 'Text', + }, + /** + * Lookup186: frame_system::pallet::Call + **/ + FrameSystemCall: { + _enum: { + remark: { + remark: 'Bytes', + }, + set_heap_pages: { + pages: 'u64', + }, + set_code: { + code: 'Bytes', + }, + set_code_without_checks: { + code: 'Bytes', + }, + set_storage: { + items: 'Vec<(Bytes,Bytes)>', + }, + kill_storage: { + _alias: { + keys_: 'keys', + }, + keys_: 'Vec', + }, + kill_prefix: { + prefix: 'Bytes', + subkeys: 'u32', + }, + remark_with_event: { + remark: 'Bytes', + }, + }, + }, + /** + * Lookup190: frame_system::limits::BlockWeights + **/ + FrameSystemLimitsBlockWeights: { + baseBlock: 'SpWeightsWeightV2Weight', + maxBlock: 'SpWeightsWeightV2Weight', + perClass: 'FrameSupportDispatchPerDispatchClassWeightsPerClass', + }, + /** + * Lookup191: frame_support::dispatch::PerDispatchClass + **/ + FrameSupportDispatchPerDispatchClassWeightsPerClass: { + normal: 'FrameSystemLimitsWeightsPerClass', + operational: 'FrameSystemLimitsWeightsPerClass', + mandatory: 'FrameSystemLimitsWeightsPerClass', + }, + /** + * Lookup192: frame_system::limits::WeightsPerClass + **/ + FrameSystemLimitsWeightsPerClass: { + baseExtrinsic: 'SpWeightsWeightV2Weight', + maxExtrinsic: 'Option', + maxTotal: 'Option', + reserved: 'Option', + }, + /** + * Lookup194: frame_system::limits::BlockLength + **/ + FrameSystemLimitsBlockLength: { + max: 'FrameSupportDispatchPerDispatchClassU32', + }, + /** + * Lookup195: frame_support::dispatch::PerDispatchClass + **/ + FrameSupportDispatchPerDispatchClassU32: { + normal: 'u32', + operational: 'u32', + mandatory: 'u32', + }, + /** + * Lookup196: sp_weights::RuntimeDbWeight + **/ + SpWeightsRuntimeDbWeight: { + read: 'u64', + write: 'u64', + }, + /** + * Lookup197: sp_version::RuntimeVersion + **/ + SpVersionRuntimeVersion: { + specName: 'Text', + implName: 'Text', + authoringVersion: 'u32', + specVersion: 'u32', + implVersion: 'u32', + apis: 'Vec<([u8;8],u32)>', + transactionVersion: 'u32', + stateVersion: 'u8', + }, + /** + * Lookup201: frame_system::pallet::Error + **/ + FrameSystemError: { + _enum: [ + 'InvalidSpecName', + 'SpecVersionNeedsToIncrease', + 'FailedToExtractRuntimeVersion', + 'NonDefaultComposite', + 'NonZeroRefCount', + 'CallFiltered', + ], + }, + /** + * Lookup202: pallet_timestamp::pallet::Call + **/ + PalletTimestampCall: { + _enum: { + set: { + now: 'Compact', + }, + }, + }, + /** + * Lookup205: pallet_scheduler::Scheduled, BlockNumber, rococo_parachain_runtime::OriginCaller, sp_core::crypto::AccountId32> + **/ + PalletSchedulerScheduled: { + maybeId: 'Option<[u8;32]>', + priority: 'u8', + call: 'FrameSupportPreimagesBounded', + maybePeriodic: 'Option<(u32,u32)>', + origin: 'RococoParachainRuntimeOriginCaller', + }, + /** + * Lookup206: frame_support::traits::preimages::Bounded + **/ + FrameSupportPreimagesBounded: { + _enum: { + Legacy: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + Inline: 'Bytes', + Lookup: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + len: 'u32', + }, + }, + }, + /** + * Lookup208: pallet_scheduler::pallet::Call + **/ + PalletSchedulerCall: { + _enum: { + schedule: { + when: 'u32', + maybePeriodic: 'Option<(u32,u32)>', + priority: 'u8', + call: 'Call', + }, + cancel: { + when: 'u32', + index: 'u32', + }, + schedule_named: { + id: '[u8;32]', + when: 'u32', + maybePeriodic: 'Option<(u32,u32)>', + priority: 'u8', + call: 'Call', + }, + cancel_named: { + id: '[u8;32]', + }, + schedule_after: { + after: 'u32', + maybePeriodic: 'Option<(u32,u32)>', + priority: 'u8', + call: 'Call', + }, + schedule_named_after: { + id: '[u8;32]', + after: 'u32', + maybePeriodic: 'Option<(u32,u32)>', + priority: 'u8', + call: 'Call', + }, + }, + }, + /** + * Lookup210: pallet_utility::pallet::Call + **/ + PalletUtilityCall: { + _enum: { + batch: { + calls: 'Vec', + }, + as_derivative: { + index: 'u16', + call: 'Call', + }, + batch_all: { + calls: 'Vec', + }, + dispatch_as: { + asOrigin: 'RococoParachainRuntimeOriginCaller', + call: 'Call', + }, + force_batch: { + calls: 'Vec', + }, + with_weight: { + call: 'Call', + weight: 'SpWeightsWeightV2Weight', + }, + }, + }, + /** + * Lookup212: rococo_parachain_runtime::OriginCaller + **/ + RococoParachainRuntimeOriginCaller: { + _enum: { + system: 'FrameSupportDispatchRawOrigin', + __Unused1: 'Null', + __Unused2: 'Null', + __Unused3: 'Null', + __Unused4: 'Null', + Void: 'SpCoreVoid', + __Unused6: 'Null', + __Unused7: 'Null', + __Unused8: 'Null', + __Unused9: 'Null', + __Unused10: 'Null', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + __Unused14: 'Null', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + __Unused21: 'Null', + Council: 'PalletCollectiveRawOrigin', + __Unused23: 'Null', + TechnicalCommittee: 'PalletCollectiveRawOrigin', + __Unused25: 'Null', + __Unused26: 'Null', + __Unused27: 'Null', + __Unused28: 'Null', + __Unused29: 'Null', + __Unused30: 'Null', + __Unused31: 'Null', + __Unused32: 'Null', + __Unused33: 'Null', + __Unused34: 'Null', + __Unused35: 'Null', + __Unused36: 'Null', + __Unused37: 'Null', + __Unused38: 'Null', + __Unused39: 'Null', + __Unused40: 'Null', + __Unused41: 'Null', + __Unused42: 'Null', + __Unused43: 'Null', + __Unused44: 'Null', + __Unused45: 'Null', + __Unused46: 'Null', + __Unused47: 'Null', + __Unused48: 'Null', + __Unused49: 'Null', + __Unused50: 'Null', + PolkadotXcm: 'PalletXcmOrigin', + CumulusXcm: 'CumulusPalletXcmOrigin', + }, + }, + /** + * Lookup213: frame_support::dispatch::RawOrigin + **/ + FrameSupportDispatchRawOrigin: { + _enum: { + Root: 'Null', + Signed: 'AccountId32', + None: 'Null', + }, + }, + /** + * Lookup214: pallet_collective::RawOrigin + **/ + PalletCollectiveRawOrigin: { + _enum: { + Members: '(u32,u32)', + Member: 'AccountId32', + _Phantom: 'Null', + }, + }, + /** + * Lookup216: pallet_xcm::pallet::Origin + **/ + PalletXcmOrigin: { + _enum: { + Xcm: 'XcmV3MultiLocation', + Response: 'XcmV3MultiLocation', + }, + }, + /** + * Lookup217: cumulus_pallet_xcm::pallet::Origin + **/ + CumulusPalletXcmOrigin: { + _enum: { + Relay: 'Null', + SiblingParachain: 'u32', + }, + }, + /** + * Lookup218: sp_core::Void + **/ + SpCoreVoid: 'Null', + /** + * Lookup219: pallet_multisig::pallet::Call + **/ + PalletMultisigCall: { + _enum: { + as_multi_threshold_1: { + otherSignatories: 'Vec', + call: 'Call', + }, + as_multi: { + threshold: 'u16', + otherSignatories: 'Vec', + maybeTimepoint: 'Option', + call: 'Call', + maxWeight: 'SpWeightsWeightV2Weight', + }, + approve_as_multi: { + threshold: 'u16', + otherSignatories: 'Vec', + maybeTimepoint: 'Option', + callHash: '[u8;32]', + maxWeight: 'SpWeightsWeightV2Weight', + }, + cancel_as_multi: { + threshold: 'u16', + otherSignatories: 'Vec', + timepoint: 'PalletMultisigTimepoint', + callHash: '[u8;32]', + }, + }, + }, + /** + * Lookup222: pallet_proxy::pallet::Call + **/ + PalletProxyCall: { + _enum: { + proxy: { + real: 'MultiAddress', + forceProxyType: 'Option', + call: 'Call', + }, + add_proxy: { + delegate: 'MultiAddress', + proxyType: 'RococoParachainRuntimeProxyType', + delay: 'u32', + }, + remove_proxy: { + delegate: 'MultiAddress', + proxyType: 'RococoParachainRuntimeProxyType', + delay: 'u32', + }, + remove_proxies: 'Null', + create_pure: { + proxyType: 'RococoParachainRuntimeProxyType', + delay: 'u32', + index: 'u16', + }, + kill_pure: { + spawner: 'MultiAddress', + proxyType: 'RococoParachainRuntimeProxyType', + index: 'u16', + height: 'Compact', + extIndex: 'Compact', + }, + announce: { + real: 'MultiAddress', + callHash: 'H256', + }, + remove_announcement: { + real: 'MultiAddress', + callHash: 'H256', + }, + reject_announcement: { + delegate: 'MultiAddress', + callHash: 'H256', + }, + proxy_announced: { + delegate: 'MultiAddress', + real: 'MultiAddress', + forceProxyType: 'Option', + call: 'Call', + }, + }, + }, + /** + * Lookup226: pallet_preimage::pallet::Call + **/ + PalletPreimageCall: { + _enum: { + note_preimage: { + bytes: 'Bytes', + }, + unnote_preimage: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + request_preimage: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + unrequest_preimage: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + }, + }, + /** + * Lookup227: pallet_balances::pallet::Call + **/ + PalletBalancesCall: { + _enum: { + transfer: { + dest: 'MultiAddress', + value: 'Compact', + }, + set_balance: { + who: 'MultiAddress', + newFree: 'Compact', + newReserved: 'Compact', + }, + force_transfer: { + source: 'MultiAddress', + dest: 'MultiAddress', + value: 'Compact', + }, + transfer_keep_alive: { + dest: 'MultiAddress', + value: 'Compact', + }, + transfer_all: { + dest: 'MultiAddress', + keepAlive: 'bool', + }, + force_unreserve: { + who: 'MultiAddress', + amount: 'u128', + }, + }, + }, + /** + * Lookup228: pallet_vesting::pallet::Call + **/ + PalletVestingCall: { + _enum: { + vest: 'Null', + vest_other: { + target: 'MultiAddress', + }, + vested_transfer: { + target: 'MultiAddress', + schedule: 'PalletVestingVestingInfo', + }, + force_vested_transfer: { + source: 'MultiAddress', + target: 'MultiAddress', + schedule: 'PalletVestingVestingInfo', + }, + merge_schedules: { + schedule1Index: 'u32', + schedule2Index: 'u32', + }, + }, + }, + /** + * Lookup229: pallet_vesting::vesting_info::VestingInfo + **/ + PalletVestingVestingInfo: { + locked: 'u128', + perBlock: 'u128', + startingBlock: 'u32', + }, + /** + * Lookup230: pallet_treasury::pallet::Call + **/ + PalletTreasuryCall: { + _enum: { + propose_spend: { + value: 'Compact', + beneficiary: 'MultiAddress', + }, + reject_proposal: { + proposalId: 'Compact', + }, + approve_proposal: { + proposalId: 'Compact', + }, + spend: { + amount: 'Compact', + beneficiary: 'MultiAddress', + }, + remove_approval: { + proposalId: 'Compact', + }, + }, + }, + /** + * Lookup231: pallet_democracy::pallet::Call + **/ + PalletDemocracyCall: { + _enum: { + propose: { + proposal: 'FrameSupportPreimagesBounded', + value: 'Compact', + }, + second: { + proposal: 'Compact', + }, + vote: { + refIndex: 'Compact', + vote: 'PalletDemocracyVoteAccountVote', + }, + emergency_cancel: { + refIndex: 'u32', + }, + external_propose: { + proposal: 'FrameSupportPreimagesBounded', + }, + external_propose_majority: { + proposal: 'FrameSupportPreimagesBounded', + }, + external_propose_default: { + proposal: 'FrameSupportPreimagesBounded', + }, + fast_track: { + proposalHash: 'H256', + votingPeriod: 'u32', + delay: 'u32', + }, + veto_external: { + proposalHash: 'H256', + }, + cancel_referendum: { + refIndex: 'Compact', + }, + delegate: { + to: 'MultiAddress', + conviction: 'PalletDemocracyConviction', + balance: 'u128', + }, + undelegate: 'Null', + clear_public_proposals: 'Null', + unlock: { + target: 'MultiAddress', + }, + remove_vote: { + index: 'u32', + }, + remove_other_vote: { + target: 'MultiAddress', + index: 'u32', + }, + blacklist: { + proposalHash: 'H256', + maybeRefIndex: 'Option', + }, + cancel_proposal: { + propIndex: 'Compact', + }, + set_metadata: { + owner: 'PalletDemocracyMetadataOwner', + maybeHash: 'Option', + }, + }, + }, + /** + * Lookup232: pallet_democracy::conviction::Conviction + **/ + PalletDemocracyConviction: { + _enum: ['None', 'Locked1x', 'Locked2x', 'Locked3x', 'Locked4x', 'Locked5x', 'Locked6x'], + }, + /** + * Lookup234: pallet_collective::pallet::Call + **/ + PalletCollectiveCall: { + _enum: { + set_members: { + newMembers: 'Vec', + prime: 'Option', + oldCount: 'u32', + }, + execute: { + proposal: 'Call', + lengthBound: 'Compact', + }, + propose: { + threshold: 'Compact', + proposal: 'Call', + lengthBound: 'Compact', + }, + vote: { + proposal: 'H256', + index: 'Compact', + approve: 'bool', + }, + close_old_weight: { + proposalHash: 'H256', + index: 'Compact', + proposalWeightBound: 'Compact', + lengthBound: 'Compact', + }, + disapprove_proposal: { + proposalHash: 'H256', + }, + close: { + proposalHash: 'H256', + index: 'Compact', + proposalWeightBound: 'SpWeightsWeightV2Weight', + lengthBound: 'Compact', + }, + }, + }, + /** + * Lookup237: pallet_membership::pallet::Call + **/ + PalletMembershipCall: { + _enum: { + add_member: { + who: 'MultiAddress', + }, + remove_member: { + who: 'MultiAddress', + }, + swap_member: { + remove: 'MultiAddress', + add: 'MultiAddress', + }, + reset_members: { + members: 'Vec', + }, + change_key: { + _alias: { + new_: 'new', + }, + new_: 'MultiAddress', + }, + set_prime: { + who: 'MultiAddress', + }, + clear_prime: 'Null', + }, + }, + /** + * Lookup240: pallet_bounties::pallet::Call + **/ + PalletBountiesCall: { + _enum: { + propose_bounty: { + value: 'Compact', + description: 'Bytes', + }, + approve_bounty: { + bountyId: 'Compact', + }, + propose_curator: { + bountyId: 'Compact', + curator: 'MultiAddress', + fee: 'Compact', + }, + unassign_curator: { + bountyId: 'Compact', + }, + accept_curator: { + bountyId: 'Compact', + }, + award_bounty: { + bountyId: 'Compact', + beneficiary: 'MultiAddress', + }, + claim_bounty: { + bountyId: 'Compact', + }, + close_bounty: { + bountyId: 'Compact', + }, + extend_bounty_expiry: { + bountyId: 'Compact', + remark: 'Bytes', + }, + }, + }, + /** + * Lookup241: pallet_tips::pallet::Call + **/ + PalletTipsCall: { + _enum: { + report_awesome: { + reason: 'Bytes', + who: 'MultiAddress', + }, + retract_tip: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + tip_new: { + reason: 'Bytes', + who: 'MultiAddress', + tipValue: 'Compact', + }, + tip: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + tipValue: 'Compact', + }, + close_tip: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + slash_tip: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + }, + }, + /** + * Lookup242: pallet_identity::pallet::Call + **/ + PalletIdentityCall: { + _enum: { + add_registrar: { + account: 'MultiAddress', + }, + set_identity: { + info: 'PalletIdentityIdentityInfo', + }, + set_subs: { + subs: 'Vec<(AccountId32,Data)>', + }, + clear_identity: 'Null', + request_judgement: { + regIndex: 'Compact', + maxFee: 'Compact', + }, + cancel_request: { + regIndex: 'u32', + }, + set_fee: { + index: 'Compact', + fee: 'Compact', + }, + set_account_id: { + _alias: { + new_: 'new', + }, + index: 'Compact', + new_: 'MultiAddress', + }, + set_fields: { + index: 'Compact', + fields: 'PalletIdentityBitFlags', + }, + provide_judgement: { + regIndex: 'Compact', + target: 'MultiAddress', + judgement: 'PalletIdentityJudgement', + identity: 'H256', + }, + kill_identity: { + target: 'MultiAddress', + }, + add_sub: { + sub: 'MultiAddress', + data: 'Data', + }, + rename_sub: { + sub: 'MultiAddress', + data: 'Data', + }, + remove_sub: { + sub: 'MultiAddress', + }, + quit_sub: 'Null', + }, + }, + /** + * Lookup243: pallet_identity::types::IdentityInfo + **/ + PalletIdentityIdentityInfo: { + additional: 'Vec<(Data,Data)>', + display: 'Data', + legal: 'Data', + web: 'Data', + riot: 'Data', + email: 'Data', + pgpFingerprint: 'Option<[u8;20]>', + image: 'Data', + twitter: 'Data', + }, + /** + * Lookup278: pallet_identity::types::BitFlags + **/ + PalletIdentityBitFlags: { + _bitLength: 64, + Display: 1, + Legal: 2, + Web: 4, + Riot: 8, + Email: 16, + PgpFingerprint: 32, + Image: 64, + Twitter: 128, + }, + /** + * Lookup279: pallet_identity::types::IdentityField + **/ + PalletIdentityIdentityField: { + _enum: [ + '__Unused0', + 'Display', + 'Legal', + '__Unused3', + 'Web', + '__Unused5', + '__Unused6', + '__Unused7', + 'Riot', + '__Unused9', + '__Unused10', + '__Unused11', + '__Unused12', + '__Unused13', + '__Unused14', + '__Unused15', + 'Email', + '__Unused17', + '__Unused18', + '__Unused19', + '__Unused20', + '__Unused21', + '__Unused22', + '__Unused23', + '__Unused24', + '__Unused25', + '__Unused26', + '__Unused27', + '__Unused28', + '__Unused29', + '__Unused30', + '__Unused31', + 'PgpFingerprint', + '__Unused33', + '__Unused34', + '__Unused35', + '__Unused36', + '__Unused37', + '__Unused38', + '__Unused39', + '__Unused40', + '__Unused41', + '__Unused42', + '__Unused43', + '__Unused44', + '__Unused45', + '__Unused46', + '__Unused47', + '__Unused48', + '__Unused49', + '__Unused50', + '__Unused51', + '__Unused52', + '__Unused53', + '__Unused54', + '__Unused55', + '__Unused56', + '__Unused57', + '__Unused58', + '__Unused59', + '__Unused60', + '__Unused61', + '__Unused62', + '__Unused63', + 'Image', + '__Unused65', + '__Unused66', + '__Unused67', + '__Unused68', + '__Unused69', + '__Unused70', + '__Unused71', + '__Unused72', + '__Unused73', + '__Unused74', + '__Unused75', + '__Unused76', + '__Unused77', + '__Unused78', + '__Unused79', + '__Unused80', + '__Unused81', + '__Unused82', + '__Unused83', + '__Unused84', + '__Unused85', + '__Unused86', + '__Unused87', + '__Unused88', + '__Unused89', + '__Unused90', + '__Unused91', + '__Unused92', + '__Unused93', + '__Unused94', + '__Unused95', + '__Unused96', + '__Unused97', + '__Unused98', + '__Unused99', + '__Unused100', + '__Unused101', + '__Unused102', + '__Unused103', + '__Unused104', + '__Unused105', + '__Unused106', + '__Unused107', + '__Unused108', + '__Unused109', + '__Unused110', + '__Unused111', + '__Unused112', + '__Unused113', + '__Unused114', + '__Unused115', + '__Unused116', + '__Unused117', + '__Unused118', + '__Unused119', + '__Unused120', + '__Unused121', + '__Unused122', + '__Unused123', + '__Unused124', + '__Unused125', + '__Unused126', + '__Unused127', + 'Twitter', + ], + }, + /** + * Lookup280: pallet_identity::types::Judgement + **/ + PalletIdentityJudgement: { + _enum: { + Unknown: 'Null', + FeePaid: 'u128', + Reasonable: 'Null', + KnownGood: 'Null', + OutOfDate: 'Null', + LowQuality: 'Null', + Erroneous: 'Null', + }, + }, + /** + * Lookup281: cumulus_pallet_parachain_system::pallet::Call + **/ + CumulusPalletParachainSystemCall: { + _enum: { + set_validation_data: { + data: 'CumulusPrimitivesParachainInherentParachainInherentData', + }, + sudo_send_upward_message: { + message: 'Bytes', + }, + authorize_upgrade: { + codeHash: 'H256', + }, + enact_authorized_upgrade: { + code: 'Bytes', + }, + }, + }, + /** + * Lookup282: cumulus_primitives_parachain_inherent::ParachainInherentData + **/ + CumulusPrimitivesParachainInherentParachainInherentData: { + validationData: 'PolkadotPrimitivesV2PersistedValidationData', + relayChainState: 'SpTrieStorageProof', + downwardMessages: 'Vec', + horizontalMessages: 'BTreeMap>', + }, + /** + * Lookup283: polkadot_primitives::v2::PersistedValidationData + **/ + PolkadotPrimitivesV2PersistedValidationData: { + parentHead: 'Bytes', + relayParentNumber: 'u32', + relayParentStorageRoot: 'H256', + maxPovSize: 'u32', + }, + /** + * Lookup285: sp_trie::storage_proof::StorageProof + **/ + SpTrieStorageProof: { + trieNodes: 'BTreeSet', + }, + /** + * Lookup288: polkadot_core_primitives::InboundDownwardMessage + **/ + PolkadotCorePrimitivesInboundDownwardMessage: { + sentAt: 'u32', + msg: 'Bytes', + }, + /** + * Lookup291: polkadot_core_primitives::InboundHrmpMessage + **/ + PolkadotCorePrimitivesInboundHrmpMessage: { + sentAt: 'u32', + data: 'Bytes', + }, + /** + * Lookup294: parachain_info::pallet::Call + **/ + ParachainInfoCall: 'Null', + /** + * Lookup295: pallet_session::pallet::Call + **/ + PalletSessionCall: { + _enum: { + set_keys: { + _alias: { + keys_: 'keys', + }, + keys_: 'RococoParachainRuntimeSessionKeys', + proof: 'Bytes', + }, + purge_keys: 'Null', + }, + }, + /** + * Lookup296: rococo_parachain_runtime::SessionKeys + **/ + RococoParachainRuntimeSessionKeys: { + aura: 'SpConsensusAuraSr25519AppSr25519Public', + }, + /** + * Lookup297: sp_consensus_aura::sr25519::app_sr25519::Public + **/ + SpConsensusAuraSr25519AppSr25519Public: 'SpCoreSr25519Public', + /** + * Lookup298: sp_core::sr25519::Public + **/ + SpCoreSr25519Public: '[u8;32]', + /** + * Lookup299: pallet_parachain_staking::pallet::Call + **/ + PalletParachainStakingCall: { + _enum: { + set_staking_expectations: { + expectations: { + min: 'u128', + ideal: 'u128', + max: 'u128', + }, + }, + set_inflation: { + schedule: { + min: 'Perbill', + ideal: 'Perbill', + max: 'Perbill', + }, + }, + set_parachain_bond_account: { + _alias: { + new_: 'new', + }, + new_: 'AccountId32', + }, + set_parachain_bond_reserve_percent: { + _alias: { + new_: 'new', + }, + new_: 'Percent', + }, + set_total_selected: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + set_collator_commission: { + _alias: { + new_: 'new', + }, + new_: 'Perbill', + }, + set_blocks_per_round: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + add_candidates_whitelist: { + candidate: 'AccountId32', + }, + remove_candidates_whitelist: { + candidate: 'AccountId32', + }, + join_candidates: { + bond: 'u128', + }, + schedule_leave_candidates: 'Null', + execute_leave_candidates: { + candidate: 'AccountId32', + }, + cancel_leave_candidates: 'Null', + go_offline: 'Null', + go_online: 'Null', + candidate_bond_more: { + more: 'u128', + }, + schedule_candidate_bond_less: { + less: 'u128', + }, + execute_candidate_bond_less: { + candidate: 'AccountId32', + }, + cancel_candidate_bond_less: 'Null', + delegate: { + candidate: 'AccountId32', + amount: 'u128', + }, + delegate_with_auto_compound: { + candidate: 'AccountId32', + amount: 'u128', + autoCompound: 'Percent', + }, + schedule_leave_delegators: 'Null', + execute_leave_delegators: { + delegator: 'AccountId32', + }, + cancel_leave_delegators: 'Null', + schedule_revoke_delegation: { + collator: 'AccountId32', + }, + delegator_bond_more: { + candidate: 'AccountId32', + more: 'u128', + }, + schedule_delegator_bond_less: { + candidate: 'AccountId32', + less: 'u128', + }, + execute_delegation_request: { + delegator: 'AccountId32', + candidate: 'AccountId32', + }, + cancel_delegation_request: { + candidate: 'AccountId32', + }, + set_auto_compound: { + candidate: 'AccountId32', + value: 'Percent', + }, + }, + }, + /** + * Lookup302: cumulus_pallet_xcmp_queue::pallet::Call + **/ + CumulusPalletXcmpQueueCall: { + _enum: { + service_overweight: { + index: 'u64', + weightLimit: 'SpWeightsWeightV2Weight', + }, + suspend_xcm_execution: 'Null', + resume_xcm_execution: 'Null', + update_suspend_threshold: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + update_drop_threshold: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + update_resume_threshold: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + update_threshold_weight: { + _alias: { + new_: 'new', + }, + new_: 'SpWeightsWeightV2Weight', + }, + update_weight_restrict_decay: { + _alias: { + new_: 'new', + }, + new_: 'SpWeightsWeightV2Weight', + }, + update_xcmp_max_individual_weight: { + _alias: { + new_: 'new', + }, + new_: 'SpWeightsWeightV2Weight', + }, + }, + }, + /** + * Lookup303: pallet_xcm::pallet::Call + **/ + PalletXcmCall: { + _enum: { + send: { + dest: 'XcmVersionedMultiLocation', + message: 'XcmVersionedXcm', + }, + teleport_assets: { + dest: 'XcmVersionedMultiLocation', + beneficiary: 'XcmVersionedMultiLocation', + assets: 'XcmVersionedMultiAssets', + feeAssetItem: 'u32', + }, + reserve_transfer_assets: { + dest: 'XcmVersionedMultiLocation', + beneficiary: 'XcmVersionedMultiLocation', + assets: 'XcmVersionedMultiAssets', + feeAssetItem: 'u32', + }, + execute: { + message: 'XcmVersionedXcm', + maxWeight: 'SpWeightsWeightV2Weight', + }, + force_xcm_version: { + location: 'XcmV3MultiLocation', + xcmVersion: 'u32', + }, + force_default_xcm_version: { + maybeXcmVersion: 'Option', + }, + force_subscribe_version_notify: { + location: 'XcmVersionedMultiLocation', + }, + force_unsubscribe_version_notify: { + location: 'XcmVersionedMultiLocation', + }, + limited_reserve_transfer_assets: { + dest: 'XcmVersionedMultiLocation', + beneficiary: 'XcmVersionedMultiLocation', + assets: 'XcmVersionedMultiAssets', + feeAssetItem: 'u32', + weightLimit: 'XcmV3WeightLimit', + }, + limited_teleport_assets: { + dest: 'XcmVersionedMultiLocation', + beneficiary: 'XcmVersionedMultiLocation', + assets: 'XcmVersionedMultiAssets', + feeAssetItem: 'u32', + weightLimit: 'XcmV3WeightLimit', + }, + }, + }, + /** + * Lookup304: xcm::VersionedXcm + **/ + XcmVersionedXcm: { + _enum: { + __Unused0: 'Null', + __Unused1: 'Null', + V2: 'XcmV2Xcm', + V3: 'XcmV3Xcm', + }, + }, + /** + * Lookup305: xcm::v2::Xcm + **/ + XcmV2Xcm: 'Vec', + /** + * Lookup307: xcm::v2::Instruction + **/ + XcmV2Instruction: { + _enum: { + WithdrawAsset: 'XcmV2MultiassetMultiAssets', + ReserveAssetDeposited: 'XcmV2MultiassetMultiAssets', + ReceiveTeleportedAsset: 'XcmV2MultiassetMultiAssets', + QueryResponse: { + queryId: 'Compact', + response: 'XcmV2Response', + maxWeight: 'Compact', + }, + TransferAsset: { + assets: 'XcmV2MultiassetMultiAssets', + beneficiary: 'XcmV2MultiLocation', + }, + TransferReserveAsset: { + assets: 'XcmV2MultiassetMultiAssets', + dest: 'XcmV2MultiLocation', + xcm: 'XcmV2Xcm', + }, + Transact: { + originType: 'XcmV2OriginKind', + requireWeightAtMost: 'Compact', + call: 'XcmDoubleEncoded', + }, + HrmpNewChannelOpenRequest: { + sender: 'Compact', + maxMessageSize: 'Compact', + maxCapacity: 'Compact', + }, + HrmpChannelAccepted: { + recipient: 'Compact', + }, + HrmpChannelClosing: { + initiator: 'Compact', + sender: 'Compact', + recipient: 'Compact', + }, + ClearOrigin: 'Null', + DescendOrigin: 'XcmV2MultilocationJunctions', + ReportError: { + queryId: 'Compact', + dest: 'XcmV2MultiLocation', + maxResponseWeight: 'Compact', + }, + DepositAsset: { + assets: 'XcmV2MultiassetMultiAssetFilter', + maxAssets: 'Compact', + beneficiary: 'XcmV2MultiLocation', + }, + DepositReserveAsset: { + assets: 'XcmV2MultiassetMultiAssetFilter', + maxAssets: 'Compact', + dest: 'XcmV2MultiLocation', + xcm: 'XcmV2Xcm', + }, + ExchangeAsset: { + give: 'XcmV2MultiassetMultiAssetFilter', + receive: 'XcmV2MultiassetMultiAssets', + }, + InitiateReserveWithdraw: { + assets: 'XcmV2MultiassetMultiAssetFilter', + reserve: 'XcmV2MultiLocation', + xcm: 'XcmV2Xcm', + }, + InitiateTeleport: { + assets: 'XcmV2MultiassetMultiAssetFilter', + dest: 'XcmV2MultiLocation', + xcm: 'XcmV2Xcm', + }, + QueryHolding: { + queryId: 'Compact', + dest: 'XcmV2MultiLocation', + assets: 'XcmV2MultiassetMultiAssetFilter', + maxResponseWeight: 'Compact', + }, + BuyExecution: { + fees: 'XcmV2MultiAsset', + weightLimit: 'XcmV2WeightLimit', + }, + RefundSurplus: 'Null', + SetErrorHandler: 'XcmV2Xcm', + SetAppendix: 'XcmV2Xcm', + ClearError: 'Null', + ClaimAsset: { + assets: 'XcmV2MultiassetMultiAssets', + ticket: 'XcmV2MultiLocation', + }, + Trap: 'Compact', + SubscribeVersion: { + queryId: 'Compact', + maxResponseWeight: 'Compact', + }, + UnsubscribeVersion: 'Null', + }, + }, + /** + * Lookup308: xcm::v2::Response + **/ + XcmV2Response: { + _enum: { + Null: 'Null', + Assets: 'XcmV2MultiassetMultiAssets', + ExecutionResult: 'Option<(u32,XcmV2TraitsError)>', + Version: 'u32', + }, + }, + /** + * Lookup311: xcm::v2::traits::Error + **/ + XcmV2TraitsError: { + _enum: { + Overflow: 'Null', + Unimplemented: 'Null', + UntrustedReserveLocation: 'Null', + UntrustedTeleportLocation: 'Null', + MultiLocationFull: 'Null', + MultiLocationNotInvertible: 'Null', + BadOrigin: 'Null', + InvalidLocation: 'Null', + AssetNotFound: 'Null', + FailedToTransactAsset: 'Null', + NotWithdrawable: 'Null', + LocationCannotHold: 'Null', + ExceedsMaxMessageSize: 'Null', + DestinationUnsupported: 'Null', + Transport: 'Null', + Unroutable: 'Null', + UnknownClaim: 'Null', + FailedToDecode: 'Null', + MaxWeightInvalid: 'Null', + NotHoldingFees: 'Null', + TooExpensive: 'Null', + Trap: 'u64', + UnhandledXcmVersion: 'Null', + WeightLimitReached: 'u64', + Barrier: 'Null', + WeightNotComputable: 'Null', + }, + }, + /** + * Lookup312: xcm::v2::multiasset::MultiAssetFilter + **/ + XcmV2MultiassetMultiAssetFilter: { + _enum: { + Definite: 'XcmV2MultiassetMultiAssets', + Wild: 'XcmV2MultiassetWildMultiAsset', + }, + }, + /** + * Lookup313: xcm::v2::multiasset::WildMultiAsset + **/ + XcmV2MultiassetWildMultiAsset: { + _enum: { + All: 'Null', + AllOf: { + id: 'XcmV2MultiassetAssetId', + fun: 'XcmV2MultiassetWildFungibility', + }, + }, + }, + /** + * Lookup314: xcm::v2::multiasset::WildFungibility + **/ + XcmV2MultiassetWildFungibility: { + _enum: ['Fungible', 'NonFungible'], + }, + /** + * Lookup315: xcm::v2::WeightLimit + **/ + XcmV2WeightLimit: { + _enum: { + Unlimited: 'Null', + Limited: 'Compact', + }, + }, + /** + * Lookup324: cumulus_pallet_xcm::pallet::Call + **/ + CumulusPalletXcmCall: 'Null', + /** + * Lookup325: cumulus_pallet_dmp_queue::pallet::Call + **/ + CumulusPalletDmpQueueCall: { + _enum: { + service_overweight: { + index: 'u64', + weightLimit: 'SpWeightsWeightV2Weight', + }, + }, + }, + /** + * Lookup326: orml_xtokens::module::Call + **/ + OrmlXtokensModuleCall: { + _enum: { + transfer: { + currencyId: 'RuntimeCommonXcmImplCurrencyId', + amount: 'u128', + dest: 'XcmVersionedMultiLocation', + destWeightLimit: 'XcmV3WeightLimit', + }, + transfer_multiasset: { + asset: 'XcmVersionedMultiAsset', + dest: 'XcmVersionedMultiLocation', + destWeightLimit: 'XcmV3WeightLimit', + }, + transfer_with_fee: { + currencyId: 'RuntimeCommonXcmImplCurrencyId', + amount: 'u128', + fee: 'u128', + dest: 'XcmVersionedMultiLocation', + destWeightLimit: 'XcmV3WeightLimit', + }, + transfer_multiasset_with_fee: { + asset: 'XcmVersionedMultiAsset', + fee: 'XcmVersionedMultiAsset', + dest: 'XcmVersionedMultiLocation', + destWeightLimit: 'XcmV3WeightLimit', + }, + transfer_multicurrencies: { + currencies: 'Vec<(RuntimeCommonXcmImplCurrencyId,u128)>', + feeItem: 'u32', + dest: 'XcmVersionedMultiLocation', + destWeightLimit: 'XcmV3WeightLimit', + }, + transfer_multiassets: { + assets: 'XcmVersionedMultiAssets', + feeItem: 'u32', + dest: 'XcmVersionedMultiLocation', + destWeightLimit: 'XcmV3WeightLimit', + }, + }, + }, + /** + * Lookup327: xcm::VersionedMultiAsset + **/ + XcmVersionedMultiAsset: { + _enum: { + __Unused0: 'Null', + V2: 'XcmV2MultiAsset', + __Unused2: 'Null', + V3: 'XcmV3MultiAsset', + }, + }, + /** + * Lookup330: orml_tokens::module::Call + **/ + OrmlTokensModuleCall: { + _enum: { + transfer: { + dest: 'MultiAddress', + currencyId: 'u128', + amount: 'Compact', + }, + transfer_all: { + dest: 'MultiAddress', + currencyId: 'u128', + keepAlive: 'bool', + }, + transfer_keep_alive: { + dest: 'MultiAddress', + currencyId: 'u128', + amount: 'Compact', + }, + force_transfer: { + source: 'MultiAddress', + dest: 'MultiAddress', + currencyId: 'u128', + amount: 'Compact', + }, + set_balance: { + who: 'MultiAddress', + currencyId: 'u128', + newFree: 'Compact', + newReserved: 'Compact', + }, + }, + }, + /** + * Lookup331: pallet_bridge::pallet::Call + **/ + PalletBridgeCall: { + _enum: { + set_threshold: { + threshold: 'u32', + }, + set_resource: { + id: '[u8;32]', + method: 'Bytes', + }, + remove_resource: { + id: '[u8;32]', + }, + whitelist_chain: { + id: 'u8', + }, + add_relayer: { + v: 'AccountId32', + }, + remove_relayer: { + v: 'AccountId32', + }, + update_fee: { + destId: 'u8', + fee: 'u128', + }, + acknowledge_proposal: { + nonce: 'u64', + srcId: 'u8', + rId: '[u8;32]', + call: 'Call', + }, + reject_proposal: { + nonce: 'u64', + srcId: 'u8', + rId: '[u8;32]', + call: 'Call', + }, + eval_vote_state: { + nonce: 'u64', + srcId: 'u8', + prop: 'Call', + }, + }, + }, + /** + * Lookup332: pallet_bridge_transfer::pallet::Call + **/ + PalletBridgeTransferCall: { + _enum: { + transfer_native: { + amount: 'u128', + recipient: 'Bytes', + destId: 'u8', + }, + transfer: { + to: 'AccountId32', + amount: 'u128', + rid: '[u8;32]', + }, + set_maximum_issuance: { + maximumIssuance: 'u128', + }, + set_external_balances: { + externalBalances: 'u128', + }, + }, + }, + /** + * Lookup333: pallet_drop3::pallet::Call + **/ + PalletDrop3Call: { + _enum: { + set_admin: { + _alias: { + new_: 'new', + }, + new_: 'AccountId32', + }, + approve_reward_pool: { + id: 'u64', + }, + reject_reward_pool: { + id: 'u64', + }, + start_reward_pool: { + id: 'u64', + }, + stop_reward_pool: { + id: 'u64', + }, + close_reward_pool: { + id: 'u64', + }, + propose_reward_pool: { + name: 'Bytes', + total: 'u128', + startAt: 'u32', + endAt: 'u32', + }, + send_reward: { + id: 'u64', + to: 'AccountId32', + amount: 'u128', + }, + }, + }, + /** + * Lookup334: pallet_extrinsic_filter::pallet::Call + **/ + PalletExtrinsicFilterCall: { + _enum: { + set_mode: { + mode: 'PalletExtrinsicFilterOperationalMode', + }, + block_extrinsics: { + palletNameBytes: 'Bytes', + functionNameBytes: 'Option', + }, + unblock_extrinsics: { + palletNameBytes: 'Bytes', + functionNameBytes: 'Option', + }, + }, + }, + /** + * Lookup335: pallet_identity_management::pallet::Call + **/ + PalletIdentityManagementCall: { + _enum: { + add_delegatee: { + account: 'AccountId32', + }, + remove_delegatee: { + account: 'AccountId32', + }, + set_user_shielding_key: { + shard: 'H256', + encryptedKey: 'Bytes', + }, + create_identity: { + shard: 'H256', + user: 'AccountId32', + encryptedIdentity: 'Bytes', + encryptedMetadata: 'Option', + }, + remove_identity: { + shard: 'H256', + encryptedIdentity: 'Bytes', + }, + verify_identity: { + shard: 'H256', + encryptedIdentity: 'Bytes', + encryptedValidationData: 'Bytes', + }, + __Unused6: 'Null', + __Unused7: 'Null', + __Unused8: 'Null', + __Unused9: 'Null', + __Unused10: 'Null', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + __Unused14: 'Null', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + __Unused21: 'Null', + __Unused22: 'Null', + __Unused23: 'Null', + __Unused24: 'Null', + __Unused25: 'Null', + __Unused26: 'Null', + __Unused27: 'Null', + __Unused28: 'Null', + __Unused29: 'Null', + user_shielding_key_set: { + account: 'AccountId32', + idGraph: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + identity_created: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + code: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + identity_removed: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + identity_verified: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + some_error: { + account: 'Option', + error: 'CorePrimitivesErrorImpError', + reqExtHash: 'H256', + }, + }, + }, + /** + * Lookup336: core_primitives::error::IMPError + **/ + CorePrimitivesErrorImpError: { + _enum: { + SetUserShieldingKeyFailed: 'CorePrimitivesErrorErrorDetail', + CreateIdentityFailed: 'CorePrimitivesErrorErrorDetail', + RemoveIdentityFailed: 'CorePrimitivesErrorErrorDetail', + VerifyIdentityFailed: 'CorePrimitivesErrorErrorDetail', + ImportScheduledEnclaveFailed: 'Null', + UnclassifiedError: 'CorePrimitivesErrorErrorDetail', + }, + }, + /** + * Lookup337: pallet_asset_manager::pallet::Call + **/ + PalletAssetManagerCall: { + _enum: { + register_foreign_asset_type: { + assetType: 'RuntimeCommonXcmImplCurrencyId', + metadata: 'PalletAssetManagerAssetMetadata', + }, + update_foreign_asset_metadata: { + assetId: 'u128', + metadata: 'PalletAssetManagerAssetMetadata', + }, + set_asset_units_per_second: { + assetId: 'u128', + unitsPerSecond: 'u128', + }, + add_asset_type: { + assetId: 'u128', + newAssetType: 'RuntimeCommonXcmImplCurrencyId', + }, + remove_asset_type: { + assetType: 'RuntimeCommonXcmImplCurrencyId', + newDefaultAssetType: 'Option', + }, + }, + }, + /** + * Lookup339: pallet_vc_management::pallet::Call + **/ + PalletVcManagementCall: { + _enum: { + request_vc: { + shard: 'H256', + assertion: 'CorePrimitivesAssertion', + }, + disable_vc: { + index: 'H256', + }, + revoke_vc: { + index: 'H256', + }, + set_admin: { + _alias: { + new_: 'new', + }, + new_: 'AccountId32', + }, + add_schema: { + shard: 'H256', + id: 'Bytes', + content: 'Bytes', + }, + disable_schema: { + shard: 'H256', + index: 'u64', + }, + activate_schema: { + shard: 'H256', + index: 'u64', + }, + revoke_schema: { + shard: 'H256', + index: 'u64', + }, + add_vc_registry_item: { + _alias: { + hash_: 'hash', + }, + index: 'H256', + subject: 'AccountId32', + assertion: 'CorePrimitivesAssertion', + hash_: 'H256', + }, + remove_vc_registry_item: { + index: 'H256', + }, + clear_vc_registry: 'Null', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + __Unused14: 'Null', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + __Unused21: 'Null', + __Unused22: 'Null', + __Unused23: 'Null', + __Unused24: 'Null', + __Unused25: 'Null', + __Unused26: 'Null', + __Unused27: 'Null', + __Unused28: 'Null', + __Unused29: 'Null', + vc_issued: { + _alias: { + hash_: 'hash', + }, + account: 'AccountId32', + assertion: 'CorePrimitivesAssertion', + index: 'H256', + hash_: 'H256', + vc: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + some_error: { + account: 'Option', + error: 'CorePrimitivesErrorVcmpError', + reqExtHash: 'H256', + }, + }, + }, + /** + * Lookup340: core_primitives::error::VCMPError + **/ + CorePrimitivesErrorVcmpError: { + _enum: { + RequestVCFailed: '(CorePrimitivesAssertion,CorePrimitivesErrorErrorDetail)', + UnclassifiedError: 'CorePrimitivesErrorErrorDetail', + }, + }, + /** + * Lookup341: pallet_group::pallet::Call + **/ + PalletGroupCall: { + _enum: { + add_group_member: { + v: 'AccountId32', + }, + batch_add_group_members: { + vs: 'Vec', + }, + remove_group_member: { + v: 'AccountId32', + }, + batch_remove_group_members: { + vs: 'Vec', + }, + switch_group_control_on: 'Null', + switch_group_control_off: 'Null', + }, + }, + /** + * Lookup343: pallet_teerex::pallet::Call + **/ + PalletTeerexCall: { + _enum: { + register_enclave: { + raReport: 'Bytes', + workerUrl: 'Bytes', + shieldingKey: 'Option', + vcPubkey: 'Option', + }, + unregister_enclave: 'Null', + call_worker: { + request: 'TeerexPrimitivesRequest', + }, + confirm_processed_parentchain_block: { + blockHash: 'H256', + blockNumber: 'u32', + trustedCallsMerkleRoot: 'H256', + }, + shield_funds: { + incognitoAccountEncrypted: 'Bytes', + amount: 'u128', + bondingAccount: 'AccountId32', + }, + unshield_funds: { + publicAccount: 'AccountId32', + amount: 'u128', + bondingAccount: 'AccountId32', + callHash: 'H256', + }, + set_heartbeat_timeout: { + timeout: 'u64', + }, + register_dcap_enclave: { + dcapQuote: 'Bytes', + workerUrl: 'Bytes', + }, + update_scheduled_enclave: { + sidechainBlockNumber: 'u64', + mrEnclave: '[u8;32]', + }, + register_quoting_enclave: { + enclaveIdentity: 'Bytes', + signature: 'Bytes', + certificateChain: 'Bytes', + }, + remove_scheduled_enclave: { + sidechainBlockNumber: 'u64', + }, + register_tcb_info: { + tcbInfo: 'Bytes', + signature: 'Bytes', + certificateChain: 'Bytes', + }, + publish_hash: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + extraTopics: 'Vec', + data: 'Bytes', + }, + set_admin: { + _alias: { + new_: 'new', + }, + new_: 'AccountId32', + }, + }, + }, + /** + * Lookup344: teerex_primitives::Request + **/ + TeerexPrimitivesRequest: { + shard: 'H256', + cyphertext: 'Bytes', + }, + /** + * Lookup345: pallet_sidechain::pallet::Call + **/ + PalletSidechainCall: { + _enum: { + confirm_imported_sidechain_block: { + shardId: 'H256', + blockNumber: 'u64', + nextFinalizationCandidateBlockNumber: 'u64', + blockHeaderHash: 'H256', + }, + }, + }, + /** + * Lookup346: pallet_teeracle::pallet::Call + **/ + PalletTeeracleCall: { + _enum: { + add_to_whitelist: { + dataSource: 'Bytes', + mrenclave: '[u8;32]', + }, + remove_from_whitelist: { + dataSource: 'Bytes', + mrenclave: '[u8;32]', + }, + update_oracle: { + oracleName: 'Bytes', + dataSource: 'Bytes', + newBlob: 'Bytes', + }, + update_exchange_rate: { + dataSource: 'Bytes', + tradingPair: 'Bytes', + newValue: 'Option', + }, + }, + }, + /** + * Lookup348: pallet_identity_management_mock::pallet::Call + **/ + PalletIdentityManagementMockCall: { + _enum: { + add_delegatee: { + account: 'AccountId32', + }, + remove_delegatee: { + account: 'AccountId32', + }, + set_user_shielding_key: { + shard: 'H256', + encryptedKey: 'Bytes', + }, + create_identity: { + shard: 'H256', + user: 'AccountId32', + encryptedIdentity: 'Bytes', + encryptedMetadata: 'Option', + }, + remove_identity: { + shard: 'H256', + encryptedIdentity: 'Bytes', + }, + verify_identity: { + shard: 'H256', + encryptedIdentity: 'Bytes', + encryptedValidationData: 'Bytes', + }, + user_shielding_key_set: { + account: 'AccountId32', + }, + identity_created: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + code: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + }, + identity_removed: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + }, + identity_verified: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + }, + some_error: { + func: 'Bytes', + error: 'Bytes', + }, + }, + }, + /** + * Lookup349: pallet_sudo::pallet::Call + **/ + PalletSudoCall: { + _enum: { + sudo: { + call: 'Call', + }, + sudo_unchecked_weight: { + call: 'Call', + weight: 'SpWeightsWeightV2Weight', + }, + set_key: { + _alias: { + new_: 'new', + }, + new_: 'MultiAddress', + }, + sudo_as: { + who: 'MultiAddress', + call: 'Call', + }, + }, + }, + /** + * Lookup352: pallet_scheduler::pallet::Error + **/ + PalletSchedulerError: { + _enum: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange', 'Named'], + }, + /** + * Lookup353: pallet_utility::pallet::Error + **/ + PalletUtilityError: { + _enum: ['TooManyCalls'], + }, + /** + * Lookup355: pallet_multisig::Multisig + **/ + PalletMultisigMultisig: { + when: 'PalletMultisigTimepoint', + deposit: 'u128', + depositor: 'AccountId32', + approvals: 'Vec', + }, + /** + * Lookup357: pallet_multisig::pallet::Error + **/ + PalletMultisigError: { + _enum: [ + 'MinimumThreshold', + 'AlreadyApproved', + 'NoApprovalsNeeded', + 'TooFewSignatories', + 'TooManySignatories', + 'SignatoriesOutOfOrder', + 'SenderInSignatories', + 'NotFound', + 'NotOwner', + 'NoTimepoint', + 'WrongTimepoint', + 'UnexpectedTimepoint', + 'MaxWeightTooLow', + 'AlreadyStored', + ], + }, + /** + * Lookup360: pallet_proxy::ProxyDefinition + **/ + PalletProxyProxyDefinition: { + delegate: 'AccountId32', + proxyType: 'RococoParachainRuntimeProxyType', + delay: 'u32', + }, + /** + * Lookup364: pallet_proxy::Announcement + **/ + PalletProxyAnnouncement: { + real: 'AccountId32', + callHash: 'H256', + height: 'u32', + }, + /** + * Lookup366: pallet_proxy::pallet::Error + **/ + PalletProxyError: { + _enum: [ + 'TooMany', + 'NotFound', + 'NotProxy', + 'Unproxyable', + 'Duplicate', + 'NoPermission', + 'Unannounced', + 'NoSelfProxy', + ], + }, + /** + * Lookup367: pallet_preimage::RequestStatus + **/ + PalletPreimageRequestStatus: { + _enum: { + Unrequested: { + deposit: '(AccountId32,u128)', + len: 'u32', + }, + Requested: { + deposit: 'Option<(AccountId32,u128)>', + count: 'u32', + len: 'Option', + }, + }, + }, + /** + * Lookup372: pallet_preimage::pallet::Error + **/ + PalletPreimageError: { + _enum: ['TooBig', 'AlreadyNoted', 'NotAuthorized', 'NotNoted', 'Requested', 'NotRequested'], + }, + /** + * Lookup374: pallet_balances::BalanceLock + **/ + PalletBalancesBalanceLock: { + id: '[u8;8]', + amount: 'u128', + reasons: 'PalletBalancesReasons', + }, + /** + * Lookup375: pallet_balances::Reasons + **/ + PalletBalancesReasons: { + _enum: ['Fee', 'Misc', 'All'], + }, + /** + * Lookup378: pallet_balances::ReserveData + **/ + PalletBalancesReserveData: { + id: '[u8;8]', + amount: 'u128', + }, + /** + * Lookup380: pallet_balances::pallet::Error + **/ + PalletBalancesError: { + _enum: [ + 'VestingBalance', + 'LiquidityRestrictions', + 'InsufficientBalance', + 'ExistentialDeposit', + 'KeepAlive', + 'ExistingVestingSchedule', + 'DeadAccount', + 'TooManyReserves', + ], + }, + /** + * Lookup383: pallet_vesting::Releases + **/ + PalletVestingReleases: { + _enum: ['V0', 'V1'], + }, + /** + * Lookup384: pallet_vesting::pallet::Error + **/ + PalletVestingError: { + _enum: [ + 'NotVesting', + 'AtMaxVestingSchedules', + 'AmountLow', + 'ScheduleIndexOutOfBounds', + 'InvalidScheduleParams', + ], + }, + /** + * Lookup386: pallet_transaction_payment::Releases + **/ + PalletTransactionPaymentReleases: { + _enum: ['V1Ancient', 'V2'], + }, + /** + * Lookup387: pallet_treasury::Proposal + **/ + PalletTreasuryProposal: { + proposer: 'AccountId32', + value: 'u128', + beneficiary: 'AccountId32', + bond: 'u128', + }, + /** + * Lookup392: frame_support::PalletId + **/ + FrameSupportPalletId: '[u8;8]', + /** + * Lookup393: pallet_treasury::pallet::Error + **/ + PalletTreasuryError: { + _enum: [ + 'InsufficientProposersBalance', + 'InvalidIndex', + 'TooManyApprovals', + 'InsufficientPermission', + 'ProposalNotApproved', + ], + }, + /** + * Lookup398: pallet_democracy::types::ReferendumInfo, Balance> + **/ + PalletDemocracyReferendumInfo: { + _enum: { + Ongoing: 'PalletDemocracyReferendumStatus', + Finished: { + approved: 'bool', + end: 'u32', + }, + }, + }, + /** + * Lookup399: pallet_democracy::types::ReferendumStatus, Balance> + **/ + PalletDemocracyReferendumStatus: { + end: 'u32', + proposal: 'FrameSupportPreimagesBounded', + threshold: 'PalletDemocracyVoteThreshold', + delay: 'u32', + tally: 'PalletDemocracyTally', + }, + /** + * Lookup400: pallet_democracy::types::Tally + **/ + PalletDemocracyTally: { + ayes: 'u128', + nays: 'u128', + turnout: 'u128', + }, + /** + * Lookup401: pallet_democracy::vote::Voting + **/ + PalletDemocracyVoteVoting: { + _enum: { + Direct: { + votes: 'Vec<(u32,PalletDemocracyVoteAccountVote)>', + delegations: 'PalletDemocracyDelegations', + prior: 'PalletDemocracyVotePriorLock', + }, + Delegating: { + balance: 'u128', + target: 'AccountId32', + conviction: 'PalletDemocracyConviction', + delegations: 'PalletDemocracyDelegations', + prior: 'PalletDemocracyVotePriorLock', + }, + }, + }, + /** + * Lookup405: pallet_democracy::types::Delegations + **/ + PalletDemocracyDelegations: { + votes: 'u128', + capital: 'u128', + }, + /** + * Lookup406: pallet_democracy::vote::PriorLock + **/ + PalletDemocracyVotePriorLock: '(u32,u128)', + /** + * Lookup409: pallet_democracy::pallet::Error + **/ + PalletDemocracyError: { + _enum: [ + 'ValueLow', + 'ProposalMissing', + 'AlreadyCanceled', + 'DuplicateProposal', + 'ProposalBlacklisted', + 'NotSimpleMajority', + 'InvalidHash', + 'NoProposal', + 'AlreadyVetoed', + 'ReferendumInvalid', + 'NoneWaiting', + 'NotVoter', + 'NoPermission', + 'AlreadyDelegating', + 'InsufficientFunds', + 'NotDelegating', + 'VotesExist', + 'InstantNotAllowed', + 'Nonsense', + 'WrongUpperBound', + 'MaxVotesReached', + 'TooMany', + 'VotingPeriodLow', + 'PreimageNotExist', + ], + }, + /** + * Lookup411: pallet_collective::Votes + **/ + PalletCollectiveVotes: { + index: 'u32', + threshold: 'u32', + ayes: 'Vec', + nays: 'Vec', + end: 'u32', + }, + /** + * Lookup412: pallet_collective::pallet::Error + **/ + PalletCollectiveError: { + _enum: [ + 'NotMember', + 'DuplicateProposal', + 'ProposalMissing', + 'WrongIndex', + 'DuplicateVote', + 'AlreadyInitialized', + 'TooEarly', + 'TooManyProposals', + 'WrongProposalWeight', + 'WrongProposalLength', + ], + }, + /** + * Lookup414: pallet_membership::pallet::Error + **/ + PalletMembershipError: { + _enum: ['AlreadyMember', 'NotMember', 'TooManyMembers'], + }, + /** + * Lookup417: pallet_bounties::Bounty + **/ + PalletBountiesBounty: { + proposer: 'AccountId32', + value: 'u128', + fee: 'u128', + curatorDeposit: 'u128', + bond: 'u128', + status: 'PalletBountiesBountyStatus', + }, + /** + * Lookup418: pallet_bounties::BountyStatus + **/ + PalletBountiesBountyStatus: { + _enum: { + Proposed: 'Null', + Approved: 'Null', + Funded: 'Null', + CuratorProposed: { + curator: 'AccountId32', + }, + Active: { + curator: 'AccountId32', + updateDue: 'u32', + }, + PendingPayout: { + curator: 'AccountId32', + beneficiary: 'AccountId32', + unlockAt: 'u32', + }, + }, + }, + /** + * Lookup420: pallet_bounties::pallet::Error + **/ + PalletBountiesError: { + _enum: [ + 'InsufficientProposersBalance', + 'InvalidIndex', + 'ReasonTooBig', + 'UnexpectedStatus', + 'RequireCurator', + 'InvalidValue', + 'InvalidFee', + 'PendingPayout', + 'Premature', + 'HasActiveChildBounty', + 'TooManyQueued', + ], + }, + /** + * Lookup421: pallet_tips::OpenTip + **/ + PalletTipsOpenTip: { + reason: 'H256', + who: 'AccountId32', + finder: 'AccountId32', + deposit: 'u128', + closes: 'Option', + tips: 'Vec<(AccountId32,u128)>', + findersFee: 'bool', + }, + /** + * Lookup423: pallet_tips::pallet::Error + **/ + PalletTipsError: { + _enum: ['ReasonTooBig', 'AlreadyKnown', 'UnknownTip', 'NotFinder', 'StillOpen', 'Premature'], + }, + /** + * Lookup424: pallet_identity::types::Registration + **/ + PalletIdentityRegistration: { + judgements: 'Vec<(u32,PalletIdentityJudgement)>', + deposit: 'u128', + info: 'PalletIdentityIdentityInfo', + }, + /** + * Lookup431: pallet_identity::types::RegistrarInfo + **/ + PalletIdentityRegistrarInfo: { + account: 'AccountId32', + fee: 'u128', + fields: 'PalletIdentityBitFlags', + }, + /** + * Lookup433: pallet_identity::pallet::Error + **/ + PalletIdentityError: { + _enum: [ + 'TooManySubAccounts', + 'NotFound', + 'NotNamed', + 'EmptyIndex', + 'FeeChanged', + 'NoIdentity', + 'StickyJudgement', + 'JudgementGiven', + 'InvalidJudgement', + 'InvalidIndex', + 'InvalidTarget', + 'TooManyFields', + 'TooManyRegistrars', + 'AlreadyClaimed', + 'NotSub', + 'NotOwned', + 'JudgementForDifferentIdentity', + 'JudgementPaymentFailed', + ], + }, + /** + * Lookup435: polkadot_primitives::v2::UpgradeRestriction + **/ + PolkadotPrimitivesV2UpgradeRestriction: { + _enum: ['Present'], + }, + /** + * Lookup436: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot + **/ + CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: { + dmqMqcHead: 'H256', + relayDispatchQueueSize: '(u32,u32)', + ingressChannels: 'Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>', + egressChannels: 'Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>', + }, + /** + * Lookup439: polkadot_primitives::v2::AbridgedHrmpChannel + **/ + PolkadotPrimitivesV2AbridgedHrmpChannel: { + maxCapacity: 'u32', + maxTotalSize: 'u32', + maxMessageSize: 'u32', + msgCount: 'u32', + totalSize: 'u32', + mqcHead: 'Option', + }, + /** + * Lookup440: polkadot_primitives::v2::AbridgedHostConfiguration + **/ + PolkadotPrimitivesV2AbridgedHostConfiguration: { + maxCodeSize: 'u32', + maxHeadDataSize: 'u32', + maxUpwardQueueCount: 'u32', + maxUpwardQueueSize: 'u32', + maxUpwardMessageSize: 'u32', + maxUpwardMessageNumPerCandidate: 'u32', + hrmpMaxMessageNumPerCandidate: 'u32', + validationUpgradeCooldown: 'u32', + validationUpgradeDelay: 'u32', + }, + /** + * Lookup446: polkadot_core_primitives::OutboundHrmpMessage + **/ + PolkadotCorePrimitivesOutboundHrmpMessage: { + recipient: 'u32', + data: 'Bytes', + }, + /** + * Lookup447: cumulus_pallet_parachain_system::pallet::Error + **/ + CumulusPalletParachainSystemError: { + _enum: [ + 'OverlappingUpgrades', + 'ProhibitedByPolkadot', + 'TooBig', + 'ValidationDataNotAvailable', + 'HostConfigurationNotAvailable', + 'NotScheduled', + 'NothingAuthorized', + 'Unauthorized', + ], + }, + /** + * Lookup451: sp_core::crypto::KeyTypeId + **/ + SpCoreCryptoKeyTypeId: '[u8;4]', + /** + * Lookup452: pallet_session::pallet::Error + **/ + PalletSessionError: { + _enum: ['InvalidProof', 'NoAssociatedValidatorId', 'DuplicatedKey', 'NoKeys', 'NoAccount'], + }, + /** + * Lookup456: pallet_parachain_staking::types::ParachainBondConfig + **/ + PalletParachainStakingParachainBondConfig: { + account: 'AccountId32', + percent: 'Percent', + }, + /** + * Lookup457: pallet_parachain_staking::types::RoundInfo + **/ + PalletParachainStakingRoundInfo: { + current: 'u32', + first: 'u32', + length: 'u32', + }, + /** + * Lookup458: pallet_parachain_staking::types::Delegator + **/ + PalletParachainStakingDelegator: { + id: 'AccountId32', + delegations: 'PalletParachainStakingSetOrderedSet', + total: 'u128', + lessTotal: 'u128', + status: 'PalletParachainStakingDelegatorStatus', + }, + /** + * Lookup459: pallet_parachain_staking::set::OrderedSet> + **/ + PalletParachainStakingSetOrderedSet: 'Vec', + /** + * Lookup460: pallet_parachain_staking::types::Bond + **/ + PalletParachainStakingBond: { + owner: 'AccountId32', + amount: 'u128', + }, + /** + * Lookup462: pallet_parachain_staking::types::DelegatorStatus + **/ + PalletParachainStakingDelegatorStatus: { + _enum: ['Active'], + }, + /** + * Lookup463: pallet_parachain_staking::types::CandidateMetadata + **/ + PalletParachainStakingCandidateMetadata: { + bond: 'u128', + delegationCount: 'u32', + totalCounted: 'u128', + lowestTopDelegationAmount: 'u128', + highestBottomDelegationAmount: 'u128', + lowestBottomDelegationAmount: 'u128', + topCapacity: 'PalletParachainStakingCapacityStatus', + bottomCapacity: 'PalletParachainStakingCapacityStatus', + request: 'Option', + status: 'PalletParachainStakingCollatorStatus', + }, + /** + * Lookup464: pallet_parachain_staking::types::CapacityStatus + **/ + PalletParachainStakingCapacityStatus: { + _enum: ['Full', 'Empty', 'Partial'], + }, + /** + * Lookup466: pallet_parachain_staking::types::CandidateBondLessRequest + **/ + PalletParachainStakingCandidateBondLessRequest: { + amount: 'u128', + whenExecutable: 'u32', + }, + /** + * Lookup467: pallet_parachain_staking::types::CollatorStatus + **/ + PalletParachainStakingCollatorStatus: { + _enum: { + Active: 'Null', + Idle: 'Null', + Leaving: 'u32', + }, + }, + /** + * Lookup469: pallet_parachain_staking::delegation_requests::ScheduledRequest + **/ + PalletParachainStakingDelegationRequestsScheduledRequest: { + delegator: 'AccountId32', + whenExecutable: 'u32', + action: 'PalletParachainStakingDelegationRequestsDelegationAction', + }, + /** + * Lookup471: pallet_parachain_staking::auto_compound::AutoCompoundConfig + **/ + PalletParachainStakingAutoCompoundAutoCompoundConfig: { + delegator: 'AccountId32', + value: 'Percent', + }, + /** + * Lookup472: pallet_parachain_staking::types::Delegations + **/ + PalletParachainStakingDelegations: { + delegations: 'Vec', + total: 'u128', + }, + /** + * Lookup474: pallet_parachain_staking::types::CollatorSnapshot + **/ + PalletParachainStakingCollatorSnapshot: { + bond: 'u128', + delegations: 'Vec', + total: 'u128', + }, + /** + * Lookup476: pallet_parachain_staking::types::BondWithAutoCompound + **/ + PalletParachainStakingBondWithAutoCompound: { + owner: 'AccountId32', + amount: 'u128', + autoCompound: 'Percent', + }, + /** + * Lookup477: pallet_parachain_staking::types::DelayedPayout + **/ + PalletParachainStakingDelayedPayout: { + roundIssuance: 'u128', + totalStakingReward: 'u128', + collatorCommission: 'Perbill', + }, + /** + * Lookup478: pallet_parachain_staking::inflation::InflationInfo + **/ + PalletParachainStakingInflationInflationInfo: { + expect: { + min: 'u128', + ideal: 'u128', + max: 'u128', + }, + annual: { + min: 'Perbill', + ideal: 'Perbill', + max: 'Perbill', + }, + round: { + min: 'Perbill', + ideal: 'Perbill', + max: 'Perbill', + }, + }, + /** + * Lookup479: pallet_parachain_staking::pallet::Error + **/ + PalletParachainStakingError: { + _enum: [ + 'DelegatorDNE', + 'DelegatorDNEinTopNorBottom', + 'DelegatorDNEInDelegatorSet', + 'CandidateDNE', + 'DelegationDNE', + 'DelegatorExists', + 'CandidateExists', + 'CandidateBondBelowMin', + 'InsufficientBalance', + 'DelegatorBondBelowMin', + 'DelegationBelowMin', + 'AlreadyOffline', + 'AlreadyActive', + 'DelegatorAlreadyLeaving', + 'DelegatorNotLeaving', + 'DelegatorCannotLeaveYet', + 'CannotDelegateIfLeaving', + 'CandidateAlreadyLeaving', + 'CandidateNotLeaving', + 'CandidateCannotLeaveYet', + 'CannotGoOnlineIfLeaving', + 'ExceedMaxDelegationsPerDelegator', + 'AlreadyDelegatedCandidate', + 'InvalidSchedule', + 'CannotSetBelowMin', + 'RoundLengthMustBeGreaterThanTotalSelectedCollators', + 'NoWritingSameValue', + 'TooLowCandidateCountWeightHintCancelLeaveCandidates', + 'TooLowCandidateDelegationCountToLeaveCandidates', + 'PendingCandidateRequestsDNE', + 'PendingCandidateRequestAlreadyExists', + 'PendingCandidateRequestNotDueYet', + 'PendingDelegationRequestDNE', + 'PendingDelegationRequestAlreadyExists', + 'PendingDelegationRequestNotDueYet', + 'CannotDelegateLessThanOrEqualToLowestBottomWhenFull', + 'PendingDelegationRevoke', + 'CandidateUnauthorized', + ], + }, + /** + * Lookup481: cumulus_pallet_xcmp_queue::InboundChannelDetails + **/ + CumulusPalletXcmpQueueInboundChannelDetails: { + sender: 'u32', + state: 'CumulusPalletXcmpQueueInboundState', + messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>', + }, + /** + * Lookup482: cumulus_pallet_xcmp_queue::InboundState + **/ + CumulusPalletXcmpQueueInboundState: { + _enum: ['Ok', 'Suspended'], + }, + /** + * Lookup485: polkadot_parachain::primitives::XcmpMessageFormat + **/ + PolkadotParachainPrimitivesXcmpMessageFormat: { + _enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals'], + }, + /** + * Lookup488: cumulus_pallet_xcmp_queue::OutboundChannelDetails + **/ + CumulusPalletXcmpQueueOutboundChannelDetails: { + recipient: 'u32', + state: 'CumulusPalletXcmpQueueOutboundState', + signalsExist: 'bool', + firstIndex: 'u16', + lastIndex: 'u16', + }, + /** + * Lookup489: cumulus_pallet_xcmp_queue::OutboundState + **/ + CumulusPalletXcmpQueueOutboundState: { + _enum: ['Ok', 'Suspended'], + }, + /** + * Lookup491: cumulus_pallet_xcmp_queue::QueueConfigData + **/ + CumulusPalletXcmpQueueQueueConfigData: { + suspendThreshold: 'u32', + dropThreshold: 'u32', + resumeThreshold: 'u32', + thresholdWeight: 'SpWeightsWeightV2Weight', + weightRestrictDecay: 'SpWeightsWeightV2Weight', + xcmpMaxIndividualWeight: 'SpWeightsWeightV2Weight', + }, + /** + * Lookup493: cumulus_pallet_xcmp_queue::pallet::Error + **/ + CumulusPalletXcmpQueueError: { + _enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit'], + }, + /** + * Lookup494: pallet_xcm::pallet::QueryStatus + **/ + PalletXcmQueryStatus: { + _enum: { + Pending: { + responder: 'XcmVersionedMultiLocation', + maybeMatchQuerier: 'Option', + maybeNotify: 'Option<(u8,u8)>', + timeout: 'u32', + }, + VersionNotifier: { + origin: 'XcmVersionedMultiLocation', + isActive: 'bool', + }, + Ready: { + response: 'XcmVersionedResponse', + at: 'u32', + }, + }, + }, + /** + * Lookup498: xcm::VersionedResponse + **/ + XcmVersionedResponse: { + _enum: { + __Unused0: 'Null', + __Unused1: 'Null', + V2: 'XcmV2Response', + V3: 'XcmV3Response', + }, + }, + /** + * Lookup504: pallet_xcm::pallet::VersionMigrationStage + **/ + PalletXcmVersionMigrationStage: { + _enum: { + MigrateSupportedVersion: 'Null', + MigrateVersionNotifiers: 'Null', + NotifyCurrentTargets: 'Option', + MigrateAndNotifyOldTargets: 'Null', }, }, /** - * Lookup37: litentry_primitives::identity::Identity + * Lookup506: xcm::VersionedAssetId **/ - LitentryPrimitivesIdentity: { + XcmVersionedAssetId: { _enum: { - Substrate: { - network: 'LitentryPrimitivesIdentitySubstrateNetwork', - address: 'LitentryPrimitivesIdentityAddress32', - }, - Evm: { - network: 'LitentryPrimitivesIdentityEvmNetwork', - address: 'LitentryPrimitivesIdentityAddress20', - }, - Web2: { - network: 'LitentryPrimitivesIdentityWeb2Network', - address: 'Bytes', - }, + __Unused0: 'Null', + __Unused1: 'Null', + __Unused2: 'Null', + V3: 'XcmV3MultiassetAssetId', }, }, /** - * Lookup38: litentry_primitives::identity::SubstrateNetwork + * Lookup507: pallet_xcm::pallet::RemoteLockedFungibleRecord **/ - LitentryPrimitivesIdentitySubstrateNetwork: { - _enum: ['Polkadot', 'Kusama', 'Litentry', 'Litmus', 'LitentryRococo', 'Khala', 'TestNet'], + PalletXcmRemoteLockedFungibleRecord: { + amount: 'u128', + owner: 'XcmVersionedMultiLocation', + locker: 'XcmVersionedMultiLocation', + users: 'u32', }, /** - * Lookup39: litentry_primitives::identity::Address32 + * Lookup511: pallet_xcm::pallet::Error **/ - LitentryPrimitivesIdentityAddress32: '[u8;32]', + PalletXcmError: { + _enum: [ + 'Unreachable', + 'SendFailure', + 'Filtered', + 'UnweighableMessage', + 'DestinationNotInvertible', + 'Empty', + 'CannotReanchor', + 'TooManyAssets', + 'InvalidOrigin', + 'BadVersion', + 'BadLocation', + 'NoSubscription', + 'AlreadySubscribed', + 'InvalidAsset', + 'LowBalance', + 'TooManyLocks', + 'AccountNotSovereign', + 'FeesNotMet', + 'LockNotFound', + 'InUse', + ], + }, /** - * Lookup40: litentry_primitives::identity::EvmNetwork + * Lookup512: cumulus_pallet_xcm::pallet::Error **/ - LitentryPrimitivesIdentityEvmNetwork: { - _enum: ['Ethereum', 'BSC'], + CumulusPalletXcmError: 'Null', + /** + * Lookup513: cumulus_pallet_dmp_queue::ConfigData + **/ + CumulusPalletDmpQueueConfigData: { + maxIndividual: 'SpWeightsWeightV2Weight', }, /** - * Lookup41: litentry_primitives::identity::Address20 + * Lookup514: cumulus_pallet_dmp_queue::PageIndexData **/ - LitentryPrimitivesIdentityAddress20: '[u8;20]', + CumulusPalletDmpQueuePageIndexData: { + beginUsed: 'u32', + endUsed: 'u32', + overweightCount: 'u64', + }, /** - * Lookup43: litentry_primitives::identity::Web2Network + * Lookup517: cumulus_pallet_dmp_queue::pallet::Error **/ - LitentryPrimitivesIdentityWeb2Network: { - _enum: ['Twitter', 'Discord', 'Github'], + CumulusPalletDmpQueueError: { + _enum: ['Unknown', 'OverLimit'], }, /** - * Lookup46: frame_system::Phase + * Lookup518: orml_xtokens::module::Error **/ - FrameSystemPhase: { - _enum: { - ApplyExtrinsic: 'u32', - Finalization: 'Null', - Initialization: 'Null', - }, + OrmlXtokensModuleError: { + _enum: [ + 'AssetHasNoReserve', + 'NotCrossChainTransfer', + 'InvalidDest', + 'NotCrossChainTransferableCurrency', + 'UnweighableMessage', + 'XcmExecutionFailed', + 'CannotReanchor', + 'InvalidAncestry', + 'InvalidAsset', + 'DestinationNotInvertible', + 'BadVersion', + 'DistinctReserveForAssetAndFee', + 'ZeroFee', + 'ZeroAmount', + 'TooManyAssetsBeingSent', + 'AssetIndexNonExistent', + 'FeeNotEnough', + 'NotSupportedMultiLocation', + 'MinXcmFeeNotDefined', + ], }, /** - * Lookup50: frame_system::LastRuntimeUpgradeInfo + * Lookup520: orml_tokens::BalanceLock **/ - FrameSystemLastRuntimeUpgradeInfo: { - specVersion: 'Compact', - specName: 'Text', + OrmlTokensBalanceLock: { + id: '[u8;8]', + amount: 'u128', }, /** - * Lookup54: frame_system::pallet::Call + * Lookup522: orml_tokens::AccountData **/ - FrameSystemCall: { - _enum: { - remark: { - remark: 'Bytes', - }, - set_heap_pages: { - pages: 'u64', - }, - set_code: { - code: 'Bytes', - }, - set_code_without_checks: { - code: 'Bytes', - }, - set_storage: { - items: 'Vec<(Bytes,Bytes)>', - }, - kill_storage: { - _alias: { - keys_: 'keys', - }, - keys_: 'Vec', - }, - kill_prefix: { - prefix: 'Bytes', - subkeys: 'u32', - }, - remark_with_event: { - remark: 'Bytes', - }, - }, + OrmlTokensAccountData: { + free: 'u128', + reserved: 'u128', + frozen: 'u128', }, /** - * Lookup58: frame_system::limits::BlockWeights + * Lookup524: orml_tokens::ReserveData **/ - FrameSystemLimitsBlockWeights: { - baseBlock: 'SpWeightsWeightV2Weight', - maxBlock: 'SpWeightsWeightV2Weight', - perClass: 'FrameSupportDispatchPerDispatchClassWeightsPerClass', + OrmlTokensReserveData: { + id: '[u8;8]', + amount: 'u128', }, /** - * Lookup59: frame_support::dispatch::PerDispatchClass + * Lookup526: orml_tokens::module::Error **/ - FrameSupportDispatchPerDispatchClassWeightsPerClass: { - normal: 'FrameSystemLimitsWeightsPerClass', - operational: 'FrameSystemLimitsWeightsPerClass', - mandatory: 'FrameSystemLimitsWeightsPerClass', + OrmlTokensModuleError: { + _enum: [ + 'BalanceTooLow', + 'AmountIntoBalanceFailed', + 'LiquidityRestrictions', + 'MaxLocksExceeded', + 'KeepAlive', + 'ExistentialDeposit', + 'DeadAccount', + 'TooManyReserves', + ], }, /** - * Lookup60: frame_system::limits::WeightsPerClass + * Lookup529: pallet_bridge::pallet::ProposalVotes **/ - FrameSystemLimitsWeightsPerClass: { - baseExtrinsic: 'SpWeightsWeightV2Weight', - maxExtrinsic: 'Option', - maxTotal: 'Option', - reserved: 'Option', + PalletBridgeProposalVotes: { + votesFor: 'Vec', + votesAgainst: 'Vec', + status: 'PalletBridgeProposalStatus', + expiry: 'u32', }, /** - * Lookup62: frame_system::limits::BlockLength + * Lookup530: pallet_bridge::pallet::ProposalStatus **/ - FrameSystemLimitsBlockLength: { - max: 'FrameSupportDispatchPerDispatchClassU32', + PalletBridgeProposalStatus: { + _enum: ['Initiated', 'Approved', 'Rejected'], }, /** - * Lookup63: frame_support::dispatch::PerDispatchClass + * Lookup532: pallet_bridge::pallet::BridgeEvent **/ - FrameSupportDispatchPerDispatchClassU32: { - normal: 'u32', - operational: 'u32', - mandatory: 'u32', + PalletBridgeBridgeEvent: { + _enum: { + FungibleTransfer: '(u8,u64,[u8;32],u128,Bytes)', + NonFungibleTransfer: '(u8,u64,[u8;32],Bytes,Bytes,Bytes)', + GenericTransfer: '(u8,u64,[u8;32],Bytes)', + }, }, /** - * Lookup64: sp_weights::RuntimeDbWeight + * Lookup533: pallet_bridge::pallet::Error **/ - SpWeightsRuntimeDbWeight: { - read: 'u64', - write: 'u64', + PalletBridgeError: { + _enum: [ + 'ThresholdNotSet', + 'InvalidChainId', + 'InvalidThreshold', + 'ChainNotWhitelisted', + 'ChainAlreadyWhitelisted', + 'ResourceDoesNotExist', + 'RelayerAlreadyExists', + 'RelayerInvalid', + 'MustBeRelayer', + 'RelayerAlreadyVoted', + 'ProposalAlreadyExists', + 'ProposalDoesNotExist', + 'ProposalNotComplete', + 'ProposalAlreadyComplete', + 'ProposalExpired', + 'FeeTooExpensive', + 'FeeDoesNotExist', + 'InsufficientBalance', + 'CannotPayAsFee', + 'NonceOverFlow', + ], }, /** - * Lookup65: sp_version::RuntimeVersion + * Lookup535: pallet_bridge_transfer::pallet::Error **/ - SpVersionRuntimeVersion: { - specName: 'Text', - implName: 'Text', - authoringVersion: 'u32', - specVersion: 'u32', - implVersion: 'u32', - apis: 'Vec<([u8;8],u32)>', - transactionVersion: 'u32', - stateVersion: 'u8', + PalletBridgeTransferError: { + _enum: ['InvalidCommand', 'InvalidResourceId', 'ReachMaximumSupply', 'OverFlow'], }, /** - * Lookup71: frame_system::pallet::Error + * Lookup536: pallet_drop3::RewardPool, sp_core::crypto::AccountId32, Balance, BlockNumber> **/ - FrameSystemError: { + PalletDrop3RewardPool: { + id: 'u64', + name: 'Bytes', + owner: 'AccountId32', + total: 'u128', + remain: 'u128', + createAt: 'u32', + startAt: 'u32', + endAt: 'u32', + started: 'bool', + approved: 'bool', + }, + /** + * Lookup538: pallet_drop3::pallet::Error + **/ + PalletDrop3Error: { _enum: [ - 'InvalidSpecName', - 'SpecVersionNeedsToIncrease', - 'FailedToExtractRuntimeVersion', - 'NonDefaultComposite', - 'NonZeroRefCount', - 'CallFiltered', + 'RequireAdmin', + 'RequireRewardPoolOwner', + 'RequireAdminOrRewardPoolOwner', + 'NoSuchRewardPool', + 'InsufficientReservedBalance', + 'InvalidTotalBalance', + 'InsufficientRemain', + 'InvalidProposedBlock', + 'RewardPoolUnapproved', + 'RewardPoolAlreadyApproved', + 'RewardPoolStopped', + 'RewardPoolRanTooEarly', + 'RewardPoolRanTooLate', + 'UnexpectedUnMovedAmount', + 'NoVacantPoolId', ], }, /** - * Lookup72: pallet_timestamp::pallet::Call + * Lookup539: pallet_extrinsic_filter::pallet::Error **/ - PalletTimestampCall: { - _enum: { - set: { - now: 'Compact', - }, - }, + PalletExtrinsicFilterError: { + _enum: ['CannotBlock', 'CannotConvertToString', 'ExtrinsicAlreadyBlocked', 'ExtrinsicNotBlocked'], }, /** - * Lookup74: pallet_balances::BalanceLock + * Lookup540: pallet_identity_management::pallet::Error **/ - PalletBalancesBalanceLock: { - id: '[u8;8]', - amount: 'u128', - reasons: 'PalletBalancesReasons', + PalletIdentityManagementError: { + _enum: ['DelegateeNotExist', 'UnauthorisedUser'], }, /** - * Lookup75: pallet_balances::Reasons + * Lookup541: pallet_asset_manager::pallet::Error **/ - PalletBalancesReasons: { - _enum: ['Fee', 'Misc', 'All'], + PalletAssetManagerError: { + _enum: [ + 'AssetAlreadyExists', + 'AssetTypeDoesNotExist', + 'AssetIdDoesNotExist', + 'DefaultAssetTypeRemoved', + 'AssetIdLimitReached', + ], }, /** - * Lookup78: pallet_balances::ReserveData + * Lookup542: pallet_vc_management::vc_context::VCContext **/ - PalletBalancesReserveData: { - id: '[u8;8]', - amount: 'u128', + PalletVcManagementVcContext: { + _alias: { + hash_: 'hash', + }, + subject: 'AccountId32', + assertion: 'CorePrimitivesAssertion', + hash_: 'H256', + status: 'PalletVcManagementVcContextStatus', }, /** - * Lookup80: pallet_balances::pallet::Call + * Lookup543: pallet_vc_management::vc_context::Status **/ - PalletBalancesCall: { - _enum: { - transfer: { - dest: 'MultiAddress', - value: 'Compact', - }, - set_balance: { - who: 'MultiAddress', - newFree: 'Compact', - newReserved: 'Compact', - }, - force_transfer: { - source: 'MultiAddress', - dest: 'MultiAddress', - value: 'Compact', - }, - transfer_keep_alive: { - dest: 'MultiAddress', - value: 'Compact', - }, - transfer_all: { - dest: 'MultiAddress', - keepAlive: 'bool', - }, - force_unreserve: { - who: 'MultiAddress', - amount: 'u128', - }, - }, + PalletVcManagementVcContextStatus: { + _enum: ['Active', 'Disabled'], }, /** - * Lookup84: pallet_balances::pallet::Error + * Lookup544: pallet_vc_management::schema::VCSchema **/ - PalletBalancesError: { + PalletVcManagementSchemaVcSchema: { + id: 'Bytes', + author: 'AccountId32', + content: 'Bytes', + status: 'PalletVcManagementVcContextStatus', + }, + /** + * Lookup546: pallet_vc_management::pallet::Error + **/ + PalletVcManagementError: { _enum: [ - 'VestingBalance', - 'LiquidityRestrictions', - 'InsufficientBalance', - 'ExistentialDeposit', - 'KeepAlive', - 'ExistingVestingSchedule', - 'DeadAccount', - 'TooManyReserves', + 'VCAlreadyExists', + 'VCNotExist', + 'VCSubjectMismatch', + 'VCAlreadyDisabled', + 'RequireAdmin', + 'SchemaNotExists', + 'SchemaAlreadyDisabled', + 'SchemaAlreadyActivated', + 'SchemaIndexOverFlow', + 'LengthMismatch', ], }, /** - * Lookup86: pallet_transaction_payment::Releases + * Lookup547: pallet_group::pallet::Error **/ - PalletTransactionPaymentReleases: { - _enum: ['V1Ancient', 'V2'], + PalletGroupError: { + _enum: ['GroupMemberAlreadyExists', 'GroupMemberInvalid'], }, /** - * Lookup87: pallet_sudo::pallet::Call + * Lookup549: teerex_primitives::Enclave **/ - PalletSudoCall: { - _enum: { - sudo: { - call: 'Call', - }, - sudo_unchecked_weight: { - call: 'Call', - weight: 'SpWeightsWeightV2Weight', - }, - set_key: { - _alias: { - new_: 'new', - }, - new_: 'MultiAddress', - }, - sudo_as: { - who: 'MultiAddress', - call: 'Call', - }, - }, + TeerexPrimitivesEnclave: { + pubkey: 'AccountId32', + mrEnclave: '[u8;32]', + timestamp: 'u64', + url: 'Bytes', + shieldingKey: 'Option', + vcPubkey: 'Option', + sgxMode: 'TeerexPrimitivesSgxBuildMode', + sgxMetadata: 'TeerexPrimitivesSgxEnclaveMetadata', }, /** - * Lookup89: pallet_parentchain::pallet::Call + * Lookup550: teerex_primitives::SgxBuildMode **/ - PalletParentchainCall: { - _enum: { - set_block: { - header: 'SpRuntimeHeader', - }, - }, + TeerexPrimitivesSgxBuildMode: { + _enum: ['Debug', 'Production'], }, /** - * Lookup90: sp_runtime::generic::header::Header + * Lookup551: teerex_primitives::SgxEnclaveMetadata **/ - SpRuntimeHeader: { - parentHash: 'H256', - number: 'Compact', - stateRoot: 'H256', - extrinsicsRoot: 'H256', - digest: 'SpRuntimeDigest', + TeerexPrimitivesSgxEnclaveMetadata: { + quote: 'Bytes', + quoteSig: 'Bytes', + quoteCert: 'Bytes', }, /** - * Lookup91: sp_runtime::traits::BlakeTwo256 + * Lookup552: teerex_primitives::QuotingEnclave **/ - SpRuntimeBlakeTwo256: 'Null', + TeerexPrimitivesQuotingEnclave: { + issueDate: 'u64', + nextUpdate: 'u64', + miscselect: '[u8;4]', + miscselectMask: '[u8;4]', + attributes: '[u8;16]', + attributesMask: '[u8;16]', + mrsigner: '[u8;32]', + isvprodid: 'u16', + tcb: 'Vec', + }, /** - * Lookup92: pallet_identity_management_tee::pallet::Call + * Lookup554: teerex_primitives::QeTcb **/ - PalletIdentityManagementTeeCall: { - _enum: { - set_user_shielding_key: { - who: 'AccountId32', - key: '[u8;32]', - parentSs58Prefix: 'u16', - }, - set_challenge_code: { - who: 'AccountId32', - identity: 'LitentryPrimitivesIdentity', - code: '[u8;16]', - }, - remove_challenge_code: { - who: 'AccountId32', - identity: 'LitentryPrimitivesIdentity', - }, - create_identity: { - who: 'AccountId32', - identity: 'LitentryPrimitivesIdentity', - metadata: 'Option', - creationRequestBlock: 'u32', - parentSs58Prefix: 'u16', - }, - remove_identity: { - who: 'AccountId32', - identity: 'LitentryPrimitivesIdentity', - }, - verify_identity: { - who: 'AccountId32', - identity: 'LitentryPrimitivesIdentity', - verificationRequestBlock: 'u32', - }, - }, + TeerexPrimitivesQeTcb: { + isvsvn: 'u16', }, /** - * Lookup95: pallet_sudo::pallet::Error + * Lookup555: teerex_primitives::TcbInfoOnChain **/ - PalletSudoError: { - _enum: ['RequireSudo'], + TeerexPrimitivesTcbInfoOnChain: { + issueDate: 'u64', + nextUpdate: 'u64', + tcbLevels: 'Vec', }, /** - * Lookup97: pallet_identity_management_tee::identity_context::IdentityContext + * Lookup557: teerex_primitives::TcbVersionStatus **/ - PalletIdentityManagementTeeIdentityContext: { - metadata: 'Option', - creationRequestBlock: 'Option', - verificationRequestBlock: 'Option', - isVerified: 'bool', + TeerexPrimitivesTcbVersionStatus: { + cpusvn: '[u8;16]', + pcesvn: 'u16', }, /** - * Lookup99: pallet_identity_management_tee::pallet::Error + * Lookup558: pallet_teerex::pallet::Error **/ - PalletIdentityManagementTeeError: { + PalletTeerexError: { _enum: [ - 'ChallengeCodeNotExist', + 'RequireAdmin', + 'EnclaveSignerDecodeError', + 'SenderIsNotAttestedEnclave', + 'RemoteAttestationVerificationFailed', + 'RemoteAttestationTooOld', + 'SgxModeNotAllowed', + 'EnclaveIsNotRegistered', + 'WrongMrenclaveForBondingAccount', + 'WrongMrenclaveForShard', + 'EnclaveUrlTooLong', + 'RaReportTooLong', + 'EmptyEnclaveRegistry', + 'ScheduledEnclaveNotExist', + 'EnclaveNotInSchedule', + 'CollateralInvalid', + 'TooManyTopics', + 'DataTooLong', + ], + }, + /** + * Lookup559: sidechain_primitives::SidechainBlockConfirmation + **/ + SidechainPrimitivesSidechainBlockConfirmation: { + blockNumber: 'u64', + blockHeaderHash: 'H256', + }, + /** + * Lookup560: pallet_sidechain::pallet::Error + **/ + PalletSidechainError: { + _enum: ['ReceivedUnexpectedSidechainBlock', 'InvalidNextFinalizationCandidateBlockNumber'], + }, + /** + * Lookup563: pallet_teeracle::pallet::Error + **/ + PalletTeeracleError: { + _enum: [ + 'InvalidCurrency', + 'ReleaseWhitelistOverflow', + 'ReleaseNotWhitelisted', + 'ReleaseAlreadyWhitelisted', + 'TradingPairStringTooLong', + 'OracleDataNameStringTooLong', + 'DataSourceStringTooLong', + 'OracleBlobTooBig', + ], + }, + /** + * Lookup565: pallet_identity_management_mock::pallet::Error + **/ + PalletIdentityManagementMockError: { + _enum: [ + 'DelegateeNotExist', + 'UnauthorisedUser', + 'ShieldingKeyDecryptionFailed', + 'WrongDecodedType', 'IdentityAlreadyVerified', 'IdentityNotExist', - 'IdentityNotCreated', 'CreatePrimeIdentityNotAllowed', + 'ShieldingKeyNotExist', 'VerificationRequestTooEarly', 'VerificationRequestTooLate', - 'RemovePrimeIdentityDisallowed', + 'VerifySubstrateSignatureFailed', + 'RecoverSubstratePubkeyFailed', + 'VerifyEvmSignatureFailed', + 'CreationRequestBlockZero', + 'ChallengeCodeNotExist', + 'WrongSignatureType', + 'WrongIdentityType', + 'RecoverEvmAddressFailed', + 'UnexpectedMessage', ], }, /** - * Lookup101: sp_runtime::MultiSignature + * Lookup566: pallet_sudo::pallet::Error + **/ + PalletSudoError: { + _enum: ['RequireSudo'], + }, + /** + * Lookup568: sp_runtime::MultiSignature **/ SpRuntimeMultiSignature: { _enum: { @@ -654,47 +5772,43 @@ export default { }, }, /** - * Lookup102: sp_core::ed25519::Signature + * Lookup569: sp_core::ed25519::Signature **/ SpCoreEd25519Signature: '[u8;64]', /** - * Lookup104: sp_core::sr25519::Signature + * Lookup571: sp_core::sr25519::Signature **/ SpCoreSr25519Signature: '[u8;64]', /** - * Lookup105: sp_core::ecdsa::Signature + * Lookup572: sp_core::ecdsa::Signature **/ SpCoreEcdsaSignature: '[u8;65]', /** - * Lookup108: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender + * Lookup575: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender **/ FrameSystemExtensionsCheckNonZeroSender: 'Null', /** - * Lookup109: frame_system::extensions::check_spec_version::CheckSpecVersion + * Lookup576: frame_system::extensions::check_spec_version::CheckSpecVersion **/ FrameSystemExtensionsCheckSpecVersion: 'Null', /** - * Lookup110: frame_system::extensions::check_tx_version::CheckTxVersion + * Lookup577: frame_system::extensions::check_tx_version::CheckTxVersion **/ FrameSystemExtensionsCheckTxVersion: 'Null', /** - * Lookup111: frame_system::extensions::check_genesis::CheckGenesis + * Lookup578: frame_system::extensions::check_genesis::CheckGenesis **/ FrameSystemExtensionsCheckGenesis: 'Null', /** - * Lookup114: frame_system::extensions::check_nonce::CheckNonce + * Lookup581: frame_system::extensions::check_nonce::CheckNonce **/ FrameSystemExtensionsCheckNonce: 'Compact', /** - * Lookup115: frame_system::extensions::check_weight::CheckWeight + * Lookup582: frame_system::extensions::check_weight::CheckWeight **/ FrameSystemExtensionsCheckWeight: 'Null', /** - * Lookup116: pallet_transaction_payment::ChargeTransactionPayment + * Lookup583: pallet_transaction_payment::ChargeTransactionPayment **/ PalletTransactionPaymentChargeTransactionPayment: 'Compact', - /** - * Lookup117: ita_sgx_runtime::Runtime - **/ - ItaSgxRuntimeRuntime: 'Null', }; diff --git a/tee-worker/ts-tests/interfaces/registry.ts b/tee-worker/ts-tests/interfaces/registry.ts index 431520139f..a22575b999 100644 --- a/tee-worker/ts-tests/interfaces/registry.ts +++ b/tee-worker/ts-tests/interfaces/registry.ts @@ -6,12 +6,43 @@ import '@polkadot/types/types/registry'; import type { + CorePrimitivesAssertion, + CorePrimitivesAssertionIndexingNetwork, + CorePrimitivesErrorErrorDetail, + CorePrimitivesErrorImpError, + CorePrimitivesErrorVcmpError, + CorePrimitivesKeyAesOutput, + CumulusPalletDmpQueueCall, + CumulusPalletDmpQueueConfigData, + CumulusPalletDmpQueueError, + CumulusPalletDmpQueueEvent, + CumulusPalletDmpQueuePageIndexData, + CumulusPalletParachainSystemCall, + CumulusPalletParachainSystemError, + CumulusPalletParachainSystemEvent, + CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, + CumulusPalletXcmCall, + CumulusPalletXcmError, + CumulusPalletXcmEvent, + CumulusPalletXcmOrigin, + CumulusPalletXcmpQueueCall, + CumulusPalletXcmpQueueError, + CumulusPalletXcmpQueueEvent, + CumulusPalletXcmpQueueInboundChannelDetails, + CumulusPalletXcmpQueueInboundState, + CumulusPalletXcmpQueueOutboundChannelDetails, + CumulusPalletXcmpQueueOutboundState, + CumulusPalletXcmpQueueQueueConfigData, + CumulusPrimitivesParachainInherentParachainInherentData, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, + FrameSupportDispatchRawOrigin, + FrameSupportPalletId, + FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, @@ -29,13 +60,25 @@ import type { FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, - ItaSgxRuntimeRuntime, - LitentryPrimitivesIdentity, - LitentryPrimitivesIdentityAddress20, - LitentryPrimitivesIdentityAddress32, - LitentryPrimitivesIdentityEvmNetwork, - LitentryPrimitivesIdentitySubstrateNetwork, - LitentryPrimitivesIdentityWeb2Network, + MockTeePrimitivesIdentity, + MockTeePrimitivesIdentityAddress20, + MockTeePrimitivesIdentityAddress32, + MockTeePrimitivesIdentityEvmNetwork, + MockTeePrimitivesIdentitySubstrateNetwork, + MockTeePrimitivesIdentityWeb2Network, + OrmlTokensAccountData, + OrmlTokensBalanceLock, + OrmlTokensModuleCall, + OrmlTokensModuleError, + OrmlTokensModuleEvent, + OrmlTokensReserveData, + OrmlXtokensModuleCall, + OrmlXtokensModuleError, + OrmlXtokensModuleEvent, + PalletAssetManagerAssetMetadata, + PalletAssetManagerCall, + PalletAssetManagerError, + PalletAssetManagerEvent, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, @@ -43,44 +86,296 @@ import type { PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReserveData, - PalletIdentityManagementTeeCall, - PalletIdentityManagementTeeError, - PalletIdentityManagementTeeEvent, - PalletIdentityManagementTeeIdentityContext, - PalletParentchainCall, + PalletBountiesBounty, + PalletBountiesBountyStatus, + PalletBountiesCall, + PalletBountiesError, + PalletBountiesEvent, + PalletBridgeBridgeEvent, + PalletBridgeCall, + PalletBridgeError, + PalletBridgeEvent, + PalletBridgeProposalStatus, + PalletBridgeProposalVotes, + PalletBridgeTransferCall, + PalletBridgeTransferError, + PalletBridgeTransferEvent, + PalletCollectiveCall, + PalletCollectiveError, + PalletCollectiveEvent, + PalletCollectiveRawOrigin, + PalletCollectiveVotes, + PalletDemocracyCall, + PalletDemocracyConviction, + PalletDemocracyDelegations, + PalletDemocracyError, + PalletDemocracyEvent, + PalletDemocracyMetadataOwner, + PalletDemocracyReferendumInfo, + PalletDemocracyReferendumStatus, + PalletDemocracyTally, + PalletDemocracyVoteAccountVote, + PalletDemocracyVotePriorLock, + PalletDemocracyVoteThreshold, + PalletDemocracyVoteVoting, + PalletDrop3Call, + PalletDrop3Error, + PalletDrop3Event, + PalletDrop3RewardPool, + PalletExtrinsicFilterCall, + PalletExtrinsicFilterError, + PalletExtrinsicFilterEvent, + PalletExtrinsicFilterOperationalMode, + PalletGroupCall, + PalletGroupError, + PalletGroupEvent, + PalletIdentityBitFlags, + PalletIdentityCall, + PalletIdentityError, + PalletIdentityEvent, + PalletIdentityIdentityField, + PalletIdentityIdentityInfo, + PalletIdentityJudgement, + PalletIdentityManagementCall, + PalletIdentityManagementError, + PalletIdentityManagementEvent, + PalletIdentityManagementMockCall, + PalletIdentityManagementMockError, + PalletIdentityManagementMockEvent, + PalletIdentityManagementMockIdentityContext, + PalletIdentityRegistrarInfo, + PalletIdentityRegistration, + PalletMembershipCall, + PalletMembershipError, + PalletMembershipEvent, + PalletMultisigCall, + PalletMultisigError, + PalletMultisigEvent, + PalletMultisigMultisig, + PalletMultisigTimepoint, + PalletParachainStakingAutoCompoundAutoCompoundConfig, + PalletParachainStakingBond, + PalletParachainStakingBondWithAutoCompound, + PalletParachainStakingCall, + PalletParachainStakingCandidateBondLessRequest, + PalletParachainStakingCandidateMetadata, + PalletParachainStakingCapacityStatus, + PalletParachainStakingCollatorSnapshot, + PalletParachainStakingCollatorStatus, + PalletParachainStakingDelayedPayout, + PalletParachainStakingDelegationRequestsCancelledScheduledRequest, + PalletParachainStakingDelegationRequestsDelegationAction, + PalletParachainStakingDelegationRequestsScheduledRequest, + PalletParachainStakingDelegations, + PalletParachainStakingDelegator, + PalletParachainStakingDelegatorAdded, + PalletParachainStakingDelegatorStatus, + PalletParachainStakingError, + PalletParachainStakingEvent, + PalletParachainStakingInflationInflationInfo, + PalletParachainStakingParachainBondConfig, + PalletParachainStakingRoundInfo, + PalletParachainStakingSetOrderedSet, + PalletPreimageCall, + PalletPreimageError, + PalletPreimageEvent, + PalletPreimageRequestStatus, + PalletProxyAnnouncement, + PalletProxyCall, + PalletProxyError, + PalletProxyEvent, + PalletProxyProxyDefinition, + PalletSchedulerCall, + PalletSchedulerError, + PalletSchedulerEvent, + PalletSchedulerScheduled, + PalletSessionCall, + PalletSessionError, + PalletSessionEvent, + PalletSidechainCall, + PalletSidechainError, + PalletSidechainEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, + PalletTeeracleCall, + PalletTeeracleError, + PalletTeeracleEvent, + PalletTeerexCall, + PalletTeerexError, + PalletTeerexEvent, PalletTimestampCall, + PalletTipsCall, + PalletTipsError, + PalletTipsEvent, + PalletTipsOpenTip, PalletTransactionPaymentChargeTransactionPayment, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, + PalletTreasuryCall, + PalletTreasuryError, + PalletTreasuryEvent, + PalletTreasuryProposal, + PalletUtilityCall, + PalletUtilityError, + PalletUtilityEvent, + PalletVcManagementCall, + PalletVcManagementError, + PalletVcManagementEvent, + PalletVcManagementSchemaVcSchema, + PalletVcManagementVcContext, + PalletVcManagementVcContextStatus, + PalletVestingCall, + PalletVestingError, + PalletVestingEvent, + PalletVestingReleases, + PalletVestingVestingInfo, + PalletXcmCall, + PalletXcmError, + PalletXcmEvent, + PalletXcmOrigin, + PalletXcmQueryStatus, + PalletXcmRemoteLockedFungibleRecord, + PalletXcmVersionMigrationStage, + ParachainInfoCall, + PolkadotCorePrimitivesInboundDownwardMessage, + PolkadotCorePrimitivesInboundHrmpMessage, + PolkadotCorePrimitivesOutboundHrmpMessage, + PolkadotParachainPrimitivesXcmpMessageFormat, + PolkadotPrimitivesV2AbridgedHostConfiguration, + PolkadotPrimitivesV2AbridgedHrmpChannel, + PolkadotPrimitivesV2PersistedValidationData, + PolkadotPrimitivesV2UpgradeRestriction, + RococoParachainRuntimeOriginCaller, + RococoParachainRuntimeProxyType, + RococoParachainRuntimeRuntime, + RococoParachainRuntimeSessionKeys, + RuntimeCommonXcmImplCurrencyId, + SidechainPrimitivesSidechainBlockConfirmation, SpArithmeticArithmeticError, + SpConsensusAuraSr25519AppSr25519Public, + SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, + SpCoreSr25519Public, SpCoreSr25519Signature, - SpRuntimeBlakeTwo256, + SpCoreVoid, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, - SpRuntimeHeader, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, + SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, + SubstrateFixedFixedU64, + TeerexPrimitivesEnclave, + TeerexPrimitivesQeTcb, + TeerexPrimitivesQuotingEnclave, + TeerexPrimitivesRequest, + TeerexPrimitivesSgxBuildMode, + TeerexPrimitivesSgxEnclaveMetadata, + TeerexPrimitivesTcbInfoOnChain, + TeerexPrimitivesTcbVersionStatus, + TypenumBitB0, + TypenumBitB1, + TypenumUIntUInt, + TypenumUIntUTerm, + TypenumUintUTerm, + XcmDoubleEncoded, + XcmV2BodyId, + XcmV2BodyPart, + XcmV2Instruction, + XcmV2Junction, + XcmV2MultiAsset, + XcmV2MultiLocation, + XcmV2MultiassetAssetId, + XcmV2MultiassetAssetInstance, + XcmV2MultiassetFungibility, + XcmV2MultiassetMultiAssetFilter, + XcmV2MultiassetMultiAssets, + XcmV2MultiassetWildFungibility, + XcmV2MultiassetWildMultiAsset, + XcmV2MultilocationJunctions, + XcmV2NetworkId, + XcmV2OriginKind, + XcmV2Response, + XcmV2TraitsError, + XcmV2WeightLimit, + XcmV2Xcm, + XcmV3Instruction, + XcmV3Junction, + XcmV3JunctionBodyId, + XcmV3JunctionBodyPart, + XcmV3JunctionNetworkId, + XcmV3Junctions, + XcmV3MaybeErrorCode, + XcmV3MultiAsset, + XcmV3MultiLocation, + XcmV3MultiassetAssetId, + XcmV3MultiassetAssetInstance, + XcmV3MultiassetFungibility, + XcmV3MultiassetMultiAssetFilter, + XcmV3MultiassetMultiAssets, + XcmV3MultiassetWildFungibility, + XcmV3MultiassetWildMultiAsset, + XcmV3PalletInfo, + XcmV3QueryResponseInfo, + XcmV3Response, + XcmV3TraitsError, + XcmV3TraitsOutcome, + XcmV3WeightLimit, + XcmV3Xcm, + XcmVersionedAssetId, + XcmVersionedMultiAsset, + XcmVersionedMultiAssets, + XcmVersionedMultiLocation, + XcmVersionedResponse, + XcmVersionedXcm, } from '@polkadot/types/lookup'; declare module '@polkadot/types/types/registry' { interface InterfaceTypes { + CorePrimitivesAssertion: CorePrimitivesAssertion; + CorePrimitivesAssertionIndexingNetwork: CorePrimitivesAssertionIndexingNetwork; + CorePrimitivesErrorErrorDetail: CorePrimitivesErrorErrorDetail; + CorePrimitivesErrorImpError: CorePrimitivesErrorImpError; + CorePrimitivesErrorVcmpError: CorePrimitivesErrorVcmpError; + CorePrimitivesKeyAesOutput: CorePrimitivesKeyAesOutput; + CumulusPalletDmpQueueCall: CumulusPalletDmpQueueCall; + CumulusPalletDmpQueueConfigData: CumulusPalletDmpQueueConfigData; + CumulusPalletDmpQueueError: CumulusPalletDmpQueueError; + CumulusPalletDmpQueueEvent: CumulusPalletDmpQueueEvent; + CumulusPalletDmpQueuePageIndexData: CumulusPalletDmpQueuePageIndexData; + CumulusPalletParachainSystemCall: CumulusPalletParachainSystemCall; + CumulusPalletParachainSystemError: CumulusPalletParachainSystemError; + CumulusPalletParachainSystemEvent: CumulusPalletParachainSystemEvent; + CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot; + CumulusPalletXcmCall: CumulusPalletXcmCall; + CumulusPalletXcmError: CumulusPalletXcmError; + CumulusPalletXcmEvent: CumulusPalletXcmEvent; + CumulusPalletXcmOrigin: CumulusPalletXcmOrigin; + CumulusPalletXcmpQueueCall: CumulusPalletXcmpQueueCall; + CumulusPalletXcmpQueueError: CumulusPalletXcmpQueueError; + CumulusPalletXcmpQueueEvent: CumulusPalletXcmpQueueEvent; + CumulusPalletXcmpQueueInboundChannelDetails: CumulusPalletXcmpQueueInboundChannelDetails; + CumulusPalletXcmpQueueInboundState: CumulusPalletXcmpQueueInboundState; + CumulusPalletXcmpQueueOutboundChannelDetails: CumulusPalletXcmpQueueOutboundChannelDetails; + CumulusPalletXcmpQueueOutboundState: CumulusPalletXcmpQueueOutboundState; + CumulusPalletXcmpQueueQueueConfigData: CumulusPalletXcmpQueueQueueConfigData; + CumulusPrimitivesParachainInherentParachainInherentData: CumulusPrimitivesParachainInherentParachainInherentData; FrameSupportDispatchDispatchClass: FrameSupportDispatchDispatchClass; FrameSupportDispatchDispatchInfo: FrameSupportDispatchDispatchInfo; FrameSupportDispatchPays: FrameSupportDispatchPays; FrameSupportDispatchPerDispatchClassU32: FrameSupportDispatchPerDispatchClassU32; FrameSupportDispatchPerDispatchClassWeight: FrameSupportDispatchPerDispatchClassWeight; FrameSupportDispatchPerDispatchClassWeightsPerClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; + FrameSupportDispatchRawOrigin: FrameSupportDispatchRawOrigin; + FrameSupportPalletId: FrameSupportPalletId; + FrameSupportPreimagesBounded: FrameSupportPreimagesBounded; FrameSupportTokensMiscBalanceStatus: FrameSupportTokensMiscBalanceStatus; FrameSystemAccountInfo: FrameSystemAccountInfo; FrameSystemCall: FrameSystemCall; @@ -98,13 +393,25 @@ declare module '@polkadot/types/types/registry' { FrameSystemLimitsBlockWeights: FrameSystemLimitsBlockWeights; FrameSystemLimitsWeightsPerClass: FrameSystemLimitsWeightsPerClass; FrameSystemPhase: FrameSystemPhase; - ItaSgxRuntimeRuntime: ItaSgxRuntimeRuntime; - LitentryPrimitivesIdentity: LitentryPrimitivesIdentity; - LitentryPrimitivesIdentityAddress20: LitentryPrimitivesIdentityAddress20; - LitentryPrimitivesIdentityAddress32: LitentryPrimitivesIdentityAddress32; - LitentryPrimitivesIdentityEvmNetwork: LitentryPrimitivesIdentityEvmNetwork; - LitentryPrimitivesIdentitySubstrateNetwork: LitentryPrimitivesIdentitySubstrateNetwork; - LitentryPrimitivesIdentityWeb2Network: LitentryPrimitivesIdentityWeb2Network; + MockTeePrimitivesIdentity: MockTeePrimitivesIdentity; + MockTeePrimitivesIdentityAddress20: MockTeePrimitivesIdentityAddress20; + MockTeePrimitivesIdentityAddress32: MockTeePrimitivesIdentityAddress32; + MockTeePrimitivesIdentityEvmNetwork: MockTeePrimitivesIdentityEvmNetwork; + MockTeePrimitivesIdentitySubstrateNetwork: MockTeePrimitivesIdentitySubstrateNetwork; + MockTeePrimitivesIdentityWeb2Network: MockTeePrimitivesIdentityWeb2Network; + OrmlTokensAccountData: OrmlTokensAccountData; + OrmlTokensBalanceLock: OrmlTokensBalanceLock; + OrmlTokensModuleCall: OrmlTokensModuleCall; + OrmlTokensModuleError: OrmlTokensModuleError; + OrmlTokensModuleEvent: OrmlTokensModuleEvent; + OrmlTokensReserveData: OrmlTokensReserveData; + OrmlXtokensModuleCall: OrmlXtokensModuleCall; + OrmlXtokensModuleError: OrmlXtokensModuleError; + OrmlXtokensModuleEvent: OrmlXtokensModuleEvent; + PalletAssetManagerAssetMetadata: PalletAssetManagerAssetMetadata; + PalletAssetManagerCall: PalletAssetManagerCall; + PalletAssetManagerError: PalletAssetManagerError; + PalletAssetManagerEvent: PalletAssetManagerEvent; PalletBalancesAccountData: PalletBalancesAccountData; PalletBalancesBalanceLock: PalletBalancesBalanceLock; PalletBalancesCall: PalletBalancesCall; @@ -112,33 +419,254 @@ declare module '@polkadot/types/types/registry' { PalletBalancesEvent: PalletBalancesEvent; PalletBalancesReasons: PalletBalancesReasons; PalletBalancesReserveData: PalletBalancesReserveData; - PalletIdentityManagementTeeCall: PalletIdentityManagementTeeCall; - PalletIdentityManagementTeeError: PalletIdentityManagementTeeError; - PalletIdentityManagementTeeEvent: PalletIdentityManagementTeeEvent; - PalletIdentityManagementTeeIdentityContext: PalletIdentityManagementTeeIdentityContext; - PalletParentchainCall: PalletParentchainCall; + PalletBountiesBounty: PalletBountiesBounty; + PalletBountiesBountyStatus: PalletBountiesBountyStatus; + PalletBountiesCall: PalletBountiesCall; + PalletBountiesError: PalletBountiesError; + PalletBountiesEvent: PalletBountiesEvent; + PalletBridgeBridgeEvent: PalletBridgeBridgeEvent; + PalletBridgeCall: PalletBridgeCall; + PalletBridgeError: PalletBridgeError; + PalletBridgeEvent: PalletBridgeEvent; + PalletBridgeProposalStatus: PalletBridgeProposalStatus; + PalletBridgeProposalVotes: PalletBridgeProposalVotes; + PalletBridgeTransferCall: PalletBridgeTransferCall; + PalletBridgeTransferError: PalletBridgeTransferError; + PalletBridgeTransferEvent: PalletBridgeTransferEvent; + PalletCollectiveCall: PalletCollectiveCall; + PalletCollectiveError: PalletCollectiveError; + PalletCollectiveEvent: PalletCollectiveEvent; + PalletCollectiveRawOrigin: PalletCollectiveRawOrigin; + PalletCollectiveVotes: PalletCollectiveVotes; + PalletDemocracyCall: PalletDemocracyCall; + PalletDemocracyConviction: PalletDemocracyConviction; + PalletDemocracyDelegations: PalletDemocracyDelegations; + PalletDemocracyError: PalletDemocracyError; + PalletDemocracyEvent: PalletDemocracyEvent; + PalletDemocracyMetadataOwner: PalletDemocracyMetadataOwner; + PalletDemocracyReferendumInfo: PalletDemocracyReferendumInfo; + PalletDemocracyReferendumStatus: PalletDemocracyReferendumStatus; + PalletDemocracyTally: PalletDemocracyTally; + PalletDemocracyVoteAccountVote: PalletDemocracyVoteAccountVote; + PalletDemocracyVotePriorLock: PalletDemocracyVotePriorLock; + PalletDemocracyVoteThreshold: PalletDemocracyVoteThreshold; + PalletDemocracyVoteVoting: PalletDemocracyVoteVoting; + PalletDrop3Call: PalletDrop3Call; + PalletDrop3Error: PalletDrop3Error; + PalletDrop3Event: PalletDrop3Event; + PalletDrop3RewardPool: PalletDrop3RewardPool; + PalletExtrinsicFilterCall: PalletExtrinsicFilterCall; + PalletExtrinsicFilterError: PalletExtrinsicFilterError; + PalletExtrinsicFilterEvent: PalletExtrinsicFilterEvent; + PalletExtrinsicFilterOperationalMode: PalletExtrinsicFilterOperationalMode; + PalletGroupCall: PalletGroupCall; + PalletGroupError: PalletGroupError; + PalletGroupEvent: PalletGroupEvent; + PalletIdentityBitFlags: PalletIdentityBitFlags; + PalletIdentityCall: PalletIdentityCall; + PalletIdentityError: PalletIdentityError; + PalletIdentityEvent: PalletIdentityEvent; + PalletIdentityIdentityField: PalletIdentityIdentityField; + PalletIdentityIdentityInfo: PalletIdentityIdentityInfo; + PalletIdentityJudgement: PalletIdentityJudgement; + PalletIdentityManagementCall: PalletIdentityManagementCall; + PalletIdentityManagementError: PalletIdentityManagementError; + PalletIdentityManagementEvent: PalletIdentityManagementEvent; + PalletIdentityManagementMockCall: PalletIdentityManagementMockCall; + PalletIdentityManagementMockError: PalletIdentityManagementMockError; + PalletIdentityManagementMockEvent: PalletIdentityManagementMockEvent; + PalletIdentityManagementMockIdentityContext: PalletIdentityManagementMockIdentityContext; + PalletIdentityRegistrarInfo: PalletIdentityRegistrarInfo; + PalletIdentityRegistration: PalletIdentityRegistration; + PalletMembershipCall: PalletMembershipCall; + PalletMembershipError: PalletMembershipError; + PalletMembershipEvent: PalletMembershipEvent; + PalletMultisigCall: PalletMultisigCall; + PalletMultisigError: PalletMultisigError; + PalletMultisigEvent: PalletMultisigEvent; + PalletMultisigMultisig: PalletMultisigMultisig; + PalletMultisigTimepoint: PalletMultisigTimepoint; + PalletParachainStakingAutoCompoundAutoCompoundConfig: PalletParachainStakingAutoCompoundAutoCompoundConfig; + PalletParachainStakingBond: PalletParachainStakingBond; + PalletParachainStakingBondWithAutoCompound: PalletParachainStakingBondWithAutoCompound; + PalletParachainStakingCall: PalletParachainStakingCall; + PalletParachainStakingCandidateBondLessRequest: PalletParachainStakingCandidateBondLessRequest; + PalletParachainStakingCandidateMetadata: PalletParachainStakingCandidateMetadata; + PalletParachainStakingCapacityStatus: PalletParachainStakingCapacityStatus; + PalletParachainStakingCollatorSnapshot: PalletParachainStakingCollatorSnapshot; + PalletParachainStakingCollatorStatus: PalletParachainStakingCollatorStatus; + PalletParachainStakingDelayedPayout: PalletParachainStakingDelayedPayout; + PalletParachainStakingDelegationRequestsCancelledScheduledRequest: PalletParachainStakingDelegationRequestsCancelledScheduledRequest; + PalletParachainStakingDelegationRequestsDelegationAction: PalletParachainStakingDelegationRequestsDelegationAction; + PalletParachainStakingDelegationRequestsScheduledRequest: PalletParachainStakingDelegationRequestsScheduledRequest; + PalletParachainStakingDelegations: PalletParachainStakingDelegations; + PalletParachainStakingDelegator: PalletParachainStakingDelegator; + PalletParachainStakingDelegatorAdded: PalletParachainStakingDelegatorAdded; + PalletParachainStakingDelegatorStatus: PalletParachainStakingDelegatorStatus; + PalletParachainStakingError: PalletParachainStakingError; + PalletParachainStakingEvent: PalletParachainStakingEvent; + PalletParachainStakingInflationInflationInfo: PalletParachainStakingInflationInflationInfo; + PalletParachainStakingParachainBondConfig: PalletParachainStakingParachainBondConfig; + PalletParachainStakingRoundInfo: PalletParachainStakingRoundInfo; + PalletParachainStakingSetOrderedSet: PalletParachainStakingSetOrderedSet; + PalletPreimageCall: PalletPreimageCall; + PalletPreimageError: PalletPreimageError; + PalletPreimageEvent: PalletPreimageEvent; + PalletPreimageRequestStatus: PalletPreimageRequestStatus; + PalletProxyAnnouncement: PalletProxyAnnouncement; + PalletProxyCall: PalletProxyCall; + PalletProxyError: PalletProxyError; + PalletProxyEvent: PalletProxyEvent; + PalletProxyProxyDefinition: PalletProxyProxyDefinition; + PalletSchedulerCall: PalletSchedulerCall; + PalletSchedulerError: PalletSchedulerError; + PalletSchedulerEvent: PalletSchedulerEvent; + PalletSchedulerScheduled: PalletSchedulerScheduled; + PalletSessionCall: PalletSessionCall; + PalletSessionError: PalletSessionError; + PalletSessionEvent: PalletSessionEvent; + PalletSidechainCall: PalletSidechainCall; + PalletSidechainError: PalletSidechainError; + PalletSidechainEvent: PalletSidechainEvent; PalletSudoCall: PalletSudoCall; PalletSudoError: PalletSudoError; PalletSudoEvent: PalletSudoEvent; + PalletTeeracleCall: PalletTeeracleCall; + PalletTeeracleError: PalletTeeracleError; + PalletTeeracleEvent: PalletTeeracleEvent; + PalletTeerexCall: PalletTeerexCall; + PalletTeerexError: PalletTeerexError; + PalletTeerexEvent: PalletTeerexEvent; PalletTimestampCall: PalletTimestampCall; + PalletTipsCall: PalletTipsCall; + PalletTipsError: PalletTipsError; + PalletTipsEvent: PalletTipsEvent; + PalletTipsOpenTip: PalletTipsOpenTip; PalletTransactionPaymentChargeTransactionPayment: PalletTransactionPaymentChargeTransactionPayment; PalletTransactionPaymentEvent: PalletTransactionPaymentEvent; PalletTransactionPaymentReleases: PalletTransactionPaymentReleases; + PalletTreasuryCall: PalletTreasuryCall; + PalletTreasuryError: PalletTreasuryError; + PalletTreasuryEvent: PalletTreasuryEvent; + PalletTreasuryProposal: PalletTreasuryProposal; + PalletUtilityCall: PalletUtilityCall; + PalletUtilityError: PalletUtilityError; + PalletUtilityEvent: PalletUtilityEvent; + PalletVcManagementCall: PalletVcManagementCall; + PalletVcManagementError: PalletVcManagementError; + PalletVcManagementEvent: PalletVcManagementEvent; + PalletVcManagementSchemaVcSchema: PalletVcManagementSchemaVcSchema; + PalletVcManagementVcContext: PalletVcManagementVcContext; + PalletVcManagementVcContextStatus: PalletVcManagementVcContextStatus; + PalletVestingCall: PalletVestingCall; + PalletVestingError: PalletVestingError; + PalletVestingEvent: PalletVestingEvent; + PalletVestingReleases: PalletVestingReleases; + PalletVestingVestingInfo: PalletVestingVestingInfo; + PalletXcmCall: PalletXcmCall; + PalletXcmError: PalletXcmError; + PalletXcmEvent: PalletXcmEvent; + PalletXcmOrigin: PalletXcmOrigin; + PalletXcmQueryStatus: PalletXcmQueryStatus; + PalletXcmRemoteLockedFungibleRecord: PalletXcmRemoteLockedFungibleRecord; + PalletXcmVersionMigrationStage: PalletXcmVersionMigrationStage; + ParachainInfoCall: ParachainInfoCall; + PolkadotCorePrimitivesInboundDownwardMessage: PolkadotCorePrimitivesInboundDownwardMessage; + PolkadotCorePrimitivesInboundHrmpMessage: PolkadotCorePrimitivesInboundHrmpMessage; + PolkadotCorePrimitivesOutboundHrmpMessage: PolkadotCorePrimitivesOutboundHrmpMessage; + PolkadotParachainPrimitivesXcmpMessageFormat: PolkadotParachainPrimitivesXcmpMessageFormat; + PolkadotPrimitivesV2AbridgedHostConfiguration: PolkadotPrimitivesV2AbridgedHostConfiguration; + PolkadotPrimitivesV2AbridgedHrmpChannel: PolkadotPrimitivesV2AbridgedHrmpChannel; + PolkadotPrimitivesV2PersistedValidationData: PolkadotPrimitivesV2PersistedValidationData; + PolkadotPrimitivesV2UpgradeRestriction: PolkadotPrimitivesV2UpgradeRestriction; + RococoParachainRuntimeOriginCaller: RococoParachainRuntimeOriginCaller; + RococoParachainRuntimeProxyType: RococoParachainRuntimeProxyType; + RococoParachainRuntimeRuntime: RococoParachainRuntimeRuntime; + RococoParachainRuntimeSessionKeys: RococoParachainRuntimeSessionKeys; + RuntimeCommonXcmImplCurrencyId: RuntimeCommonXcmImplCurrencyId; + SidechainPrimitivesSidechainBlockConfirmation: SidechainPrimitivesSidechainBlockConfirmation; SpArithmeticArithmeticError: SpArithmeticArithmeticError; + SpConsensusAuraSr25519AppSr25519Public: SpConsensusAuraSr25519AppSr25519Public; + SpCoreCryptoKeyTypeId: SpCoreCryptoKeyTypeId; SpCoreEcdsaSignature: SpCoreEcdsaSignature; SpCoreEd25519Signature: SpCoreEd25519Signature; + SpCoreSr25519Public: SpCoreSr25519Public; SpCoreSr25519Signature: SpCoreSr25519Signature; - SpRuntimeBlakeTwo256: SpRuntimeBlakeTwo256; + SpCoreVoid: SpCoreVoid; SpRuntimeDigest: SpRuntimeDigest; SpRuntimeDigestDigestItem: SpRuntimeDigestDigestItem; SpRuntimeDispatchError: SpRuntimeDispatchError; - SpRuntimeHeader: SpRuntimeHeader; SpRuntimeModuleError: SpRuntimeModuleError; SpRuntimeMultiSignature: SpRuntimeMultiSignature; SpRuntimeTokenError: SpRuntimeTokenError; SpRuntimeTransactionalError: SpRuntimeTransactionalError; + SpTrieStorageProof: SpTrieStorageProof; SpVersionRuntimeVersion: SpVersionRuntimeVersion; SpWeightsRuntimeDbWeight: SpWeightsRuntimeDbWeight; SpWeightsWeightV2Weight: SpWeightsWeightV2Weight; + SubstrateFixedFixedU64: SubstrateFixedFixedU64; + TeerexPrimitivesEnclave: TeerexPrimitivesEnclave; + TeerexPrimitivesQeTcb: TeerexPrimitivesQeTcb; + TeerexPrimitivesQuotingEnclave: TeerexPrimitivesQuotingEnclave; + TeerexPrimitivesRequest: TeerexPrimitivesRequest; + TeerexPrimitivesSgxBuildMode: TeerexPrimitivesSgxBuildMode; + TeerexPrimitivesSgxEnclaveMetadata: TeerexPrimitivesSgxEnclaveMetadata; + TeerexPrimitivesTcbInfoOnChain: TeerexPrimitivesTcbInfoOnChain; + TeerexPrimitivesTcbVersionStatus: TeerexPrimitivesTcbVersionStatus; + TypenumBitB0: TypenumBitB0; + TypenumBitB1: TypenumBitB1; + TypenumUIntUInt: TypenumUIntUInt; + TypenumUIntUTerm: TypenumUIntUTerm; + TypenumUintUTerm: TypenumUintUTerm; + XcmDoubleEncoded: XcmDoubleEncoded; + XcmV2BodyId: XcmV2BodyId; + XcmV2BodyPart: XcmV2BodyPart; + XcmV2Instruction: XcmV2Instruction; + XcmV2Junction: XcmV2Junction; + XcmV2MultiAsset: XcmV2MultiAsset; + XcmV2MultiLocation: XcmV2MultiLocation; + XcmV2MultiassetAssetId: XcmV2MultiassetAssetId; + XcmV2MultiassetAssetInstance: XcmV2MultiassetAssetInstance; + XcmV2MultiassetFungibility: XcmV2MultiassetFungibility; + XcmV2MultiassetMultiAssetFilter: XcmV2MultiassetMultiAssetFilter; + XcmV2MultiassetMultiAssets: XcmV2MultiassetMultiAssets; + XcmV2MultiassetWildFungibility: XcmV2MultiassetWildFungibility; + XcmV2MultiassetWildMultiAsset: XcmV2MultiassetWildMultiAsset; + XcmV2MultilocationJunctions: XcmV2MultilocationJunctions; + XcmV2NetworkId: XcmV2NetworkId; + XcmV2OriginKind: XcmV2OriginKind; + XcmV2Response: XcmV2Response; + XcmV2TraitsError: XcmV2TraitsError; + XcmV2WeightLimit: XcmV2WeightLimit; + XcmV2Xcm: XcmV2Xcm; + XcmV3Instruction: XcmV3Instruction; + XcmV3Junction: XcmV3Junction; + XcmV3JunctionBodyId: XcmV3JunctionBodyId; + XcmV3JunctionBodyPart: XcmV3JunctionBodyPart; + XcmV3JunctionNetworkId: XcmV3JunctionNetworkId; + XcmV3Junctions: XcmV3Junctions; + XcmV3MaybeErrorCode: XcmV3MaybeErrorCode; + XcmV3MultiAsset: XcmV3MultiAsset; + XcmV3MultiLocation: XcmV3MultiLocation; + XcmV3MultiassetAssetId: XcmV3MultiassetAssetId; + XcmV3MultiassetAssetInstance: XcmV3MultiassetAssetInstance; + XcmV3MultiassetFungibility: XcmV3MultiassetFungibility; + XcmV3MultiassetMultiAssetFilter: XcmV3MultiassetMultiAssetFilter; + XcmV3MultiassetMultiAssets: XcmV3MultiassetMultiAssets; + XcmV3MultiassetWildFungibility: XcmV3MultiassetWildFungibility; + XcmV3MultiassetWildMultiAsset: XcmV3MultiassetWildMultiAsset; + XcmV3PalletInfo: XcmV3PalletInfo; + XcmV3QueryResponseInfo: XcmV3QueryResponseInfo; + XcmV3Response: XcmV3Response; + XcmV3TraitsError: XcmV3TraitsError; + XcmV3TraitsOutcome: XcmV3TraitsOutcome; + XcmV3WeightLimit: XcmV3WeightLimit; + XcmV3Xcm: XcmV3Xcm; + XcmVersionedAssetId: XcmVersionedAssetId; + XcmVersionedMultiAsset: XcmVersionedMultiAsset; + XcmVersionedMultiAssets: XcmVersionedMultiAssets; + XcmVersionedMultiLocation: XcmVersionedMultiLocation; + XcmVersionedResponse: XcmVersionedResponse; + XcmVersionedXcm: XcmVersionedXcm; } // InterfaceTypes } // declare module diff --git a/tee-worker/ts-tests/interfaces/types-lookup.ts b/tee-worker/ts-tests/interfaces/types-lookup.ts index 09fd49bc4d..94dc02d66d 100644 --- a/tee-worker/ts-tests/interfaces/types-lookup.ts +++ b/tee-worker/ts-tests/interfaces/types-lookup.ts @@ -5,13 +5,17 @@ // this is required to allow for ambient/previous definitions import '@polkadot/types/lookup'; +import type { Data } from '@polkadot/types'; import type { + BTreeMap, + BTreeSet, Bytes, Compact, Enum, Null, Option, Result, + Set, Struct, Text, U8aFixed, @@ -24,7 +28,8 @@ import type { u8, } from '@polkadot/types-codec'; import type { ITuple } from '@polkadot/types-codec/types'; -import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime'; +import type { Vote } from '@polkadot/types/interfaces/elections'; +import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; import type { Event } from '@polkadot/types/interfaces/system'; declare module '@polkadot/types/lookup' { @@ -215,7 +220,178 @@ declare module '@polkadot/types/lookup' { readonly type: 'LimitReached' | 'NoLayer'; } - /** @name PalletBalancesEvent (29) */ + /** @name PalletSchedulerEvent (29) */ + interface PalletSchedulerEvent extends Enum { + readonly isScheduled: boolean; + readonly asScheduled: { + readonly when: u32; + readonly index: u32; + } & Struct; + readonly isCanceled: boolean; + readonly asCanceled: { + readonly when: u32; + readonly index: u32; + } & Struct; + readonly isDispatched: boolean; + readonly asDispatched: { + readonly task: ITuple<[u32, u32]>; + readonly id: Option; + readonly result: Result; + } & Struct; + readonly isCallUnavailable: boolean; + readonly asCallUnavailable: { + readonly task: ITuple<[u32, u32]>; + readonly id: Option; + } & Struct; + readonly isPeriodicFailed: boolean; + readonly asPeriodicFailed: { + readonly task: ITuple<[u32, u32]>; + readonly id: Option; + } & Struct; + readonly isPermanentlyOverweight: boolean; + readonly asPermanentlyOverweight: { + readonly task: ITuple<[u32, u32]>; + readonly id: Option; + } & Struct; + readonly type: + | 'Scheduled' + | 'Canceled' + | 'Dispatched' + | 'CallUnavailable' + | 'PeriodicFailed' + | 'PermanentlyOverweight'; + } + + /** @name PalletUtilityEvent (34) */ + interface PalletUtilityEvent extends Enum { + readonly isBatchInterrupted: boolean; + readonly asBatchInterrupted: { + readonly index: u32; + readonly error: SpRuntimeDispatchError; + } & Struct; + readonly isBatchCompleted: boolean; + readonly isBatchCompletedWithErrors: boolean; + readonly isItemCompleted: boolean; + readonly isItemFailed: boolean; + readonly asItemFailed: { + readonly error: SpRuntimeDispatchError; + } & Struct; + readonly isDispatchedAs: boolean; + readonly asDispatchedAs: { + readonly result: Result; + } & Struct; + readonly type: + | 'BatchInterrupted' + | 'BatchCompleted' + | 'BatchCompletedWithErrors' + | 'ItemCompleted' + | 'ItemFailed' + | 'DispatchedAs'; + } + + /** @name PalletMultisigEvent (35) */ + interface PalletMultisigEvent extends Enum { + readonly isNewMultisig: boolean; + readonly asNewMultisig: { + readonly approving: AccountId32; + readonly multisig: AccountId32; + readonly callHash: U8aFixed; + } & Struct; + readonly isMultisigApproval: boolean; + readonly asMultisigApproval: { + readonly approving: AccountId32; + readonly timepoint: PalletMultisigTimepoint; + readonly multisig: AccountId32; + readonly callHash: U8aFixed; + } & Struct; + readonly isMultisigExecuted: boolean; + readonly asMultisigExecuted: { + readonly approving: AccountId32; + readonly timepoint: PalletMultisigTimepoint; + readonly multisig: AccountId32; + readonly callHash: U8aFixed; + readonly result: Result; + } & Struct; + readonly isMultisigCancelled: boolean; + readonly asMultisigCancelled: { + readonly cancelling: AccountId32; + readonly timepoint: PalletMultisigTimepoint; + readonly multisig: AccountId32; + readonly callHash: U8aFixed; + } & Struct; + readonly type: 'NewMultisig' | 'MultisigApproval' | 'MultisigExecuted' | 'MultisigCancelled'; + } + + /** @name PalletMultisigTimepoint (36) */ + interface PalletMultisigTimepoint extends Struct { + readonly height: u32; + readonly index: u32; + } + + /** @name PalletProxyEvent (37) */ + interface PalletProxyEvent extends Enum { + readonly isProxyExecuted: boolean; + readonly asProxyExecuted: { + readonly result: Result; + } & Struct; + readonly isPureCreated: boolean; + readonly asPureCreated: { + readonly pure: AccountId32; + readonly who: AccountId32; + readonly proxyType: RococoParachainRuntimeProxyType; + readonly disambiguationIndex: u16; + } & Struct; + readonly isAnnounced: boolean; + readonly asAnnounced: { + readonly real: AccountId32; + readonly proxy: AccountId32; + readonly callHash: H256; + } & Struct; + readonly isProxyAdded: boolean; + readonly asProxyAdded: { + readonly delegator: AccountId32; + readonly delegatee: AccountId32; + readonly proxyType: RococoParachainRuntimeProxyType; + readonly delay: u32; + } & Struct; + readonly isProxyRemoved: boolean; + readonly asProxyRemoved: { + readonly delegator: AccountId32; + readonly delegatee: AccountId32; + readonly proxyType: RococoParachainRuntimeProxyType; + readonly delay: u32; + } & Struct; + readonly type: 'ProxyExecuted' | 'PureCreated' | 'Announced' | 'ProxyAdded' | 'ProxyRemoved'; + } + + /** @name RococoParachainRuntimeProxyType (38) */ + interface RococoParachainRuntimeProxyType extends Enum { + readonly isAny: boolean; + readonly isNonTransfer: boolean; + readonly isCancelProxy: boolean; + readonly isCollator: boolean; + readonly isGovernance: boolean; + readonly type: 'Any' | 'NonTransfer' | 'CancelProxy' | 'Collator' | 'Governance'; + } + + /** @name PalletPreimageEvent (40) */ + interface PalletPreimageEvent extends Enum { + readonly isNoted: boolean; + readonly asNoted: { + readonly hash_: H256; + } & Struct; + readonly isRequested: boolean; + readonly asRequested: { + readonly hash_: H256; + } & Struct; + readonly isCleared: boolean; + readonly asCleared: { + readonly hash_: H256; + } & Struct; + readonly type: 'Noted' | 'Requested' | 'Cleared'; + } + + /** @name PalletBalancesEvent (41) */ interface PalletBalancesEvent extends Enum { readonly isEndowed: boolean; readonly asEndowed: { @@ -284,14 +460,28 @@ declare module '@polkadot/types/lookup' { | 'Slashed'; } - /** @name FrameSupportTokensMiscBalanceStatus (30) */ + /** @name FrameSupportTokensMiscBalanceStatus (42) */ interface FrameSupportTokensMiscBalanceStatus extends Enum { readonly isFree: boolean; readonly isReserved: boolean; readonly type: 'Free' | 'Reserved'; } - /** @name PalletTransactionPaymentEvent (31) */ + /** @name PalletVestingEvent (43) */ + interface PalletVestingEvent extends Enum { + readonly isVestingUpdated: boolean; + readonly asVestingUpdated: { + readonly account: AccountId32; + readonly unvested: u128; + } & Struct; + readonly isVestingCompleted: boolean; + readonly asVestingCompleted: { + readonly account: AccountId32; + } & Struct; + readonly type: 'VestingUpdated' | 'VestingCompleted'; + } + + /** @name PalletTransactionPaymentEvent (44) */ interface PalletTransactionPaymentEvent extends Enum { readonly isTransactionFeePaid: boolean; readonly asTransactionFeePaid: { @@ -302,470 +492,6425 @@ declare module '@polkadot/types/lookup' { readonly type: 'TransactionFeePaid'; } - /** @name PalletSudoEvent (32) */ - interface PalletSudoEvent extends Enum { - readonly isSudid: boolean; - readonly asSudid: { - readonly sudoResult: Result; + /** @name PalletTreasuryEvent (45) */ + interface PalletTreasuryEvent extends Enum { + readonly isProposed: boolean; + readonly asProposed: { + readonly proposalIndex: u32; } & Struct; - readonly isKeyChanged: boolean; - readonly asKeyChanged: { - readonly oldSudoer: Option; + readonly isSpending: boolean; + readonly asSpending: { + readonly budgetRemaining: u128; } & Struct; - readonly isSudoAsDone: boolean; - readonly asSudoAsDone: { - readonly sudoResult: Result; + readonly isAwarded: boolean; + readonly asAwarded: { + readonly proposalIndex: u32; + readonly award: u128; + readonly account: AccountId32; } & Struct; - readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone'; + readonly isRejected: boolean; + readonly asRejected: { + readonly proposalIndex: u32; + readonly slashed: u128; + } & Struct; + readonly isBurnt: boolean; + readonly asBurnt: { + readonly burntFunds: u128; + } & Struct; + readonly isRollover: boolean; + readonly asRollover: { + readonly rolloverBalance: u128; + } & Struct; + readonly isDeposit: boolean; + readonly asDeposit: { + readonly value: u128; + } & Struct; + readonly isSpendApproved: boolean; + readonly asSpendApproved: { + readonly proposalIndex: u32; + readonly amount: u128; + readonly beneficiary: AccountId32; + } & Struct; + readonly isUpdatedInactive: boolean; + readonly asUpdatedInactive: { + readonly reactivated: u128; + readonly deactivated: u128; + } & Struct; + readonly type: + | 'Proposed' + | 'Spending' + | 'Awarded' + | 'Rejected' + | 'Burnt' + | 'Rollover' + | 'Deposit' + | 'SpendApproved' + | 'UpdatedInactive'; } - /** @name PalletIdentityManagementTeeEvent (36) */ - interface PalletIdentityManagementTeeEvent extends Enum { - readonly isUserShieldingKeySet: boolean; - readonly asUserShieldingKeySet: { - readonly who: AccountId32; - readonly key: U8aFixed; + /** @name PalletDemocracyEvent (46) */ + interface PalletDemocracyEvent extends Enum { + readonly isProposed: boolean; + readonly asProposed: { + readonly proposalIndex: u32; + readonly deposit: u128; } & Struct; - readonly isChallengeCodeSet: boolean; - readonly asChallengeCodeSet: { - readonly who: AccountId32; - readonly identity: LitentryPrimitivesIdentity; - readonly code: U8aFixed; + readonly isTabled: boolean; + readonly asTabled: { + readonly proposalIndex: u32; + readonly deposit: u128; } & Struct; - readonly isChallengeCodeRemoved: boolean; - readonly asChallengeCodeRemoved: { - readonly who: AccountId32; - readonly identity: LitentryPrimitivesIdentity; + readonly isExternalTabled: boolean; + readonly isStarted: boolean; + readonly asStarted: { + readonly refIndex: u32; + readonly threshold: PalletDemocracyVoteThreshold; } & Struct; - readonly isIdentityCreated: boolean; - readonly asIdentityCreated: { + readonly isPassed: boolean; + readonly asPassed: { + readonly refIndex: u32; + } & Struct; + readonly isNotPassed: boolean; + readonly asNotPassed: { + readonly refIndex: u32; + } & Struct; + readonly isCancelled: boolean; + readonly asCancelled: { + readonly refIndex: u32; + } & Struct; + readonly isDelegated: boolean; + readonly asDelegated: { readonly who: AccountId32; - readonly identity: LitentryPrimitivesIdentity; + readonly target: AccountId32; } & Struct; - readonly isIdentityRemoved: boolean; - readonly asIdentityRemoved: { + readonly isUndelegated: boolean; + readonly asUndelegated: { + readonly account: AccountId32; + } & Struct; + readonly isVetoed: boolean; + readonly asVetoed: { readonly who: AccountId32; - readonly identity: LitentryPrimitivesIdentity; + readonly proposalHash: H256; + readonly until: u32; } & Struct; - readonly type: - | 'UserShieldingKeySet' - | 'ChallengeCodeSet' - | 'ChallengeCodeRemoved' - | 'IdentityCreated' - | 'IdentityRemoved'; - } - - /** @name LitentryPrimitivesIdentity (37) */ - interface LitentryPrimitivesIdentity extends Enum { - readonly isSubstrate: boolean; - readonly asSubstrate: { - readonly network: LitentryPrimitivesIdentitySubstrateNetwork; - readonly address: LitentryPrimitivesIdentityAddress32; + readonly isBlacklisted: boolean; + readonly asBlacklisted: { + readonly proposalHash: H256; } & Struct; - readonly isEvm: boolean; - readonly asEvm: { - readonly network: LitentryPrimitivesIdentityEvmNetwork; - readonly address: LitentryPrimitivesIdentityAddress20; + readonly isVoted: boolean; + readonly asVoted: { + readonly voter: AccountId32; + readonly refIndex: u32; + readonly vote: PalletDemocracyVoteAccountVote; } & Struct; - readonly isWeb2: boolean; - readonly asWeb2: { - readonly network: LitentryPrimitivesIdentityWeb2Network; - readonly address: Bytes; + readonly isSeconded: boolean; + readonly asSeconded: { + readonly seconder: AccountId32; + readonly propIndex: u32; } & Struct; - readonly type: 'Substrate' | 'Evm' | 'Web2'; + readonly isProposalCanceled: boolean; + readonly asProposalCanceled: { + readonly propIndex: u32; + } & Struct; + readonly isMetadataSet: boolean; + readonly asMetadataSet: { + readonly owner: PalletDemocracyMetadataOwner; + readonly hash_: H256; + } & Struct; + readonly isMetadataCleared: boolean; + readonly asMetadataCleared: { + readonly owner: PalletDemocracyMetadataOwner; + readonly hash_: H256; + } & Struct; + readonly isMetadataTransferred: boolean; + readonly asMetadataTransferred: { + readonly prevOwner: PalletDemocracyMetadataOwner; + readonly owner: PalletDemocracyMetadataOwner; + readonly hash_: H256; + } & Struct; + readonly type: + | 'Proposed' + | 'Tabled' + | 'ExternalTabled' + | 'Started' + | 'Passed' + | 'NotPassed' + | 'Cancelled' + | 'Delegated' + | 'Undelegated' + | 'Vetoed' + | 'Blacklisted' + | 'Voted' + | 'Seconded' + | 'ProposalCanceled' + | 'MetadataSet' + | 'MetadataCleared' + | 'MetadataTransferred'; } - /** @name LitentryPrimitivesIdentitySubstrateNetwork (38) */ - interface LitentryPrimitivesIdentitySubstrateNetwork extends Enum { - readonly isPolkadot: boolean; - readonly isKusama: boolean; - readonly isLitentry: boolean; - readonly isLitmus: boolean; - readonly isLitentryRococo: boolean; - readonly isKhala: boolean; - readonly isTestNet: boolean; - readonly type: 'Polkadot' | 'Kusama' | 'Litentry' | 'Litmus' | 'LitentryRococo' | 'Khala' | 'TestNet'; + /** @name PalletDemocracyVoteThreshold (47) */ + interface PalletDemocracyVoteThreshold extends Enum { + readonly isSuperMajorityApprove: boolean; + readonly isSuperMajorityAgainst: boolean; + readonly isSimpleMajority: boolean; + readonly type: 'SuperMajorityApprove' | 'SuperMajorityAgainst' | 'SimpleMajority'; } - /** @name LitentryPrimitivesIdentityAddress32 (39) */ - interface LitentryPrimitivesIdentityAddress32 extends U8aFixed {} - - /** @name LitentryPrimitivesIdentityEvmNetwork (40) */ - interface LitentryPrimitivesIdentityEvmNetwork extends Enum { - readonly isEthereum: boolean; - readonly isBsc: boolean; - readonly type: 'Ethereum' | 'Bsc'; + /** @name PalletDemocracyVoteAccountVote (48) */ + interface PalletDemocracyVoteAccountVote extends Enum { + readonly isStandard: boolean; + readonly asStandard: { + readonly vote: Vote; + readonly balance: u128; + } & Struct; + readonly isSplit: boolean; + readonly asSplit: { + readonly aye: u128; + readonly nay: u128; + } & Struct; + readonly type: 'Standard' | 'Split'; } - /** @name LitentryPrimitivesIdentityAddress20 (41) */ - interface LitentryPrimitivesIdentityAddress20 extends U8aFixed {} - - /** @name LitentryPrimitivesIdentityWeb2Network (43) */ - interface LitentryPrimitivesIdentityWeb2Network extends Enum { - readonly isTwitter: boolean; - readonly isDiscord: boolean; - readonly isGithub: boolean; - readonly type: 'Twitter' | 'Discord' | 'Github'; + /** @name PalletDemocracyMetadataOwner (50) */ + interface PalletDemocracyMetadataOwner extends Enum { + readonly isExternal: boolean; + readonly isProposal: boolean; + readonly asProposal: u32; + readonly isReferendum: boolean; + readonly asReferendum: u32; + readonly type: 'External' | 'Proposal' | 'Referendum'; } - /** @name FrameSystemPhase (46) */ - interface FrameSystemPhase extends Enum { - readonly isApplyExtrinsic: boolean; - readonly asApplyExtrinsic: u32; - readonly isFinalization: boolean; - readonly isInitialization: boolean; - readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization'; + /** @name PalletCollectiveEvent (51) */ + interface PalletCollectiveEvent extends Enum { + readonly isProposed: boolean; + readonly asProposed: { + readonly account: AccountId32; + readonly proposalIndex: u32; + readonly proposalHash: H256; + readonly threshold: u32; + } & Struct; + readonly isVoted: boolean; + readonly asVoted: { + readonly account: AccountId32; + readonly proposalHash: H256; + readonly voted: bool; + readonly yes: u32; + readonly no: u32; + } & Struct; + readonly isApproved: boolean; + readonly asApproved: { + readonly proposalHash: H256; + } & Struct; + readonly isDisapproved: boolean; + readonly asDisapproved: { + readonly proposalHash: H256; + } & Struct; + readonly isExecuted: boolean; + readonly asExecuted: { + readonly proposalHash: H256; + readonly result: Result; + } & Struct; + readonly isMemberExecuted: boolean; + readonly asMemberExecuted: { + readonly proposalHash: H256; + readonly result: Result; + } & Struct; + readonly isClosed: boolean; + readonly asClosed: { + readonly proposalHash: H256; + readonly yes: u32; + readonly no: u32; + } & Struct; + readonly type: 'Proposed' | 'Voted' | 'Approved' | 'Disapproved' | 'Executed' | 'MemberExecuted' | 'Closed'; } - /** @name FrameSystemLastRuntimeUpgradeInfo (50) */ - interface FrameSystemLastRuntimeUpgradeInfo extends Struct { - readonly specVersion: Compact; - readonly specName: Text; + /** @name PalletMembershipEvent (53) */ + interface PalletMembershipEvent extends Enum { + readonly isMemberAdded: boolean; + readonly isMemberRemoved: boolean; + readonly isMembersSwapped: boolean; + readonly isMembersReset: boolean; + readonly isKeyChanged: boolean; + readonly isDummy: boolean; + readonly type: 'MemberAdded' | 'MemberRemoved' | 'MembersSwapped' | 'MembersReset' | 'KeyChanged' | 'Dummy'; } - /** @name FrameSystemCall (54) */ - interface FrameSystemCall extends Enum { - readonly isRemark: boolean; - readonly asRemark: { - readonly remark: Bytes; - } & Struct; - readonly isSetHeapPages: boolean; - readonly asSetHeapPages: { - readonly pages: u64; + /** @name PalletBountiesEvent (56) */ + interface PalletBountiesEvent extends Enum { + readonly isBountyProposed: boolean; + readonly asBountyProposed: { + readonly index: u32; } & Struct; - readonly isSetCode: boolean; - readonly asSetCode: { - readonly code: Bytes; + readonly isBountyRejected: boolean; + readonly asBountyRejected: { + readonly index: u32; + readonly bond: u128; } & Struct; - readonly isSetCodeWithoutChecks: boolean; - readonly asSetCodeWithoutChecks: { - readonly code: Bytes; + readonly isBountyBecameActive: boolean; + readonly asBountyBecameActive: { + readonly index: u32; } & Struct; - readonly isSetStorage: boolean; - readonly asSetStorage: { - readonly items: Vec>; + readonly isBountyAwarded: boolean; + readonly asBountyAwarded: { + readonly index: u32; + readonly beneficiary: AccountId32; } & Struct; - readonly isKillStorage: boolean; - readonly asKillStorage: { - readonly keys_: Vec; + readonly isBountyClaimed: boolean; + readonly asBountyClaimed: { + readonly index: u32; + readonly payout: u128; + readonly beneficiary: AccountId32; } & Struct; - readonly isKillPrefix: boolean; - readonly asKillPrefix: { - readonly prefix: Bytes; - readonly subkeys: u32; + readonly isBountyCanceled: boolean; + readonly asBountyCanceled: { + readonly index: u32; } & Struct; - readonly isRemarkWithEvent: boolean; - readonly asRemarkWithEvent: { - readonly remark: Bytes; + readonly isBountyExtended: boolean; + readonly asBountyExtended: { + readonly index: u32; } & Struct; readonly type: - | 'Remark' - | 'SetHeapPages' - | 'SetCode' - | 'SetCodeWithoutChecks' - | 'SetStorage' - | 'KillStorage' - | 'KillPrefix' - | 'RemarkWithEvent'; - } - - /** @name FrameSystemLimitsBlockWeights (58) */ - interface FrameSystemLimitsBlockWeights extends Struct { - readonly baseBlock: SpWeightsWeightV2Weight; - readonly maxBlock: SpWeightsWeightV2Weight; - readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; - } - - /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (59) */ - interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct { - readonly normal: FrameSystemLimitsWeightsPerClass; - readonly operational: FrameSystemLimitsWeightsPerClass; - readonly mandatory: FrameSystemLimitsWeightsPerClass; - } - - /** @name FrameSystemLimitsWeightsPerClass (60) */ - interface FrameSystemLimitsWeightsPerClass extends Struct { - readonly baseExtrinsic: SpWeightsWeightV2Weight; - readonly maxExtrinsic: Option; - readonly maxTotal: Option; - readonly reserved: Option; + | 'BountyProposed' + | 'BountyRejected' + | 'BountyBecameActive' + | 'BountyAwarded' + | 'BountyClaimed' + | 'BountyCanceled' + | 'BountyExtended'; } - /** @name FrameSystemLimitsBlockLength (62) */ - interface FrameSystemLimitsBlockLength extends Struct { - readonly max: FrameSupportDispatchPerDispatchClassU32; + /** @name PalletTipsEvent (57) */ + interface PalletTipsEvent extends Enum { + readonly isNewTip: boolean; + readonly asNewTip: { + readonly tipHash: H256; + } & Struct; + readonly isTipClosing: boolean; + readonly asTipClosing: { + readonly tipHash: H256; + } & Struct; + readonly isTipClosed: boolean; + readonly asTipClosed: { + readonly tipHash: H256; + readonly who: AccountId32; + readonly payout: u128; + } & Struct; + readonly isTipRetracted: boolean; + readonly asTipRetracted: { + readonly tipHash: H256; + } & Struct; + readonly isTipSlashed: boolean; + readonly asTipSlashed: { + readonly tipHash: H256; + readonly finder: AccountId32; + readonly deposit: u128; + } & Struct; + readonly type: 'NewTip' | 'TipClosing' | 'TipClosed' | 'TipRetracted' | 'TipSlashed'; } - /** @name FrameSupportDispatchPerDispatchClassU32 (63) */ - interface FrameSupportDispatchPerDispatchClassU32 extends Struct { - readonly normal: u32; - readonly operational: u32; - readonly mandatory: u32; + /** @name PalletIdentityEvent (58) */ + interface PalletIdentityEvent extends Enum { + readonly isIdentitySet: boolean; + readonly asIdentitySet: { + readonly who: AccountId32; + } & Struct; + readonly isIdentityCleared: boolean; + readonly asIdentityCleared: { + readonly who: AccountId32; + readonly deposit: u128; + } & Struct; + readonly isIdentityKilled: boolean; + readonly asIdentityKilled: { + readonly who: AccountId32; + readonly deposit: u128; + } & Struct; + readonly isJudgementRequested: boolean; + readonly asJudgementRequested: { + readonly who: AccountId32; + readonly registrarIndex: u32; + } & Struct; + readonly isJudgementUnrequested: boolean; + readonly asJudgementUnrequested: { + readonly who: AccountId32; + readonly registrarIndex: u32; + } & Struct; + readonly isJudgementGiven: boolean; + readonly asJudgementGiven: { + readonly target: AccountId32; + readonly registrarIndex: u32; + } & Struct; + readonly isRegistrarAdded: boolean; + readonly asRegistrarAdded: { + readonly registrarIndex: u32; + } & Struct; + readonly isSubIdentityAdded: boolean; + readonly asSubIdentityAdded: { + readonly sub: AccountId32; + readonly main: AccountId32; + readonly deposit: u128; + } & Struct; + readonly isSubIdentityRemoved: boolean; + readonly asSubIdentityRemoved: { + readonly sub: AccountId32; + readonly main: AccountId32; + readonly deposit: u128; + } & Struct; + readonly isSubIdentityRevoked: boolean; + readonly asSubIdentityRevoked: { + readonly sub: AccountId32; + readonly main: AccountId32; + readonly deposit: u128; + } & Struct; + readonly type: + | 'IdentitySet' + | 'IdentityCleared' + | 'IdentityKilled' + | 'JudgementRequested' + | 'JudgementUnrequested' + | 'JudgementGiven' + | 'RegistrarAdded' + | 'SubIdentityAdded' + | 'SubIdentityRemoved' + | 'SubIdentityRevoked'; } - /** @name SpWeightsRuntimeDbWeight (64) */ - interface SpWeightsRuntimeDbWeight extends Struct { - readonly read: u64; - readonly write: u64; + /** @name CumulusPalletParachainSystemEvent (59) */ + interface CumulusPalletParachainSystemEvent extends Enum { + readonly isValidationFunctionStored: boolean; + readonly isValidationFunctionApplied: boolean; + readonly asValidationFunctionApplied: { + readonly relayChainBlockNum: u32; + } & Struct; + readonly isValidationFunctionDiscarded: boolean; + readonly isUpgradeAuthorized: boolean; + readonly asUpgradeAuthorized: { + readonly codeHash: H256; + } & Struct; + readonly isDownwardMessagesReceived: boolean; + readonly asDownwardMessagesReceived: { + readonly count: u32; + } & Struct; + readonly isDownwardMessagesProcessed: boolean; + readonly asDownwardMessagesProcessed: { + readonly weightUsed: SpWeightsWeightV2Weight; + readonly dmqHead: H256; + } & Struct; + readonly isUpwardMessageSent: boolean; + readonly asUpwardMessageSent: { + readonly messageHash: Option; + } & Struct; + readonly type: + | 'ValidationFunctionStored' + | 'ValidationFunctionApplied' + | 'ValidationFunctionDiscarded' + | 'UpgradeAuthorized' + | 'DownwardMessagesReceived' + | 'DownwardMessagesProcessed' + | 'UpwardMessageSent'; } - /** @name SpVersionRuntimeVersion (65) */ - interface SpVersionRuntimeVersion extends Struct { - readonly specName: Text; - readonly implName: Text; - readonly authoringVersion: u32; - readonly specVersion: u32; - readonly implVersion: u32; - readonly apis: Vec>; - readonly transactionVersion: u32; - readonly stateVersion: u8; + /** @name PalletSessionEvent (60) */ + interface PalletSessionEvent extends Enum { + readonly isNewSession: boolean; + readonly asNewSession: { + readonly sessionIndex: u32; + } & Struct; + readonly type: 'NewSession'; } - /** @name FrameSystemError (71) */ - interface FrameSystemError extends Enum { - readonly isInvalidSpecName: boolean; - readonly isSpecVersionNeedsToIncrease: boolean; - readonly isFailedToExtractRuntimeVersion: boolean; - readonly isNonDefaultComposite: boolean; - readonly isNonZeroRefCount: boolean; - readonly isCallFiltered: boolean; - readonly type: - | 'InvalidSpecName' - | 'SpecVersionNeedsToIncrease' - | 'FailedToExtractRuntimeVersion' - | 'NonDefaultComposite' + /** @name PalletParachainStakingEvent (61) */ + interface PalletParachainStakingEvent extends Enum { + readonly isNewRound: boolean; + readonly asNewRound: { + readonly startingBlock: u32; + readonly round: u32; + readonly selectedCollatorsNumber: u32; + readonly totalBalance: u128; + } & Struct; + readonly isJoinedCollatorCandidates: boolean; + readonly asJoinedCollatorCandidates: { + readonly account: AccountId32; + readonly amountLocked: u128; + readonly newTotalAmtLocked: u128; + } & Struct; + readonly isCollatorChosen: boolean; + readonly asCollatorChosen: { + readonly round: u32; + readonly collatorAccount: AccountId32; + readonly totalExposedAmount: u128; + } & Struct; + readonly isCandidateBondLessRequested: boolean; + readonly asCandidateBondLessRequested: { + readonly candidate: AccountId32; + readonly amountToDecrease: u128; + readonly executeRound: u32; + } & Struct; + readonly isCandidateBondedMore: boolean; + readonly asCandidateBondedMore: { + readonly candidate: AccountId32; + readonly amount: u128; + readonly newTotalBond: u128; + } & Struct; + readonly isCandidateBondedLess: boolean; + readonly asCandidateBondedLess: { + readonly candidate: AccountId32; + readonly amount: u128; + readonly newBond: u128; + } & Struct; + readonly isCandidateWentOffline: boolean; + readonly asCandidateWentOffline: { + readonly candidate: AccountId32; + } & Struct; + readonly isCandidateBackOnline: boolean; + readonly asCandidateBackOnline: { + readonly candidate: AccountId32; + } & Struct; + readonly isCandidateScheduledExit: boolean; + readonly asCandidateScheduledExit: { + readonly exitAllowedRound: u32; + readonly candidate: AccountId32; + readonly scheduledExit: u32; + } & Struct; + readonly isCancelledCandidateExit: boolean; + readonly asCancelledCandidateExit: { + readonly candidate: AccountId32; + } & Struct; + readonly isCancelledCandidateBondLess: boolean; + readonly asCancelledCandidateBondLess: { + readonly candidate: AccountId32; + readonly amount: u128; + readonly executeRound: u32; + } & Struct; + readonly isCandidateLeft: boolean; + readonly asCandidateLeft: { + readonly exCandidate: AccountId32; + readonly unlockedAmount: u128; + readonly newTotalAmtLocked: u128; + } & Struct; + readonly isDelegationDecreaseScheduled: boolean; + readonly asDelegationDecreaseScheduled: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly amountToDecrease: u128; + readonly executeRound: u32; + } & Struct; + readonly isDelegationIncreased: boolean; + readonly asDelegationIncreased: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly amount: u128; + readonly inTop: bool; + } & Struct; + readonly isDelegationDecreased: boolean; + readonly asDelegationDecreased: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly amount: u128; + readonly inTop: bool; + } & Struct; + readonly isDelegatorExitScheduled: boolean; + readonly asDelegatorExitScheduled: { + readonly round: u32; + readonly delegator: AccountId32; + readonly scheduledExit: u32; + } & Struct; + readonly isDelegationRevocationScheduled: boolean; + readonly asDelegationRevocationScheduled: { + readonly round: u32; + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly scheduledExit: u32; + } & Struct; + readonly isDelegatorLeft: boolean; + readonly asDelegatorLeft: { + readonly delegator: AccountId32; + readonly unstakedAmount: u128; + } & Struct; + readonly isDelegationRevoked: boolean; + readonly asDelegationRevoked: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly unstakedAmount: u128; + } & Struct; + readonly isDelegationKicked: boolean; + readonly asDelegationKicked: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly unstakedAmount: u128; + } & Struct; + readonly isDelegatorExitCancelled: boolean; + readonly asDelegatorExitCancelled: { + readonly delegator: AccountId32; + } & Struct; + readonly isCancelledDelegationRequest: boolean; + readonly asCancelledDelegationRequest: { + readonly delegator: AccountId32; + readonly cancelledRequest: PalletParachainStakingDelegationRequestsCancelledScheduledRequest; + readonly collator: AccountId32; + } & Struct; + readonly isDelegation: boolean; + readonly asDelegation: { + readonly delegator: AccountId32; + readonly lockedAmount: u128; + readonly candidate: AccountId32; + readonly delegatorPosition: PalletParachainStakingDelegatorAdded; + readonly autoCompound: Percent; + } & Struct; + readonly isDelegatorLeftCandidate: boolean; + readonly asDelegatorLeftCandidate: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly unstakedAmount: u128; + readonly totalCandidateStaked: u128; + } & Struct; + readonly isRewarded: boolean; + readonly asRewarded: { + readonly account: AccountId32; + readonly rewards: u128; + } & Struct; + readonly isReservedForParachainBond: boolean; + readonly asReservedForParachainBond: { + readonly account: AccountId32; + readonly value: u128; + } & Struct; + readonly isParachainBondAccountSet: boolean; + readonly asParachainBondAccountSet: { + readonly old: AccountId32; + readonly new_: AccountId32; + } & Struct; + readonly isParachainBondReservePercentSet: boolean; + readonly asParachainBondReservePercentSet: { + readonly old: Percent; + readonly new_: Percent; + } & Struct; + readonly isInflationSet: boolean; + readonly asInflationSet: { + readonly annualMin: Perbill; + readonly annualIdeal: Perbill; + readonly annualMax: Perbill; + readonly roundMin: Perbill; + readonly roundIdeal: Perbill; + readonly roundMax: Perbill; + } & Struct; + readonly isStakeExpectationsSet: boolean; + readonly asStakeExpectationsSet: { + readonly expectMin: u128; + readonly expectIdeal: u128; + readonly expectMax: u128; + } & Struct; + readonly isTotalSelectedSet: boolean; + readonly asTotalSelectedSet: { + readonly old: u32; + readonly new_: u32; + } & Struct; + readonly isCollatorCommissionSet: boolean; + readonly asCollatorCommissionSet: { + readonly old: Perbill; + readonly new_: Perbill; + } & Struct; + readonly isBlocksPerRoundSet: boolean; + readonly asBlocksPerRoundSet: { + readonly currentRound: u32; + readonly firstBlock: u32; + readonly old: u32; + readonly new_: u32; + readonly newPerRoundInflationMin: Perbill; + readonly newPerRoundInflationIdeal: Perbill; + readonly newPerRoundInflationMax: Perbill; + } & Struct; + readonly isCandidateWhiteListAdded: boolean; + readonly asCandidateWhiteListAdded: { + readonly candidate: AccountId32; + } & Struct; + readonly isCandidateWhiteListRemoved: boolean; + readonly asCandidateWhiteListRemoved: { + readonly candidate: AccountId32; + } & Struct; + readonly isAutoCompoundSet: boolean; + readonly asAutoCompoundSet: { + readonly candidate: AccountId32; + readonly delegator: AccountId32; + readonly value: Percent; + } & Struct; + readonly isCompounded: boolean; + readonly asCompounded: { + readonly candidate: AccountId32; + readonly delegator: AccountId32; + readonly amount: u128; + } & Struct; + readonly type: + | 'NewRound' + | 'JoinedCollatorCandidates' + | 'CollatorChosen' + | 'CandidateBondLessRequested' + | 'CandidateBondedMore' + | 'CandidateBondedLess' + | 'CandidateWentOffline' + | 'CandidateBackOnline' + | 'CandidateScheduledExit' + | 'CancelledCandidateExit' + | 'CancelledCandidateBondLess' + | 'CandidateLeft' + | 'DelegationDecreaseScheduled' + | 'DelegationIncreased' + | 'DelegationDecreased' + | 'DelegatorExitScheduled' + | 'DelegationRevocationScheduled' + | 'DelegatorLeft' + | 'DelegationRevoked' + | 'DelegationKicked' + | 'DelegatorExitCancelled' + | 'CancelledDelegationRequest' + | 'Delegation' + | 'DelegatorLeftCandidate' + | 'Rewarded' + | 'ReservedForParachainBond' + | 'ParachainBondAccountSet' + | 'ParachainBondReservePercentSet' + | 'InflationSet' + | 'StakeExpectationsSet' + | 'TotalSelectedSet' + | 'CollatorCommissionSet' + | 'BlocksPerRoundSet' + | 'CandidateWhiteListAdded' + | 'CandidateWhiteListRemoved' + | 'AutoCompoundSet' + | 'Compounded'; + } + + /** @name PalletParachainStakingDelegationRequestsCancelledScheduledRequest (62) */ + interface PalletParachainStakingDelegationRequestsCancelledScheduledRequest extends Struct { + readonly whenExecutable: u32; + readonly action: PalletParachainStakingDelegationRequestsDelegationAction; + } + + /** @name PalletParachainStakingDelegationRequestsDelegationAction (63) */ + interface PalletParachainStakingDelegationRequestsDelegationAction extends Enum { + readonly isRevoke: boolean; + readonly asRevoke: u128; + readonly isDecrease: boolean; + readonly asDecrease: u128; + readonly type: 'Revoke' | 'Decrease'; + } + + /** @name PalletParachainStakingDelegatorAdded (64) */ + interface PalletParachainStakingDelegatorAdded extends Enum { + readonly isAddedToTop: boolean; + readonly asAddedToTop: { + readonly newTotal: u128; + } & Struct; + readonly isAddedToBottom: boolean; + readonly type: 'AddedToTop' | 'AddedToBottom'; + } + + /** @name CumulusPalletXcmpQueueEvent (67) */ + interface CumulusPalletXcmpQueueEvent extends Enum { + readonly isSuccess: boolean; + readonly asSuccess: { + readonly messageHash: Option; + readonly weight: SpWeightsWeightV2Weight; + } & Struct; + readonly isFail: boolean; + readonly asFail: { + readonly messageHash: Option; + readonly error: XcmV3TraitsError; + readonly weight: SpWeightsWeightV2Weight; + } & Struct; + readonly isBadVersion: boolean; + readonly asBadVersion: { + readonly messageHash: Option; + } & Struct; + readonly isBadFormat: boolean; + readonly asBadFormat: { + readonly messageHash: Option; + } & Struct; + readonly isXcmpMessageSent: boolean; + readonly asXcmpMessageSent: { + readonly messageHash: Option; + } & Struct; + readonly isOverweightEnqueued: boolean; + readonly asOverweightEnqueued: { + readonly sender: u32; + readonly sentAt: u32; + readonly index: u64; + readonly required: SpWeightsWeightV2Weight; + } & Struct; + readonly isOverweightServiced: boolean; + readonly asOverweightServiced: { + readonly index: u64; + readonly used: SpWeightsWeightV2Weight; + } & Struct; + readonly type: + | 'Success' + | 'Fail' + | 'BadVersion' + | 'BadFormat' + | 'XcmpMessageSent' + | 'OverweightEnqueued' + | 'OverweightServiced'; + } + + /** @name XcmV3TraitsError (68) */ + interface XcmV3TraitsError extends Enum { + readonly isOverflow: boolean; + readonly isUnimplemented: boolean; + readonly isUntrustedReserveLocation: boolean; + readonly isUntrustedTeleportLocation: boolean; + readonly isLocationFull: boolean; + readonly isLocationNotInvertible: boolean; + readonly isBadOrigin: boolean; + readonly isInvalidLocation: boolean; + readonly isAssetNotFound: boolean; + readonly isFailedToTransactAsset: boolean; + readonly isNotWithdrawable: boolean; + readonly isLocationCannotHold: boolean; + readonly isExceedsMaxMessageSize: boolean; + readonly isDestinationUnsupported: boolean; + readonly isTransport: boolean; + readonly isUnroutable: boolean; + readonly isUnknownClaim: boolean; + readonly isFailedToDecode: boolean; + readonly isMaxWeightInvalid: boolean; + readonly isNotHoldingFees: boolean; + readonly isTooExpensive: boolean; + readonly isTrap: boolean; + readonly asTrap: u64; + readonly isExpectationFalse: boolean; + readonly isPalletNotFound: boolean; + readonly isNameMismatch: boolean; + readonly isVersionIncompatible: boolean; + readonly isHoldingWouldOverflow: boolean; + readonly isExportError: boolean; + readonly isReanchorFailed: boolean; + readonly isNoDeal: boolean; + readonly isFeesNotMet: boolean; + readonly isLockError: boolean; + readonly isNoPermission: boolean; + readonly isUnanchored: boolean; + readonly isNotDepositable: boolean; + readonly isUnhandledXcmVersion: boolean; + readonly isWeightLimitReached: boolean; + readonly asWeightLimitReached: SpWeightsWeightV2Weight; + readonly isBarrier: boolean; + readonly isWeightNotComputable: boolean; + readonly isExceedsStackLimit: boolean; + readonly type: + | 'Overflow' + | 'Unimplemented' + | 'UntrustedReserveLocation' + | 'UntrustedTeleportLocation' + | 'LocationFull' + | 'LocationNotInvertible' + | 'BadOrigin' + | 'InvalidLocation' + | 'AssetNotFound' + | 'FailedToTransactAsset' + | 'NotWithdrawable' + | 'LocationCannotHold' + | 'ExceedsMaxMessageSize' + | 'DestinationUnsupported' + | 'Transport' + | 'Unroutable' + | 'UnknownClaim' + | 'FailedToDecode' + | 'MaxWeightInvalid' + | 'NotHoldingFees' + | 'TooExpensive' + | 'Trap' + | 'ExpectationFalse' + | 'PalletNotFound' + | 'NameMismatch' + | 'VersionIncompatible' + | 'HoldingWouldOverflow' + | 'ExportError' + | 'ReanchorFailed' + | 'NoDeal' + | 'FeesNotMet' + | 'LockError' + | 'NoPermission' + | 'Unanchored' + | 'NotDepositable' + | 'UnhandledXcmVersion' + | 'WeightLimitReached' + | 'Barrier' + | 'WeightNotComputable' + | 'ExceedsStackLimit'; + } + + /** @name PalletXcmEvent (70) */ + interface PalletXcmEvent extends Enum { + readonly isAttempted: boolean; + readonly asAttempted: XcmV3TraitsOutcome; + readonly isSent: boolean; + readonly asSent: ITuple<[XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>; + readonly isUnexpectedResponse: boolean; + readonly asUnexpectedResponse: ITuple<[XcmV3MultiLocation, u64]>; + readonly isResponseReady: boolean; + readonly asResponseReady: ITuple<[u64, XcmV3Response]>; + readonly isNotified: boolean; + readonly asNotified: ITuple<[u64, u8, u8]>; + readonly isNotifyOverweight: boolean; + readonly asNotifyOverweight: ITuple<[u64, u8, u8, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>; + readonly isNotifyDispatchError: boolean; + readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>; + readonly isNotifyDecodeFailed: boolean; + readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>; + readonly isInvalidResponder: boolean; + readonly asInvalidResponder: ITuple<[XcmV3MultiLocation, u64, Option]>; + readonly isInvalidResponderVersion: boolean; + readonly asInvalidResponderVersion: ITuple<[XcmV3MultiLocation, u64]>; + readonly isResponseTaken: boolean; + readonly asResponseTaken: u64; + readonly isAssetsTrapped: boolean; + readonly asAssetsTrapped: ITuple<[H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>; + readonly isVersionChangeNotified: boolean; + readonly asVersionChangeNotified: ITuple<[XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>; + readonly isSupportedVersionChanged: boolean; + readonly asSupportedVersionChanged: ITuple<[XcmV3MultiLocation, u32]>; + readonly isNotifyTargetSendFail: boolean; + readonly asNotifyTargetSendFail: ITuple<[XcmV3MultiLocation, u64, XcmV3TraitsError]>; + readonly isNotifyTargetMigrationFail: boolean; + readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>; + readonly isInvalidQuerierVersion: boolean; + readonly asInvalidQuerierVersion: ITuple<[XcmV3MultiLocation, u64]>; + readonly isInvalidQuerier: boolean; + readonly asInvalidQuerier: ITuple<[XcmV3MultiLocation, u64, XcmV3MultiLocation, Option]>; + readonly isVersionNotifyStarted: boolean; + readonly asVersionNotifyStarted: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly isVersionNotifyRequested: boolean; + readonly asVersionNotifyRequested: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly isVersionNotifyUnrequested: boolean; + readonly asVersionNotifyUnrequested: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly isFeesPaid: boolean; + readonly asFeesPaid: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly isAssetsClaimed: boolean; + readonly asAssetsClaimed: ITuple<[H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>; + readonly type: + | 'Attempted' + | 'Sent' + | 'UnexpectedResponse' + | 'ResponseReady' + | 'Notified' + | 'NotifyOverweight' + | 'NotifyDispatchError' + | 'NotifyDecodeFailed' + | 'InvalidResponder' + | 'InvalidResponderVersion' + | 'ResponseTaken' + | 'AssetsTrapped' + | 'VersionChangeNotified' + | 'SupportedVersionChanged' + | 'NotifyTargetSendFail' + | 'NotifyTargetMigrationFail' + | 'InvalidQuerierVersion' + | 'InvalidQuerier' + | 'VersionNotifyStarted' + | 'VersionNotifyRequested' + | 'VersionNotifyUnrequested' + | 'FeesPaid' + | 'AssetsClaimed'; + } + + /** @name XcmV3TraitsOutcome (71) */ + interface XcmV3TraitsOutcome extends Enum { + readonly isComplete: boolean; + readonly asComplete: SpWeightsWeightV2Weight; + readonly isIncomplete: boolean; + readonly asIncomplete: ITuple<[SpWeightsWeightV2Weight, XcmV3TraitsError]>; + readonly isError: boolean; + readonly asError: XcmV3TraitsError; + readonly type: 'Complete' | 'Incomplete' | 'Error'; + } + + /** @name XcmV3MultiLocation (72) */ + interface XcmV3MultiLocation extends Struct { + readonly parents: u8; + readonly interior: XcmV3Junctions; + } + + /** @name XcmV3Junctions (73) */ + interface XcmV3Junctions extends Enum { + readonly isHere: boolean; + readonly isX1: boolean; + readonly asX1: XcmV3Junction; + readonly isX2: boolean; + readonly asX2: ITuple<[XcmV3Junction, XcmV3Junction]>; + readonly isX3: boolean; + readonly asX3: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction]>; + readonly isX4: boolean; + readonly asX4: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; + readonly isX5: boolean; + readonly asX5: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; + readonly isX6: boolean; + readonly asX6: ITuple< + [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] + >; + readonly isX7: boolean; + readonly asX7: ITuple< + [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] + >; + readonly isX8: boolean; + readonly asX8: ITuple< + [ + XcmV3Junction, + XcmV3Junction, + XcmV3Junction, + XcmV3Junction, + XcmV3Junction, + XcmV3Junction, + XcmV3Junction, + XcmV3Junction + ] + >; + readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8'; + } + + /** @name XcmV3Junction (74) */ + interface XcmV3Junction extends Enum { + readonly isParachain: boolean; + readonly asParachain: Compact; + readonly isAccountId32: boolean; + readonly asAccountId32: { + readonly network: Option; + readonly id: U8aFixed; + } & Struct; + readonly isAccountIndex64: boolean; + readonly asAccountIndex64: { + readonly network: Option; + readonly index: Compact; + } & Struct; + readonly isAccountKey20: boolean; + readonly asAccountKey20: { + readonly network: Option; + readonly key: U8aFixed; + } & Struct; + readonly isPalletInstance: boolean; + readonly asPalletInstance: u8; + readonly isGeneralIndex: boolean; + readonly asGeneralIndex: Compact; + readonly isGeneralKey: boolean; + readonly asGeneralKey: { + readonly length: u8; + readonly data: U8aFixed; + } & Struct; + readonly isOnlyChild: boolean; + readonly isPlurality: boolean; + readonly asPlurality: { + readonly id: XcmV3JunctionBodyId; + readonly part: XcmV3JunctionBodyPart; + } & Struct; + readonly isGlobalConsensus: boolean; + readonly asGlobalConsensus: XcmV3JunctionNetworkId; + readonly type: + | 'Parachain' + | 'AccountId32' + | 'AccountIndex64' + | 'AccountKey20' + | 'PalletInstance' + | 'GeneralIndex' + | 'GeneralKey' + | 'OnlyChild' + | 'Plurality' + | 'GlobalConsensus'; + } + + /** @name XcmV3JunctionNetworkId (77) */ + interface XcmV3JunctionNetworkId extends Enum { + readonly isByGenesis: boolean; + readonly asByGenesis: U8aFixed; + readonly isByFork: boolean; + readonly asByFork: { + readonly blockNumber: u64; + readonly blockHash: U8aFixed; + } & Struct; + readonly isPolkadot: boolean; + readonly isKusama: boolean; + readonly isWestend: boolean; + readonly isRococo: boolean; + readonly isWococo: boolean; + readonly isEthereum: boolean; + readonly asEthereum: { + readonly chainId: Compact; + } & Struct; + readonly isBitcoinCore: boolean; + readonly isBitcoinCash: boolean; + readonly type: + | 'ByGenesis' + | 'ByFork' + | 'Polkadot' + | 'Kusama' + | 'Westend' + | 'Rococo' + | 'Wococo' + | 'Ethereum' + | 'BitcoinCore' + | 'BitcoinCash'; + } + + /** @name XcmV3JunctionBodyId (80) */ + interface XcmV3JunctionBodyId extends Enum { + readonly isUnit: boolean; + readonly isMoniker: boolean; + readonly asMoniker: U8aFixed; + readonly isIndex: boolean; + readonly asIndex: Compact; + readonly isExecutive: boolean; + readonly isTechnical: boolean; + readonly isLegislative: boolean; + readonly isJudicial: boolean; + readonly isDefense: boolean; + readonly isAdministration: boolean; + readonly isTreasury: boolean; + readonly type: + | 'Unit' + | 'Moniker' + | 'Index' + | 'Executive' + | 'Technical' + | 'Legislative' + | 'Judicial' + | 'Defense' + | 'Administration' + | 'Treasury'; + } + + /** @name XcmV3JunctionBodyPart (81) */ + interface XcmV3JunctionBodyPart extends Enum { + readonly isVoice: boolean; + readonly isMembers: boolean; + readonly asMembers: { + readonly count: Compact; + } & Struct; + readonly isFraction: boolean; + readonly asFraction: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly isAtLeastProportion: boolean; + readonly asAtLeastProportion: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly isMoreThanProportion: boolean; + readonly asMoreThanProportion: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion'; + } + + /** @name XcmV3Xcm (82) */ + interface XcmV3Xcm extends Vec {} + + /** @name XcmV3Instruction (84) */ + interface XcmV3Instruction extends Enum { + readonly isWithdrawAsset: boolean; + readonly asWithdrawAsset: XcmV3MultiassetMultiAssets; + readonly isReserveAssetDeposited: boolean; + readonly asReserveAssetDeposited: XcmV3MultiassetMultiAssets; + readonly isReceiveTeleportedAsset: boolean; + readonly asReceiveTeleportedAsset: XcmV3MultiassetMultiAssets; + readonly isQueryResponse: boolean; + readonly asQueryResponse: { + readonly queryId: Compact; + readonly response: XcmV3Response; + readonly maxWeight: SpWeightsWeightV2Weight; + readonly querier: Option; + } & Struct; + readonly isTransferAsset: boolean; + readonly asTransferAsset: { + readonly assets: XcmV3MultiassetMultiAssets; + readonly beneficiary: XcmV3MultiLocation; + } & Struct; + readonly isTransferReserveAsset: boolean; + readonly asTransferReserveAsset: { + readonly assets: XcmV3MultiassetMultiAssets; + readonly dest: XcmV3MultiLocation; + readonly xcm: XcmV3Xcm; + } & Struct; + readonly isTransact: boolean; + readonly asTransact: { + readonly originKind: XcmV2OriginKind; + readonly requireWeightAtMost: SpWeightsWeightV2Weight; + readonly call: XcmDoubleEncoded; + } & Struct; + readonly isHrmpNewChannelOpenRequest: boolean; + readonly asHrmpNewChannelOpenRequest: { + readonly sender: Compact; + readonly maxMessageSize: Compact; + readonly maxCapacity: Compact; + } & Struct; + readonly isHrmpChannelAccepted: boolean; + readonly asHrmpChannelAccepted: { + readonly recipient: Compact; + } & Struct; + readonly isHrmpChannelClosing: boolean; + readonly asHrmpChannelClosing: { + readonly initiator: Compact; + readonly sender: Compact; + readonly recipient: Compact; + } & Struct; + readonly isClearOrigin: boolean; + readonly isDescendOrigin: boolean; + readonly asDescendOrigin: XcmV3Junctions; + readonly isReportError: boolean; + readonly asReportError: XcmV3QueryResponseInfo; + readonly isDepositAsset: boolean; + readonly asDepositAsset: { + readonly assets: XcmV3MultiassetMultiAssetFilter; + readonly beneficiary: XcmV3MultiLocation; + } & Struct; + readonly isDepositReserveAsset: boolean; + readonly asDepositReserveAsset: { + readonly assets: XcmV3MultiassetMultiAssetFilter; + readonly dest: XcmV3MultiLocation; + readonly xcm: XcmV3Xcm; + } & Struct; + readonly isExchangeAsset: boolean; + readonly asExchangeAsset: { + readonly give: XcmV3MultiassetMultiAssetFilter; + readonly want: XcmV3MultiassetMultiAssets; + readonly maximal: bool; + } & Struct; + readonly isInitiateReserveWithdraw: boolean; + readonly asInitiateReserveWithdraw: { + readonly assets: XcmV3MultiassetMultiAssetFilter; + readonly reserve: XcmV3MultiLocation; + readonly xcm: XcmV3Xcm; + } & Struct; + readonly isInitiateTeleport: boolean; + readonly asInitiateTeleport: { + readonly assets: XcmV3MultiassetMultiAssetFilter; + readonly dest: XcmV3MultiLocation; + readonly xcm: XcmV3Xcm; + } & Struct; + readonly isReportHolding: boolean; + readonly asReportHolding: { + readonly responseInfo: XcmV3QueryResponseInfo; + readonly assets: XcmV3MultiassetMultiAssetFilter; + } & Struct; + readonly isBuyExecution: boolean; + readonly asBuyExecution: { + readonly fees: XcmV3MultiAsset; + readonly weightLimit: XcmV3WeightLimit; + } & Struct; + readonly isRefundSurplus: boolean; + readonly isSetErrorHandler: boolean; + readonly asSetErrorHandler: XcmV3Xcm; + readonly isSetAppendix: boolean; + readonly asSetAppendix: XcmV3Xcm; + readonly isClearError: boolean; + readonly isClaimAsset: boolean; + readonly asClaimAsset: { + readonly assets: XcmV3MultiassetMultiAssets; + readonly ticket: XcmV3MultiLocation; + } & Struct; + readonly isTrap: boolean; + readonly asTrap: Compact; + readonly isSubscribeVersion: boolean; + readonly asSubscribeVersion: { + readonly queryId: Compact; + readonly maxResponseWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isUnsubscribeVersion: boolean; + readonly isBurnAsset: boolean; + readonly asBurnAsset: XcmV3MultiassetMultiAssets; + readonly isExpectAsset: boolean; + readonly asExpectAsset: XcmV3MultiassetMultiAssets; + readonly isExpectOrigin: boolean; + readonly asExpectOrigin: Option; + readonly isExpectError: boolean; + readonly asExpectError: Option>; + readonly isExpectTransactStatus: boolean; + readonly asExpectTransactStatus: XcmV3MaybeErrorCode; + readonly isQueryPallet: boolean; + readonly asQueryPallet: { + readonly moduleName: Bytes; + readonly responseInfo: XcmV3QueryResponseInfo; + } & Struct; + readonly isExpectPallet: boolean; + readonly asExpectPallet: { + readonly index: Compact; + readonly name: Bytes; + readonly moduleName: Bytes; + readonly crateMajor: Compact; + readonly minCrateMinor: Compact; + } & Struct; + readonly isReportTransactStatus: boolean; + readonly asReportTransactStatus: XcmV3QueryResponseInfo; + readonly isClearTransactStatus: boolean; + readonly isUniversalOrigin: boolean; + readonly asUniversalOrigin: XcmV3Junction; + readonly isExportMessage: boolean; + readonly asExportMessage: { + readonly network: XcmV3JunctionNetworkId; + readonly destination: XcmV3Junctions; + readonly xcm: XcmV3Xcm; + } & Struct; + readonly isLockAsset: boolean; + readonly asLockAsset: { + readonly asset: XcmV3MultiAsset; + readonly unlocker: XcmV3MultiLocation; + } & Struct; + readonly isUnlockAsset: boolean; + readonly asUnlockAsset: { + readonly asset: XcmV3MultiAsset; + readonly target: XcmV3MultiLocation; + } & Struct; + readonly isNoteUnlockable: boolean; + readonly asNoteUnlockable: { + readonly asset: XcmV3MultiAsset; + readonly owner: XcmV3MultiLocation; + } & Struct; + readonly isRequestUnlock: boolean; + readonly asRequestUnlock: { + readonly asset: XcmV3MultiAsset; + readonly locker: XcmV3MultiLocation; + } & Struct; + readonly isSetFeesMode: boolean; + readonly asSetFeesMode: { + readonly jitWithdraw: bool; + } & Struct; + readonly isSetTopic: boolean; + readonly asSetTopic: U8aFixed; + readonly isClearTopic: boolean; + readonly isAliasOrigin: boolean; + readonly asAliasOrigin: XcmV3MultiLocation; + readonly isUnpaidExecution: boolean; + readonly asUnpaidExecution: { + readonly weightLimit: XcmV3WeightLimit; + readonly checkOrigin: Option; + } & Struct; + readonly type: + | 'WithdrawAsset' + | 'ReserveAssetDeposited' + | 'ReceiveTeleportedAsset' + | 'QueryResponse' + | 'TransferAsset' + | 'TransferReserveAsset' + | 'Transact' + | 'HrmpNewChannelOpenRequest' + | 'HrmpChannelAccepted' + | 'HrmpChannelClosing' + | 'ClearOrigin' + | 'DescendOrigin' + | 'ReportError' + | 'DepositAsset' + | 'DepositReserveAsset' + | 'ExchangeAsset' + | 'InitiateReserveWithdraw' + | 'InitiateTeleport' + | 'ReportHolding' + | 'BuyExecution' + | 'RefundSurplus' + | 'SetErrorHandler' + | 'SetAppendix' + | 'ClearError' + | 'ClaimAsset' + | 'Trap' + | 'SubscribeVersion' + | 'UnsubscribeVersion' + | 'BurnAsset' + | 'ExpectAsset' + | 'ExpectOrigin' + | 'ExpectError' + | 'ExpectTransactStatus' + | 'QueryPallet' + | 'ExpectPallet' + | 'ReportTransactStatus' + | 'ClearTransactStatus' + | 'UniversalOrigin' + | 'ExportMessage' + | 'LockAsset' + | 'UnlockAsset' + | 'NoteUnlockable' + | 'RequestUnlock' + | 'SetFeesMode' + | 'SetTopic' + | 'ClearTopic' + | 'AliasOrigin' + | 'UnpaidExecution'; + } + + /** @name XcmV3MultiassetMultiAssets (85) */ + interface XcmV3MultiassetMultiAssets extends Vec {} + + /** @name XcmV3MultiAsset (87) */ + interface XcmV3MultiAsset extends Struct { + readonly id: XcmV3MultiassetAssetId; + readonly fun: XcmV3MultiassetFungibility; + } + + /** @name XcmV3MultiassetAssetId (88) */ + interface XcmV3MultiassetAssetId extends Enum { + readonly isConcrete: boolean; + readonly asConcrete: XcmV3MultiLocation; + readonly isAbstract: boolean; + readonly asAbstract: U8aFixed; + readonly type: 'Concrete' | 'Abstract'; + } + + /** @name XcmV3MultiassetFungibility (89) */ + interface XcmV3MultiassetFungibility extends Enum { + readonly isFungible: boolean; + readonly asFungible: Compact; + readonly isNonFungible: boolean; + readonly asNonFungible: XcmV3MultiassetAssetInstance; + readonly type: 'Fungible' | 'NonFungible'; + } + + /** @name XcmV3MultiassetAssetInstance (90) */ + interface XcmV3MultiassetAssetInstance extends Enum { + readonly isUndefined: boolean; + readonly isIndex: boolean; + readonly asIndex: Compact; + readonly isArray4: boolean; + readonly asArray4: U8aFixed; + readonly isArray8: boolean; + readonly asArray8: U8aFixed; + readonly isArray16: boolean; + readonly asArray16: U8aFixed; + readonly isArray32: boolean; + readonly asArray32: U8aFixed; + readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32'; + } + + /** @name XcmV3Response (93) */ + interface XcmV3Response extends Enum { + readonly isNull: boolean; + readonly isAssets: boolean; + readonly asAssets: XcmV3MultiassetMultiAssets; + readonly isExecutionResult: boolean; + readonly asExecutionResult: Option>; + readonly isVersion: boolean; + readonly asVersion: u32; + readonly isPalletsInfo: boolean; + readonly asPalletsInfo: Vec; + readonly isDispatchResult: boolean; + readonly asDispatchResult: XcmV3MaybeErrorCode; + readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version' | 'PalletsInfo' | 'DispatchResult'; + } + + /** @name XcmV3PalletInfo (97) */ + interface XcmV3PalletInfo extends Struct { + readonly index: Compact; + readonly name: Bytes; + readonly moduleName: Bytes; + readonly major: Compact; + readonly minor: Compact; + readonly patch: Compact; + } + + /** @name XcmV3MaybeErrorCode (100) */ + interface XcmV3MaybeErrorCode extends Enum { + readonly isSuccess: boolean; + readonly isError: boolean; + readonly asError: Bytes; + readonly isTruncatedError: boolean; + readonly asTruncatedError: Bytes; + readonly type: 'Success' | 'Error' | 'TruncatedError'; + } + + /** @name XcmV2OriginKind (103) */ + interface XcmV2OriginKind extends Enum { + readonly isNative: boolean; + readonly isSovereignAccount: boolean; + readonly isSuperuser: boolean; + readonly isXcm: boolean; + readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; + } + + /** @name XcmDoubleEncoded (104) */ + interface XcmDoubleEncoded extends Struct { + readonly encoded: Bytes; + } + + /** @name XcmV3QueryResponseInfo (105) */ + interface XcmV3QueryResponseInfo extends Struct { + readonly destination: XcmV3MultiLocation; + readonly queryId: Compact; + readonly maxWeight: SpWeightsWeightV2Weight; + } + + /** @name XcmV3MultiassetMultiAssetFilter (106) */ + interface XcmV3MultiassetMultiAssetFilter extends Enum { + readonly isDefinite: boolean; + readonly asDefinite: XcmV3MultiassetMultiAssets; + readonly isWild: boolean; + readonly asWild: XcmV3MultiassetWildMultiAsset; + readonly type: 'Definite' | 'Wild'; + } + + /** @name XcmV3MultiassetWildMultiAsset (107) */ + interface XcmV3MultiassetWildMultiAsset extends Enum { + readonly isAll: boolean; + readonly isAllOf: boolean; + readonly asAllOf: { + readonly id: XcmV3MultiassetAssetId; + readonly fun: XcmV3MultiassetWildFungibility; + } & Struct; + readonly isAllCounted: boolean; + readonly asAllCounted: Compact; + readonly isAllOfCounted: boolean; + readonly asAllOfCounted: { + readonly id: XcmV3MultiassetAssetId; + readonly fun: XcmV3MultiassetWildFungibility; + readonly count: Compact; + } & Struct; + readonly type: 'All' | 'AllOf' | 'AllCounted' | 'AllOfCounted'; + } + + /** @name XcmV3MultiassetWildFungibility (108) */ + interface XcmV3MultiassetWildFungibility extends Enum { + readonly isFungible: boolean; + readonly isNonFungible: boolean; + readonly type: 'Fungible' | 'NonFungible'; + } + + /** @name XcmV3WeightLimit (109) */ + interface XcmV3WeightLimit extends Enum { + readonly isUnlimited: boolean; + readonly isLimited: boolean; + readonly asLimited: SpWeightsWeightV2Weight; + readonly type: 'Unlimited' | 'Limited'; + } + + /** @name XcmVersionedMultiAssets (110) */ + interface XcmVersionedMultiAssets extends Enum { + readonly isV2: boolean; + readonly asV2: XcmV2MultiassetMultiAssets; + readonly isV3: boolean; + readonly asV3: XcmV3MultiassetMultiAssets; + readonly type: 'V2' | 'V3'; + } + + /** @name XcmV2MultiassetMultiAssets (111) */ + interface XcmV2MultiassetMultiAssets extends Vec {} + + /** @name XcmV2MultiAsset (113) */ + interface XcmV2MultiAsset extends Struct { + readonly id: XcmV2MultiassetAssetId; + readonly fun: XcmV2MultiassetFungibility; + } + + /** @name XcmV2MultiassetAssetId (114) */ + interface XcmV2MultiassetAssetId extends Enum { + readonly isConcrete: boolean; + readonly asConcrete: XcmV2MultiLocation; + readonly isAbstract: boolean; + readonly asAbstract: Bytes; + readonly type: 'Concrete' | 'Abstract'; + } + + /** @name XcmV2MultiLocation (115) */ + interface XcmV2MultiLocation extends Struct { + readonly parents: u8; + readonly interior: XcmV2MultilocationJunctions; + } + + /** @name XcmV2MultilocationJunctions (116) */ + interface XcmV2MultilocationJunctions extends Enum { + readonly isHere: boolean; + readonly isX1: boolean; + readonly asX1: XcmV2Junction; + readonly isX2: boolean; + readonly asX2: ITuple<[XcmV2Junction, XcmV2Junction]>; + readonly isX3: boolean; + readonly asX3: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction]>; + readonly isX4: boolean; + readonly asX4: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; + readonly isX5: boolean; + readonly asX5: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; + readonly isX6: boolean; + readonly asX6: ITuple< + [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] + >; + readonly isX7: boolean; + readonly asX7: ITuple< + [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] + >; + readonly isX8: boolean; + readonly asX8: ITuple< + [ + XcmV2Junction, + XcmV2Junction, + XcmV2Junction, + XcmV2Junction, + XcmV2Junction, + XcmV2Junction, + XcmV2Junction, + XcmV2Junction + ] + >; + readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8'; + } + + /** @name XcmV2Junction (117) */ + interface XcmV2Junction extends Enum { + readonly isParachain: boolean; + readonly asParachain: Compact; + readonly isAccountId32: boolean; + readonly asAccountId32: { + readonly network: XcmV2NetworkId; + readonly id: U8aFixed; + } & Struct; + readonly isAccountIndex64: boolean; + readonly asAccountIndex64: { + readonly network: XcmV2NetworkId; + readonly index: Compact; + } & Struct; + readonly isAccountKey20: boolean; + readonly asAccountKey20: { + readonly network: XcmV2NetworkId; + readonly key: U8aFixed; + } & Struct; + readonly isPalletInstance: boolean; + readonly asPalletInstance: u8; + readonly isGeneralIndex: boolean; + readonly asGeneralIndex: Compact; + readonly isGeneralKey: boolean; + readonly asGeneralKey: Bytes; + readonly isOnlyChild: boolean; + readonly isPlurality: boolean; + readonly asPlurality: { + readonly id: XcmV2BodyId; + readonly part: XcmV2BodyPart; + } & Struct; + readonly type: + | 'Parachain' + | 'AccountId32' + | 'AccountIndex64' + | 'AccountKey20' + | 'PalletInstance' + | 'GeneralIndex' + | 'GeneralKey' + | 'OnlyChild' + | 'Plurality'; + } + + /** @name XcmV2NetworkId (118) */ + interface XcmV2NetworkId extends Enum { + readonly isAny: boolean; + readonly isNamed: boolean; + readonly asNamed: Bytes; + readonly isPolkadot: boolean; + readonly isKusama: boolean; + readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama'; + } + + /** @name XcmV2BodyId (120) */ + interface XcmV2BodyId extends Enum { + readonly isUnit: boolean; + readonly isNamed: boolean; + readonly asNamed: Bytes; + readonly isIndex: boolean; + readonly asIndex: Compact; + readonly isExecutive: boolean; + readonly isTechnical: boolean; + readonly isLegislative: boolean; + readonly isJudicial: boolean; + readonly isDefense: boolean; + readonly isAdministration: boolean; + readonly isTreasury: boolean; + readonly type: + | 'Unit' + | 'Named' + | 'Index' + | 'Executive' + | 'Technical' + | 'Legislative' + | 'Judicial' + | 'Defense' + | 'Administration' + | 'Treasury'; + } + + /** @name XcmV2BodyPart (121) */ + interface XcmV2BodyPart extends Enum { + readonly isVoice: boolean; + readonly isMembers: boolean; + readonly asMembers: { + readonly count: Compact; + } & Struct; + readonly isFraction: boolean; + readonly asFraction: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly isAtLeastProportion: boolean; + readonly asAtLeastProportion: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly isMoreThanProportion: boolean; + readonly asMoreThanProportion: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion'; + } + + /** @name XcmV2MultiassetFungibility (122) */ + interface XcmV2MultiassetFungibility extends Enum { + readonly isFungible: boolean; + readonly asFungible: Compact; + readonly isNonFungible: boolean; + readonly asNonFungible: XcmV2MultiassetAssetInstance; + readonly type: 'Fungible' | 'NonFungible'; + } + + /** @name XcmV2MultiassetAssetInstance (123) */ + interface XcmV2MultiassetAssetInstance extends Enum { + readonly isUndefined: boolean; + readonly isIndex: boolean; + readonly asIndex: Compact; + readonly isArray4: boolean; + readonly asArray4: U8aFixed; + readonly isArray8: boolean; + readonly asArray8: U8aFixed; + readonly isArray16: boolean; + readonly asArray16: U8aFixed; + readonly isArray32: boolean; + readonly asArray32: U8aFixed; + readonly isBlob: boolean; + readonly asBlob: Bytes; + readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob'; + } + + /** @name XcmVersionedMultiLocation (124) */ + interface XcmVersionedMultiLocation extends Enum { + readonly isV2: boolean; + readonly asV2: XcmV2MultiLocation; + readonly isV3: boolean; + readonly asV3: XcmV3MultiLocation; + readonly type: 'V2' | 'V3'; + } + + /** @name CumulusPalletXcmEvent (125) */ + interface CumulusPalletXcmEvent extends Enum { + readonly isInvalidFormat: boolean; + readonly asInvalidFormat: U8aFixed; + readonly isUnsupportedVersion: boolean; + readonly asUnsupportedVersion: U8aFixed; + readonly isExecutedDownward: boolean; + readonly asExecutedDownward: ITuple<[U8aFixed, XcmV3TraitsOutcome]>; + readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward'; + } + + /** @name CumulusPalletDmpQueueEvent (126) */ + interface CumulusPalletDmpQueueEvent extends Enum { + readonly isInvalidFormat: boolean; + readonly asInvalidFormat: { + readonly messageId: U8aFixed; + } & Struct; + readonly isUnsupportedVersion: boolean; + readonly asUnsupportedVersion: { + readonly messageId: U8aFixed; + } & Struct; + readonly isExecutedDownward: boolean; + readonly asExecutedDownward: { + readonly messageId: U8aFixed; + readonly outcome: XcmV3TraitsOutcome; + } & Struct; + readonly isWeightExhausted: boolean; + readonly asWeightExhausted: { + readonly messageId: U8aFixed; + readonly remainingWeight: SpWeightsWeightV2Weight; + readonly requiredWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isOverweightEnqueued: boolean; + readonly asOverweightEnqueued: { + readonly messageId: U8aFixed; + readonly overweightIndex: u64; + readonly requiredWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isOverweightServiced: boolean; + readonly asOverweightServiced: { + readonly overweightIndex: u64; + readonly weightUsed: SpWeightsWeightV2Weight; + } & Struct; + readonly isMaxMessagesExhausted: boolean; + readonly asMaxMessagesExhausted: { + readonly messageId: U8aFixed; + } & Struct; + readonly type: + | 'InvalidFormat' + | 'UnsupportedVersion' + | 'ExecutedDownward' + | 'WeightExhausted' + | 'OverweightEnqueued' + | 'OverweightServiced' + | 'MaxMessagesExhausted'; + } + + /** @name OrmlXtokensModuleEvent (127) */ + interface OrmlXtokensModuleEvent extends Enum { + readonly isTransferredMultiAssets: boolean; + readonly asTransferredMultiAssets: { + readonly sender: AccountId32; + readonly assets: XcmV3MultiassetMultiAssets; + readonly fee: XcmV3MultiAsset; + readonly dest: XcmV3MultiLocation; + } & Struct; + readonly type: 'TransferredMultiAssets'; + } + + /** @name OrmlTokensModuleEvent (128) */ + interface OrmlTokensModuleEvent extends Enum { + readonly isEndowed: boolean; + readonly asEndowed: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isDustLost: boolean; + readonly asDustLost: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isTransfer: boolean; + readonly asTransfer: { + readonly currencyId: u128; + readonly from: AccountId32; + readonly to: AccountId32; + readonly amount: u128; + } & Struct; + readonly isReserved: boolean; + readonly asReserved: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isUnreserved: boolean; + readonly asUnreserved: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isReserveRepatriated: boolean; + readonly asReserveRepatriated: { + readonly currencyId: u128; + readonly from: AccountId32; + readonly to: AccountId32; + readonly amount: u128; + readonly status: FrameSupportTokensMiscBalanceStatus; + } & Struct; + readonly isBalanceSet: boolean; + readonly asBalanceSet: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly free: u128; + readonly reserved: u128; + } & Struct; + readonly isTotalIssuanceSet: boolean; + readonly asTotalIssuanceSet: { + readonly currencyId: u128; + readonly amount: u128; + } & Struct; + readonly isWithdrawn: boolean; + readonly asWithdrawn: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isSlashed: boolean; + readonly asSlashed: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly freeAmount: u128; + readonly reservedAmount: u128; + } & Struct; + readonly isDeposited: boolean; + readonly asDeposited: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isLockSet: boolean; + readonly asLockSet: { + readonly lockId: U8aFixed; + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isLockRemoved: boolean; + readonly asLockRemoved: { + readonly lockId: U8aFixed; + readonly currencyId: u128; + readonly who: AccountId32; + } & Struct; + readonly isLocked: boolean; + readonly asLocked: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isUnlocked: boolean; + readonly asUnlocked: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly type: + | 'Endowed' + | 'DustLost' + | 'Transfer' + | 'Reserved' + | 'Unreserved' + | 'ReserveRepatriated' + | 'BalanceSet' + | 'TotalIssuanceSet' + | 'Withdrawn' + | 'Slashed' + | 'Deposited' + | 'LockSet' + | 'LockRemoved' + | 'Locked' + | 'Unlocked'; + } + + /** @name PalletBridgeEvent (129) */ + interface PalletBridgeEvent extends Enum { + readonly isRelayerThresholdChanged: boolean; + readonly asRelayerThresholdChanged: u32; + readonly isChainWhitelisted: boolean; + readonly asChainWhitelisted: u8; + readonly isRelayerAdded: boolean; + readonly asRelayerAdded: AccountId32; + readonly isRelayerRemoved: boolean; + readonly asRelayerRemoved: AccountId32; + readonly isFungibleTransfer: boolean; + readonly asFungibleTransfer: ITuple<[u8, u64, U8aFixed, u128, Bytes]>; + readonly isNonFungibleTransfer: boolean; + readonly asNonFungibleTransfer: ITuple<[u8, u64, U8aFixed, Bytes, Bytes, Bytes]>; + readonly isGenericTransfer: boolean; + readonly asGenericTransfer: ITuple<[u8, u64, U8aFixed, Bytes]>; + readonly isVoteFor: boolean; + readonly asVoteFor: ITuple<[u8, u64, AccountId32]>; + readonly isVoteAgainst: boolean; + readonly asVoteAgainst: ITuple<[u8, u64, AccountId32]>; + readonly isProposalApproved: boolean; + readonly asProposalApproved: ITuple<[u8, u64]>; + readonly isProposalRejected: boolean; + readonly asProposalRejected: ITuple<[u8, u64]>; + readonly isProposalSucceeded: boolean; + readonly asProposalSucceeded: ITuple<[u8, u64]>; + readonly isProposalFailed: boolean; + readonly asProposalFailed: ITuple<[u8, u64]>; + readonly isFeeUpdated: boolean; + readonly asFeeUpdated: { + readonly destId: u8; + readonly fee: u128; + } & Struct; + readonly type: + | 'RelayerThresholdChanged' + | 'ChainWhitelisted' + | 'RelayerAdded' + | 'RelayerRemoved' + | 'FungibleTransfer' + | 'NonFungibleTransfer' + | 'GenericTransfer' + | 'VoteFor' + | 'VoteAgainst' + | 'ProposalApproved' + | 'ProposalRejected' + | 'ProposalSucceeded' + | 'ProposalFailed' + | 'FeeUpdated'; + } + + /** @name PalletBridgeTransferEvent (130) */ + interface PalletBridgeTransferEvent extends Enum { + readonly isMaximumIssuanceChanged: boolean; + readonly asMaximumIssuanceChanged: { + readonly oldValue: u128; + } & Struct; + readonly isNativeTokenMinted: boolean; + readonly asNativeTokenMinted: { + readonly to: AccountId32; + readonly amount: u128; + } & Struct; + readonly type: 'MaximumIssuanceChanged' | 'NativeTokenMinted'; + } + + /** @name PalletDrop3Event (131) */ + interface PalletDrop3Event extends Enum { + readonly isAdminChanged: boolean; + readonly asAdminChanged: { + readonly oldAdmin: Option; + } & Struct; + readonly isBalanceSlashed: boolean; + readonly asBalanceSlashed: { + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isRewardPoolApproved: boolean; + readonly asRewardPoolApproved: { + readonly id: u64; + } & Struct; + readonly isRewardPoolRejected: boolean; + readonly asRewardPoolRejected: { + readonly id: u64; + } & Struct; + readonly isRewardPoolStarted: boolean; + readonly asRewardPoolStarted: { + readonly id: u64; + } & Struct; + readonly isRewardPoolStopped: boolean; + readonly asRewardPoolStopped: { + readonly id: u64; + } & Struct; + readonly isRewardPoolRemoved: boolean; + readonly asRewardPoolRemoved: { + readonly id: u64; + readonly name: Bytes; + readonly owner: AccountId32; + } & Struct; + readonly isRewardPoolProposed: boolean; + readonly asRewardPoolProposed: { + readonly id: u64; + readonly name: Bytes; + readonly owner: AccountId32; + } & Struct; + readonly isRewardSent: boolean; + readonly asRewardSent: { + readonly to: AccountId32; + readonly amount: u128; + } & Struct; + readonly type: + | 'AdminChanged' + | 'BalanceSlashed' + | 'RewardPoolApproved' + | 'RewardPoolRejected' + | 'RewardPoolStarted' + | 'RewardPoolStopped' + | 'RewardPoolRemoved' + | 'RewardPoolProposed' + | 'RewardSent'; + } + + /** @name PalletExtrinsicFilterEvent (133) */ + interface PalletExtrinsicFilterEvent extends Enum { + readonly isModeSet: boolean; + readonly asModeSet: { + readonly newMode: PalletExtrinsicFilterOperationalMode; + } & Struct; + readonly isExtrinsicsBlocked: boolean; + readonly asExtrinsicsBlocked: { + readonly palletNameBytes: Bytes; + readonly functionNameBytes: Option; + } & Struct; + readonly isExtrinsicsUnblocked: boolean; + readonly asExtrinsicsUnblocked: { + readonly palletNameBytes: Bytes; + readonly functionNameBytes: Option; + } & Struct; + readonly type: 'ModeSet' | 'ExtrinsicsBlocked' | 'ExtrinsicsUnblocked'; + } + + /** @name PalletExtrinsicFilterOperationalMode (134) */ + interface PalletExtrinsicFilterOperationalMode extends Enum { + readonly isNormal: boolean; + readonly isSafe: boolean; + readonly isTest: boolean; + readonly type: 'Normal' | 'Safe' | 'Test'; + } + + /** @name PalletIdentityManagementEvent (136) */ + interface PalletIdentityManagementEvent extends Enum { + readonly isDelegateeAdded: boolean; + readonly asDelegateeAdded: { + readonly account: AccountId32; + } & Struct; + readonly isDelegateeRemoved: boolean; + readonly asDelegateeRemoved: { + readonly account: AccountId32; + } & Struct; + readonly isCreateIdentityRequested: boolean; + readonly asCreateIdentityRequested: { + readonly shard: H256; + } & Struct; + readonly isRemoveIdentityRequested: boolean; + readonly asRemoveIdentityRequested: { + readonly shard: H256; + } & Struct; + readonly isVerifyIdentityRequested: boolean; + readonly asVerifyIdentityRequested: { + readonly shard: H256; + } & Struct; + readonly isSetUserShieldingKeyRequested: boolean; + readonly asSetUserShieldingKeyRequested: { + readonly shard: H256; + } & Struct; + readonly isUserShieldingKeySet: boolean; + readonly asUserShieldingKeySet: { + readonly account: AccountId32; + readonly idGraph: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isIdentityCreated: boolean; + readonly asIdentityCreated: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly code: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isIdentityRemoved: boolean; + readonly asIdentityRemoved: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isIdentityVerified: boolean; + readonly asIdentityVerified: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isSetUserShieldingKeyFailed: boolean; + readonly asSetUserShieldingKeyFailed: { + readonly account: Option; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly isCreateIdentityFailed: boolean; + readonly asCreateIdentityFailed: { + readonly account: Option; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly isRemoveIdentityFailed: boolean; + readonly asRemoveIdentityFailed: { + readonly account: Option; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly isVerifyIdentityFailed: boolean; + readonly asVerifyIdentityFailed: { + readonly account: Option; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly isImportScheduledEnclaveFailed: boolean; + readonly isUnclassifiedError: boolean; + readonly asUnclassifiedError: { + readonly account: Option; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly type: + | 'DelegateeAdded' + | 'DelegateeRemoved' + | 'CreateIdentityRequested' + | 'RemoveIdentityRequested' + | 'VerifyIdentityRequested' + | 'SetUserShieldingKeyRequested' + | 'UserShieldingKeySet' + | 'IdentityCreated' + | 'IdentityRemoved' + | 'IdentityVerified' + | 'SetUserShieldingKeyFailed' + | 'CreateIdentityFailed' + | 'RemoveIdentityFailed' + | 'VerifyIdentityFailed' + | 'ImportScheduledEnclaveFailed' + | 'UnclassifiedError'; + } + + /** @name CorePrimitivesKeyAesOutput (137) */ + interface CorePrimitivesKeyAesOutput extends Struct { + readonly ciphertext: Bytes; + readonly aad: Bytes; + readonly nonce: U8aFixed; + } + + /** @name CorePrimitivesErrorErrorDetail (139) */ + interface CorePrimitivesErrorErrorDetail extends Enum { + readonly isImportError: boolean; + readonly isStfError: boolean; + readonly asStfError: Bytes; + readonly isSendStfRequestFailed: boolean; + readonly isChallengeCodeNotFound: boolean; + readonly isUserShieldingKeyNotFound: boolean; + readonly isParseError: boolean; + readonly isDataProviderError: boolean; + readonly asDataProviderError: Bytes; + readonly isInvalidIdentity: boolean; + readonly isWrongWeb2Handle: boolean; + readonly isUnexpectedMessage: boolean; + readonly isWrongSignatureType: boolean; + readonly isVerifySubstrateSignatureFailed: boolean; + readonly isVerifyEvmSignatureFailed: boolean; + readonly isRecoverEvmAddressFailed: boolean; + readonly type: + | 'ImportError' + | 'StfError' + | 'SendStfRequestFailed' + | 'ChallengeCodeNotFound' + | 'UserShieldingKeyNotFound' + | 'ParseError' + | 'DataProviderError' + | 'InvalidIdentity' + | 'WrongWeb2Handle' + | 'UnexpectedMessage' + | 'WrongSignatureType' + | 'VerifySubstrateSignatureFailed' + | 'VerifyEvmSignatureFailed' + | 'RecoverEvmAddressFailed'; + } + + /** @name PalletAssetManagerEvent (141) */ + interface PalletAssetManagerEvent extends Enum { + readonly isForeignAssetMetadataUpdated: boolean; + readonly asForeignAssetMetadataUpdated: { + readonly assetId: u128; + readonly metadata: PalletAssetManagerAssetMetadata; + } & Struct; + readonly isForeignAssetTrackerUpdated: boolean; + readonly asForeignAssetTrackerUpdated: { + readonly oldAssetTracker: u128; + readonly newAssetTracker: u128; + } & Struct; + readonly isForeignAssetTypeRegistered: boolean; + readonly asForeignAssetTypeRegistered: { + readonly assetId: u128; + readonly assetType: RuntimeCommonXcmImplCurrencyId; + } & Struct; + readonly isForeignAssetTypeRemoved: boolean; + readonly asForeignAssetTypeRemoved: { + readonly assetId: u128; + readonly removedAssetType: RuntimeCommonXcmImplCurrencyId; + readonly defaultAssetType: RuntimeCommonXcmImplCurrencyId; + } & Struct; + readonly isUnitsPerSecondChanged: boolean; + readonly asUnitsPerSecondChanged: { + readonly assetId: u128; + readonly unitsPerSecond: u128; + } & Struct; + readonly type: + | 'ForeignAssetMetadataUpdated' + | 'ForeignAssetTrackerUpdated' + | 'ForeignAssetTypeRegistered' + | 'ForeignAssetTypeRemoved' + | 'UnitsPerSecondChanged'; + } + + /** @name PalletAssetManagerAssetMetadata (142) */ + interface PalletAssetManagerAssetMetadata extends Struct { + readonly name: Bytes; + readonly symbol: Bytes; + readonly decimals: u8; + readonly minimalBalance: u128; + readonly isFrozen: bool; + } + + /** @name RuntimeCommonXcmImplCurrencyId (143) */ + interface RuntimeCommonXcmImplCurrencyId extends Enum { + readonly isSelfReserve: boolean; + readonly isParachainReserve: boolean; + readonly asParachainReserve: XcmV3MultiLocation; + readonly type: 'SelfReserve' | 'ParachainReserve'; + } + + /** @name RococoParachainRuntimeRuntime (144) */ + type RococoParachainRuntimeRuntime = Null; + + /** @name PalletVcManagementEvent (145) */ + interface PalletVcManagementEvent extends Enum { + readonly isVcRequested: boolean; + readonly asVcRequested: { + readonly account: AccountId32; + readonly shard: H256; + readonly assertion: CorePrimitivesAssertion; + } & Struct; + readonly isVcDisabled: boolean; + readonly asVcDisabled: { + readonly account: AccountId32; + readonly index: H256; + } & Struct; + readonly isVcRevoked: boolean; + readonly asVcRevoked: { + readonly account: AccountId32; + readonly index: H256; + } & Struct; + readonly isVcIssued: boolean; + readonly asVcIssued: { + readonly account: AccountId32; + readonly assertion: CorePrimitivesAssertion; + readonly index: H256; + readonly vc: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isAdminChanged: boolean; + readonly asAdminChanged: { + readonly oldAdmin: Option; + readonly newAdmin: Option; + } & Struct; + readonly isSchemaIssued: boolean; + readonly asSchemaIssued: { + readonly account: AccountId32; + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isSchemaDisabled: boolean; + readonly asSchemaDisabled: { + readonly account: AccountId32; + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isSchemaActivated: boolean; + readonly asSchemaActivated: { + readonly account: AccountId32; + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isSchemaRevoked: boolean; + readonly asSchemaRevoked: { + readonly account: AccountId32; + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isRequestVCFailed: boolean; + readonly asRequestVCFailed: { + readonly account: Option; + readonly assertion: CorePrimitivesAssertion; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly isUnclassifiedError: boolean; + readonly asUnclassifiedError: { + readonly account: Option; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly isVcRegistryItemAdded: boolean; + readonly asVcRegistryItemAdded: { + readonly account: AccountId32; + readonly assertion: CorePrimitivesAssertion; + readonly index: H256; + } & Struct; + readonly isVcRegistryItemRemoved: boolean; + readonly asVcRegistryItemRemoved: { + readonly index: H256; + } & Struct; + readonly isVcRegistryCleared: boolean; + readonly type: + | 'VcRequested' + | 'VcDisabled' + | 'VcRevoked' + | 'VcIssued' + | 'AdminChanged' + | 'SchemaIssued' + | 'SchemaDisabled' + | 'SchemaActivated' + | 'SchemaRevoked' + | 'RequestVCFailed' + | 'UnclassifiedError' + | 'VcRegistryItemAdded' + | 'VcRegistryItemRemoved' + | 'VcRegistryCleared'; + } + + /** @name CorePrimitivesAssertion (146) */ + interface CorePrimitivesAssertion extends Enum { + readonly isA1: boolean; + readonly isA2: boolean; + readonly asA2: Bytes; + readonly isA3: boolean; + readonly asA3: ITuple<[Bytes, Bytes, Bytes]>; + readonly isA4: boolean; + readonly asA4: Bytes; + readonly isA5: boolean; + readonly asA5: Bytes; + readonly isA6: boolean; + readonly isA7: boolean; + readonly asA7: Bytes; + readonly isA8: boolean; + readonly asA8: Vec; + readonly isA9: boolean; + readonly isA10: boolean; + readonly asA10: Bytes; + readonly isA11: boolean; + readonly asA11: Bytes; + readonly isA13: boolean; + readonly asA13: u32; + readonly type: 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'A7' | 'A8' | 'A9' | 'A10' | 'A11' | 'A13'; + } + + /** @name CorePrimitivesAssertionIndexingNetwork (149) */ + interface CorePrimitivesAssertionIndexingNetwork extends Enum { + readonly isLitentry: boolean; + readonly isLitmus: boolean; + readonly isPolkadot: boolean; + readonly isKusama: boolean; + readonly isKhala: boolean; + readonly isEthereum: boolean; + readonly type: 'Litentry' | 'Litmus' | 'Polkadot' | 'Kusama' | 'Khala' | 'Ethereum'; + } + + /** @name PalletGroupEvent (151) */ + interface PalletGroupEvent extends Enum { + readonly isGroupMemberAdded: boolean; + readonly asGroupMemberAdded: AccountId32; + readonly isGroupMemberRemoved: boolean; + readonly asGroupMemberRemoved: AccountId32; + readonly type: 'GroupMemberAdded' | 'GroupMemberRemoved'; + } + + /** @name PalletTeerexEvent (153) */ + interface PalletTeerexEvent extends Enum { + readonly isAdminChanged: boolean; + readonly asAdminChanged: { + readonly oldAdmin: Option; + } & Struct; + readonly isAddedEnclave: boolean; + readonly asAddedEnclave: ITuple<[AccountId32, Bytes]>; + readonly isRemovedEnclave: boolean; + readonly asRemovedEnclave: AccountId32; + readonly isForwarded: boolean; + readonly asForwarded: H256; + readonly isShieldFunds: boolean; + readonly asShieldFunds: Bytes; + readonly isUnshieldedFunds: boolean; + readonly asUnshieldedFunds: AccountId32; + readonly isProcessedParentchainBlock: boolean; + readonly asProcessedParentchainBlock: ITuple<[AccountId32, H256, H256, u32]>; + readonly isSetHeartbeatTimeout: boolean; + readonly asSetHeartbeatTimeout: u64; + readonly isUpdatedScheduledEnclave: boolean; + readonly asUpdatedScheduledEnclave: ITuple<[u64, U8aFixed]>; + readonly isRemovedScheduledEnclave: boolean; + readonly asRemovedScheduledEnclave: u64; + readonly isPublishedHash: boolean; + readonly asPublishedHash: { + readonly mrEnclave: U8aFixed; + readonly hash_: H256; + readonly data: Bytes; + } & Struct; + readonly type: + | 'AdminChanged' + | 'AddedEnclave' + | 'RemovedEnclave' + | 'Forwarded' + | 'ShieldFunds' + | 'UnshieldedFunds' + | 'ProcessedParentchainBlock' + | 'SetHeartbeatTimeout' + | 'UpdatedScheduledEnclave' + | 'RemovedScheduledEnclave' + | 'PublishedHash'; + } + + /** @name PalletSidechainEvent (154) */ + interface PalletSidechainEvent extends Enum { + readonly isProposedSidechainBlock: boolean; + readonly asProposedSidechainBlock: ITuple<[AccountId32, H256]>; + readonly isFinalizedSidechainBlock: boolean; + readonly asFinalizedSidechainBlock: ITuple<[AccountId32, H256]>; + readonly type: 'ProposedSidechainBlock' | 'FinalizedSidechainBlock'; + } + + /** @name PalletTeeracleEvent (155) */ + interface PalletTeeracleEvent extends Enum { + readonly isExchangeRateUpdated: boolean; + readonly asExchangeRateUpdated: ITuple<[Bytes, Bytes, Option]>; + readonly isExchangeRateDeleted: boolean; + readonly asExchangeRateDeleted: ITuple<[Bytes, Bytes]>; + readonly isOracleUpdated: boolean; + readonly asOracleUpdated: ITuple<[Bytes, Bytes]>; + readonly isAddedToWhitelist: boolean; + readonly asAddedToWhitelist: ITuple<[Bytes, U8aFixed]>; + readonly isRemovedFromWhitelist: boolean; + readonly asRemovedFromWhitelist: ITuple<[Bytes, U8aFixed]>; + readonly type: + | 'ExchangeRateUpdated' + | 'ExchangeRateDeleted' + | 'OracleUpdated' + | 'AddedToWhitelist' + | 'RemovedFromWhitelist'; + } + + /** @name SubstrateFixedFixedU64 (157) */ + interface SubstrateFixedFixedU64 extends Struct { + readonly bits: u64; + } + + /** @name TypenumUIntUInt (162) */ + interface TypenumUIntUInt extends Struct { + readonly msb: TypenumUIntUTerm; + readonly lsb: TypenumBitB0; + } + + /** @name TypenumUIntUTerm (163) */ + interface TypenumUIntUTerm extends Struct { + readonly msb: TypenumUintUTerm; + readonly lsb: TypenumBitB1; + } + + /** @name TypenumUintUTerm (164) */ + type TypenumUintUTerm = Null; + + /** @name TypenumBitB1 (165) */ + type TypenumBitB1 = Null; + + /** @name TypenumBitB0 (166) */ + type TypenumBitB0 = Null; + + /** @name PalletIdentityManagementMockEvent (167) */ + interface PalletIdentityManagementMockEvent extends Enum { + readonly isDelegateeAdded: boolean; + readonly asDelegateeAdded: { + readonly account: AccountId32; + } & Struct; + readonly isDelegateeRemoved: boolean; + readonly asDelegateeRemoved: { + readonly account: AccountId32; + } & Struct; + readonly isCreateIdentityRequested: boolean; + readonly asCreateIdentityRequested: { + readonly shard: H256; + } & Struct; + readonly isRemoveIdentityRequested: boolean; + readonly asRemoveIdentityRequested: { + readonly shard: H256; + } & Struct; + readonly isVerifyIdentityRequested: boolean; + readonly asVerifyIdentityRequested: { + readonly shard: H256; + } & Struct; + readonly isSetUserShieldingKeyRequested: boolean; + readonly asSetUserShieldingKeyRequested: { + readonly shard: H256; + } & Struct; + readonly isUserShieldingKeySetPlain: boolean; + readonly asUserShieldingKeySetPlain: { + readonly account: AccountId32; + } & Struct; + readonly isUserShieldingKeySet: boolean; + readonly asUserShieldingKeySet: { + readonly account: AccountId32; + } & Struct; + readonly isIdentityCreatedPlain: boolean; + readonly asIdentityCreatedPlain: { + readonly account: AccountId32; + readonly identity: MockTeePrimitivesIdentity; + readonly code: U8aFixed; + readonly idGraph: Vec>; + } & Struct; + readonly isIdentityCreated: boolean; + readonly asIdentityCreated: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly code: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + } & Struct; + readonly isIdentityRemovedPlain: boolean; + readonly asIdentityRemovedPlain: { + readonly account: AccountId32; + readonly identity: MockTeePrimitivesIdentity; + readonly idGraph: Vec>; + } & Struct; + readonly isIdentityRemoved: boolean; + readonly asIdentityRemoved: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + } & Struct; + readonly isIdentityVerifiedPlain: boolean; + readonly asIdentityVerifiedPlain: { + readonly account: AccountId32; + readonly identity: MockTeePrimitivesIdentity; + readonly idGraph: Vec>; + } & Struct; + readonly isIdentityVerified: boolean; + readonly asIdentityVerified: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + } & Struct; + readonly isSomeError: boolean; + readonly asSomeError: { + readonly func: Bytes; + readonly error: Bytes; + } & Struct; + readonly type: + | 'DelegateeAdded' + | 'DelegateeRemoved' + | 'CreateIdentityRequested' + | 'RemoveIdentityRequested' + | 'VerifyIdentityRequested' + | 'SetUserShieldingKeyRequested' + | 'UserShieldingKeySetPlain' + | 'UserShieldingKeySet' + | 'IdentityCreatedPlain' + | 'IdentityCreated' + | 'IdentityRemovedPlain' + | 'IdentityRemoved' + | 'IdentityVerifiedPlain' + | 'IdentityVerified' + | 'SomeError'; + } + + /** @name MockTeePrimitivesIdentity (168) */ + interface MockTeePrimitivesIdentity extends Enum { + readonly isSubstrate: boolean; + readonly asSubstrate: { + readonly network: MockTeePrimitivesIdentitySubstrateNetwork; + readonly address: MockTeePrimitivesIdentityAddress32; + } & Struct; + readonly isEvm: boolean; + readonly asEvm: { + readonly network: MockTeePrimitivesIdentityEvmNetwork; + readonly address: MockTeePrimitivesIdentityAddress20; + } & Struct; + readonly isWeb2: boolean; + readonly asWeb2: { + readonly network: MockTeePrimitivesIdentityWeb2Network; + readonly address: Bytes; + } & Struct; + readonly type: 'Substrate' | 'Evm' | 'Web2'; + } + + /** @name MockTeePrimitivesIdentitySubstrateNetwork (169) */ + interface MockTeePrimitivesIdentitySubstrateNetwork extends Enum { + readonly isPolkadot: boolean; + readonly isKusama: boolean; + readonly isLitentry: boolean; + readonly isLitmus: boolean; + readonly isLitentryRococo: boolean; + readonly type: 'Polkadot' | 'Kusama' | 'Litentry' | 'Litmus' | 'LitentryRococo'; + } + + /** @name MockTeePrimitivesIdentityAddress32 (170) */ + interface MockTeePrimitivesIdentityAddress32 extends U8aFixed {} + + /** @name MockTeePrimitivesIdentityEvmNetwork (171) */ + interface MockTeePrimitivesIdentityEvmNetwork extends Enum { + readonly isEthereum: boolean; + readonly isBsc: boolean; + readonly type: 'Ethereum' | 'Bsc'; + } + + /** @name MockTeePrimitivesIdentityAddress20 (172) */ + interface MockTeePrimitivesIdentityAddress20 extends U8aFixed {} + + /** @name MockTeePrimitivesIdentityWeb2Network (173) */ + interface MockTeePrimitivesIdentityWeb2Network extends Enum { + readonly isTwitter: boolean; + readonly isDiscord: boolean; + readonly isGithub: boolean; + readonly type: 'Twitter' | 'Discord' | 'Github'; + } + + /** @name PalletIdentityManagementMockIdentityContext (176) */ + interface PalletIdentityManagementMockIdentityContext extends Struct { + readonly metadata: Option; + readonly creationRequestBlock: Option; + readonly verificationRequestBlock: Option; + readonly isVerified: bool; + } + + /** @name PalletSudoEvent (180) */ + interface PalletSudoEvent extends Enum { + readonly isSudid: boolean; + readonly asSudid: { + readonly sudoResult: Result; + } & Struct; + readonly isKeyChanged: boolean; + readonly asKeyChanged: { + readonly oldSudoer: Option; + } & Struct; + readonly isSudoAsDone: boolean; + readonly asSudoAsDone: { + readonly sudoResult: Result; + } & Struct; + readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone'; + } + + /** @name FrameSystemPhase (181) */ + interface FrameSystemPhase extends Enum { + readonly isApplyExtrinsic: boolean; + readonly asApplyExtrinsic: u32; + readonly isFinalization: boolean; + readonly isInitialization: boolean; + readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization'; + } + + /** @name FrameSystemLastRuntimeUpgradeInfo (184) */ + interface FrameSystemLastRuntimeUpgradeInfo extends Struct { + readonly specVersion: Compact; + readonly specName: Text; + } + + /** @name FrameSystemCall (186) */ + interface FrameSystemCall extends Enum { + readonly isRemark: boolean; + readonly asRemark: { + readonly remark: Bytes; + } & Struct; + readonly isSetHeapPages: boolean; + readonly asSetHeapPages: { + readonly pages: u64; + } & Struct; + readonly isSetCode: boolean; + readonly asSetCode: { + readonly code: Bytes; + } & Struct; + readonly isSetCodeWithoutChecks: boolean; + readonly asSetCodeWithoutChecks: { + readonly code: Bytes; + } & Struct; + readonly isSetStorage: boolean; + readonly asSetStorage: { + readonly items: Vec>; + } & Struct; + readonly isKillStorage: boolean; + readonly asKillStorage: { + readonly keys_: Vec; + } & Struct; + readonly isKillPrefix: boolean; + readonly asKillPrefix: { + readonly prefix: Bytes; + readonly subkeys: u32; + } & Struct; + readonly isRemarkWithEvent: boolean; + readonly asRemarkWithEvent: { + readonly remark: Bytes; + } & Struct; + readonly type: + | 'Remark' + | 'SetHeapPages' + | 'SetCode' + | 'SetCodeWithoutChecks' + | 'SetStorage' + | 'KillStorage' + | 'KillPrefix' + | 'RemarkWithEvent'; + } + + /** @name FrameSystemLimitsBlockWeights (190) */ + interface FrameSystemLimitsBlockWeights extends Struct { + readonly baseBlock: SpWeightsWeightV2Weight; + readonly maxBlock: SpWeightsWeightV2Weight; + readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; + } + + /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (191) */ + interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct { + readonly normal: FrameSystemLimitsWeightsPerClass; + readonly operational: FrameSystemLimitsWeightsPerClass; + readonly mandatory: FrameSystemLimitsWeightsPerClass; + } + + /** @name FrameSystemLimitsWeightsPerClass (192) */ + interface FrameSystemLimitsWeightsPerClass extends Struct { + readonly baseExtrinsic: SpWeightsWeightV2Weight; + readonly maxExtrinsic: Option; + readonly maxTotal: Option; + readonly reserved: Option; + } + + /** @name FrameSystemLimitsBlockLength (194) */ + interface FrameSystemLimitsBlockLength extends Struct { + readonly max: FrameSupportDispatchPerDispatchClassU32; + } + + /** @name FrameSupportDispatchPerDispatchClassU32 (195) */ + interface FrameSupportDispatchPerDispatchClassU32 extends Struct { + readonly normal: u32; + readonly operational: u32; + readonly mandatory: u32; + } + + /** @name SpWeightsRuntimeDbWeight (196) */ + interface SpWeightsRuntimeDbWeight extends Struct { + readonly read: u64; + readonly write: u64; + } + + /** @name SpVersionRuntimeVersion (197) */ + interface SpVersionRuntimeVersion extends Struct { + readonly specName: Text; + readonly implName: Text; + readonly authoringVersion: u32; + readonly specVersion: u32; + readonly implVersion: u32; + readonly apis: Vec>; + readonly transactionVersion: u32; + readonly stateVersion: u8; + } + + /** @name FrameSystemError (201) */ + interface FrameSystemError extends Enum { + readonly isInvalidSpecName: boolean; + readonly isSpecVersionNeedsToIncrease: boolean; + readonly isFailedToExtractRuntimeVersion: boolean; + readonly isNonDefaultComposite: boolean; + readonly isNonZeroRefCount: boolean; + readonly isCallFiltered: boolean; + readonly type: + | 'InvalidSpecName' + | 'SpecVersionNeedsToIncrease' + | 'FailedToExtractRuntimeVersion' + | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered'; } - /** @name PalletTimestampCall (72) */ - interface PalletTimestampCall extends Enum { - readonly isSet: boolean; - readonly asSet: { - readonly now: Compact; - } & Struct; - readonly type: 'Set'; + /** @name PalletTimestampCall (202) */ + interface PalletTimestampCall extends Enum { + readonly isSet: boolean; + readonly asSet: { + readonly now: Compact; + } & Struct; + readonly type: 'Set'; + } + + /** @name PalletSchedulerScheduled (205) */ + interface PalletSchedulerScheduled extends Struct { + readonly maybeId: Option; + readonly priority: u8; + readonly call: FrameSupportPreimagesBounded; + readonly maybePeriodic: Option>; + readonly origin: RococoParachainRuntimeOriginCaller; + } + + /** @name FrameSupportPreimagesBounded (206) */ + interface FrameSupportPreimagesBounded extends Enum { + readonly isLegacy: boolean; + readonly asLegacy: { + readonly hash_: H256; + } & Struct; + readonly isInline: boolean; + readonly asInline: Bytes; + readonly isLookup: boolean; + readonly asLookup: { + readonly hash_: H256; + readonly len: u32; + } & Struct; + readonly type: 'Legacy' | 'Inline' | 'Lookup'; + } + + /** @name PalletSchedulerCall (208) */ + interface PalletSchedulerCall extends Enum { + readonly isSchedule: boolean; + readonly asSchedule: { + readonly when: u32; + readonly maybePeriodic: Option>; + readonly priority: u8; + readonly call: Call; + } & Struct; + readonly isCancel: boolean; + readonly asCancel: { + readonly when: u32; + readonly index: u32; + } & Struct; + readonly isScheduleNamed: boolean; + readonly asScheduleNamed: { + readonly id: U8aFixed; + readonly when: u32; + readonly maybePeriodic: Option>; + readonly priority: u8; + readonly call: Call; + } & Struct; + readonly isCancelNamed: boolean; + readonly asCancelNamed: { + readonly id: U8aFixed; + } & Struct; + readonly isScheduleAfter: boolean; + readonly asScheduleAfter: { + readonly after: u32; + readonly maybePeriodic: Option>; + readonly priority: u8; + readonly call: Call; + } & Struct; + readonly isScheduleNamedAfter: boolean; + readonly asScheduleNamedAfter: { + readonly id: U8aFixed; + readonly after: u32; + readonly maybePeriodic: Option>; + readonly priority: u8; + readonly call: Call; + } & Struct; + readonly type: 'Schedule' | 'Cancel' | 'ScheduleNamed' | 'CancelNamed' | 'ScheduleAfter' | 'ScheduleNamedAfter'; + } + + /** @name PalletUtilityCall (210) */ + interface PalletUtilityCall extends Enum { + readonly isBatch: boolean; + readonly asBatch: { + readonly calls: Vec; + } & Struct; + readonly isAsDerivative: boolean; + readonly asAsDerivative: { + readonly index: u16; + readonly call: Call; + } & Struct; + readonly isBatchAll: boolean; + readonly asBatchAll: { + readonly calls: Vec; + } & Struct; + readonly isDispatchAs: boolean; + readonly asDispatchAs: { + readonly asOrigin: RococoParachainRuntimeOriginCaller; + readonly call: Call; + } & Struct; + readonly isForceBatch: boolean; + readonly asForceBatch: { + readonly calls: Vec; + } & Struct; + readonly isWithWeight: boolean; + readonly asWithWeight: { + readonly call: Call; + readonly weight: SpWeightsWeightV2Weight; + } & Struct; + readonly type: 'Batch' | 'AsDerivative' | 'BatchAll' | 'DispatchAs' | 'ForceBatch' | 'WithWeight'; + } + + /** @name RococoParachainRuntimeOriginCaller (212) */ + interface RococoParachainRuntimeOriginCaller extends Enum { + readonly isSystem: boolean; + readonly asSystem: FrameSupportDispatchRawOrigin; + readonly isVoid: boolean; + readonly isCouncil: boolean; + readonly asCouncil: PalletCollectiveRawOrigin; + readonly isTechnicalCommittee: boolean; + readonly asTechnicalCommittee: PalletCollectiveRawOrigin; + readonly isPolkadotXcm: boolean; + readonly asPolkadotXcm: PalletXcmOrigin; + readonly isCumulusXcm: boolean; + readonly asCumulusXcm: CumulusPalletXcmOrigin; + readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'PolkadotXcm' | 'CumulusXcm'; + } + + /** @name FrameSupportDispatchRawOrigin (213) */ + interface FrameSupportDispatchRawOrigin extends Enum { + readonly isRoot: boolean; + readonly isSigned: boolean; + readonly asSigned: AccountId32; + readonly isNone: boolean; + readonly type: 'Root' | 'Signed' | 'None'; + } + + /** @name PalletCollectiveRawOrigin (214) */ + interface PalletCollectiveRawOrigin extends Enum { + readonly isMembers: boolean; + readonly asMembers: ITuple<[u32, u32]>; + readonly isMember: boolean; + readonly asMember: AccountId32; + readonly isPhantom: boolean; + readonly type: 'Members' | 'Member' | 'Phantom'; + } + + /** @name PalletXcmOrigin (216) */ + interface PalletXcmOrigin extends Enum { + readonly isXcm: boolean; + readonly asXcm: XcmV3MultiLocation; + readonly isResponse: boolean; + readonly asResponse: XcmV3MultiLocation; + readonly type: 'Xcm' | 'Response'; + } + + /** @name CumulusPalletXcmOrigin (217) */ + interface CumulusPalletXcmOrigin extends Enum { + readonly isRelay: boolean; + readonly isSiblingParachain: boolean; + readonly asSiblingParachain: u32; + readonly type: 'Relay' | 'SiblingParachain'; + } + + /** @name SpCoreVoid (218) */ + type SpCoreVoid = Null; + + /** @name PalletMultisigCall (219) */ + interface PalletMultisigCall extends Enum { + readonly isAsMultiThreshold1: boolean; + readonly asAsMultiThreshold1: { + readonly otherSignatories: Vec; + readonly call: Call; + } & Struct; + readonly isAsMulti: boolean; + readonly asAsMulti: { + readonly threshold: u16; + readonly otherSignatories: Vec; + readonly maybeTimepoint: Option; + readonly call: Call; + readonly maxWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isApproveAsMulti: boolean; + readonly asApproveAsMulti: { + readonly threshold: u16; + readonly otherSignatories: Vec; + readonly maybeTimepoint: Option; + readonly callHash: U8aFixed; + readonly maxWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isCancelAsMulti: boolean; + readonly asCancelAsMulti: { + readonly threshold: u16; + readonly otherSignatories: Vec; + readonly timepoint: PalletMultisigTimepoint; + readonly callHash: U8aFixed; + } & Struct; + readonly type: 'AsMultiThreshold1' | 'AsMulti' | 'ApproveAsMulti' | 'CancelAsMulti'; + } + + /** @name PalletProxyCall (222) */ + interface PalletProxyCall extends Enum { + readonly isProxy: boolean; + readonly asProxy: { + readonly real: MultiAddress; + readonly forceProxyType: Option; + readonly call: Call; + } & Struct; + readonly isAddProxy: boolean; + readonly asAddProxy: { + readonly delegate: MultiAddress; + readonly proxyType: RococoParachainRuntimeProxyType; + readonly delay: u32; + } & Struct; + readonly isRemoveProxy: boolean; + readonly asRemoveProxy: { + readonly delegate: MultiAddress; + readonly proxyType: RococoParachainRuntimeProxyType; + readonly delay: u32; + } & Struct; + readonly isRemoveProxies: boolean; + readonly isCreatePure: boolean; + readonly asCreatePure: { + readonly proxyType: RococoParachainRuntimeProxyType; + readonly delay: u32; + readonly index: u16; + } & Struct; + readonly isKillPure: boolean; + readonly asKillPure: { + readonly spawner: MultiAddress; + readonly proxyType: RococoParachainRuntimeProxyType; + readonly index: u16; + readonly height: Compact; + readonly extIndex: Compact; + } & Struct; + readonly isAnnounce: boolean; + readonly asAnnounce: { + readonly real: MultiAddress; + readonly callHash: H256; + } & Struct; + readonly isRemoveAnnouncement: boolean; + readonly asRemoveAnnouncement: { + readonly real: MultiAddress; + readonly callHash: H256; + } & Struct; + readonly isRejectAnnouncement: boolean; + readonly asRejectAnnouncement: { + readonly delegate: MultiAddress; + readonly callHash: H256; + } & Struct; + readonly isProxyAnnounced: boolean; + readonly asProxyAnnounced: { + readonly delegate: MultiAddress; + readonly real: MultiAddress; + readonly forceProxyType: Option; + readonly call: Call; + } & Struct; + readonly type: + | 'Proxy' + | 'AddProxy' + | 'RemoveProxy' + | 'RemoveProxies' + | 'CreatePure' + | 'KillPure' + | 'Announce' + | 'RemoveAnnouncement' + | 'RejectAnnouncement' + | 'ProxyAnnounced'; + } + + /** @name PalletPreimageCall (226) */ + interface PalletPreimageCall extends Enum { + readonly isNotePreimage: boolean; + readonly asNotePreimage: { + readonly bytes: Bytes; + } & Struct; + readonly isUnnotePreimage: boolean; + readonly asUnnotePreimage: { + readonly hash_: H256; + } & Struct; + readonly isRequestPreimage: boolean; + readonly asRequestPreimage: { + readonly hash_: H256; + } & Struct; + readonly isUnrequestPreimage: boolean; + readonly asUnrequestPreimage: { + readonly hash_: H256; + } & Struct; + readonly type: 'NotePreimage' | 'UnnotePreimage' | 'RequestPreimage' | 'UnrequestPreimage'; + } + + /** @name PalletBalancesCall (227) */ + interface PalletBalancesCall extends Enum { + readonly isTransfer: boolean; + readonly asTransfer: { + readonly dest: MultiAddress; + readonly value: Compact; + } & Struct; + readonly isSetBalance: boolean; + readonly asSetBalance: { + readonly who: MultiAddress; + readonly newFree: Compact; + readonly newReserved: Compact; + } & Struct; + readonly isForceTransfer: boolean; + readonly asForceTransfer: { + readonly source: MultiAddress; + readonly dest: MultiAddress; + readonly value: Compact; + } & Struct; + readonly isTransferKeepAlive: boolean; + readonly asTransferKeepAlive: { + readonly dest: MultiAddress; + readonly value: Compact; + } & Struct; + readonly isTransferAll: boolean; + readonly asTransferAll: { + readonly dest: MultiAddress; + readonly keepAlive: bool; + } & Struct; + readonly isForceUnreserve: boolean; + readonly asForceUnreserve: { + readonly who: MultiAddress; + readonly amount: u128; + } & Struct; + readonly type: + | 'Transfer' + | 'SetBalance' + | 'ForceTransfer' + | 'TransferKeepAlive' + | 'TransferAll' + | 'ForceUnreserve'; + } + + /** @name PalletVestingCall (228) */ + interface PalletVestingCall extends Enum { + readonly isVest: boolean; + readonly isVestOther: boolean; + readonly asVestOther: { + readonly target: MultiAddress; + } & Struct; + readonly isVestedTransfer: boolean; + readonly asVestedTransfer: { + readonly target: MultiAddress; + readonly schedule: PalletVestingVestingInfo; + } & Struct; + readonly isForceVestedTransfer: boolean; + readonly asForceVestedTransfer: { + readonly source: MultiAddress; + readonly target: MultiAddress; + readonly schedule: PalletVestingVestingInfo; + } & Struct; + readonly isMergeSchedules: boolean; + readonly asMergeSchedules: { + readonly schedule1Index: u32; + readonly schedule2Index: u32; + } & Struct; + readonly type: 'Vest' | 'VestOther' | 'VestedTransfer' | 'ForceVestedTransfer' | 'MergeSchedules'; + } + + /** @name PalletVestingVestingInfo (229) */ + interface PalletVestingVestingInfo extends Struct { + readonly locked: u128; + readonly perBlock: u128; + readonly startingBlock: u32; + } + + /** @name PalletTreasuryCall (230) */ + interface PalletTreasuryCall extends Enum { + readonly isProposeSpend: boolean; + readonly asProposeSpend: { + readonly value: Compact; + readonly beneficiary: MultiAddress; + } & Struct; + readonly isRejectProposal: boolean; + readonly asRejectProposal: { + readonly proposalId: Compact; + } & Struct; + readonly isApproveProposal: boolean; + readonly asApproveProposal: { + readonly proposalId: Compact; + } & Struct; + readonly isSpend: boolean; + readonly asSpend: { + readonly amount: Compact; + readonly beneficiary: MultiAddress; + } & Struct; + readonly isRemoveApproval: boolean; + readonly asRemoveApproval: { + readonly proposalId: Compact; + } & Struct; + readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval'; + } + + /** @name PalletDemocracyCall (231) */ + interface PalletDemocracyCall extends Enum { + readonly isPropose: boolean; + readonly asPropose: { + readonly proposal: FrameSupportPreimagesBounded; + readonly value: Compact; + } & Struct; + readonly isSecond: boolean; + readonly asSecond: { + readonly proposal: Compact; + } & Struct; + readonly isVote: boolean; + readonly asVote: { + readonly refIndex: Compact; + readonly vote: PalletDemocracyVoteAccountVote; + } & Struct; + readonly isEmergencyCancel: boolean; + readonly asEmergencyCancel: { + readonly refIndex: u32; + } & Struct; + readonly isExternalPropose: boolean; + readonly asExternalPropose: { + readonly proposal: FrameSupportPreimagesBounded; + } & Struct; + readonly isExternalProposeMajority: boolean; + readonly asExternalProposeMajority: { + readonly proposal: FrameSupportPreimagesBounded; + } & Struct; + readonly isExternalProposeDefault: boolean; + readonly asExternalProposeDefault: { + readonly proposal: FrameSupportPreimagesBounded; + } & Struct; + readonly isFastTrack: boolean; + readonly asFastTrack: { + readonly proposalHash: H256; + readonly votingPeriod: u32; + readonly delay: u32; + } & Struct; + readonly isVetoExternal: boolean; + readonly asVetoExternal: { + readonly proposalHash: H256; + } & Struct; + readonly isCancelReferendum: boolean; + readonly asCancelReferendum: { + readonly refIndex: Compact; + } & Struct; + readonly isDelegate: boolean; + readonly asDelegate: { + readonly to: MultiAddress; + readonly conviction: PalletDemocracyConviction; + readonly balance: u128; + } & Struct; + readonly isUndelegate: boolean; + readonly isClearPublicProposals: boolean; + readonly isUnlock: boolean; + readonly asUnlock: { + readonly target: MultiAddress; + } & Struct; + readonly isRemoveVote: boolean; + readonly asRemoveVote: { + readonly index: u32; + } & Struct; + readonly isRemoveOtherVote: boolean; + readonly asRemoveOtherVote: { + readonly target: MultiAddress; + readonly index: u32; + } & Struct; + readonly isBlacklist: boolean; + readonly asBlacklist: { + readonly proposalHash: H256; + readonly maybeRefIndex: Option; + } & Struct; + readonly isCancelProposal: boolean; + readonly asCancelProposal: { + readonly propIndex: Compact; + } & Struct; + readonly isSetMetadata: boolean; + readonly asSetMetadata: { + readonly owner: PalletDemocracyMetadataOwner; + readonly maybeHash: Option; + } & Struct; + readonly type: + | 'Propose' + | 'Second' + | 'Vote' + | 'EmergencyCancel' + | 'ExternalPropose' + | 'ExternalProposeMajority' + | 'ExternalProposeDefault' + | 'FastTrack' + | 'VetoExternal' + | 'CancelReferendum' + | 'Delegate' + | 'Undelegate' + | 'ClearPublicProposals' + | 'Unlock' + | 'RemoveVote' + | 'RemoveOtherVote' + | 'Blacklist' + | 'CancelProposal' + | 'SetMetadata'; + } + + /** @name PalletDemocracyConviction (232) */ + interface PalletDemocracyConviction extends Enum { + readonly isNone: boolean; + readonly isLocked1x: boolean; + readonly isLocked2x: boolean; + readonly isLocked3x: boolean; + readonly isLocked4x: boolean; + readonly isLocked5x: boolean; + readonly isLocked6x: boolean; + readonly type: 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x'; + } + + /** @name PalletCollectiveCall (234) */ + interface PalletCollectiveCall extends Enum { + readonly isSetMembers: boolean; + readonly asSetMembers: { + readonly newMembers: Vec; + readonly prime: Option; + readonly oldCount: u32; + } & Struct; + readonly isExecute: boolean; + readonly asExecute: { + readonly proposal: Call; + readonly lengthBound: Compact; + } & Struct; + readonly isPropose: boolean; + readonly asPropose: { + readonly threshold: Compact; + readonly proposal: Call; + readonly lengthBound: Compact; + } & Struct; + readonly isVote: boolean; + readonly asVote: { + readonly proposal: H256; + readonly index: Compact; + readonly approve: bool; + } & Struct; + readonly isCloseOldWeight: boolean; + readonly asCloseOldWeight: { + readonly proposalHash: H256; + readonly index: Compact; + readonly proposalWeightBound: Compact; + readonly lengthBound: Compact; + } & Struct; + readonly isDisapproveProposal: boolean; + readonly asDisapproveProposal: { + readonly proposalHash: H256; + } & Struct; + readonly isClose: boolean; + readonly asClose: { + readonly proposalHash: H256; + readonly index: Compact; + readonly proposalWeightBound: SpWeightsWeightV2Weight; + readonly lengthBound: Compact; + } & Struct; + readonly type: + | 'SetMembers' + | 'Execute' + | 'Propose' + | 'Vote' + | 'CloseOldWeight' + | 'DisapproveProposal' + | 'Close'; + } + + /** @name PalletMembershipCall (237) */ + interface PalletMembershipCall extends Enum { + readonly isAddMember: boolean; + readonly asAddMember: { + readonly who: MultiAddress; + } & Struct; + readonly isRemoveMember: boolean; + readonly asRemoveMember: { + readonly who: MultiAddress; + } & Struct; + readonly isSwapMember: boolean; + readonly asSwapMember: { + readonly remove: MultiAddress; + readonly add: MultiAddress; + } & Struct; + readonly isResetMembers: boolean; + readonly asResetMembers: { + readonly members: Vec; + } & Struct; + readonly isChangeKey: boolean; + readonly asChangeKey: { + readonly new_: MultiAddress; + } & Struct; + readonly isSetPrime: boolean; + readonly asSetPrime: { + readonly who: MultiAddress; + } & Struct; + readonly isClearPrime: boolean; + readonly type: + | 'AddMember' + | 'RemoveMember' + | 'SwapMember' + | 'ResetMembers' + | 'ChangeKey' + | 'SetPrime' + | 'ClearPrime'; + } + + /** @name PalletBountiesCall (240) */ + interface PalletBountiesCall extends Enum { + readonly isProposeBounty: boolean; + readonly asProposeBounty: { + readonly value: Compact; + readonly description: Bytes; + } & Struct; + readonly isApproveBounty: boolean; + readonly asApproveBounty: { + readonly bountyId: Compact; + } & Struct; + readonly isProposeCurator: boolean; + readonly asProposeCurator: { + readonly bountyId: Compact; + readonly curator: MultiAddress; + readonly fee: Compact; + } & Struct; + readonly isUnassignCurator: boolean; + readonly asUnassignCurator: { + readonly bountyId: Compact; + } & Struct; + readonly isAcceptCurator: boolean; + readonly asAcceptCurator: { + readonly bountyId: Compact; + } & Struct; + readonly isAwardBounty: boolean; + readonly asAwardBounty: { + readonly bountyId: Compact; + readonly beneficiary: MultiAddress; + } & Struct; + readonly isClaimBounty: boolean; + readonly asClaimBounty: { + readonly bountyId: Compact; + } & Struct; + readonly isCloseBounty: boolean; + readonly asCloseBounty: { + readonly bountyId: Compact; + } & Struct; + readonly isExtendBountyExpiry: boolean; + readonly asExtendBountyExpiry: { + readonly bountyId: Compact; + readonly remark: Bytes; + } & Struct; + readonly type: + | 'ProposeBounty' + | 'ApproveBounty' + | 'ProposeCurator' + | 'UnassignCurator' + | 'AcceptCurator' + | 'AwardBounty' + | 'ClaimBounty' + | 'CloseBounty' + | 'ExtendBountyExpiry'; + } + + /** @name PalletTipsCall (241) */ + interface PalletTipsCall extends Enum { + readonly isReportAwesome: boolean; + readonly asReportAwesome: { + readonly reason: Bytes; + readonly who: MultiAddress; + } & Struct; + readonly isRetractTip: boolean; + readonly asRetractTip: { + readonly hash_: H256; + } & Struct; + readonly isTipNew: boolean; + readonly asTipNew: { + readonly reason: Bytes; + readonly who: MultiAddress; + readonly tipValue: Compact; + } & Struct; + readonly isTip: boolean; + readonly asTip: { + readonly hash_: H256; + readonly tipValue: Compact; + } & Struct; + readonly isCloseTip: boolean; + readonly asCloseTip: { + readonly hash_: H256; + } & Struct; + readonly isSlashTip: boolean; + readonly asSlashTip: { + readonly hash_: H256; + } & Struct; + readonly type: 'ReportAwesome' | 'RetractTip' | 'TipNew' | 'Tip' | 'CloseTip' | 'SlashTip'; + } + + /** @name PalletIdentityCall (242) */ + interface PalletIdentityCall extends Enum { + readonly isAddRegistrar: boolean; + readonly asAddRegistrar: { + readonly account: MultiAddress; + } & Struct; + readonly isSetIdentity: boolean; + readonly asSetIdentity: { + readonly info: PalletIdentityIdentityInfo; + } & Struct; + readonly isSetSubs: boolean; + readonly asSetSubs: { + readonly subs: Vec>; + } & Struct; + readonly isClearIdentity: boolean; + readonly isRequestJudgement: boolean; + readonly asRequestJudgement: { + readonly regIndex: Compact; + readonly maxFee: Compact; + } & Struct; + readonly isCancelRequest: boolean; + readonly asCancelRequest: { + readonly regIndex: u32; + } & Struct; + readonly isSetFee: boolean; + readonly asSetFee: { + readonly index: Compact; + readonly fee: Compact; + } & Struct; + readonly isSetAccountId: boolean; + readonly asSetAccountId: { + readonly index: Compact; + readonly new_: MultiAddress; + } & Struct; + readonly isSetFields: boolean; + readonly asSetFields: { + readonly index: Compact; + readonly fields: PalletIdentityBitFlags; + } & Struct; + readonly isProvideJudgement: boolean; + readonly asProvideJudgement: { + readonly regIndex: Compact; + readonly target: MultiAddress; + readonly judgement: PalletIdentityJudgement; + readonly identity: H256; + } & Struct; + readonly isKillIdentity: boolean; + readonly asKillIdentity: { + readonly target: MultiAddress; + } & Struct; + readonly isAddSub: boolean; + readonly asAddSub: { + readonly sub: MultiAddress; + readonly data: Data; + } & Struct; + readonly isRenameSub: boolean; + readonly asRenameSub: { + readonly sub: MultiAddress; + readonly data: Data; + } & Struct; + readonly isRemoveSub: boolean; + readonly asRemoveSub: { + readonly sub: MultiAddress; + } & Struct; + readonly isQuitSub: boolean; + readonly type: + | 'AddRegistrar' + | 'SetIdentity' + | 'SetSubs' + | 'ClearIdentity' + | 'RequestJudgement' + | 'CancelRequest' + | 'SetFee' + | 'SetAccountId' + | 'SetFields' + | 'ProvideJudgement' + | 'KillIdentity' + | 'AddSub' + | 'RenameSub' + | 'RemoveSub' + | 'QuitSub'; + } + + /** @name PalletIdentityIdentityInfo (243) */ + interface PalletIdentityIdentityInfo extends Struct { + readonly additional: Vec>; + readonly display: Data; + readonly legal: Data; + readonly web: Data; + readonly riot: Data; + readonly email: Data; + readonly pgpFingerprint: Option; + readonly image: Data; + readonly twitter: Data; + } + + /** @name PalletIdentityBitFlags (278) */ + interface PalletIdentityBitFlags extends Set { + readonly isDisplay: boolean; + readonly isLegal: boolean; + readonly isWeb: boolean; + readonly isRiot: boolean; + readonly isEmail: boolean; + readonly isPgpFingerprint: boolean; + readonly isImage: boolean; + readonly isTwitter: boolean; + } + + /** @name PalletIdentityIdentityField (279) */ + interface PalletIdentityIdentityField extends Enum { + readonly isDisplay: boolean; + readonly isLegal: boolean; + readonly isWeb: boolean; + readonly isRiot: boolean; + readonly isEmail: boolean; + readonly isPgpFingerprint: boolean; + readonly isImage: boolean; + readonly isTwitter: boolean; + readonly type: 'Display' | 'Legal' | 'Web' | 'Riot' | 'Email' | 'PgpFingerprint' | 'Image' | 'Twitter'; + } + + /** @name PalletIdentityJudgement (280) */ + interface PalletIdentityJudgement extends Enum { + readonly isUnknown: boolean; + readonly isFeePaid: boolean; + readonly asFeePaid: u128; + readonly isReasonable: boolean; + readonly isKnownGood: boolean; + readonly isOutOfDate: boolean; + readonly isLowQuality: boolean; + readonly isErroneous: boolean; + readonly type: 'Unknown' | 'FeePaid' | 'Reasonable' | 'KnownGood' | 'OutOfDate' | 'LowQuality' | 'Erroneous'; + } + + /** @name CumulusPalletParachainSystemCall (281) */ + interface CumulusPalletParachainSystemCall extends Enum { + readonly isSetValidationData: boolean; + readonly asSetValidationData: { + readonly data: CumulusPrimitivesParachainInherentParachainInherentData; + } & Struct; + readonly isSudoSendUpwardMessage: boolean; + readonly asSudoSendUpwardMessage: { + readonly message: Bytes; + } & Struct; + readonly isAuthorizeUpgrade: boolean; + readonly asAuthorizeUpgrade: { + readonly codeHash: H256; + } & Struct; + readonly isEnactAuthorizedUpgrade: boolean; + readonly asEnactAuthorizedUpgrade: { + readonly code: Bytes; + } & Struct; + readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade'; + } + + /** @name CumulusPrimitivesParachainInherentParachainInherentData (282) */ + interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct { + readonly validationData: PolkadotPrimitivesV2PersistedValidationData; + readonly relayChainState: SpTrieStorageProof; + readonly downwardMessages: Vec; + readonly horizontalMessages: BTreeMap>; + } + + /** @name PolkadotPrimitivesV2PersistedValidationData (283) */ + interface PolkadotPrimitivesV2PersistedValidationData extends Struct { + readonly parentHead: Bytes; + readonly relayParentNumber: u32; + readonly relayParentStorageRoot: H256; + readonly maxPovSize: u32; + } + + /** @name SpTrieStorageProof (285) */ + interface SpTrieStorageProof extends Struct { + readonly trieNodes: BTreeSet; + } + + /** @name PolkadotCorePrimitivesInboundDownwardMessage (288) */ + interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct { + readonly sentAt: u32; + readonly msg: Bytes; + } + + /** @name PolkadotCorePrimitivesInboundHrmpMessage (291) */ + interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct { + readonly sentAt: u32; + readonly data: Bytes; + } + + /** @name ParachainInfoCall (294) */ + type ParachainInfoCall = Null; + + /** @name PalletSessionCall (295) */ + interface PalletSessionCall extends Enum { + readonly isSetKeys: boolean; + readonly asSetKeys: { + readonly keys_: RococoParachainRuntimeSessionKeys; + readonly proof: Bytes; + } & Struct; + readonly isPurgeKeys: boolean; + readonly type: 'SetKeys' | 'PurgeKeys'; + } + + /** @name RococoParachainRuntimeSessionKeys (296) */ + interface RococoParachainRuntimeSessionKeys extends Struct { + readonly aura: SpConsensusAuraSr25519AppSr25519Public; + } + + /** @name SpConsensusAuraSr25519AppSr25519Public (297) */ + interface SpConsensusAuraSr25519AppSr25519Public extends SpCoreSr25519Public {} + + /** @name SpCoreSr25519Public (298) */ + interface SpCoreSr25519Public extends U8aFixed {} + + /** @name PalletParachainStakingCall (299) */ + interface PalletParachainStakingCall extends Enum { + readonly isSetStakingExpectations: boolean; + readonly asSetStakingExpectations: { + readonly expectations: { + readonly min: u128; + readonly ideal: u128; + readonly max: u128; + } & Struct; + } & Struct; + readonly isSetInflation: boolean; + readonly asSetInflation: { + readonly schedule: { + readonly min: Perbill; + readonly ideal: Perbill; + readonly max: Perbill; + } & Struct; + } & Struct; + readonly isSetParachainBondAccount: boolean; + readonly asSetParachainBondAccount: { + readonly new_: AccountId32; + } & Struct; + readonly isSetParachainBondReservePercent: boolean; + readonly asSetParachainBondReservePercent: { + readonly new_: Percent; + } & Struct; + readonly isSetTotalSelected: boolean; + readonly asSetTotalSelected: { + readonly new_: u32; + } & Struct; + readonly isSetCollatorCommission: boolean; + readonly asSetCollatorCommission: { + readonly new_: Perbill; + } & Struct; + readonly isSetBlocksPerRound: boolean; + readonly asSetBlocksPerRound: { + readonly new_: u32; + } & Struct; + readonly isAddCandidatesWhitelist: boolean; + readonly asAddCandidatesWhitelist: { + readonly candidate: AccountId32; + } & Struct; + readonly isRemoveCandidatesWhitelist: boolean; + readonly asRemoveCandidatesWhitelist: { + readonly candidate: AccountId32; + } & Struct; + readonly isJoinCandidates: boolean; + readonly asJoinCandidates: { + readonly bond: u128; + } & Struct; + readonly isScheduleLeaveCandidates: boolean; + readonly isExecuteLeaveCandidates: boolean; + readonly asExecuteLeaveCandidates: { + readonly candidate: AccountId32; + } & Struct; + readonly isCancelLeaveCandidates: boolean; + readonly isGoOffline: boolean; + readonly isGoOnline: boolean; + readonly isCandidateBondMore: boolean; + readonly asCandidateBondMore: { + readonly more: u128; + } & Struct; + readonly isScheduleCandidateBondLess: boolean; + readonly asScheduleCandidateBondLess: { + readonly less: u128; + } & Struct; + readonly isExecuteCandidateBondLess: boolean; + readonly asExecuteCandidateBondLess: { + readonly candidate: AccountId32; + } & Struct; + readonly isCancelCandidateBondLess: boolean; + readonly isDelegate: boolean; + readonly asDelegate: { + readonly candidate: AccountId32; + readonly amount: u128; + } & Struct; + readonly isDelegateWithAutoCompound: boolean; + readonly asDelegateWithAutoCompound: { + readonly candidate: AccountId32; + readonly amount: u128; + readonly autoCompound: Percent; + } & Struct; + readonly isScheduleLeaveDelegators: boolean; + readonly isExecuteLeaveDelegators: boolean; + readonly asExecuteLeaveDelegators: { + readonly delegator: AccountId32; + } & Struct; + readonly isCancelLeaveDelegators: boolean; + readonly isScheduleRevokeDelegation: boolean; + readonly asScheduleRevokeDelegation: { + readonly collator: AccountId32; + } & Struct; + readonly isDelegatorBondMore: boolean; + readonly asDelegatorBondMore: { + readonly candidate: AccountId32; + readonly more: u128; + } & Struct; + readonly isScheduleDelegatorBondLess: boolean; + readonly asScheduleDelegatorBondLess: { + readonly candidate: AccountId32; + readonly less: u128; + } & Struct; + readonly isExecuteDelegationRequest: boolean; + readonly asExecuteDelegationRequest: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + } & Struct; + readonly isCancelDelegationRequest: boolean; + readonly asCancelDelegationRequest: { + readonly candidate: AccountId32; + } & Struct; + readonly isSetAutoCompound: boolean; + readonly asSetAutoCompound: { + readonly candidate: AccountId32; + readonly value: Percent; + } & Struct; + readonly type: + | 'SetStakingExpectations' + | 'SetInflation' + | 'SetParachainBondAccount' + | 'SetParachainBondReservePercent' + | 'SetTotalSelected' + | 'SetCollatorCommission' + | 'SetBlocksPerRound' + | 'AddCandidatesWhitelist' + | 'RemoveCandidatesWhitelist' + | 'JoinCandidates' + | 'ScheduleLeaveCandidates' + | 'ExecuteLeaveCandidates' + | 'CancelLeaveCandidates' + | 'GoOffline' + | 'GoOnline' + | 'CandidateBondMore' + | 'ScheduleCandidateBondLess' + | 'ExecuteCandidateBondLess' + | 'CancelCandidateBondLess' + | 'Delegate' + | 'DelegateWithAutoCompound' + | 'ScheduleLeaveDelegators' + | 'ExecuteLeaveDelegators' + | 'CancelLeaveDelegators' + | 'ScheduleRevokeDelegation' + | 'DelegatorBondMore' + | 'ScheduleDelegatorBondLess' + | 'ExecuteDelegationRequest' + | 'CancelDelegationRequest' + | 'SetAutoCompound'; + } + + /** @name CumulusPalletXcmpQueueCall (302) */ + interface CumulusPalletXcmpQueueCall extends Enum { + readonly isServiceOverweight: boolean; + readonly asServiceOverweight: { + readonly index: u64; + readonly weightLimit: SpWeightsWeightV2Weight; + } & Struct; + readonly isSuspendXcmExecution: boolean; + readonly isResumeXcmExecution: boolean; + readonly isUpdateSuspendThreshold: boolean; + readonly asUpdateSuspendThreshold: { + readonly new_: u32; + } & Struct; + readonly isUpdateDropThreshold: boolean; + readonly asUpdateDropThreshold: { + readonly new_: u32; + } & Struct; + readonly isUpdateResumeThreshold: boolean; + readonly asUpdateResumeThreshold: { + readonly new_: u32; + } & Struct; + readonly isUpdateThresholdWeight: boolean; + readonly asUpdateThresholdWeight: { + readonly new_: SpWeightsWeightV2Weight; + } & Struct; + readonly isUpdateWeightRestrictDecay: boolean; + readonly asUpdateWeightRestrictDecay: { + readonly new_: SpWeightsWeightV2Weight; + } & Struct; + readonly isUpdateXcmpMaxIndividualWeight: boolean; + readonly asUpdateXcmpMaxIndividualWeight: { + readonly new_: SpWeightsWeightV2Weight; + } & Struct; + readonly type: + | 'ServiceOverweight' + | 'SuspendXcmExecution' + | 'ResumeXcmExecution' + | 'UpdateSuspendThreshold' + | 'UpdateDropThreshold' + | 'UpdateResumeThreshold' + | 'UpdateThresholdWeight' + | 'UpdateWeightRestrictDecay' + | 'UpdateXcmpMaxIndividualWeight'; + } + + /** @name PalletXcmCall (303) */ + interface PalletXcmCall extends Enum { + readonly isSend: boolean; + readonly asSend: { + readonly dest: XcmVersionedMultiLocation; + readonly message: XcmVersionedXcm; + } & Struct; + readonly isTeleportAssets: boolean; + readonly asTeleportAssets: { + readonly dest: XcmVersionedMultiLocation; + readonly beneficiary: XcmVersionedMultiLocation; + readonly assets: XcmVersionedMultiAssets; + readonly feeAssetItem: u32; + } & Struct; + readonly isReserveTransferAssets: boolean; + readonly asReserveTransferAssets: { + readonly dest: XcmVersionedMultiLocation; + readonly beneficiary: XcmVersionedMultiLocation; + readonly assets: XcmVersionedMultiAssets; + readonly feeAssetItem: u32; + } & Struct; + readonly isExecute: boolean; + readonly asExecute: { + readonly message: XcmVersionedXcm; + readonly maxWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isForceXcmVersion: boolean; + readonly asForceXcmVersion: { + readonly location: XcmV3MultiLocation; + readonly xcmVersion: u32; + } & Struct; + readonly isForceDefaultXcmVersion: boolean; + readonly asForceDefaultXcmVersion: { + readonly maybeXcmVersion: Option; + } & Struct; + readonly isForceSubscribeVersionNotify: boolean; + readonly asForceSubscribeVersionNotify: { + readonly location: XcmVersionedMultiLocation; + } & Struct; + readonly isForceUnsubscribeVersionNotify: boolean; + readonly asForceUnsubscribeVersionNotify: { + readonly location: XcmVersionedMultiLocation; + } & Struct; + readonly isLimitedReserveTransferAssets: boolean; + readonly asLimitedReserveTransferAssets: { + readonly dest: XcmVersionedMultiLocation; + readonly beneficiary: XcmVersionedMultiLocation; + readonly assets: XcmVersionedMultiAssets; + readonly feeAssetItem: u32; + readonly weightLimit: XcmV3WeightLimit; + } & Struct; + readonly isLimitedTeleportAssets: boolean; + readonly asLimitedTeleportAssets: { + readonly dest: XcmVersionedMultiLocation; + readonly beneficiary: XcmVersionedMultiLocation; + readonly assets: XcmVersionedMultiAssets; + readonly feeAssetItem: u32; + readonly weightLimit: XcmV3WeightLimit; + } & Struct; + readonly type: + | 'Send' + | 'TeleportAssets' + | 'ReserveTransferAssets' + | 'Execute' + | 'ForceXcmVersion' + | 'ForceDefaultXcmVersion' + | 'ForceSubscribeVersionNotify' + | 'ForceUnsubscribeVersionNotify' + | 'LimitedReserveTransferAssets' + | 'LimitedTeleportAssets'; + } + + /** @name XcmVersionedXcm (304) */ + interface XcmVersionedXcm extends Enum { + readonly isV2: boolean; + readonly asV2: XcmV2Xcm; + readonly isV3: boolean; + readonly asV3: XcmV3Xcm; + readonly type: 'V2' | 'V3'; + } + + /** @name XcmV2Xcm (305) */ + interface XcmV2Xcm extends Vec {} + + /** @name XcmV2Instruction (307) */ + interface XcmV2Instruction extends Enum { + readonly isWithdrawAsset: boolean; + readonly asWithdrawAsset: XcmV2MultiassetMultiAssets; + readonly isReserveAssetDeposited: boolean; + readonly asReserveAssetDeposited: XcmV2MultiassetMultiAssets; + readonly isReceiveTeleportedAsset: boolean; + readonly asReceiveTeleportedAsset: XcmV2MultiassetMultiAssets; + readonly isQueryResponse: boolean; + readonly asQueryResponse: { + readonly queryId: Compact; + readonly response: XcmV2Response; + readonly maxWeight: Compact; + } & Struct; + readonly isTransferAsset: boolean; + readonly asTransferAsset: { + readonly assets: XcmV2MultiassetMultiAssets; + readonly beneficiary: XcmV2MultiLocation; + } & Struct; + readonly isTransferReserveAsset: boolean; + readonly asTransferReserveAsset: { + readonly assets: XcmV2MultiassetMultiAssets; + readonly dest: XcmV2MultiLocation; + readonly xcm: XcmV2Xcm; + } & Struct; + readonly isTransact: boolean; + readonly asTransact: { + readonly originType: XcmV2OriginKind; + readonly requireWeightAtMost: Compact; + readonly call: XcmDoubleEncoded; + } & Struct; + readonly isHrmpNewChannelOpenRequest: boolean; + readonly asHrmpNewChannelOpenRequest: { + readonly sender: Compact; + readonly maxMessageSize: Compact; + readonly maxCapacity: Compact; + } & Struct; + readonly isHrmpChannelAccepted: boolean; + readonly asHrmpChannelAccepted: { + readonly recipient: Compact; + } & Struct; + readonly isHrmpChannelClosing: boolean; + readonly asHrmpChannelClosing: { + readonly initiator: Compact; + readonly sender: Compact; + readonly recipient: Compact; + } & Struct; + readonly isClearOrigin: boolean; + readonly isDescendOrigin: boolean; + readonly asDescendOrigin: XcmV2MultilocationJunctions; + readonly isReportError: boolean; + readonly asReportError: { + readonly queryId: Compact; + readonly dest: XcmV2MultiLocation; + readonly maxResponseWeight: Compact; + } & Struct; + readonly isDepositAsset: boolean; + readonly asDepositAsset: { + readonly assets: XcmV2MultiassetMultiAssetFilter; + readonly maxAssets: Compact; + readonly beneficiary: XcmV2MultiLocation; + } & Struct; + readonly isDepositReserveAsset: boolean; + readonly asDepositReserveAsset: { + readonly assets: XcmV2MultiassetMultiAssetFilter; + readonly maxAssets: Compact; + readonly dest: XcmV2MultiLocation; + readonly xcm: XcmV2Xcm; + } & Struct; + readonly isExchangeAsset: boolean; + readonly asExchangeAsset: { + readonly give: XcmV2MultiassetMultiAssetFilter; + readonly receive: XcmV2MultiassetMultiAssets; + } & Struct; + readonly isInitiateReserveWithdraw: boolean; + readonly asInitiateReserveWithdraw: { + readonly assets: XcmV2MultiassetMultiAssetFilter; + readonly reserve: XcmV2MultiLocation; + readonly xcm: XcmV2Xcm; + } & Struct; + readonly isInitiateTeleport: boolean; + readonly asInitiateTeleport: { + readonly assets: XcmV2MultiassetMultiAssetFilter; + readonly dest: XcmV2MultiLocation; + readonly xcm: XcmV2Xcm; + } & Struct; + readonly isQueryHolding: boolean; + readonly asQueryHolding: { + readonly queryId: Compact; + readonly dest: XcmV2MultiLocation; + readonly assets: XcmV2MultiassetMultiAssetFilter; + readonly maxResponseWeight: Compact; + } & Struct; + readonly isBuyExecution: boolean; + readonly asBuyExecution: { + readonly fees: XcmV2MultiAsset; + readonly weightLimit: XcmV2WeightLimit; + } & Struct; + readonly isRefundSurplus: boolean; + readonly isSetErrorHandler: boolean; + readonly asSetErrorHandler: XcmV2Xcm; + readonly isSetAppendix: boolean; + readonly asSetAppendix: XcmV2Xcm; + readonly isClearError: boolean; + readonly isClaimAsset: boolean; + readonly asClaimAsset: { + readonly assets: XcmV2MultiassetMultiAssets; + readonly ticket: XcmV2MultiLocation; + } & Struct; + readonly isTrap: boolean; + readonly asTrap: Compact; + readonly isSubscribeVersion: boolean; + readonly asSubscribeVersion: { + readonly queryId: Compact; + readonly maxResponseWeight: Compact; + } & Struct; + readonly isUnsubscribeVersion: boolean; + readonly type: + | 'WithdrawAsset' + | 'ReserveAssetDeposited' + | 'ReceiveTeleportedAsset' + | 'QueryResponse' + | 'TransferAsset' + | 'TransferReserveAsset' + | 'Transact' + | 'HrmpNewChannelOpenRequest' + | 'HrmpChannelAccepted' + | 'HrmpChannelClosing' + | 'ClearOrigin' + | 'DescendOrigin' + | 'ReportError' + | 'DepositAsset' + | 'DepositReserveAsset' + | 'ExchangeAsset' + | 'InitiateReserveWithdraw' + | 'InitiateTeleport' + | 'QueryHolding' + | 'BuyExecution' + | 'RefundSurplus' + | 'SetErrorHandler' + | 'SetAppendix' + | 'ClearError' + | 'ClaimAsset' + | 'Trap' + | 'SubscribeVersion' + | 'UnsubscribeVersion'; + } + + /** @name XcmV2Response (308) */ + interface XcmV2Response extends Enum { + readonly isNull: boolean; + readonly isAssets: boolean; + readonly asAssets: XcmV2MultiassetMultiAssets; + readonly isExecutionResult: boolean; + readonly asExecutionResult: Option>; + readonly isVersion: boolean; + readonly asVersion: u32; + readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version'; + } + + /** @name XcmV2TraitsError (311) */ + interface XcmV2TraitsError extends Enum { + readonly isOverflow: boolean; + readonly isUnimplemented: boolean; + readonly isUntrustedReserveLocation: boolean; + readonly isUntrustedTeleportLocation: boolean; + readonly isMultiLocationFull: boolean; + readonly isMultiLocationNotInvertible: boolean; + readonly isBadOrigin: boolean; + readonly isInvalidLocation: boolean; + readonly isAssetNotFound: boolean; + readonly isFailedToTransactAsset: boolean; + readonly isNotWithdrawable: boolean; + readonly isLocationCannotHold: boolean; + readonly isExceedsMaxMessageSize: boolean; + readonly isDestinationUnsupported: boolean; + readonly isTransport: boolean; + readonly isUnroutable: boolean; + readonly isUnknownClaim: boolean; + readonly isFailedToDecode: boolean; + readonly isMaxWeightInvalid: boolean; + readonly isNotHoldingFees: boolean; + readonly isTooExpensive: boolean; + readonly isTrap: boolean; + readonly asTrap: u64; + readonly isUnhandledXcmVersion: boolean; + readonly isWeightLimitReached: boolean; + readonly asWeightLimitReached: u64; + readonly isBarrier: boolean; + readonly isWeightNotComputable: boolean; + readonly type: + | 'Overflow' + | 'Unimplemented' + | 'UntrustedReserveLocation' + | 'UntrustedTeleportLocation' + | 'MultiLocationFull' + | 'MultiLocationNotInvertible' + | 'BadOrigin' + | 'InvalidLocation' + | 'AssetNotFound' + | 'FailedToTransactAsset' + | 'NotWithdrawable' + | 'LocationCannotHold' + | 'ExceedsMaxMessageSize' + | 'DestinationUnsupported' + | 'Transport' + | 'Unroutable' + | 'UnknownClaim' + | 'FailedToDecode' + | 'MaxWeightInvalid' + | 'NotHoldingFees' + | 'TooExpensive' + | 'Trap' + | 'UnhandledXcmVersion' + | 'WeightLimitReached' + | 'Barrier' + | 'WeightNotComputable'; + } + + /** @name XcmV2MultiassetMultiAssetFilter (312) */ + interface XcmV2MultiassetMultiAssetFilter extends Enum { + readonly isDefinite: boolean; + readonly asDefinite: XcmV2MultiassetMultiAssets; + readonly isWild: boolean; + readonly asWild: XcmV2MultiassetWildMultiAsset; + readonly type: 'Definite' | 'Wild'; + } + + /** @name XcmV2MultiassetWildMultiAsset (313) */ + interface XcmV2MultiassetWildMultiAsset extends Enum { + readonly isAll: boolean; + readonly isAllOf: boolean; + readonly asAllOf: { + readonly id: XcmV2MultiassetAssetId; + readonly fun: XcmV2MultiassetWildFungibility; + } & Struct; + readonly type: 'All' | 'AllOf'; + } + + /** @name XcmV2MultiassetWildFungibility (314) */ + interface XcmV2MultiassetWildFungibility extends Enum { + readonly isFungible: boolean; + readonly isNonFungible: boolean; + readonly type: 'Fungible' | 'NonFungible'; + } + + /** @name XcmV2WeightLimit (315) */ + interface XcmV2WeightLimit extends Enum { + readonly isUnlimited: boolean; + readonly isLimited: boolean; + readonly asLimited: Compact; + readonly type: 'Unlimited' | 'Limited'; + } + + /** @name CumulusPalletXcmCall (324) */ + type CumulusPalletXcmCall = Null; + + /** @name CumulusPalletDmpQueueCall (325) */ + interface CumulusPalletDmpQueueCall extends Enum { + readonly isServiceOverweight: boolean; + readonly asServiceOverweight: { + readonly index: u64; + readonly weightLimit: SpWeightsWeightV2Weight; + } & Struct; + readonly type: 'ServiceOverweight'; + } + + /** @name OrmlXtokensModuleCall (326) */ + interface OrmlXtokensModuleCall extends Enum { + readonly isTransfer: boolean; + readonly asTransfer: { + readonly currencyId: RuntimeCommonXcmImplCurrencyId; + readonly amount: u128; + readonly dest: XcmVersionedMultiLocation; + readonly destWeightLimit: XcmV3WeightLimit; + } & Struct; + readonly isTransferMultiasset: boolean; + readonly asTransferMultiasset: { + readonly asset: XcmVersionedMultiAsset; + readonly dest: XcmVersionedMultiLocation; + readonly destWeightLimit: XcmV3WeightLimit; + } & Struct; + readonly isTransferWithFee: boolean; + readonly asTransferWithFee: { + readonly currencyId: RuntimeCommonXcmImplCurrencyId; + readonly amount: u128; + readonly fee: u128; + readonly dest: XcmVersionedMultiLocation; + readonly destWeightLimit: XcmV3WeightLimit; + } & Struct; + readonly isTransferMultiassetWithFee: boolean; + readonly asTransferMultiassetWithFee: { + readonly asset: XcmVersionedMultiAsset; + readonly fee: XcmVersionedMultiAsset; + readonly dest: XcmVersionedMultiLocation; + readonly destWeightLimit: XcmV3WeightLimit; + } & Struct; + readonly isTransferMulticurrencies: boolean; + readonly asTransferMulticurrencies: { + readonly currencies: Vec>; + readonly feeItem: u32; + readonly dest: XcmVersionedMultiLocation; + readonly destWeightLimit: XcmV3WeightLimit; + } & Struct; + readonly isTransferMultiassets: boolean; + readonly asTransferMultiassets: { + readonly assets: XcmVersionedMultiAssets; + readonly feeItem: u32; + readonly dest: XcmVersionedMultiLocation; + readonly destWeightLimit: XcmV3WeightLimit; + } & Struct; + readonly type: + | 'Transfer' + | 'TransferMultiasset' + | 'TransferWithFee' + | 'TransferMultiassetWithFee' + | 'TransferMulticurrencies' + | 'TransferMultiassets'; + } + + /** @name XcmVersionedMultiAsset (327) */ + interface XcmVersionedMultiAsset extends Enum { + readonly isV2: boolean; + readonly asV2: XcmV2MultiAsset; + readonly isV3: boolean; + readonly asV3: XcmV3MultiAsset; + readonly type: 'V2' | 'V3'; + } + + /** @name OrmlTokensModuleCall (330) */ + interface OrmlTokensModuleCall extends Enum { + readonly isTransfer: boolean; + readonly asTransfer: { + readonly dest: MultiAddress; + readonly currencyId: u128; + readonly amount: Compact; + } & Struct; + readonly isTransferAll: boolean; + readonly asTransferAll: { + readonly dest: MultiAddress; + readonly currencyId: u128; + readonly keepAlive: bool; + } & Struct; + readonly isTransferKeepAlive: boolean; + readonly asTransferKeepAlive: { + readonly dest: MultiAddress; + readonly currencyId: u128; + readonly amount: Compact; + } & Struct; + readonly isForceTransfer: boolean; + readonly asForceTransfer: { + readonly source: MultiAddress; + readonly dest: MultiAddress; + readonly currencyId: u128; + readonly amount: Compact; + } & Struct; + readonly isSetBalance: boolean; + readonly asSetBalance: { + readonly who: MultiAddress; + readonly currencyId: u128; + readonly newFree: Compact; + readonly newReserved: Compact; + } & Struct; + readonly type: 'Transfer' | 'TransferAll' | 'TransferKeepAlive' | 'ForceTransfer' | 'SetBalance'; + } + + /** @name PalletBridgeCall (331) */ + interface PalletBridgeCall extends Enum { + readonly isSetThreshold: boolean; + readonly asSetThreshold: { + readonly threshold: u32; + } & Struct; + readonly isSetResource: boolean; + readonly asSetResource: { + readonly id: U8aFixed; + readonly method: Bytes; + } & Struct; + readonly isRemoveResource: boolean; + readonly asRemoveResource: { + readonly id: U8aFixed; + } & Struct; + readonly isWhitelistChain: boolean; + readonly asWhitelistChain: { + readonly id: u8; + } & Struct; + readonly isAddRelayer: boolean; + readonly asAddRelayer: { + readonly v: AccountId32; + } & Struct; + readonly isRemoveRelayer: boolean; + readonly asRemoveRelayer: { + readonly v: AccountId32; + } & Struct; + readonly isUpdateFee: boolean; + readonly asUpdateFee: { + readonly destId: u8; + readonly fee: u128; + } & Struct; + readonly isAcknowledgeProposal: boolean; + readonly asAcknowledgeProposal: { + readonly nonce: u64; + readonly srcId: u8; + readonly rId: U8aFixed; + readonly call: Call; + } & Struct; + readonly isRejectProposal: boolean; + readonly asRejectProposal: { + readonly nonce: u64; + readonly srcId: u8; + readonly rId: U8aFixed; + readonly call: Call; + } & Struct; + readonly isEvalVoteState: boolean; + readonly asEvalVoteState: { + readonly nonce: u64; + readonly srcId: u8; + readonly prop: Call; + } & Struct; + readonly type: + | 'SetThreshold' + | 'SetResource' + | 'RemoveResource' + | 'WhitelistChain' + | 'AddRelayer' + | 'RemoveRelayer' + | 'UpdateFee' + | 'AcknowledgeProposal' + | 'RejectProposal' + | 'EvalVoteState'; + } + + /** @name PalletBridgeTransferCall (332) */ + interface PalletBridgeTransferCall extends Enum { + readonly isTransferNative: boolean; + readonly asTransferNative: { + readonly amount: u128; + readonly recipient: Bytes; + readonly destId: u8; + } & Struct; + readonly isTransfer: boolean; + readonly asTransfer: { + readonly to: AccountId32; + readonly amount: u128; + readonly rid: U8aFixed; + } & Struct; + readonly isSetMaximumIssuance: boolean; + readonly asSetMaximumIssuance: { + readonly maximumIssuance: u128; + } & Struct; + readonly isSetExternalBalances: boolean; + readonly asSetExternalBalances: { + readonly externalBalances: u128; + } & Struct; + readonly type: 'TransferNative' | 'Transfer' | 'SetMaximumIssuance' | 'SetExternalBalances'; + } + + /** @name PalletDrop3Call (333) */ + interface PalletDrop3Call extends Enum { + readonly isSetAdmin: boolean; + readonly asSetAdmin: { + readonly new_: AccountId32; + } & Struct; + readonly isApproveRewardPool: boolean; + readonly asApproveRewardPool: { + readonly id: u64; + } & Struct; + readonly isRejectRewardPool: boolean; + readonly asRejectRewardPool: { + readonly id: u64; + } & Struct; + readonly isStartRewardPool: boolean; + readonly asStartRewardPool: { + readonly id: u64; + } & Struct; + readonly isStopRewardPool: boolean; + readonly asStopRewardPool: { + readonly id: u64; + } & Struct; + readonly isCloseRewardPool: boolean; + readonly asCloseRewardPool: { + readonly id: u64; + } & Struct; + readonly isProposeRewardPool: boolean; + readonly asProposeRewardPool: { + readonly name: Bytes; + readonly total: u128; + readonly startAt: u32; + readonly endAt: u32; + } & Struct; + readonly isSendReward: boolean; + readonly asSendReward: { + readonly id: u64; + readonly to: AccountId32; + readonly amount: u128; + } & Struct; + readonly type: + | 'SetAdmin' + | 'ApproveRewardPool' + | 'RejectRewardPool' + | 'StartRewardPool' + | 'StopRewardPool' + | 'CloseRewardPool' + | 'ProposeRewardPool' + | 'SendReward'; + } + + /** @name PalletExtrinsicFilterCall (334) */ + interface PalletExtrinsicFilterCall extends Enum { + readonly isSetMode: boolean; + readonly asSetMode: { + readonly mode: PalletExtrinsicFilterOperationalMode; + } & Struct; + readonly isBlockExtrinsics: boolean; + readonly asBlockExtrinsics: { + readonly palletNameBytes: Bytes; + readonly functionNameBytes: Option; + } & Struct; + readonly isUnblockExtrinsics: boolean; + readonly asUnblockExtrinsics: { + readonly palletNameBytes: Bytes; + readonly functionNameBytes: Option; + } & Struct; + readonly type: 'SetMode' | 'BlockExtrinsics' | 'UnblockExtrinsics'; + } + + /** @name PalletIdentityManagementCall (335) */ + interface PalletIdentityManagementCall extends Enum { + readonly isAddDelegatee: boolean; + readonly asAddDelegatee: { + readonly account: AccountId32; + } & Struct; + readonly isRemoveDelegatee: boolean; + readonly asRemoveDelegatee: { + readonly account: AccountId32; + } & Struct; + readonly isSetUserShieldingKey: boolean; + readonly asSetUserShieldingKey: { + readonly shard: H256; + readonly encryptedKey: Bytes; + } & Struct; + readonly isCreateIdentity: boolean; + readonly asCreateIdentity: { + readonly shard: H256; + readonly user: AccountId32; + readonly encryptedIdentity: Bytes; + readonly encryptedMetadata: Option; + } & Struct; + readonly isRemoveIdentity: boolean; + readonly asRemoveIdentity: { + readonly shard: H256; + readonly encryptedIdentity: Bytes; + } & Struct; + readonly isVerifyIdentity: boolean; + readonly asVerifyIdentity: { + readonly shard: H256; + readonly encryptedIdentity: Bytes; + readonly encryptedValidationData: Bytes; + } & Struct; + readonly isUserShieldingKeySet: boolean; + readonly asUserShieldingKeySet: { + readonly account: AccountId32; + readonly idGraph: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isIdentityCreated: boolean; + readonly asIdentityCreated: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly code: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isIdentityRemoved: boolean; + readonly asIdentityRemoved: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isIdentityVerified: boolean; + readonly asIdentityVerified: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isSomeError: boolean; + readonly asSomeError: { + readonly account: Option; + readonly error: CorePrimitivesErrorImpError; + readonly reqExtHash: H256; + } & Struct; + readonly type: + | 'AddDelegatee' + | 'RemoveDelegatee' + | 'SetUserShieldingKey' + | 'CreateIdentity' + | 'RemoveIdentity' + | 'VerifyIdentity' + | 'UserShieldingKeySet' + | 'IdentityCreated' + | 'IdentityRemoved' + | 'IdentityVerified' + | 'SomeError'; + } + + /** @name CorePrimitivesErrorImpError (336) */ + interface CorePrimitivesErrorImpError extends Enum { + readonly isSetUserShieldingKeyFailed: boolean; + readonly asSetUserShieldingKeyFailed: CorePrimitivesErrorErrorDetail; + readonly isCreateIdentityFailed: boolean; + readonly asCreateIdentityFailed: CorePrimitivesErrorErrorDetail; + readonly isRemoveIdentityFailed: boolean; + readonly asRemoveIdentityFailed: CorePrimitivesErrorErrorDetail; + readonly isVerifyIdentityFailed: boolean; + readonly asVerifyIdentityFailed: CorePrimitivesErrorErrorDetail; + readonly isImportScheduledEnclaveFailed: boolean; + readonly isUnclassifiedError: boolean; + readonly asUnclassifiedError: CorePrimitivesErrorErrorDetail; + readonly type: + | 'SetUserShieldingKeyFailed' + | 'CreateIdentityFailed' + | 'RemoveIdentityFailed' + | 'VerifyIdentityFailed' + | 'ImportScheduledEnclaveFailed' + | 'UnclassifiedError'; + } + + /** @name PalletAssetManagerCall (337) */ + interface PalletAssetManagerCall extends Enum { + readonly isRegisterForeignAssetType: boolean; + readonly asRegisterForeignAssetType: { + readonly assetType: RuntimeCommonXcmImplCurrencyId; + readonly metadata: PalletAssetManagerAssetMetadata; + } & Struct; + readonly isUpdateForeignAssetMetadata: boolean; + readonly asUpdateForeignAssetMetadata: { + readonly assetId: u128; + readonly metadata: PalletAssetManagerAssetMetadata; + } & Struct; + readonly isSetAssetUnitsPerSecond: boolean; + readonly asSetAssetUnitsPerSecond: { + readonly assetId: u128; + readonly unitsPerSecond: u128; + } & Struct; + readonly isAddAssetType: boolean; + readonly asAddAssetType: { + readonly assetId: u128; + readonly newAssetType: RuntimeCommonXcmImplCurrencyId; + } & Struct; + readonly isRemoveAssetType: boolean; + readonly asRemoveAssetType: { + readonly assetType: RuntimeCommonXcmImplCurrencyId; + readonly newDefaultAssetType: Option; + } & Struct; + readonly type: + | 'RegisterForeignAssetType' + | 'UpdateForeignAssetMetadata' + | 'SetAssetUnitsPerSecond' + | 'AddAssetType' + | 'RemoveAssetType'; + } + + /** @name PalletVcManagementCall (339) */ + interface PalletVcManagementCall extends Enum { + readonly isRequestVc: boolean; + readonly asRequestVc: { + readonly shard: H256; + readonly assertion: CorePrimitivesAssertion; + } & Struct; + readonly isDisableVc: boolean; + readonly asDisableVc: { + readonly index: H256; + } & Struct; + readonly isRevokeVc: boolean; + readonly asRevokeVc: { + readonly index: H256; + } & Struct; + readonly isSetAdmin: boolean; + readonly asSetAdmin: { + readonly new_: AccountId32; + } & Struct; + readonly isAddSchema: boolean; + readonly asAddSchema: { + readonly shard: H256; + readonly id: Bytes; + readonly content: Bytes; + } & Struct; + readonly isDisableSchema: boolean; + readonly asDisableSchema: { + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isActivateSchema: boolean; + readonly asActivateSchema: { + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isRevokeSchema: boolean; + readonly asRevokeSchema: { + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isAddVcRegistryItem: boolean; + readonly asAddVcRegistryItem: { + readonly index: H256; + readonly subject: AccountId32; + readonly assertion: CorePrimitivesAssertion; + readonly hash_: H256; + } & Struct; + readonly isRemoveVcRegistryItem: boolean; + readonly asRemoveVcRegistryItem: { + readonly index: H256; + } & Struct; + readonly isClearVcRegistry: boolean; + readonly isVcIssued: boolean; + readonly asVcIssued: { + readonly account: AccountId32; + readonly assertion: CorePrimitivesAssertion; + readonly index: H256; + readonly hash_: H256; + readonly vc: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isSomeError: boolean; + readonly asSomeError: { + readonly account: Option; + readonly error: CorePrimitivesErrorVcmpError; + readonly reqExtHash: H256; + } & Struct; + readonly type: + | 'RequestVc' + | 'DisableVc' + | 'RevokeVc' + | 'SetAdmin' + | 'AddSchema' + | 'DisableSchema' + | 'ActivateSchema' + | 'RevokeSchema' + | 'AddVcRegistryItem' + | 'RemoveVcRegistryItem' + | 'ClearVcRegistry' + | 'VcIssued' + | 'SomeError'; + } + + /** @name CorePrimitivesErrorVcmpError (340) */ + interface CorePrimitivesErrorVcmpError extends Enum { + readonly isRequestVCFailed: boolean; + readonly asRequestVCFailed: ITuple<[CorePrimitivesAssertion, CorePrimitivesErrorErrorDetail]>; + readonly isUnclassifiedError: boolean; + readonly asUnclassifiedError: CorePrimitivesErrorErrorDetail; + readonly type: 'RequestVCFailed' | 'UnclassifiedError'; + } + + /** @name PalletGroupCall (341) */ + interface PalletGroupCall extends Enum { + readonly isAddGroupMember: boolean; + readonly asAddGroupMember: { + readonly v: AccountId32; + } & Struct; + readonly isBatchAddGroupMembers: boolean; + readonly asBatchAddGroupMembers: { + readonly vs: Vec; + } & Struct; + readonly isRemoveGroupMember: boolean; + readonly asRemoveGroupMember: { + readonly v: AccountId32; + } & Struct; + readonly isBatchRemoveGroupMembers: boolean; + readonly asBatchRemoveGroupMembers: { + readonly vs: Vec; + } & Struct; + readonly isSwitchGroupControlOn: boolean; + readonly isSwitchGroupControlOff: boolean; + readonly type: + | 'AddGroupMember' + | 'BatchAddGroupMembers' + | 'RemoveGroupMember' + | 'BatchRemoveGroupMembers' + | 'SwitchGroupControlOn' + | 'SwitchGroupControlOff'; + } + + /** @name PalletTeerexCall (343) */ + interface PalletTeerexCall extends Enum { + readonly isRegisterEnclave: boolean; + readonly asRegisterEnclave: { + readonly raReport: Bytes; + readonly workerUrl: Bytes; + readonly shieldingKey: Option; + readonly vcPubkey: Option; + } & Struct; + readonly isUnregisterEnclave: boolean; + readonly isCallWorker: boolean; + readonly asCallWorker: { + readonly request: TeerexPrimitivesRequest; + } & Struct; + readonly isConfirmProcessedParentchainBlock: boolean; + readonly asConfirmProcessedParentchainBlock: { + readonly blockHash: H256; + readonly blockNumber: u32; + readonly trustedCallsMerkleRoot: H256; + } & Struct; + readonly isShieldFunds: boolean; + readonly asShieldFunds: { + readonly incognitoAccountEncrypted: Bytes; + readonly amount: u128; + readonly bondingAccount: AccountId32; + } & Struct; + readonly isUnshieldFunds: boolean; + readonly asUnshieldFunds: { + readonly publicAccount: AccountId32; + readonly amount: u128; + readonly bondingAccount: AccountId32; + readonly callHash: H256; + } & Struct; + readonly isSetHeartbeatTimeout: boolean; + readonly asSetHeartbeatTimeout: { + readonly timeout: u64; + } & Struct; + readonly isRegisterDcapEnclave: boolean; + readonly asRegisterDcapEnclave: { + readonly dcapQuote: Bytes; + readonly workerUrl: Bytes; + } & Struct; + readonly isUpdateScheduledEnclave: boolean; + readonly asUpdateScheduledEnclave: { + readonly sidechainBlockNumber: u64; + readonly mrEnclave: U8aFixed; + } & Struct; + readonly isRegisterQuotingEnclave: boolean; + readonly asRegisterQuotingEnclave: { + readonly enclaveIdentity: Bytes; + readonly signature: Bytes; + readonly certificateChain: Bytes; + } & Struct; + readonly isRemoveScheduledEnclave: boolean; + readonly asRemoveScheduledEnclave: { + readonly sidechainBlockNumber: u64; + } & Struct; + readonly isRegisterTcbInfo: boolean; + readonly asRegisterTcbInfo: { + readonly tcbInfo: Bytes; + readonly signature: Bytes; + readonly certificateChain: Bytes; + } & Struct; + readonly isPublishHash: boolean; + readonly asPublishHash: { + readonly hash_: H256; + readonly extraTopics: Vec; + readonly data: Bytes; + } & Struct; + readonly isSetAdmin: boolean; + readonly asSetAdmin: { + readonly new_: AccountId32; + } & Struct; + readonly type: + | 'RegisterEnclave' + | 'UnregisterEnclave' + | 'CallWorker' + | 'ConfirmProcessedParentchainBlock' + | 'ShieldFunds' + | 'UnshieldFunds' + | 'SetHeartbeatTimeout' + | 'RegisterDcapEnclave' + | 'UpdateScheduledEnclave' + | 'RegisterQuotingEnclave' + | 'RemoveScheduledEnclave' + | 'RegisterTcbInfo' + | 'PublishHash' + | 'SetAdmin'; + } + + /** @name TeerexPrimitivesRequest (344) */ + interface TeerexPrimitivesRequest extends Struct { + readonly shard: H256; + readonly cyphertext: Bytes; + } + + /** @name PalletSidechainCall (345) */ + interface PalletSidechainCall extends Enum { + readonly isConfirmImportedSidechainBlock: boolean; + readonly asConfirmImportedSidechainBlock: { + readonly shardId: H256; + readonly blockNumber: u64; + readonly nextFinalizationCandidateBlockNumber: u64; + readonly blockHeaderHash: H256; + } & Struct; + readonly type: 'ConfirmImportedSidechainBlock'; + } + + /** @name PalletTeeracleCall (346) */ + interface PalletTeeracleCall extends Enum { + readonly isAddToWhitelist: boolean; + readonly asAddToWhitelist: { + readonly dataSource: Bytes; + readonly mrenclave: U8aFixed; + } & Struct; + readonly isRemoveFromWhitelist: boolean; + readonly asRemoveFromWhitelist: { + readonly dataSource: Bytes; + readonly mrenclave: U8aFixed; + } & Struct; + readonly isUpdateOracle: boolean; + readonly asUpdateOracle: { + readonly oracleName: Bytes; + readonly dataSource: Bytes; + readonly newBlob: Bytes; + } & Struct; + readonly isUpdateExchangeRate: boolean; + readonly asUpdateExchangeRate: { + readonly dataSource: Bytes; + readonly tradingPair: Bytes; + readonly newValue: Option; + } & Struct; + readonly type: 'AddToWhitelist' | 'RemoveFromWhitelist' | 'UpdateOracle' | 'UpdateExchangeRate'; + } + + /** @name PalletIdentityManagementMockCall (348) */ + interface PalletIdentityManagementMockCall extends Enum { + readonly isAddDelegatee: boolean; + readonly asAddDelegatee: { + readonly account: AccountId32; + } & Struct; + readonly isRemoveDelegatee: boolean; + readonly asRemoveDelegatee: { + readonly account: AccountId32; + } & Struct; + readonly isSetUserShieldingKey: boolean; + readonly asSetUserShieldingKey: { + readonly shard: H256; + readonly encryptedKey: Bytes; + } & Struct; + readonly isCreateIdentity: boolean; + readonly asCreateIdentity: { + readonly shard: H256; + readonly user: AccountId32; + readonly encryptedIdentity: Bytes; + readonly encryptedMetadata: Option; + } & Struct; + readonly isRemoveIdentity: boolean; + readonly asRemoveIdentity: { + readonly shard: H256; + readonly encryptedIdentity: Bytes; + } & Struct; + readonly isVerifyIdentity: boolean; + readonly asVerifyIdentity: { + readonly shard: H256; + readonly encryptedIdentity: Bytes; + readonly encryptedValidationData: Bytes; + } & Struct; + readonly isUserShieldingKeySet: boolean; + readonly asUserShieldingKeySet: { + readonly account: AccountId32; + } & Struct; + readonly isIdentityCreated: boolean; + readonly asIdentityCreated: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly code: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + } & Struct; + readonly isIdentityRemoved: boolean; + readonly asIdentityRemoved: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + } & Struct; + readonly isIdentityVerified: boolean; + readonly asIdentityVerified: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + } & Struct; + readonly isSomeError: boolean; + readonly asSomeError: { + readonly func: Bytes; + readonly error: Bytes; + } & Struct; + readonly type: + | 'AddDelegatee' + | 'RemoveDelegatee' + | 'SetUserShieldingKey' + | 'CreateIdentity' + | 'RemoveIdentity' + | 'VerifyIdentity' + | 'UserShieldingKeySet' + | 'IdentityCreated' + | 'IdentityRemoved' + | 'IdentityVerified' + | 'SomeError'; + } + + /** @name PalletSudoCall (349) */ + interface PalletSudoCall extends Enum { + readonly isSudo: boolean; + readonly asSudo: { + readonly call: Call; + } & Struct; + readonly isSudoUncheckedWeight: boolean; + readonly asSudoUncheckedWeight: { + readonly call: Call; + readonly weight: SpWeightsWeightV2Weight; + } & Struct; + readonly isSetKey: boolean; + readonly asSetKey: { + readonly new_: MultiAddress; + } & Struct; + readonly isSudoAs: boolean; + readonly asSudoAs: { + readonly who: MultiAddress; + readonly call: Call; + } & Struct; + readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs'; + } + + /** @name PalletSchedulerError (352) */ + interface PalletSchedulerError extends Enum { + readonly isFailedToSchedule: boolean; + readonly isNotFound: boolean; + readonly isTargetBlockNumberInPast: boolean; + readonly isRescheduleNoChange: boolean; + readonly isNamed: boolean; + readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange' | 'Named'; + } + + /** @name PalletUtilityError (353) */ + interface PalletUtilityError extends Enum { + readonly isTooManyCalls: boolean; + readonly type: 'TooManyCalls'; + } + + /** @name PalletMultisigMultisig (355) */ + interface PalletMultisigMultisig extends Struct { + readonly when: PalletMultisigTimepoint; + readonly deposit: u128; + readonly depositor: AccountId32; + readonly approvals: Vec; + } + + /** @name PalletMultisigError (357) */ + interface PalletMultisigError extends Enum { + readonly isMinimumThreshold: boolean; + readonly isAlreadyApproved: boolean; + readonly isNoApprovalsNeeded: boolean; + readonly isTooFewSignatories: boolean; + readonly isTooManySignatories: boolean; + readonly isSignatoriesOutOfOrder: boolean; + readonly isSenderInSignatories: boolean; + readonly isNotFound: boolean; + readonly isNotOwner: boolean; + readonly isNoTimepoint: boolean; + readonly isWrongTimepoint: boolean; + readonly isUnexpectedTimepoint: boolean; + readonly isMaxWeightTooLow: boolean; + readonly isAlreadyStored: boolean; + readonly type: + | 'MinimumThreshold' + | 'AlreadyApproved' + | 'NoApprovalsNeeded' + | 'TooFewSignatories' + | 'TooManySignatories' + | 'SignatoriesOutOfOrder' + | 'SenderInSignatories' + | 'NotFound' + | 'NotOwner' + | 'NoTimepoint' + | 'WrongTimepoint' + | 'UnexpectedTimepoint' + | 'MaxWeightTooLow' + | 'AlreadyStored'; + } + + /** @name PalletProxyProxyDefinition (360) */ + interface PalletProxyProxyDefinition extends Struct { + readonly delegate: AccountId32; + readonly proxyType: RococoParachainRuntimeProxyType; + readonly delay: u32; + } + + /** @name PalletProxyAnnouncement (364) */ + interface PalletProxyAnnouncement extends Struct { + readonly real: AccountId32; + readonly callHash: H256; + readonly height: u32; + } + + /** @name PalletProxyError (366) */ + interface PalletProxyError extends Enum { + readonly isTooMany: boolean; + readonly isNotFound: boolean; + readonly isNotProxy: boolean; + readonly isUnproxyable: boolean; + readonly isDuplicate: boolean; + readonly isNoPermission: boolean; + readonly isUnannounced: boolean; + readonly isNoSelfProxy: boolean; + readonly type: + | 'TooMany' + | 'NotFound' + | 'NotProxy' + | 'Unproxyable' + | 'Duplicate' + | 'NoPermission' + | 'Unannounced' + | 'NoSelfProxy'; + } + + /** @name PalletPreimageRequestStatus (367) */ + interface PalletPreimageRequestStatus extends Enum { + readonly isUnrequested: boolean; + readonly asUnrequested: { + readonly deposit: ITuple<[AccountId32, u128]>; + readonly len: u32; + } & Struct; + readonly isRequested: boolean; + readonly asRequested: { + readonly deposit: Option>; + readonly count: u32; + readonly len: Option; + } & Struct; + readonly type: 'Unrequested' | 'Requested'; + } + + /** @name PalletPreimageError (372) */ + interface PalletPreimageError extends Enum { + readonly isTooBig: boolean; + readonly isAlreadyNoted: boolean; + readonly isNotAuthorized: boolean; + readonly isNotNoted: boolean; + readonly isRequested: boolean; + readonly isNotRequested: boolean; + readonly type: 'TooBig' | 'AlreadyNoted' | 'NotAuthorized' | 'NotNoted' | 'Requested' | 'NotRequested'; + } + + /** @name PalletBalancesBalanceLock (374) */ + interface PalletBalancesBalanceLock extends Struct { + readonly id: U8aFixed; + readonly amount: u128; + readonly reasons: PalletBalancesReasons; + } + + /** @name PalletBalancesReasons (375) */ + interface PalletBalancesReasons extends Enum { + readonly isFee: boolean; + readonly isMisc: boolean; + readonly isAll: boolean; + readonly type: 'Fee' | 'Misc' | 'All'; + } + + /** @name PalletBalancesReserveData (378) */ + interface PalletBalancesReserveData extends Struct { + readonly id: U8aFixed; + readonly amount: u128; + } + + /** @name PalletBalancesError (380) */ + interface PalletBalancesError extends Enum { + readonly isVestingBalance: boolean; + readonly isLiquidityRestrictions: boolean; + readonly isInsufficientBalance: boolean; + readonly isExistentialDeposit: boolean; + readonly isKeepAlive: boolean; + readonly isExistingVestingSchedule: boolean; + readonly isDeadAccount: boolean; + readonly isTooManyReserves: boolean; + readonly type: + | 'VestingBalance' + | 'LiquidityRestrictions' + | 'InsufficientBalance' + | 'ExistentialDeposit' + | 'KeepAlive' + | 'ExistingVestingSchedule' + | 'DeadAccount' + | 'TooManyReserves'; + } + + /** @name PalletVestingReleases (383) */ + interface PalletVestingReleases extends Enum { + readonly isV0: boolean; + readonly isV1: boolean; + readonly type: 'V0' | 'V1'; + } + + /** @name PalletVestingError (384) */ + interface PalletVestingError extends Enum { + readonly isNotVesting: boolean; + readonly isAtMaxVestingSchedules: boolean; + readonly isAmountLow: boolean; + readonly isScheduleIndexOutOfBounds: boolean; + readonly isInvalidScheduleParams: boolean; + readonly type: + | 'NotVesting' + | 'AtMaxVestingSchedules' + | 'AmountLow' + | 'ScheduleIndexOutOfBounds' + | 'InvalidScheduleParams'; + } + + /** @name PalletTransactionPaymentReleases (386) */ + interface PalletTransactionPaymentReleases extends Enum { + readonly isV1Ancient: boolean; + readonly isV2: boolean; + readonly type: 'V1Ancient' | 'V2'; + } + + /** @name PalletTreasuryProposal (387) */ + interface PalletTreasuryProposal extends Struct { + readonly proposer: AccountId32; + readonly value: u128; + readonly beneficiary: AccountId32; + readonly bond: u128; + } + + /** @name FrameSupportPalletId (392) */ + interface FrameSupportPalletId extends U8aFixed {} + + /** @name PalletTreasuryError (393) */ + interface PalletTreasuryError extends Enum { + readonly isInsufficientProposersBalance: boolean; + readonly isInvalidIndex: boolean; + readonly isTooManyApprovals: boolean; + readonly isInsufficientPermission: boolean; + readonly isProposalNotApproved: boolean; + readonly type: + | 'InsufficientProposersBalance' + | 'InvalidIndex' + | 'TooManyApprovals' + | 'InsufficientPermission' + | 'ProposalNotApproved'; + } + + /** @name PalletDemocracyReferendumInfo (398) */ + interface PalletDemocracyReferendumInfo extends Enum { + readonly isOngoing: boolean; + readonly asOngoing: PalletDemocracyReferendumStatus; + readonly isFinished: boolean; + readonly asFinished: { + readonly approved: bool; + readonly end: u32; + } & Struct; + readonly type: 'Ongoing' | 'Finished'; + } + + /** @name PalletDemocracyReferendumStatus (399) */ + interface PalletDemocracyReferendumStatus extends Struct { + readonly end: u32; + readonly proposal: FrameSupportPreimagesBounded; + readonly threshold: PalletDemocracyVoteThreshold; + readonly delay: u32; + readonly tally: PalletDemocracyTally; + } + + /** @name PalletDemocracyTally (400) */ + interface PalletDemocracyTally extends Struct { + readonly ayes: u128; + readonly nays: u128; + readonly turnout: u128; + } + + /** @name PalletDemocracyVoteVoting (401) */ + interface PalletDemocracyVoteVoting extends Enum { + readonly isDirect: boolean; + readonly asDirect: { + readonly votes: Vec>; + readonly delegations: PalletDemocracyDelegations; + readonly prior: PalletDemocracyVotePriorLock; + } & Struct; + readonly isDelegating: boolean; + readonly asDelegating: { + readonly balance: u128; + readonly target: AccountId32; + readonly conviction: PalletDemocracyConviction; + readonly delegations: PalletDemocracyDelegations; + readonly prior: PalletDemocracyVotePriorLock; + } & Struct; + readonly type: 'Direct' | 'Delegating'; + } + + /** @name PalletDemocracyDelegations (405) */ + interface PalletDemocracyDelegations extends Struct { + readonly votes: u128; + readonly capital: u128; + } + + /** @name PalletDemocracyVotePriorLock (406) */ + interface PalletDemocracyVotePriorLock extends ITuple<[u32, u128]> {} + + /** @name PalletDemocracyError (409) */ + interface PalletDemocracyError extends Enum { + readonly isValueLow: boolean; + readonly isProposalMissing: boolean; + readonly isAlreadyCanceled: boolean; + readonly isDuplicateProposal: boolean; + readonly isProposalBlacklisted: boolean; + readonly isNotSimpleMajority: boolean; + readonly isInvalidHash: boolean; + readonly isNoProposal: boolean; + readonly isAlreadyVetoed: boolean; + readonly isReferendumInvalid: boolean; + readonly isNoneWaiting: boolean; + readonly isNotVoter: boolean; + readonly isNoPermission: boolean; + readonly isAlreadyDelegating: boolean; + readonly isInsufficientFunds: boolean; + readonly isNotDelegating: boolean; + readonly isVotesExist: boolean; + readonly isInstantNotAllowed: boolean; + readonly isNonsense: boolean; + readonly isWrongUpperBound: boolean; + readonly isMaxVotesReached: boolean; + readonly isTooMany: boolean; + readonly isVotingPeriodLow: boolean; + readonly isPreimageNotExist: boolean; + readonly type: + | 'ValueLow' + | 'ProposalMissing' + | 'AlreadyCanceled' + | 'DuplicateProposal' + | 'ProposalBlacklisted' + | 'NotSimpleMajority' + | 'InvalidHash' + | 'NoProposal' + | 'AlreadyVetoed' + | 'ReferendumInvalid' + | 'NoneWaiting' + | 'NotVoter' + | 'NoPermission' + | 'AlreadyDelegating' + | 'InsufficientFunds' + | 'NotDelegating' + | 'VotesExist' + | 'InstantNotAllowed' + | 'Nonsense' + | 'WrongUpperBound' + | 'MaxVotesReached' + | 'TooMany' + | 'VotingPeriodLow' + | 'PreimageNotExist'; + } + + /** @name PalletCollectiveVotes (411) */ + interface PalletCollectiveVotes extends Struct { + readonly index: u32; + readonly threshold: u32; + readonly ayes: Vec; + readonly nays: Vec; + readonly end: u32; + } + + /** @name PalletCollectiveError (412) */ + interface PalletCollectiveError extends Enum { + readonly isNotMember: boolean; + readonly isDuplicateProposal: boolean; + readonly isProposalMissing: boolean; + readonly isWrongIndex: boolean; + readonly isDuplicateVote: boolean; + readonly isAlreadyInitialized: boolean; + readonly isTooEarly: boolean; + readonly isTooManyProposals: boolean; + readonly isWrongProposalWeight: boolean; + readonly isWrongProposalLength: boolean; + readonly type: + | 'NotMember' + | 'DuplicateProposal' + | 'ProposalMissing' + | 'WrongIndex' + | 'DuplicateVote' + | 'AlreadyInitialized' + | 'TooEarly' + | 'TooManyProposals' + | 'WrongProposalWeight' + | 'WrongProposalLength'; + } + + /** @name PalletMembershipError (414) */ + interface PalletMembershipError extends Enum { + readonly isAlreadyMember: boolean; + readonly isNotMember: boolean; + readonly isTooManyMembers: boolean; + readonly type: 'AlreadyMember' | 'NotMember' | 'TooManyMembers'; + } + + /** @name PalletBountiesBounty (417) */ + interface PalletBountiesBounty extends Struct { + readonly proposer: AccountId32; + readonly value: u128; + readonly fee: u128; + readonly curatorDeposit: u128; + readonly bond: u128; + readonly status: PalletBountiesBountyStatus; + } + + /** @name PalletBountiesBountyStatus (418) */ + interface PalletBountiesBountyStatus extends Enum { + readonly isProposed: boolean; + readonly isApproved: boolean; + readonly isFunded: boolean; + readonly isCuratorProposed: boolean; + readonly asCuratorProposed: { + readonly curator: AccountId32; + } & Struct; + readonly isActive: boolean; + readonly asActive: { + readonly curator: AccountId32; + readonly updateDue: u32; + } & Struct; + readonly isPendingPayout: boolean; + readonly asPendingPayout: { + readonly curator: AccountId32; + readonly beneficiary: AccountId32; + readonly unlockAt: u32; + } & Struct; + readonly type: 'Proposed' | 'Approved' | 'Funded' | 'CuratorProposed' | 'Active' | 'PendingPayout'; + } + + /** @name PalletBountiesError (420) */ + interface PalletBountiesError extends Enum { + readonly isInsufficientProposersBalance: boolean; + readonly isInvalidIndex: boolean; + readonly isReasonTooBig: boolean; + readonly isUnexpectedStatus: boolean; + readonly isRequireCurator: boolean; + readonly isInvalidValue: boolean; + readonly isInvalidFee: boolean; + readonly isPendingPayout: boolean; + readonly isPremature: boolean; + readonly isHasActiveChildBounty: boolean; + readonly isTooManyQueued: boolean; + readonly type: + | 'InsufficientProposersBalance' + | 'InvalidIndex' + | 'ReasonTooBig' + | 'UnexpectedStatus' + | 'RequireCurator' + | 'InvalidValue' + | 'InvalidFee' + | 'PendingPayout' + | 'Premature' + | 'HasActiveChildBounty' + | 'TooManyQueued'; + } + + /** @name PalletTipsOpenTip (421) */ + interface PalletTipsOpenTip extends Struct { + readonly reason: H256; + readonly who: AccountId32; + readonly finder: AccountId32; + readonly deposit: u128; + readonly closes: Option; + readonly tips: Vec>; + readonly findersFee: bool; + } + + /** @name PalletTipsError (423) */ + interface PalletTipsError extends Enum { + readonly isReasonTooBig: boolean; + readonly isAlreadyKnown: boolean; + readonly isUnknownTip: boolean; + readonly isNotFinder: boolean; + readonly isStillOpen: boolean; + readonly isPremature: boolean; + readonly type: 'ReasonTooBig' | 'AlreadyKnown' | 'UnknownTip' | 'NotFinder' | 'StillOpen' | 'Premature'; + } + + /** @name PalletIdentityRegistration (424) */ + interface PalletIdentityRegistration extends Struct { + readonly judgements: Vec>; + readonly deposit: u128; + readonly info: PalletIdentityIdentityInfo; + } + + /** @name PalletIdentityRegistrarInfo (431) */ + interface PalletIdentityRegistrarInfo extends Struct { + readonly account: AccountId32; + readonly fee: u128; + readonly fields: PalletIdentityBitFlags; + } + + /** @name PalletIdentityError (433) */ + interface PalletIdentityError extends Enum { + readonly isTooManySubAccounts: boolean; + readonly isNotFound: boolean; + readonly isNotNamed: boolean; + readonly isEmptyIndex: boolean; + readonly isFeeChanged: boolean; + readonly isNoIdentity: boolean; + readonly isStickyJudgement: boolean; + readonly isJudgementGiven: boolean; + readonly isInvalidJudgement: boolean; + readonly isInvalidIndex: boolean; + readonly isInvalidTarget: boolean; + readonly isTooManyFields: boolean; + readonly isTooManyRegistrars: boolean; + readonly isAlreadyClaimed: boolean; + readonly isNotSub: boolean; + readonly isNotOwned: boolean; + readonly isJudgementForDifferentIdentity: boolean; + readonly isJudgementPaymentFailed: boolean; + readonly type: + | 'TooManySubAccounts' + | 'NotFound' + | 'NotNamed' + | 'EmptyIndex' + | 'FeeChanged' + | 'NoIdentity' + | 'StickyJudgement' + | 'JudgementGiven' + | 'InvalidJudgement' + | 'InvalidIndex' + | 'InvalidTarget' + | 'TooManyFields' + | 'TooManyRegistrars' + | 'AlreadyClaimed' + | 'NotSub' + | 'NotOwned' + | 'JudgementForDifferentIdentity' + | 'JudgementPaymentFailed'; + } + + /** @name PolkadotPrimitivesV2UpgradeRestriction (435) */ + interface PolkadotPrimitivesV2UpgradeRestriction extends Enum { + readonly isPresent: boolean; + readonly type: 'Present'; + } + + /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (436) */ + interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct { + readonly dmqMqcHead: H256; + readonly relayDispatchQueueSize: ITuple<[u32, u32]>; + readonly ingressChannels: Vec>; + readonly egressChannels: Vec>; + } + + /** @name PolkadotPrimitivesV2AbridgedHrmpChannel (439) */ + interface PolkadotPrimitivesV2AbridgedHrmpChannel extends Struct { + readonly maxCapacity: u32; + readonly maxTotalSize: u32; + readonly maxMessageSize: u32; + readonly msgCount: u32; + readonly totalSize: u32; + readonly mqcHead: Option; + } + + /** @name PolkadotPrimitivesV2AbridgedHostConfiguration (440) */ + interface PolkadotPrimitivesV2AbridgedHostConfiguration extends Struct { + readonly maxCodeSize: u32; + readonly maxHeadDataSize: u32; + readonly maxUpwardQueueCount: u32; + readonly maxUpwardQueueSize: u32; + readonly maxUpwardMessageSize: u32; + readonly maxUpwardMessageNumPerCandidate: u32; + readonly hrmpMaxMessageNumPerCandidate: u32; + readonly validationUpgradeCooldown: u32; + readonly validationUpgradeDelay: u32; + } + + /** @name PolkadotCorePrimitivesOutboundHrmpMessage (446) */ + interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct { + readonly recipient: u32; + readonly data: Bytes; + } + + /** @name CumulusPalletParachainSystemError (447) */ + interface CumulusPalletParachainSystemError extends Enum { + readonly isOverlappingUpgrades: boolean; + readonly isProhibitedByPolkadot: boolean; + readonly isTooBig: boolean; + readonly isValidationDataNotAvailable: boolean; + readonly isHostConfigurationNotAvailable: boolean; + readonly isNotScheduled: boolean; + readonly isNothingAuthorized: boolean; + readonly isUnauthorized: boolean; + readonly type: + | 'OverlappingUpgrades' + | 'ProhibitedByPolkadot' + | 'TooBig' + | 'ValidationDataNotAvailable' + | 'HostConfigurationNotAvailable' + | 'NotScheduled' + | 'NothingAuthorized' + | 'Unauthorized'; + } + + /** @name SpCoreCryptoKeyTypeId (451) */ + interface SpCoreCryptoKeyTypeId extends U8aFixed {} + + /** @name PalletSessionError (452) */ + interface PalletSessionError extends Enum { + readonly isInvalidProof: boolean; + readonly isNoAssociatedValidatorId: boolean; + readonly isDuplicatedKey: boolean; + readonly isNoKeys: boolean; + readonly isNoAccount: boolean; + readonly type: 'InvalidProof' | 'NoAssociatedValidatorId' | 'DuplicatedKey' | 'NoKeys' | 'NoAccount'; } - /** @name PalletBalancesBalanceLock (74) */ - interface PalletBalancesBalanceLock extends Struct { - readonly id: U8aFixed; + /** @name PalletParachainStakingParachainBondConfig (456) */ + interface PalletParachainStakingParachainBondConfig extends Struct { + readonly account: AccountId32; + readonly percent: Percent; + } + + /** @name PalletParachainStakingRoundInfo (457) */ + interface PalletParachainStakingRoundInfo extends Struct { + readonly current: u32; + readonly first: u32; + readonly length: u32; + } + + /** @name PalletParachainStakingDelegator (458) */ + interface PalletParachainStakingDelegator extends Struct { + readonly id: AccountId32; + readonly delegations: PalletParachainStakingSetOrderedSet; + readonly total: u128; + readonly lessTotal: u128; + readonly status: PalletParachainStakingDelegatorStatus; + } + + /** @name PalletParachainStakingSetOrderedSet (459) */ + interface PalletParachainStakingSetOrderedSet extends Vec {} + + /** @name PalletParachainStakingBond (460) */ + interface PalletParachainStakingBond extends Struct { + readonly owner: AccountId32; readonly amount: u128; - readonly reasons: PalletBalancesReasons; } - /** @name PalletBalancesReasons (75) */ - interface PalletBalancesReasons extends Enum { - readonly isFee: boolean; - readonly isMisc: boolean; - readonly isAll: boolean; - readonly type: 'Fee' | 'Misc' | 'All'; + /** @name PalletParachainStakingDelegatorStatus (462) */ + interface PalletParachainStakingDelegatorStatus extends Enum { + readonly isActive: boolean; + readonly type: 'Active'; } - /** @name PalletBalancesReserveData (78) */ - interface PalletBalancesReserveData extends Struct { - readonly id: U8aFixed; + /** @name PalletParachainStakingCandidateMetadata (463) */ + interface PalletParachainStakingCandidateMetadata extends Struct { + readonly bond: u128; + readonly delegationCount: u32; + readonly totalCounted: u128; + readonly lowestTopDelegationAmount: u128; + readonly highestBottomDelegationAmount: u128; + readonly lowestBottomDelegationAmount: u128; + readonly topCapacity: PalletParachainStakingCapacityStatus; + readonly bottomCapacity: PalletParachainStakingCapacityStatus; + readonly request: Option; + readonly status: PalletParachainStakingCollatorStatus; + } + + /** @name PalletParachainStakingCapacityStatus (464) */ + interface PalletParachainStakingCapacityStatus extends Enum { + readonly isFull: boolean; + readonly isEmpty: boolean; + readonly isPartial: boolean; + readonly type: 'Full' | 'Empty' | 'Partial'; + } + + /** @name PalletParachainStakingCandidateBondLessRequest (466) */ + interface PalletParachainStakingCandidateBondLessRequest extends Struct { readonly amount: u128; + readonly whenExecutable: u32; } - /** @name PalletBalancesCall (80) */ - interface PalletBalancesCall extends Enum { - readonly isTransfer: boolean; - readonly asTransfer: { - readonly dest: MultiAddress; - readonly value: Compact; + /** @name PalletParachainStakingCollatorStatus (467) */ + interface PalletParachainStakingCollatorStatus extends Enum { + readonly isActive: boolean; + readonly isIdle: boolean; + readonly isLeaving: boolean; + readonly asLeaving: u32; + readonly type: 'Active' | 'Idle' | 'Leaving'; + } + + /** @name PalletParachainStakingDelegationRequestsScheduledRequest (469) */ + interface PalletParachainStakingDelegationRequestsScheduledRequest extends Struct { + readonly delegator: AccountId32; + readonly whenExecutable: u32; + readonly action: PalletParachainStakingDelegationRequestsDelegationAction; + } + + /** @name PalletParachainStakingAutoCompoundAutoCompoundConfig (471) */ + interface PalletParachainStakingAutoCompoundAutoCompoundConfig extends Struct { + readonly delegator: AccountId32; + readonly value: Percent; + } + + /** @name PalletParachainStakingDelegations (472) */ + interface PalletParachainStakingDelegations extends Struct { + readonly delegations: Vec; + readonly total: u128; + } + + /** @name PalletParachainStakingCollatorSnapshot (474) */ + interface PalletParachainStakingCollatorSnapshot extends Struct { + readonly bond: u128; + readonly delegations: Vec; + readonly total: u128; + } + + /** @name PalletParachainStakingBondWithAutoCompound (476) */ + interface PalletParachainStakingBondWithAutoCompound extends Struct { + readonly owner: AccountId32; + readonly amount: u128; + readonly autoCompound: Percent; + } + + /** @name PalletParachainStakingDelayedPayout (477) */ + interface PalletParachainStakingDelayedPayout extends Struct { + readonly roundIssuance: u128; + readonly totalStakingReward: u128; + readonly collatorCommission: Perbill; + } + + /** @name PalletParachainStakingInflationInflationInfo (478) */ + interface PalletParachainStakingInflationInflationInfo extends Struct { + readonly expect: { + readonly min: u128; + readonly ideal: u128; + readonly max: u128; } & Struct; - readonly isSetBalance: boolean; - readonly asSetBalance: { - readonly who: MultiAddress; - readonly newFree: Compact; - readonly newReserved: Compact; + readonly annual: { + readonly min: Perbill; + readonly ideal: Perbill; + readonly max: Perbill; } & Struct; - readonly isForceTransfer: boolean; - readonly asForceTransfer: { - readonly source: MultiAddress; - readonly dest: MultiAddress; - readonly value: Compact; + readonly round: { + readonly min: Perbill; + readonly ideal: Perbill; + readonly max: Perbill; } & Struct; - readonly isTransferKeepAlive: boolean; - readonly asTransferKeepAlive: { - readonly dest: MultiAddress; - readonly value: Compact; + } + + /** @name PalletParachainStakingError (479) */ + interface PalletParachainStakingError extends Enum { + readonly isDelegatorDNE: boolean; + readonly isDelegatorDNEinTopNorBottom: boolean; + readonly isDelegatorDNEInDelegatorSet: boolean; + readonly isCandidateDNE: boolean; + readonly isDelegationDNE: boolean; + readonly isDelegatorExists: boolean; + readonly isCandidateExists: boolean; + readonly isCandidateBondBelowMin: boolean; + readonly isInsufficientBalance: boolean; + readonly isDelegatorBondBelowMin: boolean; + readonly isDelegationBelowMin: boolean; + readonly isAlreadyOffline: boolean; + readonly isAlreadyActive: boolean; + readonly isDelegatorAlreadyLeaving: boolean; + readonly isDelegatorNotLeaving: boolean; + readonly isDelegatorCannotLeaveYet: boolean; + readonly isCannotDelegateIfLeaving: boolean; + readonly isCandidateAlreadyLeaving: boolean; + readonly isCandidateNotLeaving: boolean; + readonly isCandidateCannotLeaveYet: boolean; + readonly isCannotGoOnlineIfLeaving: boolean; + readonly isExceedMaxDelegationsPerDelegator: boolean; + readonly isAlreadyDelegatedCandidate: boolean; + readonly isInvalidSchedule: boolean; + readonly isCannotSetBelowMin: boolean; + readonly isRoundLengthMustBeGreaterThanTotalSelectedCollators: boolean; + readonly isNoWritingSameValue: boolean; + readonly isTooLowCandidateCountWeightHintCancelLeaveCandidates: boolean; + readonly isTooLowCandidateDelegationCountToLeaveCandidates: boolean; + readonly isPendingCandidateRequestsDNE: boolean; + readonly isPendingCandidateRequestAlreadyExists: boolean; + readonly isPendingCandidateRequestNotDueYet: boolean; + readonly isPendingDelegationRequestDNE: boolean; + readonly isPendingDelegationRequestAlreadyExists: boolean; + readonly isPendingDelegationRequestNotDueYet: boolean; + readonly isCannotDelegateLessThanOrEqualToLowestBottomWhenFull: boolean; + readonly isPendingDelegationRevoke: boolean; + readonly isCandidateUnauthorized: boolean; + readonly type: + | 'DelegatorDNE' + | 'DelegatorDNEinTopNorBottom' + | 'DelegatorDNEInDelegatorSet' + | 'CandidateDNE' + | 'DelegationDNE' + | 'DelegatorExists' + | 'CandidateExists' + | 'CandidateBondBelowMin' + | 'InsufficientBalance' + | 'DelegatorBondBelowMin' + | 'DelegationBelowMin' + | 'AlreadyOffline' + | 'AlreadyActive' + | 'DelegatorAlreadyLeaving' + | 'DelegatorNotLeaving' + | 'DelegatorCannotLeaveYet' + | 'CannotDelegateIfLeaving' + | 'CandidateAlreadyLeaving' + | 'CandidateNotLeaving' + | 'CandidateCannotLeaveYet' + | 'CannotGoOnlineIfLeaving' + | 'ExceedMaxDelegationsPerDelegator' + | 'AlreadyDelegatedCandidate' + | 'InvalidSchedule' + | 'CannotSetBelowMin' + | 'RoundLengthMustBeGreaterThanTotalSelectedCollators' + | 'NoWritingSameValue' + | 'TooLowCandidateCountWeightHintCancelLeaveCandidates' + | 'TooLowCandidateDelegationCountToLeaveCandidates' + | 'PendingCandidateRequestsDNE' + | 'PendingCandidateRequestAlreadyExists' + | 'PendingCandidateRequestNotDueYet' + | 'PendingDelegationRequestDNE' + | 'PendingDelegationRequestAlreadyExists' + | 'PendingDelegationRequestNotDueYet' + | 'CannotDelegateLessThanOrEqualToLowestBottomWhenFull' + | 'PendingDelegationRevoke' + | 'CandidateUnauthorized'; + } + + /** @name CumulusPalletXcmpQueueInboundChannelDetails (481) */ + interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct { + readonly sender: u32; + readonly state: CumulusPalletXcmpQueueInboundState; + readonly messageMetadata: Vec>; + } + + /** @name CumulusPalletXcmpQueueInboundState (482) */ + interface CumulusPalletXcmpQueueInboundState extends Enum { + readonly isOk: boolean; + readonly isSuspended: boolean; + readonly type: 'Ok' | 'Suspended'; + } + + /** @name PolkadotParachainPrimitivesXcmpMessageFormat (485) */ + interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum { + readonly isConcatenatedVersionedXcm: boolean; + readonly isConcatenatedEncodedBlob: boolean; + readonly isSignals: boolean; + readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals'; + } + + /** @name CumulusPalletXcmpQueueOutboundChannelDetails (488) */ + interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct { + readonly recipient: u32; + readonly state: CumulusPalletXcmpQueueOutboundState; + readonly signalsExist: bool; + readonly firstIndex: u16; + readonly lastIndex: u16; + } + + /** @name CumulusPalletXcmpQueueOutboundState (489) */ + interface CumulusPalletXcmpQueueOutboundState extends Enum { + readonly isOk: boolean; + readonly isSuspended: boolean; + readonly type: 'Ok' | 'Suspended'; + } + + /** @name CumulusPalletXcmpQueueQueueConfigData (491) */ + interface CumulusPalletXcmpQueueQueueConfigData extends Struct { + readonly suspendThreshold: u32; + readonly dropThreshold: u32; + readonly resumeThreshold: u32; + readonly thresholdWeight: SpWeightsWeightV2Weight; + readonly weightRestrictDecay: SpWeightsWeightV2Weight; + readonly xcmpMaxIndividualWeight: SpWeightsWeightV2Weight; + } + + /** @name CumulusPalletXcmpQueueError (493) */ + interface CumulusPalletXcmpQueueError extends Enum { + readonly isFailedToSend: boolean; + readonly isBadXcmOrigin: boolean; + readonly isBadXcm: boolean; + readonly isBadOverweightIndex: boolean; + readonly isWeightOverLimit: boolean; + readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit'; + } + + /** @name PalletXcmQueryStatus (494) */ + interface PalletXcmQueryStatus extends Enum { + readonly isPending: boolean; + readonly asPending: { + readonly responder: XcmVersionedMultiLocation; + readonly maybeMatchQuerier: Option; + readonly maybeNotify: Option>; + readonly timeout: u32; } & Struct; - readonly isTransferAll: boolean; - readonly asTransferAll: { - readonly dest: MultiAddress; - readonly keepAlive: bool; + readonly isVersionNotifier: boolean; + readonly asVersionNotifier: { + readonly origin: XcmVersionedMultiLocation; + readonly isActive: bool; } & Struct; - readonly isForceUnreserve: boolean; - readonly asForceUnreserve: { - readonly who: MultiAddress; - readonly amount: u128; + readonly isReady: boolean; + readonly asReady: { + readonly response: XcmVersionedResponse; + readonly at: u32; } & Struct; + readonly type: 'Pending' | 'VersionNotifier' | 'Ready'; + } + + /** @name XcmVersionedResponse (498) */ + interface XcmVersionedResponse extends Enum { + readonly isV2: boolean; + readonly asV2: XcmV2Response; + readonly isV3: boolean; + readonly asV3: XcmV3Response; + readonly type: 'V2' | 'V3'; + } + + /** @name PalletXcmVersionMigrationStage (504) */ + interface PalletXcmVersionMigrationStage extends Enum { + readonly isMigrateSupportedVersion: boolean; + readonly isMigrateVersionNotifiers: boolean; + readonly isNotifyCurrentTargets: boolean; + readonly asNotifyCurrentTargets: Option; + readonly isMigrateAndNotifyOldTargets: boolean; readonly type: - | 'Transfer' - | 'SetBalance' - | 'ForceTransfer' - | 'TransferKeepAlive' - | 'TransferAll' - | 'ForceUnreserve'; + | 'MigrateSupportedVersion' + | 'MigrateVersionNotifiers' + | 'NotifyCurrentTargets' + | 'MigrateAndNotifyOldTargets'; } - /** @name PalletBalancesError (84) */ - interface PalletBalancesError extends Enum { - readonly isVestingBalance: boolean; + /** @name XcmVersionedAssetId (506) */ + interface XcmVersionedAssetId extends Enum { + readonly isV3: boolean; + readonly asV3: XcmV3MultiassetAssetId; + readonly type: 'V3'; + } + + /** @name PalletXcmRemoteLockedFungibleRecord (507) */ + interface PalletXcmRemoteLockedFungibleRecord extends Struct { + readonly amount: u128; + readonly owner: XcmVersionedMultiLocation; + readonly locker: XcmVersionedMultiLocation; + readonly users: u32; + } + + /** @name PalletXcmError (511) */ + interface PalletXcmError extends Enum { + readonly isUnreachable: boolean; + readonly isSendFailure: boolean; + readonly isFiltered: boolean; + readonly isUnweighableMessage: boolean; + readonly isDestinationNotInvertible: boolean; + readonly isEmpty: boolean; + readonly isCannotReanchor: boolean; + readonly isTooManyAssets: boolean; + readonly isInvalidOrigin: boolean; + readonly isBadVersion: boolean; + readonly isBadLocation: boolean; + readonly isNoSubscription: boolean; + readonly isAlreadySubscribed: boolean; + readonly isInvalidAsset: boolean; + readonly isLowBalance: boolean; + readonly isTooManyLocks: boolean; + readonly isAccountNotSovereign: boolean; + readonly isFeesNotMet: boolean; + readonly isLockNotFound: boolean; + readonly isInUse: boolean; + readonly type: + | 'Unreachable' + | 'SendFailure' + | 'Filtered' + | 'UnweighableMessage' + | 'DestinationNotInvertible' + | 'Empty' + | 'CannotReanchor' + | 'TooManyAssets' + | 'InvalidOrigin' + | 'BadVersion' + | 'BadLocation' + | 'NoSubscription' + | 'AlreadySubscribed' + | 'InvalidAsset' + | 'LowBalance' + | 'TooManyLocks' + | 'AccountNotSovereign' + | 'FeesNotMet' + | 'LockNotFound' + | 'InUse'; + } + + /** @name CumulusPalletXcmError (512) */ + type CumulusPalletXcmError = Null; + + /** @name CumulusPalletDmpQueueConfigData (513) */ + interface CumulusPalletDmpQueueConfigData extends Struct { + readonly maxIndividual: SpWeightsWeightV2Weight; + } + + /** @name CumulusPalletDmpQueuePageIndexData (514) */ + interface CumulusPalletDmpQueuePageIndexData extends Struct { + readonly beginUsed: u32; + readonly endUsed: u32; + readonly overweightCount: u64; + } + + /** @name CumulusPalletDmpQueueError (517) */ + interface CumulusPalletDmpQueueError extends Enum { + readonly isUnknown: boolean; + readonly isOverLimit: boolean; + readonly type: 'Unknown' | 'OverLimit'; + } + + /** @name OrmlXtokensModuleError (518) */ + interface OrmlXtokensModuleError extends Enum { + readonly isAssetHasNoReserve: boolean; + readonly isNotCrossChainTransfer: boolean; + readonly isInvalidDest: boolean; + readonly isNotCrossChainTransferableCurrency: boolean; + readonly isUnweighableMessage: boolean; + readonly isXcmExecutionFailed: boolean; + readonly isCannotReanchor: boolean; + readonly isInvalidAncestry: boolean; + readonly isInvalidAsset: boolean; + readonly isDestinationNotInvertible: boolean; + readonly isBadVersion: boolean; + readonly isDistinctReserveForAssetAndFee: boolean; + readonly isZeroFee: boolean; + readonly isZeroAmount: boolean; + readonly isTooManyAssetsBeingSent: boolean; + readonly isAssetIndexNonExistent: boolean; + readonly isFeeNotEnough: boolean; + readonly isNotSupportedMultiLocation: boolean; + readonly isMinXcmFeeNotDefined: boolean; + readonly type: + | 'AssetHasNoReserve' + | 'NotCrossChainTransfer' + | 'InvalidDest' + | 'NotCrossChainTransferableCurrency' + | 'UnweighableMessage' + | 'XcmExecutionFailed' + | 'CannotReanchor' + | 'InvalidAncestry' + | 'InvalidAsset' + | 'DestinationNotInvertible' + | 'BadVersion' + | 'DistinctReserveForAssetAndFee' + | 'ZeroFee' + | 'ZeroAmount' + | 'TooManyAssetsBeingSent' + | 'AssetIndexNonExistent' + | 'FeeNotEnough' + | 'NotSupportedMultiLocation' + | 'MinXcmFeeNotDefined'; + } + + /** @name OrmlTokensBalanceLock (520) */ + interface OrmlTokensBalanceLock extends Struct { + readonly id: U8aFixed; + readonly amount: u128; + } + + /** @name OrmlTokensAccountData (522) */ + interface OrmlTokensAccountData extends Struct { + readonly free: u128; + readonly reserved: u128; + readonly frozen: u128; + } + + /** @name OrmlTokensReserveData (524) */ + interface OrmlTokensReserveData extends Struct { + readonly id: U8aFixed; + readonly amount: u128; + } + + /** @name OrmlTokensModuleError (526) */ + interface OrmlTokensModuleError extends Enum { + readonly isBalanceTooLow: boolean; + readonly isAmountIntoBalanceFailed: boolean; readonly isLiquidityRestrictions: boolean; - readonly isInsufficientBalance: boolean; - readonly isExistentialDeposit: boolean; + readonly isMaxLocksExceeded: boolean; readonly isKeepAlive: boolean; - readonly isExistingVestingSchedule: boolean; + readonly isExistentialDeposit: boolean; readonly isDeadAccount: boolean; readonly isTooManyReserves: boolean; readonly type: - | 'VestingBalance' + | 'BalanceTooLow' + | 'AmountIntoBalanceFailed' | 'LiquidityRestrictions' - | 'InsufficientBalance' - | 'ExistentialDeposit' + | 'MaxLocksExceeded' | 'KeepAlive' - | 'ExistingVestingSchedule' + | 'ExistentialDeposit' | 'DeadAccount' | 'TooManyReserves'; } - /** @name PalletTransactionPaymentReleases (86) */ - interface PalletTransactionPaymentReleases extends Enum { - readonly isV1Ancient: boolean; - readonly isV2: boolean; - readonly type: 'V1Ancient' | 'V2'; + /** @name PalletBridgeProposalVotes (529) */ + interface PalletBridgeProposalVotes extends Struct { + readonly votesFor: Vec; + readonly votesAgainst: Vec; + readonly status: PalletBridgeProposalStatus; + readonly expiry: u32; } - /** @name PalletSudoCall (87) */ - interface PalletSudoCall extends Enum { - readonly isSudo: boolean; - readonly asSudo: { - readonly call: Call; - } & Struct; - readonly isSudoUncheckedWeight: boolean; - readonly asSudoUncheckedWeight: { - readonly call: Call; - readonly weight: SpWeightsWeightV2Weight; - } & Struct; - readonly isSetKey: boolean; - readonly asSetKey: { - readonly new_: MultiAddress; - } & Struct; - readonly isSudoAs: boolean; - readonly asSudoAs: { - readonly who: MultiAddress; - readonly call: Call; - } & Struct; - readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs'; + /** @name PalletBridgeProposalStatus (530) */ + interface PalletBridgeProposalStatus extends Enum { + readonly isInitiated: boolean; + readonly isApproved: boolean; + readonly isRejected: boolean; + readonly type: 'Initiated' | 'Approved' | 'Rejected'; } - /** @name PalletParentchainCall (89) */ - interface PalletParentchainCall extends Enum { - readonly isSetBlock: boolean; - readonly asSetBlock: { - readonly header: SpRuntimeHeader; - } & Struct; - readonly type: 'SetBlock'; + /** @name PalletBridgeBridgeEvent (532) */ + interface PalletBridgeBridgeEvent extends Enum { + readonly isFungibleTransfer: boolean; + readonly asFungibleTransfer: ITuple<[u8, u64, U8aFixed, u128, Bytes]>; + readonly isNonFungibleTransfer: boolean; + readonly asNonFungibleTransfer: ITuple<[u8, u64, U8aFixed, Bytes, Bytes, Bytes]>; + readonly isGenericTransfer: boolean; + readonly asGenericTransfer: ITuple<[u8, u64, U8aFixed, Bytes]>; + readonly type: 'FungibleTransfer' | 'NonFungibleTransfer' | 'GenericTransfer'; } - /** @name SpRuntimeHeader (90) */ - interface SpRuntimeHeader extends Struct { - readonly parentHash: H256; - readonly number: Compact; - readonly stateRoot: H256; - readonly extrinsicsRoot: H256; - readonly digest: SpRuntimeDigest; + /** @name PalletBridgeError (533) */ + interface PalletBridgeError extends Enum { + readonly isThresholdNotSet: boolean; + readonly isInvalidChainId: boolean; + readonly isInvalidThreshold: boolean; + readonly isChainNotWhitelisted: boolean; + readonly isChainAlreadyWhitelisted: boolean; + readonly isResourceDoesNotExist: boolean; + readonly isRelayerAlreadyExists: boolean; + readonly isRelayerInvalid: boolean; + readonly isMustBeRelayer: boolean; + readonly isRelayerAlreadyVoted: boolean; + readonly isProposalAlreadyExists: boolean; + readonly isProposalDoesNotExist: boolean; + readonly isProposalNotComplete: boolean; + readonly isProposalAlreadyComplete: boolean; + readonly isProposalExpired: boolean; + readonly isFeeTooExpensive: boolean; + readonly isFeeDoesNotExist: boolean; + readonly isInsufficientBalance: boolean; + readonly isCannotPayAsFee: boolean; + readonly isNonceOverFlow: boolean; + readonly type: + | 'ThresholdNotSet' + | 'InvalidChainId' + | 'InvalidThreshold' + | 'ChainNotWhitelisted' + | 'ChainAlreadyWhitelisted' + | 'ResourceDoesNotExist' + | 'RelayerAlreadyExists' + | 'RelayerInvalid' + | 'MustBeRelayer' + | 'RelayerAlreadyVoted' + | 'ProposalAlreadyExists' + | 'ProposalDoesNotExist' + | 'ProposalNotComplete' + | 'ProposalAlreadyComplete' + | 'ProposalExpired' + | 'FeeTooExpensive' + | 'FeeDoesNotExist' + | 'InsufficientBalance' + | 'CannotPayAsFee' + | 'NonceOverFlow'; } - /** @name SpRuntimeBlakeTwo256 (91) */ - type SpRuntimeBlakeTwo256 = Null; + /** @name PalletBridgeTransferError (535) */ + interface PalletBridgeTransferError extends Enum { + readonly isInvalidCommand: boolean; + readonly isInvalidResourceId: boolean; + readonly isReachMaximumSupply: boolean; + readonly isOverFlow: boolean; + readonly type: 'InvalidCommand' | 'InvalidResourceId' | 'ReachMaximumSupply' | 'OverFlow'; + } - /** @name PalletIdentityManagementTeeCall (92) */ - interface PalletIdentityManagementTeeCall extends Enum { - readonly isSetUserShieldingKey: boolean; - readonly asSetUserShieldingKey: { - readonly who: AccountId32; - readonly key: U8aFixed; - readonly parentSs58Prefix: u16; - } & Struct; - readonly isSetChallengeCode: boolean; - readonly asSetChallengeCode: { - readonly who: AccountId32; - readonly identity: LitentryPrimitivesIdentity; - readonly code: U8aFixed; - } & Struct; - readonly isRemoveChallengeCode: boolean; - readonly asRemoveChallengeCode: { - readonly who: AccountId32; - readonly identity: LitentryPrimitivesIdentity; - } & Struct; - readonly isCreateIdentity: boolean; - readonly asCreateIdentity: { - readonly who: AccountId32; - readonly identity: LitentryPrimitivesIdentity; - readonly metadata: Option; - readonly creationRequestBlock: u32; - readonly parentSs58Prefix: u16; - } & Struct; - readonly isRemoveIdentity: boolean; - readonly asRemoveIdentity: { - readonly who: AccountId32; - readonly identity: LitentryPrimitivesIdentity; - } & Struct; - readonly isVerifyIdentity: boolean; - readonly asVerifyIdentity: { - readonly who: AccountId32; - readonly identity: LitentryPrimitivesIdentity; - readonly verificationRequestBlock: u32; - } & Struct; + /** @name PalletDrop3RewardPool (536) */ + interface PalletDrop3RewardPool extends Struct { + readonly id: u64; + readonly name: Bytes; + readonly owner: AccountId32; + readonly total: u128; + readonly remain: u128; + readonly createAt: u32; + readonly startAt: u32; + readonly endAt: u32; + readonly started: bool; + readonly approved: bool; + } + + /** @name PalletDrop3Error (538) */ + interface PalletDrop3Error extends Enum { + readonly isRequireAdmin: boolean; + readonly isRequireRewardPoolOwner: boolean; + readonly isRequireAdminOrRewardPoolOwner: boolean; + readonly isNoSuchRewardPool: boolean; + readonly isInsufficientReservedBalance: boolean; + readonly isInvalidTotalBalance: boolean; + readonly isInsufficientRemain: boolean; + readonly isInvalidProposedBlock: boolean; + readonly isRewardPoolUnapproved: boolean; + readonly isRewardPoolAlreadyApproved: boolean; + readonly isRewardPoolStopped: boolean; + readonly isRewardPoolRanTooEarly: boolean; + readonly isRewardPoolRanTooLate: boolean; + readonly isUnexpectedUnMovedAmount: boolean; + readonly isNoVacantPoolId: boolean; readonly type: - | 'SetUserShieldingKey' - | 'SetChallengeCode' - | 'RemoveChallengeCode' - | 'CreateIdentity' - | 'RemoveIdentity' - | 'VerifyIdentity'; + | 'RequireAdmin' + | 'RequireRewardPoolOwner' + | 'RequireAdminOrRewardPoolOwner' + | 'NoSuchRewardPool' + | 'InsufficientReservedBalance' + | 'InvalidTotalBalance' + | 'InsufficientRemain' + | 'InvalidProposedBlock' + | 'RewardPoolUnapproved' + | 'RewardPoolAlreadyApproved' + | 'RewardPoolStopped' + | 'RewardPoolRanTooEarly' + | 'RewardPoolRanTooLate' + | 'UnexpectedUnMovedAmount' + | 'NoVacantPoolId'; } - /** @name PalletSudoError (95) */ - interface PalletSudoError extends Enum { - readonly isRequireSudo: boolean; - readonly type: 'RequireSudo'; + /** @name PalletExtrinsicFilterError (539) */ + interface PalletExtrinsicFilterError extends Enum { + readonly isCannotBlock: boolean; + readonly isCannotConvertToString: boolean; + readonly isExtrinsicAlreadyBlocked: boolean; + readonly isExtrinsicNotBlocked: boolean; + readonly type: 'CannotBlock' | 'CannotConvertToString' | 'ExtrinsicAlreadyBlocked' | 'ExtrinsicNotBlocked'; } - /** @name PalletIdentityManagementTeeIdentityContext (97) */ - interface PalletIdentityManagementTeeIdentityContext extends Struct { - readonly metadata: Option; - readonly creationRequestBlock: Option; - readonly verificationRequestBlock: Option; - readonly isVerified: bool; + /** @name PalletIdentityManagementError (540) */ + interface PalletIdentityManagementError extends Enum { + readonly isDelegateeNotExist: boolean; + readonly isUnauthorisedUser: boolean; + readonly type: 'DelegateeNotExist' | 'UnauthorisedUser'; } - /** @name PalletIdentityManagementTeeError (99) */ - interface PalletIdentityManagementTeeError extends Enum { - readonly isChallengeCodeNotExist: boolean; + /** @name PalletAssetManagerError (541) */ + interface PalletAssetManagerError extends Enum { + readonly isAssetAlreadyExists: boolean; + readonly isAssetTypeDoesNotExist: boolean; + readonly isAssetIdDoesNotExist: boolean; + readonly isDefaultAssetTypeRemoved: boolean; + readonly isAssetIdLimitReached: boolean; + readonly type: + | 'AssetAlreadyExists' + | 'AssetTypeDoesNotExist' + | 'AssetIdDoesNotExist' + | 'DefaultAssetTypeRemoved' + | 'AssetIdLimitReached'; + } + + /** @name PalletVcManagementVcContext (542) */ + interface PalletVcManagementVcContext extends Struct { + readonly subject: AccountId32; + readonly assertion: CorePrimitivesAssertion; + readonly hash_: H256; + readonly status: PalletVcManagementVcContextStatus; + } + + /** @name PalletVcManagementVcContextStatus (543) */ + interface PalletVcManagementVcContextStatus extends Enum { + readonly isActive: boolean; + readonly isDisabled: boolean; + readonly type: 'Active' | 'Disabled'; + } + + /** @name PalletVcManagementSchemaVcSchema (544) */ + interface PalletVcManagementSchemaVcSchema extends Struct { + readonly id: Bytes; + readonly author: AccountId32; + readonly content: Bytes; + readonly status: PalletVcManagementVcContextStatus; + } + + /** @name PalletVcManagementError (546) */ + interface PalletVcManagementError extends Enum { + readonly isVcAlreadyExists: boolean; + readonly isVcNotExist: boolean; + readonly isVcSubjectMismatch: boolean; + readonly isVcAlreadyDisabled: boolean; + readonly isRequireAdmin: boolean; + readonly isSchemaNotExists: boolean; + readonly isSchemaAlreadyDisabled: boolean; + readonly isSchemaAlreadyActivated: boolean; + readonly isSchemaIndexOverFlow: boolean; + readonly isLengthMismatch: boolean; + readonly type: + | 'VcAlreadyExists' + | 'VcNotExist' + | 'VcSubjectMismatch' + | 'VcAlreadyDisabled' + | 'RequireAdmin' + | 'SchemaNotExists' + | 'SchemaAlreadyDisabled' + | 'SchemaAlreadyActivated' + | 'SchemaIndexOverFlow' + | 'LengthMismatch'; + } + + /** @name PalletGroupError (547) */ + interface PalletGroupError extends Enum { + readonly isGroupMemberAlreadyExists: boolean; + readonly isGroupMemberInvalid: boolean; + readonly type: 'GroupMemberAlreadyExists' | 'GroupMemberInvalid'; + } + + /** @name TeerexPrimitivesEnclave (549) */ + interface TeerexPrimitivesEnclave extends Struct { + readonly pubkey: AccountId32; + readonly mrEnclave: U8aFixed; + readonly timestamp: u64; + readonly url: Bytes; + readonly shieldingKey: Option; + readonly vcPubkey: Option; + readonly sgxMode: TeerexPrimitivesSgxBuildMode; + readonly sgxMetadata: TeerexPrimitivesSgxEnclaveMetadata; + } + + /** @name TeerexPrimitivesSgxBuildMode (550) */ + interface TeerexPrimitivesSgxBuildMode extends Enum { + readonly isDebug: boolean; + readonly isProduction: boolean; + readonly type: 'Debug' | 'Production'; + } + + /** @name TeerexPrimitivesSgxEnclaveMetadata (551) */ + interface TeerexPrimitivesSgxEnclaveMetadata extends Struct { + readonly quote: Bytes; + readonly quoteSig: Bytes; + readonly quoteCert: Bytes; + } + + /** @name TeerexPrimitivesQuotingEnclave (552) */ + interface TeerexPrimitivesQuotingEnclave extends Struct { + readonly issueDate: u64; + readonly nextUpdate: u64; + readonly miscselect: U8aFixed; + readonly miscselectMask: U8aFixed; + readonly attributes: U8aFixed; + readonly attributesMask: U8aFixed; + readonly mrsigner: U8aFixed; + readonly isvprodid: u16; + readonly tcb: Vec; + } + + /** @name TeerexPrimitivesQeTcb (554) */ + interface TeerexPrimitivesQeTcb extends Struct { + readonly isvsvn: u16; + } + + /** @name TeerexPrimitivesTcbInfoOnChain (555) */ + interface TeerexPrimitivesTcbInfoOnChain extends Struct { + readonly issueDate: u64; + readonly nextUpdate: u64; + readonly tcbLevels: Vec; + } + + /** @name TeerexPrimitivesTcbVersionStatus (557) */ + interface TeerexPrimitivesTcbVersionStatus extends Struct { + readonly cpusvn: U8aFixed; + readonly pcesvn: u16; + } + + /** @name PalletTeerexError (558) */ + interface PalletTeerexError extends Enum { + readonly isRequireAdmin: boolean; + readonly isEnclaveSignerDecodeError: boolean; + readonly isSenderIsNotAttestedEnclave: boolean; + readonly isRemoteAttestationVerificationFailed: boolean; + readonly isRemoteAttestationTooOld: boolean; + readonly isSgxModeNotAllowed: boolean; + readonly isEnclaveIsNotRegistered: boolean; + readonly isWrongMrenclaveForBondingAccount: boolean; + readonly isWrongMrenclaveForShard: boolean; + readonly isEnclaveUrlTooLong: boolean; + readonly isRaReportTooLong: boolean; + readonly isEmptyEnclaveRegistry: boolean; + readonly isScheduledEnclaveNotExist: boolean; + readonly isEnclaveNotInSchedule: boolean; + readonly isCollateralInvalid: boolean; + readonly isTooManyTopics: boolean; + readonly isDataTooLong: boolean; + readonly type: + | 'RequireAdmin' + | 'EnclaveSignerDecodeError' + | 'SenderIsNotAttestedEnclave' + | 'RemoteAttestationVerificationFailed' + | 'RemoteAttestationTooOld' + | 'SgxModeNotAllowed' + | 'EnclaveIsNotRegistered' + | 'WrongMrenclaveForBondingAccount' + | 'WrongMrenclaveForShard' + | 'EnclaveUrlTooLong' + | 'RaReportTooLong' + | 'EmptyEnclaveRegistry' + | 'ScheduledEnclaveNotExist' + | 'EnclaveNotInSchedule' + | 'CollateralInvalid' + | 'TooManyTopics' + | 'DataTooLong'; + } + + /** @name SidechainPrimitivesSidechainBlockConfirmation (559) */ + interface SidechainPrimitivesSidechainBlockConfirmation extends Struct { + readonly blockNumber: u64; + readonly blockHeaderHash: H256; + } + + /** @name PalletSidechainError (560) */ + interface PalletSidechainError extends Enum { + readonly isReceivedUnexpectedSidechainBlock: boolean; + readonly isInvalidNextFinalizationCandidateBlockNumber: boolean; + readonly type: 'ReceivedUnexpectedSidechainBlock' | 'InvalidNextFinalizationCandidateBlockNumber'; + } + + /** @name PalletTeeracleError (563) */ + interface PalletTeeracleError extends Enum { + readonly isInvalidCurrency: boolean; + readonly isReleaseWhitelistOverflow: boolean; + readonly isReleaseNotWhitelisted: boolean; + readonly isReleaseAlreadyWhitelisted: boolean; + readonly isTradingPairStringTooLong: boolean; + readonly isOracleDataNameStringTooLong: boolean; + readonly isDataSourceStringTooLong: boolean; + readonly isOracleBlobTooBig: boolean; + readonly type: + | 'InvalidCurrency' + | 'ReleaseWhitelistOverflow' + | 'ReleaseNotWhitelisted' + | 'ReleaseAlreadyWhitelisted' + | 'TradingPairStringTooLong' + | 'OracleDataNameStringTooLong' + | 'DataSourceStringTooLong' + | 'OracleBlobTooBig'; + } + + /** @name PalletIdentityManagementMockError (565) */ + interface PalletIdentityManagementMockError extends Enum { + readonly isDelegateeNotExist: boolean; + readonly isUnauthorisedUser: boolean; + readonly isShieldingKeyDecryptionFailed: boolean; + readonly isWrongDecodedType: boolean; readonly isIdentityAlreadyVerified: boolean; readonly isIdentityNotExist: boolean; - readonly isIdentityNotCreated: boolean; readonly isCreatePrimeIdentityNotAllowed: boolean; + readonly isShieldingKeyNotExist: boolean; readonly isVerificationRequestTooEarly: boolean; readonly isVerificationRequestTooLate: boolean; - readonly isRemovePrimeIdentityDisallowed: boolean; + readonly isVerifySubstrateSignatureFailed: boolean; + readonly isRecoverSubstratePubkeyFailed: boolean; + readonly isVerifyEvmSignatureFailed: boolean; + readonly isCreationRequestBlockZero: boolean; + readonly isChallengeCodeNotExist: boolean; + readonly isWrongSignatureType: boolean; + readonly isWrongIdentityType: boolean; + readonly isRecoverEvmAddressFailed: boolean; + readonly isUnexpectedMessage: boolean; readonly type: - | 'ChallengeCodeNotExist' + | 'DelegateeNotExist' + | 'UnauthorisedUser' + | 'ShieldingKeyDecryptionFailed' + | 'WrongDecodedType' | 'IdentityAlreadyVerified' | 'IdentityNotExist' - | 'IdentityNotCreated' | 'CreatePrimeIdentityNotAllowed' + | 'ShieldingKeyNotExist' | 'VerificationRequestTooEarly' | 'VerificationRequestTooLate' - | 'RemovePrimeIdentityDisallowed'; + | 'VerifySubstrateSignatureFailed' + | 'RecoverSubstratePubkeyFailed' + | 'VerifyEvmSignatureFailed' + | 'CreationRequestBlockZero' + | 'ChallengeCodeNotExist' + | 'WrongSignatureType' + | 'WrongIdentityType' + | 'RecoverEvmAddressFailed' + | 'UnexpectedMessage'; + } + + /** @name PalletSudoError (566) */ + interface PalletSudoError extends Enum { + readonly isRequireSudo: boolean; + readonly type: 'RequireSudo'; } - /** @name SpRuntimeMultiSignature (101) */ + /** @name SpRuntimeMultiSignature (568) */ interface SpRuntimeMultiSignature extends Enum { readonly isEd25519: boolean; readonly asEd25519: SpCoreEd25519Signature; @@ -776,36 +6921,33 @@ declare module '@polkadot/types/lookup' { readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa'; } - /** @name SpCoreEd25519Signature (102) */ + /** @name SpCoreEd25519Signature (569) */ interface SpCoreEd25519Signature extends U8aFixed {} - /** @name SpCoreSr25519Signature (104) */ + /** @name SpCoreSr25519Signature (571) */ interface SpCoreSr25519Signature extends U8aFixed {} - /** @name SpCoreEcdsaSignature (105) */ + /** @name SpCoreEcdsaSignature (572) */ interface SpCoreEcdsaSignature extends U8aFixed {} - /** @name FrameSystemExtensionsCheckNonZeroSender (108) */ + /** @name FrameSystemExtensionsCheckNonZeroSender (575) */ type FrameSystemExtensionsCheckNonZeroSender = Null; - /** @name FrameSystemExtensionsCheckSpecVersion (109) */ + /** @name FrameSystemExtensionsCheckSpecVersion (576) */ type FrameSystemExtensionsCheckSpecVersion = Null; - /** @name FrameSystemExtensionsCheckTxVersion (110) */ + /** @name FrameSystemExtensionsCheckTxVersion (577) */ type FrameSystemExtensionsCheckTxVersion = Null; - /** @name FrameSystemExtensionsCheckGenesis (111) */ + /** @name FrameSystemExtensionsCheckGenesis (578) */ type FrameSystemExtensionsCheckGenesis = Null; - /** @name FrameSystemExtensionsCheckNonce (114) */ + /** @name FrameSystemExtensionsCheckNonce (581) */ interface FrameSystemExtensionsCheckNonce extends Compact {} - /** @name FrameSystemExtensionsCheckWeight (115) */ + /** @name FrameSystemExtensionsCheckWeight (582) */ type FrameSystemExtensionsCheckWeight = Null; - /** @name PalletTransactionPaymentChargeTransactionPayment (116) */ + /** @name PalletTransactionPaymentChargeTransactionPayment (583) */ interface PalletTransactionPaymentChargeTransactionPayment extends Compact {} - - /** @name ItaSgxRuntimeRuntime (117) */ - type ItaSgxRuntimeRuntime = Null; } // declare module From 62078af3e13d9fbbf94e4d34a9391c9bd70fc898 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Tue, 16 May 2023 20:20:40 +0800 Subject: [PATCH 02/25] change gen-type --- tee-worker/ts-tests/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tee-worker/ts-tests/package.json b/tee-worker/ts-tests/package.json index a22c1eb846..cda49bc6b8 100644 --- a/tee-worker/ts-tests/package.json +++ b/tee-worker/ts-tests/package.json @@ -6,8 +6,8 @@ "gen-meta:sidechain": "../bin/integritee-cli print-sgx-metadata-raw > litentry-sidechain-metadata.json", "gen-meta:parachain": "curl -s -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9933 > litentry-parachain-metadata.json", "gen-type": "yarn gen-type:defs && yarn gen-type:meta && yarn format", - "gen-type:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package . --input ./interfaces --endpoint ./litentry-sidechain-metadata.json", - "gen-type:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package . --output ./interfaces --endpoint ./litentry-sidechain-metadata.json", + "gen-type:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package . --input ./interfaces --endpoint ./litentry-parachain-metadata.json", + "gen-type:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package . --output ./interfaces --endpoint ./litentry-parachain-metadata.json", "test-identity:staging": "cross-env NODE_ENV=staging mocha --exit --sort -r ts-node/register 'identity.test.ts'", "test-identity:local": "cross-env NODE_ENV=local mocha --exit --sort -r ts-node/register 'identity.test.ts'", "test-resuming-worker:staging": "cross-env NODE_ENV=staging mocha --exit --sort -r ts-node/register 'resuming_worker.test.ts'", From 6baea6783229ac4c23bbe4267fbe4b623832ee5b Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Tue, 16 May 2023 20:21:03 +0800 Subject: [PATCH 03/25] tsconfig.json --- tee-worker/ts-tests/tsconfig.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tee-worker/ts-tests/tsconfig.json diff --git a/tee-worker/ts-tests/tsconfig.json b/tee-worker/ts-tests/tsconfig.json new file mode 100644 index 0000000000..999ac9898c --- /dev/null +++ b/tee-worker/ts-tests/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + // this is specific with augmented overrides + "paths": { + "@polkadot/api/augment": ["src/interfaces/augment-api.ts"], + // replace the augmented types with our own, as generated from definitions + "@polkadot/types/augment": ["src/interfaces/augment-types.ts"] + }, + // some other options, whatever you want for your environment + "target": "es2017", + "module": "commonjs", + "strict": true, + "noUnusedLocals": true, + "moduleResolution": "node", + "esModuleInterop": true, + "baseUrl": "." + }, + "exclude": ["node_modules"] +} From 01c6829171b92e80d7ff038058d61ac23baafdcc Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Tue, 16 May 2023 20:23:11 +0800 Subject: [PATCH 04/25] add env --- tee-worker/ts-tests/common/utils.ts | 13 +++++++------ tee-worker/ts-tests/identity.test.ts | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/tee-worker/ts-tests/common/utils.ts b/tee-worker/ts-tests/common/utils.ts index 3604237452..d98942d847 100644 --- a/tee-worker/ts-tests/common/utils.ts +++ b/tee-worker/ts-tests/common/utils.ts @@ -24,7 +24,6 @@ import { blake2AsHex, cryptoWaitReady, xxhashAsU8a } from '@polkadot/util-crypto import { Metadata } from '@polkadot/types'; import { SiLookupTypeId } from '@polkadot/types/interfaces'; import { KeyringPair } from '@polkadot/keyring/types'; -import { Codec } from '@polkadot/types/types'; import { HexString } from '@polkadot/util/types'; import { hexToU8a, u8aToHex, u8aConcat } from '@polkadot/util'; import { KeyObject } from 'crypto'; @@ -353,18 +352,16 @@ export async function buildStorageHelper( if (!storageEntry) { throw new Error('Can not find the storage entry from metadata'); } - let storageKey, valueType; + let storageKey; if (storageEntry.type.isPlain) { storageKey = buildStorageKey(metadata, prefix, method); - valueType = metadata.registry.createLookupType(storageEntry.type.asPlain); } else if (storageEntry.type.isMap) { - const { hashers, key, value } = storageEntry.type.asMap; + const { hashers, key } = storageEntry.type.asMap; if (input.length != hashers.length) { throw new Error('The `input` param is not correct'); } storageKey = buildStorageKey(metadata, prefix, method, key, hashers, input); - valueType = metadata.registry.createLookupType(value); } else { throw new Error('Only support plain and map type'); } @@ -751,7 +748,11 @@ export async function assertInitialIDGraphCreated(api: ApiPromise, signer: Keyri // check identity in idgraph const expected_identity = api.createType( 'LitentryIdentity', - await buildIdentityHelper(u8aToHex(signer.addressRaw), 'LitentryRococo', 'Substrate') + await buildIdentityHelper( + u8aToHex(signer.addressRaw), + process.env.NODE_ENV === 'local' ? 'TestNet' : 'LitentryRococo', + 'Substrate' + ) ) as LitentryIdentity; assert.isTrue(isEqual(event.idGraph[0][0], expected_identity)); // check identityContext in idgraph diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index 90bb88226c..6745fe85ad 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -115,7 +115,7 @@ describeLitentry('Test Identity', 0, (context) => { // the main address should be already inside the IDGraph const main_identity = await buildIdentityHelper( u8aToHex(context.substrateWallet.alice.addressRaw), - 'LitentryRococo', + process.env.NODE_ENV === 'local' ? 'TestNet' : 'LitentryRococo', 'Substrate' ); const identity_hex = context.api.createType('LitentryIdentity', main_identity).toHex(); @@ -570,7 +570,7 @@ describeLitentry('Test Identity', 0, (context) => { // remove prime identity const substratePrimeIdentity = await buildIdentityHelper( u8aToHex(context.substrateWallet.alice.addressRaw), - 'LitentryRococo', + process.env.NODE_ENV === 'local' ? 'TestNet' : 'LitentryRococo', 'Substrate' ); From cb4ebbcc981b0d311cc7e9d6babb7f4a4be6f577 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Tue, 16 May 2023 23:22:58 +0800 Subject: [PATCH 05/25] upgrade typegen && re-generate --- .../ts-tests/interfaces/augment-api-consts.ts | 9 -- .../ts-tests/interfaces/augment-api-events.ts | 31 ---- .../ts-tests/interfaces/augment-api-query.ts | 80 ----------- .../ts-tests/interfaces/augment-api-rpc.ts | 33 +++-- .../ts-tests/interfaces/augment-api-tx.ts | 31 ---- tee-worker/ts-tests/interfaces/augment-api.ts | 14 +- .../ts-tests/interfaces/augment-types.ts | 136 ++++++++---------- tee-worker/ts-tests/package.json | 4 +- 8 files changed, 93 insertions(+), 245 deletions(-) diff --git a/tee-worker/ts-tests/interfaces/augment-api-consts.ts b/tee-worker/ts-tests/interfaces/augment-api-consts.ts index 1e9cf7b094..4940c63416 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-consts.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-consts.ts @@ -9,15 +9,6 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types'; import type { Option, U8aFixed, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { Codec } from '@polkadot/types-codec/types'; import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime'; -import type { - FrameSupportPalletId, - FrameSystemLimitsBlockLength, - FrameSystemLimitsBlockWeights, - SpVersionRuntimeVersion, - SpWeightsRuntimeDbWeight, - SpWeightsWeightV2Weight, - XcmV3MultiLocation, -} from '@polkadot/types/lookup'; export type __AugmentedConst = AugmentedConst; diff --git a/tee-worker/ts-tests/interfaces/augment-api-events.ts b/tee-worker/ts-tests/interfaces/augment-api-events.ts index 86e5ada37d..5442e0bac1 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-events.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-events.ts @@ -9,37 +9,6 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types'; import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { ITuple } from '@polkadot/types-codec/types'; import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; -import type { - CorePrimitivesAssertion, - CorePrimitivesErrorErrorDetail, - CorePrimitivesKeyAesOutput, - FrameSupportDispatchDispatchInfo, - FrameSupportTokensMiscBalanceStatus, - MockTeePrimitivesIdentity, - PalletAssetManagerAssetMetadata, - PalletDemocracyMetadataOwner, - PalletDemocracyVoteAccountVote, - PalletDemocracyVoteThreshold, - PalletExtrinsicFilterOperationalMode, - PalletIdentityManagementMockIdentityContext, - PalletMultisigTimepoint, - PalletParachainStakingDelegationRequestsCancelledScheduledRequest, - PalletParachainStakingDelegatorAdded, - RococoParachainRuntimeProxyType, - RuntimeCommonXcmImplCurrencyId, - SpRuntimeDispatchError, - SpWeightsWeightV2Weight, - SubstrateFixedFixedU64, - XcmV3MultiAsset, - XcmV3MultiLocation, - XcmV3MultiassetMultiAssets, - XcmV3Response, - XcmV3TraitsError, - XcmV3TraitsOutcome, - XcmV3Xcm, - XcmVersionedMultiAssets, - XcmVersionedMultiLocation, -} from '@polkadot/types/lookup'; export type __AugmentedEvent = AugmentedEvent; diff --git a/tee-worker/ts-tests/interfaces/augment-api-query.ts b/tee-worker/ts-tests/interfaces/augment-api-query.ts index 5a2b9b337b..545d2835d5 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-query.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-query.ts @@ -23,86 +23,6 @@ import type { } from '@polkadot/types-codec'; import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; import type { AccountId32, Call, H256, Perbill } from '@polkadot/types/interfaces/runtime'; -import type { - CumulusPalletDmpQueueConfigData, - CumulusPalletDmpQueuePageIndexData, - CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, - CumulusPalletXcmpQueueInboundChannelDetails, - CumulusPalletXcmpQueueOutboundChannelDetails, - CumulusPalletXcmpQueueQueueConfigData, - FrameSupportDispatchPerDispatchClassWeight, - FrameSupportPreimagesBounded, - FrameSystemAccountInfo, - FrameSystemEventRecord, - FrameSystemLastRuntimeUpgradeInfo, - FrameSystemPhase, - MockTeePrimitivesIdentity, - OrmlTokensAccountData, - OrmlTokensBalanceLock, - OrmlTokensReserveData, - PalletAssetManagerAssetMetadata, - PalletBalancesAccountData, - PalletBalancesBalanceLock, - PalletBalancesReserveData, - PalletBountiesBounty, - PalletBridgeBridgeEvent, - PalletBridgeProposalVotes, - PalletCollectiveVotes, - PalletDemocracyMetadataOwner, - PalletDemocracyReferendumInfo, - PalletDemocracyVoteThreshold, - PalletDemocracyVoteVoting, - PalletDrop3RewardPool, - PalletExtrinsicFilterOperationalMode, - PalletIdentityManagementMockIdentityContext, - PalletIdentityRegistrarInfo, - PalletIdentityRegistration, - PalletMultisigMultisig, - PalletParachainStakingAutoCompoundAutoCompoundConfig, - PalletParachainStakingBond, - PalletParachainStakingCandidateMetadata, - PalletParachainStakingCollatorSnapshot, - PalletParachainStakingDelayedPayout, - PalletParachainStakingDelegationRequestsScheduledRequest, - PalletParachainStakingDelegations, - PalletParachainStakingDelegator, - PalletParachainStakingInflationInflationInfo, - PalletParachainStakingParachainBondConfig, - PalletParachainStakingRoundInfo, - PalletParachainStakingSetOrderedSet, - PalletPreimageRequestStatus, - PalletProxyAnnouncement, - PalletProxyProxyDefinition, - PalletSchedulerScheduled, - PalletTipsOpenTip, - PalletTransactionPaymentReleases, - PalletTreasuryProposal, - PalletVcManagementSchemaVcSchema, - PalletVcManagementVcContext, - PalletVestingReleases, - PalletVestingVestingInfo, - PalletXcmQueryStatus, - PalletXcmRemoteLockedFungibleRecord, - PalletXcmVersionMigrationStage, - PolkadotCorePrimitivesOutboundHrmpMessage, - PolkadotPrimitivesV2AbridgedHostConfiguration, - PolkadotPrimitivesV2PersistedValidationData, - PolkadotPrimitivesV2UpgradeRestriction, - RococoParachainRuntimeSessionKeys, - RuntimeCommonXcmImplCurrencyId, - SidechainPrimitivesSidechainBlockConfirmation, - SpConsensusAuraSr25519AppSr25519Public, - SpCoreCryptoKeyTypeId, - SpRuntimeDigest, - SpTrieStorageProof, - SpWeightsWeightV2Weight, - SubstrateFixedFixedU64, - TeerexPrimitivesEnclave, - TeerexPrimitivesQuotingEnclave, - TeerexPrimitivesTcbInfoOnChain, - XcmVersionedAssetId, - XcmVersionedMultiLocation, -} from '@polkadot/types/lookup'; import type { Observable } from '@polkadot/types/types'; export type __AugmentedQuery = AugmentedQuery unknown>; diff --git a/tee-worker/ts-tests/interfaces/augment-api-rpc.ts b/tee-worker/ts-tests/interfaces/augment-api-rpc.ts index fab673626c..480cfda17c 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-rpc.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-rpc.ts @@ -61,7 +61,7 @@ import type { JustificationNotification, ReportedRoundStates, } from '@polkadot/types/interfaces/grandpa'; -import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr'; +import type { MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr'; import type { StorageKind } from '@polkadot/types/interfaces/offchain'; import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment'; import type { RpcMethods } from '@polkadot/types/interfaces/rpc'; @@ -659,22 +659,35 @@ declare module '@polkadot/rpc-core/types/jsonrpc' { }; mmr: { /** - * Generate MMR proof for the given leaf indices. + * Generate MMR proof for the given block numbers. **/ - generateBatchProof: AugmentedRpc< + generateProof: AugmentedRpc< ( - leafIndices: Vec | (u64 | AnyNumber | Uint8Array)[], + blockNumbers: Vec | (u64 | AnyNumber | Uint8Array)[], + bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array - ) => Observable + ) => Observable >; /** - * Generate MMR proof for given leaf index. + * Get the MMR root hash for the current best block. **/ - generateProof: AugmentedRpc< + root: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable>; + /** + * Verify an MMR proof + **/ + verifyProof: AugmentedRpc< ( - leafIndex: u64 | AnyNumber | Uint8Array, - at?: BlockHash | string | Uint8Array - ) => Observable + proof: MmrLeafBatchProof | { blockHash?: any; leaves?: any; proof?: any } | string | Uint8Array + ) => Observable + >; + /** + * Verify an MMR proof statelessly given an mmr_root + **/ + verifyProofStateless: AugmentedRpc< + ( + root: MmrHash | string | Uint8Array, + proof: MmrLeafBatchProof | { blockHash?: any; leaves?: any; proof?: any } | string | Uint8Array + ) => Observable >; }; net: { diff --git a/tee-worker/ts-tests/interfaces/augment-api-tx.ts b/tee-worker/ts-tests/interfaces/augment-api-tx.ts index 5277b0979a..c75aeaf42d 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-tx.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-tx.ts @@ -28,37 +28,6 @@ import type { } from '@polkadot/types-codec'; import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; -import type { - CorePrimitivesAssertion, - CorePrimitivesErrorImpError, - CorePrimitivesErrorVcmpError, - CorePrimitivesKeyAesOutput, - CumulusPrimitivesParachainInherentParachainInherentData, - FrameSupportPreimagesBounded, - PalletAssetManagerAssetMetadata, - PalletDemocracyConviction, - PalletDemocracyMetadataOwner, - PalletDemocracyVoteAccountVote, - PalletExtrinsicFilterOperationalMode, - PalletIdentityBitFlags, - PalletIdentityIdentityInfo, - PalletIdentityJudgement, - PalletMultisigTimepoint, - PalletVestingVestingInfo, - RococoParachainRuntimeOriginCaller, - RococoParachainRuntimeProxyType, - RococoParachainRuntimeSessionKeys, - RuntimeCommonXcmImplCurrencyId, - SpWeightsWeightV2Weight, - SubstrateFixedFixedU64, - TeerexPrimitivesRequest, - XcmV3MultiLocation, - XcmV3WeightLimit, - XcmVersionedMultiAsset, - XcmVersionedMultiAssets, - XcmVersionedMultiLocation, - XcmVersionedXcm, -} from '@polkadot/types/lookup'; export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>; export type __SubmittableExtrinsic = SubmittableExtrinsic; diff --git a/tee-worker/ts-tests/interfaces/augment-api.ts b/tee-worker/ts-tests/interfaces/augment-api.ts index 7cafd228bd..53c9c77017 100644 --- a/tee-worker/ts-tests/interfaces/augment-api.ts +++ b/tee-worker/ts-tests/interfaces/augment-api.ts @@ -1,10 +1,10 @@ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit /* eslint-disable */ -import './augment-api-consts'; -import './augment-api-errors'; -import './augment-api-events'; -import './augment-api-query'; -import './augment-api-tx'; -import './augment-api-rpc'; -import './augment-api-runtime'; +import './augment-api-consts.js'; +import './augment-api-errors.js'; +import './augment-api-events.js'; +import './augment-api-query.js'; +import './augment-api-tx.js'; +import './augment-api-rpc.js'; +import './augment-api-runtime.js'; diff --git a/tee-worker/ts-tests/interfaces/augment-types.ts b/tee-worker/ts-tests/interfaces/augment-types.ts index 939dbd80ba..a78631916d 100644 --- a/tee-worker/ts-tests/interfaces/augment-types.ts +++ b/tee-worker/ts-tests/interfaces/augment-types.ts @@ -5,44 +5,6 @@ // this is required to allow for ambient/previous definitions import '@polkadot/types/types/registry'; -import type { - Address20, - Address32, - Assertion, - DirectRequestStatus, - DiscordValidationData, - EvmIdentity, - EvmNetwork, - GenericEventWithAccount, - Getter, - IdentityContext, - IdentityGenericEvent, - IdentityMultiSignature, - IdentityString, - LitentryIdentity, - LitentryValidationData, - PublicGetter, - Request, - ShardIdentifier, - SubstrateIdentity, - SubstrateNetwork, - TrustedCall, - TrustedCallSigned, - TrustedGetter, - TrustedGetterSigned, - TrustedOperation, - TrustedOperationStatus, - TwitterValidationData, - UserShieldingKeyType, - VCRequested, - Web2Identity, - Web2Network, - Web2ValidationData, - Web3CommonValidationData, - Web3ValidationData, - WorkerRpcReturnString, - WorkerRpcReturnValue, -} from './identity'; import type { Data, StorageKey } from '@polkadot/types'; import type { BitVec, @@ -56,6 +18,7 @@ import type { I32, I64, I8, + ISize, Json, Null, OptionBool, @@ -78,6 +41,7 @@ import type { i32, i64, i8, + isize, u128, u16, u256, @@ -144,11 +108,13 @@ import type { import type { BeefyAuthoritySet, BeefyCommitment, + BeefyEquivocationProof, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefyPayloadId, BeefySignedCommitment, + BeefyVoteMessage, MmrRootHash, ValidatorSet, ValidatorSetId, @@ -429,6 +395,7 @@ import type { SignerPayload, Sr25519Signature, } from '@polkadot/types/interfaces/extrinsics'; +import type { FungiblesAccessError } from '@polkadot/types/interfaces/fungibles'; import type { AssetOptions, Owner, @@ -471,6 +438,18 @@ import type { StoredPendingChange, StoredState, } from '@polkadot/types/interfaces/grandpa'; +import type { + IdentityFields, + IdentityInfo, + IdentityInfoAdditional, + IdentityInfoTo198, + IdentityJudgement, + RegistrarIndex, + RegistrarInfo, + Registration, + RegistrationJudgement, + RegistrationTo198, +} from '@polkadot/types/interfaces/identity'; import type { AuthIndex, AuthoritySignature, @@ -522,6 +501,7 @@ import type { MetadataV12, MetadataV13, MetadataV14, + MetadataV15, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, @@ -544,10 +524,15 @@ import type { PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, + PalletMetadataV15, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, + RuntimeApiMetadataLatest, + RuntimeApiMetadataV15, + RuntimeApiMethodMetadataV15, + RuntimeApiMethodParamMetadataV15, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, @@ -588,13 +573,15 @@ import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, + MmrHash, MmrLeafBatchProof, MmrLeafIndex, MmrLeafProof, MmrNodeIndex, MmrProof, } from '@polkadot/types/interfaces/mmr'; -import type { NpApiError } from '@polkadot/types/interfaces/nompools'; +import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts'; +import type { NpApiError, NpPoolId } from '@polkadot/types/interfaces/nompools'; import type { StorageKind } from '@polkadot/types/interfaces/offchain'; import type { DeferredOffenceOf, @@ -640,6 +627,9 @@ import type { DisputeStatementSet, DoubleVoteReport, DownwardMessage, + ExecutorParam, + ExecutorParams, + ExecutorParamsHash, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, @@ -686,6 +676,8 @@ import type { ParathreadEntry, PersistedValidationData, PvfCheckStatement, + PvfExecTimeoutKind, + PvfPrepTimeoutKind, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, @@ -1230,8 +1222,6 @@ declare module '@polkadot/types/types/registry' { ActiveIndex: ActiveIndex; ActiveRecovery: ActiveRecovery; Address: Address; - Address20: Address20; - Address32: Address32; AliveContractInfo: AliveContractInfo; AllowedSlots: AllowedSlots; AnySignature: AnySignature; @@ -1241,7 +1231,6 @@ declare module '@polkadot/types/types/registry' { ApprovalFlag: ApprovalFlag; Approvals: Approvals; ArithmeticError: ArithmeticError; - Assertion: Assertion; AssetApproval: AssetApproval; AssetApprovalKey: AssetApprovalKey; AssetBalance: AssetBalance; @@ -1285,12 +1274,14 @@ declare module '@polkadot/types/types/registry' { BalanceStatus: BalanceStatus; BeefyAuthoritySet: BeefyAuthoritySet; BeefyCommitment: BeefyCommitment; + BeefyEquivocationProof: BeefyEquivocationProof; BeefyId: BeefyId; BeefyKey: BeefyKey; BeefyNextAuthoritySet: BeefyNextAuthoritySet; BeefyPayload: BeefyPayload; BeefyPayloadId: BeefyPayloadId; BeefySignedCommitment: BeefySignedCommitment; + BeefyVoteMessage: BeefyVoteMessage; BenchmarkBatch: BenchmarkBatch; BenchmarkConfig: BenchmarkConfig; BenchmarkList: BenchmarkList; @@ -1466,8 +1457,6 @@ declare module '@polkadot/types/types/registry' { Digest: Digest; DigestItem: DigestItem; DigestOf: DigestOf; - DirectRequestStatus: DirectRequestStatus; - DiscordValidationData: DiscordValidationData; DispatchClass: DispatchClass; DispatchError: DispatchError; DispatchErrorModule: DispatchErrorModule; @@ -1572,11 +1561,12 @@ declare module '@polkadot/types/types/registry' { EvmAccount: EvmAccount; EvmCallInfo: EvmCallInfo; EvmCreateInfo: EvmCreateInfo; - EvmIdentity: EvmIdentity; EvmLog: EvmLog; - EvmNetwork: EvmNetwork; EvmVicinity: EvmVicinity; ExecReturnValue: ExecReturnValue; + ExecutorParam: ExecutorParam; + ExecutorParams: ExecutorParams; + ExecutorParamsHash: ExecutorParamsHash; ExitError: ExitError; ExitFatal: ExitFatal; ExitReason: ExitReason; @@ -1637,9 +1627,8 @@ declare module '@polkadot/types/types/registry' { FungibilityV0: FungibilityV0; FungibilityV1: FungibilityV1; FungibilityV2: FungibilityV2; + FungiblesAccessError: FungiblesAccessError; Gas: Gas; - GenericEventWithAccount: GenericEventWithAccount; - Getter: Getter; GiltBid: GiltBid; GlobalValidationData: GlobalValidationData; GlobalValidationSchedule: GlobalValidationSchedule; @@ -1688,10 +1677,11 @@ declare module '@polkadot/types/types/registry' { i8: i8; I8: I8; IdentificationTuple: IdentificationTuple; - IdentityContext: IdentityContext; - IdentityGenericEvent: IdentityGenericEvent; - IdentityMultiSignature: IdentityMultiSignature; - IdentityString: IdentityString; + IdentityFields: IdentityFields; + IdentityInfo: IdentityInfo; + IdentityInfoAdditional: IdentityInfoAdditional; + IdentityInfoTo198: IdentityInfoTo198; + IdentityJudgement: IdentityJudgement; ImmortalEra: ImmortalEra; ImportedAux: ImportedAux; InboundDownwardMessage: InboundDownwardMessage; @@ -1725,6 +1715,8 @@ declare module '@polkadot/types/types/registry' { InteriorMultiLocation: InteriorMultiLocation; InvalidDisputeStatementKind: InvalidDisputeStatementKind; InvalidTransaction: InvalidTransaction; + isize: isize; + ISize: ISize; Json: Json; Junction: Junction; Junctions: Junctions; @@ -1752,8 +1744,6 @@ declare module '@polkadot/types/types/registry' { LegacyTransaction: LegacyTransaction; Limits: Limits; LimitsTo264: LimitsTo264; - LitentryIdentity: LitentryIdentity; - LitentryValidationData: LitentryValidationData; LocalValidationData: LocalValidationData; LockIdentifier: LockIdentifier; LookupSource: LookupSource; @@ -1780,11 +1770,13 @@ declare module '@polkadot/types/types/registry' { MetadataV12: MetadataV12; MetadataV13: MetadataV13; MetadataV14: MetadataV14; + MetadataV15: MetadataV15; MetadataV9: MetadataV9; MigrationStatusResult: MigrationStatusResult; MmrBatchProof: MmrBatchProof; MmrEncodableOpaqueLeaf: MmrEncodableOpaqueLeaf; MmrError: MmrError; + MmrHash: MmrHash; MmrLeafBatchProof: MmrLeafBatchProof; MmrLeafIndex: MmrLeafIndex; MmrLeafProof: MmrLeafProof; @@ -1834,12 +1826,15 @@ declare module '@polkadot/types/types/registry' { NextAuthority: NextAuthority; NextConfigDescriptor: NextConfigDescriptor; NextConfigDescriptorV1: NextConfigDescriptorV1; + NftCollectionId: NftCollectionId; + NftItemId: NftItemId; NodeRole: NodeRole; Nominations: Nominations; NominatorIndex: NominatorIndex; NominatorIndexCompact: NominatorIndexCompact; NotConnectedPeer: NotConnectedPeer; NpApiError: NpApiError; + NpPoolId: NpPoolId; Null: Null; OccupiedCore: OccupiedCore; OccupiedCoreAssumption: OccupiedCoreAssumption; @@ -1887,6 +1882,7 @@ declare module '@polkadot/types/types/registry' { PalletId: PalletId; PalletMetadataLatest: PalletMetadataLatest; PalletMetadataV14: PalletMetadataV14; + PalletMetadataV15: PalletMetadataV15; PalletsOrigin: PalletsOrigin; PalletStorageMetadataLatest: PalletStorageMetadataLatest; PalletStorageMetadataV14: PalletStorageMetadataV14; @@ -1951,8 +1947,9 @@ declare module '@polkadot/types/types/registry' { ProxyDefinition: ProxyDefinition; ProxyState: ProxyState; ProxyType: ProxyType; - PublicGetter: PublicGetter; PvfCheckStatement: PvfCheckStatement; + PvfExecTimeoutKind: PvfExecTimeoutKind; + PvfPrepTimeoutKind: PvfPrepTimeoutKind; QueryId: QueryId; QueryStatus: QueryStatus; QueueConfigData: QueueConfigData; @@ -1986,6 +1983,11 @@ declare module '@polkadot/types/types/registry' { ReferendumInfoTo239: ReferendumInfoTo239; ReferendumStatus: ReferendumStatus; RegisteredParachainInfo: RegisteredParachainInfo; + RegistrarIndex: RegistrarIndex; + RegistrarInfo: RegistrarInfo; + Registration: Registration; + RegistrationJudgement: RegistrationJudgement; + RegistrationTo198: RegistrationTo198; RelayBlockNumber: RelayBlockNumber; RelayChainBlockNumber: RelayChainBlockNumber; RelayChainHash: RelayChainHash; @@ -1999,7 +2001,6 @@ declare module '@polkadot/types/types/registry' { ReportedRoundStates: ReportedRoundStates; Reporter: Reporter; ReportIdOf: ReportIdOf; - Request: Request; ReserveData: ReserveData; ReserveIdentifier: ReserveIdentifier; Response: Response; @@ -2014,6 +2015,10 @@ declare module '@polkadot/types/types/registry' { RoundSnapshot: RoundSnapshot; RoundState: RoundState; RpcMethods: RpcMethods; + RuntimeApiMetadataLatest: RuntimeApiMetadataLatest; + RuntimeApiMetadataV15: RuntimeApiMetadataV15; + RuntimeApiMethodMetadataV15: RuntimeApiMethodMetadataV15; + RuntimeApiMethodParamMetadataV15: RuntimeApiMethodParamMetadataV15; RuntimeCall: RuntimeCall; RuntimeDbWeight: RuntimeDbWeight; RuntimeDispatchInfo: RuntimeDispatchInfo; @@ -2061,7 +2066,6 @@ declare module '@polkadot/types/types/registry' { SessionKeys9B: SessionKeys9B; SetId: SetId; SetIndex: SetIndex; - ShardIdentifier: ShardIdentifier; Si0Field: Si0Field; Si0LookupTypeId: Si0LookupTypeId; Si0Path: Si0Path; @@ -2188,8 +2192,6 @@ declare module '@polkadot/types/types/registry' { StrikeCount: StrikeCount; SubId: SubId; SubmissionIndicesOf: SubmissionIndicesOf; - SubstrateIdentity: SubstrateIdentity; - SubstrateNetwork: SubstrateNetwork; Supports: Supports; SyncState: SyncState; SystemInherentData: SystemInherentData; @@ -2220,13 +2222,6 @@ declare module '@polkadot/types/types/registry' { TreasuryProposal: TreasuryProposal; TrieId: TrieId; TrieIndex: TrieIndex; - TrustedCall: TrustedCall; - TrustedCallSigned: TrustedCallSigned; - TrustedGetter: TrustedGetter; - TrustedGetterSigned: TrustedGetterSigned; - TrustedOperation: TrustedOperation; - TrustedOperationStatus: TrustedOperationStatus; - TwitterValidationData: TwitterValidationData; Type: Type; u128: u128; U128: U128; @@ -2251,7 +2246,6 @@ declare module '@polkadot/types/types/registry' { UpgradeGoAhead: UpgradeGoAhead; UpgradeRestriction: UpgradeRestriction; UpwardMessage: UpwardMessage; - UserShieldingKeyType: UserShieldingKeyType; usize: usize; USize: USize; ValidationCode: ValidationCode; @@ -2275,7 +2269,6 @@ declare module '@polkadot/types/types/registry' { ValidDisputeStatementKind: ValidDisputeStatementKind; ValidityAttestation: ValidityAttestation; ValidTransaction: ValidTransaction; - VCRequested: VCRequested; VecInboundHrmpMessage: VecInboundHrmpMessage; VersionedMultiAsset: VersionedMultiAsset; VersionedMultiAssets: VersionedMultiAssets; @@ -2301,11 +2294,6 @@ declare module '@polkadot/types/types/registry' { VrfData: VrfData; VrfOutput: VrfOutput; VrfProof: VrfProof; - Web2Identity: Web2Identity; - Web2Network: Web2Network; - Web2ValidationData: Web2ValidationData; - Web3CommonValidationData: Web3CommonValidationData; - Web3ValidationData: Web3ValidationData; Weight: Weight; WeightLimitV2: WeightLimitV2; WeightMultiplier: WeightMultiplier; @@ -2329,8 +2317,6 @@ declare module '@polkadot/types/types/registry' { WinningData10: WinningData10; WinningDataEntry: WinningDataEntry; WithdrawReasons: WithdrawReasons; - WorkerRpcReturnString: WorkerRpcReturnString; - WorkerRpcReturnValue: WorkerRpcReturnValue; Xcm: Xcm; XcmAssetId: XcmAssetId; XcmError: XcmError; diff --git a/tee-worker/ts-tests/package.json b/tee-worker/ts-tests/package.json index cda49bc6b8..ee4328e324 100644 --- a/tee-worker/ts-tests/package.json +++ b/tee-worker/ts-tests/package.json @@ -24,8 +24,9 @@ "dependencies": { "@noble/ed25519": "^1.7.3", "@polkadot/api": "^10.3.4", - "@polkadot/types": "^10.3.4", "@polkadot/keyring": "^12.1.2", + "@polkadot/typegen": "^10.7.1", + "@polkadot/types": "^10.3.4", "add": "^2.0.6", "ajv": "^8.12.0", "chai": "^4.3.6", @@ -40,7 +41,6 @@ }, "devDependencies": { "@ethersproject/providers": "^5.7.2", - "@polkadot/typegen": "^9.14.2", "@types/chai": "^4.3.3", "@types/mocha": "^10.0.0", "@types/ws": "^8.5.3", From 88946b5acd8284992974de9a9a05d0b24ba6fadd Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Tue, 16 May 2023 23:24:43 +0800 Subject: [PATCH 06/25] fix package conflict --- tee-worker/ts-tests/yarn.lock | 1622 ++++++--------------------------- 1 file changed, 289 insertions(+), 1333 deletions(-) diff --git a/tee-worker/ts-tests/yarn.lock b/tee-worker/ts-tests/yarn.lock index c0f8b914df..4d75c9d0ad 100644 --- a/tee-worker/ts-tests/yarn.lock +++ b/tee-worker/ts-tests/yarn.lock @@ -2,213 +2,6 @@ # yarn lockfile v1 -"@ampproject/remapping@^2.2.0": - version "2.2.1" - resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630" - integrity sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg== - dependencies: - "@jridgewell/gen-mapping" "^0.3.0" - "@jridgewell/trace-mapping" "^0.3.9" - -"@babel/code-frame@^7.18.6", "@babel/code-frame@^7.21.4": - version "7.21.4" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.21.4.tgz#d0fa9e4413aca81f2b23b9442797bda1826edb39" - integrity sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g== - dependencies: - "@babel/highlight" "^7.18.6" - -"@babel/compat-data@^7.21.5": - version "7.21.7" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.21.7.tgz#61caffb60776e49a57ba61a88f02bedd8714f6bc" - integrity sha512-KYMqFYTaenzMK4yUtf4EW9wc4N9ef80FsbMtkwool5zpwl4YrT1SdWYSTRcT94KO4hannogdS+LxY7L+arP3gA== - -"@babel/core@^7.20.12": - version "7.21.8" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.21.8.tgz#2a8c7f0f53d60100ba4c32470ba0281c92aa9aa4" - integrity sha512-YeM22Sondbo523Sz0+CirSPnbj9bG3P0CdHcBZdqUuaeOaYEFbOLoGU7lebvGP6P5J/WE9wOn7u7C4J9HvS1xQ== - dependencies: - "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.21.4" - "@babel/generator" "^7.21.5" - "@babel/helper-compilation-targets" "^7.21.5" - "@babel/helper-module-transforms" "^7.21.5" - "@babel/helpers" "^7.21.5" - "@babel/parser" "^7.21.8" - "@babel/template" "^7.20.7" - "@babel/traverse" "^7.21.5" - "@babel/types" "^7.21.5" - convert-source-map "^1.7.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.2.2" - semver "^6.3.0" - -"@babel/generator@^7.21.5": - version "7.21.5" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.21.5.tgz#c0c0e5449504c7b7de8236d99338c3e2a340745f" - integrity sha512-SrKK/sRv8GesIW1bDagf9cCG38IOMYZusoe1dfg0D8aiUe3Amvoj1QtjTPAWcfrZFvIwlleLb0gxzQidL9w14w== - dependencies: - "@babel/types" "^7.21.5" - "@jridgewell/gen-mapping" "^0.3.2" - "@jridgewell/trace-mapping" "^0.3.17" - jsesc "^2.5.1" - -"@babel/helper-compilation-targets@^7.21.5": - version "7.21.5" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.21.5.tgz#631e6cc784c7b660417421349aac304c94115366" - integrity sha512-1RkbFGUKex4lvsB9yhIfWltJM5cZKUftB2eNajaDv3dCMEp49iBG0K14uH8NnX9IPux2+mK7JGEOB0jn48/J6w== - dependencies: - "@babel/compat-data" "^7.21.5" - "@babel/helper-validator-option" "^7.21.0" - browserslist "^4.21.3" - lru-cache "^5.1.1" - semver "^6.3.0" - -"@babel/helper-environment-visitor@^7.21.5": - version "7.21.5" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.21.5.tgz#c769afefd41d171836f7cb63e295bedf689d48ba" - integrity sha512-IYl4gZ3ETsWocUWgsFZLM5i1BYx9SoemminVEXadgLBa9TdeorzgLKm8wWLA6J1N/kT3Kch8XIk1laNzYoHKvQ== - -"@babel/helper-function-name@^7.21.0": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz#d552829b10ea9f120969304023cd0645fa00b1b4" - integrity sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg== - dependencies: - "@babel/template" "^7.20.7" - "@babel/types" "^7.21.0" - -"@babel/helper-hoist-variables@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" - integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-module-imports@^7.21.4": - version "7.21.4" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz#ac88b2f76093637489e718a90cec6cf8a9b029af" - integrity sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg== - dependencies: - "@babel/types" "^7.21.4" - -"@babel/helper-module-transforms@^7.21.5": - version "7.21.5" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.21.5.tgz#d937c82e9af68d31ab49039136a222b17ac0b420" - integrity sha512-bI2Z9zBGY2q5yMHoBvJ2a9iX3ZOAzJPm7Q8Yz6YeoUjU/Cvhmi2G4QyTNyPBqqXSgTjUxRg3L0xV45HvkNWWBw== - dependencies: - "@babel/helper-environment-visitor" "^7.21.5" - "@babel/helper-module-imports" "^7.21.4" - "@babel/helper-simple-access" "^7.21.5" - "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/helper-validator-identifier" "^7.19.1" - "@babel/template" "^7.20.7" - "@babel/traverse" "^7.21.5" - "@babel/types" "^7.21.5" - -"@babel/helper-simple-access@^7.21.5": - version "7.21.5" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz#d697a7971a5c39eac32c7e63c0921c06c8a249ee" - integrity sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg== - dependencies: - "@babel/types" "^7.21.5" - -"@babel/helper-split-export-declaration@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" - integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-string-parser@^7.21.5": - version "7.21.5" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz#2b3eea65443c6bdc31c22d037c65f6d323b6b2bd" - integrity sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w== - -"@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": - version "7.19.1" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" - integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== - -"@babel/helper-validator-option@^7.21.0": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz#8224c7e13ace4bafdc4004da2cf064ef42673180" - integrity sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ== - -"@babel/helpers@^7.21.5": - version "7.21.5" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.21.5.tgz#5bac66e084d7a4d2d9696bdf0175a93f7fb63c08" - integrity sha512-BSY+JSlHxOmGsPTydUkPf1MdMQ3M81x5xGCOVgWM3G8XH77sJ292Y2oqcp0CbbgxhqBuI46iUz1tT7hqP7EfgA== - dependencies: - "@babel/template" "^7.20.7" - "@babel/traverse" "^7.21.5" - "@babel/types" "^7.21.5" - -"@babel/highlight@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" - integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== - dependencies: - "@babel/helper-validator-identifier" "^7.18.6" - chalk "^2.0.0" - js-tokens "^4.0.0" - -"@babel/parser@^7.20.7", "@babel/parser@^7.21.5", "@babel/parser@^7.21.8": - version "7.21.8" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.8.tgz#642af7d0333eab9c0ad70b14ac5e76dbde7bfdf8" - integrity sha512-6zavDGdzG3gUqAdWvlLFfk+36RilI+Pwyuuh7HItyeScCWP3k6i8vKclAQ0bM/0y/Kz/xiwvxhMv9MgTJP5gmA== - -"@babel/register@^7.18.9": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.21.0.tgz#c97bf56c2472e063774f31d344c592ebdcefa132" - integrity sha512-9nKsPmYDi5DidAqJaQooxIhsLJiNMkGr8ypQ8Uic7cIox7UCDsM7HuUGxdGT7mSDTYbqzIdsOWzfBton/YJrMw== - dependencies: - clone-deep "^4.0.1" - find-cache-dir "^2.0.0" - make-dir "^2.1.0" - pirates "^4.0.5" - source-map-support "^0.5.16" - -"@babel/runtime@^7.20.13", "@babel/runtime@^7.20.6": - version "7.21.5" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.5.tgz#8492dddda9644ae3bda3b45eabe87382caee7200" - integrity sha512-8jI69toZqqcsnqGGqwGS4Qb1VwLOEp4hz+CXPywcvjs60u3B4Pom/U/7rm4W8tMOYEB+E9wgD0mW1l3r8qlI9Q== - dependencies: - regenerator-runtime "^0.13.11" - -"@babel/template@^7.20.7": - version "7.20.7" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.20.7.tgz#a15090c2839a83b02aa996c0b4994005841fd5a8" - integrity sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw== - dependencies: - "@babel/code-frame" "^7.18.6" - "@babel/parser" "^7.20.7" - "@babel/types" "^7.20.7" - -"@babel/traverse@^7.21.5": - version "7.21.5" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.21.5.tgz#ad22361d352a5154b498299d523cf72998a4b133" - integrity sha512-AhQoI3YjWi6u/y/ntv7k48mcrCXmus0t79J9qPNlk/lAsFlCiJ047RmbfMOawySTHtywXhbXgpx/8nXMYd+oFw== - dependencies: - "@babel/code-frame" "^7.21.4" - "@babel/generator" "^7.21.5" - "@babel/helper-environment-visitor" "^7.21.5" - "@babel/helper-function-name" "^7.21.0" - "@babel/helper-hoist-variables" "^7.18.6" - "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/parser" "^7.21.5" - "@babel/types" "^7.21.5" - debug "^4.1.0" - globals "^11.1.0" - -"@babel/types@^7.18.6", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.21.4", "@babel/types@^7.21.5": - version "7.21.5" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.21.5.tgz#18dfbd47c39d3904d5db3d3dc2cc80bedb60e5b6" - integrity sha512-m4AfNvVF2mVC/F7fDEdH2El3HzUg9It/XsCxZiOTTA3m3qYfcSVSbTfM6Q9xG+hYDniZssYhlXKKUMD5m8tF4Q== - dependencies: - "@babel/helper-string-parser" "^7.21.5" - "@babel/helper-validator-identifier" "^7.19.1" - to-fast-properties "^2.0.0" - "@cspotcode/source-map-support@^0.8.0": version "0.8.1" resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" @@ -558,35 +351,11 @@ "@ethersproject/properties" "^5.7.0" "@ethersproject/strings" "^5.7.0" -"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": - version "0.3.3" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098" - integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ== - dependencies: - "@jridgewell/set-array" "^1.0.1" - "@jridgewell/sourcemap-codec" "^1.4.10" - "@jridgewell/trace-mapping" "^0.3.9" - -"@jridgewell/resolve-uri@3.1.0": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" - integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== - "@jridgewell/resolve-uri@^3.0.3": version "3.1.1" resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz#c08679063f279615a3326583ba3a90d1d82cc721" integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== -"@jridgewell/set-array@^1.0.1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" - integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== - -"@jridgewell/sourcemap-codec@1.4.14": - version "1.4.14" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" - integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== - "@jridgewell/sourcemap-codec@^1.4.10": version "1.4.15" resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" @@ -600,14 +369,6 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" -"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": - version "0.3.18" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6" - integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA== - dependencies: - "@jridgewell/resolve-uri" "3.1.0" - "@jridgewell/sourcemap-codec" "1.4.14" - "@noble/curves@1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.0.0.tgz#e40be8c7daf088aaf291887cbc73f43464a92932" @@ -620,693 +381,354 @@ resolved "https://registry.yarnpkg.com/@noble/ed25519/-/ed25519-1.7.3.tgz#57e1677bf6885354b466c38e2b620c62f45a7123" integrity sha512-iR8GBkDt0Q3GyaVcIu7mSsVIqnFbkbRzGLWlvhwunacoLwt4J3swfKhfaM6rN6WY+TBGoYT1GtT1mIh2/jGbRQ== -"@noble/hashes@1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.2.0.tgz#a3150eeb09cc7ab207ebf6d7b9ad311a9bdbed12" - integrity sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ== - "@noble/hashes@1.3.0": version "1.3.0" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.0.tgz#085fd70f6d7d9d109671090ccae1d3bec62554a1" integrity sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg== -"@noble/secp256k1@1.7.1": - version "1.7.1" - resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.1.tgz#b251c70f824ce3ca7f8dc3df08d58f005cc0507c" - integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw== - -"@polkadot/api-augment@10.5.1": - version "10.5.1" - resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-10.5.1.tgz#0785377c7ef5b82e82028a2fe9dadcfb7fc3e4a4" - integrity sha512-1mvt/iiV7UX7FzdR4q7e7eeoh4Xmo9r0vOZfl1jpmFOhVFKwhwsGHNMkWAtyeAXEsflISAsGjsPqwvr8Uxiqww== - dependencies: - "@polkadot/api-base" "10.5.1" - "@polkadot/rpc-augment" "10.5.1" - "@polkadot/types" "10.5.1" - "@polkadot/types-augment" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/util" "^12.1.1" +"@polkadot/api-augment@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-10.7.1.tgz#14cbf067fe208287a4a37f13de4809802c05ad8f" + integrity sha512-VX4sUXV0bq0/pVFTzVUhSLvcGMZKuUTrajv6bZMPBbSjhIN0aWPX2d+/dsHEaNnqnROU0P/40i0oeFMfjv4tzg== + dependencies: + "@polkadot/api-base" "10.7.1" + "@polkadot/rpc-augment" "10.7.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-augment" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/util" "^12.2.1" tslib "^2.5.0" -"@polkadot/api-augment@9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-9.14.2.tgz#2c49cdcfdf7057523db1dc8d7b0801391a8a2e69" - integrity sha512-19MmW8AHEcLkdcUIo3LLk0eCQgREWqNSxkUyOeWn7UiNMY1AhDOOwMStUBNCvrIDK6VL6GGc1sY7rkPCLMuKSw== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/api-base" "9.14.2" - "@polkadot/rpc-augment" "9.14.2" - "@polkadot/types" "9.14.2" - "@polkadot/types-augment" "9.14.2" - "@polkadot/types-codec" "9.14.2" - "@polkadot/util" "^10.4.2" - -"@polkadot/api-base@10.5.1": - version "10.5.1" - resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-10.5.1.tgz#8214d2254fe605f7b9896b1d667ab5df277e18f1" - integrity sha512-A5tuvpSluU7wJEGpYeYFRS3Hem1Fd7Wx4uFEjmiUwYqPSBjJADIQsu+f+PXJfRXwpqn2z8rnz7p8ErFJZkkS9A== - dependencies: - "@polkadot/rpc-core" "10.5.1" - "@polkadot/types" "10.5.1" - "@polkadot/util" "^12.1.1" +"@polkadot/api-base@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-10.7.1.tgz#445e6687f26f6223b58459bc20a5f57fb1f0835b" + integrity sha512-bgNjwd7I67kSxLzQGpwpGq3nZYb0PdnroAqNNmKVtNms0JGdRsX8j06nJ89XRXDq+bwOXaDslrC3VKgrCm36DA== + dependencies: + "@polkadot/rpc-core" "10.7.1" + "@polkadot/types" "10.7.1" + "@polkadot/util" "^12.2.1" rxjs "^7.8.1" tslib "^2.5.0" -"@polkadot/api-base@9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-9.14.2.tgz#605b44e3692a125bd8d97eed9cea8af9d0c454e2" - integrity sha512-ky9fmzG1Tnrjr/SBZ0aBB21l0TFr+CIyQenQczoUyVgiuxVaI/2Bp6R2SFrHhG28P+PW2/RcYhn2oIAR2Z2fZQ== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/rpc-core" "9.14.2" - "@polkadot/types" "9.14.2" - "@polkadot/util" "^10.4.2" - rxjs "^7.8.0" - -"@polkadot/api-derive@10.5.1": - version "10.5.1" - resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-10.5.1.tgz#217d4ef65091e792e42bbaf4214b22d64866ae47" - integrity sha512-NAAf1ILxKpWzxc7rO/xP/CIHJoIONA4wzJd261ewdtZ81zikZQkMM2n55eZjcXrJudFbZtDCOX0NzB+HSHF6gQ== - dependencies: - "@polkadot/api" "10.5.1" - "@polkadot/api-augment" "10.5.1" - "@polkadot/api-base" "10.5.1" - "@polkadot/rpc-core" "10.5.1" - "@polkadot/types" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/util" "^12.1.1" - "@polkadot/util-crypto" "^12.1.1" +"@polkadot/api-derive@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-10.7.1.tgz#14f478894c5c53fe8e7d85d7a2a8e84de3eaf065" + integrity sha512-pyNRe8OrA6iNuYKGO/BlxGmKavzohwAAweVphuZnbWfVUKjuRZEgclHYRq/O+pKrPMm3eIbsHVvFlMnIU+rxFw== + dependencies: + "@polkadot/api" "10.7.1" + "@polkadot/api-augment" "10.7.1" + "@polkadot/api-base" "10.7.1" + "@polkadot/rpc-core" "10.7.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/util" "^12.2.1" + "@polkadot/util-crypto" "^12.2.1" rxjs "^7.8.1" tslib "^2.5.0" -"@polkadot/api-derive@9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-9.14.2.tgz#e8fcd4ee3f2b80b9fe34d4dec96169c3bdb4214d" - integrity sha512-yw9OXucmeggmFqBTMgza0uZwhNjPxS7MaT7lSCUIRKckl1GejdV+qMhL3XFxPFeYzXwzFpdPG11zWf+qJlalqw== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/api" "9.14.2" - "@polkadot/api-augment" "9.14.2" - "@polkadot/api-base" "9.14.2" - "@polkadot/rpc-core" "9.14.2" - "@polkadot/types" "9.14.2" - "@polkadot/types-codec" "9.14.2" - "@polkadot/util" "^10.4.2" - "@polkadot/util-crypto" "^10.4.2" - rxjs "^7.8.0" - -"@polkadot/api@10.5.1", "@polkadot/api@^10.3.4": - version "10.5.1" - resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-10.5.1.tgz#96dec286133b5db32a965546360f26bbabdaeb2b" - integrity sha512-+ru++CNqzLlygxFoZTHp9Ombe6AHtQqjSyNramtUSE2Vct0EATW4V/VMCVMo1c0h5XTeNjfjY0FHav5G5KyQUA== - dependencies: - "@polkadot/api-augment" "10.5.1" - "@polkadot/api-base" "10.5.1" - "@polkadot/api-derive" "10.5.1" - "@polkadot/keyring" "^12.1.1" - "@polkadot/rpc-augment" "10.5.1" - "@polkadot/rpc-core" "10.5.1" - "@polkadot/rpc-provider" "10.5.1" - "@polkadot/types" "10.5.1" - "@polkadot/types-augment" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/types-create" "10.5.1" - "@polkadot/types-known" "10.5.1" - "@polkadot/util" "^12.1.1" - "@polkadot/util-crypto" "^12.1.1" - eventemitter3 "^5.0.0" +"@polkadot/api@10.7.1", "@polkadot/api@^10.3.4": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-10.7.1.tgz#a0735f18f3a06041b7bd1330e8bb50dc741230ee" + integrity sha512-6jVYCVlKvQC1HctlZdH3fg28yWb5Wv7IMJn055j66aE+D54z+P8VYdUx17rZsUCWjg6lMlVyzybM9aTm5TE8Sw== + dependencies: + "@polkadot/api-augment" "10.7.1" + "@polkadot/api-base" "10.7.1" + "@polkadot/api-derive" "10.7.1" + "@polkadot/keyring" "^12.2.1" + "@polkadot/rpc-augment" "10.7.1" + "@polkadot/rpc-core" "10.7.1" + "@polkadot/rpc-provider" "10.7.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-augment" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/types-create" "10.7.1" + "@polkadot/types-known" "10.7.1" + "@polkadot/util" "^12.2.1" + "@polkadot/util-crypto" "^12.2.1" + eventemitter3 "^5.0.1" rxjs "^7.8.1" tslib "^2.5.0" -"@polkadot/api@9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-9.14.2.tgz#d5cee02236654c6063d7c4b70c78c290db5aba8d" - integrity sha512-R3eYFj2JgY1zRb+OCYQxNlJXCs2FA+AU4uIEiVcXnVLmR3M55tkRNEwYAZmiFxx0pQmegGgPMc33q7TWGdw24A== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/api-augment" "9.14.2" - "@polkadot/api-base" "9.14.2" - "@polkadot/api-derive" "9.14.2" - "@polkadot/keyring" "^10.4.2" - "@polkadot/rpc-augment" "9.14.2" - "@polkadot/rpc-core" "9.14.2" - "@polkadot/rpc-provider" "9.14.2" - "@polkadot/types" "9.14.2" - "@polkadot/types-augment" "9.14.2" - "@polkadot/types-codec" "9.14.2" - "@polkadot/types-create" "9.14.2" - "@polkadot/types-known" "9.14.2" - "@polkadot/util" "^10.4.2" - "@polkadot/util-crypto" "^10.4.2" - eventemitter3 "^5.0.0" - rxjs "^7.8.0" - -"@polkadot/keyring@^10.4.2": - version "10.4.2" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-10.4.2.tgz#793377fdb9076df0af771df11388faa6be03c70d" - integrity sha512-7iHhJuXaHrRTG6cJDbZE9G+c1ts1dujp0qbO4RfAPmT7YUvphHvAtCKueN9UKPz5+TYDL+rP/jDEaSKU8jl/qQ== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/util" "10.4.2" - "@polkadot/util-crypto" "10.4.2" - -"@polkadot/keyring@^12.1.1", "@polkadot/keyring@^12.1.2": - version "12.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-12.1.2.tgz#1b274ace818c3a440c3310af7aa1d3551a7e6eed" - integrity sha512-HskFoZwLwRWPthEQK50uOiOsbdIt0AY3gcrDmSS2ltkpUDY9qzlb/fAj0+QGtTrK36v5gHT8OD56Pd4l0FDMFw== - dependencies: - "@polkadot/util" "12.1.2" - "@polkadot/util-crypto" "12.1.2" - tslib "^2.5.0" - -"@polkadot/networks@10.4.2", "@polkadot/networks@^10.4.2": - version "10.4.2" - resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-10.4.2.tgz#d7878c6aad8173c800a21140bfe5459261724456" - integrity sha512-FAh/znrEvWBiA/LbcT5GXHsCFUl//y9KqxLghSr/CreAmAergiJNT0MVUezC7Y36nkATgmsr4ylFwIxhVtuuCw== +"@polkadot/keyring@^12.1.2", "@polkadot/keyring@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-12.2.1.tgz#d131375c0436115d1f35139bd2bbbc069dd5b9fa" + integrity sha512-YqgpU+97OZgnSUL56DEMib937Dpb1bTTDPYHhBiN1yNCKod7UboWXIe4xPh+1Kzugum+dEyPpdV+fHH10rtDzw== dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/util" "10.4.2" - "@substrate/ss58-registry" "^1.38.0" + "@polkadot/util" "12.2.1" + "@polkadot/util-crypto" "12.2.1" + tslib "^2.5.0" -"@polkadot/networks@12.1.2", "@polkadot/networks@^12.1.1": - version "12.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-12.1.2.tgz#4631ec701f87f6a1805faaf24f0199ca50f36716" - integrity sha512-9gC5GYGFKXHY4oQaMfYvLLxGJ55slT3V8Zc6uk96KKysEvpSMDXdPUAKZJ3SXN9Iz3KaEa9x6RD5ZEf5j6BJ6g== +"@polkadot/networks@12.2.1", "@polkadot/networks@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-12.2.1.tgz#ce3e2371e3bd02c9c1b233846b9fe1df4601f560" + integrity sha512-lYLvFv6iQ2UzkP66zJfsiTo2goeaNeKuwiaGoRoFrDwdwVeZK/+rCsz1uAyvbwmpZIaK8K+dTlSBVWlFoAkgcA== dependencies: - "@polkadot/util" "12.1.2" + "@polkadot/util" "12.2.1" "@substrate/ss58-registry" "^1.40.0" tslib "^2.5.0" -"@polkadot/rpc-augment@10.5.1": - version "10.5.1" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-10.5.1.tgz#c33b6ddd06c0e1fe5fe5ea9ca8c0452e78a3009a" - integrity sha512-YL3cMEjTtG/BYiUItfhg5V7uBuFAjcW4NTIg51BTOHPI1QEKX+b7fN4m0qD/S1OapqYGyU3WtnG9HjifG+fITw== +"@polkadot/rpc-augment@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-10.7.1.tgz#527bfc03b76b197f6126045f67d59fb2d4ec92b6" + integrity sha512-D4msTT74PaiI3M8E8vhXdN9oNyXaKcTpTWzfJvP5m8fj0YrKS+zoZotePyiry5n/Pam2RzwYdiu/vktuDuvn9w== dependencies: - "@polkadot/rpc-core" "10.5.1" - "@polkadot/types" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/util" "^12.1.1" + "@polkadot/rpc-core" "10.7.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/util" "^12.2.1" tslib "^2.5.0" -"@polkadot/rpc-augment@9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-9.14.2.tgz#eb70d5511463dab8d995faeb77d4edfe4952fe26" - integrity sha512-mOubRm3qbKZTbP9H01XRrfTk7k5it9WyzaWAg72DJBQBYdgPUUkGSgpPD/Srkk5/5GAQTWVWL1I2UIBKJ4TJjQ== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/rpc-core" "9.14.2" - "@polkadot/types" "9.14.2" - "@polkadot/types-codec" "9.14.2" - "@polkadot/util" "^10.4.2" - -"@polkadot/rpc-core@10.5.1": - version "10.5.1" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-10.5.1.tgz#d3f768b2fd34f8e6c98b4847265b1e13a8901f42" - integrity sha512-6I5y1lux5oXYtTrO/XoiNsAbWZabzfb6tbiFHhhN/LVEyw6VJueIRVAdGzkMlftM9tfcokrVCcplfRXV8QTkMQ== - dependencies: - "@polkadot/rpc-augment" "10.5.1" - "@polkadot/rpc-provider" "10.5.1" - "@polkadot/types" "10.5.1" - "@polkadot/util" "^12.1.1" +"@polkadot/rpc-core@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-10.7.1.tgz#d8be2eb85df86d10dc480e3321ec3106df4a1a40" + integrity sha512-XIK28zCVmEpSgnB1DomXNdfMYKUTP5h/bnb+oaWeNUxFxBQtmO1a9UNlZG6thsnma2jlNFVzB0ihR3xoTkka0A== + dependencies: + "@polkadot/rpc-augment" "10.7.1" + "@polkadot/rpc-provider" "10.7.1" + "@polkadot/types" "10.7.1" + "@polkadot/util" "^12.2.1" rxjs "^7.8.1" tslib "^2.5.0" -"@polkadot/rpc-core@9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-9.14.2.tgz#26d4f00ac7abbf880f8280e9b96235880d35794b" - integrity sha512-krA/mtQ5t9nUQEsEVC1sjkttLuzN6z6gyJxK2IlpMS3S5ncy/R6w4FOpy+Q0H18Dn83JBo0p7ZtY7Y6XkK48Kw== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/rpc-augment" "9.14.2" - "@polkadot/rpc-provider" "9.14.2" - "@polkadot/types" "9.14.2" - "@polkadot/util" "^10.4.2" - rxjs "^7.8.0" - -"@polkadot/rpc-provider@10.5.1": - version "10.5.1" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-10.5.1.tgz#71062fec549d770fb34a7d4584bdb55cb5a82bbb" - integrity sha512-XwzCHJx4Qw9tQ10kHnefelic5JRcsxNJRdRYHaNb5AEoHOFDqC5wXgy5N45wQLXrQW+ktj5HkHEPH5r3N1DWTw== - dependencies: - "@polkadot/keyring" "^12.1.1" - "@polkadot/types" "10.5.1" - "@polkadot/types-support" "10.5.1" - "@polkadot/util" "^12.1.1" - "@polkadot/util-crypto" "^12.1.1" - "@polkadot/x-fetch" "^12.1.1" - "@polkadot/x-global" "^12.1.1" - "@polkadot/x-ws" "^12.1.1" - eventemitter3 "^5.0.0" +"@polkadot/rpc-provider@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-10.7.1.tgz#50fa0b90a8e32d6fd04d0776a54a73406c60d104" + integrity sha512-FVaoqtPLb9uhDQb9bE2KSnDqzApsb/hpN57VcylbiUsSACBARGBWrHNAN5rQ8TFN2H6Uv8SqdxTsHeM74Ny2mw== + dependencies: + "@polkadot/keyring" "^12.2.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-support" "10.7.1" + "@polkadot/util" "^12.2.1" + "@polkadot/util-crypto" "^12.2.1" + "@polkadot/x-fetch" "^12.2.1" + "@polkadot/x-global" "^12.2.1" + "@polkadot/x-ws" "^12.2.1" + eventemitter3 "^5.0.1" mock-socket "^9.2.1" nock "^13.3.1" tslib "^2.5.0" optionalDependencies: - "@substrate/connect" "0.7.24" - -"@polkadot/rpc-provider@9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-9.14.2.tgz#0dea667f3a03bf530f202cba5cd360df19b32e30" - integrity sha512-YTSywjD5PF01V47Ru5tln2LlpUwJiSOdz6rlJXPpMaY53hUp7+xMU01FVAQ1bllSBNisSD1Msv/mYHq84Oai2g== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/keyring" "^10.4.2" - "@polkadot/types" "9.14.2" - "@polkadot/types-support" "9.14.2" - "@polkadot/util" "^10.4.2" - "@polkadot/util-crypto" "^10.4.2" - "@polkadot/x-fetch" "^10.4.2" - "@polkadot/x-global" "^10.4.2" - "@polkadot/x-ws" "^10.4.2" - eventemitter3 "^5.0.0" - mock-socket "^9.2.1" - nock "^13.3.0" - optionalDependencies: - "@substrate/connect" "0.7.19" - -"@polkadot/typegen@^9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/typegen/-/typegen-9.14.2.tgz#223fd8b986e05845a80d300f0348abaa82cf67d5" - integrity sha512-j5ZOSz106ocDrmYOENnIPvuI5j7Cg458D31U1hZz0fdv090QowtTHjpe5+RBBaS3W0Dnk8Fh+LkIzIiQPp4gjA== - dependencies: - "@babel/core" "^7.20.12" - "@babel/register" "^7.18.9" - "@babel/runtime" "^7.20.13" - "@polkadot/api" "9.14.2" - "@polkadot/api-augment" "9.14.2" - "@polkadot/rpc-augment" "9.14.2" - "@polkadot/rpc-provider" "9.14.2" - "@polkadot/types" "9.14.2" - "@polkadot/types-augment" "9.14.2" - "@polkadot/types-codec" "9.14.2" - "@polkadot/types-create" "9.14.2" - "@polkadot/types-support" "9.14.2" - "@polkadot/util" "^10.4.2" - "@polkadot/util-crypto" "^10.4.2" - "@polkadot/x-ws" "^10.4.2" + "@substrate/connect" "0.7.26" + +"@polkadot/typegen@^10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/typegen/-/typegen-10.7.1.tgz#f098a838b1d76996b5bcb2808dc8b491569b49ba" + integrity sha512-weXShJAqk5ViI0ikIuzAyvaGAUunayjdDIlu4ogHCfMvAQiSj5Ub7Z6VdrzAqbKPq8f9OsSYv4LtVmCwzR2gEg== + dependencies: + "@polkadot/api" "10.7.1" + "@polkadot/api-augment" "10.7.1" + "@polkadot/rpc-augment" "10.7.1" + "@polkadot/rpc-provider" "10.7.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-augment" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/types-create" "10.7.1" + "@polkadot/types-support" "10.7.1" + "@polkadot/util" "^12.2.1" + "@polkadot/util-crypto" "^12.2.1" + "@polkadot/x-ws" "^12.2.1" handlebars "^4.7.7" - websocket "^1.0.34" - yargs "^17.6.2" - -"@polkadot/types-augment@10.5.1": - version "10.5.1" - resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-10.5.1.tgz#e885b1f720a6d5387ad0bff9762242abbe2923a0" - integrity sha512-YBa2yC6NcFU0SEBHJSniToDf/x1vKMlr6NCafHYJsLcvGBiJbrNKXKMP34V9oDcwvxDBvU4YOZhhX5b2G/LF3Q== - dependencies: - "@polkadot/types" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/util" "^12.1.1" tslib "^2.5.0" + yargs "^17.7.2" -"@polkadot/types-augment@9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-9.14.2.tgz#1a478e18e713b04038f3e171287ee5abe908f0aa" - integrity sha512-WO9d7RJufUeY3iFgt2Wz762kOu1tjEiGBR5TT4AHtpEchVHUeosVTrN9eycC+BhleqYu52CocKz6u3qCT/jKLg== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/types" "9.14.2" - "@polkadot/types-codec" "9.14.2" - "@polkadot/util" "^10.4.2" - -"@polkadot/types-codec@10.5.1": - version "10.5.1" - resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-10.5.1.tgz#b6c2120a3b3f794f4a5043bca8069d1014219899" - integrity sha512-6qF1lH52wVHtFbrrE+6jh4v6l0bLkVgqZv1O93JFviSSIcUoFxLXhTiUIKUp4O3RjtQbhgGmaN8/BtBEwAvnXg== +"@polkadot/types-augment@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-10.7.1.tgz#6d46001c67647385ecfb44fa5944fd9e56a15a99" + integrity sha512-8Yr3iNA9ZU6S0CdR6njM0hx4EBgsm5lZJtytQ8rSxfe8zYOLnh8lz9QLF+iyI+KNFAFwPwfgQ5QwO6zRd8WT+Q== dependencies: - "@polkadot/util" "^12.1.1" - "@polkadot/x-bigint" "^12.1.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/util" "^12.2.1" tslib "^2.5.0" -"@polkadot/types-codec@9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-9.14.2.tgz#d625c80495d7a68237b3d5c0a60ff10d206131fa" - integrity sha512-AJ4XF7W1no4PENLBRU955V6gDxJw0h++EN3YoDgThozZ0sj3OxyFupKgNBZcZb2V23H8JxQozzIad8k+nJbO1w== +"@polkadot/types-codec@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-10.7.1.tgz#75854ef2bd7d0b9a4b21a529913afda55af8a64a" + integrity sha512-3VoR1JXFuwt3MQ+E7Vds0UsSRwytS9yo0GtgfP9Nmwt8neQE8JHEd/nAb4JrJFozr3bNRTj+A94wbYk/XB6VKA== dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/util" "^10.4.2" - "@polkadot/x-bigint" "^10.4.2" - -"@polkadot/types-create@10.5.1": - version "10.5.1" - resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-10.5.1.tgz#d041eef273fe9e0dc3daea45794705e43b18ea35" - integrity sha512-FLG9FDRIkMvz/SLOKUT9sfWna2LZvxG3wxCtYQ8O6SONsECWWdL871+3816RPmB2Bc7L3CKic4QcY+y9jiBfyg== - dependencies: - "@polkadot/types-codec" "10.5.1" - "@polkadot/util" "^12.1.1" + "@polkadot/util" "^12.2.1" + "@polkadot/x-bigint" "^12.2.1" tslib "^2.5.0" -"@polkadot/types-create@9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-9.14.2.tgz#aec515a2d3bc7e7b7802095cdd35ece48dc442bc" - integrity sha512-nSnKpBierlmGBQT8r6/SHf6uamBIzk4WmdMsAsR4uJKJF1PtbIqx2W5PY91xWSiMSNMzjkbCppHkwaDAMwLGaw== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/types-codec" "9.14.2" - "@polkadot/util" "^10.4.2" - -"@polkadot/types-known@10.5.1": - version "10.5.1" - resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-10.5.1.tgz#8c9973721ac7ec1f75e6bc0207a90841d5ebdd58" - integrity sha512-YkGa/P/czp+5aJ+VaRqeDX+22iF12/rgmOKATlC9+y9b/plp4HYkyZBaKJU9hOAgdbuZ8Yv+e8UXCzUNHGPcHg== - dependencies: - "@polkadot/networks" "^12.1.1" - "@polkadot/types" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/types-create" "10.5.1" - "@polkadot/util" "^12.1.1" +"@polkadot/types-create@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-10.7.1.tgz#84e4b021592f62c16bd9a38d60055752efafa8be" + integrity sha512-DJM7Rog2H7XNbGB18s1PY14yfgRNTIZVzHJxkdkXg5eXDWNmrVbwJFKP8gc469cpND+gooDAJeZ5gToiJEb4Hw== + dependencies: + "@polkadot/types-codec" "10.7.1" + "@polkadot/util" "^12.2.1" tslib "^2.5.0" -"@polkadot/types-known@9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-9.14.2.tgz#17fe5034a5b907bd006093a687f112b07edadf10" - integrity sha512-iM8WOCgguzJ3TLMqlm4K1gKQEwWm2zxEKT1HZZ1irs/lAbBk9MquDWDvebryiw3XsLB8xgrp3RTIBn2Q4FjB2A== +"@polkadot/types-known@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-10.7.1.tgz#40d275d116458b93631c30192e9cb4d88aa363f3" + integrity sha512-4lff8uE6OcHsvhJYS6/feKnkDGnFd6jOSpi7d5WYDnxTpTbfvaS8UmZ1ZB9P3TjimrnnX+yV/pqFQV9TMA0bjA== dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/networks" "^10.4.2" - "@polkadot/types" "9.14.2" - "@polkadot/types-codec" "9.14.2" - "@polkadot/types-create" "9.14.2" - "@polkadot/util" "^10.4.2" + "@polkadot/networks" "^12.2.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/types-create" "10.7.1" + "@polkadot/util" "^12.2.1" + tslib "^2.5.0" -"@polkadot/types-support@10.5.1": - version "10.5.1" - resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-10.5.1.tgz#f1e132992f96e887a53f99b868fc20ce971d0e05" - integrity sha512-sHjfqiHDtYcnKWpgRIZApKdtgXiROulzrG+NXhVmeMAQY6Eaq0jo1nNy5PXv6Lj5EVGjHfB5dIdgo/gSotJEzw== +"@polkadot/types-support@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-10.7.1.tgz#f88baac9f9976e1ca86974292af38e533aab3447" + integrity sha512-E7bJfqI9ajCsidRjHiIHTil6av+M+LVfiO9viPjA4PhMp6RIuH6jZ9xUZ6S6hM25zqDwnxtGjx3CPARAx6dwLg== dependencies: - "@polkadot/util" "^12.1.1" + "@polkadot/util" "^12.2.1" tslib "^2.5.0" -"@polkadot/types-support@9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-9.14.2.tgz#d25e8d4e5ec3deef914cb55fc8bc5448431ddd18" - integrity sha512-VWCOPgXDK3XtXT7wMLyIWeNDZxUbNcw/8Pn6n6vMogs7o/n4h6WGbGMeTIQhPWyn831/RmkVs5+2DUC+2LlOhw== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/util" "^10.4.2" - -"@polkadot/types@10.5.1", "@polkadot/types@^10.3.4": - version "10.5.1" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-10.5.1.tgz#da87810ab6462a2f5d915ec70a84d2ddfddd5cd6" - integrity sha512-atiO1WXTF6AUbYVhK6Y9klgaD32scYsxQwNihWjcf8yur1OrW12qQCFkYcHQ5DOMQ7fNrKsxpX26zJxymCRwTw== - dependencies: - "@polkadot/keyring" "^12.1.1" - "@polkadot/types-augment" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/types-create" "10.5.1" - "@polkadot/util" "^12.1.1" - "@polkadot/util-crypto" "^12.1.1" +"@polkadot/types@10.7.1", "@polkadot/types@^10.3.4": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-10.7.1.tgz#5c2874a718200a21ed4604fe311b40c3e4dad1d4" + integrity sha512-Bb1DiYya0jLVYjyvOeJppJJikj6v1XXyHsj1OpvKK/ErnIGX0Esj8UyakmKxvDf2y0fn4VabCwXviuUIZhUTFg== + dependencies: + "@polkadot/keyring" "^12.2.1" + "@polkadot/types-augment" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/types-create" "10.7.1" + "@polkadot/util" "^12.2.1" + "@polkadot/util-crypto" "^12.2.1" rxjs "^7.8.1" tslib "^2.5.0" -"@polkadot/types@9.14.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-9.14.2.tgz#5105f41eb9e8ea29938188d21497cbf1753268b8" - integrity sha512-hGLddTiJbvowhhUZJ3k+olmmBc1KAjWIQxujIUIYASih8FQ3/YJDKxaofGOzh0VygOKW3jxQBN2VZPofyDP9KQ== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/keyring" "^10.4.2" - "@polkadot/types-augment" "9.14.2" - "@polkadot/types-codec" "9.14.2" - "@polkadot/types-create" "9.14.2" - "@polkadot/util" "^10.4.2" - "@polkadot/util-crypto" "^10.4.2" - rxjs "^7.8.0" - -"@polkadot/util-crypto@10.4.2", "@polkadot/util-crypto@^10.4.2": - version "10.4.2" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-10.4.2.tgz#871fb69c65768bd48c57bb5c1f76a85d979fb8b5" - integrity sha512-RxZvF7C4+EF3fzQv8hZOLrYCBq5+wA+2LWv98nECkroChY3C2ZZvyWDqn8+aonNULt4dCVTWDZM0QIY6y4LUAQ== - dependencies: - "@babel/runtime" "^7.20.13" - "@noble/hashes" "1.2.0" - "@noble/secp256k1" "1.7.1" - "@polkadot/networks" "10.4.2" - "@polkadot/util" "10.4.2" - "@polkadot/wasm-crypto" "^6.4.1" - "@polkadot/x-bigint" "10.4.2" - "@polkadot/x-randomvalues" "10.4.2" - "@scure/base" "1.1.1" - ed2curve "^0.3.0" - tweetnacl "^1.0.3" - -"@polkadot/util-crypto@12.1.2", "@polkadot/util-crypto@^12.1.1": - version "12.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-12.1.2.tgz#7045c85a63316e2aa2cddf930e0b3c6228b539b8" - integrity sha512-xV5P7auvs2Qck+HGGk2uaJWyujbJSFc+VDlM/giqM2xKgfmkRUTgGtcBuLLLZq5R1A9tGW5DUQg0VgVHYJaNvw== +"@polkadot/util-crypto@12.2.1", "@polkadot/util-crypto@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-12.2.1.tgz#cbb0d1535e187af43ddcbac4248298b134f2f3ee" + integrity sha512-MFh7Sdm7/G9ot5eIBZGuQXTYP/EbOCh1+ODyygp9/TjWAmJZMq1J73Uqk4KmzkwpDBpNZO8TGjiYwL8lR6BnGg== dependencies: "@noble/curves" "1.0.0" "@noble/hashes" "1.3.0" - "@polkadot/networks" "12.1.2" - "@polkadot/util" "12.1.2" - "@polkadot/wasm-crypto" "^7.1.2" - "@polkadot/wasm-util" "^7.1.2" - "@polkadot/x-bigint" "12.1.2" - "@polkadot/x-randomvalues" "12.1.2" + "@polkadot/networks" "12.2.1" + "@polkadot/util" "12.2.1" + "@polkadot/wasm-crypto" "^7.2.1" + "@polkadot/wasm-util" "^7.2.1" + "@polkadot/x-bigint" "12.2.1" + "@polkadot/x-randomvalues" "12.2.1" "@scure/base" "1.1.1" tslib "^2.5.0" -"@polkadot/util@10.4.2", "@polkadot/util@^10.4.2": - version "10.4.2" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-10.4.2.tgz#df41805cb27f46b2b4dad24c371fa2a68761baa1" - integrity sha512-0r5MGICYiaCdWnx+7Axlpvzisy/bi1wZGXgCSw5+ZTyPTOqvsYRqM2X879yxvMsGfibxzWqNzaiVjToz1jvUaA== +"@polkadot/util@12.2.1", "@polkadot/util@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-12.2.1.tgz#d6c692324890802bc3b2f15b213b7430bb26e8c8" + integrity sha512-MQmPx9aCX4GTpDY/USUQywXRyaDbaibg4V1+c/CoRTsoDu+XHNM8G3lpabdNAYKZrtxg+3/1bTS0ojm6ANSQRw== dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/x-bigint" "10.4.2" - "@polkadot/x-global" "10.4.2" - "@polkadot/x-textdecoder" "10.4.2" - "@polkadot/x-textencoder" "10.4.2" - "@types/bn.js" "^5.1.1" - bn.js "^5.2.1" - -"@polkadot/util@12.1.2", "@polkadot/util@^12.1.1": - version "12.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-12.1.2.tgz#3d54895a5bb6a4d59eb1d745e191224d3f0ed0b1" - integrity sha512-Da8q+0WVWSuMMS3hLAwnIid8FKRGLmwhD69jikye47zeEXCtvp4e/bjD0YbINNKHoeIRsApchJtqmbaEoxXjIQ== - dependencies: - "@polkadot/x-bigint" "12.1.2" - "@polkadot/x-global" "12.1.2" - "@polkadot/x-textdecoder" "12.1.2" - "@polkadot/x-textencoder" "12.1.2" + "@polkadot/x-bigint" "12.2.1" + "@polkadot/x-global" "12.2.1" + "@polkadot/x-textdecoder" "12.2.1" + "@polkadot/x-textencoder" "12.2.1" "@types/bn.js" "^5.1.1" bn.js "^5.2.1" tslib "^2.5.0" -"@polkadot/wasm-bridge@6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-bridge/-/wasm-bridge-6.4.1.tgz#e97915dd67ba543ec3381299c2a5b9330686e27e" - integrity sha512-QZDvz6dsUlbYsaMV5biZgZWkYH9BC5AfhT0f0/knv8+LrbAoQdP3Asbvddw8vyU9sbpuCHXrd4bDLBwUCRfrBQ== - dependencies: - "@babel/runtime" "^7.20.6" - -"@polkadot/wasm-bridge@7.1.2": - version "7.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-bridge/-/wasm-bridge-7.1.2.tgz#c8c2f3ac84b6f56be7cdb3f57347d3a45801341e" - integrity sha512-6t8b1el/03b30ZFKVFYU5pQEx9OeDZ3GBndgZ5b6fMNFRoowFWTwx74HLqhXlQb+hOTjGJA70jHdxkplh1sO3A== +"@polkadot/wasm-bridge@7.2.1": + version "7.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-bridge/-/wasm-bridge-7.2.1.tgz#8464a96552207d2b49c6f32137b24132534b91ee" + integrity sha512-uV/LHREDBGBbHrrv7HTki+Klw0PYZzFomagFWII4lp6Toj/VCvRh5WMzooVC+g/XsBGosAwrvBhoModabyHx+A== dependencies: - "@polkadot/wasm-util" "7.1.2" + "@polkadot/wasm-util" "7.2.1" tslib "^2.5.0" -"@polkadot/wasm-crypto-asmjs@6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-6.4.1.tgz#3cc76bbda5ea4a7a860982c64f9565907b312253" - integrity sha512-UxZTwuBZlnODGIQdCsE2Sn/jU0O2xrNQ/TkhRFELfkZXEXTNu4lw6NpaKq7Iey4L+wKd8h4lT3VPVkMcPBLOvA== - dependencies: - "@babel/runtime" "^7.20.6" - -"@polkadot/wasm-crypto-asmjs@7.1.2": - version "7.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-7.1.2.tgz#bde1ec84721dd2e5ad60c6d8af927e1f8be15007" - integrity sha512-Gdb824MoeWjESv7fu57Dqpvmx7FR2zhM2Os34/H8s1LcZ8m5qUxvm22kjtq+6DRJlGo7KxpS0OA4xCbSDDe0rA== +"@polkadot/wasm-crypto-asmjs@7.2.1": + version "7.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-7.2.1.tgz#3e7a91e2905ab7354bc37b82f3e151a62bb024db" + integrity sha512-z/d21bmxyVfkzGsKef/FWswKX02x5lK97f4NPBZ9XBeiFkmzlXhdSnu58/+b1sKsRAGdW/Rn/rTNRDhW0GqCAg== dependencies: tslib "^2.5.0" -"@polkadot/wasm-crypto-init@6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-init/-/wasm-crypto-init-6.4.1.tgz#4d9ab0030db52cf177bf707ef8e77aa4ca721668" - integrity sha512-1ALagSi/nfkyFaH6JDYfy/QbicVbSn99K8PV9rctDUfxc7P06R7CoqbjGQ4OMPX6w1WYVPU7B4jPHGLYBlVuMw== - dependencies: - "@babel/runtime" "^7.20.6" - "@polkadot/wasm-bridge" "6.4.1" - "@polkadot/wasm-crypto-asmjs" "6.4.1" - "@polkadot/wasm-crypto-wasm" "6.4.1" - -"@polkadot/wasm-crypto-init@7.1.2": - version "7.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-init/-/wasm-crypto-init-7.1.2.tgz#ed44b39502c3abe2b403de750975300c310a543d" - integrity sha512-jqeK04MYofvCU7kFMJDoKUM9SjfDEBDizIxgurxAZZvF4jMOhgStZTLTr9QkKTOMTrMUE9PWRMzrnDM/Od3kzA== - dependencies: - "@polkadot/wasm-bridge" "7.1.2" - "@polkadot/wasm-crypto-asmjs" "7.1.2" - "@polkadot/wasm-crypto-wasm" "7.1.2" - "@polkadot/wasm-util" "7.1.2" - tslib "^2.5.0" - -"@polkadot/wasm-crypto-wasm@6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-6.4.1.tgz#97180f80583b18f6a13c1054fa5f7e8da40b1028" - integrity sha512-3VV9ZGzh0ZY3SmkkSw+0TRXxIpiO0nB8lFwlRgcwaCihwrvLfRnH9GI8WE12mKsHVjWTEVR3ogzILJxccAUjDA== - dependencies: - "@babel/runtime" "^7.20.6" - "@polkadot/wasm-util" "6.4.1" - -"@polkadot/wasm-crypto-wasm@7.1.2": - version "7.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-7.1.2.tgz#16c36e7028f22817c2ec741dcb74be751e156594" - integrity sha512-p2RBfXc43r6rXkFo811LboSfRQFpCgOC6+ByqMs/geTA/+/I4l2ajz95aL6cQ20AA3W5x/ZwHxhwvmJ0HBjJ6A== +"@polkadot/wasm-crypto-init@7.2.1": + version "7.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-init/-/wasm-crypto-init-7.2.1.tgz#9dbba41ed7d382575240f1483cf5a139ff2787bd" + integrity sha512-GcEXtwN9LcSf32V9zSaYjHImFw16hCyo2Xzg4GLLDPPeaAAfbFr2oQMgwyDbvBrBjLKHVHjsPZyGhXae831amw== dependencies: - "@polkadot/wasm-util" "7.1.2" + "@polkadot/wasm-bridge" "7.2.1" + "@polkadot/wasm-crypto-asmjs" "7.2.1" + "@polkadot/wasm-crypto-wasm" "7.2.1" + "@polkadot/wasm-util" "7.2.1" tslib "^2.5.0" -"@polkadot/wasm-crypto@^6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-6.4.1.tgz#79310e23ad1ca62362ba893db6a8567154c2536a" - integrity sha512-FH+dcDPdhSLJvwL0pMLtn/LIPd62QDPODZRCmDyw+pFjLOMaRBc7raomWUOqyRWJTnqVf/iscc2rLVLNMyt7ag== - dependencies: - "@babel/runtime" "^7.20.6" - "@polkadot/wasm-bridge" "6.4.1" - "@polkadot/wasm-crypto-asmjs" "6.4.1" - "@polkadot/wasm-crypto-init" "6.4.1" - "@polkadot/wasm-crypto-wasm" "6.4.1" - "@polkadot/wasm-util" "6.4.1" - -"@polkadot/wasm-crypto@^7.1.2": - version "7.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-7.1.2.tgz#35e0b9243ee88f044925e681d729146373add40a" - integrity sha512-DO5Xf5nA2mSVdWnRM+PLAVE/wcg9vZAQkSHHSE+/qDmDVCQYygksHOA8ecRvn8nGfMNZQ0rmlIlsgyvAEtX1pw== - dependencies: - "@polkadot/wasm-bridge" "7.1.2" - "@polkadot/wasm-crypto-asmjs" "7.1.2" - "@polkadot/wasm-crypto-init" "7.1.2" - "@polkadot/wasm-crypto-wasm" "7.1.2" - "@polkadot/wasm-util" "7.1.2" - tslib "^2.5.0" - -"@polkadot/wasm-util@6.4.1": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-util/-/wasm-util-6.4.1.tgz#74aecc85bec427a9225d9874685944ea3dc3ab76" - integrity sha512-Uwo+WpEsDmFExWC5kTNvsVhvqXMZEKf4gUHXFn4c6Xz4lmieRT5g+1bO1KJ21pl4msuIgdV3Bksfs/oiqMFqlw== - dependencies: - "@babel/runtime" "^7.20.6" - -"@polkadot/wasm-util@7.1.2", "@polkadot/wasm-util@^7.1.2": - version "7.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-util/-/wasm-util-7.1.2.tgz#71ee1d55d0c3d55ceef2ee762c02eda5395a759a" - integrity sha512-lHQJFG0iotgmUovXYcw/HM3QhGxtze6ozAgRMd0/maTQjYwbV/7z1NzEle9fBwxX6GijTnpWc1vzW+YU0O1lLw== +"@polkadot/wasm-crypto-wasm@7.2.1": + version "7.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-7.2.1.tgz#d2486322c725f6e5d2cc2d6abcb77ecbbaedc738" + integrity sha512-DqyXE4rSD0CVlLIw88B58+HHNyrvm+JAnYyuEDYZwCvzUWOCNos/DDg9wi/K39VAIsCCKDmwKqkkfIofuOj/lA== dependencies: + "@polkadot/wasm-util" "7.2.1" tslib "^2.5.0" -"@polkadot/x-bigint@10.4.2", "@polkadot/x-bigint@^10.4.2": - version "10.4.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-bigint/-/x-bigint-10.4.2.tgz#7eb2ec732259df48b5a00f07879a1331e05606ec" - integrity sha512-awRiox+/XSReLzimAU94fPldowiwnnMUkQJe8AebYhNocAj6SJU00GNoj6j6tAho6yleOwrTJXZaWFBaQVJQNg== +"@polkadot/wasm-crypto@^7.2.1": + version "7.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-7.2.1.tgz#db671dcb73f1646dc13478b5ffc3be18c64babe1" + integrity sha512-SA2+33S9TAwGhniKgztVN6pxUKpGfN4Tre/eUZGUfpgRkT92wIUT2GpGWQE+fCCqGQgADrNiBcwt6XwdPqMQ4Q== dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/x-global" "10.4.2" + "@polkadot/wasm-bridge" "7.2.1" + "@polkadot/wasm-crypto-asmjs" "7.2.1" + "@polkadot/wasm-crypto-init" "7.2.1" + "@polkadot/wasm-crypto-wasm" "7.2.1" + "@polkadot/wasm-util" "7.2.1" + tslib "^2.5.0" -"@polkadot/x-bigint@12.1.2", "@polkadot/x-bigint@^12.1.1": - version "12.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-bigint/-/x-bigint-12.1.2.tgz#c735dd71a5e6a4dbb8075288ad6dddbfbab45a05" - integrity sha512-KU7C8HlJ2kO6Igg2Jq2Q/eAdll3HuVoylYcyVQxevcrC2fXhC2PDIEa+iWHBPz40p2TvI9sBZKrCsDDGz9K6sw== +"@polkadot/wasm-util@7.2.1", "@polkadot/wasm-util@^7.2.1": + version "7.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-util/-/wasm-util-7.2.1.tgz#fda233120ec02f77f0d14e4d3c7ad9ce06535fb8" + integrity sha512-FBSn/3aYJzhN0sYAYhHB8y9JL8mVgxLy4M1kUXYbyo+8GLRQEN5rns8Vcb8TAlIzBWgVTOOptYBvxo0oj0h7Og== dependencies: - "@polkadot/x-global" "12.1.2" tslib "^2.5.0" -"@polkadot/x-fetch@^10.4.2": - version "10.4.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-10.4.2.tgz#bc6ba70de71a252472fbe36180511ed920e05f05" - integrity sha512-Ubb64yaM4qwhogNP+4mZ3ibRghEg5UuCYRMNaCFoPgNAY8tQXuDKrHzeks3+frlmeH9YRd89o8wXLtWouwZIcw== +"@polkadot/x-bigint@12.2.1", "@polkadot/x-bigint@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-bigint/-/x-bigint-12.2.1.tgz#adb639628626d2a6d7853afff43da20b4db4369a" + integrity sha512-3cZLsV8kU1MFOTcyloeg61CF+qdBkbZxWZJkSjh4AGlPXy+2tKwwoBPExxfCWXK61+Lo/q3/U1+lln8DSBCI2A== dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/x-global" "10.4.2" - "@types/node-fetch" "^2.6.2" - node-fetch "^3.3.0" + "@polkadot/x-global" "12.2.1" + tslib "^2.5.0" -"@polkadot/x-fetch@^12.1.1": - version "12.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-12.1.2.tgz#095673de3ab6bed0c790e496fba3f549fa56fe4d" - integrity sha512-X+MY1UT25Xcvp6iUQOdmukOle1KsKaAblEhl+CrDfXGwM90wDLc5U3TZzddrKnQRcIgcNDyn9gRlHGQkZEbL9Q== +"@polkadot/x-fetch@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-12.2.1.tgz#65b447373a0155cae3e546b842ced356d8599c54" + integrity sha512-N2MIcn1g7LVZLZNDEkRkDD/LRY680PFqxziRoqb11SV52kRe6oVsdMIfaWH77UheniRR3br8YiQMUdvBVkak9Q== dependencies: - "@polkadot/x-global" "12.1.2" + "@polkadot/x-global" "12.2.1" node-fetch "^3.3.1" tslib "^2.5.0" -"@polkadot/x-global@10.4.2", "@polkadot/x-global@^10.4.2": - version "10.4.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-10.4.2.tgz#5662366e3deda0b4c8f024b2d902fa838f9e60a4" - integrity sha512-g6GXHD/ykZvHap3M6wh19dO70Zm43l4jEhlxf5LtTo5/0/UporFCXr2YJYZqfbn9JbQwl1AU+NroYio+vtJdiA== - dependencies: - "@babel/runtime" "^7.20.13" - -"@polkadot/x-global@12.1.2", "@polkadot/x-global@^12.1.1": - version "12.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-12.1.2.tgz#e887f0e82f2d7c075aae4309bf09830e99ba742d" - integrity sha512-WGwPQN27hpwhVOQGUizJfmNJRxkijMwECMPUAYtSSgJhkV5MwWeFuVebfUjgHceakEvDRQWzEX6JjV6TttnPZw== +"@polkadot/x-global@12.2.1", "@polkadot/x-global@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-12.2.1.tgz#42e798e9607a4d7667469d91225c030fb3e8c8b5" + integrity sha512-JNMziAZjvfzMrXASuBPCvSzEqlhsgw0x95SOBtqJWsxmbCMAiZbYAC51vI1B9Z9wiKuzPtSh9Sk7YHsUOGCrIQ== dependencies: tslib "^2.5.0" -"@polkadot/x-randomvalues@10.4.2": - version "10.4.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-10.4.2.tgz#895f1220d5a4522a83d8d5014e3c1e03b129893e" - integrity sha512-mf1Wbpe7pRZHO0V3V89isPLqZOy5XGX2bCqsfUWHgb1NvV1MMx5TjVjdaYyNlGTiOkAmJKlOHshcfPU2sYWpNg== +"@polkadot/x-randomvalues@12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-12.2.1.tgz#00c3f097f987b9ff70dbd2720086ad3d0bc16cfb" + integrity sha512-NwSDLcLjgHa0C7Un54Yhg2/E3Y/PcVfW5QNB9TDyzDbkmod3ziaVhh0iWG0sOmm26K6Q3phY+0uYt0etq0Gu3w== dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/x-global" "10.4.2" - -"@polkadot/x-randomvalues@12.1.2": - version "12.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-12.1.2.tgz#dd043046c9c8e3fc1e6948b84b5517cb8a7b05ee" - integrity sha512-Jqwftgl+t8egG5miwI3f+MUNp3GIJUxZ0mcYbGDc3dY8LueY3yhKs94MQF/S6h8XPpRFI5/8mUZnmMgmNXsX6Q== - dependencies: - "@polkadot/x-global" "12.1.2" + "@polkadot/x-global" "12.2.1" tslib "^2.5.0" -"@polkadot/x-textdecoder@10.4.2": - version "10.4.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-10.4.2.tgz#93202f3e5ad0e7f75a3fa02d2b8a3343091b341b" - integrity sha512-d3ADduOKUTU+cliz839+KCFmi23pxTlabH7qh7Vs1GZQvXOELWdqFOqakdiAjtMn68n1KVF4O14Y+OUm7gp/zA== +"@polkadot/x-textdecoder@12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-12.2.1.tgz#a426a1d8a3b5717859b81a7341b16de4de3d78c0" + integrity sha512-5nQCIwyaGS0fXU2cbtMOSjFo0yTw1Z94m/UC+Gu5lm3ZU+kK4DpKFxhfLQORWAbvQkn12chRj3LI5Gm944hcrQ== dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/x-global" "10.4.2" - -"@polkadot/x-textdecoder@12.1.2": - version "12.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-12.1.2.tgz#35d5fc7312aa48d1f2002a594545b2938333c8d6" - integrity sha512-O5ygxEHdPCIQVzH7T+xVALBfCwrT5tVms7Yjp6EMT697A9gpD3U2aPr4YinsQO6JFwYpQNzvm2wjW+7EEzYitw== - dependencies: - "@polkadot/x-global" "12.1.2" + "@polkadot/x-global" "12.2.1" tslib "^2.5.0" -"@polkadot/x-textencoder@10.4.2": - version "10.4.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-10.4.2.tgz#cd2e6c8a66b0b400a73f0164e99c510fb5c83501" - integrity sha512-mxcQuA1exnyv74Kasl5vxBq01QwckG088lYjc3KwmND6+pPrW2OWagbxFX5VFoDLDAE+UJtnUHsjdWyOTDhpQA== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/x-global" "10.4.2" - -"@polkadot/x-textencoder@12.1.2": - version "12.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-12.1.2.tgz#4259a7bc74d53c40e2deab752bad40d479f4a99b" - integrity sha512-N+9HIXT0eUQbfg/SfGrNRK8aLFpd2QngJzTxo8CljpjCvQ2ddqzBVFA8o/lKTaXVzX84EmPDzjIV+yJlOXnglA== +"@polkadot/x-textencoder@12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-12.2.1.tgz#f606c9929668bb41a23ec25c9752252bb56b0c9b" + integrity sha512-Ou6OXypRsJloK5a7Kn7re3ImqcL26h22fVw1cNv4fsTgkRFUdJDgPux2TpCZ3N+cyrfGVv42xKYFbdKMQCczjg== dependencies: - "@polkadot/x-global" "12.1.2" + "@polkadot/x-global" "12.2.1" tslib "^2.5.0" -"@polkadot/x-ws@^10.4.2": - version "10.4.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-10.4.2.tgz#4e9d88f37717570ccf942c6f4f63b06260f45025" - integrity sha512-3gHSTXAWQu1EMcMVTF5QDKHhEHzKxhAArweEyDXE7VsgKUP/ixxw4hVZBrkX122iI5l5mjSiooRSnp/Zl3xqDQ== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/x-global" "10.4.2" - "@types/websocket" "^1.0.5" - websocket "^1.0.34" - -"@polkadot/x-ws@^12.1.1": - version "12.1.2" - resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-12.1.2.tgz#cdde7e53292a55063a7286fb4079f1b86233542d" - integrity sha512-xmwBtn0WIstrviNuLNladsVHXUWeh4/HHAuCCeTp5Rld+8pJ6D1snhl+qvicmm4t1Si9mpb6y4yfnWFm5fLHVA== +"@polkadot/x-ws@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-12.2.1.tgz#8774bc8cd38194354e48fc92438c4ebb52929fce" + integrity sha512-jPfNR/QFwPmXCk9hGEAyCo50xBNHm3s+XavmpHEKQSulnLn5des5X/pKn+g8ttaO9nqrXYnUFO6VEmILgUa/IQ== dependencies: - "@polkadot/x-global" "12.1.2" + "@polkadot/x-global" "12.2.1" tslib "^2.5.0" ws "^8.13.0" @@ -1320,33 +742,16 @@ resolved "https://registry.yarnpkg.com/@substrate/connect-extension-protocol/-/connect-extension-protocol-1.0.1.tgz#fa5738039586c648013caa6a0c95c43265dbe77d" integrity sha512-161JhCC1csjH3GE5mPLEd7HbWtwNSPJBg3p1Ksz9SFlTzj/bgEwudiRN2y5i0MoLGCIJRYKyKGMxVnd29PzNjg== -"@substrate/connect@0.7.19": - version "0.7.19" - resolved "https://registry.yarnpkg.com/@substrate/connect/-/connect-0.7.19.tgz#7c879cb275bc7ac2fe9edbf797572d4ff8d8b86a" - integrity sha512-+DDRadc466gCmDU71sHrYOt1HcI2Cbhm7zdCFjZfFVHXhC/E8tOdrVSglAH2HDEHR0x2SiHRxtxOGC7ak2Zjog== +"@substrate/connect@0.7.26": + version "0.7.26" + resolved "https://registry.yarnpkg.com/@substrate/connect/-/connect-0.7.26.tgz#a0ee5180c9cb2f29250d1219a32f7b7e7dea1196" + integrity sha512-uuGSiroGuKWj1+38n1kY5HReer5iL9bRwPCzuoLtqAOmI1fGI0hsSI2LlNQMAbfRgr7VRHXOk5MTuQf5ulsFRw== dependencies: "@substrate/connect-extension-protocol" "^1.0.1" - "@substrate/smoldot-light" "0.7.9" eventemitter3 "^4.0.7" + smoldot "1.0.4" -"@substrate/connect@0.7.24": - version "0.7.24" - resolved "https://registry.yarnpkg.com/@substrate/connect/-/connect-0.7.24.tgz#5a3cfe293e9eab4b17fe64975928a4a6fae2470a" - integrity sha512-vF82taiM0yME+ibiJgEv0xn/NZd9TQ4atXk1AQCe2z82SEKzw0Lwx9ZLFEOvlgnh+Nc2EtQi7y4cXJ+48rOqxw== - dependencies: - "@substrate/connect-extension-protocol" "^1.0.1" - eventemitter3 "^4.0.7" - smoldot "1.0.2" - -"@substrate/smoldot-light@0.7.9": - version "0.7.9" - resolved "https://registry.yarnpkg.com/@substrate/smoldot-light/-/smoldot-light-0.7.9.tgz#68449873a25558e547e9468289686ee228a9930f" - integrity sha512-HP8iP7sFYlpSgjjbo0lqHyU+gu9lL2hbDNce6dWk5/10mFFF9jKIFGfui4zCecUY808o/Go9pan/31kMJoLbug== - dependencies: - pako "^2.0.4" - ws "^8.8.1" - -"@substrate/ss58-registry@^1.38.0", "@substrate/ss58-registry@^1.40.0": +"@substrate/ss58-registry@^1.40.0": version "1.40.0" resolved "https://registry.yarnpkg.com/@substrate/ss58-registry/-/ss58-registry-1.40.0.tgz#2223409c496271df786c1ca8496898896595441e" integrity sha512-QuU2nBql3J4KCnOWtWDw4n1K4JU0T79j54ZZvm/9nhsX6AIar13FyhsaBfs6QkJ2ixTQAnd7TocJIoJRWbqMZA== @@ -1367,9 +772,9 @@ integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== "@tsconfig/node16@^1.0.2": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.3.tgz#472eaab5f15c1ffdd7f8628bd4c4f753995ec79e" - integrity sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ== + version "1.0.4" + resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" + integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== "@types/bn.js@^5.1.1": version "5.1.1" @@ -1379,34 +784,19 @@ "@types/node" "*" "@types/chai@^4.3.3": - version "4.3.4" - resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.4.tgz#e913e8175db8307d78b4e8fa690408ba6b65dee4" - integrity sha512-KnRanxnpfpjUTqTCXslZSEdLfXExwgNxYPdiO2WGUj8+HDjFi8R3k5RVKPeSCzLjCcshCAtVO2QBbVuAV4kTnw== + version "4.3.5" + resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.5.tgz#ae69bcbb1bebb68c4ac0b11e9d8ed04526b3562b" + integrity sha512-mEo1sAde+UCE6b2hxn332f1g1E8WfYRu6p5SvTKr2ZKC1f7gFJXk4h5PyGP9Dt6gCaG8y8XhwnXWC6Iy2cmBng== "@types/mocha@^10.0.0": version "10.0.1" resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.1.tgz#2f4f65bb08bc368ac39c96da7b2f09140b26851b" integrity sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q== -"@types/node-fetch@^2.6.2": - version "2.6.3" - resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.6.3.tgz#175d977f5e24d93ad0f57602693c435c57ad7e80" - integrity sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w== - dependencies: - "@types/node" "*" - form-data "^3.0.0" - "@types/node@*": - version "18.15.11" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.11.tgz#b3b790f09cb1696cffcec605de025b088fa4225f" - integrity sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q== - -"@types/websocket@^1.0.5": - version "1.0.5" - resolved "https://registry.yarnpkg.com/@types/websocket/-/websocket-1.0.5.tgz#3fb80ed8e07f88e51961211cd3682a3a4a81569c" - integrity sha512-NbsqiNX9CnEfC1Z0Vf4mE1SgAJ07JnRYcNex7AJ9zAVzmiGHmjKFEk7O4TJIsgv2B1sLEb6owKFZrACwdYngsQ== - dependencies: - "@types/node" "*" + version "20.1.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.1.5.tgz#e94b604c67fc408f215fcbf3bd84d4743bf7f710" + integrity sha512-IvGD1CD/nego63ySR7vrAKEX3AJTcmrAN2kn+/sDNLi1Ff5kBzDeEdqWDplK+0HAEoLYej137Sk0cUU8OLOlMg== "@types/ws@^8.5.3": version "8.5.4" @@ -1455,13 +845,6 @@ ansi-regex@^5.0.1: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - ansi-styles@^4.0.0, ansi-styles@^4.1.0: version "4.3.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" @@ -1500,11 +883,6 @@ assertion-error@^1.1.0: resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b" integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw== -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== - available-typed-arrays@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7" @@ -1567,28 +945,6 @@ browser-stdout@1.3.1: resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== -browserslist@^4.21.3: - version "4.21.5" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.5.tgz#75c5dae60063ee641f977e00edd3cfb2fb7af6a7" - integrity sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w== - dependencies: - caniuse-lite "^1.0.30001449" - electron-to-chromium "^1.4.284" - node-releases "^2.0.8" - update-browserslist-db "^1.0.10" - -buffer-from@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" - integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== - -bufferutil@^4.0.1: - version "4.0.7" - resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.7.tgz#60c0d19ba2c992dd8273d3f73772ffc894c153ad" - integrity sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw== - dependencies: - node-gyp-build "^4.3.0" - call-bind@^1.0.0, call-bind@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" @@ -1602,11 +958,6 @@ camelcase@^6.0.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001449: - version "1.0.30001486" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001486.tgz#56a08885228edf62cbe1ac8980f2b5dae159997e" - integrity sha512-uv7/gXuHi10Whlj0pp5q/tsK/32J2QSqVRKQhs2j8VsDCjgyruAh/eEXHF822VqO9yT6iZKw3nRwZRSPBE9OQg== - chai@^4.3.6: version "4.3.7" resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.7.tgz#ec63f6df01829088e8bf55fca839bcd464a8ec51" @@ -1620,15 +971,6 @@ chai@^4.3.6: pathval "^1.1.1" type-detect "^4.0.5" -chalk@^2.0.0: - version "2.4.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - chalk@^4.1.0: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" @@ -1680,22 +1022,6 @@ cliui@^8.0.1: strip-ansi "^6.0.1" wrap-ansi "^7.0.0" -clone-deep@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" - integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== - dependencies: - is-plain-object "^2.0.4" - kind-of "^6.0.2" - shallow-clone "^3.0.0" - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - color-convert@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" @@ -1703,11 +1029,6 @@ color-convert@^2.0.1: dependencies: color-name "~1.1.4" -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== - color-name@~1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" @@ -1718,28 +1039,11 @@ colors@^1.4.0: resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA== -combined-stream@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== - dependencies: - delayed-stream "~1.0.0" - -commondir@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" - integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== - concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== -convert-source-map@^1.7.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" - integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== - create-require@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" @@ -1761,14 +1065,6 @@ cross-spawn@^7.0.1: shebang-command "^2.0.0" which "^2.0.1" -d@1, d@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" - integrity sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA== - dependencies: - es5-ext "^0.10.50" - type "^1.0.1" - data-uri-to-buffer@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz#d8feb2b2881e6a4f58c2e08acfd0e2834e26222e" @@ -1781,13 +1077,6 @@ debug@4.3.4, debug@^4.1.0: dependencies: ms "2.1.2" -debug@^2.2.0: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - decamelize@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" @@ -1800,7 +1089,7 @@ deep-eql@^4.1.2: dependencies: type-detect "^4.0.0" -define-properties@^1.1.3, define-properties@^1.1.4: +define-properties@^1.1.3, define-properties@^1.1.4, define-properties@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.0.tgz#52988570670c9eacedd8064f4a990f2405849bd5" integrity sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA== @@ -1808,11 +1097,6 @@ define-properties@^1.1.3, define-properties@^1.1.4: has-property-descriptors "^1.0.0" object-keys "^1.1.1" -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== - diff@5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" @@ -1828,18 +1112,6 @@ dotenv@^16.0.3: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07" integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ== -ed2curve@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/ed2curve/-/ed2curve-0.3.0.tgz#322b575152a45305429d546b071823a93129a05d" - integrity sha512-8w2fmmq3hv9rCrcI7g9hms2pMunQr1JINfcjwR9tAyZqhtyaMN991lF/ZfHfr5tzZQ8c7y7aBgZbjfbd0fjFwQ== - dependencies: - tweetnacl "1.x.x" - -electron-to-chromium@^1.4.284: - version "1.4.388" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.388.tgz#ec0d1be823d5b14da56d91ec5c57e84b4624ea45" - integrity sha512-xZ0y4zjWZgp65okzwwt00f2rYibkFPHUv9qBz+Vzn8cB9UXIo9Zc6Dw81LJYhhNt0G/vR1OJEfStZ49NKl0YxQ== - elliptic@6.5.4: version "6.5.4" resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" @@ -1916,32 +1188,6 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" -es5-ext@^0.10.35, es5-ext@^0.10.50: - version "0.10.62" - resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.62.tgz#5e6adc19a6da524bf3d1e02bbc8960e5eb49a9a5" - integrity sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA== - dependencies: - es6-iterator "^2.0.3" - es6-symbol "^3.1.3" - next-tick "^1.1.0" - -es6-iterator@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" - integrity sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g== - dependencies: - d "1" - es5-ext "^0.10.35" - es6-symbol "^3.1.1" - -es6-symbol@^3.1.1, es6-symbol@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" - integrity sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA== - dependencies: - d "^1.0.1" - ext "^1.1.2" - escalade@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" @@ -1952,11 +1198,6 @@ escape-string-regexp@4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== -escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== - ethers@^5.7.2: version "5.7.2" resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.2.tgz#3a7deeabbb8c030d4126b24f84e525466145872e" @@ -1998,17 +1239,10 @@ eventemitter3@^4.0.7: resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== -eventemitter3@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.0.tgz#084eb7f5b5388df1451e63f4c2aafd71b217ccb3" - integrity sha512-riuVbElZZNXLeLEoprfNYoDSwTBRR44X3mnhdI1YcnENpWTCsTTVZ2zFuqQcpoyqPQIUXdiPEU0ECAq0KQRaHg== - -ext@^1.1.2: - version "1.7.0" - resolved "https://registry.yarnpkg.com/ext/-/ext-1.7.0.tgz#0ea4383c0103d60e70be99e9a7f11027a33c4f5f" - integrity sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw== - dependencies: - type "^2.7.2" +eventemitter3@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" + integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== fast-deep-equal@^3.1.1: version "3.1.3" @@ -2030,15 +1264,6 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" -find-cache-dir@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7" - integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ== - dependencies: - commondir "^1.0.1" - make-dir "^2.0.0" - pkg-dir "^3.0.0" - find-up@5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" @@ -2047,13 +1272,6 @@ find-up@5.0.0: locate-path "^6.0.0" path-exists "^4.0.0" -find-up@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" - integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== - dependencies: - locate-path "^3.0.0" - flat@^5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" @@ -2066,15 +1284,6 @@ for-each@^0.3.3: dependencies: is-callable "^1.1.3" -form-data@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" - integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - formdata-polyfill@^4.0.10: version "4.0.10" resolved "https://registry.yarnpkg.com/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423" @@ -2107,16 +1316,11 @@ function.prototype.name@^1.1.5: es-abstract "^1.19.0" functions-have-names "^1.2.2" -functions-have-names@^1.2.2: +functions-have-names@^1.2.2, functions-have-names@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== -gensync@^1.0.0-beta.2: - version "1.0.0-beta.2" - resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" - integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== - get-caller-file@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" @@ -2128,12 +1332,13 @@ get-func-name@^2.0.0: integrity sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig== get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.0.tgz#7ad1dc0535f3a2904bba075772763e5051f6d05f" - integrity sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q== + version "1.2.1" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.1.tgz#d295644fed4505fc9cde952c37ee12b477a83d82" + integrity sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw== dependencies: function-bind "^1.1.1" has "^1.0.3" + has-proto "^1.0.1" has-symbols "^1.0.3" get-symbol-description@^1.0.0: @@ -2163,11 +1368,6 @@ glob@7.2.0: once "^1.3.0" path-is-absolute "^1.0.0" -globals@^11.1.0: - version "11.12.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" - integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== - globalthis@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.3.tgz#5852882a52b80dc301b0660273e1ed082f0b6ccf" @@ -2199,11 +1399,6 @@ has-bigints@^1.0.1, has-bigints@^1.0.2: resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== - has-flag@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" @@ -2366,13 +1561,6 @@ is-plain-obj@^2.1.0: resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== -is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" @@ -2413,11 +1601,6 @@ is-typed-array@^1.1.10, is-typed-array@^1.1.9: gopd "^1.0.1" has-tostringtag "^1.0.0" -is-typedarray@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== - is-unicode-supported@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" @@ -2435,11 +1618,6 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== - js-base64@^3.7.5: version "3.7.5" resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.7.5.tgz#21e24cf6b886f76d6f5f165bfcd69cc55b9e3fca" @@ -2450,11 +1628,6 @@ js-sha3@0.8.0: resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== -js-tokens@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - js-yaml@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" @@ -2462,11 +1635,6 @@ js-yaml@4.1.0: dependencies: argparse "^2.0.1" -jsesc@^2.5.1: - version "2.5.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" - integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== - json-schema-traverse@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" @@ -2477,24 +1645,6 @@ json-stringify-safe@^5.0.1: resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== -json5@^2.2.2: - version "2.2.3" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" - integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== - -kind-of@^6.0.2: - version "6.0.3" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== - -locate-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" - integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== - dependencies: - p-locate "^3.0.0" - path-exists "^3.0.0" - locate-path@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" @@ -2522,21 +1672,6 @@ loupe@^2.3.1: dependencies: get-func-name "^2.0.0" -lru-cache@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" - integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== - dependencies: - yallist "^3.0.2" - -make-dir@^2.0.0, make-dir@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" - integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== - dependencies: - pify "^4.0.1" - semver "^5.6.0" - make-error@^1.1.1: version "1.3.6" resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" @@ -2547,18 +1682,6 @@ micro-base58@^0.5.1: resolved "https://registry.yarnpkg.com/micro-base58/-/micro-base58-0.5.1.tgz#008892e621fd0d38caab3288a9dd0e65cb4b6200" integrity sha512-iwqAmg66VjB2LA3BcUxyrOyqck4HLLtSzKnx2VQSnN5piQji598N15P8RRx2d6lPvJ98B1b0cl2VbvQeFeWdig== -mime-db@1.52.0: - version "1.52.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" - integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== - -mime-types@^2.1.12: - version "2.1.35" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" - integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== - dependencies: - mime-db "1.52.0" - minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" @@ -2625,11 +1748,6 @@ mock-socket@^9.2.1: resolved "https://registry.yarnpkg.com/mock-socket/-/mock-socket-9.2.1.tgz#cc9c0810aa4d0afe02d721dcb2b7e657c00e2282" integrity sha512-aw9F9T9G2zpGipLLhSNh6ZpgUyUl4frcVmRN08uE1NWPWg43Wx6+sGPDbQ7E5iFZZDJW5b5bypMeAEHqTbIFag== -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== - ms@2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" @@ -2650,12 +1768,7 @@ neo-async@^2.6.0: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== -next-tick@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb" - integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ== - -nock@^13.3.0, nock@^13.3.1: +nock@^13.3.1: version "13.3.1" resolved "https://registry.yarnpkg.com/nock/-/nock-13.3.1.tgz#f22d4d661f7a05ebd9368edae1b5dc0a62d758fc" integrity sha512-vHnopocZuI93p2ccivFyGuUfzjq2fxNyNurp7816mlT5V5HF4SzXu8lvLrVzBbNqzs+ODooZ6OksuSUNM7Njkw== @@ -2670,7 +1783,7 @@ node-domexception@^1.0.0: resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== -node-fetch@^3.3.0, node-fetch@^3.3.1: +node-fetch@^3.3.1: version "3.3.1" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.3.1.tgz#b3eea7b54b3a48020e46f4f88b9c5a7430d20b2e" integrity sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow== @@ -2679,16 +1792,6 @@ node-fetch@^3.3.0, node-fetch@^3.3.1: fetch-blob "^3.1.4" formdata-polyfill "^4.0.10" -node-gyp-build@^4.3.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.6.0.tgz#0c52e4cbf54bbd28b709820ef7b6a3c2d6209055" - integrity sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ== - -node-releases@^2.0.8: - version "2.0.10" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.10.tgz#c311ebae3b6a148c89b1813fd7c4d3c024ef537f" - integrity sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w== - normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" @@ -2721,13 +1824,6 @@ once@^1.3.0: dependencies: wrappy "1" -p-limit@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - p-limit@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" @@ -2735,13 +1831,6 @@ p-limit@^3.0.2: dependencies: yocto-queue "^0.1.0" -p-locate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" - integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== - dependencies: - p-limit "^2.0.0" - p-locate@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" @@ -2749,21 +1838,11 @@ p-locate@^5.0.0: dependencies: p-limit "^3.0.2" -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - pako@^2.0.4: version "2.1.0" resolved "https://registry.yarnpkg.com/pako/-/pako-2.1.0.tgz#266cc37f98c7d883545d11335c00fbd4062c9a86" integrity sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug== -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== - path-exists@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" @@ -2784,33 +1863,11 @@ pathval@^1.1.1: resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.1.tgz#8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d" integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ== -picocolors@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" - integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== - picomatch@^2.0.4, picomatch@^2.2.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== -pify@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" - integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== - -pirates@^4.0.5: - version "4.0.5" - resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" - integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== - -pkg-dir@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" - integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw== - dependencies: - find-up "^3.0.0" - prettier@2.8.1: version "2.8.1" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.1.tgz#4e1fd11c34e2421bc1da9aea9bd8127cd0a35efc" @@ -2859,19 +1916,14 @@ readdirp@~3.6.0: dependencies: picomatch "^2.2.1" -regenerator-runtime@^0.13.11: - version "0.13.11" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" - integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== - regexp.prototype.flags@^1.4.3: - version "1.4.3" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" - integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== + version "1.5.0" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz#fe7ce25e7e4cca8db37b6634c8a2c7009199b9cb" + integrity sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - functions-have-names "^1.2.2" + define-properties "^1.2.0" + functions-have-names "^1.2.3" require-directory@^2.1.1: version "2.1.1" @@ -2883,7 +1935,7 @@ require-from-string@^2.0.2: resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== -rxjs@^7.8.0, rxjs@^7.8.1: +rxjs@^7.8.1: version "7.8.1" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== @@ -2909,16 +1961,6 @@ scrypt-js@3.0.1: resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== -semver@^5.6.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" - integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== - -semver@^6.3.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== - serialize-javascript@6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.0.tgz#efae5d88f45d7924141da8b5c3a7a7e663fefeb8" @@ -2926,13 +1968,6 @@ serialize-javascript@6.0.0: dependencies: randombytes "^2.1.0" -shallow-clone@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" - integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA== - dependencies: - kind-of "^6.0.2" - shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" @@ -2954,23 +1989,15 @@ side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -smoldot@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/smoldot/-/smoldot-1.0.2.tgz#dd2e7e0db2de4a34d1c90ca888ba8ace9239cee8" - integrity sha512-IHhMzvXwyl6I5GA4JvfzM2OOp9wBO06AmjqT4nCoNms5PiLe74f/A+jIZIJKyY6eBhMpmECizyfeTneHO2wMFQ== +smoldot@1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/smoldot/-/smoldot-1.0.4.tgz#e4c38cedad68d699a11b5b9ce72bb75c891bfd98" + integrity sha512-N3TazI1C4GGrseFH/piWyZCCCRJTRx2QhDfrUKRT4SzILlW5m8ayZ3QTKICcz1C/536T9cbHHJyP7afxI6Mi1A== dependencies: pako "^2.0.4" ws "^8.8.1" -source-map-support@^0.5.16: - version "0.5.21" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" - integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map@^0.6.0, source-map@^0.6.1: +source-map@^0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== @@ -3030,13 +2057,6 @@ supports-color@8.1.1: dependencies: has-flag "^4.0.0" -supports-color@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" - integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== - dependencies: - has-flag "^3.0.0" - supports-color@^7.1.0: version "7.2.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" @@ -3044,11 +2064,6 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" -to-fast-properties@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" - integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== - to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" @@ -3080,26 +2095,11 @@ tslib@^2.1.0, tslib@^2.5.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== -tweetnacl@1.x.x, tweetnacl@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" - integrity sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw== - type-detect@^4.0.0, type-detect@^4.0.5: version "4.0.8" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== -type@^1.0.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/type/-/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" - integrity sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg== - -type@^2.7.2: - version "2.7.2" - resolved "https://registry.yarnpkg.com/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0" - integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== - typed-array-length@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb" @@ -3109,13 +2109,6 @@ typed-array-length@^1.0.4: for-each "^0.3.3" is-typed-array "^1.1.9" -typedarray-to-buffer@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" - integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== - dependencies: - is-typedarray "^1.0.0" - typescript@^5.0.4: version "5.0.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b" @@ -3136,14 +2129,6 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" -update-browserslist-db@^1.0.10: - version "1.0.11" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz#9a2a641ad2907ae7b3616506f4b977851db5b940" - integrity sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA== - dependencies: - escalade "^3.1.1" - picocolors "^1.0.0" - uri-js@^4.2.2: version "4.4.1" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" @@ -3151,13 +2136,6 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" -utf-8-validate@^5.0.2: - version "5.0.10" - resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-5.0.10.tgz#d7d10ea39318171ca982718b6b96a8d2442571a2" - integrity sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ== - dependencies: - node-gyp-build "^4.3.0" - v8-compile-cache-lib@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" @@ -3178,18 +2156,6 @@ websocket-as-promised@^2.0.1: promise.prototype.finally "^3.1.2" promised-map "^1.0.0" -websocket@^1.0.34: - version "1.0.34" - resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" - integrity sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ== - dependencies: - bufferutil "^4.0.1" - debug "^2.2.0" - es5-ext "^0.10.50" - typedarray-to-buffer "^3.1.5" - utf-8-validate "^5.0.2" - yaeti "^0.0.6" - which-boxed-primitive@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" @@ -3259,16 +2225,6 @@ y18n@^5.0.5: resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== -yaeti@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/yaeti/-/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" - integrity sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug== - -yallist@^3.0.2: - version "3.1.1" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" - integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== - yargs-parser@20.2.4: version "20.2.4" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" @@ -3307,7 +2263,7 @@ yargs@16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" -yargs@^17.6.2: +yargs@^17.7.2: version "17.7.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== From 750d4fa88825f3e78ead21cbe304bb715deb1058 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Tue, 16 May 2023 23:25:21 +0800 Subject: [PATCH 07/25] fix types --- tee-worker/ts-tests/bulk_identity.test.ts | 10 ++++---- tee-worker/ts-tests/bulk_vc.test.ts | 23 ++++++++----------- .../ts-tests/common/type-definitions.ts | 10 +++++--- tee-worker/ts-tests/identity.test.ts | 4 +++- tee-worker/ts-tests/interfaces/index.ts | 2 +- tee-worker/ts-tests/interfaces/types.ts | 2 -- 6 files changed, 26 insertions(+), 25 deletions(-) diff --git a/tee-worker/ts-tests/bulk_identity.test.ts b/tee-worker/ts-tests/bulk_identity.test.ts index 5492c4caa4..d07da8f71a 100644 --- a/tee-worker/ts-tests/bulk_identity.test.ts +++ b/tee-worker/ts-tests/bulk_identity.test.ts @@ -10,13 +10,13 @@ import { } from './common/utils'; import { KeyringPair } from '@polkadot/keyring/types'; import { ethers } from 'ethers'; -import { LitentryIdentity, LitentryValidationData } from './common/type-definitions'; +import { LitentryIdentity, LitentryValidationData, BatchCall } from './common/type-definitions'; import { handleIdentityEvents } from './common/utils'; import { assert } from 'chai'; import { listenEvent, multiAccountTxSender } from './common/transactions'; import { u8aToHex } from '@polkadot/util'; -import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; - +import { Call } from '@polkadot/types/interfaces/types'; +import { Vec } from '@polkadot/types'; //Explain how to use this test, which has two important parameters: //1.The "number" parameter in describeLitentry represents the number of accounts generated, including Substrate wallets and Ethereum wallets.If you want to use a large number of accounts for testing, you can modify this parameter. //2.Each time the test code is executed, new wallet account will be used. @@ -36,13 +36,13 @@ describeLitentry('multiple accounts test', 10, async (context) => { }); }); step('send test token to each account', async () => { - const txs: SubmittableExtrinsic[] = []; + const txs: BatchCall = []; for (let i = 0; i < substraetSigners.length; i++) { //1 token const tx = context.api.tx.balances.transfer(substraetSigners[i].address, '1000000000000'); txs.push(tx); } - await context.api.tx.utility.batch(txs).signAndSend(context.substrateWallet.alice); + await context.api.tx.utility.batch(txs as Vec).signAndSend(context.substrateWallet.alice); await listenEvent(context.api, 'balances', ['Transfer'], txs.length, [ u8aToHex(context.substrateWallet.alice.addressRaw), ]); diff --git a/tee-worker/ts-tests/bulk_vc.test.ts b/tee-worker/ts-tests/bulk_vc.test.ts index c39a35556d..5897f4e593 100644 --- a/tee-worker/ts-tests/bulk_vc.test.ts +++ b/tee-worker/ts-tests/bulk_vc.test.ts @@ -1,15 +1,16 @@ import { step } from 'mocha-steps'; import { checkVc, describeLitentry, encryptWithTeeShieldingKey } from './common/utils'; import { KeyringPair } from '@polkadot/keyring/types'; -import { ethers } from 'ethers'; -import { u8aToHex } from '@polkadot/util'; -import { Assertion, IndexingNetwork, TransactionSubmit } from './common/type-definitions'; +import { u8aToHex, hexToU8a } from '@polkadot/util'; +import { Assertion, BatchCall, IndexingNetwork, TransactionSubmit } from './common/type-definitions'; import { handleVcEvents } from './common/utils'; import { blake2AsHex } from '@polkadot/util-crypto'; import { assert } from 'chai'; import { HexString } from '@polkadot/util/types'; import { listenEvent, multiAccountTxSender } from './common/transactions'; -import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; +// import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; +import { Call } from '@polkadot/types/interfaces/types'; +import { Vec } from '@polkadot/types'; const assertion = { A1: 'A1', A2: ['A2'], @@ -28,7 +29,6 @@ const assertion = { describeLitentry('multiple accounts test', 10, async (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; var substrateSigners: KeyringPair[] = []; - var ethereumSigners: ethers.Wallet[] = []; var vcIndexList: HexString[] = []; // If want to test other assertions with multiple accounts,just need to make changes here. let assertion_type = assertion.A1; @@ -36,27 +36,24 @@ describeLitentry('multiple accounts test', 10, async (context) => { substrateSigners = context.web3Signers.map((web3Signer) => { return web3Signer.substrateWallet; }); - ethereumSigners = context.web3Signers.map((web3Signer) => { - return web3Signer.ethereumWallet; - }); }); step('send test token to each account', async () => { - const txs: SubmittableExtrinsic[] = []; - + //batch: (calls: Vec | (string | Uint8Array | IMethod | Call)[]) + const txs: BatchCall = []; for (let i = 0; i < substrateSigners.length; i++) { //1 token const tx = context.api.tx.balances.transfer(substrateSigners[i].address, '1000000000000'); txs.push(tx); } - await context.api.tx.utility.batch(txs).signAndSend(context.substrateWallet.alice); + await context.api.tx.utility.batch(txs as Vec).signAndSend(context.substrateWallet.alice); await listenEvent(context.api, 'balances', ['Transfer'], txs.length, [ u8aToHex(context.substrateWallet.alice.addressRaw), ]); }); //test with multiple accounts step('test set usershieldingkey with multiple accounts', async () => { - const ciphertext = encryptWithTeeShieldingKey(context.teeShieldingKey, aesKey).toString('hex'); + const ciphertext = encryptWithTeeShieldingKey(context.teeShieldingKey, hexToU8a(aesKey)).toString('hex'); let txs: TransactionSubmit[] = []; for (let i = 0; i < substrateSigners.length; i++) { const tx = context.api.tx.identityManagement.setUserShieldingKey(context.mrEnclave, `0x${ciphertext}`); @@ -72,7 +69,7 @@ describeLitentry('multiple accounts test', 10, async (context) => { step('test requestVc with multiple accounts', async () => { let txs: TransactionSubmit[] = []; for (let i = 0; i < substrateSigners.length; i++) { - const tx = context.api.tx.vcManagement.requestVc(context.mrEnclave, assertion_type); + const tx = context.api.tx.vcManagement.requestVc(context.mrEnclave, assertion_type!); const nonce = (await context.api.rpc.system.accountNextIndex(substrateSigners[i].address)).toNumber(); txs.push({ tx, nonce }); } diff --git a/tee-worker/ts-tests/common/type-definitions.ts b/tee-worker/ts-tests/common/type-definitions.ts index fd90474e42..8a92530d73 100644 --- a/tee-worker/ts-tests/common/type-definitions.ts +++ b/tee-worker/ts-tests/common/type-definitions.ts @@ -1,29 +1,33 @@ -import { ApiPromise, Keyring } from '@polkadot/api'; +import { ApiPromise } from '@polkadot/api'; import { KeyObject } from 'crypto'; import { HexString } from '@polkadot/util/types'; import WebSocketAsPromised from 'websocket-as-promised'; import type { KeyringPair } from '@polkadot/keyring/types'; import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; -import { Metadata } from '@polkadot/types'; +import { Metadata, Vec } from '@polkadot/types'; import { Wallet } from 'ethers'; import type { SubstrateNetwork as SubNet, Web2Network as Web2Net, EvmNetwork as EvmNet, + Assertion as GenericAssertion, DirectRequestStatus, } from '../interfaces/identity/types'; import { default as teeTypes } from '../interfaces/identity/definitions'; +import { AnyTuple, IMethod } from '@polkadot/types/types'; +import { Call } from '@polkadot/types/interfaces'; export { teeTypes }; export type Web2Network = Web2Net['type']; export type SubstrateNetwork = SubNet['type']; export type EvmNetwork = EvmNet['type']; - +export type ParachainAssertion = GenericAssertion['type']; export type WorkerRpcReturnString = { vec: string; }; +export type BatchCall = Vec | (string | Uint8Array | IMethod | Call)[]; export type WorkerRpcReturnValue = { value: `0x${string}`; do_watch: boolean; diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index 6745fe85ad..c2bc917881 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -643,7 +643,9 @@ describeLitentry('Test Identity', 0, (context) => { }); step('set error user shielding key', async function () { - const error_ciphertext = encryptWithTeeShieldingKey(context.teeShieldingKey, hexToU8a(errorAesKey)).toString('hex'); + const error_ciphertext = encryptWithTeeShieldingKey(context.teeShieldingKey, hexToU8a(errorAesKey)).toString( + 'hex' + ); const error_tx = context.api.tx.identityManagement.setUserShieldingKey( context.mrEnclave, `0x${error_ciphertext}` diff --git a/tee-worker/ts-tests/interfaces/index.ts b/tee-worker/ts-tests/interfaces/index.ts index 2d307291c3..7f1de782f7 100644 --- a/tee-worker/ts-tests/interfaces/index.ts +++ b/tee-worker/ts-tests/interfaces/index.ts @@ -1,4 +1,4 @@ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit /* eslint-disable */ -export * from './types'; +export * from './types.js'; diff --git a/tee-worker/ts-tests/interfaces/types.ts b/tee-worker/ts-tests/interfaces/types.ts index 15b95bb1db..deaa5c34d9 100644 --- a/tee-worker/ts-tests/interfaces/types.ts +++ b/tee-worker/ts-tests/interfaces/types.ts @@ -1,4 +1,2 @@ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit /* eslint-disable */ - -export * from './identity/types'; From f844315566f83478a536fee0420d20fe1a81d620 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Tue, 16 May 2023 23:41:24 +0800 Subject: [PATCH 08/25] remove comments --- tee-worker/ts-tests/bulk_vc.test.ts | 1 - tee-worker/ts-tests/tsconfig.json | 1 - 2 files changed, 2 deletions(-) diff --git a/tee-worker/ts-tests/bulk_vc.test.ts b/tee-worker/ts-tests/bulk_vc.test.ts index 5897f4e593..74ac03ff4d 100644 --- a/tee-worker/ts-tests/bulk_vc.test.ts +++ b/tee-worker/ts-tests/bulk_vc.test.ts @@ -38,7 +38,6 @@ describeLitentry('multiple accounts test', 10, async (context) => { }); }); step('send test token to each account', async () => { - //batch: (calls: Vec | (string | Uint8Array | IMethod | Call)[]) const txs: BatchCall = []; for (let i = 0; i < substrateSigners.length; i++) { //1 token diff --git a/tee-worker/ts-tests/tsconfig.json b/tee-worker/ts-tests/tsconfig.json index 999ac9898c..d5495a038d 100644 --- a/tee-worker/ts-tests/tsconfig.json +++ b/tee-worker/ts-tests/tsconfig.json @@ -6,7 +6,6 @@ // replace the augmented types with our own, as generated from definitions "@polkadot/types/augment": ["src/interfaces/augment-types.ts"] }, - // some other options, whatever you want for your environment "target": "es2017", "module": "commonjs", "strict": true, From d8d5a0e87b06e17a464f35529e67f579988ec8b1 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 17 May 2023 10:41:07 +0800 Subject: [PATCH 09/25] fix ci --- tee-worker/ts-tests/resuming_worker.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tee-worker/ts-tests/resuming_worker.test.ts b/tee-worker/ts-tests/resuming_worker.test.ts index 51e967ee53..b3e8fc70ab 100644 --- a/tee-worker/ts-tests/resuming_worker.test.ts +++ b/tee-worker/ts-tests/resuming_worker.test.ts @@ -207,7 +207,7 @@ describe('Resume worker', function () { console.log('=========== worker stopped =================='); // resume worker - let { process: r_worker0 } = await launchWorker( + await launchWorker( 'worker0', binary_dir, worker0_dir, @@ -241,7 +241,7 @@ describe('Resume worker', function () { await sleep(20); // resume worker1 - let { process: r_worker1 } = await launchWorker( + await launchWorker( 'worker1', binary_dir, worker1_dir, From 939e8718af68c9b755a68a998a6dde95e18d648e Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 17 May 2023 12:17:12 +0800 Subject: [PATCH 10/25] upgradte polkadot --- .../ts-tests/interfaces/augment-api-consts.ts | 9 + .../ts-tests/interfaces/augment-api-events.ts | 31 + .../ts-tests/interfaces/augment-api-query.ts | 80 ++ .../ts-tests/interfaces/augment-api-rpc.ts | 33 +- .../ts-tests/interfaces/augment-api-tx.ts | 31 + tee-worker/ts-tests/interfaces/augment-api.ts | 14 +- .../ts-tests/interfaces/augment-types.ts | 136 +- tee-worker/ts-tests/interfaces/index.ts | 2 +- tee-worker/ts-tests/interfaces/types.ts | 2 + tee-worker/ts-tests/package.json | 6 +- tee-worker/ts-tests/resuming_worker.test.ts | 16 +- tee-worker/ts-tests/yarn.lock | 1101 ++++++++++++++++- 12 files changed, 1324 insertions(+), 137 deletions(-) diff --git a/tee-worker/ts-tests/interfaces/augment-api-consts.ts b/tee-worker/ts-tests/interfaces/augment-api-consts.ts index 4940c63416..1e9cf7b094 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-consts.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-consts.ts @@ -9,6 +9,15 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types'; import type { Option, U8aFixed, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { Codec } from '@polkadot/types-codec/types'; import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime'; +import type { + FrameSupportPalletId, + FrameSystemLimitsBlockLength, + FrameSystemLimitsBlockWeights, + SpVersionRuntimeVersion, + SpWeightsRuntimeDbWeight, + SpWeightsWeightV2Weight, + XcmV3MultiLocation, +} from '@polkadot/types/lookup'; export type __AugmentedConst = AugmentedConst; diff --git a/tee-worker/ts-tests/interfaces/augment-api-events.ts b/tee-worker/ts-tests/interfaces/augment-api-events.ts index 5442e0bac1..86e5ada37d 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-events.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-events.ts @@ -9,6 +9,37 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types'; import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { ITuple } from '@polkadot/types-codec/types'; import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; +import type { + CorePrimitivesAssertion, + CorePrimitivesErrorErrorDetail, + CorePrimitivesKeyAesOutput, + FrameSupportDispatchDispatchInfo, + FrameSupportTokensMiscBalanceStatus, + MockTeePrimitivesIdentity, + PalletAssetManagerAssetMetadata, + PalletDemocracyMetadataOwner, + PalletDemocracyVoteAccountVote, + PalletDemocracyVoteThreshold, + PalletExtrinsicFilterOperationalMode, + PalletIdentityManagementMockIdentityContext, + PalletMultisigTimepoint, + PalletParachainStakingDelegationRequestsCancelledScheduledRequest, + PalletParachainStakingDelegatorAdded, + RococoParachainRuntimeProxyType, + RuntimeCommonXcmImplCurrencyId, + SpRuntimeDispatchError, + SpWeightsWeightV2Weight, + SubstrateFixedFixedU64, + XcmV3MultiAsset, + XcmV3MultiLocation, + XcmV3MultiassetMultiAssets, + XcmV3Response, + XcmV3TraitsError, + XcmV3TraitsOutcome, + XcmV3Xcm, + XcmVersionedMultiAssets, + XcmVersionedMultiLocation, +} from '@polkadot/types/lookup'; export type __AugmentedEvent = AugmentedEvent; diff --git a/tee-worker/ts-tests/interfaces/augment-api-query.ts b/tee-worker/ts-tests/interfaces/augment-api-query.ts index 545d2835d5..5a2b9b337b 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-query.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-query.ts @@ -23,6 +23,86 @@ import type { } from '@polkadot/types-codec'; import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; import type { AccountId32, Call, H256, Perbill } from '@polkadot/types/interfaces/runtime'; +import type { + CumulusPalletDmpQueueConfigData, + CumulusPalletDmpQueuePageIndexData, + CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, + CumulusPalletXcmpQueueInboundChannelDetails, + CumulusPalletXcmpQueueOutboundChannelDetails, + CumulusPalletXcmpQueueQueueConfigData, + FrameSupportDispatchPerDispatchClassWeight, + FrameSupportPreimagesBounded, + FrameSystemAccountInfo, + FrameSystemEventRecord, + FrameSystemLastRuntimeUpgradeInfo, + FrameSystemPhase, + MockTeePrimitivesIdentity, + OrmlTokensAccountData, + OrmlTokensBalanceLock, + OrmlTokensReserveData, + PalletAssetManagerAssetMetadata, + PalletBalancesAccountData, + PalletBalancesBalanceLock, + PalletBalancesReserveData, + PalletBountiesBounty, + PalletBridgeBridgeEvent, + PalletBridgeProposalVotes, + PalletCollectiveVotes, + PalletDemocracyMetadataOwner, + PalletDemocracyReferendumInfo, + PalletDemocracyVoteThreshold, + PalletDemocracyVoteVoting, + PalletDrop3RewardPool, + PalletExtrinsicFilterOperationalMode, + PalletIdentityManagementMockIdentityContext, + PalletIdentityRegistrarInfo, + PalletIdentityRegistration, + PalletMultisigMultisig, + PalletParachainStakingAutoCompoundAutoCompoundConfig, + PalletParachainStakingBond, + PalletParachainStakingCandidateMetadata, + PalletParachainStakingCollatorSnapshot, + PalletParachainStakingDelayedPayout, + PalletParachainStakingDelegationRequestsScheduledRequest, + PalletParachainStakingDelegations, + PalletParachainStakingDelegator, + PalletParachainStakingInflationInflationInfo, + PalletParachainStakingParachainBondConfig, + PalletParachainStakingRoundInfo, + PalletParachainStakingSetOrderedSet, + PalletPreimageRequestStatus, + PalletProxyAnnouncement, + PalletProxyProxyDefinition, + PalletSchedulerScheduled, + PalletTipsOpenTip, + PalletTransactionPaymentReleases, + PalletTreasuryProposal, + PalletVcManagementSchemaVcSchema, + PalletVcManagementVcContext, + PalletVestingReleases, + PalletVestingVestingInfo, + PalletXcmQueryStatus, + PalletXcmRemoteLockedFungibleRecord, + PalletXcmVersionMigrationStage, + PolkadotCorePrimitivesOutboundHrmpMessage, + PolkadotPrimitivesV2AbridgedHostConfiguration, + PolkadotPrimitivesV2PersistedValidationData, + PolkadotPrimitivesV2UpgradeRestriction, + RococoParachainRuntimeSessionKeys, + RuntimeCommonXcmImplCurrencyId, + SidechainPrimitivesSidechainBlockConfirmation, + SpConsensusAuraSr25519AppSr25519Public, + SpCoreCryptoKeyTypeId, + SpRuntimeDigest, + SpTrieStorageProof, + SpWeightsWeightV2Weight, + SubstrateFixedFixedU64, + TeerexPrimitivesEnclave, + TeerexPrimitivesQuotingEnclave, + TeerexPrimitivesTcbInfoOnChain, + XcmVersionedAssetId, + XcmVersionedMultiLocation, +} from '@polkadot/types/lookup'; import type { Observable } from '@polkadot/types/types'; export type __AugmentedQuery = AugmentedQuery unknown>; diff --git a/tee-worker/ts-tests/interfaces/augment-api-rpc.ts b/tee-worker/ts-tests/interfaces/augment-api-rpc.ts index 480cfda17c..fab673626c 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-rpc.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-rpc.ts @@ -61,7 +61,7 @@ import type { JustificationNotification, ReportedRoundStates, } from '@polkadot/types/interfaces/grandpa'; -import type { MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr'; +import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr'; import type { StorageKind } from '@polkadot/types/interfaces/offchain'; import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment'; import type { RpcMethods } from '@polkadot/types/interfaces/rpc'; @@ -659,35 +659,22 @@ declare module '@polkadot/rpc-core/types/jsonrpc' { }; mmr: { /** - * Generate MMR proof for the given block numbers. + * Generate MMR proof for the given leaf indices. **/ - generateProof: AugmentedRpc< + generateBatchProof: AugmentedRpc< ( - blockNumbers: Vec | (u64 | AnyNumber | Uint8Array)[], - bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array, + leafIndices: Vec | (u64 | AnyNumber | Uint8Array)[], at?: BlockHash | string | Uint8Array - ) => Observable + ) => Observable >; /** - * Get the MMR root hash for the current best block. - **/ - root: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable>; - /** - * Verify an MMR proof + * Generate MMR proof for given leaf index. **/ - verifyProof: AugmentedRpc< - ( - proof: MmrLeafBatchProof | { blockHash?: any; leaves?: any; proof?: any } | string | Uint8Array - ) => Observable - >; - /** - * Verify an MMR proof statelessly given an mmr_root - **/ - verifyProofStateless: AugmentedRpc< + generateProof: AugmentedRpc< ( - root: MmrHash | string | Uint8Array, - proof: MmrLeafBatchProof | { blockHash?: any; leaves?: any; proof?: any } | string | Uint8Array - ) => Observable + leafIndex: u64 | AnyNumber | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable >; }; net: { diff --git a/tee-worker/ts-tests/interfaces/augment-api-tx.ts b/tee-worker/ts-tests/interfaces/augment-api-tx.ts index c75aeaf42d..5277b0979a 100644 --- a/tee-worker/ts-tests/interfaces/augment-api-tx.ts +++ b/tee-worker/ts-tests/interfaces/augment-api-tx.ts @@ -28,6 +28,37 @@ import type { } from '@polkadot/types-codec'; import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; +import type { + CorePrimitivesAssertion, + CorePrimitivesErrorImpError, + CorePrimitivesErrorVcmpError, + CorePrimitivesKeyAesOutput, + CumulusPrimitivesParachainInherentParachainInherentData, + FrameSupportPreimagesBounded, + PalletAssetManagerAssetMetadata, + PalletDemocracyConviction, + PalletDemocracyMetadataOwner, + PalletDemocracyVoteAccountVote, + PalletExtrinsicFilterOperationalMode, + PalletIdentityBitFlags, + PalletIdentityIdentityInfo, + PalletIdentityJudgement, + PalletMultisigTimepoint, + PalletVestingVestingInfo, + RococoParachainRuntimeOriginCaller, + RococoParachainRuntimeProxyType, + RococoParachainRuntimeSessionKeys, + RuntimeCommonXcmImplCurrencyId, + SpWeightsWeightV2Weight, + SubstrateFixedFixedU64, + TeerexPrimitivesRequest, + XcmV3MultiLocation, + XcmV3WeightLimit, + XcmVersionedMultiAsset, + XcmVersionedMultiAssets, + XcmVersionedMultiLocation, + XcmVersionedXcm, +} from '@polkadot/types/lookup'; export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>; export type __SubmittableExtrinsic = SubmittableExtrinsic; diff --git a/tee-worker/ts-tests/interfaces/augment-api.ts b/tee-worker/ts-tests/interfaces/augment-api.ts index 53c9c77017..7cafd228bd 100644 --- a/tee-worker/ts-tests/interfaces/augment-api.ts +++ b/tee-worker/ts-tests/interfaces/augment-api.ts @@ -1,10 +1,10 @@ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit /* eslint-disable */ -import './augment-api-consts.js'; -import './augment-api-errors.js'; -import './augment-api-events.js'; -import './augment-api-query.js'; -import './augment-api-tx.js'; -import './augment-api-rpc.js'; -import './augment-api-runtime.js'; +import './augment-api-consts'; +import './augment-api-errors'; +import './augment-api-events'; +import './augment-api-query'; +import './augment-api-tx'; +import './augment-api-rpc'; +import './augment-api-runtime'; diff --git a/tee-worker/ts-tests/interfaces/augment-types.ts b/tee-worker/ts-tests/interfaces/augment-types.ts index a78631916d..939dbd80ba 100644 --- a/tee-worker/ts-tests/interfaces/augment-types.ts +++ b/tee-worker/ts-tests/interfaces/augment-types.ts @@ -5,6 +5,44 @@ // this is required to allow for ambient/previous definitions import '@polkadot/types/types/registry'; +import type { + Address20, + Address32, + Assertion, + DirectRequestStatus, + DiscordValidationData, + EvmIdentity, + EvmNetwork, + GenericEventWithAccount, + Getter, + IdentityContext, + IdentityGenericEvent, + IdentityMultiSignature, + IdentityString, + LitentryIdentity, + LitentryValidationData, + PublicGetter, + Request, + ShardIdentifier, + SubstrateIdentity, + SubstrateNetwork, + TrustedCall, + TrustedCallSigned, + TrustedGetter, + TrustedGetterSigned, + TrustedOperation, + TrustedOperationStatus, + TwitterValidationData, + UserShieldingKeyType, + VCRequested, + Web2Identity, + Web2Network, + Web2ValidationData, + Web3CommonValidationData, + Web3ValidationData, + WorkerRpcReturnString, + WorkerRpcReturnValue, +} from './identity'; import type { Data, StorageKey } from '@polkadot/types'; import type { BitVec, @@ -18,7 +56,6 @@ import type { I32, I64, I8, - ISize, Json, Null, OptionBool, @@ -41,7 +78,6 @@ import type { i32, i64, i8, - isize, u128, u16, u256, @@ -108,13 +144,11 @@ import type { import type { BeefyAuthoritySet, BeefyCommitment, - BeefyEquivocationProof, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefyPayloadId, BeefySignedCommitment, - BeefyVoteMessage, MmrRootHash, ValidatorSet, ValidatorSetId, @@ -395,7 +429,6 @@ import type { SignerPayload, Sr25519Signature, } from '@polkadot/types/interfaces/extrinsics'; -import type { FungiblesAccessError } from '@polkadot/types/interfaces/fungibles'; import type { AssetOptions, Owner, @@ -438,18 +471,6 @@ import type { StoredPendingChange, StoredState, } from '@polkadot/types/interfaces/grandpa'; -import type { - IdentityFields, - IdentityInfo, - IdentityInfoAdditional, - IdentityInfoTo198, - IdentityJudgement, - RegistrarIndex, - RegistrarInfo, - Registration, - RegistrationJudgement, - RegistrationTo198, -} from '@polkadot/types/interfaces/identity'; import type { AuthIndex, AuthoritySignature, @@ -501,7 +522,6 @@ import type { MetadataV12, MetadataV13, MetadataV14, - MetadataV15, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, @@ -524,15 +544,10 @@ import type { PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, - PalletMetadataV15, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, - RuntimeApiMetadataLatest, - RuntimeApiMetadataV15, - RuntimeApiMethodMetadataV15, - RuntimeApiMethodParamMetadataV15, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, @@ -573,15 +588,13 @@ import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, - MmrHash, MmrLeafBatchProof, MmrLeafIndex, MmrLeafProof, MmrNodeIndex, MmrProof, } from '@polkadot/types/interfaces/mmr'; -import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts'; -import type { NpApiError, NpPoolId } from '@polkadot/types/interfaces/nompools'; +import type { NpApiError } from '@polkadot/types/interfaces/nompools'; import type { StorageKind } from '@polkadot/types/interfaces/offchain'; import type { DeferredOffenceOf, @@ -627,9 +640,6 @@ import type { DisputeStatementSet, DoubleVoteReport, DownwardMessage, - ExecutorParam, - ExecutorParams, - ExecutorParamsHash, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, @@ -676,8 +686,6 @@ import type { ParathreadEntry, PersistedValidationData, PvfCheckStatement, - PvfExecTimeoutKind, - PvfPrepTimeoutKind, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, @@ -1222,6 +1230,8 @@ declare module '@polkadot/types/types/registry' { ActiveIndex: ActiveIndex; ActiveRecovery: ActiveRecovery; Address: Address; + Address20: Address20; + Address32: Address32; AliveContractInfo: AliveContractInfo; AllowedSlots: AllowedSlots; AnySignature: AnySignature; @@ -1231,6 +1241,7 @@ declare module '@polkadot/types/types/registry' { ApprovalFlag: ApprovalFlag; Approvals: Approvals; ArithmeticError: ArithmeticError; + Assertion: Assertion; AssetApproval: AssetApproval; AssetApprovalKey: AssetApprovalKey; AssetBalance: AssetBalance; @@ -1274,14 +1285,12 @@ declare module '@polkadot/types/types/registry' { BalanceStatus: BalanceStatus; BeefyAuthoritySet: BeefyAuthoritySet; BeefyCommitment: BeefyCommitment; - BeefyEquivocationProof: BeefyEquivocationProof; BeefyId: BeefyId; BeefyKey: BeefyKey; BeefyNextAuthoritySet: BeefyNextAuthoritySet; BeefyPayload: BeefyPayload; BeefyPayloadId: BeefyPayloadId; BeefySignedCommitment: BeefySignedCommitment; - BeefyVoteMessage: BeefyVoteMessage; BenchmarkBatch: BenchmarkBatch; BenchmarkConfig: BenchmarkConfig; BenchmarkList: BenchmarkList; @@ -1457,6 +1466,8 @@ declare module '@polkadot/types/types/registry' { Digest: Digest; DigestItem: DigestItem; DigestOf: DigestOf; + DirectRequestStatus: DirectRequestStatus; + DiscordValidationData: DiscordValidationData; DispatchClass: DispatchClass; DispatchError: DispatchError; DispatchErrorModule: DispatchErrorModule; @@ -1561,12 +1572,11 @@ declare module '@polkadot/types/types/registry' { EvmAccount: EvmAccount; EvmCallInfo: EvmCallInfo; EvmCreateInfo: EvmCreateInfo; + EvmIdentity: EvmIdentity; EvmLog: EvmLog; + EvmNetwork: EvmNetwork; EvmVicinity: EvmVicinity; ExecReturnValue: ExecReturnValue; - ExecutorParam: ExecutorParam; - ExecutorParams: ExecutorParams; - ExecutorParamsHash: ExecutorParamsHash; ExitError: ExitError; ExitFatal: ExitFatal; ExitReason: ExitReason; @@ -1627,8 +1637,9 @@ declare module '@polkadot/types/types/registry' { FungibilityV0: FungibilityV0; FungibilityV1: FungibilityV1; FungibilityV2: FungibilityV2; - FungiblesAccessError: FungiblesAccessError; Gas: Gas; + GenericEventWithAccount: GenericEventWithAccount; + Getter: Getter; GiltBid: GiltBid; GlobalValidationData: GlobalValidationData; GlobalValidationSchedule: GlobalValidationSchedule; @@ -1677,11 +1688,10 @@ declare module '@polkadot/types/types/registry' { i8: i8; I8: I8; IdentificationTuple: IdentificationTuple; - IdentityFields: IdentityFields; - IdentityInfo: IdentityInfo; - IdentityInfoAdditional: IdentityInfoAdditional; - IdentityInfoTo198: IdentityInfoTo198; - IdentityJudgement: IdentityJudgement; + IdentityContext: IdentityContext; + IdentityGenericEvent: IdentityGenericEvent; + IdentityMultiSignature: IdentityMultiSignature; + IdentityString: IdentityString; ImmortalEra: ImmortalEra; ImportedAux: ImportedAux; InboundDownwardMessage: InboundDownwardMessage; @@ -1715,8 +1725,6 @@ declare module '@polkadot/types/types/registry' { InteriorMultiLocation: InteriorMultiLocation; InvalidDisputeStatementKind: InvalidDisputeStatementKind; InvalidTransaction: InvalidTransaction; - isize: isize; - ISize: ISize; Json: Json; Junction: Junction; Junctions: Junctions; @@ -1744,6 +1752,8 @@ declare module '@polkadot/types/types/registry' { LegacyTransaction: LegacyTransaction; Limits: Limits; LimitsTo264: LimitsTo264; + LitentryIdentity: LitentryIdentity; + LitentryValidationData: LitentryValidationData; LocalValidationData: LocalValidationData; LockIdentifier: LockIdentifier; LookupSource: LookupSource; @@ -1770,13 +1780,11 @@ declare module '@polkadot/types/types/registry' { MetadataV12: MetadataV12; MetadataV13: MetadataV13; MetadataV14: MetadataV14; - MetadataV15: MetadataV15; MetadataV9: MetadataV9; MigrationStatusResult: MigrationStatusResult; MmrBatchProof: MmrBatchProof; MmrEncodableOpaqueLeaf: MmrEncodableOpaqueLeaf; MmrError: MmrError; - MmrHash: MmrHash; MmrLeafBatchProof: MmrLeafBatchProof; MmrLeafIndex: MmrLeafIndex; MmrLeafProof: MmrLeafProof; @@ -1826,15 +1834,12 @@ declare module '@polkadot/types/types/registry' { NextAuthority: NextAuthority; NextConfigDescriptor: NextConfigDescriptor; NextConfigDescriptorV1: NextConfigDescriptorV1; - NftCollectionId: NftCollectionId; - NftItemId: NftItemId; NodeRole: NodeRole; Nominations: Nominations; NominatorIndex: NominatorIndex; NominatorIndexCompact: NominatorIndexCompact; NotConnectedPeer: NotConnectedPeer; NpApiError: NpApiError; - NpPoolId: NpPoolId; Null: Null; OccupiedCore: OccupiedCore; OccupiedCoreAssumption: OccupiedCoreAssumption; @@ -1882,7 +1887,6 @@ declare module '@polkadot/types/types/registry' { PalletId: PalletId; PalletMetadataLatest: PalletMetadataLatest; PalletMetadataV14: PalletMetadataV14; - PalletMetadataV15: PalletMetadataV15; PalletsOrigin: PalletsOrigin; PalletStorageMetadataLatest: PalletStorageMetadataLatest; PalletStorageMetadataV14: PalletStorageMetadataV14; @@ -1947,9 +1951,8 @@ declare module '@polkadot/types/types/registry' { ProxyDefinition: ProxyDefinition; ProxyState: ProxyState; ProxyType: ProxyType; + PublicGetter: PublicGetter; PvfCheckStatement: PvfCheckStatement; - PvfExecTimeoutKind: PvfExecTimeoutKind; - PvfPrepTimeoutKind: PvfPrepTimeoutKind; QueryId: QueryId; QueryStatus: QueryStatus; QueueConfigData: QueueConfigData; @@ -1983,11 +1986,6 @@ declare module '@polkadot/types/types/registry' { ReferendumInfoTo239: ReferendumInfoTo239; ReferendumStatus: ReferendumStatus; RegisteredParachainInfo: RegisteredParachainInfo; - RegistrarIndex: RegistrarIndex; - RegistrarInfo: RegistrarInfo; - Registration: Registration; - RegistrationJudgement: RegistrationJudgement; - RegistrationTo198: RegistrationTo198; RelayBlockNumber: RelayBlockNumber; RelayChainBlockNumber: RelayChainBlockNumber; RelayChainHash: RelayChainHash; @@ -2001,6 +1999,7 @@ declare module '@polkadot/types/types/registry' { ReportedRoundStates: ReportedRoundStates; Reporter: Reporter; ReportIdOf: ReportIdOf; + Request: Request; ReserveData: ReserveData; ReserveIdentifier: ReserveIdentifier; Response: Response; @@ -2015,10 +2014,6 @@ declare module '@polkadot/types/types/registry' { RoundSnapshot: RoundSnapshot; RoundState: RoundState; RpcMethods: RpcMethods; - RuntimeApiMetadataLatest: RuntimeApiMetadataLatest; - RuntimeApiMetadataV15: RuntimeApiMetadataV15; - RuntimeApiMethodMetadataV15: RuntimeApiMethodMetadataV15; - RuntimeApiMethodParamMetadataV15: RuntimeApiMethodParamMetadataV15; RuntimeCall: RuntimeCall; RuntimeDbWeight: RuntimeDbWeight; RuntimeDispatchInfo: RuntimeDispatchInfo; @@ -2066,6 +2061,7 @@ declare module '@polkadot/types/types/registry' { SessionKeys9B: SessionKeys9B; SetId: SetId; SetIndex: SetIndex; + ShardIdentifier: ShardIdentifier; Si0Field: Si0Field; Si0LookupTypeId: Si0LookupTypeId; Si0Path: Si0Path; @@ -2192,6 +2188,8 @@ declare module '@polkadot/types/types/registry' { StrikeCount: StrikeCount; SubId: SubId; SubmissionIndicesOf: SubmissionIndicesOf; + SubstrateIdentity: SubstrateIdentity; + SubstrateNetwork: SubstrateNetwork; Supports: Supports; SyncState: SyncState; SystemInherentData: SystemInherentData; @@ -2222,6 +2220,13 @@ declare module '@polkadot/types/types/registry' { TreasuryProposal: TreasuryProposal; TrieId: TrieId; TrieIndex: TrieIndex; + TrustedCall: TrustedCall; + TrustedCallSigned: TrustedCallSigned; + TrustedGetter: TrustedGetter; + TrustedGetterSigned: TrustedGetterSigned; + TrustedOperation: TrustedOperation; + TrustedOperationStatus: TrustedOperationStatus; + TwitterValidationData: TwitterValidationData; Type: Type; u128: u128; U128: U128; @@ -2246,6 +2251,7 @@ declare module '@polkadot/types/types/registry' { UpgradeGoAhead: UpgradeGoAhead; UpgradeRestriction: UpgradeRestriction; UpwardMessage: UpwardMessage; + UserShieldingKeyType: UserShieldingKeyType; usize: usize; USize: USize; ValidationCode: ValidationCode; @@ -2269,6 +2275,7 @@ declare module '@polkadot/types/types/registry' { ValidDisputeStatementKind: ValidDisputeStatementKind; ValidityAttestation: ValidityAttestation; ValidTransaction: ValidTransaction; + VCRequested: VCRequested; VecInboundHrmpMessage: VecInboundHrmpMessage; VersionedMultiAsset: VersionedMultiAsset; VersionedMultiAssets: VersionedMultiAssets; @@ -2294,6 +2301,11 @@ declare module '@polkadot/types/types/registry' { VrfData: VrfData; VrfOutput: VrfOutput; VrfProof: VrfProof; + Web2Identity: Web2Identity; + Web2Network: Web2Network; + Web2ValidationData: Web2ValidationData; + Web3CommonValidationData: Web3CommonValidationData; + Web3ValidationData: Web3ValidationData; Weight: Weight; WeightLimitV2: WeightLimitV2; WeightMultiplier: WeightMultiplier; @@ -2317,6 +2329,8 @@ declare module '@polkadot/types/types/registry' { WinningData10: WinningData10; WinningDataEntry: WinningDataEntry; WithdrawReasons: WithdrawReasons; + WorkerRpcReturnString: WorkerRpcReturnString; + WorkerRpcReturnValue: WorkerRpcReturnValue; Xcm: Xcm; XcmAssetId: XcmAssetId; XcmError: XcmError; diff --git a/tee-worker/ts-tests/interfaces/index.ts b/tee-worker/ts-tests/interfaces/index.ts index 7f1de782f7..2d307291c3 100644 --- a/tee-worker/ts-tests/interfaces/index.ts +++ b/tee-worker/ts-tests/interfaces/index.ts @@ -1,4 +1,4 @@ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit /* eslint-disable */ -export * from './types.js'; +export * from './types'; diff --git a/tee-worker/ts-tests/interfaces/types.ts b/tee-worker/ts-tests/interfaces/types.ts index deaa5c34d9..15b95bb1db 100644 --- a/tee-worker/ts-tests/interfaces/types.ts +++ b/tee-worker/ts-tests/interfaces/types.ts @@ -1,2 +1,4 @@ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit /* eslint-disable */ + +export * from './identity/types'; diff --git a/tee-worker/ts-tests/package.json b/tee-worker/ts-tests/package.json index ee4328e324..431a2d0bba 100644 --- a/tee-worker/ts-tests/package.json +++ b/tee-worker/ts-tests/package.json @@ -23,10 +23,10 @@ }, "dependencies": { "@noble/ed25519": "^1.7.3", - "@polkadot/api": "^10.3.4", + "@polkadot/api": "^10.7.1", "@polkadot/keyring": "^12.1.2", - "@polkadot/typegen": "^10.7.1", - "@polkadot/types": "^10.3.4", + "@polkadot/typegen": "^9.14.2", + "@polkadot/types": "^10.7.1", "add": "^2.0.6", "ajv": "^8.12.0", "chai": "^4.3.6", diff --git a/tee-worker/ts-tests/resuming_worker.test.ts b/tee-worker/ts-tests/resuming_worker.test.ts index b3e8fc70ab..0ffe27cc73 100644 --- a/tee-worker/ts-tests/resuming_worker.test.ts +++ b/tee-worker/ts-tests/resuming_worker.test.ts @@ -207,13 +207,7 @@ describe('Resume worker', function () { console.log('=========== worker stopped =================='); // resume worker - await launchWorker( - 'worker0', - binary_dir, - worker0_dir, - commands.worker0.commands.resume, - false - ); + await launchWorker('worker0', binary_dir, worker0_dir, commands.worker0.commands.resume, false); await worker0_conn.open(); //reopen connection const resume_block = await latestBlock(worker0_conn, shard); // TODO compare the block hash @@ -241,13 +235,7 @@ describe('Resume worker', function () { await sleep(20); // resume worker1 - await launchWorker( - 'worker1', - binary_dir, - worker1_dir, - commands.worker1.commands.resume, - false - ); + await launchWorker('worker1', binary_dir, worker1_dir, commands.worker1.commands.resume, false); await worker1_conn.open(); //reopen connection const resume_block = await latestBlock(worker1_conn, shard); assert.isNotEmpty(resume_block.result, "the latest block can't be empty"); diff --git a/tee-worker/ts-tests/yarn.lock b/tee-worker/ts-tests/yarn.lock index 4d75c9d0ad..be2ac2a5d5 100644 --- a/tee-worker/ts-tests/yarn.lock +++ b/tee-worker/ts-tests/yarn.lock @@ -2,6 +2,213 @@ # yarn lockfile v1 +"@ampproject/remapping@^2.2.0": + version "2.2.1" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630" + integrity sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg== + dependencies: + "@jridgewell/gen-mapping" "^0.3.0" + "@jridgewell/trace-mapping" "^0.3.9" + +"@babel/code-frame@^7.18.6", "@babel/code-frame@^7.21.4": + version "7.21.4" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.21.4.tgz#d0fa9e4413aca81f2b23b9442797bda1826edb39" + integrity sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g== + dependencies: + "@babel/highlight" "^7.18.6" + +"@babel/compat-data@^7.21.5": + version "7.21.7" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.21.7.tgz#61caffb60776e49a57ba61a88f02bedd8714f6bc" + integrity sha512-KYMqFYTaenzMK4yUtf4EW9wc4N9ef80FsbMtkwool5zpwl4YrT1SdWYSTRcT94KO4hannogdS+LxY7L+arP3gA== + +"@babel/core@^7.20.12": + version "7.21.8" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.21.8.tgz#2a8c7f0f53d60100ba4c32470ba0281c92aa9aa4" + integrity sha512-YeM22Sondbo523Sz0+CirSPnbj9bG3P0CdHcBZdqUuaeOaYEFbOLoGU7lebvGP6P5J/WE9wOn7u7C4J9HvS1xQ== + dependencies: + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.21.4" + "@babel/generator" "^7.21.5" + "@babel/helper-compilation-targets" "^7.21.5" + "@babel/helper-module-transforms" "^7.21.5" + "@babel/helpers" "^7.21.5" + "@babel/parser" "^7.21.8" + "@babel/template" "^7.20.7" + "@babel/traverse" "^7.21.5" + "@babel/types" "^7.21.5" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.2" + semver "^6.3.0" + +"@babel/generator@^7.21.5": + version "7.21.5" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.21.5.tgz#c0c0e5449504c7b7de8236d99338c3e2a340745f" + integrity sha512-SrKK/sRv8GesIW1bDagf9cCG38IOMYZusoe1dfg0D8aiUe3Amvoj1QtjTPAWcfrZFvIwlleLb0gxzQidL9w14w== + dependencies: + "@babel/types" "^7.21.5" + "@jridgewell/gen-mapping" "^0.3.2" + "@jridgewell/trace-mapping" "^0.3.17" + jsesc "^2.5.1" + +"@babel/helper-compilation-targets@^7.21.5": + version "7.21.5" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.21.5.tgz#631e6cc784c7b660417421349aac304c94115366" + integrity sha512-1RkbFGUKex4lvsB9yhIfWltJM5cZKUftB2eNajaDv3dCMEp49iBG0K14uH8NnX9IPux2+mK7JGEOB0jn48/J6w== + dependencies: + "@babel/compat-data" "^7.21.5" + "@babel/helper-validator-option" "^7.21.0" + browserslist "^4.21.3" + lru-cache "^5.1.1" + semver "^6.3.0" + +"@babel/helper-environment-visitor@^7.21.5": + version "7.21.5" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.21.5.tgz#c769afefd41d171836f7cb63e295bedf689d48ba" + integrity sha512-IYl4gZ3ETsWocUWgsFZLM5i1BYx9SoemminVEXadgLBa9TdeorzgLKm8wWLA6J1N/kT3Kch8XIk1laNzYoHKvQ== + +"@babel/helper-function-name@^7.21.0": + version "7.21.0" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz#d552829b10ea9f120969304023cd0645fa00b1b4" + integrity sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg== + dependencies: + "@babel/template" "^7.20.7" + "@babel/types" "^7.21.0" + +"@babel/helper-hoist-variables@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" + integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-module-imports@^7.21.4": + version "7.21.4" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz#ac88b2f76093637489e718a90cec6cf8a9b029af" + integrity sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg== + dependencies: + "@babel/types" "^7.21.4" + +"@babel/helper-module-transforms@^7.21.5": + version "7.21.5" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.21.5.tgz#d937c82e9af68d31ab49039136a222b17ac0b420" + integrity sha512-bI2Z9zBGY2q5yMHoBvJ2a9iX3ZOAzJPm7Q8Yz6YeoUjU/Cvhmi2G4QyTNyPBqqXSgTjUxRg3L0xV45HvkNWWBw== + dependencies: + "@babel/helper-environment-visitor" "^7.21.5" + "@babel/helper-module-imports" "^7.21.4" + "@babel/helper-simple-access" "^7.21.5" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/helper-validator-identifier" "^7.19.1" + "@babel/template" "^7.20.7" + "@babel/traverse" "^7.21.5" + "@babel/types" "^7.21.5" + +"@babel/helper-simple-access@^7.21.5": + version "7.21.5" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz#d697a7971a5c39eac32c7e63c0921c06c8a249ee" + integrity sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg== + dependencies: + "@babel/types" "^7.21.5" + +"@babel/helper-split-export-declaration@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" + integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-string-parser@^7.21.5": + version "7.21.5" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz#2b3eea65443c6bdc31c22d037c65f6d323b6b2bd" + integrity sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w== + +"@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": + version "7.19.1" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" + integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== + +"@babel/helper-validator-option@^7.21.0": + version "7.21.0" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz#8224c7e13ace4bafdc4004da2cf064ef42673180" + integrity sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ== + +"@babel/helpers@^7.21.5": + version "7.21.5" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.21.5.tgz#5bac66e084d7a4d2d9696bdf0175a93f7fb63c08" + integrity sha512-BSY+JSlHxOmGsPTydUkPf1MdMQ3M81x5xGCOVgWM3G8XH77sJ292Y2oqcp0CbbgxhqBuI46iUz1tT7hqP7EfgA== + dependencies: + "@babel/template" "^7.20.7" + "@babel/traverse" "^7.21.5" + "@babel/types" "^7.21.5" + +"@babel/highlight@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" + integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== + dependencies: + "@babel/helper-validator-identifier" "^7.18.6" + chalk "^2.0.0" + js-tokens "^4.0.0" + +"@babel/parser@^7.20.7", "@babel/parser@^7.21.5", "@babel/parser@^7.21.8": + version "7.21.8" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.8.tgz#642af7d0333eab9c0ad70b14ac5e76dbde7bfdf8" + integrity sha512-6zavDGdzG3gUqAdWvlLFfk+36RilI+Pwyuuh7HItyeScCWP3k6i8vKclAQ0bM/0y/Kz/xiwvxhMv9MgTJP5gmA== + +"@babel/register@^7.18.9": + version "7.21.0" + resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.21.0.tgz#c97bf56c2472e063774f31d344c592ebdcefa132" + integrity sha512-9nKsPmYDi5DidAqJaQooxIhsLJiNMkGr8ypQ8Uic7cIox7UCDsM7HuUGxdGT7mSDTYbqzIdsOWzfBton/YJrMw== + dependencies: + clone-deep "^4.0.1" + find-cache-dir "^2.0.0" + make-dir "^2.1.0" + pirates "^4.0.5" + source-map-support "^0.5.16" + +"@babel/runtime@^7.20.13", "@babel/runtime@^7.20.6": + version "7.21.5" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.5.tgz#8492dddda9644ae3bda3b45eabe87382caee7200" + integrity sha512-8jI69toZqqcsnqGGqwGS4Qb1VwLOEp4hz+CXPywcvjs60u3B4Pom/U/7rm4W8tMOYEB+E9wgD0mW1l3r8qlI9Q== + dependencies: + regenerator-runtime "^0.13.11" + +"@babel/template@^7.20.7": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.20.7.tgz#a15090c2839a83b02aa996c0b4994005841fd5a8" + integrity sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/parser" "^7.20.7" + "@babel/types" "^7.20.7" + +"@babel/traverse@^7.21.5": + version "7.21.5" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.21.5.tgz#ad22361d352a5154b498299d523cf72998a4b133" + integrity sha512-AhQoI3YjWi6u/y/ntv7k48mcrCXmus0t79J9qPNlk/lAsFlCiJ047RmbfMOawySTHtywXhbXgpx/8nXMYd+oFw== + dependencies: + "@babel/code-frame" "^7.21.4" + "@babel/generator" "^7.21.5" + "@babel/helper-environment-visitor" "^7.21.5" + "@babel/helper-function-name" "^7.21.0" + "@babel/helper-hoist-variables" "^7.18.6" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/parser" "^7.21.5" + "@babel/types" "^7.21.5" + debug "^4.1.0" + globals "^11.1.0" + +"@babel/types@^7.18.6", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.21.4", "@babel/types@^7.21.5": + version "7.21.5" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.21.5.tgz#18dfbd47c39d3904d5db3d3dc2cc80bedb60e5b6" + integrity sha512-m4AfNvVF2mVC/F7fDEdH2El3HzUg9It/XsCxZiOTTA3m3qYfcSVSbTfM6Q9xG+hYDniZssYhlXKKUMD5m8tF4Q== + dependencies: + "@babel/helper-string-parser" "^7.21.5" + "@babel/helper-validator-identifier" "^7.19.1" + to-fast-properties "^2.0.0" + "@cspotcode/source-map-support@^0.8.0": version "0.8.1" resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" @@ -351,11 +558,35 @@ "@ethersproject/properties" "^5.7.0" "@ethersproject/strings" "^5.7.0" +"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098" + integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ== + dependencies: + "@jridgewell/set-array" "^1.0.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/resolve-uri@3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" + integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== + "@jridgewell/resolve-uri@^3.0.3": version "3.1.1" resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz#c08679063f279615a3326583ba3a90d1d82cc721" integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== +"@jridgewell/set-array@^1.0.1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" + integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== + +"@jridgewell/sourcemap-codec@1.4.14": + version "1.4.14" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" + integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== + "@jridgewell/sourcemap-codec@^1.4.10": version "1.4.15" resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" @@ -369,6 +600,14 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" +"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": + version "0.3.18" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6" + integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA== + dependencies: + "@jridgewell/resolve-uri" "3.1.0" + "@jridgewell/sourcemap-codec" "1.4.14" + "@noble/curves@1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.0.0.tgz#e40be8c7daf088aaf291887cbc73f43464a92932" @@ -381,11 +620,21 @@ resolved "https://registry.yarnpkg.com/@noble/ed25519/-/ed25519-1.7.3.tgz#57e1677bf6885354b466c38e2b620c62f45a7123" integrity sha512-iR8GBkDt0Q3GyaVcIu7mSsVIqnFbkbRzGLWlvhwunacoLwt4J3swfKhfaM6rN6WY+TBGoYT1GtT1mIh2/jGbRQ== +"@noble/hashes@1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.2.0.tgz#a3150eeb09cc7ab207ebf6d7b9ad311a9bdbed12" + integrity sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ== + "@noble/hashes@1.3.0": version "1.3.0" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.0.tgz#085fd70f6d7d9d109671090ccae1d3bec62554a1" integrity sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg== +"@noble/secp256k1@1.7.1": + version "1.7.1" + resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.1.tgz#b251c70f824ce3ca7f8dc3df08d58f005cc0507c" + integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw== + "@polkadot/api-augment@10.7.1": version "10.7.1" resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-10.7.1.tgz#14cbf067fe208287a4a37f13de4809802c05ad8f" @@ -399,6 +648,19 @@ "@polkadot/util" "^12.2.1" tslib "^2.5.0" +"@polkadot/api-augment@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-9.14.2.tgz#2c49cdcfdf7057523db1dc8d7b0801391a8a2e69" + integrity sha512-19MmW8AHEcLkdcUIo3LLk0eCQgREWqNSxkUyOeWn7UiNMY1AhDOOwMStUBNCvrIDK6VL6GGc1sY7rkPCLMuKSw== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/api-base" "9.14.2" + "@polkadot/rpc-augment" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-augment" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/api-base@10.7.1": version "10.7.1" resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-10.7.1.tgz#445e6687f26f6223b58459bc20a5f57fb1f0835b" @@ -410,6 +672,17 @@ rxjs "^7.8.1" tslib "^2.5.0" +"@polkadot/api-base@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-9.14.2.tgz#605b44e3692a125bd8d97eed9cea8af9d0c454e2" + integrity sha512-ky9fmzG1Tnrjr/SBZ0aBB21l0TFr+CIyQenQczoUyVgiuxVaI/2Bp6R2SFrHhG28P+PW2/RcYhn2oIAR2Z2fZQ== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/rpc-core" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/util" "^10.4.2" + rxjs "^7.8.0" + "@polkadot/api-derive@10.7.1": version "10.7.1" resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-10.7.1.tgz#14f478894c5c53fe8e7d85d7a2a8e84de3eaf065" @@ -426,7 +699,23 @@ rxjs "^7.8.1" tslib "^2.5.0" -"@polkadot/api@10.7.1", "@polkadot/api@^10.3.4": +"@polkadot/api-derive@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-9.14.2.tgz#e8fcd4ee3f2b80b9fe34d4dec96169c3bdb4214d" + integrity sha512-yw9OXucmeggmFqBTMgza0uZwhNjPxS7MaT7lSCUIRKckl1GejdV+qMhL3XFxPFeYzXwzFpdPG11zWf+qJlalqw== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/api" "9.14.2" + "@polkadot/api-augment" "9.14.2" + "@polkadot/api-base" "9.14.2" + "@polkadot/rpc-core" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/util-crypto" "^10.4.2" + rxjs "^7.8.0" + +"@polkadot/api@10.7.1", "@polkadot/api@^10.7.1": version "10.7.1" resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-10.7.1.tgz#a0735f18f3a06041b7bd1330e8bb50dc741230ee" integrity sha512-6jVYCVlKvQC1HctlZdH3fg28yWb5Wv7IMJn055j66aE+D54z+P8VYdUx17rZsUCWjg6lMlVyzybM9aTm5TE8Sw== @@ -449,6 +738,38 @@ rxjs "^7.8.1" tslib "^2.5.0" +"@polkadot/api@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-9.14.2.tgz#d5cee02236654c6063d7c4b70c78c290db5aba8d" + integrity sha512-R3eYFj2JgY1zRb+OCYQxNlJXCs2FA+AU4uIEiVcXnVLmR3M55tkRNEwYAZmiFxx0pQmegGgPMc33q7TWGdw24A== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/api-augment" "9.14.2" + "@polkadot/api-base" "9.14.2" + "@polkadot/api-derive" "9.14.2" + "@polkadot/keyring" "^10.4.2" + "@polkadot/rpc-augment" "9.14.2" + "@polkadot/rpc-core" "9.14.2" + "@polkadot/rpc-provider" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-augment" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/types-create" "9.14.2" + "@polkadot/types-known" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/util-crypto" "^10.4.2" + eventemitter3 "^5.0.0" + rxjs "^7.8.0" + +"@polkadot/keyring@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-10.4.2.tgz#793377fdb9076df0af771df11388faa6be03c70d" + integrity sha512-7iHhJuXaHrRTG6cJDbZE9G+c1ts1dujp0qbO4RfAPmT7YUvphHvAtCKueN9UKPz5+TYDL+rP/jDEaSKU8jl/qQ== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/util" "10.4.2" + "@polkadot/util-crypto" "10.4.2" + "@polkadot/keyring@^12.1.2", "@polkadot/keyring@^12.2.1": version "12.2.1" resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-12.2.1.tgz#d131375c0436115d1f35139bd2bbbc069dd5b9fa" @@ -458,6 +779,15 @@ "@polkadot/util-crypto" "12.2.1" tslib "^2.5.0" +"@polkadot/networks@10.4.2", "@polkadot/networks@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-10.4.2.tgz#d7878c6aad8173c800a21140bfe5459261724456" + integrity sha512-FAh/znrEvWBiA/LbcT5GXHsCFUl//y9KqxLghSr/CreAmAergiJNT0MVUezC7Y36nkATgmsr4ylFwIxhVtuuCw== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/util" "10.4.2" + "@substrate/ss58-registry" "^1.38.0" + "@polkadot/networks@12.2.1", "@polkadot/networks@^12.2.1": version "12.2.1" resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-12.2.1.tgz#ce3e2371e3bd02c9c1b233846b9fe1df4601f560" @@ -478,6 +808,17 @@ "@polkadot/util" "^12.2.1" tslib "^2.5.0" +"@polkadot/rpc-augment@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-9.14.2.tgz#eb70d5511463dab8d995faeb77d4edfe4952fe26" + integrity sha512-mOubRm3qbKZTbP9H01XRrfTk7k5it9WyzaWAg72DJBQBYdgPUUkGSgpPD/Srkk5/5GAQTWVWL1I2UIBKJ4TJjQ== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/rpc-core" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/rpc-core@10.7.1": version "10.7.1" resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-10.7.1.tgz#d8be2eb85df86d10dc480e3321ec3106df4a1a40" @@ -490,6 +831,18 @@ rxjs "^7.8.1" tslib "^2.5.0" +"@polkadot/rpc-core@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-9.14.2.tgz#26d4f00ac7abbf880f8280e9b96235880d35794b" + integrity sha512-krA/mtQ5t9nUQEsEVC1sjkttLuzN6z6gyJxK2IlpMS3S5ncy/R6w4FOpy+Q0H18Dn83JBo0p7ZtY7Y6XkK48Kw== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/rpc-augment" "9.14.2" + "@polkadot/rpc-provider" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/util" "^10.4.2" + rxjs "^7.8.0" + "@polkadot/rpc-provider@10.7.1": version "10.7.1" resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-10.7.1.tgz#50fa0b90a8e32d6fd04d0776a54a73406c60d104" @@ -510,26 +863,49 @@ optionalDependencies: "@substrate/connect" "0.7.26" -"@polkadot/typegen@^10.7.1": - version "10.7.1" - resolved "https://registry.yarnpkg.com/@polkadot/typegen/-/typegen-10.7.1.tgz#f098a838b1d76996b5bcb2808dc8b491569b49ba" - integrity sha512-weXShJAqk5ViI0ikIuzAyvaGAUunayjdDIlu4ogHCfMvAQiSj5Ub7Z6VdrzAqbKPq8f9OsSYv4LtVmCwzR2gEg== - dependencies: - "@polkadot/api" "10.7.1" - "@polkadot/api-augment" "10.7.1" - "@polkadot/rpc-augment" "10.7.1" - "@polkadot/rpc-provider" "10.7.1" - "@polkadot/types" "10.7.1" - "@polkadot/types-augment" "10.7.1" - "@polkadot/types-codec" "10.7.1" - "@polkadot/types-create" "10.7.1" - "@polkadot/types-support" "10.7.1" - "@polkadot/util" "^12.2.1" - "@polkadot/util-crypto" "^12.2.1" - "@polkadot/x-ws" "^12.2.1" +"@polkadot/rpc-provider@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-9.14.2.tgz#0dea667f3a03bf530f202cba5cd360df19b32e30" + integrity sha512-YTSywjD5PF01V47Ru5tln2LlpUwJiSOdz6rlJXPpMaY53hUp7+xMU01FVAQ1bllSBNisSD1Msv/mYHq84Oai2g== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/keyring" "^10.4.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-support" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/util-crypto" "^10.4.2" + "@polkadot/x-fetch" "^10.4.2" + "@polkadot/x-global" "^10.4.2" + "@polkadot/x-ws" "^10.4.2" + eventemitter3 "^5.0.0" + mock-socket "^9.2.1" + nock "^13.3.0" + optionalDependencies: + "@substrate/connect" "0.7.19" + +"@polkadot/typegen@^9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/typegen/-/typegen-9.14.2.tgz#223fd8b986e05845a80d300f0348abaa82cf67d5" + integrity sha512-j5ZOSz106ocDrmYOENnIPvuI5j7Cg458D31U1hZz0fdv090QowtTHjpe5+RBBaS3W0Dnk8Fh+LkIzIiQPp4gjA== + dependencies: + "@babel/core" "^7.20.12" + "@babel/register" "^7.18.9" + "@babel/runtime" "^7.20.13" + "@polkadot/api" "9.14.2" + "@polkadot/api-augment" "9.14.2" + "@polkadot/rpc-augment" "9.14.2" + "@polkadot/rpc-provider" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-augment" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/types-create" "9.14.2" + "@polkadot/types-support" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/util-crypto" "^10.4.2" + "@polkadot/x-ws" "^10.4.2" handlebars "^4.7.7" - tslib "^2.5.0" - yargs "^17.7.2" + websocket "^1.0.34" + yargs "^17.6.2" "@polkadot/types-augment@10.7.1": version "10.7.1" @@ -541,6 +917,16 @@ "@polkadot/util" "^12.2.1" tslib "^2.5.0" +"@polkadot/types-augment@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-9.14.2.tgz#1a478e18e713b04038f3e171287ee5abe908f0aa" + integrity sha512-WO9d7RJufUeY3iFgt2Wz762kOu1tjEiGBR5TT4AHtpEchVHUeosVTrN9eycC+BhleqYu52CocKz6u3qCT/jKLg== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/types" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/types-codec@10.7.1": version "10.7.1" resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-10.7.1.tgz#75854ef2bd7d0b9a4b21a529913afda55af8a64a" @@ -550,6 +936,15 @@ "@polkadot/x-bigint" "^12.2.1" tslib "^2.5.0" +"@polkadot/types-codec@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-9.14.2.tgz#d625c80495d7a68237b3d5c0a60ff10d206131fa" + integrity sha512-AJ4XF7W1no4PENLBRU955V6gDxJw0h++EN3YoDgThozZ0sj3OxyFupKgNBZcZb2V23H8JxQozzIad8k+nJbO1w== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/util" "^10.4.2" + "@polkadot/x-bigint" "^10.4.2" + "@polkadot/types-create@10.7.1": version "10.7.1" resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-10.7.1.tgz#84e4b021592f62c16bd9a38d60055752efafa8be" @@ -559,6 +954,15 @@ "@polkadot/util" "^12.2.1" tslib "^2.5.0" +"@polkadot/types-create@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-9.14.2.tgz#aec515a2d3bc7e7b7802095cdd35ece48dc442bc" + integrity sha512-nSnKpBierlmGBQT8r6/SHf6uamBIzk4WmdMsAsR4uJKJF1PtbIqx2W5PY91xWSiMSNMzjkbCppHkwaDAMwLGaw== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/types-codec" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/types-known@10.7.1": version "10.7.1" resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-10.7.1.tgz#40d275d116458b93631c30192e9cb4d88aa363f3" @@ -571,6 +975,18 @@ "@polkadot/util" "^12.2.1" tslib "^2.5.0" +"@polkadot/types-known@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-9.14.2.tgz#17fe5034a5b907bd006093a687f112b07edadf10" + integrity sha512-iM8WOCgguzJ3TLMqlm4K1gKQEwWm2zxEKT1HZZ1irs/lAbBk9MquDWDvebryiw3XsLB8xgrp3RTIBn2Q4FjB2A== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/networks" "^10.4.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/types-create" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/types-support@10.7.1": version "10.7.1" resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-10.7.1.tgz#f88baac9f9976e1ca86974292af38e533aab3447" @@ -579,7 +995,15 @@ "@polkadot/util" "^12.2.1" tslib "^2.5.0" -"@polkadot/types@10.7.1", "@polkadot/types@^10.3.4": +"@polkadot/types-support@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-9.14.2.tgz#d25e8d4e5ec3deef914cb55fc8bc5448431ddd18" + integrity sha512-VWCOPgXDK3XtXT7wMLyIWeNDZxUbNcw/8Pn6n6vMogs7o/n4h6WGbGMeTIQhPWyn831/RmkVs5+2DUC+2LlOhw== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/util" "^10.4.2" + +"@polkadot/types@10.7.1", "@polkadot/types@^10.7.1": version "10.7.1" resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-10.7.1.tgz#5c2874a718200a21ed4604fe311b40c3e4dad1d4" integrity sha512-Bb1DiYya0jLVYjyvOeJppJJikj6v1XXyHsj1OpvKK/ErnIGX0Esj8UyakmKxvDf2y0fn4VabCwXviuUIZhUTFg== @@ -593,6 +1017,37 @@ rxjs "^7.8.1" tslib "^2.5.0" +"@polkadot/types@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-9.14.2.tgz#5105f41eb9e8ea29938188d21497cbf1753268b8" + integrity sha512-hGLddTiJbvowhhUZJ3k+olmmBc1KAjWIQxujIUIYASih8FQ3/YJDKxaofGOzh0VygOKW3jxQBN2VZPofyDP9KQ== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/keyring" "^10.4.2" + "@polkadot/types-augment" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/types-create" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/util-crypto" "^10.4.2" + rxjs "^7.8.0" + +"@polkadot/util-crypto@10.4.2", "@polkadot/util-crypto@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-10.4.2.tgz#871fb69c65768bd48c57bb5c1f76a85d979fb8b5" + integrity sha512-RxZvF7C4+EF3fzQv8hZOLrYCBq5+wA+2LWv98nECkroChY3C2ZZvyWDqn8+aonNULt4dCVTWDZM0QIY6y4LUAQ== + dependencies: + "@babel/runtime" "^7.20.13" + "@noble/hashes" "1.2.0" + "@noble/secp256k1" "1.7.1" + "@polkadot/networks" "10.4.2" + "@polkadot/util" "10.4.2" + "@polkadot/wasm-crypto" "^6.4.1" + "@polkadot/x-bigint" "10.4.2" + "@polkadot/x-randomvalues" "10.4.2" + "@scure/base" "1.1.1" + ed2curve "^0.3.0" + tweetnacl "^1.0.3" + "@polkadot/util-crypto@12.2.1", "@polkadot/util-crypto@^12.2.1": version "12.2.1" resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-12.2.1.tgz#cbb0d1535e187af43ddcbac4248298b134f2f3ee" @@ -609,6 +1064,19 @@ "@scure/base" "1.1.1" tslib "^2.5.0" +"@polkadot/util@10.4.2", "@polkadot/util@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-10.4.2.tgz#df41805cb27f46b2b4dad24c371fa2a68761baa1" + integrity sha512-0r5MGICYiaCdWnx+7Axlpvzisy/bi1wZGXgCSw5+ZTyPTOqvsYRqM2X879yxvMsGfibxzWqNzaiVjToz1jvUaA== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/x-bigint" "10.4.2" + "@polkadot/x-global" "10.4.2" + "@polkadot/x-textdecoder" "10.4.2" + "@polkadot/x-textencoder" "10.4.2" + "@types/bn.js" "^5.1.1" + bn.js "^5.2.1" + "@polkadot/util@12.2.1", "@polkadot/util@^12.2.1": version "12.2.1" resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-12.2.1.tgz#d6c692324890802bc3b2f15b213b7430bb26e8c8" @@ -622,6 +1090,13 @@ bn.js "^5.2.1" tslib "^2.5.0" +"@polkadot/wasm-bridge@6.4.1": + version "6.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-bridge/-/wasm-bridge-6.4.1.tgz#e97915dd67ba543ec3381299c2a5b9330686e27e" + integrity sha512-QZDvz6dsUlbYsaMV5biZgZWkYH9BC5AfhT0f0/knv8+LrbAoQdP3Asbvddw8vyU9sbpuCHXrd4bDLBwUCRfrBQ== + dependencies: + "@babel/runtime" "^7.20.6" + "@polkadot/wasm-bridge@7.2.1": version "7.2.1" resolved "https://registry.yarnpkg.com/@polkadot/wasm-bridge/-/wasm-bridge-7.2.1.tgz#8464a96552207d2b49c6f32137b24132534b91ee" @@ -630,6 +1105,13 @@ "@polkadot/wasm-util" "7.2.1" tslib "^2.5.0" +"@polkadot/wasm-crypto-asmjs@6.4.1": + version "6.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-6.4.1.tgz#3cc76bbda5ea4a7a860982c64f9565907b312253" + integrity sha512-UxZTwuBZlnODGIQdCsE2Sn/jU0O2xrNQ/TkhRFELfkZXEXTNu4lw6NpaKq7Iey4L+wKd8h4lT3VPVkMcPBLOvA== + dependencies: + "@babel/runtime" "^7.20.6" + "@polkadot/wasm-crypto-asmjs@7.2.1": version "7.2.1" resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-7.2.1.tgz#3e7a91e2905ab7354bc37b82f3e151a62bb024db" @@ -637,6 +1119,16 @@ dependencies: tslib "^2.5.0" +"@polkadot/wasm-crypto-init@6.4.1": + version "6.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-init/-/wasm-crypto-init-6.4.1.tgz#4d9ab0030db52cf177bf707ef8e77aa4ca721668" + integrity sha512-1ALagSi/nfkyFaH6JDYfy/QbicVbSn99K8PV9rctDUfxc7P06R7CoqbjGQ4OMPX6w1WYVPU7B4jPHGLYBlVuMw== + dependencies: + "@babel/runtime" "^7.20.6" + "@polkadot/wasm-bridge" "6.4.1" + "@polkadot/wasm-crypto-asmjs" "6.4.1" + "@polkadot/wasm-crypto-wasm" "6.4.1" + "@polkadot/wasm-crypto-init@7.2.1": version "7.2.1" resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-init/-/wasm-crypto-init-7.2.1.tgz#9dbba41ed7d382575240f1483cf5a139ff2787bd" @@ -648,6 +1140,14 @@ "@polkadot/wasm-util" "7.2.1" tslib "^2.5.0" +"@polkadot/wasm-crypto-wasm@6.4.1": + version "6.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-6.4.1.tgz#97180f80583b18f6a13c1054fa5f7e8da40b1028" + integrity sha512-3VV9ZGzh0ZY3SmkkSw+0TRXxIpiO0nB8lFwlRgcwaCihwrvLfRnH9GI8WE12mKsHVjWTEVR3ogzILJxccAUjDA== + dependencies: + "@babel/runtime" "^7.20.6" + "@polkadot/wasm-util" "6.4.1" + "@polkadot/wasm-crypto-wasm@7.2.1": version "7.2.1" resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-7.2.1.tgz#d2486322c725f6e5d2cc2d6abcb77ecbbaedc738" @@ -656,6 +1156,18 @@ "@polkadot/wasm-util" "7.2.1" tslib "^2.5.0" +"@polkadot/wasm-crypto@^6.4.1": + version "6.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-6.4.1.tgz#79310e23ad1ca62362ba893db6a8567154c2536a" + integrity sha512-FH+dcDPdhSLJvwL0pMLtn/LIPd62QDPODZRCmDyw+pFjLOMaRBc7raomWUOqyRWJTnqVf/iscc2rLVLNMyt7ag== + dependencies: + "@babel/runtime" "^7.20.6" + "@polkadot/wasm-bridge" "6.4.1" + "@polkadot/wasm-crypto-asmjs" "6.4.1" + "@polkadot/wasm-crypto-init" "6.4.1" + "@polkadot/wasm-crypto-wasm" "6.4.1" + "@polkadot/wasm-util" "6.4.1" + "@polkadot/wasm-crypto@^7.2.1": version "7.2.1" resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-7.2.1.tgz#db671dcb73f1646dc13478b5ffc3be18c64babe1" @@ -668,6 +1180,13 @@ "@polkadot/wasm-util" "7.2.1" tslib "^2.5.0" +"@polkadot/wasm-util@6.4.1": + version "6.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-util/-/wasm-util-6.4.1.tgz#74aecc85bec427a9225d9874685944ea3dc3ab76" + integrity sha512-Uwo+WpEsDmFExWC5kTNvsVhvqXMZEKf4gUHXFn4c6Xz4lmieRT5g+1bO1KJ21pl4msuIgdV3Bksfs/oiqMFqlw== + dependencies: + "@babel/runtime" "^7.20.6" + "@polkadot/wasm-util@7.2.1", "@polkadot/wasm-util@^7.2.1": version "7.2.1" resolved "https://registry.yarnpkg.com/@polkadot/wasm-util/-/wasm-util-7.2.1.tgz#fda233120ec02f77f0d14e4d3c7ad9ce06535fb8" @@ -675,6 +1194,14 @@ dependencies: tslib "^2.5.0" +"@polkadot/x-bigint@10.4.2", "@polkadot/x-bigint@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-bigint/-/x-bigint-10.4.2.tgz#7eb2ec732259df48b5a00f07879a1331e05606ec" + integrity sha512-awRiox+/XSReLzimAU94fPldowiwnnMUkQJe8AebYhNocAj6SJU00GNoj6j6tAho6yleOwrTJXZaWFBaQVJQNg== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/x-global" "10.4.2" + "@polkadot/x-bigint@12.2.1", "@polkadot/x-bigint@^12.2.1": version "12.2.1" resolved "https://registry.yarnpkg.com/@polkadot/x-bigint/-/x-bigint-12.2.1.tgz#adb639628626d2a6d7853afff43da20b4db4369a" @@ -683,6 +1210,16 @@ "@polkadot/x-global" "12.2.1" tslib "^2.5.0" +"@polkadot/x-fetch@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-10.4.2.tgz#bc6ba70de71a252472fbe36180511ed920e05f05" + integrity sha512-Ubb64yaM4qwhogNP+4mZ3ibRghEg5UuCYRMNaCFoPgNAY8tQXuDKrHzeks3+frlmeH9YRd89o8wXLtWouwZIcw== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/x-global" "10.4.2" + "@types/node-fetch" "^2.6.2" + node-fetch "^3.3.0" + "@polkadot/x-fetch@^12.2.1": version "12.2.1" resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-12.2.1.tgz#65b447373a0155cae3e546b842ced356d8599c54" @@ -692,6 +1229,13 @@ node-fetch "^3.3.1" tslib "^2.5.0" +"@polkadot/x-global@10.4.2", "@polkadot/x-global@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-10.4.2.tgz#5662366e3deda0b4c8f024b2d902fa838f9e60a4" + integrity sha512-g6GXHD/ykZvHap3M6wh19dO70Zm43l4jEhlxf5LtTo5/0/UporFCXr2YJYZqfbn9JbQwl1AU+NroYio+vtJdiA== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/x-global@12.2.1", "@polkadot/x-global@^12.2.1": version "12.2.1" resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-12.2.1.tgz#42e798e9607a4d7667469d91225c030fb3e8c8b5" @@ -699,6 +1243,14 @@ dependencies: tslib "^2.5.0" +"@polkadot/x-randomvalues@10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-10.4.2.tgz#895f1220d5a4522a83d8d5014e3c1e03b129893e" + integrity sha512-mf1Wbpe7pRZHO0V3V89isPLqZOy5XGX2bCqsfUWHgb1NvV1MMx5TjVjdaYyNlGTiOkAmJKlOHshcfPU2sYWpNg== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/x-global" "10.4.2" + "@polkadot/x-randomvalues@12.2.1": version "12.2.1" resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-12.2.1.tgz#00c3f097f987b9ff70dbd2720086ad3d0bc16cfb" @@ -707,6 +1259,14 @@ "@polkadot/x-global" "12.2.1" tslib "^2.5.0" +"@polkadot/x-textdecoder@10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-10.4.2.tgz#93202f3e5ad0e7f75a3fa02d2b8a3343091b341b" + integrity sha512-d3ADduOKUTU+cliz839+KCFmi23pxTlabH7qh7Vs1GZQvXOELWdqFOqakdiAjtMn68n1KVF4O14Y+OUm7gp/zA== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/x-global" "10.4.2" + "@polkadot/x-textdecoder@12.2.1": version "12.2.1" resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-12.2.1.tgz#a426a1d8a3b5717859b81a7341b16de4de3d78c0" @@ -715,6 +1275,14 @@ "@polkadot/x-global" "12.2.1" tslib "^2.5.0" +"@polkadot/x-textencoder@10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-10.4.2.tgz#cd2e6c8a66b0b400a73f0164e99c510fb5c83501" + integrity sha512-mxcQuA1exnyv74Kasl5vxBq01QwckG088lYjc3KwmND6+pPrW2OWagbxFX5VFoDLDAE+UJtnUHsjdWyOTDhpQA== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/x-global" "10.4.2" + "@polkadot/x-textencoder@12.2.1": version "12.2.1" resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-12.2.1.tgz#f606c9929668bb41a23ec25c9752252bb56b0c9b" @@ -723,6 +1291,16 @@ "@polkadot/x-global" "12.2.1" tslib "^2.5.0" +"@polkadot/x-ws@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-10.4.2.tgz#4e9d88f37717570ccf942c6f4f63b06260f45025" + integrity sha512-3gHSTXAWQu1EMcMVTF5QDKHhEHzKxhAArweEyDXE7VsgKUP/ixxw4hVZBrkX122iI5l5mjSiooRSnp/Zl3xqDQ== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/x-global" "10.4.2" + "@types/websocket" "^1.0.5" + websocket "^1.0.34" + "@polkadot/x-ws@^12.2.1": version "12.2.1" resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-12.2.1.tgz#8774bc8cd38194354e48fc92438c4ebb52929fce" @@ -742,6 +1320,15 @@ resolved "https://registry.yarnpkg.com/@substrate/connect-extension-protocol/-/connect-extension-protocol-1.0.1.tgz#fa5738039586c648013caa6a0c95c43265dbe77d" integrity sha512-161JhCC1csjH3GE5mPLEd7HbWtwNSPJBg3p1Ksz9SFlTzj/bgEwudiRN2y5i0MoLGCIJRYKyKGMxVnd29PzNjg== +"@substrate/connect@0.7.19": + version "0.7.19" + resolved "https://registry.yarnpkg.com/@substrate/connect/-/connect-0.7.19.tgz#7c879cb275bc7ac2fe9edbf797572d4ff8d8b86a" + integrity sha512-+DDRadc466gCmDU71sHrYOt1HcI2Cbhm7zdCFjZfFVHXhC/E8tOdrVSglAH2HDEHR0x2SiHRxtxOGC7ak2Zjog== + dependencies: + "@substrate/connect-extension-protocol" "^1.0.1" + "@substrate/smoldot-light" "0.7.9" + eventemitter3 "^4.0.7" + "@substrate/connect@0.7.26": version "0.7.26" resolved "https://registry.yarnpkg.com/@substrate/connect/-/connect-0.7.26.tgz#a0ee5180c9cb2f29250d1219a32f7b7e7dea1196" @@ -751,7 +1338,15 @@ eventemitter3 "^4.0.7" smoldot "1.0.4" -"@substrate/ss58-registry@^1.40.0": +"@substrate/smoldot-light@0.7.9": + version "0.7.9" + resolved "https://registry.yarnpkg.com/@substrate/smoldot-light/-/smoldot-light-0.7.9.tgz#68449873a25558e547e9468289686ee228a9930f" + integrity sha512-HP8iP7sFYlpSgjjbo0lqHyU+gu9lL2hbDNce6dWk5/10mFFF9jKIFGfui4zCecUY808o/Go9pan/31kMJoLbug== + dependencies: + pako "^2.0.4" + ws "^8.8.1" + +"@substrate/ss58-registry@^1.38.0", "@substrate/ss58-registry@^1.40.0": version "1.40.0" resolved "https://registry.yarnpkg.com/@substrate/ss58-registry/-/ss58-registry-1.40.0.tgz#2223409c496271df786c1ca8496898896595441e" integrity sha512-QuU2nBql3J4KCnOWtWDw4n1K4JU0T79j54ZZvm/9nhsX6AIar13FyhsaBfs6QkJ2ixTQAnd7TocJIoJRWbqMZA== @@ -793,11 +1388,26 @@ resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.1.tgz#2f4f65bb08bc368ac39c96da7b2f09140b26851b" integrity sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q== +"@types/node-fetch@^2.6.2": + version "2.6.4" + resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.6.4.tgz#1bc3a26de814f6bf466b25aeb1473fa1afe6a660" + integrity sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg== + dependencies: + "@types/node" "*" + form-data "^3.0.0" + "@types/node@*": version "20.1.5" resolved "https://registry.yarnpkg.com/@types/node/-/node-20.1.5.tgz#e94b604c67fc408f215fcbf3bd84d4743bf7f710" integrity sha512-IvGD1CD/nego63ySR7vrAKEX3AJTcmrAN2kn+/sDNLi1Ff5kBzDeEdqWDplK+0HAEoLYej137Sk0cUU8OLOlMg== +"@types/websocket@^1.0.5": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@types/websocket/-/websocket-1.0.5.tgz#3fb80ed8e07f88e51961211cd3682a3a4a81569c" + integrity sha512-NbsqiNX9CnEfC1Z0Vf4mE1SgAJ07JnRYcNex7AJ9zAVzmiGHmjKFEk7O4TJIsgv2B1sLEb6owKFZrACwdYngsQ== + dependencies: + "@types/node" "*" + "@types/ws@^8.5.3": version "8.5.4" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.4.tgz#bb10e36116d6e570dd943735f86c933c1587b8a5" @@ -845,6 +1455,13 @@ ansi-regex@^5.0.1: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== +ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + ansi-styles@^4.0.0, ansi-styles@^4.1.0: version "4.3.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" @@ -883,6 +1500,11 @@ assertion-error@^1.1.0: resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b" integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw== +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== + available-typed-arrays@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7" @@ -945,6 +1567,28 @@ browser-stdout@1.3.1: resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== +browserslist@^4.21.3: + version "4.21.5" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.5.tgz#75c5dae60063ee641f977e00edd3cfb2fb7af6a7" + integrity sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w== + dependencies: + caniuse-lite "^1.0.30001449" + electron-to-chromium "^1.4.284" + node-releases "^2.0.8" + update-browserslist-db "^1.0.10" + +buffer-from@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" + integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== + +bufferutil@^4.0.1: + version "4.0.7" + resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.7.tgz#60c0d19ba2c992dd8273d3f73772ffc894c153ad" + integrity sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw== + dependencies: + node-gyp-build "^4.3.0" + call-bind@^1.0.0, call-bind@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" @@ -958,6 +1602,11 @@ camelcase@^6.0.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== +caniuse-lite@^1.0.30001449: + version "1.0.30001487" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001487.tgz#d882d1a34d89c11aea53b8cdc791931bdab5fe1b" + integrity sha512-83564Z3yWGqXsh2vaH/mhXfEM0wX+NlBCm1jYHOb97TrTWJEmPTccZgeLTPBUUb0PNVo+oomb7wkimZBIERClA== + chai@^4.3.6: version "4.3.7" resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.7.tgz#ec63f6df01829088e8bf55fca839bcd464a8ec51" @@ -971,6 +1620,15 @@ chai@^4.3.6: pathval "^1.1.1" type-detect "^4.0.5" +chalk@^2.0.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + chalk@^4.1.0: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" @@ -1022,6 +1680,22 @@ cliui@^8.0.1: strip-ansi "^6.0.1" wrap-ansi "^7.0.0" +clone-deep@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" + integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== + dependencies: + is-plain-object "^2.0.4" + kind-of "^6.0.2" + shallow-clone "^3.0.0" + +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + color-convert@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" @@ -1029,6 +1703,11 @@ color-convert@^2.0.1: dependencies: color-name "~1.1.4" +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== + color-name@~1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" @@ -1039,11 +1718,28 @@ colors@^1.4.0: resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA== +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== + concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== +convert-source-map@^1.7.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" + integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== + create-require@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" @@ -1065,6 +1761,14 @@ cross-spawn@^7.0.1: shebang-command "^2.0.0" which "^2.0.1" +d@1, d@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" + integrity sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA== + dependencies: + es5-ext "^0.10.50" + type "^1.0.1" + data-uri-to-buffer@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz#d8feb2b2881e6a4f58c2e08acfd0e2834e26222e" @@ -1077,6 +1781,13 @@ debug@4.3.4, debug@^4.1.0: dependencies: ms "2.1.2" +debug@^2.2.0: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + decamelize@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" @@ -1097,6 +1808,11 @@ define-properties@^1.1.3, define-properties@^1.1.4, define-properties@^1.2.0: has-property-descriptors "^1.0.0" object-keys "^1.1.1" +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + diff@5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" @@ -1112,6 +1828,18 @@ dotenv@^16.0.3: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07" integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ== +ed2curve@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/ed2curve/-/ed2curve-0.3.0.tgz#322b575152a45305429d546b071823a93129a05d" + integrity sha512-8w2fmmq3hv9rCrcI7g9hms2pMunQr1JINfcjwR9tAyZqhtyaMN991lF/ZfHfr5tzZQ8c7y7aBgZbjfbd0fjFwQ== + dependencies: + tweetnacl "1.x.x" + +electron-to-chromium@^1.4.284: + version "1.4.397" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.397.tgz#82a7e26c657538d59bb713b97ac22f97ea3a90ea" + integrity sha512-jwnPxhh350Q/aMatQia31KAIQdhEsYS0fFZ0BQQlN9tfvOEwShu6ZNwI4kL/xBabjcB/nTy6lSt17kNIluJZ8Q== + elliptic@6.5.4: version "6.5.4" resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" @@ -1188,6 +1916,32 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" +es5-ext@^0.10.35, es5-ext@^0.10.50: + version "0.10.62" + resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.62.tgz#5e6adc19a6da524bf3d1e02bbc8960e5eb49a9a5" + integrity sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA== + dependencies: + es6-iterator "^2.0.3" + es6-symbol "^3.1.3" + next-tick "^1.1.0" + +es6-iterator@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" + integrity sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g== + dependencies: + d "1" + es5-ext "^0.10.35" + es6-symbol "^3.1.1" + +es6-symbol@^3.1.1, es6-symbol@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" + integrity sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA== + dependencies: + d "^1.0.1" + ext "^1.1.2" + escalade@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" @@ -1198,6 +1952,11 @@ escape-string-regexp@4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== + ethers@^5.7.2: version "5.7.2" resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.2.tgz#3a7deeabbb8c030d4126b24f84e525466145872e" @@ -1239,11 +1998,18 @@ eventemitter3@^4.0.7: resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== -eventemitter3@^5.0.1: +eventemitter3@^5.0.0, eventemitter3@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== +ext@^1.1.2: + version "1.7.0" + resolved "https://registry.yarnpkg.com/ext/-/ext-1.7.0.tgz#0ea4383c0103d60e70be99e9a7f11027a33c4f5f" + integrity sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw== + dependencies: + type "^2.7.2" + fast-deep-equal@^3.1.1: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" @@ -1264,6 +2030,15 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" +find-cache-dir@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7" + integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ== + dependencies: + commondir "^1.0.1" + make-dir "^2.0.0" + pkg-dir "^3.0.0" + find-up@5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" @@ -1272,6 +2047,13 @@ find-up@5.0.0: locate-path "^6.0.0" path-exists "^4.0.0" +find-up@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" + integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== + dependencies: + locate-path "^3.0.0" + flat@^5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" @@ -1284,6 +2066,15 @@ for-each@^0.3.3: dependencies: is-callable "^1.1.3" +form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" + integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + formdata-polyfill@^4.0.10: version "4.0.10" resolved "https://registry.yarnpkg.com/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423" @@ -1321,6 +2112,11 @@ functions-have-names@^1.2.2, functions-have-names@^1.2.3: resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== + get-caller-file@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" @@ -1368,6 +2164,11 @@ glob@7.2.0: once "^1.3.0" path-is-absolute "^1.0.0" +globals@^11.1.0: + version "11.12.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + globalthis@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.3.tgz#5852882a52b80dc301b0660273e1ed082f0b6ccf" @@ -1399,6 +2200,11 @@ has-bigints@^1.0.1, has-bigints@^1.0.2: resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== + has-flag@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" @@ -1561,6 +2367,13 @@ is-plain-obj@^2.1.0: resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== +is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== + dependencies: + isobject "^3.0.1" + is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" @@ -1601,6 +2414,11 @@ is-typed-array@^1.1.10, is-typed-array@^1.1.9: gopd "^1.0.1" has-tostringtag "^1.0.0" +is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== + is-unicode-supported@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" @@ -1618,6 +2436,11 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== +isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== + js-base64@^3.7.5: version "3.7.5" resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.7.5.tgz#21e24cf6b886f76d6f5f165bfcd69cc55b9e3fca" @@ -1628,6 +2451,11 @@ js-sha3@0.8.0: resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== +js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + js-yaml@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" @@ -1635,6 +2463,11 @@ js-yaml@4.1.0: dependencies: argparse "^2.0.1" +jsesc@^2.5.1: + version "2.5.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" + integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== + json-schema-traverse@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" @@ -1645,6 +2478,24 @@ json-stringify-safe@^5.0.1: resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== +json5@^2.2.2: + version "2.2.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== + +kind-of@^6.0.2: + version "6.0.3" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" + integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== + +locate-path@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" + integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== + dependencies: + p-locate "^3.0.0" + path-exists "^3.0.0" + locate-path@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" @@ -1672,6 +2523,21 @@ loupe@^2.3.1: dependencies: get-func-name "^2.0.0" +lru-cache@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" + +make-dir@^2.0.0, make-dir@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" + integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== + dependencies: + pify "^4.0.1" + semver "^5.6.0" + make-error@^1.1.1: version "1.3.6" resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" @@ -1682,6 +2548,18 @@ micro-base58@^0.5.1: resolved "https://registry.yarnpkg.com/micro-base58/-/micro-base58-0.5.1.tgz#008892e621fd0d38caab3288a9dd0e65cb4b6200" integrity sha512-iwqAmg66VjB2LA3BcUxyrOyqck4HLLtSzKnx2VQSnN5piQji598N15P8RRx2d6lPvJ98B1b0cl2VbvQeFeWdig== +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@^2.1.12: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" @@ -1748,6 +2626,11 @@ mock-socket@^9.2.1: resolved "https://registry.yarnpkg.com/mock-socket/-/mock-socket-9.2.1.tgz#cc9c0810aa4d0afe02d721dcb2b7e657c00e2282" integrity sha512-aw9F9T9G2zpGipLLhSNh6ZpgUyUl4frcVmRN08uE1NWPWg43Wx6+sGPDbQ7E5iFZZDJW5b5bypMeAEHqTbIFag== +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== + ms@2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" @@ -1768,7 +2651,12 @@ neo-async@^2.6.0: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== -nock@^13.3.1: +next-tick@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb" + integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ== + +nock@^13.3.0, nock@^13.3.1: version "13.3.1" resolved "https://registry.yarnpkg.com/nock/-/nock-13.3.1.tgz#f22d4d661f7a05ebd9368edae1b5dc0a62d758fc" integrity sha512-vHnopocZuI93p2ccivFyGuUfzjq2fxNyNurp7816mlT5V5HF4SzXu8lvLrVzBbNqzs+ODooZ6OksuSUNM7Njkw== @@ -1783,7 +2671,7 @@ node-domexception@^1.0.0: resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== -node-fetch@^3.3.1: +node-fetch@^3.3.0, node-fetch@^3.3.1: version "3.3.1" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.3.1.tgz#b3eea7b54b3a48020e46f4f88b9c5a7430d20b2e" integrity sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow== @@ -1792,6 +2680,16 @@ node-fetch@^3.3.1: fetch-blob "^3.1.4" formdata-polyfill "^4.0.10" +node-gyp-build@^4.3.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.6.0.tgz#0c52e4cbf54bbd28b709820ef7b6a3c2d6209055" + integrity sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ== + +node-releases@^2.0.8: + version "2.0.10" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.10.tgz#c311ebae3b6a148c89b1813fd7c4d3c024ef537f" + integrity sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w== + normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" @@ -1824,6 +2722,13 @@ once@^1.3.0: dependencies: wrappy "1" +p-limit@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" + integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + dependencies: + p-try "^2.0.0" + p-limit@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" @@ -1831,6 +2736,13 @@ p-limit@^3.0.2: dependencies: yocto-queue "^0.1.0" +p-locate@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" + integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== + dependencies: + p-limit "^2.0.0" + p-locate@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" @@ -1838,11 +2750,21 @@ p-locate@^5.0.0: dependencies: p-limit "^3.0.2" +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + pako@^2.0.4: version "2.1.0" resolved "https://registry.yarnpkg.com/pako/-/pako-2.1.0.tgz#266cc37f98c7d883545d11335c00fbd4062c9a86" integrity sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug== +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== + path-exists@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" @@ -1863,11 +2785,33 @@ pathval@^1.1.1: resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.1.tgz#8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d" integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ== +picocolors@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" + integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== + picomatch@^2.0.4, picomatch@^2.2.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== +pify@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" + integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== + +pirates@^4.0.5: + version "4.0.5" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" + integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== + +pkg-dir@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" + integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw== + dependencies: + find-up "^3.0.0" + prettier@2.8.1: version "2.8.1" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.1.tgz#4e1fd11c34e2421bc1da9aea9bd8127cd0a35efc" @@ -1916,6 +2860,11 @@ readdirp@~3.6.0: dependencies: picomatch "^2.2.1" +regenerator-runtime@^0.13.11: + version "0.13.11" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" + integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== + regexp.prototype.flags@^1.4.3: version "1.5.0" resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz#fe7ce25e7e4cca8db37b6634c8a2c7009199b9cb" @@ -1935,7 +2884,7 @@ require-from-string@^2.0.2: resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== -rxjs@^7.8.1: +rxjs@^7.8.0, rxjs@^7.8.1: version "7.8.1" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== @@ -1961,6 +2910,16 @@ scrypt-js@3.0.1: resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== +semver@^5.6.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + +semver@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== + serialize-javascript@6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.0.tgz#efae5d88f45d7924141da8b5c3a7a7e663fefeb8" @@ -1968,6 +2927,13 @@ serialize-javascript@6.0.0: dependencies: randombytes "^2.1.0" +shallow-clone@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" + integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA== + dependencies: + kind-of "^6.0.2" + shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" @@ -1997,7 +2963,15 @@ smoldot@1.0.4: pako "^2.0.4" ws "^8.8.1" -source-map@^0.6.1: +source-map-support@^0.5.16: + version "0.5.21" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" + integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.6.0, source-map@^0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== @@ -2057,6 +3031,13 @@ supports-color@8.1.1: dependencies: has-flag "^4.0.0" +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + supports-color@^7.1.0: version "7.2.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" @@ -2064,6 +3045,11 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== + to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" @@ -2095,11 +3081,26 @@ tslib@^2.1.0, tslib@^2.5.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== +tweetnacl@1.x.x, tweetnacl@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" + integrity sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw== + type-detect@^4.0.0, type-detect@^4.0.5: version "4.0.8" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== +type@^1.0.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/type/-/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" + integrity sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg== + +type@^2.7.2: + version "2.7.2" + resolved "https://registry.yarnpkg.com/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0" + integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== + typed-array-length@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb" @@ -2109,6 +3110,13 @@ typed-array-length@^1.0.4: for-each "^0.3.3" is-typed-array "^1.1.9" +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== + dependencies: + is-typedarray "^1.0.0" + typescript@^5.0.4: version "5.0.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b" @@ -2129,6 +3137,14 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +update-browserslist-db@^1.0.10: + version "1.0.11" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz#9a2a641ad2907ae7b3616506f4b977851db5b940" + integrity sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA== + dependencies: + escalade "^3.1.1" + picocolors "^1.0.0" + uri-js@^4.2.2: version "4.4.1" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" @@ -2136,6 +3152,13 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" +utf-8-validate@^5.0.2: + version "5.0.10" + resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-5.0.10.tgz#d7d10ea39318171ca982718b6b96a8d2442571a2" + integrity sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ== + dependencies: + node-gyp-build "^4.3.0" + v8-compile-cache-lib@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" @@ -2156,6 +3179,18 @@ websocket-as-promised@^2.0.1: promise.prototype.finally "^3.1.2" promised-map "^1.0.0" +websocket@^1.0.34: + version "1.0.34" + resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" + integrity sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ== + dependencies: + bufferutil "^4.0.1" + debug "^2.2.0" + es5-ext "^0.10.50" + typedarray-to-buffer "^3.1.5" + utf-8-validate "^5.0.2" + yaeti "^0.0.6" + which-boxed-primitive@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" @@ -2225,6 +3260,16 @@ y18n@^5.0.5: resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== +yaeti@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/yaeti/-/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" + integrity sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug== + +yallist@^3.0.2: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== + yargs-parser@20.2.4: version "20.2.4" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" @@ -2263,7 +3308,7 @@ yargs@16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" -yargs@^17.7.2: +yargs@^17.6.2: version "17.7.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== From 317b8ab688616749e62192578fbe2552e17e0b1c Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 17 May 2023 13:15:16 +0800 Subject: [PATCH 11/25] upgrade @polkador/kering --- tee-worker/ts-tests/package.json | 2 +- tee-worker/ts-tests/yarn.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tee-worker/ts-tests/package.json b/tee-worker/ts-tests/package.json index 431a2d0bba..7996e6d089 100644 --- a/tee-worker/ts-tests/package.json +++ b/tee-worker/ts-tests/package.json @@ -24,7 +24,7 @@ "dependencies": { "@noble/ed25519": "^1.7.3", "@polkadot/api": "^10.7.1", - "@polkadot/keyring": "^12.1.2", + "@polkadot/keyring": "^12.2.1", "@polkadot/typegen": "^9.14.2", "@polkadot/types": "^10.7.1", "add": "^2.0.6", diff --git a/tee-worker/ts-tests/yarn.lock b/tee-worker/ts-tests/yarn.lock index be2ac2a5d5..60bb0beaa5 100644 --- a/tee-worker/ts-tests/yarn.lock +++ b/tee-worker/ts-tests/yarn.lock @@ -770,7 +770,7 @@ "@polkadot/util" "10.4.2" "@polkadot/util-crypto" "10.4.2" -"@polkadot/keyring@^12.1.2", "@polkadot/keyring@^12.2.1": +"@polkadot/keyring@^12.2.1": version "12.2.1" resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-12.2.1.tgz#d131375c0436115d1f35139bd2bbbc069dd5b9fa" integrity sha512-YqgpU+97OZgnSUL56DEMib937Dpb1bTTDPYHhBiN1yNCKod7UboWXIe4xPh+1Kzugum+dEyPpdV+fHH10rtDzw== From 2b583d687a5f8f3b3c0bfc38119bdff6fb3e3817 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Thu, 18 May 2023 18:34:35 +0800 Subject: [PATCH 12/25] add sidechain-types --- .../ts-tests/common/type-definitions.ts | 4 +- .../examples/direct-invocation/README.md | 11 +- tee-worker/ts-tests/package.json | 9 +- .../augment-api-consts.ts | 0 .../augment-api-errors.ts | 0 .../augment-api-events.ts | 0 .../augment-api-query.ts | 0 .../augment-api-rpc.ts | 0 .../augment-api-runtime.ts | 0 .../augment-api-tx.ts | 0 .../augment-api.ts | 0 .../augment-types.ts | 0 .../definitions.ts | 0 .../identity/definitions.ts | 0 .../identity/index.ts | 0 .../identity/types.ts | 0 .../index.ts | 0 .../lookup.ts | 0 .../registry.ts | 0 .../types-lookup.ts | 0 .../types.ts | 0 .../augment-api-consts.ts | 133 + .../augment-api-errors.ts | 135 + .../augment-api-events.ts | 226 ++ .../sidechain-interfaces/augment-api-query.ts | 312 +++ .../sidechain-interfaces/augment-api-rpc.ts | 1025 ++++++++ .../augment-api-runtime.ts | 63 + .../sidechain-interfaces/augment-api-tx.ts | 492 ++++ .../sidechain-interfaces/augment-api.ts | 10 + .../sidechain-interfaces/augment-types.ts | 2300 +++++++++++++++++ .../ts-tests/sidechain-interfaces/index.ts | 4 + .../ts-tests/sidechain-interfaces/lookup.ts | 700 +++++ .../ts-tests/sidechain-interfaces/registry.ts | 144 ++ .../sidechain-interfaces/types-lookup.ts | 811 ++++++ .../ts-tests/sidechain-interfaces/types.ts | 2 + tee-worker/ts-tests/tsconfig.json | 4 +- 36 files changed, 6375 insertions(+), 10 deletions(-) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/augment-api-consts.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/augment-api-errors.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/augment-api-events.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/augment-api-query.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/augment-api-rpc.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/augment-api-runtime.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/augment-api-tx.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/augment-api.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/augment-types.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/definitions.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/identity/definitions.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/identity/index.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/identity/types.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/index.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/lookup.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/registry.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/types-lookup.ts (100%) rename tee-worker/ts-tests/{interfaces => parachain-interfaces}/types.ts (100%) create mode 100644 tee-worker/ts-tests/sidechain-interfaces/augment-api-consts.ts create mode 100644 tee-worker/ts-tests/sidechain-interfaces/augment-api-errors.ts create mode 100644 tee-worker/ts-tests/sidechain-interfaces/augment-api-events.ts create mode 100644 tee-worker/ts-tests/sidechain-interfaces/augment-api-query.ts create mode 100644 tee-worker/ts-tests/sidechain-interfaces/augment-api-rpc.ts create mode 100644 tee-worker/ts-tests/sidechain-interfaces/augment-api-runtime.ts create mode 100644 tee-worker/ts-tests/sidechain-interfaces/augment-api-tx.ts create mode 100644 tee-worker/ts-tests/sidechain-interfaces/augment-api.ts create mode 100644 tee-worker/ts-tests/sidechain-interfaces/augment-types.ts create mode 100644 tee-worker/ts-tests/sidechain-interfaces/index.ts create mode 100644 tee-worker/ts-tests/sidechain-interfaces/lookup.ts create mode 100644 tee-worker/ts-tests/sidechain-interfaces/registry.ts create mode 100644 tee-worker/ts-tests/sidechain-interfaces/types-lookup.ts create mode 100644 tee-worker/ts-tests/sidechain-interfaces/types.ts diff --git a/tee-worker/ts-tests/common/type-definitions.ts b/tee-worker/ts-tests/common/type-definitions.ts index 8a92530d73..9e4d869993 100644 --- a/tee-worker/ts-tests/common/type-definitions.ts +++ b/tee-worker/ts-tests/common/type-definitions.ts @@ -12,8 +12,8 @@ import type { EvmNetwork as EvmNet, Assertion as GenericAssertion, DirectRequestStatus, -} from '../interfaces/identity/types'; -import { default as teeTypes } from '../interfaces/identity/definitions'; +} from '../parachain-interfaces/identity/types'; +import { default as teeTypes } from '../parachain-interfaces/identity/definitions'; import { AnyTuple, IMethod } from '@polkadot/types/types'; import { Call } from '@polkadot/types/interfaces'; diff --git a/tee-worker/ts-tests/examples/direct-invocation/README.md b/tee-worker/ts-tests/examples/direct-invocation/README.md index 3dbc2ade60..1e5b960284 100644 --- a/tee-worker/ts-tests/examples/direct-invocation/README.md +++ b/tee-worker/ts-tests/examples/direct-invocation/README.md @@ -1,13 +1,16 @@ This folder contains a simple example of sending direct invocation to the tee worker ### How to run the demo + 1. launch the parachain and worker: + ``` cd ./local-setup/launch.py local-setup/github-action-config-one-worker.json ``` 2. run the ts demo + ``` cd ts-node index.ts @@ -44,9 +47,10 @@ The field `result` contains the hex-encoded `WorkerRpcReturnValue` struct, after 2. there's no extrinsic hash as it's not extrinsic, instead a random H256 value needs to be generated and sent along with the request to pair the response. However, it might be not strictly needed depending on how the ws channel is used (if it's used exclusively for a single request). 3. The execution result of a sidechain state mutation (e.g. creating an identity) is returned via parachain event. There's room to improve it but it's kept like the old way because: - - the event in sidechain is not yet supported (i.e. will not be included in the block) - - some requests (e.g. VC request, identity verification) are async handled, the trusted call being included in a sidechain block doesn't mean the processing is complete, the request was routed to another thread for async processing. - - currently the `value` represents the trusted operation hash, to change it to the encoded event (e.g. IdentityCreated) with parameters, the code needs to be adjusted in depth: not an easy task + + - the event in sidechain is not yet supported (i.e. will not be included in the block) + - some requests (e.g. VC request, identity verification) are async handled, the trusted call being included in a sidechain block doesn't mean the processing is complete, the request was routed to another thread for async processing. + - currently the `value` represents the trusted operation hash, to change it to the encoded event (e.g. IdentityCreated) with parameters, the code needs to be adjusted in depth: not an easy task 4. the subscription of parachain is not implemented in this demo - it's verified via polkadot-js UI and worker-logs in my tests @@ -67,6 +71,7 @@ response status: { } } ``` + image image diff --git a/tee-worker/ts-tests/package.json b/tee-worker/ts-tests/package.json index 7996e6d089..6b9deffc29 100644 --- a/tee-worker/ts-tests/package.json +++ b/tee-worker/ts-tests/package.json @@ -5,9 +5,12 @@ "gen-meta": "yarn gen-meta:sidechain && gen-meta:parachain", "gen-meta:sidechain": "../bin/integritee-cli print-sgx-metadata-raw > litentry-sidechain-metadata.json", "gen-meta:parachain": "curl -s -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9933 > litentry-parachain-metadata.json", - "gen-type": "yarn gen-type:defs && yarn gen-type:meta && yarn format", - "gen-type:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package . --input ./interfaces --endpoint ./litentry-parachain-metadata.json", - "gen-type:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package . --output ./interfaces --endpoint ./litentry-parachain-metadata.json", + "gen-type-parachain": "yarn gen-type-parachain:defs && yarn gen-type-parachain:meta && yarn format", + "gen-type-parachain:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package . --input ./parachain-interfaces --endpoint ./litentry-parachain-metadata.json", + "gen-type-parachain:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package . --output ./parachain-interfaces --endpoint ./litentry-parachain-metadata.json", + "gen-type-sidechain": "yarn gen-type-sidechain:defs && yarn gen-type-sidechain:meta && yarn format", + "gen-type-sidechain:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package . --input ./sidechain-interfaces --endpoint ./litentry-sidechain-metadata.json", + "gen-type-sidechain:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package . --output ./sidechain-interfaces --endpoint ./litentry-sidechain-metadata.json", "test-identity:staging": "cross-env NODE_ENV=staging mocha --exit --sort -r ts-node/register 'identity.test.ts'", "test-identity:local": "cross-env NODE_ENV=local mocha --exit --sort -r ts-node/register 'identity.test.ts'", "test-resuming-worker:staging": "cross-env NODE_ENV=staging mocha --exit --sort -r ts-node/register 'resuming_worker.test.ts'", diff --git a/tee-worker/ts-tests/interfaces/augment-api-consts.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api-consts.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-consts.ts rename to tee-worker/ts-tests/parachain-interfaces/augment-api-consts.ts diff --git a/tee-worker/ts-tests/interfaces/augment-api-errors.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api-errors.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-errors.ts rename to tee-worker/ts-tests/parachain-interfaces/augment-api-errors.ts diff --git a/tee-worker/ts-tests/interfaces/augment-api-events.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api-events.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-events.ts rename to tee-worker/ts-tests/parachain-interfaces/augment-api-events.ts diff --git a/tee-worker/ts-tests/interfaces/augment-api-query.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api-query.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-query.ts rename to tee-worker/ts-tests/parachain-interfaces/augment-api-query.ts diff --git a/tee-worker/ts-tests/interfaces/augment-api-rpc.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api-rpc.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-rpc.ts rename to tee-worker/ts-tests/parachain-interfaces/augment-api-rpc.ts diff --git a/tee-worker/ts-tests/interfaces/augment-api-runtime.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api-runtime.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-runtime.ts rename to tee-worker/ts-tests/parachain-interfaces/augment-api-runtime.ts diff --git a/tee-worker/ts-tests/interfaces/augment-api-tx.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api-tx.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-tx.ts rename to tee-worker/ts-tests/parachain-interfaces/augment-api-tx.ts diff --git a/tee-worker/ts-tests/interfaces/augment-api.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api.ts rename to tee-worker/ts-tests/parachain-interfaces/augment-api.ts diff --git a/tee-worker/ts-tests/interfaces/augment-types.ts b/tee-worker/ts-tests/parachain-interfaces/augment-types.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-types.ts rename to tee-worker/ts-tests/parachain-interfaces/augment-types.ts diff --git a/tee-worker/ts-tests/interfaces/definitions.ts b/tee-worker/ts-tests/parachain-interfaces/definitions.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/definitions.ts rename to tee-worker/ts-tests/parachain-interfaces/definitions.ts diff --git a/tee-worker/ts-tests/interfaces/identity/definitions.ts b/tee-worker/ts-tests/parachain-interfaces/identity/definitions.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/identity/definitions.ts rename to tee-worker/ts-tests/parachain-interfaces/identity/definitions.ts diff --git a/tee-worker/ts-tests/interfaces/identity/index.ts b/tee-worker/ts-tests/parachain-interfaces/identity/index.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/identity/index.ts rename to tee-worker/ts-tests/parachain-interfaces/identity/index.ts diff --git a/tee-worker/ts-tests/interfaces/identity/types.ts b/tee-worker/ts-tests/parachain-interfaces/identity/types.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/identity/types.ts rename to tee-worker/ts-tests/parachain-interfaces/identity/types.ts diff --git a/tee-worker/ts-tests/interfaces/index.ts b/tee-worker/ts-tests/parachain-interfaces/index.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/index.ts rename to tee-worker/ts-tests/parachain-interfaces/index.ts diff --git a/tee-worker/ts-tests/interfaces/lookup.ts b/tee-worker/ts-tests/parachain-interfaces/lookup.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/lookup.ts rename to tee-worker/ts-tests/parachain-interfaces/lookup.ts diff --git a/tee-worker/ts-tests/interfaces/registry.ts b/tee-worker/ts-tests/parachain-interfaces/registry.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/registry.ts rename to tee-worker/ts-tests/parachain-interfaces/registry.ts diff --git a/tee-worker/ts-tests/interfaces/types-lookup.ts b/tee-worker/ts-tests/parachain-interfaces/types-lookup.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/types-lookup.ts rename to tee-worker/ts-tests/parachain-interfaces/types-lookup.ts diff --git a/tee-worker/ts-tests/interfaces/types.ts b/tee-worker/ts-tests/parachain-interfaces/types.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/types.ts rename to tee-worker/ts-tests/parachain-interfaces/types.ts diff --git a/tee-worker/ts-tests/sidechain-interfaces/augment-api-consts.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api-consts.ts new file mode 100644 index 0000000000..b998a70d3b --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/augment-api-consts.ts @@ -0,0 +1,133 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/consts'; + +import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types'; +import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { Codec } from '@polkadot/types-codec/types'; +import type { + FrameSystemLimitsBlockLength, + FrameSystemLimitsBlockWeights, + SpVersionRuntimeVersion, + SpWeightsRuntimeDbWeight, +} from '@polkadot/types/lookup'; + +export type __AugmentedConst = AugmentedConst; + +declare module '@polkadot/api-base/types/consts' { + interface AugmentedConsts { + balances: { + /** + * The minimum amount required to keep an account open. + **/ + existentialDeposit: u128 & AugmentedConst; + /** + * The maximum number of locks that should exist on an account. + * Not strictly enforced, but used for weight estimation. + **/ + maxLocks: u32 & AugmentedConst; + /** + * The maximum number of named reserves that can exist on an account. + **/ + maxReserves: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + identityManagement: { + /** + * maximum metadata length + **/ + maxMetadataLength: u32 & AugmentedConst; + /** + * maximum delay in block numbers between creating an identity and verifying an identity + **/ + maxVerificationDelay: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + system: { + /** + * Maximum number of block number to block hash mappings to keep (oldest pruned first). + **/ + blockHashCount: u32 & AugmentedConst; + /** + * The maximum length of a block (in bytes). + **/ + blockLength: FrameSystemLimitsBlockLength & AugmentedConst; + /** + * Block & extrinsics weights: base values and limits. + **/ + blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst; + /** + * The weight of runtime database operations the runtime can invoke. + **/ + dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst; + /** + * The designated SS58 prefix of this chain. + * + * This replaces the "ss58Format" property declared in the chain spec. Reason is + * that the runtime should know about the prefix in order to make use of it as + * an identifier of the chain. + **/ + ss58Prefix: u16 & AugmentedConst; + /** + * Get the chain's current version. + **/ + version: SpVersionRuntimeVersion & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + timestamp: { + /** + * The minimum period between blocks. Beware that this is different to the *expected* + * period that the block production apparatus provides. Your chosen consensus system will + * generally work with this to determine a sensible block time. e.g. For Aura, it will be + * double this period on default settings. + **/ + minimumPeriod: u64 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + transactionPayment: { + /** + * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their + * `priority` + * + * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later + * added to a tip component in regular `priority` calculations. + * It means that a `Normal` transaction can front-run a similarly-sized `Operational` + * extrinsic (with no tip), by including a tip value greater than the virtual tip. + * + * ```rust,ignore + * // For `Normal` + * let priority = priority_calc(tip); + * + * // For `Operational` + * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier; + * let priority = priority_calc(tip + virtual_tip); + * ``` + * + * Note that since we use `final_fee` the multiplier applies also to the regular `tip` + * sent with the transaction. So, not only does the transaction get a priority bump based + * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational` + * transactions. + **/ + operationalFeeMultiplier: u8 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + } // AugmentedConsts +} // declare module diff --git a/tee-worker/ts-tests/sidechain-interfaces/augment-api-errors.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api-errors.ts new file mode 100644 index 0000000000..838b3d97b1 --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/augment-api-errors.ts @@ -0,0 +1,135 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/errors'; + +import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types'; + +export type __AugmentedError = AugmentedError; + +declare module '@polkadot/api-base/types/errors' { + interface AugmentedErrors { + balances: { + /** + * Beneficiary account must pre-exist + **/ + DeadAccount: AugmentedError; + /** + * Value too low to create account due to existential deposit + **/ + ExistentialDeposit: AugmentedError; + /** + * A vesting schedule already exists for this account + **/ + ExistingVestingSchedule: AugmentedError; + /** + * Balance too low to send value. + **/ + InsufficientBalance: AugmentedError; + /** + * Transfer/payment would kill account + **/ + KeepAlive: AugmentedError; + /** + * Account liquidity restrictions prevent withdrawal + **/ + LiquidityRestrictions: AugmentedError; + /** + * Number of named reserves exceed MaxReserves + **/ + TooManyReserves: AugmentedError; + /** + * Vesting balance too high to send value + **/ + VestingBalance: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + identityManagement: { + /** + * challenge code doesn't exist + **/ + ChallengeCodeNotExist: AugmentedError; + /** + * creating the prime identity manually is disallowed + **/ + CreatePrimeIdentityNotAllowed: AugmentedError; + /** + * the pair (litentry-account, identity) already verified when creating an identity + **/ + IdentityAlreadyVerified: AugmentedError; + /** + * the identity was not created before verification + **/ + IdentityNotCreated: AugmentedError; + /** + * the pair (litentry-account, identity) doesn't exist + **/ + IdentityNotExist: AugmentedError; + /** + * remove prime identiy should be disallowed + **/ + RemovePrimeIdentityDisallowed: AugmentedError; + /** + * a verification reqeust comes too early + **/ + VerificationRequestTooEarly: AugmentedError; + /** + * a verification reqeust comes too late + **/ + VerificationRequestTooLate: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + sudo: { + /** + * Sender must be the Sudo account + **/ + RequireSudo: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + system: { + /** + * The origin filter prevent the call to be dispatched. + **/ + CallFiltered: AugmentedError; + /** + * Failed to extract the runtime version from the new runtime. + * + * Either calling `Core_version` or decoding `RuntimeVersion` failed. + **/ + FailedToExtractRuntimeVersion: AugmentedError; + /** + * The name of specification does not match between the current runtime + * and the new runtime. + **/ + InvalidSpecName: AugmentedError; + /** + * Suicide called when the account has non-default composite data. + **/ + NonDefaultComposite: AugmentedError; + /** + * There is a non-zero reference count preventing the account from being purged. + **/ + NonZeroRefCount: AugmentedError; + /** + * The specification version is not allowed to decrease between the current runtime + * and the new runtime. + **/ + SpecVersionNeedsToIncrease: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + } // AugmentedErrors +} // declare module diff --git a/tee-worker/ts-tests/sidechain-interfaces/augment-api-events.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api-events.ts new file mode 100644 index 0000000000..269ae0713c --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/augment-api-events.ts @@ -0,0 +1,226 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/events'; + +import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types'; +import type { Null, Option, Result, U8aFixed, u128 } from '@polkadot/types-codec'; +import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; +import type { + FrameSupportDispatchDispatchInfo, + FrameSupportTokensMiscBalanceStatus, + LitentryPrimitivesIdentity, + SpRuntimeDispatchError, +} from '@polkadot/types/lookup'; + +export type __AugmentedEvent = AugmentedEvent; + +declare module '@polkadot/api-base/types/events' { + interface AugmentedEvents { + balances: { + /** + * A balance was set by root. + **/ + BalanceSet: AugmentedEvent< + ApiType, + [who: AccountId32, free: u128, reserved: u128], + { who: AccountId32; free: u128; reserved: u128 } + >; + /** + * Some amount was deposited (e.g. for transaction fees). + **/ + Deposit: AugmentedEvent; + /** + * An account was removed whose balance was non-zero but below ExistentialDeposit, + * resulting in an outright loss. + **/ + DustLost: AugmentedEvent< + ApiType, + [account: AccountId32, amount: u128], + { account: AccountId32; amount: u128 } + >; + /** + * An account was created with some free balance. + **/ + Endowed: AugmentedEvent< + ApiType, + [account: AccountId32, freeBalance: u128], + { account: AccountId32; freeBalance: u128 } + >; + /** + * Some balance was reserved (moved from free to reserved). + **/ + Reserved: AugmentedEvent; + /** + * Some balance was moved from the reserve of the first account to the second account. + * Final argument indicates the destination balance type. + **/ + ReserveRepatriated: AugmentedEvent< + ApiType, + [ + from: AccountId32, + to: AccountId32, + amount: u128, + destinationStatus: FrameSupportTokensMiscBalanceStatus + ], + { + from: AccountId32; + to: AccountId32; + amount: u128; + destinationStatus: FrameSupportTokensMiscBalanceStatus; + } + >; + /** + * Some amount was removed from the account (e.g. for misbehavior). + **/ + Slashed: AugmentedEvent; + /** + * Transfer succeeded. + **/ + Transfer: AugmentedEvent< + ApiType, + [from: AccountId32, to: AccountId32, amount: u128], + { from: AccountId32; to: AccountId32; amount: u128 } + >; + /** + * Some balance was unreserved (moved from reserved to free). + **/ + Unreserved: AugmentedEvent; + /** + * Some amount was withdrawn from the account (e.g. for transaction fees). + **/ + Withdraw: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + identityManagement: { + /** + * challenge code was removed + **/ + ChallengeCodeRemoved: AugmentedEvent< + ApiType, + [who: AccountId32, identity: LitentryPrimitivesIdentity], + { who: AccountId32; identity: LitentryPrimitivesIdentity } + >; + /** + * challenge code was set + **/ + ChallengeCodeSet: AugmentedEvent< + ApiType, + [who: AccountId32, identity: LitentryPrimitivesIdentity, code: U8aFixed], + { who: AccountId32; identity: LitentryPrimitivesIdentity; code: U8aFixed } + >; + /** + * an identity was created + **/ + IdentityCreated: AugmentedEvent< + ApiType, + [who: AccountId32, identity: LitentryPrimitivesIdentity], + { who: AccountId32; identity: LitentryPrimitivesIdentity } + >; + /** + * an identity was removed + **/ + IdentityRemoved: AugmentedEvent< + ApiType, + [who: AccountId32, identity: LitentryPrimitivesIdentity], + { who: AccountId32; identity: LitentryPrimitivesIdentity } + >; + /** + * user shielding key was set + **/ + UserShieldingKeySet: AugmentedEvent< + ApiType, + [who: AccountId32, key: U8aFixed], + { who: AccountId32; key: U8aFixed } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + sudo: { + /** + * The \[sudoer\] just switched identity; the old key is supplied if one existed. + **/ + KeyChanged: AugmentedEvent], { oldSudoer: Option }>; + /** + * A sudo just took place. \[result\] + **/ + Sudid: AugmentedEvent< + ApiType, + [sudoResult: Result], + { sudoResult: Result } + >; + /** + * A sudo just took place. \[result\] + **/ + SudoAsDone: AugmentedEvent< + ApiType, + [sudoResult: Result], + { sudoResult: Result } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + system: { + /** + * `:code` was updated. + **/ + CodeUpdated: AugmentedEvent; + /** + * An extrinsic failed. + **/ + ExtrinsicFailed: AugmentedEvent< + ApiType, + [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo], + { dispatchError: SpRuntimeDispatchError; dispatchInfo: FrameSupportDispatchDispatchInfo } + >; + /** + * An extrinsic completed successfully. + **/ + ExtrinsicSuccess: AugmentedEvent< + ApiType, + [dispatchInfo: FrameSupportDispatchDispatchInfo], + { dispatchInfo: FrameSupportDispatchDispatchInfo } + >; + /** + * An account was reaped. + **/ + KilledAccount: AugmentedEvent; + /** + * A new account was created. + **/ + NewAccount: AugmentedEvent; + /** + * On on-chain remark happened. + **/ + Remarked: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + transactionPayment: { + /** + * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, + * has been paid by `who`. + **/ + TransactionFeePaid: AugmentedEvent< + ApiType, + [who: AccountId32, actualFee: u128, tip: u128], + { who: AccountId32; actualFee: u128; tip: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + } // AugmentedEvents +} // declare module diff --git a/tee-worker/ts-tests/sidechain-interfaces/augment-api-query.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api-query.ts new file mode 100644 index 0000000000..979c34e2d4 --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/augment-api-query.ts @@ -0,0 +1,312 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/storage'; + +import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types'; +import type { Bytes, Option, U8aFixed, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec'; +import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; +import type { + FrameSupportDispatchPerDispatchClassWeight, + FrameSystemAccountInfo, + FrameSystemEventRecord, + FrameSystemLastRuntimeUpgradeInfo, + FrameSystemPhase, + LitentryPrimitivesIdentity, + PalletBalancesAccountData, + PalletBalancesBalanceLock, + PalletBalancesReserveData, + PalletIdentityManagementTeeIdentityContext, + PalletTransactionPaymentReleases, + SpRuntimeDigest, +} from '@polkadot/types/lookup'; +import type { Observable } from '@polkadot/types/types'; + +export type __AugmentedQuery = AugmentedQuery unknown>; +export type __QueryableStorageEntry = QueryableStorageEntry; + +declare module '@polkadot/api-base/types/storage' { + interface AugmentedQueries { + balances: { + /** + * The Balances pallet example of storing the balance of an account. + * + * # Example + * + * ```nocompile + * impl pallet_balances::Config for Runtime { + * type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData> + * } + * ``` + * + * You can also store the balance of an account in the `System` pallet. + * + * # Example + * + * ```nocompile + * impl pallet_balances::Config for Runtime { + * type AccountStore = System + * } + * ``` + * + * But this comes with tradeoffs, storing account balances in the system pallet stores + * `frame_system` data alongside the account data contrary to storing account balances in the + * `Balances` pallet, which uses a `StorageMap` to store balances data only. + * NOTE: This is only used in the case that this pallet is used to store balances. + **/ + account: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The total units of outstanding deactivated balance in the system. + **/ + inactiveIssuance: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Any liquidity locks on some account balances. + * NOTE: Should only be accessed when setting, changing and freeing a lock. + **/ + locks: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Named reserves on some account balances. + **/ + reserves: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The total units issued in the system. + **/ + totalIssuance: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + identityManagement: { + /** + * challenge code is per Litentry account + identity + **/ + challengeCodes: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: + | LitentryPrimitivesIdentity + | { Substrate: any } + | { Evm: any } + | { Web2: any } + | string + | Uint8Array + ) => Observable>, + [AccountId32, LitentryPrimitivesIdentity] + > & + QueryableStorageEntry; + /** + * ID graph is per Litentry account + identity + **/ + idGraphs: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: + | LitentryPrimitivesIdentity + | { Substrate: any } + | { Evm: any } + | { Web2: any } + | string + | Uint8Array + ) => Observable>, + [AccountId32, LitentryPrimitivesIdentity] + > & + QueryableStorageEntry; + /** + * user shielding key is per Litentry account + **/ + userShieldingKeys: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + parentchain: { + /** + * Hash of the last block. Set by `set_block`. + **/ + blockHash: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The current block number being processed. Set by `set_block`. + **/ + number: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Hash of the previous block. Set by `set_block`. + **/ + parentHash: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + sudo: { + /** + * The `AccountId` of the sudo key. + **/ + key: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + system: { + /** + * The full account information for a particular account ID. + **/ + account: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Total length (in bytes) for all extrinsics put together, for the current block. + **/ + allExtrinsicsLen: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Map of block numbers to block hashes. + **/ + blockHash: AugmentedQuery Observable, [u32]> & + QueryableStorageEntry; + /** + * The current weight for the block. + **/ + blockWeight: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Digest of the current block, also part of the block header. + **/ + digest: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The number of events in the `Events` list. + **/ + eventCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Events deposited for the current block. + * + * NOTE: The item is unbound and should therefore never be read on chain. + * It could otherwise inflate the PoV size of a block. + * + * Events have a large in-memory size. Box the events to not go out-of-memory + * just in case someone still reads them from within the runtime. + **/ + events: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Mapping between a topic (represented by T::Hash) and a vector of indexes + * of events in the `>` list. + * + * All topic vectors have deterministic storage locations depending on the topic. This + * allows light-clients to leverage the changes trie storage tracking mechanism and + * in case of changes fetch the list of events of interest. + * + * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just + * the `EventIndex` then in case if the topic has the same contents on the next block + * no notification will be triggered thus the event might be lost. + **/ + eventTopics: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable>>, + [H256] + > & + QueryableStorageEntry; + /** + * The execution phase of the block. + **/ + executionPhase: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Total extrinsics count for the current block. + **/ + extrinsicCount: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Extrinsics data for the current block (maps an extrinsic's index to its data). + **/ + extrinsicData: AugmentedQuery Observable, [u32]> & + QueryableStorageEntry; + /** + * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. + **/ + lastRuntimeUpgrade: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * The current block number being processed. Set by `execute_block`. + **/ + number: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Hash of the previous block. + **/ + parentHash: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False + * (default) if not. + **/ + upgradedToTripleRefCount: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. + **/ + upgradedToU32RefCount: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + timestamp: { + /** + * Did the timestamp get updated in this block? + **/ + didUpdate: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Current time for the current block. + **/ + now: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + transactionPayment: { + nextFeeMultiplier: AugmentedQuery Observable, []> & QueryableStorageEntry; + storageVersion: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + } // AugmentedQueries +} // declare module diff --git a/tee-worker/ts-tests/sidechain-interfaces/augment-api-rpc.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api-rpc.ts new file mode 100644 index 0000000000..fab673626c --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/augment-api-rpc.ts @@ -0,0 +1,1025 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/rpc-core/types/jsonrpc'; + +import type { AugmentedRpc } from '@polkadot/rpc-core/types'; +import type { Metadata, StorageKey } from '@polkadot/types'; +import type { + Bytes, + HashMap, + Json, + Null, + Option, + Text, + U256, + U64, + Vec, + bool, + f64, + u32, + u64, +} from '@polkadot/types-codec'; +import type { AnyNumber, Codec } from '@polkadot/types-codec/types'; +import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author'; +import type { EpochAuthorship } from '@polkadot/types/interfaces/babe'; +import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy'; +import type { BlockHash } from '@polkadot/types/interfaces/chain'; +import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate'; +import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; +import type { + CodeUploadRequest, + CodeUploadResult, + ContractCallRequest, + ContractExecResult, + ContractInstantiateResult, + InstantiateRequestV1, +} from '@polkadot/types/interfaces/contracts'; +import type { BlockStats } from '@polkadot/types/interfaces/dev'; +import type { CreatedBlock } from '@polkadot/types/interfaces/engine'; +import type { + EthAccount, + EthCallRequest, + EthFeeHistory, + EthFilter, + EthFilterChanges, + EthLog, + EthReceipt, + EthRichBlock, + EthSubKind, + EthSubParams, + EthSyncStatus, + EthTransaction, + EthTransactionRequest, + EthWork, +} from '@polkadot/types/interfaces/eth'; +import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; +import type { + EncodedFinalityProofs, + JustificationNotification, + ReportedRoundStates, +} from '@polkadot/types/interfaces/grandpa'; +import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr'; +import type { StorageKind } from '@polkadot/types/interfaces/offchain'; +import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment'; +import type { RpcMethods } from '@polkadot/types/interfaces/rpc'; +import type { + AccountId, + BlockNumber, + H160, + H256, + H64, + Hash, + Header, + Index, + Justification, + KeyValue, + SignedBlock, + StorageData, +} from '@polkadot/types/interfaces/runtime'; +import type { + MigrationStatusResult, + ReadProof, + RuntimeVersion, + TraceBlockResponse, +} from '@polkadot/types/interfaces/state'; +import type { + ApplyExtrinsicResult, + ChainProperties, + ChainType, + Health, + NetworkState, + NodeRole, + PeerInfo, + SyncState, +} from '@polkadot/types/interfaces/system'; +import type { IExtrinsic, Observable } from '@polkadot/types/types'; + +export type __AugmentedRpc = AugmentedRpc<() => unknown>; + +declare module '@polkadot/rpc-core/types/jsonrpc' { + interface RpcInterface { + author: { + /** + * Returns true if the keystore has private keys for the given public key and key type. + **/ + hasKey: AugmentedRpc<(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable>; + /** + * Returns true if the keystore has private keys for the given session public keys. + **/ + hasSessionKeys: AugmentedRpc<(sessionKeys: Bytes | string | Uint8Array) => Observable>; + /** + * Insert a key into the keystore. + **/ + insertKey: AugmentedRpc< + ( + keyType: Text | string, + suri: Text | string, + publicKey: Bytes | string | Uint8Array + ) => Observable + >; + /** + * Returns all pending extrinsics, potentially grouped by sender + **/ + pendingExtrinsics: AugmentedRpc<() => Observable>>; + /** + * Remove given extrinsic from the pool and temporarily ban it to prevent reimporting + **/ + removeExtrinsic: AugmentedRpc< + ( + bytesOrHash: + | Vec + | (ExtrinsicOrHash | { Hash: any } | { Extrinsic: any } | string | Uint8Array)[] + ) => Observable> + >; + /** + * Generate new session keys and returns the corresponding public keys + **/ + rotateKeys: AugmentedRpc<() => Observable>; + /** + * Submit and subscribe to watch an extrinsic until unsubscribed + **/ + submitAndWatchExtrinsic: AugmentedRpc< + (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable + >; + /** + * Submit a fully formatted extrinsic for block inclusion + **/ + submitExtrinsic: AugmentedRpc< + (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable + >; + }; + babe: { + /** + * Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore + **/ + epochAuthorship: AugmentedRpc<() => Observable>>; + }; + beefy: { + /** + * Returns hash of the latest BEEFY finalized block as seen by this client. + **/ + getFinalizedHead: AugmentedRpc<() => Observable>; + /** + * Returns the block most recently finalized by BEEFY, alongside side its justification. + **/ + subscribeJustifications: AugmentedRpc<() => Observable>; + }; + chain: { + /** + * Get header and body of a relay chain block + **/ + getBlock: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable>; + /** + * Get the block hash for a specific block + **/ + getBlockHash: AugmentedRpc<(blockNumber?: BlockNumber | AnyNumber | Uint8Array) => Observable>; + /** + * Get hash of the last finalized block in the canon chain + **/ + getFinalizedHead: AugmentedRpc<() => Observable>; + /** + * Retrieves the header for a specific block + **/ + getHeader: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable
>; + /** + * Retrieves the newest header via subscription + **/ + subscribeAllHeads: AugmentedRpc<() => Observable
>; + /** + * Retrieves the best finalized header via subscription + **/ + subscribeFinalizedHeads: AugmentedRpc<() => Observable
>; + /** + * Retrieves the best header via subscription + **/ + subscribeNewHeads: AugmentedRpc<() => Observable
>; + }; + childstate: { + /** + * Returns the keys with prefix from a child storage, leave empty to get all the keys + **/ + getKeys: AugmentedRpc< + ( + childKey: PrefixedStorageKey | string | Uint8Array, + prefix: StorageKey | string | Uint8Array | any, + at?: Hash | string | Uint8Array + ) => Observable> + >; + /** + * Returns the keys with prefix from a child storage with pagination support + **/ + getKeysPaged: AugmentedRpc< + ( + childKey: PrefixedStorageKey | string | Uint8Array, + prefix: StorageKey | string | Uint8Array | any, + count: u32 | AnyNumber | Uint8Array, + startKey?: StorageKey | string | Uint8Array | any, + at?: Hash | string | Uint8Array + ) => Observable> + >; + /** + * Returns a child storage entry at a specific block state + **/ + getStorage: AugmentedRpc< + ( + childKey: PrefixedStorageKey | string | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: Hash | string | Uint8Array + ) => Observable> + >; + /** + * Returns child storage entries for multiple keys at a specific block state + **/ + getStorageEntries: AugmentedRpc< + ( + childKey: PrefixedStorageKey | string | Uint8Array, + keys: Vec | (StorageKey | string | Uint8Array | any)[], + at?: Hash | string | Uint8Array + ) => Observable>> + >; + /** + * Returns the hash of a child storage entry at a block state + **/ + getStorageHash: AugmentedRpc< + ( + childKey: PrefixedStorageKey | string | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: Hash | string | Uint8Array + ) => Observable> + >; + /** + * Returns the size of a child storage entry at a block state + **/ + getStorageSize: AugmentedRpc< + ( + childKey: PrefixedStorageKey | string | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: Hash | string | Uint8Array + ) => Observable> + >; + }; + contracts: { + /** + * @deprecated Use the runtime interface `api.call.contractsApi.call` instead + * Executes a call to a contract + **/ + call: AugmentedRpc< + ( + callRequest: + | ContractCallRequest + | { + origin?: any; + dest?: any; + value?: any; + gasLimit?: any; + storageDepositLimit?: any; + inputData?: any; + } + | string + | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * @deprecated Use the runtime interface `api.call.contractsApi.getStorage` instead + * Returns the value under a specified storage key in a contract + **/ + getStorage: AugmentedRpc< + ( + address: AccountId | string | Uint8Array, + key: H256 | string | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable> + >; + /** + * @deprecated Use the runtime interface `api.call.contractsApi.instantiate` instead + * Instantiate a new contract + **/ + instantiate: AugmentedRpc< + ( + request: + | InstantiateRequestV1 + | { origin?: any; value?: any; gasLimit?: any; code?: any; data?: any; salt?: any } + | string + | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * @deprecated Not available in newer versions of the contracts interfaces + * Returns the projected time a given contract will be able to sustain paying its rent + **/ + rentProjection: AugmentedRpc< + ( + address: AccountId | string | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable> + >; + /** + * @deprecated Use the runtime interface `api.call.contractsApi.uploadCode` instead + * Upload new code without instantiating a contract from it + **/ + uploadCode: AugmentedRpc< + ( + uploadRequest: + | CodeUploadRequest + | { origin?: any; code?: any; storageDepositLimit?: any } + | string + | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + }; + dev: { + /** + * Reexecute the specified `block_hash` and gather statistics while doing so + **/ + getBlockStats: AugmentedRpc<(at: Hash | string | Uint8Array) => Observable>>; + }; + engine: { + /** + * Instructs the manual-seal authorship task to create a new block + **/ + createBlock: AugmentedRpc< + ( + createEmpty: bool | boolean | Uint8Array, + finalize: bool | boolean | Uint8Array, + parentHash?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Instructs the manual-seal authorship task to finalize a block + **/ + finalizeBlock: AugmentedRpc< + (hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable + >; + }; + eth: { + /** + * Returns accounts list. + **/ + accounts: AugmentedRpc<() => Observable>>; + /** + * Returns the blockNumber + **/ + blockNumber: AugmentedRpc<() => Observable>; + /** + * Call contract, returning the output data. + **/ + call: AugmentedRpc< + ( + request: + | EthCallRequest + | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } + | string + | Uint8Array, + number?: BlockNumber | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Returns the chain ID used for transaction signing at the current best block. None is returned if not available. + **/ + chainId: AugmentedRpc<() => Observable>; + /** + * Returns block author. + **/ + coinbase: AugmentedRpc<() => Observable>; + /** + * Estimate gas needed for execution of given contract. + **/ + estimateGas: AugmentedRpc< + ( + request: + | EthCallRequest + | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } + | string + | Uint8Array, + number?: BlockNumber | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Returns fee history for given block count & reward percentiles + **/ + feeHistory: AugmentedRpc< + ( + blockCount: U256 | AnyNumber | Uint8Array, + newestBlock: BlockNumber | AnyNumber | Uint8Array, + rewardPercentiles: Option> | null | Uint8Array | Vec | f64[] + ) => Observable + >; + /** + * Returns current gas price. + **/ + gasPrice: AugmentedRpc<() => Observable>; + /** + * Returns balance of the given account. + **/ + getBalance: AugmentedRpc< + (address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable + >; + /** + * Returns block with given hash. + **/ + getBlockByHash: AugmentedRpc< + ( + hash: H256 | string | Uint8Array, + full: bool | boolean | Uint8Array + ) => Observable> + >; + /** + * Returns block with given number. + **/ + getBlockByNumber: AugmentedRpc< + ( + block: BlockNumber | AnyNumber | Uint8Array, + full: bool | boolean | Uint8Array + ) => Observable> + >; + /** + * Returns the number of transactions in a block with given hash. + **/ + getBlockTransactionCountByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable>; + /** + * Returns the number of transactions in a block with given block number. + **/ + getBlockTransactionCountByNumber: AugmentedRpc< + (block: BlockNumber | AnyNumber | Uint8Array) => Observable + >; + /** + * Returns the code at given address at given time (block number). + **/ + getCode: AugmentedRpc< + ( + address: H160 | string | Uint8Array, + number?: BlockNumber | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Returns filter changes since last poll. + **/ + getFilterChanges: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable>; + /** + * Returns all logs matching given filter (in a range 'from' - 'to'). + **/ + getFilterLogs: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable>>; + /** + * Returns logs matching given filter object. + **/ + getLogs: AugmentedRpc< + ( + filter: + | EthFilter + | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } + | string + | Uint8Array + ) => Observable> + >; + /** + * Returns proof for account and storage. + **/ + getProof: AugmentedRpc< + ( + address: H160 | string | Uint8Array, + storageKeys: Vec | (H256 | string | Uint8Array)[], + number: BlockNumber | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Returns content of the storage at given address. + **/ + getStorageAt: AugmentedRpc< + ( + address: H160 | string | Uint8Array, + index: U256 | AnyNumber | Uint8Array, + number?: BlockNumber | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Returns transaction at given block hash and index. + **/ + getTransactionByBlockHashAndIndex: AugmentedRpc< + (hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable + >; + /** + * Returns transaction by given block number and index. + **/ + getTransactionByBlockNumberAndIndex: AugmentedRpc< + ( + number: BlockNumber | AnyNumber | Uint8Array, + index: U256 | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Get transaction by its hash. + **/ + getTransactionByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable>; + /** + * Returns the number of transactions sent from given address at given time (block number). + **/ + getTransactionCount: AugmentedRpc< + (address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable + >; + /** + * Returns transaction receipt by transaction hash. + **/ + getTransactionReceipt: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable>; + /** + * Returns an uncles at given block and index. + **/ + getUncleByBlockHashAndIndex: AugmentedRpc< + (hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable + >; + /** + * Returns an uncles at given block and index. + **/ + getUncleByBlockNumberAndIndex: AugmentedRpc< + ( + number: BlockNumber | AnyNumber | Uint8Array, + index: U256 | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Returns the number of uncles in a block with given hash. + **/ + getUncleCountByBlockHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable>; + /** + * Returns the number of uncles in a block with given block number. + **/ + getUncleCountByBlockNumber: AugmentedRpc< + (number: BlockNumber | AnyNumber | Uint8Array) => Observable + >; + /** + * Returns the hash of the current block, the seedHash, and the boundary condition to be met. + **/ + getWork: AugmentedRpc<() => Observable>; + /** + * Returns the number of hashes per second that the node is mining with. + **/ + hashrate: AugmentedRpc<() => Observable>; + /** + * Returns max priority fee per gas + **/ + maxPriorityFeePerGas: AugmentedRpc<() => Observable>; + /** + * Returns true if client is actively mining new blocks. + **/ + mining: AugmentedRpc<() => Observable>; + /** + * Returns id of new block filter. + **/ + newBlockFilter: AugmentedRpc<() => Observable>; + /** + * Returns id of new filter. + **/ + newFilter: AugmentedRpc< + ( + filter: + | EthFilter + | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } + | string + | Uint8Array + ) => Observable + >; + /** + * Returns id of new block filter. + **/ + newPendingTransactionFilter: AugmentedRpc<() => Observable>; + /** + * Returns protocol version encoded as a string (quotes are necessary). + **/ + protocolVersion: AugmentedRpc<() => Observable>; + /** + * Sends signed transaction, returning its hash. + **/ + sendRawTransaction: AugmentedRpc<(bytes: Bytes | string | Uint8Array) => Observable>; + /** + * Sends transaction; will block waiting for signer to return the transaction hash + **/ + sendTransaction: AugmentedRpc< + ( + tx: + | EthTransactionRequest + | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } + | string + | Uint8Array + ) => Observable + >; + /** + * Used for submitting mining hashrate. + **/ + submitHashrate: AugmentedRpc< + (index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable + >; + /** + * Used for submitting a proof-of-work solution. + **/ + submitWork: AugmentedRpc< + ( + nonce: H64 | string | Uint8Array, + headerHash: H256 | string | Uint8Array, + mixDigest: H256 | string | Uint8Array + ) => Observable + >; + /** + * Subscribe to Eth subscription. + **/ + subscribe: AugmentedRpc< + ( + kind: EthSubKind | 'newHeads' | 'logs' | 'newPendingTransactions' | 'syncing' | number | Uint8Array, + params?: EthSubParams | { None: any } | { Logs: any } | string | Uint8Array + ) => Observable + >; + /** + * Returns an object with data about the sync status or false. + **/ + syncing: AugmentedRpc<() => Observable>; + /** + * Uninstalls filter. + **/ + uninstallFilter: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable>; + }; + grandpa: { + /** + * Prove finality for the given block number, returning the Justification for the last block in the set. + **/ + proveFinality: AugmentedRpc< + (blockNumber: BlockNumber | AnyNumber | Uint8Array) => Observable> + >; + /** + * Returns the state of the current best round state as well as the ongoing background rounds + **/ + roundState: AugmentedRpc<() => Observable>; + /** + * Subscribes to grandpa justifications + **/ + subscribeJustifications: AugmentedRpc<() => Observable>; + }; + mmr: { + /** + * Generate MMR proof for the given leaf indices. + **/ + generateBatchProof: AugmentedRpc< + ( + leafIndices: Vec | (u64 | AnyNumber | Uint8Array)[], + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Generate MMR proof for given leaf index. + **/ + generateProof: AugmentedRpc< + ( + leafIndex: u64 | AnyNumber | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + }; + net: { + /** + * Returns true if client is actively listening for network connections. Otherwise false. + **/ + listening: AugmentedRpc<() => Observable>; + /** + * Returns number of peers connected to node. + **/ + peerCount: AugmentedRpc<() => Observable>; + /** + * Returns protocol version. + **/ + version: AugmentedRpc<() => Observable>; + }; + offchain: { + /** + * Get offchain local storage under given key and prefix + **/ + localStorageGet: AugmentedRpc< + ( + kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, + key: Bytes | string | Uint8Array + ) => Observable> + >; + /** + * Set offchain local storage under given key and prefix + **/ + localStorageSet: AugmentedRpc< + ( + kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, + key: Bytes | string | Uint8Array, + value: Bytes | string | Uint8Array + ) => Observable + >; + }; + payment: { + /** + * @deprecated Use `api.call.transactionPaymentApi.queryFeeDetails` instead + * Query the detailed fee of a given encoded extrinsic + **/ + queryFeeDetails: AugmentedRpc< + (extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable + >; + /** + * @deprecated Use `api.call.transactionPaymentApi.queryInfo` instead + * Retrieves the fee information for an encoded extrinsic + **/ + queryInfo: AugmentedRpc< + ( + extrinsic: Bytes | string | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + }; + rpc: { + /** + * Retrieves the list of RPC methods that are exposed by the node + **/ + methods: AugmentedRpc<() => Observable>; + }; + state: { + /** + * Perform a call to a builtin on the chain + **/ + call: AugmentedRpc< + ( + method: Text | string, + data: Bytes | string | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Retrieves the keys with prefix of a specific child storage + **/ + getChildKeys: AugmentedRpc< + ( + childStorageKey: StorageKey | string | Uint8Array | any, + childDefinition: StorageKey | string | Uint8Array | any, + childType: u32 | AnyNumber | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable> + >; + /** + * Returns proof of storage for child key entries at a specific block state. + **/ + getChildReadProof: AugmentedRpc< + ( + childStorageKey: PrefixedStorageKey | string | Uint8Array, + keys: Vec | (StorageKey | string | Uint8Array | any)[], + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Retrieves the child storage for a key + **/ + getChildStorage: AugmentedRpc< + ( + childStorageKey: StorageKey | string | Uint8Array | any, + childDefinition: StorageKey | string | Uint8Array | any, + childType: u32 | AnyNumber | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Retrieves the child storage hash + **/ + getChildStorageHash: AugmentedRpc< + ( + childStorageKey: StorageKey | string | Uint8Array | any, + childDefinition: StorageKey | string | Uint8Array | any, + childType: u32 | AnyNumber | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Retrieves the child storage size + **/ + getChildStorageSize: AugmentedRpc< + ( + childStorageKey: StorageKey | string | Uint8Array | any, + childDefinition: StorageKey | string | Uint8Array | any, + childType: u32 | AnyNumber | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys + * Retrieves the keys with a certain prefix + **/ + getKeys: AugmentedRpc< + ( + key: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable> + >; + /** + * Returns the keys with prefix with pagination support. + **/ + getKeysPaged: AugmentedRpc< + ( + key: StorageKey | string | Uint8Array | any, + count: u32 | AnyNumber | Uint8Array, + startKey?: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable> + >; + /** + * Returns the runtime metadata + **/ + getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable>; + /** + * @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys + * Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged) + **/ + getPairs: AugmentedRpc< + ( + prefix: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable> + >; + /** + * Returns proof of storage entries at a specific block state + **/ + getReadProof: AugmentedRpc< + ( + keys: Vec | (StorageKey | string | Uint8Array | any)[], + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Get the runtime version + **/ + getRuntimeVersion: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable>; + /** + * Retrieves the storage for a key + **/ + getStorage: AugmentedRpc< + ( + key: StorageKey | string | Uint8Array | any, + block?: Hash | Uint8Array | string + ) => Observable + >; + /** + * Retrieves the storage hash + **/ + getStorageHash: AugmentedRpc< + (key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable + >; + /** + * Retrieves the storage size + **/ + getStorageSize: AugmentedRpc< + (key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable + >; + /** + * Query historical storage entries (by key) starting from a start block + **/ + queryStorage: AugmentedRpc< + ( + keys: Vec | (StorageKey | string | Uint8Array | any)[], + fromBlock?: Hash | Uint8Array | string, + toBlock?: Hash | Uint8Array | string + ) => Observable<[Hash, T][]> + >; + /** + * Query storage entries (by key) starting at block hash given as the second parameter + **/ + queryStorageAt: AugmentedRpc< + ( + keys: Vec | (StorageKey | string | Uint8Array | any)[], + at?: Hash | Uint8Array | string + ) => Observable + >; + /** + * Retrieves the runtime version via subscription + **/ + subscribeRuntimeVersion: AugmentedRpc<() => Observable>; + /** + * Subscribes to storage changes for the provided keys + **/ + subscribeStorage: AugmentedRpc< + (keys?: Vec | (StorageKey | string | Uint8Array | any)[]) => Observable + >; + /** + * Provides a way to trace the re-execution of a single block + **/ + traceBlock: AugmentedRpc< + ( + block: Hash | string | Uint8Array, + targets: Option | null | Uint8Array | Text | string, + storageKeys: Option | null | Uint8Array | Text | string, + methods: Option | null | Uint8Array | Text | string + ) => Observable + >; + /** + * Check current migration state + **/ + trieMigrationStatus: AugmentedRpc< + (at?: BlockHash | string | Uint8Array) => Observable + >; + }; + syncstate: { + /** + * Returns the json-serialized chainspec running the node, with a sync state. + **/ + genSyncSpec: AugmentedRpc<(raw: bool | boolean | Uint8Array) => Observable>; + }; + system: { + /** + * Retrieves the next accountIndex as available on the node + **/ + accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable>; + /** + * Adds the supplied directives to the current log filter + **/ + addLogFilter: AugmentedRpc<(directives: Text | string) => Observable>; + /** + * Adds a reserved peer + **/ + addReservedPeer: AugmentedRpc<(peer: Text | string) => Observable>; + /** + * Retrieves the chain + **/ + chain: AugmentedRpc<() => Observable>; + /** + * Retrieves the chain type + **/ + chainType: AugmentedRpc<() => Observable>; + /** + * Dry run an extrinsic at a given block + **/ + dryRun: AugmentedRpc< + ( + extrinsic: Bytes | string | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Return health status of the node + **/ + health: AugmentedRpc<() => Observable>; + /** + * The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example + **/ + localListenAddresses: AugmentedRpc<() => Observable>>; + /** + * Returns the base58-encoded PeerId of the node + **/ + localPeerId: AugmentedRpc<() => Observable>; + /** + * Retrieves the node name + **/ + name: AugmentedRpc<() => Observable>; + /** + * Returns current state of the network + **/ + networkState: AugmentedRpc<() => Observable>; + /** + * Returns the roles the node is running as + **/ + nodeRoles: AugmentedRpc<() => Observable>>; + /** + * Returns the currently connected peers + **/ + peers: AugmentedRpc<() => Observable>>; + /** + * Get a custom set of properties as a JSON object, defined in the chain spec + **/ + properties: AugmentedRpc<() => Observable>; + /** + * Remove a reserved peer + **/ + removeReservedPeer: AugmentedRpc<(peerId: Text | string) => Observable>; + /** + * Returns the list of reserved peers + **/ + reservedPeers: AugmentedRpc<() => Observable>>; + /** + * Resets the log filter to Substrate defaults + **/ + resetLogFilter: AugmentedRpc<() => Observable>; + /** + * Returns the state of the syncing of the node + **/ + syncState: AugmentedRpc<() => Observable>; + /** + * Retrieves the version of the node + **/ + version: AugmentedRpc<() => Observable>; + }; + web3: { + /** + * Returns current client version. + **/ + clientVersion: AugmentedRpc<() => Observable>; + /** + * Returns sha3 of the given data + **/ + sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable>; + }; + } // RpcInterface +} // declare module diff --git a/tee-worker/ts-tests/sidechain-interfaces/augment-api-runtime.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api-runtime.ts new file mode 100644 index 0000000000..1ca68a9593 --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/augment-api-runtime.ts @@ -0,0 +1,63 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/calls'; + +import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types'; +import type { Null } from '@polkadot/types-codec'; +import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata'; +import type { Block, Header } from '@polkadot/types/interfaces/runtime'; +import type { RuntimeVersion } from '@polkadot/types/interfaces/state'; +import type { Observable } from '@polkadot/types/types'; + +export type __AugmentedCall = AugmentedCall; +export type __DecoratedCallBase = DecoratedCallBase; + +declare module '@polkadot/api-base/types/calls' { + interface AugmentedCalls { + /** 0xdf6acb689907609b/4 */ + core: { + /** + * Execute the given block. + **/ + executeBlock: AugmentedCall< + ApiType, + (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable + >; + /** + * Initialize a block with the given header. + **/ + initializeBlock: AugmentedCall< + ApiType, + ( + header: + | Header + | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } + | string + | Uint8Array + ) => Observable + >; + /** + * Returns the version of the runtime. + **/ + version: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x37e397fc7c91f5e4/1 */ + metadata: { + /** + * Returns the metadata of a runtime + **/ + metadata: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + } // AugmentedCalls +} // declare module diff --git a/tee-worker/ts-tests/sidechain-interfaces/augment-api-tx.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api-tx.ts new file mode 100644 index 0000000000..7b833f8f26 --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/augment-api-tx.ts @@ -0,0 +1,492 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/submittable'; + +import type { + ApiTypes, + AugmentedSubmittable, + SubmittableExtrinsic, + SubmittableExtrinsicFunction, +} from '@polkadot/api-base/types'; +import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec'; +import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, Call, MultiAddress } from '@polkadot/types/interfaces/runtime'; +import type { LitentryPrimitivesIdentity, SpRuntimeHeader, SpWeightsWeightV2Weight } from '@polkadot/types/lookup'; + +export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>; +export type __SubmittableExtrinsic = SubmittableExtrinsic; +export type __SubmittableExtrinsicFunction = SubmittableExtrinsicFunction; + +declare module '@polkadot/api-base/types/submittable' { + interface AugmentedSubmittables { + balances: { + /** + * Exactly as `transfer`, except the origin must be root and the source account may be + * specified. + * ## Complexity + * - Same as transfer, but additional read and write because the source account is not + * assumed to be in the overlay. + **/ + forceTransfer: AugmentedSubmittable< + ( + source: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + value: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, MultiAddress, Compact] + >; + /** + * Unreserve some balance from a user by force. + * + * Can only be called by ROOT. + **/ + forceUnreserve: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + amount: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, u128] + >; + /** + * Set the balances of a given account. + * + * This will alter `FreeBalance` and `ReservedBalance` in storage. it will + * also alter the total issuance of the system (`TotalIssuance`) appropriately. + * If the new free or reserved balance is below the existential deposit, + * it will reset the account nonce (`frame_system::AccountNonce`). + * + * The dispatch origin for this call is `root`. + **/ + setBalance: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + newFree: Compact | AnyNumber | Uint8Array, + newReserved: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Compact, Compact] + >; + /** + * Transfer some liquid free balance to another account. + * + * `transfer` will set the `FreeBalance` of the sender and receiver. + * If the sender's account is below the existential deposit as a result + * of the transfer, the account will be reaped. + * + * The dispatch origin for this call must be `Signed` by the transactor. + * + * ## Complexity + * - Dependent on arguments but not critical, given proper implementations for input config + * types. See related functions below. + * - It contains a limited number of reads and writes internally and no complex + * computation. + * + * Related functions: + * + * - `ensure_can_withdraw` is always called internally but has a bounded complexity. + * - Transferring balances to accounts that did not exist before will cause + * `T::OnNewAccount::on_new_account` to be called. + * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`. + * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check + * that the transfer will not kill the origin account. + **/ + transfer: AugmentedSubmittable< + ( + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + value: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Compact] + >; + /** + * Transfer the entire transferable balance from the caller account. + * + * NOTE: This function only attempts to transfer _transferable_ balances. This means that + * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be + * transferred by this function. To ensure that this function results in a killed account, + * you might need to prepare the account by removing any reference counters, storage + * deposits, etc... + * + * The dispatch origin of this call must be Signed. + * + * - `dest`: The recipient of the transfer. + * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all + * of the funds the account has, causing the sender account to be killed (false), or + * transfer everything except at least the existential deposit, which will guarantee to + * keep the sender account alive (true). ## Complexity + * - O(1). Just like transfer, but reading the user's transferable balance first. + **/ + transferAll: AugmentedSubmittable< + ( + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + keepAlive: bool | boolean | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, bool] + >; + /** + * Same as the [`transfer`] call, but with a check that the transfer will not kill the + * origin account. + * + * 99% of the time you want [`transfer`] instead. + * + * [`transfer`]: struct.Pallet.html#method.transfer + **/ + transferKeepAlive: AugmentedSubmittable< + ( + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + value: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Compact] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + identityManagement: { + createIdentity: AugmentedSubmittable< + ( + who: AccountId32 | string | Uint8Array, + identity: + | LitentryPrimitivesIdentity + | { Substrate: any } + | { Evm: any } + | { Web2: any } + | string + | Uint8Array, + metadata: Option | null | Uint8Array | Bytes | string, + creationRequestBlock: u32 | AnyNumber | Uint8Array, + parentSs58Prefix: u16 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, LitentryPrimitivesIdentity, Option, u32, u16] + >; + removeChallengeCode: AugmentedSubmittable< + ( + who: AccountId32 | string | Uint8Array, + identity: + | LitentryPrimitivesIdentity + | { Substrate: any } + | { Evm: any } + | { Web2: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, LitentryPrimitivesIdentity] + >; + removeIdentity: AugmentedSubmittable< + ( + who: AccountId32 | string | Uint8Array, + identity: + | LitentryPrimitivesIdentity + | { Substrate: any } + | { Evm: any } + | { Web2: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, LitentryPrimitivesIdentity] + >; + setChallengeCode: AugmentedSubmittable< + ( + who: AccountId32 | string | Uint8Array, + identity: + | LitentryPrimitivesIdentity + | { Substrate: any } + | { Evm: any } + | { Web2: any } + | string + | Uint8Array, + code: U8aFixed | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, LitentryPrimitivesIdentity, U8aFixed] + >; + setUserShieldingKey: AugmentedSubmittable< + ( + who: AccountId32 | string | Uint8Array, + key: U8aFixed | string | Uint8Array, + parentSs58Prefix: u16 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, U8aFixed, u16] + >; + verifyIdentity: AugmentedSubmittable< + ( + who: AccountId32 | string | Uint8Array, + identity: + | LitentryPrimitivesIdentity + | { Substrate: any } + | { Evm: any } + | { Web2: any } + | string + | Uint8Array, + verificationRequestBlock: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, LitentryPrimitivesIdentity, u32] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + parentchain: { + setBlock: AugmentedSubmittable< + ( + header: + | SpRuntimeHeader + | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [SpRuntimeHeader] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + sudo: { + /** + * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo + * key. + * + * The dispatch origin for this call must be _Signed_. + * + * ## Complexity + * - O(1). + **/ + setKey: AugmentedSubmittable< + ( + updated: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Authenticates the sudo key and dispatches a function call with `Root` origin. + * + * The dispatch origin for this call must be _Signed_. + * + * ## Complexity + * - O(1). + **/ + sudo: AugmentedSubmittable< + (call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, + [Call] + >; + /** + * Authenticates the sudo key and dispatches a function call with `Signed` origin from + * a given account. + * + * The dispatch origin for this call must be _Signed_. + * + * ## Complexity + * - O(1). + **/ + sudoAs: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Call] + >; + /** + * Authenticates the sudo key and dispatches a function call with `Root` origin. + * This function does not check the weight of the call, and instead allows the + * Sudo user to specify the weight of the call. + * + * The dispatch origin for this call must be _Signed_. + * + * ## Complexity + * - O(1). + **/ + sudoUncheckedWeight: AugmentedSubmittable< + ( + call: Call | IMethod | string | Uint8Array, + weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [Call, SpWeightsWeightV2Weight] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + system: { + /** + * Kill all storage items with a key that starts with the given prefix. + * + * **NOTE:** We rely on the Root origin to provide us the number of subkeys under + * the prefix we are removing to accurately calculate the weight of this function. + **/ + killPrefix: AugmentedSubmittable< + ( + prefix: Bytes | string | Uint8Array, + subkeys: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, u32] + >; + /** + * Kill some items from storage. + **/ + killStorage: AugmentedSubmittable< + (keys: Vec | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Make some on-chain remark. + * + * ## Complexity + * - `O(1)` + **/ + remark: AugmentedSubmittable< + (remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Make some on-chain remark and emit event. + **/ + remarkWithEvent: AugmentedSubmittable< + (remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Set the new runtime code. + * + * ## Complexity + * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code` + **/ + setCode: AugmentedSubmittable< + (code: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Set the new runtime code without doing any checks of the given `code`. + * + * ## Complexity + * - `O(C)` where `C` length of `code` + **/ + setCodeWithoutChecks: AugmentedSubmittable< + (code: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Set the number of pages in the WebAssembly environment's heap. + **/ + setHeapPages: AugmentedSubmittable< + (pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Set some items of storage. + **/ + setStorage: AugmentedSubmittable< + ( + items: Vec> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array][] + ) => SubmittableExtrinsic, + [Vec>] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + timestamp: { + /** + * Set the current time. + * + * This call should be invoked exactly once per block. It will panic at the finalization + * phase, if this call hasn't been invoked by that time. + * + * The timestamp should be greater than the previous one by the amount specified by + * `MinimumPeriod`. + * + * The dispatch origin for this call must be `Inherent`. + * + * ## Complexity + * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) + * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in + * `on_finalize`) + * - 1 event handler `on_timestamp_set`. Must be `O(1)`. + **/ + set: AugmentedSubmittable< + (now: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + } // AugmentedSubmittables +} // declare module diff --git a/tee-worker/ts-tests/sidechain-interfaces/augment-api.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api.ts new file mode 100644 index 0000000000..7cafd228bd --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/augment-api.ts @@ -0,0 +1,10 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +import './augment-api-consts'; +import './augment-api-errors'; +import './augment-api-events'; +import './augment-api-query'; +import './augment-api-tx'; +import './augment-api-rpc'; +import './augment-api-runtime'; diff --git a/tee-worker/ts-tests/sidechain-interfaces/augment-types.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-types.ts new file mode 100644 index 0000000000..682b49004e --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/augment-types.ts @@ -0,0 +1,2300 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/types/types/registry'; + +import type { Data, StorageKey } from '@polkadot/types'; +import type { + BitVec, + Bool, + Bytes, + F32, + F64, + I128, + I16, + I256, + I32, + I64, + I8, + Json, + Null, + OptionBool, + Raw, + Text, + Type, + U128, + U16, + U256, + U32, + U64, + U8, + USize, + bool, + f32, + f64, + i128, + i16, + i256, + i32, + i64, + i8, + u128, + u16, + u256, + u32, + u64, + u8, + usize, +} from '@polkadot/types-codec'; +import type { + AssetApproval, + AssetApprovalKey, + AssetBalance, + AssetDestroyWitness, + AssetDetails, + AssetMetadata, + TAssetBalance, + TAssetDepositBalance, +} from '@polkadot/types/interfaces/assets'; +import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations'; +import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura'; +import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author'; +import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship'; +import type { + AllowedSlots, + BabeAuthorityWeight, + BabeBlockWeight, + BabeEpochConfiguration, + BabeEquivocationProof, + BabeGenesisConfiguration, + BabeGenesisConfigurationV1, + BabeWeight, + Epoch, + EpochAuthorship, + MaybeRandomness, + MaybeVrf, + NextConfigDescriptor, + NextConfigDescriptorV1, + OpaqueKeyOwnershipProof, + Randomness, + RawBabePreDigest, + RawBabePreDigestCompat, + RawBabePreDigestPrimary, + RawBabePreDigestPrimaryTo159, + RawBabePreDigestSecondaryPlain, + RawBabePreDigestSecondaryTo159, + RawBabePreDigestSecondaryVRF, + RawBabePreDigestTo159, + SlotNumber, + VrfData, + VrfOutput, + VrfProof, +} from '@polkadot/types/interfaces/babe'; +import type { + AccountData, + BalanceLock, + BalanceLockTo212, + BalanceStatus, + Reasons, + ReserveData, + ReserveIdentifier, + VestingSchedule, + WithdrawReasons, +} from '@polkadot/types/interfaces/balances'; +import type { + BeefyAuthoritySet, + BeefyCommitment, + BeefyId, + BeefyNextAuthoritySet, + BeefyPayload, + BeefyPayloadId, + BeefySignedCommitment, + MmrRootHash, + ValidatorSet, + ValidatorSetId, +} from '@polkadot/types/interfaces/beefy'; +import type { + BenchmarkBatch, + BenchmarkConfig, + BenchmarkList, + BenchmarkMetadata, + BenchmarkParameter, + BenchmarkResult, +} from '@polkadot/types/interfaces/benchmark'; +import type { CheckInherentsResult, InherentData, InherentIdentifier } from '@polkadot/types/interfaces/blockbuilder'; +import type { + BridgeMessageId, + BridgedBlockHash, + BridgedBlockNumber, + BridgedHeader, + CallOrigin, + ChainId, + DeliveredMessages, + DispatchFeePayment, + InboundLaneData, + InboundRelayer, + InitializationData, + LaneId, + MessageData, + MessageKey, + MessageNonce, + MessagesDeliveryProofOf, + MessagesProofOf, + OperatingMode, + OutboundLaneData, + OutboundMessageFee, + OutboundPayload, + Parameter, + RelayerId, + UnrewardedRelayer, + UnrewardedRelayersState, +} from '@polkadot/types/interfaces/bridges'; +import type { BlockHash } from '@polkadot/types/interfaces/chain'; +import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate'; +import type { StatementKind } from '@polkadot/types/interfaces/claims'; +import type { + CollectiveOrigin, + MemberCount, + ProposalIndex, + Votes, + VotesTo230, +} from '@polkadot/types/interfaces/collective'; +import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus'; +import type { + AliveContractInfo, + CodeHash, + CodeSource, + CodeUploadRequest, + CodeUploadResult, + CodeUploadResultValue, + ContractCallFlags, + ContractCallRequest, + ContractExecResult, + ContractExecResultOk, + ContractExecResultResult, + ContractExecResultSuccessTo255, + ContractExecResultSuccessTo260, + ContractExecResultTo255, + ContractExecResultTo260, + ContractExecResultTo267, + ContractExecResultU64, + ContractInfo, + ContractInstantiateResult, + ContractInstantiateResultTo267, + ContractInstantiateResultTo299, + ContractInstantiateResultU64, + ContractReturnFlags, + ContractStorageKey, + DeletedContract, + ExecReturnValue, + Gas, + HostFnWeights, + HostFnWeightsTo264, + InstantiateRequest, + InstantiateRequestV1, + InstantiateRequestV2, + InstantiateReturnValue, + InstantiateReturnValueOk, + InstantiateReturnValueTo267, + InstructionWeights, + Limits, + LimitsTo264, + PrefabWasmModule, + RentProjection, + Schedule, + ScheduleTo212, + ScheduleTo258, + ScheduleTo264, + SeedOf, + StorageDeposit, + TombstoneContractInfo, + TrieId, +} from '@polkadot/types/interfaces/contracts'; +import type { + ContractConstructorSpecLatest, + ContractConstructorSpecV0, + ContractConstructorSpecV1, + ContractConstructorSpecV2, + ContractConstructorSpecV3, + ContractContractSpecV0, + ContractContractSpecV1, + ContractContractSpecV2, + ContractContractSpecV3, + ContractContractSpecV4, + ContractCryptoHasher, + ContractDiscriminant, + ContractDisplayName, + ContractEventParamSpecLatest, + ContractEventParamSpecV0, + ContractEventParamSpecV2, + ContractEventSpecLatest, + ContractEventSpecV0, + ContractEventSpecV1, + ContractEventSpecV2, + ContractLayoutArray, + ContractLayoutCell, + ContractLayoutEnum, + ContractLayoutHash, + ContractLayoutHashingStrategy, + ContractLayoutKey, + ContractLayoutStruct, + ContractLayoutStructField, + ContractMessageParamSpecLatest, + ContractMessageParamSpecV0, + ContractMessageParamSpecV2, + ContractMessageSpecLatest, + ContractMessageSpecV0, + ContractMessageSpecV1, + ContractMessageSpecV2, + ContractMetadata, + ContractMetadataLatest, + ContractMetadataV0, + ContractMetadataV1, + ContractMetadataV2, + ContractMetadataV3, + ContractMetadataV4, + ContractProject, + ContractProjectContract, + ContractProjectInfo, + ContractProjectSource, + ContractProjectV0, + ContractSelector, + ContractStorageLayout, + ContractTypeSpec, +} from '@polkadot/types/interfaces/contractsAbi'; +import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan'; +import type { + CollationInfo, + CollationInfoV1, + ConfigData, + MessageId, + OverweightIndex, + PageCounter, + PageIndexData, +} from '@polkadot/types/interfaces/cumulus'; +import type { + AccountVote, + AccountVoteSplit, + AccountVoteStandard, + Conviction, + Delegations, + PreimageStatus, + PreimageStatusAvailable, + PriorLock, + PropIndex, + Proposal, + ProxyState, + ReferendumIndex, + ReferendumInfo, + ReferendumInfoFinished, + ReferendumInfoTo239, + ReferendumStatus, + Tally, + Voting, + VotingDelegating, + VotingDirect, + VotingDirectVote, +} from '@polkadot/types/interfaces/democracy'; +import type { BlockStats } from '@polkadot/types/interfaces/dev'; +import type { + ApprovalFlag, + DefunctVoter, + Renouncing, + SetIndex, + Vote, + VoteIndex, + VoteThreshold, + VoterInfo, +} from '@polkadot/types/interfaces/elections'; +import type { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine'; +import type { + BlockV0, + BlockV1, + BlockV2, + EIP1559Transaction, + EIP2930Transaction, + EthAccessList, + EthAccessListItem, + EthAccount, + EthAddress, + EthBlock, + EthBloom, + EthCallRequest, + EthFeeHistory, + EthFilter, + EthFilterAddress, + EthFilterChanges, + EthFilterTopic, + EthFilterTopicEntry, + EthFilterTopicInner, + EthHeader, + EthLog, + EthReceipt, + EthReceiptV0, + EthReceiptV3, + EthRichBlock, + EthRichHeader, + EthStorageProof, + EthSubKind, + EthSubParams, + EthSubResult, + EthSyncInfo, + EthSyncStatus, + EthTransaction, + EthTransactionAction, + EthTransactionCondition, + EthTransactionRequest, + EthTransactionSignature, + EthTransactionStatus, + EthWork, + EthereumAccountId, + EthereumAddress, + EthereumLookupSource, + EthereumSignature, + LegacyTransaction, + TransactionV0, + TransactionV1, + TransactionV2, +} from '@polkadot/types/interfaces/eth'; +import type { + EvmAccount, + EvmCallInfo, + EvmCreateInfo, + EvmLog, + EvmVicinity, + ExitError, + ExitFatal, + ExitReason, + ExitRevert, + ExitSucceed, +} from '@polkadot/types/interfaces/evm'; +import type { + AnySignature, + EcdsaSignature, + Ed25519Signature, + Era, + Extrinsic, + ExtrinsicEra, + ExtrinsicPayload, + ExtrinsicPayloadUnknown, + ExtrinsicPayloadV4, + ExtrinsicSignature, + ExtrinsicSignatureV4, + ExtrinsicUnknown, + ExtrinsicV4, + ImmortalEra, + MortalEra, + MultiSignature, + Signature, + SignerPayload, + Sr25519Signature, +} from '@polkadot/types/interfaces/extrinsics'; +import type { + AssetOptions, + Owner, + PermissionLatest, + PermissionVersions, + PermissionsV1, +} from '@polkadot/types/interfaces/genericAsset'; +import type { ActiveGilt, ActiveGiltsTotal, ActiveIndex, GiltBid } from '@polkadot/types/interfaces/gilt'; +import type { + AuthorityIndex, + AuthorityList, + AuthoritySet, + AuthoritySetChange, + AuthoritySetChanges, + AuthorityWeight, + DelayKind, + DelayKindBest, + EncodedFinalityProofs, + ForkTreePendingChange, + ForkTreePendingChangeNode, + GrandpaCommit, + GrandpaEquivocation, + GrandpaEquivocationProof, + GrandpaEquivocationValue, + GrandpaJustification, + GrandpaPrecommit, + GrandpaPrevote, + GrandpaSignedPrecommit, + JustificationNotification, + KeyOwnerProof, + NextAuthority, + PendingChange, + PendingPause, + PendingResume, + Precommits, + Prevotes, + ReportedRoundStates, + RoundState, + SetId, + StoredPendingChange, + StoredState, +} from '@polkadot/types/interfaces/grandpa'; +import type { + IdentityFields, + IdentityInfo, + IdentityInfoAdditional, + IdentityInfoTo198, + IdentityJudgement, + RegistrarIndex, + RegistrarInfo, + Registration, + RegistrationJudgement, + RegistrationTo198, +} from '@polkadot/types/interfaces/identity'; +import type { + AuthIndex, + AuthoritySignature, + Heartbeat, + HeartbeatTo244, + OpaqueMultiaddr, + OpaqueNetworkState, + OpaquePeerId, +} from '@polkadot/types/interfaces/imOnline'; +import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery'; +import type { + ErrorMetadataLatest, + ErrorMetadataV10, + ErrorMetadataV11, + ErrorMetadataV12, + ErrorMetadataV13, + ErrorMetadataV14, + ErrorMetadataV9, + EventMetadataLatest, + EventMetadataV10, + EventMetadataV11, + EventMetadataV12, + EventMetadataV13, + EventMetadataV14, + EventMetadataV9, + ExtrinsicMetadataLatest, + ExtrinsicMetadataV11, + ExtrinsicMetadataV12, + ExtrinsicMetadataV13, + ExtrinsicMetadataV14, + FunctionArgumentMetadataLatest, + FunctionArgumentMetadataV10, + FunctionArgumentMetadataV11, + FunctionArgumentMetadataV12, + FunctionArgumentMetadataV13, + FunctionArgumentMetadataV14, + FunctionArgumentMetadataV9, + FunctionMetadataLatest, + FunctionMetadataV10, + FunctionMetadataV11, + FunctionMetadataV12, + FunctionMetadataV13, + FunctionMetadataV14, + FunctionMetadataV9, + MetadataAll, + MetadataLatest, + MetadataV10, + MetadataV11, + MetadataV12, + MetadataV13, + MetadataV14, + MetadataV9, + ModuleConstantMetadataV10, + ModuleConstantMetadataV11, + ModuleConstantMetadataV12, + ModuleConstantMetadataV13, + ModuleConstantMetadataV9, + ModuleMetadataV10, + ModuleMetadataV11, + ModuleMetadataV12, + ModuleMetadataV13, + ModuleMetadataV9, + OpaqueMetadata, + PalletCallMetadataLatest, + PalletCallMetadataV14, + PalletConstantMetadataLatest, + PalletConstantMetadataV14, + PalletErrorMetadataLatest, + PalletErrorMetadataV14, + PalletEventMetadataLatest, + PalletEventMetadataV14, + PalletMetadataLatest, + PalletMetadataV14, + PalletStorageMetadataLatest, + PalletStorageMetadataV14, + PortableType, + PortableTypeV14, + SignedExtensionMetadataLatest, + SignedExtensionMetadataV14, + StorageEntryMetadataLatest, + StorageEntryMetadataV10, + StorageEntryMetadataV11, + StorageEntryMetadataV12, + StorageEntryMetadataV13, + StorageEntryMetadataV14, + StorageEntryMetadataV9, + StorageEntryModifierLatest, + StorageEntryModifierV10, + StorageEntryModifierV11, + StorageEntryModifierV12, + StorageEntryModifierV13, + StorageEntryModifierV14, + StorageEntryModifierV9, + StorageEntryTypeLatest, + StorageEntryTypeV10, + StorageEntryTypeV11, + StorageEntryTypeV12, + StorageEntryTypeV13, + StorageEntryTypeV14, + StorageEntryTypeV9, + StorageHasher, + StorageHasherV10, + StorageHasherV11, + StorageHasherV12, + StorageHasherV13, + StorageHasherV14, + StorageHasherV9, + StorageMetadataV10, + StorageMetadataV11, + StorageMetadataV12, + StorageMetadataV13, + StorageMetadataV9, +} from '@polkadot/types/interfaces/metadata'; +import type { + MmrBatchProof, + MmrEncodableOpaqueLeaf, + MmrError, + MmrLeafBatchProof, + MmrLeafIndex, + MmrLeafProof, + MmrNodeIndex, + MmrProof, +} from '@polkadot/types/interfaces/mmr'; +import type { NpApiError } from '@polkadot/types/interfaces/nompools'; +import type { StorageKind } from '@polkadot/types/interfaces/offchain'; +import type { + DeferredOffenceOf, + Kind, + OffenceDetails, + Offender, + OpaqueTimeSlot, + ReportIdOf, + Reporter, +} from '@polkadot/types/interfaces/offences'; +import type { + AbridgedCandidateReceipt, + AbridgedHostConfiguration, + AbridgedHrmpChannel, + AssignmentId, + AssignmentKind, + AttestedCandidate, + AuctionIndex, + AuthorityDiscoveryId, + AvailabilityBitfield, + AvailabilityBitfieldRecord, + BackedCandidate, + Bidder, + BufferedSessionChange, + CandidateCommitments, + CandidateDescriptor, + CandidateEvent, + CandidateHash, + CandidateInfo, + CandidatePendingAvailability, + CandidateReceipt, + CollatorId, + CollatorSignature, + CommittedCandidateReceipt, + CoreAssignment, + CoreIndex, + CoreOccupied, + CoreState, + DisputeLocation, + DisputeResult, + DisputeState, + DisputeStatement, + DisputeStatementSet, + DoubleVoteReport, + DownwardMessage, + ExplicitDisputeStatement, + GlobalValidationData, + GlobalValidationSchedule, + GroupIndex, + GroupRotationInfo, + HeadData, + HostConfiguration, + HrmpChannel, + HrmpChannelId, + HrmpOpenChannelRequest, + InboundDownwardMessage, + InboundHrmpMessage, + InboundHrmpMessages, + IncomingParachain, + IncomingParachainDeploy, + IncomingParachainFixed, + InvalidDisputeStatementKind, + LeasePeriod, + LeasePeriodOf, + LocalValidationData, + MessageIngestionType, + MessageQueueChain, + MessagingStateSnapshot, + MessagingStateSnapshotEgressEntry, + MultiDisputeStatementSet, + NewBidder, + OccupiedCore, + OccupiedCoreAssumption, + OldV1SessionInfo, + OutboundHrmpMessage, + ParaGenesisArgs, + ParaId, + ParaInfo, + ParaLifecycle, + ParaPastCodeMeta, + ParaScheduling, + ParaValidatorIndex, + ParachainDispatchOrigin, + ParachainInherentData, + ParachainProposal, + ParachainsInherentData, + ParathreadClaim, + ParathreadClaimQueue, + ParathreadEntry, + PersistedValidationData, + PvfCheckStatement, + QueuedParathread, + RegisteredParachainInfo, + RelayBlockNumber, + RelayChainBlockNumber, + RelayChainHash, + RelayHash, + Remark, + ReplacementTimes, + Retriable, + ScheduledCore, + Scheduling, + ScrapedOnChainVotes, + ServiceQuality, + SessionInfo, + SessionInfoValidatorGroup, + SignedAvailabilityBitfield, + SignedAvailabilityBitfields, + SigningContext, + SlotRange, + SlotRange10, + Statement, + SubId, + SystemInherentData, + TransientValidationData, + UpgradeGoAhead, + UpgradeRestriction, + UpwardMessage, + ValidDisputeStatementKind, + ValidationCode, + ValidationCodeHash, + ValidationData, + ValidationDataType, + ValidationFunctionParams, + ValidatorSignature, + ValidityAttestation, + VecInboundHrmpMessage, + WinnersData, + WinnersData10, + WinnersDataTuple, + WinnersDataTuple10, + WinningData, + WinningData10, + WinningDataEntry, +} from '@polkadot/types/interfaces/parachains'; +import type { + FeeDetails, + InclusionFee, + RuntimeDispatchInfo, + RuntimeDispatchInfoV1, + RuntimeDispatchInfoV2, +} from '@polkadot/types/interfaces/payment'; +import type { Approvals } from '@polkadot/types/interfaces/poll'; +import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy'; +import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase'; +import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery'; +import type { RpcMethods } from '@polkadot/types/interfaces/rpc'; +import type { + AccountId, + AccountId20, + AccountId32, + AccountId33, + AccountIdOf, + AccountIndex, + Address, + AssetId, + Balance, + BalanceOf, + Block, + BlockNumber, + BlockNumberFor, + BlockNumberOf, + Call, + CallHash, + CallHashOf, + ChangesTrieConfiguration, + ChangesTrieSignal, + CodecHash, + Consensus, + ConsensusEngineId, + CrateVersion, + Digest, + DigestItem, + EncodedJustification, + ExtrinsicsWeight, + Fixed128, + Fixed64, + FixedI128, + FixedI64, + FixedU128, + FixedU64, + H1024, + H128, + H160, + H2048, + H256, + H32, + H512, + H64, + Hash, + Header, + HeaderPartial, + I32F32, + Index, + IndicesLookupSource, + Justification, + Justifications, + KeyTypeId, + KeyValue, + LockIdentifier, + LookupSource, + LookupTarget, + ModuleId, + Moment, + MultiAddress, + MultiSigner, + OpaqueCall, + Origin, + OriginCaller, + PalletId, + PalletVersion, + PalletsOrigin, + Pays, + PerU16, + Perbill, + Percent, + Permill, + Perquintill, + Phantom, + PhantomData, + PreRuntime, + Releases, + RuntimeCall, + RuntimeDbWeight, + RuntimeEvent, + Seal, + SealV0, + SignedBlock, + SignedBlockWithJustification, + SignedBlockWithJustifications, + Slot, + SlotDuration, + StorageData, + StorageInfo, + StorageProof, + TransactionInfo, + TransactionLongevity, + TransactionPriority, + TransactionStorageProof, + TransactionTag, + U32F32, + ValidatorId, + ValidatorIdOf, + Weight, + WeightMultiplier, + WeightV0, + WeightV1, + WeightV2, +} from '@polkadot/types/interfaces/runtime'; +import type { + Si0Field, + Si0LookupTypeId, + Si0Path, + Si0Type, + Si0TypeDef, + Si0TypeDefArray, + Si0TypeDefBitSequence, + Si0TypeDefCompact, + Si0TypeDefComposite, + Si0TypeDefPhantom, + Si0TypeDefPrimitive, + Si0TypeDefSequence, + Si0TypeDefTuple, + Si0TypeDefVariant, + Si0TypeParameter, + Si0Variant, + Si1Field, + Si1LookupTypeId, + Si1Path, + Si1Type, + Si1TypeDef, + Si1TypeDefArray, + Si1TypeDefBitSequence, + Si1TypeDefCompact, + Si1TypeDefComposite, + Si1TypeDefPrimitive, + Si1TypeDefSequence, + Si1TypeDefTuple, + Si1TypeDefVariant, + Si1TypeParameter, + Si1Variant, + SiField, + SiLookupTypeId, + SiPath, + SiType, + SiTypeDef, + SiTypeDefArray, + SiTypeDefBitSequence, + SiTypeDefCompact, + SiTypeDefComposite, + SiTypeDefPrimitive, + SiTypeDefSequence, + SiTypeDefTuple, + SiTypeDefVariant, + SiTypeParameter, + SiVariant, +} from '@polkadot/types/interfaces/scaleInfo'; +import type { + Period, + Priority, + SchedulePeriod, + SchedulePriority, + Scheduled, + ScheduledTo254, + TaskAddress, +} from '@polkadot/types/interfaces/scheduler'; +import type { + BeefyKey, + FullIdentification, + IdentificationTuple, + Keys, + MembershipProof, + SessionIndex, + SessionKeys1, + SessionKeys10, + SessionKeys10B, + SessionKeys2, + SessionKeys3, + SessionKeys4, + SessionKeys5, + SessionKeys6, + SessionKeys6B, + SessionKeys7, + SessionKeys7B, + SessionKeys8, + SessionKeys8B, + SessionKeys9, + SessionKeys9B, + ValidatorCount, +} from '@polkadot/types/interfaces/session'; +import type { + Bid, + BidKind, + SocietyJudgement, + SocietyVote, + StrikeCount, + VouchingStatus, +} from '@polkadot/types/interfaces/society'; +import type { + ActiveEraInfo, + CompactAssignments, + CompactAssignmentsTo257, + CompactAssignmentsTo265, + CompactAssignmentsWith16, + CompactAssignmentsWith24, + CompactScore, + CompactScoreCompact, + ElectionCompute, + ElectionPhase, + ElectionResult, + ElectionScore, + ElectionSize, + ElectionStatus, + EraIndex, + EraPoints, + EraRewardPoints, + EraRewards, + Exposure, + ExtendedBalance, + Forcing, + IndividualExposure, + KeyType, + MomentOf, + Nominations, + NominatorIndex, + NominatorIndexCompact, + OffchainAccuracy, + OffchainAccuracyCompact, + PhragmenScore, + Points, + RawSolution, + RawSolutionTo265, + RawSolutionWith16, + RawSolutionWith24, + ReadySolution, + RewardDestination, + RewardPoint, + RoundSnapshot, + SeatHolder, + SignedSubmission, + SignedSubmissionOf, + SignedSubmissionTo276, + SlashJournalEntry, + SlashingSpans, + SlashingSpansTo204, + SolutionOrSnapshotSize, + SolutionSupport, + SolutionSupports, + SpanIndex, + SpanRecord, + StakingLedger, + StakingLedgerTo223, + StakingLedgerTo240, + SubmissionIndicesOf, + Supports, + UnappliedSlash, + UnappliedSlashOther, + UnlockChunk, + ValidatorIndex, + ValidatorIndexCompact, + ValidatorPrefs, + ValidatorPrefsTo145, + ValidatorPrefsTo196, + ValidatorPrefsWithBlocked, + ValidatorPrefsWithCommission, + VoteWeight, + Voter, +} from '@polkadot/types/interfaces/staking'; +import type { + ApiId, + BlockTrace, + BlockTraceEvent, + BlockTraceEventData, + BlockTraceSpan, + KeyValueOption, + MigrationStatusResult, + ReadProof, + RuntimeVersion, + RuntimeVersionApi, + RuntimeVersionPartial, + RuntimeVersionPre3, + RuntimeVersionPre4, + SpecVersion, + StorageChangeSet, + TraceBlockResponse, + TraceError, +} from '@polkadot/types/interfaces/state'; +import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support'; +import type { + AccountInfo, + AccountInfoWithDualRefCount, + AccountInfoWithProviders, + AccountInfoWithRefCount, + AccountInfoWithRefCountU8, + AccountInfoWithTripleRefCount, + ApplyExtrinsicResult, + ApplyExtrinsicResultPre6, + ArithmeticError, + BlockLength, + BlockWeights, + ChainProperties, + ChainType, + ConsumedWeight, + DigestOf, + DispatchClass, + DispatchError, + DispatchErrorModule, + DispatchErrorModulePre6, + DispatchErrorModuleU8, + DispatchErrorModuleU8a, + DispatchErrorPre6, + DispatchErrorPre6First, + DispatchErrorTo198, + DispatchInfo, + DispatchInfoTo190, + DispatchInfoTo244, + DispatchOutcome, + DispatchOutcomePre6, + DispatchResult, + DispatchResultOf, + DispatchResultTo198, + Event, + EventId, + EventIndex, + EventRecord, + Health, + InvalidTransaction, + Key, + LastRuntimeUpgradeInfo, + NetworkState, + NetworkStatePeerset, + NetworkStatePeersetInfo, + NodeRole, + NotConnectedPeer, + Peer, + PeerEndpoint, + PeerEndpointAddr, + PeerInfo, + PeerPing, + PerDispatchClassU32, + PerDispatchClassWeight, + PerDispatchClassWeightsPerClass, + Phase, + RawOrigin, + RefCount, + RefCountTo259, + SyncState, + SystemOrigin, + TokenError, + TransactionValidityError, + TransactionalError, + UnknownTransaction, + WeightPerClass, +} from '@polkadot/types/interfaces/system'; +import type { + Bounty, + BountyIndex, + BountyStatus, + BountyStatusActive, + BountyStatusCuratorProposed, + BountyStatusPendingPayout, + OpenTip, + OpenTipFinderTo225, + OpenTipTip, + OpenTipTo225, + TreasuryProposal, +} from '@polkadot/types/interfaces/treasury'; +import type { Multiplier } from '@polkadot/types/interfaces/txpayment'; +import type { TransactionSource, TransactionValidity, ValidTransaction } from '@polkadot/types/interfaces/txqueue'; +import type { + ClassDetails, + ClassId, + ClassMetadata, + DepositBalance, + DepositBalanceOf, + DestroyWitness, + InstanceDetails, + InstanceId, + InstanceMetadata, +} from '@polkadot/types/interfaces/uniques'; +import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility'; +import type { VestingInfo } from '@polkadot/types/interfaces/vesting'; +import type { + AssetInstance, + AssetInstanceV0, + AssetInstanceV1, + AssetInstanceV2, + BodyId, + BodyPart, + DoubleEncodedCall, + Fungibility, + FungibilityV0, + FungibilityV1, + FungibilityV2, + InboundStatus, + InstructionV2, + InteriorMultiLocation, + Junction, + JunctionV0, + JunctionV1, + JunctionV2, + Junctions, + JunctionsV1, + JunctionsV2, + MultiAsset, + MultiAssetFilter, + MultiAssetFilterV1, + MultiAssetFilterV2, + MultiAssetV0, + MultiAssetV1, + MultiAssetV2, + MultiAssets, + MultiAssetsV1, + MultiAssetsV2, + MultiLocation, + MultiLocationV0, + MultiLocationV1, + MultiLocationV2, + NetworkId, + OriginKindV0, + OriginKindV1, + OriginKindV2, + OutboundStatus, + Outcome, + QueryId, + QueryStatus, + QueueConfigData, + Response, + ResponseV0, + ResponseV1, + ResponseV2, + ResponseV2Error, + ResponseV2Result, + VersionMigrationStage, + VersionedMultiAsset, + VersionedMultiAssets, + VersionedMultiLocation, + VersionedResponse, + VersionedXcm, + WeightLimitV2, + WildFungibility, + WildFungibilityV0, + WildFungibilityV1, + WildFungibilityV2, + WildMultiAsset, + WildMultiAssetV1, + WildMultiAssetV2, + Xcm, + XcmAssetId, + XcmError, + XcmErrorV0, + XcmErrorV1, + XcmErrorV2, + XcmOrder, + XcmOrderV0, + XcmOrderV1, + XcmOrderV2, + XcmOrigin, + XcmOriginKind, + XcmV0, + XcmV1, + XcmV2, + XcmVersion, + XcmpMessageFormat, +} from '@polkadot/types/interfaces/xcm'; + +declare module '@polkadot/types/types/registry' { + interface InterfaceTypes { + AbridgedCandidateReceipt: AbridgedCandidateReceipt; + AbridgedHostConfiguration: AbridgedHostConfiguration; + AbridgedHrmpChannel: AbridgedHrmpChannel; + AccountData: AccountData; + AccountId: AccountId; + AccountId20: AccountId20; + AccountId32: AccountId32; + AccountId33: AccountId33; + AccountIdOf: AccountIdOf; + AccountIndex: AccountIndex; + AccountInfo: AccountInfo; + AccountInfoWithDualRefCount: AccountInfoWithDualRefCount; + AccountInfoWithProviders: AccountInfoWithProviders; + AccountInfoWithRefCount: AccountInfoWithRefCount; + AccountInfoWithRefCountU8: AccountInfoWithRefCountU8; + AccountInfoWithTripleRefCount: AccountInfoWithTripleRefCount; + AccountStatus: AccountStatus; + AccountValidity: AccountValidity; + AccountVote: AccountVote; + AccountVoteSplit: AccountVoteSplit; + AccountVoteStandard: AccountVoteStandard; + ActiveEraInfo: ActiveEraInfo; + ActiveGilt: ActiveGilt; + ActiveGiltsTotal: ActiveGiltsTotal; + ActiveIndex: ActiveIndex; + ActiveRecovery: ActiveRecovery; + Address: Address; + AliveContractInfo: AliveContractInfo; + AllowedSlots: AllowedSlots; + AnySignature: AnySignature; + ApiId: ApiId; + ApplyExtrinsicResult: ApplyExtrinsicResult; + ApplyExtrinsicResultPre6: ApplyExtrinsicResultPre6; + ApprovalFlag: ApprovalFlag; + Approvals: Approvals; + ArithmeticError: ArithmeticError; + AssetApproval: AssetApproval; + AssetApprovalKey: AssetApprovalKey; + AssetBalance: AssetBalance; + AssetDestroyWitness: AssetDestroyWitness; + AssetDetails: AssetDetails; + AssetId: AssetId; + AssetInstance: AssetInstance; + AssetInstanceV0: AssetInstanceV0; + AssetInstanceV1: AssetInstanceV1; + AssetInstanceV2: AssetInstanceV2; + AssetMetadata: AssetMetadata; + AssetOptions: AssetOptions; + AssignmentId: AssignmentId; + AssignmentKind: AssignmentKind; + AttestedCandidate: AttestedCandidate; + AuctionIndex: AuctionIndex; + AuthIndex: AuthIndex; + AuthorityDiscoveryId: AuthorityDiscoveryId; + AuthorityId: AuthorityId; + AuthorityIndex: AuthorityIndex; + AuthorityList: AuthorityList; + AuthoritySet: AuthoritySet; + AuthoritySetChange: AuthoritySetChange; + AuthoritySetChanges: AuthoritySetChanges; + AuthoritySignature: AuthoritySignature; + AuthorityWeight: AuthorityWeight; + AvailabilityBitfield: AvailabilityBitfield; + AvailabilityBitfieldRecord: AvailabilityBitfieldRecord; + BabeAuthorityWeight: BabeAuthorityWeight; + BabeBlockWeight: BabeBlockWeight; + BabeEpochConfiguration: BabeEpochConfiguration; + BabeEquivocationProof: BabeEquivocationProof; + BabeGenesisConfiguration: BabeGenesisConfiguration; + BabeGenesisConfigurationV1: BabeGenesisConfigurationV1; + BabeWeight: BabeWeight; + BackedCandidate: BackedCandidate; + Balance: Balance; + BalanceLock: BalanceLock; + BalanceLockTo212: BalanceLockTo212; + BalanceOf: BalanceOf; + BalanceStatus: BalanceStatus; + BeefyAuthoritySet: BeefyAuthoritySet; + BeefyCommitment: BeefyCommitment; + BeefyId: BeefyId; + BeefyKey: BeefyKey; + BeefyNextAuthoritySet: BeefyNextAuthoritySet; + BeefyPayload: BeefyPayload; + BeefyPayloadId: BeefyPayloadId; + BeefySignedCommitment: BeefySignedCommitment; + BenchmarkBatch: BenchmarkBatch; + BenchmarkConfig: BenchmarkConfig; + BenchmarkList: BenchmarkList; + BenchmarkMetadata: BenchmarkMetadata; + BenchmarkParameter: BenchmarkParameter; + BenchmarkResult: BenchmarkResult; + Bid: Bid; + Bidder: Bidder; + BidKind: BidKind; + BitVec: BitVec; + Block: Block; + BlockAttestations: BlockAttestations; + BlockHash: BlockHash; + BlockLength: BlockLength; + BlockNumber: BlockNumber; + BlockNumberFor: BlockNumberFor; + BlockNumberOf: BlockNumberOf; + BlockStats: BlockStats; + BlockTrace: BlockTrace; + BlockTraceEvent: BlockTraceEvent; + BlockTraceEventData: BlockTraceEventData; + BlockTraceSpan: BlockTraceSpan; + BlockV0: BlockV0; + BlockV1: BlockV1; + BlockV2: BlockV2; + BlockWeights: BlockWeights; + BodyId: BodyId; + BodyPart: BodyPart; + bool: bool; + Bool: Bool; + Bounty: Bounty; + BountyIndex: BountyIndex; + BountyStatus: BountyStatus; + BountyStatusActive: BountyStatusActive; + BountyStatusCuratorProposed: BountyStatusCuratorProposed; + BountyStatusPendingPayout: BountyStatusPendingPayout; + BridgedBlockHash: BridgedBlockHash; + BridgedBlockNumber: BridgedBlockNumber; + BridgedHeader: BridgedHeader; + BridgeMessageId: BridgeMessageId; + BufferedSessionChange: BufferedSessionChange; + Bytes: Bytes; + Call: Call; + CallHash: CallHash; + CallHashOf: CallHashOf; + CallIndex: CallIndex; + CallOrigin: CallOrigin; + CandidateCommitments: CandidateCommitments; + CandidateDescriptor: CandidateDescriptor; + CandidateEvent: CandidateEvent; + CandidateHash: CandidateHash; + CandidateInfo: CandidateInfo; + CandidatePendingAvailability: CandidatePendingAvailability; + CandidateReceipt: CandidateReceipt; + ChainId: ChainId; + ChainProperties: ChainProperties; + ChainType: ChainType; + ChangesTrieConfiguration: ChangesTrieConfiguration; + ChangesTrieSignal: ChangesTrieSignal; + CheckInherentsResult: CheckInherentsResult; + ClassDetails: ClassDetails; + ClassId: ClassId; + ClassMetadata: ClassMetadata; + CodecHash: CodecHash; + CodeHash: CodeHash; + CodeSource: CodeSource; + CodeUploadRequest: CodeUploadRequest; + CodeUploadResult: CodeUploadResult; + CodeUploadResultValue: CodeUploadResultValue; + CollationInfo: CollationInfo; + CollationInfoV1: CollationInfoV1; + CollatorId: CollatorId; + CollatorSignature: CollatorSignature; + CollectiveOrigin: CollectiveOrigin; + CommittedCandidateReceipt: CommittedCandidateReceipt; + CompactAssignments: CompactAssignments; + CompactAssignmentsTo257: CompactAssignmentsTo257; + CompactAssignmentsTo265: CompactAssignmentsTo265; + CompactAssignmentsWith16: CompactAssignmentsWith16; + CompactAssignmentsWith24: CompactAssignmentsWith24; + CompactScore: CompactScore; + CompactScoreCompact: CompactScoreCompact; + ConfigData: ConfigData; + Consensus: Consensus; + ConsensusEngineId: ConsensusEngineId; + ConsumedWeight: ConsumedWeight; + ContractCallFlags: ContractCallFlags; + ContractCallRequest: ContractCallRequest; + ContractConstructorSpecLatest: ContractConstructorSpecLatest; + ContractConstructorSpecV0: ContractConstructorSpecV0; + ContractConstructorSpecV1: ContractConstructorSpecV1; + ContractConstructorSpecV2: ContractConstructorSpecV2; + ContractConstructorSpecV3: ContractConstructorSpecV3; + ContractContractSpecV0: ContractContractSpecV0; + ContractContractSpecV1: ContractContractSpecV1; + ContractContractSpecV2: ContractContractSpecV2; + ContractContractSpecV3: ContractContractSpecV3; + ContractContractSpecV4: ContractContractSpecV4; + ContractCryptoHasher: ContractCryptoHasher; + ContractDiscriminant: ContractDiscriminant; + ContractDisplayName: ContractDisplayName; + ContractEventParamSpecLatest: ContractEventParamSpecLatest; + ContractEventParamSpecV0: ContractEventParamSpecV0; + ContractEventParamSpecV2: ContractEventParamSpecV2; + ContractEventSpecLatest: ContractEventSpecLatest; + ContractEventSpecV0: ContractEventSpecV0; + ContractEventSpecV1: ContractEventSpecV1; + ContractEventSpecV2: ContractEventSpecV2; + ContractExecResult: ContractExecResult; + ContractExecResultOk: ContractExecResultOk; + ContractExecResultResult: ContractExecResultResult; + ContractExecResultSuccessTo255: ContractExecResultSuccessTo255; + ContractExecResultSuccessTo260: ContractExecResultSuccessTo260; + ContractExecResultTo255: ContractExecResultTo255; + ContractExecResultTo260: ContractExecResultTo260; + ContractExecResultTo267: ContractExecResultTo267; + ContractExecResultU64: ContractExecResultU64; + ContractInfo: ContractInfo; + ContractInstantiateResult: ContractInstantiateResult; + ContractInstantiateResultTo267: ContractInstantiateResultTo267; + ContractInstantiateResultTo299: ContractInstantiateResultTo299; + ContractInstantiateResultU64: ContractInstantiateResultU64; + ContractLayoutArray: ContractLayoutArray; + ContractLayoutCell: ContractLayoutCell; + ContractLayoutEnum: ContractLayoutEnum; + ContractLayoutHash: ContractLayoutHash; + ContractLayoutHashingStrategy: ContractLayoutHashingStrategy; + ContractLayoutKey: ContractLayoutKey; + ContractLayoutStruct: ContractLayoutStruct; + ContractLayoutStructField: ContractLayoutStructField; + ContractMessageParamSpecLatest: ContractMessageParamSpecLatest; + ContractMessageParamSpecV0: ContractMessageParamSpecV0; + ContractMessageParamSpecV2: ContractMessageParamSpecV2; + ContractMessageSpecLatest: ContractMessageSpecLatest; + ContractMessageSpecV0: ContractMessageSpecV0; + ContractMessageSpecV1: ContractMessageSpecV1; + ContractMessageSpecV2: ContractMessageSpecV2; + ContractMetadata: ContractMetadata; + ContractMetadataLatest: ContractMetadataLatest; + ContractMetadataV0: ContractMetadataV0; + ContractMetadataV1: ContractMetadataV1; + ContractMetadataV2: ContractMetadataV2; + ContractMetadataV3: ContractMetadataV3; + ContractMetadataV4: ContractMetadataV4; + ContractProject: ContractProject; + ContractProjectContract: ContractProjectContract; + ContractProjectInfo: ContractProjectInfo; + ContractProjectSource: ContractProjectSource; + ContractProjectV0: ContractProjectV0; + ContractReturnFlags: ContractReturnFlags; + ContractSelector: ContractSelector; + ContractStorageKey: ContractStorageKey; + ContractStorageLayout: ContractStorageLayout; + ContractTypeSpec: ContractTypeSpec; + Conviction: Conviction; + CoreAssignment: CoreAssignment; + CoreIndex: CoreIndex; + CoreOccupied: CoreOccupied; + CoreState: CoreState; + CrateVersion: CrateVersion; + CreatedBlock: CreatedBlock; + Data: Data; + DeferredOffenceOf: DeferredOffenceOf; + DefunctVoter: DefunctVoter; + DelayKind: DelayKind; + DelayKindBest: DelayKindBest; + Delegations: Delegations; + DeletedContract: DeletedContract; + DeliveredMessages: DeliveredMessages; + DepositBalance: DepositBalance; + DepositBalanceOf: DepositBalanceOf; + DestroyWitness: DestroyWitness; + Digest: Digest; + DigestItem: DigestItem; + DigestOf: DigestOf; + DispatchClass: DispatchClass; + DispatchError: DispatchError; + DispatchErrorModule: DispatchErrorModule; + DispatchErrorModulePre6: DispatchErrorModulePre6; + DispatchErrorModuleU8: DispatchErrorModuleU8; + DispatchErrorModuleU8a: DispatchErrorModuleU8a; + DispatchErrorPre6: DispatchErrorPre6; + DispatchErrorPre6First: DispatchErrorPre6First; + DispatchErrorTo198: DispatchErrorTo198; + DispatchFeePayment: DispatchFeePayment; + DispatchInfo: DispatchInfo; + DispatchInfoTo190: DispatchInfoTo190; + DispatchInfoTo244: DispatchInfoTo244; + DispatchOutcome: DispatchOutcome; + DispatchOutcomePre6: DispatchOutcomePre6; + DispatchResult: DispatchResult; + DispatchResultOf: DispatchResultOf; + DispatchResultTo198: DispatchResultTo198; + DisputeLocation: DisputeLocation; + DisputeResult: DisputeResult; + DisputeState: DisputeState; + DisputeStatement: DisputeStatement; + DisputeStatementSet: DisputeStatementSet; + DoubleEncodedCall: DoubleEncodedCall; + DoubleVoteReport: DoubleVoteReport; + DownwardMessage: DownwardMessage; + EcdsaSignature: EcdsaSignature; + Ed25519Signature: Ed25519Signature; + EIP1559Transaction: EIP1559Transaction; + EIP2930Transaction: EIP2930Transaction; + ElectionCompute: ElectionCompute; + ElectionPhase: ElectionPhase; + ElectionResult: ElectionResult; + ElectionScore: ElectionScore; + ElectionSize: ElectionSize; + ElectionStatus: ElectionStatus; + EncodedFinalityProofs: EncodedFinalityProofs; + EncodedJustification: EncodedJustification; + Epoch: Epoch; + EpochAuthorship: EpochAuthorship; + Era: Era; + EraIndex: EraIndex; + EraPoints: EraPoints; + EraRewardPoints: EraRewardPoints; + EraRewards: EraRewards; + ErrorMetadataLatest: ErrorMetadataLatest; + ErrorMetadataV10: ErrorMetadataV10; + ErrorMetadataV11: ErrorMetadataV11; + ErrorMetadataV12: ErrorMetadataV12; + ErrorMetadataV13: ErrorMetadataV13; + ErrorMetadataV14: ErrorMetadataV14; + ErrorMetadataV9: ErrorMetadataV9; + EthAccessList: EthAccessList; + EthAccessListItem: EthAccessListItem; + EthAccount: EthAccount; + EthAddress: EthAddress; + EthBlock: EthBlock; + EthBloom: EthBloom; + EthCallRequest: EthCallRequest; + EthereumAccountId: EthereumAccountId; + EthereumAddress: EthereumAddress; + EthereumLookupSource: EthereumLookupSource; + EthereumSignature: EthereumSignature; + EthFeeHistory: EthFeeHistory; + EthFilter: EthFilter; + EthFilterAddress: EthFilterAddress; + EthFilterChanges: EthFilterChanges; + EthFilterTopic: EthFilterTopic; + EthFilterTopicEntry: EthFilterTopicEntry; + EthFilterTopicInner: EthFilterTopicInner; + EthHeader: EthHeader; + EthLog: EthLog; + EthReceipt: EthReceipt; + EthReceiptV0: EthReceiptV0; + EthReceiptV3: EthReceiptV3; + EthRichBlock: EthRichBlock; + EthRichHeader: EthRichHeader; + EthStorageProof: EthStorageProof; + EthSubKind: EthSubKind; + EthSubParams: EthSubParams; + EthSubResult: EthSubResult; + EthSyncInfo: EthSyncInfo; + EthSyncStatus: EthSyncStatus; + EthTransaction: EthTransaction; + EthTransactionAction: EthTransactionAction; + EthTransactionCondition: EthTransactionCondition; + EthTransactionRequest: EthTransactionRequest; + EthTransactionSignature: EthTransactionSignature; + EthTransactionStatus: EthTransactionStatus; + EthWork: EthWork; + Event: Event; + EventId: EventId; + EventIndex: EventIndex; + EventMetadataLatest: EventMetadataLatest; + EventMetadataV10: EventMetadataV10; + EventMetadataV11: EventMetadataV11; + EventMetadataV12: EventMetadataV12; + EventMetadataV13: EventMetadataV13; + EventMetadataV14: EventMetadataV14; + EventMetadataV9: EventMetadataV9; + EventRecord: EventRecord; + EvmAccount: EvmAccount; + EvmCallInfo: EvmCallInfo; + EvmCreateInfo: EvmCreateInfo; + EvmLog: EvmLog; + EvmVicinity: EvmVicinity; + ExecReturnValue: ExecReturnValue; + ExitError: ExitError; + ExitFatal: ExitFatal; + ExitReason: ExitReason; + ExitRevert: ExitRevert; + ExitSucceed: ExitSucceed; + ExplicitDisputeStatement: ExplicitDisputeStatement; + Exposure: Exposure; + ExtendedBalance: ExtendedBalance; + Extrinsic: Extrinsic; + ExtrinsicEra: ExtrinsicEra; + ExtrinsicMetadataLatest: ExtrinsicMetadataLatest; + ExtrinsicMetadataV11: ExtrinsicMetadataV11; + ExtrinsicMetadataV12: ExtrinsicMetadataV12; + ExtrinsicMetadataV13: ExtrinsicMetadataV13; + ExtrinsicMetadataV14: ExtrinsicMetadataV14; + ExtrinsicOrHash: ExtrinsicOrHash; + ExtrinsicPayload: ExtrinsicPayload; + ExtrinsicPayloadUnknown: ExtrinsicPayloadUnknown; + ExtrinsicPayloadV4: ExtrinsicPayloadV4; + ExtrinsicSignature: ExtrinsicSignature; + ExtrinsicSignatureV4: ExtrinsicSignatureV4; + ExtrinsicStatus: ExtrinsicStatus; + ExtrinsicsWeight: ExtrinsicsWeight; + ExtrinsicUnknown: ExtrinsicUnknown; + ExtrinsicV4: ExtrinsicV4; + f32: f32; + F32: F32; + f64: f64; + F64: F64; + FeeDetails: FeeDetails; + Fixed128: Fixed128; + Fixed64: Fixed64; + FixedI128: FixedI128; + FixedI64: FixedI64; + FixedU128: FixedU128; + FixedU64: FixedU64; + Forcing: Forcing; + ForkTreePendingChange: ForkTreePendingChange; + ForkTreePendingChangeNode: ForkTreePendingChangeNode; + FullIdentification: FullIdentification; + FunctionArgumentMetadataLatest: FunctionArgumentMetadataLatest; + FunctionArgumentMetadataV10: FunctionArgumentMetadataV10; + FunctionArgumentMetadataV11: FunctionArgumentMetadataV11; + FunctionArgumentMetadataV12: FunctionArgumentMetadataV12; + FunctionArgumentMetadataV13: FunctionArgumentMetadataV13; + FunctionArgumentMetadataV14: FunctionArgumentMetadataV14; + FunctionArgumentMetadataV9: FunctionArgumentMetadataV9; + FunctionMetadataLatest: FunctionMetadataLatest; + FunctionMetadataV10: FunctionMetadataV10; + FunctionMetadataV11: FunctionMetadataV11; + FunctionMetadataV12: FunctionMetadataV12; + FunctionMetadataV13: FunctionMetadataV13; + FunctionMetadataV14: FunctionMetadataV14; + FunctionMetadataV9: FunctionMetadataV9; + FundIndex: FundIndex; + FundInfo: FundInfo; + Fungibility: Fungibility; + FungibilityV0: FungibilityV0; + FungibilityV1: FungibilityV1; + FungibilityV2: FungibilityV2; + Gas: Gas; + GiltBid: GiltBid; + GlobalValidationData: GlobalValidationData; + GlobalValidationSchedule: GlobalValidationSchedule; + GrandpaCommit: GrandpaCommit; + GrandpaEquivocation: GrandpaEquivocation; + GrandpaEquivocationProof: GrandpaEquivocationProof; + GrandpaEquivocationValue: GrandpaEquivocationValue; + GrandpaJustification: GrandpaJustification; + GrandpaPrecommit: GrandpaPrecommit; + GrandpaPrevote: GrandpaPrevote; + GrandpaSignedPrecommit: GrandpaSignedPrecommit; + GroupIndex: GroupIndex; + GroupRotationInfo: GroupRotationInfo; + H1024: H1024; + H128: H128; + H160: H160; + H2048: H2048; + H256: H256; + H32: H32; + H512: H512; + H64: H64; + Hash: Hash; + HeadData: HeadData; + Header: Header; + HeaderPartial: HeaderPartial; + Health: Health; + Heartbeat: Heartbeat; + HeartbeatTo244: HeartbeatTo244; + HostConfiguration: HostConfiguration; + HostFnWeights: HostFnWeights; + HostFnWeightsTo264: HostFnWeightsTo264; + HrmpChannel: HrmpChannel; + HrmpChannelId: HrmpChannelId; + HrmpOpenChannelRequest: HrmpOpenChannelRequest; + i128: i128; + I128: I128; + i16: i16; + I16: I16; + i256: i256; + I256: I256; + i32: i32; + I32: I32; + I32F32: I32F32; + i64: i64; + I64: I64; + i8: i8; + I8: I8; + IdentificationTuple: IdentificationTuple; + IdentityFields: IdentityFields; + IdentityInfo: IdentityInfo; + IdentityInfoAdditional: IdentityInfoAdditional; + IdentityInfoTo198: IdentityInfoTo198; + IdentityJudgement: IdentityJudgement; + ImmortalEra: ImmortalEra; + ImportedAux: ImportedAux; + InboundDownwardMessage: InboundDownwardMessage; + InboundHrmpMessage: InboundHrmpMessage; + InboundHrmpMessages: InboundHrmpMessages; + InboundLaneData: InboundLaneData; + InboundRelayer: InboundRelayer; + InboundStatus: InboundStatus; + IncludedBlocks: IncludedBlocks; + InclusionFee: InclusionFee; + IncomingParachain: IncomingParachain; + IncomingParachainDeploy: IncomingParachainDeploy; + IncomingParachainFixed: IncomingParachainFixed; + Index: Index; + IndicesLookupSource: IndicesLookupSource; + IndividualExposure: IndividualExposure; + InherentData: InherentData; + InherentIdentifier: InherentIdentifier; + InitializationData: InitializationData; + InstanceDetails: InstanceDetails; + InstanceId: InstanceId; + InstanceMetadata: InstanceMetadata; + InstantiateRequest: InstantiateRequest; + InstantiateRequestV1: InstantiateRequestV1; + InstantiateRequestV2: InstantiateRequestV2; + InstantiateReturnValue: InstantiateReturnValue; + InstantiateReturnValueOk: InstantiateReturnValueOk; + InstantiateReturnValueTo267: InstantiateReturnValueTo267; + InstructionV2: InstructionV2; + InstructionWeights: InstructionWeights; + InteriorMultiLocation: InteriorMultiLocation; + InvalidDisputeStatementKind: InvalidDisputeStatementKind; + InvalidTransaction: InvalidTransaction; + Json: Json; + Junction: Junction; + Junctions: Junctions; + JunctionsV1: JunctionsV1; + JunctionsV2: JunctionsV2; + JunctionV0: JunctionV0; + JunctionV1: JunctionV1; + JunctionV2: JunctionV2; + Justification: Justification; + JustificationNotification: JustificationNotification; + Justifications: Justifications; + Key: Key; + KeyOwnerProof: KeyOwnerProof; + Keys: Keys; + KeyType: KeyType; + KeyTypeId: KeyTypeId; + KeyValue: KeyValue; + KeyValueOption: KeyValueOption; + Kind: Kind; + LaneId: LaneId; + LastContribution: LastContribution; + LastRuntimeUpgradeInfo: LastRuntimeUpgradeInfo; + LeasePeriod: LeasePeriod; + LeasePeriodOf: LeasePeriodOf; + LegacyTransaction: LegacyTransaction; + Limits: Limits; + LimitsTo264: LimitsTo264; + LocalValidationData: LocalValidationData; + LockIdentifier: LockIdentifier; + LookupSource: LookupSource; + LookupTarget: LookupTarget; + LotteryConfig: LotteryConfig; + MaybeRandomness: MaybeRandomness; + MaybeVrf: MaybeVrf; + MemberCount: MemberCount; + MembershipProof: MembershipProof; + MessageData: MessageData; + MessageId: MessageId; + MessageIngestionType: MessageIngestionType; + MessageKey: MessageKey; + MessageNonce: MessageNonce; + MessageQueueChain: MessageQueueChain; + MessagesDeliveryProofOf: MessagesDeliveryProofOf; + MessagesProofOf: MessagesProofOf; + MessagingStateSnapshot: MessagingStateSnapshot; + MessagingStateSnapshotEgressEntry: MessagingStateSnapshotEgressEntry; + MetadataAll: MetadataAll; + MetadataLatest: MetadataLatest; + MetadataV10: MetadataV10; + MetadataV11: MetadataV11; + MetadataV12: MetadataV12; + MetadataV13: MetadataV13; + MetadataV14: MetadataV14; + MetadataV9: MetadataV9; + MigrationStatusResult: MigrationStatusResult; + MmrBatchProof: MmrBatchProof; + MmrEncodableOpaqueLeaf: MmrEncodableOpaqueLeaf; + MmrError: MmrError; + MmrLeafBatchProof: MmrLeafBatchProof; + MmrLeafIndex: MmrLeafIndex; + MmrLeafProof: MmrLeafProof; + MmrNodeIndex: MmrNodeIndex; + MmrProof: MmrProof; + MmrRootHash: MmrRootHash; + ModuleConstantMetadataV10: ModuleConstantMetadataV10; + ModuleConstantMetadataV11: ModuleConstantMetadataV11; + ModuleConstantMetadataV12: ModuleConstantMetadataV12; + ModuleConstantMetadataV13: ModuleConstantMetadataV13; + ModuleConstantMetadataV9: ModuleConstantMetadataV9; + ModuleId: ModuleId; + ModuleMetadataV10: ModuleMetadataV10; + ModuleMetadataV11: ModuleMetadataV11; + ModuleMetadataV12: ModuleMetadataV12; + ModuleMetadataV13: ModuleMetadataV13; + ModuleMetadataV9: ModuleMetadataV9; + Moment: Moment; + MomentOf: MomentOf; + MoreAttestations: MoreAttestations; + MortalEra: MortalEra; + MultiAddress: MultiAddress; + MultiAsset: MultiAsset; + MultiAssetFilter: MultiAssetFilter; + MultiAssetFilterV1: MultiAssetFilterV1; + MultiAssetFilterV2: MultiAssetFilterV2; + MultiAssets: MultiAssets; + MultiAssetsV1: MultiAssetsV1; + MultiAssetsV2: MultiAssetsV2; + MultiAssetV0: MultiAssetV0; + MultiAssetV1: MultiAssetV1; + MultiAssetV2: MultiAssetV2; + MultiDisputeStatementSet: MultiDisputeStatementSet; + MultiLocation: MultiLocation; + MultiLocationV0: MultiLocationV0; + MultiLocationV1: MultiLocationV1; + MultiLocationV2: MultiLocationV2; + Multiplier: Multiplier; + Multisig: Multisig; + MultiSignature: MultiSignature; + MultiSigner: MultiSigner; + NetworkId: NetworkId; + NetworkState: NetworkState; + NetworkStatePeerset: NetworkStatePeerset; + NetworkStatePeersetInfo: NetworkStatePeersetInfo; + NewBidder: NewBidder; + NextAuthority: NextAuthority; + NextConfigDescriptor: NextConfigDescriptor; + NextConfigDescriptorV1: NextConfigDescriptorV1; + NodeRole: NodeRole; + Nominations: Nominations; + NominatorIndex: NominatorIndex; + NominatorIndexCompact: NominatorIndexCompact; + NotConnectedPeer: NotConnectedPeer; + NpApiError: NpApiError; + Null: Null; + OccupiedCore: OccupiedCore; + OccupiedCoreAssumption: OccupiedCoreAssumption; + OffchainAccuracy: OffchainAccuracy; + OffchainAccuracyCompact: OffchainAccuracyCompact; + OffenceDetails: OffenceDetails; + Offender: Offender; + OldV1SessionInfo: OldV1SessionInfo; + OpaqueCall: OpaqueCall; + OpaqueKeyOwnershipProof: OpaqueKeyOwnershipProof; + OpaqueMetadata: OpaqueMetadata; + OpaqueMultiaddr: OpaqueMultiaddr; + OpaqueNetworkState: OpaqueNetworkState; + OpaquePeerId: OpaquePeerId; + OpaqueTimeSlot: OpaqueTimeSlot; + OpenTip: OpenTip; + OpenTipFinderTo225: OpenTipFinderTo225; + OpenTipTip: OpenTipTip; + OpenTipTo225: OpenTipTo225; + OperatingMode: OperatingMode; + OptionBool: OptionBool; + Origin: Origin; + OriginCaller: OriginCaller; + OriginKindV0: OriginKindV0; + OriginKindV1: OriginKindV1; + OriginKindV2: OriginKindV2; + OutboundHrmpMessage: OutboundHrmpMessage; + OutboundLaneData: OutboundLaneData; + OutboundMessageFee: OutboundMessageFee; + OutboundPayload: OutboundPayload; + OutboundStatus: OutboundStatus; + Outcome: Outcome; + OverweightIndex: OverweightIndex; + Owner: Owner; + PageCounter: PageCounter; + PageIndexData: PageIndexData; + PalletCallMetadataLatest: PalletCallMetadataLatest; + PalletCallMetadataV14: PalletCallMetadataV14; + PalletConstantMetadataLatest: PalletConstantMetadataLatest; + PalletConstantMetadataV14: PalletConstantMetadataV14; + PalletErrorMetadataLatest: PalletErrorMetadataLatest; + PalletErrorMetadataV14: PalletErrorMetadataV14; + PalletEventMetadataLatest: PalletEventMetadataLatest; + PalletEventMetadataV14: PalletEventMetadataV14; + PalletId: PalletId; + PalletMetadataLatest: PalletMetadataLatest; + PalletMetadataV14: PalletMetadataV14; + PalletsOrigin: PalletsOrigin; + PalletStorageMetadataLatest: PalletStorageMetadataLatest; + PalletStorageMetadataV14: PalletStorageMetadataV14; + PalletVersion: PalletVersion; + ParachainDispatchOrigin: ParachainDispatchOrigin; + ParachainInherentData: ParachainInherentData; + ParachainProposal: ParachainProposal; + ParachainsInherentData: ParachainsInherentData; + ParaGenesisArgs: ParaGenesisArgs; + ParaId: ParaId; + ParaInfo: ParaInfo; + ParaLifecycle: ParaLifecycle; + Parameter: Parameter; + ParaPastCodeMeta: ParaPastCodeMeta; + ParaScheduling: ParaScheduling; + ParathreadClaim: ParathreadClaim; + ParathreadClaimQueue: ParathreadClaimQueue; + ParathreadEntry: ParathreadEntry; + ParaValidatorIndex: ParaValidatorIndex; + Pays: Pays; + Peer: Peer; + PeerEndpoint: PeerEndpoint; + PeerEndpointAddr: PeerEndpointAddr; + PeerInfo: PeerInfo; + PeerPing: PeerPing; + PendingChange: PendingChange; + PendingPause: PendingPause; + PendingResume: PendingResume; + Perbill: Perbill; + Percent: Percent; + PerDispatchClassU32: PerDispatchClassU32; + PerDispatchClassWeight: PerDispatchClassWeight; + PerDispatchClassWeightsPerClass: PerDispatchClassWeightsPerClass; + Period: Period; + Permill: Permill; + PermissionLatest: PermissionLatest; + PermissionsV1: PermissionsV1; + PermissionVersions: PermissionVersions; + Perquintill: Perquintill; + PersistedValidationData: PersistedValidationData; + PerU16: PerU16; + Phantom: Phantom; + PhantomData: PhantomData; + Phase: Phase; + PhragmenScore: PhragmenScore; + Points: Points; + PortableType: PortableType; + PortableTypeV14: PortableTypeV14; + Precommits: Precommits; + PrefabWasmModule: PrefabWasmModule; + PrefixedStorageKey: PrefixedStorageKey; + PreimageStatus: PreimageStatus; + PreimageStatusAvailable: PreimageStatusAvailable; + PreRuntime: PreRuntime; + Prevotes: Prevotes; + Priority: Priority; + PriorLock: PriorLock; + PropIndex: PropIndex; + Proposal: Proposal; + ProposalIndex: ProposalIndex; + ProxyAnnouncement: ProxyAnnouncement; + ProxyDefinition: ProxyDefinition; + ProxyState: ProxyState; + ProxyType: ProxyType; + PvfCheckStatement: PvfCheckStatement; + QueryId: QueryId; + QueryStatus: QueryStatus; + QueueConfigData: QueueConfigData; + QueuedParathread: QueuedParathread; + Randomness: Randomness; + Raw: Raw; + RawAuraPreDigest: RawAuraPreDigest; + RawBabePreDigest: RawBabePreDigest; + RawBabePreDigestCompat: RawBabePreDigestCompat; + RawBabePreDigestPrimary: RawBabePreDigestPrimary; + RawBabePreDigestPrimaryTo159: RawBabePreDigestPrimaryTo159; + RawBabePreDigestSecondaryPlain: RawBabePreDigestSecondaryPlain; + RawBabePreDigestSecondaryTo159: RawBabePreDigestSecondaryTo159; + RawBabePreDigestSecondaryVRF: RawBabePreDigestSecondaryVRF; + RawBabePreDigestTo159: RawBabePreDigestTo159; + RawOrigin: RawOrigin; + RawSolution: RawSolution; + RawSolutionTo265: RawSolutionTo265; + RawSolutionWith16: RawSolutionWith16; + RawSolutionWith24: RawSolutionWith24; + RawVRFOutput: RawVRFOutput; + ReadProof: ReadProof; + ReadySolution: ReadySolution; + Reasons: Reasons; + RecoveryConfig: RecoveryConfig; + RefCount: RefCount; + RefCountTo259: RefCountTo259; + ReferendumIndex: ReferendumIndex; + ReferendumInfo: ReferendumInfo; + ReferendumInfoFinished: ReferendumInfoFinished; + ReferendumInfoTo239: ReferendumInfoTo239; + ReferendumStatus: ReferendumStatus; + RegisteredParachainInfo: RegisteredParachainInfo; + RegistrarIndex: RegistrarIndex; + RegistrarInfo: RegistrarInfo; + Registration: Registration; + RegistrationJudgement: RegistrationJudgement; + RegistrationTo198: RegistrationTo198; + RelayBlockNumber: RelayBlockNumber; + RelayChainBlockNumber: RelayChainBlockNumber; + RelayChainHash: RelayChainHash; + RelayerId: RelayerId; + RelayHash: RelayHash; + Releases: Releases; + Remark: Remark; + Renouncing: Renouncing; + RentProjection: RentProjection; + ReplacementTimes: ReplacementTimes; + ReportedRoundStates: ReportedRoundStates; + Reporter: Reporter; + ReportIdOf: ReportIdOf; + ReserveData: ReserveData; + ReserveIdentifier: ReserveIdentifier; + Response: Response; + ResponseV0: ResponseV0; + ResponseV1: ResponseV1; + ResponseV2: ResponseV2; + ResponseV2Error: ResponseV2Error; + ResponseV2Result: ResponseV2Result; + Retriable: Retriable; + RewardDestination: RewardDestination; + RewardPoint: RewardPoint; + RoundSnapshot: RoundSnapshot; + RoundState: RoundState; + RpcMethods: RpcMethods; + RuntimeCall: RuntimeCall; + RuntimeDbWeight: RuntimeDbWeight; + RuntimeDispatchInfo: RuntimeDispatchInfo; + RuntimeDispatchInfoV1: RuntimeDispatchInfoV1; + RuntimeDispatchInfoV2: RuntimeDispatchInfoV2; + RuntimeEvent: RuntimeEvent; + RuntimeVersion: RuntimeVersion; + RuntimeVersionApi: RuntimeVersionApi; + RuntimeVersionPartial: RuntimeVersionPartial; + RuntimeVersionPre3: RuntimeVersionPre3; + RuntimeVersionPre4: RuntimeVersionPre4; + Schedule: Schedule; + Scheduled: Scheduled; + ScheduledCore: ScheduledCore; + ScheduledTo254: ScheduledTo254; + SchedulePeriod: SchedulePeriod; + SchedulePriority: SchedulePriority; + ScheduleTo212: ScheduleTo212; + ScheduleTo258: ScheduleTo258; + ScheduleTo264: ScheduleTo264; + Scheduling: Scheduling; + ScrapedOnChainVotes: ScrapedOnChainVotes; + Seal: Seal; + SealV0: SealV0; + SeatHolder: SeatHolder; + SeedOf: SeedOf; + ServiceQuality: ServiceQuality; + SessionIndex: SessionIndex; + SessionInfo: SessionInfo; + SessionInfoValidatorGroup: SessionInfoValidatorGroup; + SessionKeys1: SessionKeys1; + SessionKeys10: SessionKeys10; + SessionKeys10B: SessionKeys10B; + SessionKeys2: SessionKeys2; + SessionKeys3: SessionKeys3; + SessionKeys4: SessionKeys4; + SessionKeys5: SessionKeys5; + SessionKeys6: SessionKeys6; + SessionKeys6B: SessionKeys6B; + SessionKeys7: SessionKeys7; + SessionKeys7B: SessionKeys7B; + SessionKeys8: SessionKeys8; + SessionKeys8B: SessionKeys8B; + SessionKeys9: SessionKeys9; + SessionKeys9B: SessionKeys9B; + SetId: SetId; + SetIndex: SetIndex; + Si0Field: Si0Field; + Si0LookupTypeId: Si0LookupTypeId; + Si0Path: Si0Path; + Si0Type: Si0Type; + Si0TypeDef: Si0TypeDef; + Si0TypeDefArray: Si0TypeDefArray; + Si0TypeDefBitSequence: Si0TypeDefBitSequence; + Si0TypeDefCompact: Si0TypeDefCompact; + Si0TypeDefComposite: Si0TypeDefComposite; + Si0TypeDefPhantom: Si0TypeDefPhantom; + Si0TypeDefPrimitive: Si0TypeDefPrimitive; + Si0TypeDefSequence: Si0TypeDefSequence; + Si0TypeDefTuple: Si0TypeDefTuple; + Si0TypeDefVariant: Si0TypeDefVariant; + Si0TypeParameter: Si0TypeParameter; + Si0Variant: Si0Variant; + Si1Field: Si1Field; + Si1LookupTypeId: Si1LookupTypeId; + Si1Path: Si1Path; + Si1Type: Si1Type; + Si1TypeDef: Si1TypeDef; + Si1TypeDefArray: Si1TypeDefArray; + Si1TypeDefBitSequence: Si1TypeDefBitSequence; + Si1TypeDefCompact: Si1TypeDefCompact; + Si1TypeDefComposite: Si1TypeDefComposite; + Si1TypeDefPrimitive: Si1TypeDefPrimitive; + Si1TypeDefSequence: Si1TypeDefSequence; + Si1TypeDefTuple: Si1TypeDefTuple; + Si1TypeDefVariant: Si1TypeDefVariant; + Si1TypeParameter: Si1TypeParameter; + Si1Variant: Si1Variant; + SiField: SiField; + Signature: Signature; + SignedAvailabilityBitfield: SignedAvailabilityBitfield; + SignedAvailabilityBitfields: SignedAvailabilityBitfields; + SignedBlock: SignedBlock; + SignedBlockWithJustification: SignedBlockWithJustification; + SignedBlockWithJustifications: SignedBlockWithJustifications; + SignedExtensionMetadataLatest: SignedExtensionMetadataLatest; + SignedExtensionMetadataV14: SignedExtensionMetadataV14; + SignedSubmission: SignedSubmission; + SignedSubmissionOf: SignedSubmissionOf; + SignedSubmissionTo276: SignedSubmissionTo276; + SignerPayload: SignerPayload; + SigningContext: SigningContext; + SiLookupTypeId: SiLookupTypeId; + SiPath: SiPath; + SiType: SiType; + SiTypeDef: SiTypeDef; + SiTypeDefArray: SiTypeDefArray; + SiTypeDefBitSequence: SiTypeDefBitSequence; + SiTypeDefCompact: SiTypeDefCompact; + SiTypeDefComposite: SiTypeDefComposite; + SiTypeDefPrimitive: SiTypeDefPrimitive; + SiTypeDefSequence: SiTypeDefSequence; + SiTypeDefTuple: SiTypeDefTuple; + SiTypeDefVariant: SiTypeDefVariant; + SiTypeParameter: SiTypeParameter; + SiVariant: SiVariant; + SlashingSpans: SlashingSpans; + SlashingSpansTo204: SlashingSpansTo204; + SlashJournalEntry: SlashJournalEntry; + Slot: Slot; + SlotDuration: SlotDuration; + SlotNumber: SlotNumber; + SlotRange: SlotRange; + SlotRange10: SlotRange10; + SocietyJudgement: SocietyJudgement; + SocietyVote: SocietyVote; + SolutionOrSnapshotSize: SolutionOrSnapshotSize; + SolutionSupport: SolutionSupport; + SolutionSupports: SolutionSupports; + SpanIndex: SpanIndex; + SpanRecord: SpanRecord; + SpecVersion: SpecVersion; + Sr25519Signature: Sr25519Signature; + StakingLedger: StakingLedger; + StakingLedgerTo223: StakingLedgerTo223; + StakingLedgerTo240: StakingLedgerTo240; + Statement: Statement; + StatementKind: StatementKind; + StorageChangeSet: StorageChangeSet; + StorageData: StorageData; + StorageDeposit: StorageDeposit; + StorageEntryMetadataLatest: StorageEntryMetadataLatest; + StorageEntryMetadataV10: StorageEntryMetadataV10; + StorageEntryMetadataV11: StorageEntryMetadataV11; + StorageEntryMetadataV12: StorageEntryMetadataV12; + StorageEntryMetadataV13: StorageEntryMetadataV13; + StorageEntryMetadataV14: StorageEntryMetadataV14; + StorageEntryMetadataV9: StorageEntryMetadataV9; + StorageEntryModifierLatest: StorageEntryModifierLatest; + StorageEntryModifierV10: StorageEntryModifierV10; + StorageEntryModifierV11: StorageEntryModifierV11; + StorageEntryModifierV12: StorageEntryModifierV12; + StorageEntryModifierV13: StorageEntryModifierV13; + StorageEntryModifierV14: StorageEntryModifierV14; + StorageEntryModifierV9: StorageEntryModifierV9; + StorageEntryTypeLatest: StorageEntryTypeLatest; + StorageEntryTypeV10: StorageEntryTypeV10; + StorageEntryTypeV11: StorageEntryTypeV11; + StorageEntryTypeV12: StorageEntryTypeV12; + StorageEntryTypeV13: StorageEntryTypeV13; + StorageEntryTypeV14: StorageEntryTypeV14; + StorageEntryTypeV9: StorageEntryTypeV9; + StorageHasher: StorageHasher; + StorageHasherV10: StorageHasherV10; + StorageHasherV11: StorageHasherV11; + StorageHasherV12: StorageHasherV12; + StorageHasherV13: StorageHasherV13; + StorageHasherV14: StorageHasherV14; + StorageHasherV9: StorageHasherV9; + StorageInfo: StorageInfo; + StorageKey: StorageKey; + StorageKind: StorageKind; + StorageMetadataV10: StorageMetadataV10; + StorageMetadataV11: StorageMetadataV11; + StorageMetadataV12: StorageMetadataV12; + StorageMetadataV13: StorageMetadataV13; + StorageMetadataV9: StorageMetadataV9; + StorageProof: StorageProof; + StoredPendingChange: StoredPendingChange; + StoredState: StoredState; + StrikeCount: StrikeCount; + SubId: SubId; + SubmissionIndicesOf: SubmissionIndicesOf; + Supports: Supports; + SyncState: SyncState; + SystemInherentData: SystemInherentData; + SystemOrigin: SystemOrigin; + Tally: Tally; + TaskAddress: TaskAddress; + TAssetBalance: TAssetBalance; + TAssetDepositBalance: TAssetDepositBalance; + Text: Text; + Timepoint: Timepoint; + TokenError: TokenError; + TombstoneContractInfo: TombstoneContractInfo; + TraceBlockResponse: TraceBlockResponse; + TraceError: TraceError; + TransactionalError: TransactionalError; + TransactionInfo: TransactionInfo; + TransactionLongevity: TransactionLongevity; + TransactionPriority: TransactionPriority; + TransactionSource: TransactionSource; + TransactionStorageProof: TransactionStorageProof; + TransactionTag: TransactionTag; + TransactionV0: TransactionV0; + TransactionV1: TransactionV1; + TransactionV2: TransactionV2; + TransactionValidity: TransactionValidity; + TransactionValidityError: TransactionValidityError; + TransientValidationData: TransientValidationData; + TreasuryProposal: TreasuryProposal; + TrieId: TrieId; + TrieIndex: TrieIndex; + Type: Type; + u128: u128; + U128: U128; + u16: u16; + U16: U16; + u256: u256; + U256: U256; + u32: u32; + U32: U32; + U32F32: U32F32; + u64: u64; + U64: U64; + u8: u8; + U8: U8; + UnappliedSlash: UnappliedSlash; + UnappliedSlashOther: UnappliedSlashOther; + UncleEntryItem: UncleEntryItem; + UnknownTransaction: UnknownTransaction; + UnlockChunk: UnlockChunk; + UnrewardedRelayer: UnrewardedRelayer; + UnrewardedRelayersState: UnrewardedRelayersState; + UpgradeGoAhead: UpgradeGoAhead; + UpgradeRestriction: UpgradeRestriction; + UpwardMessage: UpwardMessage; + usize: usize; + USize: USize; + ValidationCode: ValidationCode; + ValidationCodeHash: ValidationCodeHash; + ValidationData: ValidationData; + ValidationDataType: ValidationDataType; + ValidationFunctionParams: ValidationFunctionParams; + ValidatorCount: ValidatorCount; + ValidatorId: ValidatorId; + ValidatorIdOf: ValidatorIdOf; + ValidatorIndex: ValidatorIndex; + ValidatorIndexCompact: ValidatorIndexCompact; + ValidatorPrefs: ValidatorPrefs; + ValidatorPrefsTo145: ValidatorPrefsTo145; + ValidatorPrefsTo196: ValidatorPrefsTo196; + ValidatorPrefsWithBlocked: ValidatorPrefsWithBlocked; + ValidatorPrefsWithCommission: ValidatorPrefsWithCommission; + ValidatorSet: ValidatorSet; + ValidatorSetId: ValidatorSetId; + ValidatorSignature: ValidatorSignature; + ValidDisputeStatementKind: ValidDisputeStatementKind; + ValidityAttestation: ValidityAttestation; + ValidTransaction: ValidTransaction; + VecInboundHrmpMessage: VecInboundHrmpMessage; + VersionedMultiAsset: VersionedMultiAsset; + VersionedMultiAssets: VersionedMultiAssets; + VersionedMultiLocation: VersionedMultiLocation; + VersionedResponse: VersionedResponse; + VersionedXcm: VersionedXcm; + VersionMigrationStage: VersionMigrationStage; + VestingInfo: VestingInfo; + VestingSchedule: VestingSchedule; + Vote: Vote; + VoteIndex: VoteIndex; + Voter: Voter; + VoterInfo: VoterInfo; + Votes: Votes; + VotesTo230: VotesTo230; + VoteThreshold: VoteThreshold; + VoteWeight: VoteWeight; + Voting: Voting; + VotingDelegating: VotingDelegating; + VotingDirect: VotingDirect; + VotingDirectVote: VotingDirectVote; + VouchingStatus: VouchingStatus; + VrfData: VrfData; + VrfOutput: VrfOutput; + VrfProof: VrfProof; + Weight: Weight; + WeightLimitV2: WeightLimitV2; + WeightMultiplier: WeightMultiplier; + WeightPerClass: WeightPerClass; + WeightToFeeCoefficient: WeightToFeeCoefficient; + WeightV0: WeightV0; + WeightV1: WeightV1; + WeightV2: WeightV2; + WildFungibility: WildFungibility; + WildFungibilityV0: WildFungibilityV0; + WildFungibilityV1: WildFungibilityV1; + WildFungibilityV2: WildFungibilityV2; + WildMultiAsset: WildMultiAsset; + WildMultiAssetV1: WildMultiAssetV1; + WildMultiAssetV2: WildMultiAssetV2; + WinnersData: WinnersData; + WinnersData10: WinnersData10; + WinnersDataTuple: WinnersDataTuple; + WinnersDataTuple10: WinnersDataTuple10; + WinningData: WinningData; + WinningData10: WinningData10; + WinningDataEntry: WinningDataEntry; + WithdrawReasons: WithdrawReasons; + Xcm: Xcm; + XcmAssetId: XcmAssetId; + XcmError: XcmError; + XcmErrorV0: XcmErrorV0; + XcmErrorV1: XcmErrorV1; + XcmErrorV2: XcmErrorV2; + XcmOrder: XcmOrder; + XcmOrderV0: XcmOrderV0; + XcmOrderV1: XcmOrderV1; + XcmOrderV2: XcmOrderV2; + XcmOrigin: XcmOrigin; + XcmOriginKind: XcmOriginKind; + XcmpMessageFormat: XcmpMessageFormat; + XcmV0: XcmV0; + XcmV1: XcmV1; + XcmV2: XcmV2; + XcmVersion: XcmVersion; + } // InterfaceTypes +} // declare module diff --git a/tee-worker/ts-tests/sidechain-interfaces/index.ts b/tee-worker/ts-tests/sidechain-interfaces/index.ts new file mode 100644 index 0000000000..2d307291c3 --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/index.ts @@ -0,0 +1,4 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +export * from './types'; diff --git a/tee-worker/ts-tests/sidechain-interfaces/lookup.ts b/tee-worker/ts-tests/sidechain-interfaces/lookup.ts new file mode 100644 index 0000000000..91a950880d --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/lookup.ts @@ -0,0 +1,700 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +/* eslint-disable sort-keys */ + +export default { + /** + * Lookup3: frame_system::AccountInfo> + **/ + FrameSystemAccountInfo: { + nonce: 'u32', + consumers: 'u32', + providers: 'u32', + sufficients: 'u32', + data: 'PalletBalancesAccountData', + }, + /** + * Lookup5: pallet_balances::AccountData + **/ + PalletBalancesAccountData: { + free: 'u128', + reserved: 'u128', + miscFrozen: 'u128', + feeFrozen: 'u128', + }, + /** + * Lookup7: frame_support::dispatch::PerDispatchClass + **/ + FrameSupportDispatchPerDispatchClassWeight: { + normal: 'SpWeightsWeightV2Weight', + operational: 'SpWeightsWeightV2Weight', + mandatory: 'SpWeightsWeightV2Weight', + }, + /** + * Lookup8: sp_weights::weight_v2::Weight + **/ + SpWeightsWeightV2Weight: { + refTime: 'Compact', + proofSize: 'Compact', + }, + /** + * Lookup13: sp_runtime::generic::digest::Digest + **/ + SpRuntimeDigest: { + logs: 'Vec', + }, + /** + * Lookup15: sp_runtime::generic::digest::DigestItem + **/ + SpRuntimeDigestDigestItem: { + _enum: { + Other: 'Bytes', + __Unused1: 'Null', + __Unused2: 'Null', + __Unused3: 'Null', + Consensus: '([u8;4],Bytes)', + Seal: '([u8;4],Bytes)', + PreRuntime: '([u8;4],Bytes)', + __Unused7: 'Null', + RuntimeEnvironmentUpdated: 'Null', + }, + }, + /** + * Lookup18: frame_system::EventRecord + **/ + FrameSystemEventRecord: { + phase: 'FrameSystemPhase', + event: 'Event', + topics: 'Vec', + }, + /** + * Lookup20: frame_system::pallet::Event + **/ + FrameSystemEvent: { + _enum: { + ExtrinsicSuccess: { + dispatchInfo: 'FrameSupportDispatchDispatchInfo', + }, + ExtrinsicFailed: { + dispatchError: 'SpRuntimeDispatchError', + dispatchInfo: 'FrameSupportDispatchDispatchInfo', + }, + CodeUpdated: 'Null', + NewAccount: { + account: 'AccountId32', + }, + KilledAccount: { + account: 'AccountId32', + }, + Remarked: { + _alias: { + hash_: 'hash', + }, + sender: 'AccountId32', + hash_: 'H256', + }, + }, + }, + /** + * Lookup21: frame_support::dispatch::DispatchInfo + **/ + FrameSupportDispatchDispatchInfo: { + weight: 'SpWeightsWeightV2Weight', + class: 'FrameSupportDispatchDispatchClass', + paysFee: 'FrameSupportDispatchPays', + }, + /** + * Lookup22: frame_support::dispatch::DispatchClass + **/ + FrameSupportDispatchDispatchClass: { + _enum: ['Normal', 'Operational', 'Mandatory'], + }, + /** + * Lookup23: frame_support::dispatch::Pays + **/ + FrameSupportDispatchPays: { + _enum: ['Yes', 'No'], + }, + /** + * Lookup24: sp_runtime::DispatchError + **/ + SpRuntimeDispatchError: { + _enum: { + Other: 'Null', + CannotLookup: 'Null', + BadOrigin: 'Null', + Module: 'SpRuntimeModuleError', + ConsumerRemaining: 'Null', + NoProviders: 'Null', + TooManyConsumers: 'Null', + Token: 'SpRuntimeTokenError', + Arithmetic: 'SpArithmeticArithmeticError', + Transactional: 'SpRuntimeTransactionalError', + Exhausted: 'Null', + Corruption: 'Null', + Unavailable: 'Null', + }, + }, + /** + * Lookup25: sp_runtime::ModuleError + **/ + SpRuntimeModuleError: { + index: 'u8', + error: '[u8;4]', + }, + /** + * Lookup26: sp_runtime::TokenError + **/ + SpRuntimeTokenError: { + _enum: ['NoFunds', 'WouldDie', 'BelowMinimum', 'CannotCreate', 'UnknownAsset', 'Frozen', 'Unsupported'], + }, + /** + * Lookup27: sp_arithmetic::ArithmeticError + **/ + SpArithmeticArithmeticError: { + _enum: ['Underflow', 'Overflow', 'DivisionByZero'], + }, + /** + * Lookup28: sp_runtime::TransactionalError + **/ + SpRuntimeTransactionalError: { + _enum: ['LimitReached', 'NoLayer'], + }, + /** + * Lookup29: pallet_balances::pallet::Event + **/ + PalletBalancesEvent: { + _enum: { + Endowed: { + account: 'AccountId32', + freeBalance: 'u128', + }, + DustLost: { + account: 'AccountId32', + amount: 'u128', + }, + Transfer: { + from: 'AccountId32', + to: 'AccountId32', + amount: 'u128', + }, + BalanceSet: { + who: 'AccountId32', + free: 'u128', + reserved: 'u128', + }, + Reserved: { + who: 'AccountId32', + amount: 'u128', + }, + Unreserved: { + who: 'AccountId32', + amount: 'u128', + }, + ReserveRepatriated: { + from: 'AccountId32', + to: 'AccountId32', + amount: 'u128', + destinationStatus: 'FrameSupportTokensMiscBalanceStatus', + }, + Deposit: { + who: 'AccountId32', + amount: 'u128', + }, + Withdraw: { + who: 'AccountId32', + amount: 'u128', + }, + Slashed: { + who: 'AccountId32', + amount: 'u128', + }, + }, + }, + /** + * Lookup30: frame_support::traits::tokens::misc::BalanceStatus + **/ + FrameSupportTokensMiscBalanceStatus: { + _enum: ['Free', 'Reserved'], + }, + /** + * Lookup31: pallet_transaction_payment::pallet::Event + **/ + PalletTransactionPaymentEvent: { + _enum: { + TransactionFeePaid: { + who: 'AccountId32', + actualFee: 'u128', + tip: 'u128', + }, + }, + }, + /** + * Lookup32: pallet_sudo::pallet::Event + **/ + PalletSudoEvent: { + _enum: { + Sudid: { + sudoResult: 'Result', + }, + KeyChanged: { + oldSudoer: 'Option', + }, + SudoAsDone: { + sudoResult: 'Result', + }, + }, + }, + /** + * Lookup36: pallet_identity_management_tee::pallet::Event + **/ + PalletIdentityManagementTeeEvent: { + _enum: { + UserShieldingKeySet: { + who: 'AccountId32', + key: '[u8;32]', + }, + ChallengeCodeSet: { + who: 'AccountId32', + identity: 'LitentryPrimitivesIdentity', + code: '[u8;16]', + }, + ChallengeCodeRemoved: { + who: 'AccountId32', + identity: 'LitentryPrimitivesIdentity', + }, + IdentityCreated: { + who: 'AccountId32', + identity: 'LitentryPrimitivesIdentity', + }, + IdentityRemoved: { + who: 'AccountId32', + identity: 'LitentryPrimitivesIdentity', + }, + }, + }, + /** + * Lookup37: litentry_primitives::identity::Identity + **/ + LitentryPrimitivesIdentity: { + _enum: { + Substrate: { + network: 'LitentryPrimitivesIdentitySubstrateNetwork', + address: 'LitentryPrimitivesIdentityAddress32', + }, + Evm: { + network: 'LitentryPrimitivesIdentityEvmNetwork', + address: 'LitentryPrimitivesIdentityAddress20', + }, + Web2: { + network: 'LitentryPrimitivesIdentityWeb2Network', + address: 'Bytes', + }, + }, + }, + /** + * Lookup38: litentry_primitives::identity::SubstrateNetwork + **/ + LitentryPrimitivesIdentitySubstrateNetwork: { + _enum: ['Polkadot', 'Kusama', 'Litentry', 'Litmus', 'LitentryRococo', 'Khala', 'TestNet'], + }, + /** + * Lookup39: litentry_primitives::identity::Address32 + **/ + LitentryPrimitivesIdentityAddress32: '[u8;32]', + /** + * Lookup40: litentry_primitives::identity::EvmNetwork + **/ + LitentryPrimitivesIdentityEvmNetwork: { + _enum: ['Ethereum', 'BSC'], + }, + /** + * Lookup41: litentry_primitives::identity::Address20 + **/ + LitentryPrimitivesIdentityAddress20: '[u8;20]', + /** + * Lookup43: litentry_primitives::identity::Web2Network + **/ + LitentryPrimitivesIdentityWeb2Network: { + _enum: ['Twitter', 'Discord', 'Github'], + }, + /** + * Lookup46: frame_system::Phase + **/ + FrameSystemPhase: { + _enum: { + ApplyExtrinsic: 'u32', + Finalization: 'Null', + Initialization: 'Null', + }, + }, + /** + * Lookup50: frame_system::LastRuntimeUpgradeInfo + **/ + FrameSystemLastRuntimeUpgradeInfo: { + specVersion: 'Compact', + specName: 'Text', + }, + /** + * Lookup54: frame_system::pallet::Call + **/ + FrameSystemCall: { + _enum: { + remark: { + remark: 'Bytes', + }, + set_heap_pages: { + pages: 'u64', + }, + set_code: { + code: 'Bytes', + }, + set_code_without_checks: { + code: 'Bytes', + }, + set_storage: { + items: 'Vec<(Bytes,Bytes)>', + }, + kill_storage: { + _alias: { + keys_: 'keys', + }, + keys_: 'Vec', + }, + kill_prefix: { + prefix: 'Bytes', + subkeys: 'u32', + }, + remark_with_event: { + remark: 'Bytes', + }, + }, + }, + /** + * Lookup58: frame_system::limits::BlockWeights + **/ + FrameSystemLimitsBlockWeights: { + baseBlock: 'SpWeightsWeightV2Weight', + maxBlock: 'SpWeightsWeightV2Weight', + perClass: 'FrameSupportDispatchPerDispatchClassWeightsPerClass', + }, + /** + * Lookup59: frame_support::dispatch::PerDispatchClass + **/ + FrameSupportDispatchPerDispatchClassWeightsPerClass: { + normal: 'FrameSystemLimitsWeightsPerClass', + operational: 'FrameSystemLimitsWeightsPerClass', + mandatory: 'FrameSystemLimitsWeightsPerClass', + }, + /** + * Lookup60: frame_system::limits::WeightsPerClass + **/ + FrameSystemLimitsWeightsPerClass: { + baseExtrinsic: 'SpWeightsWeightV2Weight', + maxExtrinsic: 'Option', + maxTotal: 'Option', + reserved: 'Option', + }, + /** + * Lookup62: frame_system::limits::BlockLength + **/ + FrameSystemLimitsBlockLength: { + max: 'FrameSupportDispatchPerDispatchClassU32', + }, + /** + * Lookup63: frame_support::dispatch::PerDispatchClass + **/ + FrameSupportDispatchPerDispatchClassU32: { + normal: 'u32', + operational: 'u32', + mandatory: 'u32', + }, + /** + * Lookup64: sp_weights::RuntimeDbWeight + **/ + SpWeightsRuntimeDbWeight: { + read: 'u64', + write: 'u64', + }, + /** + * Lookup65: sp_version::RuntimeVersion + **/ + SpVersionRuntimeVersion: { + specName: 'Text', + implName: 'Text', + authoringVersion: 'u32', + specVersion: 'u32', + implVersion: 'u32', + apis: 'Vec<([u8;8],u32)>', + transactionVersion: 'u32', + stateVersion: 'u8', + }, + /** + * Lookup71: frame_system::pallet::Error + **/ + FrameSystemError: { + _enum: [ + 'InvalidSpecName', + 'SpecVersionNeedsToIncrease', + 'FailedToExtractRuntimeVersion', + 'NonDefaultComposite', + 'NonZeroRefCount', + 'CallFiltered', + ], + }, + /** + * Lookup72: pallet_timestamp::pallet::Call + **/ + PalletTimestampCall: { + _enum: { + set: { + now: 'Compact', + }, + }, + }, + /** + * Lookup74: pallet_balances::BalanceLock + **/ + PalletBalancesBalanceLock: { + id: '[u8;8]', + amount: 'u128', + reasons: 'PalletBalancesReasons', + }, + /** + * Lookup75: pallet_balances::Reasons + **/ + PalletBalancesReasons: { + _enum: ['Fee', 'Misc', 'All'], + }, + /** + * Lookup78: pallet_balances::ReserveData + **/ + PalletBalancesReserveData: { + id: '[u8;8]', + amount: 'u128', + }, + /** + * Lookup80: pallet_balances::pallet::Call + **/ + PalletBalancesCall: { + _enum: { + transfer: { + dest: 'MultiAddress', + value: 'Compact', + }, + set_balance: { + who: 'MultiAddress', + newFree: 'Compact', + newReserved: 'Compact', + }, + force_transfer: { + source: 'MultiAddress', + dest: 'MultiAddress', + value: 'Compact', + }, + transfer_keep_alive: { + dest: 'MultiAddress', + value: 'Compact', + }, + transfer_all: { + dest: 'MultiAddress', + keepAlive: 'bool', + }, + force_unreserve: { + who: 'MultiAddress', + amount: 'u128', + }, + }, + }, + /** + * Lookup84: pallet_balances::pallet::Error + **/ + PalletBalancesError: { + _enum: [ + 'VestingBalance', + 'LiquidityRestrictions', + 'InsufficientBalance', + 'ExistentialDeposit', + 'KeepAlive', + 'ExistingVestingSchedule', + 'DeadAccount', + 'TooManyReserves', + ], + }, + /** + * Lookup86: pallet_transaction_payment::Releases + **/ + PalletTransactionPaymentReleases: { + _enum: ['V1Ancient', 'V2'], + }, + /** + * Lookup87: pallet_sudo::pallet::Call + **/ + PalletSudoCall: { + _enum: { + sudo: { + call: 'Call', + }, + sudo_unchecked_weight: { + call: 'Call', + weight: 'SpWeightsWeightV2Weight', + }, + set_key: { + _alias: { + new_: 'new', + }, + new_: 'MultiAddress', + }, + sudo_as: { + who: 'MultiAddress', + call: 'Call', + }, + }, + }, + /** + * Lookup89: pallet_parentchain::pallet::Call + **/ + PalletParentchainCall: { + _enum: { + set_block: { + header: 'SpRuntimeHeader', + }, + }, + }, + /** + * Lookup90: sp_runtime::generic::header::Header + **/ + SpRuntimeHeader: { + parentHash: 'H256', + number: 'Compact', + stateRoot: 'H256', + extrinsicsRoot: 'H256', + digest: 'SpRuntimeDigest', + }, + /** + * Lookup91: sp_runtime::traits::BlakeTwo256 + **/ + SpRuntimeBlakeTwo256: 'Null', + /** + * Lookup92: pallet_identity_management_tee::pallet::Call + **/ + PalletIdentityManagementTeeCall: { + _enum: { + set_user_shielding_key: { + who: 'AccountId32', + key: '[u8;32]', + parentSs58Prefix: 'u16', + }, + set_challenge_code: { + who: 'AccountId32', + identity: 'LitentryPrimitivesIdentity', + code: '[u8;16]', + }, + remove_challenge_code: { + who: 'AccountId32', + identity: 'LitentryPrimitivesIdentity', + }, + create_identity: { + who: 'AccountId32', + identity: 'LitentryPrimitivesIdentity', + metadata: 'Option', + creationRequestBlock: 'u32', + parentSs58Prefix: 'u16', + }, + remove_identity: { + who: 'AccountId32', + identity: 'LitentryPrimitivesIdentity', + }, + verify_identity: { + who: 'AccountId32', + identity: 'LitentryPrimitivesIdentity', + verificationRequestBlock: 'u32', + }, + }, + }, + /** + * Lookup95: pallet_sudo::pallet::Error + **/ + PalletSudoError: { + _enum: ['RequireSudo'], + }, + /** + * Lookup97: pallet_identity_management_tee::identity_context::IdentityContext + **/ + PalletIdentityManagementTeeIdentityContext: { + metadata: 'Option', + creationRequestBlock: 'Option', + verificationRequestBlock: 'Option', + isVerified: 'bool', + }, + /** + * Lookup99: pallet_identity_management_tee::pallet::Error + **/ + PalletIdentityManagementTeeError: { + _enum: [ + 'ChallengeCodeNotExist', + 'IdentityAlreadyVerified', + 'IdentityNotExist', + 'IdentityNotCreated', + 'CreatePrimeIdentityNotAllowed', + 'VerificationRequestTooEarly', + 'VerificationRequestTooLate', + 'RemovePrimeIdentityDisallowed', + ], + }, + /** + * Lookup101: sp_runtime::MultiSignature + **/ + SpRuntimeMultiSignature: { + _enum: { + Ed25519: 'SpCoreEd25519Signature', + Sr25519: 'SpCoreSr25519Signature', + Ecdsa: 'SpCoreEcdsaSignature', + }, + }, + /** + * Lookup102: sp_core::ed25519::Signature + **/ + SpCoreEd25519Signature: '[u8;64]', + /** + * Lookup104: sp_core::sr25519::Signature + **/ + SpCoreSr25519Signature: '[u8;64]', + /** + * Lookup105: sp_core::ecdsa::Signature + **/ + SpCoreEcdsaSignature: '[u8;65]', + /** + * Lookup108: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender + **/ + FrameSystemExtensionsCheckNonZeroSender: 'Null', + /** + * Lookup109: frame_system::extensions::check_spec_version::CheckSpecVersion + **/ + FrameSystemExtensionsCheckSpecVersion: 'Null', + /** + * Lookup110: frame_system::extensions::check_tx_version::CheckTxVersion + **/ + FrameSystemExtensionsCheckTxVersion: 'Null', + /** + * Lookup111: frame_system::extensions::check_genesis::CheckGenesis + **/ + FrameSystemExtensionsCheckGenesis: 'Null', + /** + * Lookup114: frame_system::extensions::check_nonce::CheckNonce + **/ + FrameSystemExtensionsCheckNonce: 'Compact', + /** + * Lookup115: frame_system::extensions::check_weight::CheckWeight + **/ + FrameSystemExtensionsCheckWeight: 'Null', + /** + * Lookup116: pallet_transaction_payment::ChargeTransactionPayment + **/ + PalletTransactionPaymentChargeTransactionPayment: 'Compact', + /** + * Lookup117: ita_sgx_runtime::Runtime + **/ + ItaSgxRuntimeRuntime: 'Null', +}; diff --git a/tee-worker/ts-tests/sidechain-interfaces/registry.ts b/tee-worker/ts-tests/sidechain-interfaces/registry.ts new file mode 100644 index 0000000000..431520139f --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/registry.ts @@ -0,0 +1,144 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/types/types/registry'; + +import type { + FrameSupportDispatchDispatchClass, + FrameSupportDispatchDispatchInfo, + FrameSupportDispatchPays, + FrameSupportDispatchPerDispatchClassU32, + FrameSupportDispatchPerDispatchClassWeight, + FrameSupportDispatchPerDispatchClassWeightsPerClass, + FrameSupportTokensMiscBalanceStatus, + FrameSystemAccountInfo, + FrameSystemCall, + FrameSystemError, + FrameSystemEvent, + FrameSystemEventRecord, + FrameSystemExtensionsCheckGenesis, + FrameSystemExtensionsCheckNonZeroSender, + FrameSystemExtensionsCheckNonce, + FrameSystemExtensionsCheckSpecVersion, + FrameSystemExtensionsCheckTxVersion, + FrameSystemExtensionsCheckWeight, + FrameSystemLastRuntimeUpgradeInfo, + FrameSystemLimitsBlockLength, + FrameSystemLimitsBlockWeights, + FrameSystemLimitsWeightsPerClass, + FrameSystemPhase, + ItaSgxRuntimeRuntime, + LitentryPrimitivesIdentity, + LitentryPrimitivesIdentityAddress20, + LitentryPrimitivesIdentityAddress32, + LitentryPrimitivesIdentityEvmNetwork, + LitentryPrimitivesIdentitySubstrateNetwork, + LitentryPrimitivesIdentityWeb2Network, + PalletBalancesAccountData, + PalletBalancesBalanceLock, + PalletBalancesCall, + PalletBalancesError, + PalletBalancesEvent, + PalletBalancesReasons, + PalletBalancesReserveData, + PalletIdentityManagementTeeCall, + PalletIdentityManagementTeeError, + PalletIdentityManagementTeeEvent, + PalletIdentityManagementTeeIdentityContext, + PalletParentchainCall, + PalletSudoCall, + PalletSudoError, + PalletSudoEvent, + PalletTimestampCall, + PalletTransactionPaymentChargeTransactionPayment, + PalletTransactionPaymentEvent, + PalletTransactionPaymentReleases, + SpArithmeticArithmeticError, + SpCoreEcdsaSignature, + SpCoreEd25519Signature, + SpCoreSr25519Signature, + SpRuntimeBlakeTwo256, + SpRuntimeDigest, + SpRuntimeDigestDigestItem, + SpRuntimeDispatchError, + SpRuntimeHeader, + SpRuntimeModuleError, + SpRuntimeMultiSignature, + SpRuntimeTokenError, + SpRuntimeTransactionalError, + SpVersionRuntimeVersion, + SpWeightsRuntimeDbWeight, + SpWeightsWeightV2Weight, +} from '@polkadot/types/lookup'; + +declare module '@polkadot/types/types/registry' { + interface InterfaceTypes { + FrameSupportDispatchDispatchClass: FrameSupportDispatchDispatchClass; + FrameSupportDispatchDispatchInfo: FrameSupportDispatchDispatchInfo; + FrameSupportDispatchPays: FrameSupportDispatchPays; + FrameSupportDispatchPerDispatchClassU32: FrameSupportDispatchPerDispatchClassU32; + FrameSupportDispatchPerDispatchClassWeight: FrameSupportDispatchPerDispatchClassWeight; + FrameSupportDispatchPerDispatchClassWeightsPerClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; + FrameSupportTokensMiscBalanceStatus: FrameSupportTokensMiscBalanceStatus; + FrameSystemAccountInfo: FrameSystemAccountInfo; + FrameSystemCall: FrameSystemCall; + FrameSystemError: FrameSystemError; + FrameSystemEvent: FrameSystemEvent; + FrameSystemEventRecord: FrameSystemEventRecord; + FrameSystemExtensionsCheckGenesis: FrameSystemExtensionsCheckGenesis; + FrameSystemExtensionsCheckNonZeroSender: FrameSystemExtensionsCheckNonZeroSender; + FrameSystemExtensionsCheckNonce: FrameSystemExtensionsCheckNonce; + FrameSystemExtensionsCheckSpecVersion: FrameSystemExtensionsCheckSpecVersion; + FrameSystemExtensionsCheckTxVersion: FrameSystemExtensionsCheckTxVersion; + FrameSystemExtensionsCheckWeight: FrameSystemExtensionsCheckWeight; + FrameSystemLastRuntimeUpgradeInfo: FrameSystemLastRuntimeUpgradeInfo; + FrameSystemLimitsBlockLength: FrameSystemLimitsBlockLength; + FrameSystemLimitsBlockWeights: FrameSystemLimitsBlockWeights; + FrameSystemLimitsWeightsPerClass: FrameSystemLimitsWeightsPerClass; + FrameSystemPhase: FrameSystemPhase; + ItaSgxRuntimeRuntime: ItaSgxRuntimeRuntime; + LitentryPrimitivesIdentity: LitentryPrimitivesIdentity; + LitentryPrimitivesIdentityAddress20: LitentryPrimitivesIdentityAddress20; + LitentryPrimitivesIdentityAddress32: LitentryPrimitivesIdentityAddress32; + LitentryPrimitivesIdentityEvmNetwork: LitentryPrimitivesIdentityEvmNetwork; + LitentryPrimitivesIdentitySubstrateNetwork: LitentryPrimitivesIdentitySubstrateNetwork; + LitentryPrimitivesIdentityWeb2Network: LitentryPrimitivesIdentityWeb2Network; + PalletBalancesAccountData: PalletBalancesAccountData; + PalletBalancesBalanceLock: PalletBalancesBalanceLock; + PalletBalancesCall: PalletBalancesCall; + PalletBalancesError: PalletBalancesError; + PalletBalancesEvent: PalletBalancesEvent; + PalletBalancesReasons: PalletBalancesReasons; + PalletBalancesReserveData: PalletBalancesReserveData; + PalletIdentityManagementTeeCall: PalletIdentityManagementTeeCall; + PalletIdentityManagementTeeError: PalletIdentityManagementTeeError; + PalletIdentityManagementTeeEvent: PalletIdentityManagementTeeEvent; + PalletIdentityManagementTeeIdentityContext: PalletIdentityManagementTeeIdentityContext; + PalletParentchainCall: PalletParentchainCall; + PalletSudoCall: PalletSudoCall; + PalletSudoError: PalletSudoError; + PalletSudoEvent: PalletSudoEvent; + PalletTimestampCall: PalletTimestampCall; + PalletTransactionPaymentChargeTransactionPayment: PalletTransactionPaymentChargeTransactionPayment; + PalletTransactionPaymentEvent: PalletTransactionPaymentEvent; + PalletTransactionPaymentReleases: PalletTransactionPaymentReleases; + SpArithmeticArithmeticError: SpArithmeticArithmeticError; + SpCoreEcdsaSignature: SpCoreEcdsaSignature; + SpCoreEd25519Signature: SpCoreEd25519Signature; + SpCoreSr25519Signature: SpCoreSr25519Signature; + SpRuntimeBlakeTwo256: SpRuntimeBlakeTwo256; + SpRuntimeDigest: SpRuntimeDigest; + SpRuntimeDigestDigestItem: SpRuntimeDigestDigestItem; + SpRuntimeDispatchError: SpRuntimeDispatchError; + SpRuntimeHeader: SpRuntimeHeader; + SpRuntimeModuleError: SpRuntimeModuleError; + SpRuntimeMultiSignature: SpRuntimeMultiSignature; + SpRuntimeTokenError: SpRuntimeTokenError; + SpRuntimeTransactionalError: SpRuntimeTransactionalError; + SpVersionRuntimeVersion: SpVersionRuntimeVersion; + SpWeightsRuntimeDbWeight: SpWeightsRuntimeDbWeight; + SpWeightsWeightV2Weight: SpWeightsWeightV2Weight; + } // InterfaceTypes +} // declare module diff --git a/tee-worker/ts-tests/sidechain-interfaces/types-lookup.ts b/tee-worker/ts-tests/sidechain-interfaces/types-lookup.ts new file mode 100644 index 0000000000..09fd49bc4d --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/types-lookup.ts @@ -0,0 +1,811 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/types/lookup'; + +import type { + Bytes, + Compact, + Enum, + Null, + Option, + Result, + Struct, + Text, + U8aFixed, + Vec, + bool, + u128, + u16, + u32, + u64, + u8, +} from '@polkadot/types-codec'; +import type { ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime'; +import type { Event } from '@polkadot/types/interfaces/system'; + +declare module '@polkadot/types/lookup' { + /** @name FrameSystemAccountInfo (3) */ + interface FrameSystemAccountInfo extends Struct { + readonly nonce: u32; + readonly consumers: u32; + readonly providers: u32; + readonly sufficients: u32; + readonly data: PalletBalancesAccountData; + } + + /** @name PalletBalancesAccountData (5) */ + interface PalletBalancesAccountData extends Struct { + readonly free: u128; + readonly reserved: u128; + readonly miscFrozen: u128; + readonly feeFrozen: u128; + } + + /** @name FrameSupportDispatchPerDispatchClassWeight (7) */ + interface FrameSupportDispatchPerDispatchClassWeight extends Struct { + readonly normal: SpWeightsWeightV2Weight; + readonly operational: SpWeightsWeightV2Weight; + readonly mandatory: SpWeightsWeightV2Weight; + } + + /** @name SpWeightsWeightV2Weight (8) */ + interface SpWeightsWeightV2Weight extends Struct { + readonly refTime: Compact; + readonly proofSize: Compact; + } + + /** @name SpRuntimeDigest (13) */ + interface SpRuntimeDigest extends Struct { + readonly logs: Vec; + } + + /** @name SpRuntimeDigestDigestItem (15) */ + interface SpRuntimeDigestDigestItem extends Enum { + readonly isOther: boolean; + readonly asOther: Bytes; + readonly isConsensus: boolean; + readonly asConsensus: ITuple<[U8aFixed, Bytes]>; + readonly isSeal: boolean; + readonly asSeal: ITuple<[U8aFixed, Bytes]>; + readonly isPreRuntime: boolean; + readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>; + readonly isRuntimeEnvironmentUpdated: boolean; + readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated'; + } + + /** @name FrameSystemEventRecord (18) */ + interface FrameSystemEventRecord extends Struct { + readonly phase: FrameSystemPhase; + readonly event: Event; + readonly topics: Vec; + } + + /** @name FrameSystemEvent (20) */ + interface FrameSystemEvent extends Enum { + readonly isExtrinsicSuccess: boolean; + readonly asExtrinsicSuccess: { + readonly dispatchInfo: FrameSupportDispatchDispatchInfo; + } & Struct; + readonly isExtrinsicFailed: boolean; + readonly asExtrinsicFailed: { + readonly dispatchError: SpRuntimeDispatchError; + readonly dispatchInfo: FrameSupportDispatchDispatchInfo; + } & Struct; + readonly isCodeUpdated: boolean; + readonly isNewAccount: boolean; + readonly asNewAccount: { + readonly account: AccountId32; + } & Struct; + readonly isKilledAccount: boolean; + readonly asKilledAccount: { + readonly account: AccountId32; + } & Struct; + readonly isRemarked: boolean; + readonly asRemarked: { + readonly sender: AccountId32; + readonly hash_: H256; + } & Struct; + readonly type: + | 'ExtrinsicSuccess' + | 'ExtrinsicFailed' + | 'CodeUpdated' + | 'NewAccount' + | 'KilledAccount' + | 'Remarked'; + } + + /** @name FrameSupportDispatchDispatchInfo (21) */ + interface FrameSupportDispatchDispatchInfo extends Struct { + readonly weight: SpWeightsWeightV2Weight; + readonly class: FrameSupportDispatchDispatchClass; + readonly paysFee: FrameSupportDispatchPays; + } + + /** @name FrameSupportDispatchDispatchClass (22) */ + interface FrameSupportDispatchDispatchClass extends Enum { + readonly isNormal: boolean; + readonly isOperational: boolean; + readonly isMandatory: boolean; + readonly type: 'Normal' | 'Operational' | 'Mandatory'; + } + + /** @name FrameSupportDispatchPays (23) */ + interface FrameSupportDispatchPays extends Enum { + readonly isYes: boolean; + readonly isNo: boolean; + readonly type: 'Yes' | 'No'; + } + + /** @name SpRuntimeDispatchError (24) */ + interface SpRuntimeDispatchError extends Enum { + readonly isOther: boolean; + readonly isCannotLookup: boolean; + readonly isBadOrigin: boolean; + readonly isModule: boolean; + readonly asModule: SpRuntimeModuleError; + readonly isConsumerRemaining: boolean; + readonly isNoProviders: boolean; + readonly isTooManyConsumers: boolean; + readonly isToken: boolean; + readonly asToken: SpRuntimeTokenError; + readonly isArithmetic: boolean; + readonly asArithmetic: SpArithmeticArithmeticError; + readonly isTransactional: boolean; + readonly asTransactional: SpRuntimeTransactionalError; + readonly isExhausted: boolean; + readonly isCorruption: boolean; + readonly isUnavailable: boolean; + readonly type: + | 'Other' + | 'CannotLookup' + | 'BadOrigin' + | 'Module' + | 'ConsumerRemaining' + | 'NoProviders' + | 'TooManyConsumers' + | 'Token' + | 'Arithmetic' + | 'Transactional' + | 'Exhausted' + | 'Corruption' + | 'Unavailable'; + } + + /** @name SpRuntimeModuleError (25) */ + interface SpRuntimeModuleError extends Struct { + readonly index: u8; + readonly error: U8aFixed; + } + + /** @name SpRuntimeTokenError (26) */ + interface SpRuntimeTokenError extends Enum { + readonly isNoFunds: boolean; + readonly isWouldDie: boolean; + readonly isBelowMinimum: boolean; + readonly isCannotCreate: boolean; + readonly isUnknownAsset: boolean; + readonly isFrozen: boolean; + readonly isUnsupported: boolean; + readonly type: + | 'NoFunds' + | 'WouldDie' + | 'BelowMinimum' + | 'CannotCreate' + | 'UnknownAsset' + | 'Frozen' + | 'Unsupported'; + } + + /** @name SpArithmeticArithmeticError (27) */ + interface SpArithmeticArithmeticError extends Enum { + readonly isUnderflow: boolean; + readonly isOverflow: boolean; + readonly isDivisionByZero: boolean; + readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero'; + } + + /** @name SpRuntimeTransactionalError (28) */ + interface SpRuntimeTransactionalError extends Enum { + readonly isLimitReached: boolean; + readonly isNoLayer: boolean; + readonly type: 'LimitReached' | 'NoLayer'; + } + + /** @name PalletBalancesEvent (29) */ + interface PalletBalancesEvent extends Enum { + readonly isEndowed: boolean; + readonly asEndowed: { + readonly account: AccountId32; + readonly freeBalance: u128; + } & Struct; + readonly isDustLost: boolean; + readonly asDustLost: { + readonly account: AccountId32; + readonly amount: u128; + } & Struct; + readonly isTransfer: boolean; + readonly asTransfer: { + readonly from: AccountId32; + readonly to: AccountId32; + readonly amount: u128; + } & Struct; + readonly isBalanceSet: boolean; + readonly asBalanceSet: { + readonly who: AccountId32; + readonly free: u128; + readonly reserved: u128; + } & Struct; + readonly isReserved: boolean; + readonly asReserved: { + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isUnreserved: boolean; + readonly asUnreserved: { + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isReserveRepatriated: boolean; + readonly asReserveRepatriated: { + readonly from: AccountId32; + readonly to: AccountId32; + readonly amount: u128; + readonly destinationStatus: FrameSupportTokensMiscBalanceStatus; + } & Struct; + readonly isDeposit: boolean; + readonly asDeposit: { + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isWithdraw: boolean; + readonly asWithdraw: { + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isSlashed: boolean; + readonly asSlashed: { + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly type: + | 'Endowed' + | 'DustLost' + | 'Transfer' + | 'BalanceSet' + | 'Reserved' + | 'Unreserved' + | 'ReserveRepatriated' + | 'Deposit' + | 'Withdraw' + | 'Slashed'; + } + + /** @name FrameSupportTokensMiscBalanceStatus (30) */ + interface FrameSupportTokensMiscBalanceStatus extends Enum { + readonly isFree: boolean; + readonly isReserved: boolean; + readonly type: 'Free' | 'Reserved'; + } + + /** @name PalletTransactionPaymentEvent (31) */ + interface PalletTransactionPaymentEvent extends Enum { + readonly isTransactionFeePaid: boolean; + readonly asTransactionFeePaid: { + readonly who: AccountId32; + readonly actualFee: u128; + readonly tip: u128; + } & Struct; + readonly type: 'TransactionFeePaid'; + } + + /** @name PalletSudoEvent (32) */ + interface PalletSudoEvent extends Enum { + readonly isSudid: boolean; + readonly asSudid: { + readonly sudoResult: Result; + } & Struct; + readonly isKeyChanged: boolean; + readonly asKeyChanged: { + readonly oldSudoer: Option; + } & Struct; + readonly isSudoAsDone: boolean; + readonly asSudoAsDone: { + readonly sudoResult: Result; + } & Struct; + readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone'; + } + + /** @name PalletIdentityManagementTeeEvent (36) */ + interface PalletIdentityManagementTeeEvent extends Enum { + readonly isUserShieldingKeySet: boolean; + readonly asUserShieldingKeySet: { + readonly who: AccountId32; + readonly key: U8aFixed; + } & Struct; + readonly isChallengeCodeSet: boolean; + readonly asChallengeCodeSet: { + readonly who: AccountId32; + readonly identity: LitentryPrimitivesIdentity; + readonly code: U8aFixed; + } & Struct; + readonly isChallengeCodeRemoved: boolean; + readonly asChallengeCodeRemoved: { + readonly who: AccountId32; + readonly identity: LitentryPrimitivesIdentity; + } & Struct; + readonly isIdentityCreated: boolean; + readonly asIdentityCreated: { + readonly who: AccountId32; + readonly identity: LitentryPrimitivesIdentity; + } & Struct; + readonly isIdentityRemoved: boolean; + readonly asIdentityRemoved: { + readonly who: AccountId32; + readonly identity: LitentryPrimitivesIdentity; + } & Struct; + readonly type: + | 'UserShieldingKeySet' + | 'ChallengeCodeSet' + | 'ChallengeCodeRemoved' + | 'IdentityCreated' + | 'IdentityRemoved'; + } + + /** @name LitentryPrimitivesIdentity (37) */ + interface LitentryPrimitivesIdentity extends Enum { + readonly isSubstrate: boolean; + readonly asSubstrate: { + readonly network: LitentryPrimitivesIdentitySubstrateNetwork; + readonly address: LitentryPrimitivesIdentityAddress32; + } & Struct; + readonly isEvm: boolean; + readonly asEvm: { + readonly network: LitentryPrimitivesIdentityEvmNetwork; + readonly address: LitentryPrimitivesIdentityAddress20; + } & Struct; + readonly isWeb2: boolean; + readonly asWeb2: { + readonly network: LitentryPrimitivesIdentityWeb2Network; + readonly address: Bytes; + } & Struct; + readonly type: 'Substrate' | 'Evm' | 'Web2'; + } + + /** @name LitentryPrimitivesIdentitySubstrateNetwork (38) */ + interface LitentryPrimitivesIdentitySubstrateNetwork extends Enum { + readonly isPolkadot: boolean; + readonly isKusama: boolean; + readonly isLitentry: boolean; + readonly isLitmus: boolean; + readonly isLitentryRococo: boolean; + readonly isKhala: boolean; + readonly isTestNet: boolean; + readonly type: 'Polkadot' | 'Kusama' | 'Litentry' | 'Litmus' | 'LitentryRococo' | 'Khala' | 'TestNet'; + } + + /** @name LitentryPrimitivesIdentityAddress32 (39) */ + interface LitentryPrimitivesIdentityAddress32 extends U8aFixed {} + + /** @name LitentryPrimitivesIdentityEvmNetwork (40) */ + interface LitentryPrimitivesIdentityEvmNetwork extends Enum { + readonly isEthereum: boolean; + readonly isBsc: boolean; + readonly type: 'Ethereum' | 'Bsc'; + } + + /** @name LitentryPrimitivesIdentityAddress20 (41) */ + interface LitentryPrimitivesIdentityAddress20 extends U8aFixed {} + + /** @name LitentryPrimitivesIdentityWeb2Network (43) */ + interface LitentryPrimitivesIdentityWeb2Network extends Enum { + readonly isTwitter: boolean; + readonly isDiscord: boolean; + readonly isGithub: boolean; + readonly type: 'Twitter' | 'Discord' | 'Github'; + } + + /** @name FrameSystemPhase (46) */ + interface FrameSystemPhase extends Enum { + readonly isApplyExtrinsic: boolean; + readonly asApplyExtrinsic: u32; + readonly isFinalization: boolean; + readonly isInitialization: boolean; + readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization'; + } + + /** @name FrameSystemLastRuntimeUpgradeInfo (50) */ + interface FrameSystemLastRuntimeUpgradeInfo extends Struct { + readonly specVersion: Compact; + readonly specName: Text; + } + + /** @name FrameSystemCall (54) */ + interface FrameSystemCall extends Enum { + readonly isRemark: boolean; + readonly asRemark: { + readonly remark: Bytes; + } & Struct; + readonly isSetHeapPages: boolean; + readonly asSetHeapPages: { + readonly pages: u64; + } & Struct; + readonly isSetCode: boolean; + readonly asSetCode: { + readonly code: Bytes; + } & Struct; + readonly isSetCodeWithoutChecks: boolean; + readonly asSetCodeWithoutChecks: { + readonly code: Bytes; + } & Struct; + readonly isSetStorage: boolean; + readonly asSetStorage: { + readonly items: Vec>; + } & Struct; + readonly isKillStorage: boolean; + readonly asKillStorage: { + readonly keys_: Vec; + } & Struct; + readonly isKillPrefix: boolean; + readonly asKillPrefix: { + readonly prefix: Bytes; + readonly subkeys: u32; + } & Struct; + readonly isRemarkWithEvent: boolean; + readonly asRemarkWithEvent: { + readonly remark: Bytes; + } & Struct; + readonly type: + | 'Remark' + | 'SetHeapPages' + | 'SetCode' + | 'SetCodeWithoutChecks' + | 'SetStorage' + | 'KillStorage' + | 'KillPrefix' + | 'RemarkWithEvent'; + } + + /** @name FrameSystemLimitsBlockWeights (58) */ + interface FrameSystemLimitsBlockWeights extends Struct { + readonly baseBlock: SpWeightsWeightV2Weight; + readonly maxBlock: SpWeightsWeightV2Weight; + readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; + } + + /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (59) */ + interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct { + readonly normal: FrameSystemLimitsWeightsPerClass; + readonly operational: FrameSystemLimitsWeightsPerClass; + readonly mandatory: FrameSystemLimitsWeightsPerClass; + } + + /** @name FrameSystemLimitsWeightsPerClass (60) */ + interface FrameSystemLimitsWeightsPerClass extends Struct { + readonly baseExtrinsic: SpWeightsWeightV2Weight; + readonly maxExtrinsic: Option; + readonly maxTotal: Option; + readonly reserved: Option; + } + + /** @name FrameSystemLimitsBlockLength (62) */ + interface FrameSystemLimitsBlockLength extends Struct { + readonly max: FrameSupportDispatchPerDispatchClassU32; + } + + /** @name FrameSupportDispatchPerDispatchClassU32 (63) */ + interface FrameSupportDispatchPerDispatchClassU32 extends Struct { + readonly normal: u32; + readonly operational: u32; + readonly mandatory: u32; + } + + /** @name SpWeightsRuntimeDbWeight (64) */ + interface SpWeightsRuntimeDbWeight extends Struct { + readonly read: u64; + readonly write: u64; + } + + /** @name SpVersionRuntimeVersion (65) */ + interface SpVersionRuntimeVersion extends Struct { + readonly specName: Text; + readonly implName: Text; + readonly authoringVersion: u32; + readonly specVersion: u32; + readonly implVersion: u32; + readonly apis: Vec>; + readonly transactionVersion: u32; + readonly stateVersion: u8; + } + + /** @name FrameSystemError (71) */ + interface FrameSystemError extends Enum { + readonly isInvalidSpecName: boolean; + readonly isSpecVersionNeedsToIncrease: boolean; + readonly isFailedToExtractRuntimeVersion: boolean; + readonly isNonDefaultComposite: boolean; + readonly isNonZeroRefCount: boolean; + readonly isCallFiltered: boolean; + readonly type: + | 'InvalidSpecName' + | 'SpecVersionNeedsToIncrease' + | 'FailedToExtractRuntimeVersion' + | 'NonDefaultComposite' + | 'NonZeroRefCount' + | 'CallFiltered'; + } + + /** @name PalletTimestampCall (72) */ + interface PalletTimestampCall extends Enum { + readonly isSet: boolean; + readonly asSet: { + readonly now: Compact; + } & Struct; + readonly type: 'Set'; + } + + /** @name PalletBalancesBalanceLock (74) */ + interface PalletBalancesBalanceLock extends Struct { + readonly id: U8aFixed; + readonly amount: u128; + readonly reasons: PalletBalancesReasons; + } + + /** @name PalletBalancesReasons (75) */ + interface PalletBalancesReasons extends Enum { + readonly isFee: boolean; + readonly isMisc: boolean; + readonly isAll: boolean; + readonly type: 'Fee' | 'Misc' | 'All'; + } + + /** @name PalletBalancesReserveData (78) */ + interface PalletBalancesReserveData extends Struct { + readonly id: U8aFixed; + readonly amount: u128; + } + + /** @name PalletBalancesCall (80) */ + interface PalletBalancesCall extends Enum { + readonly isTransfer: boolean; + readonly asTransfer: { + readonly dest: MultiAddress; + readonly value: Compact; + } & Struct; + readonly isSetBalance: boolean; + readonly asSetBalance: { + readonly who: MultiAddress; + readonly newFree: Compact; + readonly newReserved: Compact; + } & Struct; + readonly isForceTransfer: boolean; + readonly asForceTransfer: { + readonly source: MultiAddress; + readonly dest: MultiAddress; + readonly value: Compact; + } & Struct; + readonly isTransferKeepAlive: boolean; + readonly asTransferKeepAlive: { + readonly dest: MultiAddress; + readonly value: Compact; + } & Struct; + readonly isTransferAll: boolean; + readonly asTransferAll: { + readonly dest: MultiAddress; + readonly keepAlive: bool; + } & Struct; + readonly isForceUnreserve: boolean; + readonly asForceUnreserve: { + readonly who: MultiAddress; + readonly amount: u128; + } & Struct; + readonly type: + | 'Transfer' + | 'SetBalance' + | 'ForceTransfer' + | 'TransferKeepAlive' + | 'TransferAll' + | 'ForceUnreserve'; + } + + /** @name PalletBalancesError (84) */ + interface PalletBalancesError extends Enum { + readonly isVestingBalance: boolean; + readonly isLiquidityRestrictions: boolean; + readonly isInsufficientBalance: boolean; + readonly isExistentialDeposit: boolean; + readonly isKeepAlive: boolean; + readonly isExistingVestingSchedule: boolean; + readonly isDeadAccount: boolean; + readonly isTooManyReserves: boolean; + readonly type: + | 'VestingBalance' + | 'LiquidityRestrictions' + | 'InsufficientBalance' + | 'ExistentialDeposit' + | 'KeepAlive' + | 'ExistingVestingSchedule' + | 'DeadAccount' + | 'TooManyReserves'; + } + + /** @name PalletTransactionPaymentReleases (86) */ + interface PalletTransactionPaymentReleases extends Enum { + readonly isV1Ancient: boolean; + readonly isV2: boolean; + readonly type: 'V1Ancient' | 'V2'; + } + + /** @name PalletSudoCall (87) */ + interface PalletSudoCall extends Enum { + readonly isSudo: boolean; + readonly asSudo: { + readonly call: Call; + } & Struct; + readonly isSudoUncheckedWeight: boolean; + readonly asSudoUncheckedWeight: { + readonly call: Call; + readonly weight: SpWeightsWeightV2Weight; + } & Struct; + readonly isSetKey: boolean; + readonly asSetKey: { + readonly new_: MultiAddress; + } & Struct; + readonly isSudoAs: boolean; + readonly asSudoAs: { + readonly who: MultiAddress; + readonly call: Call; + } & Struct; + readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs'; + } + + /** @name PalletParentchainCall (89) */ + interface PalletParentchainCall extends Enum { + readonly isSetBlock: boolean; + readonly asSetBlock: { + readonly header: SpRuntimeHeader; + } & Struct; + readonly type: 'SetBlock'; + } + + /** @name SpRuntimeHeader (90) */ + interface SpRuntimeHeader extends Struct { + readonly parentHash: H256; + readonly number: Compact; + readonly stateRoot: H256; + readonly extrinsicsRoot: H256; + readonly digest: SpRuntimeDigest; + } + + /** @name SpRuntimeBlakeTwo256 (91) */ + type SpRuntimeBlakeTwo256 = Null; + + /** @name PalletIdentityManagementTeeCall (92) */ + interface PalletIdentityManagementTeeCall extends Enum { + readonly isSetUserShieldingKey: boolean; + readonly asSetUserShieldingKey: { + readonly who: AccountId32; + readonly key: U8aFixed; + readonly parentSs58Prefix: u16; + } & Struct; + readonly isSetChallengeCode: boolean; + readonly asSetChallengeCode: { + readonly who: AccountId32; + readonly identity: LitentryPrimitivesIdentity; + readonly code: U8aFixed; + } & Struct; + readonly isRemoveChallengeCode: boolean; + readonly asRemoveChallengeCode: { + readonly who: AccountId32; + readonly identity: LitentryPrimitivesIdentity; + } & Struct; + readonly isCreateIdentity: boolean; + readonly asCreateIdentity: { + readonly who: AccountId32; + readonly identity: LitentryPrimitivesIdentity; + readonly metadata: Option; + readonly creationRequestBlock: u32; + readonly parentSs58Prefix: u16; + } & Struct; + readonly isRemoveIdentity: boolean; + readonly asRemoveIdentity: { + readonly who: AccountId32; + readonly identity: LitentryPrimitivesIdentity; + } & Struct; + readonly isVerifyIdentity: boolean; + readonly asVerifyIdentity: { + readonly who: AccountId32; + readonly identity: LitentryPrimitivesIdentity; + readonly verificationRequestBlock: u32; + } & Struct; + readonly type: + | 'SetUserShieldingKey' + | 'SetChallengeCode' + | 'RemoveChallengeCode' + | 'CreateIdentity' + | 'RemoveIdentity' + | 'VerifyIdentity'; + } + + /** @name PalletSudoError (95) */ + interface PalletSudoError extends Enum { + readonly isRequireSudo: boolean; + readonly type: 'RequireSudo'; + } + + /** @name PalletIdentityManagementTeeIdentityContext (97) */ + interface PalletIdentityManagementTeeIdentityContext extends Struct { + readonly metadata: Option; + readonly creationRequestBlock: Option; + readonly verificationRequestBlock: Option; + readonly isVerified: bool; + } + + /** @name PalletIdentityManagementTeeError (99) */ + interface PalletIdentityManagementTeeError extends Enum { + readonly isChallengeCodeNotExist: boolean; + readonly isIdentityAlreadyVerified: boolean; + readonly isIdentityNotExist: boolean; + readonly isIdentityNotCreated: boolean; + readonly isCreatePrimeIdentityNotAllowed: boolean; + readonly isVerificationRequestTooEarly: boolean; + readonly isVerificationRequestTooLate: boolean; + readonly isRemovePrimeIdentityDisallowed: boolean; + readonly type: + | 'ChallengeCodeNotExist' + | 'IdentityAlreadyVerified' + | 'IdentityNotExist' + | 'IdentityNotCreated' + | 'CreatePrimeIdentityNotAllowed' + | 'VerificationRequestTooEarly' + | 'VerificationRequestTooLate' + | 'RemovePrimeIdentityDisallowed'; + } + + /** @name SpRuntimeMultiSignature (101) */ + interface SpRuntimeMultiSignature extends Enum { + readonly isEd25519: boolean; + readonly asEd25519: SpCoreEd25519Signature; + readonly isSr25519: boolean; + readonly asSr25519: SpCoreSr25519Signature; + readonly isEcdsa: boolean; + readonly asEcdsa: SpCoreEcdsaSignature; + readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa'; + } + + /** @name SpCoreEd25519Signature (102) */ + interface SpCoreEd25519Signature extends U8aFixed {} + + /** @name SpCoreSr25519Signature (104) */ + interface SpCoreSr25519Signature extends U8aFixed {} + + /** @name SpCoreEcdsaSignature (105) */ + interface SpCoreEcdsaSignature extends U8aFixed {} + + /** @name FrameSystemExtensionsCheckNonZeroSender (108) */ + type FrameSystemExtensionsCheckNonZeroSender = Null; + + /** @name FrameSystemExtensionsCheckSpecVersion (109) */ + type FrameSystemExtensionsCheckSpecVersion = Null; + + /** @name FrameSystemExtensionsCheckTxVersion (110) */ + type FrameSystemExtensionsCheckTxVersion = Null; + + /** @name FrameSystemExtensionsCheckGenesis (111) */ + type FrameSystemExtensionsCheckGenesis = Null; + + /** @name FrameSystemExtensionsCheckNonce (114) */ + interface FrameSystemExtensionsCheckNonce extends Compact {} + + /** @name FrameSystemExtensionsCheckWeight (115) */ + type FrameSystemExtensionsCheckWeight = Null; + + /** @name PalletTransactionPaymentChargeTransactionPayment (116) */ + interface PalletTransactionPaymentChargeTransactionPayment extends Compact {} + + /** @name ItaSgxRuntimeRuntime (117) */ + type ItaSgxRuntimeRuntime = Null; +} // declare module diff --git a/tee-worker/ts-tests/sidechain-interfaces/types.ts b/tee-worker/ts-tests/sidechain-interfaces/types.ts new file mode 100644 index 0000000000..deaa5c34d9 --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/types.ts @@ -0,0 +1,2 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ diff --git a/tee-worker/ts-tests/tsconfig.json b/tee-worker/ts-tests/tsconfig.json index d5495a038d..afd4aede48 100644 --- a/tee-worker/ts-tests/tsconfig.json +++ b/tee-worker/ts-tests/tsconfig.json @@ -2,9 +2,9 @@ "compilerOptions": { // this is specific with augmented overrides "paths": { - "@polkadot/api/augment": ["src/interfaces/augment-api.ts"], + "@polkadot/api/augment": ["src/parachain-interfaces/augment-api.ts"], // replace the augmented types with our own, as generated from definitions - "@polkadot/types/augment": ["src/interfaces/augment-types.ts"] + "@polkadot/types/augment": ["src/parachain-interfaces/augment-types.ts"] }, "target": "es2017", "module": "commonjs", From 1e00b988344d22688efa0c419a23f2a9546748a4 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Mon, 22 May 2023 14:42:17 +0800 Subject: [PATCH 13/25] add @polkadot/types/lookup --- .../ts-tests/common/type-definitions.ts | 21 +++++++--------- tee-worker/ts-tests/common/utils.ts | 8 +++---- tee-worker/ts-tests/package.json | 4 ++-- tee-worker/ts-tests/tsconfig.json | 15 ++++++------ tee-worker/ts-tests/yarn.lock | 24 +++++++++---------- 5 files changed, 34 insertions(+), 38 deletions(-) diff --git a/tee-worker/ts-tests/common/type-definitions.ts b/tee-worker/ts-tests/common/type-definitions.ts index 9e4d869993..7dc4f826db 100644 --- a/tee-worker/ts-tests/common/type-definitions.ts +++ b/tee-worker/ts-tests/common/type-definitions.ts @@ -6,22 +6,20 @@ import type { KeyringPair } from '@polkadot/keyring/types'; import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; import { Metadata, Vec } from '@polkadot/types'; import { Wallet } from 'ethers'; -import type { - SubstrateNetwork as SubNet, - Web2Network as Web2Net, - EvmNetwork as EvmNet, - Assertion as GenericAssertion, - DirectRequestStatus, -} from '../parachain-interfaces/identity/types'; +import type { Assertion as GenericAssertion, DirectRequestStatus } from '../parachain-interfaces/identity/types'; import { default as teeTypes } from '../parachain-interfaces/identity/definitions'; import { AnyTuple, IMethod } from '@polkadot/types/types'; import { Call } from '@polkadot/types/interfaces'; - +import type { + LitentryPrimitivesIdentitySubstrateNetwork, + LitentryPrimitivesIdentityEvmNetwork, + LitentryPrimitivesIdentityWeb2Network, +} from '@polkadot/types/lookup'; export { teeTypes }; -export type Web2Network = Web2Net['type']; -export type SubstrateNetwork = SubNet['type']; -export type EvmNetwork = EvmNet['type']; +export type Web2Network = LitentryPrimitivesIdentityWeb2Network['type']; +export type SubstrateNetwork = LitentryPrimitivesIdentitySubstrateNetwork['type']; +export type EvmNetwork = LitentryPrimitivesIdentityEvmNetwork['type']; export type ParachainAssertion = GenericAssertion['type']; export type WorkerRpcReturnString = { vec: string; @@ -39,7 +37,6 @@ export type EnclaveResult = { vcPubkey: `0x${string}`; sgxMetadata: {}; }; - export type PubicKeyJson = { n: Uint8Array; e: Uint8Array; diff --git a/tee-worker/ts-tests/common/utils.ts b/tee-worker/ts-tests/common/utils.ts index d98942d847..405577580e 100644 --- a/tee-worker/ts-tests/common/utils.ts +++ b/tee-worker/ts-tests/common/utils.ts @@ -19,7 +19,6 @@ import { EvmNetwork, Web2Network, } from './type-definitions'; - import { blake2AsHex, cryptoWaitReady, xxhashAsU8a } from '@polkadot/util-crypto'; import { Metadata } from '@polkadot/types'; import { SiLookupTypeId } from '@polkadot/types/interfaces'; @@ -38,7 +37,6 @@ import { getMetadata, sendRequest } from './call'; const base58 = require('micro-base58'); const crypto = require('crypto'); import { getEthereumSigner } from '../common/helpers'; - // in order to handle self-signed certificates we need to turn off the validation // TODO add self signed certificate ?? process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; @@ -200,7 +198,7 @@ export function describeLitentry(title: string, walletsNumber: number, cb: (cont context.web3Signers = tmp.web3Signers; }); - after(async function () {}); + after(async function () { }); cb(context); }); @@ -268,8 +266,8 @@ export async function checkJSON(vc: any, proofJson: any): Promise { expect(isValid).to.be.true; expect( vc.type[0] === 'VerifiableCredential' && - vc.issuer.id === proofJson.verificationMethod && - proofJson.type === 'Ed25519Signature2020' + vc.issuer.id === proofJson.verificationMethod && + proofJson.type === 'Ed25519Signature2020' ).to.be.true; return true; } diff --git a/tee-worker/ts-tests/package.json b/tee-worker/ts-tests/package.json index 6b9deffc29..9af7b22c6c 100644 --- a/tee-worker/ts-tests/package.json +++ b/tee-worker/ts-tests/package.json @@ -5,10 +5,10 @@ "gen-meta": "yarn gen-meta:sidechain && gen-meta:parachain", "gen-meta:sidechain": "../bin/integritee-cli print-sgx-metadata-raw > litentry-sidechain-metadata.json", "gen-meta:parachain": "curl -s -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9933 > litentry-parachain-metadata.json", - "gen-type-parachain": "yarn gen-type-parachain:defs && yarn gen-type-parachain:meta && yarn format", + "gen-type:parachain": "yarn gen-type-parachain:defs && yarn gen-type-parachain:meta && yarn format", "gen-type-parachain:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package . --input ./parachain-interfaces --endpoint ./litentry-parachain-metadata.json", "gen-type-parachain:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package . --output ./parachain-interfaces --endpoint ./litentry-parachain-metadata.json", - "gen-type-sidechain": "yarn gen-type-sidechain:defs && yarn gen-type-sidechain:meta && yarn format", + "gen-type:sidechain": "yarn gen-type-sidechain:defs && yarn gen-type-sidechain:meta && yarn format", "gen-type-sidechain:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package . --input ./sidechain-interfaces --endpoint ./litentry-sidechain-metadata.json", "gen-type-sidechain:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package . --output ./sidechain-interfaces --endpoint ./litentry-sidechain-metadata.json", "test-identity:staging": "cross-env NODE_ENV=staging mocha --exit --sort -r ts-node/register 'identity.test.ts'", diff --git a/tee-worker/ts-tests/tsconfig.json b/tee-worker/ts-tests/tsconfig.json index afd4aede48..4bc5ae62f0 100644 --- a/tee-worker/ts-tests/tsconfig.json +++ b/tee-worker/ts-tests/tsconfig.json @@ -2,17 +2,18 @@ "compilerOptions": { // this is specific with augmented overrides "paths": { - "@polkadot/api/augment": ["src/parachain-interfaces/augment-api.ts"], - // replace the augmented types with our own, as generated from definitions - "@polkadot/types/augment": ["src/parachain-interfaces/augment-types.ts"] + "@polkadot/api/augment": ["./parachain-interfaces/augment-api.ts"], + "@polkadot/types/augment": ["./parachain-interfaces/augment-types.ts"], + "@polkadot/types/lookup": ["./sidechain-interfaces/types-lookup.ts"] }, "target": "es2017", "module": "commonjs", + "declaration": true, + "outDir": "./lib", "strict": true, - "noUnusedLocals": true, - "moduleResolution": "node", + "skipLibCheck": true, "esModuleInterop": true, + "allowSyntheticDefaultImports": true, "baseUrl": "." - }, - "exclude": ["node_modules"] + } } diff --git a/tee-worker/ts-tests/yarn.lock b/tee-worker/ts-tests/yarn.lock index 60bb0beaa5..5e903dd1bf 100644 --- a/tee-worker/ts-tests/yarn.lock +++ b/tee-worker/ts-tests/yarn.lock @@ -1397,9 +1397,9 @@ form-data "^3.0.0" "@types/node@*": - version "20.1.5" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.1.5.tgz#e94b604c67fc408f215fcbf3bd84d4743bf7f710" - integrity sha512-IvGD1CD/nego63ySR7vrAKEX3AJTcmrAN2kn+/sDNLi1Ff5kBzDeEdqWDplK+0HAEoLYej137Sk0cUU8OLOlMg== + version "20.2.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.2.1.tgz#de559d4b33be9a808fd43372ccee822c70f39704" + integrity sha512-DqJociPbZP1lbZ5SQPk4oag6W7AyaGMO6gSfRwq3PWl4PXTwJpRQJhDq4W0kzrg3w6tJ1SwlvGZ5uKFHY13LIg== "@types/websocket@^1.0.5": version "1.0.5" @@ -1603,9 +1603,9 @@ camelcase@^6.0.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001449: - version "1.0.30001487" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001487.tgz#d882d1a34d89c11aea53b8cdc791931bdab5fe1b" - integrity sha512-83564Z3yWGqXsh2vaH/mhXfEM0wX+NlBCm1jYHOb97TrTWJEmPTccZgeLTPBUUb0PNVo+oomb7wkimZBIERClA== + version "1.0.30001488" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001488.tgz#d19d7b6e913afae3e98f023db97c19e9ddc5e91f" + integrity sha512-NORIQuuL4xGpIy6iCCQGN4iFjlBXtfKWIenlUuyZJumLRIindLb7wXM+GO8erEhb7vXfcnf4BAg2PrSDN5TNLQ== chai@^4.3.6: version "4.3.7" @@ -1836,9 +1836,9 @@ ed2curve@^0.3.0: tweetnacl "1.x.x" electron-to-chromium@^1.4.284: - version "1.4.397" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.397.tgz#82a7e26c657538d59bb713b97ac22f97ea3a90ea" - integrity sha512-jwnPxhh350Q/aMatQia31KAIQdhEsYS0fFZ0BQQlN9tfvOEwShu6ZNwI4kL/xBabjcB/nTy6lSt17kNIluJZ8Q== + version "1.4.401" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.401.tgz#cbd2c332c4a833e9e8d2ec5b3a6cd85ec6920907" + integrity sha512-AswqHsYyEbfSn0x87n31Na/xttUqEAg7NUjpiyxC20MaWKLyadOYHMzyLdF78N1iw+FK8/2KHLpZxRdyRILgtA== elliptic@6.5.4: version "6.5.4" @@ -3077,9 +3077,9 @@ ts-node@^10.9.1: yn "3.1.1" tslib@^2.1.0, tslib@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" - integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== + version "2.5.2" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.2.tgz#1b6f07185c881557b0ffa84b111a0106989e8338" + integrity sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA== tweetnacl@1.x.x, tweetnacl@^1.0.3: version "1.0.3" From 93243553b0ad52713f85de52fe9bd7154b4f279c Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 24 May 2023 20:35:02 +0800 Subject: [PATCH 14/25] fix createType --- tee-worker/ts-tests/common/call.ts | 11 ++--- .../ts-tests/common/type-definitions.ts | 3 +- tee-worker/ts-tests/common/utils/assertion.ts | 19 ++++++--- tee-worker/ts-tests/common/utils/context.ts | 6 +-- .../ts-tests/common/utils/identity-helper.ts | 42 +++++++++---------- .../common/utils/integration-setup.ts | 4 +- tee-worker/ts-tests/common/utils/vc-helper.ts | 2 +- .../examples/direct-invocation/index.ts | 10 +++-- tee-worker/ts-tests/identity.test.ts | 37 ++++++++++------ tee-worker/ts-tests/tsconfig.json | 1 + 10 files changed, 81 insertions(+), 54 deletions(-) diff --git a/tee-worker/ts-tests/common/call.ts b/tee-worker/ts-tests/common/call.ts index ab16bf976f..e908ddbea6 100644 --- a/tee-worker/ts-tests/common/call.ts +++ b/tee-worker/ts-tests/common/call.ts @@ -3,6 +3,7 @@ import { Metadata, TypeRegistry } from '@polkadot/types'; import WebSocketAsPromised from 'websocket-as-promised'; import { HexString } from '@polkadot/util/types'; import { RequestBody, WorkerRpcReturnValue } from '../common/type-definitions'; +import sidechainMetaData from '../litentry-sidechain-metadata.json' //rpc call export async function sendRequest( wsClient: WebSocketAsPromised, @@ -19,13 +20,13 @@ export async function sendRequest( return resp_json; } -export async function getMetadata(wsClient: WebSocketAsPromised, api: ApiPromise): Promise { +export async function getSidechainMetadata(wsClient: WebSocketAsPromised, api: ApiPromise): Promise<{ metaData: Metadata, sidechainRegistry: TypeRegistry }> { let request = { jsonrpc: '2.0', method: 'state_getMetadata', params: [], id: 1 }; let respJSON = await sendRequest(wsClient, request, api); - const registry = new TypeRegistry(); - const metadata = new Metadata(registry, respJSON.value); - registry.setMetadata(metadata); - return metadata; + const sidechainRegistry = new TypeRegistry(); + const metaData = new Metadata(sidechainRegistry, respJSON.value); + sidechainRegistry.setMetadata(metaData); + return { metaData, sidechainRegistry }; } export async function getSideChainStorage( diff --git a/tee-worker/ts-tests/common/type-definitions.ts b/tee-worker/ts-tests/common/type-definitions.ts index 183c72cece..ede35e1337 100644 --- a/tee-worker/ts-tests/common/type-definitions.ts +++ b/tee-worker/ts-tests/common/type-definitions.ts @@ -4,7 +4,7 @@ import { HexString } from '@polkadot/util/types'; import WebSocketAsPromised from 'websocket-as-promised'; import type { KeyringPair } from '@polkadot/keyring/types'; import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; -import { Metadata, Vec } from '@polkadot/types'; +import { Metadata, Vec, TypeRegistry } from '@polkadot/types'; import { Wallet } from 'ethers'; import type { Assertion as GenericAssertion, DirectRequestStatus } from '../parachain-interfaces/identity/types'; import { default as teeTypes } from '../parachain-interfaces/identity/definitions'; @@ -56,6 +56,7 @@ export type IntegrationTestContext = { ethersWallet: EthersWalletItem; substrateWallet: SubstrateWalletItem; metaData: Metadata; + sidechainRegistry: TypeRegistry; web3Signers: Web3Wallets[]; }; diff --git a/tee-worker/ts-tests/common/utils/assertion.ts b/tee-worker/ts-tests/common/utils/assertion.ts index e1ade5a780..fccc15ea86 100644 --- a/tee-worker/ts-tests/common/utils/assertion.ts +++ b/tee-worker/ts-tests/common/utils/assertion.ts @@ -11,18 +11,27 @@ import { IdentityGenericEvent, JsonSchema, LitentryIdentity, + IntegrationTestContext, } from '../type-definitions'; import { buildIdentityHelper } from './identity-helper'; import { isEqual, isArrayEqual } from './common'; - -export async function assertInitialIDGraphCreated(api: ApiPromise, signer: KeyringPair, event: IdentityGenericEvent) { +export async function assertInitialIDGraphCreated( + context: IntegrationTestContext, + signer: KeyringPair, + event: IdentityGenericEvent +) { assert.equal(event.who, u8aToHex(signer.addressRaw)); assert.equal(event.idGraph.length, 1); // check identity in idgraph - const expected_identity = api.createType( - 'LitentryIdentity', - await buildIdentityHelper(u8aToHex(signer.addressRaw), 'LitentryRococo', 'Substrate') + const expected_identity = context.sidechainRegistry.createType( + 'LitentryPrimitivesIdentity', + await buildIdentityHelper( + u8aToHex(signer.addressRaw), + process.env.NODE_ENV === 'local' ? 'TestNet' : 'LitentryRococo', + 'Substrate' + ) ) as LitentryIdentity; + assert.isTrue(isEqual(event.idGraph[0][0], expected_identity)); // check identityContext in idgraph assert.equal(event.idGraph[0][1].linking_request_block, 0); diff --git a/tee-worker/ts-tests/common/utils/context.ts b/tee-worker/ts-tests/common/utils/context.ts index 7077e8a9c5..fa3e0f7c7b 100644 --- a/tee-worker/ts-tests/common/utils/context.ts +++ b/tee-worker/ts-tests/common/utils/context.ts @@ -5,7 +5,7 @@ import WebSocketAsPromised from 'websocket-as-promised'; import WebSocket from 'ws'; import Options from 'websocket-as-promised/types/options'; import { KeyObject } from 'crypto'; -import { getMetadata } from '../call'; +import { getSidechainMetadata } from '../call'; import { getEthereumSigner, getSubstrateSigner } from '../helpers'; import { IntegrationTestContext, teeTypes, EnclaveResult, Web3Wallets } from '../type-definitions'; @@ -62,8 +62,7 @@ export async function initIntegrationTestContext( const wsp = await initWorkerConnection(workerEndpoint); - const metaData = await getMetadata(wsp, api); - + const { metaData, sidechainRegistry } = await getSidechainMetadata(wsp, api); const web3Signers = await generateWeb3Wallets(walletsNumber); const { mrEnclave, teeShieldingKey } = await getEnclave(api); return { @@ -74,6 +73,7 @@ export async function initIntegrationTestContext( ethersWallet, substrateWallet, metaData, + sidechainRegistry, web3Signers, }; } diff --git a/tee-worker/ts-tests/common/utils/identity-helper.ts b/tee-worker/ts-tests/common/utils/identity-helper.ts index e1b69d9493..6366a36c4e 100644 --- a/tee-worker/ts-tests/common/utils/identity-helper.ts +++ b/tee-worker/ts-tests/common/utils/identity-helper.ts @@ -1,6 +1,5 @@ import { ApiPromise } from '@polkadot/api'; import { KeyringPair } from '@polkadot/keyring/types'; -import { Codec } from '@polkadot/types/types'; import { HexString } from '@polkadot/util/types'; import { hexToU8a, u8aToHex } from '@polkadot/util'; import { blake2AsHex } from '@polkadot/util-crypto'; @@ -17,7 +16,7 @@ import { decryptWithAES, encryptWithTeeShieldingKey } from './crypto'; import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; import { assert } from 'chai'; import { ethers } from 'ethers'; - +import { TypeRegistry } from '@polkadot/types'; // + + export function generateVerificationMessage( context: IntegrationTestContext, @@ -25,7 +24,7 @@ export function generateVerificationMessage( signerAddress: Uint8Array, identity: LitentryIdentity ): HexString { - const encode = context.api.createType('LitentryIdentity', identity).toU8a(); + const encode = context.sidechainRegistry.createType('LitentryPrimitivesIdentity', identity).toU8a(); const msg = Buffer.concat([challengeCode, signerAddress, encode]); return blake2AsHex(msg, 256); } @@ -48,7 +47,7 @@ export async function buildIdentityHelper( export async function buildIdentityTxs( context: IntegrationTestContext, signers: KeyringPair[] | KeyringPair, - identities: LitentryIdentity[], + identities: any[], method: 'setUserShieldingKey' | 'createIdentity' | 'verifyIdentity' | 'removeIdentity', validations?: LitentryValidationData[] ): Promise { @@ -62,8 +61,9 @@ export async function buildIdentityTxs( const identity = identities[k]; let tx: SubmittableExtrinsic; let nonce: number; - const encod_identity = api.createType('LitentryIdentity', identity).toU8a(); - const ciphertext_identity = encryptWithTeeShieldingKey(teeShieldingKey, encod_identity).toString('hex'); + const encod_identity = context.sidechainRegistry.createType('LitentryPrimitivesIdentity', identity); + + const ciphertext_identity = encryptWithTeeShieldingKey(teeShieldingKey, encod_identity.toU8a()).toString('hex'); nonce = (await api.rpc.system.accountNextIndex(signer.address)).toNumber(); switch (method) { @@ -111,13 +111,7 @@ export async function handleIdentityEvents( context: IntegrationTestContext, aesKey: HexString, events: any[], - type: - | 'UserShieldingKeySet' - | 'IdentityCreated' - | 'IdentityVerified' - | 'IdentityRemoved' - | 'Failed' - | 'CreateIdentityFailed' + type: 'UserShieldingKeySet' | 'IdentityCreated' | 'IdentityVerified' | 'IdentityRemoved' | 'Failed' ): Promise { let results: IdentityGenericEvent[] = []; @@ -126,7 +120,7 @@ export async function handleIdentityEvents( case 'UserShieldingKeySet': results.push( createIdentityEvent( - context.api, + context.sidechainRegistry, events[index].data.account.toHex(), undefined, decryptWithAES(aesKey, events[index].data.idGraph, 'hex') @@ -136,7 +130,7 @@ export async function handleIdentityEvents( case 'IdentityCreated': results.push( createIdentityEvent( - context.api, + context.sidechainRegistry, events[index].data.account.toHex(), decryptWithAES(aesKey, events[index].data.identity, 'hex'), undefined, @@ -147,7 +141,7 @@ export async function handleIdentityEvents( case 'IdentityVerified': results.push( createIdentityEvent( - context.api, + context.sidechainRegistry, events[index].data.account.toHex(), decryptWithAES(aesKey, events[index].data.identity, 'hex'), decryptWithAES(aesKey, events[index].data.idGraph, 'hex') @@ -158,14 +152,13 @@ export async function handleIdentityEvents( case 'IdentityRemoved': results.push( createIdentityEvent( - context.api, + context.sidechainRegistry, events[index].data.account.toHex(), decryptWithAES(aesKey, events[index].data.identity, 'hex') ) ); break; case 'Failed': - case 'CreateIdentityFailed': results.push(events[index].data.detail.toHuman()); break; } @@ -176,15 +169,22 @@ export async function handleIdentityEvents( } export function createIdentityEvent( - api: ApiPromise, + sidechainRegistry: TypeRegistry, who: HexString, identityString?: HexString, idGraphString?: HexString, challengeCode?: HexString ): IdentityGenericEvent { - let identity = identityString ? api.createType('LitentryIdentity', identityString).toJSON() : undefined; + let identity = identityString + ? sidechainRegistry.createType('LitentryPrimitivesIdentity', identityString).toJSON() + : undefined; let idGraph = idGraphString - ? api.createType('Vec<(LitentryIdentity, IdentityContext)>', idGraphString).toJSON() + ? sidechainRegistry + .createType( + 'Vec<(LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext)>', + idGraphString + ) + .toJSON() : undefined; return { who, diff --git a/tee-worker/ts-tests/common/utils/integration-setup.ts b/tee-worker/ts-tests/common/utils/integration-setup.ts index f2e0830b85..a60112097a 100644 --- a/tee-worker/ts-tests/common/utils/integration-setup.ts +++ b/tee-worker/ts-tests/common/utils/integration-setup.ts @@ -1,5 +1,5 @@ import { ApiPromise } from '@polkadot/api'; -import { Metadata } from '@polkadot/types'; +import { Metadata, TypeRegistry } from '@polkadot/types'; import { HexString } from '@polkadot/util/types'; import { KeyObject } from 'crypto'; import WebSocketAsPromised from 'websocket-as-promised'; @@ -20,6 +20,7 @@ export function describeLitentry(title: string, walletsNumber: number, cb: (cont ethersWallet: {}, substrateWallet: {}, metaData: {} as Metadata, + sidechainRegistry: {} as TypeRegistry, web3Signers: [] as Web3Wallets[], }; @@ -37,6 +38,7 @@ export function describeLitentry(title: string, walletsNumber: number, cb: (cont context.ethersWallet = tmp.ethersWallet; context.substrateWallet = tmp.substrateWallet; context.metaData = tmp.metaData; + context.sidechainRegistry = tmp.sidechainRegistry; context.web3Signers = tmp.web3Signers; }); diff --git a/tee-worker/ts-tests/common/utils/vc-helper.ts b/tee-worker/ts-tests/common/utils/vc-helper.ts index 294700a062..88371492af 100644 --- a/tee-worker/ts-tests/common/utils/vc-helper.ts +++ b/tee-worker/ts-tests/common/utils/vc-helper.ts @@ -30,4 +30,4 @@ export async function handleVcEvents( } } return [...results]; -} \ No newline at end of file +} diff --git a/tee-worker/ts-tests/examples/direct-invocation/index.ts b/tee-worker/ts-tests/examples/direct-invocation/index.ts index f60a22ae4f..8878fefb3b 100644 --- a/tee-worker/ts-tests/examples/direct-invocation/index.ts +++ b/tee-worker/ts-tests/examples/direct-invocation/index.ts @@ -1,7 +1,6 @@ import { cryptoWaitReady } from '@polkadot/util-crypto'; import { KeyringPair } from '@polkadot/keyring/types'; import { ApiPromise, Keyring, WsProvider } from '@polkadot/api'; -import { TypeRegistry } from '@polkadot/types'; import { hexToU8a, u8aToHex, u8aConcat } from '@polkadot/util'; import { teeTypes } from '../../common/type-definitions'; import { @@ -11,7 +10,8 @@ import { createSignedTrustedCallCreateIdentity, } from './util'; import { getEnclave, sleep, buildIdentityHelper } from '../../common/utils'; - +import { Metadata, TypeRegistry } from '@polkadot/types'; +import sidechainMetaData from '../../litentry-sidechain-metadata.json'; // in order to handle self-signed certificates we need to turn off the validation // TODO add self signed certificate process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; @@ -25,7 +25,9 @@ const WORKER_TRUSTED_WS_ENDPOINT = 'wss://localhost:2000'; async function runDirectCall() { const parachain_ws = new WsProvider(PARACHAIN_WS_ENDPINT); - const registry = new TypeRegistry(); + const sidechainRegistry = new TypeRegistry(); + const metaData = new Metadata(sidechainRegistry, sidechainMetaData.result as HexString); + sidechainRegistry.setMetadata(metaData); const { types } = teeTypes; const parachain_api = await ApiPromise.create({ provider: parachain_ws, @@ -77,7 +79,7 @@ async function runDirectCall() { mrenclave, nonce, alice, - parachain_api.createType('LitentryIdentity', twitter_identity).toHex(), + sidechainRegistry.createType('LitentryPrimitivesIdentity', twitter_identity).toHex(), '0x', parachain_api.createType('u32', 1).toHex(), hash diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index 8f7c1f07a9..08211f033c 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -32,7 +32,6 @@ const substrateExtensionIdentity = { }, }; import { Event } from '@polkadot/types/interfaces'; - describeLitentry('Test Identity', 0, (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; const errorAesKey = '0xError'; @@ -47,7 +46,10 @@ describeLitentry('Test Identity', 0, (context) => { step('check user sidechain storage before create', async function () { const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.api.createType('LitentryIdentity', twitter_identity).toHex(); + const identity_hex = context.sidechainRegistry + .createType('LitentryPrimitivesIdentity', twitter_identity) + .toHex(); + const resp_shieldingKey = await checkUserShieldingKeys( context, 'IdentityManagement', @@ -98,8 +100,8 @@ describeLitentry('Test Identity', 0, (context) => { ['UserShieldingKeySet'] ); const [alice, bob] = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); - await assertInitialIDGraphCreated(context.api, context.substrateWallet.alice, alice); - await assertInitialIDGraphCreated(context.api, context.substrateWallet.bob, bob); + await assertInitialIDGraphCreated(context, context.substrateWallet.alice, alice); + await assertInitialIDGraphCreated(context, context.substrateWallet.bob, bob); }); step('check user shielding key from sidechain storage after setUserShieldingKey', async function () { @@ -119,7 +121,7 @@ describeLitentry('Test Identity', 0, (context) => { process.env.NODE_ENV === 'local' ? 'TestNet' : 'LitentryRococo', 'Substrate' ); - const identity_hex = context.api.createType('LitentryIdentity', main_identity).toHex(); + const identity_hex = context.sidechainRegistry.createType('LitentryPrimitivesIdentity', main_identity).toHex(); const resp_id_graph = await checkIDGraph( context, 'IdentityManagement', @@ -154,6 +156,7 @@ describeLitentry('Test Identity', 0, (context) => { ); alice_identities = [twitter_identity, ethereum_identity, alice_substrate_identity]; + bob_identities = [bob_substrate_identity]; let alice_txs = await buildIdentityTxs( @@ -189,7 +192,7 @@ describeLitentry('Test Identity', 0, (context) => { context.substrateWallet.alice ); - //Alice check ethereum identity + // Alice check ethereum identity assertIdentityCreated(context.substrateWallet.alice, ethereum_event_data); const alice_ethereum_validations = await buildValidations( context, @@ -264,7 +267,9 @@ describeLitentry('Test Identity', 0, (context) => { step('check IDGraph before verifyIdentity and after createIdentity', async function () { const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.api.createType('LitentryIdentity', twitter_identity).toHex(); + const identity_hex = context.sidechainRegistry + .createType('LitentryPrimitivesIdentity', twitter_identity) + .toHex(); const resp_id_graph = await checkIDGraph( context, @@ -301,7 +306,7 @@ describeLitentry('Test Identity', 0, (context) => { ['VerifyIdentityFailed'] ); const verified_event_datas = await handleIdentityEvents(context, aesKey, alice_resp_events, 'Failed'); - await checkErrorDetail(verified_event_datas, 'InvalidIdentity', false); + await checkErrorDetail(verified_event_datas, 'WrongWeb2Handle', false); }); step('verify wrong signature', async function () { const ethereum_identity = alice_identities[1]; @@ -386,7 +391,9 @@ describeLitentry('Test Identity', 0, (context) => { step('check IDGraph after verifyIdentity', async function () { const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.api.createType('LitentryIdentity', twitter_identity).toHex(); + const identity_hex = context.sidechainRegistry + .createType('LitentryPrimitivesIdentity', twitter_identity) + .toHex(); const resp_id_graph = await checkIDGraph( context, @@ -495,7 +502,9 @@ describeLitentry('Test Identity', 0, (context) => { step('check challengeCode from storage after removeIdentity', async function () { const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.api.createType('LitentryIdentity', twitter_identity).toHex(); + const identity_hex = context.sidechainRegistry + .createType('LitentryPrimitivesIdentity', twitter_identity) + .toHex(); const resp_challengecode = await checkUserChallengeCode( context, 'IdentityManagement', @@ -508,7 +517,9 @@ describeLitentry('Test Identity', 0, (context) => { step('check IDGraph after removeIdentity', async function () { const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.api.createType('LitentryIdentity', twitter_identity).toHex(); + const identity_hex = context.sidechainRegistry + .createType('LitentryPrimitivesIdentity', twitter_identity) + .toHex(); const resp_id_graph = await checkIDGraph( context, @@ -699,7 +710,7 @@ describeLitentry('Test Identity', 0, (context) => { ['UserShieldingKeySet'] )) as any as Event[]; const [event] = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); - await assertInitialIDGraphCreated(context.api, context.substrateWallet.eve, event); + await assertInitialIDGraphCreated(context, context.substrateWallet.eve, event); let identities = []; for (let i = 0; i < 64; i++) { @@ -732,7 +743,7 @@ describeLitentry('Test Identity', 0, (context) => { context, aesKey, create_identity_failed_events_raw, - 'CreateIdentityFailed' + 'Failed' ); assert.equal(create_identity_failed_events.length, 1); await checkErrorDetail(create_identity_failed_events, 'IDGraphLenLimitReached', false); diff --git a/tee-worker/ts-tests/tsconfig.json b/tee-worker/ts-tests/tsconfig.json index 4bc5ae62f0..0380840c7a 100644 --- a/tee-worker/ts-tests/tsconfig.json +++ b/tee-worker/ts-tests/tsconfig.json @@ -14,6 +14,7 @@ "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, + "resolveJsonModule": true, "baseUrl": "." } } From 4355e7bef629594ca9ee69d968f04318a5ad12b1 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 24 May 2023 21:35:39 +0800 Subject: [PATCH 15/25] remove toHex() --- tee-worker/ts-tests/common/utils/storage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tee-worker/ts-tests/common/utils/storage.ts b/tee-worker/ts-tests/common/utils/storage.ts index 783480f72e..a61aa8f757 100644 --- a/tee-worker/ts-tests/common/utils/storage.ts +++ b/tee-worker/ts-tests/common/utils/storage.ts @@ -105,7 +105,7 @@ export async function checkUserShieldingKeys( id: 1, }; let resp = await sendRequest(context.tee, request, context.api); - return resp.value.toHex(); + return resp.value; } export async function checkUserChallengeCode( @@ -126,7 +126,7 @@ export async function checkUserChallengeCode( id: 1, }; let resp = await sendRequest(context.tee, request, context.api); - return resp.value.toHex(); + return resp.value; } export async function checkIDGraph( From 5e7662f5ee901fc215fe968a8fc5197fb8f1879e Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 24 May 2023 23:33:53 +0800 Subject: [PATCH 16/25] fix ci & fix type --- tee-worker/ts-tests/batch.test.ts | 8 ++++++-- tee-worker/ts-tests/common/call.ts | 10 +++++----- tee-worker/ts-tests/common/type-definitions.ts | 3 ++- tee-worker/ts-tests/common/utils/assertion.ts | 17 +++++++++++++---- .../ts-tests/common/utils/identity-helper.ts | 11 +++++------ tee-worker/ts-tests/common/utils/storage.ts | 4 ++-- tee-worker/ts-tests/identity.test.ts | 2 +- 7 files changed, 34 insertions(+), 21 deletions(-) diff --git a/tee-worker/ts-tests/batch.test.ts b/tee-worker/ts-tests/batch.test.ts index f4bfd25579..402bb7d429 100644 --- a/tee-worker/ts-tests/batch.test.ts +++ b/tee-worker/ts-tests/batch.test.ts @@ -146,7 +146,9 @@ describeLitentry('Test Batch Utility', 0, (context) => { //query here in the hope that the status remains unchanged after verify error identity step('batch test:check IDGraph after verifyIdentity', async function () { for (let index = 0; index < identities.length; index++) { - const identity_hex = context.api.createType('LitentryIdentity', identities[index]).toHex(); + const identity_hex = context.sidechainRegistry + .createType('LitentryPrimitivesIdentity', identities[index]) + .toHex(); const resp_id_graph = await checkIDGraph( context, 'IdentityManagement', @@ -192,7 +194,9 @@ describeLitentry('Test Batch Utility', 0, (context) => { //query here in the hope that the status remains unchanged after removes error identity step('check IDGraph after removeIdentity', async function () { for (let index = 0; index < identities.length; index++) { - const identity_hex = context.api.createType('LitentryIdentity', identities[index]).toHex(); + const identity_hex = context.sidechainRegistry + .createType('LitentryPrimitivesIdentity', identities[index]) + .toHex(); const resp_id_graph = await checkIDGraph( context, diff --git a/tee-worker/ts-tests/common/call.ts b/tee-worker/ts-tests/common/call.ts index 0f80a322da..54fc543b85 100644 --- a/tee-worker/ts-tests/common/call.ts +++ b/tee-worker/ts-tests/common/call.ts @@ -1,11 +1,11 @@ import { ApiPromise } from '@polkadot/api'; import { Metadata, TypeRegistry } from '@polkadot/types'; import type { Bytes } from '@polkadot/types-codec'; -import { u8aToHex, hexToU8a, compactAddLength, compactStripLength, u8aToString, bufferToU8a } from '@polkadot/util'; +import { hexToU8a, compactAddLength, compactStripLength, u8aToString } from '@polkadot/util'; import WebSocketAsPromised from 'websocket-as-promised'; import { HexString } from '@polkadot/util/types'; -import { RequestBody, WorkerRpcReturnValue } from '../common/type-definitions'; -import sidechainMetaData from '../litentry-sidechain-metadata.json'; +import { RequestBody } from '../common/type-definitions'; +import { WorkerRpcReturnValue } from '../parachain-interfaces/identity/types'; // send RPC request export async function sendRequest( wsClient: WebSocketAsPromised, @@ -28,8 +28,8 @@ export async function sendRequest( // decode the returned bytes as string // please note we shouldn't use toU8a(), which encodes the Bytes instead of converting -export function decodeRpcBytesAsString(value: HexString): string { - return u8aToString(compactStripLength(hexToU8a(value))[1]); +export function decodeRpcBytesAsString(value: Bytes): string { + return u8aToString(compactStripLength(hexToU8a(value.toHex()))[1]); } export async function getSidechainMetadata( diff --git a/tee-worker/ts-tests/common/type-definitions.ts b/tee-worker/ts-tests/common/type-definitions.ts index 539a665b00..9fa50e7c0d 100644 --- a/tee-worker/ts-tests/common/type-definitions.ts +++ b/tee-worker/ts-tests/common/type-definitions.ts @@ -14,6 +14,7 @@ import type { LitentryPrimitivesIdentitySubstrateNetwork, LitentryPrimitivesIdentityEvmNetwork, LitentryPrimitivesIdentityWeb2Network, + PalletIdentityManagementTeeIdentityContext, } from '@polkadot/types/lookup'; export { teeTypes }; @@ -148,7 +149,7 @@ export type Web3Network = { export type IdentityGenericEvent = { who: HexString; identity: LitentryIdentity; - idGraph: [LitentryIdentity, IdentityContext][]; + idGraph: [LitentryIdentity, PalletIdentityManagementTeeIdentityContext][]; challengeCode?: HexString; }; diff --git a/tee-worker/ts-tests/common/utils/assertion.ts b/tee-worker/ts-tests/common/utils/assertion.ts index fccc15ea86..5720ad1bd0 100644 --- a/tee-worker/ts-tests/common/utils/assertion.ts +++ b/tee-worker/ts-tests/common/utils/assertion.ts @@ -34,9 +34,18 @@ export async function assertInitialIDGraphCreated( assert.isTrue(isEqual(event.idGraph[0][0], expected_identity)); // check identityContext in idgraph - assert.equal(event.idGraph[0][1].linking_request_block, 0); - assert.equal(event.idGraph[0][1].verification_request_block, 0); - assert.isTrue(event.idGraph[0][1].is_verified); + console.log(event.idGraph[0][1]); + + const creationRequestBlock = event.idGraph[0][1].creationRequestBlock.isSome + ? event.idGraph[0][1].creationRequestBlock.unwrap().toNumber() + : event.idGraph[0][1].creationRequestBlock; + const verificationRequestBlock = event.idGraph[0][1].verificationRequestBlock.isSome + ? event.idGraph[0][1].verificationRequestBlock.unwrap().toNumber() + : event.idGraph[0][1].verificationRequestBlock; + + assert.equal(creationRequestBlock, 0); + assert.equal(verificationRequestBlock, 0); + assert.isTrue(event.idGraph[0][1].isVerified); } export function assertIdentityVerified(signer: KeyringPair, eventDatas: IdentityGenericEvent[]) { @@ -57,7 +66,7 @@ export function assertIdentityVerified(signer: KeyringPair, eventDatas: Identity const data = eventDatas[eventDatas.length - 1]; for (let i = 0; i < eventDatas[eventDatas.length - 1].idGraph.length; i++) { if (isEqual(data.idGraph[i][0], data.identity)) { - assert.isTrue(data.idGraph[i][1].is_verified, 'identity should be verified'); + assert.isTrue(data.idGraph[i][1].isVerified, 'identity should be verified'); } } assert.equal(data?.who, u8aToHex(signer.addressRaw), 'check caller error'); diff --git a/tee-worker/ts-tests/common/utils/identity-helper.ts b/tee-worker/ts-tests/common/utils/identity-helper.ts index 6366a36c4e..41f89f62bc 100644 --- a/tee-worker/ts-tests/common/utils/identity-helper.ts +++ b/tee-worker/ts-tests/common/utils/identity-helper.ts @@ -1,4 +1,3 @@ -import { ApiPromise } from '@polkadot/api'; import { KeyringPair } from '@polkadot/keyring/types'; import { HexString } from '@polkadot/util/types'; import { hexToU8a, u8aToHex } from '@polkadot/util'; @@ -180,11 +179,11 @@ export function createIdentityEvent( : undefined; let idGraph = idGraphString ? sidechainRegistry - .createType( - 'Vec<(LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext)>', - idGraphString - ) - .toJSON() + .createType( + 'Vec<(LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext)>', + idGraphString + ) + .toJSON() : undefined; return { who, diff --git a/tee-worker/ts-tests/common/utils/storage.ts b/tee-worker/ts-tests/common/utils/storage.ts index a61aa8f757..783480f72e 100644 --- a/tee-worker/ts-tests/common/utils/storage.ts +++ b/tee-worker/ts-tests/common/utils/storage.ts @@ -105,7 +105,7 @@ export async function checkUserShieldingKeys( id: 1, }; let resp = await sendRequest(context.tee, request, context.api); - return resp.value; + return resp.value.toHex(); } export async function checkUserChallengeCode( @@ -126,7 +126,7 @@ export async function checkUserChallengeCode( id: 1, }; let resp = await sendRequest(context.tee, request, context.api); - return resp.value; + return resp.value.toHex(); } export async function checkIDGraph( diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index 08211f033c..6137d818ba 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -306,7 +306,7 @@ describeLitentry('Test Identity', 0, (context) => { ['VerifyIdentityFailed'] ); const verified_event_datas = await handleIdentityEvents(context, aesKey, alice_resp_events, 'Failed'); - await checkErrorDetail(verified_event_datas, 'WrongWeb2Handle', false); + await checkErrorDetail(verified_event_datas, 'InvalidIdentity', false); }); step('verify wrong signature', async function () { const ethereum_identity = alice_identities[1]; From 18c8e50510dd7fb407c3be9dea613d1e3baf5e98 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 31 May 2023 14:52:28 +0800 Subject: [PATCH 17/25] refactor identity&validation types --- tee-worker/ts-tests/batch.test.ts | 48 +++- tee-worker/ts-tests/bulk_identity.test.ts | 37 +++- .../ts-tests/common/type-definitions.ts | 81 +------ tee-worker/ts-tests/common/utils/assertion.ts | 51 ++--- tee-worker/ts-tests/common/utils/common.ts | 6 +- .../ts-tests/common/utils/identity-helper.ts | 83 ++++--- tee-worker/ts-tests/identity.test.ts | 205 +++++++++++------- 7 files changed, 268 insertions(+), 243 deletions(-) diff --git a/tee-worker/ts-tests/batch.test.ts b/tee-worker/ts-tests/batch.test.ts index 402bb7d429..3b17b47b77 100644 --- a/tee-worker/ts-tests/batch.test.ts +++ b/tee-worker/ts-tests/batch.test.ts @@ -11,7 +11,6 @@ import { import { u8aToHex } from '@polkadot/util'; import { step } from 'mocha-steps'; import { assert } from 'chai'; -import { LitentryIdentity, LitentryValidationData } from './common/type-definitions'; import { multiAccountTxSender, sendTxsWithUtility } from './common/transactions'; import { generateWeb3Wallets, @@ -20,10 +19,12 @@ import { assertIdentityRemoved, } from './common/utils'; import { ethers } from 'ethers'; - +import { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; +import type { LitentryValidationData } from './parachain-interfaces/identity/types'; +import type { IdentityGenericEvent } from './common/type-definitions'; describeLitentry('Test Batch Utility', 0, (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; - let identities: LitentryIdentity[] = []; + let identities: LitentryPrimitivesIdentity[] = []; let validations: LitentryValidationData[] = []; var ethereumSigners: ethers.Wallet[] = []; @@ -43,7 +44,12 @@ describeLitentry('Test Batch Utility', 0, (context) => { 'identityManagement', ['UserShieldingKeySet'] ); - const [alice] = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); + const [alice] = (await handleIdentityEvents( + context, + aesKey, + resp_events, + 'UserShieldingKeySet' + )) as IdentityGenericEvent[]; assert.equal( alice.who, u8aToHex(context.substrateWallet.alice.addressRaw), @@ -54,7 +60,7 @@ describeLitentry('Test Batch Utility', 0, (context) => { step('batch test: create identities', async function () { for (let index = 0; index < ethereumSigners.length; index++) { const signer = ethereumSigners[index]; - const ethereum_identity = await buildIdentityHelper(signer.address, 'Ethereum', 'Evm'); + const ethereum_identity = await buildIdentityHelper(signer.address, 'Ethereum', 'Evm', context); identities.push(ethereum_identity); //check idgraph from sidechain storage before create @@ -88,8 +94,13 @@ describeLitentry('Test Batch Utility', 0, (context) => { 'identityManagement', ['IdentityCreated'] ); - const event_datas = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityCreated'); - for (let i = 0; i < event_datas.length; i++) { + const event_datas = (await handleIdentityEvents( + context, + aesKey, + resp_events, + 'IdentityCreated' + )) as IdentityGenericEvent[]; + for (let i = 0; i < [event_datas].length; i++) { assertIdentityCreated(context.substrateWallet.alice, event_datas[i]); } const ethereum_validations = await buildValidations( @@ -124,7 +135,12 @@ describeLitentry('Test Batch Utility', 0, (context) => { 'IdentityVerified', ]); - let event_datas = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityVerified'); + let event_datas = (await handleIdentityEvents( + context, + aesKey, + resp_events, + 'IdentityVerified' + )) as IdentityGenericEvent[]; assertIdentityVerified(context.substrateWallet.alice, event_datas); }); @@ -140,7 +156,7 @@ describeLitentry('Test Batch Utility', 0, (context) => { let resp_events = await sendTxsWithUtility(context, context.substrateWallet.alice, txs, 'identityManagement', [ 'VerifyIdentityFailed', ]); - const resp_event_datas = await handleIdentityEvents(context, aesKey, resp_events, 'Failed'); + const resp_event_datas = (await handleIdentityEvents(context, aesKey, resp_events, 'Failed')) as string[]; await checkErrorDetail(resp_event_datas, 'ChallengeCodeNotFound', false); }); //query here in the hope that the status remains unchanged after verify error identity @@ -173,7 +189,12 @@ describeLitentry('Test Batch Utility', 0, (context) => { 'identityManagement', ['IdentityRemoved'] ); - const resp_event_datas = await handleIdentityEvents(context, aesKey, resp_remove_events, 'IdentityRemoved'); + const resp_event_datas = (await handleIdentityEvents( + context, + aesKey, + resp_remove_events, + 'IdentityRemoved' + )) as IdentityGenericEvent[]; for (let i = 0; i < resp_event_datas.length; i++) { assertIdentityRemoved(context.substrateWallet.alice, resp_event_datas[i]); } @@ -187,7 +208,12 @@ describeLitentry('Test Batch Utility', 0, (context) => { 'identityManagement', ['RemoveIdentityFailed'] ); - const resp_event_datas = await handleIdentityEvents(context, aesKey, resp_remove_events, 'Failed'); + const resp_event_datas = (await handleIdentityEvents( + context, + aesKey, + resp_remove_events, + 'Failed' + )) as string[]; await checkErrorDetail(resp_event_datas, 'IdentityNotExist', false); }); diff --git a/tee-worker/ts-tests/bulk_identity.test.ts b/tee-worker/ts-tests/bulk_identity.test.ts index d07da8f71a..7896ce7013 100644 --- a/tee-worker/ts-tests/bulk_identity.test.ts +++ b/tee-worker/ts-tests/bulk_identity.test.ts @@ -10,7 +10,9 @@ import { } from './common/utils'; import { KeyringPair } from '@polkadot/keyring/types'; import { ethers } from 'ethers'; -import { LitentryIdentity, LitentryValidationData, BatchCall } from './common/type-definitions'; +import { BatchCall, IdentityGenericEvent } from './common/type-definitions'; +import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; +import type { LitentryValidationData } from './parachain-interfaces/identity/types'; import { handleIdentityEvents } from './common/utils'; import { assert } from 'chai'; import { listenEvent, multiAccountTxSender } from './common/transactions'; @@ -21,12 +23,12 @@ import { Vec } from '@polkadot/types'; //1.The "number" parameter in describeLitentry represents the number of accounts generated, including Substrate wallets and Ethereum wallets.If you want to use a large number of accounts for testing, you can modify this parameter. //2.Each time the test code is executed, new wallet account will be used. -describeLitentry('multiple accounts test', 10, async (context) => { +describeLitentry('multiple accounts test', 2, async (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; var substraetSigners: KeyringPair[] = []; var ethereumSigners: ethers.Wallet[] = []; var web3Validations: LitentryValidationData[] = []; - var identities: LitentryIdentity[] = []; + var identities: LitentryPrimitivesIdentity[] = []; step('setup signers', async () => { substraetSigners = context.web3Signers.map((web3Signer) => { return web3Signer.substrateWallet; @@ -73,7 +75,7 @@ describeLitentry('multiple accounts test', 10, async (context) => { //test identity with multiple accounts step('test createIdentity with multiple accounts', async () => { for (let index = 0; index < ethereumSigners.length; index++) { - let identity = await buildIdentityHelper(ethereumSigners[index].address, 'Ethereum', 'Evm'); + let identity = await buildIdentityHelper(ethereumSigners[index].address, 'Ethereum', 'Evm', context); identities.push(identity); } @@ -82,7 +84,12 @@ describeLitentry('multiple accounts test', 10, async (context) => { const resp_events = await multiAccountTxSender(context, txs, substraetSigners, 'identityManagement', [ 'IdentityCreated', ]); - const resp_events_datas = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityCreated'); + const resp_events_datas = (await handleIdentityEvents( + context, + aesKey, + resp_events, + 'IdentityCreated' + )) as IdentityGenericEvent[]; assert.equal(resp_events.length, identities.length, 'create identities with multiple accounts check fail'); @@ -108,10 +115,15 @@ describeLitentry('multiple accounts test', 10, async (context) => { 'IdentityVerified', ]); assert.equal(resp_events.length, txs.length, 'verify identities with multiple accounts check fail'); - const [resp_events_datas] = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityVerified'); - for (let index = 0; index < resp_events_datas.length; index++) { + const [resp_events_datas] = (await handleIdentityEvents( + context, + aesKey, + resp_events, + 'IdentityVerified' + )) as IdentityGenericEvent[]; + for (let index = 0; index < [resp_events_datas].length; index++) { console.log('verifyIdentity', index); - assertIdentityVerified(substraetSigners[index], resp_events_datas); + assertIdentityVerified(substraetSigners[index], [resp_events_datas]); } }); @@ -122,8 +134,13 @@ describeLitentry('multiple accounts test', 10, async (context) => { 'IdentityRemoved', ]); assert.equal(resp_events.length, txs.length, 'remove identities with multiple accounts check fail'); - const [resp_events_datas] = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityRemoved'); - for (let index = 0; index < resp_events_datas.length; index++) { + const [resp_events_datas] = (await handleIdentityEvents( + context, + aesKey, + resp_events, + 'IdentityRemoved' + )) as IdentityGenericEvent[]; + for (let index = 0; index < [resp_events_datas].length; index++) { console.log('verifyIdentity', index); assertIdentityRemoved(substraetSigners[index], resp_events_datas); } diff --git a/tee-worker/ts-tests/common/type-definitions.ts b/tee-worker/ts-tests/common/type-definitions.ts index 9fa50e7c0d..9008407412 100644 --- a/tee-worker/ts-tests/common/type-definitions.ts +++ b/tee-worker/ts-tests/common/type-definitions.ts @@ -15,6 +15,7 @@ import type { LitentryPrimitivesIdentityEvmNetwork, LitentryPrimitivesIdentityWeb2Network, PalletIdentityManagementTeeIdentityContext, + LitentryPrimitivesIdentity, } from '@polkadot/types/lookup'; export { teeTypes }; @@ -67,80 +68,11 @@ export class AESOutput { nonce?: Uint8Array; } -//identity types -export type LitentryIdentity = { - Substrate?: SubstrateIdentity; - Evm?: EvmIdentity; - Web2?: Web2Identity; -}; - -export type SubstrateIdentity = { - network: SubstrateNetwork; - address: HexString; -}; - -export type EvmIdentity = { - network: EvmNetwork; - address: HexString; -}; - -export type Web2Identity = { - network: Web2Network; - address: string; -}; - -export type LitentryValidationData = { - Web2Validation?: Web2ValidationData; - Web3Validation?: Web3ValidationData; -}; - -export type Web2ValidationData = { - Twitter?: TwitterValidationData; - Discord?: DiscordValidationData; -}; - -export type Web3ValidationData = { - Substrate?: Web3CommonValidationData; - Evm?: Web3CommonValidationData; -}; - -export type Web3CommonValidationData = { - message: HexString; - signature: IdentityMultiSignature; -}; - -export type IdentityMultiSignature = { - Ethereum?: HexString; - Ed25519?: HexString; - Sr25519?: HexString; -}; - -export type Ed25519Signature = { - Ed25519: HexString; - Sr25519: HexString; - Ecdsa: HexString; - Ethereum: EthereumSignature; -}; - -export type EthereumSignature = HexString; - -export type TwitterValidationData = { - tweet_id: HexString; -}; - -export type DiscordValidationData = { - channel_id: HexString; - message_id: HexString; - guild_id: HexString; -}; - export type Web3Wallets = { substrateWallet: KeyringPair; ethereumWallet: Wallet; }; -// export type DiscordValidationData = {} - export type Web3Network = { Substrate?: SubstrateNetwork; Evm?: EvmNetwork; @@ -148,18 +80,11 @@ export type Web3Network = { export type IdentityGenericEvent = { who: HexString; - identity: LitentryIdentity; - idGraph: [LitentryIdentity, PalletIdentityManagementTeeIdentityContext][]; + identity: LitentryPrimitivesIdentity; + idGraph: [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][]; challengeCode?: HexString; }; -export type IdentityContext = { - metadata?: HexString; - linking_request_block?: number; - verification_request_block?: number; - is_verified: boolean; -}; - //vc types export type VCRequested = { account: HexString; diff --git a/tee-worker/ts-tests/common/utils/assertion.ts b/tee-worker/ts-tests/common/utils/assertion.ts index 5720ad1bd0..e72c17adf2 100644 --- a/tee-worker/ts-tests/common/utils/assertion.ts +++ b/tee-worker/ts-tests/common/utils/assertion.ts @@ -6,14 +6,9 @@ import { hexToU8a, u8aToHex } from '@polkadot/util'; import Ajv from 'ajv'; import { assert, expect } from 'chai'; import * as ed from '@noble/ed25519'; -import { - EnclaveResult, - IdentityGenericEvent, - JsonSchema, - LitentryIdentity, - IntegrationTestContext, -} from '../type-definitions'; +import { EnclaveResult, IdentityGenericEvent, JsonSchema, IntegrationTestContext } from '../type-definitions'; import { buildIdentityHelper } from './identity-helper'; +import { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; import { isEqual, isArrayEqual } from './common'; export async function assertInitialIDGraphCreated( context: IntegrationTestContext, @@ -23,34 +18,36 @@ export async function assertInitialIDGraphCreated( assert.equal(event.who, u8aToHex(signer.addressRaw)); assert.equal(event.idGraph.length, 1); // check identity in idgraph - const expected_identity = context.sidechainRegistry.createType( + const expected_identity: LitentryPrimitivesIdentity = context.sidechainRegistry.createType( 'LitentryPrimitivesIdentity', await buildIdentityHelper( u8aToHex(signer.addressRaw), process.env.NODE_ENV === 'local' ? 'TestNet' : 'LitentryRococo', - 'Substrate' + 'Substrate', + context ) - ) as LitentryIdentity; + ) as any; + + const expected_target = expected_identity[`as${expected_identity.type}`]; + const idGraph_target = event.idGraph[0][0][`as${event.idGraph[0][0].type}`]; + + assert.equal(expected_target.toString(), idGraph_target.toString()); - assert.isTrue(isEqual(event.idGraph[0][0], expected_identity)); // check identityContext in idgraph - console.log(event.idGraph[0][1]); - - const creationRequestBlock = event.idGraph[0][1].creationRequestBlock.isSome - ? event.idGraph[0][1].creationRequestBlock.unwrap().toNumber() - : event.idGraph[0][1].creationRequestBlock; - const verificationRequestBlock = event.idGraph[0][1].verificationRequestBlock.isSome - ? event.idGraph[0][1].verificationRequestBlock.unwrap().toNumber() - : event.idGraph[0][1].verificationRequestBlock; - - assert.equal(creationRequestBlock, 0); - assert.equal(verificationRequestBlock, 0); - assert.isTrue(event.idGraph[0][1].isVerified); + const idGraph_context = event.idGraph[0][1].toHuman(); + + const creation_request_block = idGraph_context.creationRequestBlock; + const verification_request_block = idGraph_context.verificationRequestBlock; + + assert.equal(creation_request_block, 0); + assert.equal(verification_request_block, 0); + + assert.isTrue(idGraph_context.isVerified); } export function assertIdentityVerified(signer: KeyringPair, eventDatas: IdentityGenericEvent[]) { - let event_identities: LitentryIdentity[] = []; - let idgraph_identities: LitentryIdentity[] = []; + let event_identities: LitentryPrimitivesIdentity[] = []; + let idgraph_identities: LitentryPrimitivesIdentity[] = []; for (let index = 0; index < eventDatas.length; index++) { event_identities.push(eventDatas[index].identity); } @@ -72,11 +69,11 @@ export function assertIdentityVerified(signer: KeyringPair, eventDatas: Identity assert.equal(data?.who, u8aToHex(signer.addressRaw), 'check caller error'); } -export function assertIdentityCreated(signer: KeyringPair, identityEvent: IdentityGenericEvent | undefined) { +export function assertIdentityCreated(signer: KeyringPair, identityEvent: IdentityGenericEvent) { assert.equal(identityEvent?.who, u8aToHex(signer.addressRaw), 'check caller error'); } -export function assertIdentityRemoved(signer: KeyringPair, identityEvent: IdentityGenericEvent | undefined) { +export function assertIdentityRemoved(signer: KeyringPair, identityEvent: IdentityGenericEvent) { assert.equal(identityEvent?.idGraph, null, 'check idGraph error,should be null after removed'); assert.equal(identityEvent?.who, u8aToHex(signer.addressRaw), 'check caller error'); } diff --git a/tee-worker/ts-tests/common/utils/common.ts b/tee-worker/ts-tests/common/utils/common.ts index c9b35b1384..cdba82c8f2 100644 --- a/tee-worker/ts-tests/common/utils/common.ts +++ b/tee-worker/ts-tests/common/utils/common.ts @@ -1,17 +1,17 @@ import { LitentryIdentity } from '../type-definitions'; - +import { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; export function sleep(secs: number) { return new Promise((resolve) => { setTimeout(resolve, secs * 1000); }); } -export function isEqual(obj1: LitentryIdentity, obj2: LitentryIdentity) { +export function isEqual(obj1: LitentryPrimitivesIdentity, obj2: LitentryPrimitivesIdentity) { return JSON.stringify(obj1) === JSON.stringify(obj2); } // campare two array of event_identities idgraph_identities whether equal -export function isArrayEqual(arr1: LitentryIdentity[], arr2: LitentryIdentity[]) { +export function isArrayEqual(arr1: LitentryPrimitivesIdentity[], arr2: LitentryPrimitivesIdentity[]) { if (arr1.length !== arr2.length) { return false; } diff --git a/tee-worker/ts-tests/common/utils/identity-helper.ts b/tee-worker/ts-tests/common/utils/identity-helper.ts index 41f89f62bc..0aa28214a8 100644 --- a/tee-worker/ts-tests/common/utils/identity-helper.ts +++ b/tee-worker/ts-tests/common/utils/identity-helper.ts @@ -7,7 +7,7 @@ import { IdentityGenericEvent, IntegrationTestContext, LitentryIdentity, - LitentryValidationData, + // LitentryValidationData, SubstrateNetwork, Web2Network, } from '../type-definitions'; @@ -16,6 +16,8 @@ import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; import { assert } from 'chai'; import { ethers } from 'ethers'; import { TypeRegistry } from '@polkadot/types'; +import type { LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext } from '@polkadot/types/lookup'; +import type { LitentryValidationData } from '../../parachain-interfaces/identity/types'; // + + export function generateVerificationMessage( context: IntegrationTestContext, @@ -31,22 +33,27 @@ export function generateVerificationMessage( export async function buildIdentityHelper( address: HexString | string, network: SubstrateNetwork | EvmNetwork | Web2Network, - type: 'Evm' | 'Substrate' | 'Web2' -): Promise { - const identity: LitentryIdentity = { + type: LitentryPrimitivesIdentity['type'], + context: IntegrationTestContext +): Promise { + const identity = { [type]: { address, network, }, }; - return identity; + const encoded_identity: LitentryPrimitivesIdentity = context.sidechainRegistry.createType( + 'LitentryPrimitivesIdentity', + identity + ) as any; + return encoded_identity; } //If multiple transactions are built from multiple accounts, pass the signers as an array. If multiple transactions are built from a single account, signers cannot be an array. export async function buildIdentityTxs( context: IntegrationTestContext, signers: KeyringPair[] | KeyringPair, - identities: any[], + identities: LitentryPrimitivesIdentity[], method: 'setUserShieldingKey' | 'createIdentity' | 'verifyIdentity' | 'removeIdentity', validations?: LitentryValidationData[] ): Promise { @@ -60,9 +67,8 @@ export async function buildIdentityTxs( const identity = identities[k]; let tx: SubmittableExtrinsic; let nonce: number; - const encod_identity = context.sidechainRegistry.createType('LitentryPrimitivesIdentity', identity); - - const ciphertext_identity = encryptWithTeeShieldingKey(teeShieldingKey, encod_identity.toU8a()).toString('hex'); + const ciphertext_identity = + identity && encryptWithTeeShieldingKey(teeShieldingKey, identity.toU8a()).toString('hex'); nonce = (await api.rpc.system.accountNextIndex(signer.address)).toNumber(); switch (method) { @@ -83,10 +89,9 @@ export async function buildIdentityTxs( break; case 'verifyIdentity': const data = validations![k]; - const encode_verifyIdentity_validation = api.createType('LitentryValidationData', data).toU8a(); const ciphertext_verifyIdentity_validation = encryptWithTeeShieldingKey( teeShieldingKey, - encode_verifyIdentity_validation + data.toU8a() ).toString('hex'); tx = api.tx.identityManagement.verifyIdentity( mrEnclave, @@ -111,8 +116,8 @@ export async function handleIdentityEvents( aesKey: HexString, events: any[], type: 'UserShieldingKeySet' | 'IdentityCreated' | 'IdentityVerified' | 'IdentityRemoved' | 'Failed' -): Promise { - let results: IdentityGenericEvent[] = []; +): Promise<(IdentityGenericEvent | string)[]> { + let results: (IdentityGenericEvent | string)[] = []; for (let index = 0; index < events.length; index++) { switch (type) { @@ -158,7 +163,7 @@ export async function handleIdentityEvents( ); break; case 'Failed': - results.push(events[index].data.detail.toHuman()); + results.push(events[index].data.detail.toHuman() as string); break; } } @@ -174,16 +179,14 @@ export function createIdentityEvent( idGraphString?: HexString, challengeCode?: HexString ): IdentityGenericEvent { - let identity = identityString - ? sidechainRegistry.createType('LitentryPrimitivesIdentity', identityString).toJSON() + let identity: LitentryPrimitivesIdentity = identityString + ? (sidechainRegistry.createType('LitentryPrimitivesIdentity', identityString) as any) : undefined; - let idGraph = idGraphString - ? sidechainRegistry - .createType( - 'Vec<(LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext)>', - idGraphString - ) - .toJSON() + let idGraph: [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][] = idGraphString + ? (sidechainRegistry.createType( + 'Vec<(LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext)>', + idGraphString + ) as any) : undefined; return { who, @@ -218,7 +221,7 @@ export async function buildValidations( identities[index] ); if (network === 'ethereum') { - const ethereumValidationData: LitentryValidationData = { + const ethereumValidationData = { Web3Validation: { Evm: { message: '' as HexString, @@ -229,18 +232,22 @@ export async function buildValidations( }, }; console.log('post verification msg to ethereum: ', msg); - ethereumValidationData!.Web3Validation!.Evm!.message = msg; + ethereumValidationData.Web3Validation.Evm.message = msg; const msgHash = ethers.utils.arrayify(msg); signature_ethereum = (await ethereumSigner!.signMessage(msgHash)) as HexString; console.log('signature_ethereum', ethereumSigners![index].address, signature_ethereum); - ethereumValidationData!.Web3Validation!.Evm!.signature!.Ethereum = signature_ethereum; + ethereumValidationData!.Web3Validation.Evm.signature.Ethereum = signature_ethereum; assert.isNotEmpty(data.challengeCode, 'ethereum challengeCode empty'); console.log('ethereumValidationData', ethereumValidationData); + const encode_verifyIdentity_validation: LitentryValidationData = context.api.createType( + 'LitentryValidationData', + ethereumValidationData + ) as any; - verifyDatas.push(ethereumValidationData); + verifyDatas.push(encode_verifyIdentity_validation); } else if (network === 'substrate') { - const substrateValidationData: LitentryValidationData = { + const substrateValidationData = { Web3Validation: { Substrate: { message: '' as HexString, @@ -251,21 +258,31 @@ export async function buildValidations( }, }; console.log('post verification msg to substrate: ', msg); - substrateValidationData!.Web3Validation!.Substrate!.message = msg; + substrateValidationData.Web3Validation.Substrate.message = msg; signature_substrate = substrateSigner.sign(msg) as Uint8Array; - substrateValidationData!.Web3Validation!.Substrate!.signature!.Sr25519 = u8aToHex(signature_substrate); + substrateValidationData!.Web3Validation.Substrate.signature.Sr25519 = u8aToHex(signature_substrate); assert.isNotEmpty(data.challengeCode, 'substrate challengeCode empty'); - verifyDatas.push(substrateValidationData); + const encode_verifyIdentity_validation: LitentryValidationData = context.api.createType( + 'LitentryValidationData', + substrateValidationData + ) as any; + verifyDatas.push(encode_verifyIdentity_validation); } else if (network === 'twitter') { console.log('post verification msg to twitter', msg); - const twitterValidationData: LitentryValidationData = { + const twitterValidationData = { Web2Validation: { Twitter: { tweet_id: `0x${Buffer.from('100', 'utf8').toString('hex')}`, }, }, }; - verifyDatas.push(twitterValidationData); + + const encode_verifyIdentity_validation: LitentryValidationData = context.api.createType( + 'LitentryValidationData', + twitterValidationData + ) as any; + + verifyDatas.push(encode_verifyIdentity_validation); assert.isNotEmpty(data.challengeCode, 'twitter challengeCode empty'); } } diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index 6137d818ba..f9fe3fde6e 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -3,7 +3,6 @@ import { encryptWithTeeShieldingKey, generateVerificationMessage, checkErrorDetail, - checkUserShieldingKeys, checkUserChallengeCode, checkIDGraph, buildIdentityHelper, @@ -11,27 +10,26 @@ import { handleIdentityEvents, buildValidations, assertInitialIDGraphCreated, + checkUserShieldingKeys, } from './common/utils'; + import { hexToU8a, u8aConcat, u8aToHex, u8aToU8a, stringToU8a } from '@polkadot/util'; import { step } from 'mocha-steps'; import { assert } from 'chai'; -import { - LitentryIdentity, - LitentryValidationData, - SubstrateIdentity, - TransactionSubmit, -} from './common/type-definitions'; +import { IdentityGenericEvent, TransactionSubmit } from './common/type-definitions'; import { HexString } from '@polkadot/util/types'; import { multiAccountTxSender, sendTxsWithUtility } from './common/transactions'; import { assertIdentityVerified, assertIdentityCreated, assertIdentityRemoved } from './common/utils'; +import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; +import type { LitentryValidationData } from './parachain-interfaces/identity/types'; +import { Event } from '@polkadot/types/interfaces'; import { ethers } from 'ethers'; -const substrateExtensionIdentity = { - Substrate: { +const substrateExtensionIdentity: LitentryPrimitivesIdentity = { + Substrate: { address: '0x8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48', //Bob network: 'Litentry', }, -}; -import { Event } from '@polkadot/types/interfaces'; +} as any; describeLitentry('Test Identity', 0, (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; const errorAesKey = '0xError'; @@ -39,16 +37,15 @@ describeLitentry('Test Identity', 0, (context) => { //random wrong msg const wrong_msg = '0x693d9131808e7a8574c7ea5eb7813bdf356223263e61fa8fe2ee8e434508bc75'; var signature_substrate; - let alice_identities: LitentryIdentity[] = []; - let bob_identities: LitentryIdentity[] = []; + let alice_identities: LitentryPrimitivesIdentity[] = []; + let bob_identities: LitentryPrimitivesIdentity[] = []; let alice_validations: LitentryValidationData[] = []; let bob_validations: LitentryValidationData[] = []; step('check user sidechain storage before create', async function () { - const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.sidechainRegistry - .createType('LitentryPrimitivesIdentity', twitter_identity) - .toHex(); + const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); + + const identity_hex = twitter_identity.toHex(); const resp_shieldingKey = await checkUserShieldingKeys( context, @@ -70,7 +67,7 @@ describeLitentry('Test Identity', 0, (context) => { }); step('Invalid user shielding key', async function () { - let identity = await buildIdentityHelper(context.ethersWallet.alice.address, 'Ethereum', 'Evm'); + let identity = await buildIdentityHelper(context.ethersWallet.alice.address, 'Ethereum', 'Evm', context); let txs = await buildIdentityTxs(context, context.substrateWallet.alice, [identity], 'createIdentity'); let resp_events = await sendTxsWithUtility(context, context.substrateWallet.alice, txs, 'identityManagement', [ @@ -99,7 +96,12 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['UserShieldingKeySet'] ); - const [alice, bob] = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); + const [alice, bob] = (await handleIdentityEvents( + context, + aesKey, + resp_events, + 'UserShieldingKeySet' + )) as IdentityGenericEvent[]; await assertInitialIDGraphCreated(context, context.substrateWallet.alice, alice); await assertInitialIDGraphCreated(context, context.substrateWallet.bob, bob); }); @@ -119,9 +121,10 @@ describeLitentry('Test Identity', 0, (context) => { const main_identity = await buildIdentityHelper( u8aToHex(context.substrateWallet.alice.addressRaw), process.env.NODE_ENV === 'local' ? 'TestNet' : 'LitentryRococo', - 'Substrate' + 'Substrate', + context ); - const identity_hex = context.sidechainRegistry.createType('LitentryPrimitivesIdentity', main_identity).toHex(); + const identity_hex = main_identity.toHex(); const resp_id_graph = await checkIDGraph( context, 'IdentityManagement', @@ -140,19 +143,26 @@ describeLitentry('Test Identity', 0, (context) => { }); step('create identities', async function () { //Alice - const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const ethereum_identity = await buildIdentityHelper(context.ethersWallet.alice.address, 'Ethereum', 'Evm'); + const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); + const ethereum_identity = await buildIdentityHelper( + context.ethersWallet.alice.address, + 'Ethereum', + 'Evm', + context + ); const alice_substrate_identity = await buildIdentityHelper( u8aToHex(context.substrateWallet.alice.addressRaw), 'Litentry', - 'Substrate' + 'Substrate', + context ); //Bob const bob_substrate_identity = await buildIdentityHelper( u8aToHex(context.substrateWallet.bob.addressRaw), 'Litentry', - 'Substrate' + 'Substrate', + context ); alice_identities = [twitter_identity, ethereum_identity, alice_substrate_identity]; @@ -174,12 +184,12 @@ describeLitentry('Test Identity', 0, (context) => { ['IdentityCreated'] ); - const [twitter_event_data, ethereum_event_data, substrate_event_data] = await handleIdentityEvents( + const [twitter_event_data, ethereum_event_data, substrate_event_data] = (await handleIdentityEvents( context, aesKey, alice_resp_events, 'IdentityCreated' - ); + )) as IdentityGenericEvent[]; //Alice check twitter identity assertIdentityCreated(context.substrateWallet.alice, twitter_event_data); @@ -231,12 +241,17 @@ describeLitentry('Test Identity', 0, (context) => { ['IdentityCreated'] ); - const [resp_extension_data] = await handleIdentityEvents(context, aesKey, bob_resp_events, 'IdentityCreated'); + const [resp_extension_data] = (await handleIdentityEvents( + context, + aesKey, + bob_resp_events, + 'IdentityCreated' + )) as IdentityGenericEvent[]; assertIdentityCreated(context.substrateWallet.bob, resp_extension_data); if (resp_extension_data) { console.log('substrateExtensionIdentity challengeCode: ', resp_extension_data.challengeCode); - const substrateExtensionValidationData = { + const substrateExtensionValidationData = { Web3Validation: { Substrate: { message: `0x${Buffer.from('mock_message', 'utf8').toString('hex')}`, @@ -245,7 +260,7 @@ describeLitentry('Test Identity', 0, (context) => { }, }, }, - }; + } as any; const msg = generateVerificationMessage( context, hexToU8a(resp_extension_data.challengeCode), @@ -253,23 +268,25 @@ describeLitentry('Test Identity', 0, (context) => { substrateExtensionIdentity ); console.log('post verification msg to substrate: ', msg); - substrateExtensionValidationData!.Web3Validation!.Substrate!.message = msg; + substrateExtensionValidationData.Web3Validation.Substrate.message = msg; // sign the wrapped version as in polkadot-extension signature_substrate = context.substrateWallet.bob.sign( u8aConcat(stringToU8a(''), u8aToU8a(msg), stringToU8a('')) ); - substrateExtensionValidationData!.Web3Validation!.Substrate!.signature!.Sr25519 = + substrateExtensionValidationData!.Web3Validation.Substrate.signature.Sr25519 = u8aToHex(signature_substrate); assert.isNotEmpty(resp_extension_data.challengeCode, 'challengeCode empty'); - bob_validations = [substrateExtensionValidationData]; + const encode_verifyIdentity_validation: LitentryValidationData = context.api.createType( + 'LitentryValidationData', + substrateExtensionValidationData + ) as any; + bob_validations = [encode_verifyIdentity_validation]; } }); step('check IDGraph before verifyIdentity and after createIdentity', async function () { - const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.sidechainRegistry - .createType('LitentryPrimitivesIdentity', twitter_identity) - .toHex(); + const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); + const identity_hex = twitter_identity.toHex(); const resp_id_graph = await checkIDGraph( context, @@ -305,7 +322,12 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['VerifyIdentityFailed'] ); - const verified_event_datas = await handleIdentityEvents(context, aesKey, alice_resp_events, 'Failed'); + const verified_event_datas = (await handleIdentityEvents( + context, + aesKey, + alice_resp_events, + 'Failed' + )) as string[]; await checkErrorDetail(verified_event_datas, 'InvalidIdentity', false); }); step('verify wrong signature', async function () { @@ -316,7 +338,7 @@ describeLitentry('Test Identity', 0, (context) => { ethers.utils.arrayify(wrong_msg) )) as HexString; - const ethereumValidationData: LitentryValidationData = { + const ethereumValidationData = { Web3Validation: { Evm: { message: wrong_msg as HexString, @@ -325,7 +347,7 @@ describeLitentry('Test Identity', 0, (context) => { }, }, }, - }; + } as any; let alice_txs = await buildIdentityTxs( context, context.substrateWallet.alice, @@ -340,7 +362,12 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['VerifyIdentityFailed'] ); - const verified_event_datas = await handleIdentityEvents(context, aesKey, alice_resp_events, 'Failed'); + const verified_event_datas = (await handleIdentityEvents( + context, + aesKey, + alice_resp_events, + 'Failed' + )) as string[]; await checkErrorDetail(verified_event_datas, 'VerifyEvmSignatureFailed', false); }); @@ -375,25 +402,28 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['IdentityVerified'] ); - const verified_event_datas = await handleIdentityEvents(context, aesKey, alice_resp_events, 'IdentityVerified'); - const [substrate_extension_identity_verified] = await handleIdentityEvents( + const verified_event_datas = (await handleIdentityEvents( + context, + aesKey, + alice_resp_events, + 'IdentityVerified' + )) as IdentityGenericEvent[]; + const substrate_extension_identity_verified = (await handleIdentityEvents( context, aesKey, bob_resp_events, 'IdentityVerified' - ); + )) as IdentityGenericEvent[]; //Alice assertIdentityVerified(context.substrateWallet.alice, verified_event_datas); //Bob - assertIdentityVerified(context.substrateWallet.bob, [substrate_extension_identity_verified]); + assertIdentityVerified(context.substrateWallet.bob, substrate_extension_identity_verified); }); step('check IDGraph after verifyIdentity', async function () { - const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.sidechainRegistry - .createType('LitentryPrimitivesIdentity', twitter_identity) - .toHex(); + const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); + const identity_hex = twitter_identity.toHex(); const resp_id_graph = await checkIDGraph( context, @@ -426,12 +456,12 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['VerifyIdentityFailed'] ); - const alice_resp_same_verify_event_datas = await handleIdentityEvents( + const alice_resp_same_verify_event_datas = (await handleIdentityEvents( context, aesKey, alice_resp_same_verify_events, 'Failed' - ); + )) as string[]; await checkErrorDetail(alice_resp_same_verify_event_datas, 'ChallengeCodeNotFound', false); //verify an identity(charlie) to an account but it isn't created before @@ -449,12 +479,12 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['VerifyIdentityFailed'] ); - const charlie_resp_same_verify_event_datas = await handleIdentityEvents( + const charlie_resp_same_verify_event_datas = (await handleIdentityEvents( context, aesKey, charlie_resp_same_verify_events, 'Failed' - ); + )) as string[]; await checkErrorDetail(charlie_resp_same_verify_event_datas, 'ChallengeCodeNotFound', false); }); @@ -474,7 +504,12 @@ describeLitentry('Test Identity', 0, (context) => { ['IdentityRemoved'] ); const [twitter_identity_removed, ethereum_identity_removed, substrate_identity_removed] = - await handleIdentityEvents(context, aesKey, alice_resp_remove_events, 'IdentityRemoved'); + (await handleIdentityEvents( + context, + aesKey, + alice_resp_remove_events, + 'IdentityRemoved' + )) as IdentityGenericEvent[]; // Bob remove substrate identities let bob_txs = await buildIdentityTxs(context, context.substrateWallet.bob, bob_identities, 'removeIdentity'); @@ -485,12 +520,12 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['IdentityRemoved'] ); - const [substrate_extension_identity_removed] = await handleIdentityEvents( + const [substrate_extension_identity_removed] = (await handleIdentityEvents( context, aesKey, bob_resp_remove_events, 'IdentityRemoved' - ); + )) as IdentityGenericEvent[]; //Alice assertIdentityRemoved(context.substrateWallet.alice, twitter_identity_removed); assertIdentityRemoved(context.substrateWallet.alice, ethereum_identity_removed); @@ -501,10 +536,8 @@ describeLitentry('Test Identity', 0, (context) => { }); step('check challengeCode from storage after removeIdentity', async function () { - const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.sidechainRegistry - .createType('LitentryPrimitivesIdentity', twitter_identity) - .toHex(); + const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); + const identity_hex = twitter_identity.toHex(); const resp_challengecode = await checkUserChallengeCode( context, 'IdentityManagement', @@ -516,10 +549,8 @@ describeLitentry('Test Identity', 0, (context) => { }); step('check IDGraph after removeIdentity', async function () { - const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.sidechainRegistry - .createType('LitentryPrimitivesIdentity', twitter_identity) - .toHex(); + const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); + const identity_hex = twitter_identity.toHex(); const resp_id_graph = await checkIDGraph( context, @@ -545,7 +576,8 @@ describeLitentry('Test Identity', 0, (context) => { const alice_substrate_identity = await buildIdentityHelper( u8aToHex(context.substrateWallet.alice.addressRaw), 'Litentry', - 'Substrate' + 'Substrate', + context ); let alice_create_txs = await buildIdentityTxs( context, @@ -560,12 +592,12 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['IdentityCreated'] ); - const [substrate_create_event_data] = await handleIdentityEvents( + const [substrate_create_event_data] = (await handleIdentityEvents( context, aesKey, alice_resp_create__events, 'IdentityCreated' - ); + )) as IdentityGenericEvent[]; assertIdentityCreated(context.substrateWallet.alice, substrate_create_event_data); // remove substrate identity @@ -583,7 +615,8 @@ describeLitentry('Test Identity', 0, (context) => { const substratePrimeIdentity = await buildIdentityHelper( u8aToHex(context.substrateWallet.alice.addressRaw), process.env.NODE_ENV === 'local' ? 'TestNet' : 'LitentryRococo', - 'Substrate' + 'Substrate', + context ); let prime_txs = await buildIdentityTxs( @@ -599,7 +632,12 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['RemoveIdentityFailed'] ); - const prime_resp_event_datas = await handleIdentityEvents(context, aesKey, prime_resp_events, 'Failed'); + const prime_resp_event_datas = (await handleIdentityEvents( + context, + aesKey, + prime_resp_events, + 'Failed' + )) as string[]; await checkErrorDetail(prime_resp_event_datas, 'RemovePrimeIdentityDisallowed', false); }); @@ -620,12 +658,12 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['RemoveIdentityFailed'] ); - const alice_resp_remove_event_datas = await handleIdentityEvents( + const alice_resp_remove_event_datas = (await handleIdentityEvents( context, aesKey, alice_resp_remove_events, 'Failed' - ); + )) as string[]; await checkErrorDetail(alice_resp_remove_event_datas, 'IdentityNotExist', false); @@ -644,12 +682,12 @@ describeLitentry('Test Identity', 0, (context) => { ['RemoveIdentityFailed'] ); - const charile_resp_remove_events_data = await handleIdentityEvents( + const charile_resp_remove_events_data = (await handleIdentityEvents( context, aesKey, charile_resp_remove_events, 'Failed' - ); + )) as string[]; await checkErrorDetail(charile_resp_remove_events_data, 'UserShieldingKeyNotFound', false); }); @@ -671,7 +709,7 @@ describeLitentry('Test Identity', 0, (context) => { ['SetUserShieldingKeyFailed'] ); - let error_event_datas = await handleIdentityEvents(context, aesKey, resp_error_events, 'Failed'); + let error_event_datas = (await handleIdentityEvents(context, aesKey, resp_error_events, 'Failed')) as string[]; await checkErrorDetail(error_event_datas, 'ImportError', false); }); @@ -690,7 +728,7 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['CreateIdentityFailed'] ); - let error_event_datas = await handleIdentityEvents(context, aesKey, resp_error_events, 'Failed'); + let error_event_datas = (await handleIdentityEvents(context, aesKey, resp_error_events, 'Failed')) as string[]; await checkErrorDetail(error_event_datas, 'ImportError', false); }); @@ -709,12 +747,17 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['UserShieldingKeySet'] )) as any as Event[]; - const [event] = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); + const [event] = (await handleIdentityEvents( + context, + aesKey, + resp_events, + 'UserShieldingKeySet' + )) as IdentityGenericEvent[]; await assertInitialIDGraphCreated(context, context.substrateWallet.eve, event); let identities = []; for (let i = 0; i < 64; i++) { - let identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); + let identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); identities.push(identity); } let txs = await buildIdentityTxs(context, context.substrateWallet.eve, identities, 'createIdentity'); @@ -730,21 +773,21 @@ describeLitentry('Test Identity', 0, (context) => { assert.equal(identity_created_events_raw.length, 63); assert.equal(create_identity_failed_events_raw.length, 1); - let identity_created_events = await handleIdentityEvents( + let identity_created_events = (await handleIdentityEvents( context, aesKey, identity_created_events_raw, 'IdentityCreated' - ); + )) as IdentityGenericEvent[]; identity_created_events.forEach((e) => { assertIdentityCreated(context.substrateWallet.eve, e); }); - let create_identity_failed_events = await handleIdentityEvents( + let create_identity_failed_events = (await handleIdentityEvents( context, aesKey, create_identity_failed_events_raw, 'Failed' - ); + )) as string[]; assert.equal(create_identity_failed_events.length, 1); await checkErrorDetail(create_identity_failed_events, 'IDGraphLenLimitReached', false); }); From e78a07a0f453dbd87ed4b44184075ff28838dee7 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 31 May 2023 15:14:53 +0800 Subject: [PATCH 18/25] fix checkIdgraph --- tee-worker/ts-tests/batch.test.ts | 20 ++++++++------ tee-worker/ts-tests/common/transactions.ts | 11 +++++--- .../ts-tests/common/type-definitions.ts | 5 ---- tee-worker/ts-tests/common/utils/assertion.ts | 4 +-- tee-worker/ts-tests/common/utils/common.ts | 1 - .../ts-tests/common/utils/identity-helper.ts | 4 +-- tee-worker/ts-tests/common/utils/storage.ts | 11 +++++--- tee-worker/ts-tests/identity.test.ts | 26 +++++++++++-------- 8 files changed, 45 insertions(+), 37 deletions(-) diff --git a/tee-worker/ts-tests/batch.test.ts b/tee-worker/ts-tests/batch.test.ts index 3b17b47b77..c377166791 100644 --- a/tee-worker/ts-tests/batch.test.ts +++ b/tee-worker/ts-tests/batch.test.ts @@ -73,17 +73,21 @@ describeLitentry('Test Batch Utility', 0, (context) => { identity_hex ); assert.equal( - resp_id_graph.verification_request_block, + resp_id_graph.verificationRequestBlock, null, 'verification_request_block should be null before create' ); assert.equal( - resp_id_graph.linking_request_block, + resp_id_graph.creationRequestBlock, null, 'linking_request_block should be null before create' ); - assert.equal(resp_id_graph.is_verified, false, 'IDGraph is_verified should be equal false before create'); + assert.equal( + resp_id_graph.isVerified.toHuman(), + false, + 'IDGraph is_verified should be equal false before create' + ); } const txs = await buildIdentityTxs(context, context.substrateWallet.alice, identities, 'createIdentity'); @@ -173,11 +177,11 @@ describeLitentry('Test Batch Utility', 0, (context) => { identity_hex ); assert.notEqual( - resp_id_graph.verification_request_block, + resp_id_graph.verificationRequestBlock, null, 'verification_request_block should not be null after verifyIdentity' ); - assert.equal(resp_id_graph.is_verified, true, 'is_verified should be true after verifyIdentity'); + assert.equal(resp_id_graph.isVerified.toHuman(), true, 'is_verified should be true after verifyIdentity'); } }); step('batch test: remove identities', async function () { @@ -232,16 +236,16 @@ describeLitentry('Test Batch Utility', 0, (context) => { identity_hex ); assert.equal( - resp_id_graph.verification_request_block, + resp_id_graph.verificationRequestBlock, null, 'verification_request_block should be null after removeIdentity' ); assert.equal( - resp_id_graph.linking_request_block, + resp_id_graph.creationRequestBlock, null, 'linking_request_block should be null after removeIdentity' ); - assert.equal(resp_id_graph.is_verified, false, 'is_verified should be false after removeIdentity'); + assert.equal(resp_id_graph.isVerified.toHuman(), false, 'is_verified should be false after removeIdentity'); } }); }); diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index eeabcd0e29..15db785134 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -178,9 +178,14 @@ export async function sendTxsWithUtility( await isInBlockPromise; - const resp_events = (await listenEvent(context.api, pallet, events, txs.length, [ - u8aToHex(signer.addressRaw), - ], listenTimeoutInBlockNumber)) as any; + const resp_events = (await listenEvent( + context.api, + pallet, + events, + txs.length, + [u8aToHex(signer.addressRaw)], + listenTimeoutInBlockNumber + )) as any; expect(resp_events.length).to.be.equal(txs.length); return resp_events; diff --git a/tee-worker/ts-tests/common/type-definitions.ts b/tee-worker/ts-tests/common/type-definitions.ts index bdc537e5b9..dbb9fcccd1 100644 --- a/tee-worker/ts-tests/common/type-definitions.ts +++ b/tee-worker/ts-tests/common/type-definitions.ts @@ -73,11 +73,6 @@ export type Web3Wallets = { ethereumWallet: Wallet; }; -export type Web3Network = { - Substrate?: SubstrateNetwork; - Evm?: EvmNetwork; -}; - export type IdentityGenericEvent = { who: HexString; identity: LitentryPrimitivesIdentity; diff --git a/tee-worker/ts-tests/common/utils/assertion.ts b/tee-worker/ts-tests/common/utils/assertion.ts index 08be315822..e72c17adf2 100644 --- a/tee-worker/ts-tests/common/utils/assertion.ts +++ b/tee-worker/ts-tests/common/utils/assertion.ts @@ -132,8 +132,8 @@ export async function checkJSON(vc: any, proofJson: any): Promise { expect(isValid).to.be.true; expect( vc.type[0] === 'VerifiableCredential' && - vc.issuer.id === proofJson.verificationMethod && - proofJson.type === 'Ed25519Signature2020' + vc.issuer.id === proofJson.verificationMethod && + proofJson.type === 'Ed25519Signature2020' ).to.be.true; return true; } diff --git a/tee-worker/ts-tests/common/utils/common.ts b/tee-worker/ts-tests/common/utils/common.ts index cdba82c8f2..ac015b53f7 100644 --- a/tee-worker/ts-tests/common/utils/common.ts +++ b/tee-worker/ts-tests/common/utils/common.ts @@ -1,4 +1,3 @@ -import { LitentryIdentity } from '../type-definitions'; import { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; export function sleep(secs: number) { return new Promise((resolve) => { diff --git a/tee-worker/ts-tests/common/utils/identity-helper.ts b/tee-worker/ts-tests/common/utils/identity-helper.ts index 0aa28214a8..a22165131b 100644 --- a/tee-worker/ts-tests/common/utils/identity-helper.ts +++ b/tee-worker/ts-tests/common/utils/identity-helper.ts @@ -6,8 +6,6 @@ import { EvmNetwork, IdentityGenericEvent, IntegrationTestContext, - LitentryIdentity, - // LitentryValidationData, SubstrateNetwork, Web2Network, } from '../type-definitions'; @@ -23,7 +21,7 @@ export function generateVerificationMessage( context: IntegrationTestContext, challengeCode: Uint8Array, signerAddress: Uint8Array, - identity: LitentryIdentity + identity: LitentryPrimitivesIdentity ): HexString { const encode = context.sidechainRegistry.createType('LitentryPrimitivesIdentity', identity).toU8a(); const msg = Buffer.concat([challengeCode, signerAddress, encode]); diff --git a/tee-worker/ts-tests/common/utils/storage.ts b/tee-worker/ts-tests/common/utils/storage.ts index 783480f72e..e3f8cf932e 100644 --- a/tee-worker/ts-tests/common/utils/storage.ts +++ b/tee-worker/ts-tests/common/utils/storage.ts @@ -5,8 +5,8 @@ import { xxhashAsU8a } from '@polkadot/util-crypto'; import { StorageEntryMetadataV14, SiLookupTypeId, StorageHasherV14 } from '@polkadot/types/interfaces'; import { sendRequest } from '../call'; import { blake2128Concat, twox64Concat, identity } from '../helpers'; -import { IntegrationTestContext, IdentityContext } from '../type-definitions'; - +import { IntegrationTestContext } from '../type-definitions'; +import { PalletIdentityManagementTeeIdentityContext } from '@polkadot/types/lookup'; const base58 = require('micro-base58'); //sidechain storage utils @@ -135,7 +135,7 @@ export async function checkIDGraph( method: string, address: HexString, identity: HexString -): Promise { +): Promise { const storageKey = await buildStorageHelper(context.metaData, pallet, method, address, identity); let base58mrEnclave = base58.encode(Buffer.from(context.mrEnclave.slice(2), 'hex')); @@ -147,6 +147,9 @@ export async function checkIDGraph( id: 1, }; let resp = await sendRequest(context.tee, request, context.api); - const IDGraph = context.api.createType('IdentityContext', resp.value).toJSON() as IdentityContext; + const IDGraph: PalletIdentityManagementTeeIdentityContext = context.sidechainRegistry.createType( + 'PalletIdentityManagementTeeIdentityContext', + resp.value + ) as any; return IDGraph; } diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index bac84e394d..7eb67b5fb4 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -137,12 +137,16 @@ describeLitentry('Test Identity', 0, (context) => { identity_hex ); assert.equal( - resp_id_graph.verification_request_block, + resp_id_graph.verificationRequestBlock.toHuman(), 0, 'verification_request_block should be 0 for main address' ); - assert.equal(resp_id_graph.linking_request_block, 0, 'linking_request_block should be 0 for main address'); - assert.equal(resp_id_graph.is_verified, true, 'IDGraph is_verified should be true for main address'); + assert.equal( + resp_id_graph.creationRequestBlock.toHuman(), + 0, + 'linking_request_block should be 0 for main address' + ); + assert.equal(resp_id_graph.isVerified.toHuman(), true, 'IDGraph is_verified should be true for main address'); // TODO: check IDGraph.length == 1 in the sidechain storage }); step('create identities', async function () { @@ -300,11 +304,11 @@ describeLitentry('Test Identity', 0, (context) => { identity_hex ); assert.notEqual( - resp_id_graph.linking_request_block, + resp_id_graph.creationRequestBlock, null, 'linking_request_block should not be null after createIdentity' ); - assert.equal(resp_id_graph.is_verified, false, 'is_verified should be false before verifyIdentity'); + assert.equal(resp_id_graph.isVerified.toHuman(), false, 'is_verified should be false before verifyIdentity'); }); step('verify invalid identities', async function () { @@ -437,11 +441,11 @@ describeLitentry('Test Identity', 0, (context) => { identity_hex ); assert.notEqual( - resp_id_graph.verification_request_block, + resp_id_graph.verificationRequestBlock, null, 'verification_request_block should not be null after verifyIdentity' ); - assert.equal(resp_id_graph.is_verified, true, 'is_verified should be true after verifyIdentity'); + assert.equal(resp_id_graph.isVerified.toHuman(), true, 'is_verified should be true after verifyIdentity'); }); step('verify error identities', async function () { @@ -564,16 +568,16 @@ describeLitentry('Test Identity', 0, (context) => { identity_hex ); assert.equal( - resp_id_graph.verification_request_block, + resp_id_graph.verificationRequestBlock, null, 'verification_request_block should be null after removeIdentity' ); assert.equal( - resp_id_graph.linking_request_block, + resp_id_graph.creationRequestBlock, null, 'linking_request_block should be null after removeIdentity' ); - assert.equal(resp_id_graph.is_verified, false, 'is_verified should be false after removeIdentity'); + assert.equal(resp_id_graph.isVerified.toHuman(), false, 'is_verified should be false after removeIdentity'); }); step('remove prime identity NOT allowed', async function () { // create substrate identity @@ -759,7 +763,7 @@ describeLitentry('Test Identity', 0, (context) => { )) as IdentityGenericEvent[]; await assertInitialIDGraphCreated(context, context.substrateWallet.eve, event); - let identities: LitentryIdentity[] = []; + let identities: LitentryPrimitivesIdentity[] = []; for (let i = 0; i < 64; i++) { let identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); identities.push(identity); From ad8e9cc56d7f2bbf728ce2ed040f01faf0775fdb Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 31 May 2023 15:20:20 +0800 Subject: [PATCH 19/25] remove WorkerRpcReturnValue --- tee-worker/ts-tests/common/type-definitions.ts | 11 ++--------- .../ts-tests/examples/direct-invocation/util.ts | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/tee-worker/ts-tests/common/type-definitions.ts b/tee-worker/ts-tests/common/type-definitions.ts index dbb9fcccd1..0ea3d693be 100644 --- a/tee-worker/ts-tests/common/type-definitions.ts +++ b/tee-worker/ts-tests/common/type-definitions.ts @@ -6,7 +6,7 @@ import type { KeyringPair } from '@polkadot/keyring/types'; import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; import { Metadata, Vec, TypeRegistry } from '@polkadot/types'; import { Wallet } from 'ethers'; -import type { Assertion as GenericAssertion, DirectRequestStatus } from '../parachain-interfaces/identity/types'; +import type { Assertion as GenericAssertion } from '../parachain-interfaces/identity/types'; import { default as teeTypes } from '../parachain-interfaces/identity/definitions'; import { AnyTuple, IMethod } from '@polkadot/types/types'; import { Call } from '@polkadot/types/interfaces'; @@ -23,16 +23,9 @@ export type Web2Network = LitentryPrimitivesIdentityWeb2Network['type']; export type SubstrateNetwork = LitentryPrimitivesIdentitySubstrateNetwork['type']; export type EvmNetwork = LitentryPrimitivesIdentityEvmNetwork['type']; export type ParachainAssertion = GenericAssertion['type']; -export type WorkerRpcReturnString = { - vec: string; -}; export type BatchCall = Vec | (string | Uint8Array | IMethod | Call)[]; -export type WorkerRpcReturnValue = { - value: `0x${string}`; - do_watch: boolean; - status: DirectRequestStatus; -}; + export type EnclaveResult = { mrEnclave: `0x${string}`; shieldingKey: `0x${string}`; diff --git a/tee-worker/ts-tests/examples/direct-invocation/util.ts b/tee-worker/ts-tests/examples/direct-invocation/util.ts index ef3b079d42..6b4a3ec1c3 100644 --- a/tee-worker/ts-tests/examples/direct-invocation/util.ts +++ b/tee-worker/ts-tests/examples/direct-invocation/util.ts @@ -3,7 +3,7 @@ import { KeyringPair } from '@polkadot/keyring/types'; import { BN, u8aToHex, hexToU8a, compactAddLength, bufferToU8a } from '@polkadot/util'; import { Codec } from '@polkadot/types/types'; import { PubicKeyJson } from '../../common/type-definitions'; -import { WorkerRpcReturnValue } from '../../interfaces/identity'; +import { WorkerRpcReturnValue } from '../../parachain-interfaces/identity/types'; import { encryptWithTeeShieldingKey } from '../../common/utils'; import { decodeRpcBytesAsString } from '../../common/call'; import { createPublicKey, KeyObject } from 'crypto'; From 8e3ea50ee3a798c1d6fb4e477eaf45ec28cf78f9 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 31 May 2023 16:37:35 +0800 Subject: [PATCH 20/25] fix ci & format --- tee-worker/ts-tests/batch.test.ts | 12 +++++------ tee-worker/ts-tests/bulk_identity.test.ts | 9 ++++---- tee-worker/ts-tests/bulk_vc.test.ts | 9 ++++---- tee-worker/ts-tests/common/call.ts | 8 +++---- tee-worker/ts-tests/common/helpers.ts | 5 ++++- tee-worker/ts-tests/common/transactions.ts | 10 +++++---- .../ts-tests/common/type-definitions.ts | 12 +++++------ tee-worker/ts-tests/common/utils/assertion.ts | 20 ++++++++---------- tee-worker/ts-tests/common/utils/common.ts | 4 ++-- tee-worker/ts-tests/common/utils/context.ts | 4 ++-- tee-worker/ts-tests/common/utils/crypto.ts | 2 +- .../ts-tests/common/utils/identity-helper.ts | 9 ++++---- .../common/utils/integration-setup.ts | 6 +++--- tee-worker/ts-tests/common/utils/storage.ts | 9 ++++---- tee-worker/ts-tests/common/utils/vc-helper.ts | 2 +- .../identity-direct-invocation.test.ts | 2 +- tee-worker/ts-tests/identity.test.ts | 21 ++++++++++++------- tee-worker/ts-tests/vc.test.ts | 12 ++++++++--- 18 files changed, 85 insertions(+), 71 deletions(-) diff --git a/tee-worker/ts-tests/batch.test.ts b/tee-worker/ts-tests/batch.test.ts index c377166791..9d1df98973 100644 --- a/tee-worker/ts-tests/batch.test.ts +++ b/tee-worker/ts-tests/batch.test.ts @@ -19,7 +19,7 @@ import { assertIdentityRemoved, } from './common/utils'; import { ethers } from 'ethers'; -import { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; +import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; import type { LitentryValidationData } from './parachain-interfaces/identity/types'; import type { IdentityGenericEvent } from './common/type-definitions'; describeLitentry('Test Batch Utility', 0, (context) => { @@ -73,12 +73,12 @@ describeLitentry('Test Batch Utility', 0, (context) => { identity_hex ); assert.equal( - resp_id_graph.verificationRequestBlock, + resp_id_graph.verificationRequestBlock.toHuman(), null, 'verification_request_block should be null before create' ); assert.equal( - resp_id_graph.creationRequestBlock, + resp_id_graph.creationRequestBlock.toHuman(), null, 'linking_request_block should be null before create' ); @@ -177,7 +177,7 @@ describeLitentry('Test Batch Utility', 0, (context) => { identity_hex ); assert.notEqual( - resp_id_graph.verificationRequestBlock, + resp_id_graph.verificationRequestBlock.toHuman(), null, 'verification_request_block should not be null after verifyIdentity' ); @@ -236,12 +236,12 @@ describeLitentry('Test Batch Utility', 0, (context) => { identity_hex ); assert.equal( - resp_id_graph.verificationRequestBlock, + resp_id_graph.verificationRequestBlock.toHuman(), null, 'verification_request_block should be null after removeIdentity' ); assert.equal( - resp_id_graph.creationRequestBlock, + resp_id_graph.creationRequestBlock.toHuman(), null, 'linking_request_block should be null after removeIdentity' ); diff --git a/tee-worker/ts-tests/bulk_identity.test.ts b/tee-worker/ts-tests/bulk_identity.test.ts index fde4cdc61e..844b233fd0 100644 --- a/tee-worker/ts-tests/bulk_identity.test.ts +++ b/tee-worker/ts-tests/bulk_identity.test.ts @@ -11,15 +11,14 @@ import { } from './common/utils'; import { KeyringPair } from '@polkadot/keyring/types'; import { ethers } from 'ethers'; -import { BatchCall, IdentityGenericEvent } from './common/type-definitions'; +import type { BatchCall, IdentityGenericEvent } from './common/type-definitions'; import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; import type { LitentryValidationData } from './parachain-interfaces/identity/types'; +import type { Call } from '@polkadot/types/interfaces/types'; +import type { Vec } from '@polkadot/types'; import { handleIdentityEvents } from './common/utils'; import { assert } from 'chai'; -import { listenEvent, multiAccountTxSender } from './common/transactions'; -import { u8aToHex } from '@polkadot/util'; -import { Call } from '@polkadot/types/interfaces/types'; -import { Vec } from '@polkadot/types'; +import { multiAccountTxSender } from './common/transactions'; import { SubmittableResult } from '@polkadot/api'; //Explain how to use this test, which has two important parameters: //1.The "number" parameter in describeLitentry represents the number of accounts generated, including Substrate wallets and Ethereum wallets.If you want to use a large number of accounts for testing, you can modify this parameter. diff --git a/tee-worker/ts-tests/bulk_vc.test.ts b/tee-worker/ts-tests/bulk_vc.test.ts index b8d4c98ccb..9fe82c4896 100644 --- a/tee-worker/ts-tests/bulk_vc.test.ts +++ b/tee-worker/ts-tests/bulk_vc.test.ts @@ -1,12 +1,13 @@ import { step } from 'mocha-steps'; import { checkVc, describeLitentry, encryptWithTeeShieldingKey } from './common/utils'; -import { KeyringPair } from '@polkadot/keyring/types'; -import { u8aToHex, hexToU8a } from '@polkadot/util'; -import { Assertion, BatchCall, IndexingNetwork, TransactionSubmit } from './common/type-definitions'; +import { hexToU8a } from '@polkadot/util'; +import { IndexingNetwork } from './common/type-definitions'; import { handleVcEvents } from './common/utils'; import { blake2AsHex } from '@polkadot/util-crypto'; import { assert } from 'chai'; -import { HexString } from '@polkadot/util/types'; +import type { HexString } from '@polkadot/util/types'; +import type { Assertion, TransactionSubmit } from './common/type-definitions'; +import type { KeyringPair } from '@polkadot/keyring/types'; import { multiAccountTxSender } from './common/transactions'; import { SubmittableResult } from '@polkadot/api'; const assertion = { diff --git a/tee-worker/ts-tests/common/call.ts b/tee-worker/ts-tests/common/call.ts index f3dfeeb860..8732092446 100644 --- a/tee-worker/ts-tests/common/call.ts +++ b/tee-worker/ts-tests/common/call.ts @@ -1,11 +1,11 @@ import { ApiPromise } from '@polkadot/api'; -import { Metadata, TypeRegistry } from '@polkadot/types'; -import type { Bytes } from '@polkadot/types-codec'; import { hexToU8a, compactStripLength, u8aToString } from '@polkadot/util'; import WebSocketAsPromised from 'websocket-as-promised'; import { HexString } from '@polkadot/util/types'; -import { RequestBody } from '../common/type-definitions'; -import { WorkerRpcReturnValue } from '../parachain-interfaces/identity/types'; +import type { RequestBody } from '../common/type-definitions'; +import type { WorkerRpcReturnValue } from '../parachain-interfaces/identity/types'; +import { Metadata, TypeRegistry } from '@polkadot/types'; +import type { Bytes } from '@polkadot/types-codec'; // send RPC request export async function sendRequest( wsClient: WebSocketAsPromised, diff --git a/tee-worker/ts-tests/common/helpers.ts b/tee-worker/ts-tests/common/helpers.ts index fb6aa1e5de..045803ab8c 100644 --- a/tee-worker/ts-tests/common/helpers.ts +++ b/tee-worker/ts-tests/common/helpers.ts @@ -1,8 +1,9 @@ import { xxhashAsU8a, blake2AsU8a } from '@polkadot/util-crypto'; import { u8aConcat, u8aToU8a } from '@polkadot/util'; -import { HexString } from '@polkadot/util/types'; import { Keyring } from '@polkadot/api'; import type { KeyringPair } from '@polkadot/keyring/types'; +import type { HexString } from '@polkadot/util/types'; +import './config'; //format and setup const keyring = new Keyring({ type: 'sr25519' }); @@ -54,3 +55,5 @@ export function twox64Concat(data: HexString | Uint8Array): Uint8Array { export function identity(data: HexString | Uint8Array): Uint8Array { return u8aToU8a(data); } + +export const env_network = process.env.NODE_ENV === 'local' ? 'TestNet' : 'LitentryRococo'; diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index 15db785134..54b1ce2454 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -1,13 +1,15 @@ import { ApiPromise, SubmittableResult } from '@polkadot/api'; -import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; -import { IntegrationTestContext, TransactionSubmit, RequestEvent } from './type-definitions'; import { KeyringPair } from '@polkadot/keyring/types'; import { defaultListenTimeoutInBlockNumber } from './utils'; import { EventRecord, Event } from '@polkadot/types/interfaces'; import { expect } from 'chai'; import colors from 'colors'; -import { HexString } from '@polkadot/util/types'; -import { Codec } from '@polkadot/types/types'; +import type { HexString } from '@polkadot/util/types'; +import type { Codec } from '@polkadot/types/types'; +import type { IntegrationTestContext, TransactionSubmit } from './type-definitions'; +import type { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; +import { RequestEvent } from './type-definitions'; + import { u8aToHex } from '@polkadot/util'; //transactions utils export async function sendTxUntilInBlock(api: ApiPromise, tx: SubmittableExtrinsic, signer: KeyringPair) { diff --git a/tee-worker/ts-tests/common/type-definitions.ts b/tee-worker/ts-tests/common/type-definitions.ts index 0ea3d693be..f8f4f3cda2 100644 --- a/tee-worker/ts-tests/common/type-definitions.ts +++ b/tee-worker/ts-tests/common/type-definitions.ts @@ -1,14 +1,8 @@ import { ApiPromise } from '@polkadot/api'; import { KeyObject } from 'crypto'; -import { HexString } from '@polkadot/util/types'; import WebSocketAsPromised from 'websocket-as-promised'; -import type { KeyringPair } from '@polkadot/keyring/types'; -import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; import { Metadata, Vec, TypeRegistry } from '@polkadot/types'; import { Wallet } from 'ethers'; -import type { Assertion as GenericAssertion } from '../parachain-interfaces/identity/types'; -import { default as teeTypes } from '../parachain-interfaces/identity/definitions'; -import { AnyTuple, IMethod } from '@polkadot/types/types'; import { Call } from '@polkadot/types/interfaces'; import type { LitentryPrimitivesIdentitySubstrateNetwork, @@ -17,7 +11,11 @@ import type { PalletIdentityManagementTeeIdentityContext, LitentryPrimitivesIdentity, } from '@polkadot/types/lookup'; -export { teeTypes }; +import type { KeyringPair } from '@polkadot/keyring/types'; +import type { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; +import type { HexString } from '@polkadot/util/types'; +import type { Assertion as GenericAssertion } from '../parachain-interfaces/identity/types'; +import type { AnyTuple, IMethod } from '@polkadot/types/types'; export type Web2Network = LitentryPrimitivesIdentityWeb2Network['type']; export type SubstrateNetwork = LitentryPrimitivesIdentitySubstrateNetwork['type']; diff --git a/tee-worker/ts-tests/common/utils/assertion.ts b/tee-worker/ts-tests/common/utils/assertion.ts index e72c17adf2..04447eeae3 100644 --- a/tee-worker/ts-tests/common/utils/assertion.ts +++ b/tee-worker/ts-tests/common/utils/assertion.ts @@ -1,15 +1,17 @@ import { ApiPromise } from '@polkadot/api'; -import { KeyringPair } from '@polkadot/keyring/types'; -import { HexString } from '@polkadot/util/types'; import { Event } from '@polkadot/types/interfaces'; import { hexToU8a, u8aToHex } from '@polkadot/util'; import Ajv from 'ajv'; import { assert, expect } from 'chai'; import * as ed from '@noble/ed25519'; -import { EnclaveResult, IdentityGenericEvent, JsonSchema, IntegrationTestContext } from '../type-definitions'; import { buildIdentityHelper } from './identity-helper'; -import { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; +import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; +import type { EnclaveResult, IdentityGenericEvent, IntegrationTestContext } from '../type-definitions'; +import type { KeyringPair } from '@polkadot/keyring/types'; +import type { HexString } from '@polkadot/util/types'; +import { JsonSchema } from '../type-definitions'; import { isEqual, isArrayEqual } from './common'; +import { env_network } from '../../common/helpers'; export async function assertInitialIDGraphCreated( context: IntegrationTestContext, signer: KeyringPair, @@ -20,12 +22,7 @@ export async function assertInitialIDGraphCreated( // check identity in idgraph const expected_identity: LitentryPrimitivesIdentity = context.sidechainRegistry.createType( 'LitentryPrimitivesIdentity', - await buildIdentityHelper( - u8aToHex(signer.addressRaw), - process.env.NODE_ENV === 'local' ? 'TestNet' : 'LitentryRococo', - 'Substrate', - context - ) + await buildIdentityHelper(u8aToHex(signer.addressRaw), env_network, 'Substrate', context) ) as any; const expected_target = expected_identity[`as${expected_identity.type}`]; @@ -55,6 +52,7 @@ export function assertIdentityVerified(signer: KeyringPair, eventDatas: Identity idgraph_identities.push(eventDatas[eventDatas.length - 1].idGraph[i][0]); } //idgraph_identities[idgraph_identities.length - 1] is prime identity,don't need to compare + assert.isTrue( isArrayEqual(event_identities, idgraph_identities.slice(0, idgraph_identities.length - 1)), 'event identities should be equal to idgraph identities' @@ -63,7 +61,7 @@ export function assertIdentityVerified(signer: KeyringPair, eventDatas: Identity const data = eventDatas[eventDatas.length - 1]; for (let i = 0; i < eventDatas[eventDatas.length - 1].idGraph.length; i++) { if (isEqual(data.idGraph[i][0], data.identity)) { - assert.isTrue(data.idGraph[i][1].isVerified, 'identity should be verified'); + assert.isTrue(data.idGraph[i][1].isVerified.toHuman(), 'identity should be verified'); } } assert.equal(data?.who, u8aToHex(signer.addressRaw), 'check caller error'); diff --git a/tee-worker/ts-tests/common/utils/common.ts b/tee-worker/ts-tests/common/utils/common.ts index ac015b53f7..b908781424 100644 --- a/tee-worker/ts-tests/common/utils/common.ts +++ b/tee-worker/ts-tests/common/utils/common.ts @@ -1,4 +1,4 @@ -import { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; +import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; export function sleep(secs: number) { return new Promise((resolve) => { setTimeout(resolve, secs * 1000); @@ -6,7 +6,7 @@ export function sleep(secs: number) { } export function isEqual(obj1: LitentryPrimitivesIdentity, obj2: LitentryPrimitivesIdentity) { - return JSON.stringify(obj1) === JSON.stringify(obj2); + return obj1.toString() === obj2.toString(); } // campare two array of event_identities idgraph_identities whether equal diff --git a/tee-worker/ts-tests/common/utils/context.ts b/tee-worker/ts-tests/common/utils/context.ts index 511de0c25f..7b736f9c5a 100644 --- a/tee-worker/ts-tests/common/utils/context.ts +++ b/tee-worker/ts-tests/common/utils/context.ts @@ -7,8 +7,8 @@ import Options from 'websocket-as-promised/types/options'; import { KeyObject } from 'crypto'; import { getSidechainMetadata } from '../call'; import { getEthereumSigner, getSubstrateSigner } from '../helpers'; -import { IntegrationTestContext, teeTypes, EnclaveResult, Web3Wallets } from '../type-definitions'; - +import type { IntegrationTestContext, EnclaveResult, Web3Wallets } from '../type-definitions'; +import { default as teeTypes } from '../../parachain-interfaces/identity/definitions'; const crypto = require('crypto'); // maximum block number that we wait in listening events before we timeout diff --git a/tee-worker/ts-tests/common/utils/crypto.ts b/tee-worker/ts-tests/common/utils/crypto.ts index edfae6e184..2f2c866b8a 100644 --- a/tee-worker/ts-tests/common/utils/crypto.ts +++ b/tee-worker/ts-tests/common/utils/crypto.ts @@ -1,4 +1,4 @@ -import { HexString } from '@polkadot/util/types'; +import type { HexString } from '@polkadot/util/types'; import { hexToU8a, u8aToHex } from '@polkadot/util'; import { KeyObject } from 'crypto'; import { AESOutput } from '../type-definitions'; diff --git a/tee-worker/ts-tests/common/utils/identity-helper.ts b/tee-worker/ts-tests/common/utils/identity-helper.ts index a22165131b..aed2727168 100644 --- a/tee-worker/ts-tests/common/utils/identity-helper.ts +++ b/tee-worker/ts-tests/common/utils/identity-helper.ts @@ -1,5 +1,3 @@ -import { KeyringPair } from '@polkadot/keyring/types'; -import { HexString } from '@polkadot/util/types'; import { hexToU8a, u8aToHex } from '@polkadot/util'; import { blake2AsHex } from '@polkadot/util-crypto'; import { @@ -10,12 +8,15 @@ import { Web2Network, } from '../type-definitions'; import { decryptWithAES, encryptWithTeeShieldingKey } from './crypto'; -import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; import { assert } from 'chai'; import { ethers } from 'ethers'; -import { TypeRegistry } from '@polkadot/types'; +import type { TypeRegistry } from '@polkadot/types'; import type { LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext } from '@polkadot/types/lookup'; import type { LitentryValidationData } from '../../parachain-interfaces/identity/types'; +import type { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; +import type { KeyringPair } from '@polkadot/keyring/types'; +import type { HexString } from '@polkadot/util/types'; + // + + export function generateVerificationMessage( context: IntegrationTestContext, diff --git a/tee-worker/ts-tests/common/utils/integration-setup.ts b/tee-worker/ts-tests/common/utils/integration-setup.ts index a60112097a..a411e7b7a6 100644 --- a/tee-worker/ts-tests/common/utils/integration-setup.ts +++ b/tee-worker/ts-tests/common/utils/integration-setup.ts @@ -1,10 +1,10 @@ import { ApiPromise } from '@polkadot/api'; -import { Metadata, TypeRegistry } from '@polkadot/types'; -import { HexString } from '@polkadot/util/types'; import { KeyObject } from 'crypto'; import WebSocketAsPromised from 'websocket-as-promised'; import { after, before, describe } from 'mocha'; -import { IntegrationTestContext, Web3Wallets } from '../type-definitions'; +import type { IntegrationTestContext, Web3Wallets } from '../type-definitions'; +import type { Metadata, TypeRegistry } from '@polkadot/types'; +import type { HexString } from '@polkadot/util/types'; import { initIntegrationTestContext } from './context'; export function describeLitentry(title: string, walletsNumber: number, cb: (context: IntegrationTestContext) => void) { diff --git a/tee-worker/ts-tests/common/utils/storage.ts b/tee-worker/ts-tests/common/utils/storage.ts index e3f8cf932e..b605d1ad99 100644 --- a/tee-worker/ts-tests/common/utils/storage.ts +++ b/tee-worker/ts-tests/common/utils/storage.ts @@ -1,12 +1,13 @@ -import { Metadata } from '@polkadot/types'; -import { HexString } from '@polkadot/util/types'; import { u8aToHex, u8aConcat } from '@polkadot/util'; import { xxhashAsU8a } from '@polkadot/util-crypto'; import { StorageEntryMetadataV14, SiLookupTypeId, StorageHasherV14 } from '@polkadot/types/interfaces'; import { sendRequest } from '../call'; import { blake2128Concat, twox64Concat, identity } from '../helpers'; -import { IntegrationTestContext } from '../type-definitions'; -import { PalletIdentityManagementTeeIdentityContext } from '@polkadot/types/lookup'; +import type { IntegrationTestContext } from '../type-definitions'; +import type { PalletIdentityManagementTeeIdentityContext } from '@polkadot/types/lookup'; +import type { HexString } from '@polkadot/util/types'; +import type { Metadata } from '@polkadot/types'; + const base58 = require('micro-base58'); //sidechain storage utils diff --git a/tee-worker/ts-tests/common/utils/vc-helper.ts b/tee-worker/ts-tests/common/utils/vc-helper.ts index 88371492af..fc5230e0b0 100644 --- a/tee-worker/ts-tests/common/utils/vc-helper.ts +++ b/tee-worker/ts-tests/common/utils/vc-helper.ts @@ -1,4 +1,4 @@ -import { HexString } from '@polkadot/util/types'; +import type { HexString } from '@polkadot/util/types'; import { decryptWithAES } from './crypto'; export async function handleVcEvents( diff --git a/tee-worker/ts-tests/identity-direct-invocation.test.ts b/tee-worker/ts-tests/identity-direct-invocation.test.ts index 9aaf4a3662..69f1a3fd15 100644 --- a/tee-worker/ts-tests/identity-direct-invocation.test.ts +++ b/tee-worker/ts-tests/identity-direct-invocation.test.ts @@ -9,7 +9,7 @@ import { getTEEShieldingKey, sendRequestFromTrustedGetter, } from './examples/direct-invocation/util'; // @fixme move to a better place -import { IntegrationTestContext } from './common/type-definitions'; +import type { IntegrationTestContext } from './common/type-definitions'; describe('Test Identity (direct invocation)', function () { let context: IntegrationTestContext = undefined as any; diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index 7eb67b5fb4..aef4ca3dea 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -12,16 +12,16 @@ import { assertInitialIDGraphCreated, checkUserShieldingKeys, } from './common/utils'; - +import { env_network } from './common/helpers'; import { hexToU8a, u8aConcat, u8aToHex, u8aToU8a, stringToU8a } from '@polkadot/util'; import { step } from 'mocha-steps'; import { assert } from 'chai'; -import { IdentityGenericEvent, TransactionSubmit } from './common/type-definitions'; -import { HexString } from '@polkadot/util/types'; import { multiAccountTxSender, sendTxsWithUtility } from './common/transactions'; import { assertIdentityVerified, assertIdentityCreated, assertIdentityRemoved } from './common/utils'; import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; import type { LitentryValidationData } from './parachain-interfaces/identity/types'; +import type { IdentityGenericEvent, TransactionSubmit } from './common/type-definitions'; +import type { HexString } from '@polkadot/util/types'; import { Event } from '@polkadot/types/interfaces'; import { ethers } from 'ethers'; const substrateExtensionIdentity: LitentryPrimitivesIdentity = { @@ -124,7 +124,7 @@ describeLitentry('Test Identity', 0, (context) => { // the main address should be already inside the IDGraph const main_identity = await buildIdentityHelper( u8aToHex(context.substrateWallet.alice.addressRaw), - process.env.NODE_ENV === 'local' ? 'TestNet' : 'LitentryRococo', + env_network, 'Substrate', context ); @@ -342,7 +342,7 @@ describeLitentry('Test Identity', 0, (context) => { const ethereum_identity = alice_identities[1]; //use wrong signature - const signature_ethereum = (await context.ethersWallet.alice!.signMessage( + const signature_ethereum = (await context.ethersWallet.alice.signMessage( ethers.utils.arrayify(wrong_msg) )) as HexString; @@ -355,13 +355,18 @@ describeLitentry('Test Identity', 0, (context) => { }, }, }, - } as any; + }; + const encode_verifyIdentity_validation: LitentryValidationData = context.api.createType( + 'LitentryValidationData', + ethereumValidationData + ) as any; + context; let alice_txs = await buildIdentityTxs( context, context.substrateWallet.alice, [ethereum_identity], 'verifyIdentity', - [ethereumValidationData] + [encode_verifyIdentity_validation] ); let alice_resp_events = await sendTxsWithUtility( context, @@ -622,7 +627,7 @@ describeLitentry('Test Identity', 0, (context) => { // remove prime identity const substratePrimeIdentity = await buildIdentityHelper( u8aToHex(context.substrateWallet.alice.addressRaw), - process.env.NODE_ENV === 'local' ? 'TestNet' : 'LitentryRococo', + env_network, 'Substrate', context ); diff --git a/tee-worker/ts-tests/vc.test.ts b/tee-worker/ts-tests/vc.test.ts index 56eebe07b2..3eee6f888e 100644 --- a/tee-worker/ts-tests/vc.test.ts +++ b/tee-worker/ts-tests/vc.test.ts @@ -8,10 +8,11 @@ import { handleVcEvents, } from './common/utils'; import { step } from 'mocha-steps'; -import { Assertion, IndexingNetwork, TransactionSubmit } from './common/type-definitions'; +import type { Assertion, IdentityGenericEvent, TransactionSubmit } from './common/type-definitions'; +import { IndexingNetwork } from './common/type-definitions'; +import type { HexString } from '@polkadot/util/types'; import { assert } from 'chai'; import { u8aToHex } from '@polkadot/util'; -import { HexString } from '@polkadot/util/types'; import { blake2AsHex } from '@polkadot/util-crypto'; import { multiAccountTxSender, sendTxsWithUtility, sendTxUntilInBlockList } from './common/transactions'; @@ -55,7 +56,12 @@ describeLitentry('VC test', 0, async (context) => { 'identityManagement', ['UserShieldingKeySet'] ); - const [alice] = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); + const [alice] = (await handleIdentityEvents( + context, + aesKey, + resp_events, + 'UserShieldingKeySet' + )) as IdentityGenericEvent[]; assert.equal( alice.who, u8aToHex(context.substrateWallet.alice.addressRaw), From b082d30108034c6dcf66dca4e25b13bf4933b368 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 31 May 2023 18:11:45 +0800 Subject: [PATCH 21/25] modified as type --- tee-worker/ts-tests/batch.test.ts | 16 +++---- tee-worker/ts-tests/common/call.ts | 2 +- tee-worker/ts-tests/common/utils/assertion.ts | 4 +- .../ts-tests/common/utils/identity-helper.ts | 36 +++++++++------- tee-worker/ts-tests/common/utils/storage.ts | 4 +- tee-worker/ts-tests/identity.test.ts | 42 +++++++++---------- 6 files changed, 54 insertions(+), 50 deletions(-) diff --git a/tee-worker/ts-tests/batch.test.ts b/tee-worker/ts-tests/batch.test.ts index 9d1df98973..40c2efff6c 100644 --- a/tee-worker/ts-tests/batch.test.ts +++ b/tee-worker/ts-tests/batch.test.ts @@ -75,12 +75,12 @@ describeLitentry('Test Batch Utility', 0, (context) => { assert.equal( resp_id_graph.verificationRequestBlock.toHuman(), null, - 'verification_request_block should be null before create' + 'verificationRequestBlock should be null before create' ); assert.equal( resp_id_graph.creationRequestBlock.toHuman(), null, - 'linking_request_block should be null before create' + 'creationRequestBlock should be null before create' ); assert.equal( @@ -178,10 +178,10 @@ describeLitentry('Test Batch Utility', 0, (context) => { ); assert.notEqual( resp_id_graph.verificationRequestBlock.toHuman(), - null, - 'verification_request_block should not be null after verifyIdentity' + 0, + 'verificationRequestBlock should not be 0 after verifyIdentity' ); - assert.equal(resp_id_graph.isVerified.toHuman(), true, 'is_verified should be true after verifyIdentity'); + assert.equal(resp_id_graph.isVerified.toHuman(), true, 'isVerified should be true after verifyIdentity'); } }); step('batch test: remove identities', async function () { @@ -238,14 +238,14 @@ describeLitentry('Test Batch Utility', 0, (context) => { assert.equal( resp_id_graph.verificationRequestBlock.toHuman(), null, - 'verification_request_block should be null after removeIdentity' + 'verificationRequestBlock should be null after removeIdentity' ); assert.equal( resp_id_graph.creationRequestBlock.toHuman(), null, - 'linking_request_block should be null after removeIdentity' + 'creationRequestBlock should be null after removeIdentity' ); - assert.equal(resp_id_graph.isVerified.toHuman(), false, 'is_verified should be false after removeIdentity'); + assert.equal(resp_id_graph.isVerified.toHuman(), false, 'isVerified should be false after removeIdentity'); } }); }); diff --git a/tee-worker/ts-tests/common/call.ts b/tee-worker/ts-tests/common/call.ts index 8732092446..18fc072d47 100644 --- a/tee-worker/ts-tests/common/call.ts +++ b/tee-worker/ts-tests/common/call.ts @@ -13,7 +13,7 @@ export async function sendRequest( api: ApiPromise ): Promise { const rawRes = await wsClient.sendRequest(request, { requestId: 1, timeout: 6000 }); - const res: WorkerRpcReturnValue = api.createType('WorkerRpcReturnValue', rawRes.result) as any; + const res = api.createType('WorkerRpcReturnValue', rawRes.result) as unknown as WorkerRpcReturnValue; if (res.status.isError) { console.log('Rpc response error: ' + decodeRpcBytesAsString(res.value)); } diff --git a/tee-worker/ts-tests/common/utils/assertion.ts b/tee-worker/ts-tests/common/utils/assertion.ts index 04447eeae3..57ab1ab9c1 100644 --- a/tee-worker/ts-tests/common/utils/assertion.ts +++ b/tee-worker/ts-tests/common/utils/assertion.ts @@ -20,10 +20,10 @@ export async function assertInitialIDGraphCreated( assert.equal(event.who, u8aToHex(signer.addressRaw)); assert.equal(event.idGraph.length, 1); // check identity in idgraph - const expected_identity: LitentryPrimitivesIdentity = context.sidechainRegistry.createType( + const expected_identity = context.sidechainRegistry.createType( 'LitentryPrimitivesIdentity', await buildIdentityHelper(u8aToHex(signer.addressRaw), env_network, 'Substrate', context) - ) as any; + ) as unknown as LitentryPrimitivesIdentity; const expected_target = expected_identity[`as${expected_identity.type}`]; const idGraph_target = event.idGraph[0][0][`as${event.idGraph[0][0].type}`]; diff --git a/tee-worker/ts-tests/common/utils/identity-helper.ts b/tee-worker/ts-tests/common/utils/identity-helper.ts index aed2727168..429e997369 100644 --- a/tee-worker/ts-tests/common/utils/identity-helper.ts +++ b/tee-worker/ts-tests/common/utils/identity-helper.ts @@ -41,10 +41,11 @@ export async function buildIdentityHelper( network, }, }; - const encoded_identity: LitentryPrimitivesIdentity = context.sidechainRegistry.createType( + + const encoded_identity = context.sidechainRegistry.createType( 'LitentryPrimitivesIdentity', identity - ) as any; + ) as unknown as LitentryPrimitivesIdentity; return encoded_identity; } @@ -178,15 +179,18 @@ export function createIdentityEvent( idGraphString?: HexString, challengeCode?: HexString ): IdentityGenericEvent { - let identity: LitentryPrimitivesIdentity = identityString - ? (sidechainRegistry.createType('LitentryPrimitivesIdentity', identityString) as any) - : undefined; - let idGraph: [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][] = idGraphString - ? (sidechainRegistry.createType( - 'Vec<(LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext)>', - idGraphString - ) as any) - : undefined; + let identity: LitentryPrimitivesIdentity = + identityString! && + (sidechainRegistry.createType( + 'LitentryPrimitivesIdentity', + identityString + ) as unknown as LitentryPrimitivesIdentity); + let idGraph: [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][] = + idGraphString! && + (sidechainRegistry.createType( + 'Vec<(LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext)>', + idGraphString + ) as unknown as [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][]); return { who, identity, @@ -239,10 +243,10 @@ export async function buildValidations( ethereumValidationData!.Web3Validation.Evm.signature.Ethereum = signature_ethereum; assert.isNotEmpty(data.challengeCode, 'ethereum challengeCode empty'); console.log('ethereumValidationData', ethereumValidationData); - const encode_verifyIdentity_validation: LitentryValidationData = context.api.createType( + const encode_verifyIdentity_validation = context.api.createType( 'LitentryValidationData', ethereumValidationData - ) as any; + ) as unknown as LitentryValidationData; verifyDatas.push(encode_verifyIdentity_validation); } else if (network === 'substrate') { @@ -264,7 +268,7 @@ export async function buildValidations( const encode_verifyIdentity_validation: LitentryValidationData = context.api.createType( 'LitentryValidationData', substrateValidationData - ) as any; + ) as unknown as LitentryValidationData; verifyDatas.push(encode_verifyIdentity_validation); } else if (network === 'twitter') { console.log('post verification msg to twitter', msg); @@ -276,10 +280,10 @@ export async function buildValidations( }, }; - const encode_verifyIdentity_validation: LitentryValidationData = context.api.createType( + const encode_verifyIdentity_validation = context.api.createType( 'LitentryValidationData', twitterValidationData - ) as any; + ) as unknown as LitentryValidationData; verifyDatas.push(encode_verifyIdentity_validation); assert.isNotEmpty(data.challengeCode, 'twitter challengeCode empty'); diff --git a/tee-worker/ts-tests/common/utils/storage.ts b/tee-worker/ts-tests/common/utils/storage.ts index b605d1ad99..2db7eea7de 100644 --- a/tee-worker/ts-tests/common/utils/storage.ts +++ b/tee-worker/ts-tests/common/utils/storage.ts @@ -148,9 +148,9 @@ export async function checkIDGraph( id: 1, }; let resp = await sendRequest(context.tee, request, context.api); - const IDGraph: PalletIdentityManagementTeeIdentityContext = context.sidechainRegistry.createType( + const IDGraph = context.sidechainRegistry.createType( 'PalletIdentityManagementTeeIdentityContext', resp.value - ) as any; + ) as unknown as PalletIdentityManagementTeeIdentityContext; return IDGraph; } diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index aef4ca3dea..543a6b128c 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -24,12 +24,12 @@ import type { IdentityGenericEvent, TransactionSubmit } from './common/type-defi import type { HexString } from '@polkadot/util/types'; import { Event } from '@polkadot/types/interfaces'; import { ethers } from 'ethers'; -const substrateExtensionIdentity: LitentryPrimitivesIdentity = { +const substrateExtensionIdentity = { Substrate: { address: '0x8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48', //Bob network: 'Litentry', }, -} as any; +} as unknown as LitentryPrimitivesIdentity; describeLitentry('Test Identity', 0, (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; const errorAesKey = '0xError'; @@ -139,12 +139,12 @@ describeLitentry('Test Identity', 0, (context) => { assert.equal( resp_id_graph.verificationRequestBlock.toHuman(), 0, - 'verification_request_block should be 0 for main address' + 'verificationRequestBlock should be 0 for main address' ); assert.equal( resp_id_graph.creationRequestBlock.toHuman(), 0, - 'linking_request_block should be 0 for main address' + 'creationRequestBlock should be 0 for main address' ); assert.equal(resp_id_graph.isVerified.toHuman(), true, 'IDGraph is_verified should be true for main address'); // TODO: check IDGraph.length == 1 in the sidechain storage @@ -268,7 +268,7 @@ describeLitentry('Test Identity', 0, (context) => { }, }, }, - } as any; + }; const msg = generateVerificationMessage( context, hexToU8a(resp_extension_data.challengeCode), @@ -284,10 +284,10 @@ describeLitentry('Test Identity', 0, (context) => { substrateExtensionValidationData!.Web3Validation.Substrate.signature.Sr25519 = u8aToHex(signature_substrate); assert.isNotEmpty(resp_extension_data.challengeCode, 'challengeCode empty'); - const encode_verifyIdentity_validation: LitentryValidationData = context.api.createType( + const encode_verifyIdentity_validation = context.api.createType( 'LitentryValidationData', substrateExtensionValidationData - ) as any; + ) as unknown as LitentryValidationData; bob_validations = [encode_verifyIdentity_validation]; } }); @@ -304,9 +304,9 @@ describeLitentry('Test Identity', 0, (context) => { identity_hex ); assert.notEqual( - resp_id_graph.creationRequestBlock, - null, - 'linking_request_block should not be null after createIdentity' + resp_id_graph.creationRequestBlock.toHuman(), + 0, + 'creationRequestBlock should not be 0 after createIdentity' ); assert.equal(resp_id_graph.isVerified.toHuman(), false, 'is_verified should be false before verifyIdentity'); }); @@ -359,7 +359,7 @@ describeLitentry('Test Identity', 0, (context) => { const encode_verifyIdentity_validation: LitentryValidationData = context.api.createType( 'LitentryValidationData', ethereumValidationData - ) as any; + ) as unknown as LitentryValidationData; context; let alice_txs = await buildIdentityTxs( context, @@ -446,9 +446,9 @@ describeLitentry('Test Identity', 0, (context) => { identity_hex ); assert.notEqual( - resp_id_graph.verificationRequestBlock, - null, - 'verification_request_block should not be null after verifyIdentity' + resp_id_graph.verificationRequestBlock.toHuman(), + 0, + 'verificationRequestBlock should not be 0 after verifyIdentity' ); assert.equal(resp_id_graph.isVerified.toHuman(), true, 'is_verified should be true after verifyIdentity'); }); @@ -573,16 +573,16 @@ describeLitentry('Test Identity', 0, (context) => { identity_hex ); assert.equal( - resp_id_graph.verificationRequestBlock, + resp_id_graph.verificationRequestBlock.toHuman(), null, - 'verification_request_block should be null after removeIdentity' + 'verificationRequestBlock should be null after removeIdentity' ); assert.equal( - resp_id_graph.creationRequestBlock, + resp_id_graph.creationRequestBlock.toHuman(), null, - 'linking_request_block should be null after removeIdentity' + 'creationRequestBlock should be null after removeIdentity' ); - assert.equal(resp_id_graph.isVerified.toHuman(), false, 'is_verified should be false after removeIdentity'); + assert.equal(resp_id_graph.isVerified.toHuman(), false, 'isVerified should be false after removeIdentity'); }); step('remove prime identity NOT allowed', async function () { // create substrate identity @@ -759,7 +759,7 @@ describeLitentry('Test Identity', 0, (context) => { [setUserShieldingKeyTx], 'identityManagement', ['UserShieldingKeySet'] - )) as any as Event[]; + )) as Event[]; const [event] = (await handleIdentityEvents( context, aesKey, @@ -777,7 +777,7 @@ describeLitentry('Test Identity', 0, (context) => { resp_events = (await sendTxsWithUtility(context, context.substrateWallet.eve, txs, 'identityManagement', [ 'IdentityCreated', 'CreateIdentityFailed', - ])) as any as Event[]; + ])) as Event[]; let identity_created_events_raw = resp_events.filter((e) => e.method === 'IdentityCreated'); let create_identity_failed_events_raw = resp_events.filter((e) => e.method === 'CreateIdentityFailed'); From 472d4caad1bd0b441455bd578ba98ccca59cf05e Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 31 May 2023 18:59:27 +0800 Subject: [PATCH 22/25] modified Assertion type --- tee-worker/ts-tests/bulk_vc.test.ts | 12 ++++----- .../ts-tests/common/type-definitions.ts | 25 +++++++++---------- tee-worker/ts-tests/vc.test.ts | 10 +++++--- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/tee-worker/ts-tests/bulk_vc.test.ts b/tee-worker/ts-tests/bulk_vc.test.ts index 9fe82c4896..73b63bc759 100644 --- a/tee-worker/ts-tests/bulk_vc.test.ts +++ b/tee-worker/ts-tests/bulk_vc.test.ts @@ -10,7 +10,7 @@ import type { Assertion, TransactionSubmit } from './common/type-definitions'; import type { KeyringPair } from '@polkadot/keyring/types'; import { multiAccountTxSender } from './common/transactions'; import { SubmittableResult } from '@polkadot/api'; -const assertion = { +const all_assertions = { A1: 'A1', A2: ['A2'], A3: ['A3', 'A3', 'A3'], @@ -20,7 +20,9 @@ const assertion = { A10: '10.003', A11: '10.004', }; - +const assertion_A1: Assertion = { + A1: 'A1', +}; //Explain how to use this test, which has two important parameters: //1.The "number" parameter in describeLitentry represents the number of accounts generated, including Substrate wallets and Ethereum wallets.If you want to use a large number of accounts for testing, you can modify this parameter. //2.Each time the test code is executed, new wallet account will be used. @@ -30,7 +32,7 @@ describeLitentry('multiple accounts test', 2, async (context) => { var substrateSigners: KeyringPair[] = []; var vcIndexList: HexString[] = []; // If want to test other assertions with multiple accounts,just need to make changes here. - let assertion_type = assertion.A1; + let assertion_type = assertion_A1; step('init', async () => { substrateSigners = context.web3Signers.map((web3Signer) => { return web3Signer.substrateWallet; @@ -76,9 +78,7 @@ describeLitentry('multiple accounts test', 2, async (context) => { step('test requestVc with multiple accounts', async () => { let txs: TransactionSubmit[] = []; for (let i = 0; i < substrateSigners.length; i++) { - console.log(assertion_type); - - const tx = context.api.tx.vcManagement.requestVc(context.mrEnclave, assertion_type!); + const tx = context.api.tx.vcManagement.requestVc(context.mrEnclave, assertion_type); const nonce = (await context.api.rpc.system.accountNextIndex(substrateSigners[i].address)).toNumber(); txs.push({ tx, nonce }); } diff --git a/tee-worker/ts-tests/common/type-definitions.ts b/tee-worker/ts-tests/common/type-definitions.ts index f8f4f3cda2..5ca3b3d1d1 100644 --- a/tee-worker/ts-tests/common/type-definitions.ts +++ b/tee-worker/ts-tests/common/type-definitions.ts @@ -96,19 +96,18 @@ export enum RequestEvent { BatchCompleted = 'BatchCompleted', } -export type Assertion = { - A1?: string; - A2?: [string]; - A3?: [string, string, string]; - A4?: string; - A5?: [string, string]; - A6?: string; - A7?: string; - A8?: [IndexingNetwork]; - A9?: string; - A10?: string; - A11?: string; -}; +export type Assertion = + | { A1: string } + | { A2: [string] } + | { A3: [string, string, string] } + | { A4: string } + | { A5: [string, string] } + | { A6: string } + | { A7: string } + | { A8: [IndexingNetwork] } + | { A9: string } + | { A10: string } + | { A11: string }; export type TransactionSubmit = { tx: SubmittableExtrinsic; diff --git a/tee-worker/ts-tests/vc.test.ts b/tee-worker/ts-tests/vc.test.ts index 3eee6f888e..4f15ef9302 100644 --- a/tee-worker/ts-tests/vc.test.ts +++ b/tee-worker/ts-tests/vc.test.ts @@ -16,7 +16,7 @@ import { u8aToHex } from '@polkadot/util'; import { blake2AsHex } from '@polkadot/util-crypto'; import { multiAccountTxSender, sendTxsWithUtility, sendTxUntilInBlockList } from './common/transactions'; -const assertion = { +const all_assertions: Assertion = { A1: 'A1', A2: ['A2'], A3: ['A3', 'A3', 'A3'], @@ -26,7 +26,9 @@ const assertion = { A10: '10.003', A11: '10.004', }; - +const assertion_A1: Assertion = { + A1: 'A1', +}; //It doesn't make much difference test A1 only vs test A1 - A11, one VC type is enough. //So only use A1 to trigger the wrong event describeLitentry('VC test', 0, async (context) => { @@ -86,7 +88,7 @@ describeLitentry('VC test', 0, async (context) => { for (let index = 0; index < vcKeys.length; index++) { const key = vcKeys[index]; const tx = context.api.tx.vcManagement.requestVc(context.mrEnclave, { - [key]: assertion[key as keyof Assertion], + [key]: all_assertions[key as keyof Assertion], }); txs.push({ tx }); } @@ -116,7 +118,7 @@ describeLitentry('VC test', 0, async (context) => { } }); step('Request Error VC(A1)', async () => { - const tx = context.api.tx.vcManagement.requestVc(context.mrEnclave, assertion.A1); + const tx = context.api.tx.vcManagement.requestVc(context.mrEnclave, assertion_A1); const resp_error_events = await sendTxsWithUtility( context, context.substrateWallet.bob, From f85448a4a5bd8377ef8bd35943d596401fadaa12 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Thu, 1 Jun 2023 23:33:05 +0800 Subject: [PATCH 23/25] refactor assert --- tee-worker/ts-tests/batch.test.ts | 61 ++--- tee-worker/ts-tests/bulk_identity.test.ts | 48 +--- tee-worker/ts-tests/common/transactions.ts | 6 +- tee-worker/ts-tests/common/utils/assertion.ts | 220 ++++++++++++------ tee-worker/ts-tests/common/utils/common.ts | 29 --- .../ts-tests/common/utils/identity-helper.ts | 55 +++-- tee-worker/ts-tests/identity.test.ts | 215 ++++++----------- 7 files changed, 281 insertions(+), 353 deletions(-) diff --git a/tee-worker/ts-tests/batch.test.ts b/tee-worker/ts-tests/batch.test.ts index 40c2efff6c..0245e33290 100644 --- a/tee-worker/ts-tests/batch.test.ts +++ b/tee-worker/ts-tests/batch.test.ts @@ -21,7 +21,6 @@ import { import { ethers } from 'ethers'; import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; import type { LitentryValidationData } from './parachain-interfaces/identity/types'; -import type { IdentityGenericEvent } from './common/type-definitions'; describeLitentry('Test Batch Utility', 0, (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; let identities: LitentryPrimitivesIdentity[] = []; @@ -44,12 +43,7 @@ describeLitentry('Test Batch Utility', 0, (context) => { 'identityManagement', ['UserShieldingKeySet'] ); - const [alice] = (await handleIdentityEvents( - context, - aesKey, - resp_events, - 'UserShieldingKeySet' - )) as IdentityGenericEvent[]; + const [alice] = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); assert.equal( alice.who, u8aToHex(context.substrateWallet.alice.addressRaw), @@ -98,15 +92,10 @@ describeLitentry('Test Batch Utility', 0, (context) => { 'identityManagement', ['IdentityCreated'] ); - const event_datas = (await handleIdentityEvents( - context, - aesKey, - resp_events, - 'IdentityCreated' - )) as IdentityGenericEvent[]; - for (let i = 0; i < [event_datas].length; i++) { - assertIdentityCreated(context.substrateWallet.alice, event_datas[i]); - } + const event_datas = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityCreated'); + + await assertIdentityCreated(context, context.substrateWallet.alice, resp_events, aesKey, identities); + const ethereum_validations = await buildValidations( context, event_datas, @@ -124,7 +113,7 @@ describeLitentry('Test Batch Utility', 0, (context) => { const resp_events = await sendTxsWithUtility(context, context.substrateWallet.bob, txs, 'identityManagement', [ 'CreateIdentityFailed', ]); - await checkErrorDetail(resp_events, 'UserShieldingKeyNotFound', true); + await checkErrorDetail(resp_events, 'UserShieldingKeyNotFound'); }); step('batch test: verify identity', async function () { let txs = await buildIdentityTxs( @@ -139,14 +128,7 @@ describeLitentry('Test Batch Utility', 0, (context) => { 'IdentityVerified', ]); - let event_datas = (await handleIdentityEvents( - context, - aesKey, - resp_events, - 'IdentityVerified' - )) as IdentityGenericEvent[]; - - assertIdentityVerified(context.substrateWallet.alice, event_datas); + await assertIdentityVerified(context, context.substrateWallet.alice, resp_events, aesKey, identities); }); step('batch test: verify error identity', async function () { @@ -160,8 +142,7 @@ describeLitentry('Test Batch Utility', 0, (context) => { let resp_events = await sendTxsWithUtility(context, context.substrateWallet.alice, txs, 'identityManagement', [ 'VerifyIdentityFailed', ]); - const resp_event_datas = (await handleIdentityEvents(context, aesKey, resp_events, 'Failed')) as string[]; - await checkErrorDetail(resp_event_datas, 'ChallengeCodeNotFound', false); + await checkErrorDetail(resp_events, 'ChallengeCodeNotFound'); }); //query here in the hope that the status remains unchanged after verify error identity step('batch test:check IDGraph after verifyIdentity', async function () { @@ -176,10 +157,9 @@ describeLitentry('Test Batch Utility', 0, (context) => { u8aToHex(context.substrateWallet.alice.addressRaw), identity_hex ); - assert.notEqual( - resp_id_graph.verificationRequestBlock.toHuman(), - 0, - 'verificationRequestBlock should not be 0 after verifyIdentity' + assert( + Number(resp_id_graph.verificationRequestBlock.toHuman()) > 0, + 'verificationRequestBlock should be greater than 0 after verifyIdentity' ); assert.equal(resp_id_graph.isVerified.toHuman(), true, 'isVerified should be true after verifyIdentity'); } @@ -193,15 +173,8 @@ describeLitentry('Test Batch Utility', 0, (context) => { 'identityManagement', ['IdentityRemoved'] ); - const resp_event_datas = (await handleIdentityEvents( - context, - aesKey, - resp_remove_events, - 'IdentityRemoved' - )) as IdentityGenericEvent[]; - for (let i = 0; i < resp_event_datas.length; i++) { - assertIdentityRemoved(context.substrateWallet.alice, resp_event_datas[i]); - } + + await assertIdentityRemoved(context, context.substrateWallet.alice, resp_remove_events); }); step('batch test: remove error identities', async function () { let txs = await buildIdentityTxs(context, context.substrateWallet.alice, identities, 'removeIdentity'); @@ -212,13 +185,7 @@ describeLitentry('Test Batch Utility', 0, (context) => { 'identityManagement', ['RemoveIdentityFailed'] ); - const resp_event_datas = (await handleIdentityEvents( - context, - aesKey, - resp_remove_events, - 'Failed' - )) as string[]; - await checkErrorDetail(resp_event_datas, 'IdentityNotExist', false); + await checkErrorDetail(resp_remove_events, 'IdentityNotExist'); }); //query here in the hope that the status remains unchanged after removes error identity diff --git a/tee-worker/ts-tests/bulk_identity.test.ts b/tee-worker/ts-tests/bulk_identity.test.ts index 844b233fd0..a85c9b949a 100644 --- a/tee-worker/ts-tests/bulk_identity.test.ts +++ b/tee-worker/ts-tests/bulk_identity.test.ts @@ -1,14 +1,5 @@ import { step } from 'mocha-steps'; -import { - buildValidations, - describeLitentry, - buildIdentityTxs, - buildIdentityHelper, - assertIdentityCreated, - assertIdentityRemoved, - assertIdentityVerified, - assertInitialIDGraphCreated, -} from './common/utils'; +import { buildValidations, describeLitentry, buildIdentityTxs, buildIdentityHelper } from './common/utils'; import { KeyringPair } from '@polkadot/keyring/types'; import { ethers } from 'ethers'; import type { BatchCall, IdentityGenericEvent } from './common/type-definitions'; @@ -66,11 +57,6 @@ describeLitentry('multiple accounts test', 2, async (context) => { const resp_events = await multiAccountTxSender(context, txs, substrateSigners, 'identityManagement', [ 'UserShieldingKeySet', ]); - - const event_datas = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); - event_datas.forEach(async (data: any, index: number) => { - await assertInitialIDGraphCreated(context, substrateSigners[index], data); - }); }); //test identity with multiple accounts @@ -85,17 +71,7 @@ describeLitentry('multiple accounts test', 2, async (context) => { const resp_events = await multiAccountTxSender(context, txs, substrateSigners, 'identityManagement', [ 'IdentityCreated', ]); - const resp_events_datas = (await handleIdentityEvents( - context, - aesKey, - resp_events, - 'IdentityCreated' - )) as IdentityGenericEvent[]; - - for (let index = 0; index < resp_events_datas.length; index++) { - console.log('createIdentity', index); - assertIdentityCreated(substrateSigners[index], resp_events_datas[index]); - } + const resp_events_datas = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityCreated'); const validations = await buildValidations( context, resp_events_datas, @@ -114,16 +90,6 @@ describeLitentry('multiple accounts test', 2, async (context) => { 'IdentityVerified', ]); assert.equal(resp_events.length, txs.length, 'verify identities with multiple accounts check fail'); - const [resp_events_datas] = (await handleIdentityEvents( - context, - aesKey, - resp_events, - 'IdentityVerified' - )) as IdentityGenericEvent[]; - for (let index = 0; index < [resp_events_datas].length; index++) { - console.log('verifyIdentity', index); - assertIdentityVerified(substrateSigners[index], [resp_events_datas]); - } }); step('test removeIdentity with multiple accounts', async () => { @@ -133,15 +99,5 @@ describeLitentry('multiple accounts test', 2, async (context) => { 'IdentityRemoved', ]); assert.equal(resp_events.length, txs.length, 'remove identities with multiple accounts check fail'); - const [resp_events_datas] = (await handleIdentityEvents( - context, - aesKey, - resp_events, - 'IdentityRemoved' - )) as IdentityGenericEvent[]; - for (let index = 0; index < [resp_events_datas].length; index++) { - console.log('verifyIdentity', index); - assertIdentityRemoved(substrateSigners[index], resp_events_datas); - } }); }); diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index 54b1ce2454..8c9b336cc9 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -165,7 +165,7 @@ export async function sendTxsWithUtility( pallet: string, events: string[], listenTimeoutInBlockNumber?: number -): Promise { +): Promise { //ensure the tx is in block const isInBlockPromise = new Promise((resolve) => { context.api.tx.utility.batchAll(txs.map(({ tx }) => tx)).signAndSend(signer, async (result) => { @@ -180,14 +180,14 @@ export async function sendTxsWithUtility( await isInBlockPromise; - const resp_events = (await listenEvent( + const resp_events = await listenEvent( context.api, pallet, events, txs.length, [u8aToHex(signer.addressRaw)], listenTimeoutInBlockNumber - )) as any; + ); expect(resp_events.length).to.be.equal(txs.length); return resp_events; diff --git a/tee-worker/ts-tests/common/utils/assertion.ts b/tee-worker/ts-tests/common/utils/assertion.ts index 57ab1ab9c1..9e63c92f9c 100644 --- a/tee-worker/ts-tests/common/utils/assertion.ts +++ b/tee-worker/ts-tests/common/utils/assertion.ts @@ -1,97 +1,187 @@ import { ApiPromise } from '@polkadot/api'; -import { Event } from '@polkadot/types/interfaces'; +import { Event, EventRecord } from '@polkadot/types/interfaces'; import { hexToU8a, u8aToHex } from '@polkadot/util'; import Ajv from 'ajv'; import { assert, expect } from 'chai'; import * as ed from '@noble/ed25519'; -import { buildIdentityHelper } from './identity-helper'; +import { buildIdentityHelper, parseIdGraph, createIdentityEvent, parseIdentity } from './identity-helper'; import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; -import type { EnclaveResult, IdentityGenericEvent, IntegrationTestContext } from '../type-definitions'; +import type { EnclaveResult, IntegrationTestContext } from '../type-definitions'; import type { KeyringPair } from '@polkadot/keyring/types'; import type { HexString } from '@polkadot/util/types'; import { JsonSchema } from '../type-definitions'; -import { isEqual, isArrayEqual } from './common'; import { env_network } from '../../common/helpers'; +import colors from 'colors'; + export async function assertInitialIDGraphCreated( context: IntegrationTestContext, - signer: KeyringPair, - event: IdentityGenericEvent + signer: KeyringPair[], + events: any[], + aesKey: HexString ) { - assert.equal(event.who, u8aToHex(signer.addressRaw)); - assert.equal(event.idGraph.length, 1); - // check identity in idgraph - const expected_identity = context.sidechainRegistry.createType( - 'LitentryPrimitivesIdentity', - await buildIdentityHelper(u8aToHex(signer.addressRaw), env_network, 'Substrate', context) - ) as unknown as LitentryPrimitivesIdentity; - - const expected_target = expected_identity[`as${expected_identity.type}`]; - const idGraph_target = event.idGraph[0][0][`as${event.idGraph[0][0].type}`]; + for (let index = 0; index < events.length; index++) { + const event_data = events[index].data; + + const who = event_data.account.toHex(); + const idGraph_data = parseIdGraph(context.sidechainRegistry, event_data.idGraph, aesKey); + assert.equal(idGraph_data.length, 1); + assert.equal(who, u8aToHex(signer[index].addressRaw)); + + // Check identity in idgraph + const expected_identity = await buildIdentityHelper( + u8aToHex(signer[index].addressRaw), + env_network, + 'Substrate', + context + ); + const expected_target = expected_identity[`as${expected_identity.type}`]; + const idGraph_target = idGraph_data[0][0][`as${idGraph_data[0][0].type}`]; + assert.equal(expected_target.toString(), idGraph_target.toString()); + + // Check identityContext in idgraph + const idGraph_context = idGraph_data[0][1].toHuman(); + const creation_request_block = idGraph_context.creationRequestBlock; + const verification_request_block = idGraph_context.verificationRequestBlock; + assert.equal(creation_request_block, 0, 'Check InitialIDGraph error: creation_request_block should be 0'); + assert.equal( + verification_request_block, + 0, + 'Check InitialIDGraph error: verification_request_block should be 0' + ); + assert.isTrue(idGraph_context.isVerified, 'Check InitialIDGraph error: isVerified should be true'); - assert.equal(expected_target.toString(), idGraph_target.toString()); + console.log(colors.green('assertInitialIDGraphCreated complete')); + } +} - // check identityContext in idgraph - const idGraph_context = event.idGraph[0][1].toHuman(); +export async function assertIdentityVerified( + context: IntegrationTestContext, + signers: KeyringPair | KeyringPair[], + events: any[], + aesKey: HexString, + expected_identities: LitentryPrimitivesIdentity[] +) { + // We should parse idGraph from the last event, because the last event updates the verification status of all identities. + const event_idGraph = parseIdGraph(context.sidechainRegistry, events[events.length - 1].data.idGraph, aesKey); + + for (let index = 0; index < events.length; index++) { + const signer = Array.isArray(signers) ? signers[index] : signers; + const expected_identity = expected_identities[index]; + const expected_identity_target = expected_identity[`as${expected_identity.type}`]; + + const event_data = events[index].data; + const who = event_data.account.toHex(); + + // Check prime identity in idGraph + const expected_prime_identity = await buildIdentityHelper( + u8aToHex(signer.addressRaw), + env_network, + 'Substrate', + context + ); + assert.equal( + expected_prime_identity.toString(), + event_idGraph[events.length][0].toString(), + 'Check IdentityVerified error: event_idGraph prime identity should be equal to expected_prime_identity' + ); - const creation_request_block = idGraph_context.creationRequestBlock; - const verification_request_block = idGraph_context.verificationRequestBlock; + // Check event identity with expected identity + const event_identity = parseIdentity(context.sidechainRegistry, event_data.identity, aesKey); + const event_identity_target = event_identity[`as${event_identity.type}`]; + assert.equal( + expected_identity_target.toString(), + event_identity_target.toString(), + 'Check IdentityVerified error: event_identity_target should be equal to expected_identity_target' + ); - assert.equal(creation_request_block, 0); - assert.equal(verification_request_block, 0); + // Check identityContext in idGraph + assert.isTrue( + event_idGraph[index][1].isVerified.toHuman(), + 'Check IdentityVerified error: event_idGraph identity should be verified' + ); + assert( + Number(event_idGraph[index][1].verificationRequestBlock.toHuman()) > 0, + 'Check IdentityVerified error: event_idGraph verificationRequestBlock should be greater than 0' + ); + assert( + Number(event_idGraph[index][1].creationRequestBlock.toHuman()) > 0, + 'Check IdentityVerified error: event_idGraph creationRequestBlock should be greater than 0' + ); - assert.isTrue(idGraph_context.isVerified); + assert.equal(who, u8aToHex(signer.addressRaw), 'Check IdentityCreated error: signer should be equal to who'); + } + console.log(colors.green('assertIdentityVerified complete')); } -export function assertIdentityVerified(signer: KeyringPair, eventDatas: IdentityGenericEvent[]) { - let event_identities: LitentryPrimitivesIdentity[] = []; - let idgraph_identities: LitentryPrimitivesIdentity[] = []; - for (let index = 0; index < eventDatas.length; index++) { - event_identities.push(eventDatas[index].identity); - } - for (let i = 0; i < eventDatas[eventDatas.length - 1].idGraph.length; i++) { - idgraph_identities.push(eventDatas[eventDatas.length - 1].idGraph[i][0]); - } - //idgraph_identities[idgraph_identities.length - 1] is prime identity,don't need to compare - - assert.isTrue( - isArrayEqual(event_identities, idgraph_identities.slice(0, idgraph_identities.length - 1)), - 'event identities should be equal to idgraph identities' - ); - - const data = eventDatas[eventDatas.length - 1]; - for (let i = 0; i < eventDatas[eventDatas.length - 1].idGraph.length; i++) { - if (isEqual(data.idGraph[i][0], data.identity)) { - assert.isTrue(data.idGraph[i][1].isVerified.toHuman(), 'identity should be verified'); - } +export async function assertIdentityCreated( + context: IntegrationTestContext, + signers: KeyringPair | KeyringPair[], + events: any[], + aesKey: HexString, + expected_identities: LitentryPrimitivesIdentity[] +) { + for (let index = 0; index < events.length; index++) { + const signer = Array.isArray(signers) ? signers[index] : signers; + const expected_identity = expected_identities[index]; + const expected_identity_target = expected_identity[`as${expected_identity.type}`]; + const event_data = events[index].data; + const who = event_data.account.toHex(); + const event_identity = parseIdentity(context.sidechainRegistry, event_data.identity, aesKey); + const event_identity_target = event_identity[`as${event_identity.type}`]; + // Check identity caller + assert.equal(who, u8aToHex(signer.addressRaw), 'Check IdentityCreated error: signer should be equal to who'); + + // Check identity type + assert.equal( + expected_identity.type, + event_identity.type, + 'Check IdentityCreated error: event_identity type should be equal to expected_identity type' + ); + // Check identity in event + assert.equal( + expected_identity_target.toString(), + event_identity_target.toString(), + 'Check IdentityCreated error: event_identity_target should be equal to expected_identity_target' + ); } - assert.equal(data?.who, u8aToHex(signer.addressRaw), 'check caller error'); + console.log(colors.green('assertIdentityCreated complete')); } -export function assertIdentityCreated(signer: KeyringPair, identityEvent: IdentityGenericEvent) { - assert.equal(identityEvent?.who, u8aToHex(signer.addressRaw), 'check caller error'); -} +export async function assertIdentityRemoved( + context: IntegrationTestContext, + signers: KeyringPair | KeyringPair[], + events: any[] +) { + for (let index = 0; index < events.length; index++) { + const signer = Array.isArray(signers) ? signers[index] : signers; -export function assertIdentityRemoved(signer: KeyringPair, identityEvent: IdentityGenericEvent) { - assert.equal(identityEvent?.idGraph, null, 'check idGraph error,should be null after removed'); - assert.equal(identityEvent?.who, u8aToHex(signer.addressRaw), 'check caller error'); + const event_data = events[index].data; + const who = event_data.account.toHex(); + + // Check idGraph + assert.equal( + event_data.idGraph, + null, + 'check IdentityRemoved error: event idGraph should be null after removed identity' + ); + + assert.equal(who, u8aToHex(signer.addressRaw), 'Check IdentityRemoved error: signer should be equal to who'); + } + + console.log(colors.green('assertIdentityRemoved complete')); } -export async function checkErrorDetail( - response: string[] | Event[], - expectedDetail: string, - isModule: boolean -): Promise { - let detail: string = ''; - // TODO: sometimes `item.data.detail.toHuman()` or `item` is treated as object (why?) - // I have to JSON.stringify it to assign it to a string - response.map((item: any) => { - isModule ? (detail = JSON.stringify(item.data.detail.toHuman())) : (detail = JSON.stringify(item)); - assert.isTrue( - detail.includes(expectedDetail), +export async function checkErrorDetail(events: Event[], expectedDetail: string) { + events.map((item: any) => { + const detail = item.data.detail.toString(); + // isModule ? (detail = JSON.stringify(item.data.detail.toHuman())) : (detail = JSON.stringify(item)); + + assert.equal( + detail, + expectedDetail, `check error detail failed, expected detail is ${expectedDetail}, but got ${detail}` ); }); - return true; } export async function verifySignature(data: any, index: HexString, proofJson: any, api: ApiPromise) { diff --git a/tee-worker/ts-tests/common/utils/common.ts b/tee-worker/ts-tests/common/utils/common.ts index b908781424..b4fc03d685 100644 --- a/tee-worker/ts-tests/common/utils/common.ts +++ b/tee-worker/ts-tests/common/utils/common.ts @@ -4,32 +4,3 @@ export function sleep(secs: number) { setTimeout(resolve, secs * 1000); }); } - -export function isEqual(obj1: LitentryPrimitivesIdentity, obj2: LitentryPrimitivesIdentity) { - return obj1.toString() === obj2.toString(); -} - -// campare two array of event_identities idgraph_identities whether equal -export function isArrayEqual(arr1: LitentryPrimitivesIdentity[], arr2: LitentryPrimitivesIdentity[]) { - if (arr1.length !== arr2.length) { - return false; - } - for (let i = 0; i < arr1.length; i++) { - const obj1 = arr1[i]; - let found = false; - - for (let j = 0; j < arr2.length; j++) { - const obj2 = arr2[j]; - - if (isEqual(obj1, obj2)) { - found = true; - break; - } - } - - if (!found) { - return false; - } - } - return true; -} diff --git a/tee-worker/ts-tests/common/utils/identity-helper.ts b/tee-worker/ts-tests/common/utils/identity-helper.ts index 429e997369..6f6a48ad55 100644 --- a/tee-worker/ts-tests/common/utils/identity-helper.ts +++ b/tee-worker/ts-tests/common/utils/identity-helper.ts @@ -1,12 +1,7 @@ import { hexToU8a, u8aToHex } from '@polkadot/util'; import { blake2AsHex } from '@polkadot/util-crypto'; -import { - EvmNetwork, - IdentityGenericEvent, - IntegrationTestContext, - SubstrateNetwork, - Web2Network, -} from '../type-definitions'; + +import { AESOutput } from '../type-definitions'; import { decryptWithAES, encryptWithTeeShieldingKey } from './crypto'; import { assert } from 'chai'; import { ethers } from 'ethers'; @@ -16,7 +11,13 @@ import type { LitentryValidationData } from '../../parachain-interfaces/identity import type { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; import type { KeyringPair } from '@polkadot/keyring/types'; import type { HexString } from '@polkadot/util/types'; - +import type { + EvmNetwork, + IdentityGenericEvent, + IntegrationTestContext, + SubstrateNetwork, + Web2Network, +} from '../type-definitions'; // + + export function generateVerificationMessage( context: IntegrationTestContext, @@ -116,8 +117,8 @@ export async function handleIdentityEvents( aesKey: HexString, events: any[], type: 'UserShieldingKeySet' | 'IdentityCreated' | 'IdentityVerified' | 'IdentityRemoved' | 'Failed' -): Promise<(IdentityGenericEvent | string)[]> { - let results: (IdentityGenericEvent | string)[] = []; +): Promise { + let results: IdentityGenericEvent[] = []; for (let index = 0; index < events.length; index++) { switch (type) { @@ -162,9 +163,6 @@ export async function handleIdentityEvents( ) ); break; - case 'Failed': - results.push(events[index].data.detail.toHuman() as string); - break; } } console.log(`${type} event data:`, results); @@ -172,6 +170,33 @@ export async function handleIdentityEvents( return [...results]; } +export function parseIdGraph( + sidechainRegistry: TypeRegistry, + idGraph_output: AESOutput, + aesKey: HexString +): [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][] { + const decrypted_idGraph = decryptWithAES(aesKey, idGraph_output, 'hex'); + let idGraph: [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][] = + sidechainRegistry.createType( + 'Vec<(LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext)>', + decrypted_idGraph + ) as unknown as [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][]; + return idGraph; +} + +export function parseIdentity( + sidechainRegistry: TypeRegistry, + identity_output: AESOutput, + aesKey: HexString +): LitentryPrimitivesIdentity { + const decrypted_identity = decryptWithAES(aesKey, identity_output, 'hex'); + const identity = sidechainRegistry.createType( + 'LitentryPrimitivesIdentity', + decrypted_identity + ) as unknown as LitentryPrimitivesIdentity; + return identity; +} + export function createIdentityEvent( sidechainRegistry: TypeRegistry, who: HexString, @@ -201,8 +226,8 @@ export function createIdentityEvent( export async function buildValidations( context: IntegrationTestContext, - eventDatas: any[], - identities: any[], + eventDatas: IdentityGenericEvent[], + identities: LitentryPrimitivesIdentity[], network: 'ethereum' | 'substrate' | 'twitter', substrateSigners: KeyringPair[] | KeyringPair, ethereumSigners?: ethers.Wallet[] diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index 543a6b128c..a6b49a913d 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -20,7 +20,7 @@ import { multiAccountTxSender, sendTxsWithUtility } from './common/transactions' import { assertIdentityVerified, assertIdentityCreated, assertIdentityRemoved } from './common/utils'; import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; import type { LitentryValidationData } from './parachain-interfaces/identity/types'; -import type { IdentityGenericEvent, TransactionSubmit } from './common/type-definitions'; +import type { TransactionSubmit } from './common/type-definitions'; import type { HexString } from '@polkadot/util/types'; import { Event } from '@polkadot/types/interfaces'; import { ethers } from 'ethers'; @@ -73,12 +73,12 @@ describeLitentry('Test Identity', 0, (context) => { let resp_events = await sendTxsWithUtility(context, context.substrateWallet.alice, txs, 'identityManagement', [ 'CreateIdentityFailed', ]); - await checkErrorDetail(resp_events, 'UserShieldingKeyNotFound', true); + await checkErrorDetail(resp_events, 'UserShieldingKeyNotFound'); }); const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); step('set user shielding key', async function () { - await sleep(6000); + // await sleep(6000); let [alice_txs] = (await buildIdentityTxs( context, [context.substrateWallet.alice], @@ -98,16 +98,15 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['UserShieldingKeySet'] ); - const [alice, bob] = (await handleIdentityEvents( - context, - aesKey, - resp_events, - 'UserShieldingKeySet' - )) as IdentityGenericEvent[]; + await sleep(6000); - await assertInitialIDGraphCreated(context, context.substrateWallet.alice, alice); - await assertInitialIDGraphCreated(context, context.substrateWallet.bob, bob); + await assertInitialIDGraphCreated( + context, + [context.substrateWallet.alice, context.substrateWallet.bob], + resp_events, + aesKey + ); }); step('check user shielding key from sidechain storage after setUserShieldingKey', async function () { @@ -150,7 +149,7 @@ describeLitentry('Test Identity', 0, (context) => { // TODO: check IDGraph.length == 1 in the sidechain storage }); step('create identities', async function () { - //Alice + // Alice const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); const ethereum_identity = await buildIdentityHelper( context.ethersWallet.alice.address, @@ -165,7 +164,7 @@ describeLitentry('Test Identity', 0, (context) => { context ); - //Bob + // Bob const bob_substrate_identity = await buildIdentityHelper( u8aToHex(context.substrateWallet.bob.addressRaw), 'Litentry', @@ -192,15 +191,21 @@ describeLitentry('Test Identity', 0, (context) => { ['IdentityCreated'] ); - const [twitter_event_data, ethereum_event_data, substrate_event_data] = (await handleIdentityEvents( + const [twitter_event_data, ethereum_event_data, substrate_event_data] = await handleIdentityEvents( context, aesKey, alice_resp_events, 'IdentityCreated' - )) as IdentityGenericEvent[]; + ); - //Alice check twitter identity - assertIdentityCreated(context.substrateWallet.alice, twitter_event_data); + // Alice check identity + await assertIdentityCreated( + context, + context.substrateWallet.alice, + alice_resp_events, + aesKey, + alice_identities + ); const alice_twitter_validations = await buildValidations( context, @@ -210,8 +215,6 @@ describeLitentry('Test Identity', 0, (context) => { context.substrateWallet.alice ); - // Alice check ethereum identity - assertIdentityCreated(context.substrateWallet.alice, ethereum_event_data); const alice_ethereum_validations = await buildValidations( context, [ethereum_event_data], @@ -221,8 +224,6 @@ describeLitentry('Test Identity', 0, (context) => { [context.ethersWallet.alice] ); - //Alice check substrate identity - assertIdentityCreated(context.substrateWallet.alice, substrate_event_data); const alice_substrate_validations = await buildValidations( context, [substrate_event_data], @@ -249,14 +250,11 @@ describeLitentry('Test Identity', 0, (context) => { ['IdentityCreated'] ); - const [resp_extension_data] = (await handleIdentityEvents( - context, - aesKey, - bob_resp_events, - 'IdentityCreated' - )) as IdentityGenericEvent[]; + const [resp_extension_data] = await handleIdentityEvents(context, aesKey, bob_resp_events, 'IdentityCreated'); + + // Bob check identity + await assertIdentityCreated(context, context.substrateWallet.bob, bob_resp_events, aesKey, bob_identities); - assertIdentityCreated(context.substrateWallet.bob, resp_extension_data); if (resp_extension_data) { console.log('substrateExtensionIdentity challengeCode: ', resp_extension_data.challengeCode); const substrateExtensionValidationData = { @@ -315,7 +313,7 @@ describeLitentry('Test Identity', 0, (context) => { const twitter_identity = alice_identities[0]; const ethereum_validation = alice_validations[1]; - //verify twitter identity with ethereum validation + // verify twitter identity with ethereum validation let alice_txs = await buildIdentityTxs( context, context.substrateWallet.alice, @@ -330,18 +328,12 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['VerifyIdentityFailed'] ); - const verified_event_datas = (await handleIdentityEvents( - context, - aesKey, - alice_resp_events, - 'Failed' - )) as string[]; - await checkErrorDetail(verified_event_datas, 'InvalidIdentity', false); + await checkErrorDetail(alice_resp_events, 'InvalidIdentity'); }); step('verify wrong signature', async function () { const ethereum_identity = alice_identities[1]; - //use wrong signature + // use wrong signature const signature_ethereum = (await context.ethersWallet.alice.signMessage( ethers.utils.arrayify(wrong_msg) )) as HexString; @@ -375,17 +367,11 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['VerifyIdentityFailed'] ); - const verified_event_datas = (await handleIdentityEvents( - context, - aesKey, - alice_resp_events, - 'Failed' - )) as string[]; - await checkErrorDetail(verified_event_datas, 'VerifyEvmSignatureFailed', false); + await checkErrorDetail(alice_resp_events, 'VerifyEvmSignatureFailed'); }); step('verify identities', async function () { - //Alice verify all identities + // Alice verify all identities let alice_txs = await buildIdentityTxs( context, context.substrateWallet.alice, @@ -415,23 +401,18 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['IdentityVerified'] ); - const verified_event_datas = (await handleIdentityEvents( + + // Alice + await assertIdentityVerified( context, - aesKey, + context.substrateWallet.alice, alice_resp_events, - 'IdentityVerified' - )) as IdentityGenericEvent[]; - const substrate_extension_identity_verified = (await handleIdentityEvents( - context, aesKey, - bob_resp_events, - 'IdentityVerified' - )) as IdentityGenericEvent[]; - //Alice - assertIdentityVerified(context.substrateWallet.alice, verified_event_datas); - - //Bob - assertIdentityVerified(context.substrateWallet.bob, substrate_extension_identity_verified); + alice_identities + ); + + // Bob + assertIdentityVerified(context, context.substrateWallet.bob, bob_resp_events, aesKey, bob_identities); }); step('check IDGraph after verifyIdentity', async function () { @@ -450,7 +431,7 @@ describeLitentry('Test Identity', 0, (context) => { 0, 'verificationRequestBlock should not be 0 after verifyIdentity' ); - assert.equal(resp_id_graph.isVerified.toHuman(), true, 'is_verified should be true after verifyIdentity'); + assert.isTrue(resp_id_graph.isVerified.toHuman(), 'is_verified should be true after verifyIdentity'); }); step('verify error identities', async function () { @@ -469,13 +450,7 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['VerifyIdentityFailed'] ); - const alice_resp_same_verify_event_datas = (await handleIdentityEvents( - context, - aesKey, - alice_resp_same_verify_events, - 'Failed' - )) as string[]; - await checkErrorDetail(alice_resp_same_verify_event_datas, 'ChallengeCodeNotFound', false); + await checkErrorDetail(alice_resp_same_verify_events, 'ChallengeCodeNotFound'); //verify an identity(charlie) to an account but it isn't created before let charlie_txs = await buildIdentityTxs( @@ -492,13 +467,7 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['VerifyIdentityFailed'] ); - const charlie_resp_same_verify_event_datas = (await handleIdentityEvents( - context, - aesKey, - charlie_resp_same_verify_events, - 'Failed' - )) as string[]; - await checkErrorDetail(charlie_resp_same_verify_event_datas, 'ChallengeCodeNotFound', false); + await checkErrorDetail(charlie_resp_same_verify_events, 'ChallengeCodeNotFound'); }); step('remove identities', async function () { @@ -516,13 +485,6 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['IdentityRemoved'] ); - const [twitter_identity_removed, ethereum_identity_removed, substrate_identity_removed] = - (await handleIdentityEvents( - context, - aesKey, - alice_resp_remove_events, - 'IdentityRemoved' - )) as IdentityGenericEvent[]; // Bob remove substrate identities let bob_txs = await buildIdentityTxs(context, context.substrateWallet.bob, bob_identities, 'removeIdentity'); @@ -533,19 +495,17 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['IdentityRemoved'] ); - const [substrate_extension_identity_removed] = (await handleIdentityEvents( + const [substrate_extension_identity_removed] = await handleIdentityEvents( context, aesKey, bob_resp_remove_events, 'IdentityRemoved' - )) as IdentityGenericEvent[]; - //Alice - assertIdentityRemoved(context.substrateWallet.alice, twitter_identity_removed); - assertIdentityRemoved(context.substrateWallet.alice, ethereum_identity_removed); - assertIdentityRemoved(context.substrateWallet.alice, substrate_identity_removed); + ); + // Alice check identity + assertIdentityRemoved(context, context.substrateWallet.alice, alice_resp_remove_events); - // Bob - assertIdentityRemoved(context.substrateWallet.bob, substrate_extension_identity_removed); + // Bob check identity + assertIdentityRemoved(context, context.substrateWallet.bob, alice_resp_remove_events); }); step('check challengeCode from storage after removeIdentity', async function () { @@ -605,13 +565,9 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['IdentityCreated'] ); - const [substrate_create_event_data] = (await handleIdentityEvents( - context, - aesKey, - alice_resp_create__events, - 'IdentityCreated' - )) as IdentityGenericEvent[]; - assertIdentityCreated(context.substrateWallet.alice, substrate_create_event_data); + assertIdentityCreated(context, context.substrateWallet.alice, alice_resp_create__events, aesKey, [ + alice_substrate_identity, + ]); // remove substrate identity let alice_remove_txs = await buildIdentityTxs( @@ -645,19 +601,13 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['RemoveIdentityFailed'] ); - const prime_resp_event_datas = (await handleIdentityEvents( - context, - aesKey, - prime_resp_events, - 'Failed' - )) as string[]; - await checkErrorDetail(prime_resp_event_datas, 'RemovePrimeIdentityDisallowed', false); + await checkErrorDetail(prime_resp_events, 'RemovePrimeIdentityDisallowed'); }); step('remove error identities', async function () { - //remove a nonexistent identity - //context.substrateWallet.alice has aleady removed all identities in step('remove identities') + // Remove a nonexistent identity + // context.substrateWallet.alice has aleady removed all identities in step('remove identities') let alice_remove_txs = await buildIdentityTxs( context, context.substrateWallet.alice, @@ -671,14 +621,8 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['RemoveIdentityFailed'] ); - const alice_resp_remove_event_datas = (await handleIdentityEvents( - context, - aesKey, - alice_resp_remove_events, - 'Failed' - )) as string[]; - await checkErrorDetail(alice_resp_remove_event_datas, 'IdentityNotExist', false); + await checkErrorDetail(alice_resp_remove_events, 'IdentityNotExist'); //charlie doesn't have a challenge code,use alice identity let charlie_remove_txs = await buildIdentityTxs( @@ -695,14 +639,7 @@ describeLitentry('Test Identity', 0, (context) => { ['RemoveIdentityFailed'] ); - const charile_resp_remove_events_data = (await handleIdentityEvents( - context, - aesKey, - charile_resp_remove_events, - 'Failed' - )) as string[]; - - await checkErrorDetail(charile_resp_remove_events_data, 'UserShieldingKeyNotFound', false); + await checkErrorDetail(charile_resp_remove_events, 'UserShieldingKeyNotFound'); }); step('set error user shielding key', async function () { @@ -722,9 +659,7 @@ describeLitentry('Test Identity', 0, (context) => { ['SetUserShieldingKeyFailed'] ); - let error_event_datas = (await handleIdentityEvents(context, aesKey, resp_error_events, 'Failed')) as string[]; - - await checkErrorDetail(error_event_datas, 'ImportError', false); + await checkErrorDetail(resp_error_events, 'ImportError'); }); step('create error identities', async function () { @@ -741,8 +676,7 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['CreateIdentityFailed'] ); - let error_event_datas = (await handleIdentityEvents(context, aesKey, resp_error_events, 'Failed')) as string[]; - await checkErrorDetail(error_event_datas, 'ImportError', false); + await checkErrorDetail(resp_error_events, 'ImportError'); }); step('exceeding IDGraph limit not allowed', async function () { @@ -753,20 +687,14 @@ describeLitentry('Test Identity', 0, (context) => { 'setUserShieldingKey' ); - let resp_events: Event[] = (await sendTxsWithUtility( + let resp_events = await sendTxsWithUtility( context, context.substrateWallet.eve, [setUserShieldingKeyTx], 'identityManagement', ['UserShieldingKeySet'] - )) as Event[]; - const [event] = (await handleIdentityEvents( - context, - aesKey, - resp_events, - 'UserShieldingKeySet' - )) as IdentityGenericEvent[]; - await assertInitialIDGraphCreated(context, context.substrateWallet.eve, event); + ); + await assertInitialIDGraphCreated(context, [context.substrateWallet.eve], resp_events, aesKey); let identities: LitentryPrimitivesIdentity[] = []; for (let i = 0; i < 64; i++) { @@ -777,7 +705,7 @@ describeLitentry('Test Identity', 0, (context) => { resp_events = (await sendTxsWithUtility(context, context.substrateWallet.eve, txs, 'identityManagement', [ 'IdentityCreated', 'CreateIdentityFailed', - ])) as Event[]; + ])); let identity_created_events_raw = resp_events.filter((e) => e.method === 'IdentityCreated'); let create_identity_failed_events_raw = resp_events.filter((e) => e.method === 'CreateIdentityFailed'); @@ -786,22 +714,13 @@ describeLitentry('Test Identity', 0, (context) => { assert.equal(identity_created_events_raw.length, 63); assert.equal(create_identity_failed_events_raw.length, 1); - let identity_created_events = (await handleIdentityEvents( + let identity_created_events = await handleIdentityEvents( context, aesKey, identity_created_events_raw, 'IdentityCreated' - )) as IdentityGenericEvent[]; - identity_created_events.forEach((e) => { - assertIdentityCreated(context.substrateWallet.eve, e); - }); - let create_identity_failed_events = (await handleIdentityEvents( - context, - aesKey, - create_identity_failed_events_raw, - 'Failed' - )) as string[]; - assert.equal(create_identity_failed_events.length, 1); - await checkErrorDetail(create_identity_failed_events, 'IDGraphLenLimitReached', false); + ); + assertIdentityCreated(context, context.substrateWallet.eve, identity_created_events, aesKey, identities); + await checkErrorDetail(create_identity_failed_events_raw, 'IDGraphLenLimitReached'); }); }); From bda99a7de384c0a1d9c536a2ea507330823dc717 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Fri, 2 Jun 2023 00:03:17 +0800 Subject: [PATCH 24/25] fix vc ci --- tee-worker/ts-tests/common/utils/assertion.ts | 3 +- tee-worker/ts-tests/identity.test.ts | 4 +- tee-worker/ts-tests/vc.test.ts | 40 ++++++++++--------- 3 files changed, 25 insertions(+), 22 deletions(-) diff --git a/tee-worker/ts-tests/common/utils/assertion.ts b/tee-worker/ts-tests/common/utils/assertion.ts index 9e63c92f9c..9f23cc8884 100644 --- a/tee-worker/ts-tests/common/utils/assertion.ts +++ b/tee-worker/ts-tests/common/utils/assertion.ts @@ -49,9 +49,8 @@ export async function assertInitialIDGraphCreated( 'Check InitialIDGraph error: verification_request_block should be 0' ); assert.isTrue(idGraph_context.isVerified, 'Check InitialIDGraph error: isVerified should be true'); - - console.log(colors.green('assertInitialIDGraphCreated complete')); } + console.log(colors.green('assertInitialIDGraphCreated complete')); } export async function assertIdentityVerified( diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index a6b49a913d..632aafb307 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -702,10 +702,10 @@ describeLitentry('Test Identity', 0, (context) => { identities.push(identity); } let txs = await buildIdentityTxs(context, context.substrateWallet.eve, identities, 'createIdentity'); - resp_events = (await sendTxsWithUtility(context, context.substrateWallet.eve, txs, 'identityManagement', [ + resp_events = await sendTxsWithUtility(context, context.substrateWallet.eve, txs, 'identityManagement', [ 'IdentityCreated', 'CreateIdentityFailed', - ])); + ]); let identity_created_events_raw = resp_events.filter((e) => e.method === 'IdentityCreated'); let create_identity_failed_events_raw = resp_events.filter((e) => e.method === 'CreateIdentityFailed'); diff --git a/tee-worker/ts-tests/vc.test.ts b/tee-worker/ts-tests/vc.test.ts index 4f15ef9302..f8a3e97f3c 100644 --- a/tee-worker/ts-tests/vc.test.ts +++ b/tee-worker/ts-tests/vc.test.ts @@ -34,7 +34,7 @@ const assertion_A1: Assertion = { describeLitentry('VC test', 0, async (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; var indexList: HexString[] = []; - var vcKeys: string[] = ['A1', 'A2', 'A3', 'A4', 'A7', 'A8', 'A10', 'A11']; + var vcKeys: string[] = ['A1']; step('check user sidechain storage before create', async function () { const resp_shieldingKey = await checkUserShieldingKeys( context, @@ -93,9 +93,14 @@ describeLitentry('VC test', 0, async (context) => { txs.push({ tx }); } - const resp_events = await sendTxsWithUtility(context, context.substrateWallet.alice, txs, 'vcManagement', [ - 'VCIssued', - ]); + const resp_events = await sendTxsWithUtility( + context, + context.substrateWallet.alice, + txs, + 'vcManagement', + ['VCIssued'], + 30 + ); const res = await handleVcEvents(aesKey, resp_events, 'VCIssued'); for (let k = 0; k < res.length; k++) { @@ -126,9 +131,8 @@ describeLitentry('VC test', 0, async (context) => { 'vcManagement', ['RequestVCFailed'] ); - const error_event_datas = await handleVcEvents(aesKey, resp_error_events, 'Failed'); - await checkErrorDetail(error_event_datas, 'UserShieldingKeyNotFound', false); + await checkErrorDetail(resp_error_events, 'UserShieldingKeyNotFound'); }); step('Disable VC', async () => { let txs: any = []; @@ -152,13 +156,13 @@ describeLitentry('VC test', 0, async (context) => { const tx = context.api.tx.vcManagement.disableVc(indexList[0]); const nonce = (await context.api.rpc.system.accountNextIndex(context.substrateWallet.alice.address)).toNumber(); - const res = (await sendTxUntilInBlockList( - context.api, - [{ tx, nonce }], - context.substrateWallet.alice - )) as string[]; + const [error] = await sendTxUntilInBlockList(context.api, [{ tx, nonce }], context.substrateWallet.alice); - await checkErrorDetail(res, 'vcManagement.VCAlreadyDisabled', false); + assert.equal( + error, + 'vcManagement.VCAlreadyDisabled', + 'check disable vc error: error should be equal to vcManagement.VCAlreadyDisabled' + ); }); step('Revoke VC', async () => { @@ -185,12 +189,12 @@ describeLitentry('VC test', 0, async (context) => { //Alice has already revoked the A1 VC const tx = context.api.tx.vcManagement.revokeVc(indexList[0]); const nonce = (await context.api.rpc.system.accountNextIndex(context.substrateWallet.alice.address)).toNumber(); - const res = (await sendTxUntilInBlockList( - context.api, - [{ tx, nonce }], - context.substrateWallet.alice - )) as string[]; + const [error] = await sendTxUntilInBlockList(context.api, [{ tx, nonce }], context.substrateWallet.alice); - await checkErrorDetail(res, 'vcManagement.VCNotExist', false); + assert.equal( + error, + 'vcManagement.VCNotExist', + 'check revoke vc error: error should be equal to vcManagement.VCNotExist' + ); }); }); From 514f00360a06916589849e84fece862241eb06bd Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Fri, 2 Jun 2023 01:39:47 +0800 Subject: [PATCH 25/25] add storage query sleep --- tee-worker/ts-tests/batch.test.ts | 5 +++++ tee-worker/ts-tests/common/utils/assertion.ts | 11 ++++++----- tee-worker/ts-tests/common/utils/storage.ts | 7 +++++++ tee-worker/ts-tests/identity.test.ts | 4 ---- tee-worker/ts-tests/vc.test.ts | 3 --- 5 files changed, 18 insertions(+), 12 deletions(-) diff --git a/tee-worker/ts-tests/batch.test.ts b/tee-worker/ts-tests/batch.test.ts index 0245e33290..fad46d9e0e 100644 --- a/tee-worker/ts-tests/batch.test.ts +++ b/tee-worker/ts-tests/batch.test.ts @@ -157,10 +157,15 @@ describeLitentry('Test Batch Utility', 0, (context) => { u8aToHex(context.substrateWallet.alice.addressRaw), identity_hex ); + assert( Number(resp_id_graph.verificationRequestBlock.toHuman()) > 0, 'verificationRequestBlock should be greater than 0 after verifyIdentity' ); + assert( + Number(resp_id_graph.creationRequestBlock.toHuman()) > 0, + 'creationRequestBlock should be greater than 0 after verifyIdentity' + ); assert.equal(resp_id_graph.isVerified.toHuman(), true, 'isVerified should be true after verifyIdentity'); } }); diff --git a/tee-worker/ts-tests/common/utils/assertion.ts b/tee-worker/ts-tests/common/utils/assertion.ts index 9f23cc8884..cedb394a1e 100644 --- a/tee-worker/ts-tests/common/utils/assertion.ts +++ b/tee-worker/ts-tests/common/utils/assertion.ts @@ -171,13 +171,14 @@ export async function assertIdentityRemoved( } export async function checkErrorDetail(events: Event[], expectedDetail: string) { + // TODO: sometimes `item.data.detail.toHuman()` or `item` is treated as object (why?) + // I have to JSON.stringify it to assign it to a string events.map((item: any) => { - const detail = item.data.detail.toString(); - // isModule ? (detail = JSON.stringify(item.data.detail.toHuman())) : (detail = JSON.stringify(item)); + console.log('error detail: ', item.data.detail.toHuman()); + const detail = JSON.stringify(item.data.detail.toHuman()); - assert.equal( - detail, - expectedDetail, + assert.isTrue( + detail.includes(expectedDetail), `check error detail failed, expected detail is ${expectedDetail}, but got ${detail}` ); }); diff --git a/tee-worker/ts-tests/common/utils/storage.ts b/tee-worker/ts-tests/common/utils/storage.ts index 2db7eea7de..ea83d7e7ef 100644 --- a/tee-worker/ts-tests/common/utils/storage.ts +++ b/tee-worker/ts-tests/common/utils/storage.ts @@ -8,6 +8,8 @@ import type { PalletIdentityManagementTeeIdentityContext } from '@polkadot/types import type { HexString } from '@polkadot/util/types'; import type { Metadata } from '@polkadot/types'; +const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); + const base58 = require('micro-base58'); //sidechain storage utils @@ -95,6 +97,8 @@ export async function checkUserShieldingKeys( method: string, address: HexString ): Promise { + await sleep(6000); + const storageKey = await buildStorageHelper(context.metaData, pallet, method, address); let base58mrEnclave = base58.encode(Buffer.from(context.mrEnclave.slice(2), 'hex')); @@ -116,6 +120,8 @@ export async function checkUserChallengeCode( address: HexString, identity: HexString ): Promise { + await sleep(6000); + const storageKey = await buildStorageHelper(context.metaData, pallet, method, address, identity); let base58mrEnclave = base58.encode(Buffer.from(context.mrEnclave.slice(2), 'hex')); @@ -137,6 +143,7 @@ export async function checkIDGraph( address: HexString, identity: HexString ): Promise { + await sleep(6000); const storageKey = await buildStorageHelper(context.metaData, pallet, method, address, identity); let base58mrEnclave = base58.encode(Buffer.from(context.mrEnclave.slice(2), 'hex')); diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index 632aafb307..642b68eeb9 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -75,10 +75,8 @@ describeLitentry('Test Identity', 0, (context) => { ]); await checkErrorDetail(resp_events, 'UserShieldingKeyNotFound'); }); - const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); step('set user shielding key', async function () { - // await sleep(6000); let [alice_txs] = (await buildIdentityTxs( context, [context.substrateWallet.alice], @@ -99,8 +97,6 @@ describeLitentry('Test Identity', 0, (context) => { ['UserShieldingKeySet'] ); - await sleep(6000); - await assertInitialIDGraphCreated( context, [context.substrateWallet.alice, context.substrateWallet.bob], diff --git a/tee-worker/ts-tests/vc.test.ts b/tee-worker/ts-tests/vc.test.ts index f8a3e97f3c..f7624af53b 100644 --- a/tee-worker/ts-tests/vc.test.ts +++ b/tee-worker/ts-tests/vc.test.ts @@ -70,16 +70,13 @@ describeLitentry('VC test', 0, async (context) => { 'alice shielding key should be set' ); }); - const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); step('check user shielding key from sidechain storage after setUserShieldingKey', async function () { - await sleep(6000); const resp_shieldingKey = await checkUserShieldingKeys( context, 'IdentityManagement', 'UserShieldingKeys', u8aToHex(context.substrateWallet.alice.addressRaw) ); - await sleep(6000); assert.equal(resp_shieldingKey, aesKey, 'resp_shieldingKey should be equal aesKey after set'); }); step('Request VC', async () => {