-
Notifications
You must be signed in to change notification settings - Fork 8
/
RouterEventEmitter.json
244 lines (244 loc) · 18.2 KB
/
RouterEventEmitter.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
{
"contractName": "RouterEventEmitter",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256[]",
"name": "amounts",
"type": "uint256[]"
}
],
"name": "Amounts",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "router",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountOut",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
}
],
"name": "swapETHForExactTokens",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "router",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountOutMin",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
}
],
"name": "swapExactETHForTokens",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "router",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amountOutMin",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
}
],
"name": "swapExactTokensForETH",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "router",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amountOutMin",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
}
],
"name": "swapExactTokensForTokens",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "router",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountOut",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amountInMax",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
}
],
"name": "swapTokensForExactETH",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "router",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountOut",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amountInMax",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "path",
"type": "address[]"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
}
],
"name": "swapTokensForExactTokens",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50610cda806100206000396000f3fe6080604052600436106100595760003560e01c806322b5841014610065578063375734d91461010d5780639c91fcb5146101b3578063b05f579e14610259578063fa3219d5146102eb578063fde1adda1461039157610060565b3661006057005b600080fd5b34801561007157600080fd5b5061010b600480360360c081101561008857600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b8111156100be57600080fd5b8201836020820111156100d057600080fd5b803590602001918460208302840111600160201b831117156100f157600080fd5b91935091506001600160a01b038135169060200135610423565b005b34801561011957600080fd5b5061010b600480360360c081101561013057600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561016657600080fd5b82018360208201111561017857600080fd5b803590602001918460208302840111600160201b8311171561019957600080fd5b91935091506001600160a01b03813516906020013561069c565b3480156101bf57600080fd5b5061010b600480360360c08110156101d657600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561020c57600080fd5b82018360208201111561021e57600080fd5b803590602001918460208302840111600160201b8311171561023f57600080fd5b91935091506001600160a01b038135169060200135610785565b61010b600480360360a081101561026f57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561029e57600080fd5b8201836020820111156102b057600080fd5b803590602001918460208302840111600160201b831117156102d157600080fd5b91935091506001600160a01b03813516906020013561086e565b3480156102f757600080fd5b5061010b600480360360c081101561030e57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460208302840111600160201b8311171561037757600080fd5b91935091506001600160a01b038135169060200135610ade565b61010b600480360360a08110156103a757600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156103d657600080fd5b8201836020820111156103e857600080fd5b803590602001918460208302840111600160201b8311171561040957600080fd5b91935091506001600160a01b038135169060200135610bc7565b60006060886001600160a01b0316638803dbee60e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083835b6020831061050d5780518252601f1990920191602091820191016104ee565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d806000811461056d576040519150601f19603f3d011682016040523d82523d6000602084013e610572565b606091505b50915091508161057e57fe5b7f4cc17991e3610e3400e74a8306aa421daaee1e3446fa22b490604610999e10b38180602001905160208110156105b457600080fd5b8101908080516040519392919084600160201b8211156105d357600080fd5b9083019060208201858111156105e857600080fd5b82518660208202830111600160201b8211171561060457600080fd5b82525081516020918201928201910280838360005b83811015610631578181015183820152602001610619565b505050509050016040525050506040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561067e578181015183820152602001610666565b505050509050019250505060405180910390a1505050505050505050565b60006060886001600160a01b03166338ed173960e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083836020831061050d5780518252601f1990920191602091820191016104ee565b60006060886001600160a01b03166318cbafe560e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083836020831061050d5780518252601f1990920191602091820191016104ee565b60006060876001600160a01b031663fb3bdb4160e01b88888888886040516024018086815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f8201169050808301925050509650505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083835b602083106109505780518252601f199092019160209182019101610931565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146109b0576040519150601f19603f3d011682016040523d82523d6000602084013e6109b5565b606091505b5091509150816109c157fe5b7f4cc17991e3610e3400e74a8306aa421daaee1e3446fa22b490604610999e10b38180602001905160208110156109f757600080fd5b8101908080516040519392919084600160201b821115610a1657600080fd5b908301906020820185811115610a2b57600080fd5b82518660208202830111600160201b82111715610a4757600080fd5b82525081516020918201928201910280838360005b83811015610a74578181015183820152602001610a5c565b505050509050016040525050506040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610ac1578181015183820152602001610aa9565b505050509050019250505060405180910390a15050505050505050565b60006060886001600160a01b0316634a25d94a60e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083836020831061050d5780518252601f1990920191602091820191016104ee565b60006060876001600160a01b0316637ff36ab560e01b88888888886040516024018086815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825286868281815260200192506020028082843760008382015260408051601f909201601f199081169094018281039094018252928352602080820180516001600160e01b03166001600160e01b0319909d169c909c178c5292518151919b909a508a9950975095508594508793508692505083106109505780518252601f19909201916020918201910161093156fea2646970667358221220b6c1db3c78579eeab8a18a2671f1e77db2358bf4024395638ba351434ff215f064736f6c63430006060033",
"deployedBytecode": "0x6080604052600436106100595760003560e01c806322b5841014610065578063375734d91461010d5780639c91fcb5146101b3578063b05f579e14610259578063fa3219d5146102eb578063fde1adda1461039157610060565b3661006057005b600080fd5b34801561007157600080fd5b5061010b600480360360c081101561008857600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b8111156100be57600080fd5b8201836020820111156100d057600080fd5b803590602001918460208302840111600160201b831117156100f157600080fd5b91935091506001600160a01b038135169060200135610423565b005b34801561011957600080fd5b5061010b600480360360c081101561013057600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561016657600080fd5b82018360208201111561017857600080fd5b803590602001918460208302840111600160201b8311171561019957600080fd5b91935091506001600160a01b03813516906020013561069c565b3480156101bf57600080fd5b5061010b600480360360c08110156101d657600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561020c57600080fd5b82018360208201111561021e57600080fd5b803590602001918460208302840111600160201b8311171561023f57600080fd5b91935091506001600160a01b038135169060200135610785565b61010b600480360360a081101561026f57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561029e57600080fd5b8201836020820111156102b057600080fd5b803590602001918460208302840111600160201b831117156102d157600080fd5b91935091506001600160a01b03813516906020013561086e565b3480156102f757600080fd5b5061010b600480360360c081101561030e57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460208302840111600160201b8311171561037757600080fd5b91935091506001600160a01b038135169060200135610ade565b61010b600480360360a08110156103a757600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156103d657600080fd5b8201836020820111156103e857600080fd5b803590602001918460208302840111600160201b8311171561040957600080fd5b91935091506001600160a01b038135169060200135610bc7565b60006060886001600160a01b0316638803dbee60e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083835b6020831061050d5780518252601f1990920191602091820191016104ee565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d806000811461056d576040519150601f19603f3d011682016040523d82523d6000602084013e610572565b606091505b50915091508161057e57fe5b7f4cc17991e3610e3400e74a8306aa421daaee1e3446fa22b490604610999e10b38180602001905160208110156105b457600080fd5b8101908080516040519392919084600160201b8211156105d357600080fd5b9083019060208201858111156105e857600080fd5b82518660208202830111600160201b8211171561060457600080fd5b82525081516020918201928201910280838360005b83811015610631578181015183820152602001610619565b505050509050016040525050506040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561067e578181015183820152602001610666565b505050509050019250505060405180910390a1505050505050505050565b60006060886001600160a01b03166338ed173960e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083836020831061050d5780518252601f1990920191602091820191016104ee565b60006060886001600160a01b03166318cbafe560e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083836020831061050d5780518252601f1990920191602091820191016104ee565b60006060876001600160a01b031663fb3bdb4160e01b88888888886040516024018086815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f8201169050808301925050509650505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083835b602083106109505780518252601f199092019160209182019101610931565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146109b0576040519150601f19603f3d011682016040523d82523d6000602084013e6109b5565b606091505b5091509150816109c157fe5b7f4cc17991e3610e3400e74a8306aa421daaee1e3446fa22b490604610999e10b38180602001905160208110156109f757600080fd5b8101908080516040519392919084600160201b821115610a1657600080fd5b908301906020820185811115610a2b57600080fd5b82518660208202830111600160201b82111715610a4757600080fd5b82525081516020918201928201910280838360005b83811015610a74578181015183820152602001610a5c565b505050509050016040525050506040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610ac1578181015183820152602001610aa9565b505050509050019250505060405180910390a15050505050505050565b60006060886001600160a01b0316634a25d94a60e01b8989898989896040516024018087815260200186815260200180602001846001600160a01b03166001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518082805190602001908083836020831061050d5780518252601f1990920191602091820191016104ee565b60006060876001600160a01b0316637ff36ab560e01b88888888886040516024018086815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825286868281815260200192506020028082843760008382015260408051601f909201601f199081169094018281039094018252928352602080820180516001600160e01b03166001600160e01b0319909d169c909c178c5292518151919b909a508a9950975095508594508793508692505083106109505780518252601f19909201916020918201910161093156fea2646970667358221220b6c1db3c78579eeab8a18a2671f1e77db2358bf4024395638ba351434ff215f064736f6c63430006060033",
"linkReferences": {},
"deployedLinkReferences": {}
}