Update substrate types for polkadot-sdk 2503-2-rc1 (#6137)

This commit is contained in:
rajk93
2025-05-09 11:58:33 -03:00
committed by GitHub
parent 3491c4b101
commit b546e1d51d
17 changed files with 37844 additions and 31651 deletions
+18 -55
View File
@@ -502,6 +502,10 @@ export default {
Response: 'StagingXcmV4Location'
}
},
/**
* Lookup165: sp_core::Void
**/
SpCoreVoid: 'Null',
/**
* Lookup169: polkadot_runtime_common::claims::pallet::Call<T>
**/
@@ -2356,33 +2360,6 @@ export default {
}
}
},
/**
* Lookup462: pallet_delegated_staking::pallet::Event<T>
**/
PalletDelegatedStakingEvent: {
_enum: {
Delegated: {
agent: 'AccountId32',
delegator: 'AccountId32',
amount: 'u128',
},
Released: {
agent: 'AccountId32',
delegator: 'AccountId32',
amount: 'u128',
},
Slashed: {
agent: 'AccountId32',
delegator: 'AccountId32',
amount: 'u128',
},
MigratedDelegation: {
agent: 'AccountId32',
delegator: 'AccountId32',
amount: 'u128'
}
}
},
/**
* Lookup463: polkadot_runtime_parachains::inclusion::pallet::Event<T>
**/
@@ -2882,12 +2859,6 @@ export default {
StateTrieMigration: 'PalletStateTrieMigrationHoldReason'
}
},
/**
* Lookup546: pallet_delegated_staking::pallet::HoldReason
**/
PalletDelegatedStakingHoldReason: {
_enum: ['StakingDelegation']
},
/**
* Lookup551: polkadot_runtime::RuntimeFreezeReason
**/
@@ -2964,34 +2935,26 @@ export default {
inQueue: 'bool',
alarm: 'Option<(u32,(u32,u32))>'
},
/**
* Lookup626: pallet_referenda::types::TrackInfo<Balance, Moment>
**/
PalletReferendaTrackInfo: {
name: 'Text',
maxDeciding: 'u32',
decisionDeposit: 'u128',
preparePeriod: 'u32',
decisionPeriod: 'u32',
confirmPeriod: 'u32',
minEnactmentPeriod: 'u32',
minApproval: 'PalletReferendaCurve',
minSupport: 'PalletReferendaCurve'
},
/**
* Lookup632: polkadot_runtime_common::claims::pallet::Error<T>
**/
PolkadotRuntimeCommonClaimsPalletError: {
_enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists']
},
/**
* Lookup695: pallet_delegated_staking::types::Delegation<T>
**/
PalletDelegatedStakingDelegation: {
agent: 'AccountId32',
amount: 'u128'
},
/**
* Lookup696: pallet_delegated_staking::types::AgentLedger<T>
**/
PalletDelegatedStakingAgentLedger: {
payee: 'AccountId32',
totalDelegated: 'Compact<u128>',
unclaimedWithdrawals: 'Compact<u128>',
pendingSlash: 'Compact<u128>'
},
/**
* Lookup697: pallet_delegated_staking::pallet::Error<T>
**/
PalletDelegatedStakingError: {
_enum: ['NotAllowed', 'AlreadyStaking', 'InvalidRewardDestination', 'InvalidDelegation', 'NotEnoughFunds', 'NotAgent', 'NotDelegator', 'BadState', 'UnappliedSlash', 'NothingToSlash', 'WithdrawFailed', 'NotSupported']
},
/**
* Lookup698: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
**/
File diff suppressed because it is too large Load Diff
@@ -5,7 +5,7 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/lookup';
import type { BTreeMap, BitVec, Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { BTreeMap, BitVec, Bytes, Compact, Enum, Null, Option, Result, Struct, Text, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, H256, PerU16, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
@@ -461,6 +461,9 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Xcm' | 'Response';
}
/** @name SpCoreVoid (165) */
type SpCoreVoid = Null;
/** @name PolkadotRuntimeCommonClaimsPalletCall (169) */
interface PolkadotRuntimeCommonClaimsPalletCall extends Enum {
readonly isClaim: boolean;
@@ -2345,35 +2348,6 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Claimed';
}
/** @name PalletDelegatedStakingEvent (462) */
interface PalletDelegatedStakingEvent extends Enum {
readonly isDelegated: boolean;
readonly asDelegated: {
readonly agent: AccountId32;
readonly delegator: AccountId32;
readonly amount: u128;
} & Struct;
readonly isReleased: boolean;
readonly asReleased: {
readonly agent: AccountId32;
readonly delegator: AccountId32;
readonly amount: u128;
} & Struct;
readonly isSlashed: boolean;
readonly asSlashed: {
readonly agent: AccountId32;
readonly delegator: AccountId32;
readonly amount: u128;
} & Struct;
readonly isMigratedDelegation: boolean;
readonly asMigratedDelegation: {
readonly agent: AccountId32;
readonly delegator: AccountId32;
readonly amount: u128;
} & Struct;
readonly type: 'Delegated' | 'Released' | 'Slashed' | 'MigratedDelegation';
}
/** @name PolkadotRuntimeParachainsInclusionPalletEvent (463) */
interface PolkadotRuntimeParachainsInclusionPalletEvent extends Enum {
readonly isCandidateBacked: boolean;
@@ -2825,12 +2799,6 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Preimage' | 'DelegatedStaking' | 'StateTrieMigration';
}
/** @name PalletDelegatedStakingHoldReason (546) */
interface PalletDelegatedStakingHoldReason extends Enum {
readonly isStakingDelegation: boolean;
readonly type: 'StakingDelegation';
}
/** @name PolkadotRuntimeRuntimeFreezeReason (551) */
interface PolkadotRuntimeRuntimeFreezeReason extends Enum {
readonly isNominationPools: boolean;
@@ -2870,6 +2838,19 @@ declare module '@polkadot/types/lookup' {
readonly alarm: Option<ITuple<[u32, ITuple<[u32, u32]>]>>;
}
/** @name PalletReferendaTrackInfo (626) */
interface PalletReferendaTrackInfo extends Struct {
readonly name: Text;
readonly maxDeciding: u32;
readonly decisionDeposit: u128;
readonly preparePeriod: u32;
readonly decisionPeriod: u32;
readonly confirmPeriod: u32;
readonly minEnactmentPeriod: u32;
readonly minApproval: PalletReferendaCurve;
readonly minSupport: PalletReferendaCurve;
}
/** @name PolkadotRuntimeCommonClaimsPalletError (632) */
interface PolkadotRuntimeCommonClaimsPalletError extends Enum {
readonly isInvalidEthereumSignature: boolean;
@@ -2881,37 +2862,6 @@ declare module '@polkadot/types/lookup' {
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
}
/** @name PalletDelegatedStakingDelegation (695) */
interface PalletDelegatedStakingDelegation extends Struct {
readonly agent: AccountId32;
readonly amount: u128;
}
/** @name PalletDelegatedStakingAgentLedger (696) */
interface PalletDelegatedStakingAgentLedger extends Struct {
readonly payee: AccountId32;
readonly totalDelegated: Compact<u128>;
readonly unclaimedWithdrawals: Compact<u128>;
readonly pendingSlash: Compact<u128>;
}
/** @name PalletDelegatedStakingError (697) */
interface PalletDelegatedStakingError extends Enum {
readonly isNotAllowed: boolean;
readonly isAlreadyStaking: boolean;
readonly isInvalidRewardDestination: boolean;
readonly isInvalidDelegation: boolean;
readonly isNotEnoughFunds: boolean;
readonly isNotAgent: boolean;
readonly isNotDelegator: boolean;
readonly isBadState: boolean;
readonly isUnappliedSlash: boolean;
readonly isNothingToSlash: boolean;
readonly isWithdrawFailed: boolean;
readonly isNotSupported: boolean;
readonly type: 'NotAllowed' | 'AlreadyStaking' | 'InvalidRewardDestination' | 'InvalidDelegation' | 'NotEnoughFunds' | 'NotAgent' | 'NotDelegator' | 'BadState' | 'UnappliedSlash' | 'NothingToSlash' | 'WithdrawFailed' | 'NotSupported';
}
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (698) */
interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
readonly maxCodeSize: u32;
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long