|
70 | 70 | "kind": ["function", "m", "Method"],
|
71 | 71 | "details": "<a href=\"https://docs.tact-lang.org/ref/core-base#self-forward\">Tact Docs</a>"
|
72 | 72 | },
|
| 73 | + { |
| 74 | + "trigger": "SendDefaultMode\tequal to 0", |
| 75 | + "contents": "SendDefaultMode", |
| 76 | + "kind": ["variable", "c", "Constant"], |
| 77 | + "details": "<a href=\"https://docs.tact-lang.org/book/message-mode#base-modes\">Tact Docs</a>" |
| 78 | + }, |
73 | 79 | {
|
74 | 80 | "trigger": "SendRemainingValue\tequal to 64",
|
75 | 81 | "contents": "SendRemainingValue",
|
|
174 | 180 | "kind": ["variable", "s", "Struct"],
|
175 | 181 | "details": "<a href=\"https://docs.tact-lang.org/ref/core-advanced/#parsevaraddress\">Tact Docs</a>"
|
176 | 182 | },
|
| 183 | + { |
| 184 | + "trigger": "BasechainAddress", |
| 185 | + "contents": "BasechainAddress", |
| 186 | + "kind": ["variable", "s", "Struct"] |
| 187 | + }, |
177 | 188 |
|
178 | 189 | // Built-in types and serialization options
|
179 | 190 | {
|
|
357 | 368 | "kind": "keyword",
|
358 | 369 | "details": "<a href=\"https://docs.tact-lang.org/book/expressions#initof\">Tact Docs</a>"
|
359 | 370 | },
|
| 371 | + { |
| 372 | + "trigger": "codeOf\tobtain init code", |
| 373 | + "contents": "codeOf $0", |
| 374 | + "kind": "keyword", |
| 375 | + "details": "<a href=\"https://docs.tact-lang.org/book/expressions#codeof\">Tact Docs</a>" |
| 376 | + }, |
360 | 377 | {
|
361 | 378 | "trigger": "import\tTact, FunC or standard library",
|
362 | 379 | "contents": "import \"$1\";",
|
|
557 | 574 | "kind": "function",
|
558 | 575 | "details": "<a href=\"https://docs.tact-lang.org/ref/core-common#now\">Tact Docs</a>"
|
559 | 576 | },
|
| 577 | + { |
| 578 | + "trigger": "curLt\tcurrent logical time", |
| 579 | + "contents": "curLt()", |
| 580 | + "kind": "function", |
| 581 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-advanced#curlt\">Tact Docs</a>" |
| 582 | + }, |
| 583 | + { |
| 584 | + "trigger": "blockLt\tcurrent block logical time", |
| 585 | + "contents": "blockLt()", |
| 586 | + "kind": "function", |
| 587 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-advanced#blocklt\">Tact Docs</a>" |
| 588 | + }, |
560 | 589 | {
|
561 | 590 | "trigger": "myBalance\tremaining balance of the contract",
|
562 | 591 | "contents": "myBalance()",
|
|
575 | 604 | "kind": "function",
|
576 | 605 | "details": "<a href=\"https://docs.tact-lang.org/ref/core-common#sender\">Tact Docs</a>"
|
577 | 606 | },
|
| 607 | + { |
| 608 | + "trigger": "contractHash\taccount ID of the contract address", |
| 609 | + "contents": "contractHash(${1:code_Cell}, ${2:data_Cell})", |
| 610 | + "kind": "function", |
| 611 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-common#contracthash\">Tact Docs</a>" |
| 612 | + }, |
578 | 613 | {
|
579 | 614 | "trigger": "context\treturns Context Struct",
|
580 | 615 | "contents": "context()",
|
|
587 | 622 | "kind": "function",
|
588 | 623 | "details": "<a href=\"https://docs.tact-lang.org/ref/core-common#newaddress\">Tact Docs</a>"
|
589 | 624 | },
|
| 625 | + { |
| 626 | + "trigger": "emptyBasechainAddress\taddr_none or Address with a null hash", |
| 627 | + "contents": "emptyBasechainAddress()", |
| 628 | + "kind": "function" |
| 629 | + }, |
| 630 | + { |
| 631 | + "trigger": "newBasechainAddress\tAddress in the chain ID 0", |
| 632 | + "contents": "newBasechainAddress(${1:hash_Int})", |
| 633 | + "kind": "function" |
| 634 | + }, |
| 635 | + { |
| 636 | + "trigger": "contractBasechainAddress\tAddress in the chain ID 0 from StateInit", |
| 637 | + "contents": "contractBasechainAddress(${1:StateInit})", |
| 638 | + "kind": "function" |
| 639 | + }, |
590 | 640 | {
|
591 | 641 | "trigger": "contractAddress\tAddress in chain 0 from StateInit",
|
592 | 642 | "contents": "contractAddress(${1:StateInit})",
|
|
605 | 655 | "kind": "function",
|
606 | 656 | "details": "<a href=\"https://docs.tact-lang.org/ref/core-common#send\">Tact Docs</a>"
|
607 | 657 | },
|
| 658 | + { |
| 659 | + "trigger": "message\tsend a message using MessageParameters Struct", |
| 660 | + "contents": "message($0)", |
| 661 | + "kind": "function", |
| 662 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-common#message\">Tact Docs</a>" |
| 663 | + }, |
| 664 | + { |
| 665 | + "trigger": "deploy\tdeploy a contract using DeployParameters Struct", |
| 666 | + "contents": "deploy($0)", |
| 667 | + "kind": "function", |
| 668 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-common#deploy\">Tact Docs</a>" |
| 669 | + }, |
| 670 | + { |
| 671 | + "trigger": "cashback\tforward excess funds back", |
| 672 | + "contents": "cashback($0)", |
| 673 | + "kind": "function", |
| 674 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-common#cashback\">Tact Docs</a>" |
| 675 | + }, |
608 | 676 | {
|
609 | 677 | "trigger": "emit\tsend a message body Cell to the outer world",
|
610 | 678 | "contents": "emit(${1:body_Cell})",
|
|
676 | 744 | "details": "<a href=\"https://docs.tact-lang.org/ref/core-debug#dumpstack\">Tact Docs</a>"
|
677 | 745 | },
|
678 | 746 | {
|
679 |
| - "trigger": "throw\talias to nativeThrow", |
| 747 | + "trigger": "throw\tthrow an exception with exit code Int", |
680 | 748 | "contents": "throw(${1:code_Int})",
|
681 | 749 | "kind": "function",
|
682 | 750 | "details": "<a href=\"https://docs.tact-lang.org/ref/core-debug#throw\">Tact Docs</a>"
|
683 | 751 | },
|
684 | 752 | {
|
685 |
| - "trigger": "nativeThrow\tthrow an exception with exit code Int", |
| 753 | + "trigger": "throwIf\tthrow exit code under condition", |
| 754 | + "contents": "throwIf(${1:code_Int}, ${2:condition_Bool})", |
| 755 | + "kind": "function", |
| 756 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-debug#throwif\">Tact Docs</a>" |
| 757 | + }, |
| 758 | + { |
| 759 | + "trigger": "throwUnless\tthrow exit code unless condition", |
| 760 | + "contents": "throwUnless(${1:code_Int}, ${2:condition_Bool})", |
| 761 | + "kind": "function", |
| 762 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-debug#throwunless\">Tact Docs</a>" |
| 763 | + }, |
| 764 | + { |
| 765 | + "trigger": "nativeThrow\tdeprecated", |
686 | 766 | "contents": "nativeThrow(${1:code_Int})",
|
687 | 767 | "kind": "function",
|
688 | 768 | "details": "<a href=\"https://docs.tact-lang.org/ref/core-debug#nativethrow\">Tact Docs</a>"
|
|
769 | 849 | "kind": "function",
|
770 | 850 | "details": "<a href=\"https://docs.tact-lang.org/ref/core-math#pow2\">Tact Docs</a>"
|
771 | 851 | },
|
| 852 | + { |
| 853 | + "trigger": "sqrt\tsqrt of an Int", |
| 854 | + "contents": "sqrt(${1:Int})", |
| 855 | + "kind": "function", |
| 856 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-math#sqrt\">Tact Docs</a>" |
| 857 | + }, |
| 858 | + { |
| 859 | + "trigger": "sign\tsign of an Int", |
| 860 | + "contents": "sign(${1:Int})", |
| 861 | + "kind": "function", |
| 862 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-math#sign\">Tact Docs</a>" |
| 863 | + }, |
| 864 | + { |
| 865 | + "trigger": "divc\tx / y", |
| 866 | + "contents": "divc(${1:x_Int}, ${2:y_Int})", |
| 867 | + "kind": "function", |
| 868 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-math#divc\">Tact Docs</a>" |
| 869 | + }, |
| 870 | + { |
| 871 | + "trigger": "muldivc\t(x * y) / z", |
| 872 | + "contents": "muldivc(${1:x_Int}, ${2:y_Int}, ${3:z_Int})", |
| 873 | + "kind": "function", |
| 874 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-math#muldivc\">Tact Docs</a>" |
| 875 | + }, |
| 876 | + { |
| 877 | + "trigger": "mulShiftRight\t(x * y) / 2^z", |
| 878 | + "contents": "mulShiftRight(${1:x_Int}, ${2:y_Int}, ${3:z_Int})", |
| 879 | + "kind": "function", |
| 880 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-math#mulshiftright\">Tact Docs</a>" |
| 881 | + }, |
| 882 | + { |
| 883 | + "trigger": "mulShiftRightRound\t(x * y) / 2^z", |
| 884 | + "contents": "mulShiftRightRound(${1:x_Int}, ${2:y_Int}, ${3:z_Int})", |
| 885 | + "kind": "function", |
| 886 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-math#mulshiftround\">Tact Docs</a>" |
| 887 | + }, |
| 888 | + { |
| 889 | + "trigger": "mulShiftRightCeil\t(x * y) / 2^z", |
| 890 | + "contents": "mulShiftRightCeil(${1:x_Int}, ${2:y_Int}, ${3:z_Int})", |
| 891 | + "kind": "function", |
| 892 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-math#mulshiftceil\">Tact Docs</a>" |
| 893 | + }, |
772 | 894 | {
|
773 | 895 | "trigger": "checkSignature\tEd25519 signature check of hash using pubkey",
|
774 | 896 | "contents": "checkSignature(${1:hash_Int}, ${2:signature_Slice}, ${3:pubkey_Int})",
|
|
895 | 1017 | "kind": "function",
|
896 | 1018 | "details": "<a href=\"https://docs.tact-lang.org/ref/core-advanced#nativereserve\">Tact Docs</a>"
|
897 | 1019 | },
|
| 1020 | + { |
| 1021 | + "trigger": "setGasLimit\tlimit gas to X nanoToncoin", |
| 1022 | + "contents": "setGasLimit($1)", |
| 1023 | + "kind": "function", |
| 1024 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-advanced/#setgaslimit\">Tact Docs</a>" |
| 1025 | + }, |
| 1026 | + { |
| 1027 | + "trigger": "getSeed\tget seed for RNG", |
| 1028 | + "contents": "getSeed()", |
| 1029 | + "kind": "function", |
| 1030 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-advanced/#getseed\">Tact Docs</a>" |
| 1031 | + }, |
| 1032 | + { |
| 1033 | + "trigger": "setSeed\tset seed for RNG", |
| 1034 | + "contents": "setSeed($1)", |
| 1035 | + "kind": "function", |
| 1036 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-advanced/#setseed\">Tact Docs</a>" |
| 1037 | + }, |
| 1038 | + { |
| 1039 | + "trigger": "myCode\tcurrent contract code", |
| 1040 | + "contents": "myCode()", |
| 1041 | + "kind": "function", |
| 1042 | + "details": "<a href=\"https://docs.tact-lang.org/ref/core-advanced/#mycode\">Tact Docs</a>" |
| 1043 | + }, |
898 | 1044 | {
|
899 | 1045 | "trigger": "gasConsumed\tget gas consumed so far",
|
900 | 1046 | "contents": "gasConsumed()",
|
|
942 | 1088 | "contents": "myStorageDue()",
|
943 | 1089 | "kind": "function",
|
944 | 1090 | "details": "<a href=\"https://docs.tact-lang.org/ref/core-advanced/#mystoragedue\">Tact Docs</a>"
|
945 |
| - }, |
| 1091 | + } |
946 | 1092 | ]
|
947 | 1093 | }
|
0 commit comments