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.
16 lines (15 loc) • 1.06 kB
TypeScript
import { Addressable, AllowedCodes, MessageTree, RevertedBranch } from "./types";
import { Address } from "everscale-inpage-provider";
import BigNumber from "bignumber.js";
import { Trace } from "./trace/trace";
export declare const extractAccountsFromMsgTree: (msgTree: MessageTree) => Address[];
export declare const convert: (number: number, decimals?: number, precision?: number) => string;
export declare const convertForLogger: (amount: number) => BigNumber;
export declare const hexToValue: (amount: number) => BigNumber;
export declare const throwTrace: (trace: Trace) => never;
export declare const throwErrorInConsole: <Abi>(revertedBranch: RevertedBranch<Abi>[]) => void;
export declare const isT: <T>(p: T) => p is NonNullable<T>;
export declare const getDefaultAllowedCodes: () => Omit<Required<AllowedCodes>, "contracts">;
export declare const isExistsInArr: <T>(srcArr: T[], isExist: T) => boolean;
export declare const extractStringAddress: (contract: Addressable) => string;
export declare const extractAddress: (contract: Addressable) => Address;