@snowbridge/contract-types 0.3.0 → 0.3.2-alpha.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.
- package/.turbo/turbo-build.log +3430 -2878
- package/dist/ISwapLegacyRouter.d.ts +62 -0
- package/dist/ISwapLegacyRouter.d.ts.map +1 -0
- package/dist/ISwapLegacyRouter.js +2 -0
- package/dist/ISwapQuoter.d.ts +76 -0
- package/dist/ISwapQuoter.d.ts.map +1 -0
- package/dist/ISwapQuoter.js +2 -0
- package/dist/ISwapRouter.d.ts +65 -0
- package/dist/ISwapRouter.d.ts.map +1 -0
- package/dist/ISwapRouter.js +2 -0
- package/dist/SnowbridgeL1Adaptor.d.ts +120 -0
- package/dist/SnowbridgeL1Adaptor.d.ts.map +1 -0
- package/dist/SnowbridgeL1Adaptor.js +2 -0
- package/dist/SnowbridgeL2Adaptor.d.ts +160 -0
- package/dist/SnowbridgeL2Adaptor.d.ts.map +1 -0
- package/dist/SnowbridgeL2Adaptor.js +2 -0
- package/dist/factories/ISwapLegacyRouter__factory.d.ts +51 -0
- package/dist/factories/ISwapLegacyRouter__factory.d.ts.map +1 -0
- package/dist/factories/ISwapLegacyRouter__factory.js +75 -0
- package/dist/factories/ISwapQuoter__factory.d.ts +55 -0
- package/dist/factories/ISwapQuoter__factory.d.ts.map +1 -0
- package/dist/factories/ISwapQuoter__factory.js +80 -0
- package/dist/factories/ISwapRouter__factory.d.ts +55 -0
- package/dist/factories/ISwapRouter__factory.d.ts.map +1 -0
- package/dist/factories/ISwapRouter__factory.js +80 -0
- package/dist/factories/SnowbridgeL1Adaptor__factory.d.ts +191 -0
- package/dist/factories/SnowbridgeL1Adaptor__factory.d.ts.map +1 -0
- package/dist/factories/SnowbridgeL1Adaptor__factory.js +256 -0
- package/dist/factories/SnowbridgeL2Adaptor__factory.d.ts +276 -0
- package/dist/factories/SnowbridgeL2Adaptor__factory.d.ts.map +1 -0
- package/dist/factories/SnowbridgeL2Adaptor__factory.js +365 -0
- package/dist/factories/index.d.ts +5 -0
- package/dist/factories/index.d.ts.map +1 -1
- package/dist/factories/index.js +11 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -1
- package/package.json +3 -3
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SnowbridgeL1Adaptor__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
type: "constructor",
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
name: "_spokePool",
|
|
14
|
+
type: "address",
|
|
15
|
+
internalType: "address",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "_l1weth9",
|
|
19
|
+
type: "address",
|
|
20
|
+
internalType: "address",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: "_l2weth9",
|
|
24
|
+
type: "address",
|
|
25
|
+
internalType: "address",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
stateMutability: "nonpayable",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: "receive",
|
|
32
|
+
stateMutability: "payable",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: "function",
|
|
36
|
+
name: "L1_WETH9",
|
|
37
|
+
inputs: [],
|
|
38
|
+
outputs: [
|
|
39
|
+
{
|
|
40
|
+
name: "",
|
|
41
|
+
type: "address",
|
|
42
|
+
internalType: "contract WETH9",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
stateMutability: "view",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "function",
|
|
49
|
+
name: "L2_WETH9",
|
|
50
|
+
inputs: [],
|
|
51
|
+
outputs: [
|
|
52
|
+
{
|
|
53
|
+
name: "",
|
|
54
|
+
type: "address",
|
|
55
|
+
internalType: "contract WETH9",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
stateMutability: "view",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
type: "function",
|
|
62
|
+
name: "SPOKE_POOL",
|
|
63
|
+
inputs: [],
|
|
64
|
+
outputs: [
|
|
65
|
+
{
|
|
66
|
+
name: "",
|
|
67
|
+
type: "address",
|
|
68
|
+
internalType: "contract ISpokePool",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
stateMutability: "view",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
type: "function",
|
|
75
|
+
name: "depositNativeEther",
|
|
76
|
+
inputs: [
|
|
77
|
+
{
|
|
78
|
+
name: "params",
|
|
79
|
+
type: "tuple",
|
|
80
|
+
internalType: "struct DepositParams",
|
|
81
|
+
components: [
|
|
82
|
+
{
|
|
83
|
+
name: "inputToken",
|
|
84
|
+
type: "address",
|
|
85
|
+
internalType: "address",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "outputToken",
|
|
89
|
+
type: "address",
|
|
90
|
+
internalType: "address",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "inputAmount",
|
|
94
|
+
type: "uint256",
|
|
95
|
+
internalType: "uint256",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "outputAmount",
|
|
99
|
+
type: "uint256",
|
|
100
|
+
internalType: "uint256",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: "destinationChainId",
|
|
104
|
+
type: "uint256",
|
|
105
|
+
internalType: "uint256",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "fillDeadlineBuffer",
|
|
109
|
+
type: "uint32",
|
|
110
|
+
internalType: "uint32",
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "recipient",
|
|
116
|
+
type: "address",
|
|
117
|
+
internalType: "address",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "topic",
|
|
121
|
+
type: "bytes32",
|
|
122
|
+
internalType: "bytes32",
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
outputs: [],
|
|
126
|
+
stateMutability: "nonpayable",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
type: "function",
|
|
130
|
+
name: "depositToken",
|
|
131
|
+
inputs: [
|
|
132
|
+
{
|
|
133
|
+
name: "params",
|
|
134
|
+
type: "tuple",
|
|
135
|
+
internalType: "struct DepositParams",
|
|
136
|
+
components: [
|
|
137
|
+
{
|
|
138
|
+
name: "inputToken",
|
|
139
|
+
type: "address",
|
|
140
|
+
internalType: "address",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: "outputToken",
|
|
144
|
+
type: "address",
|
|
145
|
+
internalType: "address",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "inputAmount",
|
|
149
|
+
type: "uint256",
|
|
150
|
+
internalType: "uint256",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: "outputAmount",
|
|
154
|
+
type: "uint256",
|
|
155
|
+
internalType: "uint256",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: "destinationChainId",
|
|
159
|
+
type: "uint256",
|
|
160
|
+
internalType: "uint256",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: "fillDeadlineBuffer",
|
|
164
|
+
type: "uint32",
|
|
165
|
+
internalType: "uint32",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: "recipient",
|
|
171
|
+
type: "address",
|
|
172
|
+
internalType: "address",
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: "topic",
|
|
176
|
+
type: "bytes32",
|
|
177
|
+
internalType: "bytes32",
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
outputs: [],
|
|
181
|
+
stateMutability: "nonpayable",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
type: "event",
|
|
185
|
+
name: "DepositCallFailed",
|
|
186
|
+
inputs: [
|
|
187
|
+
{
|
|
188
|
+
name: "topic",
|
|
189
|
+
type: "bytes32",
|
|
190
|
+
indexed: false,
|
|
191
|
+
internalType: "bytes32",
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
anonymous: false,
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
type: "event",
|
|
198
|
+
name: "DepositCallInvoked",
|
|
199
|
+
inputs: [
|
|
200
|
+
{
|
|
201
|
+
name: "topic",
|
|
202
|
+
type: "bytes32",
|
|
203
|
+
indexed: false,
|
|
204
|
+
internalType: "bytes32",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: "depositId",
|
|
208
|
+
type: "uint256",
|
|
209
|
+
indexed: false,
|
|
210
|
+
internalType: "uint256",
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
anonymous: false,
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
type: "error",
|
|
217
|
+
name: "SafeERC20FailedOperation",
|
|
218
|
+
inputs: [
|
|
219
|
+
{
|
|
220
|
+
name: "token",
|
|
221
|
+
type: "address",
|
|
222
|
+
internalType: "address",
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
},
|
|
226
|
+
];
|
|
227
|
+
const _bytecode = "0x60e060405234801561000f575f5ffd5b506040516111b33803806111b383398101604081905261002e91610066565b6001600160a01b0392831660805290821660a0521660c0526100a6565b80516001600160a01b0381168114610061575f5ffd5b919050565b5f5f5f60608486031215610078575f5ffd5b6100818461004b565b925061008f6020850161004b565b915061009d6040850161004b565b90509250925092565b60805160a05160c0516110bb6100f85f395f81816101060152610b2a01525f818160d30152610b0601525f8181607701528181610238015281816103c50152818161059801526105f601526110bb5ff3fe60806040526004361061005b575f3560e01c8063b18ccf0d11610041578063b18ccf0d146100f5578063c554c2ef14610128578063d14484ad14610149575f5ffd5b80638021fef714610066578063a76a50f6146100c2575f5ffd5b3661006257005b5f5ffd5b348015610071575f5ffd5b506100997f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100cd575f5ffd5b506100997f000000000000000000000000000000000000000000000000000000000000000081565b348015610100575f5ffd5b506100997f000000000000000000000000000000000000000000000000000000000000000081565b348015610133575f5ffd5b50610147610142366004610ec5565b610168565b005b348015610154575f5ffd5b50610147610163366004610ec5565b6104d8565b5f6101766020850185610f06565b73ffffffffffffffffffffffffffffffffffffffff161461021e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f496e70757420746f6b656e206d757374206265207a65726f206164647265737360448201527f20666f72206e617469766520455448206465706f73697473000000000000000060648201526084015b60405180910390fd5b6102288383610750565b5f6102338484610ac6565b90505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168560400135836040516102809190610f26565b5f6040518083038185875af1925050503d805f81146102ba576040519150601f19603f3d011682016040523d82523d5f602084013e6102bf565b606091505b5090915047905080156103ba575f8573ffffffffffffffffffffffffffffffffffffffff16826040515f6040518083038185875af1925050503d805f8114610322576040519150601f19603f3d011682016040523d82523d5f602084013e610327565b606091505b50509050806103b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4661696c656420746f207472616e736665722072656d61696e696e672065746860448201527f657220746f20726563697069656e7400000000000000000000000000000000006064820152608401610215565b505b811561049c575f60017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a1244c676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561042c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104509190610f3c565b61045a9190610f80565b60408051878152602081018390529192507f14bfd4fd7e654256d3222db5d1ec5e59cd23dd5df10bd8faccc1cabe984b3508910160405180910390a1506104d0565b6040518481527f759aee2ba41080c1e3a57140ba7b446c1347cff289214a2fd1c81554ddc173809060200160405180910390a15b505050505050565b5f6104e66020850185610f06565b73ffffffffffffffffffffffffffffffffffffffff1603610589576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f496e70757420746f6b656e2063616e6e6f74206265207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610215565b6105938383610750565b6105e67f000000000000000000000000000000000000000000000000000000000000000060408501356105c96020870187610f06565b73ffffffffffffffffffffffffffffffffffffffff169190610c28565b5f6105f18484610cf3565b90505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16826040516106399190610f26565b5f604051808303815f865af19150503d805f8114610672576040519150601f19603f3d011682016040523d82523d5f602084013e610677565b606091505b509091505f905061068b6020870187610f06565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa1580156106f5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107199190610f3c565b905080156103ba576103ba858261073360208a018a610f06565b73ffffffffffffffffffffffffffffffffffffffff169190610d98565b5f8260400135116107e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f496e70757420616d6f756e74206d75737420626520677265617465722074686160448201527f6e207a65726f00000000000000000000000000000000000000000000000000006064820152608401610215565b5f826060013511610876576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4f757470757420616d6f756e74206d757374206265206772656174657220746860448201527f616e207a65726f000000000000000000000000000000000000000000000000006064820152608401610215565b81604001358260600135111561090e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f4f757470757420616d6f756e74206578636565647320696e70757420616d6f7560448201527f6e740000000000000000000000000000000000000000000000000000000000006064820152608401610215565b5f61091f60c0840160a08501610f93565b63ffffffff16116109b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f46696c6c20646561646c696e6520627566666572206d7573742062652067726560448201527f61746572207468616e207a65726f0000000000000000000000000000000000006064820152608401610215565b81608001355f03610a45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f44657374696e6174696f6e20636861696e2049442063616e6e6f74206265207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610215565b73ffffffffffffffffffffffffffffffffffffffff8116610ac2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f526563697069656e742063616e6e6f74206265207a65726f20616464726573736044820152606401610215565b5050565b60607fad5425c60000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff8084169081907f00000000000000000000000000000000000000000000000000000000000000008116907f00000000000000000000000000000000000000000000000000000000000000001660408801358887013560808a01355f42610b6a60c08e0160a08f01610f93565b610b7a9063ffffffff1642610fb6565b604080516020810182525f8082529151610ba29c9b9a99989796959493929190602401610fc9565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290505b92915050565b610c348383835f610da5565b610cee57610c4583835f6001610da5565b610c93576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610215565b610ca08383836001610da5565b610cee576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610215565b505050565b60607fad5425c60000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff831680610d3b6020870187610f06565b73ffffffffffffffffffffffffffffffffffffffff16610d616040880160208901610f06565b73ffffffffffffffffffffffffffffffffffffffff166040880135606089013560808a01355f42610b6a60c08e0160a08f01610f93565b610ca08383836001610e2d565b6040517f095ea7b3000000000000000000000000000000000000000000000000000000005f81815273ffffffffffffffffffffffffffffffffffffffff8616600452602485905291602083604481808b5af1925060015f51148316610e21578383151615610e15573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000005f81815273ffffffffffffffffffffffffffffffffffffffff8616600452602485905291602083604481808b5af1925060015f51148316610e21578383151615610e15573d5f823e3d81fd5b803573ffffffffffffffffffffffffffffffffffffffff81168114610ec0575f5ffd5b919050565b5f5f5f838503610100811215610ed9575f5ffd5b60c0811215610ee6575f5ffd5b50839250610ef660c08501610e9d565b915060e084013590509250925092565b5f60208284031215610f16575f5ffd5b610f1f82610e9d565b9392505050565b5f82518060208501845e5f920191825250919050565b5f60208284031215610f4c575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b81810381811115610c2257610c22610f53565b5f60208284031215610fa3575f5ffd5b813563ffffffff81168114610f1f575f5ffd5b80820180821115610c2257610c22610f53565b8c81528b60208201528a60408201528960608201528860808201528760a08201528660c08201528560e082015263ffffffff851661010082015263ffffffff841661012082015260ff83166101408201526101806101608201525f61018082015f84518083528060208701602085015e5f6020828501015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011684010191505080925050509d9c5050505050505050505050505056fea26469706673582212204dc845bdf7829373cb48729202d32d00653c5c1dae7d006c14411fb3dcbe914864736f6c634300081c0033";
|
|
228
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
229
|
+
class SnowbridgeL1Adaptor__factory extends ethers_1.ContractFactory {
|
|
230
|
+
constructor(...args) {
|
|
231
|
+
if (isSuperArgs(args)) {
|
|
232
|
+
super(...args);
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
super(_abi, _bytecode, args[0]);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
getDeployTransaction(_spokePool, _l1weth9, _l2weth9, overrides) {
|
|
239
|
+
return super.getDeployTransaction(_spokePool, _l1weth9, _l2weth9, overrides || {});
|
|
240
|
+
}
|
|
241
|
+
deploy(_spokePool, _l1weth9, _l2weth9, overrides) {
|
|
242
|
+
return super.deploy(_spokePool, _l1weth9, _l2weth9, overrides || {});
|
|
243
|
+
}
|
|
244
|
+
connect(runner) {
|
|
245
|
+
return super.connect(runner);
|
|
246
|
+
}
|
|
247
|
+
static createInterface() {
|
|
248
|
+
return new ethers_1.Interface(_abi);
|
|
249
|
+
}
|
|
250
|
+
static connect(address, runner) {
|
|
251
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
exports.SnowbridgeL1Adaptor__factory = SnowbridgeL1Adaptor__factory;
|
|
255
|
+
SnowbridgeL1Adaptor__factory.bytecode = _bytecode;
|
|
256
|
+
SnowbridgeL1Adaptor__factory.abi = _abi;
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, AddressLike, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../common";
|
|
4
|
+
import type { SnowbridgeL2Adaptor, SnowbridgeL2AdaptorInterface } from "../SnowbridgeL2Adaptor";
|
|
5
|
+
type SnowbridgeL2AdaptorConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class SnowbridgeL2Adaptor__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: SnowbridgeL2AdaptorConstructorParams);
|
|
8
|
+
getDeployTransaction(_spokePool: AddressLike, _handler: AddressLike, _gateway: AddressLike, _l1weth9: AddressLike, _l2weth9: AddressLike, overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(_spokePool: AddressLike, _handler: AddressLike, _gateway: AddressLike, _l1weth9: AddressLike, _l2weth9: AddressLike, overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<SnowbridgeL2Adaptor & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): SnowbridgeL2Adaptor__factory;
|
|
17
|
+
static readonly bytecode = "0x610120604052348015610010575f5ffd5b5060405161293438038061293483398101604081905261002f91610074565b6001600160a01b0394851660805291841660c05291831660a05290821660e05216610100526100d5565b80516001600160a01b038116811461006f575f5ffd5b919050565b5f5f5f5f5f60a08688031215610088575f5ffd5b61009186610059565b945061009f60208701610059565b93506100ad60408701610059565b92506100bb60608701610059565b91506100c960808701610059565b90509295509295909350565b60805160a05160c05160e0516101005161278a6101aa5f395f81816101a3015281816104570152818161070a015281816107a8015281816107ee0152611e2a01525f818161017001528181610f3c01528181610f7801528181611b0501528181611b410152611e6301525f818160e9015281816110a4015281816111b50152818161129a0152611c0301525f8181608d015281816114940152611df101525f818161011c01528181610375015281816108100152818161143f015281816115b601528181611d9c0152611f1f015261278a5ff3fe608060405260043610610071575f3560e01c806390f6055a1161004c57806390f6055a1461013e578063a76a50f61461015f578063b18ccf0d14610192578063bed250e9146101c5575f5ffd5b8063134c319b1461007c578063338c5371146100d85780638021fef71461010b575f5ffd5b3661007857005b5f5ffd5b348015610087575f5ffd5b506100af7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100e3575f5ffd5b506100af7f000000000000000000000000000000000000000000000000000000000000000081565b348015610116575f5ffd5b506100af7f000000000000000000000000000000000000000000000000000000000000000081565b348015610149575f5ffd5b5061015d61015836600461212a565b6101d8565b005b34801561016a575f5ffd5b506100af7f000000000000000000000000000000000000000000000000000000000000000081565b34801561019d575f5ffd5b506100af7f000000000000000000000000000000000000000000000000000000000000000081565b61015d6101d33660046121be565b610415565b5f6101e66020870187612223565b73ffffffffffffffffffffffffffffffffffffffff160361028e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f496e70757420746f6b656e2063616e6e6f74206265207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61029a858585856108f0565b6102a984356060870135612270565b85604001351161033b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f496e70757420616d6f756e74206d75737420636f766572206f7574707574206160448201527f6d6f756e7420616e642066656520616d6f756e740000000000000000000000006064820152608401610285565b6103703330604088013561035260208a018a612223565b73ffffffffffffffffffffffffffffffffffffffff16929190610aba565b6103c37f000000000000000000000000000000000000000000000000000000000000000060408701356103a66020890189612223565b73ffffffffffffffffffffffffffffffffffffffff169190610b16565b5f6103d086868686610be1565b60408051848152602081018390529192507f14bfd4fd7e654256d3222db5d1ec5e59cd23dd5df10bd8faccc1cabe984b350891015b60405180910390a1505050505050565b5f6104236020860186612223565b73ffffffffffffffffffffffffffffffffffffffff16148061049c575073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000166104846020860186612223565b73ffffffffffffffffffffffffffffffffffffffff16145b61054e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604b60248201527f496e70757420746f6b656e206d757374206265207a65726f206164647265737360448201527f206f72204c322057455448206164647265737320666f72206e6174697665204560648201527f5448206465706f73697473000000000000000000000000000000000000000000608482015260a401610285565b610559848484611657565b5f61056a60a0850160808601612289565b6fffffffffffffffffffffffffffffffff1661058c6080860160608701612289565b6105ac906fffffffffffffffffffffffffffffffff166060880135612270565b6105b69190612270565b90508085604001351161064b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f496e70757420616d6f756e74206d75737420636f766572206f7574707574206160448201527f6d6f756e7420616e642066656520616d6f756e740000000000000000000000006064820152608401610285565b5f6106596020870187612223565b73ffffffffffffffffffffffffffffffffffffffff160361078e578460400135341015610708576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f53656e742076616c7565206d7573742062652067726561746572207468616e2060448201527f6f7220657175616c20746f20746f74616c20616d6f756e7400000000000000006064820152608401610285565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db086604001356040518263ffffffff1660e01b81526004015f604051808303818588803b158015610772575f5ffd5b505af1158015610784573d5f5f3e3d5ffd5b50505050506107d4565b6107d473ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633306040890135610aba565b61083973ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006040880135610b16565b5f61084686868685611a91565b90505f6108566020880188612223565b73ffffffffffffffffffffffffffffffffffffffff1614801561087c5750856040013534115b156108ba57336108fc6108936040890135346122b8565b6040518115909202915f818181858888f193505050501580156108b8573d5f5f3e3d5ffd5b505b60408051848152602081018390527f14bfd4fd7e654256d3222db5d1ec5e59cd23dd5df10bd8faccc1cabe984b35089101610405565b6108fb848383611657565b8235610989576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e70757420616d6f756e7420666f7220666565206d7573742062652067726560448201527f61746572207468616e207a65726f0000000000000000000000000000000000006064820152608401610285565b5f61099a6040850160208601612223565b73ffffffffffffffffffffffffffffffffffffffff1603610a3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f5377617020726f757465722063616e6e6f74206265207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610285565b5f610a4b60408501856122cb565b905011610ab4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f537761702063616c6c446174612063616e6e6f7420626520656d7074790000006044820152606401610285565b50505050565b610ac8848484846001611fc1565b610ab4576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602401610285565b610b228383835f612054565b610bdc57610b3383835f6001612054565b610b81576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610285565b610b8e8383836001612054565b610bdc576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610285565b505050565b5f80610bf360c0870160a08801612333565b610c039063ffffffff1642612270565b60408051600780825261010082019092529192505f9190816020015b610c5760405180606001604052805f73ffffffffffffffffffffffffffffffffffffffff168152602001606081526020015f81525090565b815260200190600190039081610c1f575050604080516060810182529192508190610c87908a0160208b01612223565b73ffffffffffffffffffffffffffffffffffffffff168152602001876020016020810190610cb59190612223565b60405173ffffffffffffffffffffffffffffffffffffffff90911660248201525f6044820152606401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529082525f91018190528251839190610d6f57610d6f612356565b60200260200101819052506040518060600160405280886020016020810190610d989190612223565b73ffffffffffffffffffffffffffffffffffffffff168152602001876020016020810190610dc69190612223565b60405173ffffffffffffffffffffffffffffffffffffffff909116602482015288356044820152606401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529082525f910152815182906001908110610e8357610e83612356565b60200260200101819052506040518060600160405280876020016020810190610eac9190612223565b73ffffffffffffffffffffffffffffffffffffffff168152602001610ed460408901896122cb565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920182905250938552505050602090910152815182906002908110610f2457610f24612356565b602002602001018190525060405180606001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d886060016020810190610fc59190612289565b610fd560a08b0160808c01612289565b610fdf9190612383565b6040516fffffffffffffffffffffffffffffffff9091166024820152604401604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505081526020015f8152508160038151811061105c5761105c612356565b602002602001018190525060405180606001604052808860200160208101906110859190612223565b73ffffffffffffffffffffffffffffffffffffffff90811682526040517f000000000000000000000000000000000000000000000000000000000000000090911660248201525f6044820152602090910190606401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529082525f91015281518290600490811061116d5761116d612356565b602002602001018190525060405180606001604052808860200160208101906111969190612223565b73ffffffffffffffffffffffffffffffffffffffff90811682526040517f0000000000000000000000000000000000000000000000000000000000000000909116602482015260608a01356044820152602090910190606401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529082525f91015281518290600590811061128257611282612356565b602002602001018190525060405180606001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16815260200186805f01906112e391906122cb565b6112f060208a018a6123ab565b6112fd60408c018c6122cb565b61130d60808e0160608f01612289565b8d60800160208101906113209190612289565b604051602401611337989796959493929190612456565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167ff2e500b200000000000000000000000000000000000000000000000000000000179052908252016113c26080880160608901612289565b6113d260a0890160808a01612289565b6113dc9190612383565b6fffffffffffffffffffffffffffffffff168152508160068151811061140457611404612356565b60200260200101819052505f60405180604001604052808381526020018673ffffffffffffffffffffffffffffffffffffffff1681525090507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ad5425c68673ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b8b5f0160208101906114dd9190612223565b73ffffffffffffffffffffffffffffffffffffffff1661150360408e0160208f01612223565b73ffffffffffffffffffffffffffffffffffffffff165f1b8d604001358d5f01358f606001356115339190612270565b8f608001355f5f1b428d5f8d60405160200161154f91906125da565b6040516020818303038152906040526040518d63ffffffff1660e01b81526004016115859c9b9a999897969594939291906126bf565b5f604051808303815f87803b15801561159c575f5ffd5b505af11580156115ae573d5f5f3e3d5ffd5b5050505060017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a1244c676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561161d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611641919061273d565b61164b91906122b8565b98975050505050505050565b5f8360400135116116ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f496e70757420616d6f756e74206d75737420626520677265617465722074686160448201527f6e207a65726f00000000000000000000000000000000000000000000000000006064820152608401610285565b5f83606001351161177d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4f757470757420616d6f756e74206d757374206265206772656174657220746860448201527f616e207a65726f000000000000000000000000000000000000000000000000006064820152608401610285565b5f61178e60a0840160808501612289565b6fffffffffffffffffffffffffffffffff161161182d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f52656c6179657220666565206d7573742062652067726561746572207468616e60448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610285565b5f61183e6080840160608501612289565b6fffffffffffffffffffffffffffffffff16116118dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f457865637574696f6e20666565206d757374206265206772656174657220746860448201527f616e207a65726f000000000000000000000000000000000000000000000000006064820152608401610285565b5f6118ee60c0850160a08601612333565b63ffffffff1611611981576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f46696c6c20646561646c696e6520627566666572206d7573742062652067726560448201527f61746572207468616e207a65726f0000000000000000000000000000000000006064820152608401610285565b82608001355f03611a14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f44657374696e6174696f6e20636861696e2049442063616e6e6f74206265207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610285565b73ffffffffffffffffffffffffffffffffffffffff8116610bdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f526563697069656e742063616e6e6f74206265207a65726f20616464726573736044820152606401610285565b604080516002808252606082019092525f91829190816020015b611ae360405180606001604052805f73ffffffffffffffffffffffffffffffffffffffff168152602001606081526020015f81525090565b815260200190600190039081611aab57905050905060405180606001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d86604051602401611b8e91815260200190565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505081526020015f815250815f81518110611beb57611beb612356565b602002602001018190525060405180606001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16815260200186805f0190611c4c91906122cb565b611c5960208a018a6123ab565b611c6660408c018c6122cb565b611c7660808e0160608f01612289565b8d6080016020810190611c899190612289565b604051602401611ca0989796959493929190612456565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167ff2e500b20000000000000000000000000000000000000000000000000000000017905290825201849052815182906001908110611d3357611d33612356565b60200260200101819052505f60405180604001604052808381526020018673ffffffffffffffffffffffffffffffffffffffff1681525090505f8760a0016020810190611d809190612333565b611d909063ffffffff1642612270565b90505f886080013590507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ad5425c68873ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b8e604001358c885f5f1b428c5f8f604051602001611eb891906125da565b6040516020818303038152906040526040518d63ffffffff1660e01b8152600401611eee9c9b9a999897969594939291906126bf565b5f604051808303815f87803b158015611f05575f5ffd5b505af1158015611f17573d5f5f3e3d5ffd5b5050505060017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a1244c676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f86573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611faa919061273d565b611fb491906122b8565b9998505050505050505050565b6040517f23b872dd000000000000000000000000000000000000000000000000000000005f81815273ffffffffffffffffffffffffffffffffffffffff8781166004528616602452604485905291602083606481808c5af1925060015f51148316612043578383151615612037573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b6040517f095ea7b3000000000000000000000000000000000000000000000000000000005f81815273ffffffffffffffffffffffffffffffffffffffff8616600452602485905291602083604481808b5af1925060015f511483166120d05783831516156120c4573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b5f60c082840312156120ec575f5ffd5b50919050565b5f60a082840312156120ec575f5ffd5b803573ffffffffffffffffffffffffffffffffffffffff81168114612125575f5ffd5b919050565b5f5f5f5f5f610140868803121561213f575f5ffd5b61214987876120dc565b945060c086013567ffffffffffffffff811115612164575f5ffd5b860160608189031215612175575f5ffd5b935060e086013567ffffffffffffffff811115612190575f5ffd5b61219c888289016120f2565b9350506121ac6101008701612102565b94979396509194610120013592915050565b5f5f5f5f61012085870312156121d2575f5ffd5b6121dc86866120dc565b935060c085013567ffffffffffffffff8111156121f7575f5ffd5b612203878288016120f2565b93505061221260e08601612102565b939692955092936101000135925050565b5f60208284031215612233575f5ffd5b61223c82612102565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b8082018082111561228357612283612243565b92915050565b5f60208284031215612299575f5ffd5b81356fffffffffffffffffffffffffffffffff8116811461223c575f5ffd5b8181038181111561228357612283612243565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126122fe575f5ffd5b83018035915067ffffffffffffffff821115612318575f5ffd5b60200191503681900382131561232c575f5ffd5b9250929050565b5f60208284031215612343575f5ffd5b813563ffffffff8116811461223c575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b6fffffffffffffffffffffffffffffffff818116838216019081111561228357612283612243565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126123de575f5ffd5b83018035915067ffffffffffffffff8211156123f8575f5ffd5b6020019150600581901b360382131561232c575f5ffd5b81835281816020850137505f602082840101525f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b60a081525f61246960a083018a8c61240f565b82810360208401528088825260208201905060208960051b8301018a5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18d3603015b8c821015612538577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe086850301855282358181126124e8575f5ffd5b8e0160208101903567ffffffffffffffff811115612504575f5ffd5b803603821315612512575f5ffd5b61251d86828461240f565b955050506020830192506020850194506001820191506124ac565b505050848103604086015261254e81898b61240f565b935050505061257160608301856fffffffffffffffffffffffffffffffff169052565b6fffffffffffffffffffffffffffffffff83166080830152611fb4565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081525f6060820183516040602085015281815180845260808601915060808160051b87010193506020830192505f5b81811015612692577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80878603018352835173ffffffffffffffffffffffffffffffffffffffff815116865260208101516060602088015261266f606088018261258e565b60409283015197909201969096529450602093840193929092019160010161260b565b50505050602084015173ffffffffffffffffffffffffffffffffffffffff81166040850152509392505050565b8c81528b60208201528a60408201528960608201528860808201528760a08201528660c08201528560e082015263ffffffff851661010082015263ffffffff841661012082015263ffffffff83166101408201526101806101608201525f61272b61018083018461258e565b9e9d5050505050505050505050505050565b5f6020828403121561274d575f5ffd5b505191905056fea264697066735822122017fdf44d3ab2eb172a86cef5d0199db3fb2682859eea15f4265e68f263d59d3c64736f6c634300081c0033";
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly type: "constructor";
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly name: "_spokePool";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
readonly internalType: "address";
|
|
24
|
+
}, {
|
|
25
|
+
readonly name: "_handler";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "_gateway";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "_l1weth9";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "_l2weth9";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
readonly internalType: "address";
|
|
40
|
+
}];
|
|
41
|
+
readonly stateMutability: "nonpayable";
|
|
42
|
+
}, {
|
|
43
|
+
readonly type: "receive";
|
|
44
|
+
readonly stateMutability: "payable";
|
|
45
|
+
}, {
|
|
46
|
+
readonly type: "function";
|
|
47
|
+
readonly name: "GATEWAY";
|
|
48
|
+
readonly inputs: readonly [];
|
|
49
|
+
readonly outputs: readonly [{
|
|
50
|
+
readonly name: "";
|
|
51
|
+
readonly type: "address";
|
|
52
|
+
readonly internalType: "contract IGatewayV2";
|
|
53
|
+
}];
|
|
54
|
+
readonly stateMutability: "view";
|
|
55
|
+
}, {
|
|
56
|
+
readonly type: "function";
|
|
57
|
+
readonly name: "L1_WETH9";
|
|
58
|
+
readonly inputs: readonly [];
|
|
59
|
+
readonly outputs: readonly [{
|
|
60
|
+
readonly name: "";
|
|
61
|
+
readonly type: "address";
|
|
62
|
+
readonly internalType: "contract WETH9";
|
|
63
|
+
}];
|
|
64
|
+
readonly stateMutability: "view";
|
|
65
|
+
}, {
|
|
66
|
+
readonly type: "function";
|
|
67
|
+
readonly name: "L2_WETH9";
|
|
68
|
+
readonly inputs: readonly [];
|
|
69
|
+
readonly outputs: readonly [{
|
|
70
|
+
readonly name: "";
|
|
71
|
+
readonly type: "address";
|
|
72
|
+
readonly internalType: "contract WETH9";
|
|
73
|
+
}];
|
|
74
|
+
readonly stateMutability: "view";
|
|
75
|
+
}, {
|
|
76
|
+
readonly type: "function";
|
|
77
|
+
readonly name: "MULTI_CALL_HANDLER";
|
|
78
|
+
readonly inputs: readonly [];
|
|
79
|
+
readonly outputs: readonly [{
|
|
80
|
+
readonly name: "";
|
|
81
|
+
readonly type: "address";
|
|
82
|
+
readonly internalType: "contract IMessageHandler";
|
|
83
|
+
}];
|
|
84
|
+
readonly stateMutability: "view";
|
|
85
|
+
}, {
|
|
86
|
+
readonly type: "function";
|
|
87
|
+
readonly name: "SPOKE_POOL";
|
|
88
|
+
readonly inputs: readonly [];
|
|
89
|
+
readonly outputs: readonly [{
|
|
90
|
+
readonly name: "";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
readonly internalType: "contract ISpokePool";
|
|
93
|
+
}];
|
|
94
|
+
readonly stateMutability: "view";
|
|
95
|
+
}, {
|
|
96
|
+
readonly type: "function";
|
|
97
|
+
readonly name: "sendEtherAndCall";
|
|
98
|
+
readonly inputs: readonly [{
|
|
99
|
+
readonly name: "params";
|
|
100
|
+
readonly type: "tuple";
|
|
101
|
+
readonly internalType: "struct DepositParams";
|
|
102
|
+
readonly components: readonly [{
|
|
103
|
+
readonly name: "inputToken";
|
|
104
|
+
readonly type: "address";
|
|
105
|
+
readonly internalType: "address";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "outputToken";
|
|
108
|
+
readonly type: "address";
|
|
109
|
+
readonly internalType: "address";
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "inputAmount";
|
|
112
|
+
readonly type: "uint256";
|
|
113
|
+
readonly internalType: "uint256";
|
|
114
|
+
}, {
|
|
115
|
+
readonly name: "outputAmount";
|
|
116
|
+
readonly type: "uint256";
|
|
117
|
+
readonly internalType: "uint256";
|
|
118
|
+
}, {
|
|
119
|
+
readonly name: "destinationChainId";
|
|
120
|
+
readonly type: "uint256";
|
|
121
|
+
readonly internalType: "uint256";
|
|
122
|
+
}, {
|
|
123
|
+
readonly name: "fillDeadlineBuffer";
|
|
124
|
+
readonly type: "uint32";
|
|
125
|
+
readonly internalType: "uint32";
|
|
126
|
+
}];
|
|
127
|
+
}, {
|
|
128
|
+
readonly name: "sendParams";
|
|
129
|
+
readonly type: "tuple";
|
|
130
|
+
readonly internalType: "struct SendParams";
|
|
131
|
+
readonly components: readonly [{
|
|
132
|
+
readonly name: "xcm";
|
|
133
|
+
readonly type: "bytes";
|
|
134
|
+
readonly internalType: "bytes";
|
|
135
|
+
}, {
|
|
136
|
+
readonly name: "assets";
|
|
137
|
+
readonly type: "bytes[]";
|
|
138
|
+
readonly internalType: "bytes[]";
|
|
139
|
+
}, {
|
|
140
|
+
readonly name: "claimer";
|
|
141
|
+
readonly type: "bytes";
|
|
142
|
+
readonly internalType: "bytes";
|
|
143
|
+
}, {
|
|
144
|
+
readonly name: "executionFee";
|
|
145
|
+
readonly type: "uint128";
|
|
146
|
+
readonly internalType: "uint128";
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "relayerFee";
|
|
149
|
+
readonly type: "uint128";
|
|
150
|
+
readonly internalType: "uint128";
|
|
151
|
+
}];
|
|
152
|
+
}, {
|
|
153
|
+
readonly name: "recipient";
|
|
154
|
+
readonly type: "address";
|
|
155
|
+
readonly internalType: "address";
|
|
156
|
+
}, {
|
|
157
|
+
readonly name: "topic";
|
|
158
|
+
readonly type: "bytes32";
|
|
159
|
+
readonly internalType: "bytes32";
|
|
160
|
+
}];
|
|
161
|
+
readonly outputs: readonly [];
|
|
162
|
+
readonly stateMutability: "payable";
|
|
163
|
+
}, {
|
|
164
|
+
readonly type: "function";
|
|
165
|
+
readonly name: "sendTokenAndCall";
|
|
166
|
+
readonly inputs: readonly [{
|
|
167
|
+
readonly name: "params";
|
|
168
|
+
readonly type: "tuple";
|
|
169
|
+
readonly internalType: "struct DepositParams";
|
|
170
|
+
readonly components: readonly [{
|
|
171
|
+
readonly name: "inputToken";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
readonly internalType: "address";
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "outputToken";
|
|
176
|
+
readonly type: "address";
|
|
177
|
+
readonly internalType: "address";
|
|
178
|
+
}, {
|
|
179
|
+
readonly name: "inputAmount";
|
|
180
|
+
readonly type: "uint256";
|
|
181
|
+
readonly internalType: "uint256";
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "outputAmount";
|
|
184
|
+
readonly type: "uint256";
|
|
185
|
+
readonly internalType: "uint256";
|
|
186
|
+
}, {
|
|
187
|
+
readonly name: "destinationChainId";
|
|
188
|
+
readonly type: "uint256";
|
|
189
|
+
readonly internalType: "uint256";
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "fillDeadlineBuffer";
|
|
192
|
+
readonly type: "uint32";
|
|
193
|
+
readonly internalType: "uint32";
|
|
194
|
+
}];
|
|
195
|
+
}, {
|
|
196
|
+
readonly name: "swapParams";
|
|
197
|
+
readonly type: "tuple";
|
|
198
|
+
readonly internalType: "struct SwapParams";
|
|
199
|
+
readonly components: readonly [{
|
|
200
|
+
readonly name: "inputAmount";
|
|
201
|
+
readonly type: "uint256";
|
|
202
|
+
readonly internalType: "uint256";
|
|
203
|
+
}, {
|
|
204
|
+
readonly name: "router";
|
|
205
|
+
readonly type: "address";
|
|
206
|
+
readonly internalType: "address";
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "callData";
|
|
209
|
+
readonly type: "bytes";
|
|
210
|
+
readonly internalType: "bytes";
|
|
211
|
+
}];
|
|
212
|
+
}, {
|
|
213
|
+
readonly name: "sendParams";
|
|
214
|
+
readonly type: "tuple";
|
|
215
|
+
readonly internalType: "struct SendParams";
|
|
216
|
+
readonly components: readonly [{
|
|
217
|
+
readonly name: "xcm";
|
|
218
|
+
readonly type: "bytes";
|
|
219
|
+
readonly internalType: "bytes";
|
|
220
|
+
}, {
|
|
221
|
+
readonly name: "assets";
|
|
222
|
+
readonly type: "bytes[]";
|
|
223
|
+
readonly internalType: "bytes[]";
|
|
224
|
+
}, {
|
|
225
|
+
readonly name: "claimer";
|
|
226
|
+
readonly type: "bytes";
|
|
227
|
+
readonly internalType: "bytes";
|
|
228
|
+
}, {
|
|
229
|
+
readonly name: "executionFee";
|
|
230
|
+
readonly type: "uint128";
|
|
231
|
+
readonly internalType: "uint128";
|
|
232
|
+
}, {
|
|
233
|
+
readonly name: "relayerFee";
|
|
234
|
+
readonly type: "uint128";
|
|
235
|
+
readonly internalType: "uint128";
|
|
236
|
+
}];
|
|
237
|
+
}, {
|
|
238
|
+
readonly name: "recipient";
|
|
239
|
+
readonly type: "address";
|
|
240
|
+
readonly internalType: "address";
|
|
241
|
+
}, {
|
|
242
|
+
readonly name: "topic";
|
|
243
|
+
readonly type: "bytes32";
|
|
244
|
+
readonly internalType: "bytes32";
|
|
245
|
+
}];
|
|
246
|
+
readonly outputs: readonly [];
|
|
247
|
+
readonly stateMutability: "nonpayable";
|
|
248
|
+
}, {
|
|
249
|
+
readonly type: "event";
|
|
250
|
+
readonly name: "DepositCallInvoked";
|
|
251
|
+
readonly inputs: readonly [{
|
|
252
|
+
readonly name: "topic";
|
|
253
|
+
readonly type: "bytes32";
|
|
254
|
+
readonly indexed: false;
|
|
255
|
+
readonly internalType: "bytes32";
|
|
256
|
+
}, {
|
|
257
|
+
readonly name: "depositId";
|
|
258
|
+
readonly type: "uint256";
|
|
259
|
+
readonly indexed: false;
|
|
260
|
+
readonly internalType: "uint256";
|
|
261
|
+
}];
|
|
262
|
+
readonly anonymous: false;
|
|
263
|
+
}, {
|
|
264
|
+
readonly type: "error";
|
|
265
|
+
readonly name: "SafeERC20FailedOperation";
|
|
266
|
+
readonly inputs: readonly [{
|
|
267
|
+
readonly name: "token";
|
|
268
|
+
readonly type: "address";
|
|
269
|
+
readonly internalType: "address";
|
|
270
|
+
}];
|
|
271
|
+
}];
|
|
272
|
+
static createInterface(): SnowbridgeL2AdaptorInterface;
|
|
273
|
+
static connect(address: string, runner?: ContractRunner | null): SnowbridgeL2Adaptor;
|
|
274
|
+
}
|
|
275
|
+
export {};
|
|
276
|
+
//# sourceMappingURL=SnowbridgeL2Adaptor__factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnowbridgeL2Adaptor__factory.d.ts","sourceRoot":"","sources":["../../src/factories/SnowbridgeL2Adaptor__factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EACf,2BAA2B,EAE5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,yBAAyB,EACzB,cAAc,EACf,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EACV,mBAAmB,EACnB,4BAA4B,EAC7B,MAAM,wBAAwB,CAAC;AA8UhC,KAAK,oCAAoC,GACrC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACjB,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAMlD,qBAAa,4BAA6B,SAAQ,eAAe;gBACnD,GAAG,IAAI,EAAE,oCAAoC;IAQhD,oBAAoB,CAC3B,UAAU,EAAE,WAAW,EACvB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,yBAAyB,CAAC;IAU5B,MAAM,CACb,UAAU,EAAE,WAAW,EACvB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAS9C,OAAO,CACV,mBAAmB,GAAG;QACpB,qBAAqB,IAAI,2BAA2B,CAAC;KACtD,CACF;IAEM,OAAO,CACd,MAAM,EAAE,cAAc,GAAG,IAAI,GAC5B,4BAA4B;IAI/B,MAAM,CAAC,QAAQ,CAAC,QAAQ,gnpBAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,4BAA4B;IAGtD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,mBAAmB;CAOvB"}
|