Vaulta

d.nft.gems

Contract

{
  "version": "eosio::abi/1.1",
  "types": [],
  "structs": [
    {
      "name": "assets_row",
      "base": "",
      "fields": [
        {
          "name": "asset_id",
          "type": "uint64"
        },
        {
          "name": "created_at",
          "type": "time_point_sec"
        }
      ]
    },
    {
      "name": "cancel",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "symcode",
          "type": "symbol_code"
        }
      ]
    },
    {
      "name": "close",
      "base": "",
      "fields": [
        {
          "name": "symcode",
          "type": "symbol_code"
        }
      ]
    },
    {
      "name": "collections_row",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "pools",
          "type": "symbol_code[]"
        },
        {
          "name": "current",
          "type": "int32"
        },
        {
          "name": "quota",
          "type": "int32"
        },
        {
          "name": "notifiers",
          "type": "name[]"
        }
      ]
    },
    {
      "name": "config_row",
      "base": "",
      "fields": [
        {
          "name": "pool_id",
          "type": "uint64"
        },
        {
          "name": "mint_fee",
          "type": "uint16"
        },
        {
          "name": "redeem_fee",
          "type": "uint16"
        },
        {
          "name": "swap_fee",
          "type": "uint16"
        },
        {
          "name": "protocol_fee",
          "type": "uint16"
        },
        {
          "name": "fee_account",
          "type": "name"
        },
        {
          "name": "mine_account",
          "type": "name"
        },
        {
          "name": "token_contract",
          "type": "name"
        },
        {
          "name": "swap_contract",
          "type": "name"
        },
        {
          "name": "lp_token_contract",
          "type": "name"
        },
        {
          "name": "core_sym",
          "type": "extended_symbol"
        },
        {
          "name": "prefix",
          "type": "symbol_code"
        },
        {
          "name": "notifiers",
          "type": "name[]"
        }
      ]
    },
    {
      "name": "create",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "int32"
        }
      ]
    },
    {
      "name": "extended_symbol",
      "base": "",
      "fields": [
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "contract",
          "type": "name"
        }
      ]
    },
    {
      "name": "init",
      "base": "",
      "fields": [
        {
          "name": "core_sym",
          "type": "extended_symbol"
        },
        {
          "name": "prefix",
          "type": "symbol_code"
        }
      ]
    },
    {
      "name": "logcreate",
      "base": "",
      "fields": [
        {
          "name": "creator",
          "type": "name"
        },
        {
          "name": "pool_sym",
          "type": "extended_symbol"
        },
        {
          "name": "pool_id",
          "type": "uint64"
        },
        {
          "name": "pair_sym",
          "type": "extended_symbol"
        },
        {
          "name": "pair_id",
          "type": "uint64"
        },
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "schema_name",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "int32"
        }
      ]
    },
    {
      "name": "logmint",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "pool_sym",
          "type": "extended_symbol"
        },
        {
          "name": "issue_amount",
          "type": "int64"
        },
        {
          "name": "fee",
          "type": "int64"
        },
        {
          "name": "protocol_fee",
          "type": "int64"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        }
      ]
    },
    {
      "name": "logredeem",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "pool_sym",
          "type": "extended_symbol"
        },
        {
          "name": "in_amount",
          "type": "int64"
        },
        {
          "name": "retire_amount",
          "type": "int64"
        },
        {
          "name": "refund_amount",
          "type": "int64"
        },
        {
          "name": "fee",
          "type": "int64"
        },
        {
          "name": "protocol_fee",
          "type": "int64"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        }
      ]
    },
    {
      "name": "orders_row",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        },
        {
          "name": "quantity0",
          "type": "extended_asset"
        },
        {
          "name": "quantity1",
          "type": "extended_asset"
        },
        {
          "name": "liquidity",
          "type": "extended_asset"
        }
      ]
    },
    {
      "name": "pools_row",
      "base": "",
      "fields": [
        {
          "name": "pool_sym",
          "type": "extended_symbol"
        },
        {
          "name": "pool_id",
          "type": "uint64"
        },
        {
          "name": "pair_sym",
          "type": "extended_symbol"
        },
        {
          "name": "pair_id",
          "type": "uint64"
        },
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "schema_name",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "int32"
        },
        {
          "name": "created_at",
          "type": "time_point_sec"
        },
        {
          "name": "updated_at",
          "type": "time_point_sec"
        }
      ]
    },
    {
      "name": "reset",
      "base": "",
      "fields": [
        {
          "name": "table",
          "type": "name"
        },
        {
          "name": "scope",
          "type": "name?"
        }
      ]
    },
    {
      "name": "setaccounts",
      "base": "",
      "fields": [
        {
          "name": "fee_account",
          "type": "name"
        },
        {
          "name": "mine_account",
          "type": "name"
        },
        {
          "name": "token_contract",
          "type": "name"
        },
        {
          "name": "swap_contract",
          "type": "name"
        },
        {
          "name": "lp_token_contract",
          "type": "name"
        },
        {
          "name": "notifiers",
          "type": "name[]"
        }
      ]
    },
    {
      "name": "setfee",
      "base": "",
      "fields": [
        {
          "name": "mint_fee",
          "type": "uint16"
        },
        {
          "name": "redeem_fee",
          "type": "uint16"
        },
        {
          "name": "swap_fee",
          "type": "uint16"
        },
        {
          "name": "protocol_fee",
          "type": "uint16"
        }
      ]
    },
    {
      "name": "setquota",
      "base": "",
      "fields": [
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "quota",
          "type": "uint32"
        },
        {
          "name": "notifiers",
          "type": "name[]"
        }
      ]
    },
    {
      "name": "setstatus",
      "base": "",
      "fields": [
        {
          "name": "status",
          "type": "name"
        }
      ]
    },
    {
      "name": "status_row",
      "base": "",
      "fields": [
        {
          "name": "status",
          "type": "name"
        },
        {
          "name": "counters",
          "type": "uint32[]"
        },
        {
          "name": "last_updated",
          "type": "time_point_sec"
        }
      ]
    }
  ],
  "actions": [
    {
      "name": "cancel",
      "type": "cancel",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: cancel\nsummary: Cancel user deposit\nicon: https://avatars0.githubusercontent.com/u/75587337#7eff73811b83465b3a1e74a16c1f679e6ff41007caa75fa8ca64f5eaf41d814c\n---"
    },
    {
      "name": "close",
      "type": "close",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: close\nsummary: Close NFT pool\nicon: https://avatars0.githubusercontent.com/u/75587337#7eff73811b83465b3a1e74a16c1f679e6ff41007caa75fa8ca64f5eaf41d814c\n---"
    },
    {
      "name": "create",
      "type": "create",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: create\nsummary: Create NFT pool\nicon: https://avatars0.githubusercontent.com/u/75587337#7eff73811b83465b3a1e74a16c1f679e6ff41007caa75fa8ca64f5eaf41d814c\n---"
    },
    {
      "name": "init",
      "type": "init",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: init\nsummary: Initialize contract\nicon: https://avatars0.githubusercontent.com/u/75587337#7eff73811b83465b3a1e74a16c1f679e6ff41007caa75fa8ca64f5eaf41d814c\n---"
    },
    {
      "name": "logcreate",
      "type": "logcreate",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: logcreate\nsummary: Log create\nicon: https://avatars0.githubusercontent.com/u/75587337#7eff73811b83465b3a1e74a16c1f679e6ff41007caa75fa8ca64f5eaf41d814c\n---"
    },
    {
      "name": "logmint",
      "type": "logmint",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: logmint\nsummary: Log mint\nicon: https://avatars0.githubusercontent.com/u/75587337#7eff73811b83465b3a1e74a16c1f679e6ff41007caa75fa8ca64f5eaf41d814c\n---"
    },
    {
      "name": "logredeem",
      "type": "logredeem",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: logredeem\nsummary: Log redeem\nicon: https://avatars0.githubusercontent.com/u/75587337#7eff73811b83465b3a1e74a16c1f679e6ff41007caa75fa8ca64f5eaf41d814c\n---"
    },
    {
      "name": "reset",
      "type": "reset",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: reset\nsummary: Reset table\nicon: https://avatars0.githubusercontent.com/u/75587337#7eff73811b83465b3a1e74a16c1f679e6ff41007caa75fa8ca64f5eaf41d814c\n---"
    },
    {
      "name": "setaccounts",
      "type": "setaccounts",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: setaccounts\nsummary: Set contract accounts\nicon: https://avatars0.githubusercontent.com/u/75587337#7eff73811b83465b3a1e74a16c1f679e6ff41007caa75fa8ca64f5eaf41d814c\n---"
    },
    {
      "name": "setfee",
      "type": "setfee",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: setfee\nsummary: Set contract fees\nicon: https://avatars0.githubusercontent.com/u/75587337#7eff73811b83465b3a1e74a16c1f679e6ff41007caa75fa8ca64f5eaf41d814c\n---"
    },
    {
      "name": "setquota",
      "type": "setquota",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: setquota\nsummary: Set collection quota\nicon: https://avatars0.githubusercontent.com/u/75587337#7eff73811b83465b3a1e74a16c1f679e6ff41007caa75fa8ca64f5eaf41d814c\n---"
    },
    {
      "name": "setstatus",
      "type": "setstatus",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: setstatus\nsummary: Set contract status\nicon: https://avatars0.githubusercontent.com/u/75587337#7eff73811b83465b3a1e74a16c1f679e6ff41007caa75fa8ca64f5eaf41d814c\n---"
    }
  ],
  "tables": [
    {
      "name": "assets",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "assets_row"
    },
    {
      "name": "collections",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "collections_row"
    },
    {
      "name": "config",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "config_row"
    },
    {
      "name": "orders",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "orders_row"
    },
    {
      "name": "pools",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "pools_row"
    },
    {
      "name": "status",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "status_row"
    }
  ],
  "ricardian_clauses": [
    {
      "id": "UserAgreement",
      "body": "User agreement for .gems NFT pool"
    }
  ],
  "error_messages": [],
  "abi_extensions": [],
  "variants": [],
  "action_results": []
}