Ve Seilor
veSEILOR is escrowed SEILOR. It has the same value as SEILOR and is subject to the total supply of SEILOR. veSEILOR cannot be traded or transferred but has voting rights and can share in protocol earnings. Mining rewards are the primary source of veSEILOR. veSEILOR holders can convert their veSEILOR to SEILOR through a vesting process. Once the process is started, veSEILOR will be linearly converted to SEILOR over a period of 30 days.
Config
Key | Type | Description |
---|---|---|
max_supply | u128 | veSEILOR max supply |
fund | Addr | The address of contract fund |
gov | Addr | The address of the governance contract |
max_minted | Uint128 | Maximum amount of veSEILOR that can be minted |
total_minted | Uint128 | Total amount of veSEILOR that has been minted |
new_gov | Addr | The address of the new governance contract |
InitMsg
Key | Type | Description |
---|---|---|
cw20_init_msg | Cw20InstantiateMsg | The cw20 initialization message structure based on the cw20_base library |
max_supply | u128 | SEILOR max supply |
gov* | Addr | Address of contract owner that can update config. If not filled in, it is the initialization call address |
max_minted | Uint128 | Maximum amount of veSEILOR that can be minted |
* = optional
ExecuteMsg
UpdateConfig
Updates the configuration of the contract. Can only be issued by the gov address.
Key | Type | Description |
---|---|---|
max_minted* | Uint128 | Maximum amount of veSEILOR that can be minted |
fund* | Addr | The address of contract fund |
gov* | Addr | The address of the governance contract |
SetMinters
Updates the minters of the contract. Can only be issued by the gov address.
Key | Type | Description |
---|---|---|
contracts | Vec<Addr> | List of contracts to be updated |
is_minter | Vec<bool> | List of corresponding mint permissions |
Mint
Mints veSEILOR. Can only be issued by the mint permissions.
Key | Type | Description |
---|---|---|
recipient | String | Recipient's address |
amount | Uint128 | Amount of veSEILOR to mint |
Burn
Burns veSEILOR. Can only be issued by the mint permissions.
Key | Type | Description |
---|---|---|
user | String | The user address for veSEILOR to be burned |
amount | Uint128 | The amount of veSEILOR to be burned |
UpdateMarketing
Only with the "marketing" extension. If authorized, updates marketing metadata. Setting None/null for any of these will leave it unchanged. Setting Some("") will clear this field on the contract storage
Key | Type | Description |
---|---|---|
project* | String | Project name |
description* | String | Project description |
marketing* | String | Marketing URL |
UploadLogo
If set as the "marketing" role on the contract, upload a new URL, SVG, or PNG for the token
Key | Type | Description |
---|---|---|
logo | String | Logo URL |
QueryMsg
VoteConfig
Returns the current configuration of the contract.
VoteConfigResponse
Key | Type | Description |
---|---|---|
max_supply | u128 | veSEILOR max supply |
fund | Addr | The address of contract fund |
gov | Addr | The address of the governance contract |
max_minted | Uint128 | Maximum amount of veSEILOR that can be minted |
total_minted | Uint128 | Total amount of veSEILOR that has been minted |
new_gov* | Addr | The address of the new governance contract |
* = optional
IsMinter
Returns whether the given address is a minter.
IsMinterResponse
Key | Type | Description |
---|---|---|
is_minter | bool | Return whether the user is a minter |
Checkpoints
Returns the checkpoints of the given address and points.
Key | Type | Description |
---|---|---|
account | Addr | the user's address |
pos | u32 | Voting index |
CheckpointResponse
Key | Type | Description |
---|---|---|
from_block | u64 | Starting block height |
votes | u128 | The amount of votes received |
NumCheckpoints
Returns the number of checkpoints for the given address.
Key | Type | Description |
---|---|---|
account | Addr | The address of the queried user |
NumCheckpointsResponse
Key | Type | Description |
---|---|---|
num | u128 | Voting index |
GetVotes
Returns the amount of votes the given address has.
Key | Type | Description |
---|---|---|
account | Addr | The address of the queried user |
GetVotesResponse
Key | Type | Description |
---|---|---|
votes | u128 | The amount of votes received |
GetPastVotes
Returns the amount of votes the given address had at the given block.
Key | Type | Description |
---|---|---|
account | Addr | The address of the queried user |
block_number | u64 | The given block height |
GetPastVotesResponse
Key | Type | Description |
---|---|---|
votes | u128 | The amount of votes received |
GetPastTotalSupply
Returns the amount of total supply at the given block.
Key | Type | Description |
---|---|---|
block_number | u64 | The given block height |
GetPastTotalSupplyResponse
Key | Type | Description |
---|---|---|
total_supply | u128 | The total number of tokens participating in the vote at the given height |
Balance
Returns the current balance of the given address, 0 if unset. Return type: BalanceResponse.
Key | Type | Description |
---|---|---|
address | String | The user's address |
BalanceResponse
Key | Type | Description |
---|---|---|
balance | Uint128 | The balance of SEILOR tokens for the queried user's address. |
TokenInfo
Returns metadata on the contract - name, decimals, supply, etc. Return type: TokenInfoResponse
TokenInfoResponse
Minter
Only with "mintable" extension. Returns who can mint and the hard cap on maximum tokens after minting. Return type: MinterResponse.
MinterResponse
Key | Type | Description |
---|---|---|
minter | Addr | the minter's address |
cap* | Uint128 | cap is a hard cap on total supply that can be achieved by minting. Note that this refers to total_supply. If None, there is unlimited cap. |
AllAccounts
Only with "enumerable" extension Returns all accounts that have balances. Supports pagination. Return type: AllAccountsResponse.
Key | Type | Description |
---|---|---|
start_after* | String | The address to start after, used for pagination |
limit* | u32 | The number of accounts to limit the query to |
* = optional
MarketingInfo
Only with "marketing" extension Returns more metadata on the contract to display in the client:
description, logo, project url, etc. Return type: MarketingInfoResponse.
MarketingInfoResponse
Key | Type | Description |
---|---|---|
project* | String | A URL pointing to the project behind this token. |
description* | String | A longer description of the token and it's utility. Designed for tooltips or such |
logo* | String | A link to the logo, or a comment there is an on-chain logo stored |
marketing* | Addr | The address (if any) who can update this data structure |
DownLoadLogo
Only with "marketing" extension Downloads the embedded logo data (if stored on chain). Errors if no logo data stored for this contract. Return type: DownloadLogoResponse.
DownloadLogoResponse
When we download an embedded logo, we get this response type. We expect a SPA to be able to accept this info and display it.
Key | Type | Description |
---|---|---|
mime_type | String | The mime type of the image |
data | Binary | The raw bytes of the image |
Last updated