Skip to content

Commit

Permalink
runtime 2250
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjizhan committed Jul 17, 2024
1 parent fa6c5cd commit 6a2df5c
Show file tree
Hide file tree
Showing 9 changed files with 2,095 additions and 1,340 deletions.
17 changes: 12 additions & 5 deletions packages/types/src/interfaces/augment-api-consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import '@polkadot/api-base/types/consts';

import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
import type { Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
import type { Codec, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H160, Percent, Permill } from '@polkadot/types/interfaces/runtime';
import type { AcalaPrimitivesCurrencyCurrencyId, FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
import type { AcalaPrimitivesCurrencyCurrencyId, FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV4Location } from '@polkadot/types/lookup';

export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;

Expand Down Expand Up @@ -53,7 +53,6 @@ declare module '@polkadot/api-base/types/consts' {
balances: {
existentialDeposit: u128 & AugmentedConst<ApiType>;
maxFreezes: u32 & AugmentedConst<ApiType>;
maxHolds: u32 & AugmentedConst<ApiType>;
maxLocks: u32 & AugmentedConst<ApiType>;
maxReserves: u32 & AugmentedConst<ApiType>;
/**
Expand Down Expand Up @@ -288,6 +287,13 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
parachainSystem: {
selfParaId: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
prices: {
getLiquidCurrencyId: AcalaPrimitivesCurrencyCurrencyId & AugmentedConst<ApiType>;
getStableCurrencyId: AcalaPrimitivesCurrencyCurrencyId & AugmentedConst<ApiType>;
Expand Down Expand Up @@ -425,7 +431,7 @@ declare module '@polkadot/api-base/types/consts' {
xcmInterface: {
parachainAccount: AccountId32 & AugmentedConst<ApiType>;
relayChainUnbondingSlashingSpans: u32 & AugmentedConst<ApiType>;
selfLocation: StagingXcmV3MultiLocation & AugmentedConst<ApiType>;
selfLocation: StagingXcmV4Location & AugmentedConst<ApiType>;
stakingCurrencyId: AcalaPrimitivesCurrencyCurrencyId & AugmentedConst<ApiType>;
/**
* Generic const
Expand All @@ -441,7 +447,8 @@ declare module '@polkadot/api-base/types/consts' {
};
xTokens: {
baseXcmWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
selfLocation: StagingXcmV3MultiLocation & AugmentedConst<ApiType>;
rateLimiterId: Null & AugmentedConst<ApiType>;
selfLocation: StagingXcmV4Location & AugmentedConst<ApiType>;
/**
* Generic const
**/
Expand Down
9 changes: 7 additions & 2 deletions packages/types/src/interfaces/augment-api-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ declare module '@polkadot/api-base/types/errors' {
AssetIdExisted: AugmentedError<ApiType>;
AssetIdNotExists: AugmentedError<ApiType>;
BadLocation: AugmentedError<ApiType>;
MultiLocationExisted: AugmentedError<ApiType>;
LocationExisted: AugmentedError<ApiType>;
/**
* Generic error
**/
Expand Down Expand Up @@ -77,10 +77,12 @@ declare module '@polkadot/api-base/types/errors' {
};
balances: {
DeadAccount: AugmentedError<ApiType>;
DeltaZero: AugmentedError<ApiType>;
ExistentialDeposit: AugmentedError<ApiType>;
ExistingVestingSchedule: AugmentedError<ApiType>;
Expendability: AugmentedError<ApiType>;
InsufficientBalance: AugmentedError<ApiType>;
IssuanceDeactivated: AugmentedError<ApiType>;
LiquidityRestrictions: AugmentedError<ApiType>;
TooManyFreezes: AugmentedError<ApiType>;
TooManyHolds: AugmentedError<ApiType>;
Expand Down Expand Up @@ -604,6 +606,7 @@ declare module '@polkadot/api-base/types/errors' {
rewards: {
CanSplitOnlyLessThanShare: AugmentedError<ApiType>;
PoolDoesNotExist: AugmentedError<ApiType>;
ShareBelowMinimal: AugmentedError<ApiType>;
ShareDoesNotExist: AugmentedError<ApiType>;
/**
* Generic error
Expand Down Expand Up @@ -669,6 +672,7 @@ declare module '@polkadot/api-base/types/errors' {
CallFiltered: AugmentedError<ApiType>;
FailedToExtractRuntimeVersion: AugmentedError<ApiType>;
InvalidSpecName: AugmentedError<ApiType>;
MultiBlockMigrationsOngoing: AugmentedError<ApiType>;
NonDefaultComposite: AugmentedError<ApiType>;
NonZeroRefCount: AugmentedError<ApiType>;
NothingAuthorized: AugmentedError<ApiType>;
Expand Down Expand Up @@ -828,7 +832,8 @@ declare module '@polkadot/api-base/types/errors' {
MinXcmFeeNotDefined: AugmentedError<ApiType>;
NotCrossChainTransfer: AugmentedError<ApiType>;
NotCrossChainTransferableCurrency: AugmentedError<ApiType>;
NotSupportedMultiLocation: AugmentedError<ApiType>;
NotSupportedLocation: AugmentedError<ApiType>;
RateLimited: AugmentedError<ApiType>;
TooManyAssetsBeingSent: AugmentedError<ApiType>;
UnweighableMessage: AugmentedError<ApiType>;
XcmExecutionFailed: AugmentedError<ApiType>;
Expand Down
Loading

0 comments on commit 6a2df5c

Please sign in to comment.