Telos

amm.swaps

合约

此合约的操作及其输入参数和潜在的响应数据。

  • 请求参数
    amount asset
  • calculate

    calculate

    请求参数
    amount uint64
    reserve_in uint64
    reserve_out uint64
    amplifier uint64
    fee uint64
    protocol name
  • 请求参数
    owner name
    pair_id uint64
  • 请求参数
    没有操作参数。
  • 请求参数
    pair_id uint64
  • createpair

    createpair

    请求参数
    creator name
    reserve0 extended_symbol
    reserve1 extended_symbol
    amplifier uint64
    protocol name
  • 请求参数
    owner name
    pair_id uint64
    min_amount int64?
  • init

    init

    请求参数
    token_contract name
  • 请求参数
    没有操作参数。
  • liquiditylog

    liquiditylog

    请求参数
    pair_id uint64
    owner name
    action name
    liquidity asset
    quantity0 asset
    quantity1 asset
    total_liquidity asset
    reserve0 asset
    reserve1 asset
  • 请求参数
    token_a extended_symbol
    token_b extended_symbol
  • ramp

    ramp

    请求参数
    pair_id uint64
    target_amplifier uint64
    minutes int64
  • removepair

    removepair

    请求参数
    pair_id uint64
  • reset

    reset

    请求参数
    没有操作参数。
  • 请求参数
    amount asset
  • setfee

    setfee

    请求参数
    protocol_fee uint8?
    fee_account name?
    listing_fee extended_asset?
  • setnotifiers

    setnotifiers

    请求参数
    notifiers name[]
  • 请求参数
    pair_id uint64
    weight uint64
  • setstatus

    setstatus

    请求参数
    status name
  • 请求参数
    pair_id uint64
    trade_fee uint8
  • stopramp

    stopramp

    请求参数
    pair_id uint64
  • swaplog

    swaplog

    请求参数
    pair_id uint64
    owner name
    action name
    quantity_in extended_asset
    quantity_out extended_asset
    fee asset
    protocol_fee asset
    trade_fee asset
    trade_price float64
    reserve0 asset
    reserve1 asset
  • 请求参数
    pair_id uint64
    quantity extended_asset