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.
22 lines (21 loc) • 799 B
TypeScript
import { AllowErrorCodes, DecodedMsg, MessageTree, TraceContext, TraceType } from "../types";
import { ContractWithArtifacts } from "../../../types";
import { MessageType } from "nekoton-wasm";
export declare const decoder: <Abi>({ msgBody, msgType, contract, initialType, }: {
contract: ContractWithArtifacts<Abi>;
msgBody: string;
msgType: MessageType;
initialType: TraceType | null;
}) => Promise<{
decoded: DecodedMsg;
finalType: TraceType | null;
}>;
export declare const contractInformation: ({ msg, type, ctx, }: {
msg: MessageTree;
type: TraceType;
ctx: TraceContext;
}) => {
codeHash?: string;
address: string;
};
export declare const isErrorExistsInAllowedArr: (allowedArr: Array<AllowErrorCodes> | undefined, code: AllowErrorCodes) => boolean;