reth

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RethABI = RethMetaData.ABI

RethABI is the input ABI used to generate the binding from. Deprecated: Use RethMetaData.ABI instead.

View Source
var RethMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stafiStorageAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"EtherDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"ethAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"TokensBurned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"ethAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"TokensMinted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINTER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PAUSER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burnFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositExcess\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositRewards\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBurnEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCollateralRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_rethAmount\",\"type\":\"uint256\"}],\"name\":\"getEthValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getExchangeRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_ethAmount\",\"type\":\"uint256\"}],\"name\":\"getRethValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_value\",\"type\":\"bool\"}],\"name\":\"setBurnEnabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_rethAmount\",\"type\":\"uint256\"}],\"name\":\"userBurn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_ethAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"userMint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

RethMetaData contains all meta data concerning the Reth contract.

Functions

This section is empty.

Types

type Reth

type Reth struct {
	RethCaller     // Read-only binding to the contract
	RethTransactor // Write-only binding to the contract
	RethFilterer   // Log filterer for contract events
}

Reth is an auto generated Go binding around an Ethereum contract.

func NewReth

func NewReth(address common.Address, backend bind.ContractBackend) (*Reth, error)

NewReth creates a new instance of Reth, bound to a specific deployed contract.

type RethApproval

type RethApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

RethApproval represents a Approval event raised by the Reth contract.

type RethApprovalIterator

type RethApprovalIterator struct {
	Event *RethApproval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RethApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Reth contract.

func (*RethApprovalIterator) Close

func (it *RethApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RethApprovalIterator) Error

func (it *RethApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RethApprovalIterator) Next

func (it *RethApprovalIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type RethCaller

type RethCaller struct {
	// contains filtered or unexported fields
}

RethCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewRethCaller

func NewRethCaller(address common.Address, caller bind.ContractCaller) (*RethCaller, error)

NewRethCaller creates a new read-only instance of Reth, bound to a specific deployed contract.

func (*RethCaller) Allowance

func (_Reth *RethCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*RethCaller) BalanceOf

func (_Reth *RethCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*RethCaller) DEFAULTADMINROLE

func (_Reth *RethCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*RethCaller) Decimals

func (_Reth *RethCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*RethCaller) GetBurnEnabled

func (_Reth *RethCaller) GetBurnEnabled(opts *bind.CallOpts) (bool, error)

GetBurnEnabled is a free data retrieval call binding the contract method 0xf8e80db3.

Solidity: function getBurnEnabled() view returns(bool)

func (*RethCaller) GetCollateralRate

func (_Reth *RethCaller) GetCollateralRate(opts *bind.CallOpts) (*big.Int, error)

GetCollateralRate is a free data retrieval call binding the contract method 0x852185fc.

Solidity: function getCollateralRate() view returns(uint256)

func (*RethCaller) GetEthValue

func (_Reth *RethCaller) GetEthValue(opts *bind.CallOpts, _rethAmount *big.Int) (*big.Int, error)

GetEthValue is a free data retrieval call binding the contract method 0x8b32fa23.

Solidity: function getEthValue(uint256 _rethAmount) view returns(uint256)

func (*RethCaller) GetExchangeRate

func (_Reth *RethCaller) GetExchangeRate(opts *bind.CallOpts) (*big.Int, error)

GetExchangeRate is a free data retrieval call binding the contract method 0xe6aa216c.

Solidity: function getExchangeRate() view returns(uint256)

func (*RethCaller) GetRethValue

func (_Reth *RethCaller) GetRethValue(opts *bind.CallOpts, _ethAmount *big.Int) (*big.Int, error)

GetRethValue is a free data retrieval call binding the contract method 0x4346f03e.

Solidity: function getRethValue(uint256 _ethAmount) view returns(uint256)

func (*RethCaller) GetRoleAdmin

func (_Reth *RethCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*RethCaller) GetRoleMember

func (_Reth *RethCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*RethCaller) GetRoleMemberCount

func (_Reth *RethCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*RethCaller) GetTotalCollateral

func (_Reth *RethCaller) GetTotalCollateral(opts *bind.CallOpts) (*big.Int, error)

GetTotalCollateral is a free data retrieval call binding the contract method 0xd6eb5910.

Solidity: function getTotalCollateral() view returns(uint256)

func (*RethCaller) HasRole

func (_Reth *RethCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*RethCaller) MINTERROLE

func (_Reth *RethCaller) MINTERROLE(opts *bind.CallOpts) ([32]byte, error)

MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.

Solidity: function MINTER_ROLE() view returns(bytes32)

func (*RethCaller) Name

func (_Reth *RethCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*RethCaller) PAUSERROLE

func (_Reth *RethCaller) PAUSERROLE(opts *bind.CallOpts) ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*RethCaller) Paused

func (_Reth *RethCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*RethCaller) Symbol

func (_Reth *RethCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*RethCaller) TotalSupply

func (_Reth *RethCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*RethCaller) Version

func (_Reth *RethCaller) Version(opts *bind.CallOpts) (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

type RethCallerRaw

type RethCallerRaw struct {
	Contract *RethCaller // Generic read-only contract binding to access the raw methods on
}

RethCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*RethCallerRaw) Call

func (_Reth *RethCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type RethCallerSession

type RethCallerSession struct {
	Contract *RethCaller   // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

RethCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*RethCallerSession) Allowance

func (_Reth *RethCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*RethCallerSession) BalanceOf

func (_Reth *RethCallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*RethCallerSession) DEFAULTADMINROLE

func (_Reth *RethCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*RethCallerSession) Decimals

func (_Reth *RethCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*RethCallerSession) GetBurnEnabled

func (_Reth *RethCallerSession) GetBurnEnabled() (bool, error)

GetBurnEnabled is a free data retrieval call binding the contract method 0xf8e80db3.

Solidity: function getBurnEnabled() view returns(bool)

func (*RethCallerSession) GetCollateralRate

func (_Reth *RethCallerSession) GetCollateralRate() (*big.Int, error)

GetCollateralRate is a free data retrieval call binding the contract method 0x852185fc.

Solidity: function getCollateralRate() view returns(uint256)

func (*RethCallerSession) GetEthValue

func (_Reth *RethCallerSession) GetEthValue(_rethAmount *big.Int) (*big.Int, error)

GetEthValue is a free data retrieval call binding the contract method 0x8b32fa23.

Solidity: function getEthValue(uint256 _rethAmount) view returns(uint256)

func (*RethCallerSession) GetExchangeRate

func (_Reth *RethCallerSession) GetExchangeRate() (*big.Int, error)

GetExchangeRate is a free data retrieval call binding the contract method 0xe6aa216c.

Solidity: function getExchangeRate() view returns(uint256)

func (*RethCallerSession) GetRethValue

func (_Reth *RethCallerSession) GetRethValue(_ethAmount *big.Int) (*big.Int, error)

GetRethValue is a free data retrieval call binding the contract method 0x4346f03e.

Solidity: function getRethValue(uint256 _ethAmount) view returns(uint256)

func (*RethCallerSession) GetRoleAdmin

func (_Reth *RethCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*RethCallerSession) GetRoleMember

func (_Reth *RethCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*RethCallerSession) GetRoleMemberCount

func (_Reth *RethCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*RethCallerSession) GetTotalCollateral

func (_Reth *RethCallerSession) GetTotalCollateral() (*big.Int, error)

GetTotalCollateral is a free data retrieval call binding the contract method 0xd6eb5910.

Solidity: function getTotalCollateral() view returns(uint256)

func (*RethCallerSession) HasRole

func (_Reth *RethCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*RethCallerSession) MINTERROLE

func (_Reth *RethCallerSession) MINTERROLE() ([32]byte, error)

MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.

Solidity: function MINTER_ROLE() view returns(bytes32)

func (*RethCallerSession) Name

func (_Reth *RethCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*RethCallerSession) PAUSERROLE

func (_Reth *RethCallerSession) PAUSERROLE() ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*RethCallerSession) Paused

func (_Reth *RethCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*RethCallerSession) Symbol

func (_Reth *RethCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*RethCallerSession) TotalSupply

func (_Reth *RethCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*RethCallerSession) Version

func (_Reth *RethCallerSession) Version() (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

type RethEtherDeposited

type RethEtherDeposited struct {
	From   common.Address
	Amount *big.Int
	Time   *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

RethEtherDeposited represents a EtherDeposited event raised by the Reth contract.

type RethEtherDepositedIterator

type RethEtherDepositedIterator struct {
	Event *RethEtherDeposited // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RethEtherDepositedIterator is returned from FilterEtherDeposited and is used to iterate over the raw logs and unpacked data for EtherDeposited events raised by the Reth contract.

func (*RethEtherDepositedIterator) Close

func (it *RethEtherDepositedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RethEtherDepositedIterator) Error

func (it *RethEtherDepositedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RethEtherDepositedIterator) Next

func (it *RethEtherDepositedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type RethFilterer

type RethFilterer struct {
	// contains filtered or unexported fields
}

RethFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewRethFilterer

func NewRethFilterer(address common.Address, filterer bind.ContractFilterer) (*RethFilterer, error)

NewRethFilterer creates a new log filterer instance of Reth, bound to a specific deployed contract.

func (*RethFilterer) FilterApproval

func (_Reth *RethFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*RethApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*RethFilterer) FilterEtherDeposited

func (_Reth *RethFilterer) FilterEtherDeposited(opts *bind.FilterOpts, from []common.Address) (*RethEtherDepositedIterator, error)

FilterEtherDeposited is a free log retrieval operation binding the contract event 0xef51b4c870b8b0100eae2072e91db01222a303072af3728e58c9d4d2da33127f.

Solidity: event EtherDeposited(address indexed from, uint256 amount, uint256 time)

func (*RethFilterer) FilterPaused

func (_Reth *RethFilterer) FilterPaused(opts *bind.FilterOpts) (*RethPausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*RethFilterer) FilterRoleAdminChanged

func (_Reth *RethFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*RethRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*RethFilterer) FilterRoleGranted

func (_Reth *RethFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*RethRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*RethFilterer) FilterRoleRevoked

func (_Reth *RethFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*RethRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*RethFilterer) FilterTokensBurned

func (_Reth *RethFilterer) FilterTokensBurned(opts *bind.FilterOpts, from []common.Address) (*RethTokensBurnedIterator, error)

FilterTokensBurned is a free log retrieval operation binding the contract event 0x19783b34589160c168487dc7f9c51ae0bcefe67a47d6708fba90f6ce0366d3d1.

Solidity: event TokensBurned(address indexed from, uint256 amount, uint256 ethAmount, uint256 time)

func (*RethFilterer) FilterTokensMinted

func (_Reth *RethFilterer) FilterTokensMinted(opts *bind.FilterOpts, to []common.Address) (*RethTokensMintedIterator, error)

FilterTokensMinted is a free log retrieval operation binding the contract event 0x6155cfd0fd028b0ca77e8495a60cbe563e8bce8611f0aad6fedbdaafc05d44a2.

Solidity: event TokensMinted(address indexed to, uint256 amount, uint256 ethAmount, uint256 time)

func (*RethFilterer) FilterTransfer

func (_Reth *RethFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*RethTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*RethFilterer) FilterUnpaused

func (_Reth *RethFilterer) FilterUnpaused(opts *bind.FilterOpts) (*RethUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*RethFilterer) ParseApproval

func (_Reth *RethFilterer) ParseApproval(log types.Log) (*RethApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*RethFilterer) ParseEtherDeposited

func (_Reth *RethFilterer) ParseEtherDeposited(log types.Log) (*RethEtherDeposited, error)

ParseEtherDeposited is a log parse operation binding the contract event 0xef51b4c870b8b0100eae2072e91db01222a303072af3728e58c9d4d2da33127f.

Solidity: event EtherDeposited(address indexed from, uint256 amount, uint256 time)

func (*RethFilterer) ParsePaused

func (_Reth *RethFilterer) ParsePaused(log types.Log) (*RethPaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*RethFilterer) ParseRoleAdminChanged

func (_Reth *RethFilterer) ParseRoleAdminChanged(log types.Log) (*RethRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*RethFilterer) ParseRoleGranted

func (_Reth *RethFilterer) ParseRoleGranted(log types.Log) (*RethRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*RethFilterer) ParseRoleRevoked

func (_Reth *RethFilterer) ParseRoleRevoked(log types.Log) (*RethRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*RethFilterer) ParseTokensBurned

func (_Reth *RethFilterer) ParseTokensBurned(log types.Log) (*RethTokensBurned, error)

ParseTokensBurned is a log parse operation binding the contract event 0x19783b34589160c168487dc7f9c51ae0bcefe67a47d6708fba90f6ce0366d3d1.

Solidity: event TokensBurned(address indexed from, uint256 amount, uint256 ethAmount, uint256 time)

func (*RethFilterer) ParseTokensMinted

func (_Reth *RethFilterer) ParseTokensMinted(log types.Log) (*RethTokensMinted, error)

ParseTokensMinted is a log parse operation binding the contract event 0x6155cfd0fd028b0ca77e8495a60cbe563e8bce8611f0aad6fedbdaafc05d44a2.

Solidity: event TokensMinted(address indexed to, uint256 amount, uint256 ethAmount, uint256 time)

func (*RethFilterer) ParseTransfer

func (_Reth *RethFilterer) ParseTransfer(log types.Log) (*RethTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*RethFilterer) ParseUnpaused

func (_Reth *RethFilterer) ParseUnpaused(log types.Log) (*RethUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*RethFilterer) WatchApproval

func (_Reth *RethFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *RethApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*RethFilterer) WatchEtherDeposited

func (_Reth *RethFilterer) WatchEtherDeposited(opts *bind.WatchOpts, sink chan<- *RethEtherDeposited, from []common.Address) (event.Subscription, error)

WatchEtherDeposited is a free log subscription operation binding the contract event 0xef51b4c870b8b0100eae2072e91db01222a303072af3728e58c9d4d2da33127f.

Solidity: event EtherDeposited(address indexed from, uint256 amount, uint256 time)

func (*RethFilterer) WatchPaused

func (_Reth *RethFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *RethPaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*RethFilterer) WatchRoleAdminChanged

func (_Reth *RethFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *RethRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*RethFilterer) WatchRoleGranted

func (_Reth *RethFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *RethRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*RethFilterer) WatchRoleRevoked

func (_Reth *RethFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *RethRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*RethFilterer) WatchTokensBurned

func (_Reth *RethFilterer) WatchTokensBurned(opts *bind.WatchOpts, sink chan<- *RethTokensBurned, from []common.Address) (event.Subscription, error)

WatchTokensBurned is a free log subscription operation binding the contract event 0x19783b34589160c168487dc7f9c51ae0bcefe67a47d6708fba90f6ce0366d3d1.

Solidity: event TokensBurned(address indexed from, uint256 amount, uint256 ethAmount, uint256 time)

func (*RethFilterer) WatchTokensMinted

func (_Reth *RethFilterer) WatchTokensMinted(opts *bind.WatchOpts, sink chan<- *RethTokensMinted, to []common.Address) (event.Subscription, error)

WatchTokensMinted is a free log subscription operation binding the contract event 0x6155cfd0fd028b0ca77e8495a60cbe563e8bce8611f0aad6fedbdaafc05d44a2.

Solidity: event TokensMinted(address indexed to, uint256 amount, uint256 ethAmount, uint256 time)

func (*RethFilterer) WatchTransfer

func (_Reth *RethFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *RethTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*RethFilterer) WatchUnpaused

func (_Reth *RethFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *RethUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

type RethPaused

type RethPaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

RethPaused represents a Paused event raised by the Reth contract.

type RethPausedIterator

type RethPausedIterator struct {
	Event *RethPaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RethPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Reth contract.

func (*RethPausedIterator) Close

func (it *RethPausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RethPausedIterator) Error

func (it *RethPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RethPausedIterator) Next

func (it *RethPausedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type RethRaw

type RethRaw struct {
	Contract *Reth // Generic contract binding to access the raw methods on
}

RethRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*RethRaw) Call

func (_Reth *RethRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*RethRaw) Transact

func (_Reth *RethRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*RethRaw) Transfer

func (_Reth *RethRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type RethRoleAdminChanged

type RethRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

RethRoleAdminChanged represents a RoleAdminChanged event raised by the Reth contract.

type RethRoleAdminChangedIterator

type RethRoleAdminChangedIterator struct {
	Event *RethRoleAdminChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RethRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Reth contract.

func (*RethRoleAdminChangedIterator) Close

func (it *RethRoleAdminChangedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RethRoleAdminChangedIterator) Error

func (it *RethRoleAdminChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RethRoleAdminChangedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type RethRoleGranted

type RethRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

RethRoleGranted represents a RoleGranted event raised by the Reth contract.

type RethRoleGrantedIterator

type RethRoleGrantedIterator struct {
	Event *RethRoleGranted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RethRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Reth contract.

func (*RethRoleGrantedIterator) Close

func (it *RethRoleGrantedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RethRoleGrantedIterator) Error

func (it *RethRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RethRoleGrantedIterator) Next

func (it *RethRoleGrantedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type RethRoleRevoked

type RethRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

RethRoleRevoked represents a RoleRevoked event raised by the Reth contract.

type RethRoleRevokedIterator

type RethRoleRevokedIterator struct {
	Event *RethRoleRevoked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RethRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Reth contract.

func (*RethRoleRevokedIterator) Close

func (it *RethRoleRevokedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RethRoleRevokedIterator) Error

func (it *RethRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RethRoleRevokedIterator) Next

func (it *RethRoleRevokedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type RethSession

type RethSession struct {
	Contract     *Reth             // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

RethSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*RethSession) Allowance

func (_Reth *RethSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*RethSession) Approve

func (_Reth *RethSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*RethSession) BalanceOf

func (_Reth *RethSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*RethSession) Burn

func (_Reth *RethSession) Burn(amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 amount) returns()

func (*RethSession) BurnFrom

func (_Reth *RethSession) BurnFrom(account common.Address, amount *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.

Solidity: function burnFrom(address account, uint256 amount) returns()

func (*RethSession) DEFAULTADMINROLE

func (_Reth *RethSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*RethSession) Decimals

func (_Reth *RethSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*RethSession) DecreaseAllowance

func (_Reth *RethSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*RethSession) DepositExcess

func (_Reth *RethSession) DepositExcess() (*types.Transaction, error)

DepositExcess is a paid mutator transaction binding the contract method 0x6c985a88.

Solidity: function depositExcess() payable returns()

func (*RethSession) DepositRewards

func (_Reth *RethSession) DepositRewards() (*types.Transaction, error)

DepositRewards is a paid mutator transaction binding the contract method 0x152111f7.

Solidity: function depositRewards() payable returns()

func (*RethSession) GetBurnEnabled

func (_Reth *RethSession) GetBurnEnabled() (bool, error)

GetBurnEnabled is a free data retrieval call binding the contract method 0xf8e80db3.

Solidity: function getBurnEnabled() view returns(bool)

func (*RethSession) GetCollateralRate

func (_Reth *RethSession) GetCollateralRate() (*big.Int, error)

GetCollateralRate is a free data retrieval call binding the contract method 0x852185fc.

Solidity: function getCollateralRate() view returns(uint256)

func (*RethSession) GetEthValue

func (_Reth *RethSession) GetEthValue(_rethAmount *big.Int) (*big.Int, error)

GetEthValue is a free data retrieval call binding the contract method 0x8b32fa23.

Solidity: function getEthValue(uint256 _rethAmount) view returns(uint256)

func (*RethSession) GetExchangeRate

func (_Reth *RethSession) GetExchangeRate() (*big.Int, error)

GetExchangeRate is a free data retrieval call binding the contract method 0xe6aa216c.

Solidity: function getExchangeRate() view returns(uint256)

func (*RethSession) GetRethValue

func (_Reth *RethSession) GetRethValue(_ethAmount *big.Int) (*big.Int, error)

GetRethValue is a free data retrieval call binding the contract method 0x4346f03e.

Solidity: function getRethValue(uint256 _ethAmount) view returns(uint256)

func (*RethSession) GetRoleAdmin

func (_Reth *RethSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*RethSession) GetRoleMember

func (_Reth *RethSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*RethSession) GetRoleMemberCount

func (_Reth *RethSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*RethSession) GetTotalCollateral

func (_Reth *RethSession) GetTotalCollateral() (*big.Int, error)

GetTotalCollateral is a free data retrieval call binding the contract method 0xd6eb5910.

Solidity: function getTotalCollateral() view returns(uint256)

func (*RethSession) GrantRole

func (_Reth *RethSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*RethSession) HasRole

func (_Reth *RethSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*RethSession) IncreaseAllowance

func (_Reth *RethSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*RethSession) MINTERROLE

func (_Reth *RethSession) MINTERROLE() ([32]byte, error)

MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.

Solidity: function MINTER_ROLE() view returns(bytes32)

func (*RethSession) Mint

func (_Reth *RethSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address to, uint256 amount) returns()

func (*RethSession) Name

func (_Reth *RethSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*RethSession) PAUSERROLE

func (_Reth *RethSession) PAUSERROLE() ([32]byte, error)

PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.

Solidity: function PAUSER_ROLE() view returns(bytes32)

func (*RethSession) Pause

func (_Reth *RethSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*RethSession) Paused

func (_Reth *RethSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*RethSession) RenounceRole

func (_Reth *RethSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*RethSession) RevokeRole

func (_Reth *RethSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*RethSession) SetBurnEnabled

func (_Reth *RethSession) SetBurnEnabled(_value bool) (*types.Transaction, error)

SetBurnEnabled is a paid mutator transaction binding the contract method 0x7b2c835f.

Solidity: function setBurnEnabled(bool _value) returns()

func (*RethSession) Symbol

func (_Reth *RethSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*RethSession) TotalSupply

func (_Reth *RethSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*RethSession) Transfer

func (_Reth *RethSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address recipient, uint256 amount) returns(bool)

func (*RethSession) TransferFrom

func (_Reth *RethSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

func (*RethSession) Unpause

func (_Reth *RethSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*RethSession) UserBurn

func (_Reth *RethSession) UserBurn(_rethAmount *big.Int) (*types.Transaction, error)

UserBurn is a paid mutator transaction binding the contract method 0x49640919.

Solidity: function userBurn(uint256 _rethAmount) returns()

func (*RethSession) UserMint

func (_Reth *RethSession) UserMint(_ethAmount *big.Int, _to common.Address) (*types.Transaction, error)

UserMint is a paid mutator transaction binding the contract method 0xbff3a9f8.

Solidity: function userMint(uint256 _ethAmount, address _to) returns()

func (*RethSession) Version

func (_Reth *RethSession) Version() (uint8, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint8)

type RethTokensBurned

type RethTokensBurned struct {
	From      common.Address
	Amount    *big.Int
	EthAmount *big.Int
	Time      *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

RethTokensBurned represents a TokensBurned event raised by the Reth contract.

type RethTokensBurnedIterator

type RethTokensBurnedIterator struct {
	Event *RethTokensBurned // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RethTokensBurnedIterator is returned from FilterTokensBurned and is used to iterate over the raw logs and unpacked data for TokensBurned events raised by the Reth contract.

func (*RethTokensBurnedIterator) Close

func (it *RethTokensBurnedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RethTokensBurnedIterator) Error

func (it *RethTokensBurnedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RethTokensBurnedIterator) Next

func (it *RethTokensBurnedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type RethTokensMinted

type RethTokensMinted struct {
	To        common.Address
	Amount    *big.Int
	EthAmount *big.Int
	Time      *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

RethTokensMinted represents a TokensMinted event raised by the Reth contract.

type RethTokensMintedIterator

type RethTokensMintedIterator struct {
	Event *RethTokensMinted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RethTokensMintedIterator is returned from FilterTokensMinted and is used to iterate over the raw logs and unpacked data for TokensMinted events raised by the Reth contract.

func (*RethTokensMintedIterator) Close

func (it *RethTokensMintedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RethTokensMintedIterator) Error

func (it *RethTokensMintedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RethTokensMintedIterator) Next

func (it *RethTokensMintedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type RethTransactor

type RethTransactor struct {
	// contains filtered or unexported fields
}

RethTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewRethTransactor

func NewRethTransactor(address common.Address, transactor bind.ContractTransactor) (*RethTransactor, error)

NewRethTransactor creates a new write-only instance of Reth, bound to a specific deployed contract.

func (*RethTransactor) Approve

func (_Reth *RethTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*RethTransactor) Burn

func (_Reth *RethTransactor) Burn(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 amount) returns()

func (*RethTransactor) BurnFrom

func (_Reth *RethTransactor) BurnFrom(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.

Solidity: function burnFrom(address account, uint256 amount) returns()

func (*RethTransactor) DecreaseAllowance

func (_Reth *RethTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*RethTransactor) DepositExcess

func (_Reth *RethTransactor) DepositExcess(opts *bind.TransactOpts) (*types.Transaction, error)

DepositExcess is a paid mutator transaction binding the contract method 0x6c985a88.

Solidity: function depositExcess() payable returns()

func (*RethTransactor) DepositRewards

func (_Reth *RethTransactor) DepositRewards(opts *bind.TransactOpts) (*types.Transaction, error)

DepositRewards is a paid mutator transaction binding the contract method 0x152111f7.

Solidity: function depositRewards() payable returns()

func (*RethTransactor) GrantRole

func (_Reth *RethTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*RethTransactor) IncreaseAllowance

func (_Reth *RethTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*RethTransactor) Mint

func (_Reth *RethTransactor) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address to, uint256 amount) returns()

func (*RethTransactor) Pause

func (_Reth *RethTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*RethTransactor) RenounceRole

func (_Reth *RethTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*RethTransactor) RevokeRole

func (_Reth *RethTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*RethTransactor) SetBurnEnabled

func (_Reth *RethTransactor) SetBurnEnabled(opts *bind.TransactOpts, _value bool) (*types.Transaction, error)

SetBurnEnabled is a paid mutator transaction binding the contract method 0x7b2c835f.

Solidity: function setBurnEnabled(bool _value) returns()

func (*RethTransactor) Transfer

func (_Reth *RethTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address recipient, uint256 amount) returns(bool)

func (*RethTransactor) TransferFrom

func (_Reth *RethTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

func (*RethTransactor) Unpause

func (_Reth *RethTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*RethTransactor) UserBurn

func (_Reth *RethTransactor) UserBurn(opts *bind.TransactOpts, _rethAmount *big.Int) (*types.Transaction, error)

UserBurn is a paid mutator transaction binding the contract method 0x49640919.

Solidity: function userBurn(uint256 _rethAmount) returns()

func (*RethTransactor) UserMint

func (_Reth *RethTransactor) UserMint(opts *bind.TransactOpts, _ethAmount *big.Int, _to common.Address) (*types.Transaction, error)

UserMint is a paid mutator transaction binding the contract method 0xbff3a9f8.

Solidity: function userMint(uint256 _ethAmount, address _to) returns()

type RethTransactorRaw

type RethTransactorRaw struct {
	Contract *RethTransactor // Generic write-only contract binding to access the raw methods on
}

RethTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*RethTransactorRaw) Transact

func (_Reth *RethTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*RethTransactorRaw) Transfer

func (_Reth *RethTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type RethTransactorSession

type RethTransactorSession struct {
	Contract     *RethTransactor   // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

RethTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*RethTransactorSession) Approve

func (_Reth *RethTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*RethTransactorSession) Burn

func (_Reth *RethTransactorSession) Burn(amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 amount) returns()

func (*RethTransactorSession) BurnFrom

func (_Reth *RethTransactorSession) BurnFrom(account common.Address, amount *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.

Solidity: function burnFrom(address account, uint256 amount) returns()

func (*RethTransactorSession) DecreaseAllowance

func (_Reth *RethTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*RethTransactorSession) DepositExcess

func (_Reth *RethTransactorSession) DepositExcess() (*types.Transaction, error)

DepositExcess is a paid mutator transaction binding the contract method 0x6c985a88.

Solidity: function depositExcess() payable returns()

func (*RethTransactorSession) DepositRewards

func (_Reth *RethTransactorSession) DepositRewards() (*types.Transaction, error)

DepositRewards is a paid mutator transaction binding the contract method 0x152111f7.

Solidity: function depositRewards() payable returns()

func (*RethTransactorSession) GrantRole

func (_Reth *RethTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*RethTransactorSession) IncreaseAllowance

func (_Reth *RethTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*RethTransactorSession) Mint

func (_Reth *RethTransactorSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address to, uint256 amount) returns()

func (*RethTransactorSession) Pause

func (_Reth *RethTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*RethTransactorSession) RenounceRole

func (_Reth *RethTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*RethTransactorSession) RevokeRole

func (_Reth *RethTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*RethTransactorSession) SetBurnEnabled

func (_Reth *RethTransactorSession) SetBurnEnabled(_value bool) (*types.Transaction, error)

SetBurnEnabled is a paid mutator transaction binding the contract method 0x7b2c835f.

Solidity: function setBurnEnabled(bool _value) returns()

func (*RethTransactorSession) Transfer

func (_Reth *RethTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address recipient, uint256 amount) returns(bool)

func (*RethTransactorSession) TransferFrom

func (_Reth *RethTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

func (*RethTransactorSession) Unpause

func (_Reth *RethTransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*RethTransactorSession) UserBurn

func (_Reth *RethTransactorSession) UserBurn(_rethAmount *big.Int) (*types.Transaction, error)

UserBurn is a paid mutator transaction binding the contract method 0x49640919.

Solidity: function userBurn(uint256 _rethAmount) returns()

func (*RethTransactorSession) UserMint

func (_Reth *RethTransactorSession) UserMint(_ethAmount *big.Int, _to common.Address) (*types.Transaction, error)

UserMint is a paid mutator transaction binding the contract method 0xbff3a9f8.

Solidity: function userMint(uint256 _ethAmount, address _to) returns()

type RethTransfer

type RethTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

RethTransfer represents a Transfer event raised by the Reth contract.

type RethTransferIterator

type RethTransferIterator struct {
	Event *RethTransfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RethTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Reth contract.

func (*RethTransferIterator) Close

func (it *RethTransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RethTransferIterator) Error

func (it *RethTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RethTransferIterator) Next

func (it *RethTransferIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type RethUnpaused

type RethUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

RethUnpaused represents a Unpaused event raised by the Reth contract.

type RethUnpausedIterator

type RethUnpausedIterator struct {
	Event *RethUnpaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RethUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Reth contract.

func (*RethUnpausedIterator) Close

func (it *RethUnpausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RethUnpausedIterator) Error

func (it *RethUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RethUnpausedIterator) Next

func (it *RethUnpausedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL