clvm
Version:
Javascript implementation of chia lisp
52 lines (51 loc) • 2.3 kB
TypeScript
export declare const IF_COST = 33;
export declare const CONS_COST = 50;
export declare const FIRST_COST = 30;
export declare const REST_COST = 30;
export declare const LISTP_COST = 19;
export declare const MALLOC_COST_PER_BYTE = 10;
export declare const ARITH_BASE_COST = 99;
export declare const ARITH_COST_PER_BYTE = 3;
export declare const ARITH_COST_PER_ARG = 320;
export declare const LOG_BASE_COST = 100;
export declare const LOG_COST_PER_BYTE = 3;
export declare const LOG_COST_PER_ARG = 264;
export declare const GRS_BASE_COST = 117;
export declare const GRS_COST_PER_BYTE = 1;
export declare const EQ_BASE_COST = 117;
export declare const EQ_COST_PER_BYTE = 1;
export declare const GR_BASE_COST = 498;
export declare const GR_COST_PER_BYTE = 2;
export declare const DIVMOD_BASE_COST = 1116;
export declare const DIVMOD_COST_PER_BYTE = 6;
export declare const DIV_BASE_COST = 988;
export declare const DIV_COST_PER_BYTE = 4;
export declare const SHA256_BASE_COST = 87;
export declare const SHA256_COST_PER_ARG = 134;
export declare const SHA256_COST_PER_BYTE = 2;
export declare const POINT_ADD_BASE_COST = 101094;
export declare const POINT_ADD_COST_PER_ARG = 1343980;
export declare const PUBKEY_BASE_COST = 1325730;
export declare const PUBKEY_COST_PER_BYTE = 38;
export declare const MUL_BASE_COST = 92;
export declare const MUL_COST_PER_OP = 885;
export declare const MUL_LINEAR_COST_PER_BYTE = 6;
export declare const MUL_SQUARE_COST_PER_BYTE_DIVIDER = 128;
export declare const STRLEN_BASE_COST = 173;
export declare const STRLEN_COST_PER_BYTE = 1;
export declare const PATH_LOOKUP_BASE_COST = 40;
export declare const PATH_LOOKUP_COST_PER_LEG = 4;
export declare const PATH_LOOKUP_COST_PER_ZERO_BYTE = 4;
export declare const CONCAT_BASE_COST = 142;
export declare const CONCAT_COST_PER_ARG = 135;
export declare const CONCAT_COST_PER_BYTE = 3;
export declare const BOOL_BASE_COST = 200;
export declare const BOOL_COST_PER_ARG = 300;
export declare const ASHIFT_BASE_COST = 596;
export declare const ASHIFT_COST_PER_BYTE = 3;
export declare const LSHIFT_BASE_COST = 277;
export declare const LSHIFT_COST_PER_BYTE = 3;
export declare const LOGNOT_BASE_COST = 331;
export declare const LOGNOT_COST_PER_BYTE = 3;
export declare const APPLY_COST = 90;
export declare const QUOTE_COST = 20;