yvault

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const YvaultABI = "" /* 7708-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Yvault

type Yvault struct {
	YvaultCaller     // Read-only binding to the contract
	YvaultTransactor // Write-only binding to the contract
	YvaultFilterer   // Log filterer for contract events
}

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

func NewYvault

func NewYvault(address common.Address, backend bind.ContractBackend) (*Yvault, error)

NewYvault creates a new instance of Yvault, bound to a specific deployed contract.

type YvaultApproval

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

YvaultApproval represents a Approval event raised by the Yvault contract.

type YvaultApprovalIterator

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

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

func (*YvaultApprovalIterator) Close

func (it *YvaultApprovalIterator) Close() error

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

func (*YvaultApprovalIterator) Error

func (it *YvaultApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*YvaultApprovalIterator) Next

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

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

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

func NewYvaultCaller

func NewYvaultCaller(address common.Address, caller bind.ContractCaller) (*YvaultCaller, error)

NewYvaultCaller creates a new read-only instance of Yvault, bound to a specific deployed contract.

func (*YvaultCaller) Allowance

func (_Yvault *YvaultCaller) 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 (*YvaultCaller) Available

func (_Yvault *YvaultCaller) 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 (*YvaultCaller) Balance

func (_Yvault *YvaultCaller) 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 (*YvaultCaller) BalanceOf

func (_Yvault *YvaultCaller) 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 (*YvaultCaller) Controller

func (_Yvault *YvaultCaller) 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 (*YvaultCaller) Decimals

func (_Yvault *YvaultCaller) 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 (*YvaultCaller) GetPricePerFullShare

func (_Yvault *YvaultCaller) 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 (*YvaultCaller) Governance

func (_Yvault *YvaultCaller) 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 (*YvaultCaller) Max

func (_Yvault *YvaultCaller) 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 (*YvaultCaller) Min

func (_Yvault *YvaultCaller) 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 (*YvaultCaller) Name

func (_Yvault *YvaultCaller) 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 (*YvaultCaller) Symbol

func (_Yvault *YvaultCaller) 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 (*YvaultCaller) Token

func (_Yvault *YvaultCaller) 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 (*YvaultCaller) TotalSupply

func (_Yvault *YvaultCaller) 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 YvaultCallerRaw

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

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

func (*YvaultCallerRaw) Call

func (_Yvault *YvaultCallerRaw) 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 YvaultCallerSession

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

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

func (*YvaultCallerSession) Allowance

func (_Yvault *YvaultCallerSession) 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 (*YvaultCallerSession) Available

func (_Yvault *YvaultCallerSession) Available() (*big.Int, error)

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

Solidity: function available() view returns(uint256)

func (*YvaultCallerSession) Balance

func (_Yvault *YvaultCallerSession) Balance() (*big.Int, error)

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

Solidity: function balance() view returns(uint256)

func (*YvaultCallerSession) BalanceOf

func (_Yvault *YvaultCallerSession) 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 (*YvaultCallerSession) Controller

func (_Yvault *YvaultCallerSession) Controller() (common.Address, error)

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

Solidity: function controller() view returns(address)

func (*YvaultCallerSession) Decimals

func (_Yvault *YvaultCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*YvaultCallerSession) GetPricePerFullShare

func (_Yvault *YvaultCallerSession) GetPricePerFullShare() (*big.Int, error)

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

Solidity: function getPricePerFullShare() view returns(uint256)

func (*YvaultCallerSession) Governance

func (_Yvault *YvaultCallerSession) Governance() (common.Address, error)

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

Solidity: function governance() view returns(address)

func (*YvaultCallerSession) Max

func (_Yvault *YvaultCallerSession) Max() (*big.Int, error)

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

Solidity: function max() view returns(uint256)

func (*YvaultCallerSession) Min

func (_Yvault *YvaultCallerSession) Min() (*big.Int, error)

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

Solidity: function min() view returns(uint256)

func (*YvaultCallerSession) Name

func (_Yvault *YvaultCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*YvaultCallerSession) Symbol

func (_Yvault *YvaultCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*YvaultCallerSession) Token

func (_Yvault *YvaultCallerSession) Token() (common.Address, error)

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

Solidity: function token() view returns(address)

func (*YvaultCallerSession) TotalSupply

func (_Yvault *YvaultCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type YvaultFilterer

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

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

func NewYvaultFilterer

func NewYvaultFilterer(address common.Address, filterer bind.ContractFilterer) (*YvaultFilterer, error)

NewYvaultFilterer creates a new log filterer instance of Yvault, bound to a specific deployed contract.

func (*YvaultFilterer) FilterApproval

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

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

func (_Yvault *YvaultFilterer) ParseApproval(log types.Log) (*YvaultApproval, error)

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

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

func (*YvaultFilterer) ParseTransfer

func (_Yvault *YvaultFilterer) ParseTransfer(log types.Log) (*YvaultTransfer, error)

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

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

func (*YvaultFilterer) WatchApproval

func (_Yvault *YvaultFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *YvaultApproval, 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 (*YvaultFilterer) WatchTransfer

func (_Yvault *YvaultFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *YvaultTransfer, 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 YvaultRaw

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

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

func (*YvaultRaw) Call

func (_Yvault *YvaultRaw) 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 (*YvaultRaw) Transact

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

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

func (*YvaultRaw) Transfer

func (_Yvault *YvaultRaw) 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 YvaultSession

type YvaultSession struct {
	Contract     *Yvault           // 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
}

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

func (*YvaultSession) Allowance

func (_Yvault *YvaultSession) 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 (*YvaultSession) Approve

func (_Yvault *YvaultSession) 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 (*YvaultSession) Available

func (_Yvault *YvaultSession) Available() (*big.Int, error)

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

Solidity: function available() view returns(uint256)

func (*YvaultSession) Balance

func (_Yvault *YvaultSession) Balance() (*big.Int, error)

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

Solidity: function balance() view returns(uint256)

func (*YvaultSession) BalanceOf

func (_Yvault *YvaultSession) 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 (*YvaultSession) Controller

func (_Yvault *YvaultSession) Controller() (common.Address, error)

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

Solidity: function controller() view returns(address)

func (*YvaultSession) Decimals

func (_Yvault *YvaultSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*YvaultSession) DecreaseAllowance

func (_Yvault *YvaultSession) 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 (*YvaultSession) Deposit

func (_Yvault *YvaultSession) 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 (*YvaultSession) DepositAll

func (_Yvault *YvaultSession) DepositAll() (*types.Transaction, error)

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

Solidity: function depositAll() returns()

func (*YvaultSession) Earn

func (_Yvault *YvaultSession) Earn() (*types.Transaction, error)

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

Solidity: function earn() returns()

func (*YvaultSession) GetPricePerFullShare

func (_Yvault *YvaultSession) GetPricePerFullShare() (*big.Int, error)

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

Solidity: function getPricePerFullShare() view returns(uint256)

func (*YvaultSession) Governance

func (_Yvault *YvaultSession) Governance() (common.Address, error)

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

Solidity: function governance() view returns(address)

func (*YvaultSession) Harvest

func (_Yvault *YvaultSession) 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 (*YvaultSession) IncreaseAllowance

func (_Yvault *YvaultSession) 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 (*YvaultSession) Max

func (_Yvault *YvaultSession) Max() (*big.Int, error)

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

Solidity: function max() view returns(uint256)

func (*YvaultSession) Min

func (_Yvault *YvaultSession) Min() (*big.Int, error)

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

Solidity: function min() view returns(uint256)

func (*YvaultSession) Name

func (_Yvault *YvaultSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*YvaultSession) SetController

func (_Yvault *YvaultSession) 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 (*YvaultSession) SetGovernance

func (_Yvault *YvaultSession) 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 (*YvaultSession) SetMin

func (_Yvault *YvaultSession) 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 (*YvaultSession) Symbol

func (_Yvault *YvaultSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*YvaultSession) Token

func (_Yvault *YvaultSession) Token() (common.Address, error)

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

Solidity: function token() view returns(address)

func (*YvaultSession) TotalSupply

func (_Yvault *YvaultSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*YvaultSession) Transfer

func (_Yvault *YvaultSession) 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 (*YvaultSession) TransferFrom

func (_Yvault *YvaultSession) 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 (*YvaultSession) Withdraw

func (_Yvault *YvaultSession) 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 (*YvaultSession) WithdrawAll

func (_Yvault *YvaultSession) WithdrawAll() (*types.Transaction, error)

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

Solidity: function withdrawAll() returns()

type YvaultTransactor

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

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

func NewYvaultTransactor

func NewYvaultTransactor(address common.Address, transactor bind.ContractTransactor) (*YvaultTransactor, error)

NewYvaultTransactor creates a new write-only instance of Yvault, bound to a specific deployed contract.

func (*YvaultTransactor) Approve

func (_Yvault *YvaultTransactor) 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 (*YvaultTransactor) DecreaseAllowance

func (_Yvault *YvaultTransactor) 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 (*YvaultTransactor) Deposit

func (_Yvault *YvaultTransactor) 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 (*YvaultTransactor) DepositAll

func (_Yvault *YvaultTransactor) DepositAll(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function depositAll() returns()

func (*YvaultTransactor) Earn

func (_Yvault *YvaultTransactor) Earn(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function earn() returns()

func (*YvaultTransactor) Harvest

func (_Yvault *YvaultTransactor) 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 (*YvaultTransactor) IncreaseAllowance

func (_Yvault *YvaultTransactor) 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 (*YvaultTransactor) SetController

func (_Yvault *YvaultTransactor) 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 (*YvaultTransactor) SetGovernance

func (_Yvault *YvaultTransactor) 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 (*YvaultTransactor) SetMin

func (_Yvault *YvaultTransactor) 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 (*YvaultTransactor) Transfer

func (_Yvault *YvaultTransactor) 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 (*YvaultTransactor) TransferFrom

func (_Yvault *YvaultTransactor) 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 (*YvaultTransactor) Withdraw

func (_Yvault *YvaultTransactor) 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 (*YvaultTransactor) WithdrawAll

func (_Yvault *YvaultTransactor) WithdrawAll(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function withdrawAll() returns()

type YvaultTransactorRaw

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

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

func (*YvaultTransactorRaw) Transact

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

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

func (*YvaultTransactorRaw) Transfer

func (_Yvault *YvaultTransactorRaw) 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 YvaultTransactorSession

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

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

func (*YvaultTransactorSession) Approve

func (_Yvault *YvaultTransactorSession) 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 (*YvaultTransactorSession) DecreaseAllowance

func (_Yvault *YvaultTransactorSession) 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 (*YvaultTransactorSession) Deposit

func (_Yvault *YvaultTransactorSession) 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 (*YvaultTransactorSession) DepositAll

func (_Yvault *YvaultTransactorSession) DepositAll() (*types.Transaction, error)

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

Solidity: function depositAll() returns()

func (*YvaultTransactorSession) Earn

func (_Yvault *YvaultTransactorSession) Earn() (*types.Transaction, error)

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

Solidity: function earn() returns()

func (*YvaultTransactorSession) Harvest

func (_Yvault *YvaultTransactorSession) 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 (*YvaultTransactorSession) IncreaseAllowance

func (_Yvault *YvaultTransactorSession) 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 (*YvaultTransactorSession) SetController

func (_Yvault *YvaultTransactorSession) 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 (*YvaultTransactorSession) SetGovernance

func (_Yvault *YvaultTransactorSession) 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 (*YvaultTransactorSession) SetMin

func (_Yvault *YvaultTransactorSession) 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 (*YvaultTransactorSession) Transfer

func (_Yvault *YvaultTransactorSession) 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 (*YvaultTransactorSession) TransferFrom

func (_Yvault *YvaultTransactorSession) 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 (*YvaultTransactorSession) Withdraw

func (_Yvault *YvaultTransactorSession) 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 (*YvaultTransactorSession) WithdrawAll

func (_Yvault *YvaultTransactorSession) WithdrawAll() (*types.Transaction, error)

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

Solidity: function withdrawAll() returns()

type YvaultTransfer

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

YvaultTransfer represents a Transfer event raised by the Yvault contract.

type YvaultTransferIterator

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

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

func (*YvaultTransferIterator) Close

func (it *YvaultTransferIterator) Close() error

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

func (*YvaultTransferIterator) Error

func (it *YvaultTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*YvaultTransferIterator) Next

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