minswap

Types

Alias

CustomDatumHash = Hash<Blake2b_256, Data>

ExtraOrderDatum type on MinSwap V2

Constructors

  • MinEODNoDatum
  • MinEODDatumHash { hash: CustomDatumHash }
  • MinEODInlineDatum { hash: CustomDatumHash }

OrderDatum type on MinSwap V2

Constructors

  • MinswapOrderDatum {
      canceller: OrderAuthorizationMethod,
      refund_receiver: Address,
      refund_receiver_datum: MinswapEOD,
      success_receiver: Address,
      success_receiver_datum: MinswapEOD,
      lp_asset: AssetClass,
      step: OrderStep,
      max_batcher_fee: Int,
      expiry_setting_opt: Option<(Int, Int)>,
    }

OrderAuthorizationMethod type on MinSwap V2

Authorization methods for an Order owner to unlock funds from the Order’s Utxo

Constructors

  • OAMSignature { pub_key_hash: PubKeyHash }
  • OAMSpendScript { script_hash: ValidatorHash }
  • OAMWithdrawScript { script_hash: ValidatorHash }
  • OAMMintScript { script_hash: ValidatorHash }

OrderStep type on MinSwap V2

Constructors

  • SwapExactIn {
      a_to_b_direction: Bool,
      swap_amount_option: SwapAmountOption,
      minimum_receive: Int,
      killable: Bool,
    }
  • StopLoss {
      a_to_b_direction: Bool,
      swap_amount_option: SwapAmountOption,
      stop_loss_receive: Int,
    }
  • OCO {
      a_to_b_direction: Bool,
      swap_amount_option: SwapAmountOption,
      minimum_receive: Int,
      stop_loss_receive: Int,
    }
  • SwapExactOut {
      a_to_b_direction: Bool,
      maximum_swap_amount_option: SwapAmountOption,
      expected_receive: Int,
      killable: Bool,
    }
  • Deposit
  • Withdraw
  • ZapOut
  • PartialSwap
  • WithdrawImbalance
  • SwapMultiRouting
  • Donation

Alias

PubKeyHash = Hash<Blake2b_224, VerificationKey>

SwapAmountOption type on MinSwap V2

Option when someone want to swap a token on MinSwap V2

Constructors

  • SAOSpecificAmount { swap_amount: Int }
  • SAOAll { deducted_amount: Int }

Alias

ValidatorHash = Hash<Blake2b_224, Script>
Search Document