aiia-vault-sdk 1.0.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/SeedRoundFundraiser.ts +742 -0
- package/TradingVault.ts +863 -0
- package/abis/SeedRoundFundraiser.json +1519 -0
- package/abis/TradingVault.json +1647 -0
- package/common.ts +131 -0
- package/contracts/SeedRoundFundraiser.ts +1670 -0
- package/contracts/TradingVault.ts +1752 -0
- package/contracts/common.ts +131 -0
- package/contracts/factories/SeedRoundFundraiser__factory.ts +1495 -0
- package/contracts/factories/index.ts +4 -0
- package/contracts/index.ts +6 -0
- package/contracts.json +28 -0
- package/dist/SeedRoundFundraiser.d.ts +130 -0
- package/dist/SeedRoundFundraiser.js +445 -0
- package/dist/TradingVault.d.ts +175 -0
- package/dist/TradingVault.js +521 -0
- package/dist/abis/SeedRoundFundraiser.json +1519 -0
- package/dist/abis/TradingVault.json +1647 -0
- package/dist/common.d.ts +50 -0
- package/dist/common.js +2 -0
- package/dist/contracts/SeedRoundFundraiser.d.ts +936 -0
- package/dist/contracts/SeedRoundFundraiser.js +2 -0
- package/dist/contracts/TradingVault.d.ts +930 -0
- package/dist/contracts/TradingVault.js +2 -0
- package/dist/contracts.json +28 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +19 -0
- package/dist/types.d.ts +291 -0
- package/dist/types.js +2 -0
- package/dist/utils.d.ts +95 -0
- package/dist/utils.js +370 -0
- package/dist/whitelist-tokens.json +14 -0
- package/index.ts +3 -0
- package/package.json +21 -0
- package/temp/aiia-vault-sdk-1.0.0.tgz +0 -0
- package/tsconfig.json +15 -0
- package/types.ts +301 -0
- package/utils.ts +576 -0
- package/whitelist-tokens.json +14 -0
@@ -0,0 +1,1752 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
import type {
|
5
|
+
BaseContract,
|
6
|
+
BigNumberish,
|
7
|
+
BytesLike,
|
8
|
+
FunctionFragment,
|
9
|
+
Result,
|
10
|
+
Interface,
|
11
|
+
EventFragment,
|
12
|
+
AddressLike,
|
13
|
+
ContractRunner,
|
14
|
+
ContractMethod,
|
15
|
+
Listener,
|
16
|
+
} from "ethers";
|
17
|
+
import type {
|
18
|
+
TypedContractEvent,
|
19
|
+
TypedDeferredTopicFilter,
|
20
|
+
TypedEventLog,
|
21
|
+
TypedLogDescription,
|
22
|
+
TypedListener,
|
23
|
+
TypedContractMethod,
|
24
|
+
} from "../common";
|
25
|
+
|
26
|
+
export declare namespace TradingVault {
|
27
|
+
export type RewardConfigStruct = {
|
28
|
+
weight: BigNumberish;
|
29
|
+
duration: BigNumberish;
|
30
|
+
};
|
31
|
+
|
32
|
+
export type RewardConfigStructOutput = [weight: bigint, duration: bigint] & {
|
33
|
+
weight: bigint;
|
34
|
+
duration: bigint;
|
35
|
+
};
|
36
|
+
}
|
37
|
+
|
38
|
+
export interface TradingVaultInterface extends Interface {
|
39
|
+
getFunction(
|
40
|
+
nameOrSignature:
|
41
|
+
| "BASE_WEIGHT"
|
42
|
+
| "DEFAULT_ADMIN_ROLE"
|
43
|
+
| "EXPO"
|
44
|
+
| "EXPO_100"
|
45
|
+
| "OPERATOR_ROLE"
|
46
|
+
| "approve"
|
47
|
+
| "balanceOf"
|
48
|
+
| "borrowCurrency"
|
49
|
+
| "claimERC20"
|
50
|
+
| "createPosition"
|
51
|
+
| "createPositionForUser"
|
52
|
+
| "currency"
|
53
|
+
| "getApproved"
|
54
|
+
| "getRewardConfigsLength"
|
55
|
+
| "getRoleAdmin"
|
56
|
+
| "grantOperatorRole"
|
57
|
+
| "grantRole"
|
58
|
+
| "hasRole"
|
59
|
+
| "initialize"
|
60
|
+
| "isApprovedForAll"
|
61
|
+
| "isReduceEnabled"
|
62
|
+
| "name"
|
63
|
+
| "owner"
|
64
|
+
| "ownerOf"
|
65
|
+
| "positions"
|
66
|
+
| "price"
|
67
|
+
| "reducePosition"
|
68
|
+
| "reducePositions"
|
69
|
+
| "renounceOwnership"
|
70
|
+
| "renounceRole"
|
71
|
+
| "repayCurrency"
|
72
|
+
| "revokeRole"
|
73
|
+
| "rewardConfigs"
|
74
|
+
| "rewardToken"
|
75
|
+
| "safeTransferFrom(address,address,uint256)"
|
76
|
+
| "safeTransferFrom(address,address,uint256,bytes)"
|
77
|
+
| "setApprovalForAll"
|
78
|
+
| "setCurrency"
|
79
|
+
| "setPrice"
|
80
|
+
| "setReduceEnabled"
|
81
|
+
| "setRewardToken"
|
82
|
+
| "setTreasury"
|
83
|
+
| "supportsInterface"
|
84
|
+
| "symbol"
|
85
|
+
| "tokenURI"
|
86
|
+
| "totalAmount"
|
87
|
+
| "totalBorrowed"
|
88
|
+
| "totalRewardsAdded"
|
89
|
+
| "totalRewardsHarvested"
|
90
|
+
| "transferFrom"
|
91
|
+
| "transferOwnership"
|
92
|
+
| "treasury"
|
93
|
+
| "updateRewardConfigs"
|
94
|
+
): FunctionFragment;
|
95
|
+
|
96
|
+
getEvent(
|
97
|
+
nameOrSignatureOrTopic:
|
98
|
+
| "Approval"
|
99
|
+
| "ApprovalForAll"
|
100
|
+
| "CurrencyBorrowed"
|
101
|
+
| "CurrencyRepaid"
|
102
|
+
| "CurrencyUpdated"
|
103
|
+
| "Initialized"
|
104
|
+
| "OwnershipTransferred"
|
105
|
+
| "PositionCreated"
|
106
|
+
| "PositionReduced"
|
107
|
+
| "PriceUpdated"
|
108
|
+
| "ReduceEnabledUpdated"
|
109
|
+
| "RewardConfigsUpdated"
|
110
|
+
| "RewardTokenUpdated"
|
111
|
+
| "RoleAdminChanged"
|
112
|
+
| "RoleGranted"
|
113
|
+
| "RoleRevoked"
|
114
|
+
| "TotalAmountUpdated"
|
115
|
+
| "TotalRewardsHarvestedUpdated"
|
116
|
+
| "TotalRewardsUpdated"
|
117
|
+
| "Transfer"
|
118
|
+
| "TreasuryUpdated"
|
119
|
+
): EventFragment;
|
120
|
+
|
121
|
+
encodeFunctionData(
|
122
|
+
functionFragment: "BASE_WEIGHT",
|
123
|
+
values?: undefined
|
124
|
+
): string;
|
125
|
+
encodeFunctionData(
|
126
|
+
functionFragment: "DEFAULT_ADMIN_ROLE",
|
127
|
+
values?: undefined
|
128
|
+
): string;
|
129
|
+
encodeFunctionData(functionFragment: "EXPO", values?: undefined): string;
|
130
|
+
encodeFunctionData(functionFragment: "EXPO_100", values?: undefined): string;
|
131
|
+
encodeFunctionData(
|
132
|
+
functionFragment: "OPERATOR_ROLE",
|
133
|
+
values?: undefined
|
134
|
+
): string;
|
135
|
+
encodeFunctionData(
|
136
|
+
functionFragment: "approve",
|
137
|
+
values: [AddressLike, BigNumberish]
|
138
|
+
): string;
|
139
|
+
encodeFunctionData(
|
140
|
+
functionFragment: "balanceOf",
|
141
|
+
values: [AddressLike]
|
142
|
+
): string;
|
143
|
+
encodeFunctionData(
|
144
|
+
functionFragment: "borrowCurrency",
|
145
|
+
values: [BigNumberish]
|
146
|
+
): string;
|
147
|
+
encodeFunctionData(
|
148
|
+
functionFragment: "claimERC20",
|
149
|
+
values: [AddressLike, BigNumberish]
|
150
|
+
): string;
|
151
|
+
encodeFunctionData(
|
152
|
+
functionFragment: "createPosition",
|
153
|
+
values: [BigNumberish]
|
154
|
+
): string;
|
155
|
+
encodeFunctionData(
|
156
|
+
functionFragment: "createPositionForUser",
|
157
|
+
values: [AddressLike, BigNumberish]
|
158
|
+
): string;
|
159
|
+
encodeFunctionData(functionFragment: "currency", values?: undefined): string;
|
160
|
+
encodeFunctionData(
|
161
|
+
functionFragment: "getApproved",
|
162
|
+
values: [BigNumberish]
|
163
|
+
): string;
|
164
|
+
encodeFunctionData(
|
165
|
+
functionFragment: "getRewardConfigsLength",
|
166
|
+
values?: undefined
|
167
|
+
): string;
|
168
|
+
encodeFunctionData(
|
169
|
+
functionFragment: "getRoleAdmin",
|
170
|
+
values: [BytesLike]
|
171
|
+
): string;
|
172
|
+
encodeFunctionData(
|
173
|
+
functionFragment: "grantOperatorRole",
|
174
|
+
values: [AddressLike]
|
175
|
+
): string;
|
176
|
+
encodeFunctionData(
|
177
|
+
functionFragment: "grantRole",
|
178
|
+
values: [BytesLike, AddressLike]
|
179
|
+
): string;
|
180
|
+
encodeFunctionData(
|
181
|
+
functionFragment: "hasRole",
|
182
|
+
values: [BytesLike, AddressLike]
|
183
|
+
): string;
|
184
|
+
encodeFunctionData(
|
185
|
+
functionFragment: "initialize",
|
186
|
+
values: [AddressLike, AddressLike]
|
187
|
+
): string;
|
188
|
+
encodeFunctionData(
|
189
|
+
functionFragment: "isApprovedForAll",
|
190
|
+
values: [AddressLike, AddressLike]
|
191
|
+
): string;
|
192
|
+
encodeFunctionData(
|
193
|
+
functionFragment: "isReduceEnabled",
|
194
|
+
values?: undefined
|
195
|
+
): string;
|
196
|
+
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
197
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
198
|
+
encodeFunctionData(
|
199
|
+
functionFragment: "ownerOf",
|
200
|
+
values: [BigNumberish]
|
201
|
+
): string;
|
202
|
+
encodeFunctionData(
|
203
|
+
functionFragment: "positions",
|
204
|
+
values: [BigNumberish]
|
205
|
+
): string;
|
206
|
+
encodeFunctionData(functionFragment: "price", values?: undefined): string;
|
207
|
+
encodeFunctionData(
|
208
|
+
functionFragment: "reducePosition",
|
209
|
+
values: [BigNumberish, BigNumberish]
|
210
|
+
): string;
|
211
|
+
encodeFunctionData(
|
212
|
+
functionFragment: "reducePositions",
|
213
|
+
values: [BigNumberish[], BigNumberish[]]
|
214
|
+
): string;
|
215
|
+
encodeFunctionData(
|
216
|
+
functionFragment: "renounceOwnership",
|
217
|
+
values?: undefined
|
218
|
+
): string;
|
219
|
+
encodeFunctionData(
|
220
|
+
functionFragment: "renounceRole",
|
221
|
+
values: [BytesLike, AddressLike]
|
222
|
+
): string;
|
223
|
+
encodeFunctionData(
|
224
|
+
functionFragment: "repayCurrency",
|
225
|
+
values: [BigNumberish]
|
226
|
+
): string;
|
227
|
+
encodeFunctionData(
|
228
|
+
functionFragment: "revokeRole",
|
229
|
+
values: [BytesLike, AddressLike]
|
230
|
+
): string;
|
231
|
+
encodeFunctionData(
|
232
|
+
functionFragment: "rewardConfigs",
|
233
|
+
values: [BigNumberish]
|
234
|
+
): string;
|
235
|
+
encodeFunctionData(
|
236
|
+
functionFragment: "rewardToken",
|
237
|
+
values?: undefined
|
238
|
+
): string;
|
239
|
+
encodeFunctionData(
|
240
|
+
functionFragment: "safeTransferFrom(address,address,uint256)",
|
241
|
+
values: [AddressLike, AddressLike, BigNumberish]
|
242
|
+
): string;
|
243
|
+
encodeFunctionData(
|
244
|
+
functionFragment: "safeTransferFrom(address,address,uint256,bytes)",
|
245
|
+
values: [AddressLike, AddressLike, BigNumberish, BytesLike]
|
246
|
+
): string;
|
247
|
+
encodeFunctionData(
|
248
|
+
functionFragment: "setApprovalForAll",
|
249
|
+
values: [AddressLike, boolean]
|
250
|
+
): string;
|
251
|
+
encodeFunctionData(
|
252
|
+
functionFragment: "setCurrency",
|
253
|
+
values: [AddressLike]
|
254
|
+
): string;
|
255
|
+
encodeFunctionData(
|
256
|
+
functionFragment: "setPrice",
|
257
|
+
values: [BigNumberish, BigNumberish]
|
258
|
+
): string;
|
259
|
+
encodeFunctionData(
|
260
|
+
functionFragment: "setReduceEnabled",
|
261
|
+
values: [boolean]
|
262
|
+
): string;
|
263
|
+
encodeFunctionData(
|
264
|
+
functionFragment: "setRewardToken",
|
265
|
+
values: [AddressLike]
|
266
|
+
): string;
|
267
|
+
encodeFunctionData(
|
268
|
+
functionFragment: "setTreasury",
|
269
|
+
values: [AddressLike]
|
270
|
+
): string;
|
271
|
+
encodeFunctionData(
|
272
|
+
functionFragment: "supportsInterface",
|
273
|
+
values: [BytesLike]
|
274
|
+
): string;
|
275
|
+
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
276
|
+
encodeFunctionData(
|
277
|
+
functionFragment: "tokenURI",
|
278
|
+
values: [BigNumberish]
|
279
|
+
): string;
|
280
|
+
encodeFunctionData(
|
281
|
+
functionFragment: "totalAmount",
|
282
|
+
values?: undefined
|
283
|
+
): string;
|
284
|
+
encodeFunctionData(
|
285
|
+
functionFragment: "totalBorrowed",
|
286
|
+
values?: undefined
|
287
|
+
): string;
|
288
|
+
encodeFunctionData(
|
289
|
+
functionFragment: "totalRewardsAdded",
|
290
|
+
values?: undefined
|
291
|
+
): string;
|
292
|
+
encodeFunctionData(
|
293
|
+
functionFragment: "totalRewardsHarvested",
|
294
|
+
values?: undefined
|
295
|
+
): string;
|
296
|
+
encodeFunctionData(
|
297
|
+
functionFragment: "transferFrom",
|
298
|
+
values: [AddressLike, AddressLike, BigNumberish]
|
299
|
+
): string;
|
300
|
+
encodeFunctionData(
|
301
|
+
functionFragment: "transferOwnership",
|
302
|
+
values: [AddressLike]
|
303
|
+
): string;
|
304
|
+
encodeFunctionData(functionFragment: "treasury", values?: undefined): string;
|
305
|
+
encodeFunctionData(
|
306
|
+
functionFragment: "updateRewardConfigs",
|
307
|
+
values: [TradingVault.RewardConfigStruct[]]
|
308
|
+
): string;
|
309
|
+
|
310
|
+
decodeFunctionResult(
|
311
|
+
functionFragment: "BASE_WEIGHT",
|
312
|
+
data: BytesLike
|
313
|
+
): Result;
|
314
|
+
decodeFunctionResult(
|
315
|
+
functionFragment: "DEFAULT_ADMIN_ROLE",
|
316
|
+
data: BytesLike
|
317
|
+
): Result;
|
318
|
+
decodeFunctionResult(functionFragment: "EXPO", data: BytesLike): Result;
|
319
|
+
decodeFunctionResult(functionFragment: "EXPO_100", data: BytesLike): Result;
|
320
|
+
decodeFunctionResult(
|
321
|
+
functionFragment: "OPERATOR_ROLE",
|
322
|
+
data: BytesLike
|
323
|
+
): Result;
|
324
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
325
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
326
|
+
decodeFunctionResult(
|
327
|
+
functionFragment: "borrowCurrency",
|
328
|
+
data: BytesLike
|
329
|
+
): Result;
|
330
|
+
decodeFunctionResult(functionFragment: "claimERC20", data: BytesLike): Result;
|
331
|
+
decodeFunctionResult(
|
332
|
+
functionFragment: "createPosition",
|
333
|
+
data: BytesLike
|
334
|
+
): Result;
|
335
|
+
decodeFunctionResult(
|
336
|
+
functionFragment: "createPositionForUser",
|
337
|
+
data: BytesLike
|
338
|
+
): Result;
|
339
|
+
decodeFunctionResult(functionFragment: "currency", data: BytesLike): Result;
|
340
|
+
decodeFunctionResult(
|
341
|
+
functionFragment: "getApproved",
|
342
|
+
data: BytesLike
|
343
|
+
): Result;
|
344
|
+
decodeFunctionResult(
|
345
|
+
functionFragment: "getRewardConfigsLength",
|
346
|
+
data: BytesLike
|
347
|
+
): Result;
|
348
|
+
decodeFunctionResult(
|
349
|
+
functionFragment: "getRoleAdmin",
|
350
|
+
data: BytesLike
|
351
|
+
): Result;
|
352
|
+
decodeFunctionResult(
|
353
|
+
functionFragment: "grantOperatorRole",
|
354
|
+
data: BytesLike
|
355
|
+
): Result;
|
356
|
+
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
|
357
|
+
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
358
|
+
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
359
|
+
decodeFunctionResult(
|
360
|
+
functionFragment: "isApprovedForAll",
|
361
|
+
data: BytesLike
|
362
|
+
): Result;
|
363
|
+
decodeFunctionResult(
|
364
|
+
functionFragment: "isReduceEnabled",
|
365
|
+
data: BytesLike
|
366
|
+
): Result;
|
367
|
+
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
368
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
369
|
+
decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result;
|
370
|
+
decodeFunctionResult(functionFragment: "positions", data: BytesLike): Result;
|
371
|
+
decodeFunctionResult(functionFragment: "price", data: BytesLike): Result;
|
372
|
+
decodeFunctionResult(
|
373
|
+
functionFragment: "reducePosition",
|
374
|
+
data: BytesLike
|
375
|
+
): Result;
|
376
|
+
decodeFunctionResult(
|
377
|
+
functionFragment: "reducePositions",
|
378
|
+
data: BytesLike
|
379
|
+
): Result;
|
380
|
+
decodeFunctionResult(
|
381
|
+
functionFragment: "renounceOwnership",
|
382
|
+
data: BytesLike
|
383
|
+
): Result;
|
384
|
+
decodeFunctionResult(
|
385
|
+
functionFragment: "renounceRole",
|
386
|
+
data: BytesLike
|
387
|
+
): Result;
|
388
|
+
decodeFunctionResult(
|
389
|
+
functionFragment: "repayCurrency",
|
390
|
+
data: BytesLike
|
391
|
+
): Result;
|
392
|
+
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
393
|
+
decodeFunctionResult(
|
394
|
+
functionFragment: "rewardConfigs",
|
395
|
+
data: BytesLike
|
396
|
+
): Result;
|
397
|
+
decodeFunctionResult(
|
398
|
+
functionFragment: "rewardToken",
|
399
|
+
data: BytesLike
|
400
|
+
): Result;
|
401
|
+
decodeFunctionResult(
|
402
|
+
functionFragment: "safeTransferFrom(address,address,uint256)",
|
403
|
+
data: BytesLike
|
404
|
+
): Result;
|
405
|
+
decodeFunctionResult(
|
406
|
+
functionFragment: "safeTransferFrom(address,address,uint256,bytes)",
|
407
|
+
data: BytesLike
|
408
|
+
): Result;
|
409
|
+
decodeFunctionResult(
|
410
|
+
functionFragment: "setApprovalForAll",
|
411
|
+
data: BytesLike
|
412
|
+
): Result;
|
413
|
+
decodeFunctionResult(
|
414
|
+
functionFragment: "setCurrency",
|
415
|
+
data: BytesLike
|
416
|
+
): Result;
|
417
|
+
decodeFunctionResult(functionFragment: "setPrice", data: BytesLike): Result;
|
418
|
+
decodeFunctionResult(
|
419
|
+
functionFragment: "setReduceEnabled",
|
420
|
+
data: BytesLike
|
421
|
+
): Result;
|
422
|
+
decodeFunctionResult(
|
423
|
+
functionFragment: "setRewardToken",
|
424
|
+
data: BytesLike
|
425
|
+
): Result;
|
426
|
+
decodeFunctionResult(
|
427
|
+
functionFragment: "setTreasury",
|
428
|
+
data: BytesLike
|
429
|
+
): Result;
|
430
|
+
decodeFunctionResult(
|
431
|
+
functionFragment: "supportsInterface",
|
432
|
+
data: BytesLike
|
433
|
+
): Result;
|
434
|
+
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
435
|
+
decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result;
|
436
|
+
decodeFunctionResult(
|
437
|
+
functionFragment: "totalAmount",
|
438
|
+
data: BytesLike
|
439
|
+
): Result;
|
440
|
+
decodeFunctionResult(
|
441
|
+
functionFragment: "totalBorrowed",
|
442
|
+
data: BytesLike
|
443
|
+
): Result;
|
444
|
+
decodeFunctionResult(
|
445
|
+
functionFragment: "totalRewardsAdded",
|
446
|
+
data: BytesLike
|
447
|
+
): Result;
|
448
|
+
decodeFunctionResult(
|
449
|
+
functionFragment: "totalRewardsHarvested",
|
450
|
+
data: BytesLike
|
451
|
+
): Result;
|
452
|
+
decodeFunctionResult(
|
453
|
+
functionFragment: "transferFrom",
|
454
|
+
data: BytesLike
|
455
|
+
): Result;
|
456
|
+
decodeFunctionResult(
|
457
|
+
functionFragment: "transferOwnership",
|
458
|
+
data: BytesLike
|
459
|
+
): Result;
|
460
|
+
decodeFunctionResult(functionFragment: "treasury", data: BytesLike): Result;
|
461
|
+
decodeFunctionResult(
|
462
|
+
functionFragment: "updateRewardConfigs",
|
463
|
+
data: BytesLike
|
464
|
+
): Result;
|
465
|
+
}
|
466
|
+
|
467
|
+
export namespace ApprovalEvent {
|
468
|
+
export type InputTuple = [
|
469
|
+
owner: AddressLike,
|
470
|
+
approved: AddressLike,
|
471
|
+
tokenId: BigNumberish
|
472
|
+
];
|
473
|
+
export type OutputTuple = [owner: string, approved: string, tokenId: bigint];
|
474
|
+
export interface OutputObject {
|
475
|
+
owner: string;
|
476
|
+
approved: string;
|
477
|
+
tokenId: bigint;
|
478
|
+
}
|
479
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
480
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
481
|
+
export type Log = TypedEventLog<Event>;
|
482
|
+
export type LogDescription = TypedLogDescription<Event>;
|
483
|
+
}
|
484
|
+
|
485
|
+
export namespace ApprovalForAllEvent {
|
486
|
+
export type InputTuple = [
|
487
|
+
owner: AddressLike,
|
488
|
+
operator: AddressLike,
|
489
|
+
approved: boolean
|
490
|
+
];
|
491
|
+
export type OutputTuple = [
|
492
|
+
owner: string,
|
493
|
+
operator: string,
|
494
|
+
approved: boolean
|
495
|
+
];
|
496
|
+
export interface OutputObject {
|
497
|
+
owner: string;
|
498
|
+
operator: string;
|
499
|
+
approved: boolean;
|
500
|
+
}
|
501
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
502
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
503
|
+
export type Log = TypedEventLog<Event>;
|
504
|
+
export type LogDescription = TypedLogDescription<Event>;
|
505
|
+
}
|
506
|
+
|
507
|
+
export namespace CurrencyBorrowedEvent {
|
508
|
+
export type InputTuple = [borrower: AddressLike, amount: BigNumberish];
|
509
|
+
export type OutputTuple = [borrower: string, amount: bigint];
|
510
|
+
export interface OutputObject {
|
511
|
+
borrower: string;
|
512
|
+
amount: bigint;
|
513
|
+
}
|
514
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
515
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
516
|
+
export type Log = TypedEventLog<Event>;
|
517
|
+
export type LogDescription = TypedLogDescription<Event>;
|
518
|
+
}
|
519
|
+
|
520
|
+
export namespace CurrencyRepaidEvent {
|
521
|
+
export type InputTuple = [borrower: AddressLike, amount: BigNumberish];
|
522
|
+
export type OutputTuple = [borrower: string, amount: bigint];
|
523
|
+
export interface OutputObject {
|
524
|
+
borrower: string;
|
525
|
+
amount: bigint;
|
526
|
+
}
|
527
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
528
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
529
|
+
export type Log = TypedEventLog<Event>;
|
530
|
+
export type LogDescription = TypedLogDescription<Event>;
|
531
|
+
}
|
532
|
+
|
533
|
+
export namespace CurrencyUpdatedEvent {
|
534
|
+
export type InputTuple = [oldCurrency: AddressLike, newCurrency: AddressLike];
|
535
|
+
export type OutputTuple = [oldCurrency: string, newCurrency: string];
|
536
|
+
export interface OutputObject {
|
537
|
+
oldCurrency: string;
|
538
|
+
newCurrency: string;
|
539
|
+
}
|
540
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
541
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
542
|
+
export type Log = TypedEventLog<Event>;
|
543
|
+
export type LogDescription = TypedLogDescription<Event>;
|
544
|
+
}
|
545
|
+
|
546
|
+
export namespace InitializedEvent {
|
547
|
+
export type InputTuple = [version: BigNumberish];
|
548
|
+
export type OutputTuple = [version: bigint];
|
549
|
+
export interface OutputObject {
|
550
|
+
version: bigint;
|
551
|
+
}
|
552
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
553
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
554
|
+
export type Log = TypedEventLog<Event>;
|
555
|
+
export type LogDescription = TypedLogDescription<Event>;
|
556
|
+
}
|
557
|
+
|
558
|
+
export namespace OwnershipTransferredEvent {
|
559
|
+
export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
560
|
+
export type OutputTuple = [previousOwner: string, newOwner: string];
|
561
|
+
export interface OutputObject {
|
562
|
+
previousOwner: string;
|
563
|
+
newOwner: string;
|
564
|
+
}
|
565
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
566
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
567
|
+
export type Log = TypedEventLog<Event>;
|
568
|
+
export type LogDescription = TypedLogDescription<Event>;
|
569
|
+
}
|
570
|
+
|
571
|
+
export namespace PositionCreatedEvent {
|
572
|
+
export type InputTuple = [
|
573
|
+
user: AddressLike,
|
574
|
+
tokenId: BigNumberish,
|
575
|
+
entryPrice: BigNumberish,
|
576
|
+
amount: BigNumberish,
|
577
|
+
openedAt: BigNumberish
|
578
|
+
];
|
579
|
+
export type OutputTuple = [
|
580
|
+
user: string,
|
581
|
+
tokenId: bigint,
|
582
|
+
entryPrice: bigint,
|
583
|
+
amount: bigint,
|
584
|
+
openedAt: bigint
|
585
|
+
];
|
586
|
+
export interface OutputObject {
|
587
|
+
user: string;
|
588
|
+
tokenId: bigint;
|
589
|
+
entryPrice: bigint;
|
590
|
+
amount: bigint;
|
591
|
+
openedAt: bigint;
|
592
|
+
}
|
593
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
594
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
595
|
+
export type Log = TypedEventLog<Event>;
|
596
|
+
export type LogDescription = TypedLogDescription<Event>;
|
597
|
+
}
|
598
|
+
|
599
|
+
export namespace PositionReducedEvent {
|
600
|
+
export type InputTuple = [
|
601
|
+
user: AddressLike,
|
602
|
+
tokenId: BigNumberish,
|
603
|
+
reducedAmount: BigNumberish,
|
604
|
+
remainingAmount: BigNumberish,
|
605
|
+
totalReward: BigNumberish,
|
606
|
+
weight: BigNumberish,
|
607
|
+
userReward: BigNumberish,
|
608
|
+
treasuryReward: BigNumberish,
|
609
|
+
lossAmount: BigNumberish,
|
610
|
+
price: BigNumberish,
|
611
|
+
rewardedAmount: BigNumberish,
|
612
|
+
loss: BigNumberish
|
613
|
+
];
|
614
|
+
export type OutputTuple = [
|
615
|
+
user: string,
|
616
|
+
tokenId: bigint,
|
617
|
+
reducedAmount: bigint,
|
618
|
+
remainingAmount: bigint,
|
619
|
+
totalReward: bigint,
|
620
|
+
weight: bigint,
|
621
|
+
userReward: bigint,
|
622
|
+
treasuryReward: bigint,
|
623
|
+
lossAmount: bigint,
|
624
|
+
price: bigint,
|
625
|
+
rewardedAmount: bigint,
|
626
|
+
loss: bigint
|
627
|
+
];
|
628
|
+
export interface OutputObject {
|
629
|
+
user: string;
|
630
|
+
tokenId: bigint;
|
631
|
+
reducedAmount: bigint;
|
632
|
+
remainingAmount: bigint;
|
633
|
+
totalReward: bigint;
|
634
|
+
weight: bigint;
|
635
|
+
userReward: bigint;
|
636
|
+
treasuryReward: bigint;
|
637
|
+
lossAmount: bigint;
|
638
|
+
price: bigint;
|
639
|
+
rewardedAmount: bigint;
|
640
|
+
loss: bigint;
|
641
|
+
}
|
642
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
643
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
644
|
+
export type Log = TypedEventLog<Event>;
|
645
|
+
export type LogDescription = TypedLogDescription<Event>;
|
646
|
+
}
|
647
|
+
|
648
|
+
export namespace PriceUpdatedEvent {
|
649
|
+
export type InputTuple = [
|
650
|
+
oldPrice: BigNumberish,
|
651
|
+
newPrice: BigNumberish,
|
652
|
+
requiredReward: BigNumberish
|
653
|
+
];
|
654
|
+
export type OutputTuple = [
|
655
|
+
oldPrice: bigint,
|
656
|
+
newPrice: bigint,
|
657
|
+
requiredReward: bigint
|
658
|
+
];
|
659
|
+
export interface OutputObject {
|
660
|
+
oldPrice: bigint;
|
661
|
+
newPrice: bigint;
|
662
|
+
requiredReward: bigint;
|
663
|
+
}
|
664
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
665
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
666
|
+
export type Log = TypedEventLog<Event>;
|
667
|
+
export type LogDescription = TypedLogDescription<Event>;
|
668
|
+
}
|
669
|
+
|
670
|
+
export namespace ReduceEnabledUpdatedEvent {
|
671
|
+
export type InputTuple = [enabled: boolean];
|
672
|
+
export type OutputTuple = [enabled: boolean];
|
673
|
+
export interface OutputObject {
|
674
|
+
enabled: boolean;
|
675
|
+
}
|
676
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
677
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
678
|
+
export type Log = TypedEventLog<Event>;
|
679
|
+
export type LogDescription = TypedLogDescription<Event>;
|
680
|
+
}
|
681
|
+
|
682
|
+
export namespace RewardConfigsUpdatedEvent {
|
683
|
+
export type InputTuple = [];
|
684
|
+
export type OutputTuple = [];
|
685
|
+
export interface OutputObject {}
|
686
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
687
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
688
|
+
export type Log = TypedEventLog<Event>;
|
689
|
+
export type LogDescription = TypedLogDescription<Event>;
|
690
|
+
}
|
691
|
+
|
692
|
+
export namespace RewardTokenUpdatedEvent {
|
693
|
+
export type InputTuple = [
|
694
|
+
oldRewardToken: AddressLike,
|
695
|
+
newRewardToken: AddressLike
|
696
|
+
];
|
697
|
+
export type OutputTuple = [oldRewardToken: string, newRewardToken: string];
|
698
|
+
export interface OutputObject {
|
699
|
+
oldRewardToken: string;
|
700
|
+
newRewardToken: string;
|
701
|
+
}
|
702
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
703
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
704
|
+
export type Log = TypedEventLog<Event>;
|
705
|
+
export type LogDescription = TypedLogDescription<Event>;
|
706
|
+
}
|
707
|
+
|
708
|
+
export namespace RoleAdminChangedEvent {
|
709
|
+
export type InputTuple = [
|
710
|
+
role: BytesLike,
|
711
|
+
previousAdminRole: BytesLike,
|
712
|
+
newAdminRole: BytesLike
|
713
|
+
];
|
714
|
+
export type OutputTuple = [
|
715
|
+
role: string,
|
716
|
+
previousAdminRole: string,
|
717
|
+
newAdminRole: string
|
718
|
+
];
|
719
|
+
export interface OutputObject {
|
720
|
+
role: string;
|
721
|
+
previousAdminRole: string;
|
722
|
+
newAdminRole: string;
|
723
|
+
}
|
724
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
725
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
726
|
+
export type Log = TypedEventLog<Event>;
|
727
|
+
export type LogDescription = TypedLogDescription<Event>;
|
728
|
+
}
|
729
|
+
|
730
|
+
export namespace RoleGrantedEvent {
|
731
|
+
export type InputTuple = [
|
732
|
+
role: BytesLike,
|
733
|
+
account: AddressLike,
|
734
|
+
sender: AddressLike
|
735
|
+
];
|
736
|
+
export type OutputTuple = [role: string, account: string, sender: string];
|
737
|
+
export interface OutputObject {
|
738
|
+
role: string;
|
739
|
+
account: string;
|
740
|
+
sender: string;
|
741
|
+
}
|
742
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
743
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
744
|
+
export type Log = TypedEventLog<Event>;
|
745
|
+
export type LogDescription = TypedLogDescription<Event>;
|
746
|
+
}
|
747
|
+
|
748
|
+
export namespace RoleRevokedEvent {
|
749
|
+
export type InputTuple = [
|
750
|
+
role: BytesLike,
|
751
|
+
account: AddressLike,
|
752
|
+
sender: AddressLike
|
753
|
+
];
|
754
|
+
export type OutputTuple = [role: string, account: string, sender: string];
|
755
|
+
export interface OutputObject {
|
756
|
+
role: string;
|
757
|
+
account: string;
|
758
|
+
sender: string;
|
759
|
+
}
|
760
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
761
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
762
|
+
export type Log = TypedEventLog<Event>;
|
763
|
+
export type LogDescription = TypedLogDescription<Event>;
|
764
|
+
}
|
765
|
+
|
766
|
+
export namespace TotalAmountUpdatedEvent {
|
767
|
+
export type InputTuple = [newTotalAmount: BigNumberish];
|
768
|
+
export type OutputTuple = [newTotalAmount: bigint];
|
769
|
+
export interface OutputObject {
|
770
|
+
newTotalAmount: bigint;
|
771
|
+
}
|
772
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
773
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
774
|
+
export type Log = TypedEventLog<Event>;
|
775
|
+
export type LogDescription = TypedLogDescription<Event>;
|
776
|
+
}
|
777
|
+
|
778
|
+
export namespace TotalRewardsHarvestedUpdatedEvent {
|
779
|
+
export type InputTuple = [oldAmount: BigNumberish, newAmount: BigNumberish];
|
780
|
+
export type OutputTuple = [oldAmount: bigint, newAmount: bigint];
|
781
|
+
export interface OutputObject {
|
782
|
+
oldAmount: bigint;
|
783
|
+
newAmount: bigint;
|
784
|
+
}
|
785
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
786
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
787
|
+
export type Log = TypedEventLog<Event>;
|
788
|
+
export type LogDescription = TypedLogDescription<Event>;
|
789
|
+
}
|
790
|
+
|
791
|
+
export namespace TotalRewardsUpdatedEvent {
|
792
|
+
export type InputTuple = [oldAmount: BigNumberish, newAmount: BigNumberish];
|
793
|
+
export type OutputTuple = [oldAmount: bigint, newAmount: bigint];
|
794
|
+
export interface OutputObject {
|
795
|
+
oldAmount: bigint;
|
796
|
+
newAmount: bigint;
|
797
|
+
}
|
798
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
799
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
800
|
+
export type Log = TypedEventLog<Event>;
|
801
|
+
export type LogDescription = TypedLogDescription<Event>;
|
802
|
+
}
|
803
|
+
|
804
|
+
export namespace TransferEvent {
|
805
|
+
export type InputTuple = [
|
806
|
+
from: AddressLike,
|
807
|
+
to: AddressLike,
|
808
|
+
tokenId: BigNumberish
|
809
|
+
];
|
810
|
+
export type OutputTuple = [from: string, to: string, tokenId: bigint];
|
811
|
+
export interface OutputObject {
|
812
|
+
from: string;
|
813
|
+
to: string;
|
814
|
+
tokenId: bigint;
|
815
|
+
}
|
816
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
817
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
818
|
+
export type Log = TypedEventLog<Event>;
|
819
|
+
export type LogDescription = TypedLogDescription<Event>;
|
820
|
+
}
|
821
|
+
|
822
|
+
export namespace TreasuryUpdatedEvent {
|
823
|
+
export type InputTuple = [oldTreasury: AddressLike, newTreasury: AddressLike];
|
824
|
+
export type OutputTuple = [oldTreasury: string, newTreasury: string];
|
825
|
+
export interface OutputObject {
|
826
|
+
oldTreasury: string;
|
827
|
+
newTreasury: string;
|
828
|
+
}
|
829
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
830
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
831
|
+
export type Log = TypedEventLog<Event>;
|
832
|
+
export type LogDescription = TypedLogDescription<Event>;
|
833
|
+
}
|
834
|
+
|
835
|
+
export interface TradingVault extends BaseContract {
|
836
|
+
connect(runner?: ContractRunner | null): TradingVault;
|
837
|
+
waitForDeployment(): Promise<this>;
|
838
|
+
|
839
|
+
interface: TradingVaultInterface;
|
840
|
+
|
841
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
842
|
+
event: TCEvent,
|
843
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
844
|
+
toBlock?: string | number | undefined
|
845
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
846
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
847
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
848
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
849
|
+
toBlock?: string | number | undefined
|
850
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
851
|
+
|
852
|
+
on<TCEvent extends TypedContractEvent>(
|
853
|
+
event: TCEvent,
|
854
|
+
listener: TypedListener<TCEvent>
|
855
|
+
): Promise<this>;
|
856
|
+
on<TCEvent extends TypedContractEvent>(
|
857
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
858
|
+
listener: TypedListener<TCEvent>
|
859
|
+
): Promise<this>;
|
860
|
+
|
861
|
+
once<TCEvent extends TypedContractEvent>(
|
862
|
+
event: TCEvent,
|
863
|
+
listener: TypedListener<TCEvent>
|
864
|
+
): Promise<this>;
|
865
|
+
once<TCEvent extends TypedContractEvent>(
|
866
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
867
|
+
listener: TypedListener<TCEvent>
|
868
|
+
): Promise<this>;
|
869
|
+
|
870
|
+
listeners<TCEvent extends TypedContractEvent>(
|
871
|
+
event: TCEvent
|
872
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
873
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
874
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
875
|
+
event?: TCEvent
|
876
|
+
): Promise<this>;
|
877
|
+
|
878
|
+
BASE_WEIGHT: TypedContractMethod<[], [bigint], "view">;
|
879
|
+
|
880
|
+
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
881
|
+
|
882
|
+
EXPO: TypedContractMethod<[], [bigint], "view">;
|
883
|
+
|
884
|
+
EXPO_100: TypedContractMethod<[], [bigint], "view">;
|
885
|
+
|
886
|
+
OPERATOR_ROLE: TypedContractMethod<[], [string], "view">;
|
887
|
+
|
888
|
+
approve: TypedContractMethod<
|
889
|
+
[to: AddressLike, tokenId: BigNumberish],
|
890
|
+
[void],
|
891
|
+
"nonpayable"
|
892
|
+
>;
|
893
|
+
|
894
|
+
balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
895
|
+
|
896
|
+
borrowCurrency: TypedContractMethod<
|
897
|
+
[_amount: BigNumberish],
|
898
|
+
[void],
|
899
|
+
"nonpayable"
|
900
|
+
>;
|
901
|
+
|
902
|
+
claimERC20: TypedContractMethod<
|
903
|
+
[_token: AddressLike, _amount: BigNumberish],
|
904
|
+
[void],
|
905
|
+
"nonpayable"
|
906
|
+
>;
|
907
|
+
|
908
|
+
createPosition: TypedContractMethod<
|
909
|
+
[_amount: BigNumberish],
|
910
|
+
[bigint],
|
911
|
+
"nonpayable"
|
912
|
+
>;
|
913
|
+
|
914
|
+
createPositionForUser: TypedContractMethod<
|
915
|
+
[_user: AddressLike, _amount: BigNumberish],
|
916
|
+
[bigint],
|
917
|
+
"nonpayable"
|
918
|
+
>;
|
919
|
+
|
920
|
+
currency: TypedContractMethod<[], [string], "view">;
|
921
|
+
|
922
|
+
getApproved: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
923
|
+
|
924
|
+
getRewardConfigsLength: TypedContractMethod<[], [bigint], "view">;
|
925
|
+
|
926
|
+
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
927
|
+
|
928
|
+
grantOperatorRole: TypedContractMethod<
|
929
|
+
[operator: AddressLike],
|
930
|
+
[void],
|
931
|
+
"nonpayable"
|
932
|
+
>;
|
933
|
+
|
934
|
+
grantRole: TypedContractMethod<
|
935
|
+
[role: BytesLike, account: AddressLike],
|
936
|
+
[void],
|
937
|
+
"nonpayable"
|
938
|
+
>;
|
939
|
+
|
940
|
+
hasRole: TypedContractMethod<
|
941
|
+
[role: BytesLike, account: AddressLike],
|
942
|
+
[boolean],
|
943
|
+
"view"
|
944
|
+
>;
|
945
|
+
|
946
|
+
initialize: TypedContractMethod<
|
947
|
+
[_currency: AddressLike, _rewardToken: AddressLike],
|
948
|
+
[void],
|
949
|
+
"nonpayable"
|
950
|
+
>;
|
951
|
+
|
952
|
+
isApprovedForAll: TypedContractMethod<
|
953
|
+
[owner: AddressLike, operator: AddressLike],
|
954
|
+
[boolean],
|
955
|
+
"view"
|
956
|
+
>;
|
957
|
+
|
958
|
+
isReduceEnabled: TypedContractMethod<[], [boolean], "view">;
|
959
|
+
|
960
|
+
name: TypedContractMethod<[], [string], "view">;
|
961
|
+
|
962
|
+
owner: TypedContractMethod<[], [string], "view">;
|
963
|
+
|
964
|
+
ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
965
|
+
|
966
|
+
positions: TypedContractMethod<
|
967
|
+
[arg0: BigNumberish],
|
968
|
+
[
|
969
|
+
[bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint] & {
|
970
|
+
entryPrice: bigint;
|
971
|
+
outPrice: bigint;
|
972
|
+
remainingAmount: bigint;
|
973
|
+
initAmount: bigint;
|
974
|
+
openedAt: bigint;
|
975
|
+
closedAt: bigint;
|
976
|
+
rewardedAmount: bigint;
|
977
|
+
lossAmount: bigint;
|
978
|
+
}
|
979
|
+
],
|
980
|
+
"view"
|
981
|
+
>;
|
982
|
+
|
983
|
+
price: TypedContractMethod<[], [bigint], "view">;
|
984
|
+
|
985
|
+
reducePosition: TypedContractMethod<
|
986
|
+
[_tokenId: BigNumberish, _amount: BigNumberish],
|
987
|
+
[void],
|
988
|
+
"nonpayable"
|
989
|
+
>;
|
990
|
+
|
991
|
+
reducePositions: TypedContractMethod<
|
992
|
+
[_tokenIds: BigNumberish[], _amounts: BigNumberish[]],
|
993
|
+
[void],
|
994
|
+
"nonpayable"
|
995
|
+
>;
|
996
|
+
|
997
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
998
|
+
|
999
|
+
renounceRole: TypedContractMethod<
|
1000
|
+
[role: BytesLike, callerConfirmation: AddressLike],
|
1001
|
+
[void],
|
1002
|
+
"nonpayable"
|
1003
|
+
>;
|
1004
|
+
|
1005
|
+
repayCurrency: TypedContractMethod<
|
1006
|
+
[_amount: BigNumberish],
|
1007
|
+
[void],
|
1008
|
+
"nonpayable"
|
1009
|
+
>;
|
1010
|
+
|
1011
|
+
revokeRole: TypedContractMethod<
|
1012
|
+
[role: BytesLike, account: AddressLike],
|
1013
|
+
[void],
|
1014
|
+
"nonpayable"
|
1015
|
+
>;
|
1016
|
+
|
1017
|
+
rewardConfigs: TypedContractMethod<
|
1018
|
+
[arg0: BigNumberish],
|
1019
|
+
[[bigint, bigint] & { weight: bigint; duration: bigint }],
|
1020
|
+
"view"
|
1021
|
+
>;
|
1022
|
+
|
1023
|
+
rewardToken: TypedContractMethod<[], [string], "view">;
|
1024
|
+
|
1025
|
+
"safeTransferFrom(address,address,uint256)": TypedContractMethod<
|
1026
|
+
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
|
1027
|
+
[void],
|
1028
|
+
"nonpayable"
|
1029
|
+
>;
|
1030
|
+
|
1031
|
+
"safeTransferFrom(address,address,uint256,bytes)": TypedContractMethod<
|
1032
|
+
[
|
1033
|
+
from: AddressLike,
|
1034
|
+
to: AddressLike,
|
1035
|
+
tokenId: BigNumberish,
|
1036
|
+
data: BytesLike
|
1037
|
+
],
|
1038
|
+
[void],
|
1039
|
+
"nonpayable"
|
1040
|
+
>;
|
1041
|
+
|
1042
|
+
setApprovalForAll: TypedContractMethod<
|
1043
|
+
[operator: AddressLike, approved: boolean],
|
1044
|
+
[void],
|
1045
|
+
"nonpayable"
|
1046
|
+
>;
|
1047
|
+
|
1048
|
+
setCurrency: TypedContractMethod<
|
1049
|
+
[_currency: AddressLike],
|
1050
|
+
[void],
|
1051
|
+
"nonpayable"
|
1052
|
+
>;
|
1053
|
+
|
1054
|
+
setPrice: TypedContractMethod<
|
1055
|
+
[_newPrice: BigNumberish, _rewardAmount: BigNumberish],
|
1056
|
+
[void],
|
1057
|
+
"nonpayable"
|
1058
|
+
>;
|
1059
|
+
|
1060
|
+
setReduceEnabled: TypedContractMethod<
|
1061
|
+
[_enabled: boolean],
|
1062
|
+
[void],
|
1063
|
+
"nonpayable"
|
1064
|
+
>;
|
1065
|
+
|
1066
|
+
setRewardToken: TypedContractMethod<
|
1067
|
+
[_rewardToken: AddressLike],
|
1068
|
+
[void],
|
1069
|
+
"nonpayable"
|
1070
|
+
>;
|
1071
|
+
|
1072
|
+
setTreasury: TypedContractMethod<
|
1073
|
+
[_treasury: AddressLike],
|
1074
|
+
[void],
|
1075
|
+
"nonpayable"
|
1076
|
+
>;
|
1077
|
+
|
1078
|
+
supportsInterface: TypedContractMethod<
|
1079
|
+
[interfaceId: BytesLike],
|
1080
|
+
[boolean],
|
1081
|
+
"view"
|
1082
|
+
>;
|
1083
|
+
|
1084
|
+
symbol: TypedContractMethod<[], [string], "view">;
|
1085
|
+
|
1086
|
+
tokenURI: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
1087
|
+
|
1088
|
+
totalAmount: TypedContractMethod<[], [bigint], "view">;
|
1089
|
+
|
1090
|
+
totalBorrowed: TypedContractMethod<[], [bigint], "view">;
|
1091
|
+
|
1092
|
+
totalRewardsAdded: TypedContractMethod<[], [bigint], "view">;
|
1093
|
+
|
1094
|
+
totalRewardsHarvested: TypedContractMethod<[], [bigint], "view">;
|
1095
|
+
|
1096
|
+
transferFrom: TypedContractMethod<
|
1097
|
+
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
|
1098
|
+
[void],
|
1099
|
+
"nonpayable"
|
1100
|
+
>;
|
1101
|
+
|
1102
|
+
transferOwnership: TypedContractMethod<
|
1103
|
+
[newOwner: AddressLike],
|
1104
|
+
[void],
|
1105
|
+
"nonpayable"
|
1106
|
+
>;
|
1107
|
+
|
1108
|
+
treasury: TypedContractMethod<[], [string], "view">;
|
1109
|
+
|
1110
|
+
updateRewardConfigs: TypedContractMethod<
|
1111
|
+
[_configs: TradingVault.RewardConfigStruct[]],
|
1112
|
+
[void],
|
1113
|
+
"nonpayable"
|
1114
|
+
>;
|
1115
|
+
|
1116
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
1117
|
+
key: string | FunctionFragment
|
1118
|
+
): T;
|
1119
|
+
|
1120
|
+
getFunction(
|
1121
|
+
nameOrSignature: "BASE_WEIGHT"
|
1122
|
+
): TypedContractMethod<[], [bigint], "view">;
|
1123
|
+
getFunction(
|
1124
|
+
nameOrSignature: "DEFAULT_ADMIN_ROLE"
|
1125
|
+
): TypedContractMethod<[], [string], "view">;
|
1126
|
+
getFunction(
|
1127
|
+
nameOrSignature: "EXPO"
|
1128
|
+
): TypedContractMethod<[], [bigint], "view">;
|
1129
|
+
getFunction(
|
1130
|
+
nameOrSignature: "EXPO_100"
|
1131
|
+
): TypedContractMethod<[], [bigint], "view">;
|
1132
|
+
getFunction(
|
1133
|
+
nameOrSignature: "OPERATOR_ROLE"
|
1134
|
+
): TypedContractMethod<[], [string], "view">;
|
1135
|
+
getFunction(
|
1136
|
+
nameOrSignature: "approve"
|
1137
|
+
): TypedContractMethod<
|
1138
|
+
[to: AddressLike, tokenId: BigNumberish],
|
1139
|
+
[void],
|
1140
|
+
"nonpayable"
|
1141
|
+
>;
|
1142
|
+
getFunction(
|
1143
|
+
nameOrSignature: "balanceOf"
|
1144
|
+
): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
|
1145
|
+
getFunction(
|
1146
|
+
nameOrSignature: "borrowCurrency"
|
1147
|
+
): TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
|
1148
|
+
getFunction(
|
1149
|
+
nameOrSignature: "claimERC20"
|
1150
|
+
): TypedContractMethod<
|
1151
|
+
[_token: AddressLike, _amount: BigNumberish],
|
1152
|
+
[void],
|
1153
|
+
"nonpayable"
|
1154
|
+
>;
|
1155
|
+
getFunction(
|
1156
|
+
nameOrSignature: "createPosition"
|
1157
|
+
): TypedContractMethod<[_amount: BigNumberish], [bigint], "nonpayable">;
|
1158
|
+
getFunction(
|
1159
|
+
nameOrSignature: "createPositionForUser"
|
1160
|
+
): TypedContractMethod<
|
1161
|
+
[_user: AddressLike, _amount: BigNumberish],
|
1162
|
+
[bigint],
|
1163
|
+
"nonpayable"
|
1164
|
+
>;
|
1165
|
+
getFunction(
|
1166
|
+
nameOrSignature: "currency"
|
1167
|
+
): TypedContractMethod<[], [string], "view">;
|
1168
|
+
getFunction(
|
1169
|
+
nameOrSignature: "getApproved"
|
1170
|
+
): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
1171
|
+
getFunction(
|
1172
|
+
nameOrSignature: "getRewardConfigsLength"
|
1173
|
+
): TypedContractMethod<[], [bigint], "view">;
|
1174
|
+
getFunction(
|
1175
|
+
nameOrSignature: "getRoleAdmin"
|
1176
|
+
): TypedContractMethod<[role: BytesLike], [string], "view">;
|
1177
|
+
getFunction(
|
1178
|
+
nameOrSignature: "grantOperatorRole"
|
1179
|
+
): TypedContractMethod<[operator: AddressLike], [void], "nonpayable">;
|
1180
|
+
getFunction(
|
1181
|
+
nameOrSignature: "grantRole"
|
1182
|
+
): TypedContractMethod<
|
1183
|
+
[role: BytesLike, account: AddressLike],
|
1184
|
+
[void],
|
1185
|
+
"nonpayable"
|
1186
|
+
>;
|
1187
|
+
getFunction(
|
1188
|
+
nameOrSignature: "hasRole"
|
1189
|
+
): TypedContractMethod<
|
1190
|
+
[role: BytesLike, account: AddressLike],
|
1191
|
+
[boolean],
|
1192
|
+
"view"
|
1193
|
+
>;
|
1194
|
+
getFunction(
|
1195
|
+
nameOrSignature: "initialize"
|
1196
|
+
): TypedContractMethod<
|
1197
|
+
[_currency: AddressLike, _rewardToken: AddressLike],
|
1198
|
+
[void],
|
1199
|
+
"nonpayable"
|
1200
|
+
>;
|
1201
|
+
getFunction(
|
1202
|
+
nameOrSignature: "isApprovedForAll"
|
1203
|
+
): TypedContractMethod<
|
1204
|
+
[owner: AddressLike, operator: AddressLike],
|
1205
|
+
[boolean],
|
1206
|
+
"view"
|
1207
|
+
>;
|
1208
|
+
getFunction(
|
1209
|
+
nameOrSignature: "isReduceEnabled"
|
1210
|
+
): TypedContractMethod<[], [boolean], "view">;
|
1211
|
+
getFunction(
|
1212
|
+
nameOrSignature: "name"
|
1213
|
+
): TypedContractMethod<[], [string], "view">;
|
1214
|
+
getFunction(
|
1215
|
+
nameOrSignature: "owner"
|
1216
|
+
): TypedContractMethod<[], [string], "view">;
|
1217
|
+
getFunction(
|
1218
|
+
nameOrSignature: "ownerOf"
|
1219
|
+
): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
1220
|
+
getFunction(
|
1221
|
+
nameOrSignature: "positions"
|
1222
|
+
): TypedContractMethod<
|
1223
|
+
[arg0: BigNumberish],
|
1224
|
+
[
|
1225
|
+
[bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint] & {
|
1226
|
+
entryPrice: bigint;
|
1227
|
+
outPrice: bigint;
|
1228
|
+
remainingAmount: bigint;
|
1229
|
+
initAmount: bigint;
|
1230
|
+
openedAt: bigint;
|
1231
|
+
closedAt: bigint;
|
1232
|
+
rewardedAmount: bigint;
|
1233
|
+
lossAmount: bigint;
|
1234
|
+
}
|
1235
|
+
],
|
1236
|
+
"view"
|
1237
|
+
>;
|
1238
|
+
getFunction(
|
1239
|
+
nameOrSignature: "price"
|
1240
|
+
): TypedContractMethod<[], [bigint], "view">;
|
1241
|
+
getFunction(
|
1242
|
+
nameOrSignature: "reducePosition"
|
1243
|
+
): TypedContractMethod<
|
1244
|
+
[_tokenId: BigNumberish, _amount: BigNumberish],
|
1245
|
+
[void],
|
1246
|
+
"nonpayable"
|
1247
|
+
>;
|
1248
|
+
getFunction(
|
1249
|
+
nameOrSignature: "reducePositions"
|
1250
|
+
): TypedContractMethod<
|
1251
|
+
[_tokenIds: BigNumberish[], _amounts: BigNumberish[]],
|
1252
|
+
[void],
|
1253
|
+
"nonpayable"
|
1254
|
+
>;
|
1255
|
+
getFunction(
|
1256
|
+
nameOrSignature: "renounceOwnership"
|
1257
|
+
): TypedContractMethod<[], [void], "nonpayable">;
|
1258
|
+
getFunction(
|
1259
|
+
nameOrSignature: "renounceRole"
|
1260
|
+
): TypedContractMethod<
|
1261
|
+
[role: BytesLike, callerConfirmation: AddressLike],
|
1262
|
+
[void],
|
1263
|
+
"nonpayable"
|
1264
|
+
>;
|
1265
|
+
getFunction(
|
1266
|
+
nameOrSignature: "repayCurrency"
|
1267
|
+
): TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
|
1268
|
+
getFunction(
|
1269
|
+
nameOrSignature: "revokeRole"
|
1270
|
+
): TypedContractMethod<
|
1271
|
+
[role: BytesLike, account: AddressLike],
|
1272
|
+
[void],
|
1273
|
+
"nonpayable"
|
1274
|
+
>;
|
1275
|
+
getFunction(
|
1276
|
+
nameOrSignature: "rewardConfigs"
|
1277
|
+
): TypedContractMethod<
|
1278
|
+
[arg0: BigNumberish],
|
1279
|
+
[[bigint, bigint] & { weight: bigint; duration: bigint }],
|
1280
|
+
"view"
|
1281
|
+
>;
|
1282
|
+
getFunction(
|
1283
|
+
nameOrSignature: "rewardToken"
|
1284
|
+
): TypedContractMethod<[], [string], "view">;
|
1285
|
+
getFunction(
|
1286
|
+
nameOrSignature: "safeTransferFrom(address,address,uint256)"
|
1287
|
+
): TypedContractMethod<
|
1288
|
+
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
|
1289
|
+
[void],
|
1290
|
+
"nonpayable"
|
1291
|
+
>;
|
1292
|
+
getFunction(
|
1293
|
+
nameOrSignature: "safeTransferFrom(address,address,uint256,bytes)"
|
1294
|
+
): TypedContractMethod<
|
1295
|
+
[
|
1296
|
+
from: AddressLike,
|
1297
|
+
to: AddressLike,
|
1298
|
+
tokenId: BigNumberish,
|
1299
|
+
data: BytesLike
|
1300
|
+
],
|
1301
|
+
[void],
|
1302
|
+
"nonpayable"
|
1303
|
+
>;
|
1304
|
+
getFunction(
|
1305
|
+
nameOrSignature: "setApprovalForAll"
|
1306
|
+
): TypedContractMethod<
|
1307
|
+
[operator: AddressLike, approved: boolean],
|
1308
|
+
[void],
|
1309
|
+
"nonpayable"
|
1310
|
+
>;
|
1311
|
+
getFunction(
|
1312
|
+
nameOrSignature: "setCurrency"
|
1313
|
+
): TypedContractMethod<[_currency: AddressLike], [void], "nonpayable">;
|
1314
|
+
getFunction(
|
1315
|
+
nameOrSignature: "setPrice"
|
1316
|
+
): TypedContractMethod<
|
1317
|
+
[_newPrice: BigNumberish, _rewardAmount: BigNumberish],
|
1318
|
+
[void],
|
1319
|
+
"nonpayable"
|
1320
|
+
>;
|
1321
|
+
getFunction(
|
1322
|
+
nameOrSignature: "setReduceEnabled"
|
1323
|
+
): TypedContractMethod<[_enabled: boolean], [void], "nonpayable">;
|
1324
|
+
getFunction(
|
1325
|
+
nameOrSignature: "setRewardToken"
|
1326
|
+
): TypedContractMethod<[_rewardToken: AddressLike], [void], "nonpayable">;
|
1327
|
+
getFunction(
|
1328
|
+
nameOrSignature: "setTreasury"
|
1329
|
+
): TypedContractMethod<[_treasury: AddressLike], [void], "nonpayable">;
|
1330
|
+
getFunction(
|
1331
|
+
nameOrSignature: "supportsInterface"
|
1332
|
+
): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
1333
|
+
getFunction(
|
1334
|
+
nameOrSignature: "symbol"
|
1335
|
+
): TypedContractMethod<[], [string], "view">;
|
1336
|
+
getFunction(
|
1337
|
+
nameOrSignature: "tokenURI"
|
1338
|
+
): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
1339
|
+
getFunction(
|
1340
|
+
nameOrSignature: "totalAmount"
|
1341
|
+
): TypedContractMethod<[], [bigint], "view">;
|
1342
|
+
getFunction(
|
1343
|
+
nameOrSignature: "totalBorrowed"
|
1344
|
+
): TypedContractMethod<[], [bigint], "view">;
|
1345
|
+
getFunction(
|
1346
|
+
nameOrSignature: "totalRewardsAdded"
|
1347
|
+
): TypedContractMethod<[], [bigint], "view">;
|
1348
|
+
getFunction(
|
1349
|
+
nameOrSignature: "totalRewardsHarvested"
|
1350
|
+
): TypedContractMethod<[], [bigint], "view">;
|
1351
|
+
getFunction(
|
1352
|
+
nameOrSignature: "transferFrom"
|
1353
|
+
): TypedContractMethod<
|
1354
|
+
[from: AddressLike, to: AddressLike, tokenId: BigNumberish],
|
1355
|
+
[void],
|
1356
|
+
"nonpayable"
|
1357
|
+
>;
|
1358
|
+
getFunction(
|
1359
|
+
nameOrSignature: "transferOwnership"
|
1360
|
+
): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
1361
|
+
getFunction(
|
1362
|
+
nameOrSignature: "treasury"
|
1363
|
+
): TypedContractMethod<[], [string], "view">;
|
1364
|
+
getFunction(
|
1365
|
+
nameOrSignature: "updateRewardConfigs"
|
1366
|
+
): TypedContractMethod<
|
1367
|
+
[_configs: TradingVault.RewardConfigStruct[]],
|
1368
|
+
[void],
|
1369
|
+
"nonpayable"
|
1370
|
+
>;
|
1371
|
+
|
1372
|
+
getEvent(
|
1373
|
+
key: "Approval"
|
1374
|
+
): TypedContractEvent<
|
1375
|
+
ApprovalEvent.InputTuple,
|
1376
|
+
ApprovalEvent.OutputTuple,
|
1377
|
+
ApprovalEvent.OutputObject
|
1378
|
+
>;
|
1379
|
+
getEvent(
|
1380
|
+
key: "ApprovalForAll"
|
1381
|
+
): TypedContractEvent<
|
1382
|
+
ApprovalForAllEvent.InputTuple,
|
1383
|
+
ApprovalForAllEvent.OutputTuple,
|
1384
|
+
ApprovalForAllEvent.OutputObject
|
1385
|
+
>;
|
1386
|
+
getEvent(
|
1387
|
+
key: "CurrencyBorrowed"
|
1388
|
+
): TypedContractEvent<
|
1389
|
+
CurrencyBorrowedEvent.InputTuple,
|
1390
|
+
CurrencyBorrowedEvent.OutputTuple,
|
1391
|
+
CurrencyBorrowedEvent.OutputObject
|
1392
|
+
>;
|
1393
|
+
getEvent(
|
1394
|
+
key: "CurrencyRepaid"
|
1395
|
+
): TypedContractEvent<
|
1396
|
+
CurrencyRepaidEvent.InputTuple,
|
1397
|
+
CurrencyRepaidEvent.OutputTuple,
|
1398
|
+
CurrencyRepaidEvent.OutputObject
|
1399
|
+
>;
|
1400
|
+
getEvent(
|
1401
|
+
key: "CurrencyUpdated"
|
1402
|
+
): TypedContractEvent<
|
1403
|
+
CurrencyUpdatedEvent.InputTuple,
|
1404
|
+
CurrencyUpdatedEvent.OutputTuple,
|
1405
|
+
CurrencyUpdatedEvent.OutputObject
|
1406
|
+
>;
|
1407
|
+
getEvent(
|
1408
|
+
key: "Initialized"
|
1409
|
+
): TypedContractEvent<
|
1410
|
+
InitializedEvent.InputTuple,
|
1411
|
+
InitializedEvent.OutputTuple,
|
1412
|
+
InitializedEvent.OutputObject
|
1413
|
+
>;
|
1414
|
+
getEvent(
|
1415
|
+
key: "OwnershipTransferred"
|
1416
|
+
): TypedContractEvent<
|
1417
|
+
OwnershipTransferredEvent.InputTuple,
|
1418
|
+
OwnershipTransferredEvent.OutputTuple,
|
1419
|
+
OwnershipTransferredEvent.OutputObject
|
1420
|
+
>;
|
1421
|
+
getEvent(
|
1422
|
+
key: "PositionCreated"
|
1423
|
+
): TypedContractEvent<
|
1424
|
+
PositionCreatedEvent.InputTuple,
|
1425
|
+
PositionCreatedEvent.OutputTuple,
|
1426
|
+
PositionCreatedEvent.OutputObject
|
1427
|
+
>;
|
1428
|
+
getEvent(
|
1429
|
+
key: "PositionReduced"
|
1430
|
+
): TypedContractEvent<
|
1431
|
+
PositionReducedEvent.InputTuple,
|
1432
|
+
PositionReducedEvent.OutputTuple,
|
1433
|
+
PositionReducedEvent.OutputObject
|
1434
|
+
>;
|
1435
|
+
getEvent(
|
1436
|
+
key: "PriceUpdated"
|
1437
|
+
): TypedContractEvent<
|
1438
|
+
PriceUpdatedEvent.InputTuple,
|
1439
|
+
PriceUpdatedEvent.OutputTuple,
|
1440
|
+
PriceUpdatedEvent.OutputObject
|
1441
|
+
>;
|
1442
|
+
getEvent(
|
1443
|
+
key: "ReduceEnabledUpdated"
|
1444
|
+
): TypedContractEvent<
|
1445
|
+
ReduceEnabledUpdatedEvent.InputTuple,
|
1446
|
+
ReduceEnabledUpdatedEvent.OutputTuple,
|
1447
|
+
ReduceEnabledUpdatedEvent.OutputObject
|
1448
|
+
>;
|
1449
|
+
getEvent(
|
1450
|
+
key: "RewardConfigsUpdated"
|
1451
|
+
): TypedContractEvent<
|
1452
|
+
RewardConfigsUpdatedEvent.InputTuple,
|
1453
|
+
RewardConfigsUpdatedEvent.OutputTuple,
|
1454
|
+
RewardConfigsUpdatedEvent.OutputObject
|
1455
|
+
>;
|
1456
|
+
getEvent(
|
1457
|
+
key: "RewardTokenUpdated"
|
1458
|
+
): TypedContractEvent<
|
1459
|
+
RewardTokenUpdatedEvent.InputTuple,
|
1460
|
+
RewardTokenUpdatedEvent.OutputTuple,
|
1461
|
+
RewardTokenUpdatedEvent.OutputObject
|
1462
|
+
>;
|
1463
|
+
getEvent(
|
1464
|
+
key: "RoleAdminChanged"
|
1465
|
+
): TypedContractEvent<
|
1466
|
+
RoleAdminChangedEvent.InputTuple,
|
1467
|
+
RoleAdminChangedEvent.OutputTuple,
|
1468
|
+
RoleAdminChangedEvent.OutputObject
|
1469
|
+
>;
|
1470
|
+
getEvent(
|
1471
|
+
key: "RoleGranted"
|
1472
|
+
): TypedContractEvent<
|
1473
|
+
RoleGrantedEvent.InputTuple,
|
1474
|
+
RoleGrantedEvent.OutputTuple,
|
1475
|
+
RoleGrantedEvent.OutputObject
|
1476
|
+
>;
|
1477
|
+
getEvent(
|
1478
|
+
key: "RoleRevoked"
|
1479
|
+
): TypedContractEvent<
|
1480
|
+
RoleRevokedEvent.InputTuple,
|
1481
|
+
RoleRevokedEvent.OutputTuple,
|
1482
|
+
RoleRevokedEvent.OutputObject
|
1483
|
+
>;
|
1484
|
+
getEvent(
|
1485
|
+
key: "TotalAmountUpdated"
|
1486
|
+
): TypedContractEvent<
|
1487
|
+
TotalAmountUpdatedEvent.InputTuple,
|
1488
|
+
TotalAmountUpdatedEvent.OutputTuple,
|
1489
|
+
TotalAmountUpdatedEvent.OutputObject
|
1490
|
+
>;
|
1491
|
+
getEvent(
|
1492
|
+
key: "TotalRewardsHarvestedUpdated"
|
1493
|
+
): TypedContractEvent<
|
1494
|
+
TotalRewardsHarvestedUpdatedEvent.InputTuple,
|
1495
|
+
TotalRewardsHarvestedUpdatedEvent.OutputTuple,
|
1496
|
+
TotalRewardsHarvestedUpdatedEvent.OutputObject
|
1497
|
+
>;
|
1498
|
+
getEvent(
|
1499
|
+
key: "TotalRewardsUpdated"
|
1500
|
+
): TypedContractEvent<
|
1501
|
+
TotalRewardsUpdatedEvent.InputTuple,
|
1502
|
+
TotalRewardsUpdatedEvent.OutputTuple,
|
1503
|
+
TotalRewardsUpdatedEvent.OutputObject
|
1504
|
+
>;
|
1505
|
+
getEvent(
|
1506
|
+
key: "Transfer"
|
1507
|
+
): TypedContractEvent<
|
1508
|
+
TransferEvent.InputTuple,
|
1509
|
+
TransferEvent.OutputTuple,
|
1510
|
+
TransferEvent.OutputObject
|
1511
|
+
>;
|
1512
|
+
getEvent(
|
1513
|
+
key: "TreasuryUpdated"
|
1514
|
+
): TypedContractEvent<
|
1515
|
+
TreasuryUpdatedEvent.InputTuple,
|
1516
|
+
TreasuryUpdatedEvent.OutputTuple,
|
1517
|
+
TreasuryUpdatedEvent.OutputObject
|
1518
|
+
>;
|
1519
|
+
|
1520
|
+
filters: {
|
1521
|
+
"Approval(address,address,uint256)": TypedContractEvent<
|
1522
|
+
ApprovalEvent.InputTuple,
|
1523
|
+
ApprovalEvent.OutputTuple,
|
1524
|
+
ApprovalEvent.OutputObject
|
1525
|
+
>;
|
1526
|
+
Approval: TypedContractEvent<
|
1527
|
+
ApprovalEvent.InputTuple,
|
1528
|
+
ApprovalEvent.OutputTuple,
|
1529
|
+
ApprovalEvent.OutputObject
|
1530
|
+
>;
|
1531
|
+
|
1532
|
+
"ApprovalForAll(address,address,bool)": TypedContractEvent<
|
1533
|
+
ApprovalForAllEvent.InputTuple,
|
1534
|
+
ApprovalForAllEvent.OutputTuple,
|
1535
|
+
ApprovalForAllEvent.OutputObject
|
1536
|
+
>;
|
1537
|
+
ApprovalForAll: TypedContractEvent<
|
1538
|
+
ApprovalForAllEvent.InputTuple,
|
1539
|
+
ApprovalForAllEvent.OutputTuple,
|
1540
|
+
ApprovalForAllEvent.OutputObject
|
1541
|
+
>;
|
1542
|
+
|
1543
|
+
"CurrencyBorrowed(address,uint256)": TypedContractEvent<
|
1544
|
+
CurrencyBorrowedEvent.InputTuple,
|
1545
|
+
CurrencyBorrowedEvent.OutputTuple,
|
1546
|
+
CurrencyBorrowedEvent.OutputObject
|
1547
|
+
>;
|
1548
|
+
CurrencyBorrowed: TypedContractEvent<
|
1549
|
+
CurrencyBorrowedEvent.InputTuple,
|
1550
|
+
CurrencyBorrowedEvent.OutputTuple,
|
1551
|
+
CurrencyBorrowedEvent.OutputObject
|
1552
|
+
>;
|
1553
|
+
|
1554
|
+
"CurrencyRepaid(address,uint256)": TypedContractEvent<
|
1555
|
+
CurrencyRepaidEvent.InputTuple,
|
1556
|
+
CurrencyRepaidEvent.OutputTuple,
|
1557
|
+
CurrencyRepaidEvent.OutputObject
|
1558
|
+
>;
|
1559
|
+
CurrencyRepaid: TypedContractEvent<
|
1560
|
+
CurrencyRepaidEvent.InputTuple,
|
1561
|
+
CurrencyRepaidEvent.OutputTuple,
|
1562
|
+
CurrencyRepaidEvent.OutputObject
|
1563
|
+
>;
|
1564
|
+
|
1565
|
+
"CurrencyUpdated(address,address)": TypedContractEvent<
|
1566
|
+
CurrencyUpdatedEvent.InputTuple,
|
1567
|
+
CurrencyUpdatedEvent.OutputTuple,
|
1568
|
+
CurrencyUpdatedEvent.OutputObject
|
1569
|
+
>;
|
1570
|
+
CurrencyUpdated: TypedContractEvent<
|
1571
|
+
CurrencyUpdatedEvent.InputTuple,
|
1572
|
+
CurrencyUpdatedEvent.OutputTuple,
|
1573
|
+
CurrencyUpdatedEvent.OutputObject
|
1574
|
+
>;
|
1575
|
+
|
1576
|
+
"Initialized(uint64)": TypedContractEvent<
|
1577
|
+
InitializedEvent.InputTuple,
|
1578
|
+
InitializedEvent.OutputTuple,
|
1579
|
+
InitializedEvent.OutputObject
|
1580
|
+
>;
|
1581
|
+
Initialized: TypedContractEvent<
|
1582
|
+
InitializedEvent.InputTuple,
|
1583
|
+
InitializedEvent.OutputTuple,
|
1584
|
+
InitializedEvent.OutputObject
|
1585
|
+
>;
|
1586
|
+
|
1587
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<
|
1588
|
+
OwnershipTransferredEvent.InputTuple,
|
1589
|
+
OwnershipTransferredEvent.OutputTuple,
|
1590
|
+
OwnershipTransferredEvent.OutputObject
|
1591
|
+
>;
|
1592
|
+
OwnershipTransferred: TypedContractEvent<
|
1593
|
+
OwnershipTransferredEvent.InputTuple,
|
1594
|
+
OwnershipTransferredEvent.OutputTuple,
|
1595
|
+
OwnershipTransferredEvent.OutputObject
|
1596
|
+
>;
|
1597
|
+
|
1598
|
+
"PositionCreated(address,uint256,uint256,uint256,uint256)": TypedContractEvent<
|
1599
|
+
PositionCreatedEvent.InputTuple,
|
1600
|
+
PositionCreatedEvent.OutputTuple,
|
1601
|
+
PositionCreatedEvent.OutputObject
|
1602
|
+
>;
|
1603
|
+
PositionCreated: TypedContractEvent<
|
1604
|
+
PositionCreatedEvent.InputTuple,
|
1605
|
+
PositionCreatedEvent.OutputTuple,
|
1606
|
+
PositionCreatedEvent.OutputObject
|
1607
|
+
>;
|
1608
|
+
|
1609
|
+
"PositionReduced(address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)": TypedContractEvent<
|
1610
|
+
PositionReducedEvent.InputTuple,
|
1611
|
+
PositionReducedEvent.OutputTuple,
|
1612
|
+
PositionReducedEvent.OutputObject
|
1613
|
+
>;
|
1614
|
+
PositionReduced: TypedContractEvent<
|
1615
|
+
PositionReducedEvent.InputTuple,
|
1616
|
+
PositionReducedEvent.OutputTuple,
|
1617
|
+
PositionReducedEvent.OutputObject
|
1618
|
+
>;
|
1619
|
+
|
1620
|
+
"PriceUpdated(uint256,uint256,uint256)": TypedContractEvent<
|
1621
|
+
PriceUpdatedEvent.InputTuple,
|
1622
|
+
PriceUpdatedEvent.OutputTuple,
|
1623
|
+
PriceUpdatedEvent.OutputObject
|
1624
|
+
>;
|
1625
|
+
PriceUpdated: TypedContractEvent<
|
1626
|
+
PriceUpdatedEvent.InputTuple,
|
1627
|
+
PriceUpdatedEvent.OutputTuple,
|
1628
|
+
PriceUpdatedEvent.OutputObject
|
1629
|
+
>;
|
1630
|
+
|
1631
|
+
"ReduceEnabledUpdated(bool)": TypedContractEvent<
|
1632
|
+
ReduceEnabledUpdatedEvent.InputTuple,
|
1633
|
+
ReduceEnabledUpdatedEvent.OutputTuple,
|
1634
|
+
ReduceEnabledUpdatedEvent.OutputObject
|
1635
|
+
>;
|
1636
|
+
ReduceEnabledUpdated: TypedContractEvent<
|
1637
|
+
ReduceEnabledUpdatedEvent.InputTuple,
|
1638
|
+
ReduceEnabledUpdatedEvent.OutputTuple,
|
1639
|
+
ReduceEnabledUpdatedEvent.OutputObject
|
1640
|
+
>;
|
1641
|
+
|
1642
|
+
"RewardConfigsUpdated()": TypedContractEvent<
|
1643
|
+
RewardConfigsUpdatedEvent.InputTuple,
|
1644
|
+
RewardConfigsUpdatedEvent.OutputTuple,
|
1645
|
+
RewardConfigsUpdatedEvent.OutputObject
|
1646
|
+
>;
|
1647
|
+
RewardConfigsUpdated: TypedContractEvent<
|
1648
|
+
RewardConfigsUpdatedEvent.InputTuple,
|
1649
|
+
RewardConfigsUpdatedEvent.OutputTuple,
|
1650
|
+
RewardConfigsUpdatedEvent.OutputObject
|
1651
|
+
>;
|
1652
|
+
|
1653
|
+
"RewardTokenUpdated(address,address)": TypedContractEvent<
|
1654
|
+
RewardTokenUpdatedEvent.InputTuple,
|
1655
|
+
RewardTokenUpdatedEvent.OutputTuple,
|
1656
|
+
RewardTokenUpdatedEvent.OutputObject
|
1657
|
+
>;
|
1658
|
+
RewardTokenUpdated: TypedContractEvent<
|
1659
|
+
RewardTokenUpdatedEvent.InputTuple,
|
1660
|
+
RewardTokenUpdatedEvent.OutputTuple,
|
1661
|
+
RewardTokenUpdatedEvent.OutputObject
|
1662
|
+
>;
|
1663
|
+
|
1664
|
+
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<
|
1665
|
+
RoleAdminChangedEvent.InputTuple,
|
1666
|
+
RoleAdminChangedEvent.OutputTuple,
|
1667
|
+
RoleAdminChangedEvent.OutputObject
|
1668
|
+
>;
|
1669
|
+
RoleAdminChanged: TypedContractEvent<
|
1670
|
+
RoleAdminChangedEvent.InputTuple,
|
1671
|
+
RoleAdminChangedEvent.OutputTuple,
|
1672
|
+
RoleAdminChangedEvent.OutputObject
|
1673
|
+
>;
|
1674
|
+
|
1675
|
+
"RoleGranted(bytes32,address,address)": TypedContractEvent<
|
1676
|
+
RoleGrantedEvent.InputTuple,
|
1677
|
+
RoleGrantedEvent.OutputTuple,
|
1678
|
+
RoleGrantedEvent.OutputObject
|
1679
|
+
>;
|
1680
|
+
RoleGranted: TypedContractEvent<
|
1681
|
+
RoleGrantedEvent.InputTuple,
|
1682
|
+
RoleGrantedEvent.OutputTuple,
|
1683
|
+
RoleGrantedEvent.OutputObject
|
1684
|
+
>;
|
1685
|
+
|
1686
|
+
"RoleRevoked(bytes32,address,address)": TypedContractEvent<
|
1687
|
+
RoleRevokedEvent.InputTuple,
|
1688
|
+
RoleRevokedEvent.OutputTuple,
|
1689
|
+
RoleRevokedEvent.OutputObject
|
1690
|
+
>;
|
1691
|
+
RoleRevoked: TypedContractEvent<
|
1692
|
+
RoleRevokedEvent.InputTuple,
|
1693
|
+
RoleRevokedEvent.OutputTuple,
|
1694
|
+
RoleRevokedEvent.OutputObject
|
1695
|
+
>;
|
1696
|
+
|
1697
|
+
"TotalAmountUpdated(uint256)": TypedContractEvent<
|
1698
|
+
TotalAmountUpdatedEvent.InputTuple,
|
1699
|
+
TotalAmountUpdatedEvent.OutputTuple,
|
1700
|
+
TotalAmountUpdatedEvent.OutputObject
|
1701
|
+
>;
|
1702
|
+
TotalAmountUpdated: TypedContractEvent<
|
1703
|
+
TotalAmountUpdatedEvent.InputTuple,
|
1704
|
+
TotalAmountUpdatedEvent.OutputTuple,
|
1705
|
+
TotalAmountUpdatedEvent.OutputObject
|
1706
|
+
>;
|
1707
|
+
|
1708
|
+
"TotalRewardsHarvestedUpdated(uint256,uint256)": TypedContractEvent<
|
1709
|
+
TotalRewardsHarvestedUpdatedEvent.InputTuple,
|
1710
|
+
TotalRewardsHarvestedUpdatedEvent.OutputTuple,
|
1711
|
+
TotalRewardsHarvestedUpdatedEvent.OutputObject
|
1712
|
+
>;
|
1713
|
+
TotalRewardsHarvestedUpdated: TypedContractEvent<
|
1714
|
+
TotalRewardsHarvestedUpdatedEvent.InputTuple,
|
1715
|
+
TotalRewardsHarvestedUpdatedEvent.OutputTuple,
|
1716
|
+
TotalRewardsHarvestedUpdatedEvent.OutputObject
|
1717
|
+
>;
|
1718
|
+
|
1719
|
+
"TotalRewardsUpdated(uint256,uint256)": TypedContractEvent<
|
1720
|
+
TotalRewardsUpdatedEvent.InputTuple,
|
1721
|
+
TotalRewardsUpdatedEvent.OutputTuple,
|
1722
|
+
TotalRewardsUpdatedEvent.OutputObject
|
1723
|
+
>;
|
1724
|
+
TotalRewardsUpdated: TypedContractEvent<
|
1725
|
+
TotalRewardsUpdatedEvent.InputTuple,
|
1726
|
+
TotalRewardsUpdatedEvent.OutputTuple,
|
1727
|
+
TotalRewardsUpdatedEvent.OutputObject
|
1728
|
+
>;
|
1729
|
+
|
1730
|
+
"Transfer(address,address,uint256)": TypedContractEvent<
|
1731
|
+
TransferEvent.InputTuple,
|
1732
|
+
TransferEvent.OutputTuple,
|
1733
|
+
TransferEvent.OutputObject
|
1734
|
+
>;
|
1735
|
+
Transfer: TypedContractEvent<
|
1736
|
+
TransferEvent.InputTuple,
|
1737
|
+
TransferEvent.OutputTuple,
|
1738
|
+
TransferEvent.OutputObject
|
1739
|
+
>;
|
1740
|
+
|
1741
|
+
"TreasuryUpdated(address,address)": TypedContractEvent<
|
1742
|
+
TreasuryUpdatedEvent.InputTuple,
|
1743
|
+
TreasuryUpdatedEvent.OutputTuple,
|
1744
|
+
TreasuryUpdatedEvent.OutputObject
|
1745
|
+
>;
|
1746
|
+
TreasuryUpdated: TypedContractEvent<
|
1747
|
+
TreasuryUpdatedEvent.InputTuple,
|
1748
|
+
TreasuryUpdatedEvent.OutputTuple,
|
1749
|
+
TreasuryUpdatedEvent.OutputObject
|
1750
|
+
>;
|
1751
|
+
};
|
1752
|
+
}
|