locklift
Version:
Node JS framework for working with Ever contracts. Inspired by Truffle and Hardhat. Helps you to build, test, run and maintain your smart contracts.
43 lines (40 loc) • 2.97 kB
text/typescript
export const CONSOLE_ADDRESS = "7fffffffffffffffffffffffffffffffffffffffffffffffff123456789abcde";
export const ComputeCodesHints: { [id: number]: string } = {
[]: "Stack underflow: not enough arguments in the stack for a primitive",
[]: "Stack overflow: more values have been stored on a stack than allowed by this version of TVM",
[]: "Integer overflow: integer does not fit into expected range (by default −2^256 ≤ x < 2^256), or a division by zero has occurred",
[-5]: "Integer overflow: integer does not fit into expected range (by default −2^256 ≤ x < 2^256), or a division by zero has occurred",
[]: "Range check error: integer out of expected range",
[]: "Invalid opcode: instruction or its immediate arguments cannot be decoded",
[]: "Type check error: an argument to a primitive is of incorrect value type",
[]: "Cell overflow: error in one of the serialization primitives",
[]: "Cell underflow: error in one of the deserialization primitives",
[]: "Dictionary error: error while deserializing a dictionary object",
[]: "Out of gas: gas limit is reached, too many computations in one transaction",
[-14]: "Out of gas: gas limit is reached, too many computations in one transaction",
[]: "External inbound message has an invalid signature",
[]: "Array index or index of <mapping>.at() is out of range",
[]: "Contract's constructor has already been called (duplicate deploy)",
[]: "Replay protection exception",
[]: "<address>.unpack() error: <address> value is not 256-bit, or address is not a valid serialization of MsgAddressInt",
[]: "<array>.pop call for an empty array",
[]: "External inbound message is expired",
[]: "External inbound message has no signature but has public key",
[]: "Inbound message has wrong function id. In the contract there are no functions with such function id and there is no fallback function that could handle the message",
[]: "Deploying StateInit has no public key in data field",
[]: "<optional(Type)>.get() error: optional value is empty",
[]: "tvm.buildExtMSg() called with wrong parameters",
[]: "Call of the unassigned variable of function type",
[]: "Convert an integer to a string with width less than number length",
[]: "gasToValue/valueToGas error: wid is not equal to 0 or -1.",
[]: "Zero to the power of zero calculation (0**0 in solidity style or 0^0).",
[]: "<string> method substr was called with substr longer than the whole string.",
[]: "Function marked by externalMsg was called by internal message",
[]: "Function marked by internalMsg was called by external message",
[]: "The value can't be converted to enum type",
[]: "Public function was called before constructor",
};
export const ActionCodeHints: { [id: number]: string } = {
[]: "Too many actions: sending too many (>255) actions in one transaction",
[]: "Low balance: sending more value than contract owns",
};