@qidao/sdk 5.1.73 → 5.1.77
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/index.module.js +1 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/ZapMeta.d.ts +4 -0
- package/dist/src/constants.d.ts +3 -0
- package/dist/src/contracts/GainsZapper.d.ts +336 -0
- package/dist/src/contracts/factories/GainsZapper__factory.d.ts +332 -0
- package/dist/src/contracts/factories/index.d.ts +1 -0
- package/dist/src/contracts/index.d.ts +2 -0
- package/dist/src/vaultInfo.d.ts +1608 -0
- package/dist/src/zapInfo.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { GainsZapper, GainsZapperInterface } from "../GainsZapper";
|
|
4
|
+
export declare class GainsZapper__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [];
|
|
7
|
+
readonly name: "MustBeNominated";
|
|
8
|
+
readonly type: "error";
|
|
9
|
+
}, {
|
|
10
|
+
readonly inputs: readonly [];
|
|
11
|
+
readonly name: "NotOwnerError";
|
|
12
|
+
readonly type: "error";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [];
|
|
15
|
+
readonly name: "OwnerCannotBeZero";
|
|
16
|
+
readonly type: "error";
|
|
17
|
+
}, {
|
|
18
|
+
readonly anonymous: false;
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly indexed: true;
|
|
21
|
+
readonly internalType: "address";
|
|
22
|
+
readonly name: "asset";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
}, {
|
|
25
|
+
readonly indexed: true;
|
|
26
|
+
readonly internalType: "uint256";
|
|
27
|
+
readonly name: "amount";
|
|
28
|
+
readonly type: "uint256";
|
|
29
|
+
}, {
|
|
30
|
+
readonly indexed: false;
|
|
31
|
+
readonly internalType: "uint256";
|
|
32
|
+
readonly name: "vaultId";
|
|
33
|
+
readonly type: "uint256";
|
|
34
|
+
}];
|
|
35
|
+
readonly name: "AssetUnZapped";
|
|
36
|
+
readonly type: "event";
|
|
37
|
+
}, {
|
|
38
|
+
readonly anonymous: false;
|
|
39
|
+
readonly inputs: readonly [{
|
|
40
|
+
readonly indexed: true;
|
|
41
|
+
readonly internalType: "address";
|
|
42
|
+
readonly name: "asset";
|
|
43
|
+
readonly type: "address";
|
|
44
|
+
}, {
|
|
45
|
+
readonly indexed: true;
|
|
46
|
+
readonly internalType: "uint256";
|
|
47
|
+
readonly name: "amount";
|
|
48
|
+
readonly type: "uint256";
|
|
49
|
+
}, {
|
|
50
|
+
readonly indexed: false;
|
|
51
|
+
readonly internalType: "uint256";
|
|
52
|
+
readonly name: "vaultId";
|
|
53
|
+
readonly type: "uint256";
|
|
54
|
+
}];
|
|
55
|
+
readonly name: "AssetZapped";
|
|
56
|
+
readonly type: "event";
|
|
57
|
+
}, {
|
|
58
|
+
readonly anonymous: false;
|
|
59
|
+
readonly inputs: readonly [{
|
|
60
|
+
readonly indexed: false;
|
|
61
|
+
readonly internalType: "address";
|
|
62
|
+
readonly name: "oldOwner";
|
|
63
|
+
readonly type: "address";
|
|
64
|
+
}, {
|
|
65
|
+
readonly indexed: false;
|
|
66
|
+
readonly internalType: "address";
|
|
67
|
+
readonly name: "newOwner";
|
|
68
|
+
readonly type: "address";
|
|
69
|
+
}];
|
|
70
|
+
readonly name: "OwnerChanged";
|
|
71
|
+
readonly type: "event";
|
|
72
|
+
}, {
|
|
73
|
+
readonly anonymous: false;
|
|
74
|
+
readonly inputs: readonly [{
|
|
75
|
+
readonly indexed: false;
|
|
76
|
+
readonly internalType: "address";
|
|
77
|
+
readonly name: "newOwner";
|
|
78
|
+
readonly type: "address";
|
|
79
|
+
}];
|
|
80
|
+
readonly name: "OwnerNominated";
|
|
81
|
+
readonly type: "event";
|
|
82
|
+
}, {
|
|
83
|
+
readonly anonymous: false;
|
|
84
|
+
readonly inputs: readonly [{
|
|
85
|
+
readonly indexed: false;
|
|
86
|
+
readonly internalType: "address";
|
|
87
|
+
readonly name: "account";
|
|
88
|
+
readonly type: "address";
|
|
89
|
+
}];
|
|
90
|
+
readonly name: "Paused";
|
|
91
|
+
readonly type: "event";
|
|
92
|
+
}, {
|
|
93
|
+
readonly anonymous: false;
|
|
94
|
+
readonly inputs: readonly [{
|
|
95
|
+
readonly indexed: false;
|
|
96
|
+
readonly internalType: "address";
|
|
97
|
+
readonly name: "account";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
}];
|
|
100
|
+
readonly name: "Unpaused";
|
|
101
|
+
readonly type: "event";
|
|
102
|
+
}, {
|
|
103
|
+
readonly inputs: readonly [];
|
|
104
|
+
readonly name: "acceptOwnership";
|
|
105
|
+
readonly outputs: readonly [];
|
|
106
|
+
readonly stateMutability: "nonpayable";
|
|
107
|
+
readonly type: "function";
|
|
108
|
+
}, {
|
|
109
|
+
readonly inputs: readonly [{
|
|
110
|
+
readonly internalType: "address";
|
|
111
|
+
readonly name: "_asset";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
}, {
|
|
114
|
+
readonly internalType: "address";
|
|
115
|
+
readonly name: "_amAsset";
|
|
116
|
+
readonly type: "address";
|
|
117
|
+
}, {
|
|
118
|
+
readonly internalType: "address";
|
|
119
|
+
readonly name: "_camAsset";
|
|
120
|
+
readonly type: "address";
|
|
121
|
+
}, {
|
|
122
|
+
readonly internalType: "address";
|
|
123
|
+
readonly name: "_camAssetVault";
|
|
124
|
+
readonly type: "address";
|
|
125
|
+
}];
|
|
126
|
+
readonly name: "addChainToWhiteList";
|
|
127
|
+
readonly outputs: readonly [];
|
|
128
|
+
readonly stateMutability: "nonpayable";
|
|
129
|
+
readonly type: "function";
|
|
130
|
+
}, {
|
|
131
|
+
readonly inputs: readonly [{
|
|
132
|
+
readonly internalType: "uint256";
|
|
133
|
+
readonly name: "amount";
|
|
134
|
+
readonly type: "uint256";
|
|
135
|
+
}, {
|
|
136
|
+
readonly internalType: "uint256";
|
|
137
|
+
readonly name: "vaultId";
|
|
138
|
+
readonly type: "uint256";
|
|
139
|
+
}, {
|
|
140
|
+
readonly internalType: "address";
|
|
141
|
+
readonly name: "_asset";
|
|
142
|
+
readonly type: "address";
|
|
143
|
+
}, {
|
|
144
|
+
readonly internalType: "address";
|
|
145
|
+
readonly name: "_amAsset";
|
|
146
|
+
readonly type: "address";
|
|
147
|
+
}, {
|
|
148
|
+
readonly internalType: "address";
|
|
149
|
+
readonly name: "_camAsset";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
}, {
|
|
152
|
+
readonly internalType: "address";
|
|
153
|
+
readonly name: "_camAssetVault";
|
|
154
|
+
readonly type: "address";
|
|
155
|
+
}];
|
|
156
|
+
readonly name: "gainsZapFromVault";
|
|
157
|
+
readonly outputs: readonly [{
|
|
158
|
+
readonly internalType: "uint256";
|
|
159
|
+
readonly name: "";
|
|
160
|
+
readonly type: "uint256";
|
|
161
|
+
}];
|
|
162
|
+
readonly stateMutability: "nonpayable";
|
|
163
|
+
readonly type: "function";
|
|
164
|
+
}, {
|
|
165
|
+
readonly inputs: readonly [{
|
|
166
|
+
readonly internalType: "uint256";
|
|
167
|
+
readonly name: "amount";
|
|
168
|
+
readonly type: "uint256";
|
|
169
|
+
}, {
|
|
170
|
+
readonly internalType: "uint256";
|
|
171
|
+
readonly name: "vaultId";
|
|
172
|
+
readonly type: "uint256";
|
|
173
|
+
}, {
|
|
174
|
+
readonly internalType: "address";
|
|
175
|
+
readonly name: "_asset";
|
|
176
|
+
readonly type: "address";
|
|
177
|
+
}, {
|
|
178
|
+
readonly internalType: "address";
|
|
179
|
+
readonly name: "_amAsset";
|
|
180
|
+
readonly type: "address";
|
|
181
|
+
}, {
|
|
182
|
+
readonly internalType: "address";
|
|
183
|
+
readonly name: "_camAsset";
|
|
184
|
+
readonly type: "address";
|
|
185
|
+
}, {
|
|
186
|
+
readonly internalType: "address";
|
|
187
|
+
readonly name: "_camAssetVault";
|
|
188
|
+
readonly type: "address";
|
|
189
|
+
}];
|
|
190
|
+
readonly name: "gainsZapToVault";
|
|
191
|
+
readonly outputs: readonly [{
|
|
192
|
+
readonly internalType: "uint256";
|
|
193
|
+
readonly name: "";
|
|
194
|
+
readonly type: "uint256";
|
|
195
|
+
}];
|
|
196
|
+
readonly stateMutability: "nonpayable";
|
|
197
|
+
readonly type: "function";
|
|
198
|
+
}, {
|
|
199
|
+
readonly inputs: readonly [{
|
|
200
|
+
readonly components: readonly [{
|
|
201
|
+
readonly internalType: "contract IERC20";
|
|
202
|
+
readonly name: "asset";
|
|
203
|
+
readonly type: "address";
|
|
204
|
+
}, {
|
|
205
|
+
readonly internalType: "contract GDAY";
|
|
206
|
+
readonly name: "amToken";
|
|
207
|
+
readonly type: "address";
|
|
208
|
+
}, {
|
|
209
|
+
readonly internalType: "contract pToken";
|
|
210
|
+
readonly name: "_pToken";
|
|
211
|
+
readonly type: "address";
|
|
212
|
+
}, {
|
|
213
|
+
readonly internalType: "contract IStableQiVault";
|
|
214
|
+
readonly name: "pTokenVault";
|
|
215
|
+
readonly type: "address";
|
|
216
|
+
}];
|
|
217
|
+
readonly internalType: "struct gainsZapper.GChain";
|
|
218
|
+
readonly name: "chain";
|
|
219
|
+
readonly type: "tuple";
|
|
220
|
+
}];
|
|
221
|
+
readonly name: "isWhiteListed";
|
|
222
|
+
readonly outputs: readonly [{
|
|
223
|
+
readonly internalType: "bool";
|
|
224
|
+
readonly name: "";
|
|
225
|
+
readonly type: "bool";
|
|
226
|
+
}];
|
|
227
|
+
readonly stateMutability: "nonpayable";
|
|
228
|
+
readonly type: "function";
|
|
229
|
+
}, {
|
|
230
|
+
readonly inputs: readonly [{
|
|
231
|
+
readonly internalType: "address";
|
|
232
|
+
readonly name: "_owner";
|
|
233
|
+
readonly type: "address";
|
|
234
|
+
}];
|
|
235
|
+
readonly name: "nominateNewOwner";
|
|
236
|
+
readonly outputs: readonly [];
|
|
237
|
+
readonly stateMutability: "nonpayable";
|
|
238
|
+
readonly type: "function";
|
|
239
|
+
}, {
|
|
240
|
+
readonly inputs: readonly [];
|
|
241
|
+
readonly name: "nominatedOwner";
|
|
242
|
+
readonly outputs: readonly [{
|
|
243
|
+
readonly internalType: "address";
|
|
244
|
+
readonly name: "";
|
|
245
|
+
readonly type: "address";
|
|
246
|
+
}];
|
|
247
|
+
readonly stateMutability: "view";
|
|
248
|
+
readonly type: "function";
|
|
249
|
+
}, {
|
|
250
|
+
readonly inputs: readonly [{
|
|
251
|
+
readonly internalType: "address";
|
|
252
|
+
readonly name: "operator";
|
|
253
|
+
readonly type: "address";
|
|
254
|
+
}, {
|
|
255
|
+
readonly internalType: "address";
|
|
256
|
+
readonly name: "from";
|
|
257
|
+
readonly type: "address";
|
|
258
|
+
}, {
|
|
259
|
+
readonly internalType: "uint256";
|
|
260
|
+
readonly name: "tokenId";
|
|
261
|
+
readonly type: "uint256";
|
|
262
|
+
}, {
|
|
263
|
+
readonly internalType: "bytes";
|
|
264
|
+
readonly name: "data";
|
|
265
|
+
readonly type: "bytes";
|
|
266
|
+
}];
|
|
267
|
+
readonly name: "onERC721Received";
|
|
268
|
+
readonly outputs: readonly [{
|
|
269
|
+
readonly internalType: "bytes4";
|
|
270
|
+
readonly name: "";
|
|
271
|
+
readonly type: "bytes4";
|
|
272
|
+
}];
|
|
273
|
+
readonly stateMutability: "nonpayable";
|
|
274
|
+
readonly type: "function";
|
|
275
|
+
}, {
|
|
276
|
+
readonly inputs: readonly [];
|
|
277
|
+
readonly name: "owner";
|
|
278
|
+
readonly outputs: readonly [{
|
|
279
|
+
readonly internalType: "address";
|
|
280
|
+
readonly name: "";
|
|
281
|
+
readonly type: "address";
|
|
282
|
+
}];
|
|
283
|
+
readonly stateMutability: "view";
|
|
284
|
+
readonly type: "function";
|
|
285
|
+
}, {
|
|
286
|
+
readonly inputs: readonly [];
|
|
287
|
+
readonly name: "pauseZapping";
|
|
288
|
+
readonly outputs: readonly [];
|
|
289
|
+
readonly stateMutability: "nonpayable";
|
|
290
|
+
readonly type: "function";
|
|
291
|
+
}, {
|
|
292
|
+
readonly inputs: readonly [];
|
|
293
|
+
readonly name: "paused";
|
|
294
|
+
readonly outputs: readonly [{
|
|
295
|
+
readonly internalType: "bool";
|
|
296
|
+
readonly name: "";
|
|
297
|
+
readonly type: "bool";
|
|
298
|
+
}];
|
|
299
|
+
readonly stateMutability: "view";
|
|
300
|
+
readonly type: "function";
|
|
301
|
+
}, {
|
|
302
|
+
readonly inputs: readonly [{
|
|
303
|
+
readonly internalType: "address";
|
|
304
|
+
readonly name: "_asset";
|
|
305
|
+
readonly type: "address";
|
|
306
|
+
}, {
|
|
307
|
+
readonly internalType: "address";
|
|
308
|
+
readonly name: "_amAsset";
|
|
309
|
+
readonly type: "address";
|
|
310
|
+
}, {
|
|
311
|
+
readonly internalType: "address";
|
|
312
|
+
readonly name: "_camAsset";
|
|
313
|
+
readonly type: "address";
|
|
314
|
+
}, {
|
|
315
|
+
readonly internalType: "address";
|
|
316
|
+
readonly name: "_camAssetVault";
|
|
317
|
+
readonly type: "address";
|
|
318
|
+
}];
|
|
319
|
+
readonly name: "removeChainFromWhiteList";
|
|
320
|
+
readonly outputs: readonly [];
|
|
321
|
+
readonly stateMutability: "nonpayable";
|
|
322
|
+
readonly type: "function";
|
|
323
|
+
}, {
|
|
324
|
+
readonly inputs: readonly [];
|
|
325
|
+
readonly name: "resumeZapping";
|
|
326
|
+
readonly outputs: readonly [];
|
|
327
|
+
readonly stateMutability: "nonpayable";
|
|
328
|
+
readonly type: "function";
|
|
329
|
+
}];
|
|
330
|
+
static createInterface(): GainsZapperInterface;
|
|
331
|
+
static connect(address: string, signerOrProvider: Signer | Provider): GainsZapper;
|
|
332
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { GainsZapper__factory } from "./GainsZapper__factory";
|
|
1
2
|
export { QiStablecoin__factory } from "./QiStablecoin__factory";
|
|
2
3
|
export { CrosschainNativeQiStablecoin__factory } from "./CrosschainNativeQiStablecoin__factory";
|
|
3
4
|
export { CrosschainQiStablecoin__factory } from "./CrosschainQiStablecoin__factory";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { GainsZapper } from "./GainsZapper";
|
|
1
2
|
export type { QiStablecoin } from "./QiStablecoin";
|
|
2
3
|
export type { CrosschainNativeQiStablecoin } from "./CrosschainNativeQiStablecoin";
|
|
3
4
|
export type { CrosschainQiStablecoin } from "./CrosschainQiStablecoin";
|
|
@@ -19,5 +20,6 @@ export { CrosschainQiStablecoinwbtc__factory } from "./factories/CrosschainQiSta
|
|
|
19
20
|
export { Erc20QiStablecoincamwbtc__factory } from "./factories/Erc20QiStablecoincamwbtc__factory";
|
|
20
21
|
export { Erc20QiStablecoinwbtc__factory } from "./factories/Erc20QiStablecoinwbtc__factory";
|
|
21
22
|
export { Erc20Stablecoin__factory } from "./factories/Erc20Stablecoin__factory";
|
|
23
|
+
export { GainsZapper__factory } from "./factories/GainsZapper__factory";
|
|
22
24
|
export { QiStablecoin__factory } from "./factories/QiStablecoin__factory";
|
|
23
25
|
export { StableQiVault__factory } from "./factories/StableQiVault__factory";
|