difftreelog
test upgrade evm.call arguments
in: master
7 files changed
tests/src/eth/payable.test.tsdiffbeforeafterboth--- a/tests/src/eth/payable.test.ts
+++ b/tests/src/eth/payable.test.ts
@@ -34,6 +34,8 @@
GAS_ARGS.gas,
await web3.eth.getGasPrice(),
null,
+ null,
+ [],
);
const events = await submitTransactionAsync(alice, tx);
const result = getGenericResult(events);
tests/src/eth/util/helpers.tsdiffbeforeafterboth--- a/tests/src/eth/util/helpers.ts
+++ b/tests/src/eth/util/helpers.ts
@@ -249,6 +249,8 @@
GAS_ARGS.gas,
await web3.eth.getGasPrice(),
null,
+ null,
+ [],
);
const events = await submitTransactionAsync(from, tx);
expect(events.some(({event: {section, method}}) => section == 'evm' && method == 'Executed')).to.be.true;
tests/src/interfaces/augment-api-consts.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-consts.ts
+++ b/tests/src/interfaces/augment-api-consts.ts
@@ -2,7 +2,7 @@
/* eslint-disable */
import type { ApiTypes } from '@polkadot/api/types';
-import type { Vec, u128, u16, u32, u64, u8 } from '@polkadot/types';
+import type { Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types';
import type { Permill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
import type { Codec } from '@polkadot/types/types';
@@ -36,6 +36,9 @@
[key: string]: Codec;
};
inflation: {
+ /**
+ * Number of blocks that pass between treasury balance updates due to inflation
+ **/
inflationBlockInterval: u32 & AugmentedConst<ApiType>;
/**
* Generic const
@@ -146,6 +149,10 @@
**/
proposalBond: Permill & 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.
**/
proposalBondMinimum: u128 & AugmentedConst<ApiType>;
tests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { ApiTypes } from '@polkadot/api/types';56declare module '@polkadot/api/types/errors' {7 export interface AugmentedErrors<ApiType> {8 balances: {9 /**10 * Beneficiary account must pre-exist11 **/12 DeadAccount: AugmentedError<ApiType>;13 /**14 * Value too low to create account due to existential deposit15 **/16 ExistentialDeposit: AugmentedError<ApiType>;17 /**18 * A vesting schedule already exists for this account19 **/20 ExistingVestingSchedule: AugmentedError<ApiType>;21 /**22 * Balance too low to send value23 **/24 InsufficientBalance: AugmentedError<ApiType>;25 /**26 * Transfer/payment would kill account27 **/28 KeepAlive: AugmentedError<ApiType>;29 /**30 * Account liquidity restrictions prevent withdrawal31 **/32 LiquidityRestrictions: AugmentedError<ApiType>;33 /**34 * Number of named reserves exceed MaxReserves35 **/36 TooManyReserves: AugmentedError<ApiType>;37 /**38 * Vesting balance too high to send value39 **/40 VestingBalance: AugmentedError<ApiType>;41 /**42 * Generic error43 **/44 [key: string]: AugmentedError<ApiType>;45 };46 common: {47 /**48 * Account token limit exceeded per collection49 **/50 AccountTokenLimitExceeded: AugmentedError<ApiType>;51 /**52 * Can't transfer tokens to ethereum zero address53 **/54 AddressIsZero: AugmentedError<ApiType>;55 /**56 * Address is not in allow list.57 **/58 AddressNotInAllowlist: AugmentedError<ApiType>;59 /**60 * Tried to approve more than owned61 **/62 CantApproveMoreThanOwned: AugmentedError<ApiType>;63 /**64 * Exceeded max admin amount65 **/66 CollectionAdminAmountExceeded: AugmentedError<ApiType>;67 /**68 * Collection description can not be longer than 255 char.69 **/70 CollectionDescriptionLimitExceeded: AugmentedError<ApiType>;71 /**72 * Collection name can not be longer than 63 char.73 **/74 CollectionNameLimitExceeded: AugmentedError<ApiType>;75 /**76 * This collection does not exist.77 **/78 CollectionNotFound: AugmentedError<ApiType>;79 /**80 * Collection token limit exceeded81 **/82 CollectionTokenLimitExceeded: AugmentedError<ApiType>;83 /**84 * Token prefix can not be longer than 15 char.85 **/86 CollectionTokenPrefixLimitExceeded: AugmentedError<ApiType>;87 /**88 * Metadata flag frozen89 **/90 MetadataFlagFrozen: AugmentedError<ApiType>;91 /**92 * Sender parameter and item owner must be equal.93 **/94 MustBeTokenOwner: AugmentedError<ApiType>;95 /**96 * No permission to perform action97 **/98 NoPermission: AugmentedError<ApiType>;99 /**100 * Collection is not in mint mode.101 **/102 PublicMintingNotAllowed: AugmentedError<ApiType>;103 /**104 * Item not exists.105 **/106 TokenNotFound: AugmentedError<ApiType>;107 /**108 * Requested value more than approved.109 **/110 TokenValueNotEnough: AugmentedError<ApiType>;111 /**112 * Item balance not enough.113 **/114 TokenValueTooLow: AugmentedError<ApiType>;115 /**116 * variable_data exceeded data limit.117 **/118 TokenVariableDataLimitExceeded: AugmentedError<ApiType>;119 /**120 * Total collections bound exceeded.121 **/122 TotalCollectionsLimitExceeded: AugmentedError<ApiType>;123 /**124 * Collection settings not allowing items transferring125 **/126 TransferNotAllowed: AugmentedError<ApiType>;127 /**128 * Target collection doesn't supports this operation129 **/130 UnsupportedOperation: AugmentedError<ApiType>;131 /**132 * Generic error133 **/134 [key: string]: AugmentedError<ApiType>;135 };136 cumulusXcm: {137 /**138 * Generic error139 **/140 [key: string]: AugmentedError<ApiType>;141 };142 dmpQueue: {143 /**144 * The amount of weight given is possibly not enough for executing the message.145 **/146 OverLimit: AugmentedError<ApiType>;147 /**148 * The message index given is unknown.149 **/150 Unknown: AugmentedError<ApiType>;151 /**152 * Generic error153 **/154 [key: string]: AugmentedError<ApiType>;155 };156 ethereum: {157 /**158 * Signature is invalid.159 **/160 InvalidSignature: AugmentedError<ApiType>;161 /**162 * Pre-log is present, therefore transact is not allowed.163 **/164 PreLogExists: AugmentedError<ApiType>;165 /**166 * Generic error167 **/168 [key: string]: AugmentedError<ApiType>;169 };170 evm: {171 /**172 * Not enough balance to perform action173 **/174 BalanceLow: AugmentedError<ApiType>;175 /**176 * Calculating total fee overflowed177 **/178 FeeOverflow: AugmentedError<ApiType>;179 /**180 * Gas price is too low.181 **/182 GasPriceTooLow: AugmentedError<ApiType>;183 /**184 * Nonce is invalid185 **/186 InvalidNonce: AugmentedError<ApiType>;187 /**188 * Calculating total payment overflowed189 **/190 PaymentOverflow: AugmentedError<ApiType>;191 /**192 * Withdraw fee failed193 **/194 WithdrawFailed: AugmentedError<ApiType>;195 /**196 * Generic error197 **/198 [key: string]: AugmentedError<ApiType>;199 };200 evmCoderSubstrate: {201 OutOfFund: AugmentedError<ApiType>;202 OutOfGas: AugmentedError<ApiType>;203 /**204 * Generic error205 **/206 [key: string]: AugmentedError<ApiType>;207 };208 evmContractHelpers: {209 /**210 * This method is only executable by owner211 **/212 NoPermission: AugmentedError<ApiType>;213 /**214 * Generic error215 **/216 [key: string]: AugmentedError<ApiType>;217 };218 evmMigration: {219 AccountIsNotMigrating: AugmentedError<ApiType>;220 AccountNotEmpty: AugmentedError<ApiType>;221 /**222 * Generic error223 **/224 [key: string]: AugmentedError<ApiType>;225 };226 fungible: {227 /**228 * Tried to set data for fungible item229 **/230 FungibleItemsHaveData: AugmentedError<ApiType>;231 /**232 * Not default id passed as TokenId argument233 **/234 FungibleItemsHaveNoId: AugmentedError<ApiType>;235 /**236 * Not Fungible item data used to mint in Fungible collection.237 **/238 NotFungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;239 /**240 * Generic error241 **/242 [key: string]: AugmentedError<ApiType>;243 };244 nonfungible: {245 /**246 * Used amount > 1 with NFT247 **/248 NonfungibleItemsHaveNoAmount: AugmentedError<ApiType>;249 /**250 * Not Nonfungible item data used to mint in Nonfungible collection.251 **/252 NotNonfungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;253 /**254 * Generic error255 **/256 [key: string]: AugmentedError<ApiType>;257 };258 parachainSystem: {259 /**260 * The inherent which supplies the host configuration did not run this block261 **/262 HostConfigurationNotAvailable: AugmentedError<ApiType>;263 /**264 * No code upgrade has been authorized.265 **/266 NothingAuthorized: AugmentedError<ApiType>;267 /**268 * No validation function upgrade is currently scheduled.269 **/270 NotScheduled: AugmentedError<ApiType>;271 /**272 * Attempt to upgrade validation function while existing upgrade pending273 **/274 OverlappingUpgrades: AugmentedError<ApiType>;275 /**276 * Polkadot currently prohibits this parachain from upgrading its validation function277 **/278 ProhibitedByPolkadot: AugmentedError<ApiType>;279 /**280 * The supplied validation function has compiled into a blob larger than Polkadot is281 * willing to run282 **/283 TooBig: AugmentedError<ApiType>;284 /**285 * The given code upgrade has not been authorized.286 **/287 Unauthorized: AugmentedError<ApiType>;288 /**289 * The inherent which supplies the validation data did not run this block290 **/291 ValidationDataNotAvailable: AugmentedError<ApiType>;292 /**293 * Generic error294 **/295 [key: string]: AugmentedError<ApiType>;296 };297 polkadotXcm: {298 /**299 * The location is invalid since it already has a subscription from us.300 **/301 AlreadySubscribed: AugmentedError<ApiType>;302 /**303 * The given location could not be used (e.g. because it cannot be expressed in the304 * desired version of XCM).305 **/306 BadLocation: AugmentedError<ApiType>;307 /**308 * The version of the `Versioned` value used is not able to be interpreted.309 **/310 BadVersion: AugmentedError<ApiType>;311 /**312 * Could not re-anchor the assets to declare the fees for the destination chain.313 **/314 CannotReanchor: AugmentedError<ApiType>;315 /**316 * The destination `MultiLocation` provided cannot be inverted.317 **/318 DestinationNotInvertible: AugmentedError<ApiType>;319 /**320 * The assets to be sent are empty.321 **/322 Empty: AugmentedError<ApiType>;323 /**324 * The message execution fails the filter.325 **/326 Filtered: AugmentedError<ApiType>;327 /**328 * Origin is invalid for sending.329 **/330 InvalidOrigin: AugmentedError<ApiType>;331 /**332 * The referenced subscription could not be found.333 **/334 NoSubscription: AugmentedError<ApiType>;335 /**336 * There was some other issue (i.e. not to do with routing) in sending the message. Perhaps337 * a lack of space for buffering the message.338 **/339 SendFailure: AugmentedError<ApiType>;340 /**341 * Too many assets have been attempted for transfer.342 **/343 TooManyAssets: AugmentedError<ApiType>;344 /**345 * The desired destination was unreachable, generally because there is a no way of routing346 * to it.347 **/348 Unreachable: AugmentedError<ApiType>;349 /**350 * The message's weight could not be determined.351 **/352 UnweighableMessage: AugmentedError<ApiType>;353 /**354 * Generic error355 **/356 [key: string]: AugmentedError<ApiType>;357 };358 refungible: {359 /**360 * Not Refungible item data used to mint in Refungible collection.361 **/362 NotRefungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;363 /**364 * Maximum refungibility exceeded365 **/366 WrongRefungiblePieces: AugmentedError<ApiType>;367 /**368 * Generic error369 **/370 [key: string]: AugmentedError<ApiType>;371 };372 sudo: {373 /**374 * Sender must be the Sudo account375 **/376 RequireSudo: AugmentedError<ApiType>;377 /**378 * Generic error379 **/380 [key: string]: AugmentedError<ApiType>;381 };382 system: {383 /**384 * Failed to extract the runtime version from the new runtime.385 * 386 * Either calling `Core_version` or decoding `RuntimeVersion` failed.387 **/388 FailedToExtractRuntimeVersion: AugmentedError<ApiType>;389 /**390 * The name of specification does not match between the current runtime391 * and the new runtime.392 **/393 InvalidSpecName: AugmentedError<ApiType>;394 /**395 * Suicide called when the account has non-default composite data.396 **/397 NonDefaultComposite: AugmentedError<ApiType>;398 /**399 * There is a non-zero reference count preventing the account from being purged.400 **/401 NonZeroRefCount: AugmentedError<ApiType>;402 /**403 * The specification version is not allowed to decrease between the current runtime404 * and the new runtime.405 **/406 SpecVersionNeedsToIncrease: AugmentedError<ApiType>;407 /**408 * Generic error409 **/410 [key: string]: AugmentedError<ApiType>;411 };412 treasury: {413 /**414 * Proposer's balance is too low.415 **/416 InsufficientProposersBalance: AugmentedError<ApiType>;417 /**418 * No proposal or bounty at that index.419 **/420 InvalidIndex: AugmentedError<ApiType>;421 /**422 * Too many approvals in the queue.423 **/424 TooManyApprovals: AugmentedError<ApiType>;425 /**426 * Generic error427 **/428 [key: string]: AugmentedError<ApiType>;429 };430 unique: {431 /**432 * Decimal_points parameter must be lower than MAX_DECIMAL_POINTS constant, currently it is 30.433 **/434 CollectionDecimalPointLimitExceeded: AugmentedError<ApiType>;435 /**436 * Collection limit bounds per collection exceeded437 **/438 CollectionLimitBoundsExceeded: AugmentedError<ApiType>;439 /**440 * This address is not set as sponsor, use setCollectionSponsor first.441 **/442 ConfirmUnsetSponsorFail: AugmentedError<ApiType>;443 /**444 * Length of items properties must be greater than 0.445 **/446 EmptyArgument: AugmentedError<ApiType>;447 /**448 * Tried to enable permissions which are only permitted to be disabled449 **/450 OwnerPermissionsCantBeReverted: AugmentedError<ApiType>;451 /**452 * Generic error453 **/454 [key: string]: AugmentedError<ApiType>;455 };456 vesting: {457 /**458 * The vested transfer amount is too low459 **/460 AmountLow: AugmentedError<ApiType>;461 /**462 * Insufficient amount of balance to lock463 **/464 InsufficientBalanceToLock: AugmentedError<ApiType>;465 /**466 * Failed because the maximum vesting schedules was exceeded467 **/468 MaxVestingSchedulesExceeded: AugmentedError<ApiType>;469 /**470 * This account have too many vesting schedules471 **/472 TooManyVestingSchedules: AugmentedError<ApiType>;473 /**474 * Vesting period is zero475 **/476 ZeroVestingPeriod: AugmentedError<ApiType>;477 /**478 * Number of vests is zero479 **/480 ZeroVestingPeriodCount: AugmentedError<ApiType>;481 /**482 * Generic error483 **/484 [key: string]: AugmentedError<ApiType>;485 };486 xcmpQueue: {487 /**488 * Bad XCM data.489 **/490 BadXcm: AugmentedError<ApiType>;491 /**492 * Bad XCM origin.493 **/494 BadXcmOrigin: AugmentedError<ApiType>;495 /**496 * Failed to send XCM message.497 **/498 FailedToSend: AugmentedError<ApiType>;499 /**500 * Generic error501 **/502 [key: string]: AugmentedError<ApiType>;503 };504 }505506 export interface DecoratedErrors<ApiType extends ApiTypes> extends AugmentedErrors<ApiType> {507 [key: string]: ModuleErrors<ApiType>;508 }509}1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { ApiTypes } from '@polkadot/api/types';56declare module '@polkadot/api/types/errors' {7 export interface AugmentedErrors<ApiType> {8 balances: {9 /**10 * Beneficiary account must pre-exist11 **/12 DeadAccount: AugmentedError<ApiType>;13 /**14 * Value too low to create account due to existential deposit15 **/16 ExistentialDeposit: AugmentedError<ApiType>;17 /**18 * A vesting schedule already exists for this account19 **/20 ExistingVestingSchedule: AugmentedError<ApiType>;21 /**22 * Balance too low to send value23 **/24 InsufficientBalance: AugmentedError<ApiType>;25 /**26 * Transfer/payment would kill account27 **/28 KeepAlive: AugmentedError<ApiType>;29 /**30 * Account liquidity restrictions prevent withdrawal31 **/32 LiquidityRestrictions: AugmentedError<ApiType>;33 /**34 * Number of named reserves exceed MaxReserves35 **/36 TooManyReserves: AugmentedError<ApiType>;37 /**38 * Vesting balance too high to send value39 **/40 VestingBalance: AugmentedError<ApiType>;41 /**42 * Generic error43 **/44 [key: string]: AugmentedError<ApiType>;45 };46 common: {47 /**48 * Account token limit exceeded per collection49 **/50 AccountTokenLimitExceeded: AugmentedError<ApiType>;51 /**52 * Can't transfer tokens to ethereum zero address53 **/54 AddressIsZero: AugmentedError<ApiType>;55 /**56 * Address is not in allow list.57 **/58 AddressNotInAllowlist: AugmentedError<ApiType>;59 /**60 * Tried to approve more than owned61 **/62 CantApproveMoreThanOwned: AugmentedError<ApiType>;63 /**64 * Exceeded max admin count65 **/66 CollectionAdminCountExceeded: AugmentedError<ApiType>;67 /**68 * Collection description can not be longer than 255 char.69 **/70 CollectionDescriptionLimitExceeded: AugmentedError<ApiType>;71 /**72 * Collection name can not be longer than 63 char.73 **/74 CollectionNameLimitExceeded: AugmentedError<ApiType>;75 /**76 * This collection does not exist.77 **/78 CollectionNotFound: AugmentedError<ApiType>;79 /**80 * Collection token limit exceeded81 **/82 CollectionTokenLimitExceeded: AugmentedError<ApiType>;83 /**84 * Token prefix can not be longer than 15 char.85 **/86 CollectionTokenPrefixLimitExceeded: AugmentedError<ApiType>;87 /**88 * Metadata flag frozen89 **/90 MetadataFlagFrozen: AugmentedError<ApiType>;91 /**92 * Sender parameter and item owner must be equal.93 **/94 MustBeTokenOwner: AugmentedError<ApiType>;95 /**96 * No permission to perform action97 **/98 NoPermission: AugmentedError<ApiType>;99 /**100 * Collection is not in mint mode.101 **/102 PublicMintingNotAllowed: AugmentedError<ApiType>;103 /**104 * Item not exists.105 **/106 TokenNotFound: AugmentedError<ApiType>;107 /**108 * Requested value more than approved.109 **/110 TokenValueNotEnough: AugmentedError<ApiType>;111 /**112 * Item balance not enough.113 **/114 TokenValueTooLow: AugmentedError<ApiType>;115 /**116 * variable_data exceeded data limit.117 **/118 TokenVariableDataLimitExceeded: AugmentedError<ApiType>;119 /**120 * Total collections bound exceeded.121 **/122 TotalCollectionsLimitExceeded: AugmentedError<ApiType>;123 /**124 * Collection settings not allowing items transferring125 **/126 TransferNotAllowed: AugmentedError<ApiType>;127 /**128 * Target collection doesn't supports this operation129 **/130 UnsupportedOperation: AugmentedError<ApiType>;131 /**132 * Generic error133 **/134 [key: string]: AugmentedError<ApiType>;135 };136 cumulusXcm: {137 /**138 * Generic error139 **/140 [key: string]: AugmentedError<ApiType>;141 };142 dmpQueue: {143 /**144 * The amount of weight given is possibly not enough for executing the message.145 **/146 OverLimit: AugmentedError<ApiType>;147 /**148 * The message index given is unknown.149 **/150 Unknown: AugmentedError<ApiType>;151 /**152 * Generic error153 **/154 [key: string]: AugmentedError<ApiType>;155 };156 ethereum: {157 /**158 * Signature is invalid.159 **/160 InvalidSignature: AugmentedError<ApiType>;161 /**162 * Pre-log is present, therefore transact is not allowed.163 **/164 PreLogExists: AugmentedError<ApiType>;165 /**166 * Generic error167 **/168 [key: string]: AugmentedError<ApiType>;169 };170 evm: {171 /**172 * Not enough balance to perform action173 **/174 BalanceLow: AugmentedError<ApiType>;175 /**176 * Calculating total fee overflowed177 **/178 FeeOverflow: AugmentedError<ApiType>;179 /**180 * Gas price is too low.181 **/182 GasPriceTooLow: AugmentedError<ApiType>;183 /**184 * Nonce is invalid185 **/186 InvalidNonce: AugmentedError<ApiType>;187 /**188 * Calculating total payment overflowed189 **/190 PaymentOverflow: AugmentedError<ApiType>;191 /**192 * Withdraw fee failed193 **/194 WithdrawFailed: AugmentedError<ApiType>;195 /**196 * Generic error197 **/198 [key: string]: AugmentedError<ApiType>;199 };200 evmCoderSubstrate: {201 OutOfFund: AugmentedError<ApiType>;202 OutOfGas: AugmentedError<ApiType>;203 /**204 * Generic error205 **/206 [key: string]: AugmentedError<ApiType>;207 };208 evmContractHelpers: {209 /**210 * This method is only executable by owner211 **/212 NoPermission: AugmentedError<ApiType>;213 /**214 * Generic error215 **/216 [key: string]: AugmentedError<ApiType>;217 };218 evmMigration: {219 AccountIsNotMigrating: AugmentedError<ApiType>;220 AccountNotEmpty: AugmentedError<ApiType>;221 /**222 * Generic error223 **/224 [key: string]: AugmentedError<ApiType>;225 };226 fungible: {227 /**228 * Tried to set data for fungible item229 **/230 FungibleItemsDontHaveData: AugmentedError<ApiType>;231 /**232 * Not default id passed as TokenId argument233 **/234 FungibleItemsHaveNoId: AugmentedError<ApiType>;235 /**236 * Not Fungible item data used to mint in Fungible collection.237 **/238 NotFungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;239 /**240 * Generic error241 **/242 [key: string]: AugmentedError<ApiType>;243 };244 nonfungible: {245 /**246 * Used amount > 1 with NFT247 **/248 NonfungibleItemsHaveNoAmount: AugmentedError<ApiType>;249 /**250 * Not Nonfungible item data used to mint in Nonfungible collection.251 **/252 NotNonfungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;253 /**254 * Generic error255 **/256 [key: string]: AugmentedError<ApiType>;257 };258 parachainSystem: {259 /**260 * The inherent which supplies the host configuration did not run this block261 **/262 HostConfigurationNotAvailable: AugmentedError<ApiType>;263 /**264 * No code upgrade has been authorized.265 **/266 NothingAuthorized: AugmentedError<ApiType>;267 /**268 * No validation function upgrade is currently scheduled.269 **/270 NotScheduled: AugmentedError<ApiType>;271 /**272 * Attempt to upgrade validation function while existing upgrade pending273 **/274 OverlappingUpgrades: AugmentedError<ApiType>;275 /**276 * Polkadot currently prohibits this parachain from upgrading its validation function277 **/278 ProhibitedByPolkadot: AugmentedError<ApiType>;279 /**280 * The supplied validation function has compiled into a blob larger than Polkadot is281 * willing to run282 **/283 TooBig: AugmentedError<ApiType>;284 /**285 * The given code upgrade has not been authorized.286 **/287 Unauthorized: AugmentedError<ApiType>;288 /**289 * The inherent which supplies the validation data did not run this block290 **/291 ValidationDataNotAvailable: AugmentedError<ApiType>;292 /**293 * Generic error294 **/295 [key: string]: AugmentedError<ApiType>;296 };297 polkadotXcm: {298 /**299 * The location is invalid since it already has a subscription from us.300 **/301 AlreadySubscribed: AugmentedError<ApiType>;302 /**303 * The given location could not be used (e.g. because it cannot be expressed in the304 * desired version of XCM).305 **/306 BadLocation: AugmentedError<ApiType>;307 /**308 * The version of the `Versioned` value used is not able to be interpreted.309 **/310 BadVersion: AugmentedError<ApiType>;311 /**312 * Could not re-anchor the assets to declare the fees for the destination chain.313 **/314 CannotReanchor: AugmentedError<ApiType>;315 /**316 * The destination `MultiLocation` provided cannot be inverted.317 **/318 DestinationNotInvertible: AugmentedError<ApiType>;319 /**320 * The assets to be sent are empty.321 **/322 Empty: AugmentedError<ApiType>;323 /**324 * The message execution fails the filter.325 **/326 Filtered: AugmentedError<ApiType>;327 /**328 * Origin is invalid for sending.329 **/330 InvalidOrigin: AugmentedError<ApiType>;331 /**332 * The referenced subscription could not be found.333 **/334 NoSubscription: AugmentedError<ApiType>;335 /**336 * There was some other issue (i.e. not to do with routing) in sending the message. Perhaps337 * a lack of space for buffering the message.338 **/339 SendFailure: AugmentedError<ApiType>;340 /**341 * Too many assets have been attempted for transfer.342 **/343 TooManyAssets: AugmentedError<ApiType>;344 /**345 * The desired destination was unreachable, generally because there is a no way of routing346 * to it.347 **/348 Unreachable: AugmentedError<ApiType>;349 /**350 * The message's weight could not be determined.351 **/352 UnweighableMessage: AugmentedError<ApiType>;353 /**354 * Generic error355 **/356 [key: string]: AugmentedError<ApiType>;357 };358 refungible: {359 /**360 * Not Refungible item data used to mint in Refungible collection.361 **/362 NotRefungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;363 /**364 * Maximum refungibility exceeded365 **/366 WrongRefungiblePieces: AugmentedError<ApiType>;367 /**368 * Generic error369 **/370 [key: string]: AugmentedError<ApiType>;371 };372 sudo: {373 /**374 * Sender must be the Sudo account375 **/376 RequireSudo: AugmentedError<ApiType>;377 /**378 * Generic error379 **/380 [key: string]: AugmentedError<ApiType>;381 };382 system: {383 /**384 * The origin filter prevent the call to be dispatched.385 **/386 CallFiltered: AugmentedError<ApiType>;387 /**388 * Failed to extract the runtime version from the new runtime.389 * 390 * Either calling `Core_version` or decoding `RuntimeVersion` failed.391 **/392 FailedToExtractRuntimeVersion: AugmentedError<ApiType>;393 /**394 * The name of specification does not match between the current runtime395 * and the new runtime.396 **/397 InvalidSpecName: AugmentedError<ApiType>;398 /**399 * Suicide called when the account has non-default composite data.400 **/401 NonDefaultComposite: AugmentedError<ApiType>;402 /**403 * There is a non-zero reference count preventing the account from being purged.404 **/405 NonZeroRefCount: AugmentedError<ApiType>;406 /**407 * The specification version is not allowed to decrease between the current runtime408 * and the new runtime.409 **/410 SpecVersionNeedsToIncrease: AugmentedError<ApiType>;411 /**412 * Generic error413 **/414 [key: string]: AugmentedError<ApiType>;415 };416 treasury: {417 /**418 * Proposer's balance is too low.419 **/420 InsufficientProposersBalance: AugmentedError<ApiType>;421 /**422 * No proposal or bounty at that index.423 **/424 InvalidIndex: AugmentedError<ApiType>;425 /**426 * Too many approvals in the queue.427 **/428 TooManyApprovals: AugmentedError<ApiType>;429 /**430 * Generic error431 **/432 [key: string]: AugmentedError<ApiType>;433 };434 unique: {435 /**436 * Decimal_points parameter must be lower than MAX_DECIMAL_POINTS constant, currently it is 30.437 **/438 CollectionDecimalPointLimitExceeded: AugmentedError<ApiType>;439 /**440 * Collection limit bounds per collection exceeded441 **/442 CollectionLimitBoundsExceeded: AugmentedError<ApiType>;443 /**444 * This address is not set as sponsor, use setCollectionSponsor first.445 **/446 ConfirmUnsetSponsorFail: AugmentedError<ApiType>;447 /**448 * Length of items properties must be greater than 0.449 **/450 EmptyArgument: AugmentedError<ApiType>;451 /**452 * Tried to enable permissions which are only permitted to be disabled453 **/454 OwnerPermissionsCantBeReverted: AugmentedError<ApiType>;455 /**456 * Generic error457 **/458 [key: string]: AugmentedError<ApiType>;459 };460 vesting: {461 /**462 * The vested transfer amount is too low463 **/464 AmountLow: AugmentedError<ApiType>;465 /**466 * Insufficient amount of balance to lock467 **/468 InsufficientBalanceToLock: AugmentedError<ApiType>;469 /**470 * Failed because the maximum vesting schedules was exceeded471 **/472 MaxVestingSchedulesExceeded: AugmentedError<ApiType>;473 /**474 * This account have too many vesting schedules475 **/476 TooManyVestingSchedules: AugmentedError<ApiType>;477 /**478 * Vesting period is zero479 **/480 ZeroVestingPeriod: AugmentedError<ApiType>;481 /**482 * Number of vests is zero483 **/484 ZeroVestingPeriodCount: AugmentedError<ApiType>;485 /**486 * Generic error487 **/488 [key: string]: AugmentedError<ApiType>;489 };490 xcmpQueue: {491 /**492 * Bad overweight index.493 **/494 BadOverweightIndex: AugmentedError<ApiType>;495 /**496 * Bad XCM data.497 **/498 BadXcm: AugmentedError<ApiType>;499 /**500 * Bad XCM origin.501 **/502 BadXcmOrigin: AugmentedError<ApiType>;503 /**504 * Failed to send XCM message.505 **/506 FailedToSend: AugmentedError<ApiType>;507 /**508 * Provided weight is possibly not enough to execute the message.509 **/510 WeightOverLimit: AugmentedError<ApiType>;511 /**512 * Generic error513 **/514 [key: string]: AugmentedError<ApiType>;515 };516 }517518 export interface DecoratedErrors<ApiType extends ApiTypes> extends AugmentedErrors<ApiType> {519 [key: string]: ModuleErrors<ApiType>;520 }521}tests/src/interfaces/augment-api-events.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-events.ts
+++ b/tests/src/interfaces/augment-api-events.ts
@@ -2,7 +2,7 @@
/* eslint-disable */
import type { EthereumLog, EvmCoreErrorExitReason } from './ethereum';
-import type { PalletCommonAccountBasicCrossAccountIdRepr } from './unique';
+import type { PalletCommonAccountBasicCrossAccountIdRepr, UpDataStructsAccessMode } from './unique';
import type { ApiTypes } from '@polkadot/api/types';
import type { Null, Option, Result, U256, U8aFixed, u128, u32, u64, u8 } from '@polkadot/types';
import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
@@ -12,48 +12,45 @@
export interface AugmentedEvents<ApiType> {
balances: {
/**
- * A balance was set by root. \[who, free, reserved\]
+ * A balance was set by root.
**/
BalanceSet: AugmentedEvent<ApiType, [AccountId32, u128, u128]>;
/**
- * Some amount was deposited into the account (e.g. for transaction fees). \[who,
- * deposit\]
+ * Some amount was deposited (e.g. for transaction fees).
**/
Deposit: AugmentedEvent<ApiType, [AccountId32, u128]>;
/**
* An account was removed whose balance was non-zero but below ExistentialDeposit,
- * resulting in an outright loss. \[account, balance\]
+ * resulting in an outright loss.
**/
DustLost: AugmentedEvent<ApiType, [AccountId32, u128]>;
/**
- * An account was created with some free balance. \[account, free_balance\]
+ * An account was created with some free balance.
**/
Endowed: AugmentedEvent<ApiType, [AccountId32, u128]>;
/**
- * Some balance was reserved (moved from free to reserved). \[who, value\]
+ * Some balance was reserved (moved from free to reserved).
**/
Reserved: AugmentedEvent<ApiType, [AccountId32, u128]>;
/**
* Some balance was moved from the reserve of the first account to the second account.
* Final argument indicates the destination balance type.
- * \[from, to, balance, destination_status\]
**/
ReserveRepatriated: AugmentedEvent<ApiType, [AccountId32, AccountId32, u128, FrameSupportTokensMiscBalanceStatus]>;
/**
- * Some amount was removed from the account (e.g. for misbehavior). \[who,
- * amount_slashed\]
+ * Some amount was removed from the account (e.g. for misbehavior).
**/
Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
/**
- * Transfer succeeded. \[from, to, value\]
+ * Transfer succeeded.
**/
Transfer: AugmentedEvent<ApiType, [AccountId32, AccountId32, u128]>;
/**
- * Some balance was unreserved (moved from reserved to free). \[who, value\]
+ * Some balance was unreserved (moved from reserved to free).
**/
Unreserved: AugmentedEvent<ApiType, [AccountId32, u128]>;
/**
- * Some amount was withdrawn from the account (e.g. for transaction fees). \[who, value\]
+ * Some amount was withdrawn from the account (e.g. for transaction fees).
**/
Withdraw: AugmentedEvent<ApiType, [AccountId32, u128]>;
/**
@@ -87,6 +84,14 @@
**/
CollectionCreated: AugmentedEvent<ApiType, [u32, u8, AccountId32]>;
/**
+ * New collection was destroyed
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique identifier of collection.
+ **/
+ CollectionDestroyed: AugmentedEvent<ApiType, [u32]>;
+ /**
* New item was created.
*
* # Arguments
@@ -289,7 +294,7 @@
InvalidResponder: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;
/**
* Expected query response has been received but the expected origin location placed in
- * storate by this runtime previously cannot be decoded. The query remains registered.
+ * storage by this runtime previously cannot be decoded. The query remains registered.
*
* This is unexpected (since a location placed in storage in a previously executing
* runtime should be readable prior to query timeout) and dangerous since the possibly
@@ -390,9 +395,9 @@
};
sudo: {
/**
- * 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, [AccountId32]>;
+ KeyChanged: AugmentedEvent<ApiType, [Option<AccountId32>]>;
/**
* A sudo just took place. \[result\]
**/
@@ -412,23 +417,23 @@
**/
CodeUpdated: AugmentedEvent<ApiType, []>;
/**
- * An extrinsic failed. \[error, info\]
+ * An extrinsic failed.
**/
ExtrinsicFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError, FrameSupportWeightsDispatchInfo]>;
/**
- * An extrinsic completed successfully. \[info\]
+ * An extrinsic completed successfully.
**/
ExtrinsicSuccess: AugmentedEvent<ApiType, [FrameSupportWeightsDispatchInfo]>;
/**
- * An \[account\] was reaped.
+ * An account was reaped.
**/
KilledAccount: AugmentedEvent<ApiType, [AccountId32]>;
/**
- * A new \[account\] was created.
+ * A new account was created.
**/
NewAccount: AugmentedEvent<ApiType, [AccountId32]>;
/**
- * On on-chain remark happened. \[origin, remark_hash\]
+ * On on-chain remark happened.
**/
Remarked: AugmentedEvent<ApiType, [AccountId32, H256]>;
/**
@@ -438,32 +443,31 @@
};
treasury: {
/**
- * Some funds have been allocated. \[proposal_index, award, beneficiary\]
+ * Some funds have been allocated.
**/
Awarded: AugmentedEvent<ApiType, [u32, u128, AccountId32]>;
/**
- * 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\]
**/
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.
**/
Spending: AugmentedEvent<ApiType, [u128]>;
/**
@@ -471,17 +475,159 @@
**/
[key: string]: AugmentedEvent<ApiType>;
};
+ unique: {
+ /**
+ * Address was add to allow list
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ *
+ * * user: Address.
+ **/
+ AllowListAddressAdded: AugmentedEvent<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ /**
+ * Address was remove from allow list
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ *
+ * * user: Address.
+ **/
+ AllowListAddressRemoved: AugmentedEvent<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ /**
+ * Collection admin was added
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ *
+ * * admin: Admin address.
+ **/
+ CollectionAdminAdded: AugmentedEvent<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ /**
+ * Collection admin was removed
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ *
+ * * admin: Admin address.
+ **/
+ CollectionAdminRemoved: AugmentedEvent<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ /**
+ * Collection limits was set
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ **/
+ CollectionLimitSet: AugmentedEvent<ApiType, [u32]>;
+ /**
+ * Collection owned was change
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ *
+ * * owner: New owner address.
+ **/
+ CollectionOwnedChanged: AugmentedEvent<ApiType, [u32, AccountId32]>;
+ /**
+ * Collection sponsor was removed
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ **/
+ CollectionSponsorRemoved: AugmentedEvent<ApiType, [u32]>;
+ /**
+ * Collection sponsor was set
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ *
+ * * owner: New sponsor address.
+ **/
+ CollectionSponsorSet: AugmentedEvent<ApiType, [u32, AccountId32]>;
+ /**
+ * const on chain schema was set
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ **/
+ ConstOnChainSchemaSet: AugmentedEvent<ApiType, [u32]>;
+ /**
+ * Mint permission was set
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ **/
+ MintPermissionSet: AugmentedEvent<ApiType, [u32]>;
+ /**
+ * Offchain schema was set
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ **/
+ OffchainSchemaSet: AugmentedEvent<ApiType, [u32]>;
+ /**
+ * Public access mode was set
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ *
+ * * mode: New access state.
+ **/
+ PublicAccessModeSet: AugmentedEvent<ApiType, [u32, UpDataStructsAccessMode]>;
+ /**
+ * Schema version was set
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ **/
+ SchemaVersionSet: AugmentedEvent<ApiType, [u32]>;
+ /**
+ * New sponsor was confirm
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ *
+ * * sponsor: New sponsor address.
+ **/
+ SponsorshipConfirmed: AugmentedEvent<ApiType, [u32, AccountId32]>;
+ /**
+ * Variable on chain schema was set
+ *
+ * # Arguments
+ *
+ * * collection_id: Globally unique collection identifier.
+ **/
+ VariableOnChainSchemaSet: AugmentedEvent<ApiType, [u32]>;
+ /**
+ * Generic event
+ **/
+ [key: string]: AugmentedEvent<ApiType>;
+ };
vesting: {
/**
- * Claimed vesting. \[who, locked_amount\]
+ * Claimed vesting.
**/
Claimed: AugmentedEvent<ApiType, [AccountId32, u128]>;
/**
- * Added new vesting schedule. \[from, to, vesting_schedule\]
+ * Added new vesting schedule.
**/
VestingScheduleAdded: AugmentedEvent<ApiType, [AccountId32, AccountId32, OrmlVestingVestingSchedule]>;
/**
- * Updated vesting schedules. \[who\]
+ * Updated vesting schedules.
**/
VestingSchedulesUpdated: AugmentedEvent<ApiType, [AccountId32]>;
/**
@@ -503,6 +649,14 @@
**/
Fail: AugmentedEvent<ApiType, [Option<H256>, XcmV2TraitsError]>;
/**
+ * 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.
**/
Success: AugmentedEvent<ApiType, [Option<H256>]>;
tests/src/interfaces/augment-api-query.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-query.ts
+++ b/tests/src/interfaces/augment-api-query.ts
@@ -1,8 +1,8 @@
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */
-import type { EthereumBlock, EthereumReceipt, EthereumTransactionLegacyTransaction, FpRpcTransactionStatus } from './ethereum';
-import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundStatus, CumulusPalletXcmpQueueOutboundStatus, CumulusPalletXcmpQueueQueueConfigData, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData } from './polkadot';
+import type { EthereumBlock, FpRpcTransactionStatus } from './ethereum';
+import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueQueueConfigData, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData } from './polkadot';
import type { PalletCommonAccountBasicCrossAccountIdRepr, PalletNonfungibleItemData, PalletRefungibleItemData, UpDataStructsCollection, UpDataStructsCollectionStats } from './unique';
import type { ApiTypes } from '@polkadot/api/types';
import type { BTreeMap, Bytes, Option, U256, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types';
@@ -105,7 +105,7 @@
/**
* The current Ethereum receipts.
**/
- currentReceipts: AugmentedQuery<ApiType, () => Observable<Option<Vec<EthereumReceipt>>>, []> & QueryableStorageEntry<ApiType, []>;
+ currentReceipts: AugmentedQuery<ApiType, () => Observable<Option<Vec<EthereumReceiptReceiptV3>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The current transaction statuses.
**/
@@ -113,7 +113,7 @@
/**
* Current building block's transactions and receipts.
**/
- pending: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[EthereumTransactionLegacyTransaction, FpRpcTransactionStatus, EthereumReceipt]>>>, []> & QueryableStorageEntry<ApiType, []>;
+ pending: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -163,10 +163,22 @@
};
inflation: {
/**
- * Current block inflation
+ * Current inflation for `InflationBlockInterval` number of blocks
**/
blockInflation: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
/**
+ * Next target (relay) block when inflation will be applied
+ **/
+ nextInflationBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
+ /**
+ * Next target (relay) block when inflation is recalculated
+ **/
+ nextRecalculationBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
+ /**
+ * Relay block when inflation has started
+ **/
+ startBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
+ /**
* starting year total issuance
**/
startingYearTotalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
@@ -208,6 +220,12 @@
**/
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<H256>>, []> & QueryableStorageEntry<ApiType, []>;
/**
+ * 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?
**/
didSetValidationCode: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
@@ -353,7 +371,7 @@
/**
* The `AccountId` of the sudo key.
**/
- key: AugmentedQuery<ApiType, () => Observable<AccountId32>, []> & QueryableStorageEntry<ApiType, []>;
+ key: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -540,7 +558,7 @@
/**
* Status of the inbound XCMP channels.
**/
- inboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, CumulusPalletXcmpQueueInboundStatus, Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>]>>>, []> & QueryableStorageEntry<ApiType, []>;
+ inboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletXcmpQueueInboundChannelDetails>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The messages outbound in a given XCMP channel.
**/
@@ -553,7 +571,19 @@
* case of the need to send a high-priority signal message this block.
* The bool is true if there is a signal message waiting to be sent.
**/
- outboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, CumulusPalletXcmpQueueOutboundStatus, bool, u16, u16]>>>, []> & QueryableStorageEntry<ApiType, []>;
+ 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.
**/
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -1,14 +1,13 @@
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */
-import type { EthereumTransactionLegacyTransaction } from './ethereum';
import type { CumulusPrimitivesParachainInherentParachainInherentData } from './polkadot';
import type { PalletCommonAccountBasicCrossAccountIdRepr, UpDataStructsAccessMode, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCreateItemData, UpDataStructsMetaUpdatePermission, UpDataStructsSchemaVersion } from './unique';
import type { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types';
import type { Bytes, Compact, Option, U256, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types';
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
import type { AccountId32, Call, H160, H256, MultiAddress, Perbill } from '@polkadot/types/interfaces/runtime';
-import type { SpCoreChangesTrieChangesTrieConfiguration, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
+import type { XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
import type { AnyNumber, ITuple } from '@polkadot/types/types';
declare module '@polkadot/api/types/submittable' {
@@ -33,28 +32,17 @@
* Set the balances of a given account.
*
* This will alter `FreeBalance` and `ReservedBalance` in storage. it will
- * also decrease the total issuance of the system (`TotalIssuance`).
+ * also alter the total issuance of the system (`TotalIssuance`) appropriately.
* If the new free or reserved balance is below the existential deposit,
* it will reset the account nonce (`frame_system::AccountNonce`).
*
* The dispatch origin for this call is `root`.
- *
- * # <weight>
- * - Independent of the arguments.
- * - Contains a limited number of reads and writes.
- * ---------------------
- * - Base Weight:
- * - Creating: 27.56 µs
- * - Killing: 35.11 µs
- * - DB Weight: 1 Read, 1 Write to `who`
- * # </weight>
**/
setBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
/**
* Transfer some liquid free balance to another account.
*
* `transfer` will set the `FreeBalance` of the sender and receiver.
- * It will decrease the total issuance of the system by the `TransferFee`.
* If the sender's account is below the existential deposit as a result
* of the transfer, the account will be reaped.
*
@@ -75,8 +63,6 @@
* - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
* that the transfer will not kill the origin account.
* ---------------------------------
- * - Base Weight: 73.64 µs, worst case scenario (account created, account removed)
- * - DB Weight: 1 Read and 1 Write to destination account
* - Origin account is already in memory, so no DB operations for them.
* # </weight>
**/
@@ -108,11 +94,6 @@
* 99% of the time you want [`transfer`] instead.
*
* [`transfer`]: struct.Pallet.html#method.transfer
- * # <weight>
- * - Cheaper than transfer because account cannot be killed.
- * - Base Weight: 51.4 µs
- * - DB Weight: 1 Read and 1 Write to dest (sender is in overlay already)
- * #</weight>
**/
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
/**
@@ -157,7 +138,7 @@
/**
* Transact an Ethereum transaction.
**/
- transact: AugmentedSubmittable<(transaction: EthereumTransactionLegacyTransaction | { nonce?: any; gasPrice?: any; gasLimit?: any; action?: any; value?: any; input?: any; signature?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumTransactionLegacyTransaction]>;
+ transact: AugmentedSubmittable<(transaction: EthereumTransactionTransactionV2 | { Legacy: any } | { EIP2930: any } | { EIP1559: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumTransactionTransactionV2]>;
/**
* Generic tx
**/
@@ -167,16 +148,16 @@
/**
* Issue an EVM call operation. This is similar to a message call transaction in Ethereum.
**/
- call: AugmentedSubmittable<(source: H160 | string | Uint8Array, target: H160 | string | Uint8Array, input: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, gasPrice: U256 | AnyNumber | Uint8Array, nonce: Option<U256> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, H160, Bytes, U256, u64, U256, Option<U256>]>;
+ call: AugmentedSubmittable<(source: H160 | string | Uint8Array, target: H160 | string | Uint8Array, input: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | object | string | Uint8Array, nonce: Option<U256> | null | object | string | Uint8Array, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;
/**
* Issue an EVM create operation. This is similar to a contract creation transaction in
* Ethereum.
**/
- create: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, gasPrice: U256 | AnyNumber | Uint8Array, nonce: Option<U256> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, Bytes, U256, u64, U256, Option<U256>]>;
+ create: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | object | string | Uint8Array, nonce: Option<U256> | null | object | string | Uint8Array, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;
/**
* Issue an EVM create2 operation.
**/
- create2: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, salt: H256 | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, gasPrice: U256 | AnyNumber | Uint8Array, nonce: Option<U256> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, Bytes, H256, U256, u64, U256, Option<U256>]>;
+ create2: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, salt: H256 | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | object | string | Uint8Array, nonce: Option<U256> | null | object | string | Uint8Array, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, H256, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;
/**
* Withdraw balance from EVM into currency/balances pallet.
**/
@@ -197,6 +178,20 @@
};
inflation: {
/**
+ * This method sets the inflation start date. Can be only called once.
+ * Inflation start block can be backdated and will catch up. The method will create Treasury
+ * account if it does not exist and perform the first inflation deposit.
+ *
+ * # Permissions
+ *
+ * * Root
+ *
+ * # Arguments
+ *
+ * * inflation_start_relay_block: The relay chain block at which inflation should start
+ **/
+ startInflation: AugmentedSubmittable<(inflationStartRelayBlock: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
+ /**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
@@ -300,8 +295,8 @@
* an `AccountId32` value.
* - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the
* `dest` side. May not be empty.
- * - `dest_weight`: Equal to the total weight on `dest` of the XCM message
- * `Teleport { assets, effects: [ BuyExecution{..}, DepositAsset{..} ] }`.
+ * - `fee_asset_item`: The index into `assets` of the item which should be used to pay
+ * fees.
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
**/
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;
@@ -339,8 +334,8 @@
* an `AccountId32` value.
* - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the
* `dest` side. May not be empty.
- * - `dest_weight`: Equal to the total weight on `dest` of the XCM message
- * `Teleport { assets, effects: [ BuyExecution{..}, DepositAsset{..} ] }`.
+ * - `fee_asset_item`: The index into `assets` of the item which should be used to pay
+ * fees.
**/
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;
/**
@@ -374,7 +369,7 @@
* - Weight of derivative `call` execution + 10,000.
* # </weight>
**/
- sudo: AugmentedSubmittable<(call: Call) => SubmittableExtrinsic<ApiType>, [Call]>;
+ sudo: AugmentedSubmittable<(call: Call | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
/**
* Authenticates the sudo key and dispatches a function call with `Signed` origin from
* a given account.
@@ -388,7 +383,7 @@
* - Weight of derivative `call` execution + 10,000.
* # </weight>
**/
- sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, ) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;
+ sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;
/**
* Authenticates the sudo key and dispatches a function call with `Root` origin.
* This function does not check the weight of the call, and instead allows the
@@ -401,7 +396,7 @@
* - The weight of this call is defined by the caller.
* # </weight>
**/
- sudoUncheckedWeight: AugmentedSubmittable<(call: Call, weight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, u64]>;
+ sudoUncheckedWeight: AugmentedSubmittable<(call: Call | string | Uint8Array, weight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, u64]>;
/**
* Generic tx
**/
@@ -417,24 +412,10 @@
*
* **NOTE:** We rely on the Root origin to provide us the number of subkeys under
* the prefix we are removing to accurately calculate the weight of this function.
- *
- * # <weight>
- * - `O(P)` where `P` amount of keys with prefix `prefix`
- * - `P` storage deletions.
- * - Base Weight: 0.834 * P µs
- * - Writes: Number of subkeys + 1
- * # </weight>
**/
killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;
/**
* Kill some items from storage.
- *
- * # <weight>
- * - `O(IK)` where `I` length of `keys` and `K` length of one key
- * - `I` storage deletions.
- * - Base Weight: .378 * i µs
- * - Writes: Number of items
- * # </weight>
**/
killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;
/**
@@ -455,19 +436,6 @@
**/
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
- * Set the new changes trie configuration.
- *
- * # <weight>
- * - `O(1)`
- * - 1 storage write or delete (codec `O(1)`).
- * - 1 call to `deposit_log`: Uses `append` API, so O(1)
- * - Base Weight: 7.218 µs
- * - DB Weight:
- * - Writes: Changes Trie, System Digest
- * # </weight>
- **/
- setChangesTrieConfig: AugmentedSubmittable<(changesTrieConfig: Option<SpCoreChangesTrieChangesTrieConfiguration> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<SpCoreChangesTrieChangesTrieConfiguration>]>;
- /**
* Set the new runtime code.
*
* # <weight>
@@ -496,25 +464,10 @@
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* Set the number of pages in the WebAssembly environment's heap.
- *
- * # <weight>
- * - `O(1)`
- * - 1 storage write.
- * - Base Weight: 1.405 µs
- * - 1 write to HEAP_PAGES
- * - 1 digest item
- * # </weight>
**/
setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
/**
* Set some items of storage.
- *
- * # <weight>
- * - `O(I)` where `I` length of `items`
- * - `I` storage writes (`O(1)`).
- * - Base Weight: 0.568 * i µs
- * - Writes: Number of items
- * # </weight>
**/
setStorage: AugmentedSubmittable<(items: Vec<ITuple<[Bytes, Bytes]>> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[Bytes, Bytes]>>]>;
/**
@@ -1026,6 +979,22 @@
};
xcmpQueue: {
/**
+ * Services a single overweight XCM.
+ *
+ * - `origin`: Must pass `ExecuteOverweightOrigin`.
+ * - `index`: The index of the overweight XCM to service
+ * - `weight_limit`: The amount of weight that XCM execution may take.
+ *
+ * Errors:
+ * - `BadOverweightIndex`: XCM under `index` is not found in the `Overweight` storage map.
+ * - `BadXcm`: XCM under `index` cannot be properly decoded into a valid XCM format.
+ * - `WeightOverLimit`: XCM execution may use greater `weight_limit`.
+ *
+ * Events:
+ * - `OverweightServiced`: On success.
+ **/
+ serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;
+ /**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;