@shapeshiftoss/contracts 1.0.0 → 1.0.1

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.
Files changed (130) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -0
  2. package/dist/cjs/abis/arbOutbox.js +229 -0
  3. package/dist/cjs/abis/arbProxy.js +69 -0
  4. package/dist/cjs/abis/arbRetryableTx.js +116 -0
  5. package/dist/cjs/abis/arbSys.js +142 -0
  6. package/dist/cjs/abis/evergreenFarming.js +655 -0
  7. package/dist/cjs/abis/farming.js +459 -0
  8. package/dist/cjs/abis/foxy.js +678 -0
  9. package/dist/cjs/abis/foxyStaking.js +720 -0
  10. package/dist/cjs/abis/iBep20.js +128 -0
  11. package/dist/cjs/abis/iUniswapV2Pair.js +710 -0
  12. package/dist/cjs/abis/iUniswapV3Pool.js +986 -0
  13. package/dist/cjs/abis/index.js +40 -0
  14. package/dist/cjs/abis/l1ArbitrumGateway.js +259 -0
  15. package/dist/cjs/abis/l1OrbitCustomGateway.js +378 -0
  16. package/dist/cjs/abis/l2ArbitrumGateway.js +172 -0
  17. package/dist/cjs/abis/liquidityReserve.js +550 -0
  18. package/dist/cjs/abis/rfox.js +558 -0
  19. package/dist/cjs/abis/thorchainRouter.js +445 -0
  20. package/dist/cjs/abis/tokeManager.js +511 -0
  21. package/dist/cjs/abis/tokePool.js +311 -0
  22. package/dist/cjs/abis/tokeRewardHash.js +74 -0
  23. package/dist/cjs/abis/uniV2StakingRewards.js +414 -0
  24. package/dist/cjs/abis/uniswapV2Router02.js +956 -0
  25. package/dist/cjs/abis/uniswapV3Quoter.js +196 -0
  26. package/dist/cjs/abis/weth.js +282 -0
  27. package/dist/cjs/constants.js +108 -0
  28. package/dist/cjs/contractManager.js +77 -0
  29. package/dist/cjs/ethersProviderSingleton.js +75 -0
  30. package/dist/cjs/index.js +22 -0
  31. package/dist/cjs/package.json +1 -0
  32. package/dist/cjs/types.js +9 -0
  33. package/dist/cjs/viemClient.js +95 -0
  34. package/dist/esm/.tsbuildinfo +1 -0
  35. package/dist/esm/abis/arbOutbox.d.ts +413 -0
  36. package/dist/esm/abis/arbProxy.d.ts +102 -0
  37. package/dist/esm/abis/arbRetryableTx.d.ts +230 -0
  38. package/dist/esm/abis/arbSys.d.ts +278 -0
  39. package/dist/esm/abis/evergreenFarming.d.ts +517 -0
  40. package/dist/esm/abis/farming.d.ts +361 -0
  41. package/dist/esm/abis/foxy.d.ts +519 -0
  42. package/dist/esm/abis/foxyStaking.d.ts +556 -0
  43. package/dist/esm/abis/iBep20.d.ts +201 -0
  44. package/dist/esm/abis/iUniswapV2Pair.d.ts +560 -0
  45. package/dist/esm/abis/iUniswapV3Pool.d.ts +770 -0
  46. package/dist/esm/abis/index.d.ts +24 -0
  47. package/dist/esm/abis/index.js +24 -0
  48. package/dist/esm/abis/l1ArbitrumGateway.d.ts +494 -0
  49. package/dist/esm/abis/l1OrbitCustomGateway.d.ts +769 -0
  50. package/dist/esm/abis/l2ArbitrumGateway.d.ts +308 -0
  51. package/dist/esm/abis/liquidityReserve.d.ts +421 -0
  52. package/dist/esm/abis/rfox.d.ts +680 -0
  53. package/dist/esm/abis/thorchainRouter.d.ts +349 -0
  54. package/dist/esm/abis/tokeManager.d.ts +774 -0
  55. package/dist/esm/abis/tokePool.d.ts +502 -0
  56. package/dist/esm/abis/tokeRewardHash.d.ts +112 -0
  57. package/dist/esm/abis/uniV2StakingRewards.d.ts +316 -0
  58. package/dist/esm/abis/uniswapV2Router02.d.ts +737 -0
  59. package/dist/esm/abis/uniswapV3Quoter.d.ts +147 -0
  60. package/dist/esm/abis/weth.d.ts +213 -0
  61. package/dist/esm/constants.d.ts +6640 -0
  62. package/dist/{constants.js → esm/constants.js} +6 -6
  63. package/dist/esm/contractManager.d.ts +11 -0
  64. package/dist/{contractManager.js → esm/contractManager.js} +4 -4
  65. package/dist/esm/ethersProviderSingleton.d.ts +6 -0
  66. package/dist/{ethersProviderSingleton.js → esm/ethersProviderSingleton.js} +9 -9
  67. package/dist/esm/index.d.ts +6 -0
  68. package/dist/esm/index.js +6 -0
  69. package/dist/esm/types.d.ts +21 -0
  70. package/dist/esm/viemClient.d.ts +28338 -0
  71. package/dist/{viemClient.js → esm/viemClient.js} +13 -32
  72. package/package.json +22 -10
  73. package/dist/abis/index.js +0 -24
  74. package/dist/index.js +0 -6
  75. /package/dist/{abis → cjs/abis}/arbOutbox.d.ts +0 -0
  76. /package/dist/{abis → cjs/abis}/arbProxy.d.ts +0 -0
  77. /package/dist/{abis → cjs/abis}/arbRetryableTx.d.ts +0 -0
  78. /package/dist/{abis → cjs/abis}/arbSys.d.ts +0 -0
  79. /package/dist/{abis → cjs/abis}/evergreenFarming.d.ts +0 -0
  80. /package/dist/{abis → cjs/abis}/farming.d.ts +0 -0
  81. /package/dist/{abis → cjs/abis}/foxy.d.ts +0 -0
  82. /package/dist/{abis → cjs/abis}/foxyStaking.d.ts +0 -0
  83. /package/dist/{abis → cjs/abis}/iBep20.d.ts +0 -0
  84. /package/dist/{abis → cjs/abis}/iUniswapV2Pair.d.ts +0 -0
  85. /package/dist/{abis → cjs/abis}/iUniswapV3Pool.d.ts +0 -0
  86. /package/dist/{abis → cjs/abis}/index.d.ts +0 -0
  87. /package/dist/{abis → cjs/abis}/l1ArbitrumGateway.d.ts +0 -0
  88. /package/dist/{abis → cjs/abis}/l1OrbitCustomGateway.d.ts +0 -0
  89. /package/dist/{abis → cjs/abis}/l2ArbitrumGateway.d.ts +0 -0
  90. /package/dist/{abis → cjs/abis}/liquidityReserve.d.ts +0 -0
  91. /package/dist/{abis → cjs/abis}/rfox.d.ts +0 -0
  92. /package/dist/{abis → cjs/abis}/thorchainRouter.d.ts +0 -0
  93. /package/dist/{abis → cjs/abis}/tokeManager.d.ts +0 -0
  94. /package/dist/{abis → cjs/abis}/tokePool.d.ts +0 -0
  95. /package/dist/{abis → cjs/abis}/tokeRewardHash.d.ts +0 -0
  96. /package/dist/{abis → cjs/abis}/uniV2StakingRewards.d.ts +0 -0
  97. /package/dist/{abis → cjs/abis}/uniswapV2Router02.d.ts +0 -0
  98. /package/dist/{abis → cjs/abis}/uniswapV3Quoter.d.ts +0 -0
  99. /package/dist/{abis → cjs/abis}/weth.d.ts +0 -0
  100. /package/dist/{constants.d.ts → cjs/constants.d.ts} +0 -0
  101. /package/dist/{contractManager.d.ts → cjs/contractManager.d.ts} +0 -0
  102. /package/dist/{ethersProviderSingleton.d.ts → cjs/ethersProviderSingleton.d.ts} +0 -0
  103. /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
  104. /package/dist/{types.d.ts → cjs/types.d.ts} +0 -0
  105. /package/dist/{viemClient.d.ts → cjs/viemClient.d.ts} +0 -0
  106. /package/dist/{abis → esm/abis}/arbOutbox.js +0 -0
  107. /package/dist/{abis → esm/abis}/arbProxy.js +0 -0
  108. /package/dist/{abis → esm/abis}/arbRetryableTx.js +0 -0
  109. /package/dist/{abis → esm/abis}/arbSys.js +0 -0
  110. /package/dist/{abis → esm/abis}/evergreenFarming.js +0 -0
  111. /package/dist/{abis → esm/abis}/farming.js +0 -0
  112. /package/dist/{abis → esm/abis}/foxy.js +0 -0
  113. /package/dist/{abis → esm/abis}/foxyStaking.js +0 -0
  114. /package/dist/{abis → esm/abis}/iBep20.js +0 -0
  115. /package/dist/{abis → esm/abis}/iUniswapV2Pair.js +0 -0
  116. /package/dist/{abis → esm/abis}/iUniswapV3Pool.js +0 -0
  117. /package/dist/{abis → esm/abis}/l1ArbitrumGateway.js +0 -0
  118. /package/dist/{abis → esm/abis}/l1OrbitCustomGateway.js +0 -0
  119. /package/dist/{abis → esm/abis}/l2ArbitrumGateway.js +0 -0
  120. /package/dist/{abis → esm/abis}/liquidityReserve.js +0 -0
  121. /package/dist/{abis → esm/abis}/rfox.js +0 -0
  122. /package/dist/{abis → esm/abis}/thorchainRouter.js +0 -0
  123. /package/dist/{abis → esm/abis}/tokeManager.js +0 -0
  124. /package/dist/{abis → esm/abis}/tokePool.js +0 -0
  125. /package/dist/{abis → esm/abis}/tokeRewardHash.js +0 -0
  126. /package/dist/{abis → esm/abis}/uniV2StakingRewards.js +0 -0
  127. /package/dist/{abis → esm/abis}/uniswapV2Router02.js +0 -0
  128. /package/dist/{abis → esm/abis}/uniswapV3Quoter.js +0 -0
  129. /package/dist/{abis → esm/abis}/weth.js +0 -0
  130. /package/dist/{types.js → esm/types.js} +0 -0
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./arbOutbox"), exports);
18
+ __exportStar(require("./arbProxy"), exports);
19
+ __exportStar(require("./arbRetryableTx"), exports);
20
+ __exportStar(require("./arbSys"), exports);
21
+ __exportStar(require("./iBep20"), exports);
22
+ __exportStar(require("./farming"), exports);
23
+ __exportStar(require("./evergreenFarming"), exports);
24
+ __exportStar(require("./foxy"), exports);
25
+ __exportStar(require("./foxyStaking"), exports);
26
+ __exportStar(require("./l1ArbitrumGateway"), exports);
27
+ __exportStar(require("./l1OrbitCustomGateway"), exports);
28
+ __exportStar(require("./l2ArbitrumGateway"), exports);
29
+ __exportStar(require("./liquidityReserve"), exports);
30
+ __exportStar(require("./rfox"), exports);
31
+ __exportStar(require("./thorchainRouter"), exports);
32
+ __exportStar(require("./tokeManager"), exports);
33
+ __exportStar(require("./tokePool"), exports);
34
+ __exportStar(require("./tokeRewardHash"), exports);
35
+ __exportStar(require("./iUniswapV2Pair"), exports);
36
+ __exportStar(require("./uniswapV2Router02"), exports);
37
+ __exportStar(require("./iUniswapV3Pool"), exports);
38
+ __exportStar(require("./uniswapV3Quoter"), exports);
39
+ __exportStar(require("./uniV2StakingRewards"), exports);
40
+ __exportStar(require("./weth"), exports);
@@ -0,0 +1,259 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.L1_ARBITRUM_GATEWAY_ABI = void 0;
4
+ exports.L1_ARBITRUM_GATEWAY_ABI = [
5
+ {
6
+ anonymous: false,
7
+ inputs: [
8
+ { indexed: false, internalType: 'address', name: 'newDefaultGateway', type: 'address' },
9
+ ],
10
+ name: 'DefaultGatewayUpdated',
11
+ type: 'event',
12
+ },
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ { indexed: true, internalType: 'address', name: 'l1Token', type: 'address' },
17
+ { indexed: true, internalType: 'address', name: 'gateway', type: 'address' },
18
+ ],
19
+ name: 'GatewaySet',
20
+ type: 'event',
21
+ },
22
+ {
23
+ anonymous: false,
24
+ inputs: [
25
+ { indexed: true, internalType: 'address', name: 'token', type: 'address' },
26
+ { indexed: true, internalType: 'address', name: '_userFrom', type: 'address' },
27
+ { indexed: true, internalType: 'address', name: '_userTo', type: 'address' },
28
+ { indexed: false, internalType: 'address', name: 'gateway', type: 'address' },
29
+ ],
30
+ name: 'TransferRouted',
31
+ type: 'event',
32
+ },
33
+ {
34
+ anonymous: false,
35
+ inputs: [
36
+ { indexed: true, internalType: 'address', name: '_from', type: 'address' },
37
+ { indexed: true, internalType: 'address', name: '_to', type: 'address' },
38
+ { indexed: true, internalType: 'uint256', name: '_seqNum', type: 'uint256' },
39
+ { indexed: false, internalType: 'bytes', name: '_data', type: 'bytes' },
40
+ ],
41
+ name: 'TxToL2',
42
+ type: 'event',
43
+ },
44
+ {
45
+ anonymous: false,
46
+ inputs: [{ indexed: false, internalType: 'address', name: 'newSource', type: 'address' }],
47
+ name: 'WhitelistSourceUpdated',
48
+ type: 'event',
49
+ },
50
+ {
51
+ inputs: [{ internalType: 'address', name: 'l1ERC20', type: 'address' }],
52
+ name: 'calculateL2TokenAddress',
53
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
54
+ stateMutability: 'view',
55
+ type: 'function',
56
+ },
57
+ {
58
+ inputs: [],
59
+ name: 'counterpartGateway',
60
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
61
+ stateMutability: 'view',
62
+ type: 'function',
63
+ },
64
+ {
65
+ inputs: [],
66
+ name: 'defaultGateway',
67
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
68
+ stateMutability: 'view',
69
+ type: 'function',
70
+ },
71
+ {
72
+ inputs: [
73
+ { internalType: 'address', name: '', type: 'address' },
74
+ { internalType: 'address', name: '', type: 'address' },
75
+ { internalType: 'address', name: '', type: 'address' },
76
+ { internalType: 'uint256', name: '', type: 'uint256' },
77
+ { internalType: 'bytes', name: '', type: 'bytes' },
78
+ ],
79
+ name: 'finalizeInboundTransfer',
80
+ outputs: [],
81
+ stateMutability: 'payable',
82
+ type: 'function',
83
+ },
84
+ {
85
+ inputs: [{ internalType: 'address', name: '_token', type: 'address' }],
86
+ name: 'getGateway',
87
+ outputs: [{ internalType: 'address', name: 'gateway', type: 'address' }],
88
+ stateMutability: 'view',
89
+ type: 'function',
90
+ },
91
+ {
92
+ inputs: [
93
+ { internalType: 'address', name: '_token', type: 'address' },
94
+ { internalType: 'address', name: '_from', type: 'address' },
95
+ { internalType: 'address', name: '_to', type: 'address' },
96
+ { internalType: 'uint256', name: '_amount', type: 'uint256' },
97
+ { internalType: 'bytes', name: '_data', type: 'bytes' },
98
+ ],
99
+ name: 'getOutboundCalldata',
100
+ outputs: [{ internalType: 'bytes', name: '', type: 'bytes' }],
101
+ stateMutability: 'view',
102
+ type: 'function',
103
+ },
104
+ {
105
+ inputs: [],
106
+ name: 'inbox',
107
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
108
+ stateMutability: 'view',
109
+ type: 'function',
110
+ },
111
+ {
112
+ inputs: [
113
+ { internalType: 'address', name: '_owner', type: 'address' },
114
+ { internalType: 'address', name: '_defaultGateway', type: 'address' },
115
+ { internalType: 'address', name: '', type: 'address' },
116
+ { internalType: 'address', name: '_counterpartGateway', type: 'address' },
117
+ { internalType: 'address', name: '_inbox', type: 'address' },
118
+ ],
119
+ name: 'initialize',
120
+ outputs: [],
121
+ stateMutability: 'nonpayable',
122
+ type: 'function',
123
+ },
124
+ {
125
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
126
+ name: 'l1TokenToGateway',
127
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
128
+ stateMutability: 'view',
129
+ type: 'function',
130
+ },
131
+ {
132
+ inputs: [
133
+ { internalType: 'address', name: '_token', type: 'address' },
134
+ { internalType: 'address', name: '_to', type: 'address' },
135
+ { internalType: 'uint256', name: '_amount', type: 'uint256' },
136
+ { internalType: 'uint256', name: '_maxGas', type: 'uint256' },
137
+ { internalType: 'uint256', name: '_gasPriceBid', type: 'uint256' },
138
+ { internalType: 'bytes', name: '_data', type: 'bytes' },
139
+ ],
140
+ name: 'outboundTransfer',
141
+ outputs: [{ internalType: 'bytes', name: '', type: 'bytes' }],
142
+ stateMutability: 'payable',
143
+ type: 'function',
144
+ },
145
+ {
146
+ inputs: [
147
+ { internalType: 'address', name: '_token', type: 'address' },
148
+ { internalType: 'address', name: '_refundTo', type: 'address' },
149
+ { internalType: 'address', name: '_to', type: 'address' },
150
+ { internalType: 'uint256', name: '_amount', type: 'uint256' },
151
+ { internalType: 'uint256', name: '_maxGas', type: 'uint256' },
152
+ { internalType: 'uint256', name: '_gasPriceBid', type: 'uint256' },
153
+ { internalType: 'bytes', name: '_data', type: 'bytes' },
154
+ ],
155
+ name: 'outboundTransferCustomRefund',
156
+ outputs: [{ internalType: 'bytes', name: '', type: 'bytes' }],
157
+ stateMutability: 'payable',
158
+ type: 'function',
159
+ },
160
+ {
161
+ inputs: [],
162
+ name: 'owner',
163
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
164
+ stateMutability: 'view',
165
+ type: 'function',
166
+ },
167
+ {
168
+ inputs: [],
169
+ name: 'postUpgradeInit',
170
+ outputs: [],
171
+ stateMutability: 'nonpayable',
172
+ type: 'function',
173
+ },
174
+ {
175
+ inputs: [],
176
+ name: 'router',
177
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
178
+ stateMutability: 'view',
179
+ type: 'function',
180
+ },
181
+ {
182
+ inputs: [
183
+ { internalType: 'address', name: 'newL1DefaultGateway', type: 'address' },
184
+ { internalType: 'uint256', name: '_maxGas', type: 'uint256' },
185
+ { internalType: 'uint256', name: '_gasPriceBid', type: 'uint256' },
186
+ { internalType: 'uint256', name: '_maxSubmissionCost', type: 'uint256' },
187
+ ],
188
+ name: 'setDefaultGateway',
189
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
190
+ stateMutability: 'payable',
191
+ type: 'function',
192
+ },
193
+ {
194
+ inputs: [
195
+ { internalType: 'address', name: '_gateway', type: 'address' },
196
+ { internalType: 'uint256', name: '_maxGas', type: 'uint256' },
197
+ { internalType: 'uint256', name: '_gasPriceBid', type: 'uint256' },
198
+ { internalType: 'uint256', name: '_maxSubmissionCost', type: 'uint256' },
199
+ { internalType: 'address', name: '_creditBackAddress', type: 'address' },
200
+ ],
201
+ name: 'setGateway',
202
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
203
+ stateMutability: 'payable',
204
+ type: 'function',
205
+ },
206
+ {
207
+ inputs: [
208
+ { internalType: 'address', name: '_gateway', type: 'address' },
209
+ { internalType: 'uint256', name: '_maxGas', type: 'uint256' },
210
+ { internalType: 'uint256', name: '_gasPriceBid', type: 'uint256' },
211
+ { internalType: 'uint256', name: '_maxSubmissionCost', type: 'uint256' },
212
+ ],
213
+ name: 'setGateway',
214
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
215
+ stateMutability: 'payable',
216
+ type: 'function',
217
+ },
218
+ {
219
+ inputs: [
220
+ { internalType: 'address[]', name: '_token', type: 'address[]' },
221
+ { internalType: 'address[]', name: '_gateway', type: 'address[]' },
222
+ { internalType: 'uint256', name: '_maxGas', type: 'uint256' },
223
+ { internalType: 'uint256', name: '_gasPriceBid', type: 'uint256' },
224
+ { internalType: 'uint256', name: '_maxSubmissionCost', type: 'uint256' },
225
+ ],
226
+ name: 'setGateways',
227
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
228
+ stateMutability: 'payable',
229
+ type: 'function',
230
+ },
231
+ {
232
+ inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
233
+ name: 'setOwner',
234
+ outputs: [],
235
+ stateMutability: 'nonpayable',
236
+ type: 'function',
237
+ },
238
+ {
239
+ inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
240
+ name: 'supportsInterface',
241
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
242
+ stateMutability: 'view',
243
+ type: 'function',
244
+ },
245
+ {
246
+ inputs: [{ internalType: 'address', name: 'newSource', type: 'address' }],
247
+ name: 'updateWhitelistSource',
248
+ outputs: [],
249
+ stateMutability: 'nonpayable',
250
+ type: 'function',
251
+ },
252
+ {
253
+ inputs: [],
254
+ name: 'whitelist',
255
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
256
+ stateMutability: 'view',
257
+ type: 'function',
258
+ },
259
+ ];
@@ -0,0 +1,378 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.L1_ORBIT_CUSTOM_GATEWAY_ABI = void 0;
4
+ exports.L1_ORBIT_CUSTOM_GATEWAY_ABI = [
5
+ {
6
+ inputs: [
7
+ { internalType: 'uint256', name: 'dataLength', type: 'uint256' },
8
+ { internalType: 'uint256', name: 'maxDataLength', type: 'uint256' },
9
+ ],
10
+ name: 'DataTooLarge',
11
+ type: 'error',
12
+ },
13
+ { inputs: [], name: 'GasLimitTooLarge', type: 'error' },
14
+ {
15
+ inputs: [
16
+ { internalType: 'uint256', name: 'expected', type: 'uint256' },
17
+ { internalType: 'uint256', name: 'actual', type: 'uint256' },
18
+ ],
19
+ name: 'InsufficientSubmissionCost',
20
+ type: 'error',
21
+ },
22
+ {
23
+ inputs: [
24
+ { internalType: 'uint256', name: 'expected', type: 'uint256' },
25
+ { internalType: 'uint256', name: 'actual', type: 'uint256' },
26
+ ],
27
+ name: 'InsufficientValue',
28
+ type: 'error',
29
+ },
30
+ { inputs: [], name: 'L1Forked', type: 'error' },
31
+ {
32
+ inputs: [{ internalType: 'address', name: 'origin', type: 'address' }],
33
+ name: 'NotAllowedOrigin',
34
+ type: 'error',
35
+ },
36
+ { inputs: [], name: 'NotForked', type: 'error' },
37
+ { inputs: [], name: 'NotOrigin', type: 'error' },
38
+ {
39
+ inputs: [
40
+ { internalType: 'address', name: 'sender', type: 'address' },
41
+ { internalType: 'address', name: 'owner', type: 'address' },
42
+ ],
43
+ name: 'NotOwner',
44
+ type: 'error',
45
+ },
46
+ {
47
+ inputs: [
48
+ { internalType: 'address', name: 'sender', type: 'address' },
49
+ { internalType: 'address', name: 'rollup', type: 'address' },
50
+ { internalType: 'address', name: 'owner', type: 'address' },
51
+ ],
52
+ name: 'NotRollupOrOwner',
53
+ type: 'error',
54
+ },
55
+ {
56
+ inputs: [
57
+ { internalType: 'address', name: 'from', type: 'address' },
58
+ { internalType: 'address', name: 'to', type: 'address' },
59
+ { internalType: 'uint256', name: 'l2CallValue', type: 'uint256' },
60
+ { internalType: 'uint256', name: 'deposit', type: 'uint256' },
61
+ { internalType: 'uint256', name: 'maxSubmissionCost', type: 'uint256' },
62
+ { internalType: 'address', name: 'excessFeeRefundAddress', type: 'address' },
63
+ { internalType: 'address', name: 'callValueRefundAddress', type: 'address' },
64
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
65
+ { internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
66
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
67
+ ],
68
+ name: 'RetryableData',
69
+ type: 'error',
70
+ },
71
+ {
72
+ anonymous: false,
73
+ inputs: [
74
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
75
+ { indexed: false, internalType: 'bool', name: 'val', type: 'bool' },
76
+ ],
77
+ name: 'AllowListAddressSet',
78
+ type: 'event',
79
+ },
80
+ {
81
+ anonymous: false,
82
+ inputs: [{ indexed: false, internalType: 'bool', name: 'isEnabled', type: 'bool' }],
83
+ name: 'AllowListEnabledUpdated',
84
+ type: 'event',
85
+ },
86
+ {
87
+ anonymous: false,
88
+ inputs: [
89
+ { indexed: true, internalType: 'uint256', name: 'messageNum', type: 'uint256' },
90
+ { indexed: false, internalType: 'bytes', name: 'data', type: 'bytes' },
91
+ ],
92
+ name: 'InboxMessageDelivered',
93
+ type: 'event',
94
+ },
95
+ {
96
+ anonymous: false,
97
+ inputs: [{ indexed: true, internalType: 'uint256', name: 'messageNum', type: 'uint256' }],
98
+ name: 'InboxMessageDeliveredFromOrigin',
99
+ type: 'event',
100
+ },
101
+ {
102
+ anonymous: false,
103
+ inputs: [{ indexed: false, internalType: 'address', name: 'account', type: 'address' }],
104
+ name: 'Paused',
105
+ type: 'event',
106
+ },
107
+ {
108
+ anonymous: false,
109
+ inputs: [{ indexed: false, internalType: 'address', name: 'account', type: 'address' }],
110
+ name: 'Unpaused',
111
+ type: 'event',
112
+ },
113
+ {
114
+ inputs: [],
115
+ name: 'allowListEnabled',
116
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
117
+ stateMutability: 'view',
118
+ type: 'function',
119
+ },
120
+ {
121
+ inputs: [],
122
+ name: 'bridge',
123
+ outputs: [{ internalType: 'contract IBridge', name: '', type: 'address' }],
124
+ stateMutability: 'view',
125
+ type: 'function',
126
+ },
127
+ {
128
+ inputs: [
129
+ { internalType: 'uint256', name: 'dataLength', type: 'uint256' },
130
+ { internalType: 'uint256', name: 'baseFee', type: 'uint256' },
131
+ ],
132
+ name: 'calculateRetryableSubmissionFee',
133
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
134
+ stateMutability: 'view',
135
+ type: 'function',
136
+ },
137
+ {
138
+ inputs: [
139
+ { internalType: 'address', name: 'to', type: 'address' },
140
+ { internalType: 'uint256', name: 'l2CallValue', type: 'uint256' },
141
+ { internalType: 'uint256', name: 'maxSubmissionCost', type: 'uint256' },
142
+ { internalType: 'address', name: 'excessFeeRefundAddress', type: 'address' },
143
+ { internalType: 'address', name: 'callValueRefundAddress', type: 'address' },
144
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
145
+ { internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
146
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
147
+ ],
148
+ name: 'createRetryableTicket',
149
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
150
+ stateMutability: 'payable',
151
+ type: 'function',
152
+ },
153
+ {
154
+ inputs: [
155
+ { internalType: 'address', name: 'to', type: 'address' },
156
+ { internalType: 'uint256', name: 'l2CallValue', type: 'uint256' },
157
+ { internalType: 'uint256', name: 'maxSubmissionCost', type: 'uint256' },
158
+ { internalType: 'address', name: 'excessFeeRefundAddress', type: 'address' },
159
+ { internalType: 'address', name: 'callValueRefundAddress', type: 'address' },
160
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
161
+ { internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
162
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
163
+ ],
164
+ name: 'createRetryableTicketNoRefundAliasRewrite',
165
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
166
+ stateMutability: 'payable',
167
+ type: 'function',
168
+ },
169
+ {
170
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
171
+ name: 'depositEth',
172
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
173
+ stateMutability: 'payable',
174
+ type: 'function',
175
+ },
176
+ {
177
+ inputs: [],
178
+ name: 'depositEth',
179
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
180
+ stateMutability: 'payable',
181
+ type: 'function',
182
+ },
183
+ {
184
+ inputs: [
185
+ { internalType: 'contract IBridge', name: '_bridge', type: 'address' },
186
+ { internalType: 'contract ISequencerInbox', name: '_sequencerInbox', type: 'address' },
187
+ ],
188
+ name: 'initialize',
189
+ outputs: [],
190
+ stateMutability: 'nonpayable',
191
+ type: 'function',
192
+ },
193
+ {
194
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
195
+ name: 'isAllowed',
196
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
197
+ stateMutability: 'view',
198
+ type: 'function',
199
+ },
200
+ { inputs: [], name: 'pause', outputs: [], stateMutability: 'nonpayable', type: 'function' },
201
+ {
202
+ inputs: [],
203
+ name: 'paused',
204
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
205
+ stateMutability: 'view',
206
+ type: 'function',
207
+ },
208
+ {
209
+ inputs: [{ internalType: 'contract IBridge', name: '', type: 'address' }],
210
+ name: 'postUpgradeInit',
211
+ outputs: [],
212
+ stateMutability: 'nonpayable',
213
+ type: 'function',
214
+ },
215
+ {
216
+ inputs: [
217
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
218
+ { internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
219
+ { internalType: 'address', name: 'to', type: 'address' },
220
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
221
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
222
+ ],
223
+ name: 'sendContractTransaction',
224
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
225
+ stateMutability: 'nonpayable',
226
+ type: 'function',
227
+ },
228
+ {
229
+ inputs: [
230
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
231
+ { internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
232
+ { internalType: 'address', name: 'to', type: 'address' },
233
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
234
+ ],
235
+ name: 'sendL1FundedContractTransaction',
236
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
237
+ stateMutability: 'payable',
238
+ type: 'function',
239
+ },
240
+ {
241
+ inputs: [
242
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
243
+ { internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
244
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
245
+ { internalType: 'address', name: 'to', type: 'address' },
246
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
247
+ ],
248
+ name: 'sendL1FundedUnsignedTransaction',
249
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
250
+ stateMutability: 'payable',
251
+ type: 'function',
252
+ },
253
+ {
254
+ inputs: [
255
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
256
+ { internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
257
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
258
+ { internalType: 'address', name: 'to', type: 'address' },
259
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
260
+ ],
261
+ name: 'sendL1FundedUnsignedTransactionToFork',
262
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
263
+ stateMutability: 'payable',
264
+ type: 'function',
265
+ },
266
+ {
267
+ inputs: [{ internalType: 'bytes', name: 'messageData', type: 'bytes' }],
268
+ name: 'sendL2Message',
269
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
270
+ stateMutability: 'nonpayable',
271
+ type: 'function',
272
+ },
273
+ {
274
+ inputs: [{ internalType: 'bytes', name: 'messageData', type: 'bytes' }],
275
+ name: 'sendL2MessageFromOrigin',
276
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
277
+ stateMutability: 'nonpayable',
278
+ type: 'function',
279
+ },
280
+ {
281
+ inputs: [
282
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
283
+ { internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
284
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
285
+ { internalType: 'address', name: 'to', type: 'address' },
286
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
287
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
288
+ ],
289
+ name: 'sendUnsignedTransaction',
290
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
291
+ stateMutability: 'nonpayable',
292
+ type: 'function',
293
+ },
294
+ {
295
+ inputs: [
296
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
297
+ { internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
298
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
299
+ { internalType: 'address', name: 'to', type: 'address' },
300
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
301
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
302
+ ],
303
+ name: 'sendUnsignedTransactionToFork',
304
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
305
+ stateMutability: 'nonpayable',
306
+ type: 'function',
307
+ },
308
+ {
309
+ inputs: [
310
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
311
+ { internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
312
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
313
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
314
+ { internalType: 'address', name: 'withdrawTo', type: 'address' },
315
+ ],
316
+ name: 'sendWithdrawEthToFork',
317
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
318
+ stateMutability: 'nonpayable',
319
+ type: 'function',
320
+ },
321
+ {
322
+ inputs: [],
323
+ name: 'sequencerInbox',
324
+ outputs: [{ internalType: 'contract ISequencerInbox', name: '', type: 'address' }],
325
+ stateMutability: 'view',
326
+ type: 'function',
327
+ },
328
+ {
329
+ inputs: [
330
+ { internalType: 'address[]', name: 'user', type: 'address[]' },
331
+ { internalType: 'bool[]', name: 'val', type: 'bool[]' },
332
+ ],
333
+ name: 'setAllowList',
334
+ outputs: [],
335
+ stateMutability: 'nonpayable',
336
+ type: 'function',
337
+ },
338
+ {
339
+ inputs: [{ internalType: 'bool', name: '_allowListEnabled', type: 'bool' }],
340
+ name: 'setAllowListEnabled',
341
+ outputs: [],
342
+ stateMutability: 'nonpayable',
343
+ type: 'function',
344
+ },
345
+ {
346
+ inputs: [
347
+ { internalType: 'address', name: 'to', type: 'address' },
348
+ { internalType: 'uint256', name: 'l2CallValue', type: 'uint256' },
349
+ { internalType: 'uint256', name: 'maxSubmissionCost', type: 'uint256' },
350
+ { internalType: 'address', name: 'excessFeeRefundAddress', type: 'address' },
351
+ { internalType: 'address', name: 'callValueRefundAddress', type: 'address' },
352
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
353
+ { internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
354
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
355
+ ],
356
+ name: 'uniswapCreateRetryableTicket',
357
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
358
+ stateMutability: 'payable',
359
+ type: 'function',
360
+ },
361
+ { inputs: [], name: 'unpause', outputs: [], stateMutability: 'nonpayable', type: 'function' },
362
+ {
363
+ inputs: [
364
+ { internalType: 'address', name: 'to', type: 'address' },
365
+ { internalType: 'uint256', name: 'l2CallValue', type: 'uint256' },
366
+ { internalType: 'uint256', name: 'maxSubmissionCost', type: 'uint256' },
367
+ { internalType: 'address', name: 'excessFeeRefundAddress', type: 'address' },
368
+ { internalType: 'address', name: 'callValueRefundAddress', type: 'address' },
369
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
370
+ { internalType: 'uint256', name: 'maxFeePerGas', type: 'uint256' },
371
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
372
+ ],
373
+ name: 'unsafeCreateRetryableTicket',
374
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
375
+ stateMutability: 'payable',
376
+ type: 'function',
377
+ },
378
+ ];