HsETH
Code
Github Link: https://github.com/KelvinThai/Blast_LpStaking
Address
Blast testnet(Sepolia): 0x7C84156e5f873dB9f544459cb4aA6eC5fc45f67a
Blast mainet: <coming soon>
Events, Read-Only Functions, and State-Changing Functions
Transfer
Event for the movement and burning of HsETH
event Transfer(address indexed from, address indexed to, uint256 value);from
The address tokens are transferred from.
to
The address tokens are transferred to.
value
The amount of tokens transferred.
Approval
Emitted when an approval is granted allowing another address to spend tokens on behalf of the owner.
event Approval(address indexed holder, address indexed spender, uint256 value);holder
The address that approves the spending of tokens.
spender
The address allowed to spend the tokens.
value
The amount of tokens approved to be spent.
RoleAdminChanged
Emitted when the admin of a role is changed.
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);role
The role whose admin is being changed.
previousAdminRole
The previous admin role.
newAdminRole
The new admin role.
RoleRevoked
Emitted when a role is revoked from an account.
role
The role whose admin is being changed.
account
The account from which the role is being revoked.
sender
The address that revoked the role.
RoleGranted
Emitted when a role is granted to an account.
role
The role that is being granted.
account
The account to which the role is being granted.
sender
The address that granted the role.
This is a list of functions without parameters:
DEFAULT_ADMIN_ROLE
0x0000000000000000000000000000000000000000000000000000000000000000
MINTER_ROLE
0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6
decimals
18
name
hsETH
symbol
hsETH
totalSupply
1011130000000000000000
This is a list of functions along with their parameters:
@param owner The address of the account that owns the tokens.
@param spender The address of the account that is allowed to spend the tokens.
@return The amount of tokens that the
spenderis allowed to spend.
Status of approval to spender for each address
@param account The address of the account to query the balance for.
@return The balance of the specified account.
The amount of hsETH held in each address
@param role The role to query the admin role for.
@return The admin role for the specified role.
Checks whether the specified account has the given role.
@param role The role to check for.
@param account The address of the account to check.
@return A boolean indicating whether the account has the specified role.
Checks whether the specified account has the given role.
@param interfaceId The interface identifier to check.
@return A boolean indicating whether the contract supports the specified interface.
Checks whether the contract supports a specific interface.
@param spender The address allowed to spend the tokens.
@param amount The maximum amount of tokens that the spender is allowed to spend.
@return A boolean indicating whether the approval was successful.
Status of approval to spender for each address
@param amount The amount of tokens to burn.
The amount of hsETH held in each address
@param account The address from which the tokens will be burned.
@param amount The amount of tokens to be burned.
Burns a specific amount of tokens from the specified account.
@param spender The address allowed to spend the tokens.
@param subtractedValue The amount by which to reduce the allowance.
@return A boolean indicating whether the allowance reduction was successful.
Reduces the allowance granted to spender by the caller
@param role The role to grant.
@param account The address of the account to which the role will be granted.
Grants the specified role to the specified account.
@param spender The address allowed to spend the tokens.
@param addedValue The amount by which to increase the allowance.
@return A boolean indicating whether the allowance increase was successful.
Increases the allowance granted to spender by the caller.
@param to The address of the recipient to whom the minted tokens will be assigned.
@param amount The amount of tokens to mint.
Mints new tokens and assigns them to the specified recipient.
@param role The role to be removed.
@param account The address of the account from which the role will be removed.
Removes the specified role from the specified account.
@param role The role to be revoked.
@param account The address of the account from which the role will be revoked.
Revokes the specified role from the specified account.
@param to The address of the recipient to whom the tokens will be transferred.
@param amount The amount of tokens to transfer.
@return A boolean indicating whether the transfer was successful.
Transfers tokens from the caller's account to the specified recipient.
@param from The address of the account from which the tokens will be transferred.
@param to The address of the recipient to whom the tokens will be transferred.
@param amount The amount of tokens to transfer.
@return A boolean indicating whether the transfer was successful.
This function is part of the ERC-20 standard and is used to transfer tokens from the from account to the to account.
Last updated