Skip to content

Commit

Permalink
Merge pull request #40 from AcalaNetwork/runtime-2200
Browse files Browse the repository at this point in the history
update types for runtime 2200
  • Loading branch information
shunjizhan authored Sep 27, 2023
2 parents ac597ab + 6dd14f4 commit a7578a6
Show file tree
Hide file tree
Showing 9 changed files with 1,625 additions and 918 deletions.
56 changes: 54 additions & 2 deletions packages/types/src/interfaces/augment-api-consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import '@polkadot/api-base/types/consts';

import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
import type { Option, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
import type { 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, XcmV3MultiLocation } from '@polkadot/types/lookup';
Expand All @@ -16,6 +16,7 @@ export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>
declare module '@polkadot/api-base/types/consts' {
interface AugmentedConsts<ApiType extends ApiTypes> {
acalaOracle: {
maxFeedValues: u32 & AugmentedConst<ApiType>;
maxHasDispatchedSize: u32 & AugmentedConst<ApiType>;
rootOperatorAccountId: AccountId32 & AugmentedConst<ApiType>;
/**
Expand Down Expand Up @@ -51,6 +52,8 @@ 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 @@ -148,6 +151,17 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
earning: {
instantUnstakeFee: Option<Permill> & AugmentedConst<ApiType>;
lockIdentifier: U8aFixed & AugmentedConst<ApiType>;
maxUnbondingChunks: u32 & AugmentedConst<ApiType>;
minBond: u128 & AugmentedConst<ApiType>;
unbondingPeriod: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
evm: {
developerDeposit: u128 & AugmentedConst<ApiType>;
networkContractSource: H160 & AugmentedConst<ApiType>;
Expand All @@ -168,6 +182,20 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
financialCouncil: {
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
generalCouncil: {
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
homa: {
activeSubAccountsIndexList: Vec<u16> & AugmentedConst<ApiType>;
bondingDuration: u32 & AugmentedConst<ApiType>;
Expand All @@ -183,6 +211,13 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
homaCouncil: {
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
honzon: {
depositPerAuthorization: u128 & AugmentedConst<ApiType>;
/**
Expand All @@ -200,7 +235,6 @@ declare module '@polkadot/api-base/types/consts' {
};
incentives: {
accumulatePeriod: u32 & AugmentedConst<ApiType>;
earnShareBooster: Permill & AugmentedConst<ApiType>;
nativeCurrencyId: AcalaPrimitivesCurrencyCurrencyId & AugmentedConst<ApiType>;
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
rewardsSource: AccountId32 & AugmentedConst<ApiType>;
Expand All @@ -209,6 +243,16 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
liquidCrowdloan: {
crowdloanVault: AccountId32 & AugmentedConst<ApiType>;
liquidCrowdloanCurrencyId: AcalaPrimitivesCurrencyCurrencyId & AugmentedConst<ApiType>;
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
relayChainCurrencyId: AcalaPrimitivesCurrencyCurrencyId & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
loans: {
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
/**
Expand Down Expand Up @@ -290,6 +334,13 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
technicalCommittee: {
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
timestamp: {
minimumPeriod: u64 & AugmentedConst<ApiType>;
/**
Expand Down Expand Up @@ -364,6 +415,7 @@ declare module '@polkadot/api-base/types/consts' {
xcmInterface: {
parachainAccount: AccountId32 & AugmentedConst<ApiType>;
relayChainUnbondingSlashingSpans: u32 & AugmentedConst<ApiType>;
selfLocation: XcmV3MultiLocation & AugmentedConst<ApiType>;
stakingCurrencyId: AcalaPrimitivesCurrencyCurrencyId & AugmentedConst<ApiType>;
/**
* Generic const
Expand Down
14 changes: 13 additions & 1 deletion packages/types/src/interfaces/augment-api-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ declare module '@polkadot/api-base/types/errors' {
DeadAccount: AugmentedError<ApiType>;
ExistentialDeposit: AugmentedError<ApiType>;
ExistingVestingSchedule: AugmentedError<ApiType>;
Expendability: AugmentedError<ApiType>;
InsufficientBalance: AugmentedError<ApiType>;
KeepAlive: AugmentedError<ApiType>;
LiquidityRestrictions: AugmentedError<ApiType>;
TooManyFreezes: AugmentedError<ApiType>;
TooManyHolds: AugmentedError<ApiType>;
TooManyReserves: AugmentedError<ApiType>;
VestingBalance: AugmentedError<ApiType>;
/**
Expand Down Expand Up @@ -257,6 +259,16 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
earning: {
BelowMinBondThreshold: AugmentedError<ApiType>;
MaxUnlockChunksExceeded: AugmentedError<ApiType>;
NotAllowed: AugmentedError<ApiType>;
NotBonded: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
emergencyShutdown: {
AlreadyShutdown: AugmentedError<ApiType>;
CanNotRefund: AugmentedError<ApiType>;
Expand Down
Loading

0 comments on commit a7578a6

Please sign in to comment.