@gitmyabi/optimismportal 1.0.6 → 1.0.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.
@@ -35,89 +35,42 @@ export const OptimismPortal_jsonAbi = [
35
35
  "type": "constructor"
36
36
  },
37
37
  {
38
- "inputs": [],
39
- "name": "BadTarget",
40
- "type": "error"
41
- },
42
- {
43
- "inputs": [],
44
- "name": "CallPaused",
45
- "type": "error"
46
- },
47
- {
48
- "inputs": [],
49
- "name": "ContentLengthMismatch",
50
- "type": "error"
51
- },
52
- {
53
- "inputs": [],
54
- "name": "EmptyItem",
55
- "type": "error"
56
- },
57
- {
58
- "inputs": [],
59
- "name": "GasEstimation",
60
- "type": "error"
61
- },
62
- {
63
- "inputs": [],
64
- "name": "InvalidDataRemainder",
65
- "type": "error"
66
- },
67
- {
68
- "inputs": [],
69
- "name": "InvalidHeader",
70
- "type": "error"
71
- },
72
- {
73
- "inputs": [],
74
- "name": "LargeCalldata",
75
- "type": "error"
76
- },
77
- {
78
- "inputs": [],
79
- "name": "NoValue",
80
- "type": "error"
81
- },
82
- {
83
- "inputs": [],
84
- "name": "NonReentrant",
85
- "type": "error"
86
- },
87
- {
88
- "inputs": [],
89
- "name": "OnlyCustomGasToken",
90
- "type": "error"
91
- },
92
- {
93
- "inputs": [],
94
- "name": "OutOfGas",
95
- "type": "error"
96
- },
97
- {
98
- "inputs": [],
99
- "name": "SmallGasLimit",
100
- "type": "error"
101
- },
102
- {
103
- "inputs": [],
104
- "name": "TransferFailed",
105
- "type": "error"
106
- },
107
- {
108
- "inputs": [],
109
- "name": "Unauthorized",
110
- "type": "error"
111
- },
112
- {
113
- "inputs": [],
114
- "name": "UnexpectedList",
115
- "type": "error"
38
+ "anonymous": false,
39
+ "inputs": [
40
+ {
41
+ "indexed": true,
42
+ "internalType": "address",
43
+ "name": "claimer",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "indexed": false,
48
+ "internalType": "uint256",
49
+ "name": "amount",
50
+ "type": "uint256"
51
+ }
52
+ ],
53
+ "name": "ETHClaimed",
54
+ "type": "event"
116
55
  },
117
56
  {
118
- "inputs": [],
119
- "name": "UnexpectedString",
120
- "type": "error"
57
+ "anonymous": false,
58
+ "inputs": [
59
+ {
60
+ "indexed": true,
61
+ "internalType": "address",
62
+ "name": "recipient",
63
+ "type": "address"
64
+ },
65
+ {
66
+ "indexed": false,
67
+ "internalType": "uint256",
68
+ "name": "amount",
69
+ "type": "uint256"
70
+ }
71
+ ],
72
+ "name": "ETHRecovered",
73
+ "type": "event"
121
74
  },
122
75
  {
123
76
  "anonymous": false,
@@ -132,6 +85,38 @@ export const OptimismPortal_jsonAbi = [
132
85
  "name": "Initialized",
133
86
  "type": "event"
134
87
  },
88
+ {
89
+ "anonymous": false,
90
+ "inputs": [
91
+ {
92
+ "indexed": true,
93
+ "internalType": "bytes32",
94
+ "name": "root",
95
+ "type": "bytes32"
96
+ },
97
+ {
98
+ "indexed": true,
99
+ "internalType": "address",
100
+ "name": "setter",
101
+ "type": "address"
102
+ }
103
+ ],
104
+ "name": "MerkleRootETHSet",
105
+ "type": "event"
106
+ },
107
+ {
108
+ "anonymous": false,
109
+ "inputs": [
110
+ {
111
+ "indexed": false,
112
+ "internalType": "address",
113
+ "name": "account",
114
+ "type": "address"
115
+ }
116
+ ],
117
+ "name": "Paused",
118
+ "type": "event"
119
+ },
135
120
  {
136
121
  "anonymous": false,
137
122
  "inputs": [
@@ -163,6 +148,19 @@ export const OptimismPortal_jsonAbi = [
163
148
  "name": "TransactionDeposited",
164
149
  "type": "event"
165
150
  },
151
+ {
152
+ "anonymous": false,
153
+ "inputs": [
154
+ {
155
+ "indexed": false,
156
+ "internalType": "address",
157
+ "name": "account",
158
+ "type": "address"
159
+ }
160
+ ],
161
+ "name": "Unpaused",
162
+ "type": "event"
163
+ },
166
164
  {
167
165
  "anonymous": false,
168
166
  "inputs": [
@@ -209,55 +207,93 @@ export const OptimismPortal_jsonAbi = [
209
207
  },
210
208
  {
211
209
  "inputs": [],
212
- "name": "balance",
210
+ "name": "GUARDIAN",
213
211
  "outputs": [
214
212
  {
215
- "internalType": "uint256",
213
+ "internalType": "address",
216
214
  "name": "",
217
- "type": "uint256"
215
+ "type": "address"
218
216
  }
219
217
  ],
220
218
  "stateMutability": "view",
221
219
  "type": "function"
222
220
  },
223
221
  {
224
- "inputs": [
222
+ "inputs": [],
223
+ "name": "L2_ORACLE",
224
+ "outputs": [
225
225
  {
226
- "internalType": "address",
227
- "name": "_to",
226
+ "internalType": "contract L2OutputOracle",
227
+ "name": "",
228
228
  "type": "address"
229
- },
229
+ }
230
+ ],
231
+ "stateMutability": "view",
232
+ "type": "function"
233
+ },
234
+ {
235
+ "inputs": [],
236
+ "name": "RECOVERY_TIMESTAMP",
237
+ "outputs": [
230
238
  {
231
239
  "internalType": "uint256",
232
- "name": "_mint",
240
+ "name": "",
233
241
  "type": "uint256"
234
- },
242
+ }
243
+ ],
244
+ "stateMutability": "view",
245
+ "type": "function"
246
+ },
247
+ {
248
+ "inputs": [],
249
+ "name": "SYSTEM_CONFIG",
250
+ "outputs": [
251
+ {
252
+ "internalType": "contract SystemConfig",
253
+ "name": "",
254
+ "type": "address"
255
+ }
256
+ ],
257
+ "stateMutability": "view",
258
+ "type": "function"
259
+ },
260
+ {
261
+ "inputs": [
235
262
  {
236
263
  "internalType": "uint256",
237
- "name": "_value",
264
+ "name": "_amount",
238
265
  "type": "uint256"
239
266
  },
240
267
  {
241
- "internalType": "uint64",
242
- "name": "_gasLimit",
243
- "type": "uint64"
244
- },
245
- {
246
- "internalType": "bool",
247
- "name": "_isCreation",
248
- "type": "bool"
249
- },
250
- {
251
- "internalType": "bytes",
252
- "name": "_data",
253
- "type": "bytes"
268
+ "internalType": "bytes32[]",
269
+ "name": "_proof",
270
+ "type": "bytes32[]"
254
271
  }
255
272
  ],
256
- "name": "depositERC20Transaction",
273
+ "name": "claimETH",
257
274
  "outputs": [],
258
275
  "stateMutability": "nonpayable",
259
276
  "type": "function"
260
277
  },
278
+ {
279
+ "inputs": [
280
+ {
281
+ "internalType": "address",
282
+ "name": "",
283
+ "type": "address"
284
+ }
285
+ ],
286
+ "name": "claimedETH",
287
+ "outputs": [
288
+ {
289
+ "internalType": "uint256",
290
+ "name": "",
291
+ "type": "uint256"
292
+ }
293
+ ],
294
+ "stateMutability": "view",
295
+ "type": "function"
296
+ },
261
297
  {
262
298
  "inputs": [
263
299
  {
@@ -382,15 +418,20 @@ export const OptimismPortal_jsonAbi = [
382
418
  "name": "_l2Oracle",
383
419
  "type": "address"
384
420
  },
421
+ {
422
+ "internalType": "address",
423
+ "name": "_guardian",
424
+ "type": "address"
425
+ },
385
426
  {
386
427
  "internalType": "contract SystemConfig",
387
428
  "name": "_systemConfig",
388
429
  "type": "address"
389
430
  },
390
431
  {
391
- "internalType": "contract SuperchainConfig",
392
- "name": "_superchainConfig",
393
- "type": "address"
432
+ "internalType": "bool",
433
+ "name": "_paused",
434
+ "type": "bool"
394
435
  }
395
436
  ],
396
437
  "name": "initialize",
@@ -443,6 +484,19 @@ export const OptimismPortal_jsonAbi = [
443
484
  "stateMutability": "view",
444
485
  "type": "function"
445
486
  },
487
+ {
488
+ "inputs": [],
489
+ "name": "merkleRootETH",
490
+ "outputs": [
491
+ {
492
+ "internalType": "bytes32",
493
+ "name": "",
494
+ "type": "bytes32"
495
+ }
496
+ ],
497
+ "stateMutability": "view",
498
+ "type": "function"
499
+ },
446
500
  {
447
501
  "inputs": [
448
502
  {
@@ -485,13 +539,20 @@ export const OptimismPortal_jsonAbi = [
485
539
  "stateMutability": "view",
486
540
  "type": "function"
487
541
  },
542
+ {
543
+ "inputs": [],
544
+ "name": "pause",
545
+ "outputs": [],
546
+ "stateMutability": "nonpayable",
547
+ "type": "function"
548
+ },
488
549
  {
489
550
  "inputs": [],
490
551
  "name": "paused",
491
552
  "outputs": [
492
553
  {
493
554
  "internalType": "bool",
494
- "name": "paused_",
555
+ "name": "",
495
556
  "type": "bool"
496
557
  }
497
558
  ],
@@ -613,41 +674,26 @@ export const OptimismPortal_jsonAbi = [
613
674
  "inputs": [
614
675
  {
615
676
  "internalType": "address",
616
- "name": "_token",
677
+ "name": "_recipient",
617
678
  "type": "address"
618
- },
619
- {
620
- "internalType": "uint8",
621
- "name": "_decimals",
622
- "type": "uint8"
623
- },
624
- {
625
- "internalType": "bytes32",
626
- "name": "_name",
627
- "type": "bytes32"
628
- },
629
- {
630
- "internalType": "bytes32",
631
- "name": "_symbol",
632
- "type": "bytes32"
633
679
  }
634
680
  ],
635
- "name": "setGasPayingToken",
681
+ "name": "recoverETH",
636
682
  "outputs": [],
637
683
  "stateMutability": "nonpayable",
638
684
  "type": "function"
639
685
  },
640
686
  {
641
- "inputs": [],
642
- "name": "superchainConfig",
643
- "outputs": [
687
+ "inputs": [
644
688
  {
645
- "internalType": "contract SuperchainConfig",
646
- "name": "",
647
- "type": "address"
689
+ "internalType": "bytes32",
690
+ "name": "_root",
691
+ "type": "bytes32"
648
692
  }
649
693
  ],
650
- "stateMutability": "view",
694
+ "name": "setMerkleRootETH",
695
+ "outputs": [],
696
+ "stateMutability": "nonpayable",
651
697
  "type": "function"
652
698
  },
653
699
  {
@@ -663,6 +709,13 @@ export const OptimismPortal_jsonAbi = [
663
709
  "stateMutability": "view",
664
710
  "type": "function"
665
711
  },
712
+ {
713
+ "inputs": [],
714
+ "name": "unpause",
715
+ "outputs": [],
716
+ "stateMutability": "nonpayable",
717
+ "type": "function"
718
+ },
666
719
  {
667
720
  "inputs": [],
668
721
  "name": "version",
@@ -673,7 +726,7 @@ export const OptimismPortal_jsonAbi = [
673
726
  "type": "string"
674
727
  }
675
728
  ],
676
- "stateMutability": "pure",
729
+ "stateMutability": "view",
677
730
  "type": "function"
678
731
  },
679
732
  {
@@ -765,11 +818,43 @@ export class OptimismPortal_json {
765
818
  }
766
819
 
767
820
  /**
768
- * balance
821
+ * GUARDIAN
822
+ * view
823
+ */
824
+ async GUARDIAN(): Promise<`0x${string}`> {
825
+ return this.contract.read.GUARDIAN() as Promise<`0x${string}`>;
826
+ }
827
+
828
+ /**
829
+ * L2_ORACLE
830
+ * view
831
+ */
832
+ async L2_ORACLE(): Promise<`0x${string}`> {
833
+ return this.contract.read.L2_ORACLE() as Promise<`0x${string}`>;
834
+ }
835
+
836
+ /**
837
+ * RECOVERY_TIMESTAMP
838
+ * view
839
+ */
840
+ async RECOVERY_TIMESTAMP(): Promise<bigint> {
841
+ return this.contract.read.RECOVERY_TIMESTAMP() as Promise<bigint>;
842
+ }
843
+
844
+ /**
845
+ * SYSTEM_CONFIG
846
+ * view
847
+ */
848
+ async SYSTEM_CONFIG(): Promise<`0x${string}`> {
849
+ return this.contract.read.SYSTEM_CONFIG() as Promise<`0x${string}`>;
850
+ }
851
+
852
+ /**
853
+ * claimedETH
769
854
  * view
770
855
  */
771
- async balance(): Promise<bigint> {
772
- return this.contract.read.balance() as Promise<bigint>;
856
+ async claimedETH(arg0: `0x${string}`): Promise<bigint> {
857
+ return this.contract.read.claimedETH([arg0] as const) as Promise<bigint>;
773
858
  }
774
859
 
775
860
  /**
@@ -812,6 +897,14 @@ export class OptimismPortal_json {
812
897
  return this.contract.read.l2Sender() as Promise<`0x${string}`>;
813
898
  }
814
899
 
900
+ /**
901
+ * merkleRootETH
902
+ * view
903
+ */
904
+ async merkleRootETH(): Promise<`0x${string}`> {
905
+ return this.contract.read.merkleRootETH() as Promise<`0x${string}`>;
906
+ }
907
+
815
908
  /**
816
909
  * minimumGasLimit
817
910
  * pure
@@ -844,14 +937,6 @@ export class OptimismPortal_json {
844
937
  return this.contract.read.provenWithdrawals([arg0] as const) as Promise<[`0x${string}`, bigint, bigint]>;
845
938
  }
846
939
 
847
- /**
848
- * superchainConfig
849
- * view
850
- */
851
- async superchainConfig(): Promise<`0x${string}`> {
852
- return this.contract.read.superchainConfig() as Promise<`0x${string}`>;
853
- }
854
-
855
940
  /**
856
941
  * systemConfig
857
942
  * view
@@ -862,18 +947,18 @@ export class OptimismPortal_json {
862
947
 
863
948
  /**
864
949
  * version
865
- * pure
950
+ * view
866
951
  */
867
952
  async version(): Promise<string> {
868
953
  return this.contract.read.version() as Promise<string>;
869
954
  }
870
955
 
871
956
  /**
872
- * depositERC20Transaction
957
+ * claimETH
873
958
  * nonpayable
874
959
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
875
960
  */
876
- async depositERC20Transaction(_to: `0x${string}`, _mint: bigint, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
961
+ async claimETH(_amount: bigint, _proof: `0x${string}`[], options?: {
877
962
  accessList?: import('viem').AccessList;
878
963
  authorizationList?: import('viem').AuthorizationList;
879
964
  chain?: import('viem').Chain | null;
@@ -888,7 +973,7 @@ export class OptimismPortal_json {
888
973
  if (!this.contract.write) {
889
974
  throw new Error('Wallet client is required for write operations');
890
975
  }
891
- return this.contract.write.depositERC20Transaction([_to, _mint, _value, _gasLimit, _isCreation, _data] as const, options) as Promise<`0x${string}`>;
976
+ return this.contract.write.claimETH([_amount, _proof] as const, options) as Promise<`0x${string}`>;
892
977
  }
893
978
 
894
979
  /**
@@ -965,7 +1050,30 @@ export class OptimismPortal_json {
965
1050
  * nonpayable
966
1051
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
967
1052
  */
968
- async initialize(_l2Oracle: `0x${string}`, _systemConfig: `0x${string}`, _superchainConfig: `0x${string}`, options?: {
1053
+ async initialize(_l2Oracle: `0x${string}`, _guardian: `0x${string}`, _systemConfig: `0x${string}`, _paused: boolean, options?: {
1054
+ accessList?: import('viem').AccessList;
1055
+ authorizationList?: import('viem').AuthorizationList;
1056
+ chain?: import('viem').Chain | null;
1057
+ dataSuffix?: `0x${string}`;
1058
+ gas?: bigint;
1059
+ gasPrice?: bigint;
1060
+ maxFeePerGas?: bigint;
1061
+ maxPriorityFeePerGas?: bigint;
1062
+ nonce?: number;
1063
+ value?: bigint;
1064
+ }): Promise<`0x${string}`> {
1065
+ if (!this.contract.write) {
1066
+ throw new Error('Wallet client is required for write operations');
1067
+ }
1068
+ return this.contract.write.initialize([_l2Oracle, _guardian, _systemConfig, _paused] as const, options) as Promise<`0x${string}`>;
1069
+ }
1070
+
1071
+ /**
1072
+ * pause
1073
+ * nonpayable
1074
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1075
+ */
1076
+ async pause(options?: {
969
1077
  accessList?: import('viem').AccessList;
970
1078
  authorizationList?: import('viem').AuthorizationList;
971
1079
  chain?: import('viem').Chain | null;
@@ -980,7 +1088,7 @@ export class OptimismPortal_json {
980
1088
  if (!this.contract.write) {
981
1089
  throw new Error('Wallet client is required for write operations');
982
1090
  }
983
- return this.contract.write.initialize([_l2Oracle, _systemConfig, _superchainConfig] as const, options) as Promise<`0x${string}`>;
1091
+ return this.contract.write.pause(options) as Promise<`0x${string}`>;
984
1092
  }
985
1093
 
986
1094
  /**
@@ -1007,11 +1115,57 @@ export class OptimismPortal_json {
1007
1115
  }
1008
1116
 
1009
1117
  /**
1010
- * setGasPayingToken
1118
+ * recoverETH
1119
+ * nonpayable
1120
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1121
+ */
1122
+ async recoverETH(_recipient: `0x${string}`, options?: {
1123
+ accessList?: import('viem').AccessList;
1124
+ authorizationList?: import('viem').AuthorizationList;
1125
+ chain?: import('viem').Chain | null;
1126
+ dataSuffix?: `0x${string}`;
1127
+ gas?: bigint;
1128
+ gasPrice?: bigint;
1129
+ maxFeePerGas?: bigint;
1130
+ maxPriorityFeePerGas?: bigint;
1131
+ nonce?: number;
1132
+ value?: bigint;
1133
+ }): Promise<`0x${string}`> {
1134
+ if (!this.contract.write) {
1135
+ throw new Error('Wallet client is required for write operations');
1136
+ }
1137
+ return this.contract.write.recoverETH([_recipient] as const, options) as Promise<`0x${string}`>;
1138
+ }
1139
+
1140
+ /**
1141
+ * setMerkleRootETH
1142
+ * nonpayable
1143
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1144
+ */
1145
+ async setMerkleRootETH(_root: `0x${string}`, options?: {
1146
+ accessList?: import('viem').AccessList;
1147
+ authorizationList?: import('viem').AuthorizationList;
1148
+ chain?: import('viem').Chain | null;
1149
+ dataSuffix?: `0x${string}`;
1150
+ gas?: bigint;
1151
+ gasPrice?: bigint;
1152
+ maxFeePerGas?: bigint;
1153
+ maxPriorityFeePerGas?: bigint;
1154
+ nonce?: number;
1155
+ value?: bigint;
1156
+ }): Promise<`0x${string}`> {
1157
+ if (!this.contract.write) {
1158
+ throw new Error('Wallet client is required for write operations');
1159
+ }
1160
+ return this.contract.write.setMerkleRootETH([_root] as const, options) as Promise<`0x${string}`>;
1161
+ }
1162
+
1163
+ /**
1164
+ * unpause
1011
1165
  * nonpayable
1012
1166
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1013
1167
  */
1014
- async setGasPayingToken(_token: `0x${string}`, _decimals: bigint, _name: `0x${string}`, _symbol: `0x${string}`, options?: {
1168
+ async unpause(options?: {
1015
1169
  accessList?: import('viem').AccessList;
1016
1170
  authorizationList?: import('viem').AuthorizationList;
1017
1171
  chain?: import('viem').Chain | null;
@@ -1026,7 +1180,7 @@ export class OptimismPortal_json {
1026
1180
  if (!this.contract.write) {
1027
1181
  throw new Error('Wallet client is required for write operations');
1028
1182
  }
1029
- return this.contract.write.setGasPayingToken([_token, _decimals, _name, _symbol] as const, options) as Promise<`0x${string}`>;
1183
+ return this.contract.write.unpause(options) as Promise<`0x${string}`>;
1030
1184
  }
1031
1185
 
1032
1186
 
@@ -1046,11 +1200,11 @@ export class OptimismPortal_json {
1046
1200
  }
1047
1201
  return {
1048
1202
  /**
1049
- * Simulate depositERC20Transaction
1203
+ * Simulate claimETH
1050
1204
  * Returns gas estimate and result without sending transaction
1051
1205
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1052
1206
  */
1053
- async depositERC20Transaction(_to: `0x${string}`, _mint: bigint, _value: bigint, _gasLimit: bigint, _isCreation: boolean, _data: `0x${string}`, options?: {
1207
+ async claimETH(_amount: bigint, _proof: `0x${string}`[], options?: {
1054
1208
  accessList?: import('viem').AccessList;
1055
1209
  authorizationList?: import('viem').AuthorizationList;
1056
1210
  chain?: import('viem').Chain | null;
@@ -1062,7 +1216,7 @@ export class OptimismPortal_json {
1062
1216
  nonce?: number;
1063
1217
  value?: bigint;
1064
1218
  }): Promise<void> {
1065
- return contract.simulate.depositERC20Transaction([_to, _mint, _value, _gasLimit, _isCreation, _data] as const, options) as Promise<void>;
1219
+ return contract.simulate.claimETH([_amount, _proof] as const, options) as Promise<void>;
1066
1220
  },
1067
1221
  /**
1068
1222
  * Simulate depositTransaction
@@ -1126,7 +1280,7 @@ export class OptimismPortal_json {
1126
1280
  * Returns gas estimate and result without sending transaction
1127
1281
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1128
1282
  */
1129
- async initialize(_l2Oracle: `0x${string}`, _systemConfig: `0x${string}`, _superchainConfig: `0x${string}`, options?: {
1283
+ async initialize(_l2Oracle: `0x${string}`, _guardian: `0x${string}`, _systemConfig: `0x${string}`, _paused: boolean, options?: {
1130
1284
  accessList?: import('viem').AccessList;
1131
1285
  authorizationList?: import('viem').AuthorizationList;
1132
1286
  chain?: import('viem').Chain | null;
@@ -1138,7 +1292,26 @@ export class OptimismPortal_json {
1138
1292
  nonce?: number;
1139
1293
  value?: bigint;
1140
1294
  }): Promise<void> {
1141
- return contract.simulate.initialize([_l2Oracle, _systemConfig, _superchainConfig] as const, options) as Promise<void>;
1295
+ return contract.simulate.initialize([_l2Oracle, _guardian, _systemConfig, _paused] as const, options) as Promise<void>;
1296
+ },
1297
+ /**
1298
+ * Simulate pause
1299
+ * Returns gas estimate and result without sending transaction
1300
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1301
+ */
1302
+ async pause(options?: {
1303
+ accessList?: import('viem').AccessList;
1304
+ authorizationList?: import('viem').AuthorizationList;
1305
+ chain?: import('viem').Chain | null;
1306
+ dataSuffix?: `0x${string}`;
1307
+ gas?: bigint;
1308
+ gasPrice?: bigint;
1309
+ maxFeePerGas?: bigint;
1310
+ maxPriorityFeePerGas?: bigint;
1311
+ nonce?: number;
1312
+ value?: bigint;
1313
+ }): Promise<void> {
1314
+ return contract.simulate.pause(options) as Promise<void>;
1142
1315
  },
1143
1316
  /**
1144
1317
  * Simulate proveWithdrawalTransaction
@@ -1160,11 +1333,49 @@ export class OptimismPortal_json {
1160
1333
  return contract.simulate.proveWithdrawalTransaction([_tx, _l2OutputIndex, _outputRootProof, _withdrawalProof] as const, options) as Promise<void>;
1161
1334
  },
1162
1335
  /**
1163
- * Simulate setGasPayingToken
1336
+ * Simulate recoverETH
1337
+ * Returns gas estimate and result without sending transaction
1338
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1339
+ */
1340
+ async recoverETH(_recipient: `0x${string}`, options?: {
1341
+ accessList?: import('viem').AccessList;
1342
+ authorizationList?: import('viem').AuthorizationList;
1343
+ chain?: import('viem').Chain | null;
1344
+ dataSuffix?: `0x${string}`;
1345
+ gas?: bigint;
1346
+ gasPrice?: bigint;
1347
+ maxFeePerGas?: bigint;
1348
+ maxPriorityFeePerGas?: bigint;
1349
+ nonce?: number;
1350
+ value?: bigint;
1351
+ }): Promise<void> {
1352
+ return contract.simulate.recoverETH([_recipient] as const, options) as Promise<void>;
1353
+ },
1354
+ /**
1355
+ * Simulate setMerkleRootETH
1356
+ * Returns gas estimate and result without sending transaction
1357
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1358
+ */
1359
+ async setMerkleRootETH(_root: `0x${string}`, options?: {
1360
+ accessList?: import('viem').AccessList;
1361
+ authorizationList?: import('viem').AuthorizationList;
1362
+ chain?: import('viem').Chain | null;
1363
+ dataSuffix?: `0x${string}`;
1364
+ gas?: bigint;
1365
+ gasPrice?: bigint;
1366
+ maxFeePerGas?: bigint;
1367
+ maxPriorityFeePerGas?: bigint;
1368
+ nonce?: number;
1369
+ value?: bigint;
1370
+ }): Promise<void> {
1371
+ return contract.simulate.setMerkleRootETH([_root] as const, options) as Promise<void>;
1372
+ },
1373
+ /**
1374
+ * Simulate unpause
1164
1375
  * Returns gas estimate and result without sending transaction
1165
1376
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1166
1377
  */
1167
- async setGasPayingToken(_token: `0x${string}`, _decimals: bigint, _name: `0x${string}`, _symbol: `0x${string}`, options?: {
1378
+ async unpause(options?: {
1168
1379
  accessList?: import('viem').AccessList;
1169
1380
  authorizationList?: import('viem').AuthorizationList;
1170
1381
  chain?: import('viem').Chain | null;
@@ -1176,7 +1387,7 @@ export class OptimismPortal_json {
1176
1387
  nonce?: number;
1177
1388
  value?: bigint;
1178
1389
  }): Promise<void> {
1179
- return contract.simulate.setGasPayingToken([_token, _decimals, _name, _symbol] as const, options) as Promise<void>;
1390
+ return contract.simulate.unpause(options) as Promise<void>;
1180
1391
  }
1181
1392
  };
1182
1393
  }
@@ -1195,6 +1406,44 @@ export class OptimismPortal_json {
1195
1406
  */
1196
1407
  get watch() {
1197
1408
  return {
1409
+ /**
1410
+ * Watch ETHClaimed events
1411
+ * @param callback Function to call when event is emitted
1412
+ * @param filter Optional filter for indexed parameters
1413
+ * @returns Unwatch function to stop listening
1414
+ */
1415
+ ETHClaimed: (callback: (event: { claimer: `0x${string}`; amount: bigint }) => void, filter?: { claimer: `0x${string}` }) => {
1416
+ return this.publicClient.watchContractEvent({
1417
+ address: this.contractAddress,
1418
+ abi: OptimismPortal_jsonAbi,
1419
+ eventName: 'ETHClaimed',
1420
+ args: filter,
1421
+ onLogs: (logs: any[]) => {
1422
+ logs.forEach((log: any) => {
1423
+ callback(log.args as any);
1424
+ });
1425
+ },
1426
+ }) as () => void;
1427
+ },
1428
+ /**
1429
+ * Watch ETHRecovered events
1430
+ * @param callback Function to call when event is emitted
1431
+ * @param filter Optional filter for indexed parameters
1432
+ * @returns Unwatch function to stop listening
1433
+ */
1434
+ ETHRecovered: (callback: (event: { recipient: `0x${string}`; amount: bigint }) => void, filter?: { recipient: `0x${string}` }) => {
1435
+ return this.publicClient.watchContractEvent({
1436
+ address: this.contractAddress,
1437
+ abi: OptimismPortal_jsonAbi,
1438
+ eventName: 'ETHRecovered',
1439
+ args: filter,
1440
+ onLogs: (logs: any[]) => {
1441
+ logs.forEach((log: any) => {
1442
+ callback(log.args as any);
1443
+ });
1444
+ },
1445
+ }) as () => void;
1446
+ },
1198
1447
  /**
1199
1448
  * Watch Initialized events
1200
1449
  * @param callback Function to call when event is emitted
@@ -1214,6 +1463,44 @@ export class OptimismPortal_json {
1214
1463
  },
1215
1464
  }) as () => void;
1216
1465
  },
1466
+ /**
1467
+ * Watch MerkleRootETHSet events
1468
+ * @param callback Function to call when event is emitted
1469
+ * @param filter Optional filter for indexed parameters
1470
+ * @returns Unwatch function to stop listening
1471
+ */
1472
+ MerkleRootETHSet: (callback: (event: { root: `0x${string}`; setter: `0x${string}` }) => void, filter?: { root: `0x${string}`; setter: `0x${string}` }) => {
1473
+ return this.publicClient.watchContractEvent({
1474
+ address: this.contractAddress,
1475
+ abi: OptimismPortal_jsonAbi,
1476
+ eventName: 'MerkleRootETHSet',
1477
+ args: filter,
1478
+ onLogs: (logs: any[]) => {
1479
+ logs.forEach((log: any) => {
1480
+ callback(log.args as any);
1481
+ });
1482
+ },
1483
+ }) as () => void;
1484
+ },
1485
+ /**
1486
+ * Watch Paused events
1487
+ * @param callback Function to call when event is emitted
1488
+ * @param filter Optional filter for indexed parameters
1489
+ * @returns Unwatch function to stop listening
1490
+ */
1491
+ Paused: (callback: (event: { account: `0x${string}` }) => void) => {
1492
+ return this.publicClient.watchContractEvent({
1493
+ address: this.contractAddress,
1494
+ abi: OptimismPortal_jsonAbi,
1495
+ eventName: 'Paused',
1496
+
1497
+ onLogs: (logs: any[]) => {
1498
+ logs.forEach((log: any) => {
1499
+ callback(log.args as any);
1500
+ });
1501
+ },
1502
+ }) as () => void;
1503
+ },
1217
1504
  /**
1218
1505
  * Watch TransactionDeposited events
1219
1506
  * @param callback Function to call when event is emitted
@@ -1233,6 +1520,25 @@ export class OptimismPortal_json {
1233
1520
  },
1234
1521
  }) as () => void;
1235
1522
  },
1523
+ /**
1524
+ * Watch Unpaused events
1525
+ * @param callback Function to call when event is emitted
1526
+ * @param filter Optional filter for indexed parameters
1527
+ * @returns Unwatch function to stop listening
1528
+ */
1529
+ Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
1530
+ return this.publicClient.watchContractEvent({
1531
+ address: this.contractAddress,
1532
+ abi: OptimismPortal_jsonAbi,
1533
+ eventName: 'Unpaused',
1534
+
1535
+ onLogs: (logs: any[]) => {
1536
+ logs.forEach((log: any) => {
1537
+ callback(log.args as any);
1538
+ });
1539
+ },
1540
+ }) as () => void;
1541
+ },
1236
1542
  /**
1237
1543
  * Watch WithdrawalFinalized events
1238
1544
  * @param callback Function to call when event is emitted