@gearbox-protocol/sdk 3.0.0-vfourabi.4 → 3.0.0-vfourabi.6

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 (66) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/dist/cjs/abi/compressors.cjs +3848 -3823
  3. package/dist/cjs/abi/compressors.d.ts +13 -15
  4. package/dist/cjs/abi/errors.cjs +188 -195
  5. package/dist/cjs/abi/errors.d.ts +6 -8
  6. package/dist/cjs/abi/iCurvePool.cjs +1 -0
  7. package/dist/cjs/abi/iCurvePool.d.ts +0 -0
  8. package/dist/cjs/abi/iERC20.cjs +123 -122
  9. package/dist/cjs/abi/iERC20.d.ts +1 -3
  10. package/dist/cjs/abi/iPausable.cjs +37 -39
  11. package/dist/cjs/abi/iPausable.d.ts +1 -3
  12. package/dist/cjs/abi/iPriceFeedStore.cjs +229 -231
  13. package/dist/cjs/abi/iPriceFeedStore.d.ts +1 -3
  14. package/dist/cjs/abi/iUpdatablePriceFeed.cjs +18 -20
  15. package/dist/cjs/abi/iUpdatablePriceFeed.d.ts +1 -3
  16. package/dist/cjs/abi/iVersion.cjs +30 -32
  17. package/dist/cjs/abi/iVersion.d.ts +1 -3
  18. package/dist/cjs/abi/iZapper.cjs +85 -84
  19. package/dist/cjs/abi/iZapper.d.ts +1 -3
  20. package/dist/cjs/abi/index.cjs +27 -0
  21. package/dist/cjs/abi/index.d.ts +11 -0
  22. package/dist/cjs/abi/routerV300.cjs +378 -381
  23. package/dist/cjs/abi/routerV300.d.ts +2 -4
  24. package/dist/cjs/abi/v300.cjs +4125 -4138
  25. package/dist/cjs/abi/v300.d.ts +12 -14
  26. package/dist/cjs/abi/v310.cjs +5141 -5116
  27. package/dist/cjs/abi/v310.d.ts +13 -15
  28. package/dist/cjs/dev/index.d.ts +287 -1
  29. package/dist/cjs/sdk/index.cjs +18865 -18931
  30. package/dist/cjs/sdk/index.d.ts +13552 -8345
  31. package/dist/esm/abi/compressors.d.mts +13 -15
  32. package/dist/esm/abi/compressors.mjs +3845 -3809
  33. package/dist/esm/abi/errors.d.mts +6 -8
  34. package/dist/esm/abi/errors.mjs +185 -188
  35. package/dist/esm/abi/iCurvePool.d.mts +0 -0
  36. package/dist/esm/abi/iCurvePool.mjs +1 -0
  37. package/dist/esm/abi/iERC20.d.mts +1 -3
  38. package/dist/esm/abi/iERC20.mjs +120 -120
  39. package/dist/esm/abi/iPausable.d.mts +1 -3
  40. package/dist/esm/abi/iPausable.mjs +34 -37
  41. package/dist/esm/abi/iPriceFeedStore.d.mts +1 -3
  42. package/dist/esm/abi/iPriceFeedStore.mjs +226 -229
  43. package/dist/esm/abi/iUpdatablePriceFeed.d.mts +1 -3
  44. package/dist/esm/abi/iUpdatablePriceFeed.mjs +15 -18
  45. package/dist/esm/abi/iVersion.d.mts +1 -3
  46. package/dist/esm/abi/iVersion.mjs +27 -30
  47. package/dist/esm/abi/iZapper.d.mts +1 -3
  48. package/dist/esm/abi/iZapper.mjs +82 -82
  49. package/dist/esm/abi/index.d.mts +11 -0
  50. package/dist/esm/abi/index.mjs +11 -0
  51. package/dist/esm/abi/routerV300.d.mts +2 -4
  52. package/dist/esm/abi/routerV300.mjs +375 -378
  53. package/dist/esm/abi/v300.d.mts +12 -14
  54. package/dist/esm/abi/v300.mjs +4122 -4125
  55. package/dist/esm/abi/v310.d.mts +13 -15
  56. package/dist/esm/abi/v310.mjs +5138 -5102
  57. package/dist/esm/dev/index.d.mts +287 -1
  58. package/dist/esm/sdk/index.d.mts +13552 -8345
  59. package/dist/esm/sdk/index.mjs +18866 -18908
  60. package/package.json +1 -2
  61. package/src/abi/iCurvePool.ts +0 -0
  62. package/src/abi/index.ts +11 -0
  63. package/src/sdk/index.ts +0 -1
  64. package/tsconfig.abi.json +4 -0
  65. package/tsup.config.ts +58 -8
  66. package/tsconfig.build.json +0 -4
@@ -1,83 +1,83 @@
1
- // src/abi/iZapper.ts
2
- var iZapperAbi = [
3
- {
4
- type: "function",
5
- inputs: [],
6
- name: "pool",
7
- outputs: [{ name: "", internalType: "address", type: "address" }],
8
- stateMutability: "view"
9
- },
10
- {
11
- type: "function",
12
- inputs: [
13
- { name: "tokenInAmount", internalType: "uint256", type: "uint256" }
14
- ],
15
- name: "previewDeposit",
16
- outputs: [
17
- { name: "tokenOutAmount", internalType: "uint256", type: "uint256" }
18
- ],
19
- stateMutability: "view"
20
- },
21
- {
22
- type: "function",
23
- inputs: [
24
- { name: "tokenOutAmount", internalType: "uint256", type: "uint256" }
25
- ],
26
- name: "previewRedeem",
27
- outputs: [
28
- { name: "tokenInAmount", internalType: "uint256", type: "uint256" }
29
- ],
30
- stateMutability: "view"
31
- },
32
- {
33
- type: "function",
34
- inputs: [
35
- { name: "tokenOutAmount", internalType: "uint256", type: "uint256" },
36
- { name: "receiver", internalType: "address", type: "address" }
37
- ],
38
- name: "redeem",
39
- outputs: [
40
- { name: "tokenInAmount", internalType: "uint256", type: "uint256" }
41
- ],
42
- stateMutability: "nonpayable"
43
- },
44
- {
45
- type: "function",
46
- inputs: [
47
- { name: "tokenOutAmount", internalType: "uint256", type: "uint256" },
48
- { name: "receiver", internalType: "address", type: "address" },
49
- { name: "deadline", internalType: "uint256", type: "uint256" },
50
- { name: "v", internalType: "uint8", type: "uint8" },
51
- { name: "r", internalType: "bytes32", type: "bytes32" },
52
- { name: "s", internalType: "bytes32", type: "bytes32" }
53
- ],
54
- name: "redeemWithPermit",
55
- outputs: [
56
- { name: "tokenInAmount", internalType: "uint256", type: "uint256" }
57
- ],
58
- stateMutability: "nonpayable"
59
- },
60
- {
61
- type: "function",
62
- inputs: [],
63
- name: "tokenIn",
64
- outputs: [{ name: "", internalType: "address", type: "address" }],
65
- stateMutability: "view"
66
- },
67
- {
68
- type: "function",
69
- inputs: [],
70
- name: "tokenOut",
71
- outputs: [{ name: "", internalType: "address", type: "address" }],
72
- stateMutability: "view"
73
- },
74
- {
75
- type: "function",
76
- inputs: [],
77
- name: "underlying",
78
- outputs: [{ name: "", internalType: "address", type: "address" }],
79
- stateMutability: "view"
80
- }
1
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2
+ // IZapper
3
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
+ export const iZapperAbi = [
5
+ {
6
+ type: "function",
7
+ inputs: [],
8
+ name: "pool",
9
+ outputs: [{ name: "", internalType: "address", type: "address" }],
10
+ stateMutability: "view",
11
+ },
12
+ {
13
+ type: "function",
14
+ inputs: [
15
+ { name: "tokenInAmount", internalType: "uint256", type: "uint256" },
16
+ ],
17
+ name: "previewDeposit",
18
+ outputs: [
19
+ { name: "tokenOutAmount", internalType: "uint256", type: "uint256" },
20
+ ],
21
+ stateMutability: "view",
22
+ },
23
+ {
24
+ type: "function",
25
+ inputs: [
26
+ { name: "tokenOutAmount", internalType: "uint256", type: "uint256" },
27
+ ],
28
+ name: "previewRedeem",
29
+ outputs: [
30
+ { name: "tokenInAmount", internalType: "uint256", type: "uint256" },
31
+ ],
32
+ stateMutability: "view",
33
+ },
34
+ {
35
+ type: "function",
36
+ inputs: [
37
+ { name: "tokenOutAmount", internalType: "uint256", type: "uint256" },
38
+ { name: "receiver", internalType: "address", type: "address" },
39
+ ],
40
+ name: "redeem",
41
+ outputs: [
42
+ { name: "tokenInAmount", internalType: "uint256", type: "uint256" },
43
+ ],
44
+ stateMutability: "nonpayable",
45
+ },
46
+ {
47
+ type: "function",
48
+ inputs: [
49
+ { name: "tokenOutAmount", internalType: "uint256", type: "uint256" },
50
+ { name: "receiver", internalType: "address", type: "address" },
51
+ { name: "deadline", internalType: "uint256", type: "uint256" },
52
+ { name: "v", internalType: "uint8", type: "uint8" },
53
+ { name: "r", internalType: "bytes32", type: "bytes32" },
54
+ { name: "s", internalType: "bytes32", type: "bytes32" },
55
+ ],
56
+ name: "redeemWithPermit",
57
+ outputs: [
58
+ { name: "tokenInAmount", internalType: "uint256", type: "uint256" },
59
+ ],
60
+ stateMutability: "nonpayable",
61
+ },
62
+ {
63
+ type: "function",
64
+ inputs: [],
65
+ name: "tokenIn",
66
+ outputs: [{ name: "", internalType: "address", type: "address" }],
67
+ stateMutability: "view",
68
+ },
69
+ {
70
+ type: "function",
71
+ inputs: [],
72
+ name: "tokenOut",
73
+ outputs: [{ name: "", internalType: "address", type: "address" }],
74
+ stateMutability: "view",
75
+ },
76
+ {
77
+ type: "function",
78
+ inputs: [],
79
+ name: "underlying",
80
+ outputs: [{ name: "", internalType: "address", type: "address" }],
81
+ stateMutability: "view",
82
+ },
81
83
  ];
82
-
83
- export { iZapperAbi };
@@ -0,0 +1,11 @@
1
+ export * from "./compressors";
2
+ export * from "./errors";
3
+ export * from "./iERC20";
4
+ export * from "./iPausable";
5
+ export * from "./iPriceFeedStore";
6
+ export * from "./iUpdatablePriceFeed";
7
+ export * from "./iVersion";
8
+ export * from "./iZapper";
9
+ export * from "./routerV300";
10
+ export * from "./v300";
11
+ export * from "./v310";
@@ -0,0 +1,11 @@
1
+ export * from "./compressors";
2
+ export * from "./errors";
3
+ export * from "./iERC20";
4
+ export * from "./iPausable";
5
+ export * from "./iPriceFeedStore";
6
+ export * from "./iUpdatablePriceFeed";
7
+ export * from "./iVersion";
8
+ export * from "./iZapper";
9
+ export * from "./routerV300";
10
+ export * from "./v300";
11
+ export * from "./v310";
@@ -1,4 +1,4 @@
1
- declare const iRouterV300Abi: readonly [{
1
+ export declare const iRouterV300Abi: readonly [{
2
2
  readonly type: "function";
3
3
  readonly name: "componentAddressById";
4
4
  readonly inputs: readonly [{
@@ -493,7 +493,7 @@ declare const iRouterV300Abi: readonly [{
493
493
  }];
494
494
  readonly anonymous: false;
495
495
  }];
496
- declare const iSwapperV300Abi: readonly [{
496
+ export declare const iSwapperV300Abi: readonly [{
497
497
  readonly type: "function";
498
498
  readonly name: "getBestDirectPairSwap";
499
499
  readonly inputs: readonly [{
@@ -583,5 +583,3 @@ declare const iSwapperV300Abi: readonly [{
583
583
  }];
584
584
  readonly stateMutability: "view";
585
585
  }];
586
-
587
- export { iRouterV300Abi, iSwapperV300Abi };