octez.js TypeDocs
    Preparing search index...

    Type Alias EvmToMichelsonIntent

    EvmToMichelsonIntent:
        | { amount: AmountLike; destination: string; kind: "transfer" }
        | {
            amount?: AmountLike;
            destination: string;
            entrypoint: string;
            kind: "call-michelson";
            parameter:
                | string
                | { type?: MichelineExpression; value: MichelineExpression };
        }

    A Michelson runtime operation to wrap into an EVM → Michelson call.

    Type Declaration

    • { amount: AmountLike; destination: string; kind: "transfer" }
      • amount: AmountLike

        Amount in mutez

      • destination: string

        Destination account on the Michelson runtime (implicit tz… account or KT1)

      • kind: "transfer"
    • {
          amount?: AmountLike;
          destination: string;
          entrypoint: string;
          kind: "call-michelson";
          parameter:
              | string
              | { type?: MichelineExpression; value: MichelineExpression };
      }
      • Optionalamount?: AmountLike

        Amount in mutez. Defaults to 0

      • destination: string

        Destination contract on the Michelson runtime (KT1)

      • entrypoint: string

        Entrypoint name, without the % prefix

      • kind: "call-michelson"
      • parameter: string | { type?: MichelineExpression; value: MichelineExpression }

        Entrypoint parameter, either as binary Micheline (hex, without the 05 pack prefix) or as a Michelson expression with an optional type.