@moonbeam-network/api-augment
Advanced tools
Comparing version 0.0.1-beta.4 to 0.0.1-beta.5
import type { ApiTypes } from "@polkadot/api-base/types"; | ||
import type { Bytes, Vec, bool, u128, u16, u32, u64, u8 } from "@polkadot/types-codec"; | ||
import type { Bytes, Option, Vec, bool, u128, u16, u32, u64, u8 } from "@polkadot/types-codec"; | ||
import type { Codec } from "@polkadot/types-codec/types"; | ||
@@ -8,2 +8,12 @@ import type { Perbill, Percent, Permill } from "@polkadot/types/interfaces/runtime"; | ||
interface AugmentedConsts<ApiType extends ApiTypes> { | ||
assetManager: { | ||
/** | ||
* The basic amount of funds that must be reserved for a local asset. | ||
*/ | ||
localAssetDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
*/ | ||
[key: string]: Codec; | ||
}; | ||
assets: { | ||
@@ -15,2 +25,7 @@ /** | ||
/** | ||
* The amount of funds that must be reserved for a non-provider asset | ||
* account to be maintained. | ||
*/ | ||
assetAccountDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The basic amount of funds that must be reserved for an asset. | ||
@@ -177,2 +192,35 @@ */ | ||
}; | ||
localAssets: { | ||
/** | ||
* The amount of funds that must be reserved when creating a new approval. | ||
*/ | ||
approvalDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The amount of funds that must be reserved for a non-provider asset | ||
* account to be maintained. | ||
*/ | ||
assetAccountDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The basic amount of funds that must be reserved for an asset. | ||
*/ | ||
assetDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The basic amount of funds that must be reserved when adding metadata to | ||
* your asset. | ||
*/ | ||
metadataDepositBase: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The additional funds that must be reserved for the number of bytes you | ||
* store in your metadata. | ||
*/ | ||
metadataDepositPerByte: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The maximum length of a name or symbol stored on-chain. | ||
*/ | ||
stringLimit: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
*/ | ||
[key: string]: Codec; | ||
}; | ||
parachainStaking: { | ||
@@ -358,3 +406,3 @@ /** | ||
* The minimum period between blocks. Beware that this is different to the | ||
* *expected* period that the block production apparatus provides. Your | ||
* _expected_ period that the block production apparatus provides. Your | ||
* chosen consensus system will generally work with this to determine a | ||
@@ -416,2 +464,5 @@ * sensible block time. e.g. For Aura, it will be double this period on | ||
* 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. | ||
*/ | ||
@@ -430,2 +481,6 @@ maxApprovals: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Maximum amount of funds that should be placed in a deposit for making a proposal. | ||
*/ | ||
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>; | ||
/** | ||
* Minimum amount of funds that should be placed in a deposit for making a proposal. | ||
@@ -432,0 +487,0 @@ */ |
@@ -8,2 +8,7 @@ import type { ApiTypes } from "@polkadot/api-base/types"; | ||
ErrorCreatingAsset: AugmentedError<ApiType>; | ||
ErrorDestroyingAsset: AugmentedError<ApiType>; | ||
LocalAssetLimitReached: AugmentedError<ApiType>; | ||
NonExistentLocalAsset: AugmentedError<ApiType>; | ||
NotSufficientDeposit: AugmentedError<ApiType>; | ||
TooLowNumAssetsWeightHint: AugmentedError<ApiType>; | ||
/** | ||
@@ -16,2 +21,6 @@ * Generic error | ||
/** | ||
* The asset-account already exists. | ||
*/ | ||
AlreadyExists: AugmentedError<ApiType>; | ||
/** | ||
* Invalid metadata given. | ||
@@ -29,6 +38,2 @@ */ | ||
/** | ||
* Balance should be non-zero. | ||
*/ | ||
BalanceZero: AugmentedError<ApiType>; | ||
/** | ||
* The origin account is frozen. | ||
@@ -46,2 +51,10 @@ */ | ||
/** | ||
* The account to alter does not exist. | ||
*/ | ||
NoAccount: AugmentedError<ApiType>; | ||
/** | ||
* The asset-account doesn't have an associated deposit. | ||
*/ | ||
NoDeposit: AugmentedError<ApiType>; | ||
/** | ||
* The signing account has no permission to do the operation. | ||
@@ -51,4 +64,5 @@ */ | ||
/** | ||
* No provider reference exists to allow a non-zero balance of a | ||
* non-self-sufficient asset. | ||
* Unable to increment the consumer reference counters on the account. | ||
* Either no provider reference exists to allow a non-zero balance of a | ||
* non-self-sufficient asset, or the maximum number of consumers has been reached. | ||
*/ | ||
@@ -65,2 +79,6 @@ NoProvider: AugmentedError<ApiType>; | ||
/** | ||
* The operation would result in funds being burned. | ||
*/ | ||
WouldBurn: AugmentedError<ApiType>; | ||
/** | ||
* The source account would not survive the transfer and it needs to stay alive. | ||
@@ -441,2 +459,6 @@ */ | ||
/** | ||
* Maximum address count exceeded | ||
*/ | ||
MaxAddressCountExceeded: AugmentedError<ApiType>; | ||
/** | ||
* Calculating total payment overflowed | ||
@@ -524,2 +546,70 @@ */ | ||
}; | ||
localAssets: { | ||
/** | ||
* The asset-account already exists. | ||
*/ | ||
AlreadyExists: AugmentedError<ApiType>; | ||
/** | ||
* Invalid metadata given. | ||
*/ | ||
BadMetadata: AugmentedError<ApiType>; | ||
/** | ||
* Invalid witness data given. | ||
*/ | ||
BadWitness: AugmentedError<ApiType>; | ||
/** | ||
* Account balance must be greater than or equal to the transfer amount. | ||
*/ | ||
BalanceLow: AugmentedError<ApiType>; | ||
/** | ||
* The origin account is frozen. | ||
*/ | ||
Frozen: AugmentedError<ApiType>; | ||
/** | ||
* The asset ID is already taken. | ||
*/ | ||
InUse: AugmentedError<ApiType>; | ||
/** | ||
* Minimum balance should be non-zero. | ||
*/ | ||
MinBalanceZero: AugmentedError<ApiType>; | ||
/** | ||
* The account to alter does not exist. | ||
*/ | ||
NoAccount: AugmentedError<ApiType>; | ||
/** | ||
* The asset-account doesn't have an associated deposit. | ||
*/ | ||
NoDeposit: AugmentedError<ApiType>; | ||
/** | ||
* The signing account has no permission to do the operation. | ||
*/ | ||
NoPermission: AugmentedError<ApiType>; | ||
/** | ||
* Unable to increment the consumer reference counters on the account. | ||
* Either no provider reference exists to allow a non-zero balance of a | ||
* non-self-sufficient asset, or the maximum number of consumers has been reached. | ||
*/ | ||
NoProvider: AugmentedError<ApiType>; | ||
/** | ||
* No approval exists that would allow the transfer. | ||
*/ | ||
Unapproved: AugmentedError<ApiType>; | ||
/** | ||
* The given asset ID is unknown. | ||
*/ | ||
Unknown: AugmentedError<ApiType>; | ||
/** | ||
* The operation would result in funds being burned. | ||
*/ | ||
WouldBurn: AugmentedError<ApiType>; | ||
/** | ||
* The source account would not survive the transfer and it needs to stay alive. | ||
*/ | ||
WouldDie: AugmentedError<ApiType>; | ||
/** | ||
* Generic error | ||
*/ | ||
[key: string]: AugmentedError<ApiType>; | ||
}; | ||
maintenanceMode: { | ||
@@ -857,2 +947,6 @@ /** | ||
/** | ||
* Bad overweight index. | ||
*/ | ||
BadOverweightIndex: AugmentedError<ApiType>; | ||
/** | ||
* Bad XCM data. | ||
@@ -870,2 +964,6 @@ */ | ||
/** | ||
* Provided weight is possibly not enough to execute the message. | ||
*/ | ||
WeightOverLimit: AugmentedError<ApiType>; | ||
/** | ||
* Generic error | ||
@@ -907,2 +1005,6 @@ */ | ||
/** | ||
* The specified index does not exist in a MultiAssets struct. | ||
*/ | ||
AssetIndexNonExistent: AugmentedError<ApiType>; | ||
/** | ||
* The version of the `Versioned` value used is not able to be interpreted. | ||
@@ -920,9 +1022,9 @@ */ | ||
/** | ||
* The fee MultiAsset is of different type than the asset to transfer. | ||
* We tried sending distinct asset and fee but they have different reserve chains. | ||
*/ | ||
DistincAssetAndFeeId: AugmentedError<ApiType>; | ||
DistinctReserveForAssetAndFee: AugmentedError<ApiType>; | ||
/** | ||
* The fee amount was zero when the fee specification extrinsic is being used. | ||
* Fee is not enough. | ||
*/ | ||
FeeCannotBeZero: AugmentedError<ApiType>; | ||
FeeNotEnough: AugmentedError<ApiType>; | ||
/** | ||
@@ -933,2 +1035,6 @@ * Could not get ancestry of asset reserve location. | ||
/** | ||
* The MultiAsset is invalid. | ||
*/ | ||
InvalidAsset: AugmentedError<ApiType>; | ||
/** | ||
* Invalid transfer destination. | ||
@@ -946,6 +1052,10 @@ */ | ||
/** | ||
* Not fungible asset. | ||
* Not supported MultiLocation | ||
*/ | ||
NotFungible: AugmentedError<ApiType>; | ||
NotSupportedMultiLocation: AugmentedError<ApiType>; | ||
/** | ||
* The number of assets to be sent is over the maximum. | ||
*/ | ||
TooManyAssetsBeingSent: AugmentedError<ApiType>; | ||
/** | ||
* The message's weight could not be determined. | ||
@@ -959,2 +1069,10 @@ */ | ||
/** | ||
* The transfering asset amount is zero. | ||
*/ | ||
ZeroAmount: AugmentedError<ApiType>; | ||
/** | ||
* The fee is zero. | ||
*/ | ||
ZeroFee: AugmentedError<ApiType>; | ||
/** | ||
* Generic error | ||
@@ -961,0 +1079,0 @@ */ |
@@ -5,14 +5,44 @@ import type { ApiTypes } from "@polkadot/api-base/types"; | ||
import type { AccountId20, H160, H256, Perbill, Percent, Permill } from "@polkadot/types/interfaces/runtime"; | ||
import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, MoonbeamRuntimeAssetRegistrarMetadata, MoonbeamRuntimeAssetType, MoonbeamRuntimeCurrencyId, MoonbeamRuntimeProxyType, NimbusPrimitivesNimbusCryptoPublic, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, ParachainStakingDelegationRequest, ParachainStakingDelegatorAdded, SpRuntimeDispatchError, XcmTransactorRemoteTransactInfoWithMaxWeight, XcmV1MultiAsset, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from "@polkadot/types/lookup"; | ||
import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, MoonbeamRuntimeAssetConfigAssetRegistrarMetadata, MoonbeamRuntimeProxyType, MoonbeamRuntimeXcmConfigAssetType, NimbusPrimitivesNimbusCryptoPublic, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, ParachainStakingDelegationRequest, ParachainStakingDelegatorAdded, SpRuntimeDispatchError, XcmTransactorRemoteTransactInfoWithMaxWeight, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetMultiAssets, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from "@polkadot/types/lookup"; | ||
declare module "@polkadot/api-base/types/events" { | ||
interface AugmentedEvents<ApiType extends ApiTypes> { | ||
assetManager: { | ||
AssetRegistered: AugmentedEvent<ApiType, [ | ||
/** | ||
* Removed all information related to an assetId and destroyed asset | ||
*/ | ||
ForeignAssetDestroyed: AugmentedEvent<ApiType, [u128, MoonbeamRuntimeXcmConfigAssetType]>; | ||
/** | ||
* New asset with the asset manager is registered | ||
*/ | ||
ForeignAssetRegistered: AugmentedEvent<ApiType, [ | ||
u128, | ||
MoonbeamRuntimeAssetType, | ||
MoonbeamRuntimeAssetRegistrarMetadata | ||
MoonbeamRuntimeXcmConfigAssetType, | ||
MoonbeamRuntimeAssetConfigAssetRegistrarMetadata | ||
]>; | ||
AssetTypeChanged: AugmentedEvent<ApiType, [u128, MoonbeamRuntimeAssetType]>; | ||
UnitsPerSecondChanged: AugmentedEvent<ApiType, [MoonbeamRuntimeAssetType, u128]>; | ||
/** | ||
* Removed all information related to an assetId | ||
*/ | ||
ForeignAssetRemoved: AugmentedEvent<ApiType, [u128, MoonbeamRuntimeXcmConfigAssetType]>; | ||
/** | ||
* Changed the xcm type mapping for a given asset id | ||
*/ | ||
ForeignAssetTypeChanged: AugmentedEvent<ApiType, [u128, MoonbeamRuntimeXcmConfigAssetType]>; | ||
/** | ||
* Removed all information related to an assetId and destroyed asset | ||
*/ | ||
LocalAssetDestroyed: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Local asset was created | ||
*/ | ||
LocalAssetRegistered: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20]>; | ||
/** | ||
* Supported asset type for fee payment removed | ||
*/ | ||
SupportedAssetRemoved: AugmentedEvent<ApiType, [MoonbeamRuntimeXcmConfigAssetType]>; | ||
/** | ||
* Changed the amount of units we are charging per execution second for a | ||
* given asset | ||
*/ | ||
UnitsPerSecondChanged: AugmentedEvent<ApiType, [MoonbeamRuntimeXcmConfigAssetType, u128]>; | ||
/** | ||
* Generic event | ||
@@ -269,3 +299,3 @@ */ | ||
* identity with it. Data is the relay account, native account and the | ||
* total amount of *rewards* that will be paid | ||
* total amount of _rewards_ that will be paid | ||
*/ | ||
@@ -512,2 +542,87 @@ NativeIdentityAssociated: AugmentedEvent<ApiType, [U8aFixed, AccountId20, u128]>; | ||
}; | ||
localAssets: { | ||
/** | ||
* An approval for account `delegate` was cancelled by `owner`. | ||
*/ | ||
ApprovalCancelled: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20]>; | ||
/** | ||
* (Additional) funds have been approved for transfer to a destination account. | ||
*/ | ||
ApprovedTransfer: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20, u128]>; | ||
/** | ||
* Some asset `asset_id` was frozen. | ||
*/ | ||
AssetFrozen: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* An asset has had its attributes changed by the `Force` origin. | ||
*/ | ||
AssetStatusChanged: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Some asset `asset_id` was thawed. | ||
*/ | ||
AssetThawed: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Some assets were destroyed. | ||
*/ | ||
Burned: AugmentedEvent<ApiType, [u128, AccountId20, u128]>; | ||
/** | ||
* Some asset class was created. | ||
*/ | ||
Created: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20]>; | ||
/** | ||
* An asset class was destroyed. | ||
*/ | ||
Destroyed: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Some asset class was force-created. | ||
*/ | ||
ForceCreated: AugmentedEvent<ApiType, [u128, AccountId20]>; | ||
/** | ||
* Some account `who` was frozen. | ||
*/ | ||
Frozen: AugmentedEvent<ApiType, [u128, AccountId20]>; | ||
/** | ||
* Some assets were issued. | ||
*/ | ||
Issued: AugmentedEvent<ApiType, [u128, AccountId20, u128]>; | ||
/** | ||
* Metadata has been cleared for an asset. | ||
*/ | ||
MetadataCleared: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* New metadata has been set for an asset. | ||
*/ | ||
MetadataSet: AugmentedEvent<ApiType, [u128, Bytes, Bytes, u8, bool]>; | ||
/** | ||
* The owner changed. | ||
*/ | ||
OwnerChanged: AugmentedEvent<ApiType, [u128, AccountId20]>; | ||
/** | ||
* The management team changed. | ||
*/ | ||
TeamChanged: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20, AccountId20]>; | ||
/** | ||
* Some account `who` was thawed. | ||
*/ | ||
Thawed: AugmentedEvent<ApiType, [u128, AccountId20]>; | ||
/** | ||
* Some assets were transferred. | ||
*/ | ||
Transferred: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20, u128]>; | ||
/** | ||
* An `amount` was transferred in its entirety from `owner` to | ||
* `destination` by the approved `delegate`. | ||
*/ | ||
TransferredApproved: AugmentedEvent<ApiType, [ | ||
u128, | ||
AccountId20, | ||
AccountId20, | ||
AccountId20, | ||
u128 | ||
]>; | ||
/** | ||
* Generic event | ||
*/ | ||
[key: string]: AugmentedEvent<ApiType>; | ||
}; | ||
maintenanceMode: { | ||
@@ -519,2 +634,10 @@ /** | ||
/** | ||
* The call to resume on_idle XCM execution failed with inner error | ||
*/ | ||
FailedToResumeIdleXcmExecution: AugmentedEvent<ApiType, [SpRuntimeDispatchError]>; | ||
/** | ||
* The call to suspend on_idle XCM execution failed with inner error | ||
*/ | ||
FailedToSuspendIdleXcmExecution: AugmentedEvent<ApiType, [SpRuntimeDispatchError]>; | ||
/** | ||
* The chain returned to its normal operating state | ||
@@ -529,5 +652,17 @@ */ | ||
migrations: { | ||
/** | ||
* Migration completed | ||
*/ | ||
MigrationCompleted: AugmentedEvent<ApiType, [Bytes, u64]>; | ||
/** | ||
* Migration started | ||
*/ | ||
MigrationStarted: AugmentedEvent<ApiType, [Bytes]>; | ||
/** | ||
* Runtime upgrade completed | ||
*/ | ||
RuntimeUpgradeCompleted: AugmentedEvent<ApiType, [u64]>; | ||
/** | ||
* Runtime upgrade started | ||
*/ | ||
RuntimeUpgradeStarted: AugmentedEvent<ApiType, []>; | ||
@@ -541,16 +676,15 @@ /** | ||
/** | ||
* Set blocks per round [current_round, first_block, old, new, | ||
* new_per_round_inflation] | ||
* Set blocks per round | ||
*/ | ||
BlocksPerRoundSet: AugmentedEvent<ApiType, [u32, u32, u32, u32, Perbill, Perbill, Perbill]>; | ||
/** | ||
* Candidate, Amount, Round at which could be executed | ||
* Cancelled request to decrease candidate's bond. | ||
*/ | ||
CancelledCandidateBondLess: AugmentedEvent<ApiType, [AccountId20, u128, u32]>; | ||
/** | ||
* Candidate | ||
* Cancelled request to leave the set of candidates. | ||
*/ | ||
CancelledCandidateExit: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* Delegator, Cancelled Request | ||
* Cancelled request to change an existing delegation. | ||
*/ | ||
@@ -562,40 +696,39 @@ CancelledDelegationRequest: AugmentedEvent<ApiType, [ | ||
/** | ||
* Candidate | ||
* Candidate rejoins the set of collator candidates. | ||
*/ | ||
CandidateBackOnline: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* Candidate, Amount, New Bond | ||
* Сandidate has decreased a self bond. | ||
*/ | ||
CandidateBondedLess: AugmentedEvent<ApiType, [AccountId20, u128, u128]>; | ||
/** | ||
* Candidate, Amount, New Bond Total | ||
* Сandidate has increased a self bond. | ||
*/ | ||
CandidateBondedMore: AugmentedEvent<ApiType, [AccountId20, u128, u128]>; | ||
/** | ||
* Candidate, Amount To Decrease, Round at which request can be executed by caller | ||
* Сandidate requested to decrease a self bond. | ||
*/ | ||
CandidateBondLessRequested: AugmentedEvent<ApiType, [AccountId20, u128, u32]>; | ||
/** | ||
* Ex-Candidate, Amount Unlocked, New Total Amt Locked | ||
* Candidate has left the set of candidates. | ||
*/ | ||
CandidateLeft: AugmentedEvent<ApiType, [AccountId20, u128, u128]>; | ||
/** | ||
* Round At Which Exit Is Allowed, Candidate, Scheduled Exit | ||
* Сandidate has requested to leave the set of candidates. | ||
*/ | ||
CandidateScheduledExit: AugmentedEvent<ApiType, [u32, AccountId20, u32]>; | ||
/** | ||
* Candidate | ||
* Candidate temporarily leave the set of collator candidates without unbonding. | ||
*/ | ||
CandidateWentOffline: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* Round, Collator Account, Total Exposed Amount (includes all delegations) | ||
* Candidate selected for collators. Total Exposed Amount includes all delegations. | ||
*/ | ||
CollatorChosen: AugmentedEvent<ApiType, [u32, AccountId20, u128]>; | ||
/** | ||
* Set collator commission to this value [old, new] | ||
* Set collator commission to this value. | ||
*/ | ||
CollatorCommissionSet: AugmentedEvent<ApiType, [Perbill, Perbill]>; | ||
/** | ||
* Delegator, Amount Locked, Candidate, Delegator Position with New Total | ||
* Counted if in Top | ||
* New delegation (increase of the existing one). | ||
*/ | ||
@@ -610,3 +743,3 @@ Delegation: AugmentedEvent<ApiType, [ | ||
/** | ||
* Delegator, Candidate, Amount to be decreased, Round at which can be executed | ||
* Delegator requested to decrease a bond for the collator candidate. | ||
*/ | ||
@@ -616,27 +749,27 @@ DelegationDecreaseScheduled: AugmentedEvent<ApiType, [AccountId20, AccountId20, u128, u32]>; | ||
/** | ||
* Delegator, Candidate, Amount Unstaked | ||
* Delegation kicked. | ||
*/ | ||
DelegationKicked: AugmentedEvent<ApiType, [AccountId20, AccountId20, u128]>; | ||
/** | ||
* Round, Delegator, Candidate, Scheduled Exit | ||
* Delegator requested to revoke delegation. | ||
*/ | ||
DelegationRevocationScheduled: AugmentedEvent<ApiType, [u32, AccountId20, AccountId20, u32]>; | ||
/** | ||
* Delegator, Candidate, Amount Unstaked | ||
* Delegation revoked. | ||
*/ | ||
DelegationRevoked: AugmentedEvent<ApiType, [AccountId20, AccountId20, u128]>; | ||
/** | ||
* Delegator | ||
* Cancelled a pending request to exit the set of delegators. | ||
*/ | ||
DelegatorExitCancelled: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* Round, Delegator, Scheduled Exit | ||
* Delegator requested to leave the set of delegators. | ||
*/ | ||
DelegatorExitScheduled: AugmentedEvent<ApiType, [u32, AccountId20, u32]>; | ||
/** | ||
* Delegator, Amount Unstaked | ||
* Delegator has left the set of delegators. | ||
*/ | ||
DelegatorLeft: AugmentedEvent<ApiType, [AccountId20, u128]>; | ||
/** | ||
* Delegator, Candidate, Amount Unstaked, New Total Amt Staked for Candidate | ||
* Delegation from candidate state has been remove. | ||
*/ | ||
@@ -650,31 +783,31 @@ DelegatorLeftCandidate: AugmentedEvent<ApiType, [AccountId20, AccountId20, u128, u128]>; | ||
/** | ||
* Account, Amount Locked, New Total Amt Locked | ||
* Account joined the set of collator candidates. | ||
*/ | ||
JoinedCollatorCandidates: AugmentedEvent<ApiType, [AccountId20, u128, u128]>; | ||
/** | ||
* Starting Block, Round, Number of Collators Selected, Total Balance | ||
* Started new round. | ||
*/ | ||
NewRound: AugmentedEvent<ApiType, [u32, u32, u32, u128]>; | ||
/** | ||
* Account (re)set for parachain bond treasury [old, new] | ||
* Account (re)set for parachain bond treasury. | ||
*/ | ||
ParachainBondAccountSet: AugmentedEvent<ApiType, [AccountId20, AccountId20]>; | ||
/** | ||
* Percent of inflation reserved for parachain bond (re)set [old, new] | ||
* Percent of inflation reserved for parachain bond (re)set. | ||
*/ | ||
ParachainBondReservePercentSet: AugmentedEvent<ApiType, [Percent, Percent]>; | ||
/** | ||
* Transferred to account which holds funds reserved for parachain bond | ||
* Transferred to account which holds funds reserved for parachain bond. | ||
*/ | ||
ReservedForParachainBond: AugmentedEvent<ApiType, [AccountId20, u128]>; | ||
/** | ||
* Paid the account (delegator or collator) the balance as liquid rewards | ||
* Paid the account (delegator or collator) the balance as liquid rewards. | ||
*/ | ||
Rewarded: AugmentedEvent<ApiType, [AccountId20, u128]>; | ||
/** | ||
* Staking expectations set | ||
* Staking expectations set. | ||
*/ | ||
StakeExpectationsSet: AugmentedEvent<ApiType, [u128, u128, u128]>; | ||
/** | ||
* Set total selected candidates to this value [old, new] | ||
* Set total selected candidates to this value. | ||
*/ | ||
@@ -881,7 +1014,15 @@ TotalSelectedSet: AugmentedEvent<ApiType, [u32, u32]>; | ||
/** | ||
* Canceled some task. [when, index] | ||
* The call for the provided hash was not found so the task has been aborted. | ||
*/ | ||
CallLookupFailed: AugmentedEvent<ApiType, [ | ||
ITuple<[u32, u32]>, | ||
Option<Bytes>, | ||
FrameSupportScheduleLookupError | ||
]>; | ||
/** | ||
* Canceled some task. | ||
*/ | ||
Canceled: AugmentedEvent<ApiType, [u32, u32]>; | ||
/** | ||
* Dispatched some task. [task, id, result] | ||
* Dispatched some task. | ||
*/ | ||
@@ -894,3 +1035,3 @@ Dispatched: AugmentedEvent<ApiType, [ | ||
/** | ||
* Scheduled some task. [when, index] | ||
* Scheduled some task. | ||
*/ | ||
@@ -909,3 +1050,3 @@ Scheduled: AugmentedEvent<ApiType, [u32, u32]>; | ||
/** | ||
* An extrinsic failed. [error, info] | ||
* An extrinsic failed. | ||
*/ | ||
@@ -917,15 +1058,15 @@ ExtrinsicFailed: AugmentedEvent<ApiType, [ | ||
/** | ||
* An extrinsic completed successfully. [info] | ||
* An extrinsic completed successfully. | ||
*/ | ||
ExtrinsicSuccess: AugmentedEvent<ApiType, [FrameSupportWeightsDispatchInfo]>; | ||
/** | ||
* An [account] was reaped. | ||
* An account was reaped. | ||
*/ | ||
KilledAccount: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* A new [account] was created. | ||
* A new account was created. | ||
*/ | ||
NewAccount: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* On on-chain remark happened. [origin, remark_hash] | ||
* On on-chain remark happened. | ||
*/ | ||
@@ -978,28 +1119,27 @@ Remarked: AugmentedEvent<ApiType, [AccountId20, H256]>; | ||
/** | ||
* Some funds have been allocated. [proposal_index, award, beneficiary] | ||
* Some funds have been allocated. | ||
*/ | ||
Awarded: AugmentedEvent<ApiType, [u32, u128, AccountId20]>; | ||
/** | ||
* Some of our funds have been burnt. [burn] | ||
* Some of our funds have been burnt. | ||
*/ | ||
Burnt: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Some funds have been deposited. [deposit] | ||
* Some funds have been deposited. | ||
*/ | ||
Deposit: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* New proposal. [proposal_index] | ||
* New proposal. | ||
*/ | ||
Proposed: AugmentedEvent<ApiType, [u32]>; | ||
/** | ||
* A proposal was rejected; funds were slashed. [proposal_index, slashed] | ||
* A proposal was rejected; funds were slashed. | ||
*/ | ||
Rejected: AugmentedEvent<ApiType, [u32, u128]>; | ||
/** | ||
* Spending has finished; this is the amount that rolls over until next | ||
* spend. [budget_remaining] | ||
* Spending has finished; this is the amount that rolls over until next spend. | ||
*/ | ||
Rollover: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* We have ended a spend period and will now allocate funds. [budget_remaining] | ||
* We have ended a spend period and will now allocate funds. | ||
*/ | ||
@@ -1023,3 +1163,3 @@ Spending: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* A call was dispatched. [result] | ||
* A call was dispatched. | ||
*/ | ||
@@ -1050,2 +1190,10 @@ DispatchedAs: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>; | ||
/** | ||
* An XCM exceeded the individual message weight budget. | ||
*/ | ||
OverweightEnqueued: AugmentedEvent<ApiType, [u32, u32, u64, u64]>; | ||
/** | ||
* An XCM from the overweight queue was executed with the given actual weight used. | ||
*/ | ||
OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>; | ||
/** | ||
* Some XCM was executed ok. | ||
@@ -1068,6 +1216,22 @@ */ | ||
xcmTransactor: { | ||
RegisterdDerivative: AugmentedEvent<ApiType, [AccountId20, u16]>; | ||
DeRegisteredDerivative: AugmentedEvent<ApiType, [u16]>; | ||
/** | ||
* Registered a derivative index for an account id. | ||
*/ | ||
RegisteredDerivative: AugmentedEvent<ApiType, [AccountId20, u16]>; | ||
/** | ||
* Transacted the inner call through a derivative account in a destination chain. | ||
*/ | ||
TransactedDerivative: AugmentedEvent<ApiType, [AccountId20, XcmV1MultiLocation, Bytes, u16]>; | ||
/** | ||
* Transacted the call through the sovereign account in a destination chain. | ||
*/ | ||
TransactedSovereign: AugmentedEvent<ApiType, [AccountId20, XcmV1MultiLocation, Bytes]>; | ||
/** | ||
* Transact failed | ||
*/ | ||
TransactFailed: AugmentedEvent<ApiType, [XcmV2TraitsError]>; | ||
/** | ||
* Changed the transact info of a location | ||
*/ | ||
TransactInfoChanged: AugmentedEvent<ApiType, [ | ||
@@ -1078,2 +1242,6 @@ XcmV1MultiLocation, | ||
/** | ||
* Removed the transact info of a location | ||
*/ | ||
TransactInfoRemoved: AugmentedEvent<ApiType, [XcmV1MultiLocation]>; | ||
/** | ||
* Generic event | ||
@@ -1085,15 +1253,7 @@ */ | ||
/** | ||
* Transferred. [sender, currency_id, amount, dest] | ||
* Transferred `MultiAsset` with fee. | ||
*/ | ||
Transferred: AugmentedEvent<ApiType, [ | ||
TransferredMultiAssets: AugmentedEvent<ApiType, [ | ||
AccountId20, | ||
MoonbeamRuntimeCurrencyId, | ||
u128, | ||
XcmV1MultiLocation | ||
]>; | ||
/** | ||
* Transferred `MultiAsset`. [sender, asset, dest] | ||
*/ | ||
TransferredMultiAsset: AugmentedEvent<ApiType, [ | ||
AccountId20, | ||
XcmV1MultiassetMultiAssets, | ||
XcmV1MultiAsset, | ||
@@ -1103,21 +1263,2 @@ XcmV1MultiLocation | ||
/** | ||
* Transferred `MultiAsset` with fee. [sender, asset, fee, dest] | ||
*/ | ||
TransferredMultiAssetWithFee: AugmentedEvent<ApiType, [ | ||
AccountId20, | ||
XcmV1MultiAsset, | ||
XcmV1MultiAsset, | ||
XcmV1MultiLocation | ||
]>; | ||
/** | ||
* Transferred with fee. [sender, currency_id, amount, fee, dest] | ||
*/ | ||
TransferredWithFee: AugmentedEvent<ApiType, [ | ||
AccountId20, | ||
MoonbeamRuntimeCurrencyId, | ||
u128, | ||
u128, | ||
XcmV1MultiLocation | ||
]>; | ||
/** | ||
* Generic event | ||
@@ -1124,0 +1265,0 @@ */ |
@@ -6,3 +6,3 @@ import type { ApiTypes } from "@polkadot/api-base/types"; | ||
import type { AccountId20, Call, H160, H256, Perbill, Percent, Permill } from "@polkadot/types/interfaces/runtime"; | ||
import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundStatus, CumulusPalletXcmpQueueOutboundStatus, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, MoonbeamRuntimeAssetType, NimbusPrimitivesNimbusCryptoPublic, PalletAssetsApproval, PalletAssetsAssetBalance, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorMappingRegistrationInfo, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletCollectiveVotes, PalletCrowdloanRewardsRewardInfo, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerReleases, PalletSchedulerScheduledV2, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, ParachainStakingBond, ParachainStakingCandidateMetadata, ParachainStakingCollator2, ParachainStakingCollatorCandidate, ParachainStakingCollatorSnapshot, ParachainStakingDelayedPayout, ParachainStakingDelegations, ParachainStakingDelegator, ParachainStakingExitQ, ParachainStakingInflationInflationInfo, ParachainStakingNominator2, ParachainStakingParachainBondConfig, ParachainStakingRoundInfo, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpRuntimeDigest, XcmTransactorRemoteTransactInfoWithMaxWeight, XcmV1MultiLocation, XcmVersionedMultiLocation } from "@polkadot/types/lookup"; | ||
import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, MoonbeamRuntimeXcmConfigAssetType, NimbusPrimitivesNimbusCryptoPublic, PalletAssetManagerAssetInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorMappingRegistrationInfo, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletCollectiveVotes, PalletCrowdloanRewardsRewardInfo, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, ParachainStakingBond, ParachainStakingCandidateMetadata, ParachainStakingCollator2, ParachainStakingCollatorCandidate, ParachainStakingCollatorSnapshot, ParachainStakingDelayedPayout, ParachainStakingDelegations, ParachainStakingDelegator, ParachainStakingInflationInflationInfo, ParachainStakingNominator2, ParachainStakingParachainBondConfig, ParachainStakingRoundInfo, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpRuntimeDigest, SpTrieStorageProof, XcmTransactorRemoteTransactInfoWithMaxWeight, XcmV1MultiLocation, XcmVersionedMultiLocation } from "@polkadot/types/lookup"; | ||
import type { Observable } from "@polkadot/types/types"; | ||
@@ -17,3 +17,3 @@ declare module "@polkadot/api-base/types/storage" { | ||
*/ | ||
assetIdType: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<MoonbeamRuntimeAssetType>>, [ | ||
assetIdType: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<MoonbeamRuntimeXcmConfigAssetType>>, [ | ||
u128 | ||
@@ -26,7 +26,7 @@ ]> & QueryableStorageEntry<ApiType, [u128]>; | ||
*/ | ||
assetTypeId: AugmentedQuery<ApiType, (arg: MoonbeamRuntimeAssetType | { | ||
assetTypeId: AugmentedQuery<ApiType, (arg: MoonbeamRuntimeXcmConfigAssetType | { | ||
Xcm: any; | ||
} | string | Uint8Array) => Observable<Option<u128>>, [ | ||
MoonbeamRuntimeAssetType | ||
]> & QueryableStorageEntry<ApiType, [MoonbeamRuntimeAssetType]>; | ||
MoonbeamRuntimeXcmConfigAssetType | ||
]> & QueryableStorageEntry<ApiType, [MoonbeamRuntimeXcmConfigAssetType]>; | ||
/** | ||
@@ -37,8 +37,25 @@ * Stores the units per second for local execution for a AssetType. This | ||
*/ | ||
assetTypeUnitsPerSecond: AugmentedQuery<ApiType, (arg: MoonbeamRuntimeAssetType | { | ||
assetTypeUnitsPerSecond: AugmentedQuery<ApiType, (arg: MoonbeamRuntimeXcmConfigAssetType | { | ||
Xcm: any; | ||
} | string | Uint8Array) => Observable<Option<u128>>, [ | ||
MoonbeamRuntimeAssetType | ||
]> & QueryableStorageEntry<ApiType, [MoonbeamRuntimeAssetType]>; | ||
MoonbeamRuntimeXcmConfigAssetType | ||
]> & QueryableStorageEntry<ApiType, [MoonbeamRuntimeXcmConfigAssetType]>; | ||
/** | ||
* Stores the counter of the number of local assets that have been created | ||
* so far This value can be used to salt the creation of an assetId, e.g., | ||
* by hashing it. This is particularly useful for cases like moonbeam | ||
* where letting users choose their assetId would result in collision in | ||
* the evm side. | ||
*/ | ||
localAssetCounter: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Local asset deposits, a mapping from assetId to a struct holding the | ||
* creator (from which the deposit was reserved) and the deposit amount | ||
*/ | ||
localAssetDeposit: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<PalletAssetManagerAssetInfo>>, [ | ||
u128 | ||
]> & QueryableStorageEntry<ApiType, [u128]>; | ||
supportedFeePaymentAssets: AugmentedQuery<ApiType, () => Observable<Vec<MoonbeamRuntimeXcmConfigAssetType>>, [ | ||
]> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Generic query | ||
@@ -50,5 +67,5 @@ */ | ||
/** | ||
* The number of units of assets held by any given account. | ||
* The holdings of a specific account for a specific asset. | ||
*/ | ||
account: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<PalletAssetsAssetBalance>, [ | ||
account: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<Option<PalletAssetsAssetAccount>>, [ | ||
u128, | ||
@@ -120,5 +137,27 @@ AccountId20 | ||
/** | ||
* The balance of an account. | ||
* The Balances pallet example of storing the balance of an account. | ||
* | ||
* NOTE: This is only used in the case that this pallet is used to store balances. | ||
* # Example | ||
* | ||
* ```nocompile | ||
* impl pallet_balances::Config for Runtime { | ||
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>> | ||
* } | ||
* ``` | ||
* | ||
* 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. | ||
*/ | ||
@@ -261,12 +300,2 @@ account: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [ | ||
/** | ||
* Accounts for which there are locks in action which may be removed at | ||
* some point in the future. The value is the block number at which the | ||
* lock expires and may be removed. | ||
* | ||
* TWOX-NOTE: OK ― `AccountId` is a secure hash. | ||
*/ | ||
locks: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<u32>>, [ | ||
AccountId20 | ||
]> & QueryableStorageEntry<ApiType, [AccountId20]>; | ||
/** | ||
* The lowest referendum index representing an unbaked referendum. Equal | ||
@@ -455,2 +484,38 @@ * to `ReferendumCount` if there isn't a unbaked referendum. | ||
}; | ||
localAssets: { | ||
/** | ||
* The holdings of a specific account for a specific asset. | ||
*/ | ||
account: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<Option<PalletAssetsAssetAccount>>, [ | ||
u128, | ||
AccountId20 | ||
]> & QueryableStorageEntry<ApiType, [u128, AccountId20]>; | ||
/** | ||
* Approved balance transfers. First balance is the amount approved for | ||
* transfer. Second is the amount of `T::Currency` reserved for storing | ||
* this. First key is the asset ID, second key is the owner and third key | ||
* is the delegate. | ||
*/ | ||
approvals: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array, arg3: AccountId20 | string | Uint8Array) => Observable<Option<PalletAssetsApproval>>, [ | ||
u128, | ||
AccountId20, | ||
AccountId20 | ||
]> & QueryableStorageEntry<ApiType, [u128, AccountId20, AccountId20]>; | ||
/** | ||
* Details of an asset. | ||
*/ | ||
asset: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<PalletAssetsAssetDetails>>, [ | ||
u128 | ||
]> & QueryableStorageEntry<ApiType, [u128]>; | ||
/** | ||
* Metadata of an asset. | ||
*/ | ||
metadata: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<PalletAssetsAssetMetadata>, [ | ||
u128 | ||
]> & QueryableStorageEntry<ApiType, [u128]>; | ||
/** | ||
* Generic query | ||
*/ | ||
[key: string]: QueryableStorageEntry<ApiType>; | ||
}; | ||
maintenanceMode: { | ||
@@ -553,7 +618,2 @@ /** | ||
/** | ||
* DEPRECATED, to be removed in future runtime upgrade but necessary for | ||
* runtime migration A queue of collators and nominators awaiting exit | ||
*/ | ||
exitQueue2: AugmentedQuery<ApiType, () => Observable<ParachainStakingExitQ>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Inflation configuration | ||
@@ -625,2 +685,8 @@ */ | ||
/** | ||
* 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<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Were the validation data set to notify the relay chain? | ||
@@ -684,4 +750,7 @@ */ | ||
* As soon as the relay chain gives us the go-ahead signal, we will | ||
* overwrite the `:code` which will result the next block process with the | ||
* new validation code. This concludes the upgrade process. | ||
* 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 | ||
*/ | ||
@@ -696,2 +765,12 @@ pendingValidationCode: AugmentedQuery<ApiType, () => Observable<Bytes>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* 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<ApiType, () => Observable<Option<SpTrieStorageProof>>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* The snapshot of some state related to messaging relevant to the current | ||
@@ -860,3 +939,3 @@ * parachain as per the relay parent. | ||
*/ | ||
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduledV2>>>, [ | ||
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduledV3>>>, [ | ||
u32 | ||
@@ -871,8 +950,2 @@ ]> & QueryableStorageEntry<ApiType, [u32]>; | ||
/** | ||
* Storage version of the pallet. | ||
* | ||
* New networks start with last version. | ||
*/ | ||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletSchedulerReleases>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Generic query | ||
@@ -1067,7 +1140,3 @@ */ | ||
*/ | ||
inboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[ | ||
u32, | ||
CumulusPalletXcmpQueueInboundStatus, | ||
Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>> | ||
]>>>, [ | ||
inboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletXcmpQueueInboundChannelDetails>>, [ | ||
]> & QueryableStorageEntry<ApiType, []>; | ||
@@ -1090,5 +1159,19 @@ /** | ||
*/ | ||
outboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, CumulusPalletXcmpQueueOutboundStatus, bool, u16, u16]>>>, [ | ||
outboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletXcmpQueueOutboundChannelDetails>>, [ | ||
]> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* 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<Option<ITuple<[u32, u32, Bytes]>>>, [ | ||
u64 | ||
]> & QueryableStorageEntry<ApiType, [u64]>; | ||
/** | ||
* The number of overweight messages ever recorded in `Overweight`. Also | ||
* doubles as the next available free overweight index. | ||
*/ | ||
overweightCount: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* The configuration which controls the dynamics of the outbound queue. | ||
@@ -1099,2 +1182,6 @@ */ | ||
/** | ||
* Whether or not the XCMP queue is suspended from executing incoming XCMs or not. | ||
*/ | ||
queueSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Any signal messages waiting to be sent. | ||
@@ -1101,0 +1188,0 @@ */ |
@@ -12,2 +12,3 @@ import type { AugmentedRpc } from "@polkadot/rpc-core/types"; | ||
import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from "@polkadot/types/interfaces/contracts"; | ||
import type { BlockStats } from "@polkadot/types/interfaces/dev"; | ||
import type { CreatedBlock } from "@polkadot/types/interfaces/engine"; | ||
@@ -22,3 +23,3 @@ import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from "@polkadot/types/interfaces/eth"; | ||
import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from "@polkadot/types/interfaces/runtime"; | ||
import type { ReadProof, RuntimeVersion, TraceBlockResponse } from "@polkadot/types/interfaces/state"; | ||
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"; | ||
@@ -185,2 +186,8 @@ import type { IExtrinsic, Observable } from "@polkadot/types/types"; | ||
}; | ||
dev: { | ||
/** | ||
* Reexecute the specified `block_hash` and gather statistics while doing so | ||
*/ | ||
getBlockStats: AugmentedRpc<(at: Hash | string | Uint8Array) => Observable<Option<BlockStats>>>; | ||
}; | ||
engine: { | ||
@@ -551,2 +558,6 @@ /** | ||
traceBlock: AugmentedRpc<(block: Hash | string | Uint8Array, targets: Option<Text> | null | object | string | Uint8Array, storageKeys: Option<Text> | null | object | string | Uint8Array, methods: Option<Text> | null | object | string | Uint8Array) => Observable<TraceBlockResponse>>; | ||
/** | ||
* Check current migration state | ||
*/ | ||
trieMigrationStatus: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MigrationStatusResult>>; | ||
}; | ||
@@ -553,0 +564,0 @@ syncstate: { |
@@ -22,2 +22,3 @@ import type { Data, StorageKey } from "@polkadot/types"; | ||
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"; | ||
@@ -51,5 +52,5 @@ import type { CreatedBlock, ImportedAux } from "@polkadot/types/interfaces/engine"; | ||
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, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from "@polkadot/types/interfaces/state"; | ||
import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, MigrationStatusResult, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, 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, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, 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, UnknownTransaction, WeightPerClass } from "@polkadot/types/interfaces/system"; | ||
import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorModuleU8a, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, 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, 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"; | ||
@@ -153,2 +154,3 @@ import type { Multiplier } from "@polkadot/types/interfaces/txpayment"; | ||
BlockNumberOf: BlockNumberOf; | ||
BlockStats: BlockStats; | ||
BlockTrace: BlockTrace; | ||
@@ -307,2 +309,3 @@ BlockTraceEvent: BlockTraceEvent; | ||
DispatchErrorModule: DispatchErrorModule; | ||
DispatchErrorModuleU8a: DispatchErrorModuleU8a; | ||
DispatchErrorTo198: DispatchErrorTo198; | ||
@@ -594,2 +597,3 @@ DispatchFeePayment: DispatchFeePayment; | ||
MetadataV9: MetadataV9; | ||
MigrationStatusResult: MigrationStatusResult; | ||
MmrLeafProof: MmrLeafProof; | ||
@@ -596,0 +600,0 @@ MmrRootHash: MmrRootHash; |
import type { ApiTypes } from "@polkadot/api-base/types"; | ||
import type { Bytes, Vec, bool, u128, u16, u32, u64, u8 } from "@polkadot/types-codec"; | ||
import type { Bytes, Option, Vec, bool, u128, u16, u32, u64, u8 } from "@polkadot/types-codec"; | ||
import type { Codec } from "@polkadot/types-codec/types"; | ||
@@ -8,2 +8,12 @@ import type { Perbill, Percent, Permill } from "@polkadot/types/interfaces/runtime"; | ||
interface AugmentedConsts<ApiType extends ApiTypes> { | ||
assetManager: { | ||
/** | ||
* The basic amount of funds that must be reserved for a local asset. | ||
*/ | ||
localAssetDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
*/ | ||
[key: string]: Codec; | ||
}; | ||
assets: { | ||
@@ -15,2 +25,7 @@ /** | ||
/** | ||
* The amount of funds that must be reserved for a non-provider asset | ||
* account to be maintained. | ||
*/ | ||
assetAccountDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The basic amount of funds that must be reserved for an asset. | ||
@@ -177,2 +192,35 @@ */ | ||
}; | ||
localAssets: { | ||
/** | ||
* The amount of funds that must be reserved when creating a new approval. | ||
*/ | ||
approvalDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The amount of funds that must be reserved for a non-provider asset | ||
* account to be maintained. | ||
*/ | ||
assetAccountDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The basic amount of funds that must be reserved for an asset. | ||
*/ | ||
assetDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The basic amount of funds that must be reserved when adding metadata to | ||
* your asset. | ||
*/ | ||
metadataDepositBase: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The additional funds that must be reserved for the number of bytes you | ||
* store in your metadata. | ||
*/ | ||
metadataDepositPerByte: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The maximum length of a name or symbol stored on-chain. | ||
*/ | ||
stringLimit: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
*/ | ||
[key: string]: Codec; | ||
}; | ||
parachainStaking: { | ||
@@ -358,3 +406,3 @@ /** | ||
* The minimum period between blocks. Beware that this is different to the | ||
* *expected* period that the block production apparatus provides. Your | ||
* _expected_ period that the block production apparatus provides. Your | ||
* chosen consensus system will generally work with this to determine a | ||
@@ -416,2 +464,5 @@ * sensible block time. e.g. For Aura, it will be double this period on | ||
* 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. | ||
*/ | ||
@@ -430,2 +481,6 @@ maxApprovals: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Maximum amount of funds that should be placed in a deposit for making a proposal. | ||
*/ | ||
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>; | ||
/** | ||
* Minimum amount of funds that should be placed in a deposit for making a proposal. | ||
@@ -432,0 +487,0 @@ */ |
@@ -8,2 +8,7 @@ import type { ApiTypes } from "@polkadot/api-base/types"; | ||
ErrorCreatingAsset: AugmentedError<ApiType>; | ||
ErrorDestroyingAsset: AugmentedError<ApiType>; | ||
LocalAssetLimitReached: AugmentedError<ApiType>; | ||
NonExistentLocalAsset: AugmentedError<ApiType>; | ||
NotSufficientDeposit: AugmentedError<ApiType>; | ||
TooLowNumAssetsWeightHint: AugmentedError<ApiType>; | ||
/** | ||
@@ -16,2 +21,6 @@ * Generic error | ||
/** | ||
* The asset-account already exists. | ||
*/ | ||
AlreadyExists: AugmentedError<ApiType>; | ||
/** | ||
* Invalid metadata given. | ||
@@ -29,6 +38,2 @@ */ | ||
/** | ||
* Balance should be non-zero. | ||
*/ | ||
BalanceZero: AugmentedError<ApiType>; | ||
/** | ||
* The origin account is frozen. | ||
@@ -46,2 +51,10 @@ */ | ||
/** | ||
* The account to alter does not exist. | ||
*/ | ||
NoAccount: AugmentedError<ApiType>; | ||
/** | ||
* The asset-account doesn't have an associated deposit. | ||
*/ | ||
NoDeposit: AugmentedError<ApiType>; | ||
/** | ||
* The signing account has no permission to do the operation. | ||
@@ -51,4 +64,5 @@ */ | ||
/** | ||
* No provider reference exists to allow a non-zero balance of a | ||
* non-self-sufficient asset. | ||
* Unable to increment the consumer reference counters on the account. | ||
* Either no provider reference exists to allow a non-zero balance of a | ||
* non-self-sufficient asset, or the maximum number of consumers has been reached. | ||
*/ | ||
@@ -65,2 +79,6 @@ NoProvider: AugmentedError<ApiType>; | ||
/** | ||
* The operation would result in funds being burned. | ||
*/ | ||
WouldBurn: AugmentedError<ApiType>; | ||
/** | ||
* The source account would not survive the transfer and it needs to stay alive. | ||
@@ -441,2 +459,6 @@ */ | ||
/** | ||
* Maximum address count exceeded | ||
*/ | ||
MaxAddressCountExceeded: AugmentedError<ApiType>; | ||
/** | ||
* Calculating total payment overflowed | ||
@@ -524,2 +546,70 @@ */ | ||
}; | ||
localAssets: { | ||
/** | ||
* The asset-account already exists. | ||
*/ | ||
AlreadyExists: AugmentedError<ApiType>; | ||
/** | ||
* Invalid metadata given. | ||
*/ | ||
BadMetadata: AugmentedError<ApiType>; | ||
/** | ||
* Invalid witness data given. | ||
*/ | ||
BadWitness: AugmentedError<ApiType>; | ||
/** | ||
* Account balance must be greater than or equal to the transfer amount. | ||
*/ | ||
BalanceLow: AugmentedError<ApiType>; | ||
/** | ||
* The origin account is frozen. | ||
*/ | ||
Frozen: AugmentedError<ApiType>; | ||
/** | ||
* The asset ID is already taken. | ||
*/ | ||
InUse: AugmentedError<ApiType>; | ||
/** | ||
* Minimum balance should be non-zero. | ||
*/ | ||
MinBalanceZero: AugmentedError<ApiType>; | ||
/** | ||
* The account to alter does not exist. | ||
*/ | ||
NoAccount: AugmentedError<ApiType>; | ||
/** | ||
* The asset-account doesn't have an associated deposit. | ||
*/ | ||
NoDeposit: AugmentedError<ApiType>; | ||
/** | ||
* The signing account has no permission to do the operation. | ||
*/ | ||
NoPermission: AugmentedError<ApiType>; | ||
/** | ||
* Unable to increment the consumer reference counters on the account. | ||
* Either no provider reference exists to allow a non-zero balance of a | ||
* non-self-sufficient asset, or the maximum number of consumers has been reached. | ||
*/ | ||
NoProvider: AugmentedError<ApiType>; | ||
/** | ||
* No approval exists that would allow the transfer. | ||
*/ | ||
Unapproved: AugmentedError<ApiType>; | ||
/** | ||
* The given asset ID is unknown. | ||
*/ | ||
Unknown: AugmentedError<ApiType>; | ||
/** | ||
* The operation would result in funds being burned. | ||
*/ | ||
WouldBurn: AugmentedError<ApiType>; | ||
/** | ||
* The source account would not survive the transfer and it needs to stay alive. | ||
*/ | ||
WouldDie: AugmentedError<ApiType>; | ||
/** | ||
* Generic error | ||
*/ | ||
[key: string]: AugmentedError<ApiType>; | ||
}; | ||
maintenanceMode: { | ||
@@ -867,2 +957,6 @@ /** | ||
/** | ||
* Bad overweight index. | ||
*/ | ||
BadOverweightIndex: AugmentedError<ApiType>; | ||
/** | ||
* Bad XCM data. | ||
@@ -880,2 +974,6 @@ */ | ||
/** | ||
* Provided weight is possibly not enough to execute the message. | ||
*/ | ||
WeightOverLimit: AugmentedError<ApiType>; | ||
/** | ||
* Generic error | ||
@@ -917,2 +1015,6 @@ */ | ||
/** | ||
* The specified index does not exist in a MultiAssets struct. | ||
*/ | ||
AssetIndexNonExistent: AugmentedError<ApiType>; | ||
/** | ||
* The version of the `Versioned` value used is not able to be interpreted. | ||
@@ -930,9 +1032,9 @@ */ | ||
/** | ||
* The fee MultiAsset is of different type than the asset to transfer. | ||
* We tried sending distinct asset and fee but they have different reserve chains. | ||
*/ | ||
DistincAssetAndFeeId: AugmentedError<ApiType>; | ||
DistinctReserveForAssetAndFee: AugmentedError<ApiType>; | ||
/** | ||
* The fee amount was zero when the fee specification extrinsic is being used. | ||
* Fee is not enough. | ||
*/ | ||
FeeCannotBeZero: AugmentedError<ApiType>; | ||
FeeNotEnough: AugmentedError<ApiType>; | ||
/** | ||
@@ -943,2 +1045,6 @@ * Could not get ancestry of asset reserve location. | ||
/** | ||
* The MultiAsset is invalid. | ||
*/ | ||
InvalidAsset: AugmentedError<ApiType>; | ||
/** | ||
* Invalid transfer destination. | ||
@@ -956,6 +1062,10 @@ */ | ||
/** | ||
* Not fungible asset. | ||
* Not supported MultiLocation | ||
*/ | ||
NotFungible: AugmentedError<ApiType>; | ||
NotSupportedMultiLocation: AugmentedError<ApiType>; | ||
/** | ||
* The number of assets to be sent is over the maximum. | ||
*/ | ||
TooManyAssetsBeingSent: AugmentedError<ApiType>; | ||
/** | ||
* The message's weight could not be determined. | ||
@@ -969,2 +1079,10 @@ */ | ||
/** | ||
* The transfering asset amount is zero. | ||
*/ | ||
ZeroAmount: AugmentedError<ApiType>; | ||
/** | ||
* The fee is zero. | ||
*/ | ||
ZeroFee: AugmentedError<ApiType>; | ||
/** | ||
* Generic error | ||
@@ -971,0 +1089,0 @@ */ |
@@ -5,14 +5,44 @@ import type { ApiTypes } from "@polkadot/api-base/types"; | ||
import type { AccountId20, H160, H256, Perbill, Percent, Permill } from "@polkadot/types/interfaces/runtime"; | ||
import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, MoonbaseRuntimeAssetRegistrarMetadata, MoonbaseRuntimeAssetType, MoonbaseRuntimeCurrencyId, MoonbaseRuntimeProxyType, NimbusPrimitivesNimbusCryptoPublic, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, ParachainStakingDelegationRequest, ParachainStakingDelegatorAdded, SpRuntimeDispatchError, XcmTransactorRemoteTransactInfoWithMaxWeight, XcmV1MultiAsset, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from "@polkadot/types/lookup"; | ||
import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, MoonbaseRuntimeAssetConfigAssetRegistrarMetadata, MoonbaseRuntimeProxyType, MoonbaseRuntimeXcmConfigAssetType, NimbusPrimitivesNimbusCryptoPublic, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, ParachainStakingDelegationRequest, ParachainStakingDelegatorAdded, SpRuntimeDispatchError, XcmTransactorRemoteTransactInfoWithMaxWeight, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetMultiAssets, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from "@polkadot/types/lookup"; | ||
declare module "@polkadot/api-base/types/events" { | ||
interface AugmentedEvents<ApiType extends ApiTypes> { | ||
assetManager: { | ||
AssetRegistered: AugmentedEvent<ApiType, [ | ||
/** | ||
* Removed all information related to an assetId and destroyed asset | ||
*/ | ||
ForeignAssetDestroyed: AugmentedEvent<ApiType, [u128, MoonbaseRuntimeXcmConfigAssetType]>; | ||
/** | ||
* New asset with the asset manager is registered | ||
*/ | ||
ForeignAssetRegistered: AugmentedEvent<ApiType, [ | ||
u128, | ||
MoonbaseRuntimeAssetType, | ||
MoonbaseRuntimeAssetRegistrarMetadata | ||
MoonbaseRuntimeXcmConfigAssetType, | ||
MoonbaseRuntimeAssetConfigAssetRegistrarMetadata | ||
]>; | ||
AssetTypeChanged: AugmentedEvent<ApiType, [u128, MoonbaseRuntimeAssetType]>; | ||
UnitsPerSecondChanged: AugmentedEvent<ApiType, [MoonbaseRuntimeAssetType, u128]>; | ||
/** | ||
* Removed all information related to an assetId | ||
*/ | ||
ForeignAssetRemoved: AugmentedEvent<ApiType, [u128, MoonbaseRuntimeXcmConfigAssetType]>; | ||
/** | ||
* Changed the xcm type mapping for a given asset id | ||
*/ | ||
ForeignAssetTypeChanged: AugmentedEvent<ApiType, [u128, MoonbaseRuntimeXcmConfigAssetType]>; | ||
/** | ||
* Removed all information related to an assetId and destroyed asset | ||
*/ | ||
LocalAssetDestroyed: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Local asset was created | ||
*/ | ||
LocalAssetRegistered: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20]>; | ||
/** | ||
* Supported asset type for fee payment removed | ||
*/ | ||
SupportedAssetRemoved: AugmentedEvent<ApiType, [MoonbaseRuntimeXcmConfigAssetType]>; | ||
/** | ||
* Changed the amount of units we are charging per execution second for a | ||
* given asset | ||
*/ | ||
UnitsPerSecondChanged: AugmentedEvent<ApiType, [MoonbaseRuntimeXcmConfigAssetType, u128]>; | ||
/** | ||
* Generic event | ||
@@ -269,3 +299,3 @@ */ | ||
* identity with it. Data is the relay account, native account and the | ||
* total amount of *rewards* that will be paid | ||
* total amount of _rewards_ that will be paid | ||
*/ | ||
@@ -512,2 +542,87 @@ NativeIdentityAssociated: AugmentedEvent<ApiType, [U8aFixed, AccountId20, u128]>; | ||
}; | ||
localAssets: { | ||
/** | ||
* An approval for account `delegate` was cancelled by `owner`. | ||
*/ | ||
ApprovalCancelled: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20]>; | ||
/** | ||
* (Additional) funds have been approved for transfer to a destination account. | ||
*/ | ||
ApprovedTransfer: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20, u128]>; | ||
/** | ||
* Some asset `asset_id` was frozen. | ||
*/ | ||
AssetFrozen: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* An asset has had its attributes changed by the `Force` origin. | ||
*/ | ||
AssetStatusChanged: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Some asset `asset_id` was thawed. | ||
*/ | ||
AssetThawed: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Some assets were destroyed. | ||
*/ | ||
Burned: AugmentedEvent<ApiType, [u128, AccountId20, u128]>; | ||
/** | ||
* Some asset class was created. | ||
*/ | ||
Created: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20]>; | ||
/** | ||
* An asset class was destroyed. | ||
*/ | ||
Destroyed: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Some asset class was force-created. | ||
*/ | ||
ForceCreated: AugmentedEvent<ApiType, [u128, AccountId20]>; | ||
/** | ||
* Some account `who` was frozen. | ||
*/ | ||
Frozen: AugmentedEvent<ApiType, [u128, AccountId20]>; | ||
/** | ||
* Some assets were issued. | ||
*/ | ||
Issued: AugmentedEvent<ApiType, [u128, AccountId20, u128]>; | ||
/** | ||
* Metadata has been cleared for an asset. | ||
*/ | ||
MetadataCleared: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* New metadata has been set for an asset. | ||
*/ | ||
MetadataSet: AugmentedEvent<ApiType, [u128, Bytes, Bytes, u8, bool]>; | ||
/** | ||
* The owner changed. | ||
*/ | ||
OwnerChanged: AugmentedEvent<ApiType, [u128, AccountId20]>; | ||
/** | ||
* The management team changed. | ||
*/ | ||
TeamChanged: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20, AccountId20]>; | ||
/** | ||
* Some account `who` was thawed. | ||
*/ | ||
Thawed: AugmentedEvent<ApiType, [u128, AccountId20]>; | ||
/** | ||
* Some assets were transferred. | ||
*/ | ||
Transferred: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20, u128]>; | ||
/** | ||
* An `amount` was transferred in its entirety from `owner` to | ||
* `destination` by the approved `delegate`. | ||
*/ | ||
TransferredApproved: AugmentedEvent<ApiType, [ | ||
u128, | ||
AccountId20, | ||
AccountId20, | ||
AccountId20, | ||
u128 | ||
]>; | ||
/** | ||
* Generic event | ||
*/ | ||
[key: string]: AugmentedEvent<ApiType>; | ||
}; | ||
maintenanceMode: { | ||
@@ -519,2 +634,10 @@ /** | ||
/** | ||
* The call to resume on_idle XCM execution failed with inner error | ||
*/ | ||
FailedToResumeIdleXcmExecution: AugmentedEvent<ApiType, [SpRuntimeDispatchError]>; | ||
/** | ||
* The call to suspend on_idle XCM execution failed with inner error | ||
*/ | ||
FailedToSuspendIdleXcmExecution: AugmentedEvent<ApiType, [SpRuntimeDispatchError]>; | ||
/** | ||
* The chain returned to its normal operating state | ||
@@ -529,5 +652,17 @@ */ | ||
migrations: { | ||
/** | ||
* Migration completed | ||
*/ | ||
MigrationCompleted: AugmentedEvent<ApiType, [Bytes, u64]>; | ||
/** | ||
* Migration started | ||
*/ | ||
MigrationStarted: AugmentedEvent<ApiType, [Bytes]>; | ||
/** | ||
* Runtime upgrade completed | ||
*/ | ||
RuntimeUpgradeCompleted: AugmentedEvent<ApiType, [u64]>; | ||
/** | ||
* Runtime upgrade started | ||
*/ | ||
RuntimeUpgradeStarted: AugmentedEvent<ApiType, []>; | ||
@@ -541,16 +676,15 @@ /** | ||
/** | ||
* Set blocks per round [current_round, first_block, old, new, | ||
* new_per_round_inflation] | ||
* Set blocks per round | ||
*/ | ||
BlocksPerRoundSet: AugmentedEvent<ApiType, [u32, u32, u32, u32, Perbill, Perbill, Perbill]>; | ||
/** | ||
* Candidate, Amount, Round at which could be executed | ||
* Cancelled request to decrease candidate's bond. | ||
*/ | ||
CancelledCandidateBondLess: AugmentedEvent<ApiType, [AccountId20, u128, u32]>; | ||
/** | ||
* Candidate | ||
* Cancelled request to leave the set of candidates. | ||
*/ | ||
CancelledCandidateExit: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* Delegator, Cancelled Request | ||
* Cancelled request to change an existing delegation. | ||
*/ | ||
@@ -562,40 +696,39 @@ CancelledDelegationRequest: AugmentedEvent<ApiType, [ | ||
/** | ||
* Candidate | ||
* Candidate rejoins the set of collator candidates. | ||
*/ | ||
CandidateBackOnline: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* Candidate, Amount, New Bond | ||
* Сandidate has decreased a self bond. | ||
*/ | ||
CandidateBondedLess: AugmentedEvent<ApiType, [AccountId20, u128, u128]>; | ||
/** | ||
* Candidate, Amount, New Bond Total | ||
* Сandidate has increased a self bond. | ||
*/ | ||
CandidateBondedMore: AugmentedEvent<ApiType, [AccountId20, u128, u128]>; | ||
/** | ||
* Candidate, Amount To Decrease, Round at which request can be executed by caller | ||
* Сandidate requested to decrease a self bond. | ||
*/ | ||
CandidateBondLessRequested: AugmentedEvent<ApiType, [AccountId20, u128, u32]>; | ||
/** | ||
* Ex-Candidate, Amount Unlocked, New Total Amt Locked | ||
* Candidate has left the set of candidates. | ||
*/ | ||
CandidateLeft: AugmentedEvent<ApiType, [AccountId20, u128, u128]>; | ||
/** | ||
* Round At Which Exit Is Allowed, Candidate, Scheduled Exit | ||
* Сandidate has requested to leave the set of candidates. | ||
*/ | ||
CandidateScheduledExit: AugmentedEvent<ApiType, [u32, AccountId20, u32]>; | ||
/** | ||
* Candidate | ||
* Candidate temporarily leave the set of collator candidates without unbonding. | ||
*/ | ||
CandidateWentOffline: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* Round, Collator Account, Total Exposed Amount (includes all delegations) | ||
* Candidate selected for collators. Total Exposed Amount includes all delegations. | ||
*/ | ||
CollatorChosen: AugmentedEvent<ApiType, [u32, AccountId20, u128]>; | ||
/** | ||
* Set collator commission to this value [old, new] | ||
* Set collator commission to this value. | ||
*/ | ||
CollatorCommissionSet: AugmentedEvent<ApiType, [Perbill, Perbill]>; | ||
/** | ||
* Delegator, Amount Locked, Candidate, Delegator Position with New Total | ||
* Counted if in Top | ||
* New delegation (increase of the existing one). | ||
*/ | ||
@@ -610,3 +743,3 @@ Delegation: AugmentedEvent<ApiType, [ | ||
/** | ||
* Delegator, Candidate, Amount to be decreased, Round at which can be executed | ||
* Delegator requested to decrease a bond for the collator candidate. | ||
*/ | ||
@@ -616,27 +749,27 @@ DelegationDecreaseScheduled: AugmentedEvent<ApiType, [AccountId20, AccountId20, u128, u32]>; | ||
/** | ||
* Delegator, Candidate, Amount Unstaked | ||
* Delegation kicked. | ||
*/ | ||
DelegationKicked: AugmentedEvent<ApiType, [AccountId20, AccountId20, u128]>; | ||
/** | ||
* Round, Delegator, Candidate, Scheduled Exit | ||
* Delegator requested to revoke delegation. | ||
*/ | ||
DelegationRevocationScheduled: AugmentedEvent<ApiType, [u32, AccountId20, AccountId20, u32]>; | ||
/** | ||
* Delegator, Candidate, Amount Unstaked | ||
* Delegation revoked. | ||
*/ | ||
DelegationRevoked: AugmentedEvent<ApiType, [AccountId20, AccountId20, u128]>; | ||
/** | ||
* Delegator | ||
* Cancelled a pending request to exit the set of delegators. | ||
*/ | ||
DelegatorExitCancelled: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* Round, Delegator, Scheduled Exit | ||
* Delegator requested to leave the set of delegators. | ||
*/ | ||
DelegatorExitScheduled: AugmentedEvent<ApiType, [u32, AccountId20, u32]>; | ||
/** | ||
* Delegator, Amount Unstaked | ||
* Delegator has left the set of delegators. | ||
*/ | ||
DelegatorLeft: AugmentedEvent<ApiType, [AccountId20, u128]>; | ||
/** | ||
* Delegator, Candidate, Amount Unstaked, New Total Amt Staked for Candidate | ||
* Delegation from candidate state has been remove. | ||
*/ | ||
@@ -650,31 +783,31 @@ DelegatorLeftCandidate: AugmentedEvent<ApiType, [AccountId20, AccountId20, u128, u128]>; | ||
/** | ||
* Account, Amount Locked, New Total Amt Locked | ||
* Account joined the set of collator candidates. | ||
*/ | ||
JoinedCollatorCandidates: AugmentedEvent<ApiType, [AccountId20, u128, u128]>; | ||
/** | ||
* Starting Block, Round, Number of Collators Selected, Total Balance | ||
* Started new round. | ||
*/ | ||
NewRound: AugmentedEvent<ApiType, [u32, u32, u32, u128]>; | ||
/** | ||
* Account (re)set for parachain bond treasury [old, new] | ||
* Account (re)set for parachain bond treasury. | ||
*/ | ||
ParachainBondAccountSet: AugmentedEvent<ApiType, [AccountId20, AccountId20]>; | ||
/** | ||
* Percent of inflation reserved for parachain bond (re)set [old, new] | ||
* Percent of inflation reserved for parachain bond (re)set. | ||
*/ | ||
ParachainBondReservePercentSet: AugmentedEvent<ApiType, [Percent, Percent]>; | ||
/** | ||
* Transferred to account which holds funds reserved for parachain bond | ||
* Transferred to account which holds funds reserved for parachain bond. | ||
*/ | ||
ReservedForParachainBond: AugmentedEvent<ApiType, [AccountId20, u128]>; | ||
/** | ||
* Paid the account (delegator or collator) the balance as liquid rewards | ||
* Paid the account (delegator or collator) the balance as liquid rewards. | ||
*/ | ||
Rewarded: AugmentedEvent<ApiType, [AccountId20, u128]>; | ||
/** | ||
* Staking expectations set | ||
* Staking expectations set. | ||
*/ | ||
StakeExpectationsSet: AugmentedEvent<ApiType, [u128, u128, u128]>; | ||
/** | ||
* Set total selected candidates to this value [old, new] | ||
* Set total selected candidates to this value. | ||
*/ | ||
@@ -881,7 +1014,15 @@ TotalSelectedSet: AugmentedEvent<ApiType, [u32, u32]>; | ||
/** | ||
* Canceled some task. [when, index] | ||
* The call for the provided hash was not found so the task has been aborted. | ||
*/ | ||
CallLookupFailed: AugmentedEvent<ApiType, [ | ||
ITuple<[u32, u32]>, | ||
Option<Bytes>, | ||
FrameSupportScheduleLookupError | ||
]>; | ||
/** | ||
* Canceled some task. | ||
*/ | ||
Canceled: AugmentedEvent<ApiType, [u32, u32]>; | ||
/** | ||
* Dispatched some task. [task, id, result] | ||
* Dispatched some task. | ||
*/ | ||
@@ -894,3 +1035,3 @@ Dispatched: AugmentedEvent<ApiType, [ | ||
/** | ||
* Scheduled some task. [when, index] | ||
* Scheduled some task. | ||
*/ | ||
@@ -905,5 +1046,5 @@ Scheduled: AugmentedEvent<ApiType, [u32, u32]>; | ||
/** | ||
* The [sudoer] just switched identity; the old key is supplied. | ||
* The [sudoer] just switched identity; the old key is supplied if one existed. | ||
*/ | ||
KeyChanged: AugmentedEvent<ApiType, [AccountId20]>; | ||
KeyChanged: AugmentedEvent<ApiType, [Option<AccountId20>]>; | ||
/** | ||
@@ -928,3 +1069,3 @@ * A sudo just took place. [result] | ||
/** | ||
* An extrinsic failed. [error, info] | ||
* An extrinsic failed. | ||
*/ | ||
@@ -936,15 +1077,15 @@ ExtrinsicFailed: AugmentedEvent<ApiType, [ | ||
/** | ||
* An extrinsic completed successfully. [info] | ||
* An extrinsic completed successfully. | ||
*/ | ||
ExtrinsicSuccess: AugmentedEvent<ApiType, [FrameSupportWeightsDispatchInfo]>; | ||
/** | ||
* An [account] was reaped. | ||
* An account was reaped. | ||
*/ | ||
KilledAccount: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* A new [account] was created. | ||
* A new account was created. | ||
*/ | ||
NewAccount: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* On on-chain remark happened. [origin, remark_hash] | ||
* On on-chain remark happened. | ||
*/ | ||
@@ -997,28 +1138,27 @@ Remarked: AugmentedEvent<ApiType, [AccountId20, H256]>; | ||
/** | ||
* Some funds have been allocated. [proposal_index, award, beneficiary] | ||
* Some funds have been allocated. | ||
*/ | ||
Awarded: AugmentedEvent<ApiType, [u32, u128, AccountId20]>; | ||
/** | ||
* Some of our funds have been burnt. [burn] | ||
* Some of our funds have been burnt. | ||
*/ | ||
Burnt: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Some funds have been deposited. [deposit] | ||
* Some funds have been deposited. | ||
*/ | ||
Deposit: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* New proposal. [proposal_index] | ||
* New proposal. | ||
*/ | ||
Proposed: AugmentedEvent<ApiType, [u32]>; | ||
/** | ||
* A proposal was rejected; funds were slashed. [proposal_index, slashed] | ||
* A proposal was rejected; funds were slashed. | ||
*/ | ||
Rejected: AugmentedEvent<ApiType, [u32, u128]>; | ||
/** | ||
* Spending has finished; this is the amount that rolls over until next | ||
* spend. [budget_remaining] | ||
* Spending has finished; this is the amount that rolls over until next spend. | ||
*/ | ||
Rollover: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* We have ended a spend period and will now allocate funds. [budget_remaining] | ||
* We have ended a spend period and will now allocate funds. | ||
*/ | ||
@@ -1042,3 +1182,3 @@ Spending: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* A call was dispatched. [result] | ||
* A call was dispatched. | ||
*/ | ||
@@ -1069,2 +1209,10 @@ DispatchedAs: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>; | ||
/** | ||
* An XCM exceeded the individual message weight budget. | ||
*/ | ||
OverweightEnqueued: AugmentedEvent<ApiType, [u32, u32, u64, u64]>; | ||
/** | ||
* An XCM from the overweight queue was executed with the given actual weight used. | ||
*/ | ||
OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>; | ||
/** | ||
* Some XCM was executed ok. | ||
@@ -1087,6 +1235,22 @@ */ | ||
xcmTransactor: { | ||
RegisterdDerivative: AugmentedEvent<ApiType, [AccountId20, u16]>; | ||
DeRegisteredDerivative: AugmentedEvent<ApiType, [u16]>; | ||
/** | ||
* Registered a derivative index for an account id. | ||
*/ | ||
RegisteredDerivative: AugmentedEvent<ApiType, [AccountId20, u16]>; | ||
/** | ||
* Transacted the inner call through a derivative account in a destination chain. | ||
*/ | ||
TransactedDerivative: AugmentedEvent<ApiType, [AccountId20, XcmV1MultiLocation, Bytes, u16]>; | ||
/** | ||
* Transacted the call through the sovereign account in a destination chain. | ||
*/ | ||
TransactedSovereign: AugmentedEvent<ApiType, [AccountId20, XcmV1MultiLocation, Bytes]>; | ||
/** | ||
* Transact failed | ||
*/ | ||
TransactFailed: AugmentedEvent<ApiType, [XcmV2TraitsError]>; | ||
/** | ||
* Changed the transact info of a location | ||
*/ | ||
TransactInfoChanged: AugmentedEvent<ApiType, [ | ||
@@ -1097,2 +1261,6 @@ XcmV1MultiLocation, | ||
/** | ||
* Removed the transact info of a location | ||
*/ | ||
TransactInfoRemoved: AugmentedEvent<ApiType, [XcmV1MultiLocation]>; | ||
/** | ||
* Generic event | ||
@@ -1104,15 +1272,7 @@ */ | ||
/** | ||
* Transferred. [sender, currency_id, amount, dest] | ||
* Transferred `MultiAsset` with fee. | ||
*/ | ||
Transferred: AugmentedEvent<ApiType, [ | ||
TransferredMultiAssets: AugmentedEvent<ApiType, [ | ||
AccountId20, | ||
MoonbaseRuntimeCurrencyId, | ||
u128, | ||
XcmV1MultiLocation | ||
]>; | ||
/** | ||
* Transferred `MultiAsset`. [sender, asset, dest] | ||
*/ | ||
TransferredMultiAsset: AugmentedEvent<ApiType, [ | ||
AccountId20, | ||
XcmV1MultiassetMultiAssets, | ||
XcmV1MultiAsset, | ||
@@ -1122,21 +1282,2 @@ XcmV1MultiLocation | ||
/** | ||
* Transferred `MultiAsset` with fee. [sender, asset, fee, dest] | ||
*/ | ||
TransferredMultiAssetWithFee: AugmentedEvent<ApiType, [ | ||
AccountId20, | ||
XcmV1MultiAsset, | ||
XcmV1MultiAsset, | ||
XcmV1MultiLocation | ||
]>; | ||
/** | ||
* Transferred with fee. [sender, currency_id, amount, fee, dest] | ||
*/ | ||
TransferredWithFee: AugmentedEvent<ApiType, [ | ||
AccountId20, | ||
MoonbaseRuntimeCurrencyId, | ||
u128, | ||
u128, | ||
XcmV1MultiLocation | ||
]>; | ||
/** | ||
* Generic event | ||
@@ -1143,0 +1284,0 @@ */ |
@@ -6,3 +6,3 @@ import type { ApiTypes } from "@polkadot/api-base/types"; | ||
import type { AccountId20, Call, H160, H256, Perbill, Percent, Permill } from "@polkadot/types/interfaces/runtime"; | ||
import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundStatus, CumulusPalletXcmpQueueOutboundStatus, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, MoonbaseRuntimeAssetType, NimbusPrimitivesNimbusCryptoPublic, PalletAssetsApproval, PalletAssetsAssetBalance, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorMappingRegistrationInfo, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletCollectiveVotes, PalletCrowdloanRewardsRewardInfo, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerReleases, PalletSchedulerScheduledV2, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, ParachainStakingBond, ParachainStakingCandidateMetadata, ParachainStakingCollator2, ParachainStakingCollatorCandidate, ParachainStakingCollatorSnapshot, ParachainStakingDelayedPayout, ParachainStakingDelegations, ParachainStakingDelegator, ParachainStakingExitQ, ParachainStakingInflationInflationInfo, ParachainStakingNominator2, ParachainStakingParachainBondConfig, ParachainStakingRoundInfo, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpRuntimeDigest, XcmTransactorRemoteTransactInfoWithMaxWeight, XcmV1MultiLocation, XcmVersionedMultiLocation } from "@polkadot/types/lookup"; | ||
import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, MoonbaseRuntimeXcmConfigAssetType, NimbusPrimitivesNimbusCryptoPublic, PalletAssetManagerAssetInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorMappingRegistrationInfo, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletCollectiveVotes, PalletCrowdloanRewardsRewardInfo, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, ParachainStakingBond, ParachainStakingCandidateMetadata, ParachainStakingCollator2, ParachainStakingCollatorCandidate, ParachainStakingCollatorSnapshot, ParachainStakingDelayedPayout, ParachainStakingDelegations, ParachainStakingDelegator, ParachainStakingInflationInflationInfo, ParachainStakingNominator2, ParachainStakingParachainBondConfig, ParachainStakingRoundInfo, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpRuntimeDigest, SpTrieStorageProof, XcmTransactorRemoteTransactInfoWithMaxWeight, XcmV1MultiLocation, XcmVersionedMultiLocation } from "@polkadot/types/lookup"; | ||
import type { Observable } from "@polkadot/types/types"; | ||
@@ -17,3 +17,3 @@ declare module "@polkadot/api-base/types/storage" { | ||
*/ | ||
assetIdType: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<MoonbaseRuntimeAssetType>>, [ | ||
assetIdType: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<MoonbaseRuntimeXcmConfigAssetType>>, [ | ||
u128 | ||
@@ -26,7 +26,7 @@ ]> & QueryableStorageEntry<ApiType, [u128]>; | ||
*/ | ||
assetTypeId: AugmentedQuery<ApiType, (arg: MoonbaseRuntimeAssetType | { | ||
assetTypeId: AugmentedQuery<ApiType, (arg: MoonbaseRuntimeXcmConfigAssetType | { | ||
Xcm: any; | ||
} | string | Uint8Array) => Observable<Option<u128>>, [ | ||
MoonbaseRuntimeAssetType | ||
]> & QueryableStorageEntry<ApiType, [MoonbaseRuntimeAssetType]>; | ||
MoonbaseRuntimeXcmConfigAssetType | ||
]> & QueryableStorageEntry<ApiType, [MoonbaseRuntimeXcmConfigAssetType]>; | ||
/** | ||
@@ -37,8 +37,25 @@ * Stores the units per second for local execution for a AssetType. This | ||
*/ | ||
assetTypeUnitsPerSecond: AugmentedQuery<ApiType, (arg: MoonbaseRuntimeAssetType | { | ||
assetTypeUnitsPerSecond: AugmentedQuery<ApiType, (arg: MoonbaseRuntimeXcmConfigAssetType | { | ||
Xcm: any; | ||
} | string | Uint8Array) => Observable<Option<u128>>, [ | ||
MoonbaseRuntimeAssetType | ||
]> & QueryableStorageEntry<ApiType, [MoonbaseRuntimeAssetType]>; | ||
MoonbaseRuntimeXcmConfigAssetType | ||
]> & QueryableStorageEntry<ApiType, [MoonbaseRuntimeXcmConfigAssetType]>; | ||
/** | ||
* Stores the counter of the number of local assets that have been created | ||
* so far This value can be used to salt the creation of an assetId, e.g., | ||
* by hashing it. This is particularly useful for cases like moonbeam | ||
* where letting users choose their assetId would result in collision in | ||
* the evm side. | ||
*/ | ||
localAssetCounter: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Local asset deposits, a mapping from assetId to a struct holding the | ||
* creator (from which the deposit was reserved) and the deposit amount | ||
*/ | ||
localAssetDeposit: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<PalletAssetManagerAssetInfo>>, [ | ||
u128 | ||
]> & QueryableStorageEntry<ApiType, [u128]>; | ||
supportedFeePaymentAssets: AugmentedQuery<ApiType, () => Observable<Vec<MoonbaseRuntimeXcmConfigAssetType>>, [ | ||
]> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Generic query | ||
@@ -50,5 +67,5 @@ */ | ||
/** | ||
* The number of units of assets held by any given account. | ||
* The holdings of a specific account for a specific asset. | ||
*/ | ||
account: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<PalletAssetsAssetBalance>, [ | ||
account: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<Option<PalletAssetsAssetAccount>>, [ | ||
u128, | ||
@@ -120,5 +137,27 @@ AccountId20 | ||
/** | ||
* The balance of an account. | ||
* The Balances pallet example of storing the balance of an account. | ||
* | ||
* NOTE: This is only used in the case that this pallet is used to store balances. | ||
* # Example | ||
* | ||
* ```nocompile | ||
* impl pallet_balances::Config for Runtime { | ||
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>> | ||
* } | ||
* ``` | ||
* | ||
* 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. | ||
*/ | ||
@@ -261,12 +300,2 @@ account: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [ | ||
/** | ||
* Accounts for which there are locks in action which may be removed at | ||
* some point in the future. The value is the block number at which the | ||
* lock expires and may be removed. | ||
* | ||
* TWOX-NOTE: OK ― `AccountId` is a secure hash. | ||
*/ | ||
locks: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<u32>>, [ | ||
AccountId20 | ||
]> & QueryableStorageEntry<ApiType, [AccountId20]>; | ||
/** | ||
* The lowest referendum index representing an unbaked referendum. Equal | ||
@@ -455,2 +484,38 @@ * to `ReferendumCount` if there isn't a unbaked referendum. | ||
}; | ||
localAssets: { | ||
/** | ||
* The holdings of a specific account for a specific asset. | ||
*/ | ||
account: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<Option<PalletAssetsAssetAccount>>, [ | ||
u128, | ||
AccountId20 | ||
]> & QueryableStorageEntry<ApiType, [u128, AccountId20]>; | ||
/** | ||
* Approved balance transfers. First balance is the amount approved for | ||
* transfer. Second is the amount of `T::Currency` reserved for storing | ||
* this. First key is the asset ID, second key is the owner and third key | ||
* is the delegate. | ||
*/ | ||
approvals: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array, arg3: AccountId20 | string | Uint8Array) => Observable<Option<PalletAssetsApproval>>, [ | ||
u128, | ||
AccountId20, | ||
AccountId20 | ||
]> & QueryableStorageEntry<ApiType, [u128, AccountId20, AccountId20]>; | ||
/** | ||
* Details of an asset. | ||
*/ | ||
asset: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<PalletAssetsAssetDetails>>, [ | ||
u128 | ||
]> & QueryableStorageEntry<ApiType, [u128]>; | ||
/** | ||
* Metadata of an asset. | ||
*/ | ||
metadata: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<PalletAssetsAssetMetadata>, [ | ||
u128 | ||
]> & QueryableStorageEntry<ApiType, [u128]>; | ||
/** | ||
* Generic query | ||
*/ | ||
[key: string]: QueryableStorageEntry<ApiType>; | ||
}; | ||
maintenanceMode: { | ||
@@ -553,7 +618,2 @@ /** | ||
/** | ||
* DEPRECATED, to be removed in future runtime upgrade but necessary for | ||
* runtime migration A queue of collators and nominators awaiting exit | ||
*/ | ||
exitQueue2: AugmentedQuery<ApiType, () => Observable<ParachainStakingExitQ>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Inflation configuration | ||
@@ -625,2 +685,8 @@ */ | ||
/** | ||
* 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<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Were the validation data set to notify the relay chain? | ||
@@ -684,4 +750,7 @@ */ | ||
* As soon as the relay chain gives us the go-ahead signal, we will | ||
* overwrite the `:code` which will result the next block process with the | ||
* new validation code. This concludes the upgrade process. | ||
* 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 | ||
*/ | ||
@@ -696,2 +765,12 @@ pendingValidationCode: AugmentedQuery<ApiType, () => Observable<Bytes>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* 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<ApiType, () => Observable<Option<SpTrieStorageProof>>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* The snapshot of some state related to messaging relevant to the current | ||
@@ -860,3 +939,3 @@ * parachain as per the relay parent. | ||
*/ | ||
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduledV2>>>, [ | ||
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduledV3>>>, [ | ||
u32 | ||
@@ -871,8 +950,2 @@ ]> & QueryableStorageEntry<ApiType, [u32]>; | ||
/** | ||
* Storage version of the pallet. | ||
* | ||
* New networks start with last version. | ||
*/ | ||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletSchedulerReleases>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Generic query | ||
@@ -886,3 +959,3 @@ */ | ||
*/ | ||
key: AugmentedQuery<ApiType, () => Observable<AccountId20>, []> & QueryableStorageEntry<ApiType, []>; | ||
key: AugmentedQuery<ApiType, () => Observable<Option<AccountId20>>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
@@ -1078,7 +1151,3 @@ * Generic query | ||
*/ | ||
inboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[ | ||
u32, | ||
CumulusPalletXcmpQueueInboundStatus, | ||
Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>> | ||
]>>>, [ | ||
inboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletXcmpQueueInboundChannelDetails>>, [ | ||
]> & QueryableStorageEntry<ApiType, []>; | ||
@@ -1101,5 +1170,19 @@ /** | ||
*/ | ||
outboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, CumulusPalletXcmpQueueOutboundStatus, bool, u16, u16]>>>, [ | ||
outboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletXcmpQueueOutboundChannelDetails>>, [ | ||
]> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* 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<Option<ITuple<[u32, u32, Bytes]>>>, [ | ||
u64 | ||
]> & QueryableStorageEntry<ApiType, [u64]>; | ||
/** | ||
* The number of overweight messages ever recorded in `Overweight`. Also | ||
* doubles as the next available free overweight index. | ||
*/ | ||
overweightCount: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* The configuration which controls the dynamics of the outbound queue. | ||
@@ -1110,2 +1193,6 @@ */ | ||
/** | ||
* Whether or not the XCMP queue is suspended from executing incoming XCMs or not. | ||
*/ | ||
queueSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Any signal messages waiting to be sent. | ||
@@ -1112,0 +1199,0 @@ */ |
@@ -12,2 +12,3 @@ import type { AugmentedRpc } from "@polkadot/rpc-core/types"; | ||
import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from "@polkadot/types/interfaces/contracts"; | ||
import type { BlockStats } from "@polkadot/types/interfaces/dev"; | ||
import type { CreatedBlock } from "@polkadot/types/interfaces/engine"; | ||
@@ -22,3 +23,3 @@ import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from "@polkadot/types/interfaces/eth"; | ||
import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from "@polkadot/types/interfaces/runtime"; | ||
import type { ReadProof, RuntimeVersion, TraceBlockResponse } from "@polkadot/types/interfaces/state"; | ||
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"; | ||
@@ -185,2 +186,8 @@ import type { IExtrinsic, Observable } from "@polkadot/types/types"; | ||
}; | ||
dev: { | ||
/** | ||
* Reexecute the specified `block_hash` and gather statistics while doing so | ||
*/ | ||
getBlockStats: AugmentedRpc<(at: Hash | string | Uint8Array) => Observable<Option<BlockStats>>>; | ||
}; | ||
engine: { | ||
@@ -551,2 +558,6 @@ /** | ||
traceBlock: AugmentedRpc<(block: Hash | string | Uint8Array, targets: Option<Text> | null | object | string | Uint8Array, storageKeys: Option<Text> | null | object | string | Uint8Array, methods: Option<Text> | null | object | string | Uint8Array) => Observable<TraceBlockResponse>>; | ||
/** | ||
* Check current migration state | ||
*/ | ||
trieMigrationStatus: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MigrationStatusResult>>; | ||
}; | ||
@@ -553,0 +564,0 @@ syncstate: { |
@@ -22,2 +22,3 @@ import type { Data, StorageKey } from "@polkadot/types"; | ||
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"; | ||
@@ -51,5 +52,5 @@ import type { CreatedBlock, ImportedAux } from "@polkadot/types/interfaces/engine"; | ||
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, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from "@polkadot/types/interfaces/state"; | ||
import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, MigrationStatusResult, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, 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, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, 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, UnknownTransaction, WeightPerClass } from "@polkadot/types/interfaces/system"; | ||
import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorModuleU8a, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, 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, 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"; | ||
@@ -153,2 +154,3 @@ import type { Multiplier } from "@polkadot/types/interfaces/txpayment"; | ||
BlockNumberOf: BlockNumberOf; | ||
BlockStats: BlockStats; | ||
BlockTrace: BlockTrace; | ||
@@ -307,2 +309,3 @@ BlockTraceEvent: BlockTraceEvent; | ||
DispatchErrorModule: DispatchErrorModule; | ||
DispatchErrorModuleU8a: DispatchErrorModuleU8a; | ||
DispatchErrorTo198: DispatchErrorTo198; | ||
@@ -594,2 +597,3 @@ DispatchFeePayment: DispatchFeePayment; | ||
MetadataV9: MetadataV9; | ||
MigrationStatusResult: MigrationStatusResult; | ||
MmrLeafProof: MmrLeafProof; | ||
@@ -596,0 +600,0 @@ MmrRootHash: MmrRootHash; |
import type { ApiTypes } from "@polkadot/api-base/types"; | ||
import type { Bytes, Vec, bool, u128, u16, u32, u64, u8 } from "@polkadot/types-codec"; | ||
import type { Bytes, Option, Vec, bool, u128, u16, u32, u64, u8 } from "@polkadot/types-codec"; | ||
import type { Codec } from "@polkadot/types-codec/types"; | ||
@@ -8,2 +8,12 @@ import type { Perbill, Percent, Permill } from "@polkadot/types/interfaces/runtime"; | ||
interface AugmentedConsts<ApiType extends ApiTypes> { | ||
assetManager: { | ||
/** | ||
* The basic amount of funds that must be reserved for a local asset. | ||
*/ | ||
localAssetDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
*/ | ||
[key: string]: Codec; | ||
}; | ||
assets: { | ||
@@ -15,2 +25,7 @@ /** | ||
/** | ||
* The amount of funds that must be reserved for a non-provider asset | ||
* account to be maintained. | ||
*/ | ||
assetAccountDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The basic amount of funds that must be reserved for an asset. | ||
@@ -177,2 +192,35 @@ */ | ||
}; | ||
localAssets: { | ||
/** | ||
* The amount of funds that must be reserved when creating a new approval. | ||
*/ | ||
approvalDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The amount of funds that must be reserved for a non-provider asset | ||
* account to be maintained. | ||
*/ | ||
assetAccountDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The basic amount of funds that must be reserved for an asset. | ||
*/ | ||
assetDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The basic amount of funds that must be reserved when adding metadata to | ||
* your asset. | ||
*/ | ||
metadataDepositBase: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The additional funds that must be reserved for the number of bytes you | ||
* store in your metadata. | ||
*/ | ||
metadataDepositPerByte: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The maximum length of a name or symbol stored on-chain. | ||
*/ | ||
stringLimit: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
*/ | ||
[key: string]: Codec; | ||
}; | ||
parachainStaking: { | ||
@@ -358,3 +406,3 @@ /** | ||
* The minimum period between blocks. Beware that this is different to the | ||
* *expected* period that the block production apparatus provides. Your | ||
* _expected_ period that the block production apparatus provides. Your | ||
* chosen consensus system will generally work with this to determine a | ||
@@ -416,2 +464,5 @@ * sensible block time. e.g. For Aura, it will be double this period on | ||
* 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. | ||
*/ | ||
@@ -430,2 +481,6 @@ maxApprovals: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Maximum amount of funds that should be placed in a deposit for making a proposal. | ||
*/ | ||
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>; | ||
/** | ||
* Minimum amount of funds that should be placed in a deposit for making a proposal. | ||
@@ -432,0 +487,0 @@ */ |
@@ -8,2 +8,7 @@ import type { ApiTypes } from "@polkadot/api-base/types"; | ||
ErrorCreatingAsset: AugmentedError<ApiType>; | ||
ErrorDestroyingAsset: AugmentedError<ApiType>; | ||
LocalAssetLimitReached: AugmentedError<ApiType>; | ||
NonExistentLocalAsset: AugmentedError<ApiType>; | ||
NotSufficientDeposit: AugmentedError<ApiType>; | ||
TooLowNumAssetsWeightHint: AugmentedError<ApiType>; | ||
/** | ||
@@ -16,2 +21,6 @@ * Generic error | ||
/** | ||
* The asset-account already exists. | ||
*/ | ||
AlreadyExists: AugmentedError<ApiType>; | ||
/** | ||
* Invalid metadata given. | ||
@@ -29,6 +38,2 @@ */ | ||
/** | ||
* Balance should be non-zero. | ||
*/ | ||
BalanceZero: AugmentedError<ApiType>; | ||
/** | ||
* The origin account is frozen. | ||
@@ -46,2 +51,10 @@ */ | ||
/** | ||
* The account to alter does not exist. | ||
*/ | ||
NoAccount: AugmentedError<ApiType>; | ||
/** | ||
* The asset-account doesn't have an associated deposit. | ||
*/ | ||
NoDeposit: AugmentedError<ApiType>; | ||
/** | ||
* The signing account has no permission to do the operation. | ||
@@ -51,4 +64,5 @@ */ | ||
/** | ||
* No provider reference exists to allow a non-zero balance of a | ||
* non-self-sufficient asset. | ||
* Unable to increment the consumer reference counters on the account. | ||
* Either no provider reference exists to allow a non-zero balance of a | ||
* non-self-sufficient asset, or the maximum number of consumers has been reached. | ||
*/ | ||
@@ -65,2 +79,6 @@ NoProvider: AugmentedError<ApiType>; | ||
/** | ||
* The operation would result in funds being burned. | ||
*/ | ||
WouldBurn: AugmentedError<ApiType>; | ||
/** | ||
* The source account would not survive the transfer and it needs to stay alive. | ||
@@ -441,2 +459,6 @@ */ | ||
/** | ||
* Maximum address count exceeded | ||
*/ | ||
MaxAddressCountExceeded: AugmentedError<ApiType>; | ||
/** | ||
* Calculating total payment overflowed | ||
@@ -524,2 +546,70 @@ */ | ||
}; | ||
localAssets: { | ||
/** | ||
* The asset-account already exists. | ||
*/ | ||
AlreadyExists: AugmentedError<ApiType>; | ||
/** | ||
* Invalid metadata given. | ||
*/ | ||
BadMetadata: AugmentedError<ApiType>; | ||
/** | ||
* Invalid witness data given. | ||
*/ | ||
BadWitness: AugmentedError<ApiType>; | ||
/** | ||
* Account balance must be greater than or equal to the transfer amount. | ||
*/ | ||
BalanceLow: AugmentedError<ApiType>; | ||
/** | ||
* The origin account is frozen. | ||
*/ | ||
Frozen: AugmentedError<ApiType>; | ||
/** | ||
* The asset ID is already taken. | ||
*/ | ||
InUse: AugmentedError<ApiType>; | ||
/** | ||
* Minimum balance should be non-zero. | ||
*/ | ||
MinBalanceZero: AugmentedError<ApiType>; | ||
/** | ||
* The account to alter does not exist. | ||
*/ | ||
NoAccount: AugmentedError<ApiType>; | ||
/** | ||
* The asset-account doesn't have an associated deposit. | ||
*/ | ||
NoDeposit: AugmentedError<ApiType>; | ||
/** | ||
* The signing account has no permission to do the operation. | ||
*/ | ||
NoPermission: AugmentedError<ApiType>; | ||
/** | ||
* Unable to increment the consumer reference counters on the account. | ||
* Either no provider reference exists to allow a non-zero balance of a | ||
* non-self-sufficient asset, or the maximum number of consumers has been reached. | ||
*/ | ||
NoProvider: AugmentedError<ApiType>; | ||
/** | ||
* No approval exists that would allow the transfer. | ||
*/ | ||
Unapproved: AugmentedError<ApiType>; | ||
/** | ||
* The given asset ID is unknown. | ||
*/ | ||
Unknown: AugmentedError<ApiType>; | ||
/** | ||
* The operation would result in funds being burned. | ||
*/ | ||
WouldBurn: AugmentedError<ApiType>; | ||
/** | ||
* The source account would not survive the transfer and it needs to stay alive. | ||
*/ | ||
WouldDie: AugmentedError<ApiType>; | ||
/** | ||
* Generic error | ||
*/ | ||
[key: string]: AugmentedError<ApiType>; | ||
}; | ||
maintenanceMode: { | ||
@@ -857,2 +947,6 @@ /** | ||
/** | ||
* Bad overweight index. | ||
*/ | ||
BadOverweightIndex: AugmentedError<ApiType>; | ||
/** | ||
* Bad XCM data. | ||
@@ -870,2 +964,6 @@ */ | ||
/** | ||
* Provided weight is possibly not enough to execute the message. | ||
*/ | ||
WeightOverLimit: AugmentedError<ApiType>; | ||
/** | ||
* Generic error | ||
@@ -907,2 +1005,6 @@ */ | ||
/** | ||
* The specified index does not exist in a MultiAssets struct. | ||
*/ | ||
AssetIndexNonExistent: AugmentedError<ApiType>; | ||
/** | ||
* The version of the `Versioned` value used is not able to be interpreted. | ||
@@ -920,9 +1022,9 @@ */ | ||
/** | ||
* The fee MultiAsset is of different type than the asset to transfer. | ||
* We tried sending distinct asset and fee but they have different reserve chains. | ||
*/ | ||
DistincAssetAndFeeId: AugmentedError<ApiType>; | ||
DistinctReserveForAssetAndFee: AugmentedError<ApiType>; | ||
/** | ||
* The fee amount was zero when the fee specification extrinsic is being used. | ||
* Fee is not enough. | ||
*/ | ||
FeeCannotBeZero: AugmentedError<ApiType>; | ||
FeeNotEnough: AugmentedError<ApiType>; | ||
/** | ||
@@ -933,2 +1035,6 @@ * Could not get ancestry of asset reserve location. | ||
/** | ||
* The MultiAsset is invalid. | ||
*/ | ||
InvalidAsset: AugmentedError<ApiType>; | ||
/** | ||
* Invalid transfer destination. | ||
@@ -946,6 +1052,10 @@ */ | ||
/** | ||
* Not fungible asset. | ||
* Not supported MultiLocation | ||
*/ | ||
NotFungible: AugmentedError<ApiType>; | ||
NotSupportedMultiLocation: AugmentedError<ApiType>; | ||
/** | ||
* The number of assets to be sent is over the maximum. | ||
*/ | ||
TooManyAssetsBeingSent: AugmentedError<ApiType>; | ||
/** | ||
* The message's weight could not be determined. | ||
@@ -959,2 +1069,10 @@ */ | ||
/** | ||
* The transfering asset amount is zero. | ||
*/ | ||
ZeroAmount: AugmentedError<ApiType>; | ||
/** | ||
* The fee is zero. | ||
*/ | ||
ZeroFee: AugmentedError<ApiType>; | ||
/** | ||
* Generic error | ||
@@ -961,0 +1079,0 @@ */ |
@@ -5,14 +5,44 @@ import type { ApiTypes } from "@polkadot/api-base/types"; | ||
import type { AccountId20, H160, H256, Perbill, Percent, Permill } from "@polkadot/types/interfaces/runtime"; | ||
import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, MoonriverRuntimeAssetRegistrarMetadata, MoonriverRuntimeAssetType, MoonriverRuntimeCurrencyId, MoonriverRuntimeProxyType, NimbusPrimitivesNimbusCryptoPublic, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, ParachainStakingDelegationRequest, ParachainStakingDelegatorAdded, SpRuntimeDispatchError, XcmTransactorRemoteTransactInfoWithMaxWeight, XcmV1MultiAsset, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from "@polkadot/types/lookup"; | ||
import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, MoonriverRuntimeAssetConfigAssetRegistrarMetadata, MoonriverRuntimeProxyType, MoonriverRuntimeXcmConfigAssetType, NimbusPrimitivesNimbusCryptoPublic, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, ParachainStakingDelegationRequest, ParachainStakingDelegatorAdded, SpRuntimeDispatchError, XcmTransactorRemoteTransactInfoWithMaxWeight, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetMultiAssets, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from "@polkadot/types/lookup"; | ||
declare module "@polkadot/api-base/types/events" { | ||
interface AugmentedEvents<ApiType extends ApiTypes> { | ||
assetManager: { | ||
AssetRegistered: AugmentedEvent<ApiType, [ | ||
/** | ||
* Removed all information related to an assetId and destroyed asset | ||
*/ | ||
ForeignAssetDestroyed: AugmentedEvent<ApiType, [u128, MoonriverRuntimeXcmConfigAssetType]>; | ||
/** | ||
* New asset with the asset manager is registered | ||
*/ | ||
ForeignAssetRegistered: AugmentedEvent<ApiType, [ | ||
u128, | ||
MoonriverRuntimeAssetType, | ||
MoonriverRuntimeAssetRegistrarMetadata | ||
MoonriverRuntimeXcmConfigAssetType, | ||
MoonriverRuntimeAssetConfigAssetRegistrarMetadata | ||
]>; | ||
AssetTypeChanged: AugmentedEvent<ApiType, [u128, MoonriverRuntimeAssetType]>; | ||
UnitsPerSecondChanged: AugmentedEvent<ApiType, [MoonriverRuntimeAssetType, u128]>; | ||
/** | ||
* Removed all information related to an assetId | ||
*/ | ||
ForeignAssetRemoved: AugmentedEvent<ApiType, [u128, MoonriverRuntimeXcmConfigAssetType]>; | ||
/** | ||
* Changed the xcm type mapping for a given asset id | ||
*/ | ||
ForeignAssetTypeChanged: AugmentedEvent<ApiType, [u128, MoonriverRuntimeXcmConfigAssetType]>; | ||
/** | ||
* Removed all information related to an assetId and destroyed asset | ||
*/ | ||
LocalAssetDestroyed: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Local asset was created | ||
*/ | ||
LocalAssetRegistered: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20]>; | ||
/** | ||
* Supported asset type for fee payment removed | ||
*/ | ||
SupportedAssetRemoved: AugmentedEvent<ApiType, [MoonriverRuntimeXcmConfigAssetType]>; | ||
/** | ||
* Changed the amount of units we are charging per execution second for a | ||
* given asset | ||
*/ | ||
UnitsPerSecondChanged: AugmentedEvent<ApiType, [MoonriverRuntimeXcmConfigAssetType, u128]>; | ||
/** | ||
* Generic event | ||
@@ -269,3 +299,3 @@ */ | ||
* identity with it. Data is the relay account, native account and the | ||
* total amount of *rewards* that will be paid | ||
* total amount of _rewards_ that will be paid | ||
*/ | ||
@@ -512,2 +542,87 @@ NativeIdentityAssociated: AugmentedEvent<ApiType, [U8aFixed, AccountId20, u128]>; | ||
}; | ||
localAssets: { | ||
/** | ||
* An approval for account `delegate` was cancelled by `owner`. | ||
*/ | ||
ApprovalCancelled: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20]>; | ||
/** | ||
* (Additional) funds have been approved for transfer to a destination account. | ||
*/ | ||
ApprovedTransfer: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20, u128]>; | ||
/** | ||
* Some asset `asset_id` was frozen. | ||
*/ | ||
AssetFrozen: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* An asset has had its attributes changed by the `Force` origin. | ||
*/ | ||
AssetStatusChanged: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Some asset `asset_id` was thawed. | ||
*/ | ||
AssetThawed: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Some assets were destroyed. | ||
*/ | ||
Burned: AugmentedEvent<ApiType, [u128, AccountId20, u128]>; | ||
/** | ||
* Some asset class was created. | ||
*/ | ||
Created: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20]>; | ||
/** | ||
* An asset class was destroyed. | ||
*/ | ||
Destroyed: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Some asset class was force-created. | ||
*/ | ||
ForceCreated: AugmentedEvent<ApiType, [u128, AccountId20]>; | ||
/** | ||
* Some account `who` was frozen. | ||
*/ | ||
Frozen: AugmentedEvent<ApiType, [u128, AccountId20]>; | ||
/** | ||
* Some assets were issued. | ||
*/ | ||
Issued: AugmentedEvent<ApiType, [u128, AccountId20, u128]>; | ||
/** | ||
* Metadata has been cleared for an asset. | ||
*/ | ||
MetadataCleared: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* New metadata has been set for an asset. | ||
*/ | ||
MetadataSet: AugmentedEvent<ApiType, [u128, Bytes, Bytes, u8, bool]>; | ||
/** | ||
* The owner changed. | ||
*/ | ||
OwnerChanged: AugmentedEvent<ApiType, [u128, AccountId20]>; | ||
/** | ||
* The management team changed. | ||
*/ | ||
TeamChanged: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20, AccountId20]>; | ||
/** | ||
* Some account `who` was thawed. | ||
*/ | ||
Thawed: AugmentedEvent<ApiType, [u128, AccountId20]>; | ||
/** | ||
* Some assets were transferred. | ||
*/ | ||
Transferred: AugmentedEvent<ApiType, [u128, AccountId20, AccountId20, u128]>; | ||
/** | ||
* An `amount` was transferred in its entirety from `owner` to | ||
* `destination` by the approved `delegate`. | ||
*/ | ||
TransferredApproved: AugmentedEvent<ApiType, [ | ||
u128, | ||
AccountId20, | ||
AccountId20, | ||
AccountId20, | ||
u128 | ||
]>; | ||
/** | ||
* Generic event | ||
*/ | ||
[key: string]: AugmentedEvent<ApiType>; | ||
}; | ||
maintenanceMode: { | ||
@@ -519,2 +634,10 @@ /** | ||
/** | ||
* The call to resume on_idle XCM execution failed with inner error | ||
*/ | ||
FailedToResumeIdleXcmExecution: AugmentedEvent<ApiType, [SpRuntimeDispatchError]>; | ||
/** | ||
* The call to suspend on_idle XCM execution failed with inner error | ||
*/ | ||
FailedToSuspendIdleXcmExecution: AugmentedEvent<ApiType, [SpRuntimeDispatchError]>; | ||
/** | ||
* The chain returned to its normal operating state | ||
@@ -529,5 +652,17 @@ */ | ||
migrations: { | ||
/** | ||
* Migration completed | ||
*/ | ||
MigrationCompleted: AugmentedEvent<ApiType, [Bytes, u64]>; | ||
/** | ||
* Migration started | ||
*/ | ||
MigrationStarted: AugmentedEvent<ApiType, [Bytes]>; | ||
/** | ||
* Runtime upgrade completed | ||
*/ | ||
RuntimeUpgradeCompleted: AugmentedEvent<ApiType, [u64]>; | ||
/** | ||
* Runtime upgrade started | ||
*/ | ||
RuntimeUpgradeStarted: AugmentedEvent<ApiType, []>; | ||
@@ -541,16 +676,15 @@ /** | ||
/** | ||
* Set blocks per round [current_round, first_block, old, new, | ||
* new_per_round_inflation] | ||
* Set blocks per round | ||
*/ | ||
BlocksPerRoundSet: AugmentedEvent<ApiType, [u32, u32, u32, u32, Perbill, Perbill, Perbill]>; | ||
/** | ||
* Candidate, Amount, Round at which could be executed | ||
* Cancelled request to decrease candidate's bond. | ||
*/ | ||
CancelledCandidateBondLess: AugmentedEvent<ApiType, [AccountId20, u128, u32]>; | ||
/** | ||
* Candidate | ||
* Cancelled request to leave the set of candidates. | ||
*/ | ||
CancelledCandidateExit: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* Delegator, Cancelled Request | ||
* Cancelled request to change an existing delegation. | ||
*/ | ||
@@ -562,40 +696,39 @@ CancelledDelegationRequest: AugmentedEvent<ApiType, [ | ||
/** | ||
* Candidate | ||
* Candidate rejoins the set of collator candidates. | ||
*/ | ||
CandidateBackOnline: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* Candidate, Amount, New Bond | ||
* Сandidate has decreased a self bond. | ||
*/ | ||
CandidateBondedLess: AugmentedEvent<ApiType, [AccountId20, u128, u128]>; | ||
/** | ||
* Candidate, Amount, New Bond Total | ||
* Сandidate has increased a self bond. | ||
*/ | ||
CandidateBondedMore: AugmentedEvent<ApiType, [AccountId20, u128, u128]>; | ||
/** | ||
* Candidate, Amount To Decrease, Round at which request can be executed by caller | ||
* Сandidate requested to decrease a self bond. | ||
*/ | ||
CandidateBondLessRequested: AugmentedEvent<ApiType, [AccountId20, u128, u32]>; | ||
/** | ||
* Ex-Candidate, Amount Unlocked, New Total Amt Locked | ||
* Candidate has left the set of candidates. | ||
*/ | ||
CandidateLeft: AugmentedEvent<ApiType, [AccountId20, u128, u128]>; | ||
/** | ||
* Round At Which Exit Is Allowed, Candidate, Scheduled Exit | ||
* Сandidate has requested to leave the set of candidates. | ||
*/ | ||
CandidateScheduledExit: AugmentedEvent<ApiType, [u32, AccountId20, u32]>; | ||
/** | ||
* Candidate | ||
* Candidate temporarily leave the set of collator candidates without unbonding. | ||
*/ | ||
CandidateWentOffline: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* Round, Collator Account, Total Exposed Amount (includes all delegations) | ||
* Candidate selected for collators. Total Exposed Amount includes all delegations. | ||
*/ | ||
CollatorChosen: AugmentedEvent<ApiType, [u32, AccountId20, u128]>; | ||
/** | ||
* Set collator commission to this value [old, new] | ||
* Set collator commission to this value. | ||
*/ | ||
CollatorCommissionSet: AugmentedEvent<ApiType, [Perbill, Perbill]>; | ||
/** | ||
* Delegator, Amount Locked, Candidate, Delegator Position with New Total | ||
* Counted if in Top | ||
* New delegation (increase of the existing one). | ||
*/ | ||
@@ -610,3 +743,3 @@ Delegation: AugmentedEvent<ApiType, [ | ||
/** | ||
* Delegator, Candidate, Amount to be decreased, Round at which can be executed | ||
* Delegator requested to decrease a bond for the collator candidate. | ||
*/ | ||
@@ -616,27 +749,27 @@ DelegationDecreaseScheduled: AugmentedEvent<ApiType, [AccountId20, AccountId20, u128, u32]>; | ||
/** | ||
* Delegator, Candidate, Amount Unstaked | ||
* Delegation kicked. | ||
*/ | ||
DelegationKicked: AugmentedEvent<ApiType, [AccountId20, AccountId20, u128]>; | ||
/** | ||
* Round, Delegator, Candidate, Scheduled Exit | ||
* Delegator requested to revoke delegation. | ||
*/ | ||
DelegationRevocationScheduled: AugmentedEvent<ApiType, [u32, AccountId20, AccountId20, u32]>; | ||
/** | ||
* Delegator, Candidate, Amount Unstaked | ||
* Delegation revoked. | ||
*/ | ||
DelegationRevoked: AugmentedEvent<ApiType, [AccountId20, AccountId20, u128]>; | ||
/** | ||
* Delegator | ||
* Cancelled a pending request to exit the set of delegators. | ||
*/ | ||
DelegatorExitCancelled: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* Round, Delegator, Scheduled Exit | ||
* Delegator requested to leave the set of delegators. | ||
*/ | ||
DelegatorExitScheduled: AugmentedEvent<ApiType, [u32, AccountId20, u32]>; | ||
/** | ||
* Delegator, Amount Unstaked | ||
* Delegator has left the set of delegators. | ||
*/ | ||
DelegatorLeft: AugmentedEvent<ApiType, [AccountId20, u128]>; | ||
/** | ||
* Delegator, Candidate, Amount Unstaked, New Total Amt Staked for Candidate | ||
* Delegation from candidate state has been remove. | ||
*/ | ||
@@ -650,31 +783,31 @@ DelegatorLeftCandidate: AugmentedEvent<ApiType, [AccountId20, AccountId20, u128, u128]>; | ||
/** | ||
* Account, Amount Locked, New Total Amt Locked | ||
* Account joined the set of collator candidates. | ||
*/ | ||
JoinedCollatorCandidates: AugmentedEvent<ApiType, [AccountId20, u128, u128]>; | ||
/** | ||
* Starting Block, Round, Number of Collators Selected, Total Balance | ||
* Started new round. | ||
*/ | ||
NewRound: AugmentedEvent<ApiType, [u32, u32, u32, u128]>; | ||
/** | ||
* Account (re)set for parachain bond treasury [old, new] | ||
* Account (re)set for parachain bond treasury. | ||
*/ | ||
ParachainBondAccountSet: AugmentedEvent<ApiType, [AccountId20, AccountId20]>; | ||
/** | ||
* Percent of inflation reserved for parachain bond (re)set [old, new] | ||
* Percent of inflation reserved for parachain bond (re)set. | ||
*/ | ||
ParachainBondReservePercentSet: AugmentedEvent<ApiType, [Percent, Percent]>; | ||
/** | ||
* Transferred to account which holds funds reserved for parachain bond | ||
* Transferred to account which holds funds reserved for parachain bond. | ||
*/ | ||
ReservedForParachainBond: AugmentedEvent<ApiType, [AccountId20, u128]>; | ||
/** | ||
* Paid the account (delegator or collator) the balance as liquid rewards | ||
* Paid the account (delegator or collator) the balance as liquid rewards. | ||
*/ | ||
Rewarded: AugmentedEvent<ApiType, [AccountId20, u128]>; | ||
/** | ||
* Staking expectations set | ||
* Staking expectations set. | ||
*/ | ||
StakeExpectationsSet: AugmentedEvent<ApiType, [u128, u128, u128]>; | ||
/** | ||
* Set total selected candidates to this value [old, new] | ||
* Set total selected candidates to this value. | ||
*/ | ||
@@ -881,7 +1014,15 @@ TotalSelectedSet: AugmentedEvent<ApiType, [u32, u32]>; | ||
/** | ||
* Canceled some task. [when, index] | ||
* The call for the provided hash was not found so the task has been aborted. | ||
*/ | ||
CallLookupFailed: AugmentedEvent<ApiType, [ | ||
ITuple<[u32, u32]>, | ||
Option<Bytes>, | ||
FrameSupportScheduleLookupError | ||
]>; | ||
/** | ||
* Canceled some task. | ||
*/ | ||
Canceled: AugmentedEvent<ApiType, [u32, u32]>; | ||
/** | ||
* Dispatched some task. [task, id, result] | ||
* Dispatched some task. | ||
*/ | ||
@@ -894,3 +1035,3 @@ Dispatched: AugmentedEvent<ApiType, [ | ||
/** | ||
* Scheduled some task. [when, index] | ||
* Scheduled some task. | ||
*/ | ||
@@ -909,3 +1050,3 @@ Scheduled: AugmentedEvent<ApiType, [u32, u32]>; | ||
/** | ||
* An extrinsic failed. [error, info] | ||
* An extrinsic failed. | ||
*/ | ||
@@ -917,15 +1058,15 @@ ExtrinsicFailed: AugmentedEvent<ApiType, [ | ||
/** | ||
* An extrinsic completed successfully. [info] | ||
* An extrinsic completed successfully. | ||
*/ | ||
ExtrinsicSuccess: AugmentedEvent<ApiType, [FrameSupportWeightsDispatchInfo]>; | ||
/** | ||
* An [account] was reaped. | ||
* An account was reaped. | ||
*/ | ||
KilledAccount: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* A new [account] was created. | ||
* A new account was created. | ||
*/ | ||
NewAccount: AugmentedEvent<ApiType, [AccountId20]>; | ||
/** | ||
* On on-chain remark happened. [origin, remark_hash] | ||
* On on-chain remark happened. | ||
*/ | ||
@@ -978,28 +1119,27 @@ Remarked: AugmentedEvent<ApiType, [AccountId20, H256]>; | ||
/** | ||
* Some funds have been allocated. [proposal_index, award, beneficiary] | ||
* Some funds have been allocated. | ||
*/ | ||
Awarded: AugmentedEvent<ApiType, [u32, u128, AccountId20]>; | ||
/** | ||
* Some of our funds have been burnt. [burn] | ||
* Some of our funds have been burnt. | ||
*/ | ||
Burnt: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* Some funds have been deposited. [deposit] | ||
* Some funds have been deposited. | ||
*/ | ||
Deposit: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* New proposal. [proposal_index] | ||
* New proposal. | ||
*/ | ||
Proposed: AugmentedEvent<ApiType, [u32]>; | ||
/** | ||
* A proposal was rejected; funds were slashed. [proposal_index, slashed] | ||
* A proposal was rejected; funds were slashed. | ||
*/ | ||
Rejected: AugmentedEvent<ApiType, [u32, u128]>; | ||
/** | ||
* Spending has finished; this is the amount that rolls over until next | ||
* spend. [budget_remaining] | ||
* Spending has finished; this is the amount that rolls over until next spend. | ||
*/ | ||
Rollover: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* We have ended a spend period and will now allocate funds. [budget_remaining] | ||
* We have ended a spend period and will now allocate funds. | ||
*/ | ||
@@ -1023,3 +1163,3 @@ Spending: AugmentedEvent<ApiType, [u128]>; | ||
/** | ||
* A call was dispatched. [result] | ||
* A call was dispatched. | ||
*/ | ||
@@ -1050,2 +1190,10 @@ DispatchedAs: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>; | ||
/** | ||
* An XCM exceeded the individual message weight budget. | ||
*/ | ||
OverweightEnqueued: AugmentedEvent<ApiType, [u32, u32, u64, u64]>; | ||
/** | ||
* An XCM from the overweight queue was executed with the given actual weight used. | ||
*/ | ||
OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>; | ||
/** | ||
* Some XCM was executed ok. | ||
@@ -1068,6 +1216,22 @@ */ | ||
xcmTransactor: { | ||
RegisterdDerivative: AugmentedEvent<ApiType, [AccountId20, u16]>; | ||
DeRegisteredDerivative: AugmentedEvent<ApiType, [u16]>; | ||
/** | ||
* Registered a derivative index for an account id. | ||
*/ | ||
RegisteredDerivative: AugmentedEvent<ApiType, [AccountId20, u16]>; | ||
/** | ||
* Transacted the inner call through a derivative account in a destination chain. | ||
*/ | ||
TransactedDerivative: AugmentedEvent<ApiType, [AccountId20, XcmV1MultiLocation, Bytes, u16]>; | ||
/** | ||
* Transacted the call through the sovereign account in a destination chain. | ||
*/ | ||
TransactedSovereign: AugmentedEvent<ApiType, [AccountId20, XcmV1MultiLocation, Bytes]>; | ||
/** | ||
* Transact failed | ||
*/ | ||
TransactFailed: AugmentedEvent<ApiType, [XcmV2TraitsError]>; | ||
/** | ||
* Changed the transact info of a location | ||
*/ | ||
TransactInfoChanged: AugmentedEvent<ApiType, [ | ||
@@ -1078,2 +1242,6 @@ XcmV1MultiLocation, | ||
/** | ||
* Removed the transact info of a location | ||
*/ | ||
TransactInfoRemoved: AugmentedEvent<ApiType, [XcmV1MultiLocation]>; | ||
/** | ||
* Generic event | ||
@@ -1085,15 +1253,7 @@ */ | ||
/** | ||
* Transferred. [sender, currency_id, amount, dest] | ||
* Transferred `MultiAsset` with fee. | ||
*/ | ||
Transferred: AugmentedEvent<ApiType, [ | ||
TransferredMultiAssets: AugmentedEvent<ApiType, [ | ||
AccountId20, | ||
MoonriverRuntimeCurrencyId, | ||
u128, | ||
XcmV1MultiLocation | ||
]>; | ||
/** | ||
* Transferred `MultiAsset`. [sender, asset, dest] | ||
*/ | ||
TransferredMultiAsset: AugmentedEvent<ApiType, [ | ||
AccountId20, | ||
XcmV1MultiassetMultiAssets, | ||
XcmV1MultiAsset, | ||
@@ -1103,21 +1263,2 @@ XcmV1MultiLocation | ||
/** | ||
* Transferred `MultiAsset` with fee. [sender, asset, fee, dest] | ||
*/ | ||
TransferredMultiAssetWithFee: AugmentedEvent<ApiType, [ | ||
AccountId20, | ||
XcmV1MultiAsset, | ||
XcmV1MultiAsset, | ||
XcmV1MultiLocation | ||
]>; | ||
/** | ||
* Transferred with fee. [sender, currency_id, amount, fee, dest] | ||
*/ | ||
TransferredWithFee: AugmentedEvent<ApiType, [ | ||
AccountId20, | ||
MoonriverRuntimeCurrencyId, | ||
u128, | ||
u128, | ||
XcmV1MultiLocation | ||
]>; | ||
/** | ||
* Generic event | ||
@@ -1124,0 +1265,0 @@ */ |
@@ -6,3 +6,3 @@ import type { ApiTypes } from "@polkadot/api-base/types"; | ||
import type { AccountId20, Call, H160, H256, Perbill, Percent, Permill } from "@polkadot/types/interfaces/runtime"; | ||
import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundStatus, CumulusPalletXcmpQueueOutboundStatus, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, MoonriverRuntimeAssetType, NimbusPrimitivesNimbusCryptoPublic, PalletAssetsApproval, PalletAssetsAssetBalance, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorMappingRegistrationInfo, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletCollectiveVotes, PalletCrowdloanRewardsRewardInfo, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerReleases, PalletSchedulerScheduledV2, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, ParachainStakingBond, ParachainStakingCandidateMetadata, ParachainStakingCollator2, ParachainStakingCollatorCandidate, ParachainStakingCollatorSnapshot, ParachainStakingDelayedPayout, ParachainStakingDelegations, ParachainStakingDelegator, ParachainStakingExitQ, ParachainStakingInflationInflationInfo, ParachainStakingNominator2, ParachainStakingParachainBondConfig, ParachainStakingRoundInfo, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpRuntimeDigest, XcmTransactorRemoteTransactInfoWithMaxWeight, XcmV1MultiLocation, XcmVersionedMultiLocation } from "@polkadot/types/lookup"; | ||
import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, MoonriverRuntimeXcmConfigAssetType, NimbusPrimitivesNimbusCryptoPublic, PalletAssetManagerAssetInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorMappingRegistrationInfo, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletCollectiveVotes, PalletCrowdloanRewardsRewardInfo, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, ParachainStakingBond, ParachainStakingCandidateMetadata, ParachainStakingCollator2, ParachainStakingCollatorCandidate, ParachainStakingCollatorSnapshot, ParachainStakingDelayedPayout, ParachainStakingDelegations, ParachainStakingDelegator, ParachainStakingInflationInflationInfo, ParachainStakingNominator2, ParachainStakingParachainBondConfig, ParachainStakingRoundInfo, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpRuntimeDigest, SpTrieStorageProof, XcmTransactorRemoteTransactInfoWithMaxWeight, XcmV1MultiLocation, XcmVersionedMultiLocation } from "@polkadot/types/lookup"; | ||
import type { Observable } from "@polkadot/types/types"; | ||
@@ -17,3 +17,3 @@ declare module "@polkadot/api-base/types/storage" { | ||
*/ | ||
assetIdType: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<MoonriverRuntimeAssetType>>, [ | ||
assetIdType: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<MoonriverRuntimeXcmConfigAssetType>>, [ | ||
u128 | ||
@@ -26,7 +26,7 @@ ]> & QueryableStorageEntry<ApiType, [u128]>; | ||
*/ | ||
assetTypeId: AugmentedQuery<ApiType, (arg: MoonriverRuntimeAssetType | { | ||
assetTypeId: AugmentedQuery<ApiType, (arg: MoonriverRuntimeXcmConfigAssetType | { | ||
Xcm: any; | ||
} | string | Uint8Array) => Observable<Option<u128>>, [ | ||
MoonriverRuntimeAssetType | ||
]> & QueryableStorageEntry<ApiType, [MoonriverRuntimeAssetType]>; | ||
MoonriverRuntimeXcmConfigAssetType | ||
]> & QueryableStorageEntry<ApiType, [MoonriverRuntimeXcmConfigAssetType]>; | ||
/** | ||
@@ -37,8 +37,25 @@ * Stores the units per second for local execution for a AssetType. This | ||
*/ | ||
assetTypeUnitsPerSecond: AugmentedQuery<ApiType, (arg: MoonriverRuntimeAssetType | { | ||
assetTypeUnitsPerSecond: AugmentedQuery<ApiType, (arg: MoonriverRuntimeXcmConfigAssetType | { | ||
Xcm: any; | ||
} | string | Uint8Array) => Observable<Option<u128>>, [ | ||
MoonriverRuntimeAssetType | ||
]> & QueryableStorageEntry<ApiType, [MoonriverRuntimeAssetType]>; | ||
MoonriverRuntimeXcmConfigAssetType | ||
]> & QueryableStorageEntry<ApiType, [MoonriverRuntimeXcmConfigAssetType]>; | ||
/** | ||
* Stores the counter of the number of local assets that have been created | ||
* so far This value can be used to salt the creation of an assetId, e.g., | ||
* by hashing it. This is particularly useful for cases like moonbeam | ||
* where letting users choose their assetId would result in collision in | ||
* the evm side. | ||
*/ | ||
localAssetCounter: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Local asset deposits, a mapping from assetId to a struct holding the | ||
* creator (from which the deposit was reserved) and the deposit amount | ||
*/ | ||
localAssetDeposit: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<PalletAssetManagerAssetInfo>>, [ | ||
u128 | ||
]> & QueryableStorageEntry<ApiType, [u128]>; | ||
supportedFeePaymentAssets: AugmentedQuery<ApiType, () => Observable<Vec<MoonriverRuntimeXcmConfigAssetType>>, [ | ||
]> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Generic query | ||
@@ -50,5 +67,5 @@ */ | ||
/** | ||
* The number of units of assets held by any given account. | ||
* The holdings of a specific account for a specific asset. | ||
*/ | ||
account: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<PalletAssetsAssetBalance>, [ | ||
account: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<Option<PalletAssetsAssetAccount>>, [ | ||
u128, | ||
@@ -120,5 +137,27 @@ AccountId20 | ||
/** | ||
* The balance of an account. | ||
* The Balances pallet example of storing the balance of an account. | ||
* | ||
* NOTE: This is only used in the case that this pallet is used to store balances. | ||
* # Example | ||
* | ||
* ```nocompile | ||
* impl pallet_balances::Config for Runtime { | ||
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>> | ||
* } | ||
* ``` | ||
* | ||
* 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. | ||
*/ | ||
@@ -261,12 +300,2 @@ account: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [ | ||
/** | ||
* Accounts for which there are locks in action which may be removed at | ||
* some point in the future. The value is the block number at which the | ||
* lock expires and may be removed. | ||
* | ||
* TWOX-NOTE: OK ― `AccountId` is a secure hash. | ||
*/ | ||
locks: AugmentedQuery<ApiType, (arg: AccountId20 | string | Uint8Array) => Observable<Option<u32>>, [ | ||
AccountId20 | ||
]> & QueryableStorageEntry<ApiType, [AccountId20]>; | ||
/** | ||
* The lowest referendum index representing an unbaked referendum. Equal | ||
@@ -455,2 +484,38 @@ * to `ReferendumCount` if there isn't a unbaked referendum. | ||
}; | ||
localAssets: { | ||
/** | ||
* The holdings of a specific account for a specific asset. | ||
*/ | ||
account: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array) => Observable<Option<PalletAssetsAssetAccount>>, [ | ||
u128, | ||
AccountId20 | ||
]> & QueryableStorageEntry<ApiType, [u128, AccountId20]>; | ||
/** | ||
* Approved balance transfers. First balance is the amount approved for | ||
* transfer. Second is the amount of `T::Currency` reserved for storing | ||
* this. First key is the asset ID, second key is the owner and third key | ||
* is the delegate. | ||
*/ | ||
approvals: AugmentedQuery<ApiType, (arg1: u128 | AnyNumber | Uint8Array, arg2: AccountId20 | string | Uint8Array, arg3: AccountId20 | string | Uint8Array) => Observable<Option<PalletAssetsApproval>>, [ | ||
u128, | ||
AccountId20, | ||
AccountId20 | ||
]> & QueryableStorageEntry<ApiType, [u128, AccountId20, AccountId20]>; | ||
/** | ||
* Details of an asset. | ||
*/ | ||
asset: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<Option<PalletAssetsAssetDetails>>, [ | ||
u128 | ||
]> & QueryableStorageEntry<ApiType, [u128]>; | ||
/** | ||
* Metadata of an asset. | ||
*/ | ||
metadata: AugmentedQuery<ApiType, (arg: u128 | AnyNumber | Uint8Array) => Observable<PalletAssetsAssetMetadata>, [ | ||
u128 | ||
]> & QueryableStorageEntry<ApiType, [u128]>; | ||
/** | ||
* Generic query | ||
*/ | ||
[key: string]: QueryableStorageEntry<ApiType>; | ||
}; | ||
maintenanceMode: { | ||
@@ -553,7 +618,2 @@ /** | ||
/** | ||
* DEPRECATED, to be removed in future runtime upgrade but necessary for | ||
* runtime migration A queue of collators and nominators awaiting exit | ||
*/ | ||
exitQueue2: AugmentedQuery<ApiType, () => Observable<ParachainStakingExitQ>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Inflation configuration | ||
@@ -625,2 +685,8 @@ */ | ||
/** | ||
* 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<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Were the validation data set to notify the relay chain? | ||
@@ -684,4 +750,7 @@ */ | ||
* As soon as the relay chain gives us the go-ahead signal, we will | ||
* overwrite the `:code` which will result the next block process with the | ||
* new validation code. This concludes the upgrade process. | ||
* 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 | ||
*/ | ||
@@ -696,2 +765,12 @@ pendingValidationCode: AugmentedQuery<ApiType, () => Observable<Bytes>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* 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<ApiType, () => Observable<Option<SpTrieStorageProof>>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* The snapshot of some state related to messaging relevant to the current | ||
@@ -860,3 +939,3 @@ * parachain as per the relay parent. | ||
*/ | ||
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduledV2>>>, [ | ||
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduledV3>>>, [ | ||
u32 | ||
@@ -871,8 +950,2 @@ ]> & QueryableStorageEntry<ApiType, [u32]>; | ||
/** | ||
* Storage version of the pallet. | ||
* | ||
* New networks start with last version. | ||
*/ | ||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletSchedulerReleases>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Generic query | ||
@@ -1067,7 +1140,3 @@ */ | ||
*/ | ||
inboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[ | ||
u32, | ||
CumulusPalletXcmpQueueInboundStatus, | ||
Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>> | ||
]>>>, [ | ||
inboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletXcmpQueueInboundChannelDetails>>, [ | ||
]> & QueryableStorageEntry<ApiType, []>; | ||
@@ -1090,5 +1159,19 @@ /** | ||
*/ | ||
outboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, CumulusPalletXcmpQueueOutboundStatus, bool, u16, u16]>>>, [ | ||
outboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletXcmpQueueOutboundChannelDetails>>, [ | ||
]> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* 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<Option<ITuple<[u32, u32, Bytes]>>>, [ | ||
u64 | ||
]> & QueryableStorageEntry<ApiType, [u64]>; | ||
/** | ||
* The number of overweight messages ever recorded in `Overweight`. Also | ||
* doubles as the next available free overweight index. | ||
*/ | ||
overweightCount: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* The configuration which controls the dynamics of the outbound queue. | ||
@@ -1099,2 +1182,6 @@ */ | ||
/** | ||
* Whether or not the XCMP queue is suspended from executing incoming XCMs or not. | ||
*/ | ||
queueSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Any signal messages waiting to be sent. | ||
@@ -1101,0 +1188,0 @@ */ |
@@ -12,2 +12,3 @@ import type { AugmentedRpc } from "@polkadot/rpc-core/types"; | ||
import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from "@polkadot/types/interfaces/contracts"; | ||
import type { BlockStats } from "@polkadot/types/interfaces/dev"; | ||
import type { CreatedBlock } from "@polkadot/types/interfaces/engine"; | ||
@@ -22,3 +23,3 @@ import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from "@polkadot/types/interfaces/eth"; | ||
import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from "@polkadot/types/interfaces/runtime"; | ||
import type { ReadProof, RuntimeVersion, TraceBlockResponse } from "@polkadot/types/interfaces/state"; | ||
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"; | ||
@@ -185,2 +186,8 @@ import type { IExtrinsic, Observable } from "@polkadot/types/types"; | ||
}; | ||
dev: { | ||
/** | ||
* Reexecute the specified `block_hash` and gather statistics while doing so | ||
*/ | ||
getBlockStats: AugmentedRpc<(at: Hash | string | Uint8Array) => Observable<Option<BlockStats>>>; | ||
}; | ||
engine: { | ||
@@ -551,2 +558,6 @@ /** | ||
traceBlock: AugmentedRpc<(block: Hash | string | Uint8Array, targets: Option<Text> | null | object | string | Uint8Array, storageKeys: Option<Text> | null | object | string | Uint8Array, methods: Option<Text> | null | object | string | Uint8Array) => Observable<TraceBlockResponse>>; | ||
/** | ||
* Check current migration state | ||
*/ | ||
trieMigrationStatus: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MigrationStatusResult>>; | ||
}; | ||
@@ -553,0 +564,0 @@ syncstate: { |
@@ -22,2 +22,3 @@ import type { Data, StorageKey } from "@polkadot/types"; | ||
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"; | ||
@@ -51,5 +52,5 @@ import type { CreatedBlock, ImportedAux } from "@polkadot/types/interfaces/engine"; | ||
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, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from "@polkadot/types/interfaces/state"; | ||
import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, MigrationStatusResult, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, 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, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, 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, UnknownTransaction, WeightPerClass } from "@polkadot/types/interfaces/system"; | ||
import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorModuleU8a, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, 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, 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"; | ||
@@ -153,2 +154,3 @@ import type { Multiplier } from "@polkadot/types/interfaces/txpayment"; | ||
BlockNumberOf: BlockNumberOf; | ||
BlockStats: BlockStats; | ||
BlockTrace: BlockTrace; | ||
@@ -307,2 +309,3 @@ BlockTraceEvent: BlockTraceEvent; | ||
DispatchErrorModule: DispatchErrorModule; | ||
DispatchErrorModuleU8a: DispatchErrorModuleU8a; | ||
DispatchErrorTo198: DispatchErrorTo198; | ||
@@ -594,2 +597,3 @@ DispatchFeePayment: DispatchFeePayment; | ||
MetadataV9: MetadataV9; | ||
MigrationStatusResult: MigrationStatusResult; | ||
MmrLeafProof: MmrLeafProof; | ||
@@ -596,0 +600,0 @@ MmrRootHash: MmrRootHash; |
{ | ||
"name": "@moonbeam-network/api-augment", | ||
"version": "0.0.1-beta.4", | ||
"version": "0.0.1-beta.5", | ||
"private": false, | ||
@@ -68,9 +68,9 @@ "description": "Moonbeam types augment for @polkadot/api", | ||
"devDependencies": { | ||
"@polkadot/api": "^7.12.1", | ||
"@polkadot/typegen": "^7.9.1", | ||
"prettier": "^2.5.1", | ||
"prettier-plugin-jsdoc": "^0.3.30", | ||
"@polkadot/api": "^8.3.1", | ||
"@polkadot/typegen": "^8.3.1", | ||
"prettier": "^2.6.2", | ||
"prettier-plugin-jsdoc": "^0.3.38", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.5.0", | ||
"typescript": "^4.5.5" | ||
"ts-node": "^10.7.0", | ||
"typescript": "^4.6.4" | ||
}, | ||
@@ -77,0 +77,0 @@ "type": "module", |
@@ -26,1 +26,31 @@ ## Description | ||
- <a href="https://polkadot.js.org/docs/api/start/typescript" target="_blank">@polkadot/api</a> - TypeScript interfaces | ||
## Publish | ||
Update package version. | ||
```bash | ||
npm --no-git-tag-version 0.1500.0 | ||
``` | ||
Generate new types. | ||
```bash | ||
npm run generate | ||
``` | ||
`The version change and new generated types should be merged to master.` | ||
Build the package. | ||
```bash | ||
npm run build | ||
``` | ||
`This will build the package and copy necessary files to the build folder.` | ||
```bash | ||
npm run publish | ||
``` | ||
`This will publish content of the build folder.` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2827469
113
72906
56