@snowbridge/contract-types 0.3.0 → 0.3.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 +3115 -2571
- package/dist/ISwapQuoter.d.ts +76 -0
- package/dist/ISwapQuoter.d.ts.map +1 -0
- package/dist/ISwapQuoter.js +2 -0
- package/dist/SnowbridgeL1Adaptor.d.ts +110 -0
- package/dist/SnowbridgeL1Adaptor.d.ts.map +1 -0
- package/dist/SnowbridgeL1Adaptor.js +2 -0
- package/dist/SnowbridgeL2Adaptor.d.ts +164 -0
- package/dist/SnowbridgeL2Adaptor.d.ts.map +1 -0
- package/dist/SnowbridgeL2Adaptor.js +2 -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/SnowbridgeL1Adaptor__factory.d.ts +195 -0
- package/dist/factories/SnowbridgeL1Adaptor__factory.d.ts.map +1 -0
- package/dist/factories/SnowbridgeL1Adaptor__factory.js +261 -0
- package/dist/factories/SnowbridgeL2Adaptor__factory.d.ts +290 -0
- package/dist/factories/SnowbridgeL2Adaptor__factory.d.ts.map +1 -0
- package/dist/factories/SnowbridgeL2Adaptor__factory.js +383 -0
- package/dist/factories/index.d.ts +3 -0
- package/dist/factories/index.d.ts.map +1 -1
- package/dist/factories/index.js +7 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/package.json +3 -3
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, AddressLike, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../common";
|
|
4
|
+
import type { SnowbridgeL1Adaptor, SnowbridgeL1AdaptorInterface } from "../SnowbridgeL1Adaptor";
|
|
5
|
+
type SnowbridgeL1AdaptorConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class SnowbridgeL1Adaptor__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: SnowbridgeL1AdaptorConstructorParams);
|
|
8
|
+
getDeployTransaction(_spokePool: AddressLike, _handler: AddressLike, _l1weth9: AddressLike, _l2weth9: AddressLike, overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(_spokePool: AddressLike, _handler: AddressLike, _l1weth9: AddressLike, _l2weth9: AddressLike, overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<SnowbridgeL1Adaptor & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): SnowbridgeL1Adaptor__factory;
|
|
17
|
+
static readonly bytecode = "0x610100604052348015610010575f5ffd5b5060405161138738038061138783398101604081905261002f9161006c565b6001600160a01b0393841660805291831660a052821660c0521660e0526100bd565b80516001600160a01b0381168114610067575f5ffd5b919050565b5f5f5f5f6080858703121561007f575f5ffd5b61008885610051565b935061009660208601610051565b92506100a460408601610051565b91506100b260608601610051565b905092959194509250565b60805160a05160c05160e0516112536101345f395f81816101440152818161033901528181610c310152610c6d01525f8181610111015261030001525f8181608201526102c701525f818160de0152818161026d015281816104020152818161059a015281816105ff015261077101526112535ff3fe608060405260043610610066575f3560e01c8063b18ccf0d11610041578063b18ccf0d14610133578063c554c2ef14610166578063d14484ad1461017b575f5ffd5b8063134c319b146100715780638021fef7146100cd578063a76a50f614610100575f5ffd5b3661006d57005b5f5ffd5b34801561007c575f5ffd5b506100a47f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100d8575f5ffd5b506100a47f000000000000000000000000000000000000000000000000000000000000000081565b34801561010b575f5ffd5b506100a47f000000000000000000000000000000000000000000000000000000000000000081565b34801561013e575f5ffd5b506100a47f000000000000000000000000000000000000000000000000000000000000000081565b610179610174366004610f53565b61019a565b005b348015610186575f5ffd5b50610179610195366004610f53565b6104da565b5f6101a86020850185610f94565b73ffffffffffffffffffffffffffffffffffffffff1614610250576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f496e70757420746f6b656e206d757374206265207a65726f206164647265737360448201527f20666f72206e617469766520455448206465706f73697473000000000000000060648201526084015b60405180910390fd5b61025a8383610848565b5f610269838560600135610bbe565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ad5425c685604001358573ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b8a604001358b606001358c608001355f5f1b428f60a00160208101906103969190610fb4565b6103a69063ffffffff1642611004565b5f8e6040518e63ffffffff1660e01b81526004016103cf9c9b9a99989796959493929190611063565b5f604051808303818588803b1580156103e6575f5ffd5b505af11580156103f8573d5f5f3e3d5ffd5b50505050505f60017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a1244c676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610469573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061048d91906110e1565b61049791906110f8565b60408051858152602081018390529192507f14bfd4fd7e654256d3222db5d1ec5e59cd23dd5df10bd8faccc1cabe984b3508910160405180910390a15050505050565b5f6104e86020850185610f94565b73ffffffffffffffffffffffffffffffffffffffff160361058b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f496e70757420746f6b656e2063616e6e6f74206265207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610247565b6105958383610848565b6105e87f000000000000000000000000000000000000000000000000000000000000000060408501356105cb6020870187610f94565b73ffffffffffffffffffffffffffffffffffffffff169190610dd8565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081169063ad5425c6908416806106376020880188610f94565b73ffffffffffffffffffffffffffffffffffffffff1661065d6040890160208a01610f94565b73ffffffffffffffffffffffffffffffffffffffff165f1b886040013589606001358a608001355f5f1b428d60a001602081019061069b9190610fb4565b6106ab9063ffffffff1642611004565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e08d901b168152600481019a909a5260248a019890985260448901969096526064880194909452608487019290925260a486015260c485015260e484015263ffffffff908116610104840152166101248201525f61014482018190526101806101648301526101848201526101a4015f604051808303815f87803b158015610756575f5ffd5b505af1158015610768573d5f5f3e3d5ffd5b505050505f60017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a1244c676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107d8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107fc91906110e1565b61080691906110f8565b60408051848152602081018390529192507f14bfd4fd7e654256d3222db5d1ec5e59cd23dd5df10bd8faccc1cabe984b3508910160405180910390a150505050565b5f8260400135116108db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f496e70757420616d6f756e74206d75737420626520677265617465722074686160448201527f6e207a65726f00000000000000000000000000000000000000000000000000006064820152608401610247565b5f82606001351161096e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4f757470757420616d6f756e74206d757374206265206772656174657220746860448201527f616e207a65726f000000000000000000000000000000000000000000000000006064820152608401610247565b816040013582606001351115610a06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f4f757470757420616d6f756e74206578636565647320696e70757420616d6f7560448201527f6e740000000000000000000000000000000000000000000000000000000000006064820152608401610247565b5f610a1760c0840160a08501610fb4565b63ffffffff1611610aaa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f46696c6c20646561646c696e6520627566666572206d7573742062652067726560448201527f61746572207468616e207a65726f0000000000000000000000000000000000006064820152608401610247565b81608001355f03610b3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f44657374696e6174696f6e20636861696e2049442063616e6e6f74206265207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610247565b73ffffffffffffffffffffffffffffffffffffffff8116610bba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f526563697069656e742063616e6e6f74206265207a65726f20616464726573736044820152606401610247565b5050565b60408051600280825260608281019093525f9190816020015b610c0f60405180606001604052805f73ffffffffffffffffffffffffffffffffffffffff168152602001606081526020015f81525090565b815260200190600190039081610bd757905050905060405180606001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d86604051602401610cba91815260200190565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505081526020015f815250815f81518110610d1757610d1761110b565b602002602001018190525060405180606001604052808573ffffffffffffffffffffffffffffffffffffffff16815260200160405180602001604052805f81525081526020018481525081600181518110610d7457610d7461110b565b60200260200101819052505f60405180604001604052808381526020018673ffffffffffffffffffffffffffffffffffffffff16815250905080604051602001610dbe9190611138565b604051602081830303815290604052925050505b92915050565b610de48383835f610ea3565b610e9e57610df583835f6001610ea3565b610e43576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610247565b610e508383836001610ea3565b610e9e576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610247565b505050565b6040517f095ea7b3000000000000000000000000000000000000000000000000000000005f81815273ffffffffffffffffffffffffffffffffffffffff8616600452602485905291602083604481808b5af1925060015f51148316610f1f578383151615610f13573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610f4e575f5ffd5b919050565b5f5f5f838503610100811215610f67575f5ffd5b60c0811215610f74575f5ffd5b50839250610f8460c08501610f2b565b915060e084013590509250925092565b5f60208284031215610fa4575f5ffd5b610fad82610f2b565b9392505050565b5f60208284031215610fc4575f5ffd5b813563ffffffff81168114610fad575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115610dd257610dd2610fd7565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b8c81528b60208201528a60408201528960608201528860808201528760a08201528660c08201528560e082015263ffffffff851661010082015263ffffffff841661012082015263ffffffff83166101408201526101806101608201525f6110cf610180830184611017565b9e9d5050505050505050505050505050565b5f602082840312156110f1575f5ffd5b5051919050565b81810381811115610dd257610dd2610fd7565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b602081525f6060820183516040602085015281815180845260808601915060808160051b87010193506020830192505f5b818110156111f0577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80878603018352835173ffffffffffffffffffffffffffffffffffffffff81511686526020810151606060208801526111cd6060880182611017565b604092830151979092019690965294506020938401939290920191600101611169565b50505050602084015173ffffffffffffffffffffffffffffffffffffffff8116604085015250939250505056fea264697066735822122024aab5d454f81dd420f6f583e9a0825a720a579b883133f1a3af68359b87bc8264736f6c634300081c0033";
|
|
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: "_l1weth9";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "_l2weth9";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
}];
|
|
37
|
+
readonly stateMutability: "nonpayable";
|
|
38
|
+
}, {
|
|
39
|
+
readonly type: "receive";
|
|
40
|
+
readonly stateMutability: "payable";
|
|
41
|
+
}, {
|
|
42
|
+
readonly type: "function";
|
|
43
|
+
readonly name: "L1_WETH9";
|
|
44
|
+
readonly inputs: readonly [];
|
|
45
|
+
readonly outputs: readonly [{
|
|
46
|
+
readonly name: "";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
readonly internalType: "contract WETH9";
|
|
49
|
+
}];
|
|
50
|
+
readonly stateMutability: "view";
|
|
51
|
+
}, {
|
|
52
|
+
readonly type: "function";
|
|
53
|
+
readonly name: "L2_WETH9";
|
|
54
|
+
readonly inputs: readonly [];
|
|
55
|
+
readonly outputs: readonly [{
|
|
56
|
+
readonly name: "";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
readonly internalType: "contract WETH9";
|
|
59
|
+
}];
|
|
60
|
+
readonly stateMutability: "view";
|
|
61
|
+
}, {
|
|
62
|
+
readonly type: "function";
|
|
63
|
+
readonly name: "MULTI_CALL_HANDLER";
|
|
64
|
+
readonly inputs: readonly [];
|
|
65
|
+
readonly outputs: readonly [{
|
|
66
|
+
readonly name: "";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
readonly internalType: "contract IMessageHandler";
|
|
69
|
+
}];
|
|
70
|
+
readonly stateMutability: "view";
|
|
71
|
+
}, {
|
|
72
|
+
readonly type: "function";
|
|
73
|
+
readonly name: "SPOKE_POOL";
|
|
74
|
+
readonly inputs: readonly [];
|
|
75
|
+
readonly outputs: readonly [{
|
|
76
|
+
readonly name: "";
|
|
77
|
+
readonly type: "address";
|
|
78
|
+
readonly internalType: "contract ISpokePool";
|
|
79
|
+
}];
|
|
80
|
+
readonly stateMutability: "view";
|
|
81
|
+
}, {
|
|
82
|
+
readonly type: "function";
|
|
83
|
+
readonly name: "depositNativeEther";
|
|
84
|
+
readonly inputs: readonly [{
|
|
85
|
+
readonly name: "params";
|
|
86
|
+
readonly type: "tuple";
|
|
87
|
+
readonly internalType: "struct DepositParams";
|
|
88
|
+
readonly components: readonly [{
|
|
89
|
+
readonly name: "inputToken";
|
|
90
|
+
readonly type: "address";
|
|
91
|
+
readonly internalType: "address";
|
|
92
|
+
}, {
|
|
93
|
+
readonly name: "outputToken";
|
|
94
|
+
readonly type: "address";
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "inputAmount";
|
|
98
|
+
readonly type: "uint256";
|
|
99
|
+
readonly internalType: "uint256";
|
|
100
|
+
}, {
|
|
101
|
+
readonly name: "outputAmount";
|
|
102
|
+
readonly type: "uint256";
|
|
103
|
+
readonly internalType: "uint256";
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "destinationChainId";
|
|
106
|
+
readonly type: "uint256";
|
|
107
|
+
readonly internalType: "uint256";
|
|
108
|
+
}, {
|
|
109
|
+
readonly name: "fillDeadlineBuffer";
|
|
110
|
+
readonly type: "uint32";
|
|
111
|
+
readonly internalType: "uint32";
|
|
112
|
+
}];
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "recipient";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "topic";
|
|
119
|
+
readonly type: "bytes32";
|
|
120
|
+
readonly internalType: "bytes32";
|
|
121
|
+
}];
|
|
122
|
+
readonly outputs: readonly [];
|
|
123
|
+
readonly stateMutability: "payable";
|
|
124
|
+
}, {
|
|
125
|
+
readonly type: "function";
|
|
126
|
+
readonly name: "depositToken";
|
|
127
|
+
readonly inputs: readonly [{
|
|
128
|
+
readonly name: "params";
|
|
129
|
+
readonly type: "tuple";
|
|
130
|
+
readonly internalType: "struct DepositParams";
|
|
131
|
+
readonly components: readonly [{
|
|
132
|
+
readonly name: "inputToken";
|
|
133
|
+
readonly type: "address";
|
|
134
|
+
readonly internalType: "address";
|
|
135
|
+
}, {
|
|
136
|
+
readonly name: "outputToken";
|
|
137
|
+
readonly type: "address";
|
|
138
|
+
readonly internalType: "address";
|
|
139
|
+
}, {
|
|
140
|
+
readonly name: "inputAmount";
|
|
141
|
+
readonly type: "uint256";
|
|
142
|
+
readonly internalType: "uint256";
|
|
143
|
+
}, {
|
|
144
|
+
readonly name: "outputAmount";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
readonly internalType: "uint256";
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "destinationChainId";
|
|
149
|
+
readonly type: "uint256";
|
|
150
|
+
readonly internalType: "uint256";
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "fillDeadlineBuffer";
|
|
153
|
+
readonly type: "uint32";
|
|
154
|
+
readonly internalType: "uint32";
|
|
155
|
+
}];
|
|
156
|
+
}, {
|
|
157
|
+
readonly name: "recipient";
|
|
158
|
+
readonly type: "address";
|
|
159
|
+
readonly internalType: "address";
|
|
160
|
+
}, {
|
|
161
|
+
readonly name: "topic";
|
|
162
|
+
readonly type: "bytes32";
|
|
163
|
+
readonly internalType: "bytes32";
|
|
164
|
+
}];
|
|
165
|
+
readonly outputs: readonly [];
|
|
166
|
+
readonly stateMutability: "nonpayable";
|
|
167
|
+
}, {
|
|
168
|
+
readonly type: "event";
|
|
169
|
+
readonly name: "DepositCallInvoked";
|
|
170
|
+
readonly inputs: readonly [{
|
|
171
|
+
readonly name: "topic";
|
|
172
|
+
readonly type: "bytes32";
|
|
173
|
+
readonly indexed: false;
|
|
174
|
+
readonly internalType: "bytes32";
|
|
175
|
+
}, {
|
|
176
|
+
readonly name: "depositId";
|
|
177
|
+
readonly type: "uint256";
|
|
178
|
+
readonly indexed: false;
|
|
179
|
+
readonly internalType: "uint256";
|
|
180
|
+
}];
|
|
181
|
+
readonly anonymous: false;
|
|
182
|
+
}, {
|
|
183
|
+
readonly type: "error";
|
|
184
|
+
readonly name: "SafeERC20FailedOperation";
|
|
185
|
+
readonly inputs: readonly [{
|
|
186
|
+
readonly name: "token";
|
|
187
|
+
readonly type: "address";
|
|
188
|
+
readonly internalType: "address";
|
|
189
|
+
}];
|
|
190
|
+
}];
|
|
191
|
+
static createInterface(): SnowbridgeL1AdaptorInterface;
|
|
192
|
+
static connect(address: string, runner?: ContractRunner | null): SnowbridgeL1Adaptor;
|
|
193
|
+
}
|
|
194
|
+
export {};
|
|
195
|
+
//# sourceMappingURL=SnowbridgeL1Adaptor__factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnowbridgeL1Adaptor__factory.d.ts","sourceRoot":"","sources":["../../src/factories/SnowbridgeL1Adaptor__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;AAsOhC,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,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,yBAAyB,CAAC;IAS5B,MAAM,CACb,UAAU,EAAE,WAAW,EACvB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAQ9C,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,sxTAAa;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"}
|
|
@@ -0,0 +1,261 @@
|
|
|
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: "_handler",
|
|
19
|
+
type: "address",
|
|
20
|
+
internalType: "address",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: "_l1weth9",
|
|
24
|
+
type: "address",
|
|
25
|
+
internalType: "address",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "_l2weth9",
|
|
29
|
+
type: "address",
|
|
30
|
+
internalType: "address",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
stateMutability: "nonpayable",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
type: "receive",
|
|
37
|
+
stateMutability: "payable",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
type: "function",
|
|
41
|
+
name: "L1_WETH9",
|
|
42
|
+
inputs: [],
|
|
43
|
+
outputs: [
|
|
44
|
+
{
|
|
45
|
+
name: "",
|
|
46
|
+
type: "address",
|
|
47
|
+
internalType: "contract WETH9",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
stateMutability: "view",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: "function",
|
|
54
|
+
name: "L2_WETH9",
|
|
55
|
+
inputs: [],
|
|
56
|
+
outputs: [
|
|
57
|
+
{
|
|
58
|
+
name: "",
|
|
59
|
+
type: "address",
|
|
60
|
+
internalType: "contract WETH9",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
stateMutability: "view",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: "function",
|
|
67
|
+
name: "MULTI_CALL_HANDLER",
|
|
68
|
+
inputs: [],
|
|
69
|
+
outputs: [
|
|
70
|
+
{
|
|
71
|
+
name: "",
|
|
72
|
+
type: "address",
|
|
73
|
+
internalType: "contract IMessageHandler",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
stateMutability: "view",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
type: "function",
|
|
80
|
+
name: "SPOKE_POOL",
|
|
81
|
+
inputs: [],
|
|
82
|
+
outputs: [
|
|
83
|
+
{
|
|
84
|
+
name: "",
|
|
85
|
+
type: "address",
|
|
86
|
+
internalType: "contract ISpokePool",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
stateMutability: "view",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
type: "function",
|
|
93
|
+
name: "depositNativeEther",
|
|
94
|
+
inputs: [
|
|
95
|
+
{
|
|
96
|
+
name: "params",
|
|
97
|
+
type: "tuple",
|
|
98
|
+
internalType: "struct DepositParams",
|
|
99
|
+
components: [
|
|
100
|
+
{
|
|
101
|
+
name: "inputToken",
|
|
102
|
+
type: "address",
|
|
103
|
+
internalType: "address",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "outputToken",
|
|
107
|
+
type: "address",
|
|
108
|
+
internalType: "address",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "inputAmount",
|
|
112
|
+
type: "uint256",
|
|
113
|
+
internalType: "uint256",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "outputAmount",
|
|
117
|
+
type: "uint256",
|
|
118
|
+
internalType: "uint256",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "destinationChainId",
|
|
122
|
+
type: "uint256",
|
|
123
|
+
internalType: "uint256",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: "fillDeadlineBuffer",
|
|
127
|
+
type: "uint32",
|
|
128
|
+
internalType: "uint32",
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: "recipient",
|
|
134
|
+
type: "address",
|
|
135
|
+
internalType: "address",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: "topic",
|
|
139
|
+
type: "bytes32",
|
|
140
|
+
internalType: "bytes32",
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
outputs: [],
|
|
144
|
+
stateMutability: "payable",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
type: "function",
|
|
148
|
+
name: "depositToken",
|
|
149
|
+
inputs: [
|
|
150
|
+
{
|
|
151
|
+
name: "params",
|
|
152
|
+
type: "tuple",
|
|
153
|
+
internalType: "struct DepositParams",
|
|
154
|
+
components: [
|
|
155
|
+
{
|
|
156
|
+
name: "inputToken",
|
|
157
|
+
type: "address",
|
|
158
|
+
internalType: "address",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "outputToken",
|
|
162
|
+
type: "address",
|
|
163
|
+
internalType: "address",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "inputAmount",
|
|
167
|
+
type: "uint256",
|
|
168
|
+
internalType: "uint256",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: "outputAmount",
|
|
172
|
+
type: "uint256",
|
|
173
|
+
internalType: "uint256",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "destinationChainId",
|
|
177
|
+
type: "uint256",
|
|
178
|
+
internalType: "uint256",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: "fillDeadlineBuffer",
|
|
182
|
+
type: "uint32",
|
|
183
|
+
internalType: "uint32",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: "recipient",
|
|
189
|
+
type: "address",
|
|
190
|
+
internalType: "address",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: "topic",
|
|
194
|
+
type: "bytes32",
|
|
195
|
+
internalType: "bytes32",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
outputs: [],
|
|
199
|
+
stateMutability: "nonpayable",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
type: "event",
|
|
203
|
+
name: "DepositCallInvoked",
|
|
204
|
+
inputs: [
|
|
205
|
+
{
|
|
206
|
+
name: "topic",
|
|
207
|
+
type: "bytes32",
|
|
208
|
+
indexed: false,
|
|
209
|
+
internalType: "bytes32",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: "depositId",
|
|
213
|
+
type: "uint256",
|
|
214
|
+
indexed: false,
|
|
215
|
+
internalType: "uint256",
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
anonymous: false,
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
type: "error",
|
|
222
|
+
name: "SafeERC20FailedOperation",
|
|
223
|
+
inputs: [
|
|
224
|
+
{
|
|
225
|
+
name: "token",
|
|
226
|
+
type: "address",
|
|
227
|
+
internalType: "address",
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
},
|
|
231
|
+
];
|
|
232
|
+
const _bytecode = "0x610100604052348015610010575f5ffd5b5060405161138738038061138783398101604081905261002f9161006c565b6001600160a01b0393841660805291831660a052821660c0521660e0526100bd565b80516001600160a01b0381168114610067575f5ffd5b919050565b5f5f5f5f6080858703121561007f575f5ffd5b61008885610051565b935061009660208601610051565b92506100a460408601610051565b91506100b260608601610051565b905092959194509250565b60805160a05160c05160e0516112536101345f395f81816101440152818161033901528181610c310152610c6d01525f8181610111015261030001525f8181608201526102c701525f818160de0152818161026d015281816104020152818161059a015281816105ff015261077101526112535ff3fe608060405260043610610066575f3560e01c8063b18ccf0d11610041578063b18ccf0d14610133578063c554c2ef14610166578063d14484ad1461017b575f5ffd5b8063134c319b146100715780638021fef7146100cd578063a76a50f614610100575f5ffd5b3661006d57005b5f5ffd5b34801561007c575f5ffd5b506100a47f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100d8575f5ffd5b506100a47f000000000000000000000000000000000000000000000000000000000000000081565b34801561010b575f5ffd5b506100a47f000000000000000000000000000000000000000000000000000000000000000081565b34801561013e575f5ffd5b506100a47f000000000000000000000000000000000000000000000000000000000000000081565b610179610174366004610f53565b61019a565b005b348015610186575f5ffd5b50610179610195366004610f53565b6104da565b5f6101a86020850185610f94565b73ffffffffffffffffffffffffffffffffffffffff1614610250576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f496e70757420746f6b656e206d757374206265207a65726f206164647265737360448201527f20666f72206e617469766520455448206465706f73697473000000000000000060648201526084015b60405180910390fd5b61025a8383610848565b5f610269838560600135610bbe565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ad5425c685604001358573ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b8a604001358b606001358c608001355f5f1b428f60a00160208101906103969190610fb4565b6103a69063ffffffff1642611004565b5f8e6040518e63ffffffff1660e01b81526004016103cf9c9b9a99989796959493929190611063565b5f604051808303818588803b1580156103e6575f5ffd5b505af11580156103f8573d5f5f3e3d5ffd5b50505050505f60017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a1244c676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610469573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061048d91906110e1565b61049791906110f8565b60408051858152602081018390529192507f14bfd4fd7e654256d3222db5d1ec5e59cd23dd5df10bd8faccc1cabe984b3508910160405180910390a15050505050565b5f6104e86020850185610f94565b73ffffffffffffffffffffffffffffffffffffffff160361058b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f496e70757420746f6b656e2063616e6e6f74206265207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610247565b6105958383610848565b6105e87f000000000000000000000000000000000000000000000000000000000000000060408501356105cb6020870187610f94565b73ffffffffffffffffffffffffffffffffffffffff169190610dd8565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081169063ad5425c6908416806106376020880188610f94565b73ffffffffffffffffffffffffffffffffffffffff1661065d6040890160208a01610f94565b73ffffffffffffffffffffffffffffffffffffffff165f1b886040013589606001358a608001355f5f1b428d60a001602081019061069b9190610fb4565b6106ab9063ffffffff1642611004565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e08d901b168152600481019a909a5260248a019890985260448901969096526064880194909452608487019290925260a486015260c485015260e484015263ffffffff908116610104840152166101248201525f61014482018190526101806101648301526101848201526101a4015f604051808303815f87803b158015610756575f5ffd5b505af1158015610768573d5f5f3e3d5ffd5b505050505f60017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a1244c676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107d8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107fc91906110e1565b61080691906110f8565b60408051848152602081018390529192507f14bfd4fd7e654256d3222db5d1ec5e59cd23dd5df10bd8faccc1cabe984b3508910160405180910390a150505050565b5f8260400135116108db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f496e70757420616d6f756e74206d75737420626520677265617465722074686160448201527f6e207a65726f00000000000000000000000000000000000000000000000000006064820152608401610247565b5f82606001351161096e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4f757470757420616d6f756e74206d757374206265206772656174657220746860448201527f616e207a65726f000000000000000000000000000000000000000000000000006064820152608401610247565b816040013582606001351115610a06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f4f757470757420616d6f756e74206578636565647320696e70757420616d6f7560448201527f6e740000000000000000000000000000000000000000000000000000000000006064820152608401610247565b5f610a1760c0840160a08501610fb4565b63ffffffff1611610aaa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f46696c6c20646561646c696e6520627566666572206d7573742062652067726560448201527f61746572207468616e207a65726f0000000000000000000000000000000000006064820152608401610247565b81608001355f03610b3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f44657374696e6174696f6e20636861696e2049442063616e6e6f74206265207a60448201527f65726f00000000000000000000000000000000000000000000000000000000006064820152608401610247565b73ffffffffffffffffffffffffffffffffffffffff8116610bba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f526563697069656e742063616e6e6f74206265207a65726f20616464726573736044820152606401610247565b5050565b60408051600280825260608281019093525f9190816020015b610c0f60405180606001604052805f73ffffffffffffffffffffffffffffffffffffffff168152602001606081526020015f81525090565b815260200190600190039081610bd757905050905060405180606001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d86604051602401610cba91815260200190565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505081526020015f815250815f81518110610d1757610d1761110b565b602002602001018190525060405180606001604052808573ffffffffffffffffffffffffffffffffffffffff16815260200160405180602001604052805f81525081526020018481525081600181518110610d7457610d7461110b565b60200260200101819052505f60405180604001604052808381526020018673ffffffffffffffffffffffffffffffffffffffff16815250905080604051602001610dbe9190611138565b604051602081830303815290604052925050505b92915050565b610de48383835f610ea3565b610e9e57610df583835f6001610ea3565b610e43576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610247565b610e508383836001610ea3565b610e9e576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610247565b505050565b6040517f095ea7b3000000000000000000000000000000000000000000000000000000005f81815273ffffffffffffffffffffffffffffffffffffffff8616600452602485905291602083604481808b5af1925060015f51148316610f1f578383151615610f13573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610f4e575f5ffd5b919050565b5f5f5f838503610100811215610f67575f5ffd5b60c0811215610f74575f5ffd5b50839250610f8460c08501610f2b565b915060e084013590509250925092565b5f60208284031215610fa4575f5ffd5b610fad82610f2b565b9392505050565b5f60208284031215610fc4575f5ffd5b813563ffffffff81168114610fad575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115610dd257610dd2610fd7565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b8c81528b60208201528a60408201528960608201528860808201528760a08201528660c08201528560e082015263ffffffff851661010082015263ffffffff841661012082015263ffffffff83166101408201526101806101608201525f6110cf610180830184611017565b9e9d5050505050505050505050505050565b5f602082840312156110f1575f5ffd5b5051919050565b81810381811115610dd257610dd2610fd7565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b602081525f6060820183516040602085015281815180845260808601915060808160051b87010193506020830192505f5b818110156111f0577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80878603018352835173ffffffffffffffffffffffffffffffffffffffff81511686526020810151606060208801526111cd6060880182611017565b604092830151979092019690965294506020938401939290920191600101611169565b50505050602084015173ffffffffffffffffffffffffffffffffffffffff8116604085015250939250505056fea264697066735822122024aab5d454f81dd420f6f583e9a0825a720a579b883133f1a3af68359b87bc8264736f6c634300081c0033";
|
|
233
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
234
|
+
class SnowbridgeL1Adaptor__factory extends ethers_1.ContractFactory {
|
|
235
|
+
constructor(...args) {
|
|
236
|
+
if (isSuperArgs(args)) {
|
|
237
|
+
super(...args);
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
super(_abi, _bytecode, args[0]);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
getDeployTransaction(_spokePool, _handler, _l1weth9, _l2weth9, overrides) {
|
|
244
|
+
return super.getDeployTransaction(_spokePool, _handler, _l1weth9, _l2weth9, overrides || {});
|
|
245
|
+
}
|
|
246
|
+
deploy(_spokePool, _handler, _l1weth9, _l2weth9, overrides) {
|
|
247
|
+
return super.deploy(_spokePool, _handler, _l1weth9, _l2weth9, overrides || {});
|
|
248
|
+
}
|
|
249
|
+
connect(runner) {
|
|
250
|
+
return super.connect(runner);
|
|
251
|
+
}
|
|
252
|
+
static createInterface() {
|
|
253
|
+
return new ethers_1.Interface(_abi);
|
|
254
|
+
}
|
|
255
|
+
static connect(address, runner) {
|
|
256
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
exports.SnowbridgeL1Adaptor__factory = SnowbridgeL1Adaptor__factory;
|
|
260
|
+
SnowbridgeL1Adaptor__factory.bytecode = _bytecode;
|
|
261
|
+
SnowbridgeL1Adaptor__factory.abi = _abi;
|