@gearbox-protocol/sdk 14.4.3 → 14.5.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 (26) hide show
  1. package/dist/cjs/abi/compressors/subcompressors/securitizeRedemptionSubcompressor.js +187 -0
  2. package/dist/cjs/abi/router/securitizeOnrampWorker.js +541 -0
  3. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +9 -0
  4. package/dist/cjs/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.js +68 -0
  5. package/dist/cjs/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js +77 -0
  6. package/dist/cjs/plugins/adapters/contracts/SecuritizeSwapAdapterContract.js +68 -0
  7. package/dist/cjs/plugins/adapters/createAdapter.js +9 -0
  8. package/dist/cjs/plugins/adapters/types.js +3 -0
  9. package/dist/cjs/sdk/chain/chains.js +1 -1
  10. package/dist/esm/abi/compressors/subcompressors/securitizeRedemptionSubcompressor.js +163 -0
  11. package/dist/esm/abi/router/securitizeOnrampWorker.js +517 -0
  12. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +9 -0
  13. package/dist/esm/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.js +46 -0
  14. package/dist/esm/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js +55 -0
  15. package/dist/esm/plugins/adapters/contracts/SecuritizeSwapAdapterContract.js +46 -0
  16. package/dist/esm/plugins/adapters/createAdapter.js +9 -0
  17. package/dist/esm/plugins/adapters/types.js +3 -0
  18. package/dist/esm/sdk/chain/chains.js +1 -1
  19. package/dist/types/abi/compressors/subcompressors/securitizeRedemptionSubcompressor.d.ts +220 -0
  20. package/dist/types/abi/router/securitizeOnrampWorker.d.ts +726 -0
  21. package/dist/types/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.d.ts +24 -0
  22. package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +26 -0
  23. package/dist/types/plugins/adapters/contracts/SecuritizeSwapAdapterContract.d.ts +24 -0
  24. package/dist/types/plugins/adapters/types.d.ts +4 -1
  25. package/dist/types/sdk/chain/chains.d.ts +1 -1
  26. package/package.json +1 -1
@@ -0,0 +1,187 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var securitizeRedemptionSubcompressor_exports = {};
20
+ __export(securitizeRedemptionSubcompressor_exports, {
21
+ securitizeRedemptionSubcompressorAbi: () => securitizeRedemptionSubcompressorAbi
22
+ });
23
+ module.exports = __toCommonJS(securitizeRedemptionSubcompressor_exports);
24
+ const securitizeRedemptionSubcompressorAbi = [
25
+ {
26
+ type: "function",
27
+ name: "contractType",
28
+ inputs: [],
29
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
30
+ stateMutability: "view"
31
+ },
32
+ {
33
+ type: "function",
34
+ name: "getCurrentWithdrawals",
35
+ inputs: [
36
+ { name: "creditAccount", type: "address", internalType: "address" },
37
+ { name: "token", type: "address", internalType: "address" }
38
+ ],
39
+ outputs: [
40
+ {
41
+ name: "",
42
+ type: "tuple[]",
43
+ internalType: "struct ClaimableWithdrawal[]",
44
+ components: [
45
+ { name: "token", type: "address", internalType: "address" },
46
+ {
47
+ name: "withdrawalPhantomToken",
48
+ type: "address",
49
+ internalType: "address"
50
+ },
51
+ {
52
+ name: "withdrawalTokenSpent",
53
+ type: "uint256",
54
+ internalType: "uint256"
55
+ },
56
+ {
57
+ name: "outputs",
58
+ type: "tuple[]",
59
+ internalType: "struct WithdrawalOutput[]",
60
+ components: [
61
+ { name: "token", type: "address", internalType: "address" },
62
+ { name: "isDelayed", type: "bool", internalType: "bool" },
63
+ { name: "amount", type: "uint256", internalType: "uint256" }
64
+ ]
65
+ },
66
+ {
67
+ name: "claimCalls",
68
+ type: "tuple[]",
69
+ internalType: "struct MultiCall[]",
70
+ components: [
71
+ { name: "target", type: "address", internalType: "address" },
72
+ { name: "callData", type: "bytes", internalType: "bytes" }
73
+ ]
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ name: "",
79
+ type: "tuple[]",
80
+ internalType: "struct PendingWithdrawal[]",
81
+ components: [
82
+ { name: "token", type: "address", internalType: "address" },
83
+ {
84
+ name: "withdrawalPhantomToken",
85
+ type: "address",
86
+ internalType: "address"
87
+ },
88
+ {
89
+ name: "expectedOutputs",
90
+ type: "tuple[]",
91
+ internalType: "struct WithdrawalOutput[]",
92
+ components: [
93
+ { name: "token", type: "address", internalType: "address" },
94
+ { name: "isDelayed", type: "bool", internalType: "bool" },
95
+ { name: "amount", type: "uint256", internalType: "uint256" }
96
+ ]
97
+ },
98
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
99
+ ]
100
+ }
101
+ ],
102
+ stateMutability: "view"
103
+ },
104
+ {
105
+ type: "function",
106
+ name: "getWithdrawableAssets",
107
+ inputs: [
108
+ { name: "", type: "address", internalType: "address" },
109
+ { name: "token", type: "address", internalType: "address" }
110
+ ],
111
+ outputs: [
112
+ {
113
+ name: "",
114
+ type: "tuple[]",
115
+ internalType: "struct WithdrawableAsset[]",
116
+ components: [
117
+ { name: "token", type: "address", internalType: "address" },
118
+ {
119
+ name: "withdrawalPhantomToken",
120
+ type: "address",
121
+ internalType: "address"
122
+ },
123
+ { name: "underlying", type: "address", internalType: "address" },
124
+ {
125
+ name: "withdrawalLength",
126
+ type: "uint256",
127
+ internalType: "uint256"
128
+ }
129
+ ]
130
+ }
131
+ ],
132
+ stateMutability: "view"
133
+ },
134
+ {
135
+ type: "function",
136
+ name: "getWithdrawalRequestResult",
137
+ inputs: [
138
+ { name: "creditAccount", type: "address", internalType: "address" },
139
+ { name: "token", type: "address", internalType: "address" },
140
+ { name: "withdrawalToken", type: "address", internalType: "address" },
141
+ { name: "amount", type: "uint256", internalType: "uint256" }
142
+ ],
143
+ outputs: [
144
+ {
145
+ name: "requestableWithdrawal",
146
+ type: "tuple",
147
+ internalType: "struct RequestableWithdrawal",
148
+ components: [
149
+ { name: "token", type: "address", internalType: "address" },
150
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
151
+ {
152
+ name: "outputs",
153
+ type: "tuple[]",
154
+ internalType: "struct WithdrawalOutput[]",
155
+ components: [
156
+ { name: "token", type: "address", internalType: "address" },
157
+ { name: "isDelayed", type: "bool", internalType: "bool" },
158
+ { name: "amount", type: "uint256", internalType: "uint256" }
159
+ ]
160
+ },
161
+ {
162
+ name: "requestCalls",
163
+ type: "tuple[]",
164
+ internalType: "struct MultiCall[]",
165
+ components: [
166
+ { name: "target", type: "address", internalType: "address" },
167
+ { name: "callData", type: "bytes", internalType: "bytes" }
168
+ ]
169
+ },
170
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
171
+ ]
172
+ }
173
+ ],
174
+ stateMutability: "view"
175
+ },
176
+ {
177
+ type: "function",
178
+ name: "version",
179
+ inputs: [],
180
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
181
+ stateMutability: "view"
182
+ }
183
+ ];
184
+ // Annotate the CommonJS export names for ESM import in node:
185
+ 0 && (module.exports = {
186
+ securitizeRedemptionSubcompressorAbi
187
+ });