@near-kit-tool-box/fun 0.1.4 → 0.1.5

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.
@@ -531,4 +531,536 @@ export declare function pumpopoly_move_player_fun(near: Near, pumpopoly_contract
531
531
  }[];
532
532
  }[];
533
533
  }>;
534
+ export declare function pumpopoly_elite_move_fun(near: Near, pumpopoly_contractId: string): Promise<{
535
+ final_execution_status: "NONE";
536
+ transaction?: {
537
+ hash: string;
538
+ signer_id: string;
539
+ receiver_id: string;
540
+ nonce: number;
541
+ } | undefined;
542
+ } | {
543
+ final_execution_status: "INCLUDED";
544
+ transaction?: {
545
+ hash: string;
546
+ signer_id: string;
547
+ receiver_id: string;
548
+ nonce: number;
549
+ } | undefined;
550
+ } | {
551
+ final_execution_status: "INCLUDED_FINAL";
552
+ transaction?: {
553
+ hash: string;
554
+ signer_id: string;
555
+ receiver_id: string;
556
+ nonce: number;
557
+ } | undefined;
558
+ } | {
559
+ final_execution_status: "EXECUTED_OPTIMISTIC";
560
+ status: "Unknown" | "Pending" | {
561
+ SuccessValue: string;
562
+ } | {
563
+ SuccessReceiptId: string;
564
+ } | {
565
+ Failure: {
566
+ [x: string]: any;
567
+ error_message?: string | undefined;
568
+ error_type?: string | undefined;
569
+ };
570
+ };
571
+ transaction: {
572
+ signer_id: string;
573
+ public_key: string;
574
+ nonce: number;
575
+ receiver_id: string;
576
+ actions: ("CreateAccount" | {
577
+ CreateAccount: Record<string, never>;
578
+ } | {
579
+ Transfer: {
580
+ deposit: string;
581
+ };
582
+ } | {
583
+ FunctionCall: {
584
+ method_name: string;
585
+ args: string;
586
+ gas: number;
587
+ deposit: string;
588
+ };
589
+ } | {
590
+ DeployContract: {
591
+ code: string;
592
+ };
593
+ } | {
594
+ DeployGlobalContract: {
595
+ code: string;
596
+ };
597
+ } | {
598
+ DeployGlobalContractByAccountId: {
599
+ code: string;
600
+ };
601
+ } | {
602
+ Stake: {
603
+ stake: string;
604
+ public_key: string;
605
+ };
606
+ } | {
607
+ AddKey: {
608
+ public_key: string;
609
+ access_key: {
610
+ nonce: number;
611
+ permission: "FullAccess" | {
612
+ FunctionCall: {
613
+ receiver_id: string;
614
+ method_names: string[];
615
+ allowance?: string | null | undefined;
616
+ };
617
+ };
618
+ };
619
+ };
620
+ } | {
621
+ DeleteKey: {
622
+ public_key: string;
623
+ };
624
+ } | {
625
+ DeleteAccount: {
626
+ beneficiary_id: string;
627
+ };
628
+ } | {
629
+ UseGlobalContract: {
630
+ code_hash: string;
631
+ };
632
+ } | {
633
+ UseGlobalContractByAccountId: {
634
+ account_id: string;
635
+ };
636
+ } | {
637
+ Delegate: {
638
+ delegate_action: {
639
+ sender_id: string;
640
+ receiver_id: string;
641
+ actions: any[];
642
+ nonce: number;
643
+ max_block_height: number;
644
+ public_key: string;
645
+ };
646
+ signature: string;
647
+ };
648
+ } | {
649
+ DeterministicStateInit: {
650
+ deposit: string;
651
+ };
652
+ })[];
653
+ signature: string;
654
+ hash: string;
655
+ priority_fee?: number | undefined;
656
+ };
657
+ transaction_outcome: {
658
+ id: string;
659
+ outcome: {
660
+ logs: string[];
661
+ receipt_ids: string[];
662
+ gas_burnt: number;
663
+ tokens_burnt: string;
664
+ executor_id: string;
665
+ status: "Unknown" | "Pending" | {
666
+ SuccessValue: string;
667
+ } | {
668
+ SuccessReceiptId: string;
669
+ } | {
670
+ Failure: {
671
+ [x: string]: any;
672
+ error_message?: string | undefined;
673
+ error_type?: string | undefined;
674
+ };
675
+ };
676
+ metadata?: {
677
+ version: number;
678
+ gas_profile?: {
679
+ [x: string]: any;
680
+ cost?: string | undefined;
681
+ cost_category?: string | undefined;
682
+ gas_used?: string | undefined;
683
+ }[] | null | undefined;
684
+ } | undefined;
685
+ };
686
+ block_hash: string;
687
+ proof: {
688
+ hash: string;
689
+ direction: "Left" | "Right";
690
+ }[];
691
+ };
692
+ receipts_outcome: {
693
+ id: string;
694
+ outcome: {
695
+ logs: string[];
696
+ receipt_ids: string[];
697
+ gas_burnt: number;
698
+ tokens_burnt: string;
699
+ executor_id: string;
700
+ status: "Unknown" | "Pending" | {
701
+ SuccessValue: string;
702
+ } | {
703
+ SuccessReceiptId: string;
704
+ } | {
705
+ Failure: {
706
+ [x: string]: any;
707
+ error_message?: string | undefined;
708
+ error_type?: string | undefined;
709
+ };
710
+ };
711
+ metadata?: {
712
+ version: number;
713
+ gas_profile?: {
714
+ [x: string]: any;
715
+ cost?: string | undefined;
716
+ cost_category?: string | undefined;
717
+ gas_used?: string | undefined;
718
+ }[] | null | undefined;
719
+ } | undefined;
720
+ };
721
+ block_hash: string;
722
+ proof: {
723
+ hash: string;
724
+ direction: "Left" | "Right";
725
+ }[];
726
+ }[];
727
+ } | {
728
+ final_execution_status: "EXECUTED";
729
+ status: "Unknown" | "Pending" | {
730
+ SuccessValue: string;
731
+ } | {
732
+ SuccessReceiptId: string;
733
+ } | {
734
+ Failure: {
735
+ [x: string]: any;
736
+ error_message?: string | undefined;
737
+ error_type?: string | undefined;
738
+ };
739
+ };
740
+ transaction: {
741
+ signer_id: string;
742
+ public_key: string;
743
+ nonce: number;
744
+ receiver_id: string;
745
+ actions: ("CreateAccount" | {
746
+ CreateAccount: Record<string, never>;
747
+ } | {
748
+ Transfer: {
749
+ deposit: string;
750
+ };
751
+ } | {
752
+ FunctionCall: {
753
+ method_name: string;
754
+ args: string;
755
+ gas: number;
756
+ deposit: string;
757
+ };
758
+ } | {
759
+ DeployContract: {
760
+ code: string;
761
+ };
762
+ } | {
763
+ DeployGlobalContract: {
764
+ code: string;
765
+ };
766
+ } | {
767
+ DeployGlobalContractByAccountId: {
768
+ code: string;
769
+ };
770
+ } | {
771
+ Stake: {
772
+ stake: string;
773
+ public_key: string;
774
+ };
775
+ } | {
776
+ AddKey: {
777
+ public_key: string;
778
+ access_key: {
779
+ nonce: number;
780
+ permission: "FullAccess" | {
781
+ FunctionCall: {
782
+ receiver_id: string;
783
+ method_names: string[];
784
+ allowance?: string | null | undefined;
785
+ };
786
+ };
787
+ };
788
+ };
789
+ } | {
790
+ DeleteKey: {
791
+ public_key: string;
792
+ };
793
+ } | {
794
+ DeleteAccount: {
795
+ beneficiary_id: string;
796
+ };
797
+ } | {
798
+ UseGlobalContract: {
799
+ code_hash: string;
800
+ };
801
+ } | {
802
+ UseGlobalContractByAccountId: {
803
+ account_id: string;
804
+ };
805
+ } | {
806
+ Delegate: {
807
+ delegate_action: {
808
+ sender_id: string;
809
+ receiver_id: string;
810
+ actions: any[];
811
+ nonce: number;
812
+ max_block_height: number;
813
+ public_key: string;
814
+ };
815
+ signature: string;
816
+ };
817
+ } | {
818
+ DeterministicStateInit: {
819
+ deposit: string;
820
+ };
821
+ })[];
822
+ signature: string;
823
+ hash: string;
824
+ priority_fee?: number | undefined;
825
+ };
826
+ transaction_outcome: {
827
+ id: string;
828
+ outcome: {
829
+ logs: string[];
830
+ receipt_ids: string[];
831
+ gas_burnt: number;
832
+ tokens_burnt: string;
833
+ executor_id: string;
834
+ status: "Unknown" | "Pending" | {
835
+ SuccessValue: string;
836
+ } | {
837
+ SuccessReceiptId: string;
838
+ } | {
839
+ Failure: {
840
+ [x: string]: any;
841
+ error_message?: string | undefined;
842
+ error_type?: string | undefined;
843
+ };
844
+ };
845
+ metadata?: {
846
+ version: number;
847
+ gas_profile?: {
848
+ [x: string]: any;
849
+ cost?: string | undefined;
850
+ cost_category?: string | undefined;
851
+ gas_used?: string | undefined;
852
+ }[] | null | undefined;
853
+ } | undefined;
854
+ };
855
+ block_hash: string;
856
+ proof: {
857
+ hash: string;
858
+ direction: "Left" | "Right";
859
+ }[];
860
+ };
861
+ receipts_outcome: {
862
+ id: string;
863
+ outcome: {
864
+ logs: string[];
865
+ receipt_ids: string[];
866
+ gas_burnt: number;
867
+ tokens_burnt: string;
868
+ executor_id: string;
869
+ status: "Unknown" | "Pending" | {
870
+ SuccessValue: string;
871
+ } | {
872
+ SuccessReceiptId: string;
873
+ } | {
874
+ Failure: {
875
+ [x: string]: any;
876
+ error_message?: string | undefined;
877
+ error_type?: string | undefined;
878
+ };
879
+ };
880
+ metadata?: {
881
+ version: number;
882
+ gas_profile?: {
883
+ [x: string]: any;
884
+ cost?: string | undefined;
885
+ cost_category?: string | undefined;
886
+ gas_used?: string | undefined;
887
+ }[] | null | undefined;
888
+ } | undefined;
889
+ };
890
+ block_hash: string;
891
+ proof: {
892
+ hash: string;
893
+ direction: "Left" | "Right";
894
+ }[];
895
+ }[];
896
+ } | {
897
+ final_execution_status: "FINAL";
898
+ status: "Unknown" | "Pending" | {
899
+ SuccessValue: string;
900
+ } | {
901
+ SuccessReceiptId: string;
902
+ } | {
903
+ Failure: {
904
+ [x: string]: any;
905
+ error_message?: string | undefined;
906
+ error_type?: string | undefined;
907
+ };
908
+ };
909
+ transaction: {
910
+ signer_id: string;
911
+ public_key: string;
912
+ nonce: number;
913
+ receiver_id: string;
914
+ actions: ("CreateAccount" | {
915
+ CreateAccount: Record<string, never>;
916
+ } | {
917
+ Transfer: {
918
+ deposit: string;
919
+ };
920
+ } | {
921
+ FunctionCall: {
922
+ method_name: string;
923
+ args: string;
924
+ gas: number;
925
+ deposit: string;
926
+ };
927
+ } | {
928
+ DeployContract: {
929
+ code: string;
930
+ };
931
+ } | {
932
+ DeployGlobalContract: {
933
+ code: string;
934
+ };
935
+ } | {
936
+ DeployGlobalContractByAccountId: {
937
+ code: string;
938
+ };
939
+ } | {
940
+ Stake: {
941
+ stake: string;
942
+ public_key: string;
943
+ };
944
+ } | {
945
+ AddKey: {
946
+ public_key: string;
947
+ access_key: {
948
+ nonce: number;
949
+ permission: "FullAccess" | {
950
+ FunctionCall: {
951
+ receiver_id: string;
952
+ method_names: string[];
953
+ allowance?: string | null | undefined;
954
+ };
955
+ };
956
+ };
957
+ };
958
+ } | {
959
+ DeleteKey: {
960
+ public_key: string;
961
+ };
962
+ } | {
963
+ DeleteAccount: {
964
+ beneficiary_id: string;
965
+ };
966
+ } | {
967
+ UseGlobalContract: {
968
+ code_hash: string;
969
+ };
970
+ } | {
971
+ UseGlobalContractByAccountId: {
972
+ account_id: string;
973
+ };
974
+ } | {
975
+ Delegate: {
976
+ delegate_action: {
977
+ sender_id: string;
978
+ receiver_id: string;
979
+ actions: any[];
980
+ nonce: number;
981
+ max_block_height: number;
982
+ public_key: string;
983
+ };
984
+ signature: string;
985
+ };
986
+ } | {
987
+ DeterministicStateInit: {
988
+ deposit: string;
989
+ };
990
+ })[];
991
+ signature: string;
992
+ hash: string;
993
+ priority_fee?: number | undefined;
994
+ };
995
+ transaction_outcome: {
996
+ id: string;
997
+ outcome: {
998
+ logs: string[];
999
+ receipt_ids: string[];
1000
+ gas_burnt: number;
1001
+ tokens_burnt: string;
1002
+ executor_id: string;
1003
+ status: "Unknown" | "Pending" | {
1004
+ SuccessValue: string;
1005
+ } | {
1006
+ SuccessReceiptId: string;
1007
+ } | {
1008
+ Failure: {
1009
+ [x: string]: any;
1010
+ error_message?: string | undefined;
1011
+ error_type?: string | undefined;
1012
+ };
1013
+ };
1014
+ metadata?: {
1015
+ version: number;
1016
+ gas_profile?: {
1017
+ [x: string]: any;
1018
+ cost?: string | undefined;
1019
+ cost_category?: string | undefined;
1020
+ gas_used?: string | undefined;
1021
+ }[] | null | undefined;
1022
+ } | undefined;
1023
+ };
1024
+ block_hash: string;
1025
+ proof: {
1026
+ hash: string;
1027
+ direction: "Left" | "Right";
1028
+ }[];
1029
+ };
1030
+ receipts_outcome: {
1031
+ id: string;
1032
+ outcome: {
1033
+ logs: string[];
1034
+ receipt_ids: string[];
1035
+ gas_burnt: number;
1036
+ tokens_burnt: string;
1037
+ executor_id: string;
1038
+ status: "Unknown" | "Pending" | {
1039
+ SuccessValue: string;
1040
+ } | {
1041
+ SuccessReceiptId: string;
1042
+ } | {
1043
+ Failure: {
1044
+ [x: string]: any;
1045
+ error_message?: string | undefined;
1046
+ error_type?: string | undefined;
1047
+ };
1048
+ };
1049
+ metadata?: {
1050
+ version: number;
1051
+ gas_profile?: {
1052
+ [x: string]: any;
1053
+ cost?: string | undefined;
1054
+ cost_category?: string | undefined;
1055
+ gas_used?: string | undefined;
1056
+ }[] | null | undefined;
1057
+ } | undefined;
1058
+ };
1059
+ block_hash: string;
1060
+ proof: {
1061
+ hash: string;
1062
+ direction: "Left" | "Right";
1063
+ }[];
1064
+ }[];
1065
+ }>;
534
1066
  //# sourceMappingURL=pumpopoly_world_fun.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pumpopoly_world_fun.d.ts","sourceRoot":"","sources":["../../../src/fun/pumpopoly/pumpopoly_world_fun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAQhC,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,IAAI,EACV,oBAAoB,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAS7B"}
1
+ {"version":3,"file":"pumpopoly_world_fun.d.ts","sourceRoot":"","sources":["../../../src/fun/pumpopoly/pumpopoly_world_fun.ts"],"names":[],"mappings":"A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAS7B"}
@@ -3,6 +3,7 @@ import { world_pumpopoly_methods_const } from "@sleet-js/pumpopoly-contract-meth
3
3
  // ===========================================
4
4
  // call
5
5
  // move_player
6
+ // elite_move
6
7
  // ===========================================
7
8
  // pumpopoly_move_player_fun
8
9
  export async function pumpopoly_move_player_fun(near, pumpopoly_contractId) {
@@ -10,4 +11,10 @@ export async function pumpopoly_move_player_fun(near, pumpopoly_contractId) {
10
11
  return result;
11
12
  }
12
13
  // ===========================================
14
+ // pumpopoly_elite_move_fun
15
+ export async function pumpopoly_elite_move_fun(near, pumpopoly_contractId) {
16
+ const result = await near.call(pumpopoly_contractId, world_pumpopoly_methods_const.elite_move, { contract_id: "1" }, { gas: "100 Tgas" });
17
+ return result;
18
+ }
19
+ // ===========================================
13
20
  //# sourceMappingURL=pumpopoly_world_fun.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pumpopoly_world_fun.js","sourceRoot":"","sources":["../../../src/fun/pumpopoly/pumpopoly_world_fun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAE3F,8CAA8C;AAC9C,OAAO;AACP,cAAc;AACd,8CAA8C;AAC9C,4BAA4B;AAC5B,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,IAAU,EACV,oBAA4B;IAE5B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAC5B,oBAAoB,EACpB,6BAA6B,CAAC,WAAW,EACzC,EAAE,EACF,EAAE,GAAG,EAAE,SAAS,EAAE,CACnB,CAAC;IACF,OAAO,MAA+B,CAAC;AACzC,CAAC;AACD,8CAA8C"}
1
+ {"version":3,"file":"pumpopoly_world_fun.js","sourceRoot":"","sources":["../../../src/fun/pumpopoly/pumpopoly_world_fun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAE3F,8CAA8C;AAC9C,OAAO;AACP,cAAc;AACd,aAAa;AACb,8CAA8C;AAC9C,4BAA4B;AAC5B,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,IAAU,EACV,oBAA4B;IAE5B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAC5B,oBAAoB,EACpB,6BAA6B,CAAC,WAAW,EACzC,EAAE,EACF,EAAE,GAAG,EAAE,SAAS,EAAE,CACnB,CAAC;IACF,OAAO,MAA+B,CAAC;AACzC,CAAC;AACD,8CAA8C;AAC9C,2BAA2B;AAC3B,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,IAAU,EACV,oBAA4B;IAE5B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAC5B,oBAAoB,EACpB,6BAA6B,CAAC,UAAU,EACxC,EAAE,WAAW,EAAE,GAAG,EAAE,EACpB,EAAE,GAAG,EAAE,UAAU,EAAE,CACpB,CAAC;IACF,OAAO,MAA+B,CAAC;AACzC,CAAC;AACD,8CAA8C"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@near-kit-tool-box/fun",
3
3
  "description": "Reusable contract functions for common NEAR contracts",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "homepage": "https://sleet-js.near.page",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",