staplePool

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StaplePoolABI = StaplePoolMetaData.ABI

StaplePoolABI is the input ABI used to generate the binding from. Deprecated: Use StaplePoolMetaData.ABI instead.

View Source
var StaplePoolMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"CollectFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"Recover\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"asset\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"assetTokenAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"assets\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"collectFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"convertToAssets\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"name\":\"convertToShares\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"deposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"maxDeposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxAssets\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"maxMint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxShares\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"maxRedeem\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxShares\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"maxWithdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxAssets\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"name\":\"previewDeposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"previewMint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"previewRedeem\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"name\":\"previewWithdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"recordSwapIn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"recordSwapOut\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenType\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"addresspayable\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"recoverToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"redeem\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tl\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalAssets\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalManagedAssets\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"name\":\"transferByController\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newTl\",\"type\":\"uint8\"}],\"name\":\"updateTL\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"userLiability\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

StaplePoolMetaData contains all meta data concerning the StaplePool contract.

Functions

This section is empty.

Types

type StaplePool

type StaplePool struct {
	StaplePoolCaller     // Read-only binding to the contract
	StaplePoolTransactor // Write-only binding to the contract
	StaplePoolFilterer   // Log filterer for contract events
}

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

func NewStaplePool

func NewStaplePool(address common.Address, backend bind.ContractBackend) (*StaplePool, error)

NewStaplePool creates a new instance of StaplePool, bound to a specific deployed contract.

type StaplePoolApproval

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

StaplePoolApproval represents a Approval event raised by the StaplePool contract.

type StaplePoolApprovalIterator

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

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

func (*StaplePoolApprovalIterator) Close

func (it *StaplePoolApprovalIterator) Close() error

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

func (*StaplePoolApprovalIterator) Error

func (it *StaplePoolApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StaplePoolApprovalIterator) Next

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

type StaplePoolBurn struct {
	User   common.Address
	Shares *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

StaplePoolBurn represents a Burn event raised by the StaplePool contract.

type StaplePoolBurnIterator

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

StaplePoolBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the StaplePool contract.

func (*StaplePoolBurnIterator) Close

func (it *StaplePoolBurnIterator) Close() error

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

func (*StaplePoolBurnIterator) Error

func (it *StaplePoolBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StaplePoolBurnIterator) Next

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

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

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

func NewStaplePoolCaller

func NewStaplePoolCaller(address common.Address, caller bind.ContractCaller) (*StaplePoolCaller, error)

NewStaplePoolCaller creates a new read-only instance of StaplePool, bound to a specific deployed contract.

func (*StaplePoolCaller) Allowance

func (_StaplePool *StaplePoolCaller) 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 (*StaplePoolCaller) Asset

func (_StaplePool *StaplePoolCaller) Asset(opts *bind.CallOpts) (common.Address, error)

Asset is a free data retrieval call binding the contract method 0x38d52e0f.

Solidity: function asset() view returns(address assetTokenAddress)

func (*StaplePoolCaller) Assets

func (_StaplePool *StaplePoolCaller) Assets(opts *bind.CallOpts) (*big.Int, error)

Assets is a free data retrieval call binding the contract method 0x71a97305.

Solidity: function assets() view returns(uint256)

func (*StaplePoolCaller) BalanceOf

func (_StaplePool *StaplePoolCaller) 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 (*StaplePoolCaller) ConvertToAssets

func (_StaplePool *StaplePoolCaller) ConvertToAssets(opts *bind.CallOpts, shares *big.Int) (*big.Int, error)

ConvertToAssets is a free data retrieval call binding the contract method 0x07a2d13a.

Solidity: function convertToAssets(uint256 shares) view returns(uint256 assets)

func (*StaplePoolCaller) ConvertToShares

func (_StaplePool *StaplePoolCaller) ConvertToShares(opts *bind.CallOpts, assets *big.Int) (*big.Int, error)

ConvertToShares is a free data retrieval call binding the contract method 0xc6e6f592.

Solidity: function convertToShares(uint256 assets) view returns(uint256 shares)

func (*StaplePoolCaller) Decimals

func (_StaplePool *StaplePoolCaller) 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 (*StaplePoolCaller) MaxDeposit

func (_StaplePool *StaplePoolCaller) MaxDeposit(opts *bind.CallOpts, receiver common.Address) (*big.Int, error)

MaxDeposit is a free data retrieval call binding the contract method 0x402d267d.

Solidity: function maxDeposit(address receiver) view returns(uint256 maxAssets)

func (*StaplePoolCaller) MaxMint

func (_StaplePool *StaplePoolCaller) MaxMint(opts *bind.CallOpts, receiver common.Address) (*big.Int, error)

MaxMint is a free data retrieval call binding the contract method 0xc63d75b6.

Solidity: function maxMint(address receiver) view returns(uint256 maxShares)

func (*StaplePoolCaller) MaxRedeem

func (_StaplePool *StaplePoolCaller) MaxRedeem(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

MaxRedeem is a free data retrieval call binding the contract method 0xd905777e.

Solidity: function maxRedeem(address owner) view returns(uint256 maxShares)

func (*StaplePoolCaller) MaxWithdraw

func (_StaplePool *StaplePoolCaller) MaxWithdraw(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

MaxWithdraw is a free data retrieval call binding the contract method 0xce96cb77.

Solidity: function maxWithdraw(address owner) view returns(uint256 maxAssets)

func (*StaplePoolCaller) Name

func (_StaplePool *StaplePoolCaller) 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 (*StaplePoolCaller) PreviewDeposit

func (_StaplePool *StaplePoolCaller) PreviewDeposit(opts *bind.CallOpts, assets *big.Int) (*big.Int, error)

PreviewDeposit is a free data retrieval call binding the contract method 0xef8b30f7.

Solidity: function previewDeposit(uint256 assets) view returns(uint256 shares)

func (*StaplePoolCaller) PreviewMint

func (_StaplePool *StaplePoolCaller) PreviewMint(opts *bind.CallOpts, shares *big.Int) (*big.Int, error)

PreviewMint is a free data retrieval call binding the contract method 0xb3d7f6b9.

Solidity: function previewMint(uint256 shares) view returns(uint256 assets)

func (*StaplePoolCaller) PreviewRedeem

func (_StaplePool *StaplePoolCaller) PreviewRedeem(opts *bind.CallOpts, shares *big.Int) (*big.Int, error)

PreviewRedeem is a free data retrieval call binding the contract method 0x4cdad506.

Solidity: function previewRedeem(uint256 shares) view returns(uint256 assets)

func (*StaplePoolCaller) PreviewWithdraw

func (_StaplePool *StaplePoolCaller) PreviewWithdraw(opts *bind.CallOpts, assets *big.Int) (*big.Int, error)

PreviewWithdraw is a free data retrieval call binding the contract method 0x0a28a477.

Solidity: function previewWithdraw(uint256 assets) view returns(uint256 shares)

func (*StaplePoolCaller) Symbol

func (_StaplePool *StaplePoolCaller) 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 (*StaplePoolCaller) Tl

func (_StaplePool *StaplePoolCaller) Tl(opts *bind.CallOpts) (uint8, error)

Tl is a free data retrieval call binding the contract method 0xaaab671c.

Solidity: function tl() view returns(uint8)

func (*StaplePoolCaller) TotalAssets

func (_StaplePool *StaplePoolCaller) TotalAssets(opts *bind.CallOpts) (*big.Int, error)

TotalAssets is a free data retrieval call binding the contract method 0x01e1d114.

Solidity: function totalAssets() view returns(uint256 totalManagedAssets)

func (*StaplePoolCaller) TotalSupply

func (_StaplePool *StaplePoolCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*StaplePoolCaller) UserLiability

func (_StaplePool *StaplePoolCaller) UserLiability(opts *bind.CallOpts, user common.Address) (*big.Int, error)

UserLiability is a free data retrieval call binding the contract method 0xab5fd3d4.

Solidity: function userLiability(address user) view returns(uint256)

type StaplePoolCallerRaw

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

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

func (*StaplePoolCallerRaw) Call

func (_StaplePool *StaplePoolCallerRaw) 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 StaplePoolCallerSession

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

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

func (*StaplePoolCallerSession) Allowance

func (_StaplePool *StaplePoolCallerSession) 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 (*StaplePoolCallerSession) Asset

func (_StaplePool *StaplePoolCallerSession) Asset() (common.Address, error)

Asset is a free data retrieval call binding the contract method 0x38d52e0f.

Solidity: function asset() view returns(address assetTokenAddress)

func (*StaplePoolCallerSession) Assets

func (_StaplePool *StaplePoolCallerSession) Assets() (*big.Int, error)

Assets is a free data retrieval call binding the contract method 0x71a97305.

Solidity: function assets() view returns(uint256)

func (*StaplePoolCallerSession) BalanceOf

func (_StaplePool *StaplePoolCallerSession) 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 (*StaplePoolCallerSession) ConvertToAssets

func (_StaplePool *StaplePoolCallerSession) ConvertToAssets(shares *big.Int) (*big.Int, error)

ConvertToAssets is a free data retrieval call binding the contract method 0x07a2d13a.

Solidity: function convertToAssets(uint256 shares) view returns(uint256 assets)

func (*StaplePoolCallerSession) ConvertToShares

func (_StaplePool *StaplePoolCallerSession) ConvertToShares(assets *big.Int) (*big.Int, error)

ConvertToShares is a free data retrieval call binding the contract method 0xc6e6f592.

Solidity: function convertToShares(uint256 assets) view returns(uint256 shares)

func (*StaplePoolCallerSession) Decimals

func (_StaplePool *StaplePoolCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*StaplePoolCallerSession) MaxDeposit

func (_StaplePool *StaplePoolCallerSession) MaxDeposit(receiver common.Address) (*big.Int, error)

MaxDeposit is a free data retrieval call binding the contract method 0x402d267d.

Solidity: function maxDeposit(address receiver) view returns(uint256 maxAssets)

func (*StaplePoolCallerSession) MaxMint

func (_StaplePool *StaplePoolCallerSession) MaxMint(receiver common.Address) (*big.Int, error)

MaxMint is a free data retrieval call binding the contract method 0xc63d75b6.

Solidity: function maxMint(address receiver) view returns(uint256 maxShares)

func (*StaplePoolCallerSession) MaxRedeem

func (_StaplePool *StaplePoolCallerSession) MaxRedeem(owner common.Address) (*big.Int, error)

MaxRedeem is a free data retrieval call binding the contract method 0xd905777e.

Solidity: function maxRedeem(address owner) view returns(uint256 maxShares)

func (*StaplePoolCallerSession) MaxWithdraw

func (_StaplePool *StaplePoolCallerSession) MaxWithdraw(owner common.Address) (*big.Int, error)

MaxWithdraw is a free data retrieval call binding the contract method 0xce96cb77.

Solidity: function maxWithdraw(address owner) view returns(uint256 maxAssets)

func (*StaplePoolCallerSession) Name

func (_StaplePool *StaplePoolCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*StaplePoolCallerSession) PreviewDeposit

func (_StaplePool *StaplePoolCallerSession) PreviewDeposit(assets *big.Int) (*big.Int, error)

PreviewDeposit is a free data retrieval call binding the contract method 0xef8b30f7.

Solidity: function previewDeposit(uint256 assets) view returns(uint256 shares)

func (*StaplePoolCallerSession) PreviewMint

func (_StaplePool *StaplePoolCallerSession) PreviewMint(shares *big.Int) (*big.Int, error)

PreviewMint is a free data retrieval call binding the contract method 0xb3d7f6b9.

Solidity: function previewMint(uint256 shares) view returns(uint256 assets)

func (*StaplePoolCallerSession) PreviewRedeem

func (_StaplePool *StaplePoolCallerSession) PreviewRedeem(shares *big.Int) (*big.Int, error)

PreviewRedeem is a free data retrieval call binding the contract method 0x4cdad506.

Solidity: function previewRedeem(uint256 shares) view returns(uint256 assets)

func (*StaplePoolCallerSession) PreviewWithdraw

func (_StaplePool *StaplePoolCallerSession) PreviewWithdraw(assets *big.Int) (*big.Int, error)

PreviewWithdraw is a free data retrieval call binding the contract method 0x0a28a477.

Solidity: function previewWithdraw(uint256 assets) view returns(uint256 shares)

func (*StaplePoolCallerSession) Symbol

func (_StaplePool *StaplePoolCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*StaplePoolCallerSession) Tl

func (_StaplePool *StaplePoolCallerSession) Tl() (uint8, error)

Tl is a free data retrieval call binding the contract method 0xaaab671c.

Solidity: function tl() view returns(uint8)

func (*StaplePoolCallerSession) TotalAssets

func (_StaplePool *StaplePoolCallerSession) TotalAssets() (*big.Int, error)

TotalAssets is a free data retrieval call binding the contract method 0x01e1d114.

Solidity: function totalAssets() view returns(uint256 totalManagedAssets)

func (*StaplePoolCallerSession) TotalSupply

func (_StaplePool *StaplePoolCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*StaplePoolCallerSession) UserLiability

func (_StaplePool *StaplePoolCallerSession) UserLiability(user common.Address) (*big.Int, error)

UserLiability is a free data retrieval call binding the contract method 0xab5fd3d4.

Solidity: function userLiability(address user) view returns(uint256)

type StaplePoolCollectFee

type StaplePoolCollectFee struct {
	User   common.Address
	Shares *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

StaplePoolCollectFee represents a CollectFee event raised by the StaplePool contract.

type StaplePoolCollectFeeIterator

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

StaplePoolCollectFeeIterator is returned from FilterCollectFee and is used to iterate over the raw logs and unpacked data for CollectFee events raised by the StaplePool contract.

func (*StaplePoolCollectFeeIterator) Close

func (it *StaplePoolCollectFeeIterator) Close() error

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

func (*StaplePoolCollectFeeIterator) Error

func (it *StaplePoolCollectFeeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StaplePoolCollectFeeIterator) Next

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

type StaplePoolDeposit

type StaplePoolDeposit struct {
	Sender common.Address
	Owner  common.Address
	Assets *big.Int
	Shares *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

StaplePoolDeposit represents a Deposit event raised by the StaplePool contract.

type StaplePoolDepositIterator

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

StaplePoolDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the StaplePool contract.

func (*StaplePoolDepositIterator) Close

func (it *StaplePoolDepositIterator) Close() error

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

func (*StaplePoolDepositIterator) Error

func (it *StaplePoolDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StaplePoolDepositIterator) Next

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

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

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

func NewStaplePoolFilterer

func NewStaplePoolFilterer(address common.Address, filterer bind.ContractFilterer) (*StaplePoolFilterer, error)

NewStaplePoolFilterer creates a new log filterer instance of StaplePool, bound to a specific deployed contract.

func (*StaplePoolFilterer) FilterApproval

func (_StaplePool *StaplePoolFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*StaplePoolApprovalIterator, 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 (*StaplePoolFilterer) FilterBurn

func (_StaplePool *StaplePoolFilterer) FilterBurn(opts *bind.FilterOpts, user []common.Address) (*StaplePoolBurnIterator, error)

FilterBurn is a free log retrieval operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.

Solidity: event Burn(address indexed user, uint256 shares)

func (*StaplePoolFilterer) FilterCollectFee

func (_StaplePool *StaplePoolFilterer) FilterCollectFee(opts *bind.FilterOpts, user []common.Address) (*StaplePoolCollectFeeIterator, error)

FilterCollectFee is a free log retrieval operation binding the contract event 0xdfeef5879c25440d1418a79a16489f0e739d22ac040c8c76f7b998fc704edeb8.

Solidity: event CollectFee(address indexed user, uint256 shares)

func (*StaplePoolFilterer) FilterDeposit

func (_StaplePool *StaplePoolFilterer) FilterDeposit(opts *bind.FilterOpts, sender []common.Address, owner []common.Address) (*StaplePoolDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7.

Solidity: event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares)

func (*StaplePoolFilterer) FilterMint

func (_StaplePool *StaplePoolFilterer) FilterMint(opts *bind.FilterOpts, user []common.Address) (*StaplePoolMintIterator, error)

FilterMint is a free log retrieval operation binding the contract event 0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885.

Solidity: event Mint(address indexed user, uint256 shares)

func (*StaplePoolFilterer) FilterRecover

func (_StaplePool *StaplePoolFilterer) FilterRecover(opts *bind.FilterOpts) (*StaplePoolRecoverIterator, error)

FilterRecover is a free log retrieval operation binding the contract event 0xc609d4d70061ca85bd518176467e44ee689191f8654e28c186e4889816071f9f.

Solidity: event Recover(address token)

func (*StaplePoolFilterer) FilterTransfer

func (_StaplePool *StaplePoolFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*StaplePoolTransferIterator, 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 (*StaplePoolFilterer) FilterWithdraw

func (_StaplePool *StaplePoolFilterer) FilterWithdraw(opts *bind.FilterOpts, sender []common.Address, receiver []common.Address, owner []common.Address) (*StaplePoolWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0xfbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db.

Solidity: event Withdraw(address indexed sender, address indexed receiver, address indexed owner, uint256 assets, uint256 shares)

func (*StaplePoolFilterer) ParseApproval

func (_StaplePool *StaplePoolFilterer) ParseApproval(log types.Log) (*StaplePoolApproval, error)

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

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

func (*StaplePoolFilterer) ParseBurn

func (_StaplePool *StaplePoolFilterer) ParseBurn(log types.Log) (*StaplePoolBurn, error)

ParseBurn is a log parse operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.

Solidity: event Burn(address indexed user, uint256 shares)

func (*StaplePoolFilterer) ParseCollectFee

func (_StaplePool *StaplePoolFilterer) ParseCollectFee(log types.Log) (*StaplePoolCollectFee, error)

ParseCollectFee is a log parse operation binding the contract event 0xdfeef5879c25440d1418a79a16489f0e739d22ac040c8c76f7b998fc704edeb8.

Solidity: event CollectFee(address indexed user, uint256 shares)

func (*StaplePoolFilterer) ParseDeposit

func (_StaplePool *StaplePoolFilterer) ParseDeposit(log types.Log) (*StaplePoolDeposit, error)

ParseDeposit is a log parse operation binding the contract event 0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7.

Solidity: event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares)

func (*StaplePoolFilterer) ParseMint

func (_StaplePool *StaplePoolFilterer) ParseMint(log types.Log) (*StaplePoolMint, error)

ParseMint is a log parse operation binding the contract event 0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885.

Solidity: event Mint(address indexed user, uint256 shares)

func (*StaplePoolFilterer) ParseRecover

func (_StaplePool *StaplePoolFilterer) ParseRecover(log types.Log) (*StaplePoolRecover, error)

ParseRecover is a log parse operation binding the contract event 0xc609d4d70061ca85bd518176467e44ee689191f8654e28c186e4889816071f9f.

Solidity: event Recover(address token)

func (*StaplePoolFilterer) ParseTransfer

func (_StaplePool *StaplePoolFilterer) ParseTransfer(log types.Log) (*StaplePoolTransfer, error)

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

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

func (*StaplePoolFilterer) ParseWithdraw

func (_StaplePool *StaplePoolFilterer) ParseWithdraw(log types.Log) (*StaplePoolWithdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0xfbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db.

Solidity: event Withdraw(address indexed sender, address indexed receiver, address indexed owner, uint256 assets, uint256 shares)

func (*StaplePoolFilterer) WatchApproval

func (_StaplePool *StaplePoolFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *StaplePoolApproval, 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 (*StaplePoolFilterer) WatchBurn

func (_StaplePool *StaplePoolFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *StaplePoolBurn, user []common.Address) (event.Subscription, error)

WatchBurn is a free log subscription operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.

Solidity: event Burn(address indexed user, uint256 shares)

func (*StaplePoolFilterer) WatchCollectFee

func (_StaplePool *StaplePoolFilterer) WatchCollectFee(opts *bind.WatchOpts, sink chan<- *StaplePoolCollectFee, user []common.Address) (event.Subscription, error)

WatchCollectFee is a free log subscription operation binding the contract event 0xdfeef5879c25440d1418a79a16489f0e739d22ac040c8c76f7b998fc704edeb8.

Solidity: event CollectFee(address indexed user, uint256 shares)

func (*StaplePoolFilterer) WatchDeposit

func (_StaplePool *StaplePoolFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *StaplePoolDeposit, sender []common.Address, owner []common.Address) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7.

Solidity: event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares)

func (*StaplePoolFilterer) WatchMint

func (_StaplePool *StaplePoolFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *StaplePoolMint, user []common.Address) (event.Subscription, error)

WatchMint is a free log subscription operation binding the contract event 0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885.

Solidity: event Mint(address indexed user, uint256 shares)

func (*StaplePoolFilterer) WatchRecover

func (_StaplePool *StaplePoolFilterer) WatchRecover(opts *bind.WatchOpts, sink chan<- *StaplePoolRecover) (event.Subscription, error)

WatchRecover is a free log subscription operation binding the contract event 0xc609d4d70061ca85bd518176467e44ee689191f8654e28c186e4889816071f9f.

Solidity: event Recover(address token)

func (*StaplePoolFilterer) WatchTransfer

func (_StaplePool *StaplePoolFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *StaplePoolTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

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

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

func (*StaplePoolFilterer) WatchWithdraw

func (_StaplePool *StaplePoolFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *StaplePoolWithdraw, sender []common.Address, receiver []common.Address, owner []common.Address) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0xfbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db.

Solidity: event Withdraw(address indexed sender, address indexed receiver, address indexed owner, uint256 assets, uint256 shares)

type StaplePoolMint

type StaplePoolMint struct {
	User   common.Address
	Shares *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

StaplePoolMint represents a Mint event raised by the StaplePool contract.

type StaplePoolMintIterator

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

StaplePoolMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the StaplePool contract.

func (*StaplePoolMintIterator) Close

func (it *StaplePoolMintIterator) Close() error

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

func (*StaplePoolMintIterator) Error

func (it *StaplePoolMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StaplePoolMintIterator) Next

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

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

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

func (*StaplePoolRaw) Call

func (_StaplePool *StaplePoolRaw) 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 (*StaplePoolRaw) Transact

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

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

func (*StaplePoolRaw) Transfer

func (_StaplePool *StaplePoolRaw) 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 StaplePoolRecover

type StaplePoolRecover struct {
	Token common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

StaplePoolRecover represents a Recover event raised by the StaplePool contract.

type StaplePoolRecoverIterator

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

StaplePoolRecoverIterator is returned from FilterRecover and is used to iterate over the raw logs and unpacked data for Recover events raised by the StaplePool contract.

func (*StaplePoolRecoverIterator) Close

func (it *StaplePoolRecoverIterator) Close() error

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

func (*StaplePoolRecoverIterator) Error

func (it *StaplePoolRecoverIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StaplePoolRecoverIterator) Next

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

type StaplePoolSession struct {
	Contract     *StaplePool       // 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
}

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

func (*StaplePoolSession) Allowance

func (_StaplePool *StaplePoolSession) 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 (*StaplePoolSession) Approve

func (_StaplePool *StaplePoolSession) 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 (*StaplePoolSession) Asset

func (_StaplePool *StaplePoolSession) Asset() (common.Address, error)

Asset is a free data retrieval call binding the contract method 0x38d52e0f.

Solidity: function asset() view returns(address assetTokenAddress)

func (*StaplePoolSession) Assets

func (_StaplePool *StaplePoolSession) Assets() (*big.Int, error)

Assets is a free data retrieval call binding the contract method 0x71a97305.

Solidity: function assets() view returns(uint256)

func (*StaplePoolSession) BalanceOf

func (_StaplePool *StaplePoolSession) 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 (*StaplePoolSession) CollectFee

func (_StaplePool *StaplePoolSession) CollectFee(assets *big.Int, user common.Address) (*types.Transaction, error)

CollectFee is a paid mutator transaction binding the contract method 0x7ff7b0d2.

Solidity: function collectFee(uint256 assets, address user) returns(uint256 shares)

func (*StaplePoolSession) ConvertToAssets

func (_StaplePool *StaplePoolSession) ConvertToAssets(shares *big.Int) (*big.Int, error)

ConvertToAssets is a free data retrieval call binding the contract method 0x07a2d13a.

Solidity: function convertToAssets(uint256 shares) view returns(uint256 assets)

func (*StaplePoolSession) ConvertToShares

func (_StaplePool *StaplePoolSession) ConvertToShares(assets *big.Int) (*big.Int, error)

ConvertToShares is a free data retrieval call binding the contract method 0xc6e6f592.

Solidity: function convertToShares(uint256 assets) view returns(uint256 shares)

func (*StaplePoolSession) Decimals

func (_StaplePool *StaplePoolSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*StaplePoolSession) Deposit

func (_StaplePool *StaplePoolSession) Deposit(assets *big.Int, receiver common.Address) (*types.Transaction, error)

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

Solidity: function deposit(uint256 assets, address receiver) returns(uint256 shares)

func (*StaplePoolSession) MaxDeposit

func (_StaplePool *StaplePoolSession) MaxDeposit(receiver common.Address) (*big.Int, error)

MaxDeposit is a free data retrieval call binding the contract method 0x402d267d.

Solidity: function maxDeposit(address receiver) view returns(uint256 maxAssets)

func (*StaplePoolSession) MaxMint

func (_StaplePool *StaplePoolSession) MaxMint(receiver common.Address) (*big.Int, error)

MaxMint is a free data retrieval call binding the contract method 0xc63d75b6.

Solidity: function maxMint(address receiver) view returns(uint256 maxShares)

func (*StaplePoolSession) MaxRedeem

func (_StaplePool *StaplePoolSession) MaxRedeem(owner common.Address) (*big.Int, error)

MaxRedeem is a free data retrieval call binding the contract method 0xd905777e.

Solidity: function maxRedeem(address owner) view returns(uint256 maxShares)

func (*StaplePoolSession) MaxWithdraw

func (_StaplePool *StaplePoolSession) MaxWithdraw(owner common.Address) (*big.Int, error)

MaxWithdraw is a free data retrieval call binding the contract method 0xce96cb77.

Solidity: function maxWithdraw(address owner) view returns(uint256 maxAssets)

func (*StaplePoolSession) Mint

func (_StaplePool *StaplePoolSession) Mint(shares *big.Int, receiver common.Address) (*types.Transaction, error)

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

Solidity: function mint(uint256 shares, address receiver) returns(uint256 assets)

func (*StaplePoolSession) Name

func (_StaplePool *StaplePoolSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*StaplePoolSession) PreviewDeposit

func (_StaplePool *StaplePoolSession) PreviewDeposit(assets *big.Int) (*big.Int, error)

PreviewDeposit is a free data retrieval call binding the contract method 0xef8b30f7.

Solidity: function previewDeposit(uint256 assets) view returns(uint256 shares)

func (*StaplePoolSession) PreviewMint

func (_StaplePool *StaplePoolSession) PreviewMint(shares *big.Int) (*big.Int, error)

PreviewMint is a free data retrieval call binding the contract method 0xb3d7f6b9.

Solidity: function previewMint(uint256 shares) view returns(uint256 assets)

func (*StaplePoolSession) PreviewRedeem

func (_StaplePool *StaplePoolSession) PreviewRedeem(shares *big.Int) (*big.Int, error)

PreviewRedeem is a free data retrieval call binding the contract method 0x4cdad506.

Solidity: function previewRedeem(uint256 shares) view returns(uint256 assets)

func (*StaplePoolSession) PreviewWithdraw

func (_StaplePool *StaplePoolSession) PreviewWithdraw(assets *big.Int) (*big.Int, error)

PreviewWithdraw is a free data retrieval call binding the contract method 0x0a28a477.

Solidity: function previewWithdraw(uint256 assets) view returns(uint256 shares)

func (*StaplePoolSession) RecordSwapIn

func (_StaplePool *StaplePoolSession) RecordSwapIn(amount *big.Int) (*types.Transaction, error)

RecordSwapIn is a paid mutator transaction binding the contract method 0x4783b564.

Solidity: function recordSwapIn(uint256 amount) returns()

func (*StaplePoolSession) RecordSwapOut

func (_StaplePool *StaplePoolSession) RecordSwapOut(amount *big.Int) (*types.Transaction, error)

RecordSwapOut is a paid mutator transaction binding the contract method 0x94d5fc84.

Solidity: function recordSwapOut(uint256 amount) returns()

func (*StaplePoolSession) RecoverToken

func (_StaplePool *StaplePoolSession) RecoverToken(tokenType common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

RecoverToken is a paid mutator transaction binding the contract method 0xd04323c5.

Solidity: function recoverToken(address tokenType, uint256 amount, address receiver) returns()

func (*StaplePoolSession) Redeem

func (_StaplePool *StaplePoolSession) Redeem(shares *big.Int, receiver common.Address, owner common.Address) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0xba087652.

Solidity: function redeem(uint256 shares, address receiver, address owner) returns(uint256 assets)

func (*StaplePoolSession) Symbol

func (_StaplePool *StaplePoolSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*StaplePoolSession) Tl

func (_StaplePool *StaplePoolSession) Tl() (uint8, error)

Tl is a free data retrieval call binding the contract method 0xaaab671c.

Solidity: function tl() view returns(uint8)

func (*StaplePoolSession) TotalAssets

func (_StaplePool *StaplePoolSession) TotalAssets() (*big.Int, error)

TotalAssets is a free data retrieval call binding the contract method 0x01e1d114.

Solidity: function totalAssets() view returns(uint256 totalManagedAssets)

func (*StaplePoolSession) TotalSupply

func (_StaplePool *StaplePoolSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*StaplePoolSession) Transfer

func (_StaplePool *StaplePoolSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*StaplePoolSession) TransferByController

func (_StaplePool *StaplePoolSession) TransferByController(receiver common.Address, assets *big.Int) (*types.Transaction, error)

TransferByController is a paid mutator transaction binding the contract method 0xb777638a.

Solidity: function transferByController(address receiver, uint256 assets) returns()

func (*StaplePoolSession) TransferFrom

func (_StaplePool *StaplePoolSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

func (*StaplePoolSession) UpdateTL

func (_StaplePool *StaplePoolSession) UpdateTL(newTl uint8) (*types.Transaction, error)

UpdateTL is a paid mutator transaction binding the contract method 0xa3ff7270.

Solidity: function updateTL(uint8 newTl) returns()

func (*StaplePoolSession) UserLiability

func (_StaplePool *StaplePoolSession) UserLiability(user common.Address) (*big.Int, error)

UserLiability is a free data retrieval call binding the contract method 0xab5fd3d4.

Solidity: function userLiability(address user) view returns(uint256)

func (*StaplePoolSession) Withdraw

func (_StaplePool *StaplePoolSession) Withdraw(assets *big.Int, receiver common.Address, owner common.Address) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 assets, address receiver, address owner) returns(uint256 shares)

type StaplePoolTransactor

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

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

func NewStaplePoolTransactor

func NewStaplePoolTransactor(address common.Address, transactor bind.ContractTransactor) (*StaplePoolTransactor, error)

NewStaplePoolTransactor creates a new write-only instance of StaplePool, bound to a specific deployed contract.

func (*StaplePoolTransactor) Approve

func (_StaplePool *StaplePoolTransactor) 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 (*StaplePoolTransactor) CollectFee

func (_StaplePool *StaplePoolTransactor) CollectFee(opts *bind.TransactOpts, assets *big.Int, user common.Address) (*types.Transaction, error)

CollectFee is a paid mutator transaction binding the contract method 0x7ff7b0d2.

Solidity: function collectFee(uint256 assets, address user) returns(uint256 shares)

func (*StaplePoolTransactor) Deposit

func (_StaplePool *StaplePoolTransactor) Deposit(opts *bind.TransactOpts, assets *big.Int, receiver common.Address) (*types.Transaction, error)

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

Solidity: function deposit(uint256 assets, address receiver) returns(uint256 shares)

func (*StaplePoolTransactor) Mint

func (_StaplePool *StaplePoolTransactor) Mint(opts *bind.TransactOpts, shares *big.Int, receiver common.Address) (*types.Transaction, error)

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

Solidity: function mint(uint256 shares, address receiver) returns(uint256 assets)

func (*StaplePoolTransactor) RecordSwapIn

func (_StaplePool *StaplePoolTransactor) RecordSwapIn(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

RecordSwapIn is a paid mutator transaction binding the contract method 0x4783b564.

Solidity: function recordSwapIn(uint256 amount) returns()

func (*StaplePoolTransactor) RecordSwapOut

func (_StaplePool *StaplePoolTransactor) RecordSwapOut(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

RecordSwapOut is a paid mutator transaction binding the contract method 0x94d5fc84.

Solidity: function recordSwapOut(uint256 amount) returns()

func (*StaplePoolTransactor) RecoverToken

func (_StaplePool *StaplePoolTransactor) RecoverToken(opts *bind.TransactOpts, tokenType common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

RecoverToken is a paid mutator transaction binding the contract method 0xd04323c5.

Solidity: function recoverToken(address tokenType, uint256 amount, address receiver) returns()

func (*StaplePoolTransactor) Redeem

func (_StaplePool *StaplePoolTransactor) Redeem(opts *bind.TransactOpts, shares *big.Int, receiver common.Address, owner common.Address) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0xba087652.

Solidity: function redeem(uint256 shares, address receiver, address owner) returns(uint256 assets)

func (*StaplePoolTransactor) Transfer

func (_StaplePool *StaplePoolTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*StaplePoolTransactor) TransferByController

func (_StaplePool *StaplePoolTransactor) TransferByController(opts *bind.TransactOpts, receiver common.Address, assets *big.Int) (*types.Transaction, error)

TransferByController is a paid mutator transaction binding the contract method 0xb777638a.

Solidity: function transferByController(address receiver, uint256 assets) returns()

func (*StaplePoolTransactor) TransferFrom

func (_StaplePool *StaplePoolTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

func (*StaplePoolTransactor) UpdateTL

func (_StaplePool *StaplePoolTransactor) UpdateTL(opts *bind.TransactOpts, newTl uint8) (*types.Transaction, error)

UpdateTL is a paid mutator transaction binding the contract method 0xa3ff7270.

Solidity: function updateTL(uint8 newTl) returns()

func (*StaplePoolTransactor) Withdraw

func (_StaplePool *StaplePoolTransactor) Withdraw(opts *bind.TransactOpts, assets *big.Int, receiver common.Address, owner common.Address) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 assets, address receiver, address owner) returns(uint256 shares)

type StaplePoolTransactorRaw

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

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

func (*StaplePoolTransactorRaw) Transact

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

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

func (*StaplePoolTransactorRaw) Transfer

func (_StaplePool *StaplePoolTransactorRaw) 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 StaplePoolTransactorSession

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

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

func (*StaplePoolTransactorSession) Approve

func (_StaplePool *StaplePoolTransactorSession) 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 (*StaplePoolTransactorSession) CollectFee

func (_StaplePool *StaplePoolTransactorSession) CollectFee(assets *big.Int, user common.Address) (*types.Transaction, error)

CollectFee is a paid mutator transaction binding the contract method 0x7ff7b0d2.

Solidity: function collectFee(uint256 assets, address user) returns(uint256 shares)

func (*StaplePoolTransactorSession) Deposit

func (_StaplePool *StaplePoolTransactorSession) Deposit(assets *big.Int, receiver common.Address) (*types.Transaction, error)

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

Solidity: function deposit(uint256 assets, address receiver) returns(uint256 shares)

func (*StaplePoolTransactorSession) Mint

func (_StaplePool *StaplePoolTransactorSession) Mint(shares *big.Int, receiver common.Address) (*types.Transaction, error)

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

Solidity: function mint(uint256 shares, address receiver) returns(uint256 assets)

func (*StaplePoolTransactorSession) RecordSwapIn

func (_StaplePool *StaplePoolTransactorSession) RecordSwapIn(amount *big.Int) (*types.Transaction, error)

RecordSwapIn is a paid mutator transaction binding the contract method 0x4783b564.

Solidity: function recordSwapIn(uint256 amount) returns()

func (*StaplePoolTransactorSession) RecordSwapOut

func (_StaplePool *StaplePoolTransactorSession) RecordSwapOut(amount *big.Int) (*types.Transaction, error)

RecordSwapOut is a paid mutator transaction binding the contract method 0x94d5fc84.

Solidity: function recordSwapOut(uint256 amount) returns()

func (*StaplePoolTransactorSession) RecoverToken

func (_StaplePool *StaplePoolTransactorSession) RecoverToken(tokenType common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

RecoverToken is a paid mutator transaction binding the contract method 0xd04323c5.

Solidity: function recoverToken(address tokenType, uint256 amount, address receiver) returns()

func (*StaplePoolTransactorSession) Redeem

func (_StaplePool *StaplePoolTransactorSession) Redeem(shares *big.Int, receiver common.Address, owner common.Address) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0xba087652.

Solidity: function redeem(uint256 shares, address receiver, address owner) returns(uint256 assets)

func (*StaplePoolTransactorSession) Transfer

func (_StaplePool *StaplePoolTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*StaplePoolTransactorSession) TransferByController

func (_StaplePool *StaplePoolTransactorSession) TransferByController(receiver common.Address, assets *big.Int) (*types.Transaction, error)

TransferByController is a paid mutator transaction binding the contract method 0xb777638a.

Solidity: function transferByController(address receiver, uint256 assets) returns()

func (*StaplePoolTransactorSession) TransferFrom

func (_StaplePool *StaplePoolTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

func (*StaplePoolTransactorSession) UpdateTL

func (_StaplePool *StaplePoolTransactorSession) UpdateTL(newTl uint8) (*types.Transaction, error)

UpdateTL is a paid mutator transaction binding the contract method 0xa3ff7270.

Solidity: function updateTL(uint8 newTl) returns()

func (*StaplePoolTransactorSession) Withdraw

func (_StaplePool *StaplePoolTransactorSession) Withdraw(assets *big.Int, receiver common.Address, owner common.Address) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 assets, address receiver, address owner) returns(uint256 shares)

type StaplePoolTransfer

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

StaplePoolTransfer represents a Transfer event raised by the StaplePool contract.

type StaplePoolTransferIterator

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

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

func (*StaplePoolTransferIterator) Close

func (it *StaplePoolTransferIterator) Close() error

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

func (*StaplePoolTransferIterator) Error

func (it *StaplePoolTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StaplePoolTransferIterator) Next

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

type StaplePoolWithdraw struct {
	Sender   common.Address
	Receiver common.Address
	Owner    common.Address
	Assets   *big.Int
	Shares   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

StaplePoolWithdraw represents a Withdraw event raised by the StaplePool contract.

type StaplePoolWithdrawIterator

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

StaplePoolWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the StaplePool contract.

func (*StaplePoolWithdrawIterator) Close

func (it *StaplePoolWithdrawIterator) Close() error

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

func (*StaplePoolWithdrawIterator) Error

func (it *StaplePoolWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StaplePoolWithdrawIterator) Next

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