strategy

package
v1.4.1-rc-42 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const StrategyABI = "" /* 7119-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Strategy

type Strategy struct {
	StrategyCaller     // Read-only binding to the contract
	StrategyTransactor // Write-only binding to the contract
	StrategyFilterer   // Log filterer for contract events
}

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

func NewStrategy

func NewStrategy(address common.Address, backend bind.ContractBackend) (*Strategy, error)

NewStrategy creates a new instance of Strategy, bound to a specific deployed contract.

type StrategyApproval

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

StrategyApproval represents a Approval event raised by the Strategy contract.

type StrategyApprovalIterator

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

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

func (*StrategyApprovalIterator) Close

func (it *StrategyApprovalIterator) Close() error

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

func (*StrategyApprovalIterator) Error

func (it *StrategyApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StrategyApprovalIterator) Next

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

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

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

func NewStrategyCaller

func NewStrategyCaller(address common.Address, caller bind.ContractCaller) (*StrategyCaller, error)

NewStrategyCaller creates a new read-only instance of Strategy, bound to a specific deployed contract.

func (*StrategyCaller) Allowance

func (_Strategy *StrategyCaller) 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 (*StrategyCaller) Available

func (_Strategy *StrategyCaller) 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 (*StrategyCaller) Balance

func (_Strategy *StrategyCaller) 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 (*StrategyCaller) BalanceOf

func (_Strategy *StrategyCaller) 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 (*StrategyCaller) Controller

func (_Strategy *StrategyCaller) 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 (*StrategyCaller) Decimals

func (_Strategy *StrategyCaller) 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 (*StrategyCaller) GetPricePerFullShare

func (_Strategy *StrategyCaller) 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 (*StrategyCaller) Governance

func (_Strategy *StrategyCaller) 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 (*StrategyCaller) Max

func (_Strategy *StrategyCaller) 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 (*StrategyCaller) Min

func (_Strategy *StrategyCaller) 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 (*StrategyCaller) Name

func (_Strategy *StrategyCaller) 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 (*StrategyCaller) Symbol

func (_Strategy *StrategyCaller) 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 (*StrategyCaller) Token

func (_Strategy *StrategyCaller) 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 (*StrategyCaller) TotalSupply

func (_Strategy *StrategyCaller) 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 StrategyCallerRaw

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

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

func (*StrategyCallerRaw) Call

func (_Strategy *StrategyCallerRaw) 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 StrategyCallerSession

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

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

func (*StrategyCallerSession) Allowance

func (_Strategy *StrategyCallerSession) 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 (*StrategyCallerSession) Available

func (_Strategy *StrategyCallerSession) Available() (*big.Int, error)

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

Solidity: function available() view returns(uint256)

func (*StrategyCallerSession) Balance

func (_Strategy *StrategyCallerSession) Balance() (*big.Int, error)

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

Solidity: function balance() view returns(uint256)

func (*StrategyCallerSession) BalanceOf

func (_Strategy *StrategyCallerSession) 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 (*StrategyCallerSession) Controller

func (_Strategy *StrategyCallerSession) Controller() (common.Address, error)

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

Solidity: function controller() view returns(address)

func (*StrategyCallerSession) Decimals

func (_Strategy *StrategyCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*StrategyCallerSession) GetPricePerFullShare

func (_Strategy *StrategyCallerSession) GetPricePerFullShare() (*big.Int, error)

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

Solidity: function getPricePerFullShare() view returns(uint256)

func (*StrategyCallerSession) Governance

func (_Strategy *StrategyCallerSession) Governance() (common.Address, error)

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

Solidity: function governance() view returns(address)

func (*StrategyCallerSession) Max

func (_Strategy *StrategyCallerSession) Max() (*big.Int, error)

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

Solidity: function max() view returns(uint256)

func (*StrategyCallerSession) Min

func (_Strategy *StrategyCallerSession) Min() (*big.Int, error)

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

Solidity: function min() view returns(uint256)

func (*StrategyCallerSession) Name

func (_Strategy *StrategyCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*StrategyCallerSession) Symbol

func (_Strategy *StrategyCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*StrategyCallerSession) Token

func (_Strategy *StrategyCallerSession) Token() (common.Address, error)

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

Solidity: function token() view returns(address)

func (*StrategyCallerSession) TotalSupply

func (_Strategy *StrategyCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type StrategyFilterer

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

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

func NewStrategyFilterer

func NewStrategyFilterer(address common.Address, filterer bind.ContractFilterer) (*StrategyFilterer, error)

NewStrategyFilterer creates a new log filterer instance of Strategy, bound to a specific deployed contract.

func (*StrategyFilterer) FilterApproval

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

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

func (_Strategy *StrategyFilterer) ParseApproval(log types.Log) (*StrategyApproval, error)

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

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

func (*StrategyFilterer) ParseTransfer

func (_Strategy *StrategyFilterer) ParseTransfer(log types.Log) (*StrategyTransfer, error)

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

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

func (*StrategyFilterer) WatchApproval

func (_Strategy *StrategyFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *StrategyApproval, 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 (*StrategyFilterer) WatchTransfer

func (_Strategy *StrategyFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *StrategyTransfer, 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 StrategyRaw

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

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

func (*StrategyRaw) Call

func (_Strategy *StrategyRaw) 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 (*StrategyRaw) Transact

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

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

func (*StrategyRaw) Transfer

func (_Strategy *StrategyRaw) 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 StrategySession

type StrategySession struct {
	Contract     *Strategy         // 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
}

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

func (*StrategySession) Allowance

func (_Strategy *StrategySession) 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 (*StrategySession) Approve

func (_Strategy *StrategySession) 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 (*StrategySession) Available

func (_Strategy *StrategySession) Available() (*big.Int, error)

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

Solidity: function available() view returns(uint256)

func (*StrategySession) Balance

func (_Strategy *StrategySession) Balance() (*big.Int, error)

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

Solidity: function balance() view returns(uint256)

func (*StrategySession) BalanceOf

func (_Strategy *StrategySession) 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 (*StrategySession) Controller

func (_Strategy *StrategySession) Controller() (common.Address, error)

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

Solidity: function controller() view returns(address)

func (*StrategySession) Decimals

func (_Strategy *StrategySession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*StrategySession) DecreaseAllowance

func (_Strategy *StrategySession) 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 (*StrategySession) Deposit

func (_Strategy *StrategySession) 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 (*StrategySession) Earn

func (_Strategy *StrategySession) Earn() (*types.Transaction, error)

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

Solidity: function earn() returns()

func (*StrategySession) GetPricePerFullShare

func (_Strategy *StrategySession) GetPricePerFullShare() (*big.Int, error)

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

Solidity: function getPricePerFullShare() view returns(uint256)

func (*StrategySession) Governance

func (_Strategy *StrategySession) Governance() (common.Address, error)

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

Solidity: function governance() view returns(address)

func (*StrategySession) IncreaseAllowance

func (_Strategy *StrategySession) 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 (*StrategySession) Max

func (_Strategy *StrategySession) Max() (*big.Int, error)

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

Solidity: function max() view returns(uint256)

func (*StrategySession) Min

func (_Strategy *StrategySession) Min() (*big.Int, error)

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

Solidity: function min() view returns(uint256)

func (*StrategySession) Name

func (_Strategy *StrategySession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*StrategySession) SetController

func (_Strategy *StrategySession) 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 (*StrategySession) SetGovernance

func (_Strategy *StrategySession) 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 (*StrategySession) SetMin

func (_Strategy *StrategySession) 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 (*StrategySession) Symbol

func (_Strategy *StrategySession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*StrategySession) Token

func (_Strategy *StrategySession) Token() (common.Address, error)

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

Solidity: function token() view returns(address)

func (*StrategySession) TotalSupply

func (_Strategy *StrategySession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*StrategySession) Transfer

func (_Strategy *StrategySession) 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 (*StrategySession) TransferFrom

func (_Strategy *StrategySession) 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 (*StrategySession) Withdraw

func (_Strategy *StrategySession) Withdraw(_shares *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 _shares) returns()

type StrategyTransactor

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

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

func NewStrategyTransactor

func NewStrategyTransactor(address common.Address, transactor bind.ContractTransactor) (*StrategyTransactor, error)

NewStrategyTransactor creates a new write-only instance of Strategy, bound to a specific deployed contract.

func (*StrategyTransactor) Approve

func (_Strategy *StrategyTransactor) 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 (*StrategyTransactor) DecreaseAllowance

func (_Strategy *StrategyTransactor) 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 (*StrategyTransactor) Deposit

func (_Strategy *StrategyTransactor) 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 (*StrategyTransactor) Earn

func (_Strategy *StrategyTransactor) Earn(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function earn() returns()

func (*StrategyTransactor) IncreaseAllowance

func (_Strategy *StrategyTransactor) 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 (*StrategyTransactor) SetController

func (_Strategy *StrategyTransactor) 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 (*StrategyTransactor) SetGovernance

func (_Strategy *StrategyTransactor) 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 (*StrategyTransactor) SetMin

func (_Strategy *StrategyTransactor) 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 (*StrategyTransactor) Transfer

func (_Strategy *StrategyTransactor) 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 (*StrategyTransactor) TransferFrom

func (_Strategy *StrategyTransactor) 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 (*StrategyTransactor) Withdraw

func (_Strategy *StrategyTransactor) 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()

type StrategyTransactorRaw

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

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

func (*StrategyTransactorRaw) Transact

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

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

func (*StrategyTransactorRaw) Transfer

func (_Strategy *StrategyTransactorRaw) 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 StrategyTransactorSession

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

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

func (*StrategyTransactorSession) Approve

func (_Strategy *StrategyTransactorSession) 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 (*StrategyTransactorSession) DecreaseAllowance

func (_Strategy *StrategyTransactorSession) 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 (*StrategyTransactorSession) Deposit

func (_Strategy *StrategyTransactorSession) 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 (*StrategyTransactorSession) Earn

func (_Strategy *StrategyTransactorSession) Earn() (*types.Transaction, error)

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

Solidity: function earn() returns()

func (*StrategyTransactorSession) IncreaseAllowance

func (_Strategy *StrategyTransactorSession) 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 (*StrategyTransactorSession) SetController

func (_Strategy *StrategyTransactorSession) 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 (*StrategyTransactorSession) SetGovernance

func (_Strategy *StrategyTransactorSession) 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 (*StrategyTransactorSession) SetMin

func (_Strategy *StrategyTransactorSession) 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 (*StrategyTransactorSession) Transfer

func (_Strategy *StrategyTransactorSession) 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 (*StrategyTransactorSession) TransferFrom

func (_Strategy *StrategyTransactorSession) 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 (*StrategyTransactorSession) Withdraw

func (_Strategy *StrategyTransactorSession) Withdraw(_shares *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 _shares) returns()

type StrategyTransfer

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

StrategyTransfer represents a Transfer event raised by the Strategy contract.

type StrategyTransferIterator

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

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

func (*StrategyTransferIterator) Close

func (it *StrategyTransferIterator) Close() error

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

func (*StrategyTransferIterator) Error

func (it *StrategyTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StrategyTransferIterator) Next

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