@avail-project/ca-common 1.0.0-beta.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.
Files changed (97) hide show
  1. package/dist/cjs/balances/ub-api.js +25 -0
  2. package/dist/cjs/cosmos/index.js +31 -0
  3. package/dist/cjs/data/chaindata.js +680 -0
  4. package/dist/cjs/data/chainid.js +91 -0
  5. package/dist/cjs/data/currency.js +77 -0
  6. package/dist/cjs/data/index.js +7 -0
  7. package/dist/cjs/data/utils.js +44 -0
  8. package/dist/cjs/evmabi/erc20.abi.js +349 -0
  9. package/dist/cjs/evmabi/index.js +6 -0
  10. package/dist/cjs/evmabi/vault.abi.js +1021 -0
  11. package/dist/cjs/evmabi/yakaggregator.abi.js +275 -0
  12. package/dist/cjs/fuelcontracts/ArcanaVault.js +2407 -0
  13. package/dist/cjs/fuelcontracts/ArcanaVaultFactory.js +18 -0
  14. package/dist/cjs/fuelcontracts/common.js +3 -0
  15. package/dist/cjs/fuelcontracts/index.js +5 -0
  16. package/dist/cjs/index.js +21 -0
  17. package/dist/cjs/permitutils/index.js +186 -0
  18. package/dist/cjs/proto/definition.js +4263 -0
  19. package/dist/cjs/proto/grpc.js +303 -0
  20. package/dist/cjs/rff/fuel.js +27 -0
  21. package/dist/cjs/rff/rff.js +77 -0
  22. package/dist/cjs/types/binarytypes.js +2 -0
  23. package/dist/cjs/types/index.js +5 -0
  24. package/dist/cjs/types/msgpack-axios.js +22 -0
  25. package/dist/cjs/vaultcontracts/index.js +4 -0
  26. package/dist/cjs/vaultcontracts/vaultcontracts.js +145 -0
  27. package/dist/cjs/xcs/autochoice.js +374 -0
  28. package/dist/cjs/xcs/bebop-agg.js +128 -0
  29. package/dist/cjs/xcs/iface.js +13 -0
  30. package/dist/cjs/xcs/index.js +8 -0
  31. package/dist/cjs/xcs/lifi-agg.js +104 -0
  32. package/dist/cjs/xcs/yieldyak-agg.js +113 -0
  33. package/dist/esm/balances/ub-api.js +21 -0
  34. package/dist/esm/cosmos/index.js +26 -0
  35. package/dist/esm/data/chaindata.js +677 -0
  36. package/dist/esm/data/chainid.js +85 -0
  37. package/dist/esm/data/currency.js +72 -0
  38. package/dist/esm/data/index.js +4 -0
  39. package/dist/esm/data/utils.js +34 -0
  40. package/dist/esm/evmabi/erc20.abi.js +346 -0
  41. package/dist/esm/evmabi/index.js +3 -0
  42. package/dist/esm/evmabi/vault.abi.js +1018 -0
  43. package/dist/esm/evmabi/yakaggregator.abi.js +272 -0
  44. package/dist/esm/fuelcontracts/ArcanaVault.js +2402 -0
  45. package/dist/esm/fuelcontracts/ArcanaVaultFactory.js +14 -0
  46. package/dist/esm/fuelcontracts/common.js +2 -0
  47. package/dist/esm/fuelcontracts/index.js +2 -0
  48. package/dist/esm/index.js +12 -0
  49. package/dist/esm/permitutils/index.js +181 -0
  50. package/dist/esm/proto/definition.js +4255 -0
  51. package/dist/esm/proto/grpc.js +297 -0
  52. package/dist/esm/rff/fuel.js +23 -0
  53. package/dist/esm/rff/rff.js +73 -0
  54. package/dist/esm/types/binarytypes.js +1 -0
  55. package/dist/esm/types/index.js +2 -0
  56. package/dist/esm/types/msgpack-axios.js +18 -0
  57. package/dist/esm/vaultcontracts/index.js +1 -0
  58. package/dist/esm/vaultcontracts/vaultcontracts.js +141 -0
  59. package/dist/esm/xcs/autochoice.js +364 -0
  60. package/dist/esm/xcs/bebop-agg.js +123 -0
  61. package/dist/esm/xcs/iface.js +10 -0
  62. package/dist/esm/xcs/index.js +5 -0
  63. package/dist/esm/xcs/lifi-agg.js +99 -0
  64. package/dist/esm/xcs/yieldyak-agg.js +109 -0
  65. package/dist/types/balances/ub-api.d.ts +14 -0
  66. package/dist/types/cosmos/index.d.ts +6 -0
  67. package/dist/types/data/chaindata.d.ts +20 -0
  68. package/dist/types/data/chainid.d.ts +31 -0
  69. package/dist/types/data/currency.d.ts +29 -0
  70. package/dist/types/data/index.d.ts +4 -0
  71. package/dist/types/data/utils.d.ts +10 -0
  72. package/dist/types/evmabi/erc20.abi.d.ts +264 -0
  73. package/dist/types/evmabi/index.d.ts +3 -0
  74. package/dist/types/evmabi/vault.abi.d.ts +785 -0
  75. package/dist/types/evmabi/yakaggregator.abi.d.ts +298 -0
  76. package/dist/types/fuelcontracts/ArcanaVault.d.ts +448 -0
  77. package/dist/types/fuelcontracts/ArcanaVaultFactory.d.ts +8 -0
  78. package/dist/types/fuelcontracts/common.d.ts +23 -0
  79. package/dist/types/fuelcontracts/index.d.ts +2 -0
  80. package/dist/types/index.d.ts +12 -0
  81. package/dist/types/permitutils/index.d.ts +13 -0
  82. package/dist/types/proto/definition.d.ts +373 -0
  83. package/dist/types/proto/grpc.d.ts +75 -0
  84. package/dist/types/rff/fuel.d.ts +4 -0
  85. package/dist/types/rff/rff.d.ts +12 -0
  86. package/dist/types/types/binarytypes.d.ts +1 -0
  87. package/dist/types/types/index.d.ts +2 -0
  88. package/dist/types/types/msgpack-axios.d.ts +1 -0
  89. package/dist/types/vaultcontracts/index.d.ts +22 -0
  90. package/dist/types/vaultcontracts/vaultcontracts.d.ts +8 -0
  91. package/dist/types/xcs/autochoice.d.ts +57 -0
  92. package/dist/types/xcs/bebop-agg.d.ts +104 -0
  93. package/dist/types/xcs/iface.d.ts +36 -0
  94. package/dist/types/xcs/index.d.ts +5 -0
  95. package/dist/types/xcs/lifi-agg.d.ts +35 -0
  96. package/dist/types/xcs/yieldyak-agg.d.ts +21 -0
  97. package/package.json +63 -0
@@ -0,0 +1,272 @@
1
+ export const YakAggregatorABI = [
2
+ {
3
+ inputs: [
4
+ { internalType: "uint256", name: "_amountIn", type: "uint256" },
5
+ {
6
+ internalType: "address",
7
+ name: "_tokenIn",
8
+ type: "address",
9
+ },
10
+ { internalType: "address", name: "_tokenOut", type: "address" },
11
+ {
12
+ internalType: "uint256",
13
+ name: "_maxSteps",
14
+ type: "uint256",
15
+ },
16
+ ],
17
+ name: "findBestPath",
18
+ outputs: [
19
+ {
20
+ components: [
21
+ {
22
+ internalType: "uint256[]",
23
+ name: "amounts",
24
+ type: "uint256[]",
25
+ },
26
+ { internalType: "address[]", name: "adapters", type: "address[]" },
27
+ {
28
+ internalType: "address[]",
29
+ name: "path",
30
+ type: "address[]",
31
+ },
32
+ { internalType: "uint256", name: "gasEstimate", type: "uint256" },
33
+ ],
34
+ internalType: "struct YakRouter.FormattedOffer",
35
+ name: "",
36
+ type: "tuple",
37
+ },
38
+ ],
39
+ stateMutability: "view",
40
+ type: "function",
41
+ },
42
+ {
43
+ inputs: [
44
+ { internalType: "uint256", name: "_amountIn", type: "uint256" },
45
+ {
46
+ internalType: "address",
47
+ name: "_tokenIn",
48
+ type: "address",
49
+ },
50
+ { internalType: "address", name: "_tokenOut", type: "address" },
51
+ {
52
+ internalType: "uint256",
53
+ name: "_maxSteps",
54
+ type: "uint256",
55
+ },
56
+ { internalType: "uint256", name: "_gasPrice", type: "uint256" },
57
+ ],
58
+ name: "findBestPathWithGas",
59
+ outputs: [
60
+ {
61
+ components: [
62
+ {
63
+ internalType: "uint256[]",
64
+ name: "amounts",
65
+ type: "uint256[]",
66
+ },
67
+ { internalType: "address[]", name: "adapters", type: "address[]" },
68
+ {
69
+ internalType: "address[]",
70
+ name: "path",
71
+ type: "address[]",
72
+ },
73
+ { internalType: "uint256", name: "gasEstimate", type: "uint256" },
74
+ ],
75
+ internalType: "struct YakRouter.FormattedOffer",
76
+ name: "",
77
+ type: "tuple",
78
+ },
79
+ ],
80
+ stateMutability: "view",
81
+ type: "function",
82
+ },
83
+ {
84
+ inputs: [
85
+ {
86
+ components: [
87
+ {
88
+ internalType: "uint256",
89
+ name: "amountIn",
90
+ type: "uint256",
91
+ },
92
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
93
+ {
94
+ internalType: "address[]",
95
+ name: "path",
96
+ type: "address[]",
97
+ },
98
+ { internalType: "address[]", name: "adapters", type: "address[]" },
99
+ ],
100
+ internalType: "struct YakRouter.Trade",
101
+ name: "_trade",
102
+ type: "tuple",
103
+ },
104
+ { internalType: "address", name: "_to", type: "address" },
105
+ {
106
+ internalType: "uint256",
107
+ name: "_fee",
108
+ type: "uint256",
109
+ },
110
+ ],
111
+ name: "swapNoSplit",
112
+ outputs: [],
113
+ stateMutability: "nonpayable",
114
+ type: "function",
115
+ },
116
+ {
117
+ inputs: [
118
+ {
119
+ components: [
120
+ {
121
+ internalType: "uint256",
122
+ name: "amountIn",
123
+ type: "uint256",
124
+ },
125
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
126
+ {
127
+ internalType: "address[]",
128
+ name: "path",
129
+ type: "address[]",
130
+ },
131
+ { internalType: "address[]", name: "adapters", type: "address[]" },
132
+ ],
133
+ internalType: "struct YakRouter.Trade",
134
+ name: "_trade",
135
+ type: "tuple",
136
+ },
137
+ { internalType: "address", name: "_to", type: "address" },
138
+ {
139
+ internalType: "uint256",
140
+ name: "_fee",
141
+ type: "uint256",
142
+ },
143
+ ],
144
+ name: "swapNoSplitFromAVAX",
145
+ outputs: [],
146
+ stateMutability: "payable",
147
+ type: "function",
148
+ },
149
+ {
150
+ inputs: [
151
+ {
152
+ components: [
153
+ {
154
+ internalType: "uint256",
155
+ name: "amountIn",
156
+ type: "uint256",
157
+ },
158
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
159
+ {
160
+ internalType: "address[]",
161
+ name: "path",
162
+ type: "address[]",
163
+ },
164
+ { internalType: "address[]", name: "adapters", type: "address[]" },
165
+ ],
166
+ internalType: "struct YakRouter.Trade",
167
+ name: "_trade",
168
+ type: "tuple",
169
+ },
170
+ { internalType: "address", name: "_to", type: "address" },
171
+ {
172
+ internalType: "uint256",
173
+ name: "_fee",
174
+ type: "uint256",
175
+ },
176
+ ],
177
+ name: "swapNoSplitToAVAX",
178
+ outputs: [],
179
+ stateMutability: "nonpayable",
180
+ type: "function",
181
+ },
182
+ {
183
+ inputs: [
184
+ {
185
+ components: [
186
+ {
187
+ internalType: "uint256",
188
+ name: "amountIn",
189
+ type: "uint256",
190
+ },
191
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
192
+ {
193
+ internalType: "address[]",
194
+ name: "path",
195
+ type: "address[]",
196
+ },
197
+ { internalType: "address[]", name: "adapters", type: "address[]" },
198
+ ],
199
+ internalType: "struct YakRouter.Trade",
200
+ name: "_trade",
201
+ type: "tuple",
202
+ },
203
+ { internalType: "address", name: "_to", type: "address" },
204
+ {
205
+ internalType: "uint256",
206
+ name: "_fee",
207
+ type: "uint256",
208
+ },
209
+ { internalType: "uint256", name: "_deadline", type: "uint256" },
210
+ {
211
+ internalType: "uint8",
212
+ name: "_v",
213
+ type: "uint8",
214
+ },
215
+ { internalType: "bytes32", name: "_r", type: "bytes32" },
216
+ {
217
+ internalType: "bytes32",
218
+ name: "_s",
219
+ type: "bytes32",
220
+ },
221
+ ],
222
+ name: "swapNoSplitToAVAXWithPermit",
223
+ outputs: [],
224
+ stateMutability: "nonpayable",
225
+ type: "function",
226
+ },
227
+ {
228
+ inputs: [
229
+ {
230
+ components: [
231
+ {
232
+ internalType: "uint256",
233
+ name: "amountIn",
234
+ type: "uint256",
235
+ },
236
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
237
+ {
238
+ internalType: "address[]",
239
+ name: "path",
240
+ type: "address[]",
241
+ },
242
+ { internalType: "address[]", name: "adapters", type: "address[]" },
243
+ ],
244
+ internalType: "struct YakRouter.Trade",
245
+ name: "_trade",
246
+ type: "tuple",
247
+ },
248
+ { internalType: "address", name: "_to", type: "address" },
249
+ {
250
+ internalType: "uint256",
251
+ name: "_fee",
252
+ type: "uint256",
253
+ },
254
+ { internalType: "uint256", name: "_deadline", type: "uint256" },
255
+ {
256
+ internalType: "uint8",
257
+ name: "_v",
258
+ type: "uint8",
259
+ },
260
+ { internalType: "bytes32", name: "_r", type: "bytes32" },
261
+ {
262
+ internalType: "bytes32",
263
+ name: "_s",
264
+ type: "bytes32",
265
+ },
266
+ ],
267
+ name: "swapNoSplitWithPermit",
268
+ outputs: [],
269
+ stateMutability: "nonpayable",
270
+ type: "function",
271
+ },
272
+ ];