--- a/tests/src/interfaces/augment-api-tx.ts +++ b/tests/src/interfaces/augment-api-tx.ts @@ -713,8 +713,14 @@ maintenance: { disable: AugmentedSubmittable<() => SubmittableExtrinsic, []>; enable: AugmentedSubmittable<() => SubmittableExtrinsic, []>; - executePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; /** + * Execute a runtime call stored as a preimage. + * + * `weight_bound` is the maximum weight that the caller is willing + * to allow the extrinsic to be executed with. + **/ + executePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array, weightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [H256, SpWeightsWeightV2Weight]>; + /** * Generic tx **/ [key: string]: SubmittableExtrinsicFunction; --- a/tests/src/interfaces/default/types.ts +++ b/tests/src/interfaces/default/types.ts @@ -2004,6 +2004,7 @@ readonly isExecutePreimage: boolean; readonly asExecutePreimage: { readonly hash_: H256; + readonly weightBound: SpWeightsWeightV2Weight; } & Struct; readonly type: 'Enable' | 'Disable' | 'ExecutePreimage'; } --- a/tests/src/interfaces/lookup.ts +++ b/tests/src/interfaces/lookup.ts @@ -3011,7 +3011,8 @@ _alias: { hash_: 'hash', }, - hash_: 'H256' + hash_: 'H256', + weightBound: 'SpWeightsWeightV2Weight' } } }, --- a/tests/src/interfaces/types-lookup.ts +++ b/tests/src/interfaces/types-lookup.ts @@ -3250,6 +3250,7 @@ readonly isExecutePreimage: boolean; readonly asExecutePreimage: { readonly hash_: H256; + readonly weightBound: SpWeightsWeightV2Weight; } & Struct; readonly type: 'Enable' | 'Disable' | 'ExecutePreimage'; }