Type Parameters

  • V extends ScrtCWVersion

Hierarchy

  • Contract

Constructors

Properties

address?: string
codeHash?: string
codeId?: string
cosmWasmVersion?: V
log: Console = ...
prefix: string = 'secret1'
runtime?: Instance<ScrtCWAPI<V>["exports"]>
storage: Map<string, Buffer> = ...

Accessors

Methods

  • Parameters

    • __namedParameters: any = {}

    Returns number[]

  • Parameters

    • __namedParameters: {
          env?: object;
          info?: object;
          msg: Message;
          sender: string;
      }
      • Optional env?: object
      • Optional info?: object
      • msg: Message
      • sender: string

    Returns any

  • Parameters

    • __namedParameters: Partial<{
          env: object;
          info: object;
          msg: Message;
          sender: string;
      }> = {}

    Returns any

  • Parameters

    • __namedParameters: any = {}

    Returns number[]

  • Parameters

    • sender: string
    • now: number = + new Date()

    Returns {
        env: {
            block: {
                chain_id: string;
                height: number;
                time: number;
            };
            contract: {
                address: string;
            };
            contract_code_hash: string;
            contract_key: string;
            message: {
                sender: string;
                sent_funds: any[];
            };
            transaction: undefined;
        };
        info?: undefined;
    } | {
        env: {
            block: {
                chain_id: string;
                height: number;
                time: string;
            };
            contract: {
                address: string;
            };
            contract_code_hash: undefined;
            contract_key: undefined;
            message: undefined;
            transaction: {
                index: number;
            };
        };
        info: {
            funds: any[];
            sender: string;
        };
    }

  • Parameters

    • __namedParameters: any = {}

    Returns number[]

Generated using TypeDoc