git.delta.rocks / unique-network / refs/commits / 589437134e5d

difftreelog

chore regenerate types

Fahrrader2023-02-22parent: #a75da46.patch.diff
in: master

4 files changed

modifiedtests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth
--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -713,8 +713,14 @@
     maintenance: {
       disable: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
       enable: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      executePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [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<ApiType>, [H256, SpWeightsWeightV2Weight]>;
+      /**
        * Generic tx
        **/
       [key: string]: SubmittableExtrinsicFunction<ApiType>;
modifiedtests/src/interfaces/default/types.tsdiffbeforeafterboth
2004 readonly isExecutePreimage: boolean;2004 readonly isExecutePreimage: boolean;
2005 readonly asExecutePreimage: {2005 readonly asExecutePreimage: {
2006 readonly hash_: H256;2006 readonly hash_: H256;
2007 readonly weightBound: SpWeightsWeightV2Weight;
2007 } & Struct;2008 } & Struct;
2008 readonly type: 'Enable' | 'Disable' | 'ExecutePreimage';2009 readonly type: 'Enable' | 'Disable' | 'ExecutePreimage';
2009}2010}
modifiedtests/src/interfaces/lookup.tsdiffbeforeafterboth
--- 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'
       }
     }
   },
modifiedtests/src/interfaces/types-lookup.tsdiffbeforeafterboth
--- 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';
   }