@curvefi/api 2.31.1 → 2.32.0
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/lib/constants/abis/stable_calc.json +151 -0
- package/lib/constants/abis/wbeth/swap.json +1086 -0
- package/lib/constants/aliases.js +11 -0
- package/lib/constants/pools/ethereum.js +25 -0
- package/lib/constants/utils.d.ts +1 -1
- package/lib/curve.js +2 -0
- package/lib/interfaces.d.ts +1 -6
- package/lib/pools/PoolTemplate.js +18 -58
- package/lib/pools/mixins/swapMixins.js +4 -4
- package/lib/pools/utils.js +2 -1
- package/lib/router.js +13 -218
- package/package.json +2 -1
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"stateMutability": "nonpayable",
|
|
4
|
+
"type": "constructor",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "_use_int128",
|
|
8
|
+
"type": "address[20]"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "_pool_type_addresses",
|
|
12
|
+
"type": "address[20]"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "_pool_types",
|
|
16
|
+
"type": "uint8[20]"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "_use_rate",
|
|
20
|
+
"type": "bool[5][20]"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"outputs": []
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"stateMutability": "view",
|
|
27
|
+
"type": "function",
|
|
28
|
+
"name": "calc_token_amount",
|
|
29
|
+
"inputs": [
|
|
30
|
+
{
|
|
31
|
+
"name": "pool",
|
|
32
|
+
"type": "address"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "token",
|
|
36
|
+
"type": "address"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "amounts",
|
|
40
|
+
"type": "uint256[5]"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "n_coins",
|
|
44
|
+
"type": "uint256"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "deposit",
|
|
48
|
+
"type": "bool"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "use_underlying",
|
|
52
|
+
"type": "bool"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"outputs": [
|
|
56
|
+
{
|
|
57
|
+
"name": "",
|
|
58
|
+
"type": "uint256"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"stateMutability": "view",
|
|
64
|
+
"type": "function",
|
|
65
|
+
"name": "calc_token_amount_meta",
|
|
66
|
+
"inputs": [
|
|
67
|
+
{
|
|
68
|
+
"name": "pool",
|
|
69
|
+
"type": "address"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "token",
|
|
73
|
+
"type": "address"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "amounts",
|
|
77
|
+
"type": "uint256[5]"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "n_coins",
|
|
81
|
+
"type": "uint256"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "base_pool",
|
|
85
|
+
"type": "address"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "base_token",
|
|
89
|
+
"type": "address"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "deposit",
|
|
93
|
+
"type": "bool"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "use_underlying",
|
|
97
|
+
"type": "bool"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"outputs": [
|
|
101
|
+
{
|
|
102
|
+
"name": "",
|
|
103
|
+
"type": "uint256"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"stateMutability": "nonpayable",
|
|
109
|
+
"type": "function",
|
|
110
|
+
"name": "set_int128",
|
|
111
|
+
"inputs": [
|
|
112
|
+
{
|
|
113
|
+
"name": "_use_int128",
|
|
114
|
+
"type": "address[20]"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"outputs": []
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"stateMutability": "nonpayable",
|
|
121
|
+
"type": "function",
|
|
122
|
+
"name": "set_pool_type",
|
|
123
|
+
"inputs": [
|
|
124
|
+
{
|
|
125
|
+
"name": "_pool_type_addresses",
|
|
126
|
+
"type": "address[20]"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "_pool_types",
|
|
130
|
+
"type": "uint8[20]"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "_use_rate",
|
|
134
|
+
"type": "bool[5][20]"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"outputs": []
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"stateMutability": "view",
|
|
141
|
+
"type": "function",
|
|
142
|
+
"name": "admin",
|
|
143
|
+
"inputs": [],
|
|
144
|
+
"outputs": [
|
|
145
|
+
{
|
|
146
|
+
"name": "",
|
|
147
|
+
"type": "address"
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
]
|