@snowbridge/contract-types 1.0.5 → 1.0.6

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 (54) hide show
  1. package/.turbo/turbo-build.log +10 -0
  2. package/dist/BeefyClient.d.ts +78 -2
  3. package/dist/BeefyClient.d.ts.map +1 -1
  4. package/dist/IGateway.sol/IGatewayV1.d.ts +1 -9
  5. package/dist/IGateway.sol/IGatewayV1.d.ts.map +1 -1
  6. package/dist/ISwapLegacyRouter.d.ts +62 -0
  7. package/dist/ISwapLegacyRouter.d.ts.map +1 -0
  8. package/dist/ISwapLegacyRouter.js +2 -0
  9. package/dist/ISwapQuoter.d.ts +76 -0
  10. package/dist/ISwapQuoter.d.ts.map +1 -0
  11. package/dist/ISwapQuoter.js +2 -0
  12. package/dist/ISwapRouter.d.ts +65 -0
  13. package/dist/ISwapRouter.d.ts.map +1 -0
  14. package/dist/ISwapRouter.js +2 -0
  15. package/dist/SnowbridgeL1Adaptor.d.ts +116 -0
  16. package/dist/SnowbridgeL1Adaptor.d.ts.map +1 -0
  17. package/dist/SnowbridgeL1Adaptor.js +2 -0
  18. package/dist/SnowbridgeL2Adaptor.d.ts +160 -0
  19. package/dist/SnowbridgeL2Adaptor.d.ts.map +1 -0
  20. package/dist/SnowbridgeL2Adaptor.js +2 -0
  21. package/dist/factories/BeefyClient__factory.d.ts +242 -11
  22. package/dist/factories/BeefyClient__factory.d.ts.map +1 -1
  23. package/dist/factories/BeefyClient__factory.js +316 -15
  24. package/dist/factories/IGateway.sol/IGatewayV1__factory.d.ts +0 -20
  25. package/dist/factories/IGateway.sol/IGatewayV1__factory.d.ts.map +1 -1
  26. package/dist/factories/IGateway.sol/IGatewayV1__factory.js +0 -26
  27. package/dist/factories/IGateway.sol/IGatewayV2__factory.d.ts +4 -0
  28. package/dist/factories/IGateway.sol/IGatewayV2__factory.d.ts.map +1 -1
  29. package/dist/factories/IGateway.sol/IGatewayV2__factory.js +5 -0
  30. package/dist/factories/ISwapLegacyRouter__factory.d.ts +51 -0
  31. package/dist/factories/ISwapLegacyRouter__factory.d.ts.map +1 -0
  32. package/dist/factories/ISwapLegacyRouter__factory.js +75 -0
  33. package/dist/factories/ISwapQuoter__factory.d.ts +55 -0
  34. package/dist/factories/ISwapQuoter__factory.d.ts.map +1 -0
  35. package/dist/factories/ISwapQuoter__factory.js +80 -0
  36. package/dist/factories/ISwapRouter__factory.d.ts +55 -0
  37. package/dist/factories/ISwapRouter__factory.d.ts.map +1 -0
  38. package/dist/factories/ISwapRouter__factory.js +80 -0
  39. package/dist/factories/SnowbridgeL1Adaptor__factory.d.ts +177 -0
  40. package/dist/factories/SnowbridgeL1Adaptor__factory.d.ts.map +1 -0
  41. package/dist/factories/SnowbridgeL1Adaptor__factory.js +238 -0
  42. package/dist/factories/SnowbridgeL2Adaptor__factory.d.ts +276 -0
  43. package/dist/factories/SnowbridgeL2Adaptor__factory.d.ts.map +1 -0
  44. package/dist/factories/SnowbridgeL2Adaptor__factory.js +365 -0
  45. package/dist/factories/WETH9__factory.d.ts +1 -1
  46. package/dist/factories/WETH9__factory.d.ts.map +1 -1
  47. package/dist/factories/WETH9__factory.js +1 -1
  48. package/dist/factories/index.d.ts +5 -0
  49. package/dist/factories/index.d.ts.map +1 -1
  50. package/dist/factories/index.js +11 -1
  51. package/dist/index.d.ts +10 -0
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +11 -1
  54. package/package.json +9 -9
@@ -0,0 +1,238 @@
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
+ stateMutability: "nonpayable",
24
+ },
25
+ {
26
+ type: "receive",
27
+ stateMutability: "payable",
28
+ },
29
+ {
30
+ type: "function",
31
+ name: "L1_WETH9",
32
+ inputs: [],
33
+ outputs: [
34
+ {
35
+ name: "",
36
+ type: "address",
37
+ internalType: "contract WETH9",
38
+ },
39
+ ],
40
+ stateMutability: "view",
41
+ },
42
+ {
43
+ type: "function",
44
+ name: "SPOKE_POOL",
45
+ inputs: [],
46
+ outputs: [
47
+ {
48
+ name: "",
49
+ type: "address",
50
+ internalType: "contract ISpokePool",
51
+ },
52
+ ],
53
+ stateMutability: "view",
54
+ },
55
+ {
56
+ type: "function",
57
+ name: "depositNativeEther",
58
+ inputs: [
59
+ {
60
+ name: "params",
61
+ type: "tuple",
62
+ internalType: "struct DepositParams",
63
+ components: [
64
+ {
65
+ name: "inputToken",
66
+ type: "address",
67
+ internalType: "address",
68
+ },
69
+ {
70
+ name: "outputToken",
71
+ type: "address",
72
+ internalType: "address",
73
+ },
74
+ {
75
+ name: "inputAmount",
76
+ type: "uint256",
77
+ internalType: "uint256",
78
+ },
79
+ {
80
+ name: "outputAmount",
81
+ type: "uint256",
82
+ internalType: "uint256",
83
+ },
84
+ {
85
+ name: "destinationChainId",
86
+ type: "uint256",
87
+ internalType: "uint256",
88
+ },
89
+ {
90
+ name: "fillDeadlineBuffer",
91
+ type: "uint32",
92
+ internalType: "uint32",
93
+ },
94
+ ],
95
+ },
96
+ {
97
+ name: "recipient",
98
+ type: "address",
99
+ internalType: "address",
100
+ },
101
+ {
102
+ name: "topic",
103
+ type: "bytes32",
104
+ internalType: "bytes32",
105
+ },
106
+ ],
107
+ outputs: [],
108
+ stateMutability: "nonpayable",
109
+ },
110
+ {
111
+ type: "function",
112
+ name: "depositToken",
113
+ inputs: [
114
+ {
115
+ name: "params",
116
+ type: "tuple",
117
+ internalType: "struct DepositParams",
118
+ components: [
119
+ {
120
+ name: "inputToken",
121
+ type: "address",
122
+ internalType: "address",
123
+ },
124
+ {
125
+ name: "outputToken",
126
+ type: "address",
127
+ internalType: "address",
128
+ },
129
+ {
130
+ name: "inputAmount",
131
+ type: "uint256",
132
+ internalType: "uint256",
133
+ },
134
+ {
135
+ name: "outputAmount",
136
+ type: "uint256",
137
+ internalType: "uint256",
138
+ },
139
+ {
140
+ name: "destinationChainId",
141
+ type: "uint256",
142
+ internalType: "uint256",
143
+ },
144
+ {
145
+ name: "fillDeadlineBuffer",
146
+ type: "uint32",
147
+ internalType: "uint32",
148
+ },
149
+ ],
150
+ },
151
+ {
152
+ name: "recipient",
153
+ type: "address",
154
+ internalType: "address",
155
+ },
156
+ {
157
+ name: "topic",
158
+ type: "bytes32",
159
+ internalType: "bytes32",
160
+ },
161
+ ],
162
+ outputs: [],
163
+ stateMutability: "nonpayable",
164
+ },
165
+ {
166
+ type: "event",
167
+ name: "DepositCallFailed",
168
+ inputs: [
169
+ {
170
+ name: "topic",
171
+ type: "bytes32",
172
+ indexed: false,
173
+ internalType: "bytes32",
174
+ },
175
+ ],
176
+ anonymous: false,
177
+ },
178
+ {
179
+ type: "event",
180
+ name: "DepositCallInvoked",
181
+ inputs: [
182
+ {
183
+ name: "topic",
184
+ type: "bytes32",
185
+ indexed: false,
186
+ internalType: "bytes32",
187
+ },
188
+ {
189
+ name: "depositId",
190
+ type: "uint256",
191
+ indexed: false,
192
+ internalType: "uint256",
193
+ },
194
+ ],
195
+ anonymous: false,
196
+ },
197
+ {
198
+ type: "error",
199
+ name: "SafeERC20FailedOperation",
200
+ inputs: [
201
+ {
202
+ name: "token",
203
+ type: "address",
204
+ internalType: "address",
205
+ },
206
+ ],
207
+ },
208
+ ];
209
+ const _bytecode = "0x60c060405234801561000f575f5ffd5b50604051610d54380380610d5483398101604081905261002e91610060565b6001600160a01b039182166080521660a052610091565b80516001600160a01b038116811461005b575f5ffd5b919050565b5f5f60408385031215610071575f5ffd5b61007a83610045565b915061008860208401610045565b90509250929050565b60805160a051610c816100d35f395f818160ac015261086701525f8181605d015281816101b7015281816103020152818161048601526104d70152610c815ff3fe608060405260043610610041575f3560e01c80638021fef71461004c578063a76a50f61461009b578063c554c2ef146100ce578063d14484ad146100ef575f5ffd5b3661004857005b5f5ffd5b348015610057575f5ffd5b5061007f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b3480156100a6575f5ffd5b5061007f7f000000000000000000000000000000000000000000000000000000000000000081565b3480156100d9575f5ffd5b506100ed6100e8366004610ac2565b61010e565b005b3480156100fa575f5ffd5b506100ed610109366004610ac2565b610408565b5f61011c6020850185610b03565b6001600160a01b03161461019d5760405162461bcd60e51b815260206004820152603860248201527f496e70757420746f6b656e206d757374206265207a65726f206164647265737360448201527f20666f72206e617469766520455448206465706f73697473000000000000000060648201526084015b60405180910390fd5b6101a783836105f1565b5f6101b2848461084d565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168560400135836040516101f29190610b23565b5f6040518083038185875af1925050503d805f811461022c576040519150601f19603f3d011682016040523d82523d5f602084013e610231565b606091505b5090915047905080156102f7575f856001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610287576040519150601f19603f3d011682016040523d82523d5f602084013e61028c565b606091505b50509050806102f55760405162461bcd60e51b815260206004820152602f60248201527f4661696c656420746f207472616e736665722072656d61696e696e672065746860448201526e195c881d1bc81c9958da5c1a595b9d608a1b6064820152608401610194565b505b81156103cc575f60017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a1244c676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561035c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103809190610b39565b61038a9190610b64565b60408051878152602081018390529192507f14bfd4fd7e654256d3222db5d1ec5e59cd23dd5df10bd8faccc1cabe984b3508910160405180910390a150610400565b6040518481527f759aee2ba41080c1e3a57140ba7b446c1347cff289214a2fd1c81554ddc173809060200160405180910390a15b505050505050565b5f6104166020850185610b03565b6001600160a01b0316036104775760405162461bcd60e51b815260206004820152602260248201527f496e70757420746f6b656e2063616e6e6f74206265207a65726f206164647265604482015261737360f01b6064820152608401610194565b61048183836105f1565b6104c77f000000000000000000000000000000000000000000000000000000000000000060408501356104b76020870187610b03565b6001600160a01b03169190610934565b5f6104d284846109b3565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168260405161050d9190610b23565b5f604051808303815f865af19150503d805f8114610546576040519150601f19603f3d011682016040523d82523d5f602084013e61054b565b606091505b509091505f905061055f6020870187610b03565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156105a3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105c79190610b39565b905080156102f7576102f785826105e160208a018a610b03565b6001600160a01b031691906109ee565b5f8260400135116106535760405162461bcd60e51b815260206004820152602660248201527f496e70757420616d6f756e74206d7573742062652067726561746572207468616044820152656e207a65726f60d01b6064820152608401610194565b5f8260600135116106b65760405162461bcd60e51b815260206004820152602760248201527f4f757470757420616d6f756e74206d7573742062652067726561746572207468604482015266616e207a65726f60c81b6064820152608401610194565b8160400135826060013511156107195760405162461bcd60e51b815260206004820152602260248201527f4f757470757420616d6f756e74206578636565647320696e70757420616d6f756044820152611b9d60f21b6064820152608401610194565b5f61072a60c0840160a08501610b77565b63ffffffff16116107945760405162461bcd60e51b815260206004820152602e60248201527f46696c6c20646561646c696e6520627566666572206d7573742062652067726560448201526d61746572207468616e207a65726f60901b6064820152608401610194565b81608001355f036107f35760405162461bcd60e51b815260206004820152602360248201527f44657374696e6174696f6e20636861696e2049442063616e6e6f74206265207a60448201526265726f60e81b6064820152608401610194565b6001600160a01b0381166108495760405162461bcd60e51b815260206004820181905260248201527f526563697069656e742063616e6e6f74206265207a65726f20616464726573736044820152606401610194565b5050565b60606356aa12e360e11b6001600160a01b038084169081907f0000000000000000000000000000000000000000000000000000000000000000166108976040880160208901610b03565b6001600160a01b03166040880135606089013560808a01355f426108c160c08e0160a08f01610b77565b6108d19063ffffffff1642610b9a565b604080516020810182525f80825291516108f99c9b9a99989796959493929190602401610bad565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290505b92915050565b6109408383835f6109fb565b6109ae5761095183835f60016109fb565b61097957604051635274afe760e01b81526001600160a01b0384166004820152602401610194565b61098683838360016109fb565b6109ae57604051635274afe760e01b81526001600160a01b0384166004820152602401610194565b505050565b60606356aa12e360e11b6001600160a01b038316806109d56020870187610b03565b6001600160a01b03166108976040880160208901610b03565b6109868383836001610a5d565b60405163095ea7b360e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316610a51578383151615610a45573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316610a51578383151615610a45573d5f823e3d81fd5b80356001600160a01b0381168114610abd575f5ffd5b919050565b5f5f5f838503610100811215610ad6575f5ffd5b60c0811215610ae3575f5ffd5b50839250610af360c08501610aa7565b915060e084013590509250925092565b5f60208284031215610b13575f5ffd5b610b1c82610aa7565b9392505050565b5f82518060208501845e5f920191825250919050565b5f60208284031215610b49575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561092e5761092e610b50565b5f60208284031215610b87575f5ffd5b813563ffffffff81168114610b1c575f5ffd5b8082018082111561092e5761092e610b50565b8c81528b60208201528a60408201528960608201528860808201528760a08201528660c08201528560e082015263ffffffff851661010082015263ffffffff841661012082015260ff83166101408201526101806101608201525f61018082015f84518083528060208701602085015e5f602082850101526020601f19601f83011684010191505080925050509d9c5050505050505050505050505056fea26469706673582212206118c1f3bbbc56b78560ec3f430d7080e2c15c7a99b9a7d413f00b1b7e3587b364736f6c63430008220033";
210
+ const isSuperArgs = (xs) => xs.length > 1;
211
+ class SnowbridgeL1Adaptor__factory extends ethers_1.ContractFactory {
212
+ constructor(...args) {
213
+ if (isSuperArgs(args)) {
214
+ super(...args);
215
+ }
216
+ else {
217
+ super(_abi, _bytecode, args[0]);
218
+ }
219
+ }
220
+ getDeployTransaction(_spokePool, _l1weth9, overrides) {
221
+ return super.getDeployTransaction(_spokePool, _l1weth9, overrides || {});
222
+ }
223
+ deploy(_spokePool, _l1weth9, overrides) {
224
+ return super.deploy(_spokePool, _l1weth9, overrides || {});
225
+ }
226
+ connect(runner) {
227
+ return super.connect(runner);
228
+ }
229
+ static createInterface() {
230
+ return new ethers_1.Interface(_abi);
231
+ }
232
+ static connect(address, runner) {
233
+ return new ethers_1.Contract(address, _abi, runner);
234
+ }
235
+ }
236
+ exports.SnowbridgeL1Adaptor__factory = SnowbridgeL1Adaptor__factory;
237
+ SnowbridgeL1Adaptor__factory.bytecode = _bytecode;
238
+ 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 = "0x610120604052348015610010575f5ffd5b50604051611fb3380380611fb383398101604081905261002f91610074565b6001600160a01b0394851660805291841660c05291831660a05290821660e05216610100526100d5565b80516001600160a01b038116811461006f575f5ffd5b919050565b5f5f5f5f5f60a08688031215610088575f5ffd5b61009186610059565b945061009f60208701610059565b93506100ad60408701610059565b92506100bb60608701610059565b91506100c960808701610059565b90509295509295909350565b60805160a05160c05160e05161010051611e096101aa5f395f81816101960152818161036401528181610534015281816105b8015281816105f1015261161601525f818161016301528181610af101528181610b20015281816113ad015281816113dc015261164201525f818160dc01528181610c1401528181610ccc01528181610d65015261147c01525f8181608d01528181610ed601526115ea01525f818161010f015281816102a90152818161061301528181610e9b01528181610fd1015281816115af01526116f10152611e095ff3fe608060405260043610610071575f3560e01c806390f6055a1161004c57806390f6055a14610131578063a76a50f614610152578063b18ccf0d14610185578063bed250e9146101b8575f5ffd5b8063134c319b1461007c578063338c5371146100cb5780638021fef7146100fe575f5ffd5b3661007857005b5f5ffd5b348015610087575f5ffd5b506100af7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b3480156100d6575f5ffd5b506100af7f000000000000000000000000000000000000000000000000000000000000000081565b348015610109575f5ffd5b506100af7f000000000000000000000000000000000000000000000000000000000000000081565b34801561013c575f5ffd5b5061015061014b366004611896565b6101cb565b005b34801561015d575f5ffd5b506100af7f000000000000000000000000000000000000000000000000000000000000000081565b348015610190575f5ffd5b506100af7f000000000000000000000000000000000000000000000000000000000000000081565b6101506101c636600461192a565b61033c565b5f6101d9602087018761198f565b6001600160a01b03160361023f5760405162461bcd60e51b815260206004820152602260248201527f496e70757420746f6b656e2063616e6e6f74206265207a65726f206164647265604482015261737360f01b60648201526084015b60405180910390fd5b61024b85858585610682565b61025a843560608701356119c3565b85604001351161027c5760405162461bcd60e51b8152600401610236906119dc565b6102a43330604088013561029360208a018a61198f565b6001600160a01b03169291906107c7565b6102ea7f000000000000000000000000000000000000000000000000000000000000000060408701356102da602089018961198f565b6001600160a01b031691906107fd565b5f6102f78686868661087c565b60408051848152602081018390529192507f14bfd4fd7e654256d3222db5d1ec5e59cd23dd5df10bd8faccc1cabe984b350891015b60405180910390a1505050505050565b5f61034a602086018661198f565b6001600160a01b0316148061039c57506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016610391602086018661198f565b6001600160a01b0316145b6104225760405162461bcd60e51b815260206004820152604b60248201527f496e70757420746f6b656e206d757374206265207a65726f206164647265737360448201527f206f72204c322057455448206164647265737320666f72206e6174697665204560648201526a5448206465706f7369747360a81b608482015260a401610236565b61042d848484611065565b5f61043e60a0850160808601611a30565b6001600160801b03166104576080860160608701611a30565b61046e906001600160801b031660608801356119c3565b61047891906119c3565b90508085604001351161049d5760405162461bcd60e51b8152600401610236906119dc565b5f6104ab602087018761198f565b6001600160a01b0316036105ab57846040013534146105325760405162461bcd60e51b815260206004820152603860248201527f53656e742076616c7565206d7573742062652067726561746572207468616e2060448201527f6f7220657175616c20746f20746f74616c20616d6f756e7400000000000000006064820152608401610236565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db086604001356040518263ffffffff1660e01b81526004015f604051808303818588803b15801561058f575f5ffd5b505af11580156105a1573d5f5f3e3d5ffd5b50505050506105e4565b6105e46001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333060408901356107c7565b61063c6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000060408801356107fd565b5f61064986868685611346565b60408051858152602081018390529192507f14bfd4fd7e654256d3222db5d1ec5e59cd23dd5df10bd8faccc1cabe984b3508910161032c565b61068d848383611065565b82356106f25760405162461bcd60e51b815260206004820152602e60248201527f496e70757420616d6f756e7420666f7220666565206d7573742062652067726560448201526d61746572207468616e207a65726f60901b6064820152608401610236565b5f610703604085016020860161198f565b6001600160a01b0316036107645760405162461bcd60e51b815260206004820152602260248201527f5377617020726f757465722063616e6e6f74206265207a65726f206164647265604482015261737360f01b6064820152608401610236565b5f6107726040850185611a56565b9050116107c15760405162461bcd60e51b815260206004820152601d60248201527f537761702063616c6c446174612063616e6e6f7420626520656d7074790000006044820152606401610236565b50505050565b6107d5848484846001611786565b6107c157604051635274afe760e01b81526001600160a01b0385166004820152602401610236565b6108098383835f6117f3565b6108775761081a83835f60016117f3565b61084257604051635274afe760e01b81526001600160a01b0384166004820152602401610236565b61084f83838360016117f3565b61087757604051635274afe760e01b81526001600160a01b0384166004820152602401610236565b505050565b5f8061088e60c0870160a08801611aa0565b61089e9063ffffffff16426119c3565b60408051600780825261010082019092529192505f9190816020015b6108e560405180606001604052805f6001600160a01b03168152602001606081526020015f81525090565b8152602001906001900390816108ba575050604080516060810182529192508190610915908a0160208b0161198f565b6001600160a01b03168152602001876020016020810190610936919061198f565b6040516001600160a01b0390911660248201525f604482015260640160408051601f19818403018152919052602080820180516001600160e01b031663095ea7b360e01b1790529082525f9101819052825183919061099757610997611ac3565b602002602001018190525060405180606001604052808860200160208101906109c0919061198f565b6001600160a01b031681526020018760200160208101906109e1919061198f565b6040516001600160a01b0390911660248201528835604482015260640160408051601f19818403018152919052602080820180516001600160e01b031663095ea7b360e01b1790529082525f910152815182906001908110610a4557610a45611ac3565b60200260200101819052506040518060600160405280876020016020810190610a6e919061198f565b6001600160a01b03168152602001610a896040890189611a56565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920182905250938552505050602090910152815182906002908110610ad957610ad9611ac3565b602002602001018190525060405180606001604052807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d886060016020810190610b609190611a30565b610b7060a08b0160808c01611a30565b610b7a9190611ad7565b6040516001600160801b039091166024820152604401604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505081526020015f81525081600381518110610bd957610bd9611ac3565b60200260200101819052506040518060600160405280886020016020810190610c02919061198f565b6001600160a01b0390811682526040517f000000000000000000000000000000000000000000000000000000000000000090911660248201525f604482015260209091019060640160408051601f19818403018152919052602080820180516001600160e01b031663095ea7b360e01b1790529082525f910152815182906004908110610c9157610c91611ac3565b60200260200101819052506040518060600160405280886020016020810190610cba919061198f565b6001600160a01b0390811682526040517f0000000000000000000000000000000000000000000000000000000000000000909116602482015260608a0135604482015260209091019060640160408051601f19818403018152919052602080820180516001600160e01b031663095ea7b360e01b1790529082525f910152815182906005908110610d4d57610d4d611ac3565b602002602001018190525060405180606001604052807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316815260200186805f0190610da19190611a56565b610dae60208a018a611af6565b610dbb60408c018c611a56565b610dcb60808e0160608f01611a30565b8d6080016020810190610dde9190611a30565b604051602401610df5989796959493929190611b64565b60408051601f19818403018152919052602080820180516001600160e01b0316637972805960e11b17905290825201610e346080880160608901611a30565b610e4460a0890160808a01611a30565b610e4e9190611ad7565b6001600160801b031681525081600681518110610e6d57610e6d611ac3565b60200260200101819052505f6040518060400160405280838152602001866001600160a01b031681525090507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5425c6866001600160a01b03165f1b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165f1b8b5f016020810190610f12919061198f565b6001600160a01b0316610f2b60408e0160208f0161198f565b6001600160a01b03165f1b8d604001358d5f01358f60600135610f4e91906119c3565b8f608001355f5f1b428d5f8d604051602001610f6a9190611c7c565b6040516020818303038152906040526040518d63ffffffff1660e01b8152600401610fa09c9b9a99989796959493929190611d2b565b5f604051808303815f87803b158015610fb7575f5ffd5b505af1158015610fc9573d5f5f3e3d5ffd5b5050505060017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a1244c676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561102b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061104f9190611da9565b6110599190611dc0565b98975050505050505050565b5f8360400135116110c75760405162461bcd60e51b815260206004820152602660248201527f496e70757420616d6f756e74206d7573742062652067726561746572207468616044820152656e207a65726f60d01b6064820152608401610236565b5f83606001351161112a5760405162461bcd60e51b815260206004820152602760248201527f4f757470757420616d6f756e74206d7573742062652067726561746572207468604482015266616e207a65726f60c81b6064820152608401610236565b5f61113b60a0840160808501611a30565b6001600160801b03161161119f5760405162461bcd60e51b815260206004820152602560248201527f52656c6179657220666565206d7573742062652067726561746572207468616e604482015264207a65726f60d81b6064820152608401610236565b5f6111b06080840160608501611a30565b6001600160801b0316116112165760405162461bcd60e51b815260206004820152602760248201527f457865637574696f6e20666565206d7573742062652067726561746572207468604482015266616e207a65726f60c81b6064820152608401610236565b5f61122760c0850160a08601611aa0565b63ffffffff16116112915760405162461bcd60e51b815260206004820152602e60248201527f46696c6c20646561646c696e6520627566666572206d7573742062652067726560448201526d61746572207468616e207a65726f60901b6064820152608401610236565b82608001355f036112f05760405162461bcd60e51b815260206004820152602360248201527f44657374696e6174696f6e20636861696e2049442063616e6e6f74206265207a60448201526265726f60e81b6064820152608401610236565b6001600160a01b0381166108775760405162461bcd60e51b815260206004820181905260248201527f526563697069656e742063616e6e6f74206265207a65726f20616464726573736044820152606401610236565b604080516002808252606082019092525f91829190816020015b61138b60405180606001604052805f6001600160a01b03168152602001606081526020015f81525090565b81526020019060019003908161136057905050905060405180606001604052807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d8660405160240161141c91815260200190565b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505081526020015f815250815f8151811061146457611464611ac3565b602002602001018190525060405180606001604052807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316815260200186805f01906114b89190611a56565b6114c560208a018a611af6565b6114d260408c018c611a56565b6114e260808e0160608f01611a30565b8d60800160208101906114f59190611a30565b60405160240161150c989796959493929190611b64565b60408051601f19818403018152919052602080820180516001600160e01b0316637972805960e11b1790529082520184905281518290600190811061155357611553611ac3565b60200260200101819052505f6040518060400160405280838152602001866001600160a01b031681525090505f8760a00160208101906115939190611aa0565b6115a39063ffffffff16426119c3565b90505f886080013590507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5425c6886001600160a01b03165f1b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165f1b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165f1b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165f1b8e604001358c885f5f1b428c5f8f60405160200161168a9190611c7c565b6040516020818303038152906040526040518d63ffffffff1660e01b81526004016116c09c9b9a99989796959493929190611d2b565b5f604051808303815f87803b1580156116d7575f5ffd5b505af11580156116e9573d5f5f3e3d5ffd5b5050505060017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a1244c676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561174b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061176f9190611da9565b6117799190611dc0565b9998505050505050505050565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f511483166117e25783831516156117d6573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b60405163095ea7b360e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f5114831661184957838315161561183d573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b5f60c08284031215611865575f5ffd5b50919050565b5f60a08284031215611865575f5ffd5b80356001600160a01b0381168114611891575f5ffd5b919050565b5f5f5f5f5f61014086880312156118ab575f5ffd5b6118b58787611855565b945060c086013567ffffffffffffffff8111156118d0575f5ffd5b8601606081890312156118e1575f5ffd5b935060e086013567ffffffffffffffff8111156118fc575f5ffd5b6119088882890161186b565b935050611918610100870161187b565b94979396509194610120013592915050565b5f5f5f5f610120858703121561193e575f5ffd5b6119488686611855565b935060c085013567ffffffffffffffff811115611963575f5ffd5b61196f8782880161186b565b93505061197e60e0860161187b565b939692955092936101000135925050565b5f6020828403121561199f575f5ffd5b6119a88261187b565b9392505050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156119d6576119d66119af565b92915050565b60208082526034908201527f496e70757420616d6f756e74206d75737420636f766572206f757470757420616040820152731b5bdd5b9d08185b990819995948185b5bdd5b9d60621b606082015260800190565b5f60208284031215611a40575f5ffd5b81356001600160801b03811681146119a8575f5ffd5b5f5f8335601e19843603018112611a6b575f5ffd5b83018035915067ffffffffffffffff821115611a85575f5ffd5b602001915036819003821315611a99575f5ffd5b9250929050565b5f60208284031215611ab0575f5ffd5b813563ffffffff811681146119a8575f5ffd5b634e487b7160e01b5f52603260045260245ffd5b6001600160801b0381811683821601908111156119d6576119d66119af565b5f5f8335601e19843603018112611b0b575f5ffd5b83018035915067ffffffffffffffff821115611b25575f5ffd5b6020019150600581901b3603821315611a99575f5ffd5b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b60a081525f611b7760a083018a8c611b3c565b82810360208401528088825260208201905060208960051b8301018a5f601e198d3603015b8c821015611c0a57858403601f190185528235818112611bba575f5ffd5b8e0160208101903567ffffffffffffffff811115611bd6575f5ffd5b803603821315611be4575f5ffd5b611bef868284611b3c565b95505050602083019250602085019450600182019150611b9c565b5050508481036040860152611c2081898b611b3c565b9350505050611c3a60608301856001600160801b03169052565b6001600160801b0383166080830152611779565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6060820183516040602085015281815180845260808601915060808160051b87010193506020830192505f5b81811015611d0b57868503607f19018352835180516001600160a01b03168652602080820151606091880182905290611ce890880182611c4e565b604092830151979092019690965294506020938401939290920191600101611cad565b5050505060208401516001600160a01b0381166040850152509392505050565b8c81528b60208201528a60408201528960608201528860808201528760a08201528660c08201528560e082015263ffffffff851661010082015263ffffffff841661012082015263ffffffff83166101408201526101806101608201525f611d97610180830184611c4e565b9e9d5050505050505050505050505050565b5f60208284031215611db9575f5ffd5b5051919050565b818103818111156119d6576119d66119af56fea26469706673582212201e92e62ba6c485097a0de0b76611fe920563f16b8ea897f33bf9bd4a98a46bf264736f6c63430008220033";
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,82fAAa;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"}