@iotexproject/kit 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1544 -49
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -357,13 +357,1487 @@ declare class ERC20Entity {
|
|
|
357
357
|
}
|
|
358
358
|
];
|
|
359
359
|
get isEther(): boolean;
|
|
360
|
-
|
|
360
|
+
get type(): string;
|
|
361
361
|
totalSupply: number;
|
|
362
362
|
name: string;
|
|
363
363
|
symbol: string;
|
|
364
|
-
decimals: number
|
|
364
|
+
decimals(): Promise<number>;
|
|
365
|
+
balanceOf(account?: `0x${string}`): Promise<{
|
|
366
|
+
value: string;
|
|
367
|
+
format: string;
|
|
368
|
+
originFormat: string;
|
|
369
|
+
decimals: string;
|
|
370
|
+
isZero: boolean;
|
|
371
|
+
}>;
|
|
372
|
+
allowance: (owner: string, spender: string) => Promise<any>;
|
|
373
|
+
approve(spender: `0x${string}`, amount: string, owner: `0x${string}`): Promise<`0x${string}` | null>;
|
|
365
374
|
priceUSD(): Promise<any>;
|
|
366
|
-
tokenUrl(): any
|
|
375
|
+
tokenUrl(): Promise<any>;
|
|
376
|
+
}
|
|
377
|
+
declare class ERC721Entity {
|
|
378
|
+
address: `0x${string}`;
|
|
379
|
+
chainId: string;
|
|
380
|
+
static abi: readonly [
|
|
381
|
+
{
|
|
382
|
+
readonly type: "constructor";
|
|
383
|
+
readonly inputs: readonly [
|
|
384
|
+
{
|
|
385
|
+
readonly name: "name";
|
|
386
|
+
readonly type: "string";
|
|
387
|
+
readonly internalType: "string";
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
readonly name: "symbol";
|
|
391
|
+
readonly type: "string";
|
|
392
|
+
readonly internalType: "string";
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
readonly name: "baseTokenURI";
|
|
396
|
+
readonly type: "string";
|
|
397
|
+
readonly internalType: "string";
|
|
398
|
+
}
|
|
399
|
+
];
|
|
400
|
+
readonly stateMutability: "nonpayable";
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
readonly name: "Approval";
|
|
404
|
+
readonly type: "event";
|
|
405
|
+
readonly inputs: readonly [
|
|
406
|
+
{
|
|
407
|
+
readonly name: "owner";
|
|
408
|
+
readonly type: "address";
|
|
409
|
+
readonly indexed: true;
|
|
410
|
+
readonly internalType: "address";
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
readonly name: "approved";
|
|
414
|
+
readonly type: "address";
|
|
415
|
+
readonly indexed: true;
|
|
416
|
+
readonly internalType: "address";
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
readonly name: "tokenId";
|
|
420
|
+
readonly type: "uint256";
|
|
421
|
+
readonly indexed: true;
|
|
422
|
+
readonly internalType: "uint256";
|
|
423
|
+
}
|
|
424
|
+
];
|
|
425
|
+
readonly anonymous: false;
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
readonly name: "ApprovalForAll";
|
|
429
|
+
readonly type: "event";
|
|
430
|
+
readonly inputs: readonly [
|
|
431
|
+
{
|
|
432
|
+
readonly name: "owner";
|
|
433
|
+
readonly type: "address";
|
|
434
|
+
readonly indexed: true;
|
|
435
|
+
readonly internalType: "address";
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
readonly name: "operator";
|
|
439
|
+
readonly type: "address";
|
|
440
|
+
readonly indexed: true;
|
|
441
|
+
readonly internalType: "address";
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
readonly name: "approved";
|
|
445
|
+
readonly type: "bool";
|
|
446
|
+
readonly indexed: false;
|
|
447
|
+
readonly internalType: "bool";
|
|
448
|
+
}
|
|
449
|
+
];
|
|
450
|
+
readonly anonymous: false;
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
readonly name: "Paused";
|
|
454
|
+
readonly type: "event";
|
|
455
|
+
readonly inputs: readonly [
|
|
456
|
+
{
|
|
457
|
+
readonly name: "account";
|
|
458
|
+
readonly type: "address";
|
|
459
|
+
readonly indexed: false;
|
|
460
|
+
readonly internalType: "address";
|
|
461
|
+
}
|
|
462
|
+
];
|
|
463
|
+
readonly anonymous: false;
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
readonly name: "RoleAdminChanged";
|
|
467
|
+
readonly type: "event";
|
|
468
|
+
readonly inputs: readonly [
|
|
469
|
+
{
|
|
470
|
+
readonly name: "role";
|
|
471
|
+
readonly type: "bytes32";
|
|
472
|
+
readonly indexed: true;
|
|
473
|
+
readonly internalType: "bytes32";
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
readonly name: "previousAdminRole";
|
|
477
|
+
readonly type: "bytes32";
|
|
478
|
+
readonly indexed: true;
|
|
479
|
+
readonly internalType: "bytes32";
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
readonly name: "newAdminRole";
|
|
483
|
+
readonly type: "bytes32";
|
|
484
|
+
readonly indexed: true;
|
|
485
|
+
readonly internalType: "bytes32";
|
|
486
|
+
}
|
|
487
|
+
];
|
|
488
|
+
readonly anonymous: false;
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
readonly name: "RoleGranted";
|
|
492
|
+
readonly type: "event";
|
|
493
|
+
readonly inputs: readonly [
|
|
494
|
+
{
|
|
495
|
+
readonly name: "role";
|
|
496
|
+
readonly type: "bytes32";
|
|
497
|
+
readonly indexed: true;
|
|
498
|
+
readonly internalType: "bytes32";
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
readonly name: "account";
|
|
502
|
+
readonly type: "address";
|
|
503
|
+
readonly indexed: true;
|
|
504
|
+
readonly internalType: "address";
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
readonly name: "sender";
|
|
508
|
+
readonly type: "address";
|
|
509
|
+
readonly indexed: true;
|
|
510
|
+
readonly internalType: "address";
|
|
511
|
+
}
|
|
512
|
+
];
|
|
513
|
+
readonly anonymous: false;
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
readonly name: "RoleRevoked";
|
|
517
|
+
readonly type: "event";
|
|
518
|
+
readonly inputs: readonly [
|
|
519
|
+
{
|
|
520
|
+
readonly name: "role";
|
|
521
|
+
readonly type: "bytes32";
|
|
522
|
+
readonly indexed: true;
|
|
523
|
+
readonly internalType: "bytes32";
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
readonly name: "account";
|
|
527
|
+
readonly type: "address";
|
|
528
|
+
readonly indexed: true;
|
|
529
|
+
readonly internalType: "address";
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
readonly name: "sender";
|
|
533
|
+
readonly type: "address";
|
|
534
|
+
readonly indexed: true;
|
|
535
|
+
readonly internalType: "address";
|
|
536
|
+
}
|
|
537
|
+
];
|
|
538
|
+
readonly anonymous: false;
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
readonly name: "Transfer";
|
|
542
|
+
readonly type: "event";
|
|
543
|
+
readonly inputs: readonly [
|
|
544
|
+
{
|
|
545
|
+
readonly name: "from";
|
|
546
|
+
readonly type: "address";
|
|
547
|
+
readonly indexed: true;
|
|
548
|
+
readonly internalType: "address";
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
readonly name: "to";
|
|
552
|
+
readonly type: "address";
|
|
553
|
+
readonly indexed: true;
|
|
554
|
+
readonly internalType: "address";
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
readonly name: "tokenId";
|
|
558
|
+
readonly type: "uint256";
|
|
559
|
+
readonly indexed: true;
|
|
560
|
+
readonly internalType: "uint256";
|
|
561
|
+
}
|
|
562
|
+
];
|
|
563
|
+
readonly anonymous: false;
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
readonly name: "Unpaused";
|
|
567
|
+
readonly type: "event";
|
|
568
|
+
readonly inputs: readonly [
|
|
569
|
+
{
|
|
570
|
+
readonly name: "account";
|
|
571
|
+
readonly type: "address";
|
|
572
|
+
readonly indexed: false;
|
|
573
|
+
readonly internalType: "address";
|
|
574
|
+
}
|
|
575
|
+
];
|
|
576
|
+
readonly anonymous: false;
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
580
|
+
readonly type: "function";
|
|
581
|
+
readonly inputs: readonly [
|
|
582
|
+
];
|
|
583
|
+
readonly outputs: readonly [
|
|
584
|
+
{
|
|
585
|
+
readonly name: "";
|
|
586
|
+
readonly type: "bytes32";
|
|
587
|
+
readonly internalType: "bytes32";
|
|
588
|
+
}
|
|
589
|
+
];
|
|
590
|
+
readonly stateMutability: "view";
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
readonly name: "MINTER_ROLE";
|
|
594
|
+
readonly type: "function";
|
|
595
|
+
readonly inputs: readonly [
|
|
596
|
+
];
|
|
597
|
+
readonly outputs: readonly [
|
|
598
|
+
{
|
|
599
|
+
readonly name: "";
|
|
600
|
+
readonly type: "bytes32";
|
|
601
|
+
readonly internalType: "bytes32";
|
|
602
|
+
}
|
|
603
|
+
];
|
|
604
|
+
readonly stateMutability: "view";
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
readonly name: "PAUSER_ROLE";
|
|
608
|
+
readonly type: "function";
|
|
609
|
+
readonly inputs: readonly [
|
|
610
|
+
];
|
|
611
|
+
readonly outputs: readonly [
|
|
612
|
+
{
|
|
613
|
+
readonly name: "";
|
|
614
|
+
readonly type: "bytes32";
|
|
615
|
+
readonly internalType: "bytes32";
|
|
616
|
+
}
|
|
617
|
+
];
|
|
618
|
+
readonly stateMutability: "view";
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
readonly name: "approve";
|
|
622
|
+
readonly type: "function";
|
|
623
|
+
readonly inputs: readonly [
|
|
624
|
+
{
|
|
625
|
+
readonly name: "to";
|
|
626
|
+
readonly type: "address";
|
|
627
|
+
readonly internalType: "address";
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
readonly name: "tokenId";
|
|
631
|
+
readonly type: "uint256";
|
|
632
|
+
readonly internalType: "uint256";
|
|
633
|
+
}
|
|
634
|
+
];
|
|
635
|
+
readonly outputs: readonly [
|
|
636
|
+
];
|
|
637
|
+
readonly stateMutability: "nonpayable";
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
readonly name: "balanceOf";
|
|
641
|
+
readonly type: "function";
|
|
642
|
+
readonly inputs: readonly [
|
|
643
|
+
{
|
|
644
|
+
readonly name: "owner";
|
|
645
|
+
readonly type: "address";
|
|
646
|
+
readonly internalType: "address";
|
|
647
|
+
}
|
|
648
|
+
];
|
|
649
|
+
readonly outputs: readonly [
|
|
650
|
+
{
|
|
651
|
+
readonly name: "";
|
|
652
|
+
readonly type: "uint256";
|
|
653
|
+
readonly internalType: "uint256";
|
|
654
|
+
}
|
|
655
|
+
];
|
|
656
|
+
readonly stateMutability: "view";
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
readonly name: "burn";
|
|
660
|
+
readonly type: "function";
|
|
661
|
+
readonly inputs: readonly [
|
|
662
|
+
{
|
|
663
|
+
readonly name: "tokenId";
|
|
664
|
+
readonly type: "uint256";
|
|
665
|
+
readonly internalType: "uint256";
|
|
666
|
+
}
|
|
667
|
+
];
|
|
668
|
+
readonly outputs: readonly [
|
|
669
|
+
];
|
|
670
|
+
readonly stateMutability: "nonpayable";
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
readonly name: "getApproved";
|
|
674
|
+
readonly type: "function";
|
|
675
|
+
readonly inputs: readonly [
|
|
676
|
+
{
|
|
677
|
+
readonly name: "tokenId";
|
|
678
|
+
readonly type: "uint256";
|
|
679
|
+
readonly internalType: "uint256";
|
|
680
|
+
}
|
|
681
|
+
];
|
|
682
|
+
readonly outputs: readonly [
|
|
683
|
+
{
|
|
684
|
+
readonly name: "";
|
|
685
|
+
readonly type: "address";
|
|
686
|
+
readonly internalType: "address";
|
|
687
|
+
}
|
|
688
|
+
];
|
|
689
|
+
readonly stateMutability: "view";
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
readonly name: "getRoleAdmin";
|
|
693
|
+
readonly type: "function";
|
|
694
|
+
readonly inputs: readonly [
|
|
695
|
+
{
|
|
696
|
+
readonly name: "role";
|
|
697
|
+
readonly type: "bytes32";
|
|
698
|
+
readonly internalType: "bytes32";
|
|
699
|
+
}
|
|
700
|
+
];
|
|
701
|
+
readonly outputs: readonly [
|
|
702
|
+
{
|
|
703
|
+
readonly name: "";
|
|
704
|
+
readonly type: "bytes32";
|
|
705
|
+
readonly internalType: "bytes32";
|
|
706
|
+
}
|
|
707
|
+
];
|
|
708
|
+
readonly stateMutability: "view";
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
readonly name: "getRoleMember";
|
|
712
|
+
readonly type: "function";
|
|
713
|
+
readonly inputs: readonly [
|
|
714
|
+
{
|
|
715
|
+
readonly name: "role";
|
|
716
|
+
readonly type: "bytes32";
|
|
717
|
+
readonly internalType: "bytes32";
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
readonly name: "index";
|
|
721
|
+
readonly type: "uint256";
|
|
722
|
+
readonly internalType: "uint256";
|
|
723
|
+
}
|
|
724
|
+
];
|
|
725
|
+
readonly outputs: readonly [
|
|
726
|
+
{
|
|
727
|
+
readonly name: "";
|
|
728
|
+
readonly type: "address";
|
|
729
|
+
readonly internalType: "address";
|
|
730
|
+
}
|
|
731
|
+
];
|
|
732
|
+
readonly stateMutability: "view";
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
readonly name: "getRoleMemberCount";
|
|
736
|
+
readonly type: "function";
|
|
737
|
+
readonly inputs: readonly [
|
|
738
|
+
{
|
|
739
|
+
readonly name: "role";
|
|
740
|
+
readonly type: "bytes32";
|
|
741
|
+
readonly internalType: "bytes32";
|
|
742
|
+
}
|
|
743
|
+
];
|
|
744
|
+
readonly outputs: readonly [
|
|
745
|
+
{
|
|
746
|
+
readonly name: "";
|
|
747
|
+
readonly type: "uint256";
|
|
748
|
+
readonly internalType: "uint256";
|
|
749
|
+
}
|
|
750
|
+
];
|
|
751
|
+
readonly stateMutability: "view";
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
readonly name: "grantRole";
|
|
755
|
+
readonly type: "function";
|
|
756
|
+
readonly inputs: readonly [
|
|
757
|
+
{
|
|
758
|
+
readonly name: "role";
|
|
759
|
+
readonly type: "bytes32";
|
|
760
|
+
readonly internalType: "bytes32";
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
readonly name: "account";
|
|
764
|
+
readonly type: "address";
|
|
765
|
+
readonly internalType: "address";
|
|
766
|
+
}
|
|
767
|
+
];
|
|
768
|
+
readonly outputs: readonly [
|
|
769
|
+
];
|
|
770
|
+
readonly stateMutability: "nonpayable";
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
readonly name: "hasRole";
|
|
774
|
+
readonly type: "function";
|
|
775
|
+
readonly inputs: readonly [
|
|
776
|
+
{
|
|
777
|
+
readonly name: "role";
|
|
778
|
+
readonly type: "bytes32";
|
|
779
|
+
readonly internalType: "bytes32";
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
readonly name: "account";
|
|
783
|
+
readonly type: "address";
|
|
784
|
+
readonly internalType: "address";
|
|
785
|
+
}
|
|
786
|
+
];
|
|
787
|
+
readonly outputs: readonly [
|
|
788
|
+
{
|
|
789
|
+
readonly name: "";
|
|
790
|
+
readonly type: "bool";
|
|
791
|
+
readonly internalType: "bool";
|
|
792
|
+
}
|
|
793
|
+
];
|
|
794
|
+
readonly stateMutability: "view";
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
readonly name: "isApprovedForAll";
|
|
798
|
+
readonly type: "function";
|
|
799
|
+
readonly inputs: readonly [
|
|
800
|
+
{
|
|
801
|
+
readonly name: "owner";
|
|
802
|
+
readonly type: "address";
|
|
803
|
+
readonly internalType: "address";
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
readonly name: "operator";
|
|
807
|
+
readonly type: "address";
|
|
808
|
+
readonly internalType: "address";
|
|
809
|
+
}
|
|
810
|
+
];
|
|
811
|
+
readonly outputs: readonly [
|
|
812
|
+
{
|
|
813
|
+
readonly name: "";
|
|
814
|
+
readonly type: "bool";
|
|
815
|
+
readonly internalType: "bool";
|
|
816
|
+
}
|
|
817
|
+
];
|
|
818
|
+
readonly stateMutability: "view";
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
readonly name: "mint";
|
|
822
|
+
readonly type: "function";
|
|
823
|
+
readonly inputs: readonly [
|
|
824
|
+
{
|
|
825
|
+
readonly name: "to";
|
|
826
|
+
readonly type: "address";
|
|
827
|
+
readonly internalType: "address";
|
|
828
|
+
}
|
|
829
|
+
];
|
|
830
|
+
readonly outputs: readonly [
|
|
831
|
+
];
|
|
832
|
+
readonly stateMutability: "nonpayable";
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
readonly name: "name";
|
|
836
|
+
readonly type: "function";
|
|
837
|
+
readonly inputs: readonly [
|
|
838
|
+
];
|
|
839
|
+
readonly outputs: readonly [
|
|
840
|
+
{
|
|
841
|
+
readonly name: "";
|
|
842
|
+
readonly type: "string";
|
|
843
|
+
readonly internalType: "string";
|
|
844
|
+
}
|
|
845
|
+
];
|
|
846
|
+
readonly stateMutability: "view";
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
readonly name: "ownerOf";
|
|
850
|
+
readonly type: "function";
|
|
851
|
+
readonly inputs: readonly [
|
|
852
|
+
{
|
|
853
|
+
readonly name: "tokenId";
|
|
854
|
+
readonly type: "uint256";
|
|
855
|
+
readonly internalType: "uint256";
|
|
856
|
+
}
|
|
857
|
+
];
|
|
858
|
+
readonly outputs: readonly [
|
|
859
|
+
{
|
|
860
|
+
readonly name: "";
|
|
861
|
+
readonly type: "address";
|
|
862
|
+
readonly internalType: "address";
|
|
863
|
+
}
|
|
864
|
+
];
|
|
865
|
+
readonly stateMutability: "view";
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
readonly name: "pause";
|
|
869
|
+
readonly type: "function";
|
|
870
|
+
readonly inputs: readonly [
|
|
871
|
+
];
|
|
872
|
+
readonly outputs: readonly [
|
|
873
|
+
];
|
|
874
|
+
readonly stateMutability: "nonpayable";
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
readonly name: "paused";
|
|
878
|
+
readonly type: "function";
|
|
879
|
+
readonly inputs: readonly [
|
|
880
|
+
];
|
|
881
|
+
readonly outputs: readonly [
|
|
882
|
+
{
|
|
883
|
+
readonly name: "";
|
|
884
|
+
readonly type: "bool";
|
|
885
|
+
readonly internalType: "bool";
|
|
886
|
+
}
|
|
887
|
+
];
|
|
888
|
+
readonly stateMutability: "view";
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
readonly name: "renounceRole";
|
|
892
|
+
readonly type: "function";
|
|
893
|
+
readonly inputs: readonly [
|
|
894
|
+
{
|
|
895
|
+
readonly name: "role";
|
|
896
|
+
readonly type: "bytes32";
|
|
897
|
+
readonly internalType: "bytes32";
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
readonly name: "account";
|
|
901
|
+
readonly type: "address";
|
|
902
|
+
readonly internalType: "address";
|
|
903
|
+
}
|
|
904
|
+
];
|
|
905
|
+
readonly outputs: readonly [
|
|
906
|
+
];
|
|
907
|
+
readonly stateMutability: "nonpayable";
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
readonly name: "revokeRole";
|
|
911
|
+
readonly type: "function";
|
|
912
|
+
readonly inputs: readonly [
|
|
913
|
+
{
|
|
914
|
+
readonly name: "role";
|
|
915
|
+
readonly type: "bytes32";
|
|
916
|
+
readonly internalType: "bytes32";
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
readonly name: "account";
|
|
920
|
+
readonly type: "address";
|
|
921
|
+
readonly internalType: "address";
|
|
922
|
+
}
|
|
923
|
+
];
|
|
924
|
+
readonly outputs: readonly [
|
|
925
|
+
];
|
|
926
|
+
readonly stateMutability: "nonpayable";
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
readonly name: "safeTransferFrom";
|
|
930
|
+
readonly type: "function";
|
|
931
|
+
readonly inputs: readonly [
|
|
932
|
+
{
|
|
933
|
+
readonly name: "from";
|
|
934
|
+
readonly type: "address";
|
|
935
|
+
readonly internalType: "address";
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
readonly name: "to";
|
|
939
|
+
readonly type: "address";
|
|
940
|
+
readonly internalType: "address";
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
readonly name: "tokenId";
|
|
944
|
+
readonly type: "uint256";
|
|
945
|
+
readonly internalType: "uint256";
|
|
946
|
+
}
|
|
947
|
+
];
|
|
948
|
+
readonly outputs: readonly [
|
|
949
|
+
];
|
|
950
|
+
readonly stateMutability: "nonpayable";
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
readonly name: "safeTransferFrom";
|
|
954
|
+
readonly type: "function";
|
|
955
|
+
readonly inputs: readonly [
|
|
956
|
+
{
|
|
957
|
+
readonly name: "from";
|
|
958
|
+
readonly type: "address";
|
|
959
|
+
readonly internalType: "address";
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
readonly name: "to";
|
|
963
|
+
readonly type: "address";
|
|
964
|
+
readonly internalType: "address";
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
readonly name: "tokenId";
|
|
968
|
+
readonly type: "uint256";
|
|
969
|
+
readonly internalType: "uint256";
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
readonly name: "_data";
|
|
973
|
+
readonly type: "bytes";
|
|
974
|
+
readonly internalType: "bytes";
|
|
975
|
+
}
|
|
976
|
+
];
|
|
977
|
+
readonly outputs: readonly [
|
|
978
|
+
];
|
|
979
|
+
readonly stateMutability: "nonpayable";
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
readonly name: "setApprovalForAll";
|
|
983
|
+
readonly type: "function";
|
|
984
|
+
readonly inputs: readonly [
|
|
985
|
+
{
|
|
986
|
+
readonly name: "operator";
|
|
987
|
+
readonly type: "address";
|
|
988
|
+
readonly internalType: "address";
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
readonly name: "approved";
|
|
992
|
+
readonly type: "bool";
|
|
993
|
+
readonly internalType: "bool";
|
|
994
|
+
}
|
|
995
|
+
];
|
|
996
|
+
readonly outputs: readonly [
|
|
997
|
+
];
|
|
998
|
+
readonly stateMutability: "nonpayable";
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
readonly name: "supportsInterface";
|
|
1002
|
+
readonly type: "function";
|
|
1003
|
+
readonly inputs: readonly [
|
|
1004
|
+
{
|
|
1005
|
+
readonly name: "interfaceId";
|
|
1006
|
+
readonly type: "bytes4";
|
|
1007
|
+
readonly internalType: "bytes4";
|
|
1008
|
+
}
|
|
1009
|
+
];
|
|
1010
|
+
readonly outputs: readonly [
|
|
1011
|
+
{
|
|
1012
|
+
readonly name: "";
|
|
1013
|
+
readonly type: "bool";
|
|
1014
|
+
readonly internalType: "bool";
|
|
1015
|
+
}
|
|
1016
|
+
];
|
|
1017
|
+
readonly stateMutability: "view";
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
readonly name: "symbol";
|
|
1021
|
+
readonly type: "function";
|
|
1022
|
+
readonly inputs: readonly [
|
|
1023
|
+
];
|
|
1024
|
+
readonly outputs: readonly [
|
|
1025
|
+
{
|
|
1026
|
+
readonly name: "";
|
|
1027
|
+
readonly type: "string";
|
|
1028
|
+
readonly internalType: "string";
|
|
1029
|
+
}
|
|
1030
|
+
];
|
|
1031
|
+
readonly stateMutability: "view";
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
readonly name: "tokenByIndex";
|
|
1035
|
+
readonly type: "function";
|
|
1036
|
+
readonly inputs: readonly [
|
|
1037
|
+
{
|
|
1038
|
+
readonly name: "index";
|
|
1039
|
+
readonly type: "uint256";
|
|
1040
|
+
readonly internalType: "uint256";
|
|
1041
|
+
}
|
|
1042
|
+
];
|
|
1043
|
+
readonly outputs: readonly [
|
|
1044
|
+
{
|
|
1045
|
+
readonly name: "";
|
|
1046
|
+
readonly type: "uint256";
|
|
1047
|
+
readonly internalType: "uint256";
|
|
1048
|
+
}
|
|
1049
|
+
];
|
|
1050
|
+
readonly stateMutability: "view";
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
readonly name: "tokenOfOwnerByIndex";
|
|
1054
|
+
readonly type: "function";
|
|
1055
|
+
readonly inputs: readonly [
|
|
1056
|
+
{
|
|
1057
|
+
readonly name: "owner";
|
|
1058
|
+
readonly type: "address";
|
|
1059
|
+
readonly internalType: "address";
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
readonly name: "index";
|
|
1063
|
+
readonly type: "uint256";
|
|
1064
|
+
readonly internalType: "uint256";
|
|
1065
|
+
}
|
|
1066
|
+
];
|
|
1067
|
+
readonly outputs: readonly [
|
|
1068
|
+
{
|
|
1069
|
+
readonly name: "";
|
|
1070
|
+
readonly type: "uint256";
|
|
1071
|
+
readonly internalType: "uint256";
|
|
1072
|
+
}
|
|
1073
|
+
];
|
|
1074
|
+
readonly stateMutability: "view";
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
readonly name: "tokenURI";
|
|
1078
|
+
readonly type: "function";
|
|
1079
|
+
readonly inputs: readonly [
|
|
1080
|
+
{
|
|
1081
|
+
readonly name: "tokenId";
|
|
1082
|
+
readonly type: "uint256";
|
|
1083
|
+
readonly internalType: "uint256";
|
|
1084
|
+
}
|
|
1085
|
+
];
|
|
1086
|
+
readonly outputs: readonly [
|
|
1087
|
+
{
|
|
1088
|
+
readonly name: "";
|
|
1089
|
+
readonly type: "string";
|
|
1090
|
+
readonly internalType: "string";
|
|
1091
|
+
}
|
|
1092
|
+
];
|
|
1093
|
+
readonly stateMutability: "view";
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
readonly name: "totalSupply";
|
|
1097
|
+
readonly type: "function";
|
|
1098
|
+
readonly inputs: readonly [
|
|
1099
|
+
];
|
|
1100
|
+
readonly outputs: readonly [
|
|
1101
|
+
{
|
|
1102
|
+
readonly name: "";
|
|
1103
|
+
readonly type: "uint256";
|
|
1104
|
+
readonly internalType: "uint256";
|
|
1105
|
+
}
|
|
1106
|
+
];
|
|
1107
|
+
readonly stateMutability: "view";
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
readonly name: "transferFrom";
|
|
1111
|
+
readonly type: "function";
|
|
1112
|
+
readonly inputs: readonly [
|
|
1113
|
+
{
|
|
1114
|
+
readonly name: "from";
|
|
1115
|
+
readonly type: "address";
|
|
1116
|
+
readonly internalType: "address";
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
readonly name: "to";
|
|
1120
|
+
readonly type: "address";
|
|
1121
|
+
readonly internalType: "address";
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
readonly name: "tokenId";
|
|
1125
|
+
readonly type: "uint256";
|
|
1126
|
+
readonly internalType: "uint256";
|
|
1127
|
+
}
|
|
1128
|
+
];
|
|
1129
|
+
readonly outputs: readonly [
|
|
1130
|
+
];
|
|
1131
|
+
readonly stateMutability: "nonpayable";
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
readonly name: "unpause";
|
|
1135
|
+
readonly type: "function";
|
|
1136
|
+
readonly inputs: readonly [
|
|
1137
|
+
];
|
|
1138
|
+
readonly outputs: readonly [
|
|
1139
|
+
];
|
|
1140
|
+
readonly stateMutability: "nonpayable";
|
|
1141
|
+
}
|
|
1142
|
+
];
|
|
1143
|
+
get type(): string;
|
|
1144
|
+
approve(to: `0x${string}`, tokenId: string): Promise<`0x${string}` | null>;
|
|
1145
|
+
name: () => Promise<any>;
|
|
1146
|
+
symbol: () => Promise<any>;
|
|
1147
|
+
hasRole: (role: string, account: `0x${string}`) => Promise<any>;
|
|
1148
|
+
ownerOf: (tokenId: string) => Promise<any>;
|
|
1149
|
+
tokenURI: (tokenId: string) => Promise<any>;
|
|
1150
|
+
balanceOf(account?: `0x${string}`): Promise<{
|
|
1151
|
+
value: string;
|
|
1152
|
+
format: string;
|
|
1153
|
+
originFormat: string;
|
|
1154
|
+
decimals: string;
|
|
1155
|
+
isZero: boolean;
|
|
1156
|
+
}>;
|
|
1157
|
+
MINTER_ROLE: () => Promise<any>;
|
|
1158
|
+
PAUSER_ROLE: () => Promise<any>;
|
|
1159
|
+
totalSupply: () => Promise<any>;
|
|
1160
|
+
getRoleAdmin: (role: string) => Promise<any>;
|
|
1161
|
+
tokenByIndex: (index: string) => Promise<any>;
|
|
1162
|
+
getRoleMember: (role: string, index: string) => Promise<any>;
|
|
1163
|
+
isApprovedForAll: (owner: `0x${string}`, operator: `0x${string}`) => Promise<any>;
|
|
1164
|
+
supportsInterface: (interfaceId: string) => Promise<any>;
|
|
1165
|
+
DEFAULT_ADMIN_ROLE: () => Promise<any>;
|
|
1166
|
+
getRoleMemberCount: (role: string) => Promise<any>;
|
|
1167
|
+
tokenOfOwnerByIndex: (owner: `0x${string}`, index: string) => Promise<any>;
|
|
1168
|
+
burn: (tokenId: string) => Promise<any>;
|
|
1169
|
+
mint: (to: `0x${string}`, tokenId: string) => Promise<any>;
|
|
1170
|
+
pause: () => Promise<any>;
|
|
1171
|
+
unpause: () => Promise<any>;
|
|
1172
|
+
grantRole: (role: string, account: `0x${string}`) => Promise<any>;
|
|
1173
|
+
revokeRole: (role: string, account: `0x${string}`) => Promise<any>;
|
|
1174
|
+
renounceRole: (role: string, account: `0x${string}`) => Promise<any>;
|
|
1175
|
+
setApprovalForAll: (operator: `0x${string}`, approved: boolean) => Promise<any>;
|
|
1176
|
+
}
|
|
1177
|
+
declare class LPTokenEntity {
|
|
1178
|
+
address: `0x${string}`;
|
|
1179
|
+
chainId: string;
|
|
1180
|
+
static abi: readonly [
|
|
1181
|
+
{
|
|
1182
|
+
readonly type: "constructor";
|
|
1183
|
+
readonly inputs: readonly [
|
|
1184
|
+
];
|
|
1185
|
+
readonly payable: false;
|
|
1186
|
+
readonly stateMutability: "nonpayable";
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
readonly name: "Approval";
|
|
1190
|
+
readonly type: "event";
|
|
1191
|
+
readonly inputs: readonly [
|
|
1192
|
+
{
|
|
1193
|
+
readonly name: "owner";
|
|
1194
|
+
readonly type: "address";
|
|
1195
|
+
readonly indexed: true;
|
|
1196
|
+
readonly internalType: "address";
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
readonly name: "spender";
|
|
1200
|
+
readonly type: "address";
|
|
1201
|
+
readonly indexed: true;
|
|
1202
|
+
readonly internalType: "address";
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
readonly name: "value";
|
|
1206
|
+
readonly type: "uint256";
|
|
1207
|
+
readonly indexed: false;
|
|
1208
|
+
readonly internalType: "uint256";
|
|
1209
|
+
}
|
|
1210
|
+
];
|
|
1211
|
+
readonly anonymous: false;
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
readonly name: "Burn";
|
|
1215
|
+
readonly type: "event";
|
|
1216
|
+
readonly inputs: readonly [
|
|
1217
|
+
{
|
|
1218
|
+
readonly name: "sender";
|
|
1219
|
+
readonly type: "address";
|
|
1220
|
+
readonly indexed: true;
|
|
1221
|
+
readonly internalType: "address";
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
readonly name: "amount0";
|
|
1225
|
+
readonly type: "uint256";
|
|
1226
|
+
readonly indexed: false;
|
|
1227
|
+
readonly internalType: "uint256";
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
readonly name: "amount1";
|
|
1231
|
+
readonly type: "uint256";
|
|
1232
|
+
readonly indexed: false;
|
|
1233
|
+
readonly internalType: "uint256";
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
readonly name: "to";
|
|
1237
|
+
readonly type: "address";
|
|
1238
|
+
readonly indexed: true;
|
|
1239
|
+
readonly internalType: "address";
|
|
1240
|
+
}
|
|
1241
|
+
];
|
|
1242
|
+
readonly anonymous: false;
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
readonly name: "Mint";
|
|
1246
|
+
readonly type: "event";
|
|
1247
|
+
readonly inputs: readonly [
|
|
1248
|
+
{
|
|
1249
|
+
readonly name: "sender";
|
|
1250
|
+
readonly type: "address";
|
|
1251
|
+
readonly indexed: true;
|
|
1252
|
+
readonly internalType: "address";
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
readonly name: "amount0";
|
|
1256
|
+
readonly type: "uint256";
|
|
1257
|
+
readonly indexed: false;
|
|
1258
|
+
readonly internalType: "uint256";
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
readonly name: "amount1";
|
|
1262
|
+
readonly type: "uint256";
|
|
1263
|
+
readonly indexed: false;
|
|
1264
|
+
readonly internalType: "uint256";
|
|
1265
|
+
}
|
|
1266
|
+
];
|
|
1267
|
+
readonly anonymous: false;
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
readonly name: "Swap";
|
|
1271
|
+
readonly type: "event";
|
|
1272
|
+
readonly inputs: readonly [
|
|
1273
|
+
{
|
|
1274
|
+
readonly name: "sender";
|
|
1275
|
+
readonly type: "address";
|
|
1276
|
+
readonly indexed: true;
|
|
1277
|
+
readonly internalType: "address";
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
readonly name: "amount0In";
|
|
1281
|
+
readonly type: "uint256";
|
|
1282
|
+
readonly indexed: false;
|
|
1283
|
+
readonly internalType: "uint256";
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
readonly name: "amount1In";
|
|
1287
|
+
readonly type: "uint256";
|
|
1288
|
+
readonly indexed: false;
|
|
1289
|
+
readonly internalType: "uint256";
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
readonly name: "amount0Out";
|
|
1293
|
+
readonly type: "uint256";
|
|
1294
|
+
readonly indexed: false;
|
|
1295
|
+
readonly internalType: "uint256";
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
readonly name: "amount1Out";
|
|
1299
|
+
readonly type: "uint256";
|
|
1300
|
+
readonly indexed: false;
|
|
1301
|
+
readonly internalType: "uint256";
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
readonly name: "to";
|
|
1305
|
+
readonly type: "address";
|
|
1306
|
+
readonly indexed: true;
|
|
1307
|
+
readonly internalType: "address";
|
|
1308
|
+
}
|
|
1309
|
+
];
|
|
1310
|
+
readonly anonymous: false;
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
readonly name: "Sync";
|
|
1314
|
+
readonly type: "event";
|
|
1315
|
+
readonly inputs: readonly [
|
|
1316
|
+
{
|
|
1317
|
+
readonly name: "reserve0";
|
|
1318
|
+
readonly type: "uint112";
|
|
1319
|
+
readonly indexed: false;
|
|
1320
|
+
readonly internalType: "uint112";
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
readonly name: "reserve1";
|
|
1324
|
+
readonly type: "uint112";
|
|
1325
|
+
readonly indexed: false;
|
|
1326
|
+
readonly internalType: "uint112";
|
|
1327
|
+
}
|
|
1328
|
+
];
|
|
1329
|
+
readonly anonymous: false;
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
readonly name: "Transfer";
|
|
1333
|
+
readonly type: "event";
|
|
1334
|
+
readonly inputs: readonly [
|
|
1335
|
+
{
|
|
1336
|
+
readonly name: "from";
|
|
1337
|
+
readonly type: "address";
|
|
1338
|
+
readonly indexed: true;
|
|
1339
|
+
readonly internalType: "address";
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
readonly name: "to";
|
|
1343
|
+
readonly type: "address";
|
|
1344
|
+
readonly indexed: true;
|
|
1345
|
+
readonly internalType: "address";
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
readonly name: "value";
|
|
1349
|
+
readonly type: "uint256";
|
|
1350
|
+
readonly indexed: false;
|
|
1351
|
+
readonly internalType: "uint256";
|
|
1352
|
+
}
|
|
1353
|
+
];
|
|
1354
|
+
readonly anonymous: false;
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
readonly name: "MINIMUM_LIQUIDITY";
|
|
1358
|
+
readonly type: "function";
|
|
1359
|
+
readonly inputs: readonly [
|
|
1360
|
+
];
|
|
1361
|
+
readonly outputs: readonly [
|
|
1362
|
+
{
|
|
1363
|
+
readonly name: "";
|
|
1364
|
+
readonly type: "uint256";
|
|
1365
|
+
readonly internalType: "uint256";
|
|
1366
|
+
}
|
|
1367
|
+
];
|
|
1368
|
+
readonly payable: false;
|
|
1369
|
+
readonly constant: true;
|
|
1370
|
+
readonly stateMutability: "view";
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
readonly name: "allowance";
|
|
1374
|
+
readonly type: "function";
|
|
1375
|
+
readonly inputs: readonly [
|
|
1376
|
+
{
|
|
1377
|
+
readonly name: "";
|
|
1378
|
+
readonly type: "address";
|
|
1379
|
+
readonly internalType: "address";
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
readonly name: "";
|
|
1383
|
+
readonly type: "address";
|
|
1384
|
+
readonly internalType: "address";
|
|
1385
|
+
}
|
|
1386
|
+
];
|
|
1387
|
+
readonly outputs: readonly [
|
|
1388
|
+
{
|
|
1389
|
+
readonly name: "";
|
|
1390
|
+
readonly type: "uint256";
|
|
1391
|
+
readonly internalType: "uint256";
|
|
1392
|
+
}
|
|
1393
|
+
];
|
|
1394
|
+
readonly payable: false;
|
|
1395
|
+
readonly constant: true;
|
|
1396
|
+
readonly stateMutability: "view";
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
readonly name: "approve";
|
|
1400
|
+
readonly type: "function";
|
|
1401
|
+
readonly inputs: readonly [
|
|
1402
|
+
{
|
|
1403
|
+
readonly name: "spender";
|
|
1404
|
+
readonly type: "address";
|
|
1405
|
+
readonly internalType: "address";
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
readonly name: "value";
|
|
1409
|
+
readonly type: "uint256";
|
|
1410
|
+
readonly internalType: "uint256";
|
|
1411
|
+
}
|
|
1412
|
+
];
|
|
1413
|
+
readonly outputs: readonly [
|
|
1414
|
+
{
|
|
1415
|
+
readonly name: "";
|
|
1416
|
+
readonly type: "bool";
|
|
1417
|
+
readonly internalType: "bool";
|
|
1418
|
+
}
|
|
1419
|
+
];
|
|
1420
|
+
readonly payable: false;
|
|
1421
|
+
readonly constant: false;
|
|
1422
|
+
readonly stateMutability: "nonpayable";
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
readonly name: "balanceOf";
|
|
1426
|
+
readonly type: "function";
|
|
1427
|
+
readonly inputs: readonly [
|
|
1428
|
+
{
|
|
1429
|
+
readonly name: "";
|
|
1430
|
+
readonly type: "address";
|
|
1431
|
+
readonly internalType: "address";
|
|
1432
|
+
}
|
|
1433
|
+
];
|
|
1434
|
+
readonly outputs: readonly [
|
|
1435
|
+
{
|
|
1436
|
+
readonly name: "";
|
|
1437
|
+
readonly type: "uint256";
|
|
1438
|
+
readonly internalType: "uint256";
|
|
1439
|
+
}
|
|
1440
|
+
];
|
|
1441
|
+
readonly payable: false;
|
|
1442
|
+
readonly constant: true;
|
|
1443
|
+
readonly stateMutability: "view";
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
readonly name: "burn";
|
|
1447
|
+
readonly type: "function";
|
|
1448
|
+
readonly inputs: readonly [
|
|
1449
|
+
{
|
|
1450
|
+
readonly name: "to";
|
|
1451
|
+
readonly type: "address";
|
|
1452
|
+
readonly internalType: "address";
|
|
1453
|
+
}
|
|
1454
|
+
];
|
|
1455
|
+
readonly outputs: readonly [
|
|
1456
|
+
{
|
|
1457
|
+
readonly name: "amount0";
|
|
1458
|
+
readonly type: "uint256";
|
|
1459
|
+
readonly internalType: "uint256";
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
readonly name: "amount1";
|
|
1463
|
+
readonly type: "uint256";
|
|
1464
|
+
readonly internalType: "uint256";
|
|
1465
|
+
}
|
|
1466
|
+
];
|
|
1467
|
+
readonly payable: false;
|
|
1468
|
+
readonly constant: false;
|
|
1469
|
+
readonly stateMutability: "nonpayable";
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
readonly name: "decimals";
|
|
1473
|
+
readonly type: "function";
|
|
1474
|
+
readonly inputs: readonly [
|
|
1475
|
+
];
|
|
1476
|
+
readonly outputs: readonly [
|
|
1477
|
+
{
|
|
1478
|
+
readonly name: "";
|
|
1479
|
+
readonly type: "uint8";
|
|
1480
|
+
readonly internalType: "uint8";
|
|
1481
|
+
}
|
|
1482
|
+
];
|
|
1483
|
+
readonly payable: false;
|
|
1484
|
+
readonly constant: true;
|
|
1485
|
+
readonly stateMutability: "view";
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
readonly name: "factory";
|
|
1489
|
+
readonly type: "function";
|
|
1490
|
+
readonly inputs: readonly [
|
|
1491
|
+
];
|
|
1492
|
+
readonly outputs: readonly [
|
|
1493
|
+
{
|
|
1494
|
+
readonly name: "";
|
|
1495
|
+
readonly type: "address";
|
|
1496
|
+
readonly internalType: "address";
|
|
1497
|
+
}
|
|
1498
|
+
];
|
|
1499
|
+
readonly payable: false;
|
|
1500
|
+
readonly constant: true;
|
|
1501
|
+
readonly stateMutability: "view";
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
readonly name: "getReserves";
|
|
1505
|
+
readonly type: "function";
|
|
1506
|
+
readonly inputs: readonly [
|
|
1507
|
+
];
|
|
1508
|
+
readonly outputs: readonly [
|
|
1509
|
+
{
|
|
1510
|
+
readonly name: "_reserve0";
|
|
1511
|
+
readonly type: "uint112";
|
|
1512
|
+
readonly internalType: "uint112";
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
readonly name: "_reserve1";
|
|
1516
|
+
readonly type: "uint112";
|
|
1517
|
+
readonly internalType: "uint112";
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
readonly name: "_blockTimestampLast";
|
|
1521
|
+
readonly type: "uint32";
|
|
1522
|
+
readonly internalType: "uint32";
|
|
1523
|
+
}
|
|
1524
|
+
];
|
|
1525
|
+
readonly payable: false;
|
|
1526
|
+
readonly constant: true;
|
|
1527
|
+
readonly stateMutability: "view";
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
readonly name: "initialize";
|
|
1531
|
+
readonly type: "function";
|
|
1532
|
+
readonly inputs: readonly [
|
|
1533
|
+
{
|
|
1534
|
+
readonly name: "_token0";
|
|
1535
|
+
readonly type: "address";
|
|
1536
|
+
readonly internalType: "address";
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
readonly name: "_token1";
|
|
1540
|
+
readonly type: "address";
|
|
1541
|
+
readonly internalType: "address";
|
|
1542
|
+
}
|
|
1543
|
+
];
|
|
1544
|
+
readonly outputs: readonly [
|
|
1545
|
+
];
|
|
1546
|
+
readonly payable: false;
|
|
1547
|
+
readonly constant: false;
|
|
1548
|
+
readonly stateMutability: "nonpayable";
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
readonly name: "kLast";
|
|
1552
|
+
readonly type: "function";
|
|
1553
|
+
readonly inputs: readonly [
|
|
1554
|
+
];
|
|
1555
|
+
readonly outputs: readonly [
|
|
1556
|
+
{
|
|
1557
|
+
readonly name: "";
|
|
1558
|
+
readonly type: "uint256";
|
|
1559
|
+
readonly internalType: "uint256";
|
|
1560
|
+
}
|
|
1561
|
+
];
|
|
1562
|
+
readonly payable: false;
|
|
1563
|
+
readonly constant: true;
|
|
1564
|
+
readonly stateMutability: "view";
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
readonly name: "mint";
|
|
1568
|
+
readonly type: "function";
|
|
1569
|
+
readonly inputs: readonly [
|
|
1570
|
+
{
|
|
1571
|
+
readonly name: "to";
|
|
1572
|
+
readonly type: "address";
|
|
1573
|
+
readonly internalType: "address";
|
|
1574
|
+
}
|
|
1575
|
+
];
|
|
1576
|
+
readonly outputs: readonly [
|
|
1577
|
+
{
|
|
1578
|
+
readonly name: "liquidity";
|
|
1579
|
+
readonly type: "uint256";
|
|
1580
|
+
readonly internalType: "uint256";
|
|
1581
|
+
}
|
|
1582
|
+
];
|
|
1583
|
+
readonly payable: false;
|
|
1584
|
+
readonly constant: false;
|
|
1585
|
+
readonly stateMutability: "nonpayable";
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
readonly name: "name";
|
|
1589
|
+
readonly type: "function";
|
|
1590
|
+
readonly inputs: readonly [
|
|
1591
|
+
];
|
|
1592
|
+
readonly outputs: readonly [
|
|
1593
|
+
{
|
|
1594
|
+
readonly name: "";
|
|
1595
|
+
readonly type: "string";
|
|
1596
|
+
readonly internalType: "string";
|
|
1597
|
+
}
|
|
1598
|
+
];
|
|
1599
|
+
readonly payable: false;
|
|
1600
|
+
readonly constant: true;
|
|
1601
|
+
readonly stateMutability: "view";
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
readonly name: "price0CumulativeLast";
|
|
1605
|
+
readonly type: "function";
|
|
1606
|
+
readonly inputs: readonly [
|
|
1607
|
+
];
|
|
1608
|
+
readonly outputs: readonly [
|
|
1609
|
+
{
|
|
1610
|
+
readonly name: "";
|
|
1611
|
+
readonly type: "uint256";
|
|
1612
|
+
readonly internalType: "uint256";
|
|
1613
|
+
}
|
|
1614
|
+
];
|
|
1615
|
+
readonly payable: false;
|
|
1616
|
+
readonly constant: true;
|
|
1617
|
+
readonly stateMutability: "view";
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
readonly name: "price1CumulativeLast";
|
|
1621
|
+
readonly type: "function";
|
|
1622
|
+
readonly inputs: readonly [
|
|
1623
|
+
];
|
|
1624
|
+
readonly outputs: readonly [
|
|
1625
|
+
{
|
|
1626
|
+
readonly name: "";
|
|
1627
|
+
readonly type: "uint256";
|
|
1628
|
+
readonly internalType: "uint256";
|
|
1629
|
+
}
|
|
1630
|
+
];
|
|
1631
|
+
readonly payable: false;
|
|
1632
|
+
readonly constant: true;
|
|
1633
|
+
readonly stateMutability: "view";
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
readonly name: "skim";
|
|
1637
|
+
readonly type: "function";
|
|
1638
|
+
readonly inputs: readonly [
|
|
1639
|
+
{
|
|
1640
|
+
readonly name: "to";
|
|
1641
|
+
readonly type: "address";
|
|
1642
|
+
readonly internalType: "address";
|
|
1643
|
+
}
|
|
1644
|
+
];
|
|
1645
|
+
readonly outputs: readonly [
|
|
1646
|
+
];
|
|
1647
|
+
readonly payable: false;
|
|
1648
|
+
readonly constant: false;
|
|
1649
|
+
readonly stateMutability: "nonpayable";
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
readonly name: "swap";
|
|
1653
|
+
readonly type: "function";
|
|
1654
|
+
readonly inputs: readonly [
|
|
1655
|
+
{
|
|
1656
|
+
readonly name: "amount0Out";
|
|
1657
|
+
readonly type: "uint256";
|
|
1658
|
+
readonly internalType: "uint256";
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
readonly name: "amount1Out";
|
|
1662
|
+
readonly type: "uint256";
|
|
1663
|
+
readonly internalType: "uint256";
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
readonly name: "to";
|
|
1667
|
+
readonly type: "address";
|
|
1668
|
+
readonly internalType: "address";
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
readonly name: "data";
|
|
1672
|
+
readonly type: "bytes";
|
|
1673
|
+
readonly internalType: "bytes";
|
|
1674
|
+
}
|
|
1675
|
+
];
|
|
1676
|
+
readonly outputs: readonly [
|
|
1677
|
+
];
|
|
1678
|
+
readonly payable: false;
|
|
1679
|
+
readonly constant: false;
|
|
1680
|
+
readonly stateMutability: "nonpayable";
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
readonly name: "symbol";
|
|
1684
|
+
readonly type: "function";
|
|
1685
|
+
readonly inputs: readonly [
|
|
1686
|
+
];
|
|
1687
|
+
readonly outputs: readonly [
|
|
1688
|
+
{
|
|
1689
|
+
readonly name: "";
|
|
1690
|
+
readonly type: "string";
|
|
1691
|
+
readonly internalType: "string";
|
|
1692
|
+
}
|
|
1693
|
+
];
|
|
1694
|
+
readonly payable: false;
|
|
1695
|
+
readonly constant: true;
|
|
1696
|
+
readonly stateMutability: "view";
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
readonly name: "sync";
|
|
1700
|
+
readonly type: "function";
|
|
1701
|
+
readonly inputs: readonly [
|
|
1702
|
+
];
|
|
1703
|
+
readonly outputs: readonly [
|
|
1704
|
+
];
|
|
1705
|
+
readonly payable: false;
|
|
1706
|
+
readonly constant: false;
|
|
1707
|
+
readonly stateMutability: "nonpayable";
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
readonly name: "token0";
|
|
1711
|
+
readonly type: "function";
|
|
1712
|
+
readonly inputs: readonly [
|
|
1713
|
+
];
|
|
1714
|
+
readonly outputs: readonly [
|
|
1715
|
+
{
|
|
1716
|
+
readonly name: "";
|
|
1717
|
+
readonly type: "address";
|
|
1718
|
+
readonly internalType: "address";
|
|
1719
|
+
}
|
|
1720
|
+
];
|
|
1721
|
+
readonly payable: false;
|
|
1722
|
+
readonly constant: true;
|
|
1723
|
+
readonly stateMutability: "view";
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
readonly name: "token1";
|
|
1727
|
+
readonly type: "function";
|
|
1728
|
+
readonly inputs: readonly [
|
|
1729
|
+
];
|
|
1730
|
+
readonly outputs: readonly [
|
|
1731
|
+
{
|
|
1732
|
+
readonly name: "";
|
|
1733
|
+
readonly type: "address";
|
|
1734
|
+
readonly internalType: "address";
|
|
1735
|
+
}
|
|
1736
|
+
];
|
|
1737
|
+
readonly payable: false;
|
|
1738
|
+
readonly constant: true;
|
|
1739
|
+
readonly stateMutability: "view";
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
readonly name: "totalSupply";
|
|
1743
|
+
readonly type: "function";
|
|
1744
|
+
readonly inputs: readonly [
|
|
1745
|
+
];
|
|
1746
|
+
readonly outputs: readonly [
|
|
1747
|
+
{
|
|
1748
|
+
readonly name: "";
|
|
1749
|
+
readonly type: "uint256";
|
|
1750
|
+
readonly internalType: "uint256";
|
|
1751
|
+
}
|
|
1752
|
+
];
|
|
1753
|
+
readonly payable: false;
|
|
1754
|
+
readonly constant: true;
|
|
1755
|
+
readonly stateMutability: "view";
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
readonly name: "transfer";
|
|
1759
|
+
readonly type: "function";
|
|
1760
|
+
readonly inputs: readonly [
|
|
1761
|
+
{
|
|
1762
|
+
readonly name: "to";
|
|
1763
|
+
readonly type: "address";
|
|
1764
|
+
readonly internalType: "address";
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
readonly name: "value";
|
|
1768
|
+
readonly type: "uint256";
|
|
1769
|
+
readonly internalType: "uint256";
|
|
1770
|
+
}
|
|
1771
|
+
];
|
|
1772
|
+
readonly outputs: readonly [
|
|
1773
|
+
{
|
|
1774
|
+
readonly name: "";
|
|
1775
|
+
readonly type: "bool";
|
|
1776
|
+
readonly internalType: "bool";
|
|
1777
|
+
}
|
|
1778
|
+
];
|
|
1779
|
+
readonly payable: false;
|
|
1780
|
+
readonly constant: false;
|
|
1781
|
+
readonly stateMutability: "nonpayable";
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
readonly name: "transferFrom";
|
|
1785
|
+
readonly type: "function";
|
|
1786
|
+
readonly inputs: readonly [
|
|
1787
|
+
{
|
|
1788
|
+
readonly name: "from";
|
|
1789
|
+
readonly type: "address";
|
|
1790
|
+
readonly internalType: "address";
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
readonly name: "to";
|
|
1794
|
+
readonly type: "address";
|
|
1795
|
+
readonly internalType: "address";
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
readonly name: "value";
|
|
1799
|
+
readonly type: "uint256";
|
|
1800
|
+
readonly internalType: "uint256";
|
|
1801
|
+
}
|
|
1802
|
+
];
|
|
1803
|
+
readonly outputs: readonly [
|
|
1804
|
+
{
|
|
1805
|
+
readonly name: "";
|
|
1806
|
+
readonly type: "bool";
|
|
1807
|
+
readonly internalType: "bool";
|
|
1808
|
+
}
|
|
1809
|
+
];
|
|
1810
|
+
readonly payable: false;
|
|
1811
|
+
readonly constant: false;
|
|
1812
|
+
readonly stateMutability: "nonpayable";
|
|
1813
|
+
}
|
|
1814
|
+
];
|
|
1815
|
+
get type(): string;
|
|
1816
|
+
balanceOf(account?: `0x${string}`): Promise<{
|
|
1817
|
+
value: string;
|
|
1818
|
+
format: string;
|
|
1819
|
+
originFormat: string;
|
|
1820
|
+
decimals: string;
|
|
1821
|
+
isZero: boolean;
|
|
1822
|
+
}>;
|
|
1823
|
+
approve(spender: `0x${string}`, amount: string, owner: `0x${string}`): Promise<`0x${string}` | null>;
|
|
1824
|
+
kLast: () => Promise<any>;
|
|
1825
|
+
name(): Promise<string>;
|
|
1826
|
+
symbol(): Promise<string>;
|
|
1827
|
+
token0(): Promise<`0x${string}`>;
|
|
1828
|
+
token1(): Promise<`0x${string}`>;
|
|
1829
|
+
factory: () => Promise<any>;
|
|
1830
|
+
decimals: () => Promise<any>;
|
|
1831
|
+
allowance: (owner: string, spender: string) => Promise<any>;
|
|
1832
|
+
getReserves: () => Promise<any>;
|
|
1833
|
+
totalSupply: () => Promise<any>;
|
|
1834
|
+
burn: (to: `0x${string}`) => Promise<any>;
|
|
1835
|
+
mint: (to: `0x${string}`) => Promise<any>;
|
|
1836
|
+
skim: (to: `0x${string}`) => Promise<any>;
|
|
1837
|
+
swap: (amount0Out: string, amount1Out: string, to: `0x${string}`, data: string) => Promise<any>;
|
|
1838
|
+
sync: () => Promise<any>;
|
|
1839
|
+
transfer: (to: `0x${string}`, value: string) => Promise<any>;
|
|
1840
|
+
transferFrom: (from: `0x${string}`, to: `0x${string}`, value: string) => Promise<any>;
|
|
367
1841
|
}
|
|
368
1842
|
declare class GaugeEntity {
|
|
369
1843
|
address: `0x${string}`;
|
|
@@ -580,25 +2054,6 @@ declare class GaugeEntity {
|
|
|
580
2054
|
readonly stateMutability: "nonpayable";
|
|
581
2055
|
readonly type: "function";
|
|
582
2056
|
},
|
|
583
|
-
{
|
|
584
|
-
readonly inputs: readonly [
|
|
585
|
-
{
|
|
586
|
-
readonly internalType: "uint256";
|
|
587
|
-
readonly name: "_amountOrNFTID";
|
|
588
|
-
readonly type: "uint256";
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
readonly internalType: "address";
|
|
592
|
-
readonly name: "_recipient";
|
|
593
|
-
readonly type: "address";
|
|
594
|
-
}
|
|
595
|
-
];
|
|
596
|
-
readonly name: "deposit";
|
|
597
|
-
readonly outputs: readonly [
|
|
598
|
-
];
|
|
599
|
-
readonly stateMutability: "nonpayable";
|
|
600
|
-
readonly type: "function";
|
|
601
|
-
},
|
|
602
2057
|
{
|
|
603
2058
|
readonly inputs: readonly [
|
|
604
2059
|
{
|
|
@@ -980,15 +2435,31 @@ declare class GaugeEntity {
|
|
|
980
2435
|
readonly type: "function";
|
|
981
2436
|
}
|
|
982
2437
|
];
|
|
983
|
-
gaugeType(): Promise<"
|
|
2438
|
+
gaugeType(): Promise<"ERC20" | "ERC721" | "LPToken">;
|
|
2439
|
+
stakingTokenInfo(account?: `0x${string}`): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
2440
|
+
name: true;
|
|
2441
|
+
symbol: true;
|
|
2442
|
+
tokenUrl: true;
|
|
2443
|
+
balanceOf: [
|
|
2444
|
+
`0x${string}` | undefined
|
|
2445
|
+
];
|
|
2446
|
+
}> | import("@dappworks/kit/aiem").QueryReturnType<ERC721Entity, {
|
|
2447
|
+
name: true;
|
|
2448
|
+
symbol: true;
|
|
2449
|
+
tokenUrl: true;
|
|
2450
|
+
balanceOf: [
|
|
2451
|
+
`0x${string}` | undefined
|
|
2452
|
+
];
|
|
2453
|
+
}> | import("@dappworks/kit/aiem").QueryReturnType<LPTokenEntity, {
|
|
2454
|
+
name: true;
|
|
2455
|
+
symbol: true;
|
|
2456
|
+
tokenUrl: true;
|
|
2457
|
+
balanceOf: [
|
|
2458
|
+
`0x${string}` | undefined
|
|
2459
|
+
];
|
|
2460
|
+
}> | null | undefined>;
|
|
984
2461
|
apr(): Promise<string | 0>;
|
|
985
2462
|
rewards(account: `0x${string}`): Promise<{
|
|
986
|
-
value: string;
|
|
987
|
-
format: string;
|
|
988
|
-
originFormat: string;
|
|
989
|
-
decimals: string;
|
|
990
|
-
isZero: boolean;
|
|
991
|
-
} | {
|
|
992
2463
|
rewards: {
|
|
993
2464
|
value: string;
|
|
994
2465
|
format: string;
|
|
@@ -999,12 +2470,6 @@ declare class GaugeEntity {
|
|
|
999
2470
|
rewardsUSD: string;
|
|
1000
2471
|
}>;
|
|
1001
2472
|
balanceOf(account: `0x${string}`): Promise<{
|
|
1002
|
-
value: string;
|
|
1003
|
-
format: string;
|
|
1004
|
-
originFormat: string;
|
|
1005
|
-
decimals: string;
|
|
1006
|
-
isZero: boolean;
|
|
1007
|
-
} | {
|
|
1008
2473
|
balanceOf: {
|
|
1009
2474
|
value: string;
|
|
1010
2475
|
format: string;
|
|
@@ -1013,16 +2478,8 @@ declare class GaugeEntity {
|
|
|
1013
2478
|
isZero: boolean;
|
|
1014
2479
|
};
|
|
1015
2480
|
balanceOfUSD: string;
|
|
1016
|
-
} | {
|
|
1017
|
-
balanceOf: {
|
|
1018
|
-
value: string;
|
|
1019
|
-
format: string;
|
|
1020
|
-
originFormat: string;
|
|
1021
|
-
decimals: string;
|
|
1022
|
-
isZero: boolean;
|
|
1023
|
-
};
|
|
1024
|
-
balanceOfUSD?: undefined;
|
|
1025
2481
|
}>;
|
|
2482
|
+
StakingToken: ERC20Entity;
|
|
1026
2483
|
Incentive: ERC20Entity;
|
|
1027
2484
|
totalSupply(): Promise<{
|
|
1028
2485
|
totalSupply: {
|
|
@@ -2289,6 +3746,7 @@ declare class MarshallDao {
|
|
|
2289
3746
|
];
|
|
2290
3747
|
totalVote: true;
|
|
2291
3748
|
votingApr: true;
|
|
3749
|
+
stakingTokenInfo: true;
|
|
2292
3750
|
}>[] | undefined>;
|
|
2293
3751
|
voterInfo(args: {
|
|
2294
3752
|
account: `0x${string}`;
|
|
@@ -2302,12 +3760,19 @@ declare class MarshallDao {
|
|
|
2302
3760
|
];
|
|
2303
3761
|
weeklyVoteEmissions: true;
|
|
2304
3762
|
}> | undefined>;
|
|
2305
|
-
epochVoteEnd(): Promise<void>;
|
|
2306
3763
|
depositToGauge(args: {
|
|
2307
|
-
gagueAddress: string
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
}): Promise<
|
|
3764
|
+
gagueAddress: `0x${string}`;
|
|
3765
|
+
amountOrTokenId: string;
|
|
3766
|
+
account: `0x${string}`;
|
|
3767
|
+
}): Promise<{
|
|
3768
|
+
deposit: any;
|
|
3769
|
+
approve: `0x${string}` | null | undefined;
|
|
3770
|
+
error?: undefined;
|
|
3771
|
+
} | {
|
|
3772
|
+
error: unknown;
|
|
3773
|
+
deposit?: undefined;
|
|
3774
|
+
approve?: undefined;
|
|
3775
|
+
}>;
|
|
2311
3776
|
withdrawFromGauge(args: {
|
|
2312
3777
|
gagueAddress: string;
|
|
2313
3778
|
amount: string;
|
|
@@ -5465,12 +6930,42 @@ declare class Staking {
|
|
|
5465
6930
|
token_id: string;
|
|
5466
6931
|
}): Promise<any>;
|
|
5467
6932
|
}
|
|
6933
|
+
declare class utils {
|
|
6934
|
+
erc20(args: {
|
|
6935
|
+
account: `0x${string}`;
|
|
6936
|
+
address: `0x${string}`;
|
|
6937
|
+
chainId: string;
|
|
6938
|
+
}): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
6939
|
+
name: true;
|
|
6940
|
+
symbol: true;
|
|
6941
|
+
balanceOf: [
|
|
6942
|
+
`0x${string}`
|
|
6943
|
+
];
|
|
6944
|
+
decimals: true;
|
|
6945
|
+
priceUSD: true;
|
|
6946
|
+
tokenUrl: true;
|
|
6947
|
+
}>>;
|
|
6948
|
+
approveERC20(args: {
|
|
6949
|
+
spender: `0x${string}`;
|
|
6950
|
+
amount: string;
|
|
6951
|
+
account: `0x${string}`;
|
|
6952
|
+
address: `0x${string}`;
|
|
6953
|
+
chainId: string;
|
|
6954
|
+
}): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
6955
|
+
approve: [
|
|
6956
|
+
`0x${string}`,
|
|
6957
|
+
string,
|
|
6958
|
+
`0x${string}`
|
|
6959
|
+
];
|
|
6960
|
+
}>>;
|
|
6961
|
+
}
|
|
5468
6962
|
declare const modules: {
|
|
5469
6963
|
mimo: Mimo;
|
|
5470
6964
|
staking: Staking;
|
|
5471
6965
|
marshalldao: MarshallDao;
|
|
5472
6966
|
ioid: IoID;
|
|
5473
6967
|
msp: MSP;
|
|
6968
|
+
utils: utils;
|
|
5474
6969
|
};
|
|
5475
6970
|
export type ModuleType = typeof modules;
|
|
5476
6971
|
export declare const createClient: ({ url }?: {
|