asset

package
v1.4.476-rc-1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AssetABI = AssetMetaData.ABI

AssetABI is the input ABI used to generate the binding from. Deprecated: Use AssetMetaData.ABI instead.

View Source
var AssetMetaData = &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\":false,\"internalType\":\"uint256\",\"name\":\"previousCashPosition\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"cashBeingAdded\",\"type\":\"uint256\"}],\"name\":\"CashAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousCashPosition\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"cashBeingRemoved\",\"type\":\"uint256\"}],\"name\":\"CashRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousLiabilityPosition\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liabilityBeingAdded\",\"type\":\"uint256\"}],\"name\":\"LiabilityAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousLiabilityPosition\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liabilityBeingRemoved\",\"type\":\"uint256\"}],\"name\":\"LiabilityRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousMaxSupply\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newMaxSupply\",\"type\":\"uint256\"}],\"name\":\"MaxSupplyUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousPool\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newPool\",\"type\":\"address\"}],\"name\":\"PoolUpdated\",\"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\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"addCash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"addLiability\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"aggregateAccount\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cash\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"underlyingToken_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"aggregateAccount_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liability\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"removeCash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"removeLiability\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregateAccount_\",\"type\":\"address\"}],\"name\":\"setAggregateAccount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxSupply_\",\"type\":\"uint256\"}],\"name\":\"setMaxSupply\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool_\",\"type\":\"address\"}],\"name\":\"setPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferUnderlyingToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"underlyingToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"underlyingTokenBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

AssetMetaData contains all meta data concerning the Asset contract.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	AssetCaller     // Read-only binding to the contract
	AssetTransactor // Write-only binding to the contract
	AssetFilterer   // Log filterer for contract events
}

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

func NewAsset

func NewAsset(address common.Address, backend bind.ContractBackend) (*Asset, error)

NewAsset creates a new instance of Asset, bound to a specific deployed contract.

type AssetApproval

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

AssetApproval represents a Approval event raised by the Asset contract.

type AssetApprovalIterator

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

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

func (*AssetApprovalIterator) Close

func (it *AssetApprovalIterator) Close() error

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

func (*AssetApprovalIterator) Error

func (it *AssetApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetApprovalIterator) Next

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

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

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

func NewAssetCaller

func NewAssetCaller(address common.Address, caller bind.ContractCaller) (*AssetCaller, error)

NewAssetCaller creates a new read-only instance of Asset, bound to a specific deployed contract.

func (*AssetCaller) AggregateAccount

func (_Asset *AssetCaller) AggregateAccount(opts *bind.CallOpts) (common.Address, error)

AggregateAccount is a free data retrieval call binding the contract method 0x7e1317fa.

Solidity: function aggregateAccount() view returns(address)

func (*AssetCaller) Allowance

func (_Asset *AssetCaller) 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 (*AssetCaller) BalanceOf

func (_Asset *AssetCaller) 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 (*AssetCaller) Cash

func (_Asset *AssetCaller) Cash(opts *bind.CallOpts) (*big.Int, error)

Cash is a free data retrieval call binding the contract method 0x961be391.

Solidity: function cash() view returns(uint256)

func (*AssetCaller) Decimals

func (_Asset *AssetCaller) 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 (*AssetCaller) Liability

func (_Asset *AssetCaller) Liability(opts *bind.CallOpts) (*big.Int, error)

Liability is a free data retrieval call binding the contract method 0x705727b5.

Solidity: function liability() view returns(uint256)

func (*AssetCaller) MaxSupply

func (_Asset *AssetCaller) MaxSupply(opts *bind.CallOpts) (*big.Int, error)

MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01.

Solidity: function maxSupply() view returns(uint256)

func (*AssetCaller) Name

func (_Asset *AssetCaller) 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 (*AssetCaller) Owner

func (_Asset *AssetCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*AssetCaller) Pool

func (_Asset *AssetCaller) Pool(opts *bind.CallOpts) (common.Address, error)

Pool is a free data retrieval call binding the contract method 0x16f0115b.

Solidity: function pool() view returns(address)

func (*AssetCaller) Symbol

func (_Asset *AssetCaller) 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 (*AssetCaller) TotalSupply

func (_Asset *AssetCaller) 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 (*AssetCaller) UnderlyingToken

func (_Asset *AssetCaller) UnderlyingToken(opts *bind.CallOpts) (common.Address, error)

UnderlyingToken is a free data retrieval call binding the contract method 0x2495a599.

Solidity: function underlyingToken() view returns(address)

func (*AssetCaller) UnderlyingTokenBalance

func (_Asset *AssetCaller) UnderlyingTokenBalance(opts *bind.CallOpts) (*big.Int, error)

UnderlyingTokenBalance is a free data retrieval call binding the contract method 0x99c91a64.

Solidity: function underlyingTokenBalance() view returns(uint256)

type AssetCallerRaw

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

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

func (*AssetCallerRaw) Call

func (_Asset *AssetCallerRaw) 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 AssetCallerSession

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

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

func (*AssetCallerSession) AggregateAccount

func (_Asset *AssetCallerSession) AggregateAccount() (common.Address, error)

AggregateAccount is a free data retrieval call binding the contract method 0x7e1317fa.

Solidity: function aggregateAccount() view returns(address)

func (*AssetCallerSession) Allowance

func (_Asset *AssetCallerSession) 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 (*AssetCallerSession) BalanceOf

func (_Asset *AssetCallerSession) 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 (*AssetCallerSession) Cash

func (_Asset *AssetCallerSession) Cash() (*big.Int, error)

Cash is a free data retrieval call binding the contract method 0x961be391.

Solidity: function cash() view returns(uint256)

func (*AssetCallerSession) Decimals

func (_Asset *AssetCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*AssetCallerSession) Liability

func (_Asset *AssetCallerSession) Liability() (*big.Int, error)

Liability is a free data retrieval call binding the contract method 0x705727b5.

Solidity: function liability() view returns(uint256)

func (*AssetCallerSession) MaxSupply

func (_Asset *AssetCallerSession) MaxSupply() (*big.Int, error)

MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01.

Solidity: function maxSupply() view returns(uint256)

func (*AssetCallerSession) Name

func (_Asset *AssetCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*AssetCallerSession) Owner

func (_Asset *AssetCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*AssetCallerSession) Pool

func (_Asset *AssetCallerSession) Pool() (common.Address, error)

Pool is a free data retrieval call binding the contract method 0x16f0115b.

Solidity: function pool() view returns(address)

func (*AssetCallerSession) Symbol

func (_Asset *AssetCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*AssetCallerSession) TotalSupply

func (_Asset *AssetCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*AssetCallerSession) UnderlyingToken

func (_Asset *AssetCallerSession) UnderlyingToken() (common.Address, error)

UnderlyingToken is a free data retrieval call binding the contract method 0x2495a599.

Solidity: function underlyingToken() view returns(address)

func (*AssetCallerSession) UnderlyingTokenBalance

func (_Asset *AssetCallerSession) UnderlyingTokenBalance() (*big.Int, error)

UnderlyingTokenBalance is a free data retrieval call binding the contract method 0x99c91a64.

Solidity: function underlyingTokenBalance() view returns(uint256)

type AssetCashAdded

type AssetCashAdded struct {
	PreviousCashPosition *big.Int
	CashBeingAdded       *big.Int
	Raw                  types.Log // Blockchain specific contextual infos
}

AssetCashAdded represents a CashAdded event raised by the Asset contract.

type AssetCashAddedIterator

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

AssetCashAddedIterator is returned from FilterCashAdded and is used to iterate over the raw logs and unpacked data for CashAdded events raised by the Asset contract.

func (*AssetCashAddedIterator) Close

func (it *AssetCashAddedIterator) Close() error

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

func (*AssetCashAddedIterator) Error

func (it *AssetCashAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetCashAddedIterator) Next

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

type AssetCashRemoved struct {
	PreviousCashPosition *big.Int
	CashBeingRemoved     *big.Int
	Raw                  types.Log // Blockchain specific contextual infos
}

AssetCashRemoved represents a CashRemoved event raised by the Asset contract.

type AssetCashRemovedIterator

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

AssetCashRemovedIterator is returned from FilterCashRemoved and is used to iterate over the raw logs and unpacked data for CashRemoved events raised by the Asset contract.

func (*AssetCashRemovedIterator) Close

func (it *AssetCashRemovedIterator) Close() error

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

func (*AssetCashRemovedIterator) Error

func (it *AssetCashRemovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetCashRemovedIterator) Next

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

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

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

func NewAssetFilterer

func NewAssetFilterer(address common.Address, filterer bind.ContractFilterer) (*AssetFilterer, error)

NewAssetFilterer creates a new log filterer instance of Asset, bound to a specific deployed contract.

func (*AssetFilterer) FilterApproval

func (_Asset *AssetFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*AssetApprovalIterator, 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 (*AssetFilterer) FilterCashAdded

func (_Asset *AssetFilterer) FilterCashAdded(opts *bind.FilterOpts) (*AssetCashAddedIterator, error)

FilterCashAdded is a free log retrieval operation binding the contract event 0x04da412052b8d39d78da489e294630fcb3874f03dcb0ead4481c0a6d70df1e15.

Solidity: event CashAdded(uint256 previousCashPosition, uint256 cashBeingAdded)

func (*AssetFilterer) FilterCashRemoved

func (_Asset *AssetFilterer) FilterCashRemoved(opts *bind.FilterOpts) (*AssetCashRemovedIterator, error)

FilterCashRemoved is a free log retrieval operation binding the contract event 0xf15a954400c2f966714cd09162f79a6682b77351200ad1d595000057fc4ee999.

Solidity: event CashRemoved(uint256 previousCashPosition, uint256 cashBeingRemoved)

func (*AssetFilterer) FilterLiabilityAdded

func (_Asset *AssetFilterer) FilterLiabilityAdded(opts *bind.FilterOpts) (*AssetLiabilityAddedIterator, error)

FilterLiabilityAdded is a free log retrieval operation binding the contract event 0x2b74a49d287a99ef6b8a9f27aaef936372e282e0e95a6352f07c9fd12596655c.

Solidity: event LiabilityAdded(uint256 previousLiabilityPosition, uint256 liabilityBeingAdded)

func (*AssetFilterer) FilterLiabilityRemoved

func (_Asset *AssetFilterer) FilterLiabilityRemoved(opts *bind.FilterOpts) (*AssetLiabilityRemovedIterator, error)

FilterLiabilityRemoved is a free log retrieval operation binding the contract event 0xdf20ac3c7d97136ceef3f041d542947447276d67c158dced2e33d1ee7984f530.

Solidity: event LiabilityRemoved(uint256 previousLiabilityPosition, uint256 liabilityBeingRemoved)

func (*AssetFilterer) FilterMaxSupplyUpdated

func (_Asset *AssetFilterer) FilterMaxSupplyUpdated(opts *bind.FilterOpts) (*AssetMaxSupplyUpdatedIterator, error)

FilterMaxSupplyUpdated is a free log retrieval operation binding the contract event 0x44ecfc706d63e347851cfd40acfa6cf2e3a41faa3e8b460210c03938e84a91ad.

Solidity: event MaxSupplyUpdated(uint256 previousMaxSupply, uint256 newMaxSupply)

func (*AssetFilterer) FilterOwnershipTransferred

func (_Asset *AssetFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AssetOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*AssetFilterer) FilterPoolUpdated

func (_Asset *AssetFilterer) FilterPoolUpdated(opts *bind.FilterOpts, previousPool []common.Address, newPool []common.Address) (*AssetPoolUpdatedIterator, error)

FilterPoolUpdated is a free log retrieval operation binding the contract event 0x90affc163f1a2dfedcd36aa02ed992eeeba8100a4014f0b4cdc20ea265a66627.

Solidity: event PoolUpdated(address indexed previousPool, address indexed newPool)

func (*AssetFilterer) FilterTransfer

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

func (_Asset *AssetFilterer) ParseApproval(log types.Log) (*AssetApproval, error)

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

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

func (*AssetFilterer) ParseCashAdded

func (_Asset *AssetFilterer) ParseCashAdded(log types.Log) (*AssetCashAdded, error)

ParseCashAdded is a log parse operation binding the contract event 0x04da412052b8d39d78da489e294630fcb3874f03dcb0ead4481c0a6d70df1e15.

Solidity: event CashAdded(uint256 previousCashPosition, uint256 cashBeingAdded)

func (*AssetFilterer) ParseCashRemoved

func (_Asset *AssetFilterer) ParseCashRemoved(log types.Log) (*AssetCashRemoved, error)

ParseCashRemoved is a log parse operation binding the contract event 0xf15a954400c2f966714cd09162f79a6682b77351200ad1d595000057fc4ee999.

Solidity: event CashRemoved(uint256 previousCashPosition, uint256 cashBeingRemoved)

func (*AssetFilterer) ParseLiabilityAdded

func (_Asset *AssetFilterer) ParseLiabilityAdded(log types.Log) (*AssetLiabilityAdded, error)

ParseLiabilityAdded is a log parse operation binding the contract event 0x2b74a49d287a99ef6b8a9f27aaef936372e282e0e95a6352f07c9fd12596655c.

Solidity: event LiabilityAdded(uint256 previousLiabilityPosition, uint256 liabilityBeingAdded)

func (*AssetFilterer) ParseLiabilityRemoved

func (_Asset *AssetFilterer) ParseLiabilityRemoved(log types.Log) (*AssetLiabilityRemoved, error)

ParseLiabilityRemoved is a log parse operation binding the contract event 0xdf20ac3c7d97136ceef3f041d542947447276d67c158dced2e33d1ee7984f530.

Solidity: event LiabilityRemoved(uint256 previousLiabilityPosition, uint256 liabilityBeingRemoved)

func (*AssetFilterer) ParseMaxSupplyUpdated

func (_Asset *AssetFilterer) ParseMaxSupplyUpdated(log types.Log) (*AssetMaxSupplyUpdated, error)

ParseMaxSupplyUpdated is a log parse operation binding the contract event 0x44ecfc706d63e347851cfd40acfa6cf2e3a41faa3e8b460210c03938e84a91ad.

Solidity: event MaxSupplyUpdated(uint256 previousMaxSupply, uint256 newMaxSupply)

func (*AssetFilterer) ParseOwnershipTransferred

func (_Asset *AssetFilterer) ParseOwnershipTransferred(log types.Log) (*AssetOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*AssetFilterer) ParsePoolUpdated

func (_Asset *AssetFilterer) ParsePoolUpdated(log types.Log) (*AssetPoolUpdated, error)

ParsePoolUpdated is a log parse operation binding the contract event 0x90affc163f1a2dfedcd36aa02ed992eeeba8100a4014f0b4cdc20ea265a66627.

Solidity: event PoolUpdated(address indexed previousPool, address indexed newPool)

func (*AssetFilterer) ParseTransfer

func (_Asset *AssetFilterer) ParseTransfer(log types.Log) (*AssetTransfer, error)

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

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

func (*AssetFilterer) WatchApproval

func (_Asset *AssetFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *AssetApproval, 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 (*AssetFilterer) WatchCashAdded

func (_Asset *AssetFilterer) WatchCashAdded(opts *bind.WatchOpts, sink chan<- *AssetCashAdded) (event.Subscription, error)

WatchCashAdded is a free log subscription operation binding the contract event 0x04da412052b8d39d78da489e294630fcb3874f03dcb0ead4481c0a6d70df1e15.

Solidity: event CashAdded(uint256 previousCashPosition, uint256 cashBeingAdded)

func (*AssetFilterer) WatchCashRemoved

func (_Asset *AssetFilterer) WatchCashRemoved(opts *bind.WatchOpts, sink chan<- *AssetCashRemoved) (event.Subscription, error)

WatchCashRemoved is a free log subscription operation binding the contract event 0xf15a954400c2f966714cd09162f79a6682b77351200ad1d595000057fc4ee999.

Solidity: event CashRemoved(uint256 previousCashPosition, uint256 cashBeingRemoved)

func (*AssetFilterer) WatchLiabilityAdded

func (_Asset *AssetFilterer) WatchLiabilityAdded(opts *bind.WatchOpts, sink chan<- *AssetLiabilityAdded) (event.Subscription, error)

WatchLiabilityAdded is a free log subscription operation binding the contract event 0x2b74a49d287a99ef6b8a9f27aaef936372e282e0e95a6352f07c9fd12596655c.

Solidity: event LiabilityAdded(uint256 previousLiabilityPosition, uint256 liabilityBeingAdded)

func (*AssetFilterer) WatchLiabilityRemoved

func (_Asset *AssetFilterer) WatchLiabilityRemoved(opts *bind.WatchOpts, sink chan<- *AssetLiabilityRemoved) (event.Subscription, error)

WatchLiabilityRemoved is a free log subscription operation binding the contract event 0xdf20ac3c7d97136ceef3f041d542947447276d67c158dced2e33d1ee7984f530.

Solidity: event LiabilityRemoved(uint256 previousLiabilityPosition, uint256 liabilityBeingRemoved)

func (*AssetFilterer) WatchMaxSupplyUpdated

func (_Asset *AssetFilterer) WatchMaxSupplyUpdated(opts *bind.WatchOpts, sink chan<- *AssetMaxSupplyUpdated) (event.Subscription, error)

WatchMaxSupplyUpdated is a free log subscription operation binding the contract event 0x44ecfc706d63e347851cfd40acfa6cf2e3a41faa3e8b460210c03938e84a91ad.

Solidity: event MaxSupplyUpdated(uint256 previousMaxSupply, uint256 newMaxSupply)

func (*AssetFilterer) WatchOwnershipTransferred

func (_Asset *AssetFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AssetOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*AssetFilterer) WatchPoolUpdated

func (_Asset *AssetFilterer) WatchPoolUpdated(opts *bind.WatchOpts, sink chan<- *AssetPoolUpdated, previousPool []common.Address, newPool []common.Address) (event.Subscription, error)

WatchPoolUpdated is a free log subscription operation binding the contract event 0x90affc163f1a2dfedcd36aa02ed992eeeba8100a4014f0b4cdc20ea265a66627.

Solidity: event PoolUpdated(address indexed previousPool, address indexed newPool)

func (*AssetFilterer) WatchTransfer

func (_Asset *AssetFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *AssetTransfer, 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 AssetLiabilityAdded

type AssetLiabilityAdded struct {
	PreviousLiabilityPosition *big.Int
	LiabilityBeingAdded       *big.Int
	Raw                       types.Log // Blockchain specific contextual infos
}

AssetLiabilityAdded represents a LiabilityAdded event raised by the Asset contract.

type AssetLiabilityAddedIterator

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

AssetLiabilityAddedIterator is returned from FilterLiabilityAdded and is used to iterate over the raw logs and unpacked data for LiabilityAdded events raised by the Asset contract.

func (*AssetLiabilityAddedIterator) Close

func (it *AssetLiabilityAddedIterator) Close() error

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

func (*AssetLiabilityAddedIterator) Error

func (it *AssetLiabilityAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetLiabilityAddedIterator) Next

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

type AssetLiabilityRemoved struct {
	PreviousLiabilityPosition *big.Int
	LiabilityBeingRemoved     *big.Int
	Raw                       types.Log // Blockchain specific contextual infos
}

AssetLiabilityRemoved represents a LiabilityRemoved event raised by the Asset contract.

type AssetLiabilityRemovedIterator

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

AssetLiabilityRemovedIterator is returned from FilterLiabilityRemoved and is used to iterate over the raw logs and unpacked data for LiabilityRemoved events raised by the Asset contract.

func (*AssetLiabilityRemovedIterator) Close

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

func (*AssetLiabilityRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetLiabilityRemovedIterator) 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 AssetMaxSupplyUpdated

type AssetMaxSupplyUpdated struct {
	PreviousMaxSupply *big.Int
	NewMaxSupply      *big.Int
	Raw               types.Log // Blockchain specific contextual infos
}

AssetMaxSupplyUpdated represents a MaxSupplyUpdated event raised by the Asset contract.

type AssetMaxSupplyUpdatedIterator

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

AssetMaxSupplyUpdatedIterator is returned from FilterMaxSupplyUpdated and is used to iterate over the raw logs and unpacked data for MaxSupplyUpdated events raised by the Asset contract.

func (*AssetMaxSupplyUpdatedIterator) Close

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

func (*AssetMaxSupplyUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetMaxSupplyUpdatedIterator) 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 AssetOwnershipTransferred

type AssetOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

AssetOwnershipTransferred represents a OwnershipTransferred event raised by the Asset contract.

type AssetOwnershipTransferredIterator

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

AssetOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Asset contract.

func (*AssetOwnershipTransferredIterator) Close

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

func (*AssetOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetOwnershipTransferredIterator) 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 AssetPoolUpdated

type AssetPoolUpdated struct {
	PreviousPool common.Address
	NewPool      common.Address
	Raw          types.Log // Blockchain specific contextual infos
}

AssetPoolUpdated represents a PoolUpdated event raised by the Asset contract.

type AssetPoolUpdatedIterator

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

AssetPoolUpdatedIterator is returned from FilterPoolUpdated and is used to iterate over the raw logs and unpacked data for PoolUpdated events raised by the Asset contract.

func (*AssetPoolUpdatedIterator) Close

func (it *AssetPoolUpdatedIterator) Close() error

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

func (*AssetPoolUpdatedIterator) Error

func (it *AssetPoolUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetPoolUpdatedIterator) Next

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

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

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

func (*AssetRaw) Call

func (_Asset *AssetRaw) 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 (*AssetRaw) Transact

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

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

func (*AssetRaw) Transfer

func (_Asset *AssetRaw) 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 AssetSession

type AssetSession struct {
	Contract     *Asset            // 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
}

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

func (*AssetSession) AddCash

func (_Asset *AssetSession) AddCash(amount *big.Int) (*types.Transaction, error)

AddCash is a paid mutator transaction binding the contract method 0x16c9e7a0.

Solidity: function addCash(uint256 amount) returns()

func (*AssetSession) AddLiability

func (_Asset *AssetSession) AddLiability(amount *big.Int) (*types.Transaction, error)

AddLiability is a paid mutator transaction binding the contract method 0xa0f0f604.

Solidity: function addLiability(uint256 amount) returns()

func (*AssetSession) AggregateAccount

func (_Asset *AssetSession) AggregateAccount() (common.Address, error)

AggregateAccount is a free data retrieval call binding the contract method 0x7e1317fa.

Solidity: function aggregateAccount() view returns(address)

func (*AssetSession) Allowance

func (_Asset *AssetSession) 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 (*AssetSession) Approve

func (_Asset *AssetSession) 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 (*AssetSession) BalanceOf

func (_Asset *AssetSession) 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 (*AssetSession) Burn

func (_Asset *AssetSession) Burn(to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*AssetSession) Cash

func (_Asset *AssetSession) Cash() (*big.Int, error)

Cash is a free data retrieval call binding the contract method 0x961be391.

Solidity: function cash() view returns(uint256)

func (*AssetSession) Decimals

func (_Asset *AssetSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*AssetSession) DecreaseAllowance

func (_Asset *AssetSession) 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 (*AssetSession) IncreaseAllowance

func (_Asset *AssetSession) 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 (*AssetSession) Initialize

func (_Asset *AssetSession) Initialize(underlyingToken_ common.Address, name_ string, symbol_ string, aggregateAccount_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x613d25bb.

Solidity: function initialize(address underlyingToken_, string name_, string symbol_, address aggregateAccount_) returns()

func (*AssetSession) Liability

func (_Asset *AssetSession) Liability() (*big.Int, error)

Liability is a free data retrieval call binding the contract method 0x705727b5.

Solidity: function liability() view returns(uint256)

func (*AssetSession) MaxSupply

func (_Asset *AssetSession) MaxSupply() (*big.Int, error)

MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01.

Solidity: function maxSupply() view returns(uint256)

func (*AssetSession) Mint

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

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

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

func (*AssetSession) Name

func (_Asset *AssetSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*AssetSession) Owner

func (_Asset *AssetSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*AssetSession) Pool

func (_Asset *AssetSession) Pool() (common.Address, error)

Pool is a free data retrieval call binding the contract method 0x16f0115b.

Solidity: function pool() view returns(address)

func (*AssetSession) RemoveCash

func (_Asset *AssetSession) RemoveCash(amount *big.Int) (*types.Transaction, error)

RemoveCash is a paid mutator transaction binding the contract method 0x9f9ef988.

Solidity: function removeCash(uint256 amount) returns()

func (*AssetSession) RemoveLiability

func (_Asset *AssetSession) RemoveLiability(amount *big.Int) (*types.Transaction, error)

RemoveLiability is a paid mutator transaction binding the contract method 0xd8b87853.

Solidity: function removeLiability(uint256 amount) returns()

func (*AssetSession) RenounceOwnership

func (_Asset *AssetSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*AssetSession) SetAggregateAccount

func (_Asset *AssetSession) SetAggregateAccount(aggregateAccount_ common.Address) (*types.Transaction, error)

SetAggregateAccount is a paid mutator transaction binding the contract method 0x95d6f7b9.

Solidity: function setAggregateAccount(address aggregateAccount_) returns()

func (*AssetSession) SetMaxSupply

func (_Asset *AssetSession) SetMaxSupply(maxSupply_ *big.Int) (*types.Transaction, error)

SetMaxSupply is a paid mutator transaction binding the contract method 0x6f8b44b0.

Solidity: function setMaxSupply(uint256 maxSupply_) returns()

func (*AssetSession) SetPool

func (_Asset *AssetSession) SetPool(pool_ common.Address) (*types.Transaction, error)

SetPool is a paid mutator transaction binding the contract method 0x4437152a.

Solidity: function setPool(address pool_) returns()

func (*AssetSession) Symbol

func (_Asset *AssetSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*AssetSession) TotalSupply

func (_Asset *AssetSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*AssetSession) Transfer

func (_Asset *AssetSession) 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 (*AssetSession) TransferFrom

func (_Asset *AssetSession) 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 (*AssetSession) TransferOwnership

func (_Asset *AssetSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*AssetSession) TransferUnderlyingToken

func (_Asset *AssetSession) TransferUnderlyingToken(to common.Address, amount *big.Int) (*types.Transaction, error)

TransferUnderlyingToken is a paid mutator transaction binding the contract method 0x9e79eaa5.

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

func (*AssetSession) UnderlyingToken

func (_Asset *AssetSession) UnderlyingToken() (common.Address, error)

UnderlyingToken is a free data retrieval call binding the contract method 0x2495a599.

Solidity: function underlyingToken() view returns(address)

func (*AssetSession) UnderlyingTokenBalance

func (_Asset *AssetSession) UnderlyingTokenBalance() (*big.Int, error)

UnderlyingTokenBalance is a free data retrieval call binding the contract method 0x99c91a64.

Solidity: function underlyingTokenBalance() view returns(uint256)

type AssetTransactor

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

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

func NewAssetTransactor

func NewAssetTransactor(address common.Address, transactor bind.ContractTransactor) (*AssetTransactor, error)

NewAssetTransactor creates a new write-only instance of Asset, bound to a specific deployed contract.

func (*AssetTransactor) AddCash

func (_Asset *AssetTransactor) AddCash(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

AddCash is a paid mutator transaction binding the contract method 0x16c9e7a0.

Solidity: function addCash(uint256 amount) returns()

func (*AssetTransactor) AddLiability

func (_Asset *AssetTransactor) AddLiability(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

AddLiability is a paid mutator transaction binding the contract method 0xa0f0f604.

Solidity: function addLiability(uint256 amount) returns()

func (*AssetTransactor) Approve

func (_Asset *AssetTransactor) 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 (*AssetTransactor) Burn

func (_Asset *AssetTransactor) Burn(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*AssetTransactor) DecreaseAllowance

func (_Asset *AssetTransactor) 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 (*AssetTransactor) IncreaseAllowance

func (_Asset *AssetTransactor) 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 (*AssetTransactor) Initialize

func (_Asset *AssetTransactor) Initialize(opts *bind.TransactOpts, underlyingToken_ common.Address, name_ string, symbol_ string, aggregateAccount_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x613d25bb.

Solidity: function initialize(address underlyingToken_, string name_, string symbol_, address aggregateAccount_) returns()

func (*AssetTransactor) Mint

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

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

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

func (*AssetTransactor) RemoveCash

func (_Asset *AssetTransactor) RemoveCash(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

RemoveCash is a paid mutator transaction binding the contract method 0x9f9ef988.

Solidity: function removeCash(uint256 amount) returns()

func (*AssetTransactor) RemoveLiability

func (_Asset *AssetTransactor) RemoveLiability(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

RemoveLiability is a paid mutator transaction binding the contract method 0xd8b87853.

Solidity: function removeLiability(uint256 amount) returns()

func (*AssetTransactor) RenounceOwnership

func (_Asset *AssetTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*AssetTransactor) SetAggregateAccount

func (_Asset *AssetTransactor) SetAggregateAccount(opts *bind.TransactOpts, aggregateAccount_ common.Address) (*types.Transaction, error)

SetAggregateAccount is a paid mutator transaction binding the contract method 0x95d6f7b9.

Solidity: function setAggregateAccount(address aggregateAccount_) returns()

func (*AssetTransactor) SetMaxSupply

func (_Asset *AssetTransactor) SetMaxSupply(opts *bind.TransactOpts, maxSupply_ *big.Int) (*types.Transaction, error)

SetMaxSupply is a paid mutator transaction binding the contract method 0x6f8b44b0.

Solidity: function setMaxSupply(uint256 maxSupply_) returns()

func (*AssetTransactor) SetPool

func (_Asset *AssetTransactor) SetPool(opts *bind.TransactOpts, pool_ common.Address) (*types.Transaction, error)

SetPool is a paid mutator transaction binding the contract method 0x4437152a.

Solidity: function setPool(address pool_) returns()

func (*AssetTransactor) Transfer

func (_Asset *AssetTransactor) 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 (*AssetTransactor) TransferFrom

func (_Asset *AssetTransactor) 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 (*AssetTransactor) TransferOwnership

func (_Asset *AssetTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*AssetTransactor) TransferUnderlyingToken

func (_Asset *AssetTransactor) TransferUnderlyingToken(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferUnderlyingToken is a paid mutator transaction binding the contract method 0x9e79eaa5.

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

type AssetTransactorRaw

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

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

func (*AssetTransactorRaw) Transact

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

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

func (*AssetTransactorRaw) Transfer

func (_Asset *AssetTransactorRaw) 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 AssetTransactorSession

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

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

func (*AssetTransactorSession) AddCash

func (_Asset *AssetTransactorSession) AddCash(amount *big.Int) (*types.Transaction, error)

AddCash is a paid mutator transaction binding the contract method 0x16c9e7a0.

Solidity: function addCash(uint256 amount) returns()

func (*AssetTransactorSession) AddLiability

func (_Asset *AssetTransactorSession) AddLiability(amount *big.Int) (*types.Transaction, error)

AddLiability is a paid mutator transaction binding the contract method 0xa0f0f604.

Solidity: function addLiability(uint256 amount) returns()

func (*AssetTransactorSession) Approve

func (_Asset *AssetTransactorSession) 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 (*AssetTransactorSession) Burn

func (_Asset *AssetTransactorSession) Burn(to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*AssetTransactorSession) DecreaseAllowance

func (_Asset *AssetTransactorSession) 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 (*AssetTransactorSession) IncreaseAllowance

func (_Asset *AssetTransactorSession) 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 (*AssetTransactorSession) Initialize

func (_Asset *AssetTransactorSession) Initialize(underlyingToken_ common.Address, name_ string, symbol_ string, aggregateAccount_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x613d25bb.

Solidity: function initialize(address underlyingToken_, string name_, string symbol_, address aggregateAccount_) returns()

func (*AssetTransactorSession) Mint

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

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

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

func (*AssetTransactorSession) RemoveCash

func (_Asset *AssetTransactorSession) RemoveCash(amount *big.Int) (*types.Transaction, error)

RemoveCash is a paid mutator transaction binding the contract method 0x9f9ef988.

Solidity: function removeCash(uint256 amount) returns()

func (*AssetTransactorSession) RemoveLiability

func (_Asset *AssetTransactorSession) RemoveLiability(amount *big.Int) (*types.Transaction, error)

RemoveLiability is a paid mutator transaction binding the contract method 0xd8b87853.

Solidity: function removeLiability(uint256 amount) returns()

func (*AssetTransactorSession) RenounceOwnership

func (_Asset *AssetTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*AssetTransactorSession) SetAggregateAccount

func (_Asset *AssetTransactorSession) SetAggregateAccount(aggregateAccount_ common.Address) (*types.Transaction, error)

SetAggregateAccount is a paid mutator transaction binding the contract method 0x95d6f7b9.

Solidity: function setAggregateAccount(address aggregateAccount_) returns()

func (*AssetTransactorSession) SetMaxSupply

func (_Asset *AssetTransactorSession) SetMaxSupply(maxSupply_ *big.Int) (*types.Transaction, error)

SetMaxSupply is a paid mutator transaction binding the contract method 0x6f8b44b0.

Solidity: function setMaxSupply(uint256 maxSupply_) returns()

func (*AssetTransactorSession) SetPool

func (_Asset *AssetTransactorSession) SetPool(pool_ common.Address) (*types.Transaction, error)

SetPool is a paid mutator transaction binding the contract method 0x4437152a.

Solidity: function setPool(address pool_) returns()

func (*AssetTransactorSession) Transfer

func (_Asset *AssetTransactorSession) 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 (*AssetTransactorSession) TransferFrom

func (_Asset *AssetTransactorSession) 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 (*AssetTransactorSession) TransferOwnership

func (_Asset *AssetTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*AssetTransactorSession) TransferUnderlyingToken

func (_Asset *AssetTransactorSession) TransferUnderlyingToken(to common.Address, amount *big.Int) (*types.Transaction, error)

TransferUnderlyingToken is a paid mutator transaction binding the contract method 0x9e79eaa5.

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

type AssetTransfer

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

AssetTransfer represents a Transfer event raised by the Asset contract.

type AssetTransferIterator

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

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

func (*AssetTransferIterator) Close

func (it *AssetTransferIterator) Close() error

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

func (*AssetTransferIterator) Error

func (it *AssetTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetTransferIterator) Next

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