Skip to content

Update Substrate types to Polkadot stable2503-5 #6172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/api-augment/src/substrate/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
import type { AccountId32, H160, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletReviveEvmApiDebugRpcTypesCallTrace, PalletReviveEvmApiDebugRpcTypesTracerConfig, PalletReviveEvmApiRpcTypesGenGenericTransaction, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResultExecReturnValue, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthTransactError, PalletRevivePrimitivesEthTransactInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletReviveEvmApiDebugRpcTypesTrace, PalletReviveEvmApiDebugRpcTypesTracerType, PalletReviveEvmApiRpcTypesGenGenericTransaction, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResultExecReturnValue, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthTransactError, PalletRevivePrimitivesEthTransactInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
import type { IExtrinsic, Observable } from '@polkadot/types/types';

export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
Expand Down Expand Up @@ -458,15 +458,15 @@ declare module '@polkadot/api-base/types/calls' {
/**
* Traces the execution of an entire block and returns call traces.,, This is intended to be called through `state_call` to replay the block from the, parent block.,, See eth-rpc `debug_traceBlockByNumber` for usage.
**/
traceBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerConfig | { CallTracer: any } | string | Uint8Array) => Observable<Vec<ITuple<[u32, PalletReviveEvmApiDebugRpcTypesCallTrace]>>>>;
traceBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerType | { CallTracer: any } | string | Uint8Array) => Observable<Vec<ITuple<[u32, PalletReviveEvmApiDebugRpcTypesTrace]>>>>;
/**
* Dry run and return the trace of the given call.,, See eth-rpc `debug_traceCall` for usage.
**/
traceCall: AugmentedCall<ApiType, (tx: PalletReviveEvmApiRpcTypesGenGenericTransaction | { accessList?: any; blobVersionedHashes?: any; blobs?: any; chainId?: any; from?: any; gas?: any; gasPrice?: any; input?: any; maxFeePerBlobGas?: any; maxFeePerGas?: any; maxPriorityFeePerGas?: any; nonce?: any; to?: any; r_type?: any; value?: any } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerConfig | { CallTracer: any } | string | Uint8Array) => Observable<Result<PalletReviveEvmApiDebugRpcTypesCallTrace, PalletRevivePrimitivesEthTransactError>>>;
traceCall: AugmentedCall<ApiType, (tx: PalletReviveEvmApiRpcTypesGenGenericTransaction | { accessList?: any; blobVersionedHashes?: any; blobs?: any; chainId?: any; from?: any; gas?: any; gasPrice?: any; input?: any; maxFeePerBlobGas?: any; maxFeePerGas?: any; maxPriorityFeePerGas?: any; nonce?: any; to?: any; r_type?: any; value?: any } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerType | { CallTracer: any } | string | Uint8Array) => Observable<Result<PalletReviveEvmApiDebugRpcTypesTrace, PalletRevivePrimitivesEthTransactError>>>;
/**
* Traces the execution of a specific transaction within a block.,, This is intended to be called through `state_call` to replay the block from the, parent hash up to the transaction.,, See eth-rpc `debug_traceTransaction` for usage.
**/
traceTx: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, tx_index: u32 | AnyNumber | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerConfig | { CallTracer: any } | string | Uint8Array) => Observable<Option<PalletReviveEvmApiDebugRpcTypesCallTrace>>>;
traceTx: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, tx_index: u32 | AnyNumber | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerType | { CallTracer: any } | string | Uint8Array) => Observable<Option<PalletReviveEvmApiDebugRpcTypesTrace>>>;
/**
* Upload new code without instantiating a contract from it.,, See [`crate::Pallet::bare_upload_code`].
**/
Expand Down
55 changes: 34 additions & 21 deletions packages/types-augment/src/lookup/substrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7351,7 +7351,7 @@ export default {
compute: 'PalletElectionProviderMultiPhaseElectionCompute'
},
/**
* Lookup621: pallet_election_provider_multi_phase::RoundSnapshot<sp_core::crypto::AccountId32, DataProvider>
* Lookup621: pallet_election_provider_multi_phase::RoundSnapshot<sp_core::crypto::AccountId32, VoterType>
**/
PalletElectionProviderMultiPhaseRoundSnapshot: {
voters: 'Vec<(AccountId32,u64,Vec<AccountId32>)>',
Expand Down Expand Up @@ -9436,17 +9436,30 @@ export default {
_enum: ['DoesntExist', 'KeyDecodingFailed']
},
/**
* Lookup1084: pallet_revive::evm::api::debug_rpc_types::TracerConfig
* Lookup1084: pallet_revive::evm::api::debug_rpc_types::TracerType
**/
PalletReviveEvmApiDebugRpcTypesTracerConfig: {
PalletReviveEvmApiDebugRpcTypesTracerType: {
_enum: {
CallTracer: {
withLogs: 'bool'
}
CallTracer: 'Option<PalletReviveEvmApiDebugRpcTypesCallTracerConfig>'
}
},
/**
* Lookup1086: pallet_revive::evm::api::debug_rpc_types::CallTracerConfig
**/
PalletReviveEvmApiDebugRpcTypesCallTracerConfig: {
withLogs: 'bool',
onlyTopCall: 'bool'
},
/**
* Lookup1089: pallet_revive::evm::api::debug_rpc_types::Trace
**/
PalletReviveEvmApiDebugRpcTypesTrace: {
_enum: {
Call: 'PalletReviveEvmApiDebugRpcTypesCallTrace'
}
},
/**
* Lookup1087: pallet_revive::evm::api::debug_rpc_types::CallTrace<primitive_types::U256>
* Lookup1090: pallet_revive::evm::api::debug_rpc_types::CallTrace<primitive_types::U256>
**/
PalletReviveEvmApiDebugRpcTypesCallTrace: {
from: 'H160',
Expand All @@ -9463,7 +9476,7 @@ export default {
callType: 'PalletReviveEvmApiDebugRpcTypesCallType'
},
/**
* Lookup1091: pallet_revive::evm::api::debug_rpc_types::CallLog
* Lookup1094: pallet_revive::evm::api::debug_rpc_types::CallLog
**/
PalletReviveEvmApiDebugRpcTypesCallLog: {
address: 'H160',
Expand All @@ -9472,86 +9485,86 @@ export default {
position: 'u32'
},
/**
* Lookup1092: pallet_revive::evm::api::debug_rpc_types::CallType
* Lookup1095: pallet_revive::evm::api::debug_rpc_types::CallType
**/
PalletReviveEvmApiDebugRpcTypesCallType: {
_enum: ['Call', 'StaticCall', 'DelegateCall']
},
/**
* Lookup1095: pallet_transaction_payment::types::RuntimeDispatchInfo<Balance, sp_weights::weight_v2::Weight>
* Lookup1098: pallet_transaction_payment::types::RuntimeDispatchInfo<Balance, sp_weights::weight_v2::Weight>
**/
PalletTransactionPaymentRuntimeDispatchInfo: {
weight: 'SpWeightsWeightV2Weight',
class: 'FrameSupportDispatchDispatchClass',
partialFee: 'u128'
},
/**
* Lookup1096: pallet_transaction_payment::types::FeeDetails<Balance>
* Lookup1099: pallet_transaction_payment::types::FeeDetails<Balance>
**/
PalletTransactionPaymentFeeDetails: {
inclusionFee: 'Option<PalletTransactionPaymentInclusionFee>',
tip: 'u128'
},
/**
* Lookup1098: pallet_transaction_payment::types::InclusionFee<Balance>
* Lookup1101: pallet_transaction_payment::types::InclusionFee<Balance>
**/
PalletTransactionPaymentInclusionFee: {
baseFee: 'u128',
lenFee: 'u128',
adjustedWeightFee: 'u128'
},
/**
* Lookup1102: sp_consensus_beefy::ValidatorSet<sp_consensus_beefy::ecdsa_crypto::Public>
* Lookup1105: sp_consensus_beefy::ValidatorSet<sp_consensus_beefy::ecdsa_crypto::Public>
**/
SpConsensusBeefyValidatorSet: {
validators: 'Vec<SpConsensusBeefyEcdsaCryptoPublic>',
id: 'u64'
},
/**
* Lookup1103: sp_consensus_beefy::ForkVotingProof<sp_runtime::generic::header::Header<Number, Hash>, sp_consensus_beefy::ecdsa_crypto::Public, sp_runtime::OpaqueValue>
* Lookup1106: sp_consensus_beefy::ForkVotingProof<sp_runtime::generic::header::Header<Number, Hash>, sp_consensus_beefy::ecdsa_crypto::Public, sp_runtime::OpaqueValue>
**/
SpConsensusBeefyForkVotingProofOpaqueValue: {
vote: 'SpConsensusBeefyVoteMessage',
ancestryProof: 'Bytes',
header: 'SpRuntimeHeader'
},
/**
* Lookup1105: sp_mmr_primitives::Error
* Lookup1108: sp_mmr_primitives::Error
**/
SpMmrPrimitivesError: {
_enum: ['InvalidNumericOp', 'Push', 'GetRoot', 'Commit', 'GenerateProof', 'Verify', 'LeafNotFound', 'PalletNotIncluded', 'InvalidLeafIndex', 'InvalidBestKnownBlock']
},
/**
* Lookup1111: sp_mmr_primitives::LeafProof<primitive_types::H256>
* Lookup1114: sp_mmr_primitives::LeafProof<primitive_types::H256>
**/
SpMmrPrimitivesLeafProof: {
leafIndices: 'Vec<u64>',
leafCount: 'u64',
items: 'Vec<H256>'
},
/**
* Lookup1113: sp_mixnet::types::SessionStatus
* Lookup1116: sp_mixnet::types::SessionStatus
**/
SpMixnetSessionStatus: {
currentIndex: 'u32',
phase: 'SpMixnetSessionPhase'
},
/**
* Lookup1114: sp_mixnet::types::SessionPhase
* Lookup1117: sp_mixnet::types::SessionPhase
**/
SpMixnetSessionPhase: {
_enum: ['CoverToCurrent', 'RequestsToCurrent', 'CoverToPrev', 'DisconnectFromPrev']
},
/**
* Lookup1117: sp_mixnet::types::Mixnode
* Lookup1120: sp_mixnet::types::Mixnode
**/
SpMixnetMixnode: {
kxPublic: '[u8;32]',
peerId: '[u8;32]',
externalAddresses: 'Vec<Bytes>'
},
/**
* Lookup1118: sp_mixnet::types::MixnodesErr
* Lookup1121: sp_mixnet::types::MixnodesErr
**/
SpMixnetMixnodesErr: {
_enum: {
Expand All @@ -9562,7 +9575,7 @@ export default {
}
},
/**
* Lookup1124: kitchensink_runtime::RuntimeError
* Lookup1127: kitchensink_runtime::RuntimeError
**/
KitchensinkRuntimeRuntimeError: {
_enum: {
Expand Down
51 changes: 31 additions & 20 deletions packages/types-augment/src/lookup/types-substrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10309,16 +10309,27 @@ declare module '@polkadot/types/lookup' {
readonly type: 'DoesntExist' | 'KeyDecodingFailed';
}

/** @name PalletReviveEvmApiDebugRpcTypesTracerConfig (1084) */
interface PalletReviveEvmApiDebugRpcTypesTracerConfig extends Enum {
/** @name PalletReviveEvmApiDebugRpcTypesTracerType (1084) */
interface PalletReviveEvmApiDebugRpcTypesTracerType extends Enum {
readonly isCallTracer: boolean;
readonly asCallTracer: {
readonly withLogs: bool;
} & Struct;
readonly asCallTracer: Option<PalletReviveEvmApiDebugRpcTypesCallTracerConfig>;
readonly type: 'CallTracer';
}

/** @name PalletReviveEvmApiDebugRpcTypesCallTrace (1087) */
/** @name PalletReviveEvmApiDebugRpcTypesCallTracerConfig (1086) */
interface PalletReviveEvmApiDebugRpcTypesCallTracerConfig extends Struct {
readonly withLogs: bool;
readonly onlyTopCall: bool;
}

/** @name PalletReviveEvmApiDebugRpcTypesTrace (1089) */
interface PalletReviveEvmApiDebugRpcTypesTrace extends Enum {
readonly isCall: boolean;
readonly asCall: PalletReviveEvmApiDebugRpcTypesCallTrace;
readonly type: 'Call';
}

/** @name PalletReviveEvmApiDebugRpcTypesCallTrace (1090) */
interface PalletReviveEvmApiDebugRpcTypesCallTrace extends Struct {
readonly from: H160;
readonly gas: U256;
Expand All @@ -10334,56 +10345,56 @@ declare module '@polkadot/types/lookup' {
readonly callType: PalletReviveEvmApiDebugRpcTypesCallType;
}

/** @name PalletReviveEvmApiDebugRpcTypesCallLog (1091) */
/** @name PalletReviveEvmApiDebugRpcTypesCallLog (1094) */
interface PalletReviveEvmApiDebugRpcTypesCallLog extends Struct {
readonly address: H160;
readonly topics: Vec<H256>;
readonly data: Bytes;
readonly position: u32;
}

/** @name PalletReviveEvmApiDebugRpcTypesCallType (1092) */
/** @name PalletReviveEvmApiDebugRpcTypesCallType (1095) */
interface PalletReviveEvmApiDebugRpcTypesCallType extends Enum {
readonly isCall: boolean;
readonly isStaticCall: boolean;
readonly isDelegateCall: boolean;
readonly type: 'Call' | 'StaticCall' | 'DelegateCall';
}

/** @name PalletTransactionPaymentRuntimeDispatchInfo (1095) */
/** @name PalletTransactionPaymentRuntimeDispatchInfo (1098) */
interface PalletTransactionPaymentRuntimeDispatchInfo extends Struct {
readonly weight: SpWeightsWeightV2Weight;
readonly class: FrameSupportDispatchDispatchClass;
readonly partialFee: u128;
}

/** @name PalletTransactionPaymentFeeDetails (1096) */
/** @name PalletTransactionPaymentFeeDetails (1099) */
interface PalletTransactionPaymentFeeDetails extends Struct {
readonly inclusionFee: Option<PalletTransactionPaymentInclusionFee>;
readonly tip: u128;
}

/** @name PalletTransactionPaymentInclusionFee (1098) */
/** @name PalletTransactionPaymentInclusionFee (1101) */
interface PalletTransactionPaymentInclusionFee extends Struct {
readonly baseFee: u128;
readonly lenFee: u128;
readonly adjustedWeightFee: u128;
}

/** @name SpConsensusBeefyValidatorSet (1102) */
/** @name SpConsensusBeefyValidatorSet (1105) */
interface SpConsensusBeefyValidatorSet extends Struct {
readonly validators: Vec<SpConsensusBeefyEcdsaCryptoPublic>;
readonly id: u64;
}

/** @name SpConsensusBeefyForkVotingProofOpaqueValue (1103) */
/** @name SpConsensusBeefyForkVotingProofOpaqueValue (1106) */
interface SpConsensusBeefyForkVotingProofOpaqueValue extends Struct {
readonly vote: SpConsensusBeefyVoteMessage;
readonly ancestryProof: Bytes;
readonly header: SpRuntimeHeader;
}

/** @name SpMmrPrimitivesError (1105) */
/** @name SpMmrPrimitivesError (1108) */
interface SpMmrPrimitivesError extends Enum {
readonly isInvalidNumericOp: boolean;
readonly isPush: boolean;
Expand All @@ -10398,20 +10409,20 @@ declare module '@polkadot/types/lookup' {
readonly type: 'InvalidNumericOp' | 'Push' | 'GetRoot' | 'Commit' | 'GenerateProof' | 'Verify' | 'LeafNotFound' | 'PalletNotIncluded' | 'InvalidLeafIndex' | 'InvalidBestKnownBlock';
}

/** @name SpMmrPrimitivesLeafProof (1111) */
/** @name SpMmrPrimitivesLeafProof (1114) */
interface SpMmrPrimitivesLeafProof extends Struct {
readonly leafIndices: Vec<u64>;
readonly leafCount: u64;
readonly items: Vec<H256>;
}

/** @name SpMixnetSessionStatus (1113) */
/** @name SpMixnetSessionStatus (1116) */
interface SpMixnetSessionStatus extends Struct {
readonly currentIndex: u32;
readonly phase: SpMixnetSessionPhase;
}

/** @name SpMixnetSessionPhase (1114) */
/** @name SpMixnetSessionPhase (1117) */
interface SpMixnetSessionPhase extends Enum {
readonly isCoverToCurrent: boolean;
readonly isRequestsToCurrent: boolean;
Expand All @@ -10420,14 +10431,14 @@ declare module '@polkadot/types/lookup' {
readonly type: 'CoverToCurrent' | 'RequestsToCurrent' | 'CoverToPrev' | 'DisconnectFromPrev';
}

/** @name SpMixnetMixnode (1117) */
/** @name SpMixnetMixnode (1120) */
interface SpMixnetMixnode extends Struct {
readonly kxPublic: U8aFixed;
readonly peerId: U8aFixed;
readonly externalAddresses: Vec<Bytes>;
}

/** @name SpMixnetMixnodesErr (1118) */
/** @name SpMixnetMixnodesErr (1121) */
interface SpMixnetMixnodesErr extends Enum {
readonly isInsufficientRegistrations: boolean;
readonly asInsufficientRegistrations: {
Expand All @@ -10437,7 +10448,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'InsufficientRegistrations';
}

/** @name KitchensinkRuntimeRuntimeError (1124) */
/** @name KitchensinkRuntimeRuntimeError (1127) */
interface KitchensinkRuntimeRuntimeError extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSystemError;
Expand Down
6 changes: 4 additions & 2 deletions packages/types-augment/src/registry/substrate.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/types-support/src/metadata/v15/substrate-hex.ts

Large diffs are not rendered by default.

Loading