yweth

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const YwethABI = "" /* 8301-byte string literal not displayed */

YwethABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Yweth

type Yweth struct {
	YwethCaller     // Read-only binding to the contract
	YwethTransactor // Write-only binding to the contract
	YwethFilterer   // Log filterer for contract events
}

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

func NewYweth

func NewYweth(address common.Address, backend bind.ContractBackend) (*Yweth, error)

NewYweth creates a new instance of Yweth, bound to a specific deployed contract.

type YwethApproval

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

YwethApproval represents a Approval event raised by the Yweth contract.

type YwethApprovalIterator

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

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

func (*YwethApprovalIterator) Close

func (it *YwethApprovalIterator) Close() error

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

func (*YwethApprovalIterator) Error

func (it *YwethApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*YwethApprovalIterator) Next

func (it *YwethApprovalIterator) 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 YwethCaller

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

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

func NewYwethCaller

func NewYwethCaller(address common.Address, caller bind.ContractCaller) (*YwethCaller, error)

NewYwethCaller creates a new read-only instance of Yweth, bound to a specific deployed contract.

func (*YwethCaller) Allowance

func (_Yweth *YwethCaller) 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 (*YwethCaller) Available

func (_Yweth *YwethCaller) Available(opts *bind.CallOpts) (*big.Int, error)

Available is a free data retrieval call binding the contract method 0x48a0d754.

Solidity: function available() view returns(uint256)

func (*YwethCaller) Balance

func (_Yweth *YwethCaller) Balance(opts *bind.CallOpts) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xb69ef8a8.

Solidity: function balance() view returns(uint256)

func (*YwethCaller) BalanceOf

func (_Yweth *YwethCaller) 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 (*YwethCaller) Controller

func (_Yweth *YwethCaller) Controller(opts *bind.CallOpts) (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*YwethCaller) Decimals

func (_Yweth *YwethCaller) 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 (*YwethCaller) GetPricePerFullShare

func (_Yweth *YwethCaller) GetPricePerFullShare(opts *bind.CallOpts) (*big.Int, error)

GetPricePerFullShare is a free data retrieval call binding the contract method 0x77c7b8fc.

Solidity: function getPricePerFullShare() view returns(uint256)

func (*YwethCaller) Governance

func (_Yweth *YwethCaller) Governance(opts *bind.CallOpts) (common.Address, error)

Governance is a free data retrieval call binding the contract method 0x5aa6e675.

Solidity: function governance() view returns(address)

func (*YwethCaller) Max

func (_Yweth *YwethCaller) Max(opts *bind.CallOpts) (*big.Int, error)

Max is a free data retrieval call binding the contract method 0x6ac5db19.

Solidity: function max() view returns(uint256)

func (*YwethCaller) Min

func (_Yweth *YwethCaller) Min(opts *bind.CallOpts) (*big.Int, error)

Min is a free data retrieval call binding the contract method 0xf8897945.

Solidity: function min() view returns(uint256)

func (*YwethCaller) Name

func (_Yweth *YwethCaller) 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 (*YwethCaller) Symbol

func (_Yweth *YwethCaller) 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 (*YwethCaller) Token

func (_Yweth *YwethCaller) Token(opts *bind.CallOpts) (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*YwethCaller) TotalSupply

func (_Yweth *YwethCaller) 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)

type YwethCallerRaw

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

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

func (*YwethCallerRaw) Call

func (_Yweth *YwethCallerRaw) 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 YwethCallerSession

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

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

func (*YwethCallerSession) Allowance

func (_Yweth *YwethCallerSession) 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 (*YwethCallerSession) Available

func (_Yweth *YwethCallerSession) Available() (*big.Int, error)

Available is a free data retrieval call binding the contract method 0x48a0d754.

Solidity: function available() view returns(uint256)

func (*YwethCallerSession) Balance

func (_Yweth *YwethCallerSession) Balance() (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xb69ef8a8.

Solidity: function balance() view returns(uint256)

func (*YwethCallerSession) BalanceOf

func (_Yweth *YwethCallerSession) 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 (*YwethCallerSession) Controller

func (_Yweth *YwethCallerSession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*YwethCallerSession) Decimals

func (_Yweth *YwethCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*YwethCallerSession) GetPricePerFullShare

func (_Yweth *YwethCallerSession) GetPricePerFullShare() (*big.Int, error)

GetPricePerFullShare is a free data retrieval call binding the contract method 0x77c7b8fc.

Solidity: function getPricePerFullShare() view returns(uint256)

func (*YwethCallerSession) Governance

func (_Yweth *YwethCallerSession) Governance() (common.Address, error)

Governance is a free data retrieval call binding the contract method 0x5aa6e675.

Solidity: function governance() view returns(address)

func (*YwethCallerSession) Max

func (_Yweth *YwethCallerSession) Max() (*big.Int, error)

Max is a free data retrieval call binding the contract method 0x6ac5db19.

Solidity: function max() view returns(uint256)

func (*YwethCallerSession) Min

func (_Yweth *YwethCallerSession) Min() (*big.Int, error)

Min is a free data retrieval call binding the contract method 0xf8897945.

Solidity: function min() view returns(uint256)

func (*YwethCallerSession) Name

func (_Yweth *YwethCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*YwethCallerSession) Symbol

func (_Yweth *YwethCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*YwethCallerSession) Token

func (_Yweth *YwethCallerSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*YwethCallerSession) TotalSupply

func (_Yweth *YwethCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type YwethFilterer

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

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

func NewYwethFilterer

func NewYwethFilterer(address common.Address, filterer bind.ContractFilterer) (*YwethFilterer, error)

NewYwethFilterer creates a new log filterer instance of Yweth, bound to a specific deployed contract.

func (*YwethFilterer) FilterApproval

func (_Yweth *YwethFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*YwethApprovalIterator, 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 (*YwethFilterer) FilterTransfer

func (_Yweth *YwethFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*YwethTransferIterator, 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 (*YwethFilterer) ParseApproval

func (_Yweth *YwethFilterer) ParseApproval(log types.Log) (*YwethApproval, error)

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

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

func (*YwethFilterer) ParseTransfer

func (_Yweth *YwethFilterer) ParseTransfer(log types.Log) (*YwethTransfer, error)

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

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

func (*YwethFilterer) WatchApproval

func (_Yweth *YwethFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *YwethApproval, 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 (*YwethFilterer) WatchTransfer

func (_Yweth *YwethFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *YwethTransfer, 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)

type YwethRaw

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

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

func (*YwethRaw) Call

func (_Yweth *YwethRaw) 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 (*YwethRaw) Transact

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

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

func (*YwethRaw) Transfer

func (_Yweth *YwethRaw) 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 YwethSession

type YwethSession struct {
	Contract     *Yweth            // 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
}

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

func (*YwethSession) Allowance

func (_Yweth *YwethSession) 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 (*YwethSession) Approve

func (_Yweth *YwethSession) 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 (*YwethSession) Available

func (_Yweth *YwethSession) Available() (*big.Int, error)

Available is a free data retrieval call binding the contract method 0x48a0d754.

Solidity: function available() view returns(uint256)

func (*YwethSession) Balance

func (_Yweth *YwethSession) Balance() (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xb69ef8a8.

Solidity: function balance() view returns(uint256)

func (*YwethSession) BalanceOf

func (_Yweth *YwethSession) 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 (*YwethSession) Controller

func (_Yweth *YwethSession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*YwethSession) Decimals

func (_Yweth *YwethSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*YwethSession) DecreaseAllowance

func (_Yweth *YwethSession) 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 (*YwethSession) Deposit

func (_Yweth *YwethSession) Deposit(_amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.

Solidity: function deposit(uint256 _amount) returns()

func (*YwethSession) DepositAll

func (_Yweth *YwethSession) DepositAll() (*types.Transaction, error)

DepositAll is a paid mutator transaction binding the contract method 0xde5f6268.

Solidity: function depositAll() returns()

func (*YwethSession) DepositETH

func (_Yweth *YwethSession) DepositETH() (*types.Transaction, error)

DepositETH is a paid mutator transaction binding the contract method 0xf6326fb3.

Solidity: function depositETH() payable returns()

func (*YwethSession) Earn

func (_Yweth *YwethSession) Earn() (*types.Transaction, error)

Earn is a paid mutator transaction binding the contract method 0xd389800f.

Solidity: function earn() returns()

func (*YwethSession) Fallback

func (_Yweth *YwethSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*YwethSession) GetPricePerFullShare

func (_Yweth *YwethSession) GetPricePerFullShare() (*big.Int, error)

GetPricePerFullShare is a free data retrieval call binding the contract method 0x77c7b8fc.

Solidity: function getPricePerFullShare() view returns(uint256)

func (*YwethSession) Governance

func (_Yweth *YwethSession) Governance() (common.Address, error)

Governance is a free data retrieval call binding the contract method 0x5aa6e675.

Solidity: function governance() view returns(address)

func (*YwethSession) Harvest

func (_Yweth *YwethSession) Harvest(reserve common.Address, amount *big.Int) (*types.Transaction, error)

Harvest is a paid mutator transaction binding the contract method 0x018ee9b7.

Solidity: function harvest(address reserve, uint256 amount) returns()

func (*YwethSession) IncreaseAllowance

func (_Yweth *YwethSession) 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 (*YwethSession) Max

func (_Yweth *YwethSession) Max() (*big.Int, error)

Max is a free data retrieval call binding the contract method 0x6ac5db19.

Solidity: function max() view returns(uint256)

func (*YwethSession) Min

func (_Yweth *YwethSession) Min() (*big.Int, error)

Min is a free data retrieval call binding the contract method 0xf8897945.

Solidity: function min() view returns(uint256)

func (*YwethSession) Name

func (_Yweth *YwethSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*YwethSession) SetController

func (_Yweth *YwethSession) SetController(_controller common.Address) (*types.Transaction, error)

SetController is a paid mutator transaction binding the contract method 0x92eefe9b.

Solidity: function setController(address _controller) returns()

func (*YwethSession) SetGovernance

func (_Yweth *YwethSession) SetGovernance(_governance common.Address) (*types.Transaction, error)

SetGovernance is a paid mutator transaction binding the contract method 0xab033ea9.

Solidity: function setGovernance(address _governance) returns()

func (*YwethSession) SetMin

func (_Yweth *YwethSession) SetMin(_min *big.Int) (*types.Transaction, error)

SetMin is a paid mutator transaction binding the contract method 0x45dc3dd8.

Solidity: function setMin(uint256 _min) returns()

func (*YwethSession) Symbol

func (_Yweth *YwethSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*YwethSession) Token

func (_Yweth *YwethSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*YwethSession) TotalSupply

func (_Yweth *YwethSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*YwethSession) Transfer

func (_Yweth *YwethSession) 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 (*YwethSession) TransferFrom

func (_Yweth *YwethSession) 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 (*YwethSession) Withdraw

func (_Yweth *YwethSession) Withdraw(_shares *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 _shares) returns()

func (*YwethSession) WithdrawAll

func (_Yweth *YwethSession) WithdrawAll() (*types.Transaction, error)

WithdrawAll is a paid mutator transaction binding the contract method 0x853828b6.

Solidity: function withdrawAll() returns()

func (*YwethSession) WithdrawAllETH

func (_Yweth *YwethSession) WithdrawAllETH() (*types.Transaction, error)

WithdrawAllETH is a paid mutator transaction binding the contract method 0x90386bbf.

Solidity: function withdrawAllETH() returns()

func (*YwethSession) WithdrawETH

func (_Yweth *YwethSession) WithdrawETH(_shares *big.Int) (*types.Transaction, error)

WithdrawETH is a paid mutator transaction binding the contract method 0xf14210a6.

Solidity: function withdrawETH(uint256 _shares) returns()

type YwethTransactor

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

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

func NewYwethTransactor

func NewYwethTransactor(address common.Address, transactor bind.ContractTransactor) (*YwethTransactor, error)

NewYwethTransactor creates a new write-only instance of Yweth, bound to a specific deployed contract.

func (*YwethTransactor) Approve

func (_Yweth *YwethTransactor) 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 (*YwethTransactor) DecreaseAllowance

func (_Yweth *YwethTransactor) 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 (*YwethTransactor) Deposit

func (_Yweth *YwethTransactor) Deposit(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.

Solidity: function deposit(uint256 _amount) returns()

func (*YwethTransactor) DepositAll

func (_Yweth *YwethTransactor) DepositAll(opts *bind.TransactOpts) (*types.Transaction, error)

DepositAll is a paid mutator transaction binding the contract method 0xde5f6268.

Solidity: function depositAll() returns()

func (*YwethTransactor) DepositETH

func (_Yweth *YwethTransactor) DepositETH(opts *bind.TransactOpts) (*types.Transaction, error)

DepositETH is a paid mutator transaction binding the contract method 0xf6326fb3.

Solidity: function depositETH() payable returns()

func (*YwethTransactor) Earn

func (_Yweth *YwethTransactor) Earn(opts *bind.TransactOpts) (*types.Transaction, error)

Earn is a paid mutator transaction binding the contract method 0xd389800f.

Solidity: function earn() returns()

func (*YwethTransactor) Fallback

func (_Yweth *YwethTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*YwethTransactor) Harvest

func (_Yweth *YwethTransactor) Harvest(opts *bind.TransactOpts, reserve common.Address, amount *big.Int) (*types.Transaction, error)

Harvest is a paid mutator transaction binding the contract method 0x018ee9b7.

Solidity: function harvest(address reserve, uint256 amount) returns()

func (*YwethTransactor) IncreaseAllowance

func (_Yweth *YwethTransactor) 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 (*YwethTransactor) SetController

func (_Yweth *YwethTransactor) SetController(opts *bind.TransactOpts, _controller common.Address) (*types.Transaction, error)

SetController is a paid mutator transaction binding the contract method 0x92eefe9b.

Solidity: function setController(address _controller) returns()

func (*YwethTransactor) SetGovernance

func (_Yweth *YwethTransactor) SetGovernance(opts *bind.TransactOpts, _governance common.Address) (*types.Transaction, error)

SetGovernance is a paid mutator transaction binding the contract method 0xab033ea9.

Solidity: function setGovernance(address _governance) returns()

func (*YwethTransactor) SetMin

func (_Yweth *YwethTransactor) SetMin(opts *bind.TransactOpts, _min *big.Int) (*types.Transaction, error)

SetMin is a paid mutator transaction binding the contract method 0x45dc3dd8.

Solidity: function setMin(uint256 _min) returns()

func (*YwethTransactor) Transfer

func (_Yweth *YwethTransactor) 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 (*YwethTransactor) TransferFrom

func (_Yweth *YwethTransactor) 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 (*YwethTransactor) Withdraw

func (_Yweth *YwethTransactor) Withdraw(opts *bind.TransactOpts, _shares *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 _shares) returns()

func (*YwethTransactor) WithdrawAll

func (_Yweth *YwethTransactor) WithdrawAll(opts *bind.TransactOpts) (*types.Transaction, error)

WithdrawAll is a paid mutator transaction binding the contract method 0x853828b6.

Solidity: function withdrawAll() returns()

func (*YwethTransactor) WithdrawAllETH

func (_Yweth *YwethTransactor) WithdrawAllETH(opts *bind.TransactOpts) (*types.Transaction, error)

WithdrawAllETH is a paid mutator transaction binding the contract method 0x90386bbf.

Solidity: function withdrawAllETH() returns()

func (*YwethTransactor) WithdrawETH

func (_Yweth *YwethTransactor) WithdrawETH(opts *bind.TransactOpts, _shares *big.Int) (*types.Transaction, error)

WithdrawETH is a paid mutator transaction binding the contract method 0xf14210a6.

Solidity: function withdrawETH(uint256 _shares) returns()

type YwethTransactorRaw

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

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

func (*YwethTransactorRaw) Transact

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

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

func (*YwethTransactorRaw) Transfer

func (_Yweth *YwethTransactorRaw) 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 YwethTransactorSession

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

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

func (*YwethTransactorSession) Approve

func (_Yweth *YwethTransactorSession) 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 (*YwethTransactorSession) DecreaseAllowance

func (_Yweth *YwethTransactorSession) 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 (*YwethTransactorSession) Deposit

func (_Yweth *YwethTransactorSession) Deposit(_amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.

Solidity: function deposit(uint256 _amount) returns()

func (*YwethTransactorSession) DepositAll

func (_Yweth *YwethTransactorSession) DepositAll() (*types.Transaction, error)

DepositAll is a paid mutator transaction binding the contract method 0xde5f6268.

Solidity: function depositAll() returns()

func (*YwethTransactorSession) DepositETH

func (_Yweth *YwethTransactorSession) DepositETH() (*types.Transaction, error)

DepositETH is a paid mutator transaction binding the contract method 0xf6326fb3.

Solidity: function depositETH() payable returns()

func (*YwethTransactorSession) Earn

func (_Yweth *YwethTransactorSession) Earn() (*types.Transaction, error)

Earn is a paid mutator transaction binding the contract method 0xd389800f.

Solidity: function earn() returns()

func (*YwethTransactorSession) Fallback

func (_Yweth *YwethTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*YwethTransactorSession) Harvest

func (_Yweth *YwethTransactorSession) Harvest(reserve common.Address, amount *big.Int) (*types.Transaction, error)

Harvest is a paid mutator transaction binding the contract method 0x018ee9b7.

Solidity: function harvest(address reserve, uint256 amount) returns()

func (*YwethTransactorSession) IncreaseAllowance

func (_Yweth *YwethTransactorSession) 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 (*YwethTransactorSession) SetController

func (_Yweth *YwethTransactorSession) SetController(_controller common.Address) (*types.Transaction, error)

SetController is a paid mutator transaction binding the contract method 0x92eefe9b.

Solidity: function setController(address _controller) returns()

func (*YwethTransactorSession) SetGovernance

func (_Yweth *YwethTransactorSession) SetGovernance(_governance common.Address) (*types.Transaction, error)

SetGovernance is a paid mutator transaction binding the contract method 0xab033ea9.

Solidity: function setGovernance(address _governance) returns()

func (*YwethTransactorSession) SetMin

func (_Yweth *YwethTransactorSession) SetMin(_min *big.Int) (*types.Transaction, error)

SetMin is a paid mutator transaction binding the contract method 0x45dc3dd8.

Solidity: function setMin(uint256 _min) returns()

func (*YwethTransactorSession) Transfer

func (_Yweth *YwethTransactorSession) 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 (*YwethTransactorSession) TransferFrom

func (_Yweth *YwethTransactorSession) 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 (*YwethTransactorSession) Withdraw

func (_Yweth *YwethTransactorSession) Withdraw(_shares *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 _shares) returns()

func (*YwethTransactorSession) WithdrawAll

func (_Yweth *YwethTransactorSession) WithdrawAll() (*types.Transaction, error)

WithdrawAll is a paid mutator transaction binding the contract method 0x853828b6.

Solidity: function withdrawAll() returns()

func (*YwethTransactorSession) WithdrawAllETH

func (_Yweth *YwethTransactorSession) WithdrawAllETH() (*types.Transaction, error)

WithdrawAllETH is a paid mutator transaction binding the contract method 0x90386bbf.

Solidity: function withdrawAllETH() returns()

func (*YwethTransactorSession) WithdrawETH

func (_Yweth *YwethTransactorSession) WithdrawETH(_shares *big.Int) (*types.Transaction, error)

WithdrawETH is a paid mutator transaction binding the contract method 0xf14210a6.

Solidity: function withdrawETH(uint256 _shares) returns()

type YwethTransfer

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

YwethTransfer represents a Transfer event raised by the Yweth contract.

type YwethTransferIterator

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

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

func (*YwethTransferIterator) Close

func (it *YwethTransferIterator) Close() error

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

func (*YwethTransferIterator) Error

func (it *YwethTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*YwethTransferIterator) Next

func (it *YwethTransferIterator) 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