ScrtCWAPI<V>: {
    exports: Allocator & {
        query(msg): number;
    };
    imports: {
        env: {
            db_read(key): number;
            db_remove(key): void;
            db_write(key, val): void;
            debug(msg): number;
            query_chain(req): number;
        };
        memory: WebAssembly.Memory;
    };
} & {
    0.x: {
        exports: {
            handle(env, msg): number;
            init(env, msg): number;
        };
        imports: {
            env: {
                canonicalize_address(src, dst): number;
                humanize_address(src, dst): number;
            };
        };
    };
    1.x: {
        exports: {
            execute(env, info, msg): number;
            instantiate(env, info, msg): number;
            requires_staking(): number;
        };
        imports: {
            env: {
                addr_canonicalize(src, dst): number;
                addr_humanize(src, dst): number;
                addr_validate(addr): number;
                ed25519_batch_verify(msgs, sigs, pubs): number;
                ed25519_sign(msg, priv): number;
                ed25519_verify(msg, sig, pub): number;
                gas_evaporate(...args): any;
                secp256k1_recover_pubkey(hash, sig, param): number;
                secp256k1_sign(msg, priv): number;
                secp256k1_verify(hash, sig, pub): number;
            };
            memory: WebAssembly.Memory;
        };
    };
}[V]

Type Parameters

  • V extends ScrtCWVersion

Type declaration

  • exports: Allocator & {
        query(msg): number;
    }
  • imports: {
        env: {
            db_read(key): number;
            db_remove(key): void;
            db_write(key, val): void;
            debug(msg): number;
            query_chain(req): number;
        };
        memory: WebAssembly.Memory;
    }
    • env: {
          db_read(key): number;
          db_remove(key): void;
          db_write(key, val): void;
          debug(msg): number;
          query_chain(req): number;
      }
    • memory: WebAssembly.Memory

Generated using TypeDoc