Vaulta

pool.sfn

Contract

{
  "version": "eosio::abi/1.2",
  "types": [],
  "structs": [
    {
      "name": "FORMAT",
      "base": "",
      "fields": [
        {
          "name": "name",
          "type": "string"
        },
        {
          "name": "type",
          "type": "string"
        }
      ]
    },
    {
      "name": "account",
      "base": "",
      "fields": [
        {
          "name": "balance",
          "type": "asset"
        }
      ]
    },
    {
      "name": "close",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "symbol",
          "type": "symbol"
        }
      ]
    },
    {
      "name": "create",
      "base": "",
      "fields": [
        {
          "name": "symcode",
          "type": "symbol_code"
        },
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "int32"
        },
        {
          "name": "attribute",
          "type": "FORMAT"
        },
        {
          "name": "values",
          "type": "pair_string_int64[]"
        }
      ]
    },
    {
      "name": "currency_stats",
      "base": "",
      "fields": [
        {
          "name": "supply",
          "type": "asset"
        },
        {
          "name": "max_supply",
          "type": "asset"
        },
        {
          "name": "issuer",
          "type": "name"
        }
      ]
    },
    {
      "name": "destroy",
      "base": "",
      "fields": [
        {
          "name": "symcode",
          "type": "symbol_code"
        }
      ]
    },
    {
      "name": "issue",
      "base": "",
      "fields": [
        {
          "name": "to",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    },
    {
      "name": "logcreate",
      "base": "",
      "fields": [
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "int32"
        },
        {
          "name": "attribute",
          "type": "FORMAT"
        },
        {
          "name": "values",
          "type": "pair_string_int64[]"
        }
      ]
    },
    {
      "name": "logdestroy",
      "base": "",
      "fields": [
        {
          "name": "symbol",
          "type": "symbol"
        },
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "int32"
        }
      ]
    },
    {
      "name": "logmint",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        }
      ]
    },
    {
      "name": "logredeem",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        }
      ]
    },
    {
      "name": "logrename",
      "base": "",
      "fields": [
        {
          "name": "symbol",
          "type": "symbol"
        },
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "int32"
        },
        {
          "name": "new_symcode",
          "type": "symbol_code"
        },
        {
          "name": "accounts",
          "type": "name[]"
        }
      ]
    },
    {
      "name": "open",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "symbol",
          "type": "symbol"
        },
        {
          "name": "ram_payer",
          "type": "name"
        }
      ]
    },
    {
      "name": "pair_string_int64",
      "base": "",
      "fields": [
        {
          "name": "first",
          "type": "string"
        },
        {
          "name": "second",
          "type": "int64"
        }
      ]
    },
    {
      "name": "pools_row",
      "base": "",
      "fields": [
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "collection_name",
          "type": "name"
        },
        {
          "name": "schema_name",
          "type": "name"
        },
        {
          "name": "template_id",
          "type": "int32"
        },
        {
          "name": "attribute",
          "type": "FORMAT"
        },
        {
          "name": "values",
          "type": "pair_string_int64[]"
        }
      ]
    },
    {
      "name": "rename",
      "base": "",
      "fields": [
        {
          "name": "symcode",
          "type": "symbol_code"
        },
        {
          "name": "new_symcode",
          "type": "symbol_code"
        },
        {
          "name": "accounts",
          "type": "name[]"
        }
      ]
    },
    {
      "name": "retire",
      "base": "",
      "fields": [
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    },
    {
      "name": "setmax",
      "base": "",
      "fields": [
        {
          "name": "symcode",
          "type": "symbol_code"
        }
      ]
    },
    {
      "name": "transfer",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "to",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  ],
  "actions": [
    {
      "name": "close",
      "type": "close",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: Close Token Balance\nsummary: 'Close {{nowrap owner}}’s zero quantity balance'\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---\n\n{{owner}} agrees to close their zero quantity balance for the {{symbol_to_symbol_code symbol}} token.\n\nRAM will be refunded to the RAM payer of the {{symbol_to_symbol_code symbol}} token balance for {{owner}}."
    },
    {
      "name": "create",
      "type": "create",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: Create New NFT Token pool\nsummary: 'Create a new NFT token pool'\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---\n\n{{$action.account}} agrees to create a new NFT token pool with symbol {{symcode}} using collection {{collection_name}} & template ID {{template_id}}.\n\nThis action will not result any any tokens being issued into circulation.\n\nRAM will deducted from {{$action.account}}’s resources to create the necessary records."
    },
    {
      "name": "destroy",
      "type": "destroy",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: destroy\nsummary: Destroy NFT pool\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---"
    },
    {
      "name": "issue",
      "type": "issue",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: Issue Tokens into Circulation\nsummary: 'Issue {{nowrap quantity}} into circulation and transfer into {{nowrap to}}’s account'\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---\n\nThe token manager agrees to issue {{quantity}} into circulation, and transfer it into {{to}}’s account.\n\n{{#if memo}}There is a memo attached to the transfer stating:\n{{memo}}\n{{/if}}\n\nIf {{to}} does not have a balance for {{asset_to_symbol_code quantity}}, or the token manager does not have a balance for {{asset_to_symbol_code quantity}}, the token manager will be designated as the RAM payer of the {{asset_to_symbol_code quantity}} token balance for {{to}}. As a result, RAM will be deducted from the token manager’s resources to create the necessary records.\n\nThis action does not allow the total quantity to exceed the max allowed supply of the token."
    },
    {
      "name": "logcreate",
      "type": "logcreate",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: logcreate\nsummary: Log create\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---"
    },
    {
      "name": "logdestroy",
      "type": "logdestroy",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: logdestroy\nsummary: Log destroy\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---"
    },
    {
      "name": "logmint",
      "type": "logmint",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: logmint\nsummary: Log mint\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---"
    },
    {
      "name": "logredeem",
      "type": "logredeem",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: logredeem\nsummary: Log redeem\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---"
    },
    {
      "name": "logrename",
      "type": "logrename",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: logrename\nsummary: Log rename\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---"
    },
    {
      "name": "open",
      "type": "open",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: Open Token Balance\nsummary: 'Open a zero quantity balance for {{nowrap owner}}'\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---\n\n{{ram_payer}} agrees to establish a zero quantity balance for {{owner}} for the {{symbol_to_symbol_code symbol}} token.\n\nIf {{owner}} does not have a balance for {{symbol_to_symbol_code symbol}}, {{ram_payer}} will be designated as the RAM payer of the {{symbol_to_symbol_code symbol}} token balance for {{owner}}. As a result, RAM will be deducted from {{ram_payer}}’s resources to create the necessary records."
    },
    {
      "name": "rename",
      "type": "rename",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: rename\nsummary: Rename NFT pool\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---"
    },
    {
      "name": "retire",
      "type": "retire",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: Remove Tokens from Circulation\nsummary: 'Remove {{nowrap quantity}} from circulation'\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---\n\nThe token manager agrees to remove {{quantity}} from circulation, taken from their own account.\n\n{{#if memo}} There is a memo attached to the action stating:\n{{memo}}\n{{/if}}"
    },
    {
      "name": "setmax",
      "type": "setmax",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: setmax\nsummary: Set max supply\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---"
    },
    {
      "name": "transfer",
      "type": "transfer",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: Transfer Tokens\nsummary: 'Send {{nowrap quantity}} from {{nowrap from}} to {{nowrap to}}'\nicon: https://atomichub-ipfs.com/ipfs/QmaqvdHxq5MVb8GD5RF6DgvGpkJzfHP1iWUjTjkwLRjD6G#81f7d194b71f64ec9ce215aa6ac46b479ef96d9e147a963be2414d8b1313e2c6\n---\n\n{{from}} agrees to send {{quantity}} to {{to}}.\n\n{{#if memo}}There is a memo attached to the transfer stating:\n{{memo}}\n{{/if}}\n\nIf {{from}} is not already the RAM payer of their {{asset_to_symbol_code quantity}} token balance, {{from}} will be designated as such. As a result, RAM will be deducted from {{from}}’s resources to refund the original RAM payer.\n\nIf {{to}} does not have a balance for {{asset_to_symbol_code quantity}}, {{from}} will be designated as the RAM payer of the {{asset_to_symbol_code quantity}} token balance for {{to}}. As a result, RAM will be deducted from {{from}}’s resources to create the necessary records."
    }
  ],
  "tables": [
    {
      "name": "accounts",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "account"
    },
    {
      "name": "pools",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "pools_row"
    },
    {
      "name": "stat",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "currency_stats"
    }
  ],
  "ricardian_clauses": [
    {
      "id": "UserAgreement",
      "body": "User agreement for Pomelo NFT pool"
    }
  ],
  "error_messages": [],
  "abi_extensions": [],
  "variants": [],
  "action_results": []
}