@super-protocol/sdk-js 3.1.1 → 3.1.2-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.
- package/dist/cjs/contracts/abi.d.ts +603 -428
- package/dist/cjs/contracts/abi.js +863 -637
- package/dist/cjs/contracts/tokenAbi.d.ts +361 -0
- package/dist/cjs/contracts/tokenAbi.js +469 -0
- package/dist/cjs/models/Order.d.ts +1 -1
- package/dist/cjs/models/Order.js +5 -6
- package/dist/cjs/models/Provider.d.ts +0 -1
- package/dist/cjs/models/Provider.js +1 -7
- package/dist/cjs/models/TCB.d.ts +1 -1
- package/dist/cjs/models/TCB.js +8 -3
- package/dist/cjs/staticModels/Deposits.d.ts +15 -1
- package/dist/cjs/staticModels/Deposits.js +48 -4
- package/dist/cjs/staticModels/Orders.d.ts +1 -0
- package/dist/cjs/staticModels/Orders.js +15 -1
- package/dist/cjs/staticModels/ProviderRewards.d.ts +3 -2
- package/dist/cjs/staticModels/ProviderRewards.js +27 -7
- package/dist/cjs/staticModels/SuperproToken.d.ts +38 -0
- package/dist/cjs/staticModels/SuperproToken.js +151 -3
- package/dist/cjs/types/Consensus.d.ts +10 -3
- package/dist/cjs/types/Consensus.js +1 -1
- package/dist/cjs/types/OrderUsage.d.ts +1 -0
- package/dist/cjs/types/ProviderRewards.d.ts +5 -0
- package/dist/cjs/types/ProviderRewards.js +3 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.js +2 -1
- package/dist/cjs/utils/helper.d.ts +2 -1
- package/dist/cjs/utils/helper.js +13 -2
- package/dist/mjs/contracts/abi.d.ts +603 -428
- package/dist/mjs/contracts/abi.js +861 -635
- package/dist/mjs/contracts/tokenAbi.d.ts +361 -0
- package/dist/mjs/contracts/tokenAbi.js +466 -0
- package/dist/mjs/models/Order.d.ts +1 -1
- package/dist/mjs/models/Order.js +5 -6
- package/dist/mjs/models/Provider.d.ts +0 -1
- package/dist/mjs/models/Provider.js +1 -7
- package/dist/mjs/models/TCB.d.ts +1 -1
- package/dist/mjs/models/TCB.js +8 -3
- package/dist/mjs/staticModels/Deposits.d.ts +15 -1
- package/dist/mjs/staticModels/Deposits.js +48 -4
- package/dist/mjs/staticModels/Orders.d.ts +1 -0
- package/dist/mjs/staticModels/Orders.js +15 -1
- package/dist/mjs/staticModels/ProviderRewards.d.ts +3 -2
- package/dist/mjs/staticModels/ProviderRewards.js +28 -8
- package/dist/mjs/staticModels/SuperproToken.d.ts +38 -0
- package/dist/mjs/staticModels/SuperproToken.js +150 -2
- package/dist/mjs/types/Consensus.d.ts +10 -3
- package/dist/mjs/types/Consensus.js +1 -1
- package/dist/mjs/types/OrderUsage.d.ts +1 -0
- package/dist/mjs/types/ProviderRewards.d.ts +5 -0
- package/dist/mjs/types/ProviderRewards.js +2 -0
- package/dist/mjs/types/index.d.ts +1 -0
- package/dist/mjs/types/index.js +2 -1
- package/dist/mjs/utils/helper.d.ts +2 -1
- package/dist/mjs/utils/helper.js +11 -1
- package/package.json +1 -1
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
export declare const OwnershipTransferred: "OwnershipTransferred";
|
|
2
|
+
export declare const Approval: "Approval";
|
|
3
|
+
export declare const Transfer: "Transfer";
|
|
4
|
+
export declare const AddressAddedToWhitelist: "AddressAddedToWhitelist";
|
|
5
|
+
export declare const AddressRemovedFromWhitelist: "AddressRemovedFromWhitelist";
|
|
6
|
+
export declare const WhitelistActivated: "WhitelistActivated";
|
|
7
|
+
export declare const WhitelistDeactivated: "WhitelistDeactivated";
|
|
8
|
+
export type AbiEvent = typeof OwnershipTransferred | typeof Approval | typeof Transfer | typeof AddressAddedToWhitelist | typeof AddressRemovedFromWhitelist | typeof WhitelistActivated | typeof WhitelistDeactivated;
|
|
9
|
+
export declare const abi: readonly [{
|
|
10
|
+
readonly anonymous: false;
|
|
11
|
+
readonly inputs: readonly [{
|
|
12
|
+
readonly indexed: true;
|
|
13
|
+
readonly internalType: "address";
|
|
14
|
+
readonly name: "previousOwner";
|
|
15
|
+
readonly type: "address";
|
|
16
|
+
}, {
|
|
17
|
+
readonly indexed: true;
|
|
18
|
+
readonly internalType: "address";
|
|
19
|
+
readonly name: "newOwner";
|
|
20
|
+
readonly type: "address";
|
|
21
|
+
}];
|
|
22
|
+
readonly name: "OwnershipTransferred";
|
|
23
|
+
readonly type: "event";
|
|
24
|
+
}, {
|
|
25
|
+
readonly inputs: readonly [];
|
|
26
|
+
readonly name: "owner";
|
|
27
|
+
readonly outputs: readonly [{
|
|
28
|
+
readonly internalType: "address";
|
|
29
|
+
readonly name: "";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}];
|
|
32
|
+
readonly stateMutability: "view";
|
|
33
|
+
readonly type: "function";
|
|
34
|
+
}, {
|
|
35
|
+
readonly inputs: readonly [];
|
|
36
|
+
readonly name: "renounceOwnership";
|
|
37
|
+
readonly outputs: readonly [];
|
|
38
|
+
readonly stateMutability: "nonpayable";
|
|
39
|
+
readonly type: "function";
|
|
40
|
+
}, {
|
|
41
|
+
readonly inputs: readonly [{
|
|
42
|
+
readonly internalType: "address";
|
|
43
|
+
readonly name: "newOwner";
|
|
44
|
+
readonly type: "address";
|
|
45
|
+
}];
|
|
46
|
+
readonly name: "transferOwnership";
|
|
47
|
+
readonly outputs: readonly [];
|
|
48
|
+
readonly stateMutability: "nonpayable";
|
|
49
|
+
readonly type: "function";
|
|
50
|
+
}, {
|
|
51
|
+
readonly anonymous: false;
|
|
52
|
+
readonly inputs: readonly [{
|
|
53
|
+
readonly indexed: true;
|
|
54
|
+
readonly internalType: "address";
|
|
55
|
+
readonly name: "owner";
|
|
56
|
+
readonly type: "address";
|
|
57
|
+
}, {
|
|
58
|
+
readonly indexed: true;
|
|
59
|
+
readonly internalType: "address";
|
|
60
|
+
readonly name: "spender";
|
|
61
|
+
readonly type: "address";
|
|
62
|
+
}, {
|
|
63
|
+
readonly indexed: false;
|
|
64
|
+
readonly internalType: "uint256";
|
|
65
|
+
readonly name: "value";
|
|
66
|
+
readonly type: "uint256";
|
|
67
|
+
}];
|
|
68
|
+
readonly name: "Approval";
|
|
69
|
+
readonly type: "event";
|
|
70
|
+
}, {
|
|
71
|
+
readonly anonymous: false;
|
|
72
|
+
readonly inputs: readonly [{
|
|
73
|
+
readonly indexed: true;
|
|
74
|
+
readonly internalType: "address";
|
|
75
|
+
readonly name: "from";
|
|
76
|
+
readonly type: "address";
|
|
77
|
+
}, {
|
|
78
|
+
readonly indexed: true;
|
|
79
|
+
readonly internalType: "address";
|
|
80
|
+
readonly name: "to";
|
|
81
|
+
readonly type: "address";
|
|
82
|
+
}, {
|
|
83
|
+
readonly indexed: false;
|
|
84
|
+
readonly internalType: "uint256";
|
|
85
|
+
readonly name: "value";
|
|
86
|
+
readonly type: "uint256";
|
|
87
|
+
}];
|
|
88
|
+
readonly name: "Transfer";
|
|
89
|
+
readonly type: "event";
|
|
90
|
+
}, {
|
|
91
|
+
readonly inputs: readonly [{
|
|
92
|
+
readonly internalType: "address";
|
|
93
|
+
readonly name: "owner";
|
|
94
|
+
readonly type: "address";
|
|
95
|
+
}, {
|
|
96
|
+
readonly internalType: "address";
|
|
97
|
+
readonly name: "spender";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
}];
|
|
100
|
+
readonly name: "allowance";
|
|
101
|
+
readonly outputs: readonly [{
|
|
102
|
+
readonly internalType: "uint256";
|
|
103
|
+
readonly name: "";
|
|
104
|
+
readonly type: "uint256";
|
|
105
|
+
}];
|
|
106
|
+
readonly stateMutability: "view";
|
|
107
|
+
readonly type: "function";
|
|
108
|
+
}, {
|
|
109
|
+
readonly inputs: readonly [{
|
|
110
|
+
readonly internalType: "address";
|
|
111
|
+
readonly name: "spender";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
}, {
|
|
114
|
+
readonly internalType: "uint256";
|
|
115
|
+
readonly name: "amount";
|
|
116
|
+
readonly type: "uint256";
|
|
117
|
+
}];
|
|
118
|
+
readonly name: "approve";
|
|
119
|
+
readonly outputs: readonly [{
|
|
120
|
+
readonly internalType: "bool";
|
|
121
|
+
readonly name: "";
|
|
122
|
+
readonly type: "bool";
|
|
123
|
+
}];
|
|
124
|
+
readonly stateMutability: "nonpayable";
|
|
125
|
+
readonly type: "function";
|
|
126
|
+
}, {
|
|
127
|
+
readonly inputs: readonly [{
|
|
128
|
+
readonly internalType: "address";
|
|
129
|
+
readonly name: "account";
|
|
130
|
+
readonly type: "address";
|
|
131
|
+
}];
|
|
132
|
+
readonly name: "balanceOf";
|
|
133
|
+
readonly outputs: readonly [{
|
|
134
|
+
readonly internalType: "uint256";
|
|
135
|
+
readonly name: "";
|
|
136
|
+
readonly type: "uint256";
|
|
137
|
+
}];
|
|
138
|
+
readonly stateMutability: "view";
|
|
139
|
+
readonly type: "function";
|
|
140
|
+
}, {
|
|
141
|
+
readonly inputs: readonly [];
|
|
142
|
+
readonly name: "decimals";
|
|
143
|
+
readonly outputs: readonly [{
|
|
144
|
+
readonly internalType: "uint8";
|
|
145
|
+
readonly name: "";
|
|
146
|
+
readonly type: "uint8";
|
|
147
|
+
}];
|
|
148
|
+
readonly stateMutability: "view";
|
|
149
|
+
readonly type: "function";
|
|
150
|
+
}, {
|
|
151
|
+
readonly inputs: readonly [{
|
|
152
|
+
readonly internalType: "address";
|
|
153
|
+
readonly name: "spender";
|
|
154
|
+
readonly type: "address";
|
|
155
|
+
}, {
|
|
156
|
+
readonly internalType: "uint256";
|
|
157
|
+
readonly name: "subtractedValue";
|
|
158
|
+
readonly type: "uint256";
|
|
159
|
+
}];
|
|
160
|
+
readonly name: "decreaseAllowance";
|
|
161
|
+
readonly outputs: readonly [{
|
|
162
|
+
readonly internalType: "bool";
|
|
163
|
+
readonly name: "";
|
|
164
|
+
readonly type: "bool";
|
|
165
|
+
}];
|
|
166
|
+
readonly stateMutability: "nonpayable";
|
|
167
|
+
readonly type: "function";
|
|
168
|
+
}, {
|
|
169
|
+
readonly inputs: readonly [{
|
|
170
|
+
readonly internalType: "address";
|
|
171
|
+
readonly name: "spender";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
}, {
|
|
174
|
+
readonly internalType: "uint256";
|
|
175
|
+
readonly name: "addedValue";
|
|
176
|
+
readonly type: "uint256";
|
|
177
|
+
}];
|
|
178
|
+
readonly name: "increaseAllowance";
|
|
179
|
+
readonly outputs: readonly [{
|
|
180
|
+
readonly internalType: "bool";
|
|
181
|
+
readonly name: "";
|
|
182
|
+
readonly type: "bool";
|
|
183
|
+
}];
|
|
184
|
+
readonly stateMutability: "nonpayable";
|
|
185
|
+
readonly type: "function";
|
|
186
|
+
}, {
|
|
187
|
+
readonly inputs: readonly [];
|
|
188
|
+
readonly name: "name";
|
|
189
|
+
readonly outputs: readonly [{
|
|
190
|
+
readonly internalType: "string";
|
|
191
|
+
readonly name: "";
|
|
192
|
+
readonly type: "string";
|
|
193
|
+
}];
|
|
194
|
+
readonly stateMutability: "view";
|
|
195
|
+
readonly type: "function";
|
|
196
|
+
}, {
|
|
197
|
+
readonly inputs: readonly [];
|
|
198
|
+
readonly name: "symbol";
|
|
199
|
+
readonly outputs: readonly [{
|
|
200
|
+
readonly internalType: "string";
|
|
201
|
+
readonly name: "";
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
}];
|
|
204
|
+
readonly stateMutability: "view";
|
|
205
|
+
readonly type: "function";
|
|
206
|
+
}, {
|
|
207
|
+
readonly inputs: readonly [];
|
|
208
|
+
readonly name: "totalSupply";
|
|
209
|
+
readonly outputs: readonly [{
|
|
210
|
+
readonly internalType: "uint256";
|
|
211
|
+
readonly name: "";
|
|
212
|
+
readonly type: "uint256";
|
|
213
|
+
}];
|
|
214
|
+
readonly stateMutability: "view";
|
|
215
|
+
readonly type: "function";
|
|
216
|
+
}, {
|
|
217
|
+
readonly inputs: readonly [{
|
|
218
|
+
readonly internalType: "address";
|
|
219
|
+
readonly name: "to";
|
|
220
|
+
readonly type: "address";
|
|
221
|
+
}, {
|
|
222
|
+
readonly internalType: "uint256";
|
|
223
|
+
readonly name: "amount";
|
|
224
|
+
readonly type: "uint256";
|
|
225
|
+
}];
|
|
226
|
+
readonly name: "transfer";
|
|
227
|
+
readonly outputs: readonly [{
|
|
228
|
+
readonly internalType: "bool";
|
|
229
|
+
readonly name: "";
|
|
230
|
+
readonly type: "bool";
|
|
231
|
+
}];
|
|
232
|
+
readonly stateMutability: "nonpayable";
|
|
233
|
+
readonly type: "function";
|
|
234
|
+
}, {
|
|
235
|
+
readonly inputs: readonly [{
|
|
236
|
+
readonly internalType: "address";
|
|
237
|
+
readonly name: "from";
|
|
238
|
+
readonly type: "address";
|
|
239
|
+
}, {
|
|
240
|
+
readonly internalType: "address";
|
|
241
|
+
readonly name: "to";
|
|
242
|
+
readonly type: "address";
|
|
243
|
+
}, {
|
|
244
|
+
readonly internalType: "uint256";
|
|
245
|
+
readonly name: "amount";
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
}];
|
|
248
|
+
readonly name: "transferFrom";
|
|
249
|
+
readonly outputs: readonly [{
|
|
250
|
+
readonly internalType: "bool";
|
|
251
|
+
readonly name: "";
|
|
252
|
+
readonly type: "bool";
|
|
253
|
+
}];
|
|
254
|
+
readonly stateMutability: "nonpayable";
|
|
255
|
+
readonly type: "function";
|
|
256
|
+
}, {
|
|
257
|
+
readonly inputs: readonly [];
|
|
258
|
+
readonly name: "WhitelistCheckFailed";
|
|
259
|
+
readonly type: "error";
|
|
260
|
+
}, {
|
|
261
|
+
readonly anonymous: false;
|
|
262
|
+
readonly inputs: readonly [{
|
|
263
|
+
readonly indexed: false;
|
|
264
|
+
readonly internalType: "address";
|
|
265
|
+
readonly name: "";
|
|
266
|
+
readonly type: "address";
|
|
267
|
+
}];
|
|
268
|
+
readonly name: "AddressAddedToWhitelist";
|
|
269
|
+
readonly type: "event";
|
|
270
|
+
}, {
|
|
271
|
+
readonly anonymous: false;
|
|
272
|
+
readonly inputs: readonly [{
|
|
273
|
+
readonly indexed: false;
|
|
274
|
+
readonly internalType: "address";
|
|
275
|
+
readonly name: "";
|
|
276
|
+
readonly type: "address";
|
|
277
|
+
}];
|
|
278
|
+
readonly name: "AddressRemovedFromWhitelist";
|
|
279
|
+
readonly type: "event";
|
|
280
|
+
}, {
|
|
281
|
+
readonly anonymous: false;
|
|
282
|
+
readonly inputs: readonly [];
|
|
283
|
+
readonly name: "WhitelistActivated";
|
|
284
|
+
readonly type: "event";
|
|
285
|
+
}, {
|
|
286
|
+
readonly anonymous: false;
|
|
287
|
+
readonly inputs: readonly [];
|
|
288
|
+
readonly name: "WhitelistDeactivated";
|
|
289
|
+
readonly type: "event";
|
|
290
|
+
}, {
|
|
291
|
+
readonly inputs: readonly [];
|
|
292
|
+
readonly name: "activateWhitelist";
|
|
293
|
+
readonly outputs: readonly [];
|
|
294
|
+
readonly stateMutability: "nonpayable";
|
|
295
|
+
readonly type: "function";
|
|
296
|
+
}, {
|
|
297
|
+
readonly inputs: readonly [{
|
|
298
|
+
readonly internalType: "address";
|
|
299
|
+
readonly name: "user";
|
|
300
|
+
readonly type: "address";
|
|
301
|
+
}];
|
|
302
|
+
readonly name: "addWhitelistAddress";
|
|
303
|
+
readonly outputs: readonly [];
|
|
304
|
+
readonly stateMutability: "nonpayable";
|
|
305
|
+
readonly type: "function";
|
|
306
|
+
}, {
|
|
307
|
+
readonly inputs: readonly [];
|
|
308
|
+
readonly name: "deactivateWhitelist";
|
|
309
|
+
readonly outputs: readonly [];
|
|
310
|
+
readonly stateMutability: "nonpayable";
|
|
311
|
+
readonly type: "function";
|
|
312
|
+
}, {
|
|
313
|
+
readonly inputs: readonly [{
|
|
314
|
+
readonly internalType: "address";
|
|
315
|
+
readonly name: "to";
|
|
316
|
+
readonly type: "address";
|
|
317
|
+
}, {
|
|
318
|
+
readonly internalType: "uint256";
|
|
319
|
+
readonly name: "amount";
|
|
320
|
+
readonly type: "uint256";
|
|
321
|
+
}];
|
|
322
|
+
readonly name: "mint";
|
|
323
|
+
readonly outputs: readonly [];
|
|
324
|
+
readonly stateMutability: "nonpayable";
|
|
325
|
+
readonly type: "function";
|
|
326
|
+
}, {
|
|
327
|
+
readonly inputs: readonly [{
|
|
328
|
+
readonly internalType: "address";
|
|
329
|
+
readonly name: "user";
|
|
330
|
+
readonly type: "address";
|
|
331
|
+
}];
|
|
332
|
+
readonly name: "removeWhitelistAddress";
|
|
333
|
+
readonly outputs: readonly [];
|
|
334
|
+
readonly stateMutability: "nonpayable";
|
|
335
|
+
readonly type: "function";
|
|
336
|
+
}, {
|
|
337
|
+
readonly inputs: readonly [{
|
|
338
|
+
readonly internalType: "address";
|
|
339
|
+
readonly name: "";
|
|
340
|
+
readonly type: "address";
|
|
341
|
+
}];
|
|
342
|
+
readonly name: "whitelist";
|
|
343
|
+
readonly outputs: readonly [{
|
|
344
|
+
readonly internalType: "bool";
|
|
345
|
+
readonly name: "";
|
|
346
|
+
readonly type: "bool";
|
|
347
|
+
}];
|
|
348
|
+
readonly stateMutability: "view";
|
|
349
|
+
readonly type: "function";
|
|
350
|
+
}, {
|
|
351
|
+
readonly inputs: readonly [];
|
|
352
|
+
readonly name: "whitelistIsActivated";
|
|
353
|
+
readonly outputs: readonly [{
|
|
354
|
+
readonly internalType: "bool";
|
|
355
|
+
readonly name: "";
|
|
356
|
+
readonly type: "bool";
|
|
357
|
+
}];
|
|
358
|
+
readonly stateMutability: "view";
|
|
359
|
+
readonly type: "function";
|
|
360
|
+
}];
|
|
361
|
+
export default abi;
|