@gearbox-protocol/sdk 14.5.7 → 14.5.9
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.
- package/dist/cjs/abi/iDefaultAccountFactoryV3.js +194 -0
- package/dist/cjs/plugins/adapters/abi/securitize/iSecuritizeOnRamp.js +73 -0
- package/dist/cjs/plugins/adapters/abi/securitize/iSecuritizeOnRampAdapter.js +98 -0
- package/dist/cjs/plugins/adapters/abi/securitize/iSecuritizeRedemptionGateway.js +149 -0
- package/dist/cjs/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayAdapter.js +144 -0
- package/dist/cjs/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.js +4 -2
- package/dist/cjs/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js +4 -2
- package/dist/esm/abi/iDefaultAccountFactoryV3.js +170 -0
- package/dist/esm/plugins/adapters/abi/securitize/iSecuritizeOnRamp.js +49 -0
- package/dist/esm/plugins/adapters/abi/securitize/iSecuritizeOnRampAdapter.js +74 -0
- package/dist/esm/plugins/adapters/abi/securitize/iSecuritizeRedemptionGateway.js +125 -0
- package/dist/esm/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayAdapter.js +120 -0
- package/dist/esm/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.js +4 -2
- package/dist/esm/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js +4 -2
- package/dist/types/abi/iDefaultAccountFactoryV3.d.ts +177 -0
- package/dist/types/plugins/adapters/abi/securitize/iSecuritizeOnRamp.d.ts +67 -0
- package/dist/types/plugins/adapters/abi/securitize/iSecuritizeOnRampAdapter.d.ts +107 -0
- package/dist/types/plugins/adapters/abi/securitize/iSecuritizeRedemptionGateway.d.ts +183 -0
- package/dist/types/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayAdapter.d.ts +185 -0
- package/dist/types/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.d.ts +174 -2
- package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +368 -2
- package/package.json +1 -1
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
export declare const iSecuritizeRedemptionGatewayAdapterAbi: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "claim";
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly name: "redeemers";
|
|
6
|
+
readonly type: "address[]";
|
|
7
|
+
readonly internalType: "address[]";
|
|
8
|
+
}];
|
|
9
|
+
readonly outputs: readonly [{
|
|
10
|
+
readonly name: "";
|
|
11
|
+
readonly type: "bool";
|
|
12
|
+
readonly internalType: "bool";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "nonpayable";
|
|
15
|
+
}, {
|
|
16
|
+
readonly type: "function";
|
|
17
|
+
readonly name: "contractType";
|
|
18
|
+
readonly inputs: readonly [];
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly type: "bytes32";
|
|
22
|
+
readonly internalType: "bytes32";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "view";
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "function";
|
|
27
|
+
readonly name: "creditManager";
|
|
28
|
+
readonly inputs: readonly [];
|
|
29
|
+
readonly outputs: readonly [{
|
|
30
|
+
readonly name: "";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
readonly internalType: "address";
|
|
33
|
+
}];
|
|
34
|
+
readonly stateMutability: "view";
|
|
35
|
+
}, {
|
|
36
|
+
readonly type: "function";
|
|
37
|
+
readonly name: "depositPhantomToken";
|
|
38
|
+
readonly inputs: readonly [{
|
|
39
|
+
readonly name: "token";
|
|
40
|
+
readonly type: "address";
|
|
41
|
+
readonly internalType: "address";
|
|
42
|
+
}, {
|
|
43
|
+
readonly name: "amount";
|
|
44
|
+
readonly type: "uint256";
|
|
45
|
+
readonly internalType: "uint256";
|
|
46
|
+
}];
|
|
47
|
+
readonly outputs: readonly [{
|
|
48
|
+
readonly name: "";
|
|
49
|
+
readonly type: "bool";
|
|
50
|
+
readonly internalType: "bool";
|
|
51
|
+
}];
|
|
52
|
+
readonly stateMutability: "nonpayable";
|
|
53
|
+
}, {
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
readonly name: "dsToken";
|
|
56
|
+
readonly inputs: readonly [];
|
|
57
|
+
readonly outputs: readonly [{
|
|
58
|
+
readonly name: "";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
readonly internalType: "address";
|
|
61
|
+
}];
|
|
62
|
+
readonly stateMutability: "view";
|
|
63
|
+
}, {
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
readonly name: "redeem";
|
|
66
|
+
readonly inputs: readonly [{
|
|
67
|
+
readonly name: "dsTokenAmount";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
readonly internalType: "uint256";
|
|
70
|
+
}];
|
|
71
|
+
readonly outputs: readonly [{
|
|
72
|
+
readonly name: "";
|
|
73
|
+
readonly type: "bool";
|
|
74
|
+
readonly internalType: "bool";
|
|
75
|
+
}];
|
|
76
|
+
readonly stateMutability: "nonpayable";
|
|
77
|
+
}, {
|
|
78
|
+
readonly type: "function";
|
|
79
|
+
readonly name: "redeemDiff";
|
|
80
|
+
readonly inputs: readonly [{
|
|
81
|
+
readonly name: "leftoverAmount";
|
|
82
|
+
readonly type: "uint256";
|
|
83
|
+
readonly internalType: "uint256";
|
|
84
|
+
}];
|
|
85
|
+
readonly outputs: readonly [{
|
|
86
|
+
readonly name: "";
|
|
87
|
+
readonly type: "bool";
|
|
88
|
+
readonly internalType: "bool";
|
|
89
|
+
}];
|
|
90
|
+
readonly stateMutability: "nonpayable";
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "function";
|
|
93
|
+
readonly name: "redemptionPhantomToken";
|
|
94
|
+
readonly inputs: readonly [];
|
|
95
|
+
readonly outputs: readonly [{
|
|
96
|
+
readonly name: "";
|
|
97
|
+
readonly type: "address";
|
|
98
|
+
readonly internalType: "address";
|
|
99
|
+
}];
|
|
100
|
+
readonly stateMutability: "view";
|
|
101
|
+
}, {
|
|
102
|
+
readonly type: "function";
|
|
103
|
+
readonly name: "serialize";
|
|
104
|
+
readonly inputs: readonly [];
|
|
105
|
+
readonly outputs: readonly [{
|
|
106
|
+
readonly name: "serializedData";
|
|
107
|
+
readonly type: "bytes";
|
|
108
|
+
readonly internalType: "bytes";
|
|
109
|
+
}];
|
|
110
|
+
readonly stateMutability: "view";
|
|
111
|
+
}, {
|
|
112
|
+
readonly type: "function";
|
|
113
|
+
readonly name: "stableCoinToken";
|
|
114
|
+
readonly inputs: readonly [];
|
|
115
|
+
readonly outputs: readonly [{
|
|
116
|
+
readonly name: "";
|
|
117
|
+
readonly type: "address";
|
|
118
|
+
readonly internalType: "address";
|
|
119
|
+
}];
|
|
120
|
+
readonly stateMutability: "view";
|
|
121
|
+
}, {
|
|
122
|
+
readonly type: "function";
|
|
123
|
+
readonly name: "targetContract";
|
|
124
|
+
readonly inputs: readonly [];
|
|
125
|
+
readonly outputs: readonly [{
|
|
126
|
+
readonly name: "";
|
|
127
|
+
readonly type: "address";
|
|
128
|
+
readonly internalType: "address";
|
|
129
|
+
}];
|
|
130
|
+
readonly stateMutability: "view";
|
|
131
|
+
}, {
|
|
132
|
+
readonly type: "function";
|
|
133
|
+
readonly name: "transferRedeemer";
|
|
134
|
+
readonly inputs: readonly [{
|
|
135
|
+
readonly name: "redeemer";
|
|
136
|
+
readonly type: "address";
|
|
137
|
+
readonly internalType: "address";
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "newAccount";
|
|
140
|
+
readonly type: "address";
|
|
141
|
+
readonly internalType: "address";
|
|
142
|
+
}];
|
|
143
|
+
readonly outputs: readonly [{
|
|
144
|
+
readonly name: "";
|
|
145
|
+
readonly type: "bool";
|
|
146
|
+
readonly internalType: "bool";
|
|
147
|
+
}];
|
|
148
|
+
readonly stateMutability: "nonpayable";
|
|
149
|
+
}, {
|
|
150
|
+
readonly type: "function";
|
|
151
|
+
readonly name: "version";
|
|
152
|
+
readonly inputs: readonly [];
|
|
153
|
+
readonly outputs: readonly [{
|
|
154
|
+
readonly name: "";
|
|
155
|
+
readonly type: "uint256";
|
|
156
|
+
readonly internalType: "uint256";
|
|
157
|
+
}];
|
|
158
|
+
readonly stateMutability: "view";
|
|
159
|
+
}, {
|
|
160
|
+
readonly type: "function";
|
|
161
|
+
readonly name: "withdrawPhantomToken";
|
|
162
|
+
readonly inputs: readonly [{
|
|
163
|
+
readonly name: "token";
|
|
164
|
+
readonly type: "address";
|
|
165
|
+
readonly internalType: "address";
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "amount";
|
|
168
|
+
readonly type: "uint256";
|
|
169
|
+
readonly internalType: "uint256";
|
|
170
|
+
}];
|
|
171
|
+
readonly outputs: readonly [{
|
|
172
|
+
readonly name: "useSafePrices";
|
|
173
|
+
readonly type: "bool";
|
|
174
|
+
readonly internalType: "bool";
|
|
175
|
+
}];
|
|
176
|
+
readonly stateMutability: "nonpayable";
|
|
177
|
+
}, {
|
|
178
|
+
readonly type: "error";
|
|
179
|
+
readonly name: "IncorrectStakedPhantomTokenException";
|
|
180
|
+
readonly inputs: readonly [];
|
|
181
|
+
}, {
|
|
182
|
+
readonly type: "error";
|
|
183
|
+
readonly name: "InvalidRedemptionGatewayException";
|
|
184
|
+
readonly inputs: readonly [];
|
|
185
|
+
}];
|
|
@@ -2,9 +2,181 @@ import { type Address } from "viem";
|
|
|
2
2
|
import { type ConstructOptions } from "../../../sdk/index.js";
|
|
3
3
|
import type { ConcreteAdapterContractOptions } from "./AbstractAdapter.js";
|
|
4
4
|
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
|
-
declare const abi: readonly [
|
|
5
|
+
declare const abi: readonly [{
|
|
6
|
+
readonly type: "function";
|
|
7
|
+
readonly name: "contractType";
|
|
8
|
+
readonly inputs: readonly [];
|
|
9
|
+
readonly outputs: readonly [{
|
|
10
|
+
readonly name: "";
|
|
11
|
+
readonly type: "bytes32";
|
|
12
|
+
readonly internalType: "bytes32";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "view";
|
|
15
|
+
}, {
|
|
16
|
+
readonly type: "function";
|
|
17
|
+
readonly name: "creditManager";
|
|
18
|
+
readonly inputs: readonly [];
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly type: "address";
|
|
22
|
+
readonly internalType: "address";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "view";
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "function";
|
|
27
|
+
readonly name: "dsToken";
|
|
28
|
+
readonly inputs: readonly [];
|
|
29
|
+
readonly outputs: readonly [{
|
|
30
|
+
readonly name: "";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
readonly internalType: "address";
|
|
33
|
+
}];
|
|
34
|
+
readonly stateMutability: "view";
|
|
35
|
+
}, {
|
|
36
|
+
readonly type: "function";
|
|
37
|
+
readonly name: "liquidityToken";
|
|
38
|
+
readonly inputs: readonly [];
|
|
39
|
+
readonly outputs: readonly [{
|
|
40
|
+
readonly name: "";
|
|
41
|
+
readonly type: "address";
|
|
42
|
+
readonly internalType: "address";
|
|
43
|
+
}];
|
|
44
|
+
readonly stateMutability: "view";
|
|
45
|
+
}, {
|
|
46
|
+
readonly type: "function";
|
|
47
|
+
readonly name: "serialize";
|
|
48
|
+
readonly inputs: readonly [];
|
|
49
|
+
readonly outputs: readonly [{
|
|
50
|
+
readonly name: "serializedData";
|
|
51
|
+
readonly type: "bytes";
|
|
52
|
+
readonly internalType: "bytes";
|
|
53
|
+
}];
|
|
54
|
+
readonly stateMutability: "view";
|
|
55
|
+
}, {
|
|
56
|
+
readonly type: "function";
|
|
57
|
+
readonly name: "swap";
|
|
58
|
+
readonly inputs: readonly [{
|
|
59
|
+
readonly name: "liquidityAmount";
|
|
60
|
+
readonly type: "uint256";
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
}, {
|
|
63
|
+
readonly name: "minOutAmount";
|
|
64
|
+
readonly type: "uint256";
|
|
65
|
+
readonly internalType: "uint256";
|
|
66
|
+
}];
|
|
67
|
+
readonly outputs: readonly [{
|
|
68
|
+
readonly name: "success";
|
|
69
|
+
readonly type: "bool";
|
|
70
|
+
readonly internalType: "bool";
|
|
71
|
+
}];
|
|
72
|
+
readonly stateMutability: "nonpayable";
|
|
73
|
+
}, {
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
readonly name: "swapDiff";
|
|
76
|
+
readonly inputs: readonly [{
|
|
77
|
+
readonly name: "leftoverAmount";
|
|
78
|
+
readonly type: "uint256";
|
|
79
|
+
readonly internalType: "uint256";
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "rateMinRAY";
|
|
82
|
+
readonly type: "uint256";
|
|
83
|
+
readonly internalType: "uint256";
|
|
84
|
+
}];
|
|
85
|
+
readonly outputs: readonly [{
|
|
86
|
+
readonly name: "success";
|
|
87
|
+
readonly type: "bool";
|
|
88
|
+
readonly internalType: "bool";
|
|
89
|
+
}];
|
|
90
|
+
readonly stateMutability: "nonpayable";
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "function";
|
|
93
|
+
readonly name: "targetContract";
|
|
94
|
+
readonly inputs: readonly [];
|
|
95
|
+
readonly outputs: readonly [{
|
|
96
|
+
readonly name: "";
|
|
97
|
+
readonly type: "address";
|
|
98
|
+
readonly internalType: "address";
|
|
99
|
+
}];
|
|
100
|
+
readonly stateMutability: "view";
|
|
101
|
+
}, {
|
|
102
|
+
readonly type: "function";
|
|
103
|
+
readonly name: "version";
|
|
104
|
+
readonly inputs: readonly [];
|
|
105
|
+
readonly outputs: readonly [{
|
|
106
|
+
readonly name: "";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
readonly internalType: "uint256";
|
|
109
|
+
}];
|
|
110
|
+
readonly stateMutability: "view";
|
|
111
|
+
}];
|
|
6
112
|
type abi = typeof abi;
|
|
7
|
-
declare const protocolAbi: readonly [
|
|
113
|
+
declare const protocolAbi: readonly [{
|
|
114
|
+
readonly type: "function";
|
|
115
|
+
readonly name: "calculateDsTokenAmount";
|
|
116
|
+
readonly inputs: readonly [{
|
|
117
|
+
readonly name: "_liquidityAmount";
|
|
118
|
+
readonly type: "uint256";
|
|
119
|
+
readonly internalType: "uint256";
|
|
120
|
+
}];
|
|
121
|
+
readonly outputs: readonly [{
|
|
122
|
+
readonly name: "dsTokenAmount";
|
|
123
|
+
readonly type: "uint256";
|
|
124
|
+
readonly internalType: "uint256";
|
|
125
|
+
}, {
|
|
126
|
+
readonly name: "rate";
|
|
127
|
+
readonly type: "uint256";
|
|
128
|
+
readonly internalType: "uint256";
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "fee";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
readonly internalType: "uint256";
|
|
133
|
+
}];
|
|
134
|
+
readonly stateMutability: "view";
|
|
135
|
+
}, {
|
|
136
|
+
readonly type: "function";
|
|
137
|
+
readonly name: "dsToken";
|
|
138
|
+
readonly inputs: readonly [];
|
|
139
|
+
readonly outputs: readonly [{
|
|
140
|
+
readonly name: "";
|
|
141
|
+
readonly type: "address";
|
|
142
|
+
readonly internalType: "address";
|
|
143
|
+
}];
|
|
144
|
+
readonly stateMutability: "view";
|
|
145
|
+
}, {
|
|
146
|
+
readonly type: "function";
|
|
147
|
+
readonly name: "liquidityToken";
|
|
148
|
+
readonly inputs: readonly [];
|
|
149
|
+
readonly outputs: readonly [{
|
|
150
|
+
readonly name: "";
|
|
151
|
+
readonly type: "address";
|
|
152
|
+
readonly internalType: "address";
|
|
153
|
+
}];
|
|
154
|
+
readonly stateMutability: "view";
|
|
155
|
+
}, {
|
|
156
|
+
readonly type: "function";
|
|
157
|
+
readonly name: "navProvider";
|
|
158
|
+
readonly inputs: readonly [];
|
|
159
|
+
readonly outputs: readonly [{
|
|
160
|
+
readonly name: "";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
readonly internalType: "address";
|
|
163
|
+
}];
|
|
164
|
+
readonly stateMutability: "view";
|
|
165
|
+
}, {
|
|
166
|
+
readonly type: "function";
|
|
167
|
+
readonly name: "swap";
|
|
168
|
+
readonly inputs: readonly [{
|
|
169
|
+
readonly name: "_liquidityAmount";
|
|
170
|
+
readonly type: "uint256";
|
|
171
|
+
readonly internalType: "uint256";
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "_minOutAmount";
|
|
174
|
+
readonly type: "uint256";
|
|
175
|
+
readonly internalType: "uint256";
|
|
176
|
+
}];
|
|
177
|
+
readonly outputs: readonly [];
|
|
178
|
+
readonly stateMutability: "nonpayable";
|
|
179
|
+
}];
|
|
8
180
|
type protocolAbi = typeof protocolAbi;
|
|
9
181
|
export declare class SecuritizeOnRampAdapterContract extends AbstractAdapterContract<abi, protocolAbi> {
|
|
10
182
|
#private;
|