@d8x/perpetuals-sdk 2.5.1 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/cjs/abi/CompositeToken.json +894 -0
  2. package/dist/cjs/contracts/CompositeToken.d.ts +426 -0
  3. package/dist/cjs/contracts/CompositeToken.js +3 -0
  4. package/dist/cjs/contracts/CompositeToken.js.map +1 -0
  5. package/dist/cjs/contracts/factories/CompositeToken__factory.d.ts +689 -0
  6. package/dist/cjs/contracts/factories/CompositeToken__factory.js +912 -0
  7. package/dist/cjs/contracts/factories/CompositeToken__factory.js.map +1 -0
  8. package/dist/cjs/contracts/factories/index.d.ts +1 -0
  9. package/dist/cjs/contracts/factories/index.js +3 -1
  10. package/dist/cjs/contracts/factories/index.js.map +1 -1
  11. package/dist/cjs/contracts/index.d.ts +2 -0
  12. package/dist/cjs/contracts/index.js +3 -1
  13. package/dist/cjs/contracts/index.js.map +1 -1
  14. package/dist/cjs/marketData.js +10 -1
  15. package/dist/cjs/marketData.js.map +1 -1
  16. package/dist/cjs/version.d.ts +1 -1
  17. package/dist/cjs/version.js +1 -1
  18. package/dist/esm/abi/CompositeToken.json +894 -0
  19. package/dist/esm/contracts/CompositeToken.d.ts +426 -0
  20. package/dist/esm/contracts/CompositeToken.js +2 -0
  21. package/dist/esm/contracts/CompositeToken.js.map +1 -0
  22. package/dist/esm/contracts/factories/CompositeToken__factory.d.ts +689 -0
  23. package/dist/esm/contracts/factories/CompositeToken__factory.js +908 -0
  24. package/dist/esm/contracts/factories/CompositeToken__factory.js.map +1 -0
  25. package/dist/esm/contracts/factories/index.d.ts +1 -0
  26. package/dist/esm/contracts/factories/index.js +1 -0
  27. package/dist/esm/contracts/factories/index.js.map +1 -1
  28. package/dist/esm/contracts/index.d.ts +2 -0
  29. package/dist/esm/contracts/index.js +1 -0
  30. package/dist/esm/contracts/index.js.map +1 -1
  31. package/dist/esm/marketData.js +11 -2
  32. package/dist/esm/marketData.js.map +1 -1
  33. package/dist/esm/version.d.ts +1 -1
  34. package/dist/esm/version.js +1 -1
  35. package/package.json +1 -1
  36. package/src/abi/CompositeToken.json +894 -0
  37. package/src/contracts/CompositeToken.ts +845 -0
  38. package/src/contracts/factories/CompositeToken__factory.ts +917 -0
  39. package/src/contracts/factories/index.ts +1 -0
  40. package/src/contracts/index.ts +2 -0
  41. package/src/marketData.ts +11 -3
  42. package/src/version.ts +1 -1
@@ -0,0 +1,845 @@
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 interface CompositeTokenInterface extends Interface {
27
+ getFunction(
28
+ nameOrSignature:
29
+ | "CMP_DECIMALS"
30
+ | "UPGRADE_INTERFACE_VERSION"
31
+ | "addTokens"
32
+ | "allowance"
33
+ | "approve"
34
+ | "balanceOf"
35
+ | "controller"
36
+ | "decimals"
37
+ | "effectiveBalanceOf"
38
+ | "getSupportedTokens"
39
+ | "initialize"
40
+ | "latestRoundData"
41
+ | "name"
42
+ | "owner"
43
+ | "proxiableUUID"
44
+ | "registerAccount"
45
+ | "registeredToken"
46
+ | "removeTokens"
47
+ | "renounceOwnership"
48
+ | "setController"
49
+ | "supportedToken"
50
+ | "symbol"
51
+ | "totalInvested"
52
+ | "totalSupply"
53
+ | "totalValue"
54
+ | "transfer"
55
+ | "transferFrom"
56
+ | "transferOwnership"
57
+ | "upgradeToAndCall"
58
+ ): FunctionFragment;
59
+
60
+ getEvent(
61
+ nameOrSignatureOrTopic:
62
+ | "AccountRegistered"
63
+ | "Approval"
64
+ | "ControllerSet"
65
+ | "Initialized"
66
+ | "OwnershipTransferred"
67
+ | "TokenSupported"
68
+ | "Transfer"
69
+ | "Upgraded"
70
+ ): EventFragment;
71
+
72
+ encodeFunctionData(
73
+ functionFragment: "CMP_DECIMALS",
74
+ values?: undefined
75
+ ): string;
76
+ encodeFunctionData(
77
+ functionFragment: "UPGRADE_INTERFACE_VERSION",
78
+ values?: undefined
79
+ ): string;
80
+ encodeFunctionData(
81
+ functionFragment: "addTokens",
82
+ values: [AddressLike[], AddressLike[], BytesLike[]]
83
+ ): string;
84
+ encodeFunctionData(
85
+ functionFragment: "allowance",
86
+ values: [AddressLike, AddressLike]
87
+ ): string;
88
+ encodeFunctionData(
89
+ functionFragment: "approve",
90
+ values: [AddressLike, BigNumberish]
91
+ ): string;
92
+ encodeFunctionData(
93
+ functionFragment: "balanceOf",
94
+ values: [AddressLike]
95
+ ): string;
96
+ encodeFunctionData(
97
+ functionFragment: "controller",
98
+ values?: undefined
99
+ ): string;
100
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
101
+ encodeFunctionData(
102
+ functionFragment: "effectiveBalanceOf",
103
+ values: [AddressLike]
104
+ ): string;
105
+ encodeFunctionData(
106
+ functionFragment: "getSupportedTokens",
107
+ values?: undefined
108
+ ): string;
109
+ encodeFunctionData(
110
+ functionFragment: "initialize",
111
+ values: [AddressLike, AddressLike[], AddressLike[], BytesLike[]]
112
+ ): string;
113
+ encodeFunctionData(
114
+ functionFragment: "latestRoundData",
115
+ values?: undefined
116
+ ): string;
117
+ encodeFunctionData(functionFragment: "name", values?: undefined): string;
118
+ encodeFunctionData(functionFragment: "owner", values?: undefined): string;
119
+ encodeFunctionData(
120
+ functionFragment: "proxiableUUID",
121
+ values?: undefined
122
+ ): string;
123
+ encodeFunctionData(
124
+ functionFragment: "registerAccount",
125
+ values: [AddressLike]
126
+ ): string;
127
+ encodeFunctionData(
128
+ functionFragment: "registeredToken",
129
+ values: [AddressLike]
130
+ ): string;
131
+ encodeFunctionData(
132
+ functionFragment: "removeTokens",
133
+ values: [AddressLike[]]
134
+ ): string;
135
+ encodeFunctionData(
136
+ functionFragment: "renounceOwnership",
137
+ values?: undefined
138
+ ): string;
139
+ encodeFunctionData(
140
+ functionFragment: "setController",
141
+ values: [AddressLike]
142
+ ): string;
143
+ encodeFunctionData(
144
+ functionFragment: "supportedToken",
145
+ values: [AddressLike]
146
+ ): string;
147
+ encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
148
+ encodeFunctionData(
149
+ functionFragment: "totalInvested",
150
+ values: [AddressLike]
151
+ ): string;
152
+ encodeFunctionData(
153
+ functionFragment: "totalSupply",
154
+ values?: undefined
155
+ ): string;
156
+ encodeFunctionData(
157
+ functionFragment: "totalValue",
158
+ values?: undefined
159
+ ): string;
160
+ encodeFunctionData(
161
+ functionFragment: "transfer",
162
+ values: [AddressLike, BigNumberish]
163
+ ): string;
164
+ encodeFunctionData(
165
+ functionFragment: "transferFrom",
166
+ values: [AddressLike, AddressLike, BigNumberish]
167
+ ): string;
168
+ encodeFunctionData(
169
+ functionFragment: "transferOwnership",
170
+ values: [AddressLike]
171
+ ): string;
172
+ encodeFunctionData(
173
+ functionFragment: "upgradeToAndCall",
174
+ values: [AddressLike, BytesLike]
175
+ ): string;
176
+
177
+ decodeFunctionResult(
178
+ functionFragment: "CMP_DECIMALS",
179
+ data: BytesLike
180
+ ): Result;
181
+ decodeFunctionResult(
182
+ functionFragment: "UPGRADE_INTERFACE_VERSION",
183
+ data: BytesLike
184
+ ): Result;
185
+ decodeFunctionResult(functionFragment: "addTokens", data: BytesLike): Result;
186
+ decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
187
+ decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
188
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
189
+ decodeFunctionResult(functionFragment: "controller", data: BytesLike): Result;
190
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
191
+ decodeFunctionResult(
192
+ functionFragment: "effectiveBalanceOf",
193
+ data: BytesLike
194
+ ): Result;
195
+ decodeFunctionResult(
196
+ functionFragment: "getSupportedTokens",
197
+ data: BytesLike
198
+ ): Result;
199
+ decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
200
+ decodeFunctionResult(
201
+ functionFragment: "latestRoundData",
202
+ data: BytesLike
203
+ ): Result;
204
+ decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
205
+ decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
206
+ decodeFunctionResult(
207
+ functionFragment: "proxiableUUID",
208
+ data: BytesLike
209
+ ): Result;
210
+ decodeFunctionResult(
211
+ functionFragment: "registerAccount",
212
+ data: BytesLike
213
+ ): Result;
214
+ decodeFunctionResult(
215
+ functionFragment: "registeredToken",
216
+ data: BytesLike
217
+ ): Result;
218
+ decodeFunctionResult(
219
+ functionFragment: "removeTokens",
220
+ data: BytesLike
221
+ ): Result;
222
+ decodeFunctionResult(
223
+ functionFragment: "renounceOwnership",
224
+ data: BytesLike
225
+ ): Result;
226
+ decodeFunctionResult(
227
+ functionFragment: "setController",
228
+ data: BytesLike
229
+ ): Result;
230
+ decodeFunctionResult(
231
+ functionFragment: "supportedToken",
232
+ data: BytesLike
233
+ ): Result;
234
+ decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
235
+ decodeFunctionResult(
236
+ functionFragment: "totalInvested",
237
+ data: BytesLike
238
+ ): Result;
239
+ decodeFunctionResult(
240
+ functionFragment: "totalSupply",
241
+ data: BytesLike
242
+ ): Result;
243
+ decodeFunctionResult(functionFragment: "totalValue", data: BytesLike): Result;
244
+ decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
245
+ decodeFunctionResult(
246
+ functionFragment: "transferFrom",
247
+ data: BytesLike
248
+ ): Result;
249
+ decodeFunctionResult(
250
+ functionFragment: "transferOwnership",
251
+ data: BytesLike
252
+ ): Result;
253
+ decodeFunctionResult(
254
+ functionFragment: "upgradeToAndCall",
255
+ data: BytesLike
256
+ ): Result;
257
+ }
258
+
259
+ export namespace AccountRegisteredEvent {
260
+ export type InputTuple = [token: AddressLike, account: AddressLike];
261
+ export type OutputTuple = [token: string, account: string];
262
+ export interface OutputObject {
263
+ token: string;
264
+ account: string;
265
+ }
266
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
267
+ export type Filter = TypedDeferredTopicFilter<Event>;
268
+ export type Log = TypedEventLog<Event>;
269
+ export type LogDescription = TypedLogDescription<Event>;
270
+ }
271
+
272
+ export namespace ApprovalEvent {
273
+ export type InputTuple = [
274
+ owner: AddressLike,
275
+ spender: AddressLike,
276
+ value: BigNumberish
277
+ ];
278
+ export type OutputTuple = [owner: string, spender: string, value: bigint];
279
+ export interface OutputObject {
280
+ owner: string;
281
+ spender: string;
282
+ value: bigint;
283
+ }
284
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
285
+ export type Filter = TypedDeferredTopicFilter<Event>;
286
+ export type Log = TypedEventLog<Event>;
287
+ export type LogDescription = TypedLogDescription<Event>;
288
+ }
289
+
290
+ export namespace ControllerSetEvent {
291
+ export type InputTuple = [
292
+ oldController: AddressLike,
293
+ newController: AddressLike
294
+ ];
295
+ export type OutputTuple = [oldController: string, newController: string];
296
+ export interface OutputObject {
297
+ oldController: string;
298
+ newController: string;
299
+ }
300
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
301
+ export type Filter = TypedDeferredTopicFilter<Event>;
302
+ export type Log = TypedEventLog<Event>;
303
+ export type LogDescription = TypedLogDescription<Event>;
304
+ }
305
+
306
+ export namespace InitializedEvent {
307
+ export type InputTuple = [version: BigNumberish];
308
+ export type OutputTuple = [version: bigint];
309
+ export interface OutputObject {
310
+ version: bigint;
311
+ }
312
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
313
+ export type Filter = TypedDeferredTopicFilter<Event>;
314
+ export type Log = TypedEventLog<Event>;
315
+ export type LogDescription = TypedLogDescription<Event>;
316
+ }
317
+
318
+ export namespace OwnershipTransferredEvent {
319
+ export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
320
+ export type OutputTuple = [previousOwner: string, newOwner: string];
321
+ export interface OutputObject {
322
+ previousOwner: string;
323
+ newOwner: string;
324
+ }
325
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
326
+ export type Filter = TypedDeferredTopicFilter<Event>;
327
+ export type Log = TypedEventLog<Event>;
328
+ export type LogDescription = TypedLogDescription<Event>;
329
+ }
330
+
331
+ export namespace TokenSupportedEvent {
332
+ export type InputTuple = [token: AddressLike, supported: boolean];
333
+ export type OutputTuple = [token: string, supported: boolean];
334
+ export interface OutputObject {
335
+ token: string;
336
+ supported: boolean;
337
+ }
338
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
339
+ export type Filter = TypedDeferredTopicFilter<Event>;
340
+ export type Log = TypedEventLog<Event>;
341
+ export type LogDescription = TypedLogDescription<Event>;
342
+ }
343
+
344
+ export namespace TransferEvent {
345
+ export type InputTuple = [
346
+ from: AddressLike,
347
+ to: AddressLike,
348
+ value: BigNumberish
349
+ ];
350
+ export type OutputTuple = [from: string, to: string, value: bigint];
351
+ export interface OutputObject {
352
+ from: string;
353
+ to: string;
354
+ value: bigint;
355
+ }
356
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
357
+ export type Filter = TypedDeferredTopicFilter<Event>;
358
+ export type Log = TypedEventLog<Event>;
359
+ export type LogDescription = TypedLogDescription<Event>;
360
+ }
361
+
362
+ export namespace UpgradedEvent {
363
+ export type InputTuple = [implementation: AddressLike];
364
+ export type OutputTuple = [implementation: string];
365
+ export interface OutputObject {
366
+ implementation: string;
367
+ }
368
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
369
+ export type Filter = TypedDeferredTopicFilter<Event>;
370
+ export type Log = TypedEventLog<Event>;
371
+ export type LogDescription = TypedLogDescription<Event>;
372
+ }
373
+
374
+ export interface CompositeToken extends BaseContract {
375
+ connect(runner?: ContractRunner | null): CompositeToken;
376
+ waitForDeployment(): Promise<this>;
377
+
378
+ interface: CompositeTokenInterface;
379
+
380
+ queryFilter<TCEvent extends TypedContractEvent>(
381
+ event: TCEvent,
382
+ fromBlockOrBlockhash?: string | number | undefined,
383
+ toBlock?: string | number | undefined
384
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
385
+ queryFilter<TCEvent extends TypedContractEvent>(
386
+ filter: TypedDeferredTopicFilter<TCEvent>,
387
+ fromBlockOrBlockhash?: string | number | undefined,
388
+ toBlock?: string | number | undefined
389
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
390
+
391
+ on<TCEvent extends TypedContractEvent>(
392
+ event: TCEvent,
393
+ listener: TypedListener<TCEvent>
394
+ ): Promise<this>;
395
+ on<TCEvent extends TypedContractEvent>(
396
+ filter: TypedDeferredTopicFilter<TCEvent>,
397
+ listener: TypedListener<TCEvent>
398
+ ): Promise<this>;
399
+
400
+ once<TCEvent extends TypedContractEvent>(
401
+ event: TCEvent,
402
+ listener: TypedListener<TCEvent>
403
+ ): Promise<this>;
404
+ once<TCEvent extends TypedContractEvent>(
405
+ filter: TypedDeferredTopicFilter<TCEvent>,
406
+ listener: TypedListener<TCEvent>
407
+ ): Promise<this>;
408
+
409
+ listeners<TCEvent extends TypedContractEvent>(
410
+ event: TCEvent
411
+ ): Promise<Array<TypedListener<TCEvent>>>;
412
+ listeners(eventName?: string): Promise<Array<Listener>>;
413
+ removeAllListeners<TCEvent extends TypedContractEvent>(
414
+ event?: TCEvent
415
+ ): Promise<this>;
416
+
417
+ CMP_DECIMALS: TypedContractMethod<[], [bigint], "view">;
418
+
419
+ UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
420
+
421
+ addTokens: TypedContractMethod<
422
+ [_tokens: AddressLike[], _feeds: AddressLike[], _ids: BytesLike[]],
423
+ [void],
424
+ "nonpayable"
425
+ >;
426
+
427
+ allowance: TypedContractMethod<
428
+ [_owner: AddressLike, _spender: AddressLike],
429
+ [bigint],
430
+ "view"
431
+ >;
432
+
433
+ approve: TypedContractMethod<
434
+ [spender: AddressLike, value: BigNumberish],
435
+ [boolean],
436
+ "nonpayable"
437
+ >;
438
+
439
+ balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
440
+
441
+ controller: TypedContractMethod<[], [string], "view">;
442
+
443
+ decimals: TypedContractMethod<[], [bigint], "view">;
444
+
445
+ effectiveBalanceOf: TypedContractMethod<
446
+ [_account: AddressLike],
447
+ [bigint],
448
+ "view"
449
+ >;
450
+
451
+ getSupportedTokens: TypedContractMethod<[], [string[]], "view">;
452
+
453
+ initialize: TypedContractMethod<
454
+ [
455
+ _owner: AddressLike,
456
+ _tokens: AddressLike[],
457
+ _feeds: AddressLike[],
458
+ _ids: BytesLike[]
459
+ ],
460
+ [void],
461
+ "nonpayable"
462
+ >;
463
+
464
+ latestRoundData: TypedContractMethod<
465
+ [],
466
+ [
467
+ [bigint, bigint, bigint, bigint, bigint] & {
468
+ roundId: bigint;
469
+ answer: bigint;
470
+ startedAt: bigint;
471
+ updatedAt: bigint;
472
+ answeredInRound: bigint;
473
+ }
474
+ ],
475
+ "view"
476
+ >;
477
+
478
+ name: TypedContractMethod<[], [string], "view">;
479
+
480
+ owner: TypedContractMethod<[], [string], "view">;
481
+
482
+ proxiableUUID: TypedContractMethod<[], [string], "view">;
483
+
484
+ registerAccount: TypedContractMethod<
485
+ [_token: AddressLike],
486
+ [void],
487
+ "nonpayable"
488
+ >;
489
+
490
+ registeredToken: TypedContractMethod<[arg0: AddressLike], [string], "view">;
491
+
492
+ removeTokens: TypedContractMethod<
493
+ [_tokens: AddressLike[]],
494
+ [void],
495
+ "nonpayable"
496
+ >;
497
+
498
+ renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
499
+
500
+ setController: TypedContractMethod<
501
+ [_newController: AddressLike],
502
+ [void],
503
+ "nonpayable"
504
+ >;
505
+
506
+ supportedToken: TypedContractMethod<
507
+ [arg0: AddressLike],
508
+ [
509
+ [string, string, bigint, bigint] & {
510
+ id: string;
511
+ feed: string;
512
+ tokenDecimals: bigint;
513
+ feedDecimals: bigint;
514
+ }
515
+ ],
516
+ "view"
517
+ >;
518
+
519
+ symbol: TypedContractMethod<[], [string], "view">;
520
+
521
+ totalInvested: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
522
+
523
+ totalSupply: TypedContractMethod<[], [bigint], "view">;
524
+
525
+ totalValue: TypedContractMethod<[], [bigint], "view">;
526
+
527
+ transfer: TypedContractMethod<
528
+ [to: AddressLike, value: BigNumberish],
529
+ [boolean],
530
+ "nonpayable"
531
+ >;
532
+
533
+ transferFrom: TypedContractMethod<
534
+ [from: AddressLike, to: AddressLike, value: BigNumberish],
535
+ [boolean],
536
+ "nonpayable"
537
+ >;
538
+
539
+ transferOwnership: TypedContractMethod<
540
+ [newOwner: AddressLike],
541
+ [void],
542
+ "nonpayable"
543
+ >;
544
+
545
+ upgradeToAndCall: TypedContractMethod<
546
+ [newImplementation: AddressLike, data: BytesLike],
547
+ [void],
548
+ "payable"
549
+ >;
550
+
551
+ getFunction<T extends ContractMethod = ContractMethod>(
552
+ key: string | FunctionFragment
553
+ ): T;
554
+
555
+ getFunction(
556
+ nameOrSignature: "CMP_DECIMALS"
557
+ ): TypedContractMethod<[], [bigint], "view">;
558
+ getFunction(
559
+ nameOrSignature: "UPGRADE_INTERFACE_VERSION"
560
+ ): TypedContractMethod<[], [string], "view">;
561
+ getFunction(
562
+ nameOrSignature: "addTokens"
563
+ ): TypedContractMethod<
564
+ [_tokens: AddressLike[], _feeds: AddressLike[], _ids: BytesLike[]],
565
+ [void],
566
+ "nonpayable"
567
+ >;
568
+ getFunction(
569
+ nameOrSignature: "allowance"
570
+ ): TypedContractMethod<
571
+ [_owner: AddressLike, _spender: AddressLike],
572
+ [bigint],
573
+ "view"
574
+ >;
575
+ getFunction(
576
+ nameOrSignature: "approve"
577
+ ): TypedContractMethod<
578
+ [spender: AddressLike, value: BigNumberish],
579
+ [boolean],
580
+ "nonpayable"
581
+ >;
582
+ getFunction(
583
+ nameOrSignature: "balanceOf"
584
+ ): TypedContractMethod<[account: AddressLike], [bigint], "view">;
585
+ getFunction(
586
+ nameOrSignature: "controller"
587
+ ): TypedContractMethod<[], [string], "view">;
588
+ getFunction(
589
+ nameOrSignature: "decimals"
590
+ ): TypedContractMethod<[], [bigint], "view">;
591
+ getFunction(
592
+ nameOrSignature: "effectiveBalanceOf"
593
+ ): TypedContractMethod<[_account: AddressLike], [bigint], "view">;
594
+ getFunction(
595
+ nameOrSignature: "getSupportedTokens"
596
+ ): TypedContractMethod<[], [string[]], "view">;
597
+ getFunction(
598
+ nameOrSignature: "initialize"
599
+ ): TypedContractMethod<
600
+ [
601
+ _owner: AddressLike,
602
+ _tokens: AddressLike[],
603
+ _feeds: AddressLike[],
604
+ _ids: BytesLike[]
605
+ ],
606
+ [void],
607
+ "nonpayable"
608
+ >;
609
+ getFunction(
610
+ nameOrSignature: "latestRoundData"
611
+ ): TypedContractMethod<
612
+ [],
613
+ [
614
+ [bigint, bigint, bigint, bigint, bigint] & {
615
+ roundId: bigint;
616
+ answer: bigint;
617
+ startedAt: bigint;
618
+ updatedAt: bigint;
619
+ answeredInRound: bigint;
620
+ }
621
+ ],
622
+ "view"
623
+ >;
624
+ getFunction(
625
+ nameOrSignature: "name"
626
+ ): TypedContractMethod<[], [string], "view">;
627
+ getFunction(
628
+ nameOrSignature: "owner"
629
+ ): TypedContractMethod<[], [string], "view">;
630
+ getFunction(
631
+ nameOrSignature: "proxiableUUID"
632
+ ): TypedContractMethod<[], [string], "view">;
633
+ getFunction(
634
+ nameOrSignature: "registerAccount"
635
+ ): TypedContractMethod<[_token: AddressLike], [void], "nonpayable">;
636
+ getFunction(
637
+ nameOrSignature: "registeredToken"
638
+ ): TypedContractMethod<[arg0: AddressLike], [string], "view">;
639
+ getFunction(
640
+ nameOrSignature: "removeTokens"
641
+ ): TypedContractMethod<[_tokens: AddressLike[]], [void], "nonpayable">;
642
+ getFunction(
643
+ nameOrSignature: "renounceOwnership"
644
+ ): TypedContractMethod<[], [void], "nonpayable">;
645
+ getFunction(
646
+ nameOrSignature: "setController"
647
+ ): TypedContractMethod<[_newController: AddressLike], [void], "nonpayable">;
648
+ getFunction(
649
+ nameOrSignature: "supportedToken"
650
+ ): TypedContractMethod<
651
+ [arg0: AddressLike],
652
+ [
653
+ [string, string, bigint, bigint] & {
654
+ id: string;
655
+ feed: string;
656
+ tokenDecimals: bigint;
657
+ feedDecimals: bigint;
658
+ }
659
+ ],
660
+ "view"
661
+ >;
662
+ getFunction(
663
+ nameOrSignature: "symbol"
664
+ ): TypedContractMethod<[], [string], "view">;
665
+ getFunction(
666
+ nameOrSignature: "totalInvested"
667
+ ): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
668
+ getFunction(
669
+ nameOrSignature: "totalSupply"
670
+ ): TypedContractMethod<[], [bigint], "view">;
671
+ getFunction(
672
+ nameOrSignature: "totalValue"
673
+ ): TypedContractMethod<[], [bigint], "view">;
674
+ getFunction(
675
+ nameOrSignature: "transfer"
676
+ ): TypedContractMethod<
677
+ [to: AddressLike, value: BigNumberish],
678
+ [boolean],
679
+ "nonpayable"
680
+ >;
681
+ getFunction(
682
+ nameOrSignature: "transferFrom"
683
+ ): TypedContractMethod<
684
+ [from: AddressLike, to: AddressLike, value: BigNumberish],
685
+ [boolean],
686
+ "nonpayable"
687
+ >;
688
+ getFunction(
689
+ nameOrSignature: "transferOwnership"
690
+ ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
691
+ getFunction(
692
+ nameOrSignature: "upgradeToAndCall"
693
+ ): TypedContractMethod<
694
+ [newImplementation: AddressLike, data: BytesLike],
695
+ [void],
696
+ "payable"
697
+ >;
698
+
699
+ getEvent(
700
+ key: "AccountRegistered"
701
+ ): TypedContractEvent<
702
+ AccountRegisteredEvent.InputTuple,
703
+ AccountRegisteredEvent.OutputTuple,
704
+ AccountRegisteredEvent.OutputObject
705
+ >;
706
+ getEvent(
707
+ key: "Approval"
708
+ ): TypedContractEvent<
709
+ ApprovalEvent.InputTuple,
710
+ ApprovalEvent.OutputTuple,
711
+ ApprovalEvent.OutputObject
712
+ >;
713
+ getEvent(
714
+ key: "ControllerSet"
715
+ ): TypedContractEvent<
716
+ ControllerSetEvent.InputTuple,
717
+ ControllerSetEvent.OutputTuple,
718
+ ControllerSetEvent.OutputObject
719
+ >;
720
+ getEvent(
721
+ key: "Initialized"
722
+ ): TypedContractEvent<
723
+ InitializedEvent.InputTuple,
724
+ InitializedEvent.OutputTuple,
725
+ InitializedEvent.OutputObject
726
+ >;
727
+ getEvent(
728
+ key: "OwnershipTransferred"
729
+ ): TypedContractEvent<
730
+ OwnershipTransferredEvent.InputTuple,
731
+ OwnershipTransferredEvent.OutputTuple,
732
+ OwnershipTransferredEvent.OutputObject
733
+ >;
734
+ getEvent(
735
+ key: "TokenSupported"
736
+ ): TypedContractEvent<
737
+ TokenSupportedEvent.InputTuple,
738
+ TokenSupportedEvent.OutputTuple,
739
+ TokenSupportedEvent.OutputObject
740
+ >;
741
+ getEvent(
742
+ key: "Transfer"
743
+ ): TypedContractEvent<
744
+ TransferEvent.InputTuple,
745
+ TransferEvent.OutputTuple,
746
+ TransferEvent.OutputObject
747
+ >;
748
+ getEvent(
749
+ key: "Upgraded"
750
+ ): TypedContractEvent<
751
+ UpgradedEvent.InputTuple,
752
+ UpgradedEvent.OutputTuple,
753
+ UpgradedEvent.OutputObject
754
+ >;
755
+
756
+ filters: {
757
+ "AccountRegistered(address,address)": TypedContractEvent<
758
+ AccountRegisteredEvent.InputTuple,
759
+ AccountRegisteredEvent.OutputTuple,
760
+ AccountRegisteredEvent.OutputObject
761
+ >;
762
+ AccountRegistered: TypedContractEvent<
763
+ AccountRegisteredEvent.InputTuple,
764
+ AccountRegisteredEvent.OutputTuple,
765
+ AccountRegisteredEvent.OutputObject
766
+ >;
767
+
768
+ "Approval(address,address,uint256)": TypedContractEvent<
769
+ ApprovalEvent.InputTuple,
770
+ ApprovalEvent.OutputTuple,
771
+ ApprovalEvent.OutputObject
772
+ >;
773
+ Approval: TypedContractEvent<
774
+ ApprovalEvent.InputTuple,
775
+ ApprovalEvent.OutputTuple,
776
+ ApprovalEvent.OutputObject
777
+ >;
778
+
779
+ "ControllerSet(address,address)": TypedContractEvent<
780
+ ControllerSetEvent.InputTuple,
781
+ ControllerSetEvent.OutputTuple,
782
+ ControllerSetEvent.OutputObject
783
+ >;
784
+ ControllerSet: TypedContractEvent<
785
+ ControllerSetEvent.InputTuple,
786
+ ControllerSetEvent.OutputTuple,
787
+ ControllerSetEvent.OutputObject
788
+ >;
789
+
790
+ "Initialized(uint64)": TypedContractEvent<
791
+ InitializedEvent.InputTuple,
792
+ InitializedEvent.OutputTuple,
793
+ InitializedEvent.OutputObject
794
+ >;
795
+ Initialized: TypedContractEvent<
796
+ InitializedEvent.InputTuple,
797
+ InitializedEvent.OutputTuple,
798
+ InitializedEvent.OutputObject
799
+ >;
800
+
801
+ "OwnershipTransferred(address,address)": TypedContractEvent<
802
+ OwnershipTransferredEvent.InputTuple,
803
+ OwnershipTransferredEvent.OutputTuple,
804
+ OwnershipTransferredEvent.OutputObject
805
+ >;
806
+ OwnershipTransferred: TypedContractEvent<
807
+ OwnershipTransferredEvent.InputTuple,
808
+ OwnershipTransferredEvent.OutputTuple,
809
+ OwnershipTransferredEvent.OutputObject
810
+ >;
811
+
812
+ "TokenSupported(address,bool)": TypedContractEvent<
813
+ TokenSupportedEvent.InputTuple,
814
+ TokenSupportedEvent.OutputTuple,
815
+ TokenSupportedEvent.OutputObject
816
+ >;
817
+ TokenSupported: TypedContractEvent<
818
+ TokenSupportedEvent.InputTuple,
819
+ TokenSupportedEvent.OutputTuple,
820
+ TokenSupportedEvent.OutputObject
821
+ >;
822
+
823
+ "Transfer(address,address,uint256)": TypedContractEvent<
824
+ TransferEvent.InputTuple,
825
+ TransferEvent.OutputTuple,
826
+ TransferEvent.OutputObject
827
+ >;
828
+ Transfer: TypedContractEvent<
829
+ TransferEvent.InputTuple,
830
+ TransferEvent.OutputTuple,
831
+ TransferEvent.OutputObject
832
+ >;
833
+
834
+ "Upgraded(address)": TypedContractEvent<
835
+ UpgradedEvent.InputTuple,
836
+ UpgradedEvent.OutputTuple,
837
+ UpgradedEvent.OutputObject
838
+ >;
839
+ Upgraded: TypedContractEvent<
840
+ UpgradedEvent.InputTuple,
841
+ UpgradedEvent.OutputTuple,
842
+ UpgradedEvent.OutputObject
843
+ >;
844
+ };
845
+ }