@instadapp/avocado-base 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -115,6 +115,16 @@ export declare namespace AvocadoMultisigStructs {
|
|
|
115
115
|
signature: string;
|
|
116
116
|
signer: string;
|
|
117
117
|
};
|
|
118
|
+
|
|
119
|
+
export type ChainAgnosticHashStruct = {
|
|
120
|
+
hash: PromiseOrValue<BytesLike>;
|
|
121
|
+
chainId: PromiseOrValue<BigNumberish>;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export type ChainAgnosticHashStructOutput = [string, BigNumber] & {
|
|
125
|
+
hash: string;
|
|
126
|
+
chainId: BigNumber;
|
|
127
|
+
};
|
|
118
128
|
}
|
|
119
129
|
|
|
120
130
|
export declare namespace AvoForwarderStructs {
|
|
@@ -123,7 +133,7 @@ export declare namespace AvoForwarderStructs {
|
|
|
123
133
|
index: PromiseOrValue<BigNumberish>;
|
|
124
134
|
params: AvocadoMultisigStructs.CastChainAgnosticParamsStruct;
|
|
125
135
|
signaturesParams: AvocadoMultisigStructs.SignatureParamsStruct[];
|
|
126
|
-
chainAgnosticHashes:
|
|
136
|
+
chainAgnosticHashes: AvocadoMultisigStructs.ChainAgnosticHashStruct[];
|
|
127
137
|
};
|
|
128
138
|
|
|
129
139
|
export type ExecuteBatchParamsStructOutput = [
|
|
@@ -131,13 +141,13 @@ export declare namespace AvoForwarderStructs {
|
|
|
131
141
|
number,
|
|
132
142
|
AvocadoMultisigStructs.CastChainAgnosticParamsStructOutput,
|
|
133
143
|
AvocadoMultisigStructs.SignatureParamsStructOutput[],
|
|
134
|
-
|
|
144
|
+
AvocadoMultisigStructs.ChainAgnosticHashStructOutput[]
|
|
135
145
|
] & {
|
|
136
146
|
from: string;
|
|
137
147
|
index: number;
|
|
138
148
|
params: AvocadoMultisigStructs.CastChainAgnosticParamsStructOutput;
|
|
139
149
|
signaturesParams: AvocadoMultisigStructs.SignatureParamsStructOutput[];
|
|
140
|
-
chainAgnosticHashes:
|
|
150
|
+
chainAgnosticHashes: AvocadoMultisigStructs.ChainAgnosticHashStructOutput[];
|
|
141
151
|
};
|
|
142
152
|
|
|
143
153
|
export type AddressBoolStruct = {
|
|
@@ -159,10 +169,10 @@ export interface MultisigAgnosticForwarderInterface extends utils.Interface {
|
|
|
159
169
|
"avocadoVersion(address,uint32)": FunctionFragment;
|
|
160
170
|
"avocadoVersionName(address,uint32)": FunctionFragment;
|
|
161
171
|
"computeAvocado(address,uint32)": FunctionFragment;
|
|
162
|
-
"estimateChainAgnosticV1(address,uint32,(((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),uint256),(bytes,address)[],bytes32[])": FunctionFragment;
|
|
172
|
+
"estimateChainAgnosticV1(address,uint32,(((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),uint256),(bytes,address)[],(bytes32,uint256)[])": FunctionFragment;
|
|
163
173
|
"estimateV1(address,uint32,((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),(bytes,address)[])": FunctionFragment;
|
|
164
|
-
"executeBatchV1((address,uint32,(((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),uint256),(bytes,address)[],bytes32[])[],bool)": FunctionFragment;
|
|
165
|
-
"executeChainAgnosticV1(address,uint32,(((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),uint256),(bytes,address)[],bytes32[])": FunctionFragment;
|
|
174
|
+
"executeBatchV1((address,uint32,(((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),uint256),(bytes,address)[],(bytes32,uint256)[])[],bool)": FunctionFragment;
|
|
175
|
+
"executeChainAgnosticV1(address,uint32,(((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),uint256),(bytes,address)[],(bytes32,uint256)[])": FunctionFragment;
|
|
166
176
|
"executeV1(address,uint32,((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),(bytes,address)[])": FunctionFragment;
|
|
167
177
|
"getAvocadoChainAgnosticHashes(address,uint32,(((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),uint256)[])": FunctionFragment;
|
|
168
178
|
"initialize(address,address[])": FunctionFragment;
|
|
@@ -170,13 +180,13 @@ export interface MultisigAgnosticForwarderInterface extends utils.Interface {
|
|
|
170
180
|
"isBroadcaster(address)": FunctionFragment;
|
|
171
181
|
"owner()": FunctionFragment;
|
|
172
182
|
"renounceOwnership()": FunctionFragment;
|
|
173
|
-
"simulateBatchV1((address,uint32,(((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),uint256),(bytes,address)[],bytes32[])[],bool)": FunctionFragment;
|
|
174
|
-
"simulateChainAgnosticV1(address,uint32,(((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),uint256),(bytes,address)[],bytes32[])": FunctionFragment;
|
|
183
|
+
"simulateBatchV1((address,uint32,(((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),uint256),(bytes,address)[],(bytes32,uint256)[])[],bool)": FunctionFragment;
|
|
184
|
+
"simulateChainAgnosticV1(address,uint32,(((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),uint256),(bytes,address)[],(bytes32,uint256)[])": FunctionFragment;
|
|
175
185
|
"simulateV1(address,uint32,((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),(bytes,address)[])": FunctionFragment;
|
|
176
186
|
"transferOwnership(address)": FunctionFragment;
|
|
177
187
|
"updateAuths((address,bool)[])": FunctionFragment;
|
|
178
188
|
"updateBroadcasters((address,bool)[])": FunctionFragment;
|
|
179
|
-
"verifyChainAgnosticV1(address,uint32,(((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),uint256),(bytes,address)[],bytes32[])": FunctionFragment;
|
|
189
|
+
"verifyChainAgnosticV1(address,uint32,(((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),uint256),(bytes,address)[],(bytes32,uint256)[])": FunctionFragment;
|
|
180
190
|
"verifyV1(address,uint32,((address,bytes,uint256,uint256)[],uint256,int256,bytes32,address,bytes),(uint256,uint256,uint256,uint256,uint256),(bytes,address)[])": FunctionFragment;
|
|
181
191
|
};
|
|
182
192
|
|
|
@@ -240,7 +250,7 @@ export interface MultisigAgnosticForwarderInterface extends utils.Interface {
|
|
|
240
250
|
PromiseOrValue<BigNumberish>,
|
|
241
251
|
AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
242
252
|
AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
243
|
-
|
|
253
|
+
AvocadoMultisigStructs.ChainAgnosticHashStruct[]
|
|
244
254
|
]
|
|
245
255
|
): string;
|
|
246
256
|
encodeFunctionData(
|
|
@@ -267,7 +277,7 @@ export interface MultisigAgnosticForwarderInterface extends utils.Interface {
|
|
|
267
277
|
PromiseOrValue<BigNumberish>,
|
|
268
278
|
AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
269
279
|
AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
270
|
-
|
|
280
|
+
AvocadoMultisigStructs.ChainAgnosticHashStruct[]
|
|
271
281
|
]
|
|
272
282
|
): string;
|
|
273
283
|
encodeFunctionData(
|
|
@@ -319,7 +329,7 @@ export interface MultisigAgnosticForwarderInterface extends utils.Interface {
|
|
|
319
329
|
PromiseOrValue<BigNumberish>,
|
|
320
330
|
AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
321
331
|
AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
322
|
-
|
|
332
|
+
AvocadoMultisigStructs.ChainAgnosticHashStruct[]
|
|
323
333
|
]
|
|
324
334
|
): string;
|
|
325
335
|
encodeFunctionData(
|
|
@@ -351,7 +361,7 @@ export interface MultisigAgnosticForwarderInterface extends utils.Interface {
|
|
|
351
361
|
PromiseOrValue<BigNumberish>,
|
|
352
362
|
AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
353
363
|
AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
354
|
-
|
|
364
|
+
AvocadoMultisigStructs.ChainAgnosticHashStruct[]
|
|
355
365
|
]
|
|
356
366
|
): string;
|
|
357
367
|
encodeFunctionData(
|
|
@@ -587,7 +597,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
587
597
|
index_: PromiseOrValue<BigNumberish>,
|
|
588
598
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
589
599
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
590
|
-
chainAgnosticHashes_:
|
|
600
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
591
601
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
592
602
|
): Promise<ContractTransaction>;
|
|
593
603
|
|
|
@@ -611,7 +621,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
611
621
|
index_: PromiseOrValue<BigNumberish>,
|
|
612
622
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
613
623
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
614
|
-
chainAgnosticHashes_:
|
|
624
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
615
625
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
616
626
|
): Promise<ContractTransaction>;
|
|
617
627
|
|
|
@@ -662,7 +672,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
662
672
|
index_: PromiseOrValue<BigNumberish>,
|
|
663
673
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
664
674
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
665
|
-
chainAgnosticHashes_:
|
|
675
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
666
676
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
667
677
|
): Promise<ContractTransaction>;
|
|
668
678
|
|
|
@@ -695,7 +705,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
695
705
|
index_: PromiseOrValue<BigNumberish>,
|
|
696
706
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
697
707
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
698
|
-
chainAgnosticHashes_:
|
|
708
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
699
709
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
700
710
|
): Promise<ContractTransaction>;
|
|
701
711
|
|
|
@@ -742,7 +752,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
742
752
|
index_: PromiseOrValue<BigNumberish>,
|
|
743
753
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
744
754
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
745
|
-
chainAgnosticHashes_:
|
|
755
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
746
756
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
747
757
|
): Promise<ContractTransaction>;
|
|
748
758
|
|
|
@@ -766,7 +776,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
766
776
|
index_: PromiseOrValue<BigNumberish>,
|
|
767
777
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
768
778
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
769
|
-
chainAgnosticHashes_:
|
|
779
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
770
780
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
771
781
|
): Promise<ContractTransaction>;
|
|
772
782
|
|
|
@@ -817,7 +827,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
817
827
|
index_: PromiseOrValue<BigNumberish>,
|
|
818
828
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
819
829
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
820
|
-
chainAgnosticHashes_:
|
|
830
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
821
831
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
822
832
|
): Promise<ContractTransaction>;
|
|
823
833
|
|
|
@@ -850,7 +860,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
850
860
|
index_: PromiseOrValue<BigNumberish>,
|
|
851
861
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
852
862
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
853
|
-
chainAgnosticHashes_:
|
|
863
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
854
864
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
855
865
|
): Promise<ContractTransaction>;
|
|
856
866
|
|
|
@@ -897,7 +907,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
897
907
|
index_: PromiseOrValue<BigNumberish>,
|
|
898
908
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
899
909
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
900
|
-
chainAgnosticHashes_:
|
|
910
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
901
911
|
overrides?: CallOverrides
|
|
902
912
|
): Promise<void>;
|
|
903
913
|
|
|
@@ -921,7 +931,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
921
931
|
index_: PromiseOrValue<BigNumberish>,
|
|
922
932
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
923
933
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
924
|
-
chainAgnosticHashes_:
|
|
934
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
925
935
|
overrides?: CallOverrides
|
|
926
936
|
): Promise<void>;
|
|
927
937
|
|
|
@@ -939,7 +949,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
939
949
|
index_: PromiseOrValue<BigNumberish>,
|
|
940
950
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct[],
|
|
941
951
|
overrides?: CallOverrides
|
|
942
|
-
): Promise<
|
|
952
|
+
): Promise<AvocadoMultisigStructs.ChainAgnosticHashStructOutput[]>;
|
|
943
953
|
|
|
944
954
|
initialize(
|
|
945
955
|
owner_: PromiseOrValue<string>,
|
|
@@ -972,7 +982,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
972
982
|
index_: PromiseOrValue<BigNumberish>,
|
|
973
983
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
974
984
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
975
|
-
chainAgnosticHashes_:
|
|
985
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
976
986
|
overrides?: CallOverrides
|
|
977
987
|
): Promise<
|
|
978
988
|
[BigNumber, BigNumber, boolean, boolean, string] & {
|
|
@@ -1021,7 +1031,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
1021
1031
|
index_: PromiseOrValue<BigNumberish>,
|
|
1022
1032
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
1023
1033
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
1024
|
-
chainAgnosticHashes_:
|
|
1034
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
1025
1035
|
overrides?: CallOverrides
|
|
1026
1036
|
): Promise<boolean>;
|
|
1027
1037
|
|
|
@@ -1133,7 +1143,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
1133
1143
|
index_: PromiseOrValue<BigNumberish>,
|
|
1134
1144
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
1135
1145
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
1136
|
-
chainAgnosticHashes_:
|
|
1146
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
1137
1147
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
1138
1148
|
): Promise<BigNumber>;
|
|
1139
1149
|
|
|
@@ -1157,7 +1167,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
1157
1167
|
index_: PromiseOrValue<BigNumberish>,
|
|
1158
1168
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
1159
1169
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
1160
|
-
chainAgnosticHashes_:
|
|
1170
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
1161
1171
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
1162
1172
|
): Promise<BigNumber>;
|
|
1163
1173
|
|
|
@@ -1208,7 +1218,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
1208
1218
|
index_: PromiseOrValue<BigNumberish>,
|
|
1209
1219
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
1210
1220
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
1211
|
-
chainAgnosticHashes_:
|
|
1221
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
1212
1222
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
1213
1223
|
): Promise<BigNumber>;
|
|
1214
1224
|
|
|
@@ -1241,7 +1251,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
1241
1251
|
index_: PromiseOrValue<BigNumberish>,
|
|
1242
1252
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
1243
1253
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
1244
|
-
chainAgnosticHashes_:
|
|
1254
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
1245
1255
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1246
1256
|
): Promise<BigNumber>;
|
|
1247
1257
|
|
|
@@ -1289,7 +1299,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
1289
1299
|
index_: PromiseOrValue<BigNumberish>,
|
|
1290
1300
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
1291
1301
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
1292
|
-
chainAgnosticHashes_:
|
|
1302
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
1293
1303
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
1294
1304
|
): Promise<PopulatedTransaction>;
|
|
1295
1305
|
|
|
@@ -1313,7 +1323,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
1313
1323
|
index_: PromiseOrValue<BigNumberish>,
|
|
1314
1324
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
1315
1325
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
1316
|
-
chainAgnosticHashes_:
|
|
1326
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
1317
1327
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
1318
1328
|
): Promise<PopulatedTransaction>;
|
|
1319
1329
|
|
|
@@ -1364,7 +1374,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
1364
1374
|
index_: PromiseOrValue<BigNumberish>,
|
|
1365
1375
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
1366
1376
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
1367
|
-
chainAgnosticHashes_:
|
|
1377
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
1368
1378
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
1369
1379
|
): Promise<PopulatedTransaction>;
|
|
1370
1380
|
|
|
@@ -1397,7 +1407,7 @@ export interface MultisigAgnosticForwarder extends BaseContract {
|
|
|
1397
1407
|
index_: PromiseOrValue<BigNumberish>,
|
|
1398
1408
|
params_: AvocadoMultisigStructs.CastChainAgnosticParamsStruct,
|
|
1399
1409
|
signaturesParams_: AvocadoMultisigStructs.SignatureParamsStruct[],
|
|
1400
|
-
chainAgnosticHashes_:
|
|
1410
|
+
chainAgnosticHashes_: AvocadoMultisigStructs.ChainAgnosticHashStruct[],
|
|
1401
1411
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1402
1412
|
): Promise<PopulatedTransaction>;
|
|
1403
1413
|
|
|
@@ -446,9 +446,21 @@ const _abi = [
|
|
|
446
446
|
type: "tuple[]",
|
|
447
447
|
},
|
|
448
448
|
{
|
|
449
|
-
|
|
449
|
+
components: [
|
|
450
|
+
{
|
|
451
|
+
internalType: "bytes32",
|
|
452
|
+
name: "hash",
|
|
453
|
+
type: "bytes32",
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
internalType: "uint256",
|
|
457
|
+
name: "chainId",
|
|
458
|
+
type: "uint256",
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
internalType: "struct AvocadoMultisigStructs.ChainAgnosticHash[]",
|
|
450
462
|
name: "chainAgnosticHashes_",
|
|
451
|
-
type: "
|
|
463
|
+
type: "tuple[]",
|
|
452
464
|
},
|
|
453
465
|
],
|
|
454
466
|
name: "estimateChainAgnosticV1",
|
|
@@ -718,9 +730,21 @@ const _abi = [
|
|
|
718
730
|
type: "tuple[]",
|
|
719
731
|
},
|
|
720
732
|
{
|
|
721
|
-
|
|
733
|
+
components: [
|
|
734
|
+
{
|
|
735
|
+
internalType: "bytes32",
|
|
736
|
+
name: "hash",
|
|
737
|
+
type: "bytes32",
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
internalType: "uint256",
|
|
741
|
+
name: "chainId",
|
|
742
|
+
type: "uint256",
|
|
743
|
+
},
|
|
744
|
+
],
|
|
745
|
+
internalType: "struct AvocadoMultisigStructs.ChainAgnosticHash[]",
|
|
722
746
|
name: "chainAgnosticHashes",
|
|
723
|
-
type: "
|
|
747
|
+
type: "tuple[]",
|
|
724
748
|
},
|
|
725
749
|
],
|
|
726
750
|
internalType: "struct AvoForwarderStructs.ExecuteBatchParams[]",
|
|
@@ -871,9 +895,21 @@ const _abi = [
|
|
|
871
895
|
type: "tuple[]",
|
|
872
896
|
},
|
|
873
897
|
{
|
|
874
|
-
|
|
898
|
+
components: [
|
|
899
|
+
{
|
|
900
|
+
internalType: "bytes32",
|
|
901
|
+
name: "hash",
|
|
902
|
+
type: "bytes32",
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
internalType: "uint256",
|
|
906
|
+
name: "chainId",
|
|
907
|
+
type: "uint256",
|
|
908
|
+
},
|
|
909
|
+
],
|
|
910
|
+
internalType: "struct AvocadoMultisigStructs.ChainAgnosticHash[]",
|
|
875
911
|
name: "chainAgnosticHashes_",
|
|
876
|
-
type: "
|
|
912
|
+
type: "tuple[]",
|
|
877
913
|
},
|
|
878
914
|
],
|
|
879
915
|
name: "executeChainAgnosticV1",
|
|
@@ -1126,9 +1162,21 @@ const _abi = [
|
|
|
1126
1162
|
name: "getAvocadoChainAgnosticHashes",
|
|
1127
1163
|
outputs: [
|
|
1128
1164
|
{
|
|
1129
|
-
|
|
1165
|
+
components: [
|
|
1166
|
+
{
|
|
1167
|
+
internalType: "bytes32",
|
|
1168
|
+
name: "hash",
|
|
1169
|
+
type: "bytes32",
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
internalType: "uint256",
|
|
1173
|
+
name: "chainId",
|
|
1174
|
+
type: "uint256",
|
|
1175
|
+
},
|
|
1176
|
+
],
|
|
1177
|
+
internalType: "struct AvocadoMultisigStructs.ChainAgnosticHash[]",
|
|
1130
1178
|
name: "chainAgnosticHashes_",
|
|
1131
|
-
type: "
|
|
1179
|
+
type: "tuple[]",
|
|
1132
1180
|
},
|
|
1133
1181
|
],
|
|
1134
1182
|
stateMutability: "nonpayable",
|
|
@@ -1346,9 +1394,21 @@ const _abi = [
|
|
|
1346
1394
|
type: "tuple[]",
|
|
1347
1395
|
},
|
|
1348
1396
|
{
|
|
1349
|
-
|
|
1397
|
+
components: [
|
|
1398
|
+
{
|
|
1399
|
+
internalType: "bytes32",
|
|
1400
|
+
name: "hash",
|
|
1401
|
+
type: "bytes32",
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
internalType: "uint256",
|
|
1405
|
+
name: "chainId",
|
|
1406
|
+
type: "uint256",
|
|
1407
|
+
},
|
|
1408
|
+
],
|
|
1409
|
+
internalType: "struct AvocadoMultisigStructs.ChainAgnosticHash[]",
|
|
1350
1410
|
name: "chainAgnosticHashes",
|
|
1351
|
-
type: "
|
|
1411
|
+
type: "tuple[]",
|
|
1352
1412
|
},
|
|
1353
1413
|
],
|
|
1354
1414
|
internalType: "struct AvoForwarderStructs.ExecuteBatchParams[]",
|
|
@@ -1499,9 +1559,21 @@ const _abi = [
|
|
|
1499
1559
|
type: "tuple[]",
|
|
1500
1560
|
},
|
|
1501
1561
|
{
|
|
1502
|
-
|
|
1562
|
+
components: [
|
|
1563
|
+
{
|
|
1564
|
+
internalType: "bytes32",
|
|
1565
|
+
name: "hash",
|
|
1566
|
+
type: "bytes32",
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
internalType: "uint256",
|
|
1570
|
+
name: "chainId",
|
|
1571
|
+
type: "uint256",
|
|
1572
|
+
},
|
|
1573
|
+
],
|
|
1574
|
+
internalType: "struct AvocadoMultisigStructs.ChainAgnosticHash[]",
|
|
1503
1575
|
name: "chainAgnosticHashes_",
|
|
1504
|
-
type: "
|
|
1576
|
+
type: "tuple[]",
|
|
1505
1577
|
},
|
|
1506
1578
|
],
|
|
1507
1579
|
name: "simulateChainAgnosticV1",
|
|
@@ -1883,9 +1955,21 @@ const _abi = [
|
|
|
1883
1955
|
type: "tuple[]",
|
|
1884
1956
|
},
|
|
1885
1957
|
{
|
|
1886
|
-
|
|
1958
|
+
components: [
|
|
1959
|
+
{
|
|
1960
|
+
internalType: "bytes32",
|
|
1961
|
+
name: "hash",
|
|
1962
|
+
type: "bytes32",
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
internalType: "uint256",
|
|
1966
|
+
name: "chainId",
|
|
1967
|
+
type: "uint256",
|
|
1968
|
+
},
|
|
1969
|
+
],
|
|
1970
|
+
internalType: "struct AvocadoMultisigStructs.ChainAgnosticHash[]",
|
|
1887
1971
|
name: "chainAgnosticHashes_",
|
|
1888
|
-
type: "
|
|
1972
|
+
type: "tuple[]",
|
|
1889
1973
|
},
|
|
1890
1974
|
],
|
|
1891
1975
|
name: "verifyChainAgnosticV1",
|
package/package.json
CHANGED
package/utils/metadata.ts
CHANGED
|
@@ -471,10 +471,11 @@ const ifaceAgnostic = MultisigAgnosticForwarder__factory.createInterface();
|
|
|
471
471
|
const getMetadataFromData = (data: string) => {
|
|
472
472
|
let metadata = "0x";
|
|
473
473
|
|
|
474
|
-
|
|
475
474
|
if(data.startsWith('0xc5e15557')) {
|
|
475
|
+
|
|
476
476
|
const executeData = ifaceAgnostic.decodeFunctionData("executeChainAgnosticV1", data);
|
|
477
477
|
|
|
478
|
+
|
|
478
479
|
const metadata = executeData?.params_?.params?.metadata
|
|
479
480
|
|
|
480
481
|
return metadata === '0x' || !metadata ? null : metadata
|