@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,275 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.YakAggregatorABI = void 0;
4
+ exports.YakAggregatorABI = [
5
+ {
6
+ inputs: [
7
+ { internalType: "uint256", name: "_amountIn", type: "uint256" },
8
+ {
9
+ internalType: "address",
10
+ name: "_tokenIn",
11
+ type: "address",
12
+ },
13
+ { internalType: "address", name: "_tokenOut", type: "address" },
14
+ {
15
+ internalType: "uint256",
16
+ name: "_maxSteps",
17
+ type: "uint256",
18
+ },
19
+ ],
20
+ name: "findBestPath",
21
+ outputs: [
22
+ {
23
+ components: [
24
+ {
25
+ internalType: "uint256[]",
26
+ name: "amounts",
27
+ type: "uint256[]",
28
+ },
29
+ { internalType: "address[]", name: "adapters", type: "address[]" },
30
+ {
31
+ internalType: "address[]",
32
+ name: "path",
33
+ type: "address[]",
34
+ },
35
+ { internalType: "uint256", name: "gasEstimate", type: "uint256" },
36
+ ],
37
+ internalType: "struct YakRouter.FormattedOffer",
38
+ name: "",
39
+ type: "tuple",
40
+ },
41
+ ],
42
+ stateMutability: "view",
43
+ type: "function",
44
+ },
45
+ {
46
+ inputs: [
47
+ { internalType: "uint256", name: "_amountIn", type: "uint256" },
48
+ {
49
+ internalType: "address",
50
+ name: "_tokenIn",
51
+ type: "address",
52
+ },
53
+ { internalType: "address", name: "_tokenOut", type: "address" },
54
+ {
55
+ internalType: "uint256",
56
+ name: "_maxSteps",
57
+ type: "uint256",
58
+ },
59
+ { internalType: "uint256", name: "_gasPrice", type: "uint256" },
60
+ ],
61
+ name: "findBestPathWithGas",
62
+ outputs: [
63
+ {
64
+ components: [
65
+ {
66
+ internalType: "uint256[]",
67
+ name: "amounts",
68
+ type: "uint256[]",
69
+ },
70
+ { internalType: "address[]", name: "adapters", type: "address[]" },
71
+ {
72
+ internalType: "address[]",
73
+ name: "path",
74
+ type: "address[]",
75
+ },
76
+ { internalType: "uint256", name: "gasEstimate", type: "uint256" },
77
+ ],
78
+ internalType: "struct YakRouter.FormattedOffer",
79
+ name: "",
80
+ type: "tuple",
81
+ },
82
+ ],
83
+ stateMutability: "view",
84
+ type: "function",
85
+ },
86
+ {
87
+ inputs: [
88
+ {
89
+ components: [
90
+ {
91
+ internalType: "uint256",
92
+ name: "amountIn",
93
+ type: "uint256",
94
+ },
95
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
96
+ {
97
+ internalType: "address[]",
98
+ name: "path",
99
+ type: "address[]",
100
+ },
101
+ { internalType: "address[]", name: "adapters", type: "address[]" },
102
+ ],
103
+ internalType: "struct YakRouter.Trade",
104
+ name: "_trade",
105
+ type: "tuple",
106
+ },
107
+ { internalType: "address", name: "_to", type: "address" },
108
+ {
109
+ internalType: "uint256",
110
+ name: "_fee",
111
+ type: "uint256",
112
+ },
113
+ ],
114
+ name: "swapNoSplit",
115
+ outputs: [],
116
+ stateMutability: "nonpayable",
117
+ type: "function",
118
+ },
119
+ {
120
+ inputs: [
121
+ {
122
+ components: [
123
+ {
124
+ internalType: "uint256",
125
+ name: "amountIn",
126
+ type: "uint256",
127
+ },
128
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
129
+ {
130
+ internalType: "address[]",
131
+ name: "path",
132
+ type: "address[]",
133
+ },
134
+ { internalType: "address[]", name: "adapters", type: "address[]" },
135
+ ],
136
+ internalType: "struct YakRouter.Trade",
137
+ name: "_trade",
138
+ type: "tuple",
139
+ },
140
+ { internalType: "address", name: "_to", type: "address" },
141
+ {
142
+ internalType: "uint256",
143
+ name: "_fee",
144
+ type: "uint256",
145
+ },
146
+ ],
147
+ name: "swapNoSplitFromAVAX",
148
+ outputs: [],
149
+ stateMutability: "payable",
150
+ type: "function",
151
+ },
152
+ {
153
+ inputs: [
154
+ {
155
+ components: [
156
+ {
157
+ internalType: "uint256",
158
+ name: "amountIn",
159
+ type: "uint256",
160
+ },
161
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
162
+ {
163
+ internalType: "address[]",
164
+ name: "path",
165
+ type: "address[]",
166
+ },
167
+ { internalType: "address[]", name: "adapters", type: "address[]" },
168
+ ],
169
+ internalType: "struct YakRouter.Trade",
170
+ name: "_trade",
171
+ type: "tuple",
172
+ },
173
+ { internalType: "address", name: "_to", type: "address" },
174
+ {
175
+ internalType: "uint256",
176
+ name: "_fee",
177
+ type: "uint256",
178
+ },
179
+ ],
180
+ name: "swapNoSplitToAVAX",
181
+ outputs: [],
182
+ stateMutability: "nonpayable",
183
+ type: "function",
184
+ },
185
+ {
186
+ inputs: [
187
+ {
188
+ components: [
189
+ {
190
+ internalType: "uint256",
191
+ name: "amountIn",
192
+ type: "uint256",
193
+ },
194
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
195
+ {
196
+ internalType: "address[]",
197
+ name: "path",
198
+ type: "address[]",
199
+ },
200
+ { internalType: "address[]", name: "adapters", type: "address[]" },
201
+ ],
202
+ internalType: "struct YakRouter.Trade",
203
+ name: "_trade",
204
+ type: "tuple",
205
+ },
206
+ { internalType: "address", name: "_to", type: "address" },
207
+ {
208
+ internalType: "uint256",
209
+ name: "_fee",
210
+ type: "uint256",
211
+ },
212
+ { internalType: "uint256", name: "_deadline", type: "uint256" },
213
+ {
214
+ internalType: "uint8",
215
+ name: "_v",
216
+ type: "uint8",
217
+ },
218
+ { internalType: "bytes32", name: "_r", type: "bytes32" },
219
+ {
220
+ internalType: "bytes32",
221
+ name: "_s",
222
+ type: "bytes32",
223
+ },
224
+ ],
225
+ name: "swapNoSplitToAVAXWithPermit",
226
+ outputs: [],
227
+ stateMutability: "nonpayable",
228
+ type: "function",
229
+ },
230
+ {
231
+ inputs: [
232
+ {
233
+ components: [
234
+ {
235
+ internalType: "uint256",
236
+ name: "amountIn",
237
+ type: "uint256",
238
+ },
239
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
240
+ {
241
+ internalType: "address[]",
242
+ name: "path",
243
+ type: "address[]",
244
+ },
245
+ { internalType: "address[]", name: "adapters", type: "address[]" },
246
+ ],
247
+ internalType: "struct YakRouter.Trade",
248
+ name: "_trade",
249
+ type: "tuple",
250
+ },
251
+ { internalType: "address", name: "_to", type: "address" },
252
+ {
253
+ internalType: "uint256",
254
+ name: "_fee",
255
+ type: "uint256",
256
+ },
257
+ { internalType: "uint256", name: "_deadline", type: "uint256" },
258
+ {
259
+ internalType: "uint8",
260
+ name: "_v",
261
+ type: "uint8",
262
+ },
263
+ { internalType: "bytes32", name: "_r", type: "bytes32" },
264
+ {
265
+ internalType: "bytes32",
266
+ name: "_s",
267
+ type: "bytes32",
268
+ },
269
+ ],
270
+ name: "swapNoSplitWithPermit",
271
+ outputs: [],
272
+ stateMutability: "nonpayable",
273
+ type: "function",
274
+ },
275
+ ];