Vaulta

bssr.defi

Contract

The data structures defined by this contract.

  • Action parameter in createpool

    {
      "name": "createpool",
      "base": "",
      "fields": [
        {
          "name": "period",
          "type": "uint32"
        },
        {
          "name": "weight",
          "type": "uint32"
        }
      ]
    }
  • Table row type of deposits

    {
      "name": "deposit",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "period",
          "type": "uint32"
        },
        {
          "name": "saving_box",
          "type": "asset"
        },
        {
          "name": "saving_token",
          "type": "uint128"
        },
        {
          "name": "expire_time",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in depositlog

    {
      "name": "depositlog",
      "base": "",
      "fields": [
        {
          "name": "deposit_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "token",
          "type": "uint128"
        },
        {
          "name": "period",
          "type": "uint32"
        },
        {
          "name": "total_quantity",
          "type": "asset"
        },
        {
          "name": "total_token",
          "type": "uint128"
        },
        {
          "name": "deposit_time",
          "type": "uint32"
        },
        {
          "name": "expire_time",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in fix

    {
      "name": "fix",
      "base": "",
      "fields": []
    }
  • Table row type of global

    {
      "name": "global",
      "base": "",
      "fields": [
        {
          "name": "status",
          "type": "uint8"
        },
        {
          "name": "fees_percent",
          "type": "uint32"
        },
        {
          "name": "reinvest_interval",
          "type": "uint32"
        }
      ]
    }
  • Table row type of holders

    {
      "name": "holder",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "saving_box",
          "type": "asset"
        },
        {
          "name": "saving_token",
          "type": "uint128"
        }
      ]
    }
  • Action parameter in knocklog

    {
      "name": "knocklog",
      "base": "",
      "fields": [
        {
          "name": "deposit_id",
          "type": "uint64"
        },
        {
          "name": "buyer",
          "type": "name"
        },
        {
          "name": "seller",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "value",
          "type": "asset"
        },
        {
          "name": "price",
          "type": "asset"
        },
        {
          "name": "discount",
          "type": "uint16"
        },
        {
          "name": "token",
          "type": "uint128"
        },
        {
          "name": "refund_buyer",
          "type": "asset"
        },
        {
          "name": "refund_seller",
          "type": "asset"
        },
        {
          "name": "fees",
          "type": "asset"
        },
        {
          "name": "period",
          "type": "uint32"
        },
        {
          "name": "seller_total_quantity",
          "type": "asset"
        },
        {
          "name": "seller_total_token",
          "type": "uint128"
        },
        {
          "name": "buyer_total_quantity",
          "type": "asset"
        },
        {
          "name": "buyer_total_token",
          "type": "uint128"
        },
        {
          "name": "knock_time",
          "type": "uint32"
        },
        {
          "name": "expire_time",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in offshelves

    {
      "name": "offshelves",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "deposit_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in offshelveslog

    {
      "name": "offshelveslog",
      "base": "",
      "fields": [
        {
          "name": "deposit_id",
          "type": "uint64"
        },
        {
          "name": "executor",
          "type": "name"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "discount",
          "type": "uint16"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "token",
          "type": "uint128"
        },
        {
          "name": "period",
          "type": "uint32"
        },
        {
          "name": "total_quantity",
          "type": "asset"
        },
        {
          "name": "total_token",
          "type": "uint128"
        },
        {
          "name": "order_time",
          "type": "uint32"
        },
        {
          "name": "expire_time",
          "type": "uint32"
        },
        {
          "name": "offshelves_time",
          "type": "uint32"
        }
      ]
    }
  • Table row type of orders

    {
      "name": "order",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "discount",
          "type": "uint16"
        },
        {
          "name": "time",
          "type": "uint64"
        }
      ]
    }
  • Table row type of pools

    {
      "name": "pool",
      "base": "",
      "fields": [
        {
          "name": "period",
          "type": "uint32"
        },
        {
          "name": "weight",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in reinvest

    {
      "name": "reinvest",
      "base": "",
      "fields": []
    }
  • Action parameter in removepool

    {
      "name": "removepool",
      "base": "",
      "fields": [
        {
          "name": "period",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in reset

    {
      "name": "reset",
      "base": "",
      "fields": []
    }
  • Action parameter in sale

    {
      "name": "sale",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "deposit_id",
          "type": "uint64"
        },
        {
          "name": "discount",
          "type": "uint16"
        }
      ]
    }
  • Action parameter in salelog

    {
      "name": "salelog",
      "base": "",
      "fields": [
        {
          "name": "deposit_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "discount",
          "type": "uint16"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "token",
          "type": "uint128"
        },
        {
          "name": "period",
          "type": "uint32"
        },
        {
          "name": "total_quantity",
          "type": "asset"
        },
        {
          "name": "total_token",
          "type": "uint128"
        },
        {
          "name": "order_time",
          "type": "uint32"
        },
        {
          "name": "expire_time",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in setexpire

    {
      "name": "setexpire",
      "base": "",
      "fields": [
        {
          "name": "deposit_id",
          "type": "uint64"
        },
        {
          "name": "time",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in setfees

    {
      "name": "setfees",
      "base": "",
      "fields": [
        {
          "name": "percent",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in setinterval

    {
      "name": "setinterval",
      "base": "",
      "fields": [
        {
          "name": "interval",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in setordertime

    {
      "name": "setordertime",
      "base": "",
      "fields": [
        {
          "name": "deposit_id",
          "type": "uint64"
        },
        {
          "name": "time",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in setreinvest

    {
      "name": "setreinvest",
      "base": "",
      "fields": [
        {
          "name": "time",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in setstatus

    {
      "name": "setstatus",
      "base": "",
      "fields": [
        {
          "name": "status",
          "type": "uint8"
        }
      ]
    }
  • Table row type of stat

    {
      "name": "stat",
      "base": "",
      "fields": [
        {
          "name": "total_saving_box",
          "type": "asset"
        },
        {
          "name": "total_saving_token",
          "type": "uint128"
        },
        {
          "name": "next_reinvest_time",
          "type": "uint32"
        }
      ]
    }
  • Table row type of tableids

    {
      "name": "tableid",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "name"
        },
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in withdraw

    {
      "name": "withdraw",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "deposit_id",
          "type": "uint64"
        },
        {
          "name": "to_bss",
          "type": "bool"
        }
      ]
    }
  • Action parameter in withdrawlog

    {
      "name": "withdrawlog",
      "base": "",
      "fields": [
        {
          "name": "deposit_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "withdraw_quantity",
          "type": "asset"
        },
        {
          "name": "saving_quantity",
          "type": "asset"
        },
        {
          "name": "total_quantity",
          "type": "asset"
        },
        {
          "name": "total_token",
          "type": "uint128"
        },
        {
          "name": "withdraw_time",
          "type": "uint32"
        }
      ]
    }