@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,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChainIDKeyedMap = exports.OmniversalChainID = void 0;
4
+ exports.encodeChainID36 = encodeChainID36;
5
+ const viem_1 = require("viem");
6
+ const definition_1 = require("../proto/definition");
7
+ const utils_1 = require("./utils");
8
+ function encodeChainID36(universe, chainID) {
9
+ let chainIDB;
10
+ if (Buffer.isBuffer(chainID) || chainID instanceof Uint8Array) {
11
+ chainIDB = chainID;
12
+ }
13
+ else {
14
+ chainIDB = (0, viem_1.toBytes)(chainID);
15
+ }
16
+ const buf = Buffer.alloc(36);
17
+ buf.writeUint32BE(universe);
18
+ buf.set(chainIDB, 4 + (32 - chainIDB.length));
19
+ return buf;
20
+ }
21
+ class OmniversalChainID {
22
+ universe;
23
+ chainID;
24
+ binaryForm;
25
+ constructor(universe, chainID) {
26
+ this.universe = universe;
27
+ if (typeof chainID === "bigint") {
28
+ this.chainID = chainID;
29
+ }
30
+ else if (typeof chainID === "number" || typeof chainID === "string") {
31
+ this.chainID = BigInt(chainID);
32
+ }
33
+ else if (chainID instanceof Uint8Array) {
34
+ this.chainID = (0, viem_1.bytesToBigInt)(chainID);
35
+ }
36
+ this.binaryForm = encodeChainID36(this.universe, this.chainID);
37
+ }
38
+ toString() {
39
+ return (0, definition_1.universeToJSON)(this.universe) + "_" + this.chainID.toString(10);
40
+ }
41
+ toJSON() {
42
+ return {
43
+ universe: (0, definition_1.universeToJSON)(this.universe),
44
+ chainID: (0, viem_1.toHex)(this.chainID),
45
+ };
46
+ }
47
+ static fromJSON(input) {
48
+ return new OmniversalChainID((0, definition_1.universeFromJSON)(input.universe), (0, viem_1.hexToBigInt)(input.chainID));
49
+ }
50
+ static fromChainID36(_input) {
51
+ const input = (0, utils_1.convertToBufferIfNecessary)(_input);
52
+ const univID = input.readUint32BE(0);
53
+ const rest = input.subarray(4);
54
+ return new OmniversalChainID(univID, rest);
55
+ }
56
+ // Do not modify the returned buffer. Make a copy if necessary.
57
+ toBytes() {
58
+ return this.binaryForm;
59
+ }
60
+ equals(rhs) {
61
+ return this.universe === rhs.universe && this.chainID === rhs.chainID;
62
+ }
63
+ static equals(lhs, rhs) {
64
+ return lhs.equals(rhs);
65
+ }
66
+ }
67
+ exports.OmniversalChainID = OmniversalChainID;
68
+ class ChainIDKeyedMap {
69
+ map;
70
+ constructor(entries = null) {
71
+ this.map = new Map(entries != null
72
+ ? entries.map((e) => [(0, viem_1.bytesToHex)(e[0].toBytes()), e[1]])
73
+ : null);
74
+ }
75
+ get(key) {
76
+ return this.map.get((0, viem_1.bytesToHex)(key.toBytes()));
77
+ }
78
+ set(key, value) {
79
+ this.map.set((0, viem_1.bytesToHex)(key.toBytes()), value);
80
+ return this;
81
+ }
82
+ getFromChainID36(key) {
83
+ return this.map.get((0, viem_1.bytesToHex)(key));
84
+ }
85
+ *entries() {
86
+ for (const [key, value] of this.map.entries()) {
87
+ yield [OmniversalChainID.fromChainID36((0, viem_1.hexToBytes)(key)), value];
88
+ }
89
+ }
90
+ }
91
+ exports.ChainIDKeyedMap = ChainIDKeyedMap;
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Currency = exports.CurrencyID = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const viem_1 = require("viem");
6
+ const decimal_js_1 = tslib_1.__importDefault(require("decimal.js"));
7
+ const utils_1 = require("./utils");
8
+ var CurrencyID;
9
+ (function (CurrencyID) {
10
+ CurrencyID[CurrencyID["USDC"] = 1] = "USDC";
11
+ CurrencyID[CurrencyID["USDT"] = 2] = "USDT";
12
+ CurrencyID[CurrencyID["ETH"] = 3] = "ETH";
13
+ CurrencyID[CurrencyID["POL"] = 4] = "POL";
14
+ CurrencyID[CurrencyID["AVAX"] = 5] = "AVAX";
15
+ CurrencyID[CurrencyID["BNB"] = 6] = "BNB";
16
+ CurrencyID[CurrencyID["HYPE"] = 16] = "HYPE";
17
+ CurrencyID[CurrencyID["KAIA"] = 17] = "KAIA";
18
+ CurrencyID[CurrencyID["SOPH"] = 18] = "SOPH";
19
+ CurrencyID[CurrencyID["TRX"] = 19] = "TRX";
20
+ CurrencyID[CurrencyID["MON"] = 20] = "MON";
21
+ })(CurrencyID || (exports.CurrencyID = CurrencyID = {}));
22
+ class Currency {
23
+ currencyID;
24
+ decimals;
25
+ permitVariant;
26
+ permitContractVersion;
27
+ isGasToken;
28
+ // this is always 32 byte long
29
+ tokenAddress;
30
+ /* This is the ratio between one unit to the smallest unit used.
31
+
32
+ For example, USDC, which has a ‘decimals’ value of 6, is designed so that 1 USDC = 10⁶ μUSDC, which is the smallest indivisible amount representable.
33
+ */
34
+ oneUnitToAtomicUnitRatio;
35
+ constructor(currencyID, tokenAddress, decimals, permitVariant, permitContractVersion = 0, isGasToken) {
36
+ this.currencyID = currencyID;
37
+ this.decimals = decimals;
38
+ this.permitVariant = permitVariant;
39
+ this.permitContractVersion = permitContractVersion;
40
+ this.isGasToken = isGasToken;
41
+ if (typeof tokenAddress === "string") {
42
+ this.tokenAddress = (0, utils_1.zeroExtendBufToGivenSize)((0, viem_1.toBytes)(tokenAddress), 32);
43
+ }
44
+ else if (tokenAddress instanceof Uint8Array) {
45
+ this.tokenAddress = (0, utils_1.zeroExtendBufToGivenSize)(tokenAddress, 32);
46
+ }
47
+ else if (Array.isArray(tokenAddress) &&
48
+ tokenAddress.length >= 1 &&
49
+ typeof tokenAddress[0] === "number") {
50
+ this.tokenAddress = (0, utils_1.zeroExtendBufToGivenSize)(Buffer.from(tokenAddress), 32);
51
+ }
52
+ this.oneUnitToAtomicUnitRatio = decimal_js_1.default.pow(10, decimals);
53
+ }
54
+ convertUnitsToAmountDecimal(input) {
55
+ let rawunits;
56
+ if (typeof input === "bigint") {
57
+ rawunits = input.toString(10);
58
+ }
59
+ else if (typeof input === "number") {
60
+ rawunits = input.toString();
61
+ }
62
+ else if (input instanceof Uint8Array) {
63
+ rawunits = (0, viem_1.bytesToBigInt)(input).toString(10);
64
+ }
65
+ else if (typeof input === "string") {
66
+ rawunits = input;
67
+ }
68
+ else {
69
+ throw new Error("Invalid input");
70
+ }
71
+ return decimal_js_1.default.div(rawunits, this.oneUnitToAtomicUnitRatio);
72
+ }
73
+ convertAmountToUnitsInBinary(input) {
74
+ return Buffer.from((0, viem_1.toBytes)(input.mul(this.oneUnitToAtomicUnitRatio).ceil().toHex()));
75
+ }
76
+ }
77
+ exports.Currency = Currency;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./chaindata"), exports);
5
+ tslib_1.__exportStar(require("./chainid"), exports);
6
+ tslib_1.__exportStar(require("./currency"), exports);
7
+ tslib_1.__exportStar(require("./utils"), exports);
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.convertToBufferIfNecessary = convertToBufferIfNecessary;
4
+ exports.zeroExtendBufToGivenSize = zeroExtendBufToGivenSize;
5
+ exports.ezPadTo32Hex = ezPadTo32Hex;
6
+ exports.convertDecimalToBigInt = convertDecimalToBigInt;
7
+ exports.convertBigIntToDecimal = convertBigIntToDecimal;
8
+ exports.maxByBigInt = maxByBigInt;
9
+ exports.minByBigInt = minByBigInt;
10
+ const tslib_1 = require("tslib");
11
+ const viem_1 = require("viem");
12
+ const decimal_js_1 = tslib_1.__importDefault(require("decimal.js"));
13
+ function convertToBufferIfNecessary(buf) {
14
+ return Buffer.isBuffer(buf) ? buf : Buffer.from(buf);
15
+ }
16
+ function zeroExtendBufToGivenSize(buf, size = 32) {
17
+ if (buf.length === size) {
18
+ return convertToBufferIfNecessary(buf);
19
+ }
20
+ if (buf.length > size) {
21
+ return convertToBufferIfNecessary(buf.subarray(0, size));
22
+ }
23
+ const out = Buffer.alloc(size);
24
+ out.set(buf, size - buf.length);
25
+ return out;
26
+ }
27
+ function ezPadTo32Hex(input) {
28
+ return (0, viem_1.pad)(typeof input !== "string" ? (0, viem_1.toHex)(input) : input, {
29
+ dir: "left",
30
+ size: 32,
31
+ });
32
+ }
33
+ function convertDecimalToBigInt(dec) {
34
+ return BigInt(dec.ceil().toFixed());
35
+ }
36
+ function convertBigIntToDecimal(big) {
37
+ return new decimal_js_1.default(big.toString(10));
38
+ }
39
+ function maxByBigInt(items, getValue) {
40
+ return items.reduce((m, e) => getValue(e) > getValue(m) ? e : m);
41
+ }
42
+ function minByBigInt(items, getValue) {
43
+ return items.reduce((m, e) => getValue(e) < getValue(m) ? e : m);
44
+ }
@@ -0,0 +1,349 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERC20ABI = void 0;
4
+ exports.ERC20ABI = [
5
+ {
6
+ constant: true,
7
+ inputs: [],
8
+ name: "name",
9
+ outputs: [
10
+ {
11
+ name: "",
12
+ type: "string",
13
+ },
14
+ ],
15
+ payable: false,
16
+ stateMutability: "view",
17
+ type: "function",
18
+ },
19
+ {
20
+ constant: false,
21
+ inputs: [
22
+ {
23
+ name: "_spender",
24
+ type: "address",
25
+ },
26
+ {
27
+ name: "_value",
28
+ type: "uint256",
29
+ },
30
+ ],
31
+ name: "approve",
32
+ outputs: [
33
+ {
34
+ name: "",
35
+ type: "bool",
36
+ },
37
+ ],
38
+ payable: false,
39
+ stateMutability: "nonpayable",
40
+ type: "function",
41
+ },
42
+ {
43
+ constant: true,
44
+ inputs: [],
45
+ name: "totalSupply",
46
+ outputs: [
47
+ {
48
+ name: "",
49
+ type: "uint256",
50
+ },
51
+ ],
52
+ payable: false,
53
+ stateMutability: "view",
54
+ type: "function",
55
+ },
56
+ {
57
+ constant: false,
58
+ inputs: [
59
+ {
60
+ name: "_from",
61
+ type: "address",
62
+ },
63
+ {
64
+ name: "_to",
65
+ type: "address",
66
+ },
67
+ {
68
+ name: "_value",
69
+ type: "uint256",
70
+ },
71
+ ],
72
+ name: "transferFrom",
73
+ outputs: [
74
+ {
75
+ name: "",
76
+ type: "bool",
77
+ },
78
+ ],
79
+ payable: false,
80
+ stateMutability: "nonpayable",
81
+ type: "function",
82
+ },
83
+ {
84
+ constant: true,
85
+ inputs: [],
86
+ name: "decimals",
87
+ outputs: [
88
+ {
89
+ name: "",
90
+ type: "uint8",
91
+ },
92
+ ],
93
+ payable: false,
94
+ stateMutability: "view",
95
+ type: "function",
96
+ },
97
+ {
98
+ constant: true,
99
+ inputs: [
100
+ {
101
+ name: "_owner",
102
+ type: "address",
103
+ },
104
+ ],
105
+ name: "balanceOf",
106
+ outputs: [
107
+ {
108
+ name: "balance",
109
+ type: "uint256",
110
+ },
111
+ ],
112
+ payable: false,
113
+ stateMutability: "view",
114
+ type: "function",
115
+ },
116
+ {
117
+ constant: true,
118
+ inputs: [],
119
+ name: "symbol",
120
+ outputs: [
121
+ {
122
+ name: "",
123
+ type: "string",
124
+ },
125
+ ],
126
+ payable: false,
127
+ stateMutability: "view",
128
+ type: "function",
129
+ },
130
+ {
131
+ constant: false,
132
+ inputs: [
133
+ {
134
+ name: "_to",
135
+ type: "address",
136
+ },
137
+ {
138
+ name: "_value",
139
+ type: "uint256",
140
+ },
141
+ ],
142
+ name: "transfer",
143
+ outputs: [
144
+ {
145
+ name: "",
146
+ type: "bool",
147
+ },
148
+ ],
149
+ payable: false,
150
+ stateMutability: "nonpayable",
151
+ type: "function",
152
+ },
153
+ {
154
+ constant: true,
155
+ inputs: [
156
+ {
157
+ name: "_owner",
158
+ type: "address",
159
+ },
160
+ {
161
+ name: "_spender",
162
+ type: "address",
163
+ },
164
+ ],
165
+ name: "allowance",
166
+ outputs: [
167
+ {
168
+ name: "",
169
+ type: "uint256",
170
+ },
171
+ ],
172
+ payable: false,
173
+ stateMutability: "view",
174
+ type: "function",
175
+ },
176
+ {
177
+ payable: true,
178
+ stateMutability: "payable",
179
+ type: "fallback",
180
+ },
181
+ {
182
+ anonymous: false,
183
+ inputs: [
184
+ {
185
+ indexed: true,
186
+ name: "owner",
187
+ type: "address",
188
+ },
189
+ {
190
+ indexed: true,
191
+ name: "spender",
192
+ type: "address",
193
+ },
194
+ {
195
+ indexed: false,
196
+ name: "value",
197
+ type: "uint256",
198
+ },
199
+ ],
200
+ name: "Approval",
201
+ type: "event",
202
+ },
203
+ {
204
+ anonymous: false,
205
+ inputs: [
206
+ {
207
+ indexed: true,
208
+ name: "from",
209
+ type: "address",
210
+ },
211
+ {
212
+ indexed: true,
213
+ name: "to",
214
+ type: "address",
215
+ },
216
+ {
217
+ indexed: false,
218
+ name: "value",
219
+ type: "uint256",
220
+ },
221
+ ],
222
+ name: "Transfer",
223
+ type: "event",
224
+ },
225
+ {
226
+ comment: "From the EIP-2612 spec.",
227
+ inputs: [
228
+ {
229
+ internalType: "address",
230
+ name: "owner",
231
+ type: "address",
232
+ },
233
+ ],
234
+ name: "nonces",
235
+ outputs: [
236
+ {
237
+ internalType: "uint256",
238
+ name: "",
239
+ type: "uint256",
240
+ },
241
+ ],
242
+ stateMutability: "view",
243
+ type: "function",
244
+ },
245
+ {
246
+ comment: "From the EIP-2612 spec.",
247
+ inputs: [
248
+ {
249
+ internalType: "address",
250
+ name: "owner",
251
+ type: "address",
252
+ },
253
+ {
254
+ internalType: "address",
255
+ name: "spender",
256
+ type: "address",
257
+ },
258
+ {
259
+ internalType: "uint256",
260
+ name: "value",
261
+ type: "uint256",
262
+ },
263
+ {
264
+ internalType: "uint256",
265
+ name: "deadline",
266
+ type: "uint256",
267
+ },
268
+ {
269
+ internalType: "uint8",
270
+ name: "v",
271
+ type: "uint8",
272
+ },
273
+ {
274
+ internalType: "bytes32",
275
+ name: "r",
276
+ type: "bytes32",
277
+ },
278
+ {
279
+ internalType: "bytes32",
280
+ name: "s",
281
+ type: "bytes32",
282
+ },
283
+ ],
284
+ name: "permit",
285
+ outputs: [],
286
+ stateMutability: "nonpayable",
287
+ type: "function",
288
+ },
289
+ {
290
+ comment: "Available on bridged tokens on Polygon.",
291
+ inputs: [
292
+ {
293
+ internalType: "address",
294
+ name: "userAddress",
295
+ type: "address",
296
+ },
297
+ {
298
+ internalType: "bytes",
299
+ name: "functionSignature",
300
+ type: "bytes",
301
+ },
302
+ {
303
+ internalType: "bytes32",
304
+ name: "sigR",
305
+ type: "bytes32",
306
+ },
307
+ {
308
+ internalType: "bytes32",
309
+ name: "sigS",
310
+ type: "bytes32",
311
+ },
312
+ {
313
+ internalType: "uint8",
314
+ name: "sigV",
315
+ type: "uint8",
316
+ },
317
+ ],
318
+ name: "executeMetaTransaction",
319
+ outputs: [
320
+ {
321
+ internalType: "bytes",
322
+ name: "",
323
+ type: "bytes",
324
+ },
325
+ ],
326
+ stateMutability: "payable",
327
+ type: "function",
328
+ },
329
+ {
330
+ comment: "Available on bridged tokens on Polygon.",
331
+ inputs: [
332
+ {
333
+ internalType: "address",
334
+ name: "user",
335
+ type: "address",
336
+ },
337
+ ],
338
+ name: "getNonce",
339
+ outputs: [
340
+ {
341
+ internalType: "uint256",
342
+ name: "nonce",
343
+ type: "uint256",
344
+ },
345
+ ],
346
+ stateMutability: "view",
347
+ type: "function",
348
+ },
349
+ ];
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./erc20.abi"), exports);
5
+ tslib_1.__exportStar(require("./vault.abi"), exports);
6
+ tslib_1.__exportStar(require("./yakaggregator.abi"), exports);