Skip to content

Commit

Permalink
runtime 2240 (#57)
Browse files Browse the repository at this point in the history
* runtime 2240

* update lock

* Revert "update lock"

This reverts commit 429a2a2.

* Revert "Revert "update lock""

This reverts commit 27fe914.

* fix
  • Loading branch information
shunjizhan authored Mar 28, 2024
1 parent 5bada90 commit ec59960
Show file tree
Hide file tree
Showing 9 changed files with 1,301 additions and 1,148 deletions.
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acala-network/types",
"version": "6.1.1-0",
"version": "6.1.0",
"description": "Acala types for @polkadot/api",
"author": "Acala Developers <hello@acala.network>",
"license": "Apache-2.0",
Expand Down
16 changes: 16 additions & 0 deletions packages/types/src/interfaces/augment-api-consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,15 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
messageQueue: {
heapSize: u32 & AugmentedConst<ApiType>;
maxStale: u32 & AugmentedConst<ApiType>;
serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
multisig: {
depositBase: u128 & AugmentedConst<ApiType>;
depositFactor: u128 & AugmentedConst<ApiType>;
Expand Down Expand Up @@ -423,6 +432,13 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
xcmpQueue: {
maxInboundSuspended: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
xTokens: {
baseXcmWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
selfLocation: StagingXcmV3MultiLocation & AugmentedConst<ApiType>;
Expand Down
46 changes: 26 additions & 20 deletions packages/types/src/interfaces/augment-api-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,6 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
cumulusXcm: {
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
currencies: {
AmountIntoBalanceFailed: AugmentedError<ApiType>;
BalanceTooLow: AugmentedError<ApiType>;
Expand Down Expand Up @@ -251,14 +245,6 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
dmpQueue: {
OverLimit: AugmentedError<ApiType>;
Unknown: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
earning: {
BelowMinBondThreshold: AugmentedError<ApiType>;
MaxUnlockChunksExceeded: AugmentedError<ApiType>;
Expand Down Expand Up @@ -445,6 +431,21 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
messageQueue: {
AlreadyProcessed: AugmentedError<ApiType>;
InsufficientWeight: AugmentedError<ApiType>;
NoMessage: AugmentedError<ApiType>;
NoPage: AugmentedError<ApiType>;
NotReapable: AugmentedError<ApiType>;
Queued: AugmentedError<ApiType>;
QueuePaused: AugmentedError<ApiType>;
RecursiveDisallowed: AugmentedError<ApiType>;
TemporarilyUnprocessable: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
multisig: {
AlreadyApproved: AugmentedError<ApiType>;
AlreadyStored: AugmentedError<ApiType>;
Expand Down Expand Up @@ -538,20 +539,25 @@ declare module '@polkadot/api-base/types/errors' {
AlreadySubscribed: AugmentedError<ApiType>;
BadLocation: AugmentedError<ApiType>;
BadVersion: AugmentedError<ApiType>;
CannotCheckOutTeleport: AugmentedError<ApiType>;
CannotReanchor: AugmentedError<ApiType>;
DestinationNotInvertible: AugmentedError<ApiType>;
Empty: AugmentedError<ApiType>;
FeesNotMet: AugmentedError<ApiType>;
Filtered: AugmentedError<ApiType>;
InUse: AugmentedError<ApiType>;
InvalidAsset: AugmentedError<ApiType>;
InvalidAssetNotConcrete: AugmentedError<ApiType>;
InvalidAssetUnknownReserve: AugmentedError<ApiType>;
InvalidAssetUnsupportedReserve: AugmentedError<ApiType>;
InvalidOrigin: AugmentedError<ApiType>;
LocalExecutionIncomplete: AugmentedError<ApiType>;
LockNotFound: AugmentedError<ApiType>;
LowBalance: AugmentedError<ApiType>;
NoSubscription: AugmentedError<ApiType>;
SendFailure: AugmentedError<ApiType>;
TooManyAssets: AugmentedError<ApiType>;
TooManyLocks: AugmentedError<ApiType>;
TooManyReserves: AugmentedError<ApiType>;
Unreachable: AugmentedError<ApiType>;
UnweighableMessage: AugmentedError<ApiType>;
/**
Expand Down Expand Up @@ -665,7 +671,9 @@ declare module '@polkadot/api-base/types/errors' {
InvalidSpecName: AugmentedError<ApiType>;
NonDefaultComposite: AugmentedError<ApiType>;
NonZeroRefCount: AugmentedError<ApiType>;
NothingAuthorized: AugmentedError<ApiType>;
SpecVersionNeedsToIncrease: AugmentedError<ApiType>;
Unauthorized: AugmentedError<ApiType>;
/**
* Generic error
**/
Expand Down Expand Up @@ -798,11 +806,9 @@ declare module '@polkadot/api-base/types/errors' {
[key: string]: AugmentedError<ApiType>;
};
xcmpQueue: {
BadOverweightIndex: AugmentedError<ApiType>;
BadXcm: AugmentedError<ApiType>;
BadXcmOrigin: AugmentedError<ApiType>;
FailedToSend: AugmentedError<ApiType>;
WeightOverLimit: AugmentedError<ApiType>;
AlreadyResumed: AugmentedError<ApiType>;
AlreadySuspended: AugmentedError<ApiType>;
BadQueueConfig: AugmentedError<ApiType>;
/**
* Generic error
**/
Expand Down
41 changes: 25 additions & 16 deletions packages/types/src/interfaces/augment-api-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, i128, i32, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
import type { AcalaPrimitivesCurrencyAssetIds, AcalaPrimitivesCurrencyAssetMetadata, AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesTradingPair, AcalaRuntimeOriginCaller, AcalaRuntimeRuntimeParameters, AcalaRuntimeScheduledTasks, EthereumLog, EvmCoreErrorExitReason, FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, ModuleHomaModuleUnlockChunk, ModuleSupportIncentivesPoolId, ModuleXcmInterfaceModuleXcmInterfaceOperation, OrmlVestingVestingSchedule, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletMultisigTimepoint, RuntimeCommonProxyType, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation, XcmV3MultiAsset, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
import type { AcalaPrimitivesCurrencyAssetIds, AcalaPrimitivesCurrencyAssetMetadata, AcalaPrimitivesCurrencyCurrencyId, AcalaPrimitivesTradingPair, AcalaRuntimeOriginCaller, AcalaRuntimeRuntimeParameters, AcalaRuntimeScheduledTasks, CumulusPrimitivesCoreAggregateMessageOrigin, EthereumLog, EvmCoreErrorExitReason, FrameSupportDispatchDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, ModuleHomaModuleUnlockChunk, ModuleSupportIncentivesPoolId, ModuleXcmInterfaceModuleXcmInterfaceOperation, OrmlVestingVestingSchedule, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletMultisigTimepoint, RuntimeCommonProxyType, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation, XcmV3MultiAsset, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';

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

Expand Down Expand Up @@ -202,13 +202,17 @@ declare module '@polkadot/api-base/types/events' {
[key: string]: AugmentedEvent<ApiType>;
};
dmpQueue: {
ExecutedDownward: AugmentedEvent<ApiType, [messageHash: U8aFixed, messageId: U8aFixed, outcome: XcmV3TraitsOutcome], { messageHash: U8aFixed, messageId: U8aFixed, outcome: XcmV3TraitsOutcome }>;
InvalidFormat: AugmentedEvent<ApiType, [messageHash: U8aFixed], { messageHash: U8aFixed }>;
MaxMessagesExhausted: AugmentedEvent<ApiType, [messageHash: U8aFixed], { messageHash: U8aFixed }>;
OverweightEnqueued: AugmentedEvent<ApiType, [messageHash: U8aFixed, messageId: U8aFixed, overweightIndex: u64, requiredWeight: SpWeightsWeightV2Weight], { messageHash: U8aFixed, messageId: U8aFixed, overweightIndex: u64, requiredWeight: SpWeightsWeightV2Weight }>;
OverweightServiced: AugmentedEvent<ApiType, [overweightIndex: u64, weightUsed: SpWeightsWeightV2Weight], { overweightIndex: u64, weightUsed: SpWeightsWeightV2Weight }>;
UnsupportedVersion: AugmentedEvent<ApiType, [messageHash: U8aFixed], { messageHash: U8aFixed }>;
WeightExhausted: AugmentedEvent<ApiType, [messageHash: U8aFixed, messageId: U8aFixed, remainingWeight: SpWeightsWeightV2Weight, requiredWeight: SpWeightsWeightV2Weight], { messageHash: U8aFixed, messageId: U8aFixed, remainingWeight: SpWeightsWeightV2Weight, requiredWeight: SpWeightsWeightV2Weight }>;
CleanedSome: AugmentedEvent<ApiType, [keysRemoved: u32], { keysRemoved: u32 }>;
Completed: AugmentedEvent<ApiType, [error: bool], { error: bool }>;
CompletedExport: AugmentedEvent<ApiType, []>;
CompletedOverweightExport: AugmentedEvent<ApiType, []>;
Exported: AugmentedEvent<ApiType, [page: u32], { page: u32 }>;
ExportedOverweight: AugmentedEvent<ApiType, [index: u64], { index: u64 }>;
ExportFailed: AugmentedEvent<ApiType, [page: u32], { page: u32 }>;
ExportOverweightFailed: AugmentedEvent<ApiType, [index: u64], { index: u64 }>;
StartedCleanup: AugmentedEvent<ApiType, []>;
StartedExport: AugmentedEvent<ApiType, []>;
StartedOverweightExport: AugmentedEvent<ApiType, []>;
/**
* Generic event
**/
Expand Down Expand Up @@ -402,6 +406,16 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
messageQueue: {
OverweightEnqueued: AugmentedEvent<ApiType, [id: U8aFixed, origin: CumulusPrimitivesCoreAggregateMessageOrigin, pageIndex: u32, messageIndex: u32], { id: U8aFixed, origin: CumulusPrimitivesCoreAggregateMessageOrigin, pageIndex: u32, messageIndex: u32 }>;
PageReaped: AugmentedEvent<ApiType, [origin: CumulusPrimitivesCoreAggregateMessageOrigin, index: u32], { origin: CumulusPrimitivesCoreAggregateMessageOrigin, index: u32 }>;
Processed: AugmentedEvent<ApiType, [id: H256, origin: CumulusPrimitivesCoreAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool], { id: H256, origin: CumulusPrimitivesCoreAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
ProcessingFailed: AugmentedEvent<ApiType, [id: H256, origin: CumulusPrimitivesCoreAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError], { id: H256, origin: CumulusPrimitivesCoreAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
multisig: {
MultisigApproval: AugmentedEvent<ApiType, [approving: AccountId32, timepoint: PalletMultisigTimepoint, multisig: AccountId32, callHash: U8aFixed], { approving: AccountId32, timepoint: PalletMultisigTimepoint, multisig: AccountId32, callHash: U8aFixed }>;
MultisigCancelled: AugmentedEvent<ApiType, [cancelling: AccountId32, timepoint: PalletMultisigTimepoint, multisig: AccountId32, callHash: U8aFixed], { cancelling: AccountId32, timepoint: PalletMultisigTimepoint, multisig: AccountId32, callHash: U8aFixed }>;
Expand Down Expand Up @@ -446,7 +460,6 @@ declare module '@polkadot/api-base/types/events' {
parachainSystem: {
DownwardMessagesProcessed: AugmentedEvent<ApiType, [weightUsed: SpWeightsWeightV2Weight, dmqHead: H256], { weightUsed: SpWeightsWeightV2Weight, dmqHead: H256 }>;
DownwardMessagesReceived: AugmentedEvent<ApiType, [count: u32], { count: u32 }>;
UpgradeAuthorized: AugmentedEvent<ApiType, [codeHash: H256], { codeHash: H256 }>;
UpwardMessageSent: AugmentedEvent<ApiType, [messageHash: Option<U8aFixed>], { messageHash: Option<U8aFixed> }>;
ValidationFunctionApplied: AugmentedEvent<ApiType, [relayChainBlockNum: u32], { relayChainBlockNum: u32 }>;
ValidationFunctionDiscarded: AugmentedEvent<ApiType, []>;
Expand Down Expand Up @@ -565,7 +578,8 @@ declare module '@polkadot/api-base/types/events' {
[key: string]: AugmentedEvent<ApiType>;
};
sudo: {
KeyChanged: AugmentedEvent<ApiType, [oldSudoer: Option<AccountId32>], { oldSudoer: Option<AccountId32> }>;
KeyChanged: AugmentedEvent<ApiType, [old: Option<AccountId32>, new_: AccountId32], { old: Option<AccountId32>, new_: AccountId32 }>;
KeyRemoved: AugmentedEvent<ApiType, []>;
Sudid: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;
SudoAsDone: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;
/**
Expand All @@ -580,6 +594,7 @@ declare module '@polkadot/api-base/types/events' {
KilledAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;
NewAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;
Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;
UpgradeAuthorized: AugmentedEvent<ApiType, [codeHash: H256, checkVersion: bool], { codeHash: H256, checkVersion: bool }>;
/**
* Generic event
**/
Expand Down Expand Up @@ -722,12 +737,6 @@ declare module '@polkadot/api-base/types/events' {
[key: string]: AugmentedEvent<ApiType>;
};
xcmpQueue: {
BadFormat: AugmentedEvent<ApiType, [messageHash: U8aFixed], { messageHash: U8aFixed }>;
BadVersion: AugmentedEvent<ApiType, [messageHash: U8aFixed], { messageHash: U8aFixed }>;
Fail: AugmentedEvent<ApiType, [messageHash: U8aFixed, messageId: U8aFixed, error: XcmV3TraitsError, weight: SpWeightsWeightV2Weight], { messageHash: U8aFixed, messageId: U8aFixed, error: XcmV3TraitsError, weight: SpWeightsWeightV2Weight }>;
OverweightEnqueued: AugmentedEvent<ApiType, [sender: u32, sentAt: u32, index: u64, required: SpWeightsWeightV2Weight], { sender: u32, sentAt: u32, index: u64, required: SpWeightsWeightV2Weight }>;
OverweightServiced: AugmentedEvent<ApiType, [index: u64, used: SpWeightsWeightV2Weight], { index: u64, used: SpWeightsWeightV2Weight }>;
Success: AugmentedEvent<ApiType, [messageHash: U8aFixed, messageId: U8aFixed, weight: SpWeightsWeightV2Weight], { messageHash: U8aFixed, messageId: U8aFixed, weight: SpWeightsWeightV2Weight }>;
XcmpMessageSent: AugmentedEvent<ApiType, [messageHash: U8aFixed], { messageHash: U8aFixed }>;
/**
* Generic event
Expand Down
Loading

0 comments on commit ec59960

Please sign in to comment.