atoken

package
v1.4.1-rc-400 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AtokenABI = AtokenMetaData.ABI

AtokenABI is the input ABI used to generate the binding from. Deprecated: Use AtokenMetaData.ABI instead.

View Source
var AtokenMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"contractIPool\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"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\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"BalanceTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"balanceIncrease\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"underlyingAsset\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"treasury\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"incentivesController\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"aTokenDecimals\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"aTokenName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"aTokenSymbol\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"params\",\"type\":\"bytes\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"balanceIncrease\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"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\":[],\"name\":\"ATOKEN_REVISION\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"EIP712_REVISION\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"POOL\",\"outputs\":[{\"internalType\":\"contractIPool\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"RESERVE_TREASURY_ADDRESS\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"UNDERLYING_ASSET_ADDRESS\",\"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\":\"user\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"receiverOfUnderlying\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":[],\"name\":\"getIncentivesController\",\"outputs\":[{\"internalType\":\"contractIAaveIncentivesController\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getPreviousIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getScaledUserBalanceAndSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"handleRepayment\",\"outputs\":[],\"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\":\"contractIPool\",\"name\":\"initializingPool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"treasury\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlyingAsset\",\"type\":\"address\"},{\"internalType\":\"contractIAaveIncentivesController\",\"name\":\"incentivesController\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"aTokenDecimals\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"aTokenName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"aTokenSymbol\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"params\",\"type\":\"bytes\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"mintToTreasury\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"rescueTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"scaledBalanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"scaledTotalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIAaveIncentivesController\",\"name\":\"controller\",\"type\":\"address\"}],\"name\":\"setIncentivesController\",\"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\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferOnLiquidation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferUnderlyingTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

AtokenMetaData contains all meta data concerning the Atoken contract.

Functions

This section is empty.

Types

type Atoken

type Atoken struct {
	AtokenCaller     // Read-only binding to the contract
	AtokenTransactor // Write-only binding to the contract
	AtokenFilterer   // Log filterer for contract events
}

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

func NewAtoken

func NewAtoken(address common.Address, backend bind.ContractBackend) (*Atoken, error)

NewAtoken creates a new instance of Atoken, bound to a specific deployed contract.

type AtokenApproval

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

AtokenApproval represents a Approval event raised by the Atoken contract.

type AtokenApprovalIterator

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

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

func (*AtokenApprovalIterator) Close

func (it *AtokenApprovalIterator) Close() error

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

func (*AtokenApprovalIterator) Error

func (it *AtokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AtokenApprovalIterator) Next

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

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

AtokenBalanceTransfer represents a BalanceTransfer event raised by the Atoken contract.

type AtokenBalanceTransferIterator

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

AtokenBalanceTransferIterator is returned from FilterBalanceTransfer and is used to iterate over the raw logs and unpacked data for BalanceTransfer events raised by the Atoken contract.

func (*AtokenBalanceTransferIterator) Close

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

func (*AtokenBalanceTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AtokenBalanceTransferIterator) 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 AtokenBurn

type AtokenBurn struct {
	From            common.Address
	Target          common.Address
	Value           *big.Int
	BalanceIncrease *big.Int
	Index           *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

AtokenBurn represents a Burn event raised by the Atoken contract.

type AtokenBurnIterator

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

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

func (*AtokenBurnIterator) Close

func (it *AtokenBurnIterator) Close() error

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

func (*AtokenBurnIterator) Error

func (it *AtokenBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AtokenBurnIterator) Next

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

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

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

func NewAtokenCaller

func NewAtokenCaller(address common.Address, caller bind.ContractCaller) (*AtokenCaller, error)

NewAtokenCaller creates a new read-only instance of Atoken, bound to a specific deployed contract.

func (*AtokenCaller) ATOKENREVISION

func (_Atoken *AtokenCaller) ATOKENREVISION(opts *bind.CallOpts) (*big.Int, error)

ATOKENREVISION is a free data retrieval call binding the contract method 0x0bd7ad3b.

Solidity: function ATOKEN_REVISION() view returns(uint256)

func (*AtokenCaller) Allowance

func (_Atoken *AtokenCaller) 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 (*AtokenCaller) BalanceOf

func (_Atoken *AtokenCaller) BalanceOf(opts *bind.CallOpts, user common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

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

func (*AtokenCaller) DOMAINSEPARATOR

func (_Atoken *AtokenCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*AtokenCaller) Decimals

func (_Atoken *AtokenCaller) 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 (*AtokenCaller) EIP712REVISION

func (_Atoken *AtokenCaller) EIP712REVISION(opts *bind.CallOpts) ([]byte, error)

EIP712REVISION is a free data retrieval call binding the contract method 0x78160376.

Solidity: function EIP712_REVISION() view returns(bytes)

func (*AtokenCaller) GetIncentivesController

func (_Atoken *AtokenCaller) GetIncentivesController(opts *bind.CallOpts) (common.Address, error)

GetIncentivesController is a free data retrieval call binding the contract method 0x75d26413.

Solidity: function getIncentivesController() view returns(address)

func (*AtokenCaller) GetPreviousIndex

func (_Atoken *AtokenCaller) GetPreviousIndex(opts *bind.CallOpts, user common.Address) (*big.Int, error)

GetPreviousIndex is a free data retrieval call binding the contract method 0xe0753986.

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

func (*AtokenCaller) GetScaledUserBalanceAndSupply

func (_Atoken *AtokenCaller) GetScaledUserBalanceAndSupply(opts *bind.CallOpts, user common.Address) (*big.Int, *big.Int, error)

GetScaledUserBalanceAndSupply is a free data retrieval call binding the contract method 0x0afbcdc9.

Solidity: function getScaledUserBalanceAndSupply(address user) view returns(uint256, uint256)

func (*AtokenCaller) Name

func (_Atoken *AtokenCaller) 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 (*AtokenCaller) Nonces

func (_Atoken *AtokenCaller) Nonces(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address owner) view returns(uint256)

func (*AtokenCaller) PERMITTYPEHASH

func (_Atoken *AtokenCaller) PERMITTYPEHASH(opts *bind.CallOpts) ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*AtokenCaller) POOL

func (_Atoken *AtokenCaller) POOL(opts *bind.CallOpts) (common.Address, error)

POOL is a free data retrieval call binding the contract method 0x7535d246.

Solidity: function POOL() view returns(address)

func (*AtokenCaller) RESERVETREASURYADDRESS

func (_Atoken *AtokenCaller) RESERVETREASURYADDRESS(opts *bind.CallOpts) (common.Address, error)

RESERVETREASURYADDRESS is a free data retrieval call binding the contract method 0xae167335.

Solidity: function RESERVE_TREASURY_ADDRESS() view returns(address)

func (*AtokenCaller) ScaledBalanceOf

func (_Atoken *AtokenCaller) ScaledBalanceOf(opts *bind.CallOpts, user common.Address) (*big.Int, error)

ScaledBalanceOf is a free data retrieval call binding the contract method 0x1da24f3e.

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

func (*AtokenCaller) ScaledTotalSupply

func (_Atoken *AtokenCaller) ScaledTotalSupply(opts *bind.CallOpts) (*big.Int, error)

ScaledTotalSupply is a free data retrieval call binding the contract method 0xb1bf962d.

Solidity: function scaledTotalSupply() view returns(uint256)

func (*AtokenCaller) Symbol

func (_Atoken *AtokenCaller) 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 (*AtokenCaller) TotalSupply

func (_Atoken *AtokenCaller) 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 (*AtokenCaller) UNDERLYINGASSETADDRESS

func (_Atoken *AtokenCaller) UNDERLYINGASSETADDRESS(opts *bind.CallOpts) (common.Address, error)

UNDERLYINGASSETADDRESS is a free data retrieval call binding the contract method 0xb16a19de.

Solidity: function UNDERLYING_ASSET_ADDRESS() view returns(address)

type AtokenCallerRaw

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

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

func (*AtokenCallerRaw) Call

func (_Atoken *AtokenCallerRaw) 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 AtokenCallerSession

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

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

func (*AtokenCallerSession) ATOKENREVISION

func (_Atoken *AtokenCallerSession) ATOKENREVISION() (*big.Int, error)

ATOKENREVISION is a free data retrieval call binding the contract method 0x0bd7ad3b.

Solidity: function ATOKEN_REVISION() view returns(uint256)

func (*AtokenCallerSession) Allowance

func (_Atoken *AtokenCallerSession) 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 (*AtokenCallerSession) BalanceOf

func (_Atoken *AtokenCallerSession) BalanceOf(user common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

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

func (*AtokenCallerSession) DOMAINSEPARATOR

func (_Atoken *AtokenCallerSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*AtokenCallerSession) Decimals

func (_Atoken *AtokenCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*AtokenCallerSession) EIP712REVISION

func (_Atoken *AtokenCallerSession) EIP712REVISION() ([]byte, error)

EIP712REVISION is a free data retrieval call binding the contract method 0x78160376.

Solidity: function EIP712_REVISION() view returns(bytes)

func (*AtokenCallerSession) GetIncentivesController

func (_Atoken *AtokenCallerSession) GetIncentivesController() (common.Address, error)

GetIncentivesController is a free data retrieval call binding the contract method 0x75d26413.

Solidity: function getIncentivesController() view returns(address)

func (*AtokenCallerSession) GetPreviousIndex

func (_Atoken *AtokenCallerSession) GetPreviousIndex(user common.Address) (*big.Int, error)

GetPreviousIndex is a free data retrieval call binding the contract method 0xe0753986.

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

func (*AtokenCallerSession) GetScaledUserBalanceAndSupply

func (_Atoken *AtokenCallerSession) GetScaledUserBalanceAndSupply(user common.Address) (*big.Int, *big.Int, error)

GetScaledUserBalanceAndSupply is a free data retrieval call binding the contract method 0x0afbcdc9.

Solidity: function getScaledUserBalanceAndSupply(address user) view returns(uint256, uint256)

func (*AtokenCallerSession) Name

func (_Atoken *AtokenCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*AtokenCallerSession) Nonces

func (_Atoken *AtokenCallerSession) Nonces(owner common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address owner) view returns(uint256)

func (*AtokenCallerSession) PERMITTYPEHASH

func (_Atoken *AtokenCallerSession) PERMITTYPEHASH() ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*AtokenCallerSession) POOL

func (_Atoken *AtokenCallerSession) POOL() (common.Address, error)

POOL is a free data retrieval call binding the contract method 0x7535d246.

Solidity: function POOL() view returns(address)

func (*AtokenCallerSession) RESERVETREASURYADDRESS

func (_Atoken *AtokenCallerSession) RESERVETREASURYADDRESS() (common.Address, error)

RESERVETREASURYADDRESS is a free data retrieval call binding the contract method 0xae167335.

Solidity: function RESERVE_TREASURY_ADDRESS() view returns(address)

func (*AtokenCallerSession) ScaledBalanceOf

func (_Atoken *AtokenCallerSession) ScaledBalanceOf(user common.Address) (*big.Int, error)

ScaledBalanceOf is a free data retrieval call binding the contract method 0x1da24f3e.

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

func (*AtokenCallerSession) ScaledTotalSupply

func (_Atoken *AtokenCallerSession) ScaledTotalSupply() (*big.Int, error)

ScaledTotalSupply is a free data retrieval call binding the contract method 0xb1bf962d.

Solidity: function scaledTotalSupply() view returns(uint256)

func (*AtokenCallerSession) Symbol

func (_Atoken *AtokenCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*AtokenCallerSession) TotalSupply

func (_Atoken *AtokenCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*AtokenCallerSession) UNDERLYINGASSETADDRESS

func (_Atoken *AtokenCallerSession) UNDERLYINGASSETADDRESS() (common.Address, error)

UNDERLYINGASSETADDRESS is a free data retrieval call binding the contract method 0xb16a19de.

Solidity: function UNDERLYING_ASSET_ADDRESS() view returns(address)

type AtokenFilterer

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

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

func NewAtokenFilterer

func NewAtokenFilterer(address common.Address, filterer bind.ContractFilterer) (*AtokenFilterer, error)

NewAtokenFilterer creates a new log filterer instance of Atoken, bound to a specific deployed contract.

func (*AtokenFilterer) FilterApproval

func (_Atoken *AtokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*AtokenApprovalIterator, 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 (*AtokenFilterer) FilterBalanceTransfer

func (_Atoken *AtokenFilterer) FilterBalanceTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*AtokenBalanceTransferIterator, error)

FilterBalanceTransfer is a free log retrieval operation binding the contract event 0x4beccb90f994c31aced7a23b5611020728a23d8ec5cddd1a3e9d97b96fda8666.

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

func (*AtokenFilterer) FilterBurn

func (_Atoken *AtokenFilterer) FilterBurn(opts *bind.FilterOpts, from []common.Address, target []common.Address) (*AtokenBurnIterator, error)

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

Solidity: event Burn(address indexed from, address indexed target, uint256 value, uint256 balanceIncrease, uint256 index)

func (*AtokenFilterer) FilterInitialized

func (_Atoken *AtokenFilterer) FilterInitialized(opts *bind.FilterOpts, underlyingAsset []common.Address, pool []common.Address) (*AtokenInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0xb19e051f8af41150ccccb3fc2c2d8d15f4a4cf434f32a559ba75fe73d6eea20b.

Solidity: event Initialized(address indexed underlyingAsset, address indexed pool, address treasury, address incentivesController, uint8 aTokenDecimals, string aTokenName, string aTokenSymbol, bytes params)

func (*AtokenFilterer) FilterMint

func (_Atoken *AtokenFilterer) FilterMint(opts *bind.FilterOpts, caller []common.Address, onBehalfOf []common.Address) (*AtokenMintIterator, error)

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

Solidity: event Mint(address indexed caller, address indexed onBehalfOf, uint256 value, uint256 balanceIncrease, uint256 index)

func (*AtokenFilterer) FilterTransfer

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

func (_Atoken *AtokenFilterer) ParseApproval(log types.Log) (*AtokenApproval, error)

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

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

func (*AtokenFilterer) ParseBalanceTransfer

func (_Atoken *AtokenFilterer) ParseBalanceTransfer(log types.Log) (*AtokenBalanceTransfer, error)

ParseBalanceTransfer is a log parse operation binding the contract event 0x4beccb90f994c31aced7a23b5611020728a23d8ec5cddd1a3e9d97b96fda8666.

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

func (*AtokenFilterer) ParseBurn

func (_Atoken *AtokenFilterer) ParseBurn(log types.Log) (*AtokenBurn, error)

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

Solidity: event Burn(address indexed from, address indexed target, uint256 value, uint256 balanceIncrease, uint256 index)

func (*AtokenFilterer) ParseInitialized

func (_Atoken *AtokenFilterer) ParseInitialized(log types.Log) (*AtokenInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0xb19e051f8af41150ccccb3fc2c2d8d15f4a4cf434f32a559ba75fe73d6eea20b.

Solidity: event Initialized(address indexed underlyingAsset, address indexed pool, address treasury, address incentivesController, uint8 aTokenDecimals, string aTokenName, string aTokenSymbol, bytes params)

func (*AtokenFilterer) ParseMint

func (_Atoken *AtokenFilterer) ParseMint(log types.Log) (*AtokenMint, error)

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

Solidity: event Mint(address indexed caller, address indexed onBehalfOf, uint256 value, uint256 balanceIncrease, uint256 index)

func (*AtokenFilterer) ParseTransfer

func (_Atoken *AtokenFilterer) ParseTransfer(log types.Log) (*AtokenTransfer, error)

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

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

func (*AtokenFilterer) WatchApproval

func (_Atoken *AtokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *AtokenApproval, 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 (*AtokenFilterer) WatchBalanceTransfer

func (_Atoken *AtokenFilterer) WatchBalanceTransfer(opts *bind.WatchOpts, sink chan<- *AtokenBalanceTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchBalanceTransfer is a free log subscription operation binding the contract event 0x4beccb90f994c31aced7a23b5611020728a23d8ec5cddd1a3e9d97b96fda8666.

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

func (*AtokenFilterer) WatchBurn

func (_Atoken *AtokenFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *AtokenBurn, from []common.Address, target []common.Address) (event.Subscription, error)

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

Solidity: event Burn(address indexed from, address indexed target, uint256 value, uint256 balanceIncrease, uint256 index)

func (*AtokenFilterer) WatchInitialized

func (_Atoken *AtokenFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *AtokenInitialized, underlyingAsset []common.Address, pool []common.Address) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0xb19e051f8af41150ccccb3fc2c2d8d15f4a4cf434f32a559ba75fe73d6eea20b.

Solidity: event Initialized(address indexed underlyingAsset, address indexed pool, address treasury, address incentivesController, uint8 aTokenDecimals, string aTokenName, string aTokenSymbol, bytes params)

func (*AtokenFilterer) WatchMint

func (_Atoken *AtokenFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *AtokenMint, caller []common.Address, onBehalfOf []common.Address) (event.Subscription, error)

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

Solidity: event Mint(address indexed caller, address indexed onBehalfOf, uint256 value, uint256 balanceIncrease, uint256 index)

func (*AtokenFilterer) WatchTransfer

func (_Atoken *AtokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *AtokenTransfer, 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 AtokenInitialized

type AtokenInitialized struct {
	UnderlyingAsset      common.Address
	Pool                 common.Address
	Treasury             common.Address
	IncentivesController common.Address
	ATokenDecimals       uint8
	ATokenName           string
	ATokenSymbol         string
	Params               []byte
	Raw                  types.Log // Blockchain specific contextual infos
}

AtokenInitialized represents a Initialized event raised by the Atoken contract.

type AtokenInitializedIterator

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

AtokenInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Atoken contract.

func (*AtokenInitializedIterator) Close

func (it *AtokenInitializedIterator) Close() error

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

func (*AtokenInitializedIterator) Error

func (it *AtokenInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AtokenInitializedIterator) Next

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

type AtokenMint struct {
	Caller          common.Address
	OnBehalfOf      common.Address
	Value           *big.Int
	BalanceIncrease *big.Int
	Index           *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

AtokenMint represents a Mint event raised by the Atoken contract.

type AtokenMintIterator

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

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

func (*AtokenMintIterator) Close

func (it *AtokenMintIterator) Close() error

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

func (*AtokenMintIterator) Error

func (it *AtokenMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AtokenMintIterator) Next

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

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

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

func (*AtokenRaw) Call

func (_Atoken *AtokenRaw) 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 (*AtokenRaw) Transact

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

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

func (*AtokenRaw) Transfer

func (_Atoken *AtokenRaw) 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 AtokenSession

type AtokenSession struct {
	Contract     *Atoken           // 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
}

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

func (*AtokenSession) ATOKENREVISION

func (_Atoken *AtokenSession) ATOKENREVISION() (*big.Int, error)

ATOKENREVISION is a free data retrieval call binding the contract method 0x0bd7ad3b.

Solidity: function ATOKEN_REVISION() view returns(uint256)

func (*AtokenSession) Allowance

func (_Atoken *AtokenSession) 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 (*AtokenSession) Approve

func (_Atoken *AtokenSession) 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 (*AtokenSession) BalanceOf

func (_Atoken *AtokenSession) BalanceOf(user common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

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

func (*AtokenSession) Burn

func (_Atoken *AtokenSession) Burn(from common.Address, receiverOfUnderlying common.Address, amount *big.Int, index *big.Int) (*types.Transaction, error)

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

Solidity: function burn(address from, address receiverOfUnderlying, uint256 amount, uint256 index) returns()

func (*AtokenSession) DOMAINSEPARATOR

func (_Atoken *AtokenSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*AtokenSession) Decimals

func (_Atoken *AtokenSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*AtokenSession) DecreaseAllowance

func (_Atoken *AtokenSession) 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 (*AtokenSession) EIP712REVISION

func (_Atoken *AtokenSession) EIP712REVISION() ([]byte, error)

EIP712REVISION is a free data retrieval call binding the contract method 0x78160376.

Solidity: function EIP712_REVISION() view returns(bytes)

func (*AtokenSession) GetIncentivesController

func (_Atoken *AtokenSession) GetIncentivesController() (common.Address, error)

GetIncentivesController is a free data retrieval call binding the contract method 0x75d26413.

Solidity: function getIncentivesController() view returns(address)

func (*AtokenSession) GetPreviousIndex

func (_Atoken *AtokenSession) GetPreviousIndex(user common.Address) (*big.Int, error)

GetPreviousIndex is a free data retrieval call binding the contract method 0xe0753986.

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

func (*AtokenSession) GetScaledUserBalanceAndSupply

func (_Atoken *AtokenSession) GetScaledUserBalanceAndSupply(user common.Address) (*big.Int, *big.Int, error)

GetScaledUserBalanceAndSupply is a free data retrieval call binding the contract method 0x0afbcdc9.

Solidity: function getScaledUserBalanceAndSupply(address user) view returns(uint256, uint256)

func (*AtokenSession) HandleRepayment

func (_Atoken *AtokenSession) HandleRepayment(user common.Address, amount *big.Int) (*types.Transaction, error)

HandleRepayment is a paid mutator transaction binding the contract method 0x88dd91a1.

Solidity: function handleRepayment(address user, uint256 amount) returns()

func (*AtokenSession) IncreaseAllowance

func (_Atoken *AtokenSession) 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 (*AtokenSession) Initialize

func (_Atoken *AtokenSession) Initialize(initializingPool common.Address, treasury common.Address, underlyingAsset common.Address, incentivesController common.Address, aTokenDecimals uint8, aTokenName string, aTokenSymbol string, params []byte) (*types.Transaction, error)

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

Solidity: function initialize(address initializingPool, address treasury, address underlyingAsset, address incentivesController, uint8 aTokenDecimals, string aTokenName, string aTokenSymbol, bytes params) returns()

func (*AtokenSession) Mint

func (_Atoken *AtokenSession) Mint(caller common.Address, onBehalfOf common.Address, amount *big.Int, index *big.Int) (*types.Transaction, error)

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

Solidity: function mint(address caller, address onBehalfOf, uint256 amount, uint256 index) returns(bool)

func (*AtokenSession) MintToTreasury

func (_Atoken *AtokenSession) MintToTreasury(amount *big.Int, index *big.Int) (*types.Transaction, error)

MintToTreasury is a paid mutator transaction binding the contract method 0x7df5bd3b.

Solidity: function mintToTreasury(uint256 amount, uint256 index) returns()

func (*AtokenSession) Name

func (_Atoken *AtokenSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*AtokenSession) Nonces

func (_Atoken *AtokenSession) Nonces(owner common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address owner) view returns(uint256)

func (*AtokenSession) PERMITTYPEHASH

func (_Atoken *AtokenSession) PERMITTYPEHASH() ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*AtokenSession) POOL

func (_Atoken *AtokenSession) POOL() (common.Address, error)

POOL is a free data retrieval call binding the contract method 0x7535d246.

Solidity: function POOL() view returns(address)

func (*AtokenSession) Permit

func (_Atoken *AtokenSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*AtokenSession) RESERVETREASURYADDRESS

func (_Atoken *AtokenSession) RESERVETREASURYADDRESS() (common.Address, error)

RESERVETREASURYADDRESS is a free data retrieval call binding the contract method 0xae167335.

Solidity: function RESERVE_TREASURY_ADDRESS() view returns(address)

func (*AtokenSession) RescueTokens

func (_Atoken *AtokenSession) RescueTokens(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

RescueTokens is a paid mutator transaction binding the contract method 0xcea9d26f.

Solidity: function rescueTokens(address token, address to, uint256 amount) returns()

func (*AtokenSession) ScaledBalanceOf

func (_Atoken *AtokenSession) ScaledBalanceOf(user common.Address) (*big.Int, error)

ScaledBalanceOf is a free data retrieval call binding the contract method 0x1da24f3e.

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

func (*AtokenSession) ScaledTotalSupply

func (_Atoken *AtokenSession) ScaledTotalSupply() (*big.Int, error)

ScaledTotalSupply is a free data retrieval call binding the contract method 0xb1bf962d.

Solidity: function scaledTotalSupply() view returns(uint256)

func (*AtokenSession) SetIncentivesController

func (_Atoken *AtokenSession) SetIncentivesController(controller common.Address) (*types.Transaction, error)

SetIncentivesController is a paid mutator transaction binding the contract method 0xe655dbd8.

Solidity: function setIncentivesController(address controller) returns()

func (*AtokenSession) Symbol

func (_Atoken *AtokenSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*AtokenSession) TotalSupply

func (_Atoken *AtokenSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*AtokenSession) Transfer

func (_Atoken *AtokenSession) 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 (*AtokenSession) TransferFrom

func (_Atoken *AtokenSession) 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 (*AtokenSession) TransferOnLiquidation

func (_Atoken *AtokenSession) TransferOnLiquidation(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferOnLiquidation is a paid mutator transaction binding the contract method 0xf866c319.

Solidity: function transferOnLiquidation(address from, address to, uint256 value) returns()

func (*AtokenSession) TransferUnderlyingTo

func (_Atoken *AtokenSession) TransferUnderlyingTo(target common.Address, amount *big.Int) (*types.Transaction, error)

TransferUnderlyingTo is a paid mutator transaction binding the contract method 0x4efecaa5.

Solidity: function transferUnderlyingTo(address target, uint256 amount) returns()

func (*AtokenSession) UNDERLYINGASSETADDRESS

func (_Atoken *AtokenSession) UNDERLYINGASSETADDRESS() (common.Address, error)

UNDERLYINGASSETADDRESS is a free data retrieval call binding the contract method 0xb16a19de.

Solidity: function UNDERLYING_ASSET_ADDRESS() view returns(address)

type AtokenTransactor

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

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

func NewAtokenTransactor

func NewAtokenTransactor(address common.Address, transactor bind.ContractTransactor) (*AtokenTransactor, error)

NewAtokenTransactor creates a new write-only instance of Atoken, bound to a specific deployed contract.

func (*AtokenTransactor) Approve

func (_Atoken *AtokenTransactor) 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 (*AtokenTransactor) Burn

func (_Atoken *AtokenTransactor) Burn(opts *bind.TransactOpts, from common.Address, receiverOfUnderlying common.Address, amount *big.Int, index *big.Int) (*types.Transaction, error)

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

Solidity: function burn(address from, address receiverOfUnderlying, uint256 amount, uint256 index) returns()

func (*AtokenTransactor) DecreaseAllowance

func (_Atoken *AtokenTransactor) 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 (*AtokenTransactor) HandleRepayment

func (_Atoken *AtokenTransactor) HandleRepayment(opts *bind.TransactOpts, user common.Address, amount *big.Int) (*types.Transaction, error)

HandleRepayment is a paid mutator transaction binding the contract method 0x88dd91a1.

Solidity: function handleRepayment(address user, uint256 amount) returns()

func (*AtokenTransactor) IncreaseAllowance

func (_Atoken *AtokenTransactor) 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 (*AtokenTransactor) Initialize

func (_Atoken *AtokenTransactor) Initialize(opts *bind.TransactOpts, initializingPool common.Address, treasury common.Address, underlyingAsset common.Address, incentivesController common.Address, aTokenDecimals uint8, aTokenName string, aTokenSymbol string, params []byte) (*types.Transaction, error)

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

Solidity: function initialize(address initializingPool, address treasury, address underlyingAsset, address incentivesController, uint8 aTokenDecimals, string aTokenName, string aTokenSymbol, bytes params) returns()

func (*AtokenTransactor) Mint

func (_Atoken *AtokenTransactor) Mint(opts *bind.TransactOpts, caller common.Address, onBehalfOf common.Address, amount *big.Int, index *big.Int) (*types.Transaction, error)

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

Solidity: function mint(address caller, address onBehalfOf, uint256 amount, uint256 index) returns(bool)

func (*AtokenTransactor) MintToTreasury

func (_Atoken *AtokenTransactor) MintToTreasury(opts *bind.TransactOpts, amount *big.Int, index *big.Int) (*types.Transaction, error)

MintToTreasury is a paid mutator transaction binding the contract method 0x7df5bd3b.

Solidity: function mintToTreasury(uint256 amount, uint256 index) returns()

func (*AtokenTransactor) Permit

func (_Atoken *AtokenTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*AtokenTransactor) RescueTokens

func (_Atoken *AtokenTransactor) RescueTokens(opts *bind.TransactOpts, token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

RescueTokens is a paid mutator transaction binding the contract method 0xcea9d26f.

Solidity: function rescueTokens(address token, address to, uint256 amount) returns()

func (*AtokenTransactor) SetIncentivesController

func (_Atoken *AtokenTransactor) SetIncentivesController(opts *bind.TransactOpts, controller common.Address) (*types.Transaction, error)

SetIncentivesController is a paid mutator transaction binding the contract method 0xe655dbd8.

Solidity: function setIncentivesController(address controller) returns()

func (*AtokenTransactor) Transfer

func (_Atoken *AtokenTransactor) 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 (*AtokenTransactor) TransferFrom

func (_Atoken *AtokenTransactor) 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 (*AtokenTransactor) TransferOnLiquidation

func (_Atoken *AtokenTransactor) TransferOnLiquidation(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferOnLiquidation is a paid mutator transaction binding the contract method 0xf866c319.

Solidity: function transferOnLiquidation(address from, address to, uint256 value) returns()

func (*AtokenTransactor) TransferUnderlyingTo

func (_Atoken *AtokenTransactor) TransferUnderlyingTo(opts *bind.TransactOpts, target common.Address, amount *big.Int) (*types.Transaction, error)

TransferUnderlyingTo is a paid mutator transaction binding the contract method 0x4efecaa5.

Solidity: function transferUnderlyingTo(address target, uint256 amount) returns()

type AtokenTransactorRaw

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

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

func (*AtokenTransactorRaw) Transact

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

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

func (*AtokenTransactorRaw) Transfer

func (_Atoken *AtokenTransactorRaw) 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 AtokenTransactorSession

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

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

func (*AtokenTransactorSession) Approve

func (_Atoken *AtokenTransactorSession) 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 (*AtokenTransactorSession) Burn

func (_Atoken *AtokenTransactorSession) Burn(from common.Address, receiverOfUnderlying common.Address, amount *big.Int, index *big.Int) (*types.Transaction, error)

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

Solidity: function burn(address from, address receiverOfUnderlying, uint256 amount, uint256 index) returns()

func (*AtokenTransactorSession) DecreaseAllowance

func (_Atoken *AtokenTransactorSession) 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 (*AtokenTransactorSession) HandleRepayment

func (_Atoken *AtokenTransactorSession) HandleRepayment(user common.Address, amount *big.Int) (*types.Transaction, error)

HandleRepayment is a paid mutator transaction binding the contract method 0x88dd91a1.

Solidity: function handleRepayment(address user, uint256 amount) returns()

func (*AtokenTransactorSession) IncreaseAllowance

func (_Atoken *AtokenTransactorSession) 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 (*AtokenTransactorSession) Initialize

func (_Atoken *AtokenTransactorSession) Initialize(initializingPool common.Address, treasury common.Address, underlyingAsset common.Address, incentivesController common.Address, aTokenDecimals uint8, aTokenName string, aTokenSymbol string, params []byte) (*types.Transaction, error)

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

Solidity: function initialize(address initializingPool, address treasury, address underlyingAsset, address incentivesController, uint8 aTokenDecimals, string aTokenName, string aTokenSymbol, bytes params) returns()

func (*AtokenTransactorSession) Mint

func (_Atoken *AtokenTransactorSession) Mint(caller common.Address, onBehalfOf common.Address, amount *big.Int, index *big.Int) (*types.Transaction, error)

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

Solidity: function mint(address caller, address onBehalfOf, uint256 amount, uint256 index) returns(bool)

func (*AtokenTransactorSession) MintToTreasury

func (_Atoken *AtokenTransactorSession) MintToTreasury(amount *big.Int, index *big.Int) (*types.Transaction, error)

MintToTreasury is a paid mutator transaction binding the contract method 0x7df5bd3b.

Solidity: function mintToTreasury(uint256 amount, uint256 index) returns()

func (*AtokenTransactorSession) Permit

func (_Atoken *AtokenTransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*AtokenTransactorSession) RescueTokens

func (_Atoken *AtokenTransactorSession) RescueTokens(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

RescueTokens is a paid mutator transaction binding the contract method 0xcea9d26f.

Solidity: function rescueTokens(address token, address to, uint256 amount) returns()

func (*AtokenTransactorSession) SetIncentivesController

func (_Atoken *AtokenTransactorSession) SetIncentivesController(controller common.Address) (*types.Transaction, error)

SetIncentivesController is a paid mutator transaction binding the contract method 0xe655dbd8.

Solidity: function setIncentivesController(address controller) returns()

func (*AtokenTransactorSession) Transfer

func (_Atoken *AtokenTransactorSession) 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 (*AtokenTransactorSession) TransferFrom

func (_Atoken *AtokenTransactorSession) 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 (*AtokenTransactorSession) TransferOnLiquidation

func (_Atoken *AtokenTransactorSession) TransferOnLiquidation(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferOnLiquidation is a paid mutator transaction binding the contract method 0xf866c319.

Solidity: function transferOnLiquidation(address from, address to, uint256 value) returns()

func (*AtokenTransactorSession) TransferUnderlyingTo

func (_Atoken *AtokenTransactorSession) TransferUnderlyingTo(target common.Address, amount *big.Int) (*types.Transaction, error)

TransferUnderlyingTo is a paid mutator transaction binding the contract method 0x4efecaa5.

Solidity: function transferUnderlyingTo(address target, uint256 amount) returns()

type AtokenTransfer

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

AtokenTransfer represents a Transfer event raised by the Atoken contract.

type AtokenTransferIterator

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

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

func (*AtokenTransferIterator) Close

func (it *AtokenTransferIterator) Close() error

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

func (*AtokenTransferIterator) Error

func (it *AtokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AtokenTransferIterator) Next

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