Seilor
Kryptonite is an open-source Decentralized Autonomous Organization (DAO) project. It is governed by individuals worldwide who hold its governance token, SEILOR. Through a governance system that includes Executive Voting and Governance Polling, SEILOR holders can influence the protocol's direction. The SEILOR token is the native token of the kryptonite Protocol, providing essential functionalities such as staking, governance, minting, and liquidator rewards. SEILOR is an ERC-20 governance token with a maximum supply of 100,000,000. SEILOR holders manage the kryptonite Protocol and oversee the financial risks associated with kUSD to ensure stability, transparency, and efficiency. The voting weight of SEILOR is proportional to the amount staked by a voter in the voting contract. In other words, the more SEILOR tokens locked in the contract, the greater the voter's decision-making power.
Config
max_supply
u128
SEILOR token max supply
fund
Addr
gov
Addr
The address of the governance contract
distribute
Addr
new_gov*
Addr
The address of the new governance contract
cross_chain_swap_contract*
Addr
The address of the cross chain swap contract
* = optional
InitMsg
InstantiateMsg
cw20_init_msg
Cw20InstantiateMsg
The cw20 initialization message structure based on the cw20_base library
max_supply
u128
SEILOR token max supply
gov*
Addr
The address of the governance contract
* = optional
ExecuteMsg
UpdateConfig
Updates the configuration of the contract. Can only be issued by the owner.
seilor_fund*
Addr
gov*
Addr
The address of the new governance contract
seilor_distribute*
Addr
Mint
Only with the "mintable" extension. If authorized, creates amount new tokens and adds to the recipient balance.
recipient
String
Recipient's address
amount
Uint128
Amount to be minted
Burn
Burn is a base message to destroy tokens forever
amount
Uint128
Amount to be burned
Transfer
Transfer is a base message to move tokens to another account without triggering actions
recipient
String
Recipient's address
amount
Uint128
Amount to be transfered
Send
Send is a base message to transfer tokens to a contract and trigger an action on the receiving contract.
contract
String
The contract to be trigger on action
amount
Uint128
Amount to be transfered
msg
Binary
Message to be sent
IncreaseAllowance
Only with "approval" extension. Allows spender to access an additional amount tokens from the owner's (env.sender) account. If expires is Some(), overwrites current allowance expiration with this one.
spender
String
The spender's address
amount
Uint128
Amount to increase for allowance
expires*
Expiration
Expiration time
* = optional
DecreaseAllowance
Only with "approval" extension. Lowers the spender's access of tokens from the owner's (env.sender) account by amount. If expires is Some(), overwrites current allowance expiration with this one.
spender
The spender's address
amount
Amount to decrease for allowance
expires*
Expiration time
* = optional
TransferFrom
Only with "approval" extension. Transfers amount tokens from owner -> recipient if env.sender has sufficient pre-approval.
owner
String
The owner's address
recipient
String
The address of recipient
amount
Uint128
Amount to be transfered
SendFrom
Only with "approval" extension. Sends amount tokens from owner -> contract if env.sender has sufficient pre-approval.
owner
String
The owner's address
contract
String
The contract to be trigger on action
amount
Uint128
Amount to be sent
msg
Binary
Message to be sent
BurnFrom
Only with "approval" extension. Destroys tokens forever.
owner
String
The owner's address
amount
Uint128
Amount to be burned
UpdateMinter
Only with the "mintable" extension. The current minter may set a new minter. Setting the minter to None will remove the token's minter forever.
minter*
String
The new miner's address
* = optional
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
project*
String
Project name
description*
String
Project description
marketing*
String
Marketing URL
* = optional
UploadLogo
If set as the "marketing" role on the contract, upload a new URL, SVG, or PNG for the token
logo
String
Logo URL
QueryMsg
SeilorConfig
Gets the SEILOR contract configuration.
SeilorConfigResponse
max_supply
u128
SEILOR token max supply
fund
Addr
distribute
Addr
gov
Addr
The address of the governance contract
Balance
Returns the current balance of the given address, 0 if unset. Return type: BalanceResponse.
address
String
The user's address
BalanceResponse
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
name
String
Name
symbol
String
Symbol
decimals
u8
Decimals
total_supply
Uint128
Total supply
Allowance
Only with "allowance" extension. Returns how much spender can use from owner account, 0 if unset. Return type: AllowanceResponse.
owner
String
The owner's address
spender
String
The spender's address
AllowanceResponse
allowance
Uint128
The amount allowed to be spent by spender
expires
Expiration
Expiration time
at_height
u64
AtHeight will expire when env.block.height
>= height
at_time
Timestamp
AtTime will expire when env.block.time
>= time
never
Never will never expire. Used to express the empty variant
Minter
Only with "mintable" extension. Returns who can mint and the hard cap on maximum tokens after minting. Return type: MinterResponse.
MinterResponse
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.
* = 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
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.
mime_type
String
The mime type of the image
data
Binary
The raw bytes of the image
AllAllowances
Only with "enumerable" extension (and "allowances") Returns all allowances this owner has approved. Supports pagination. Return type: AllAllowancesResponse.
owner
String
The owner of the allowances
start_after*
String
The address to start after, used for pagination
limit*
u32
The number of allowances to limit the query to
AllAllowancesResponse
allowances
Vec<AllowanceInfo>
The list of allowances
AllowanceInfo
spender
Addr
The address of the spender
allowance
Uint128
The amount of tokens the spender is allowed to spend
expires
Expiration
When the allowance expires
AllAccounts
Only with "enumerable" extension Returns all accounts that have balances. Supports pagination. Return type: AllAccountsResponse.
start_after*
String
The address to start after, used for pagination
limit*
u32
The number of accounts to limit the query to
* = optional
Last updated