anymal-protocol 1.0.48 → 1.0.51

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.mjs CHANGED
@@ -21,7 +21,7 @@ var VERIFY_ACCOUNT_ABI = [
21
21
  }
22
22
  ];
23
23
  var MARKETPLACE_ABI = [{ "inputs": [{ "internalType": "address", "name": "target", "type": "address" }], "name": "AddressEmptyCode", "type": "error" }, { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "length", "type": "uint256" }], "name": "ECDSAInvalidSignatureLength", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "ECDSAInvalidSignatureS", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "ERC1967InvalidImplementation", "type": "error" }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, { "inputs": [], "name": "FailedCall", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "slot", "type": "bytes32" }], "name": "UUPSUnsupportedProxiableUUID", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, { "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": true, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "string", "name": "anymalNftId", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "name": "PartialPaymentMade", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, { "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "name": "PaymentMade", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, { "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": true, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "refundedAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "name": "RefundProcessed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bool", "name": "enabled", "type": "bool" }], "name": "SignatureCheckToggled", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "UPGRADE_INTERFACE_VERSION", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "authorizer", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_initialOwner", "type": "address" }, { "internalType": "address", "name": "_authorizer", "type": "address" }, { "internalType": "address", "name": "_kibbleToken", "type": "address" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "kibbleToken", "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "address", "name": "", "type": "address" }], "name": "paidAmounts", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "orderId", "type": "string" }, { "internalType": "string", "name": "anymalNftId", "type": "string" }, { "internalType": "string", "name": "pid", "type": "string" }, { "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, { "internalType": "uint256", "name": "maxTokenPayment", "type": "uint256" }, { "internalType": "bytes32", "name": "nonce", "type": "bytes32" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "bytes", "name": "backendSignature", "type": "bytes" }], "name": "partialPay", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "proxiableUUID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "orderId", "type": "string" }, { "internalType": "address", "name": "payer", "type": "address" }, { "internalType": "string", "name": "pid", "type": "string" }], "name": "refund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_authorizer", "type": "address" }], "name": "setAuthorizer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "enabled", "type": "bool" }], "name": "setSignatureCheckEnabled", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "signatureCheckEnabled", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "upgradeToAndCall", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "usedNonces", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawKibble", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
24
- var ORGANIZATION_ABI = [
24
+ var ORGANIZATION_BEACON_ABI = [
25
25
  {
26
26
  "inputs": [
27
27
  {
@@ -260,6 +260,816 @@ var ORGANIZATION_ABI = [
260
260
  "type": "function"
261
261
  }
262
262
  ];
263
+ var ORGANIZATION_IMPL_ABI = [
264
+ {
265
+ "inputs": [],
266
+ "stateMutability": "nonpayable",
267
+ "type": "constructor"
268
+ },
269
+ {
270
+ "inputs": [],
271
+ "name": "AccessControlBadConfirmation",
272
+ "type": "error"
273
+ },
274
+ {
275
+ "inputs": [
276
+ {
277
+ "internalType": "address",
278
+ "name": "account",
279
+ "type": "address"
280
+ },
281
+ {
282
+ "internalType": "bytes32",
283
+ "name": "neededRole",
284
+ "type": "bytes32"
285
+ }
286
+ ],
287
+ "name": "AccessControlUnauthorizedAccount",
288
+ "type": "error"
289
+ },
290
+ {
291
+ "inputs": [],
292
+ "name": "EnforcedPause",
293
+ "type": "error"
294
+ },
295
+ {
296
+ "inputs": [],
297
+ "name": "ExpectedPause",
298
+ "type": "error"
299
+ },
300
+ {
301
+ "inputs": [],
302
+ "name": "InvalidInitialization",
303
+ "type": "error"
304
+ },
305
+ {
306
+ "inputs": [],
307
+ "name": "NotInitializing",
308
+ "type": "error"
309
+ },
310
+ {
311
+ "inputs": [],
312
+ "name": "ReentrancyGuardReentrantCall",
313
+ "type": "error"
314
+ },
315
+ {
316
+ "anonymous": false,
317
+ "inputs": [
318
+ {
319
+ "indexed": true,
320
+ "internalType": "string",
321
+ "name": "pid",
322
+ "type": "string"
323
+ },
324
+ {
325
+ "indexed": true,
326
+ "internalType": "address",
327
+ "name": "newAdmin",
328
+ "type": "address"
329
+ }
330
+ ],
331
+ "name": "AdminAdded",
332
+ "type": "event"
333
+ },
334
+ {
335
+ "anonymous": false,
336
+ "inputs": [
337
+ {
338
+ "indexed": true,
339
+ "internalType": "string",
340
+ "name": "pid",
341
+ "type": "string"
342
+ },
343
+ {
344
+ "indexed": true,
345
+ "internalType": "address",
346
+ "name": "admin",
347
+ "type": "address"
348
+ }
349
+ ],
350
+ "name": "AdminRemoved",
351
+ "type": "event"
352
+ },
353
+ {
354
+ "anonymous": false,
355
+ "inputs": [
356
+ {
357
+ "indexed": true,
358
+ "internalType": "string",
359
+ "name": "pid",
360
+ "type": "string"
361
+ },
362
+ {
363
+ "indexed": true,
364
+ "internalType": "uint256",
365
+ "name": "tokenId",
366
+ "type": "uint256"
367
+ },
368
+ {
369
+ "indexed": true,
370
+ "internalType": "address",
371
+ "name": "to",
372
+ "type": "address"
373
+ }
374
+ ],
375
+ "name": "AnymalTransferred",
376
+ "type": "event"
377
+ },
378
+ {
379
+ "anonymous": false,
380
+ "inputs": [
381
+ {
382
+ "indexed": false,
383
+ "internalType": "uint64",
384
+ "name": "version",
385
+ "type": "uint64"
386
+ }
387
+ ],
388
+ "name": "Initialized",
389
+ "type": "event"
390
+ },
391
+ {
392
+ "anonymous": false,
393
+ "inputs": [
394
+ {
395
+ "indexed": true,
396
+ "internalType": "string",
397
+ "name": "pid",
398
+ "type": "string"
399
+ },
400
+ {
401
+ "indexed": true,
402
+ "internalType": "address",
403
+ "name": "newManager",
404
+ "type": "address"
405
+ }
406
+ ],
407
+ "name": "ManagerAdded",
408
+ "type": "event"
409
+ },
410
+ {
411
+ "anonymous": false,
412
+ "inputs": [
413
+ {
414
+ "indexed": true,
415
+ "internalType": "string",
416
+ "name": "pid",
417
+ "type": "string"
418
+ },
419
+ {
420
+ "indexed": true,
421
+ "internalType": "address",
422
+ "name": "manager",
423
+ "type": "address"
424
+ }
425
+ ],
426
+ "name": "ManagerRemoved",
427
+ "type": "event"
428
+ },
429
+ {
430
+ "anonymous": false,
431
+ "inputs": [
432
+ {
433
+ "indexed": false,
434
+ "internalType": "address",
435
+ "name": "account",
436
+ "type": "address"
437
+ }
438
+ ],
439
+ "name": "Paused",
440
+ "type": "event"
441
+ },
442
+ {
443
+ "anonymous": false,
444
+ "inputs": [
445
+ {
446
+ "indexed": true,
447
+ "internalType": "bytes32",
448
+ "name": "role",
449
+ "type": "bytes32"
450
+ },
451
+ {
452
+ "indexed": true,
453
+ "internalType": "bytes32",
454
+ "name": "previousAdminRole",
455
+ "type": "bytes32"
456
+ },
457
+ {
458
+ "indexed": true,
459
+ "internalType": "bytes32",
460
+ "name": "newAdminRole",
461
+ "type": "bytes32"
462
+ }
463
+ ],
464
+ "name": "RoleAdminChanged",
465
+ "type": "event"
466
+ },
467
+ {
468
+ "anonymous": false,
469
+ "inputs": [
470
+ {
471
+ "indexed": true,
472
+ "internalType": "bytes32",
473
+ "name": "role",
474
+ "type": "bytes32"
475
+ },
476
+ {
477
+ "indexed": true,
478
+ "internalType": "address",
479
+ "name": "account",
480
+ "type": "address"
481
+ },
482
+ {
483
+ "indexed": true,
484
+ "internalType": "address",
485
+ "name": "sender",
486
+ "type": "address"
487
+ }
488
+ ],
489
+ "name": "RoleGranted",
490
+ "type": "event"
491
+ },
492
+ {
493
+ "anonymous": false,
494
+ "inputs": [
495
+ {
496
+ "indexed": true,
497
+ "internalType": "bytes32",
498
+ "name": "role",
499
+ "type": "bytes32"
500
+ },
501
+ {
502
+ "indexed": true,
503
+ "internalType": "address",
504
+ "name": "account",
505
+ "type": "address"
506
+ },
507
+ {
508
+ "indexed": true,
509
+ "internalType": "address",
510
+ "name": "sender",
511
+ "type": "address"
512
+ }
513
+ ],
514
+ "name": "RoleRevoked",
515
+ "type": "event"
516
+ },
517
+ {
518
+ "anonymous": false,
519
+ "inputs": [
520
+ {
521
+ "indexed": true,
522
+ "internalType": "string",
523
+ "name": "pid",
524
+ "type": "string"
525
+ },
526
+ {
527
+ "indexed": false,
528
+ "internalType": "enum OrganizationImplementation.OrgStatus",
529
+ "name": "newStatus",
530
+ "type": "uint8"
531
+ }
532
+ ],
533
+ "name": "StatusUpdated",
534
+ "type": "event"
535
+ },
536
+ {
537
+ "anonymous": false,
538
+ "inputs": [
539
+ {
540
+ "indexed": false,
541
+ "internalType": "address",
542
+ "name": "account",
543
+ "type": "address"
544
+ }
545
+ ],
546
+ "name": "Unpaused",
547
+ "type": "event"
548
+ },
549
+ {
550
+ "inputs": [],
551
+ "name": "ADMIN_ROLE",
552
+ "outputs": [
553
+ {
554
+ "internalType": "bytes32",
555
+ "name": "",
556
+ "type": "bytes32"
557
+ }
558
+ ],
559
+ "stateMutability": "view",
560
+ "type": "function"
561
+ },
562
+ {
563
+ "inputs": [],
564
+ "name": "DEFAULT_ADMIN_ROLE",
565
+ "outputs": [
566
+ {
567
+ "internalType": "bytes32",
568
+ "name": "",
569
+ "type": "bytes32"
570
+ }
571
+ ],
572
+ "stateMutability": "view",
573
+ "type": "function"
574
+ },
575
+ {
576
+ "inputs": [],
577
+ "name": "MANAGER_ROLE",
578
+ "outputs": [
579
+ {
580
+ "internalType": "bytes32",
581
+ "name": "",
582
+ "type": "bytes32"
583
+ }
584
+ ],
585
+ "stateMutability": "view",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "inputs": [
590
+ {
591
+ "internalType": "address",
592
+ "name": "newAdmin",
593
+ "type": "address"
594
+ }
595
+ ],
596
+ "name": "addAdmin",
597
+ "outputs": [],
598
+ "stateMutability": "nonpayable",
599
+ "type": "function"
600
+ },
601
+ {
602
+ "inputs": [
603
+ {
604
+ "internalType": "address",
605
+ "name": "newManager",
606
+ "type": "address"
607
+ }
608
+ ],
609
+ "name": "addManager",
610
+ "outputs": [],
611
+ "stateMutability": "nonpayable",
612
+ "type": "function"
613
+ },
614
+ {
615
+ "inputs": [],
616
+ "name": "anymalNFT",
617
+ "outputs": [
618
+ {
619
+ "internalType": "contract IERC721",
620
+ "name": "",
621
+ "type": "address"
622
+ }
623
+ ],
624
+ "stateMutability": "view",
625
+ "type": "function"
626
+ },
627
+ {
628
+ "inputs": [],
629
+ "name": "approve",
630
+ "outputs": [],
631
+ "stateMutability": "nonpayable",
632
+ "type": "function"
633
+ },
634
+ {
635
+ "inputs": [
636
+ {
637
+ "internalType": "address",
638
+ "name": "token",
639
+ "type": "address"
640
+ },
641
+ {
642
+ "internalType": "address",
643
+ "name": "spender",
644
+ "type": "address"
645
+ },
646
+ {
647
+ "internalType": "uint256",
648
+ "name": "amount",
649
+ "type": "uint256"
650
+ }
651
+ ],
652
+ "name": "approveERC20",
653
+ "outputs": [],
654
+ "stateMutability": "nonpayable",
655
+ "type": "function"
656
+ },
657
+ {
658
+ "inputs": [
659
+ {
660
+ "internalType": "address",
661
+ "name": "target",
662
+ "type": "address"
663
+ },
664
+ {
665
+ "internalType": "bytes",
666
+ "name": "data",
667
+ "type": "bytes"
668
+ }
669
+ ],
670
+ "name": "executeCall",
671
+ "outputs": [
672
+ {
673
+ "internalType": "bytes",
674
+ "name": "",
675
+ "type": "bytes"
676
+ }
677
+ ],
678
+ "stateMutability": "nonpayable",
679
+ "type": "function"
680
+ },
681
+ {
682
+ "inputs": [
683
+ {
684
+ "internalType": "bytes32",
685
+ "name": "role",
686
+ "type": "bytes32"
687
+ }
688
+ ],
689
+ "name": "getRoleAdmin",
690
+ "outputs": [
691
+ {
692
+ "internalType": "bytes32",
693
+ "name": "",
694
+ "type": "bytes32"
695
+ }
696
+ ],
697
+ "stateMutability": "view",
698
+ "type": "function"
699
+ },
700
+ {
701
+ "inputs": [
702
+ {
703
+ "internalType": "bytes32",
704
+ "name": "role",
705
+ "type": "bytes32"
706
+ },
707
+ {
708
+ "internalType": "address",
709
+ "name": "account",
710
+ "type": "address"
711
+ }
712
+ ],
713
+ "name": "grantRole",
714
+ "outputs": [],
715
+ "stateMutability": "nonpayable",
716
+ "type": "function"
717
+ },
718
+ {
719
+ "inputs": [
720
+ {
721
+ "internalType": "bytes32",
722
+ "name": "role",
723
+ "type": "bytes32"
724
+ },
725
+ {
726
+ "internalType": "address",
727
+ "name": "account",
728
+ "type": "address"
729
+ }
730
+ ],
731
+ "name": "hasRole",
732
+ "outputs": [
733
+ {
734
+ "internalType": "bool",
735
+ "name": "",
736
+ "type": "bool"
737
+ }
738
+ ],
739
+ "stateMutability": "view",
740
+ "type": "function"
741
+ },
742
+ {
743
+ "inputs": [
744
+ {
745
+ "internalType": "address",
746
+ "name": "_networkAdmin",
747
+ "type": "address"
748
+ },
749
+ {
750
+ "internalType": "address",
751
+ "name": "_userAdmin",
752
+ "type": "address"
753
+ },
754
+ {
755
+ "internalType": "address",
756
+ "name": "_anymalNFTProxy",
757
+ "type": "address"
758
+ },
759
+ {
760
+ "internalType": "string",
761
+ "name": "_orgName",
762
+ "type": "string"
763
+ },
764
+ {
765
+ "internalType": "string",
766
+ "name": "_orgPid",
767
+ "type": "string"
768
+ }
769
+ ],
770
+ "name": "initialize",
771
+ "outputs": [],
772
+ "stateMutability": "nonpayable",
773
+ "type": "function"
774
+ },
775
+ {
776
+ "inputs": [
777
+ {
778
+ "internalType": "address",
779
+ "name": "",
780
+ "type": "address"
781
+ },
782
+ {
783
+ "internalType": "address",
784
+ "name": "",
785
+ "type": "address"
786
+ },
787
+ {
788
+ "internalType": "uint256",
789
+ "name": "",
790
+ "type": "uint256"
791
+ },
792
+ {
793
+ "internalType": "bytes",
794
+ "name": "",
795
+ "type": "bytes"
796
+ }
797
+ ],
798
+ "name": "onERC721Received",
799
+ "outputs": [
800
+ {
801
+ "internalType": "bytes4",
802
+ "name": "",
803
+ "type": "bytes4"
804
+ }
805
+ ],
806
+ "stateMutability": "pure",
807
+ "type": "function"
808
+ },
809
+ {
810
+ "inputs": [],
811
+ "name": "orgName",
812
+ "outputs": [
813
+ {
814
+ "internalType": "string",
815
+ "name": "",
816
+ "type": "string"
817
+ }
818
+ ],
819
+ "stateMutability": "view",
820
+ "type": "function"
821
+ },
822
+ {
823
+ "inputs": [],
824
+ "name": "orgPid",
825
+ "outputs": [
826
+ {
827
+ "internalType": "string",
828
+ "name": "",
829
+ "type": "string"
830
+ }
831
+ ],
832
+ "stateMutability": "view",
833
+ "type": "function"
834
+ },
835
+ {
836
+ "inputs": [],
837
+ "name": "paused",
838
+ "outputs": [
839
+ {
840
+ "internalType": "bool",
841
+ "name": "",
842
+ "type": "bool"
843
+ }
844
+ ],
845
+ "stateMutability": "view",
846
+ "type": "function"
847
+ },
848
+ {
849
+ "inputs": [
850
+ {
851
+ "internalType": "address",
852
+ "name": "partialPaymentModule",
853
+ "type": "address"
854
+ },
855
+ {
856
+ "internalType": "string",
857
+ "name": "orderId",
858
+ "type": "string"
859
+ },
860
+ {
861
+ "internalType": "string",
862
+ "name": "anymalNftId",
863
+ "type": "string"
864
+ },
865
+ {
866
+ "internalType": "string",
867
+ "name": "pid",
868
+ "type": "string"
869
+ },
870
+ {
871
+ "internalType": "uint256",
872
+ "name": "amountInTokens",
873
+ "type": "uint256"
874
+ },
875
+ {
876
+ "internalType": "uint256",
877
+ "name": "maxTokenPayment",
878
+ "type": "uint256"
879
+ },
880
+ {
881
+ "internalType": "bytes32",
882
+ "name": "nonce",
883
+ "type": "bytes32"
884
+ },
885
+ {
886
+ "internalType": "uint256",
887
+ "name": "deadline",
888
+ "type": "uint256"
889
+ },
890
+ {
891
+ "internalType": "bytes",
892
+ "name": "backendSignature",
893
+ "type": "bytes"
894
+ }
895
+ ],
896
+ "name": "processPartialPayment",
897
+ "outputs": [],
898
+ "stateMutability": "nonpayable",
899
+ "type": "function"
900
+ },
901
+ {
902
+ "inputs": [],
903
+ "name": "reject",
904
+ "outputs": [],
905
+ "stateMutability": "nonpayable",
906
+ "type": "function"
907
+ },
908
+ {
909
+ "inputs": [
910
+ {
911
+ "internalType": "address",
912
+ "name": "admin",
913
+ "type": "address"
914
+ }
915
+ ],
916
+ "name": "removeAdmin",
917
+ "outputs": [],
918
+ "stateMutability": "nonpayable",
919
+ "type": "function"
920
+ },
921
+ {
922
+ "inputs": [
923
+ {
924
+ "internalType": "address",
925
+ "name": "manager",
926
+ "type": "address"
927
+ }
928
+ ],
929
+ "name": "removeManager",
930
+ "outputs": [],
931
+ "stateMutability": "nonpayable",
932
+ "type": "function"
933
+ },
934
+ {
935
+ "inputs": [
936
+ {
937
+ "internalType": "bytes32",
938
+ "name": "role",
939
+ "type": "bytes32"
940
+ },
941
+ {
942
+ "internalType": "address",
943
+ "name": "callerConfirmation",
944
+ "type": "address"
945
+ }
946
+ ],
947
+ "name": "renounceRole",
948
+ "outputs": [],
949
+ "stateMutability": "nonpayable",
950
+ "type": "function"
951
+ },
952
+ {
953
+ "inputs": [
954
+ {
955
+ "internalType": "bytes32",
956
+ "name": "role",
957
+ "type": "bytes32"
958
+ },
959
+ {
960
+ "internalType": "address",
961
+ "name": "account",
962
+ "type": "address"
963
+ }
964
+ ],
965
+ "name": "revokeRole",
966
+ "outputs": [],
967
+ "stateMutability": "nonpayable",
968
+ "type": "function"
969
+ },
970
+ {
971
+ "inputs": [
972
+ {
973
+ "internalType": "address",
974
+ "name": "_anymalNFTProxy",
975
+ "type": "address"
976
+ }
977
+ ],
978
+ "name": "setAnymalNFT",
979
+ "outputs": [],
980
+ "stateMutability": "nonpayable",
981
+ "type": "function"
982
+ },
983
+ {
984
+ "inputs": [
985
+ {
986
+ "internalType": "enum OrganizationImplementation.OrgStatus",
987
+ "name": "newStatus",
988
+ "type": "uint8"
989
+ }
990
+ ],
991
+ "name": "setStatus",
992
+ "outputs": [],
993
+ "stateMutability": "nonpayable",
994
+ "type": "function"
995
+ },
996
+ {
997
+ "inputs": [],
998
+ "name": "status",
999
+ "outputs": [
1000
+ {
1001
+ "internalType": "enum OrganizationImplementation.OrgStatus",
1002
+ "name": "",
1003
+ "type": "uint8"
1004
+ }
1005
+ ],
1006
+ "stateMutability": "view",
1007
+ "type": "function"
1008
+ },
1009
+ {
1010
+ "inputs": [
1011
+ {
1012
+ "internalType": "bytes4",
1013
+ "name": "interfaceId",
1014
+ "type": "bytes4"
1015
+ }
1016
+ ],
1017
+ "name": "supportsInterface",
1018
+ "outputs": [
1019
+ {
1020
+ "internalType": "bool",
1021
+ "name": "",
1022
+ "type": "bool"
1023
+ }
1024
+ ],
1025
+ "stateMutability": "view",
1026
+ "type": "function"
1027
+ },
1028
+ {
1029
+ "inputs": [
1030
+ {
1031
+ "internalType": "address",
1032
+ "name": "to",
1033
+ "type": "address"
1034
+ },
1035
+ {
1036
+ "internalType": "uint256",
1037
+ "name": "tokenId",
1038
+ "type": "uint256"
1039
+ }
1040
+ ],
1041
+ "name": "transferAnymal",
1042
+ "outputs": [],
1043
+ "stateMutability": "nonpayable",
1044
+ "type": "function"
1045
+ },
1046
+ {
1047
+ "inputs": [
1048
+ {
1049
+ "internalType": "string",
1050
+ "name": "newOrgName",
1051
+ "type": "string"
1052
+ }
1053
+ ],
1054
+ "name": "updateMetadata",
1055
+ "outputs": [],
1056
+ "stateMutability": "nonpayable",
1057
+ "type": "function"
1058
+ },
1059
+ {
1060
+ "inputs": [
1061
+ {
1062
+ "internalType": "string",
1063
+ "name": "pid",
1064
+ "type": "string"
1065
+ }
1066
+ ],
1067
+ "name": "updatePid",
1068
+ "outputs": [],
1069
+ "stateMutability": "nonpayable",
1070
+ "type": "function"
1071
+ }
1072
+ ];
263
1073
 
264
1074
  // src/utils/account/useVerifyAccount.ts
265
1075
  function useVerifyAccount() {
@@ -1118,7 +1928,7 @@ function useCreateOrganizationBase() {
1118
1928
  }
1119
1929
  try {
1120
1930
  const callData = encodeFunctionData5({
1121
- abi: ORGANIZATION_ABI,
1931
+ abi: ORGANIZATION_BEACON_ABI,
1122
1932
  functionName: "createOrganizationProxy",
1123
1933
  args: [ownerAddress, orgName, orgPid]
1124
1934
  });
@@ -1148,7 +1958,7 @@ function useCreateOrganizationBase() {
1148
1958
  for (const log of txReceipt.logs) {
1149
1959
  try {
1150
1960
  const decoded = decodeEventLog({
1151
- abi: ORGANIZATION_ABI,
1961
+ abi: ORGANIZATION_BEACON_ABI,
1152
1962
  data: log.data,
1153
1963
  topics: log.topics
1154
1964
  });
@@ -1201,7 +2011,7 @@ function useApproveOrgPartialPayment() {
1201
2011
  args: [partialPaymentModuleAddress, approveAmount]
1202
2012
  });
1203
2013
  const executeApproveCalldata = encodeFunctionData6({
1204
- abi: ORGANIZATION_ABI,
2014
+ abi: ORGANIZATION_IMPL_ABI,
1205
2015
  functionName: "executeCall",
1206
2016
  args: [kibbleTokenAddress, approveCalldata]
1207
2017
  });
@@ -1255,7 +2065,7 @@ function useProcessOrgPartialKibblePayment() {
1255
2065
  ]
1256
2066
  });
1257
2067
  const executePartialPayCalldata = encodeFunctionData7({
1258
- abi: ORGANIZATION_ABI,
2068
+ abi: ORGANIZATION_IMPL_ABI,
1259
2069
  functionName: "executeCall",
1260
2070
  args: [partialPaymentModuleAddress, partialPayCalldata]
1261
2071
  });