-
Notifications
You must be signed in to change notification settings - Fork 4
/
UNIV2Router.json
63 lines (63 loc) · 2.16 KB
/
UNIV2Router.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
{
"_format": "hh-sol-artifact-1",
"contractName": "UNIV2Router",
"sourceName": "contracts/web3p/UNIV2Router.sol",
"abi": [
{
"inputs":[
{"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":[
{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}
],
"stateMutability":"payable",
"type":"function"
},
{
"inputs":[
{"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":[
{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}
],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
{"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":[
{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}
],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
{"internalType":"uint256","name":"amountIn","type":"uint256"},
{"internalType":"address[]","name":"path","type":"address[]"}
],
"name":"getAmountsOut",
"outputs":[
{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}
],
"stateMutability":"nonpayable",
"type":"function"
}
]
}