UNPKG

@factorial-finance/blueprint-node

Version:

blueprint-node-plugin

94 lines (93 loc) 3.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.commonErrors = exports.commonOps = exports.predefinedAliases = void 0; exports.predefinedAliases = { ADDRESSES: { // Token contracts "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs": "USDT", "EQDIKEz2BYLnTRWo5W5a6moZ9PXNtyOVOFF7noi8Ufv3axz_": "WTON", "EQDNhy-nxYFgUqzfUzImBEP67JqsyMIcyk2S5_RwNNEYku0k": "stTON", "EQC98_qAmNEptUtPc7W6xdHh_ZHrBUFpw5Ft_IzNU20QAJav": "tsTON", "EQCup4xxCulCcNwmOocM9HtDYPU8xe0449tQLp6a-5BLEegW": "slpUSDT", "EQCNY2AQ3ZDYwJAqx_nzl9i9Xhd_Ex7izKJM6JTxXRnO6n1F": "slpTON", "EQDYELRHe6sNcHEKX53qWdXG37OK9VEdDWSX1NcubtcYS2KH": "tlpTON", "EQAIb6KmdfdDR7CN1GBqVJuP25iCnLKCvBlJ07Evuu2dzP5f": "USDe", "EQDQ5UUyPHrLcQJlPAczd_fjxn8SLrlNQwolBznxCdSlfQwr": "tsUSDe", }, CODES: { // Wallet contracts WalletContractV5R1: "20834b7b72b112147e1b2fb457b84e74d1a30f04f737d4f62a668e9552d2b72f", WalletContractV4: "feb5ff6820e2ff0d9483e7e0d62c817d846789fb4ae580c878866d959dabd5c0", WalletContractV3R2: "84dafa449f98a6987789ba232358072bc0f76dc4524002a5d0918b9a75d2d599", WalletContractV3: "b61041a58a7980b946e8fb9e198e3c904d24799ffa36574ea4251c41a566f581", WalletContractV2R2: "fe9530d3243853083ef2ef0b4c2908c0abf6fa1c31ea243aacaa5bf8c7d753f1", WalletContractV2: "5c9a5e68c108e18721a07c42f9956bfb39ad77ec6d624b60c576ec88eee65329", WalletContractV1R2: "d4902fcc9fad74698fa8e353220a68da0dcf72e32bcb2eb9ee04217c17d3062c", WalletContractV1R1: "a0cfc2c48aee16a271f2cfc0b7382d81756cecb1017d077faaab3bb602f6868c", // Other contracts StableJettonMinter: "18d5b6e780ff0bb451254c2c760d09d6e485638cd1407abb97078752c3c1c9ee", StableJettonWallet: "89468f02c78e570802e39979c8516fc38df07ea76a48357e0536f2ba7b3ee37b", JettonWallet1: "7aa1b7be6804364eda0bfe39de5198d2dd91f4eeff5eb572ee04b3ea6aa881d9" }, OP_ALIASES: { WalletContractV5R1: { AuthExtension: 0x6578746e, AuthSignedExternal: 0x7369676e, AuthSignedInternal: 0x73696e74, }, }, ERROR_ALIASES: {} }; // Common operation codes that may appear across multiple contracts exports.commonOps = { Bounced: 0xffffffff, // 4294967295 }; // Common system error codes that apply to all contracts exports.commonErrors = { // Compute and action phases Success: 0, // Compute phase AlternativeSuccess: 1, StackUnderflow: 2, StackOverflow: 3, IntegerOverflow: 4, RangeCheckError: 5, InvalidOpcode: 6, TypeCheckError: 7, CellOverflow: 8, CellUnderflow: 9, DictionaryError: 10, UnknownError: 11, FatalError: 12, OutOfGas: 13, OutOfGasNegative: -14, VirtualizationError: 14, // Action phase ActionListInvalid: 32, ActionListTooLong: 33, ActionInvalid: 34, InvalidSrcAddress: 35, InvalidDstAddress: 36, NotEnoughTon: 37, NotEnoughExtraCurrencies: 38, OutboundMessageDoesntFit: 39, CannotProcessMessage: 40, LibraryReferenceNull: 41, LibraryChangeError: 42, LibraryLimitExceeded: 43, AccountStateTooLarge: 50, // Tact compiler (Compute phase) NullReferenceException: 128, InvalidSerializationPrefix: 129, InvalidIncomingMessage: 130, ConstraintsError: 131, AccessDenied: 132, ContractStopped: 133, InvalidArgument: 134, CodeNotFound: 135, InvalidAddress: 136, MasterchainNotEnabled: 137, NotBasechainAddress: 138, // Additional common codes UnknownOp: 0xffff, };