Token
Last updated
Last updated
The Token contract is a modified implementation of the CW20 base, refitted to consider for bETH reward accruals.
Details on the CW20 specification can be found here.
TokenInfo
Stores information about the bETH token.
* = not stored until value registered
MinterData
Store information about the bETH minter.
* = not stored until value registered
* = optional
Transfer
Transfers tokens to the specified address.
Burn
Burns the specified amount of tokens.
Send
Sends tokens to the specified contract address along with a message.
Mints tokens to the specified address. Can only be issued by the minter.
IncreaseAllowance
Increases allowance for the specified spender address.
* = optional
DecreaseAllowance
Decreases allowance for the specified spender address.
TransferFrom
Transfers tokens from the specified owner to the specified recipient. Requires unexpired allowance to be set beforehand.
SendFrom
Sends tokens from the specified owner to the specified contract, along with a message. Requires unexpired allowance to be set beforehand.
BurnFrom
Burns tokens from the specified owner. Requires unexpired allowance to be set beforehand.
Balance
Gets the balance for the specified address.
TokenInfo
Gets information for the token.
Minter
Gets information for the token minter.
Allowance
Gets allowance information for the specified owner and spender.
AllAllowances
Gets all allowance information for the specified owner.
AllAccounts
Gets account information for all holders.
Key
Type
Description
name
String
Name of bETH token
symbol
String
Symbol of bETH token
decimals
u8
Number of decimals of bETH
total_supply
Uint128
Total minted supply of bETH
mint
*
MinterData
Minter information of bETH
Key
Type
Description
minter
Addr
Address of minter
cap
*
Uint128
Maximum number of mintable tokens
Key
Type
Description
name
String
Name of bETH token
symbol
String
Symbol of bETH token
decimals
u8
Number of decimals of bETH
total_supply
Uint128
Total minted supply of bETH
mint
*
MinterResponse
Minter information of bETH
reward_contract
String
Contract address of bETH Reward
Key
Type
Description
recipient
String
Recipient address of token transfer
amount
Uint128
Amount of tokens to transfer
Key
Type
Description
amount
Uint128
Amount of tokens to burn
Key
Type
Description
contract
String
Contract address to send tokens to
amount
Uint128
Amount of tokens to send
msg
Binary
Base64-encoded JSON of receive hook message
Key
Type
Description
recipient
String
Address to mint tokens to
amount
Uint128
Amount of tokens to mint
Key
Type
Description
spender
String
Address of spender
amount
Uint128
Amount of tokens to increase allowance for spender
expires
*
Expiration
Information on when this allowance expires
Key
Type
Description
AtHeight
u64
Allowance expires at specified block height
AtTime
Timestamp
Allowance expires at specified block timestamp
Never
nil
Allowance never expires
Key
Type
Description
spender
String
Address of spender
amount
Uint128
Amount of tokens to decrease allowance for spender
expires
*
Expiration
Information on when this allowance expires
Key
Type
Description
AtHeight
u64
Allowance expires at specified block height
AtTime
Timestamp
Allowance expires at specified block timestamp
Never
nil
Allowance never expires
Key
Type
Description
owner
String
Address to transfer tokens from
recipient
String
Address to transfer tokens to
amount
Uint128
Amount of tokens to transfer
Key
Type
Description
owner
String
Address to send tokens from
contract
String
Address to send tokens to
amount
Uint128
Amount of tokens to send
msg
Binary
Base64-encoded JSON of receive hook msg
Key
Type
Description
owner
String
Address to burn tokens from
amount
Uint128
Amount of tokens to burn
Key
Type
Description
address
String
Address of holder to get balance
Key
Type
Description
balance
Uint128
Amount of token balance
Key
Type
Description
address
String
Address of holder to get balance
Key
Type
Description
balance
Uint128
Amount of token balance
Key
Type
Description
Key
Type
Description
name
String
Name of token
symbol
String
Symbol of token
decimals
u8
Number of decimals of token
total_supply
Uint128
Total minted supply of token
Key
Type
Description
Key
Type
Description
name
String
Name of token
symbol
String
Symbol of token
decimals
u8
Number of decimals of token
total_supply
Uint128
Total minted supply of token
Key
Type
Description
Key
Type
Description
minter
String
Address of token minter
cap
*
Uint128
Maximum number of mintable tokens
Key
Type
Description
Key
Type
Description
minter
String
Address of token minter
cap
*
Uint128
Maximum number of mintable tokens
Key
Type
Description
owner
String
Address of owner
spender
String
Address of spender
Key
Type
Description
allowance
String
Amount of owner's tokens spender is allowed to spend
expires
Expiration
Information on when this allowance expires
Key
Type
Description
AtHeight
u64
Allowance expires at specified block height
AtTime
Timestamp
Allowance expires at specified block timestamp
Never
nil
Allowance never expires
Key
Type
Description
owner
String
Address of owner
spender
String
Address of spender
Key
Type
Description
allowance
String
Amount of owner's tokens spender is allowed to spend
expires
Expiration
Information on when this allowance expires
Key
Type
Description
AtHeight
u64
Allowance expires at specified block height
AtTime
Timestamp
Allowance expires at specified block timestamp
Never
nil
Allowance never expires
Key
Type
Description
owner
String
Address of owner
start_after
*
String
Address of spender to start query
limit
*
u32
Maximum number of query entries
Key
Type
Description
allowances
Vec<AllowanceInfo>
List of allowance information
Key
Type
Description
spender
String
Address of spender
allowance
String
Amount of owner's tokens spender is allowed to spend
expires
Expiration
Information on when this allowance expires
Key
Type
Description
AtHeight
u64
Allowance expires at specified block height
AtTime
Timestamp
Allowance expires at specified block timestamp
Never
nil
Allowance never expires
Key
Type
Description
owner
String
Address of owner
start_from
*
String
Address of spender to start query
limit
*
u32
Maximum number of query entries
Key
Type
Description
allowances
Vec<AllowanceInfo>
List of allowance information
Key
Type
Description
spender
String
Address of spender
allowance
String
Amount of owner's tokens spender is allowed to spend
expires
Expiration
Information on when this allowance expires
Key
Type
Description
AtHeight
u64
Allowance expires at specified block height
AtTime
Timestamp
Allowance expires at specified block timestamp
Never
nil
Allowance never expires
Key
Type
Description
start_after
*
String
Address of holder to start query
limit
*
u32
Maximum number of query entries
Key
Type
Description
accounts
Vec<String>
List of holder addresses
Key
Type
Description
start_after
*
String
Address of holder to start query
limit
*
u32
Maximum number of query entries
Key
Type
Description
accounts
Vec<String>
List of holder addresses