Skip to content

Commit

Permalink
chore: update metadata to 1.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rflechtner committed Aug 3, 2023
1 parent 38da338 commit 417cdf0
Show file tree
Hide file tree
Showing 10 changed files with 1,208 additions and 1,150 deletions.
2 changes: 1 addition & 1 deletion packages/augment-api/metadata/spiritnet.json

Large diffs are not rendered by default.

40 changes: 37 additions & 3 deletions packages/augment-api/src/interfaces/augment-api-consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,22 @@ declare module '@polkadot/api-base/types/consts' {
did: {
/**
* The amount of balance that will be taken for each DID as a deposit
* to incentivise fair use of the on chain storage. The deposit can be
* reclaimed when the DID is deleted.
* to incentivise fair use of the on chain storage. The deposits
* increase by the amount of used keys and service endpoints. The
* deposit can be reclaimed when the DID is deleted.
**/
deposit: u128 & AugmentedConst<ApiType>;
baseDeposit: u128 & AugmentedConst<ApiType>;
/**
* The amount of balance that will be taken for each DID as a fee to
* incentivise fair use of the on chain storage. The fee will not get
* refunded when the DID is deleted.
**/
fee: u128 & AugmentedConst<ApiType>;
/**
* The amount of balance that will be taken for each added key as a
* deposit to incentivise fair use of the on chain storage.
**/
keyDeposit: u128 & AugmentedConst<ApiType>;
/**
* The maximum number of blocks a DID-authorized operation is
* considered valid after its creation.
Expand Down Expand Up @@ -188,6 +194,13 @@ declare module '@polkadot/api-base/types/consts' {
* Should be greater than `MaxNewKeyAgreementKeys`.
**/
maxTotalKeyAgreementKeys: u32 & AugmentedConst<ApiType>;
/**
* The amount of balance that will be taken for each service endpoint
* as a deposit to incentivise fair use of the on chain storage. The
* deposit can be reclaimed when the service endpoint is removed or the
* DID deleted.
**/
serviceEndpointDeposit: u128 & AugmentedConst<ApiType>;
};
didLookup: {
/**
Expand Down Expand Up @@ -216,6 +229,27 @@ declare module '@polkadot/api-base/types/consts' {
**/
initialPeriodReward: u128 & AugmentedConst<ApiType>;
};
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<ApiType>;
/**
* 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<ApiType>;
/**
* The maximum amount of signatories allowed in the multisig.
**/
maxSignatories: u32 & AugmentedConst<ApiType>;
};
parachainStaking: {
/**
* Default number of blocks validation rounds last, as set in the
Expand Down
72 changes: 67 additions & 5 deletions packages/augment-api/src/interfaces/augment-api-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ declare module '@polkadot/api-base/types/errors' {
* The given account did not vote on the referendum.
**/
NotVoter: AugmentedError<ApiType>;
/**
* The preimage does not exist.
**/
PreimageNotExist: AugmentedError<ApiType>;
/**
* Proposal still blacklisted
**/
Expand Down Expand Up @@ -503,6 +507,64 @@ declare module '@polkadot/api-base/types/errors' {
**/
Permanent: AugmentedError<ApiType>;
};
multisig: {
/**
* Call is already approved by this signatory.
**/
AlreadyApproved: AugmentedError<ApiType>;
/**
* The data to be stored is already stored.
**/
AlreadyStored: AugmentedError<ApiType>;
/**
* The maximum weight information provided was too low.
**/
MaxWeightTooLow: AugmentedError<ApiType>;
/**
* Threshold must be 2 or greater.
**/
MinimumThreshold: AugmentedError<ApiType>;
/**
* Call doesn't need any (more) approvals.
**/
NoApprovalsNeeded: AugmentedError<ApiType>;
/**
* Multisig operation not found when attempting to cancel.
**/
NotFound: AugmentedError<ApiType>;
/**
* No timepoint was given, yet the multisig operation is already underway.
**/
NoTimepoint: AugmentedError<ApiType>;
/**
* Only the account that originally created the multisig is able to cancel it.
**/
NotOwner: AugmentedError<ApiType>;
/**
* The sender was contained in the other signatories; it shouldn't be.
**/
SenderInSignatories: AugmentedError<ApiType>;
/**
* The signatories were provided out of order; they should be ordered.
**/
SignatoriesOutOfOrder: AugmentedError<ApiType>;
/**
* There are too few signatories in the list.
**/
TooFewSignatories: AugmentedError<ApiType>;
/**
* There are too many signatories in the list.
**/
TooManySignatories: AugmentedError<ApiType>;
/**
* A timepoint was given, yet no multisig operation is underway.
**/
UnexpectedTimepoint: AugmentedError<ApiType>;
/**
* A different timepoint was given to the multisig operation that is underway.
**/
WrongTimepoint: AugmentedError<ApiType>;
};
parachainStaking: {
/**
* The delegator has already previously delegated the collator
Expand Down Expand Up @@ -659,7 +721,7 @@ declare module '@polkadot/api-base/types/errors' {
};
parachainSystem: {
/**
* The inherent which supplies the host configuration did not run this block
* The inherent which supplies the host configuration did not run this block.
**/
HostConfigurationNotAvailable: AugmentedError<ApiType>;
/**
Expand All @@ -671,24 +733,24 @@ declare module '@polkadot/api-base/types/errors' {
**/
NotScheduled: AugmentedError<ApiType>;
/**
* Attempt to upgrade validation function while existing upgrade pending
* Attempt to upgrade validation function while existing upgrade pending.
**/
OverlappingUpgrades: AugmentedError<ApiType>;
/**
* Polkadot currently prohibits this parachain from upgrading its validation function
* Polkadot currently prohibits this parachain from upgrading its validation function.
**/
ProhibitedByPolkadot: AugmentedError<ApiType>;
/**
* The supplied validation function has compiled into a blob larger than Polkadot is
* willing to run
* willing to run.
**/
TooBig: AugmentedError<ApiType>;
/**
* The given code upgrade has not been authorized.
**/
Unauthorized: AugmentedError<ApiType>;
/**
* The inherent which supplies the validation data did not run this block
* The inherent which supplies the validation data did not run this block.
**/
ValidationDataNotAvailable: AugmentedError<ApiType>;
};
Expand Down
36 changes: 35 additions & 1 deletion packages/augment-api/src/interfaces/augment-api-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U8aFixed, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { DelegationDelegationHierarchyPermissions, FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletDidLookupLinkableAccountLinkableAccountId, RuntimeCommonAssetsAssetDid, RuntimeCommonAuthorizationAuthorizationId, SpRuntimeDispatchError, SpWeightsWeightV2Weight, SpiritnetRuntimeProxyType, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
import type { DelegationDelegationHierarchyPermissions, FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletDidLookupLinkableAccountLinkableAccountId, PalletMultisigTimepoint, RuntimeCommonAssetsAssetDid, RuntimeCommonAuthorizationAuthorizationId, SpRuntimeDispatchError, SpWeightsWeightV2Weight, SpiritnetRuntimeProxyType, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';

export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;

Expand Down Expand Up @@ -197,6 +197,18 @@ declare module '@polkadot/api-base/types/events' {
* An external proposal has been tabled.
**/
ExternalTabled: AugmentedEvent<ApiType, []>;
/**
* Metadata for a proposal or a referendum has been cleared.
**/
MetadataCleared: AugmentedEvent<ApiType, [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.
**/
Expand Down Expand Up @@ -287,6 +299,10 @@ declare module '@polkadot/api-base/types/events' {
* Downward message is invalid XCM.
**/
InvalidFormat: AugmentedEvent<ApiType, [messageId: U8aFixed], { messageId: U8aFixed }>;
/**
* The maximum number of downward messages was.
**/
MaxMessagesExhausted: AugmentedEvent<ApiType, [messageId: U8aFixed], { messageId: U8aFixed }>;
/**
* Downward message is overweight and was placed in the overweight queue.
**/
Expand Down Expand Up @@ -318,6 +334,24 @@ declare module '@polkadot/api-base/types/events' {
**/
IndexFrozen: AugmentedEvent<ApiType, [index: u64, who: AccountId32], { index: u64, who: AccountId32 }>;
};
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<Null, SpRuntimeDispatchError>], { approving: AccountId32, timepoint: PalletMultisigTimepoint, multisig: AccountId32, callHash: U8aFixed, result: Result<Null, SpRuntimeDispatchError> }>;
/**
* A new multisig operation has begun.
**/
NewMultisig: AugmentedEvent<ApiType, [approving: AccountId32, multisig: AccountId32, callHash: U8aFixed], { approving: AccountId32, multisig: AccountId32, callHash: U8aFixed }>;
};
parachainStaking: {
/**
* The length in blocks for future validation rounds has changed.
Expand Down
28 changes: 17 additions & 11 deletions packages/augment-api/src/interfaces/augment-api-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H256 } from '@polkadot/types/interfaces/runtime';
import type { AttestationAttestationsAttestationDetails, CtypeCtypeEntry, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, DelegationDelegationHierarchyDelegationHierarchyDetails, DelegationDelegationHierarchyDelegationNode, DidDidDetails, DidServiceEndpointsDidEndpoint, FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollectiveVotes, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletDidLookupConnectionRecord, PalletDidLookupLinkableAccountLinkableAccountId, PalletDidLookupMigrationState, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletWeb3NamesWeb3NameWeb3NameOwnership, ParachainStakingCandidate, ParachainStakingDelegationCounter, ParachainStakingInflationInflationInfo, ParachainStakingRoundInfo, ParachainStakingStake, ParachainStakingTotalStake, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, PublicCredentialsCredentialsCredentialEntry, RuntimeCommonAssetsAssetDid, RuntimeCommonAuthorizationAuthorizationId, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, SpiritnetRuntimeSessionKeys } from '@polkadot/types/lookup';
import type { AttestationAttestationsAttestationDetails, CtypeCtypeEntry, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCodeUpgradeAuthorization, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, DelegationDelegationHierarchyDelegationHierarchyDetails, DelegationDelegationHierarchyDelegationNode, DidDidDetails, DidServiceEndpointsDidEndpoint, FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollectiveVotes, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletDidLookupConnectionRecord, PalletDidLookupLinkableAccountLinkableAccountId, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletWeb3NamesWeb3NameWeb3NameOwnership, ParachainStakingCandidate, ParachainStakingDelegationCounter, ParachainStakingInflationInflationInfo, ParachainStakingRoundInfo, ParachainStakingStake, ParachainStakingTotalStake, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, PublicCredentialsCredentialsCredentialEntry, RuntimeCommonAssetsAssetDid, RuntimeCommonAuthorizationAuthorizationId, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, SpiritnetRuntimeSessionKeys } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';

export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
Expand Down Expand Up @@ -180,6 +180,15 @@ declare module '@polkadot/api-base/types/storage' {
* `ReferendumCount` if there isn't a unbaked referendum.
**/
lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []>;
/**
* 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.
**/
metadataOf: AugmentedQuery<ApiType, (arg: PalletDemocracyMetadataOwner | { External: any } | { Proposal: any } | { Referendum: any } | string | Uint8Array) => Observable<Option<H256>>, [PalletDemocracyMetadataOwner]>;
/**
* 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:
Expand Down Expand Up @@ -252,7 +261,6 @@ declare module '@polkadot/api-base/types/storage' {
* Mapping from account identifiers to DIDs.
**/
connectedDids: AugmentedQuery<ApiType, (arg: PalletDidLookupLinkableAccountLinkableAccountId | { AccountId20: any } | { AccountId32: any } | string | Uint8Array) => Observable<Option<PalletDidLookupConnectionRecord>>, [PalletDidLookupLinkableAccountLinkableAccountId]>;
migrationStateStore: AugmentedQuery<ApiType, () => Observable<PalletDidLookupMigrationState>, []>;
};
dmpQueue: {
/**
Expand Down Expand Up @@ -282,6 +290,12 @@ declare module '@polkadot/api-base/types/storage' {
**/
accounts: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[AccountId32, u128, bool]>>>, [u64]>;
};
multisig: {
/**
* The set of open multisig operations.
**/
multisigs: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: U8aFixed | string | Uint8Array) => Observable<Option<PalletMultisigMultisig>>, [AccountId32, U8aFixed]>;
};
parachainInfo: {
parachainId: AugmentedQuery<ApiType, () => Observable<u32>, []>;
};
Expand Down Expand Up @@ -397,7 +411,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* The next authorized upgrade, if there is one.
**/
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<H256>>, []>;
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<CumulusPalletParachainSystemCodeUpgradeAuthorization>>, []>;
/**
* A custom head data that should be returned as result of `validate_block`.
*
Expand Down Expand Up @@ -559,14 +573,6 @@ declare module '@polkadot/api-base/types/storage' {
**/
credentialSubjects: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<RuntimeCommonAssetsAssetDid>>, [H256]>;
};
randomnessCollectiveFlip: {
/**
* Series of block headers from the last 81 blocks that acts as random seed material. This
* is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of
* the oldest hash.
**/
randomMaterial: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []>;
};
scheduler: {
/**
* Items to be executed, indexed by the block number that they should be executed on.
Expand Down
Loading

0 comments on commit 417cdf0

Please sign in to comment.