contract

package
v1.0.0-tektonci Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AdvancedTokenABI = "" /* 10678-byte string literal not displayed */

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

View Source
const AdvancedTokenStorageABI = "" /* 10328-byte string literal not displayed */

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

View Source
const BZxObjectsABI = "[]"

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

View Source
const EIP20ABI = "" /* 3233-byte string literal not displayed */

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

View Source
const ERC20ABI = "" /* 2632-byte string literal not displayed */

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

View Source
const ERC20BasicABI = "" /* 1167-byte string literal not displayed */

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

View Source
const IBZxABI = "" /* 3217-byte string literal not displayed */

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

View Source
const IBZxOracleABI = "" /* 642-byte string literal not displayed */

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

View Source
const IWethHelperABI = "" /* 371-byte string literal not displayed */

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

View Source
const LoanTokenLogicV4ABI = "" /* 23931-byte string literal not displayed */

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

View Source
const LoanTokenStorageABI = "" /* 7932-byte string literal not displayed */

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

View Source
const LoanTokenizationABI = "" /* 2350-byte string literal not displayed */

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

View Source
const OracleNotifierInterfaceABI = "" /* 2443-byte string literal not displayed */

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

View Source
const OwnableABI = "" /* 802-byte string literal not displayed */

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

View Source
const ReentrancyGuardABI = "[]"

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

View Source
const SafeMathABI = "[]"

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

View Source
const WETHInterfaceABI = "" /* 3590-byte string literal not displayed */

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

Variables

View Source
var AdvancedTokenBin = "" /* 5256-byte string literal not displayed */

AdvancedTokenBin is the compiled bytecode used for deploying new contracts.

View Source
var AdvancedTokenFuncSigs = map[string]string{
	"dd62ed3e": "allowance(address,address)",
	"095ea7b3": "approve(address,uint256)",
	"995363d3": "bZxContract()",
	"96c7871b": "bZxOracle()",
	"894ca308": "bZxVault()",
	"70a08231": "balanceOf(address)",
	"1f68f20a": "baseRate()",
	"7866c6c1": "burntTokenReserveList(uint256)",
	"fbd9574d": "burntTokenReserveListIndex(address)",
	"0c4925fd": "burntTokenReserved()",
	"7b7933b4": "checkpointSupply()",
	"313ce567": "decimals()",
	"1d0806ae": "initialPrice()",
	"9b3a54d1": "leverageList(uint256)",
	"2515aacd": "loanOrderData(bytes32)",
	"fe056342": "loanOrderHashes(uint256)",
	"797bf385": "loanTokenAddress()",
	"06fdde03": "name()",
	"8da5cb5b": "owner()",
	"330691ac": "rateMultiplier()",
	"d84d2a47": "spreadMultiplier()",
	"95d89b41": "symbol()",
	"736ee3d3": "tokenizedRegistry()",
	"20f6d07c": "totalAssetBorrow()",
	"18160ddd": "totalSupply()",
	"f2fde38b": "transferOwnership(address)",
	"4780eac1": "wethContract()",
}

AdvancedTokenFuncSigs maps the 4-byte function signature to its string representation.

View Source
var AdvancedTokenStorageBin = "" /* 4804-byte string literal not displayed */

AdvancedTokenStorageBin is the compiled bytecode used for deploying new contracts.

View Source
var AdvancedTokenStorageFuncSigs = map[string]string{
	"dd62ed3e": "allowance(address,address)",
	"995363d3": "bZxContract()",
	"96c7871b": "bZxOracle()",
	"894ca308": "bZxVault()",
	"70a08231": "balanceOf(address)",
	"1f68f20a": "baseRate()",
	"7866c6c1": "burntTokenReserveList(uint256)",
	"fbd9574d": "burntTokenReserveListIndex(address)",
	"0c4925fd": "burntTokenReserved()",
	"7b7933b4": "checkpointSupply()",
	"313ce567": "decimals()",
	"1d0806ae": "initialPrice()",
	"9b3a54d1": "leverageList(uint256)",
	"2515aacd": "loanOrderData(bytes32)",
	"fe056342": "loanOrderHashes(uint256)",
	"797bf385": "loanTokenAddress()",
	"06fdde03": "name()",
	"8da5cb5b": "owner()",
	"330691ac": "rateMultiplier()",
	"d84d2a47": "spreadMultiplier()",
	"95d89b41": "symbol()",
	"736ee3d3": "tokenizedRegistry()",
	"20f6d07c": "totalAssetBorrow()",
	"18160ddd": "totalSupply()",
	"f2fde38b": "transferOwnership(address)",
	"4780eac1": "wethContract()",
}

AdvancedTokenStorageFuncSigs maps the 4-byte function signature to its string representation.

View Source
var BZxObjectsBin = "" /* 212-byte string literal not displayed */

BZxObjectsBin is the compiled bytecode used for deploying new contracts.

View Source
var EIP20FuncSigs = map[string]string{
	"dd62ed3e": "allowance(address,address)",
	"095ea7b3": "approve(address,uint256)",
	"70a08231": "balanceOf(address)",
	"313ce567": "decimals()",
	"06fdde03": "name()",
	"95d89b41": "symbol()",
	"18160ddd": "totalSupply()",
	"a9059cbb": "transfer(address,uint256)",
	"23b872dd": "transferFrom(address,address,uint256)",
}

EIP20FuncSigs maps the 4-byte function signature to its string representation.

View Source
var ERC20BasicFuncSigs = map[string]string{
	"70a08231": "balanceOf(address)",
	"18160ddd": "totalSupply()",
	"a9059cbb": "transfer(address,uint256)",
}

ERC20BasicFuncSigs maps the 4-byte function signature to its string representation.

View Source
var ERC20FuncSigs = map[string]string{
	"dd62ed3e": "allowance(address,address)",
	"095ea7b3": "approve(address,uint256)",
	"70a08231": "balanceOf(address)",
	"18160ddd": "totalSupply()",
	"a9059cbb": "transfer(address,uint256)",
	"23b872dd": "transferFrom(address,address,uint256)",
}

ERC20FuncSigs maps the 4-byte function signature to its string representation.

View Source
var IBZxFuncSigs = map[string]string{
	"f3d75a9c": "getBorrowAmount(address,address,address,uint256,uint256)",
	"0a90b578": "getLenderInterestForOracle(address,address,address)",
	"bc6cb1d9": "getRequiredCollateral(address,address,address,uint256,uint256)",
	"71eb125e": "oracleAddresses(address)",
	"327ab639": "payInterestForOracle(address,address)",
	"b1eac3ad": "takeOrderFromiToken(bytes32,address[4],uint256[7],bytes)",
}

IBZxFuncSigs maps the 4-byte function signature to its string representation.

View Source
var IBZxOracleFuncSigs = map[string]string{
	"06599aa0": "getTradeData(address,address,uint256)",
}

IBZxOracleFuncSigs maps the 4-byte function signature to its string representation.

View Source
var IWethHelperFuncSigs = map[string]string{
	"bfcf63b0": "claimEther(address,uint256)",
}

IWethHelperFuncSigs maps the 4-byte function signature to its string representation.

View Source
var LoanTokenLogicV4Bin = "" /* 39812-byte string literal not displayed */

LoanTokenLogicV4Bin is the compiled bytecode used for deploying new contracts.

View Source
var LoanTokenLogicV4FuncSigs = map[string]string{
	"7288b344": "_supplyInterestRate(uint256,uint256)",
	"dd62ed3e": "allowance(address,address)",
	"095ea7b3": "approve(address,uint256)",
	"06b3efd6": "assetBalanceOf(address)",
	"44a4a003": "avgBorrowInterestRate()",
	"995363d3": "bZxContract()",
	"96c7871b": "bZxOracle()",
	"894ca308": "bZxVault()",
	"70a08231": "balanceOf(address)",
	"1f68f20a": "baseRate()",
	"8325a1c0": "borrowInterestRate()",
	"cfb65bb9": "borrowTokenFromDeposit(uint256,uint256,uint256,uint256,address,address,address,bytes)",
	"9dc29fac": "burn(address,uint256)",
	"81a6b250": "burnToEther(address,uint256)",
	"7866c6c1": "burntTokenReserveList(uint256)",
	"fbd9574d": "burntTokenReserveListIndex(address)",
	"0c4925fd": "burntTokenReserved()",
	"eebc5081": "checkpointPrice(address)",
	"7b7933b4": "checkpointSupply()",
	"cd4fa66d": "closeLoanNotifier((address,address,address,address,uint256,uint256,uint256,uint256,uint256,bytes32),(address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256),address,uint256,bool)",
	"313ce567": "decimals()",
	"24d25f4a": "getBorrowAmountForDeposit(uint256,uint256,uint256,address)",
	"8423acd6": "getDepositAmountForBorrow(uint256,uint256,uint256,address)",
	"2ecae90a": "getLeverageList()",
	"c4d2b1b3": "getLoanData(bytes32)",
	"829b38f4": "getMaxEscrowAmount(uint256)",
	"1d0806ae": "initialPrice()",
	"9b3a54d1": "leverageList(uint256)",
	"2515aacd": "loanOrderData(bytes32)",
	"fe056342": "loanOrderHashes(uint256)",
	"797bf385": "loanTokenAddress()",
	"1c5d1da5": "marginTradeFromDeposit(uint256,uint256,uint256,uint256,uint256,address,address,address,address,bytes)",
	"612ef80b": "marketLiquidity()",
	"40c10f19": "mint(address,uint256)",
	"8f6ede1f": "mintWithEther(address)",
	"06fdde03": "name()",
	"b9fe1a8f": "nextBorrowInterestRate(uint256)",
	"7d90dcba": "nextBorrowInterestRateWithOption(uint256,bool)",
	"d65a5021": "nextSupplyInterestRate(uint256)",
	"8da5cb5b": "owner()",
	"fc3b72b1": "protocolInterestRate()",
	"330691ac": "rateMultiplier()",
	"d84d2a47": "spreadMultiplier()",
	"09ec6b6b": "supplyInterestRate()",
	"95d89b41": "symbol()",
	"7ff9b596": "tokenPrice()",
	"736ee3d3": "tokenizedRegistry()",
	"20f6d07c": "totalAssetBorrow()",
	"8fb807c5": "totalAssetSupply()",
	"18160ddd": "totalSupply()",
	"12416898": "totalSupplyInterestRate(uint256)",
	"a9059cbb": "transfer(address,uint256)",
	"23b872dd": "transferFrom(address,address,uint256)",
	"f2fde38b": "transferOwnership(address)",
	"284e2f56": "updateSettings(address,bytes)",
	"4780eac1": "wethContract()",
}

LoanTokenLogicV4FuncSigs maps the 4-byte function signature to its string representation.

View Source
var LoanTokenStorageBin = "" /* 4322-byte string literal not displayed */

LoanTokenStorageBin is the compiled bytecode used for deploying new contracts.

View Source
var LoanTokenStorageFuncSigs = map[string]string{
	"995363d3": "bZxContract()",
	"96c7871b": "bZxOracle()",
	"894ca308": "bZxVault()",
	"1f68f20a": "baseRate()",
	"7866c6c1": "burntTokenReserveList(uint256)",
	"fbd9574d": "burntTokenReserveListIndex(address)",
	"0c4925fd": "burntTokenReserved()",
	"7b7933b4": "checkpointSupply()",
	"313ce567": "decimals()",
	"1d0806ae": "initialPrice()",
	"9b3a54d1": "leverageList(uint256)",
	"2515aacd": "loanOrderData(bytes32)",
	"fe056342": "loanOrderHashes(uint256)",
	"797bf385": "loanTokenAddress()",
	"06fdde03": "name()",
	"8da5cb5b": "owner()",
	"330691ac": "rateMultiplier()",
	"d84d2a47": "spreadMultiplier()",
	"95d89b41": "symbol()",
	"736ee3d3": "tokenizedRegistry()",
	"20f6d07c": "totalAssetBorrow()",
	"f2fde38b": "transferOwnership(address)",
	"4780eac1": "wethContract()",
}

LoanTokenStorageFuncSigs maps the 4-byte function signature to its string representation.

View Source
var LoanTokenizationBin = "" /* 2390-byte string literal not displayed */

LoanTokenizationBin is the compiled bytecode used for deploying new contracts.

View Source
var LoanTokenizationFuncSigs = map[string]string{
	"995363d3": "bZxContract()",
	"96c7871b": "bZxOracle()",
	"894ca308": "bZxVault()",
	"313ce567": "decimals()",
	"797bf385": "loanTokenAddress()",
	"06fdde03": "name()",
	"8da5cb5b": "owner()",
	"95d89b41": "symbol()",
	"f2fde38b": "transferOwnership(address)",
	"4780eac1": "wethContract()",
}

LoanTokenizationFuncSigs maps the 4-byte function signature to its string representation.

View Source
var OracleNotifierInterfaceFuncSigs = map[string]string{
	"cd4fa66d": "closeLoanNotifier((address,address,address,address,uint256,uint256,uint256,uint256,uint256,bytes32),(address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256),address,uint256,bool)",
}

OracleNotifierInterfaceFuncSigs maps the 4-byte function signature to its string representation.

View Source
var OwnableBin = "" /* 1018-byte string literal not displayed */

OwnableBin is the compiled bytecode used for deploying new contracts.

View Source
var OwnableFuncSigs = map[string]string{
	"8da5cb5b": "owner()",
	"f2fde38b": "transferOwnership(address)",
}

OwnableFuncSigs maps the 4-byte function signature to its string representation.

View Source
var ReentrancyGuardBin = "" /* 222-byte string literal not displayed */

ReentrancyGuardBin is the compiled bytecode used for deploying new contracts.

View Source
var SafeMathBin = "" /* 270-byte string literal not displayed */

SafeMathBin is the compiled bytecode used for deploying new contracts.

View Source
var WETHInterfaceFuncSigs = map[string]string{
	"dd62ed3e": "allowance(address,address)",
	"095ea7b3": "approve(address,uint256)",
	"70a08231": "balanceOf(address)",
	"313ce567": "decimals()",
	"d0e30db0": "deposit()",
	"06fdde03": "name()",
	"95d89b41": "symbol()",
	"18160ddd": "totalSupply()",
	"a9059cbb": "transfer(address,uint256)",
	"23b872dd": "transferFrom(address,address,uint256)",
	"2e1a7d4d": "withdraw(uint256)",
}

WETHInterfaceFuncSigs maps the 4-byte function signature to its string representation.

Functions

This section is empty.

Types

type AdvancedToken

type AdvancedToken struct {
	AdvancedTokenCaller     // Read-only binding to the contract
	AdvancedTokenTransactor // Write-only binding to the contract
	AdvancedTokenFilterer   // Log filterer for contract events
}

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

func DeployAdvancedToken

func DeployAdvancedToken(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *AdvancedToken, error)

DeployAdvancedToken deploys a new Ethereum contract, binding an instance of AdvancedToken to it.

func NewAdvancedToken

func NewAdvancedToken(address common.Address, backend bind.ContractBackend) (*AdvancedToken, error)

NewAdvancedToken creates a new instance of AdvancedToken, bound to a specific deployed contract.

type AdvancedTokenApproval

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

AdvancedTokenApproval represents a Approval event raised by the AdvancedToken contract.

type AdvancedTokenApprovalIterator

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

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

func (*AdvancedTokenApprovalIterator) Close

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

func (*AdvancedTokenApprovalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenApprovalIterator) 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 AdvancedTokenBorrow

type AdvancedTokenBorrow struct {
	Borrower                common.Address
	BorrowAmount            *big.Int
	InterestRate            *big.Int
	CollateralTokenAddress  common.Address
	TradeTokenToFillAddress common.Address
	WithdrawOnOpen          bool
	Raw                     types.Log // Blockchain specific contextual infos
}

AdvancedTokenBorrow represents a Borrow event raised by the AdvancedToken contract.

type AdvancedTokenBorrowIterator

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

AdvancedTokenBorrowIterator is returned from FilterBorrow and is used to iterate over the raw logs and unpacked data for Borrow events raised by the AdvancedToken contract.

func (*AdvancedTokenBorrowIterator) Close

func (it *AdvancedTokenBorrowIterator) Close() error

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

func (*AdvancedTokenBorrowIterator) Error

func (it *AdvancedTokenBorrowIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenBorrowIterator) Next

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

type AdvancedTokenBurn struct {
	Burner      common.Address
	TokenAmount *big.Int
	AssetAmount *big.Int
	Price       *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

AdvancedTokenBurn represents a Burn event raised by the AdvancedToken contract.

type AdvancedTokenBurnIterator

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

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

func (*AdvancedTokenBurnIterator) Close

func (it *AdvancedTokenBurnIterator) Close() error

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

func (*AdvancedTokenBurnIterator) Error

func (it *AdvancedTokenBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenBurnIterator) Next

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

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

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

func NewAdvancedTokenCaller

func NewAdvancedTokenCaller(address common.Address, caller bind.ContractCaller) (*AdvancedTokenCaller, error)

NewAdvancedTokenCaller creates a new read-only instance of AdvancedToken, bound to a specific deployed contract.

func (*AdvancedTokenCaller) Allowance

func (_AdvancedToken *AdvancedTokenCaller) 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 (*AdvancedTokenCaller) BZxContract

func (_AdvancedToken *AdvancedTokenCaller) BZxContract(opts *bind.CallOpts) (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*AdvancedTokenCaller) BZxOracle

func (_AdvancedToken *AdvancedTokenCaller) BZxOracle(opts *bind.CallOpts) (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*AdvancedTokenCaller) BZxVault

func (_AdvancedToken *AdvancedTokenCaller) BZxVault(opts *bind.CallOpts) (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*AdvancedTokenCaller) BalanceOf

func (_AdvancedToken *AdvancedTokenCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)

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

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

func (*AdvancedTokenCaller) BaseRate

func (_AdvancedToken *AdvancedTokenCaller) BaseRate(opts *bind.CallOpts) (*big.Int, error)

BaseRate is a free data retrieval call binding the contract method 0x1f68f20a.

Solidity: function baseRate() view returns(uint256)

func (*AdvancedTokenCaller) BurntTokenReserveList

func (_AdvancedToken *AdvancedTokenCaller) BurntTokenReserveList(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Lender common.Address
	Amount *big.Int
}, error)

BurntTokenReserveList is a free data retrieval call binding the contract method 0x7866c6c1.

Solidity: function burntTokenReserveList(uint256 ) view returns(address lender, uint256 amount)

func (*AdvancedTokenCaller) BurntTokenReserveListIndex

func (_AdvancedToken *AdvancedTokenCaller) BurntTokenReserveListIndex(opts *bind.CallOpts, arg0 common.Address) (struct {
	Index *big.Int
	IsSet bool
}, error)

BurntTokenReserveListIndex is a free data retrieval call binding the contract method 0xfbd9574d.

Solidity: function burntTokenReserveListIndex(address ) view returns(uint256 index, bool isSet)

func (*AdvancedTokenCaller) BurntTokenReserved

func (_AdvancedToken *AdvancedTokenCaller) BurntTokenReserved(opts *bind.CallOpts) (*big.Int, error)

BurntTokenReserved is a free data retrieval call binding the contract method 0x0c4925fd.

Solidity: function burntTokenReserved() view returns(uint256)

func (*AdvancedTokenCaller) CheckpointSupply

func (_AdvancedToken *AdvancedTokenCaller) CheckpointSupply(opts *bind.CallOpts) (*big.Int, error)

CheckpointSupply is a free data retrieval call binding the contract method 0x7b7933b4.

Solidity: function checkpointSupply() view returns(uint256)

func (*AdvancedTokenCaller) Decimals

func (_AdvancedToken *AdvancedTokenCaller) 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 (*AdvancedTokenCaller) InitialPrice

func (_AdvancedToken *AdvancedTokenCaller) InitialPrice(opts *bind.CallOpts) (*big.Int, error)

InitialPrice is a free data retrieval call binding the contract method 0x1d0806ae.

Solidity: function initialPrice() view returns(uint256)

func (*AdvancedTokenCaller) LeverageList

func (_AdvancedToken *AdvancedTokenCaller) LeverageList(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

LeverageList is a free data retrieval call binding the contract method 0x9b3a54d1.

Solidity: function leverageList(uint256 ) view returns(uint256)

func (*AdvancedTokenCaller) LoanOrderData

func (_AdvancedToken *AdvancedTokenCaller) LoanOrderData(opts *bind.CallOpts, arg0 [32]byte) (struct {
	LoanOrderHash               [32]byte
	LeverageAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	Index                       *big.Int
	MarginPremiumAmount         *big.Int
	CollateralTokenAddress      common.Address
}, error)

LoanOrderData is a free data retrieval call binding the contract method 0x2515aacd.

Solidity: function loanOrderData(bytes32 ) view returns(bytes32 loanOrderHash, uint256 leverageAmount, uint256 initialMarginAmount, uint256 maintenanceMarginAmount, uint256 maxDurationUnixTimestampSec, uint256 index, uint256 marginPremiumAmount, address collateralTokenAddress)

func (*AdvancedTokenCaller) LoanOrderHashes

func (_AdvancedToken *AdvancedTokenCaller) LoanOrderHashes(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

LoanOrderHashes is a free data retrieval call binding the contract method 0xfe056342.

Solidity: function loanOrderHashes(uint256 ) view returns(bytes32)

func (*AdvancedTokenCaller) LoanTokenAddress

func (_AdvancedToken *AdvancedTokenCaller) LoanTokenAddress(opts *bind.CallOpts) (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*AdvancedTokenCaller) Name

func (_AdvancedToken *AdvancedTokenCaller) 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 (*AdvancedTokenCaller) Owner

func (_AdvancedToken *AdvancedTokenCaller) 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 (*AdvancedTokenCaller) RateMultiplier

func (_AdvancedToken *AdvancedTokenCaller) RateMultiplier(opts *bind.CallOpts) (*big.Int, error)

RateMultiplier is a free data retrieval call binding the contract method 0x330691ac.

Solidity: function rateMultiplier() view returns(uint256)

func (*AdvancedTokenCaller) SpreadMultiplier

func (_AdvancedToken *AdvancedTokenCaller) SpreadMultiplier(opts *bind.CallOpts) (*big.Int, error)

SpreadMultiplier is a free data retrieval call binding the contract method 0xd84d2a47.

Solidity: function spreadMultiplier() view returns(uint256)

func (*AdvancedTokenCaller) Symbol

func (_AdvancedToken *AdvancedTokenCaller) 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 (*AdvancedTokenCaller) TokenizedRegistry

func (_AdvancedToken *AdvancedTokenCaller) TokenizedRegistry(opts *bind.CallOpts) (common.Address, error)

TokenizedRegistry is a free data retrieval call binding the contract method 0x736ee3d3.

Solidity: function tokenizedRegistry() view returns(address)

func (*AdvancedTokenCaller) TotalAssetBorrow

func (_AdvancedToken *AdvancedTokenCaller) TotalAssetBorrow(opts *bind.CallOpts) (*big.Int, error)

TotalAssetBorrow is a free data retrieval call binding the contract method 0x20f6d07c.

Solidity: function totalAssetBorrow() view returns(uint256)

func (*AdvancedTokenCaller) TotalSupply

func (_AdvancedToken *AdvancedTokenCaller) 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 (*AdvancedTokenCaller) WethContract

func (_AdvancedToken *AdvancedTokenCaller) WethContract(opts *bind.CallOpts) (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type AdvancedTokenCallerRaw

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

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

func (*AdvancedTokenCallerRaw) Call

func (_AdvancedToken *AdvancedTokenCallerRaw) 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 AdvancedTokenCallerSession

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

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

func (*AdvancedTokenCallerSession) Allowance

func (_AdvancedToken *AdvancedTokenCallerSession) 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 (*AdvancedTokenCallerSession) BZxContract

func (_AdvancedToken *AdvancedTokenCallerSession) BZxContract() (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*AdvancedTokenCallerSession) BZxOracle

func (_AdvancedToken *AdvancedTokenCallerSession) BZxOracle() (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*AdvancedTokenCallerSession) BZxVault

func (_AdvancedToken *AdvancedTokenCallerSession) BZxVault() (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*AdvancedTokenCallerSession) BalanceOf

func (_AdvancedToken *AdvancedTokenCallerSession) BalanceOf(_owner common.Address) (*big.Int, error)

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

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

func (*AdvancedTokenCallerSession) BaseRate

func (_AdvancedToken *AdvancedTokenCallerSession) BaseRate() (*big.Int, error)

BaseRate is a free data retrieval call binding the contract method 0x1f68f20a.

Solidity: function baseRate() view returns(uint256)

func (*AdvancedTokenCallerSession) BurntTokenReserveList

func (_AdvancedToken *AdvancedTokenCallerSession) BurntTokenReserveList(arg0 *big.Int) (struct {
	Lender common.Address
	Amount *big.Int
}, error)

BurntTokenReserveList is a free data retrieval call binding the contract method 0x7866c6c1.

Solidity: function burntTokenReserveList(uint256 ) view returns(address lender, uint256 amount)

func (*AdvancedTokenCallerSession) BurntTokenReserveListIndex

func (_AdvancedToken *AdvancedTokenCallerSession) BurntTokenReserveListIndex(arg0 common.Address) (struct {
	Index *big.Int
	IsSet bool
}, error)

BurntTokenReserveListIndex is a free data retrieval call binding the contract method 0xfbd9574d.

Solidity: function burntTokenReserveListIndex(address ) view returns(uint256 index, bool isSet)

func (*AdvancedTokenCallerSession) BurntTokenReserved

func (_AdvancedToken *AdvancedTokenCallerSession) BurntTokenReserved() (*big.Int, error)

BurntTokenReserved is a free data retrieval call binding the contract method 0x0c4925fd.

Solidity: function burntTokenReserved() view returns(uint256)

func (*AdvancedTokenCallerSession) CheckpointSupply

func (_AdvancedToken *AdvancedTokenCallerSession) CheckpointSupply() (*big.Int, error)

CheckpointSupply is a free data retrieval call binding the contract method 0x7b7933b4.

Solidity: function checkpointSupply() view returns(uint256)

func (*AdvancedTokenCallerSession) Decimals

func (_AdvancedToken *AdvancedTokenCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*AdvancedTokenCallerSession) InitialPrice

func (_AdvancedToken *AdvancedTokenCallerSession) InitialPrice() (*big.Int, error)

InitialPrice is a free data retrieval call binding the contract method 0x1d0806ae.

Solidity: function initialPrice() view returns(uint256)

func (*AdvancedTokenCallerSession) LeverageList

func (_AdvancedToken *AdvancedTokenCallerSession) LeverageList(arg0 *big.Int) (*big.Int, error)

LeverageList is a free data retrieval call binding the contract method 0x9b3a54d1.

Solidity: function leverageList(uint256 ) view returns(uint256)

func (*AdvancedTokenCallerSession) LoanOrderData

func (_AdvancedToken *AdvancedTokenCallerSession) LoanOrderData(arg0 [32]byte) (struct {
	LoanOrderHash               [32]byte
	LeverageAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	Index                       *big.Int
	MarginPremiumAmount         *big.Int
	CollateralTokenAddress      common.Address
}, error)

LoanOrderData is a free data retrieval call binding the contract method 0x2515aacd.

Solidity: function loanOrderData(bytes32 ) view returns(bytes32 loanOrderHash, uint256 leverageAmount, uint256 initialMarginAmount, uint256 maintenanceMarginAmount, uint256 maxDurationUnixTimestampSec, uint256 index, uint256 marginPremiumAmount, address collateralTokenAddress)

func (*AdvancedTokenCallerSession) LoanOrderHashes

func (_AdvancedToken *AdvancedTokenCallerSession) LoanOrderHashes(arg0 *big.Int) ([32]byte, error)

LoanOrderHashes is a free data retrieval call binding the contract method 0xfe056342.

Solidity: function loanOrderHashes(uint256 ) view returns(bytes32)

func (*AdvancedTokenCallerSession) LoanTokenAddress

func (_AdvancedToken *AdvancedTokenCallerSession) LoanTokenAddress() (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*AdvancedTokenCallerSession) Name

func (_AdvancedToken *AdvancedTokenCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*AdvancedTokenCallerSession) Owner

func (_AdvancedToken *AdvancedTokenCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*AdvancedTokenCallerSession) RateMultiplier

func (_AdvancedToken *AdvancedTokenCallerSession) RateMultiplier() (*big.Int, error)

RateMultiplier is a free data retrieval call binding the contract method 0x330691ac.

Solidity: function rateMultiplier() view returns(uint256)

func (*AdvancedTokenCallerSession) SpreadMultiplier

func (_AdvancedToken *AdvancedTokenCallerSession) SpreadMultiplier() (*big.Int, error)

SpreadMultiplier is a free data retrieval call binding the contract method 0xd84d2a47.

Solidity: function spreadMultiplier() view returns(uint256)

func (*AdvancedTokenCallerSession) Symbol

func (_AdvancedToken *AdvancedTokenCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*AdvancedTokenCallerSession) TokenizedRegistry

func (_AdvancedToken *AdvancedTokenCallerSession) TokenizedRegistry() (common.Address, error)

TokenizedRegistry is a free data retrieval call binding the contract method 0x736ee3d3.

Solidity: function tokenizedRegistry() view returns(address)

func (*AdvancedTokenCallerSession) TotalAssetBorrow

func (_AdvancedToken *AdvancedTokenCallerSession) TotalAssetBorrow() (*big.Int, error)

TotalAssetBorrow is a free data retrieval call binding the contract method 0x20f6d07c.

Solidity: function totalAssetBorrow() view returns(uint256)

func (*AdvancedTokenCallerSession) TotalSupply

func (_AdvancedToken *AdvancedTokenCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*AdvancedTokenCallerSession) WethContract

func (_AdvancedToken *AdvancedTokenCallerSession) WethContract() (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type AdvancedTokenClaim

type AdvancedTokenClaim struct {
	Claimant             common.Address
	TokenAmount          *big.Int
	AssetAmount          *big.Int
	RemainingTokenAmount *big.Int
	Price                *big.Int
	Raw                  types.Log // Blockchain specific contextual infos
}

AdvancedTokenClaim represents a Claim event raised by the AdvancedToken contract.

type AdvancedTokenClaimIterator

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

AdvancedTokenClaimIterator is returned from FilterClaim and is used to iterate over the raw logs and unpacked data for Claim events raised by the AdvancedToken contract.

func (*AdvancedTokenClaimIterator) Close

func (it *AdvancedTokenClaimIterator) Close() error

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

func (*AdvancedTokenClaimIterator) Error

func (it *AdvancedTokenClaimIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenClaimIterator) Next

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

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

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

func NewAdvancedTokenFilterer

func NewAdvancedTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*AdvancedTokenFilterer, error)

NewAdvancedTokenFilterer creates a new log filterer instance of AdvancedToken, bound to a specific deployed contract.

func (*AdvancedTokenFilterer) FilterApproval

func (_AdvancedToken *AdvancedTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*AdvancedTokenApprovalIterator, 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 (*AdvancedTokenFilterer) FilterBorrow

func (_AdvancedToken *AdvancedTokenFilterer) FilterBorrow(opts *bind.FilterOpts, borrower []common.Address) (*AdvancedTokenBorrowIterator, error)

FilterBorrow is a free log retrieval operation binding the contract event 0x86e15dd78cd784ab7788bcf5b96b9395e86030e048e5faedcfe752c700f6157e.

Solidity: event Borrow(address indexed borrower, uint256 borrowAmount, uint256 interestRate, address collateralTokenAddress, address tradeTokenToFillAddress, bool withdrawOnOpen)

func (*AdvancedTokenFilterer) FilterBurn

func (_AdvancedToken *AdvancedTokenFilterer) FilterBurn(opts *bind.FilterOpts, burner []common.Address) (*AdvancedTokenBurnIterator, error)

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

Solidity: event Burn(address indexed burner, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*AdvancedTokenFilterer) FilterClaim

func (_AdvancedToken *AdvancedTokenFilterer) FilterClaim(opts *bind.FilterOpts, claimant []common.Address) (*AdvancedTokenClaimIterator, error)

FilterClaim is a free log retrieval operation binding the contract event 0x68e1caf97c4c29c1ac46024e9590f80b7a1f690d393703879cf66eea4e1e8421.

Solidity: event Claim(address indexed claimant, uint256 tokenAmount, uint256 assetAmount, uint256 remainingTokenAmount, uint256 price)

func (*AdvancedTokenFilterer) FilterMint

func (_AdvancedToken *AdvancedTokenFilterer) FilterMint(opts *bind.FilterOpts, minter []common.Address) (*AdvancedTokenMintIterator, error)

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

Solidity: event Mint(address indexed minter, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*AdvancedTokenFilterer) FilterOwnershipTransferred

func (_AdvancedToken *AdvancedTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AdvancedTokenOwnershipTransferredIterator, error)

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

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

func (*AdvancedTokenFilterer) FilterRepay

func (_AdvancedToken *AdvancedTokenFilterer) FilterRepay(opts *bind.FilterOpts, loanOrderHash [][32]byte, borrower []common.Address) (*AdvancedTokenRepayIterator, error)

FilterRepay is a free log retrieval operation binding the contract event 0x85dfc0033a3e5b3b9b3151bd779c1f9b855d66b83ff5bb79283b68d82e8e5b73.

Solidity: event Repay(bytes32 indexed loanOrderHash, address indexed borrower, address closer, uint256 amount, bool isLiquidation)

func (*AdvancedTokenFilterer) FilterTransfer

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

func (_AdvancedToken *AdvancedTokenFilterer) ParseApproval(log types.Log) (*AdvancedTokenApproval, error)

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

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

func (*AdvancedTokenFilterer) ParseBorrow

func (_AdvancedToken *AdvancedTokenFilterer) ParseBorrow(log types.Log) (*AdvancedTokenBorrow, error)

ParseBorrow is a log parse operation binding the contract event 0x86e15dd78cd784ab7788bcf5b96b9395e86030e048e5faedcfe752c700f6157e.

Solidity: event Borrow(address indexed borrower, uint256 borrowAmount, uint256 interestRate, address collateralTokenAddress, address tradeTokenToFillAddress, bool withdrawOnOpen)

func (*AdvancedTokenFilterer) ParseBurn

func (_AdvancedToken *AdvancedTokenFilterer) ParseBurn(log types.Log) (*AdvancedTokenBurn, error)

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

Solidity: event Burn(address indexed burner, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*AdvancedTokenFilterer) ParseClaim

func (_AdvancedToken *AdvancedTokenFilterer) ParseClaim(log types.Log) (*AdvancedTokenClaim, error)

ParseClaim is a log parse operation binding the contract event 0x68e1caf97c4c29c1ac46024e9590f80b7a1f690d393703879cf66eea4e1e8421.

Solidity: event Claim(address indexed claimant, uint256 tokenAmount, uint256 assetAmount, uint256 remainingTokenAmount, uint256 price)

func (*AdvancedTokenFilterer) ParseMint

func (_AdvancedToken *AdvancedTokenFilterer) ParseMint(log types.Log) (*AdvancedTokenMint, error)

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

Solidity: event Mint(address indexed minter, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*AdvancedTokenFilterer) ParseOwnershipTransferred

func (_AdvancedToken *AdvancedTokenFilterer) ParseOwnershipTransferred(log types.Log) (*AdvancedTokenOwnershipTransferred, error)

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

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

func (*AdvancedTokenFilterer) ParseRepay

func (_AdvancedToken *AdvancedTokenFilterer) ParseRepay(log types.Log) (*AdvancedTokenRepay, error)

ParseRepay is a log parse operation binding the contract event 0x85dfc0033a3e5b3b9b3151bd779c1f9b855d66b83ff5bb79283b68d82e8e5b73.

Solidity: event Repay(bytes32 indexed loanOrderHash, address indexed borrower, address closer, uint256 amount, bool isLiquidation)

func (*AdvancedTokenFilterer) ParseTransfer

func (_AdvancedToken *AdvancedTokenFilterer) ParseTransfer(log types.Log) (*AdvancedTokenTransfer, error)

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

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

func (*AdvancedTokenFilterer) WatchApproval

func (_AdvancedToken *AdvancedTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *AdvancedTokenApproval, 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 (*AdvancedTokenFilterer) WatchBorrow

func (_AdvancedToken *AdvancedTokenFilterer) WatchBorrow(opts *bind.WatchOpts, sink chan<- *AdvancedTokenBorrow, borrower []common.Address) (event.Subscription, error)

WatchBorrow is a free log subscription operation binding the contract event 0x86e15dd78cd784ab7788bcf5b96b9395e86030e048e5faedcfe752c700f6157e.

Solidity: event Borrow(address indexed borrower, uint256 borrowAmount, uint256 interestRate, address collateralTokenAddress, address tradeTokenToFillAddress, bool withdrawOnOpen)

func (*AdvancedTokenFilterer) WatchBurn

func (_AdvancedToken *AdvancedTokenFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *AdvancedTokenBurn, burner []common.Address) (event.Subscription, error)

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

Solidity: event Burn(address indexed burner, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*AdvancedTokenFilterer) WatchClaim

func (_AdvancedToken *AdvancedTokenFilterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *AdvancedTokenClaim, claimant []common.Address) (event.Subscription, error)

WatchClaim is a free log subscription operation binding the contract event 0x68e1caf97c4c29c1ac46024e9590f80b7a1f690d393703879cf66eea4e1e8421.

Solidity: event Claim(address indexed claimant, uint256 tokenAmount, uint256 assetAmount, uint256 remainingTokenAmount, uint256 price)

func (*AdvancedTokenFilterer) WatchMint

func (_AdvancedToken *AdvancedTokenFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *AdvancedTokenMint, minter []common.Address) (event.Subscription, error)

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

Solidity: event Mint(address indexed minter, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*AdvancedTokenFilterer) WatchOwnershipTransferred

func (_AdvancedToken *AdvancedTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AdvancedTokenOwnershipTransferred, 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 (*AdvancedTokenFilterer) WatchRepay

func (_AdvancedToken *AdvancedTokenFilterer) WatchRepay(opts *bind.WatchOpts, sink chan<- *AdvancedTokenRepay, loanOrderHash [][32]byte, borrower []common.Address) (event.Subscription, error)

WatchRepay is a free log subscription operation binding the contract event 0x85dfc0033a3e5b3b9b3151bd779c1f9b855d66b83ff5bb79283b68d82e8e5b73.

Solidity: event Repay(bytes32 indexed loanOrderHash, address indexed borrower, address closer, uint256 amount, bool isLiquidation)

func (*AdvancedTokenFilterer) WatchTransfer

func (_AdvancedToken *AdvancedTokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *AdvancedTokenTransfer, 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 AdvancedTokenMint

type AdvancedTokenMint struct {
	Minter      common.Address
	TokenAmount *big.Int
	AssetAmount *big.Int
	Price       *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

AdvancedTokenMint represents a Mint event raised by the AdvancedToken contract.

type AdvancedTokenMintIterator

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

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

func (*AdvancedTokenMintIterator) Close

func (it *AdvancedTokenMintIterator) Close() error

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

func (*AdvancedTokenMintIterator) Error

func (it *AdvancedTokenMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenMintIterator) Next

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

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

AdvancedTokenOwnershipTransferred represents a OwnershipTransferred event raised by the AdvancedToken contract.

type AdvancedTokenOwnershipTransferredIterator

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

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

func (*AdvancedTokenOwnershipTransferredIterator) Close

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

func (*AdvancedTokenOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenOwnershipTransferredIterator) 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 AdvancedTokenRaw

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

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

func (*AdvancedTokenRaw) Call

func (_AdvancedToken *AdvancedTokenRaw) 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 (*AdvancedTokenRaw) Transact

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

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

func (*AdvancedTokenRaw) Transfer

func (_AdvancedToken *AdvancedTokenRaw) 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 AdvancedTokenRepay

type AdvancedTokenRepay struct {
	LoanOrderHash [32]byte
	Borrower      common.Address
	Closer        common.Address
	Amount        *big.Int
	IsLiquidation bool
	Raw           types.Log // Blockchain specific contextual infos
}

AdvancedTokenRepay represents a Repay event raised by the AdvancedToken contract.

type AdvancedTokenRepayIterator

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

AdvancedTokenRepayIterator is returned from FilterRepay and is used to iterate over the raw logs and unpacked data for Repay events raised by the AdvancedToken contract.

func (*AdvancedTokenRepayIterator) Close

func (it *AdvancedTokenRepayIterator) Close() error

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

func (*AdvancedTokenRepayIterator) Error

func (it *AdvancedTokenRepayIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenRepayIterator) Next

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

type AdvancedTokenSession struct {
	Contract     *AdvancedToken    // 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
}

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

func (*AdvancedTokenSession) Allowance

func (_AdvancedToken *AdvancedTokenSession) 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 (*AdvancedTokenSession) Approve

func (_AdvancedToken *AdvancedTokenSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*AdvancedTokenSession) BZxContract

func (_AdvancedToken *AdvancedTokenSession) BZxContract() (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*AdvancedTokenSession) BZxOracle

func (_AdvancedToken *AdvancedTokenSession) BZxOracle() (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*AdvancedTokenSession) BZxVault

func (_AdvancedToken *AdvancedTokenSession) BZxVault() (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*AdvancedTokenSession) BalanceOf

func (_AdvancedToken *AdvancedTokenSession) BalanceOf(_owner common.Address) (*big.Int, error)

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

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

func (*AdvancedTokenSession) BaseRate

func (_AdvancedToken *AdvancedTokenSession) BaseRate() (*big.Int, error)

BaseRate is a free data retrieval call binding the contract method 0x1f68f20a.

Solidity: function baseRate() view returns(uint256)

func (*AdvancedTokenSession) BurntTokenReserveList

func (_AdvancedToken *AdvancedTokenSession) BurntTokenReserveList(arg0 *big.Int) (struct {
	Lender common.Address
	Amount *big.Int
}, error)

BurntTokenReserveList is a free data retrieval call binding the contract method 0x7866c6c1.

Solidity: function burntTokenReserveList(uint256 ) view returns(address lender, uint256 amount)

func (*AdvancedTokenSession) BurntTokenReserveListIndex

func (_AdvancedToken *AdvancedTokenSession) BurntTokenReserveListIndex(arg0 common.Address) (struct {
	Index *big.Int
	IsSet bool
}, error)

BurntTokenReserveListIndex is a free data retrieval call binding the contract method 0xfbd9574d.

Solidity: function burntTokenReserveListIndex(address ) view returns(uint256 index, bool isSet)

func (*AdvancedTokenSession) BurntTokenReserved

func (_AdvancedToken *AdvancedTokenSession) BurntTokenReserved() (*big.Int, error)

BurntTokenReserved is a free data retrieval call binding the contract method 0x0c4925fd.

Solidity: function burntTokenReserved() view returns(uint256)

func (*AdvancedTokenSession) CheckpointSupply

func (_AdvancedToken *AdvancedTokenSession) CheckpointSupply() (*big.Int, error)

CheckpointSupply is a free data retrieval call binding the contract method 0x7b7933b4.

Solidity: function checkpointSupply() view returns(uint256)

func (*AdvancedTokenSession) Decimals

func (_AdvancedToken *AdvancedTokenSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*AdvancedTokenSession) InitialPrice

func (_AdvancedToken *AdvancedTokenSession) InitialPrice() (*big.Int, error)

InitialPrice is a free data retrieval call binding the contract method 0x1d0806ae.

Solidity: function initialPrice() view returns(uint256)

func (*AdvancedTokenSession) LeverageList

func (_AdvancedToken *AdvancedTokenSession) LeverageList(arg0 *big.Int) (*big.Int, error)

LeverageList is a free data retrieval call binding the contract method 0x9b3a54d1.

Solidity: function leverageList(uint256 ) view returns(uint256)

func (*AdvancedTokenSession) LoanOrderData

func (_AdvancedToken *AdvancedTokenSession) LoanOrderData(arg0 [32]byte) (struct {
	LoanOrderHash               [32]byte
	LeverageAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	Index                       *big.Int
	MarginPremiumAmount         *big.Int
	CollateralTokenAddress      common.Address
}, error)

LoanOrderData is a free data retrieval call binding the contract method 0x2515aacd.

Solidity: function loanOrderData(bytes32 ) view returns(bytes32 loanOrderHash, uint256 leverageAmount, uint256 initialMarginAmount, uint256 maintenanceMarginAmount, uint256 maxDurationUnixTimestampSec, uint256 index, uint256 marginPremiumAmount, address collateralTokenAddress)

func (*AdvancedTokenSession) LoanOrderHashes

func (_AdvancedToken *AdvancedTokenSession) LoanOrderHashes(arg0 *big.Int) ([32]byte, error)

LoanOrderHashes is a free data retrieval call binding the contract method 0xfe056342.

Solidity: function loanOrderHashes(uint256 ) view returns(bytes32)

func (*AdvancedTokenSession) LoanTokenAddress

func (_AdvancedToken *AdvancedTokenSession) LoanTokenAddress() (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*AdvancedTokenSession) Name

func (_AdvancedToken *AdvancedTokenSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*AdvancedTokenSession) Owner

func (_AdvancedToken *AdvancedTokenSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*AdvancedTokenSession) RateMultiplier

func (_AdvancedToken *AdvancedTokenSession) RateMultiplier() (*big.Int, error)

RateMultiplier is a free data retrieval call binding the contract method 0x330691ac.

Solidity: function rateMultiplier() view returns(uint256)

func (*AdvancedTokenSession) SpreadMultiplier

func (_AdvancedToken *AdvancedTokenSession) SpreadMultiplier() (*big.Int, error)

SpreadMultiplier is a free data retrieval call binding the contract method 0xd84d2a47.

Solidity: function spreadMultiplier() view returns(uint256)

func (*AdvancedTokenSession) Symbol

func (_AdvancedToken *AdvancedTokenSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*AdvancedTokenSession) TokenizedRegistry

func (_AdvancedToken *AdvancedTokenSession) TokenizedRegistry() (common.Address, error)

TokenizedRegistry is a free data retrieval call binding the contract method 0x736ee3d3.

Solidity: function tokenizedRegistry() view returns(address)

func (*AdvancedTokenSession) TotalAssetBorrow

func (_AdvancedToken *AdvancedTokenSession) TotalAssetBorrow() (*big.Int, error)

TotalAssetBorrow is a free data retrieval call binding the contract method 0x20f6d07c.

Solidity: function totalAssetBorrow() view returns(uint256)

func (*AdvancedTokenSession) TotalSupply

func (_AdvancedToken *AdvancedTokenSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*AdvancedTokenSession) TransferOwnership

func (_AdvancedToken *AdvancedTokenSession) 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 (*AdvancedTokenSession) WethContract

func (_AdvancedToken *AdvancedTokenSession) WethContract() (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type AdvancedTokenStorage

type AdvancedTokenStorage struct {
	AdvancedTokenStorageCaller     // Read-only binding to the contract
	AdvancedTokenStorageTransactor // Write-only binding to the contract
	AdvancedTokenStorageFilterer   // Log filterer for contract events
}

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

func DeployAdvancedTokenStorage

func DeployAdvancedTokenStorage(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *AdvancedTokenStorage, error)

DeployAdvancedTokenStorage deploys a new Ethereum contract, binding an instance of AdvancedTokenStorage to it.

func NewAdvancedTokenStorage

func NewAdvancedTokenStorage(address common.Address, backend bind.ContractBackend) (*AdvancedTokenStorage, error)

NewAdvancedTokenStorage creates a new instance of AdvancedTokenStorage, bound to a specific deployed contract.

type AdvancedTokenStorageApproval

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

AdvancedTokenStorageApproval represents a Approval event raised by the AdvancedTokenStorage contract.

type AdvancedTokenStorageApprovalIterator

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

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

func (*AdvancedTokenStorageApprovalIterator) Close

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

func (*AdvancedTokenStorageApprovalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenStorageApprovalIterator) 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 AdvancedTokenStorageBorrow

type AdvancedTokenStorageBorrow struct {
	Borrower                common.Address
	BorrowAmount            *big.Int
	InterestRate            *big.Int
	CollateralTokenAddress  common.Address
	TradeTokenToFillAddress common.Address
	WithdrawOnOpen          bool
	Raw                     types.Log // Blockchain specific contextual infos
}

AdvancedTokenStorageBorrow represents a Borrow event raised by the AdvancedTokenStorage contract.

type AdvancedTokenStorageBorrowIterator

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

AdvancedTokenStorageBorrowIterator is returned from FilterBorrow and is used to iterate over the raw logs and unpacked data for Borrow events raised by the AdvancedTokenStorage contract.

func (*AdvancedTokenStorageBorrowIterator) Close

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

func (*AdvancedTokenStorageBorrowIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenStorageBorrowIterator) 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 AdvancedTokenStorageBurn

type AdvancedTokenStorageBurn struct {
	Burner      common.Address
	TokenAmount *big.Int
	AssetAmount *big.Int
	Price       *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

AdvancedTokenStorageBurn represents a Burn event raised by the AdvancedTokenStorage contract.

type AdvancedTokenStorageBurnIterator

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

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

func (*AdvancedTokenStorageBurnIterator) Close

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

func (*AdvancedTokenStorageBurnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenStorageBurnIterator) 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 AdvancedTokenStorageCaller

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

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

func NewAdvancedTokenStorageCaller

func NewAdvancedTokenStorageCaller(address common.Address, caller bind.ContractCaller) (*AdvancedTokenStorageCaller, error)

NewAdvancedTokenStorageCaller creates a new read-only instance of AdvancedTokenStorage, bound to a specific deployed contract.

func (*AdvancedTokenStorageCaller) Allowance

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) 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 (*AdvancedTokenStorageCaller) BZxContract

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) BZxContract(opts *bind.CallOpts) (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*AdvancedTokenStorageCaller) BZxOracle

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) BZxOracle(opts *bind.CallOpts) (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*AdvancedTokenStorageCaller) BZxVault

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) BZxVault(opts *bind.CallOpts) (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*AdvancedTokenStorageCaller) BalanceOf

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)

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

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

func (*AdvancedTokenStorageCaller) BaseRate

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) BaseRate(opts *bind.CallOpts) (*big.Int, error)

BaseRate is a free data retrieval call binding the contract method 0x1f68f20a.

Solidity: function baseRate() view returns(uint256)

func (*AdvancedTokenStorageCaller) BurntTokenReserveList

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) BurntTokenReserveList(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Lender common.Address
	Amount *big.Int
}, error)

BurntTokenReserveList is a free data retrieval call binding the contract method 0x7866c6c1.

Solidity: function burntTokenReserveList(uint256 ) view returns(address lender, uint256 amount)

func (*AdvancedTokenStorageCaller) BurntTokenReserveListIndex

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) BurntTokenReserveListIndex(opts *bind.CallOpts, arg0 common.Address) (struct {
	Index *big.Int
	IsSet bool
}, error)

BurntTokenReserveListIndex is a free data retrieval call binding the contract method 0xfbd9574d.

Solidity: function burntTokenReserveListIndex(address ) view returns(uint256 index, bool isSet)

func (*AdvancedTokenStorageCaller) BurntTokenReserved

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) BurntTokenReserved(opts *bind.CallOpts) (*big.Int, error)

BurntTokenReserved is a free data retrieval call binding the contract method 0x0c4925fd.

Solidity: function burntTokenReserved() view returns(uint256)

func (*AdvancedTokenStorageCaller) CheckpointSupply

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) CheckpointSupply(opts *bind.CallOpts) (*big.Int, error)

CheckpointSupply is a free data retrieval call binding the contract method 0x7b7933b4.

Solidity: function checkpointSupply() view returns(uint256)

func (*AdvancedTokenStorageCaller) Decimals

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) 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 (*AdvancedTokenStorageCaller) InitialPrice

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) InitialPrice(opts *bind.CallOpts) (*big.Int, error)

InitialPrice is a free data retrieval call binding the contract method 0x1d0806ae.

Solidity: function initialPrice() view returns(uint256)

func (*AdvancedTokenStorageCaller) LeverageList

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) LeverageList(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

LeverageList is a free data retrieval call binding the contract method 0x9b3a54d1.

Solidity: function leverageList(uint256 ) view returns(uint256)

func (*AdvancedTokenStorageCaller) LoanOrderData

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) LoanOrderData(opts *bind.CallOpts, arg0 [32]byte) (struct {
	LoanOrderHash               [32]byte
	LeverageAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	Index                       *big.Int
	MarginPremiumAmount         *big.Int
	CollateralTokenAddress      common.Address
}, error)

LoanOrderData is a free data retrieval call binding the contract method 0x2515aacd.

Solidity: function loanOrderData(bytes32 ) view returns(bytes32 loanOrderHash, uint256 leverageAmount, uint256 initialMarginAmount, uint256 maintenanceMarginAmount, uint256 maxDurationUnixTimestampSec, uint256 index, uint256 marginPremiumAmount, address collateralTokenAddress)

func (*AdvancedTokenStorageCaller) LoanOrderHashes

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) LoanOrderHashes(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

LoanOrderHashes is a free data retrieval call binding the contract method 0xfe056342.

Solidity: function loanOrderHashes(uint256 ) view returns(bytes32)

func (*AdvancedTokenStorageCaller) LoanTokenAddress

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) LoanTokenAddress(opts *bind.CallOpts) (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*AdvancedTokenStorageCaller) Name

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) 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 (*AdvancedTokenStorageCaller) Owner

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) 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 (*AdvancedTokenStorageCaller) RateMultiplier

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) RateMultiplier(opts *bind.CallOpts) (*big.Int, error)

RateMultiplier is a free data retrieval call binding the contract method 0x330691ac.

Solidity: function rateMultiplier() view returns(uint256)

func (*AdvancedTokenStorageCaller) SpreadMultiplier

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) SpreadMultiplier(opts *bind.CallOpts) (*big.Int, error)

SpreadMultiplier is a free data retrieval call binding the contract method 0xd84d2a47.

Solidity: function spreadMultiplier() view returns(uint256)

func (*AdvancedTokenStorageCaller) Symbol

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) 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 (*AdvancedTokenStorageCaller) TokenizedRegistry

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) TokenizedRegistry(opts *bind.CallOpts) (common.Address, error)

TokenizedRegistry is a free data retrieval call binding the contract method 0x736ee3d3.

Solidity: function tokenizedRegistry() view returns(address)

func (*AdvancedTokenStorageCaller) TotalAssetBorrow

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) TotalAssetBorrow(opts *bind.CallOpts) (*big.Int, error)

TotalAssetBorrow is a free data retrieval call binding the contract method 0x20f6d07c.

Solidity: function totalAssetBorrow() view returns(uint256)

func (*AdvancedTokenStorageCaller) TotalSupply

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) 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 (*AdvancedTokenStorageCaller) WethContract

func (_AdvancedTokenStorage *AdvancedTokenStorageCaller) WethContract(opts *bind.CallOpts) (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type AdvancedTokenStorageCallerRaw

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

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

func (*AdvancedTokenStorageCallerRaw) Call

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerRaw) 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 AdvancedTokenStorageCallerSession

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

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

func (*AdvancedTokenStorageCallerSession) Allowance

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) 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 (*AdvancedTokenStorageCallerSession) BZxContract

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) BZxContract() (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*AdvancedTokenStorageCallerSession) BZxOracle

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) BZxOracle() (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*AdvancedTokenStorageCallerSession) BZxVault

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) BZxVault() (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*AdvancedTokenStorageCallerSession) BalanceOf

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) BalanceOf(_owner common.Address) (*big.Int, error)

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

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

func (*AdvancedTokenStorageCallerSession) BaseRate

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) BaseRate() (*big.Int, error)

BaseRate is a free data retrieval call binding the contract method 0x1f68f20a.

Solidity: function baseRate() view returns(uint256)

func (*AdvancedTokenStorageCallerSession) BurntTokenReserveList

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) BurntTokenReserveList(arg0 *big.Int) (struct {
	Lender common.Address
	Amount *big.Int
}, error)

BurntTokenReserveList is a free data retrieval call binding the contract method 0x7866c6c1.

Solidity: function burntTokenReserveList(uint256 ) view returns(address lender, uint256 amount)

func (*AdvancedTokenStorageCallerSession) BurntTokenReserveListIndex

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) BurntTokenReserveListIndex(arg0 common.Address) (struct {
	Index *big.Int
	IsSet bool
}, error)

BurntTokenReserveListIndex is a free data retrieval call binding the contract method 0xfbd9574d.

Solidity: function burntTokenReserveListIndex(address ) view returns(uint256 index, bool isSet)

func (*AdvancedTokenStorageCallerSession) BurntTokenReserved

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) BurntTokenReserved() (*big.Int, error)

BurntTokenReserved is a free data retrieval call binding the contract method 0x0c4925fd.

Solidity: function burntTokenReserved() view returns(uint256)

func (*AdvancedTokenStorageCallerSession) CheckpointSupply

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) CheckpointSupply() (*big.Int, error)

CheckpointSupply is a free data retrieval call binding the contract method 0x7b7933b4.

Solidity: function checkpointSupply() view returns(uint256)

func (*AdvancedTokenStorageCallerSession) Decimals

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*AdvancedTokenStorageCallerSession) InitialPrice

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) InitialPrice() (*big.Int, error)

InitialPrice is a free data retrieval call binding the contract method 0x1d0806ae.

Solidity: function initialPrice() view returns(uint256)

func (*AdvancedTokenStorageCallerSession) LeverageList

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) LeverageList(arg0 *big.Int) (*big.Int, error)

LeverageList is a free data retrieval call binding the contract method 0x9b3a54d1.

Solidity: function leverageList(uint256 ) view returns(uint256)

func (*AdvancedTokenStorageCallerSession) LoanOrderData

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) LoanOrderData(arg0 [32]byte) (struct {
	LoanOrderHash               [32]byte
	LeverageAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	Index                       *big.Int
	MarginPremiumAmount         *big.Int
	CollateralTokenAddress      common.Address
}, error)

LoanOrderData is a free data retrieval call binding the contract method 0x2515aacd.

Solidity: function loanOrderData(bytes32 ) view returns(bytes32 loanOrderHash, uint256 leverageAmount, uint256 initialMarginAmount, uint256 maintenanceMarginAmount, uint256 maxDurationUnixTimestampSec, uint256 index, uint256 marginPremiumAmount, address collateralTokenAddress)

func (*AdvancedTokenStorageCallerSession) LoanOrderHashes

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) LoanOrderHashes(arg0 *big.Int) ([32]byte, error)

LoanOrderHashes is a free data retrieval call binding the contract method 0xfe056342.

Solidity: function loanOrderHashes(uint256 ) view returns(bytes32)

func (*AdvancedTokenStorageCallerSession) LoanTokenAddress

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) LoanTokenAddress() (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*AdvancedTokenStorageCallerSession) Name

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*AdvancedTokenStorageCallerSession) Owner

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*AdvancedTokenStorageCallerSession) RateMultiplier

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) RateMultiplier() (*big.Int, error)

RateMultiplier is a free data retrieval call binding the contract method 0x330691ac.

Solidity: function rateMultiplier() view returns(uint256)

func (*AdvancedTokenStorageCallerSession) SpreadMultiplier

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) SpreadMultiplier() (*big.Int, error)

SpreadMultiplier is a free data retrieval call binding the contract method 0xd84d2a47.

Solidity: function spreadMultiplier() view returns(uint256)

func (*AdvancedTokenStorageCallerSession) Symbol

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*AdvancedTokenStorageCallerSession) TokenizedRegistry

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) TokenizedRegistry() (common.Address, error)

TokenizedRegistry is a free data retrieval call binding the contract method 0x736ee3d3.

Solidity: function tokenizedRegistry() view returns(address)

func (*AdvancedTokenStorageCallerSession) TotalAssetBorrow

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) TotalAssetBorrow() (*big.Int, error)

TotalAssetBorrow is a free data retrieval call binding the contract method 0x20f6d07c.

Solidity: function totalAssetBorrow() view returns(uint256)

func (*AdvancedTokenStorageCallerSession) TotalSupply

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*AdvancedTokenStorageCallerSession) WethContract

func (_AdvancedTokenStorage *AdvancedTokenStorageCallerSession) WethContract() (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type AdvancedTokenStorageClaim

type AdvancedTokenStorageClaim struct {
	Claimant             common.Address
	TokenAmount          *big.Int
	AssetAmount          *big.Int
	RemainingTokenAmount *big.Int
	Price                *big.Int
	Raw                  types.Log // Blockchain specific contextual infos
}

AdvancedTokenStorageClaim represents a Claim event raised by the AdvancedTokenStorage contract.

type AdvancedTokenStorageClaimIterator

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

AdvancedTokenStorageClaimIterator is returned from FilterClaim and is used to iterate over the raw logs and unpacked data for Claim events raised by the AdvancedTokenStorage contract.

func (*AdvancedTokenStorageClaimIterator) Close

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

func (*AdvancedTokenStorageClaimIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenStorageClaimIterator) 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 AdvancedTokenStorageFilterer

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

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

func NewAdvancedTokenStorageFilterer

func NewAdvancedTokenStorageFilterer(address common.Address, filterer bind.ContractFilterer) (*AdvancedTokenStorageFilterer, error)

NewAdvancedTokenStorageFilterer creates a new log filterer instance of AdvancedTokenStorage, bound to a specific deployed contract.

func (*AdvancedTokenStorageFilterer) FilterApproval

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*AdvancedTokenStorageApprovalIterator, 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 (*AdvancedTokenStorageFilterer) FilterBorrow

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) FilterBorrow(opts *bind.FilterOpts, borrower []common.Address) (*AdvancedTokenStorageBorrowIterator, error)

FilterBorrow is a free log retrieval operation binding the contract event 0x86e15dd78cd784ab7788bcf5b96b9395e86030e048e5faedcfe752c700f6157e.

Solidity: event Borrow(address indexed borrower, uint256 borrowAmount, uint256 interestRate, address collateralTokenAddress, address tradeTokenToFillAddress, bool withdrawOnOpen)

func (*AdvancedTokenStorageFilterer) FilterBurn

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) FilterBurn(opts *bind.FilterOpts, burner []common.Address) (*AdvancedTokenStorageBurnIterator, error)

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

Solidity: event Burn(address indexed burner, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*AdvancedTokenStorageFilterer) FilterClaim

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) FilterClaim(opts *bind.FilterOpts, claimant []common.Address) (*AdvancedTokenStorageClaimIterator, error)

FilterClaim is a free log retrieval operation binding the contract event 0x68e1caf97c4c29c1ac46024e9590f80b7a1f690d393703879cf66eea4e1e8421.

Solidity: event Claim(address indexed claimant, uint256 tokenAmount, uint256 assetAmount, uint256 remainingTokenAmount, uint256 price)

func (*AdvancedTokenStorageFilterer) FilterMint

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) FilterMint(opts *bind.FilterOpts, minter []common.Address) (*AdvancedTokenStorageMintIterator, error)

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

Solidity: event Mint(address indexed minter, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*AdvancedTokenStorageFilterer) FilterOwnershipTransferred

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AdvancedTokenStorageOwnershipTransferredIterator, error)

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

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

func (*AdvancedTokenStorageFilterer) FilterRepay

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) FilterRepay(opts *bind.FilterOpts, loanOrderHash [][32]byte, borrower []common.Address) (*AdvancedTokenStorageRepayIterator, error)

FilterRepay is a free log retrieval operation binding the contract event 0x85dfc0033a3e5b3b9b3151bd779c1f9b855d66b83ff5bb79283b68d82e8e5b73.

Solidity: event Repay(bytes32 indexed loanOrderHash, address indexed borrower, address closer, uint256 amount, bool isLiquidation)

func (*AdvancedTokenStorageFilterer) FilterTransfer

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

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) ParseApproval(log types.Log) (*AdvancedTokenStorageApproval, error)

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

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

func (*AdvancedTokenStorageFilterer) ParseBorrow

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) ParseBorrow(log types.Log) (*AdvancedTokenStorageBorrow, error)

ParseBorrow is a log parse operation binding the contract event 0x86e15dd78cd784ab7788bcf5b96b9395e86030e048e5faedcfe752c700f6157e.

Solidity: event Borrow(address indexed borrower, uint256 borrowAmount, uint256 interestRate, address collateralTokenAddress, address tradeTokenToFillAddress, bool withdrawOnOpen)

func (*AdvancedTokenStorageFilterer) ParseBurn

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) ParseBurn(log types.Log) (*AdvancedTokenStorageBurn, error)

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

Solidity: event Burn(address indexed burner, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*AdvancedTokenStorageFilterer) ParseClaim

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) ParseClaim(log types.Log) (*AdvancedTokenStorageClaim, error)

ParseClaim is a log parse operation binding the contract event 0x68e1caf97c4c29c1ac46024e9590f80b7a1f690d393703879cf66eea4e1e8421.

Solidity: event Claim(address indexed claimant, uint256 tokenAmount, uint256 assetAmount, uint256 remainingTokenAmount, uint256 price)

func (*AdvancedTokenStorageFilterer) ParseMint

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) ParseMint(log types.Log) (*AdvancedTokenStorageMint, error)

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

Solidity: event Mint(address indexed minter, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*AdvancedTokenStorageFilterer) ParseOwnershipTransferred

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) ParseOwnershipTransferred(log types.Log) (*AdvancedTokenStorageOwnershipTransferred, error)

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

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

func (*AdvancedTokenStorageFilterer) ParseRepay

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) ParseRepay(log types.Log) (*AdvancedTokenStorageRepay, error)

ParseRepay is a log parse operation binding the contract event 0x85dfc0033a3e5b3b9b3151bd779c1f9b855d66b83ff5bb79283b68d82e8e5b73.

Solidity: event Repay(bytes32 indexed loanOrderHash, address indexed borrower, address closer, uint256 amount, bool isLiquidation)

func (*AdvancedTokenStorageFilterer) ParseTransfer

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) ParseTransfer(log types.Log) (*AdvancedTokenStorageTransfer, error)

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

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

func (*AdvancedTokenStorageFilterer) WatchApproval

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *AdvancedTokenStorageApproval, 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 (*AdvancedTokenStorageFilterer) WatchBorrow

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) WatchBorrow(opts *bind.WatchOpts, sink chan<- *AdvancedTokenStorageBorrow, borrower []common.Address) (event.Subscription, error)

WatchBorrow is a free log subscription operation binding the contract event 0x86e15dd78cd784ab7788bcf5b96b9395e86030e048e5faedcfe752c700f6157e.

Solidity: event Borrow(address indexed borrower, uint256 borrowAmount, uint256 interestRate, address collateralTokenAddress, address tradeTokenToFillAddress, bool withdrawOnOpen)

func (*AdvancedTokenStorageFilterer) WatchBurn

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *AdvancedTokenStorageBurn, burner []common.Address) (event.Subscription, error)

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

Solidity: event Burn(address indexed burner, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*AdvancedTokenStorageFilterer) WatchClaim

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *AdvancedTokenStorageClaim, claimant []common.Address) (event.Subscription, error)

WatchClaim is a free log subscription operation binding the contract event 0x68e1caf97c4c29c1ac46024e9590f80b7a1f690d393703879cf66eea4e1e8421.

Solidity: event Claim(address indexed claimant, uint256 tokenAmount, uint256 assetAmount, uint256 remainingTokenAmount, uint256 price)

func (*AdvancedTokenStorageFilterer) WatchMint

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *AdvancedTokenStorageMint, minter []common.Address) (event.Subscription, error)

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

Solidity: event Mint(address indexed minter, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*AdvancedTokenStorageFilterer) WatchOwnershipTransferred

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AdvancedTokenStorageOwnershipTransferred, 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 (*AdvancedTokenStorageFilterer) WatchRepay

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) WatchRepay(opts *bind.WatchOpts, sink chan<- *AdvancedTokenStorageRepay, loanOrderHash [][32]byte, borrower []common.Address) (event.Subscription, error)

WatchRepay is a free log subscription operation binding the contract event 0x85dfc0033a3e5b3b9b3151bd779c1f9b855d66b83ff5bb79283b68d82e8e5b73.

Solidity: event Repay(bytes32 indexed loanOrderHash, address indexed borrower, address closer, uint256 amount, bool isLiquidation)

func (*AdvancedTokenStorageFilterer) WatchTransfer

func (_AdvancedTokenStorage *AdvancedTokenStorageFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *AdvancedTokenStorageTransfer, 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 AdvancedTokenStorageMint

type AdvancedTokenStorageMint struct {
	Minter      common.Address
	TokenAmount *big.Int
	AssetAmount *big.Int
	Price       *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

AdvancedTokenStorageMint represents a Mint event raised by the AdvancedTokenStorage contract.

type AdvancedTokenStorageMintIterator

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

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

func (*AdvancedTokenStorageMintIterator) Close

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

func (*AdvancedTokenStorageMintIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenStorageMintIterator) 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 AdvancedTokenStorageOwnershipTransferred

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

AdvancedTokenStorageOwnershipTransferred represents a OwnershipTransferred event raised by the AdvancedTokenStorage contract.

type AdvancedTokenStorageOwnershipTransferredIterator

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

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

func (*AdvancedTokenStorageOwnershipTransferredIterator) Close

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

func (*AdvancedTokenStorageOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenStorageOwnershipTransferredIterator) 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 AdvancedTokenStorageRaw

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

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

func (*AdvancedTokenStorageRaw) Call

func (_AdvancedTokenStorage *AdvancedTokenStorageRaw) 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 (*AdvancedTokenStorageRaw) Transact

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

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

func (*AdvancedTokenStorageRaw) Transfer

func (_AdvancedTokenStorage *AdvancedTokenStorageRaw) 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 AdvancedTokenStorageRepay

type AdvancedTokenStorageRepay struct {
	LoanOrderHash [32]byte
	Borrower      common.Address
	Closer        common.Address
	Amount        *big.Int
	IsLiquidation bool
	Raw           types.Log // Blockchain specific contextual infos
}

AdvancedTokenStorageRepay represents a Repay event raised by the AdvancedTokenStorage contract.

type AdvancedTokenStorageRepayIterator

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

AdvancedTokenStorageRepayIterator is returned from FilterRepay and is used to iterate over the raw logs and unpacked data for Repay events raised by the AdvancedTokenStorage contract.

func (*AdvancedTokenStorageRepayIterator) Close

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

func (*AdvancedTokenStorageRepayIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenStorageRepayIterator) 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 AdvancedTokenStorageSession

type AdvancedTokenStorageSession struct {
	Contract     *AdvancedTokenStorage // 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
}

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

func (*AdvancedTokenStorageSession) Allowance

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) 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 (*AdvancedTokenStorageSession) BZxContract

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) BZxContract() (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*AdvancedTokenStorageSession) BZxOracle

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) BZxOracle() (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*AdvancedTokenStorageSession) BZxVault

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) BZxVault() (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*AdvancedTokenStorageSession) BalanceOf

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) BalanceOf(_owner common.Address) (*big.Int, error)

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

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

func (*AdvancedTokenStorageSession) BaseRate

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) BaseRate() (*big.Int, error)

BaseRate is a free data retrieval call binding the contract method 0x1f68f20a.

Solidity: function baseRate() view returns(uint256)

func (*AdvancedTokenStorageSession) BurntTokenReserveList

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) BurntTokenReserveList(arg0 *big.Int) (struct {
	Lender common.Address
	Amount *big.Int
}, error)

BurntTokenReserveList is a free data retrieval call binding the contract method 0x7866c6c1.

Solidity: function burntTokenReserveList(uint256 ) view returns(address lender, uint256 amount)

func (*AdvancedTokenStorageSession) BurntTokenReserveListIndex

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) BurntTokenReserveListIndex(arg0 common.Address) (struct {
	Index *big.Int
	IsSet bool
}, error)

BurntTokenReserveListIndex is a free data retrieval call binding the contract method 0xfbd9574d.

Solidity: function burntTokenReserveListIndex(address ) view returns(uint256 index, bool isSet)

func (*AdvancedTokenStorageSession) BurntTokenReserved

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) BurntTokenReserved() (*big.Int, error)

BurntTokenReserved is a free data retrieval call binding the contract method 0x0c4925fd.

Solidity: function burntTokenReserved() view returns(uint256)

func (*AdvancedTokenStorageSession) CheckpointSupply

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) CheckpointSupply() (*big.Int, error)

CheckpointSupply is a free data retrieval call binding the contract method 0x7b7933b4.

Solidity: function checkpointSupply() view returns(uint256)

func (*AdvancedTokenStorageSession) Decimals

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*AdvancedTokenStorageSession) InitialPrice

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) InitialPrice() (*big.Int, error)

InitialPrice is a free data retrieval call binding the contract method 0x1d0806ae.

Solidity: function initialPrice() view returns(uint256)

func (*AdvancedTokenStorageSession) LeverageList

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) LeverageList(arg0 *big.Int) (*big.Int, error)

LeverageList is a free data retrieval call binding the contract method 0x9b3a54d1.

Solidity: function leverageList(uint256 ) view returns(uint256)

func (*AdvancedTokenStorageSession) LoanOrderData

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) LoanOrderData(arg0 [32]byte) (struct {
	LoanOrderHash               [32]byte
	LeverageAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	Index                       *big.Int
	MarginPremiumAmount         *big.Int
	CollateralTokenAddress      common.Address
}, error)

LoanOrderData is a free data retrieval call binding the contract method 0x2515aacd.

Solidity: function loanOrderData(bytes32 ) view returns(bytes32 loanOrderHash, uint256 leverageAmount, uint256 initialMarginAmount, uint256 maintenanceMarginAmount, uint256 maxDurationUnixTimestampSec, uint256 index, uint256 marginPremiumAmount, address collateralTokenAddress)

func (*AdvancedTokenStorageSession) LoanOrderHashes

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) LoanOrderHashes(arg0 *big.Int) ([32]byte, error)

LoanOrderHashes is a free data retrieval call binding the contract method 0xfe056342.

Solidity: function loanOrderHashes(uint256 ) view returns(bytes32)

func (*AdvancedTokenStorageSession) LoanTokenAddress

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) LoanTokenAddress() (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*AdvancedTokenStorageSession) Name

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*AdvancedTokenStorageSession) Owner

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*AdvancedTokenStorageSession) RateMultiplier

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) RateMultiplier() (*big.Int, error)

RateMultiplier is a free data retrieval call binding the contract method 0x330691ac.

Solidity: function rateMultiplier() view returns(uint256)

func (*AdvancedTokenStorageSession) SpreadMultiplier

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) SpreadMultiplier() (*big.Int, error)

SpreadMultiplier is a free data retrieval call binding the contract method 0xd84d2a47.

Solidity: function spreadMultiplier() view returns(uint256)

func (*AdvancedTokenStorageSession) Symbol

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*AdvancedTokenStorageSession) TokenizedRegistry

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) TokenizedRegistry() (common.Address, error)

TokenizedRegistry is a free data retrieval call binding the contract method 0x736ee3d3.

Solidity: function tokenizedRegistry() view returns(address)

func (*AdvancedTokenStorageSession) TotalAssetBorrow

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) TotalAssetBorrow() (*big.Int, error)

TotalAssetBorrow is a free data retrieval call binding the contract method 0x20f6d07c.

Solidity: function totalAssetBorrow() view returns(uint256)

func (*AdvancedTokenStorageSession) TotalSupply

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*AdvancedTokenStorageSession) TransferOwnership

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) 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 (*AdvancedTokenStorageSession) WethContract

func (_AdvancedTokenStorage *AdvancedTokenStorageSession) WethContract() (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type AdvancedTokenStorageTransactor

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

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

func NewAdvancedTokenStorageTransactor

func NewAdvancedTokenStorageTransactor(address common.Address, transactor bind.ContractTransactor) (*AdvancedTokenStorageTransactor, error)

NewAdvancedTokenStorageTransactor creates a new write-only instance of AdvancedTokenStorage, bound to a specific deployed contract.

func (*AdvancedTokenStorageTransactor) TransferOwnership

func (_AdvancedTokenStorage *AdvancedTokenStorageTransactor) 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()

type AdvancedTokenStorageTransactorRaw

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

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

func (*AdvancedTokenStorageTransactorRaw) Transact

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

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

func (*AdvancedTokenStorageTransactorRaw) Transfer

func (_AdvancedTokenStorage *AdvancedTokenStorageTransactorRaw) 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 AdvancedTokenStorageTransactorSession

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

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

func (*AdvancedTokenStorageTransactorSession) TransferOwnership

func (_AdvancedTokenStorage *AdvancedTokenStorageTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address _newOwner) returns()

type AdvancedTokenStorageTransfer

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

AdvancedTokenStorageTransfer represents a Transfer event raised by the AdvancedTokenStorage contract.

type AdvancedTokenStorageTransferIterator

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

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

func (*AdvancedTokenStorageTransferIterator) Close

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

func (*AdvancedTokenStorageTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenStorageTransferIterator) 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 AdvancedTokenTransactor

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

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

func NewAdvancedTokenTransactor

func NewAdvancedTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*AdvancedTokenTransactor, error)

NewAdvancedTokenTransactor creates a new write-only instance of AdvancedToken, bound to a specific deployed contract.

func (*AdvancedTokenTransactor) Approve

func (_AdvancedToken *AdvancedTokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*AdvancedTokenTransactor) TransferOwnership

func (_AdvancedToken *AdvancedTokenTransactor) 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()

type AdvancedTokenTransactorRaw

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

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

func (*AdvancedTokenTransactorRaw) Transact

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

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

func (*AdvancedTokenTransactorRaw) Transfer

func (_AdvancedToken *AdvancedTokenTransactorRaw) 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 AdvancedTokenTransactorSession

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

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

func (*AdvancedTokenTransactorSession) Approve

func (_AdvancedToken *AdvancedTokenTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*AdvancedTokenTransactorSession) TransferOwnership

func (_AdvancedToken *AdvancedTokenTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address _newOwner) returns()

type AdvancedTokenTransfer

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

AdvancedTokenTransfer represents a Transfer event raised by the AdvancedToken contract.

type AdvancedTokenTransferIterator

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

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

func (*AdvancedTokenTransferIterator) Close

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

func (*AdvancedTokenTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AdvancedTokenTransferIterator) 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 BZxObjects

type BZxObjects struct {
	BZxObjectsCaller     // Read-only binding to the contract
	BZxObjectsTransactor // Write-only binding to the contract
	BZxObjectsFilterer   // Log filterer for contract events
}

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

func DeployBZxObjects

func DeployBZxObjects(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *BZxObjects, error)

DeployBZxObjects deploys a new Ethereum contract, binding an instance of BZxObjects to it.

func NewBZxObjects

func NewBZxObjects(address common.Address, backend bind.ContractBackend) (*BZxObjects, error)

NewBZxObjects creates a new instance of BZxObjects, bound to a specific deployed contract.

type BZxObjectsCaller

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

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

func NewBZxObjectsCaller

func NewBZxObjectsCaller(address common.Address, caller bind.ContractCaller) (*BZxObjectsCaller, error)

NewBZxObjectsCaller creates a new read-only instance of BZxObjects, bound to a specific deployed contract.

type BZxObjectsCallerRaw

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

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

func (*BZxObjectsCallerRaw) Call

func (_BZxObjects *BZxObjectsCallerRaw) 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 BZxObjectsCallerSession

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

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

type BZxObjectsFilterer

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

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

func NewBZxObjectsFilterer

func NewBZxObjectsFilterer(address common.Address, filterer bind.ContractFilterer) (*BZxObjectsFilterer, error)

NewBZxObjectsFilterer creates a new log filterer instance of BZxObjects, bound to a specific deployed contract.

type BZxObjectsLoanOrder

type BZxObjectsLoanOrder struct {
	LoanTokenAddress            common.Address
	InterestTokenAddress        common.Address
	CollateralTokenAddress      common.Address
	OracleAddress               common.Address
	LoanTokenAmount             *big.Int
	InterestAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	LoanOrderHash               [32]byte
}

BZxObjectsLoanOrder is an auto generated low-level Go binding around an user-defined struct.

type BZxObjectsLoanPosition

type BZxObjectsLoanPosition struct {
	Trader                       common.Address
	CollateralTokenAddressFilled common.Address
	PositionTokenAddressFilled   common.Address
	LoanTokenAmountFilled        *big.Int
	LoanTokenAmountUsed          *big.Int
	CollateralTokenAmountFilled  *big.Int
	PositionTokenAmountFilled    *big.Int
	LoanStartUnixTimestampSec    *big.Int
	LoanEndUnixTimestampSec      *big.Int
	Active                       bool
	PositionId                   *big.Int
}

BZxObjectsLoanPosition is an auto generated low-level Go binding around an user-defined struct.

type BZxObjectsRaw

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

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

func (*BZxObjectsRaw) Call

func (_BZxObjects *BZxObjectsRaw) 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 (*BZxObjectsRaw) Transact

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

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

func (*BZxObjectsRaw) Transfer

func (_BZxObjects *BZxObjectsRaw) 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 BZxObjectsSession

type BZxObjectsSession struct {
	Contract     *BZxObjects       // 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
}

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

type BZxObjectsTransactor

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

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

func NewBZxObjectsTransactor

func NewBZxObjectsTransactor(address common.Address, transactor bind.ContractTransactor) (*BZxObjectsTransactor, error)

NewBZxObjectsTransactor creates a new write-only instance of BZxObjects, bound to a specific deployed contract.

type BZxObjectsTransactorRaw

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

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

func (*BZxObjectsTransactorRaw) Transact

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

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

func (*BZxObjectsTransactorRaw) Transfer

func (_BZxObjects *BZxObjectsTransactorRaw) 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 BZxObjectsTransactorSession

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

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

type EIP20

type EIP20 struct {
	EIP20Caller     // Read-only binding to the contract
	EIP20Transactor // Write-only binding to the contract
	EIP20Filterer   // Log filterer for contract events
}

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

func NewEIP20

func NewEIP20(address common.Address, backend bind.ContractBackend) (*EIP20, error)

NewEIP20 creates a new instance of EIP20, bound to a specific deployed contract.

type EIP20Approval

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

EIP20Approval represents a Approval event raised by the EIP20 contract.

type EIP20ApprovalIterator

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

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

func (*EIP20ApprovalIterator) Close

func (it *EIP20ApprovalIterator) Close() error

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

func (*EIP20ApprovalIterator) Error

func (it *EIP20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*EIP20ApprovalIterator) Next

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

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

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

func NewEIP20Caller

func NewEIP20Caller(address common.Address, caller bind.ContractCaller) (*EIP20Caller, error)

NewEIP20Caller creates a new read-only instance of EIP20, bound to a specific deployed contract.

func (*EIP20Caller) Allowance

func (_EIP20 *EIP20Caller) 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 (*EIP20Caller) BalanceOf

func (_EIP20 *EIP20Caller) BalanceOf(opts *bind.CallOpts, _who common.Address) (*big.Int, error)

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

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

func (*EIP20Caller) Decimals

func (_EIP20 *EIP20Caller) 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 (*EIP20Caller) Name

func (_EIP20 *EIP20Caller) 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 (*EIP20Caller) Symbol

func (_EIP20 *EIP20Caller) 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 (*EIP20Caller) TotalSupply

func (_EIP20 *EIP20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type EIP20CallerRaw

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

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

func (*EIP20CallerRaw) Call

func (_EIP20 *EIP20CallerRaw) 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 EIP20CallerSession

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

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

func (*EIP20CallerSession) Allowance

func (_EIP20 *EIP20CallerSession) 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 (*EIP20CallerSession) BalanceOf

func (_EIP20 *EIP20CallerSession) BalanceOf(_who common.Address) (*big.Int, error)

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

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

func (*EIP20CallerSession) Decimals

func (_EIP20 *EIP20CallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*EIP20CallerSession) Name

func (_EIP20 *EIP20CallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*EIP20CallerSession) Symbol

func (_EIP20 *EIP20CallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*EIP20CallerSession) TotalSupply

func (_EIP20 *EIP20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type EIP20Filterer

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

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

func NewEIP20Filterer

func NewEIP20Filterer(address common.Address, filterer bind.ContractFilterer) (*EIP20Filterer, error)

NewEIP20Filterer creates a new log filterer instance of EIP20, bound to a specific deployed contract.

func (*EIP20Filterer) FilterApproval

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

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

func (_EIP20 *EIP20Filterer) ParseApproval(log types.Log) (*EIP20Approval, error)

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

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

func (*EIP20Filterer) ParseTransfer

func (_EIP20 *EIP20Filterer) ParseTransfer(log types.Log) (*EIP20Transfer, error)

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

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

func (*EIP20Filterer) WatchApproval

func (_EIP20 *EIP20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *EIP20Approval, 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 (*EIP20Filterer) WatchTransfer

func (_EIP20 *EIP20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *EIP20Transfer, 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 EIP20Raw

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

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

func (*EIP20Raw) Call

func (_EIP20 *EIP20Raw) 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 (*EIP20Raw) Transact

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

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

func (*EIP20Raw) Transfer

func (_EIP20 *EIP20Raw) 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 EIP20Session

type EIP20Session struct {
	Contract     *EIP20            // 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
}

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

func (*EIP20Session) Allowance

func (_EIP20 *EIP20Session) 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 (*EIP20Session) Approve

func (_EIP20 *EIP20Session) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*EIP20Session) BalanceOf

func (_EIP20 *EIP20Session) BalanceOf(_who common.Address) (*big.Int, error)

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

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

func (*EIP20Session) Decimals

func (_EIP20 *EIP20Session) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*EIP20Session) Name

func (_EIP20 *EIP20Session) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*EIP20Session) Symbol

func (_EIP20 *EIP20Session) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*EIP20Session) TotalSupply

func (_EIP20 *EIP20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*EIP20Session) Transfer

func (_EIP20 *EIP20Session) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*EIP20Session) TransferFrom

func (_EIP20 *EIP20Session) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type EIP20Transactor

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

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

func NewEIP20Transactor

func NewEIP20Transactor(address common.Address, transactor bind.ContractTransactor) (*EIP20Transactor, error)

NewEIP20Transactor creates a new write-only instance of EIP20, bound to a specific deployed contract.

func (*EIP20Transactor) Approve

func (_EIP20 *EIP20Transactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*EIP20Transactor) Transfer

func (_EIP20 *EIP20Transactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*EIP20Transactor) TransferFrom

func (_EIP20 *EIP20Transactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type EIP20TransactorRaw

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

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

func (*EIP20TransactorRaw) Transact

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

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

func (*EIP20TransactorRaw) Transfer

func (_EIP20 *EIP20TransactorRaw) 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 EIP20TransactorSession

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

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

func (*EIP20TransactorSession) Approve

func (_EIP20 *EIP20TransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*EIP20TransactorSession) Transfer

func (_EIP20 *EIP20TransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*EIP20TransactorSession) TransferFrom

func (_EIP20 *EIP20TransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type EIP20Transfer

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

EIP20Transfer represents a Transfer event raised by the EIP20 contract.

type EIP20TransferIterator

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

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

func (*EIP20TransferIterator) Close

func (it *EIP20TransferIterator) Close() error

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

func (*EIP20TransferIterator) Error

func (it *EIP20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*EIP20TransferIterator) Next

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

type ERC20 struct {
	ERC20Caller     // Read-only binding to the contract
	ERC20Transactor // Write-only binding to the contract
	ERC20Filterer   // Log filterer for contract events
}

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

func NewERC20

func NewERC20(address common.Address, backend bind.ContractBackend) (*ERC20, error)

NewERC20 creates a new instance of ERC20, bound to a specific deployed contract.

type ERC20Approval

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

ERC20Approval represents a Approval event raised by the ERC20 contract.

type ERC20ApprovalIterator

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

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

func (*ERC20ApprovalIterator) Close

func (it *ERC20ApprovalIterator) Close() error

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

func (*ERC20ApprovalIterator) Error

func (it *ERC20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20ApprovalIterator) Next

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

type ERC20Basic struct {
	ERC20BasicCaller     // Read-only binding to the contract
	ERC20BasicTransactor // Write-only binding to the contract
	ERC20BasicFilterer   // Log filterer for contract events
}

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

func NewERC20Basic

func NewERC20Basic(address common.Address, backend bind.ContractBackend) (*ERC20Basic, error)

NewERC20Basic creates a new instance of ERC20Basic, bound to a specific deployed contract.

type ERC20BasicCaller

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

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

func NewERC20BasicCaller

func NewERC20BasicCaller(address common.Address, caller bind.ContractCaller) (*ERC20BasicCaller, error)

NewERC20BasicCaller creates a new read-only instance of ERC20Basic, bound to a specific deployed contract.

func (*ERC20BasicCaller) BalanceOf

func (_ERC20Basic *ERC20BasicCaller) BalanceOf(opts *bind.CallOpts, _who common.Address) (*big.Int, error)

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

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

func (*ERC20BasicCaller) TotalSupply

func (_ERC20Basic *ERC20BasicCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type ERC20BasicCallerRaw

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

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

func (*ERC20BasicCallerRaw) Call

func (_ERC20Basic *ERC20BasicCallerRaw) 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 ERC20BasicCallerSession

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

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

func (*ERC20BasicCallerSession) BalanceOf

func (_ERC20Basic *ERC20BasicCallerSession) BalanceOf(_who common.Address) (*big.Int, error)

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

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

func (*ERC20BasicCallerSession) TotalSupply

func (_ERC20Basic *ERC20BasicCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type ERC20BasicFilterer

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

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

func NewERC20BasicFilterer

func NewERC20BasicFilterer(address common.Address, filterer bind.ContractFilterer) (*ERC20BasicFilterer, error)

NewERC20BasicFilterer creates a new log filterer instance of ERC20Basic, bound to a specific deployed contract.

func (*ERC20BasicFilterer) FilterTransfer

func (_ERC20Basic *ERC20BasicFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20BasicTransferIterator, 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 (*ERC20BasicFilterer) ParseTransfer

func (_ERC20Basic *ERC20BasicFilterer) ParseTransfer(log types.Log) (*ERC20BasicTransfer, error)

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

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

func (*ERC20BasicFilterer) WatchTransfer

func (_ERC20Basic *ERC20BasicFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20BasicTransfer, 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 ERC20BasicRaw

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

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

func (*ERC20BasicRaw) Call

func (_ERC20Basic *ERC20BasicRaw) 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 (*ERC20BasicRaw) Transact

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

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

func (*ERC20BasicRaw) Transfer

func (_ERC20Basic *ERC20BasicRaw) 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 ERC20BasicSession

type ERC20BasicSession struct {
	Contract     *ERC20Basic       // 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
}

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

func (*ERC20BasicSession) BalanceOf

func (_ERC20Basic *ERC20BasicSession) BalanceOf(_who common.Address) (*big.Int, error)

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

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

func (*ERC20BasicSession) TotalSupply

func (_ERC20Basic *ERC20BasicSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*ERC20BasicSession) Transfer

func (_ERC20Basic *ERC20BasicSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

type ERC20BasicTransactor

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

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

func NewERC20BasicTransactor

func NewERC20BasicTransactor(address common.Address, transactor bind.ContractTransactor) (*ERC20BasicTransactor, error)

NewERC20BasicTransactor creates a new write-only instance of ERC20Basic, bound to a specific deployed contract.

func (*ERC20BasicTransactor) Transfer

func (_ERC20Basic *ERC20BasicTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

type ERC20BasicTransactorRaw

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

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

func (*ERC20BasicTransactorRaw) Transact

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

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

func (*ERC20BasicTransactorRaw) Transfer

func (_ERC20Basic *ERC20BasicTransactorRaw) 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 ERC20BasicTransactorSession

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

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

func (*ERC20BasicTransactorSession) Transfer

func (_ERC20Basic *ERC20BasicTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

type ERC20BasicTransfer

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

ERC20BasicTransfer represents a Transfer event raised by the ERC20Basic contract.

type ERC20BasicTransferIterator

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

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

func (*ERC20BasicTransferIterator) Close

func (it *ERC20BasicTransferIterator) Close() error

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

func (*ERC20BasicTransferIterator) Error

func (it *ERC20BasicTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20BasicTransferIterator) Next

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

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

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

func NewERC20Caller

func NewERC20Caller(address common.Address, caller bind.ContractCaller) (*ERC20Caller, error)

NewERC20Caller creates a new read-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Caller) Allowance

func (_ERC20 *ERC20Caller) 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 (*ERC20Caller) BalanceOf

func (_ERC20 *ERC20Caller) BalanceOf(opts *bind.CallOpts, _who common.Address) (*big.Int, error)

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

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

func (*ERC20Caller) TotalSupply

func (_ERC20 *ERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type ERC20CallerRaw

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

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

func (*ERC20CallerRaw) Call

func (_ERC20 *ERC20CallerRaw) 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 ERC20CallerSession

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

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

func (*ERC20CallerSession) Allowance

func (_ERC20 *ERC20CallerSession) 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 (*ERC20CallerSession) BalanceOf

func (_ERC20 *ERC20CallerSession) BalanceOf(_who common.Address) (*big.Int, error)

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

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

func (*ERC20CallerSession) TotalSupply

func (_ERC20 *ERC20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type ERC20Filterer

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

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

func NewERC20Filterer

func NewERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*ERC20Filterer, error)

NewERC20Filterer creates a new log filterer instance of ERC20, bound to a specific deployed contract.

func (*ERC20Filterer) FilterApproval

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

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

func (_ERC20 *ERC20Filterer) ParseApproval(log types.Log) (*ERC20Approval, error)

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

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

func (*ERC20Filterer) ParseTransfer

func (_ERC20 *ERC20Filterer) ParseTransfer(log types.Log) (*ERC20Transfer, error)

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

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

func (*ERC20Filterer) WatchApproval

func (_ERC20 *ERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20Approval, 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 (*ERC20Filterer) WatchTransfer

func (_ERC20 *ERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20Transfer, 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 ERC20Raw

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

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

func (*ERC20Raw) Call

func (_ERC20 *ERC20Raw) 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 (*ERC20Raw) Transact

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

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

func (*ERC20Raw) Transfer

func (_ERC20 *ERC20Raw) 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 ERC20Session

type ERC20Session struct {
	Contract     *ERC20            // 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
}

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

func (*ERC20Session) Allowance

func (_ERC20 *ERC20Session) 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 (*ERC20Session) Approve

func (_ERC20 *ERC20Session) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*ERC20Session) BalanceOf

func (_ERC20 *ERC20Session) BalanceOf(_who common.Address) (*big.Int, error)

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

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

func (*ERC20Session) TotalSupply

func (_ERC20 *ERC20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*ERC20Session) Transfer

func (_ERC20 *ERC20Session) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*ERC20Session) TransferFrom

func (_ERC20 *ERC20Session) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type ERC20Transactor

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

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

func NewERC20Transactor

func NewERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC20Transactor, error)

NewERC20Transactor creates a new write-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Transactor) Approve

func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*ERC20Transactor) Transfer

func (_ERC20 *ERC20Transactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*ERC20Transactor) TransferFrom

func (_ERC20 *ERC20Transactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type ERC20TransactorRaw

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

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

func (*ERC20TransactorRaw) Transact

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

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

func (*ERC20TransactorRaw) Transfer

func (_ERC20 *ERC20TransactorRaw) 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 ERC20TransactorSession

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

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

func (*ERC20TransactorSession) Approve

func (_ERC20 *ERC20TransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*ERC20TransactorSession) Transfer

func (_ERC20 *ERC20TransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*ERC20TransactorSession) TransferFrom

func (_ERC20 *ERC20TransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type ERC20Transfer

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

ERC20Transfer represents a Transfer event raised by the ERC20 contract.

type ERC20TransferIterator

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

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

func (*ERC20TransferIterator) Close

func (it *ERC20TransferIterator) Close() error

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

func (*ERC20TransferIterator) Error

func (it *ERC20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20TransferIterator) Next

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

type IBZx struct {
	IBZxCaller     // Read-only binding to the contract
	IBZxTransactor // Write-only binding to the contract
	IBZxFilterer   // Log filterer for contract events
}

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

func NewIBZx

func NewIBZx(address common.Address, backend bind.ContractBackend) (*IBZx, error)

NewIBZx creates a new instance of IBZx, bound to a specific deployed contract.

type IBZxCaller

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

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

func NewIBZxCaller

func NewIBZxCaller(address common.Address, caller bind.ContractCaller) (*IBZxCaller, error)

NewIBZxCaller creates a new read-only instance of IBZx, bound to a specific deployed contract.

func (*IBZxCaller) GetBorrowAmount

func (_IBZx *IBZxCaller) GetBorrowAmount(opts *bind.CallOpts, loanTokenAddress common.Address, collateralTokenAddress common.Address, oracleAddress common.Address, collateralTokenAmount *big.Int, marginAmount *big.Int) (*big.Int, error)

GetBorrowAmount is a free data retrieval call binding the contract method 0xf3d75a9c.

Solidity: function getBorrowAmount(address loanTokenAddress, address collateralTokenAddress, address oracleAddress, uint256 collateralTokenAmount, uint256 marginAmount) view returns(uint256 borrowAmount)

func (*IBZxCaller) GetLenderInterestForOracle

func (_IBZx *IBZxCaller) GetLenderInterestForOracle(opts *bind.CallOpts, lender common.Address, oracleAddress common.Address, interestTokenAddress common.Address) (struct {
	InterestPaid       *big.Int
	InterestPaidDate   *big.Int
	InterestOwedPerDay *big.Int
	InterestUnPaid     *big.Int
}, error)

GetLenderInterestForOracle is a free data retrieval call binding the contract method 0x0a90b578.

Solidity: function getLenderInterestForOracle(address lender, address oracleAddress, address interestTokenAddress) view returns(uint256 interestPaid, uint256 interestPaidDate, uint256 interestOwedPerDay, uint256 interestUnPaid)

func (*IBZxCaller) GetRequiredCollateral

func (_IBZx *IBZxCaller) GetRequiredCollateral(opts *bind.CallOpts, loanTokenAddress common.Address, collateralTokenAddress common.Address, oracleAddress common.Address, newLoanAmount *big.Int, marginAmount *big.Int) (*big.Int, error)

GetRequiredCollateral is a free data retrieval call binding the contract method 0xbc6cb1d9.

Solidity: function getRequiredCollateral(address loanTokenAddress, address collateralTokenAddress, address oracleAddress, uint256 newLoanAmount, uint256 marginAmount) view returns(uint256 collateralTokenAmount)

func (*IBZxCaller) OracleAddresses

func (_IBZx *IBZxCaller) OracleAddresses(opts *bind.CallOpts, oracleAddress common.Address) (common.Address, error)

OracleAddresses is a free data retrieval call binding the contract method 0x71eb125e.

Solidity: function oracleAddresses(address oracleAddress) view returns(address)

type IBZxCallerRaw

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

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

func (*IBZxCallerRaw) Call

func (_IBZx *IBZxCallerRaw) 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 IBZxCallerSession

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

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

func (*IBZxCallerSession) GetBorrowAmount

func (_IBZx *IBZxCallerSession) GetBorrowAmount(loanTokenAddress common.Address, collateralTokenAddress common.Address, oracleAddress common.Address, collateralTokenAmount *big.Int, marginAmount *big.Int) (*big.Int, error)

GetBorrowAmount is a free data retrieval call binding the contract method 0xf3d75a9c.

Solidity: function getBorrowAmount(address loanTokenAddress, address collateralTokenAddress, address oracleAddress, uint256 collateralTokenAmount, uint256 marginAmount) view returns(uint256 borrowAmount)

func (*IBZxCallerSession) GetLenderInterestForOracle

func (_IBZx *IBZxCallerSession) GetLenderInterestForOracle(lender common.Address, oracleAddress common.Address, interestTokenAddress common.Address) (struct {
	InterestPaid       *big.Int
	InterestPaidDate   *big.Int
	InterestOwedPerDay *big.Int
	InterestUnPaid     *big.Int
}, error)

GetLenderInterestForOracle is a free data retrieval call binding the contract method 0x0a90b578.

Solidity: function getLenderInterestForOracle(address lender, address oracleAddress, address interestTokenAddress) view returns(uint256 interestPaid, uint256 interestPaidDate, uint256 interestOwedPerDay, uint256 interestUnPaid)

func (*IBZxCallerSession) GetRequiredCollateral

func (_IBZx *IBZxCallerSession) GetRequiredCollateral(loanTokenAddress common.Address, collateralTokenAddress common.Address, oracleAddress common.Address, newLoanAmount *big.Int, marginAmount *big.Int) (*big.Int, error)

GetRequiredCollateral is a free data retrieval call binding the contract method 0xbc6cb1d9.

Solidity: function getRequiredCollateral(address loanTokenAddress, address collateralTokenAddress, address oracleAddress, uint256 newLoanAmount, uint256 marginAmount) view returns(uint256 collateralTokenAmount)

func (*IBZxCallerSession) OracleAddresses

func (_IBZx *IBZxCallerSession) OracleAddresses(oracleAddress common.Address) (common.Address, error)

OracleAddresses is a free data retrieval call binding the contract method 0x71eb125e.

Solidity: function oracleAddresses(address oracleAddress) view returns(address)

type IBZxFilterer

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

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

func NewIBZxFilterer

func NewIBZxFilterer(address common.Address, filterer bind.ContractFilterer) (*IBZxFilterer, error)

NewIBZxFilterer creates a new log filterer instance of IBZx, bound to a specific deployed contract.

type IBZxOracle

type IBZxOracle struct {
	IBZxOracleCaller     // Read-only binding to the contract
	IBZxOracleTransactor // Write-only binding to the contract
	IBZxOracleFilterer   // Log filterer for contract events
}

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

func NewIBZxOracle

func NewIBZxOracle(address common.Address, backend bind.ContractBackend) (*IBZxOracle, error)

NewIBZxOracle creates a new instance of IBZxOracle, bound to a specific deployed contract.

type IBZxOracleCaller

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

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

func NewIBZxOracleCaller

func NewIBZxOracleCaller(address common.Address, caller bind.ContractCaller) (*IBZxOracleCaller, error)

NewIBZxOracleCaller creates a new read-only instance of IBZxOracle, bound to a specific deployed contract.

func (*IBZxOracleCaller) GetTradeData

func (_IBZxOracle *IBZxOracleCaller) GetTradeData(opts *bind.CallOpts, sourceTokenAddress common.Address, destTokenAddress common.Address, sourceTokenAmount *big.Int) (struct {
	SourceToDestRate      *big.Int
	SourceToDestPrecision *big.Int
	DestTokenAmount       *big.Int
}, error)

GetTradeData is a free data retrieval call binding the contract method 0x06599aa0.

Solidity: function getTradeData(address sourceTokenAddress, address destTokenAddress, uint256 sourceTokenAmount) view returns(uint256 sourceToDestRate, uint256 sourceToDestPrecision, uint256 destTokenAmount)

type IBZxOracleCallerRaw

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

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

func (*IBZxOracleCallerRaw) Call

func (_IBZxOracle *IBZxOracleCallerRaw) 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 IBZxOracleCallerSession

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

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

func (*IBZxOracleCallerSession) GetTradeData

func (_IBZxOracle *IBZxOracleCallerSession) GetTradeData(sourceTokenAddress common.Address, destTokenAddress common.Address, sourceTokenAmount *big.Int) (struct {
	SourceToDestRate      *big.Int
	SourceToDestPrecision *big.Int
	DestTokenAmount       *big.Int
}, error)

GetTradeData is a free data retrieval call binding the contract method 0x06599aa0.

Solidity: function getTradeData(address sourceTokenAddress, address destTokenAddress, uint256 sourceTokenAmount) view returns(uint256 sourceToDestRate, uint256 sourceToDestPrecision, uint256 destTokenAmount)

type IBZxOracleFilterer

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

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

func NewIBZxOracleFilterer

func NewIBZxOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*IBZxOracleFilterer, error)

NewIBZxOracleFilterer creates a new log filterer instance of IBZxOracle, bound to a specific deployed contract.

type IBZxOracleRaw

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

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

func (*IBZxOracleRaw) Call

func (_IBZxOracle *IBZxOracleRaw) 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 (*IBZxOracleRaw) Transact

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

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

func (*IBZxOracleRaw) Transfer

func (_IBZxOracle *IBZxOracleRaw) 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 IBZxOracleSession

type IBZxOracleSession struct {
	Contract     *IBZxOracle       // 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
}

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

func (*IBZxOracleSession) GetTradeData

func (_IBZxOracle *IBZxOracleSession) GetTradeData(sourceTokenAddress common.Address, destTokenAddress common.Address, sourceTokenAmount *big.Int) (struct {
	SourceToDestRate      *big.Int
	SourceToDestPrecision *big.Int
	DestTokenAmount       *big.Int
}, error)

GetTradeData is a free data retrieval call binding the contract method 0x06599aa0.

Solidity: function getTradeData(address sourceTokenAddress, address destTokenAddress, uint256 sourceTokenAmount) view returns(uint256 sourceToDestRate, uint256 sourceToDestPrecision, uint256 destTokenAmount)

type IBZxOracleTransactor

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

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

func NewIBZxOracleTransactor

func NewIBZxOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*IBZxOracleTransactor, error)

NewIBZxOracleTransactor creates a new write-only instance of IBZxOracle, bound to a specific deployed contract.

type IBZxOracleTransactorRaw

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

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

func (*IBZxOracleTransactorRaw) Transact

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

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

func (*IBZxOracleTransactorRaw) Transfer

func (_IBZxOracle *IBZxOracleTransactorRaw) 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 IBZxOracleTransactorSession

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

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

type IBZxRaw

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

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

func (*IBZxRaw) Call

func (_IBZx *IBZxRaw) 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 (*IBZxRaw) Transact

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

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

func (*IBZxRaw) Transfer

func (_IBZx *IBZxRaw) 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 IBZxSession

type IBZxSession struct {
	Contract     *IBZx             // 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
}

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

func (*IBZxSession) GetBorrowAmount

func (_IBZx *IBZxSession) GetBorrowAmount(loanTokenAddress common.Address, collateralTokenAddress common.Address, oracleAddress common.Address, collateralTokenAmount *big.Int, marginAmount *big.Int) (*big.Int, error)

GetBorrowAmount is a free data retrieval call binding the contract method 0xf3d75a9c.

Solidity: function getBorrowAmount(address loanTokenAddress, address collateralTokenAddress, address oracleAddress, uint256 collateralTokenAmount, uint256 marginAmount) view returns(uint256 borrowAmount)

func (*IBZxSession) GetLenderInterestForOracle

func (_IBZx *IBZxSession) GetLenderInterestForOracle(lender common.Address, oracleAddress common.Address, interestTokenAddress common.Address) (struct {
	InterestPaid       *big.Int
	InterestPaidDate   *big.Int
	InterestOwedPerDay *big.Int
	InterestUnPaid     *big.Int
}, error)

GetLenderInterestForOracle is a free data retrieval call binding the contract method 0x0a90b578.

Solidity: function getLenderInterestForOracle(address lender, address oracleAddress, address interestTokenAddress) view returns(uint256 interestPaid, uint256 interestPaidDate, uint256 interestOwedPerDay, uint256 interestUnPaid)

func (*IBZxSession) GetRequiredCollateral

func (_IBZx *IBZxSession) GetRequiredCollateral(loanTokenAddress common.Address, collateralTokenAddress common.Address, oracleAddress common.Address, newLoanAmount *big.Int, marginAmount *big.Int) (*big.Int, error)

GetRequiredCollateral is a free data retrieval call binding the contract method 0xbc6cb1d9.

Solidity: function getRequiredCollateral(address loanTokenAddress, address collateralTokenAddress, address oracleAddress, uint256 newLoanAmount, uint256 marginAmount) view returns(uint256 collateralTokenAmount)

func (*IBZxSession) OracleAddresses

func (_IBZx *IBZxSession) OracleAddresses(oracleAddress common.Address) (common.Address, error)

OracleAddresses is a free data retrieval call binding the contract method 0x71eb125e.

Solidity: function oracleAddresses(address oracleAddress) view returns(address)

func (*IBZxSession) PayInterestForOracle

func (_IBZx *IBZxSession) PayInterestForOracle(oracleAddress common.Address, interestTokenAddress common.Address) (*types.Transaction, error)

PayInterestForOracle is a paid mutator transaction binding the contract method 0x327ab639.

Solidity: function payInterestForOracle(address oracleAddress, address interestTokenAddress) returns(uint256)

func (*IBZxSession) TakeOrderFromiToken

func (_IBZx *IBZxSession) TakeOrderFromiToken(loanOrderHash [32]byte, sentAddresses [4]common.Address, sentAmounts [7]*big.Int, loanDataBytes []byte) (*types.Transaction, error)

TakeOrderFromiToken is a paid mutator transaction binding the contract method 0xb1eac3ad.

Solidity: function takeOrderFromiToken(bytes32 loanOrderHash, address[4] sentAddresses, uint256[7] sentAmounts, bytes loanDataBytes) payable returns(uint256)

type IBZxTransactor

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

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

func NewIBZxTransactor

func NewIBZxTransactor(address common.Address, transactor bind.ContractTransactor) (*IBZxTransactor, error)

NewIBZxTransactor creates a new write-only instance of IBZx, bound to a specific deployed contract.

func (*IBZxTransactor) PayInterestForOracle

func (_IBZx *IBZxTransactor) PayInterestForOracle(opts *bind.TransactOpts, oracleAddress common.Address, interestTokenAddress common.Address) (*types.Transaction, error)

PayInterestForOracle is a paid mutator transaction binding the contract method 0x327ab639.

Solidity: function payInterestForOracle(address oracleAddress, address interestTokenAddress) returns(uint256)

func (*IBZxTransactor) TakeOrderFromiToken

func (_IBZx *IBZxTransactor) TakeOrderFromiToken(opts *bind.TransactOpts, loanOrderHash [32]byte, sentAddresses [4]common.Address, sentAmounts [7]*big.Int, loanDataBytes []byte) (*types.Transaction, error)

TakeOrderFromiToken is a paid mutator transaction binding the contract method 0xb1eac3ad.

Solidity: function takeOrderFromiToken(bytes32 loanOrderHash, address[4] sentAddresses, uint256[7] sentAmounts, bytes loanDataBytes) payable returns(uint256)

type IBZxTransactorRaw

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

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

func (*IBZxTransactorRaw) Transact

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

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

func (*IBZxTransactorRaw) Transfer

func (_IBZx *IBZxTransactorRaw) 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 IBZxTransactorSession

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

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

func (*IBZxTransactorSession) PayInterestForOracle

func (_IBZx *IBZxTransactorSession) PayInterestForOracle(oracleAddress common.Address, interestTokenAddress common.Address) (*types.Transaction, error)

PayInterestForOracle is a paid mutator transaction binding the contract method 0x327ab639.

Solidity: function payInterestForOracle(address oracleAddress, address interestTokenAddress) returns(uint256)

func (*IBZxTransactorSession) TakeOrderFromiToken

func (_IBZx *IBZxTransactorSession) TakeOrderFromiToken(loanOrderHash [32]byte, sentAddresses [4]common.Address, sentAmounts [7]*big.Int, loanDataBytes []byte) (*types.Transaction, error)

TakeOrderFromiToken is a paid mutator transaction binding the contract method 0xb1eac3ad.

Solidity: function takeOrderFromiToken(bytes32 loanOrderHash, address[4] sentAddresses, uint256[7] sentAmounts, bytes loanDataBytes) payable returns(uint256)

type IWethHelper

type IWethHelper struct {
	IWethHelperCaller     // Read-only binding to the contract
	IWethHelperTransactor // Write-only binding to the contract
	IWethHelperFilterer   // Log filterer for contract events
}

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

func NewIWethHelper

func NewIWethHelper(address common.Address, backend bind.ContractBackend) (*IWethHelper, error)

NewIWethHelper creates a new instance of IWethHelper, bound to a specific deployed contract.

type IWethHelperCaller

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

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

func NewIWethHelperCaller

func NewIWethHelperCaller(address common.Address, caller bind.ContractCaller) (*IWethHelperCaller, error)

NewIWethHelperCaller creates a new read-only instance of IWethHelper, bound to a specific deployed contract.

type IWethHelperCallerRaw

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

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

func (*IWethHelperCallerRaw) Call

func (_IWethHelper *IWethHelperCallerRaw) 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 IWethHelperCallerSession

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

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

type IWethHelperFilterer

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

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

func NewIWethHelperFilterer

func NewIWethHelperFilterer(address common.Address, filterer bind.ContractFilterer) (*IWethHelperFilterer, error)

NewIWethHelperFilterer creates a new log filterer instance of IWethHelper, bound to a specific deployed contract.

type IWethHelperRaw

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

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

func (*IWethHelperRaw) Call

func (_IWethHelper *IWethHelperRaw) 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 (*IWethHelperRaw) Transact

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

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

func (*IWethHelperRaw) Transfer

func (_IWethHelper *IWethHelperRaw) 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 IWethHelperSession

type IWethHelperSession struct {
	Contract     *IWethHelper      // 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
}

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

func (*IWethHelperSession) ClaimEther

func (_IWethHelper *IWethHelperSession) ClaimEther(receiver common.Address, amount *big.Int) (*types.Transaction, error)

ClaimEther is a paid mutator transaction binding the contract method 0xbfcf63b0.

Solidity: function claimEther(address receiver, uint256 amount) returns(uint256 claimAmount)

type IWethHelperTransactor

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

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

func NewIWethHelperTransactor

func NewIWethHelperTransactor(address common.Address, transactor bind.ContractTransactor) (*IWethHelperTransactor, error)

NewIWethHelperTransactor creates a new write-only instance of IWethHelper, bound to a specific deployed contract.

func (*IWethHelperTransactor) ClaimEther

func (_IWethHelper *IWethHelperTransactor) ClaimEther(opts *bind.TransactOpts, receiver common.Address, amount *big.Int) (*types.Transaction, error)

ClaimEther is a paid mutator transaction binding the contract method 0xbfcf63b0.

Solidity: function claimEther(address receiver, uint256 amount) returns(uint256 claimAmount)

type IWethHelperTransactorRaw

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

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

func (*IWethHelperTransactorRaw) Transact

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

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

func (*IWethHelperTransactorRaw) Transfer

func (_IWethHelper *IWethHelperTransactorRaw) 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 IWethHelperTransactorSession

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

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

func (*IWethHelperTransactorSession) ClaimEther

func (_IWethHelper *IWethHelperTransactorSession) ClaimEther(receiver common.Address, amount *big.Int) (*types.Transaction, error)

ClaimEther is a paid mutator transaction binding the contract method 0xbfcf63b0.

Solidity: function claimEther(address receiver, uint256 amount) returns(uint256 claimAmount)

type LoanTokenLogicV4

type LoanTokenLogicV4 struct {
	LoanTokenLogicV4Caller     // Read-only binding to the contract
	LoanTokenLogicV4Transactor // Write-only binding to the contract
	LoanTokenLogicV4Filterer   // Log filterer for contract events
}

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

func DeployLoanTokenLogicV4

func DeployLoanTokenLogicV4(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *LoanTokenLogicV4, error)

DeployLoanTokenLogicV4 deploys a new Ethereum contract, binding an instance of LoanTokenLogicV4 to it.

func NewLoanTokenLogicV4

func NewLoanTokenLogicV4(address common.Address, backend bind.ContractBackend) (*LoanTokenLogicV4, error)

NewLoanTokenLogicV4 creates a new instance of LoanTokenLogicV4, bound to a specific deployed contract.

type LoanTokenLogicV4Approval

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

LoanTokenLogicV4Approval represents a Approval event raised by the LoanTokenLogicV4 contract.

type LoanTokenLogicV4ApprovalIterator

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

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

func (*LoanTokenLogicV4ApprovalIterator) Close

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

func (*LoanTokenLogicV4ApprovalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoanTokenLogicV4ApprovalIterator) 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 LoanTokenLogicV4Borrow

type LoanTokenLogicV4Borrow struct {
	Borrower                common.Address
	BorrowAmount            *big.Int
	InterestRate            *big.Int
	CollateralTokenAddress  common.Address
	TradeTokenToFillAddress common.Address
	WithdrawOnOpen          bool
	Raw                     types.Log // Blockchain specific contextual infos
}

LoanTokenLogicV4Borrow represents a Borrow event raised by the LoanTokenLogicV4 contract.

type LoanTokenLogicV4BorrowIterator

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

LoanTokenLogicV4BorrowIterator is returned from FilterBorrow and is used to iterate over the raw logs and unpacked data for Borrow events raised by the LoanTokenLogicV4 contract.

func (*LoanTokenLogicV4BorrowIterator) Close

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

func (*LoanTokenLogicV4BorrowIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoanTokenLogicV4BorrowIterator) 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 LoanTokenLogicV4Burn

type LoanTokenLogicV4Burn struct {
	Burner      common.Address
	TokenAmount *big.Int
	AssetAmount *big.Int
	Price       *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

LoanTokenLogicV4Burn represents a Burn event raised by the LoanTokenLogicV4 contract.

type LoanTokenLogicV4BurnIterator

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

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

func (*LoanTokenLogicV4BurnIterator) Close

func (it *LoanTokenLogicV4BurnIterator) Close() error

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

func (*LoanTokenLogicV4BurnIterator) Error

func (it *LoanTokenLogicV4BurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoanTokenLogicV4BurnIterator) 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 LoanTokenLogicV4Caller

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

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

func NewLoanTokenLogicV4Caller

func NewLoanTokenLogicV4Caller(address common.Address, caller bind.ContractCaller) (*LoanTokenLogicV4Caller, error)

NewLoanTokenLogicV4Caller creates a new read-only instance of LoanTokenLogicV4, bound to a specific deployed contract.

func (*LoanTokenLogicV4Caller) Allowance

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) 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 (*LoanTokenLogicV4Caller) AssetBalanceOf

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) AssetBalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)

AssetBalanceOf is a free data retrieval call binding the contract method 0x06b3efd6.

Solidity: function assetBalanceOf(address _owner) view returns(uint256)

func (*LoanTokenLogicV4Caller) AvgBorrowInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) AvgBorrowInterestRate(opts *bind.CallOpts) (*big.Int, error)

AvgBorrowInterestRate is a free data retrieval call binding the contract method 0x44a4a003.

Solidity: function avgBorrowInterestRate() view returns(uint256)

func (*LoanTokenLogicV4Caller) BZxContract

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) BZxContract(opts *bind.CallOpts) (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*LoanTokenLogicV4Caller) BZxOracle

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) BZxOracle(opts *bind.CallOpts) (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*LoanTokenLogicV4Caller) BZxVault

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) BZxVault(opts *bind.CallOpts) (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*LoanTokenLogicV4Caller) BalanceOf

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)

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

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

func (*LoanTokenLogicV4Caller) BaseRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) BaseRate(opts *bind.CallOpts) (*big.Int, error)

BaseRate is a free data retrieval call binding the contract method 0x1f68f20a.

Solidity: function baseRate() view returns(uint256)

func (*LoanTokenLogicV4Caller) BorrowInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) BorrowInterestRate(opts *bind.CallOpts) (*big.Int, error)

BorrowInterestRate is a free data retrieval call binding the contract method 0x8325a1c0.

Solidity: function borrowInterestRate() view returns(uint256)

func (*LoanTokenLogicV4Caller) BurntTokenReserveList

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) BurntTokenReserveList(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Lender common.Address
	Amount *big.Int
}, error)

BurntTokenReserveList is a free data retrieval call binding the contract method 0x7866c6c1.

Solidity: function burntTokenReserveList(uint256 ) view returns(address lender, uint256 amount)

func (*LoanTokenLogicV4Caller) BurntTokenReserveListIndex

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) BurntTokenReserveListIndex(opts *bind.CallOpts, arg0 common.Address) (struct {
	Index *big.Int
	IsSet bool
}, error)

BurntTokenReserveListIndex is a free data retrieval call binding the contract method 0xfbd9574d.

Solidity: function burntTokenReserveListIndex(address ) view returns(uint256 index, bool isSet)

func (*LoanTokenLogicV4Caller) BurntTokenReserved

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) BurntTokenReserved(opts *bind.CallOpts) (*big.Int, error)

BurntTokenReserved is a free data retrieval call binding the contract method 0x0c4925fd.

Solidity: function burntTokenReserved() view returns(uint256)

func (*LoanTokenLogicV4Caller) CheckpointPrice

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) CheckpointPrice(opts *bind.CallOpts, _user common.Address) (*big.Int, error)

CheckpointPrice is a free data retrieval call binding the contract method 0xeebc5081.

Solidity: function checkpointPrice(address _user) view returns(uint256 price)

func (*LoanTokenLogicV4Caller) CheckpointSupply

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) CheckpointSupply(opts *bind.CallOpts) (*big.Int, error)

CheckpointSupply is a free data retrieval call binding the contract method 0x7b7933b4.

Solidity: function checkpointSupply() view returns(uint256)

func (*LoanTokenLogicV4Caller) Decimals

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) 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 (*LoanTokenLogicV4Caller) GetBorrowAmountForDeposit

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) GetBorrowAmountForDeposit(opts *bind.CallOpts, depositAmount *big.Int, leverageAmount *big.Int, initialLoanDuration *big.Int, collateralTokenAddress common.Address) (*big.Int, error)

GetBorrowAmountForDeposit is a free data retrieval call binding the contract method 0x24d25f4a.

Solidity: function getBorrowAmountForDeposit(uint256 depositAmount, uint256 leverageAmount, uint256 initialLoanDuration, address collateralTokenAddress) view returns(uint256 borrowAmount)

func (*LoanTokenLogicV4Caller) GetDepositAmountForBorrow

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) GetDepositAmountForBorrow(opts *bind.CallOpts, borrowAmount *big.Int, leverageAmount *big.Int, initialLoanDuration *big.Int, collateralTokenAddress common.Address) (*big.Int, error)

GetDepositAmountForBorrow is a free data retrieval call binding the contract method 0x8423acd6.

Solidity: function getDepositAmountForBorrow(uint256 borrowAmount, uint256 leverageAmount, uint256 initialLoanDuration, address collateralTokenAddress) view returns(uint256 depositAmount)

func (*LoanTokenLogicV4Caller) GetLeverageList

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) GetLeverageList(opts *bind.CallOpts) ([]*big.Int, error)

GetLeverageList is a free data retrieval call binding the contract method 0x2ecae90a.

Solidity: function getLeverageList() view returns(uint256[])

func (*LoanTokenLogicV4Caller) GetLoanData

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) GetLoanData(opts *bind.CallOpts, loanOrderHash [32]byte) (LoanTokenStorageLoanData, error)

GetLoanData is a free data retrieval call binding the contract method 0xc4d2b1b3.

Solidity: function getLoanData(bytes32 loanOrderHash) view returns((bytes32,uint256,uint256,uint256,uint256,uint256,uint256,address))

func (*LoanTokenLogicV4Caller) GetMaxEscrowAmount

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) GetMaxEscrowAmount(opts *bind.CallOpts, leverageAmount *big.Int) (*big.Int, error)

GetMaxEscrowAmount is a free data retrieval call binding the contract method 0x829b38f4.

Solidity: function getMaxEscrowAmount(uint256 leverageAmount) view returns(uint256)

func (*LoanTokenLogicV4Caller) InitialPrice

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) InitialPrice(opts *bind.CallOpts) (*big.Int, error)

InitialPrice is a free data retrieval call binding the contract method 0x1d0806ae.

Solidity: function initialPrice() view returns(uint256)

func (*LoanTokenLogicV4Caller) LeverageList

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) LeverageList(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

LeverageList is a free data retrieval call binding the contract method 0x9b3a54d1.

Solidity: function leverageList(uint256 ) view returns(uint256)

func (*LoanTokenLogicV4Caller) LoanOrderData

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) LoanOrderData(opts *bind.CallOpts, arg0 [32]byte) (struct {
	LoanOrderHash               [32]byte
	LeverageAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	Index                       *big.Int
	MarginPremiumAmount         *big.Int
	CollateralTokenAddress      common.Address
}, error)

LoanOrderData is a free data retrieval call binding the contract method 0x2515aacd.

Solidity: function loanOrderData(bytes32 ) view returns(bytes32 loanOrderHash, uint256 leverageAmount, uint256 initialMarginAmount, uint256 maintenanceMarginAmount, uint256 maxDurationUnixTimestampSec, uint256 index, uint256 marginPremiumAmount, address collateralTokenAddress)

func (*LoanTokenLogicV4Caller) LoanOrderHashes

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) LoanOrderHashes(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

LoanOrderHashes is a free data retrieval call binding the contract method 0xfe056342.

Solidity: function loanOrderHashes(uint256 ) view returns(bytes32)

func (*LoanTokenLogicV4Caller) LoanTokenAddress

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) LoanTokenAddress(opts *bind.CallOpts) (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*LoanTokenLogicV4Caller) MarketLiquidity

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) MarketLiquidity(opts *bind.CallOpts) (*big.Int, error)

MarketLiquidity is a free data retrieval call binding the contract method 0x612ef80b.

Solidity: function marketLiquidity() view returns(uint256)

func (*LoanTokenLogicV4Caller) Name

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) 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 (*LoanTokenLogicV4Caller) NextBorrowInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) NextBorrowInterestRate(opts *bind.CallOpts, borrowAmount *big.Int) (*big.Int, error)

NextBorrowInterestRate is a free data retrieval call binding the contract method 0xb9fe1a8f.

Solidity: function nextBorrowInterestRate(uint256 borrowAmount) view returns(uint256)

func (*LoanTokenLogicV4Caller) NextBorrowInterestRateWithOption

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) NextBorrowInterestRateWithOption(opts *bind.CallOpts, borrowAmount *big.Int, useFixedInterestModel bool) (*big.Int, error)

NextBorrowInterestRateWithOption is a free data retrieval call binding the contract method 0x7d90dcba.

Solidity: function nextBorrowInterestRateWithOption(uint256 borrowAmount, bool useFixedInterestModel) view returns(uint256)

func (*LoanTokenLogicV4Caller) NextSupplyInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) NextSupplyInterestRate(opts *bind.CallOpts, supplyAmount *big.Int) (*big.Int, error)

NextSupplyInterestRate is a free data retrieval call binding the contract method 0xd65a5021.

Solidity: function nextSupplyInterestRate(uint256 supplyAmount) view returns(uint256)

func (*LoanTokenLogicV4Caller) NextsupplyInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) NextsupplyInterestRate(opts *bind.CallOpts) (*big.Int, error)

NextsupplyInterestRate is a free data retrieval call binding the contract method 0x09ec6b6b.

Solidity: function supplyInterestRate() view returns(uint256)

func (*LoanTokenLogicV4Caller) Owner

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) 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 (*LoanTokenLogicV4Caller) ProtocolInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) ProtocolInterestRate(opts *bind.CallOpts) (*big.Int, error)

ProtocolInterestRate is a free data retrieval call binding the contract method 0xfc3b72b1.

Solidity: function protocolInterestRate() view returns(uint256)

func (*LoanTokenLogicV4Caller) RateMultiplier

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) RateMultiplier(opts *bind.CallOpts) (*big.Int, error)

RateMultiplier is a free data retrieval call binding the contract method 0x330691ac.

Solidity: function rateMultiplier() view returns(uint256)

func (*LoanTokenLogicV4Caller) SpreadMultiplier

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) SpreadMultiplier(opts *bind.CallOpts) (*big.Int, error)

SpreadMultiplier is a free data retrieval call binding the contract method 0xd84d2a47.

Solidity: function spreadMultiplier() view returns(uint256)

func (*LoanTokenLogicV4Caller) SupplyInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) SupplyInterestRate(opts *bind.CallOpts, assetBorrow *big.Int, assetSupply *big.Int) (*big.Int, error)

SupplyInterestRate is a free data retrieval call binding the contract method 0x7288b344.

Solidity: function _supplyInterestRate(uint256 assetBorrow, uint256 assetSupply) view returns(uint256)

func (*LoanTokenLogicV4Caller) Symbol

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) 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 (*LoanTokenLogicV4Caller) TokenPrice

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) TokenPrice(opts *bind.CallOpts) (*big.Int, error)

TokenPrice is a free data retrieval call binding the contract method 0x7ff9b596.

Solidity: function tokenPrice() view returns(uint256 price)

func (*LoanTokenLogicV4Caller) TokenizedRegistry

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) TokenizedRegistry(opts *bind.CallOpts) (common.Address, error)

TokenizedRegistry is a free data retrieval call binding the contract method 0x736ee3d3.

Solidity: function tokenizedRegistry() view returns(address)

func (*LoanTokenLogicV4Caller) TotalAssetBorrow

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) TotalAssetBorrow(opts *bind.CallOpts) (*big.Int, error)

TotalAssetBorrow is a free data retrieval call binding the contract method 0x20f6d07c.

Solidity: function totalAssetBorrow() view returns(uint256)

func (*LoanTokenLogicV4Caller) TotalAssetSupply

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) TotalAssetSupply(opts *bind.CallOpts) (*big.Int, error)

TotalAssetSupply is a free data retrieval call binding the contract method 0x8fb807c5.

Solidity: function totalAssetSupply() view returns(uint256)

func (*LoanTokenLogicV4Caller) TotalSupply

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) 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 (*LoanTokenLogicV4Caller) TotalSupplyInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) TotalSupplyInterestRate(opts *bind.CallOpts, assetSupply *big.Int) (*big.Int, error)

TotalSupplyInterestRate is a free data retrieval call binding the contract method 0x12416898.

Solidity: function totalSupplyInterestRate(uint256 assetSupply) view returns(uint256)

func (*LoanTokenLogicV4Caller) WethContract

func (_LoanTokenLogicV4 *LoanTokenLogicV4Caller) WethContract(opts *bind.CallOpts) (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type LoanTokenLogicV4CallerRaw

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

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

func (*LoanTokenLogicV4CallerRaw) Call

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerRaw) 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 LoanTokenLogicV4CallerSession

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

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

func (*LoanTokenLogicV4CallerSession) Allowance

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) 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 (*LoanTokenLogicV4CallerSession) AssetBalanceOf

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) AssetBalanceOf(_owner common.Address) (*big.Int, error)

AssetBalanceOf is a free data retrieval call binding the contract method 0x06b3efd6.

Solidity: function assetBalanceOf(address _owner) view returns(uint256)

func (*LoanTokenLogicV4CallerSession) AvgBorrowInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) AvgBorrowInterestRate() (*big.Int, error)

AvgBorrowInterestRate is a free data retrieval call binding the contract method 0x44a4a003.

Solidity: function avgBorrowInterestRate() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) BZxContract

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) BZxContract() (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*LoanTokenLogicV4CallerSession) BZxOracle

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) BZxOracle() (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*LoanTokenLogicV4CallerSession) BZxVault

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) BZxVault() (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*LoanTokenLogicV4CallerSession) BalanceOf

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) BalanceOf(_owner common.Address) (*big.Int, error)

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

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

func (*LoanTokenLogicV4CallerSession) BaseRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) BaseRate() (*big.Int, error)

BaseRate is a free data retrieval call binding the contract method 0x1f68f20a.

Solidity: function baseRate() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) BorrowInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) BorrowInterestRate() (*big.Int, error)

BorrowInterestRate is a free data retrieval call binding the contract method 0x8325a1c0.

Solidity: function borrowInterestRate() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) BurntTokenReserveList

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) BurntTokenReserveList(arg0 *big.Int) (struct {
	Lender common.Address
	Amount *big.Int
}, error)

BurntTokenReserveList is a free data retrieval call binding the contract method 0x7866c6c1.

Solidity: function burntTokenReserveList(uint256 ) view returns(address lender, uint256 amount)

func (*LoanTokenLogicV4CallerSession) BurntTokenReserveListIndex

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) BurntTokenReserveListIndex(arg0 common.Address) (struct {
	Index *big.Int
	IsSet bool
}, error)

BurntTokenReserveListIndex is a free data retrieval call binding the contract method 0xfbd9574d.

Solidity: function burntTokenReserveListIndex(address ) view returns(uint256 index, bool isSet)

func (*LoanTokenLogicV4CallerSession) BurntTokenReserved

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) BurntTokenReserved() (*big.Int, error)

BurntTokenReserved is a free data retrieval call binding the contract method 0x0c4925fd.

Solidity: function burntTokenReserved() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) CheckpointPrice

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) CheckpointPrice(_user common.Address) (*big.Int, error)

CheckpointPrice is a free data retrieval call binding the contract method 0xeebc5081.

Solidity: function checkpointPrice(address _user) view returns(uint256 price)

func (*LoanTokenLogicV4CallerSession) CheckpointSupply

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) CheckpointSupply() (*big.Int, error)

CheckpointSupply is a free data retrieval call binding the contract method 0x7b7933b4.

Solidity: function checkpointSupply() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) Decimals

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*LoanTokenLogicV4CallerSession) GetBorrowAmountForDeposit

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) GetBorrowAmountForDeposit(depositAmount *big.Int, leverageAmount *big.Int, initialLoanDuration *big.Int, collateralTokenAddress common.Address) (*big.Int, error)

GetBorrowAmountForDeposit is a free data retrieval call binding the contract method 0x24d25f4a.

Solidity: function getBorrowAmountForDeposit(uint256 depositAmount, uint256 leverageAmount, uint256 initialLoanDuration, address collateralTokenAddress) view returns(uint256 borrowAmount)

func (*LoanTokenLogicV4CallerSession) GetDepositAmountForBorrow

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) GetDepositAmountForBorrow(borrowAmount *big.Int, leverageAmount *big.Int, initialLoanDuration *big.Int, collateralTokenAddress common.Address) (*big.Int, error)

GetDepositAmountForBorrow is a free data retrieval call binding the contract method 0x8423acd6.

Solidity: function getDepositAmountForBorrow(uint256 borrowAmount, uint256 leverageAmount, uint256 initialLoanDuration, address collateralTokenAddress) view returns(uint256 depositAmount)

func (*LoanTokenLogicV4CallerSession) GetLeverageList

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) GetLeverageList() ([]*big.Int, error)

GetLeverageList is a free data retrieval call binding the contract method 0x2ecae90a.

Solidity: function getLeverageList() view returns(uint256[])

func (*LoanTokenLogicV4CallerSession) GetLoanData

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) GetLoanData(loanOrderHash [32]byte) (LoanTokenStorageLoanData, error)

GetLoanData is a free data retrieval call binding the contract method 0xc4d2b1b3.

Solidity: function getLoanData(bytes32 loanOrderHash) view returns((bytes32,uint256,uint256,uint256,uint256,uint256,uint256,address))

func (*LoanTokenLogicV4CallerSession) GetMaxEscrowAmount

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) GetMaxEscrowAmount(leverageAmount *big.Int) (*big.Int, error)

GetMaxEscrowAmount is a free data retrieval call binding the contract method 0x829b38f4.

Solidity: function getMaxEscrowAmount(uint256 leverageAmount) view returns(uint256)

func (*LoanTokenLogicV4CallerSession) InitialPrice

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) InitialPrice() (*big.Int, error)

InitialPrice is a free data retrieval call binding the contract method 0x1d0806ae.

Solidity: function initialPrice() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) LeverageList

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) LeverageList(arg0 *big.Int) (*big.Int, error)

LeverageList is a free data retrieval call binding the contract method 0x9b3a54d1.

Solidity: function leverageList(uint256 ) view returns(uint256)

func (*LoanTokenLogicV4CallerSession) LoanOrderData

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) LoanOrderData(arg0 [32]byte) (struct {
	LoanOrderHash               [32]byte
	LeverageAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	Index                       *big.Int
	MarginPremiumAmount         *big.Int
	CollateralTokenAddress      common.Address
}, error)

LoanOrderData is a free data retrieval call binding the contract method 0x2515aacd.

Solidity: function loanOrderData(bytes32 ) view returns(bytes32 loanOrderHash, uint256 leverageAmount, uint256 initialMarginAmount, uint256 maintenanceMarginAmount, uint256 maxDurationUnixTimestampSec, uint256 index, uint256 marginPremiumAmount, address collateralTokenAddress)

func (*LoanTokenLogicV4CallerSession) LoanOrderHashes

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) LoanOrderHashes(arg0 *big.Int) ([32]byte, error)

LoanOrderHashes is a free data retrieval call binding the contract method 0xfe056342.

Solidity: function loanOrderHashes(uint256 ) view returns(bytes32)

func (*LoanTokenLogicV4CallerSession) LoanTokenAddress

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) LoanTokenAddress() (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*LoanTokenLogicV4CallerSession) MarketLiquidity

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) MarketLiquidity() (*big.Int, error)

MarketLiquidity is a free data retrieval call binding the contract method 0x612ef80b.

Solidity: function marketLiquidity() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) Name

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*LoanTokenLogicV4CallerSession) NextBorrowInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) NextBorrowInterestRate(borrowAmount *big.Int) (*big.Int, error)

NextBorrowInterestRate is a free data retrieval call binding the contract method 0xb9fe1a8f.

Solidity: function nextBorrowInterestRate(uint256 borrowAmount) view returns(uint256)

func (*LoanTokenLogicV4CallerSession) NextBorrowInterestRateWithOption

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) NextBorrowInterestRateWithOption(borrowAmount *big.Int, useFixedInterestModel bool) (*big.Int, error)

NextBorrowInterestRateWithOption is a free data retrieval call binding the contract method 0x7d90dcba.

Solidity: function nextBorrowInterestRateWithOption(uint256 borrowAmount, bool useFixedInterestModel) view returns(uint256)

func (*LoanTokenLogicV4CallerSession) NextSupplyInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) NextSupplyInterestRate(supplyAmount *big.Int) (*big.Int, error)

NextSupplyInterestRate is a free data retrieval call binding the contract method 0xd65a5021.

Solidity: function nextSupplyInterestRate(uint256 supplyAmount) view returns(uint256)

func (*LoanTokenLogicV4CallerSession) NextsupplyInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) NextsupplyInterestRate() (*big.Int, error)

NextsupplyInterestRate is a free data retrieval call binding the contract method 0x09ec6b6b.

Solidity: function supplyInterestRate() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) Owner

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LoanTokenLogicV4CallerSession) ProtocolInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) ProtocolInterestRate() (*big.Int, error)

ProtocolInterestRate is a free data retrieval call binding the contract method 0xfc3b72b1.

Solidity: function protocolInterestRate() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) RateMultiplier

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) RateMultiplier() (*big.Int, error)

RateMultiplier is a free data retrieval call binding the contract method 0x330691ac.

Solidity: function rateMultiplier() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) SpreadMultiplier

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) SpreadMultiplier() (*big.Int, error)

SpreadMultiplier is a free data retrieval call binding the contract method 0xd84d2a47.

Solidity: function spreadMultiplier() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) SupplyInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) SupplyInterestRate(assetBorrow *big.Int, assetSupply *big.Int) (*big.Int, error)

SupplyInterestRate is a free data retrieval call binding the contract method 0x7288b344.

Solidity: function _supplyInterestRate(uint256 assetBorrow, uint256 assetSupply) view returns(uint256)

func (*LoanTokenLogicV4CallerSession) Symbol

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*LoanTokenLogicV4CallerSession) TokenPrice

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) TokenPrice() (*big.Int, error)

TokenPrice is a free data retrieval call binding the contract method 0x7ff9b596.

Solidity: function tokenPrice() view returns(uint256 price)

func (*LoanTokenLogicV4CallerSession) TokenizedRegistry

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) TokenizedRegistry() (common.Address, error)

TokenizedRegistry is a free data retrieval call binding the contract method 0x736ee3d3.

Solidity: function tokenizedRegistry() view returns(address)

func (*LoanTokenLogicV4CallerSession) TotalAssetBorrow

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) TotalAssetBorrow() (*big.Int, error)

TotalAssetBorrow is a free data retrieval call binding the contract method 0x20f6d07c.

Solidity: function totalAssetBorrow() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) TotalAssetSupply

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) TotalAssetSupply() (*big.Int, error)

TotalAssetSupply is a free data retrieval call binding the contract method 0x8fb807c5.

Solidity: function totalAssetSupply() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) TotalSupply

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*LoanTokenLogicV4CallerSession) TotalSupplyInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) TotalSupplyInterestRate(assetSupply *big.Int) (*big.Int, error)

TotalSupplyInterestRate is a free data retrieval call binding the contract method 0x12416898.

Solidity: function totalSupplyInterestRate(uint256 assetSupply) view returns(uint256)

func (*LoanTokenLogicV4CallerSession) WethContract

func (_LoanTokenLogicV4 *LoanTokenLogicV4CallerSession) WethContract() (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type LoanTokenLogicV4Claim

type LoanTokenLogicV4Claim struct {
	Claimant             common.Address
	TokenAmount          *big.Int
	AssetAmount          *big.Int
	RemainingTokenAmount *big.Int
	Price                *big.Int
	Raw                  types.Log // Blockchain specific contextual infos
}

LoanTokenLogicV4Claim represents a Claim event raised by the LoanTokenLogicV4 contract.

type LoanTokenLogicV4ClaimIterator

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

LoanTokenLogicV4ClaimIterator is returned from FilterClaim and is used to iterate over the raw logs and unpacked data for Claim events raised by the LoanTokenLogicV4 contract.

func (*LoanTokenLogicV4ClaimIterator) Close

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

func (*LoanTokenLogicV4ClaimIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoanTokenLogicV4ClaimIterator) 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 LoanTokenLogicV4Filterer

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

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

func NewLoanTokenLogicV4Filterer

func NewLoanTokenLogicV4Filterer(address common.Address, filterer bind.ContractFilterer) (*LoanTokenLogicV4Filterer, error)

NewLoanTokenLogicV4Filterer creates a new log filterer instance of LoanTokenLogicV4, bound to a specific deployed contract.

func (*LoanTokenLogicV4Filterer) FilterApproval

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*LoanTokenLogicV4ApprovalIterator, 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 (*LoanTokenLogicV4Filterer) FilterBorrow

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) FilterBorrow(opts *bind.FilterOpts, borrower []common.Address) (*LoanTokenLogicV4BorrowIterator, error)

FilterBorrow is a free log retrieval operation binding the contract event 0x86e15dd78cd784ab7788bcf5b96b9395e86030e048e5faedcfe752c700f6157e.

Solidity: event Borrow(address indexed borrower, uint256 borrowAmount, uint256 interestRate, address collateralTokenAddress, address tradeTokenToFillAddress, bool withdrawOnOpen)

func (*LoanTokenLogicV4Filterer) FilterBurn

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) FilterBurn(opts *bind.FilterOpts, burner []common.Address) (*LoanTokenLogicV4BurnIterator, error)

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

Solidity: event Burn(address indexed burner, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*LoanTokenLogicV4Filterer) FilterClaim

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) FilterClaim(opts *bind.FilterOpts, claimant []common.Address) (*LoanTokenLogicV4ClaimIterator, error)

FilterClaim is a free log retrieval operation binding the contract event 0x68e1caf97c4c29c1ac46024e9590f80b7a1f690d393703879cf66eea4e1e8421.

Solidity: event Claim(address indexed claimant, uint256 tokenAmount, uint256 assetAmount, uint256 remainingTokenAmount, uint256 price)

func (*LoanTokenLogicV4Filterer) FilterMint

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) FilterMint(opts *bind.FilterOpts, minter []common.Address) (*LoanTokenLogicV4MintIterator, error)

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

Solidity: event Mint(address indexed minter, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*LoanTokenLogicV4Filterer) FilterOwnershipTransferred

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*LoanTokenLogicV4OwnershipTransferredIterator, error)

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

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

func (*LoanTokenLogicV4Filterer) FilterRepay

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) FilterRepay(opts *bind.FilterOpts, loanOrderHash [][32]byte, borrower []common.Address) (*LoanTokenLogicV4RepayIterator, error)

FilterRepay is a free log retrieval operation binding the contract event 0x85dfc0033a3e5b3b9b3151bd779c1f9b855d66b83ff5bb79283b68d82e8e5b73.

Solidity: event Repay(bytes32 indexed loanOrderHash, address indexed borrower, address closer, uint256 amount, bool isLiquidation)

func (*LoanTokenLogicV4Filterer) FilterTransfer

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

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) ParseApproval(log types.Log) (*LoanTokenLogicV4Approval, error)

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

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

func (*LoanTokenLogicV4Filterer) ParseBorrow

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) ParseBorrow(log types.Log) (*LoanTokenLogicV4Borrow, error)

ParseBorrow is a log parse operation binding the contract event 0x86e15dd78cd784ab7788bcf5b96b9395e86030e048e5faedcfe752c700f6157e.

Solidity: event Borrow(address indexed borrower, uint256 borrowAmount, uint256 interestRate, address collateralTokenAddress, address tradeTokenToFillAddress, bool withdrawOnOpen)

func (*LoanTokenLogicV4Filterer) ParseBurn

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) ParseBurn(log types.Log) (*LoanTokenLogicV4Burn, error)

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

Solidity: event Burn(address indexed burner, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*LoanTokenLogicV4Filterer) ParseClaim

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) ParseClaim(log types.Log) (*LoanTokenLogicV4Claim, error)

ParseClaim is a log parse operation binding the contract event 0x68e1caf97c4c29c1ac46024e9590f80b7a1f690d393703879cf66eea4e1e8421.

Solidity: event Claim(address indexed claimant, uint256 tokenAmount, uint256 assetAmount, uint256 remainingTokenAmount, uint256 price)

func (*LoanTokenLogicV4Filterer) ParseMint

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) ParseMint(log types.Log) (*LoanTokenLogicV4Mint, error)

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

Solidity: event Mint(address indexed minter, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*LoanTokenLogicV4Filterer) ParseOwnershipTransferred

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) ParseOwnershipTransferred(log types.Log) (*LoanTokenLogicV4OwnershipTransferred, error)

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

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

func (*LoanTokenLogicV4Filterer) ParseRepay

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) ParseRepay(log types.Log) (*LoanTokenLogicV4Repay, error)

ParseRepay is a log parse operation binding the contract event 0x85dfc0033a3e5b3b9b3151bd779c1f9b855d66b83ff5bb79283b68d82e8e5b73.

Solidity: event Repay(bytes32 indexed loanOrderHash, address indexed borrower, address closer, uint256 amount, bool isLiquidation)

func (*LoanTokenLogicV4Filterer) ParseTransfer

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) ParseTransfer(log types.Log) (*LoanTokenLogicV4Transfer, error)

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

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

func (*LoanTokenLogicV4Filterer) WatchApproval

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *LoanTokenLogicV4Approval, 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 (*LoanTokenLogicV4Filterer) WatchBorrow

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) WatchBorrow(opts *bind.WatchOpts, sink chan<- *LoanTokenLogicV4Borrow, borrower []common.Address) (event.Subscription, error)

WatchBorrow is a free log subscription operation binding the contract event 0x86e15dd78cd784ab7788bcf5b96b9395e86030e048e5faedcfe752c700f6157e.

Solidity: event Borrow(address indexed borrower, uint256 borrowAmount, uint256 interestRate, address collateralTokenAddress, address tradeTokenToFillAddress, bool withdrawOnOpen)

func (*LoanTokenLogicV4Filterer) WatchBurn

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *LoanTokenLogicV4Burn, burner []common.Address) (event.Subscription, error)

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

Solidity: event Burn(address indexed burner, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*LoanTokenLogicV4Filterer) WatchClaim

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *LoanTokenLogicV4Claim, claimant []common.Address) (event.Subscription, error)

WatchClaim is a free log subscription operation binding the contract event 0x68e1caf97c4c29c1ac46024e9590f80b7a1f690d393703879cf66eea4e1e8421.

Solidity: event Claim(address indexed claimant, uint256 tokenAmount, uint256 assetAmount, uint256 remainingTokenAmount, uint256 price)

func (*LoanTokenLogicV4Filterer) WatchMint

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) WatchMint(opts *bind.WatchOpts, sink chan<- *LoanTokenLogicV4Mint, minter []common.Address) (event.Subscription, error)

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

Solidity: event Mint(address indexed minter, uint256 tokenAmount, uint256 assetAmount, uint256 price)

func (*LoanTokenLogicV4Filterer) WatchOwnershipTransferred

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *LoanTokenLogicV4OwnershipTransferred, 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 (*LoanTokenLogicV4Filterer) WatchRepay

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) WatchRepay(opts *bind.WatchOpts, sink chan<- *LoanTokenLogicV4Repay, loanOrderHash [][32]byte, borrower []common.Address) (event.Subscription, error)

WatchRepay is a free log subscription operation binding the contract event 0x85dfc0033a3e5b3b9b3151bd779c1f9b855d66b83ff5bb79283b68d82e8e5b73.

Solidity: event Repay(bytes32 indexed loanOrderHash, address indexed borrower, address closer, uint256 amount, bool isLiquidation)

func (*LoanTokenLogicV4Filterer) WatchTransfer

func (_LoanTokenLogicV4 *LoanTokenLogicV4Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *LoanTokenLogicV4Transfer, 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 LoanTokenLogicV4Mint

type LoanTokenLogicV4Mint struct {
	Minter      common.Address
	TokenAmount *big.Int
	AssetAmount *big.Int
	Price       *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

LoanTokenLogicV4Mint represents a Mint event raised by the LoanTokenLogicV4 contract.

type LoanTokenLogicV4MintIterator

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

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

func (*LoanTokenLogicV4MintIterator) Close

func (it *LoanTokenLogicV4MintIterator) Close() error

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

func (*LoanTokenLogicV4MintIterator) Error

func (it *LoanTokenLogicV4MintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoanTokenLogicV4MintIterator) 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 LoanTokenLogicV4OwnershipTransferred

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

LoanTokenLogicV4OwnershipTransferred represents a OwnershipTransferred event raised by the LoanTokenLogicV4 contract.

type LoanTokenLogicV4OwnershipTransferredIterator

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

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

func (*LoanTokenLogicV4OwnershipTransferredIterator) Close

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

func (*LoanTokenLogicV4OwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoanTokenLogicV4OwnershipTransferredIterator) 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 LoanTokenLogicV4Raw

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

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

func (*LoanTokenLogicV4Raw) Call

func (_LoanTokenLogicV4 *LoanTokenLogicV4Raw) 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 (*LoanTokenLogicV4Raw) Transact

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

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

func (*LoanTokenLogicV4Raw) Transfer

func (_LoanTokenLogicV4 *LoanTokenLogicV4Raw) 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 LoanTokenLogicV4Repay

type LoanTokenLogicV4Repay struct {
	LoanOrderHash [32]byte
	Borrower      common.Address
	Closer        common.Address
	Amount        *big.Int
	IsLiquidation bool
	Raw           types.Log // Blockchain specific contextual infos
}

LoanTokenLogicV4Repay represents a Repay event raised by the LoanTokenLogicV4 contract.

type LoanTokenLogicV4RepayIterator

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

LoanTokenLogicV4RepayIterator is returned from FilterRepay and is used to iterate over the raw logs and unpacked data for Repay events raised by the LoanTokenLogicV4 contract.

func (*LoanTokenLogicV4RepayIterator) Close

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

func (*LoanTokenLogicV4RepayIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoanTokenLogicV4RepayIterator) 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 LoanTokenLogicV4Session

type LoanTokenLogicV4Session struct {
	Contract     *LoanTokenLogicV4 // 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
}

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

func (*LoanTokenLogicV4Session) Allowance

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) 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 (*LoanTokenLogicV4Session) Approve

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*LoanTokenLogicV4Session) AssetBalanceOf

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) AssetBalanceOf(_owner common.Address) (*big.Int, error)

AssetBalanceOf is a free data retrieval call binding the contract method 0x06b3efd6.

Solidity: function assetBalanceOf(address _owner) view returns(uint256)

func (*LoanTokenLogicV4Session) AvgBorrowInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) AvgBorrowInterestRate() (*big.Int, error)

AvgBorrowInterestRate is a free data retrieval call binding the contract method 0x44a4a003.

Solidity: function avgBorrowInterestRate() view returns(uint256)

func (*LoanTokenLogicV4Session) BZxContract

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) BZxContract() (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*LoanTokenLogicV4Session) BZxOracle

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) BZxOracle() (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*LoanTokenLogicV4Session) BZxVault

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) BZxVault() (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*LoanTokenLogicV4Session) BalanceOf

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) BalanceOf(_owner common.Address) (*big.Int, error)

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

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

func (*LoanTokenLogicV4Session) BaseRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) BaseRate() (*big.Int, error)

BaseRate is a free data retrieval call binding the contract method 0x1f68f20a.

Solidity: function baseRate() view returns(uint256)

func (*LoanTokenLogicV4Session) BorrowInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) BorrowInterestRate() (*big.Int, error)

BorrowInterestRate is a free data retrieval call binding the contract method 0x8325a1c0.

Solidity: function borrowInterestRate() view returns(uint256)

func (*LoanTokenLogicV4Session) BorrowTokenFromDeposit

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) BorrowTokenFromDeposit(borrowAmount *big.Int, leverageAmount *big.Int, initialLoanDuration *big.Int, collateralTokenSent *big.Int, borrower common.Address, receiver common.Address, collateralTokenAddress common.Address, arg7 []byte) (*types.Transaction, error)

BorrowTokenFromDeposit is a paid mutator transaction binding the contract method 0xcfb65bb9.

Solidity: function borrowTokenFromDeposit(uint256 borrowAmount, uint256 leverageAmount, uint256 initialLoanDuration, uint256 collateralTokenSent, address borrower, address receiver, address collateralTokenAddress, bytes ) payable returns(bytes32 loanOrderHash)

func (*LoanTokenLogicV4Session) Burn

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) Burn(receiver common.Address, burnAmount *big.Int) (*types.Transaction, error)

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

Solidity: function burn(address receiver, uint256 burnAmount) returns(uint256 loanAmountPaid)

func (*LoanTokenLogicV4Session) BurnToEther

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) BurnToEther(receiver common.Address, burnAmount *big.Int) (*types.Transaction, error)

BurnToEther is a paid mutator transaction binding the contract method 0x81a6b250.

Solidity: function burnToEther(address receiver, uint256 burnAmount) returns(uint256 loanAmountPaid)

func (*LoanTokenLogicV4Session) BurntTokenReserveList

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) BurntTokenReserveList(arg0 *big.Int) (struct {
	Lender common.Address
	Amount *big.Int
}, error)

BurntTokenReserveList is a free data retrieval call binding the contract method 0x7866c6c1.

Solidity: function burntTokenReserveList(uint256 ) view returns(address lender, uint256 amount)

func (*LoanTokenLogicV4Session) BurntTokenReserveListIndex

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) BurntTokenReserveListIndex(arg0 common.Address) (struct {
	Index *big.Int
	IsSet bool
}, error)

BurntTokenReserveListIndex is a free data retrieval call binding the contract method 0xfbd9574d.

Solidity: function burntTokenReserveListIndex(address ) view returns(uint256 index, bool isSet)

func (*LoanTokenLogicV4Session) BurntTokenReserved

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) BurntTokenReserved() (*big.Int, error)

BurntTokenReserved is a free data retrieval call binding the contract method 0x0c4925fd.

Solidity: function burntTokenReserved() view returns(uint256)

func (*LoanTokenLogicV4Session) CheckpointPrice

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) CheckpointPrice(_user common.Address) (*big.Int, error)

CheckpointPrice is a free data retrieval call binding the contract method 0xeebc5081.

Solidity: function checkpointPrice(address _user) view returns(uint256 price)

func (*LoanTokenLogicV4Session) CheckpointSupply

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) CheckpointSupply() (*big.Int, error)

CheckpointSupply is a free data retrieval call binding the contract method 0x7b7933b4.

Solidity: function checkpointSupply() view returns(uint256)

func (*LoanTokenLogicV4Session) CloseLoanNotifier

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) CloseLoanNotifier(loanOrder BZxObjectsLoanOrder, loanPosition BZxObjectsLoanPosition, loanCloser common.Address, closeAmount *big.Int, isLiquidation bool) (*types.Transaction, error)

CloseLoanNotifier is a paid mutator transaction binding the contract method 0xcd4fa66d.

Solidity: function closeLoanNotifier((address,address,address,address,uint256,uint256,uint256,uint256,uint256,bytes32) loanOrder, (address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256) loanPosition, address loanCloser, uint256 closeAmount, bool isLiquidation) returns(bool)

func (*LoanTokenLogicV4Session) Decimals

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*LoanTokenLogicV4Session) Fallback

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() returns()

func (*LoanTokenLogicV4Session) GetBorrowAmountForDeposit

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) GetBorrowAmountForDeposit(depositAmount *big.Int, leverageAmount *big.Int, initialLoanDuration *big.Int, collateralTokenAddress common.Address) (*big.Int, error)

GetBorrowAmountForDeposit is a free data retrieval call binding the contract method 0x24d25f4a.

Solidity: function getBorrowAmountForDeposit(uint256 depositAmount, uint256 leverageAmount, uint256 initialLoanDuration, address collateralTokenAddress) view returns(uint256 borrowAmount)

func (*LoanTokenLogicV4Session) GetDepositAmountForBorrow

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) GetDepositAmountForBorrow(borrowAmount *big.Int, leverageAmount *big.Int, initialLoanDuration *big.Int, collateralTokenAddress common.Address) (*big.Int, error)

GetDepositAmountForBorrow is a free data retrieval call binding the contract method 0x8423acd6.

Solidity: function getDepositAmountForBorrow(uint256 borrowAmount, uint256 leverageAmount, uint256 initialLoanDuration, address collateralTokenAddress) view returns(uint256 depositAmount)

func (*LoanTokenLogicV4Session) GetLeverageList

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) GetLeverageList() ([]*big.Int, error)

GetLeverageList is a free data retrieval call binding the contract method 0x2ecae90a.

Solidity: function getLeverageList() view returns(uint256[])

func (*LoanTokenLogicV4Session) GetLoanData

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) GetLoanData(loanOrderHash [32]byte) (LoanTokenStorageLoanData, error)

GetLoanData is a free data retrieval call binding the contract method 0xc4d2b1b3.

Solidity: function getLoanData(bytes32 loanOrderHash) view returns((bytes32,uint256,uint256,uint256,uint256,uint256,uint256,address))

func (*LoanTokenLogicV4Session) GetMaxEscrowAmount

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) GetMaxEscrowAmount(leverageAmount *big.Int) (*big.Int, error)

GetMaxEscrowAmount is a free data retrieval call binding the contract method 0x829b38f4.

Solidity: function getMaxEscrowAmount(uint256 leverageAmount) view returns(uint256)

func (*LoanTokenLogicV4Session) InitialPrice

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) InitialPrice() (*big.Int, error)

InitialPrice is a free data retrieval call binding the contract method 0x1d0806ae.

Solidity: function initialPrice() view returns(uint256)

func (*LoanTokenLogicV4Session) LeverageList

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) LeverageList(arg0 *big.Int) (*big.Int, error)

LeverageList is a free data retrieval call binding the contract method 0x9b3a54d1.

Solidity: function leverageList(uint256 ) view returns(uint256)

func (*LoanTokenLogicV4Session) LoanOrderData

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) LoanOrderData(arg0 [32]byte) (struct {
	LoanOrderHash               [32]byte
	LeverageAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	Index                       *big.Int
	MarginPremiumAmount         *big.Int
	CollateralTokenAddress      common.Address
}, error)

LoanOrderData is a free data retrieval call binding the contract method 0x2515aacd.

Solidity: function loanOrderData(bytes32 ) view returns(bytes32 loanOrderHash, uint256 leverageAmount, uint256 initialMarginAmount, uint256 maintenanceMarginAmount, uint256 maxDurationUnixTimestampSec, uint256 index, uint256 marginPremiumAmount, address collateralTokenAddress)

func (*LoanTokenLogicV4Session) LoanOrderHashes

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) LoanOrderHashes(arg0 *big.Int) ([32]byte, error)

LoanOrderHashes is a free data retrieval call binding the contract method 0xfe056342.

Solidity: function loanOrderHashes(uint256 ) view returns(bytes32)

func (*LoanTokenLogicV4Session) LoanTokenAddress

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) LoanTokenAddress() (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*LoanTokenLogicV4Session) MarginTradeFromDeposit

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) MarginTradeFromDeposit(depositAmount *big.Int, leverageAmount *big.Int, loanTokenSent *big.Int, collateralTokenSent *big.Int, tradeTokenSent *big.Int, trader common.Address, depositTokenAddress common.Address, collateralTokenAddress common.Address, tradeTokenAddress common.Address, loanDataBytes []byte) (*types.Transaction, error)

MarginTradeFromDeposit is a paid mutator transaction binding the contract method 0x1c5d1da5.

Solidity: function marginTradeFromDeposit(uint256 depositAmount, uint256 leverageAmount, uint256 loanTokenSent, uint256 collateralTokenSent, uint256 tradeTokenSent, address trader, address depositTokenAddress, address collateralTokenAddress, address tradeTokenAddress, bytes loanDataBytes) payable returns(bytes32 loanOrderHash)

func (*LoanTokenLogicV4Session) MarketLiquidity

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) MarketLiquidity() (*big.Int, error)

MarketLiquidity is a free data retrieval call binding the contract method 0x612ef80b.

Solidity: function marketLiquidity() view returns(uint256)

func (*LoanTokenLogicV4Session) Mint

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) Mint(receiver common.Address, depositAmount *big.Int) (*types.Transaction, error)

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

Solidity: function mint(address receiver, uint256 depositAmount) returns(uint256 mintAmount)

func (*LoanTokenLogicV4Session) MintWithEther

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) MintWithEther(receiver common.Address) (*types.Transaction, error)

MintWithEther is a paid mutator transaction binding the contract method 0x8f6ede1f.

Solidity: function mintWithEther(address receiver) payable returns(uint256 mintAmount)

func (*LoanTokenLogicV4Session) Name

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*LoanTokenLogicV4Session) NextBorrowInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) NextBorrowInterestRate(borrowAmount *big.Int) (*big.Int, error)

NextBorrowInterestRate is a free data retrieval call binding the contract method 0xb9fe1a8f.

Solidity: function nextBorrowInterestRate(uint256 borrowAmount) view returns(uint256)

func (*LoanTokenLogicV4Session) NextBorrowInterestRateWithOption

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) NextBorrowInterestRateWithOption(borrowAmount *big.Int, useFixedInterestModel bool) (*big.Int, error)

NextBorrowInterestRateWithOption is a free data retrieval call binding the contract method 0x7d90dcba.

Solidity: function nextBorrowInterestRateWithOption(uint256 borrowAmount, bool useFixedInterestModel) view returns(uint256)

func (*LoanTokenLogicV4Session) NextSupplyInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) NextSupplyInterestRate(supplyAmount *big.Int) (*big.Int, error)

NextSupplyInterestRate is a free data retrieval call binding the contract method 0xd65a5021.

Solidity: function nextSupplyInterestRate(uint256 supplyAmount) view returns(uint256)

func (*LoanTokenLogicV4Session) NextsupplyInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) NextsupplyInterestRate() (*big.Int, error)

NextsupplyInterestRate is a free data retrieval call binding the contract method 0x09ec6b6b.

Solidity: function supplyInterestRate() view returns(uint256)

func (*LoanTokenLogicV4Session) Owner

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LoanTokenLogicV4Session) ProtocolInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) ProtocolInterestRate() (*big.Int, error)

ProtocolInterestRate is a free data retrieval call binding the contract method 0xfc3b72b1.

Solidity: function protocolInterestRate() view returns(uint256)

func (*LoanTokenLogicV4Session) RateMultiplier

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) RateMultiplier() (*big.Int, error)

RateMultiplier is a free data retrieval call binding the contract method 0x330691ac.

Solidity: function rateMultiplier() view returns(uint256)

func (*LoanTokenLogicV4Session) SpreadMultiplier

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) SpreadMultiplier() (*big.Int, error)

SpreadMultiplier is a free data retrieval call binding the contract method 0xd84d2a47.

Solidity: function spreadMultiplier() view returns(uint256)

func (*LoanTokenLogicV4Session) SupplyInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) SupplyInterestRate(assetBorrow *big.Int, assetSupply *big.Int) (*big.Int, error)

SupplyInterestRate is a free data retrieval call binding the contract method 0x7288b344.

Solidity: function _supplyInterestRate(uint256 assetBorrow, uint256 assetSupply) view returns(uint256)

func (*LoanTokenLogicV4Session) Symbol

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*LoanTokenLogicV4Session) TokenPrice

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) TokenPrice() (*big.Int, error)

TokenPrice is a free data retrieval call binding the contract method 0x7ff9b596.

Solidity: function tokenPrice() view returns(uint256 price)

func (*LoanTokenLogicV4Session) TokenizedRegistry

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) TokenizedRegistry() (common.Address, error)

TokenizedRegistry is a free data retrieval call binding the contract method 0x736ee3d3.

Solidity: function tokenizedRegistry() view returns(address)

func (*LoanTokenLogicV4Session) TotalAssetBorrow

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) TotalAssetBorrow() (*big.Int, error)

TotalAssetBorrow is a free data retrieval call binding the contract method 0x20f6d07c.

Solidity: function totalAssetBorrow() view returns(uint256)

func (*LoanTokenLogicV4Session) TotalAssetSupply

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) TotalAssetSupply() (*big.Int, error)

TotalAssetSupply is a free data retrieval call binding the contract method 0x8fb807c5.

Solidity: function totalAssetSupply() view returns(uint256)

func (*LoanTokenLogicV4Session) TotalSupply

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*LoanTokenLogicV4Session) TotalSupplyInterestRate

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) TotalSupplyInterestRate(assetSupply *big.Int) (*big.Int, error)

TotalSupplyInterestRate is a free data retrieval call binding the contract method 0x12416898.

Solidity: function totalSupplyInterestRate(uint256 assetSupply) view returns(uint256)

func (*LoanTokenLogicV4Session) Transfer

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*LoanTokenLogicV4Session) TransferFrom

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

func (*LoanTokenLogicV4Session) TransferOwnership

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) 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 (*LoanTokenLogicV4Session) UpdateSettings

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) UpdateSettings(settingsTarget common.Address, callData []byte) (*types.Transaction, error)

UpdateSettings is a paid mutator transaction binding the contract method 0x284e2f56.

Solidity: function updateSettings(address settingsTarget, bytes callData) returns()

func (*LoanTokenLogicV4Session) WethContract

func (_LoanTokenLogicV4 *LoanTokenLogicV4Session) WethContract() (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type LoanTokenLogicV4Transactor

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

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

func NewLoanTokenLogicV4Transactor

func NewLoanTokenLogicV4Transactor(address common.Address, transactor bind.ContractTransactor) (*LoanTokenLogicV4Transactor, error)

NewLoanTokenLogicV4Transactor creates a new write-only instance of LoanTokenLogicV4, bound to a specific deployed contract.

func (*LoanTokenLogicV4Transactor) Approve

func (_LoanTokenLogicV4 *LoanTokenLogicV4Transactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*LoanTokenLogicV4Transactor) BorrowTokenFromDeposit

func (_LoanTokenLogicV4 *LoanTokenLogicV4Transactor) BorrowTokenFromDeposit(opts *bind.TransactOpts, borrowAmount *big.Int, leverageAmount *big.Int, initialLoanDuration *big.Int, collateralTokenSent *big.Int, borrower common.Address, receiver common.Address, collateralTokenAddress common.Address, arg7 []byte) (*types.Transaction, error)

BorrowTokenFromDeposit is a paid mutator transaction binding the contract method 0xcfb65bb9.

Solidity: function borrowTokenFromDeposit(uint256 borrowAmount, uint256 leverageAmount, uint256 initialLoanDuration, uint256 collateralTokenSent, address borrower, address receiver, address collateralTokenAddress, bytes ) payable returns(bytes32 loanOrderHash)

func (*LoanTokenLogicV4Transactor) Burn

func (_LoanTokenLogicV4 *LoanTokenLogicV4Transactor) Burn(opts *bind.TransactOpts, receiver common.Address, burnAmount *big.Int) (*types.Transaction, error)

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

Solidity: function burn(address receiver, uint256 burnAmount) returns(uint256 loanAmountPaid)

func (*LoanTokenLogicV4Transactor) BurnToEther

func (_LoanTokenLogicV4 *LoanTokenLogicV4Transactor) BurnToEther(opts *bind.TransactOpts, receiver common.Address, burnAmount *big.Int) (*types.Transaction, error)

BurnToEther is a paid mutator transaction binding the contract method 0x81a6b250.

Solidity: function burnToEther(address receiver, uint256 burnAmount) returns(uint256 loanAmountPaid)

func (*LoanTokenLogicV4Transactor) CloseLoanNotifier

func (_LoanTokenLogicV4 *LoanTokenLogicV4Transactor) CloseLoanNotifier(opts *bind.TransactOpts, loanOrder BZxObjectsLoanOrder, loanPosition BZxObjectsLoanPosition, loanCloser common.Address, closeAmount *big.Int, isLiquidation bool) (*types.Transaction, error)

CloseLoanNotifier is a paid mutator transaction binding the contract method 0xcd4fa66d.

Solidity: function closeLoanNotifier((address,address,address,address,uint256,uint256,uint256,uint256,uint256,bytes32) loanOrder, (address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256) loanPosition, address loanCloser, uint256 closeAmount, bool isLiquidation) returns(bool)

func (*LoanTokenLogicV4Transactor) Fallback

func (_LoanTokenLogicV4 *LoanTokenLogicV4Transactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() returns()

func (*LoanTokenLogicV4Transactor) MarginTradeFromDeposit

func (_LoanTokenLogicV4 *LoanTokenLogicV4Transactor) MarginTradeFromDeposit(opts *bind.TransactOpts, depositAmount *big.Int, leverageAmount *big.Int, loanTokenSent *big.Int, collateralTokenSent *big.Int, tradeTokenSent *big.Int, trader common.Address, depositTokenAddress common.Address, collateralTokenAddress common.Address, tradeTokenAddress common.Address, loanDataBytes []byte) (*types.Transaction, error)

MarginTradeFromDeposit is a paid mutator transaction binding the contract method 0x1c5d1da5.

Solidity: function marginTradeFromDeposit(uint256 depositAmount, uint256 leverageAmount, uint256 loanTokenSent, uint256 collateralTokenSent, uint256 tradeTokenSent, address trader, address depositTokenAddress, address collateralTokenAddress, address tradeTokenAddress, bytes loanDataBytes) payable returns(bytes32 loanOrderHash)

func (*LoanTokenLogicV4Transactor) Mint

func (_LoanTokenLogicV4 *LoanTokenLogicV4Transactor) Mint(opts *bind.TransactOpts, receiver common.Address, depositAmount *big.Int) (*types.Transaction, error)

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

Solidity: function mint(address receiver, uint256 depositAmount) returns(uint256 mintAmount)

func (*LoanTokenLogicV4Transactor) MintWithEther

func (_LoanTokenLogicV4 *LoanTokenLogicV4Transactor) MintWithEther(opts *bind.TransactOpts, receiver common.Address) (*types.Transaction, error)

MintWithEther is a paid mutator transaction binding the contract method 0x8f6ede1f.

Solidity: function mintWithEther(address receiver) payable returns(uint256 mintAmount)

func (*LoanTokenLogicV4Transactor) Transfer

func (_LoanTokenLogicV4 *LoanTokenLogicV4Transactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*LoanTokenLogicV4Transactor) TransferFrom

func (_LoanTokenLogicV4 *LoanTokenLogicV4Transactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

func (*LoanTokenLogicV4Transactor) TransferOwnership

func (_LoanTokenLogicV4 *LoanTokenLogicV4Transactor) 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 (*LoanTokenLogicV4Transactor) UpdateSettings

func (_LoanTokenLogicV4 *LoanTokenLogicV4Transactor) UpdateSettings(opts *bind.TransactOpts, settingsTarget common.Address, callData []byte) (*types.Transaction, error)

UpdateSettings is a paid mutator transaction binding the contract method 0x284e2f56.

Solidity: function updateSettings(address settingsTarget, bytes callData) returns()

type LoanTokenLogicV4TransactorRaw

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

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

func (*LoanTokenLogicV4TransactorRaw) Transact

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

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

func (*LoanTokenLogicV4TransactorRaw) Transfer

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorRaw) 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 LoanTokenLogicV4TransactorSession

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

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

func (*LoanTokenLogicV4TransactorSession) Approve

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*LoanTokenLogicV4TransactorSession) BorrowTokenFromDeposit

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorSession) BorrowTokenFromDeposit(borrowAmount *big.Int, leverageAmount *big.Int, initialLoanDuration *big.Int, collateralTokenSent *big.Int, borrower common.Address, receiver common.Address, collateralTokenAddress common.Address, arg7 []byte) (*types.Transaction, error)

BorrowTokenFromDeposit is a paid mutator transaction binding the contract method 0xcfb65bb9.

Solidity: function borrowTokenFromDeposit(uint256 borrowAmount, uint256 leverageAmount, uint256 initialLoanDuration, uint256 collateralTokenSent, address borrower, address receiver, address collateralTokenAddress, bytes ) payable returns(bytes32 loanOrderHash)

func (*LoanTokenLogicV4TransactorSession) Burn

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorSession) Burn(receiver common.Address, burnAmount *big.Int) (*types.Transaction, error)

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

Solidity: function burn(address receiver, uint256 burnAmount) returns(uint256 loanAmountPaid)

func (*LoanTokenLogicV4TransactorSession) BurnToEther

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorSession) BurnToEther(receiver common.Address, burnAmount *big.Int) (*types.Transaction, error)

BurnToEther is a paid mutator transaction binding the contract method 0x81a6b250.

Solidity: function burnToEther(address receiver, uint256 burnAmount) returns(uint256 loanAmountPaid)

func (*LoanTokenLogicV4TransactorSession) CloseLoanNotifier

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorSession) CloseLoanNotifier(loanOrder BZxObjectsLoanOrder, loanPosition BZxObjectsLoanPosition, loanCloser common.Address, closeAmount *big.Int, isLiquidation bool) (*types.Transaction, error)

CloseLoanNotifier is a paid mutator transaction binding the contract method 0xcd4fa66d.

Solidity: function closeLoanNotifier((address,address,address,address,uint256,uint256,uint256,uint256,uint256,bytes32) loanOrder, (address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256) loanPosition, address loanCloser, uint256 closeAmount, bool isLiquidation) returns(bool)

func (*LoanTokenLogicV4TransactorSession) Fallback

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() returns()

func (*LoanTokenLogicV4TransactorSession) MarginTradeFromDeposit

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorSession) MarginTradeFromDeposit(depositAmount *big.Int, leverageAmount *big.Int, loanTokenSent *big.Int, collateralTokenSent *big.Int, tradeTokenSent *big.Int, trader common.Address, depositTokenAddress common.Address, collateralTokenAddress common.Address, tradeTokenAddress common.Address, loanDataBytes []byte) (*types.Transaction, error)

MarginTradeFromDeposit is a paid mutator transaction binding the contract method 0x1c5d1da5.

Solidity: function marginTradeFromDeposit(uint256 depositAmount, uint256 leverageAmount, uint256 loanTokenSent, uint256 collateralTokenSent, uint256 tradeTokenSent, address trader, address depositTokenAddress, address collateralTokenAddress, address tradeTokenAddress, bytes loanDataBytes) payable returns(bytes32 loanOrderHash)

func (*LoanTokenLogicV4TransactorSession) Mint

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorSession) Mint(receiver common.Address, depositAmount *big.Int) (*types.Transaction, error)

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

Solidity: function mint(address receiver, uint256 depositAmount) returns(uint256 mintAmount)

func (*LoanTokenLogicV4TransactorSession) MintWithEther

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorSession) MintWithEther(receiver common.Address) (*types.Transaction, error)

MintWithEther is a paid mutator transaction binding the contract method 0x8f6ede1f.

Solidity: function mintWithEther(address receiver) payable returns(uint256 mintAmount)

func (*LoanTokenLogicV4TransactorSession) Transfer

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*LoanTokenLogicV4TransactorSession) TransferFrom

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

func (*LoanTokenLogicV4TransactorSession) TransferOwnership

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorSession) 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 (*LoanTokenLogicV4TransactorSession) UpdateSettings

func (_LoanTokenLogicV4 *LoanTokenLogicV4TransactorSession) UpdateSettings(settingsTarget common.Address, callData []byte) (*types.Transaction, error)

UpdateSettings is a paid mutator transaction binding the contract method 0x284e2f56.

Solidity: function updateSettings(address settingsTarget, bytes callData) returns()

type LoanTokenLogicV4Transfer

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

LoanTokenLogicV4Transfer represents a Transfer event raised by the LoanTokenLogicV4 contract.

type LoanTokenLogicV4TransferIterator

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

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

func (*LoanTokenLogicV4TransferIterator) Close

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

func (*LoanTokenLogicV4TransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoanTokenLogicV4TransferIterator) 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 LoanTokenStorage

type LoanTokenStorage struct {
	LoanTokenStorageCaller     // Read-only binding to the contract
	LoanTokenStorageTransactor // Write-only binding to the contract
	LoanTokenStorageFilterer   // Log filterer for contract events
}

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

func DeployLoanTokenStorage

func DeployLoanTokenStorage(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *LoanTokenStorage, error)

DeployLoanTokenStorage deploys a new Ethereum contract, binding an instance of LoanTokenStorage to it.

func NewLoanTokenStorage

func NewLoanTokenStorage(address common.Address, backend bind.ContractBackend) (*LoanTokenStorage, error)

NewLoanTokenStorage creates a new instance of LoanTokenStorage, bound to a specific deployed contract.

type LoanTokenStorageBorrow

type LoanTokenStorageBorrow struct {
	Borrower                common.Address
	BorrowAmount            *big.Int
	InterestRate            *big.Int
	CollateralTokenAddress  common.Address
	TradeTokenToFillAddress common.Address
	WithdrawOnOpen          bool
	Raw                     types.Log // Blockchain specific contextual infos
}

LoanTokenStorageBorrow represents a Borrow event raised by the LoanTokenStorage contract.

type LoanTokenStorageBorrowIterator

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

LoanTokenStorageBorrowIterator is returned from FilterBorrow and is used to iterate over the raw logs and unpacked data for Borrow events raised by the LoanTokenStorage contract.

func (*LoanTokenStorageBorrowIterator) Close

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

func (*LoanTokenStorageBorrowIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoanTokenStorageBorrowIterator) 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 LoanTokenStorageCaller

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

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

func NewLoanTokenStorageCaller

func NewLoanTokenStorageCaller(address common.Address, caller bind.ContractCaller) (*LoanTokenStorageCaller, error)

NewLoanTokenStorageCaller creates a new read-only instance of LoanTokenStorage, bound to a specific deployed contract.

func (*LoanTokenStorageCaller) BZxContract

func (_LoanTokenStorage *LoanTokenStorageCaller) BZxContract(opts *bind.CallOpts) (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*LoanTokenStorageCaller) BZxOracle

func (_LoanTokenStorage *LoanTokenStorageCaller) BZxOracle(opts *bind.CallOpts) (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*LoanTokenStorageCaller) BZxVault

func (_LoanTokenStorage *LoanTokenStorageCaller) BZxVault(opts *bind.CallOpts) (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*LoanTokenStorageCaller) BaseRate

func (_LoanTokenStorage *LoanTokenStorageCaller) BaseRate(opts *bind.CallOpts) (*big.Int, error)

BaseRate is a free data retrieval call binding the contract method 0x1f68f20a.

Solidity: function baseRate() view returns(uint256)

func (*LoanTokenStorageCaller) BurntTokenReserveList

func (_LoanTokenStorage *LoanTokenStorageCaller) BurntTokenReserveList(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Lender common.Address
	Amount *big.Int
}, error)

BurntTokenReserveList is a free data retrieval call binding the contract method 0x7866c6c1.

Solidity: function burntTokenReserveList(uint256 ) view returns(address lender, uint256 amount)

func (*LoanTokenStorageCaller) BurntTokenReserveListIndex

func (_LoanTokenStorage *LoanTokenStorageCaller) BurntTokenReserveListIndex(opts *bind.CallOpts, arg0 common.Address) (struct {
	Index *big.Int
	IsSet bool
}, error)

BurntTokenReserveListIndex is a free data retrieval call binding the contract method 0xfbd9574d.

Solidity: function burntTokenReserveListIndex(address ) view returns(uint256 index, bool isSet)

func (*LoanTokenStorageCaller) BurntTokenReserved

func (_LoanTokenStorage *LoanTokenStorageCaller) BurntTokenReserved(opts *bind.CallOpts) (*big.Int, error)

BurntTokenReserved is a free data retrieval call binding the contract method 0x0c4925fd.

Solidity: function burntTokenReserved() view returns(uint256)

func (*LoanTokenStorageCaller) CheckpointSupply

func (_LoanTokenStorage *LoanTokenStorageCaller) CheckpointSupply(opts *bind.CallOpts) (*big.Int, error)

CheckpointSupply is a free data retrieval call binding the contract method 0x7b7933b4.

Solidity: function checkpointSupply() view returns(uint256)

func (*LoanTokenStorageCaller) Decimals

func (_LoanTokenStorage *LoanTokenStorageCaller) 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 (*LoanTokenStorageCaller) InitialPrice

func (_LoanTokenStorage *LoanTokenStorageCaller) InitialPrice(opts *bind.CallOpts) (*big.Int, error)

InitialPrice is a free data retrieval call binding the contract method 0x1d0806ae.

Solidity: function initialPrice() view returns(uint256)

func (*LoanTokenStorageCaller) LeverageList

func (_LoanTokenStorage *LoanTokenStorageCaller) LeverageList(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

LeverageList is a free data retrieval call binding the contract method 0x9b3a54d1.

Solidity: function leverageList(uint256 ) view returns(uint256)

func (*LoanTokenStorageCaller) LoanOrderData

func (_LoanTokenStorage *LoanTokenStorageCaller) LoanOrderData(opts *bind.CallOpts, arg0 [32]byte) (struct {
	LoanOrderHash               [32]byte
	LeverageAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	Index                       *big.Int
	MarginPremiumAmount         *big.Int
	CollateralTokenAddress      common.Address
}, error)

LoanOrderData is a free data retrieval call binding the contract method 0x2515aacd.

Solidity: function loanOrderData(bytes32 ) view returns(bytes32 loanOrderHash, uint256 leverageAmount, uint256 initialMarginAmount, uint256 maintenanceMarginAmount, uint256 maxDurationUnixTimestampSec, uint256 index, uint256 marginPremiumAmount, address collateralTokenAddress)

func (*LoanTokenStorageCaller) LoanOrderHashes

func (_LoanTokenStorage *LoanTokenStorageCaller) LoanOrderHashes(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

LoanOrderHashes is a free data retrieval call binding the contract method 0xfe056342.

Solidity: function loanOrderHashes(uint256 ) view returns(bytes32)

func (*LoanTokenStorageCaller) LoanTokenAddress

func (_LoanTokenStorage *LoanTokenStorageCaller) LoanTokenAddress(opts *bind.CallOpts) (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*LoanTokenStorageCaller) Name

func (_LoanTokenStorage *LoanTokenStorageCaller) 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 (*LoanTokenStorageCaller) Owner

func (_LoanTokenStorage *LoanTokenStorageCaller) 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 (*LoanTokenStorageCaller) RateMultiplier

func (_LoanTokenStorage *LoanTokenStorageCaller) RateMultiplier(opts *bind.CallOpts) (*big.Int, error)

RateMultiplier is a free data retrieval call binding the contract method 0x330691ac.

Solidity: function rateMultiplier() view returns(uint256)

func (*LoanTokenStorageCaller) SpreadMultiplier

func (_LoanTokenStorage *LoanTokenStorageCaller) SpreadMultiplier(opts *bind.CallOpts) (*big.Int, error)

SpreadMultiplier is a free data retrieval call binding the contract method 0xd84d2a47.

Solidity: function spreadMultiplier() view returns(uint256)

func (*LoanTokenStorageCaller) Symbol

func (_LoanTokenStorage *LoanTokenStorageCaller) 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 (*LoanTokenStorageCaller) TokenizedRegistry

func (_LoanTokenStorage *LoanTokenStorageCaller) TokenizedRegistry(opts *bind.CallOpts) (common.Address, error)

TokenizedRegistry is a free data retrieval call binding the contract method 0x736ee3d3.

Solidity: function tokenizedRegistry() view returns(address)

func (*LoanTokenStorageCaller) TotalAssetBorrow

func (_LoanTokenStorage *LoanTokenStorageCaller) TotalAssetBorrow(opts *bind.CallOpts) (*big.Int, error)

TotalAssetBorrow is a free data retrieval call binding the contract method 0x20f6d07c.

Solidity: function totalAssetBorrow() view returns(uint256)

func (*LoanTokenStorageCaller) WethContract

func (_LoanTokenStorage *LoanTokenStorageCaller) WethContract(opts *bind.CallOpts) (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type LoanTokenStorageCallerRaw

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

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

func (*LoanTokenStorageCallerRaw) Call

func (_LoanTokenStorage *LoanTokenStorageCallerRaw) 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 LoanTokenStorageCallerSession

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

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

func (*LoanTokenStorageCallerSession) BZxContract

func (_LoanTokenStorage *LoanTokenStorageCallerSession) BZxContract() (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*LoanTokenStorageCallerSession) BZxOracle

func (_LoanTokenStorage *LoanTokenStorageCallerSession) BZxOracle() (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*LoanTokenStorageCallerSession) BZxVault

func (_LoanTokenStorage *LoanTokenStorageCallerSession) BZxVault() (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*LoanTokenStorageCallerSession) BaseRate

func (_LoanTokenStorage *LoanTokenStorageCallerSession) BaseRate() (*big.Int, error)

BaseRate is a free data retrieval call binding the contract method 0x1f68f20a.

Solidity: function baseRate() view returns(uint256)

func (*LoanTokenStorageCallerSession) BurntTokenReserveList

func (_LoanTokenStorage *LoanTokenStorageCallerSession) BurntTokenReserveList(arg0 *big.Int) (struct {
	Lender common.Address
	Amount *big.Int
}, error)

BurntTokenReserveList is a free data retrieval call binding the contract method 0x7866c6c1.

Solidity: function burntTokenReserveList(uint256 ) view returns(address lender, uint256 amount)

func (*LoanTokenStorageCallerSession) BurntTokenReserveListIndex

func (_LoanTokenStorage *LoanTokenStorageCallerSession) BurntTokenReserveListIndex(arg0 common.Address) (struct {
	Index *big.Int
	IsSet bool
}, error)

BurntTokenReserveListIndex is a free data retrieval call binding the contract method 0xfbd9574d.

Solidity: function burntTokenReserveListIndex(address ) view returns(uint256 index, bool isSet)

func (*LoanTokenStorageCallerSession) BurntTokenReserved

func (_LoanTokenStorage *LoanTokenStorageCallerSession) BurntTokenReserved() (*big.Int, error)

BurntTokenReserved is a free data retrieval call binding the contract method 0x0c4925fd.

Solidity: function burntTokenReserved() view returns(uint256)

func (*LoanTokenStorageCallerSession) CheckpointSupply

func (_LoanTokenStorage *LoanTokenStorageCallerSession) CheckpointSupply() (*big.Int, error)

CheckpointSupply is a free data retrieval call binding the contract method 0x7b7933b4.

Solidity: function checkpointSupply() view returns(uint256)

func (*LoanTokenStorageCallerSession) Decimals

func (_LoanTokenStorage *LoanTokenStorageCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*LoanTokenStorageCallerSession) InitialPrice

func (_LoanTokenStorage *LoanTokenStorageCallerSession) InitialPrice() (*big.Int, error)

InitialPrice is a free data retrieval call binding the contract method 0x1d0806ae.

Solidity: function initialPrice() view returns(uint256)

func (*LoanTokenStorageCallerSession) LeverageList

func (_LoanTokenStorage *LoanTokenStorageCallerSession) LeverageList(arg0 *big.Int) (*big.Int, error)

LeverageList is a free data retrieval call binding the contract method 0x9b3a54d1.

Solidity: function leverageList(uint256 ) view returns(uint256)

func (*LoanTokenStorageCallerSession) LoanOrderData

func (_LoanTokenStorage *LoanTokenStorageCallerSession) LoanOrderData(arg0 [32]byte) (struct {
	LoanOrderHash               [32]byte
	LeverageAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	Index                       *big.Int
	MarginPremiumAmount         *big.Int
	CollateralTokenAddress      common.Address
}, error)

LoanOrderData is a free data retrieval call binding the contract method 0x2515aacd.

Solidity: function loanOrderData(bytes32 ) view returns(bytes32 loanOrderHash, uint256 leverageAmount, uint256 initialMarginAmount, uint256 maintenanceMarginAmount, uint256 maxDurationUnixTimestampSec, uint256 index, uint256 marginPremiumAmount, address collateralTokenAddress)

func (*LoanTokenStorageCallerSession) LoanOrderHashes

func (_LoanTokenStorage *LoanTokenStorageCallerSession) LoanOrderHashes(arg0 *big.Int) ([32]byte, error)

LoanOrderHashes is a free data retrieval call binding the contract method 0xfe056342.

Solidity: function loanOrderHashes(uint256 ) view returns(bytes32)

func (*LoanTokenStorageCallerSession) LoanTokenAddress

func (_LoanTokenStorage *LoanTokenStorageCallerSession) LoanTokenAddress() (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*LoanTokenStorageCallerSession) Name

func (_LoanTokenStorage *LoanTokenStorageCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*LoanTokenStorageCallerSession) Owner

func (_LoanTokenStorage *LoanTokenStorageCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LoanTokenStorageCallerSession) RateMultiplier

func (_LoanTokenStorage *LoanTokenStorageCallerSession) RateMultiplier() (*big.Int, error)

RateMultiplier is a free data retrieval call binding the contract method 0x330691ac.

Solidity: function rateMultiplier() view returns(uint256)

func (*LoanTokenStorageCallerSession) SpreadMultiplier

func (_LoanTokenStorage *LoanTokenStorageCallerSession) SpreadMultiplier() (*big.Int, error)

SpreadMultiplier is a free data retrieval call binding the contract method 0xd84d2a47.

Solidity: function spreadMultiplier() view returns(uint256)

func (*LoanTokenStorageCallerSession) Symbol

func (_LoanTokenStorage *LoanTokenStorageCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*LoanTokenStorageCallerSession) TokenizedRegistry

func (_LoanTokenStorage *LoanTokenStorageCallerSession) TokenizedRegistry() (common.Address, error)

TokenizedRegistry is a free data retrieval call binding the contract method 0x736ee3d3.

Solidity: function tokenizedRegistry() view returns(address)

func (*LoanTokenStorageCallerSession) TotalAssetBorrow

func (_LoanTokenStorage *LoanTokenStorageCallerSession) TotalAssetBorrow() (*big.Int, error)

TotalAssetBorrow is a free data retrieval call binding the contract method 0x20f6d07c.

Solidity: function totalAssetBorrow() view returns(uint256)

func (*LoanTokenStorageCallerSession) WethContract

func (_LoanTokenStorage *LoanTokenStorageCallerSession) WethContract() (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type LoanTokenStorageClaim

type LoanTokenStorageClaim struct {
	Claimant             common.Address
	TokenAmount          *big.Int
	AssetAmount          *big.Int
	RemainingTokenAmount *big.Int
	Price                *big.Int
	Raw                  types.Log // Blockchain specific contextual infos
}

LoanTokenStorageClaim represents a Claim event raised by the LoanTokenStorage contract.

type LoanTokenStorageClaimIterator

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

LoanTokenStorageClaimIterator is returned from FilterClaim and is used to iterate over the raw logs and unpacked data for Claim events raised by the LoanTokenStorage contract.

func (*LoanTokenStorageClaimIterator) Close

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

func (*LoanTokenStorageClaimIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoanTokenStorageClaimIterator) 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 LoanTokenStorageFilterer

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

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

func NewLoanTokenStorageFilterer

func NewLoanTokenStorageFilterer(address common.Address, filterer bind.ContractFilterer) (*LoanTokenStorageFilterer, error)

NewLoanTokenStorageFilterer creates a new log filterer instance of LoanTokenStorage, bound to a specific deployed contract.

func (*LoanTokenStorageFilterer) FilterBorrow

func (_LoanTokenStorage *LoanTokenStorageFilterer) FilterBorrow(opts *bind.FilterOpts, borrower []common.Address) (*LoanTokenStorageBorrowIterator, error)

FilterBorrow is a free log retrieval operation binding the contract event 0x86e15dd78cd784ab7788bcf5b96b9395e86030e048e5faedcfe752c700f6157e.

Solidity: event Borrow(address indexed borrower, uint256 borrowAmount, uint256 interestRate, address collateralTokenAddress, address tradeTokenToFillAddress, bool withdrawOnOpen)

func (*LoanTokenStorageFilterer) FilterClaim

func (_LoanTokenStorage *LoanTokenStorageFilterer) FilterClaim(opts *bind.FilterOpts, claimant []common.Address) (*LoanTokenStorageClaimIterator, error)

FilterClaim is a free log retrieval operation binding the contract event 0x68e1caf97c4c29c1ac46024e9590f80b7a1f690d393703879cf66eea4e1e8421.

Solidity: event Claim(address indexed claimant, uint256 tokenAmount, uint256 assetAmount, uint256 remainingTokenAmount, uint256 price)

func (*LoanTokenStorageFilterer) FilterOwnershipTransferred

func (_LoanTokenStorage *LoanTokenStorageFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*LoanTokenStorageOwnershipTransferredIterator, error)

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

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

func (*LoanTokenStorageFilterer) FilterRepay

func (_LoanTokenStorage *LoanTokenStorageFilterer) FilterRepay(opts *bind.FilterOpts, loanOrderHash [][32]byte, borrower []common.Address) (*LoanTokenStorageRepayIterator, error)

FilterRepay is a free log retrieval operation binding the contract event 0x85dfc0033a3e5b3b9b3151bd779c1f9b855d66b83ff5bb79283b68d82e8e5b73.

Solidity: event Repay(bytes32 indexed loanOrderHash, address indexed borrower, address closer, uint256 amount, bool isLiquidation)

func (*LoanTokenStorageFilterer) ParseBorrow

func (_LoanTokenStorage *LoanTokenStorageFilterer) ParseBorrow(log types.Log) (*LoanTokenStorageBorrow, error)

ParseBorrow is a log parse operation binding the contract event 0x86e15dd78cd784ab7788bcf5b96b9395e86030e048e5faedcfe752c700f6157e.

Solidity: event Borrow(address indexed borrower, uint256 borrowAmount, uint256 interestRate, address collateralTokenAddress, address tradeTokenToFillAddress, bool withdrawOnOpen)

func (*LoanTokenStorageFilterer) ParseClaim

func (_LoanTokenStorage *LoanTokenStorageFilterer) ParseClaim(log types.Log) (*LoanTokenStorageClaim, error)

ParseClaim is a log parse operation binding the contract event 0x68e1caf97c4c29c1ac46024e9590f80b7a1f690d393703879cf66eea4e1e8421.

Solidity: event Claim(address indexed claimant, uint256 tokenAmount, uint256 assetAmount, uint256 remainingTokenAmount, uint256 price)

func (*LoanTokenStorageFilterer) ParseOwnershipTransferred

func (_LoanTokenStorage *LoanTokenStorageFilterer) ParseOwnershipTransferred(log types.Log) (*LoanTokenStorageOwnershipTransferred, error)

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

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

func (*LoanTokenStorageFilterer) ParseRepay

func (_LoanTokenStorage *LoanTokenStorageFilterer) ParseRepay(log types.Log) (*LoanTokenStorageRepay, error)

ParseRepay is a log parse operation binding the contract event 0x85dfc0033a3e5b3b9b3151bd779c1f9b855d66b83ff5bb79283b68d82e8e5b73.

Solidity: event Repay(bytes32 indexed loanOrderHash, address indexed borrower, address closer, uint256 amount, bool isLiquidation)

func (*LoanTokenStorageFilterer) WatchBorrow

func (_LoanTokenStorage *LoanTokenStorageFilterer) WatchBorrow(opts *bind.WatchOpts, sink chan<- *LoanTokenStorageBorrow, borrower []common.Address) (event.Subscription, error)

WatchBorrow is a free log subscription operation binding the contract event 0x86e15dd78cd784ab7788bcf5b96b9395e86030e048e5faedcfe752c700f6157e.

Solidity: event Borrow(address indexed borrower, uint256 borrowAmount, uint256 interestRate, address collateralTokenAddress, address tradeTokenToFillAddress, bool withdrawOnOpen)

func (*LoanTokenStorageFilterer) WatchClaim

func (_LoanTokenStorage *LoanTokenStorageFilterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *LoanTokenStorageClaim, claimant []common.Address) (event.Subscription, error)

WatchClaim is a free log subscription operation binding the contract event 0x68e1caf97c4c29c1ac46024e9590f80b7a1f690d393703879cf66eea4e1e8421.

Solidity: event Claim(address indexed claimant, uint256 tokenAmount, uint256 assetAmount, uint256 remainingTokenAmount, uint256 price)

func (*LoanTokenStorageFilterer) WatchOwnershipTransferred

func (_LoanTokenStorage *LoanTokenStorageFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *LoanTokenStorageOwnershipTransferred, 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 (*LoanTokenStorageFilterer) WatchRepay

func (_LoanTokenStorage *LoanTokenStorageFilterer) WatchRepay(opts *bind.WatchOpts, sink chan<- *LoanTokenStorageRepay, loanOrderHash [][32]byte, borrower []common.Address) (event.Subscription, error)

WatchRepay is a free log subscription operation binding the contract event 0x85dfc0033a3e5b3b9b3151bd779c1f9b855d66b83ff5bb79283b68d82e8e5b73.

Solidity: event Repay(bytes32 indexed loanOrderHash, address indexed borrower, address closer, uint256 amount, bool isLiquidation)

type LoanTokenStorageLoanData

type LoanTokenStorageLoanData struct {
	LoanOrderHash               [32]byte
	LeverageAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	Index                       *big.Int
	MarginPremiumAmount         *big.Int
	CollateralTokenAddress      common.Address
}

LoanTokenStorageLoanData is an auto generated low-level Go binding around an user-defined struct.

type LoanTokenStorageOwnershipTransferred

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

LoanTokenStorageOwnershipTransferred represents a OwnershipTransferred event raised by the LoanTokenStorage contract.

type LoanTokenStorageOwnershipTransferredIterator

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

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

func (*LoanTokenStorageOwnershipTransferredIterator) Close

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

func (*LoanTokenStorageOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoanTokenStorageOwnershipTransferredIterator) 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 LoanTokenStorageRaw

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

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

func (*LoanTokenStorageRaw) Call

func (_LoanTokenStorage *LoanTokenStorageRaw) 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 (*LoanTokenStorageRaw) Transact

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

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

func (*LoanTokenStorageRaw) Transfer

func (_LoanTokenStorage *LoanTokenStorageRaw) 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 LoanTokenStorageRepay

type LoanTokenStorageRepay struct {
	LoanOrderHash [32]byte
	Borrower      common.Address
	Closer        common.Address
	Amount        *big.Int
	IsLiquidation bool
	Raw           types.Log // Blockchain specific contextual infos
}

LoanTokenStorageRepay represents a Repay event raised by the LoanTokenStorage contract.

type LoanTokenStorageRepayIterator

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

LoanTokenStorageRepayIterator is returned from FilterRepay and is used to iterate over the raw logs and unpacked data for Repay events raised by the LoanTokenStorage contract.

func (*LoanTokenStorageRepayIterator) Close

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

func (*LoanTokenStorageRepayIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoanTokenStorageRepayIterator) 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 LoanTokenStorageSession

type LoanTokenStorageSession struct {
	Contract     *LoanTokenStorage // 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
}

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

func (*LoanTokenStorageSession) BZxContract

func (_LoanTokenStorage *LoanTokenStorageSession) BZxContract() (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*LoanTokenStorageSession) BZxOracle

func (_LoanTokenStorage *LoanTokenStorageSession) BZxOracle() (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*LoanTokenStorageSession) BZxVault

func (_LoanTokenStorage *LoanTokenStorageSession) BZxVault() (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*LoanTokenStorageSession) BaseRate

func (_LoanTokenStorage *LoanTokenStorageSession) BaseRate() (*big.Int, error)

BaseRate is a free data retrieval call binding the contract method 0x1f68f20a.

Solidity: function baseRate() view returns(uint256)

func (*LoanTokenStorageSession) BurntTokenReserveList

func (_LoanTokenStorage *LoanTokenStorageSession) BurntTokenReserveList(arg0 *big.Int) (struct {
	Lender common.Address
	Amount *big.Int
}, error)

BurntTokenReserveList is a free data retrieval call binding the contract method 0x7866c6c1.

Solidity: function burntTokenReserveList(uint256 ) view returns(address lender, uint256 amount)

func (*LoanTokenStorageSession) BurntTokenReserveListIndex

func (_LoanTokenStorage *LoanTokenStorageSession) BurntTokenReserveListIndex(arg0 common.Address) (struct {
	Index *big.Int
	IsSet bool
}, error)

BurntTokenReserveListIndex is a free data retrieval call binding the contract method 0xfbd9574d.

Solidity: function burntTokenReserveListIndex(address ) view returns(uint256 index, bool isSet)

func (*LoanTokenStorageSession) BurntTokenReserved

func (_LoanTokenStorage *LoanTokenStorageSession) BurntTokenReserved() (*big.Int, error)

BurntTokenReserved is a free data retrieval call binding the contract method 0x0c4925fd.

Solidity: function burntTokenReserved() view returns(uint256)

func (*LoanTokenStorageSession) CheckpointSupply

func (_LoanTokenStorage *LoanTokenStorageSession) CheckpointSupply() (*big.Int, error)

CheckpointSupply is a free data retrieval call binding the contract method 0x7b7933b4.

Solidity: function checkpointSupply() view returns(uint256)

func (*LoanTokenStorageSession) Decimals

func (_LoanTokenStorage *LoanTokenStorageSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*LoanTokenStorageSession) InitialPrice

func (_LoanTokenStorage *LoanTokenStorageSession) InitialPrice() (*big.Int, error)

InitialPrice is a free data retrieval call binding the contract method 0x1d0806ae.

Solidity: function initialPrice() view returns(uint256)

func (*LoanTokenStorageSession) LeverageList

func (_LoanTokenStorage *LoanTokenStorageSession) LeverageList(arg0 *big.Int) (*big.Int, error)

LeverageList is a free data retrieval call binding the contract method 0x9b3a54d1.

Solidity: function leverageList(uint256 ) view returns(uint256)

func (*LoanTokenStorageSession) LoanOrderData

func (_LoanTokenStorage *LoanTokenStorageSession) LoanOrderData(arg0 [32]byte) (struct {
	LoanOrderHash               [32]byte
	LeverageAmount              *big.Int
	InitialMarginAmount         *big.Int
	MaintenanceMarginAmount     *big.Int
	MaxDurationUnixTimestampSec *big.Int
	Index                       *big.Int
	MarginPremiumAmount         *big.Int
	CollateralTokenAddress      common.Address
}, error)

LoanOrderData is a free data retrieval call binding the contract method 0x2515aacd.

Solidity: function loanOrderData(bytes32 ) view returns(bytes32 loanOrderHash, uint256 leverageAmount, uint256 initialMarginAmount, uint256 maintenanceMarginAmount, uint256 maxDurationUnixTimestampSec, uint256 index, uint256 marginPremiumAmount, address collateralTokenAddress)

func (*LoanTokenStorageSession) LoanOrderHashes

func (_LoanTokenStorage *LoanTokenStorageSession) LoanOrderHashes(arg0 *big.Int) ([32]byte, error)

LoanOrderHashes is a free data retrieval call binding the contract method 0xfe056342.

Solidity: function loanOrderHashes(uint256 ) view returns(bytes32)

func (*LoanTokenStorageSession) LoanTokenAddress

func (_LoanTokenStorage *LoanTokenStorageSession) LoanTokenAddress() (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*LoanTokenStorageSession) Name

func (_LoanTokenStorage *LoanTokenStorageSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*LoanTokenStorageSession) Owner

func (_LoanTokenStorage *LoanTokenStorageSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LoanTokenStorageSession) RateMultiplier

func (_LoanTokenStorage *LoanTokenStorageSession) RateMultiplier() (*big.Int, error)

RateMultiplier is a free data retrieval call binding the contract method 0x330691ac.

Solidity: function rateMultiplier() view returns(uint256)

func (*LoanTokenStorageSession) SpreadMultiplier

func (_LoanTokenStorage *LoanTokenStorageSession) SpreadMultiplier() (*big.Int, error)

SpreadMultiplier is a free data retrieval call binding the contract method 0xd84d2a47.

Solidity: function spreadMultiplier() view returns(uint256)

func (*LoanTokenStorageSession) Symbol

func (_LoanTokenStorage *LoanTokenStorageSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*LoanTokenStorageSession) TokenizedRegistry

func (_LoanTokenStorage *LoanTokenStorageSession) TokenizedRegistry() (common.Address, error)

TokenizedRegistry is a free data retrieval call binding the contract method 0x736ee3d3.

Solidity: function tokenizedRegistry() view returns(address)

func (*LoanTokenStorageSession) TotalAssetBorrow

func (_LoanTokenStorage *LoanTokenStorageSession) TotalAssetBorrow() (*big.Int, error)

TotalAssetBorrow is a free data retrieval call binding the contract method 0x20f6d07c.

Solidity: function totalAssetBorrow() view returns(uint256)

func (*LoanTokenStorageSession) TransferOwnership

func (_LoanTokenStorage *LoanTokenStorageSession) 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 (*LoanTokenStorageSession) WethContract

func (_LoanTokenStorage *LoanTokenStorageSession) WethContract() (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type LoanTokenStorageTransactor

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

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

func NewLoanTokenStorageTransactor

func NewLoanTokenStorageTransactor(address common.Address, transactor bind.ContractTransactor) (*LoanTokenStorageTransactor, error)

NewLoanTokenStorageTransactor creates a new write-only instance of LoanTokenStorage, bound to a specific deployed contract.

func (*LoanTokenStorageTransactor) TransferOwnership

func (_LoanTokenStorage *LoanTokenStorageTransactor) 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()

type LoanTokenStorageTransactorRaw

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

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

func (*LoanTokenStorageTransactorRaw) Transact

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

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

func (*LoanTokenStorageTransactorRaw) Transfer

func (_LoanTokenStorage *LoanTokenStorageTransactorRaw) 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 LoanTokenStorageTransactorSession

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

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

func (*LoanTokenStorageTransactorSession) TransferOwnership

func (_LoanTokenStorage *LoanTokenStorageTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address _newOwner) returns()

type LoanTokenization

type LoanTokenization struct {
	LoanTokenizationCaller     // Read-only binding to the contract
	LoanTokenizationTransactor // Write-only binding to the contract
	LoanTokenizationFilterer   // Log filterer for contract events
}

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

func DeployLoanTokenization

func DeployLoanTokenization(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *LoanTokenization, error)

DeployLoanTokenization deploys a new Ethereum contract, binding an instance of LoanTokenization to it.

func NewLoanTokenization

func NewLoanTokenization(address common.Address, backend bind.ContractBackend) (*LoanTokenization, error)

NewLoanTokenization creates a new instance of LoanTokenization, bound to a specific deployed contract.

type LoanTokenizationCaller

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

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

func NewLoanTokenizationCaller

func NewLoanTokenizationCaller(address common.Address, caller bind.ContractCaller) (*LoanTokenizationCaller, error)

NewLoanTokenizationCaller creates a new read-only instance of LoanTokenization, bound to a specific deployed contract.

func (*LoanTokenizationCaller) BZxContract

func (_LoanTokenization *LoanTokenizationCaller) BZxContract(opts *bind.CallOpts) (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*LoanTokenizationCaller) BZxOracle

func (_LoanTokenization *LoanTokenizationCaller) BZxOracle(opts *bind.CallOpts) (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*LoanTokenizationCaller) BZxVault

func (_LoanTokenization *LoanTokenizationCaller) BZxVault(opts *bind.CallOpts) (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*LoanTokenizationCaller) Decimals

func (_LoanTokenization *LoanTokenizationCaller) 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 (*LoanTokenizationCaller) LoanTokenAddress

func (_LoanTokenization *LoanTokenizationCaller) LoanTokenAddress(opts *bind.CallOpts) (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*LoanTokenizationCaller) Name

func (_LoanTokenization *LoanTokenizationCaller) 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 (*LoanTokenizationCaller) Owner

func (_LoanTokenization *LoanTokenizationCaller) 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 (*LoanTokenizationCaller) Symbol

func (_LoanTokenization *LoanTokenizationCaller) 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 (*LoanTokenizationCaller) WethContract

func (_LoanTokenization *LoanTokenizationCaller) WethContract(opts *bind.CallOpts) (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type LoanTokenizationCallerRaw

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

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

func (*LoanTokenizationCallerRaw) Call

func (_LoanTokenization *LoanTokenizationCallerRaw) 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 LoanTokenizationCallerSession

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

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

func (*LoanTokenizationCallerSession) BZxContract

func (_LoanTokenization *LoanTokenizationCallerSession) BZxContract() (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*LoanTokenizationCallerSession) BZxOracle

func (_LoanTokenization *LoanTokenizationCallerSession) BZxOracle() (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*LoanTokenizationCallerSession) BZxVault

func (_LoanTokenization *LoanTokenizationCallerSession) BZxVault() (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*LoanTokenizationCallerSession) Decimals

func (_LoanTokenization *LoanTokenizationCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*LoanTokenizationCallerSession) LoanTokenAddress

func (_LoanTokenization *LoanTokenizationCallerSession) LoanTokenAddress() (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*LoanTokenizationCallerSession) Name

func (_LoanTokenization *LoanTokenizationCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*LoanTokenizationCallerSession) Owner

func (_LoanTokenization *LoanTokenizationCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LoanTokenizationCallerSession) Symbol

func (_LoanTokenization *LoanTokenizationCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*LoanTokenizationCallerSession) WethContract

func (_LoanTokenization *LoanTokenizationCallerSession) WethContract() (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type LoanTokenizationFilterer

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

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

func NewLoanTokenizationFilterer

func NewLoanTokenizationFilterer(address common.Address, filterer bind.ContractFilterer) (*LoanTokenizationFilterer, error)

NewLoanTokenizationFilterer creates a new log filterer instance of LoanTokenization, bound to a specific deployed contract.

func (*LoanTokenizationFilterer) FilterOwnershipTransferred

func (_LoanTokenization *LoanTokenizationFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*LoanTokenizationOwnershipTransferredIterator, error)

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

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

func (*LoanTokenizationFilterer) ParseOwnershipTransferred

func (_LoanTokenization *LoanTokenizationFilterer) ParseOwnershipTransferred(log types.Log) (*LoanTokenizationOwnershipTransferred, error)

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

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

func (*LoanTokenizationFilterer) WatchOwnershipTransferred

func (_LoanTokenization *LoanTokenizationFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *LoanTokenizationOwnershipTransferred, 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)

type LoanTokenizationOwnershipTransferred

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

LoanTokenizationOwnershipTransferred represents a OwnershipTransferred event raised by the LoanTokenization contract.

type LoanTokenizationOwnershipTransferredIterator

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

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

func (*LoanTokenizationOwnershipTransferredIterator) Close

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

func (*LoanTokenizationOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoanTokenizationOwnershipTransferredIterator) 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 LoanTokenizationRaw

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

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

func (*LoanTokenizationRaw) Call

func (_LoanTokenization *LoanTokenizationRaw) 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 (*LoanTokenizationRaw) Transact

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

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

func (*LoanTokenizationRaw) Transfer

func (_LoanTokenization *LoanTokenizationRaw) 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 LoanTokenizationSession

type LoanTokenizationSession struct {
	Contract     *LoanTokenization // 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
}

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

func (*LoanTokenizationSession) BZxContract

func (_LoanTokenization *LoanTokenizationSession) BZxContract() (common.Address, error)

BZxContract is a free data retrieval call binding the contract method 0x995363d3.

Solidity: function bZxContract() view returns(address)

func (*LoanTokenizationSession) BZxOracle

func (_LoanTokenization *LoanTokenizationSession) BZxOracle() (common.Address, error)

BZxOracle is a free data retrieval call binding the contract method 0x96c7871b.

Solidity: function bZxOracle() view returns(address)

func (*LoanTokenizationSession) BZxVault

func (_LoanTokenization *LoanTokenizationSession) BZxVault() (common.Address, error)

BZxVault is a free data retrieval call binding the contract method 0x894ca308.

Solidity: function bZxVault() view returns(address)

func (*LoanTokenizationSession) Decimals

func (_LoanTokenization *LoanTokenizationSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*LoanTokenizationSession) LoanTokenAddress

func (_LoanTokenization *LoanTokenizationSession) LoanTokenAddress() (common.Address, error)

LoanTokenAddress is a free data retrieval call binding the contract method 0x797bf385.

Solidity: function loanTokenAddress() view returns(address)

func (*LoanTokenizationSession) Name

func (_LoanTokenization *LoanTokenizationSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*LoanTokenizationSession) Owner

func (_LoanTokenization *LoanTokenizationSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LoanTokenizationSession) Symbol

func (_LoanTokenization *LoanTokenizationSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*LoanTokenizationSession) TransferOwnership

func (_LoanTokenization *LoanTokenizationSession) 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 (*LoanTokenizationSession) WethContract

func (_LoanTokenization *LoanTokenizationSession) WethContract() (common.Address, error)

WethContract is a free data retrieval call binding the contract method 0x4780eac1.

Solidity: function wethContract() view returns(address)

type LoanTokenizationTransactor

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

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

func NewLoanTokenizationTransactor

func NewLoanTokenizationTransactor(address common.Address, transactor bind.ContractTransactor) (*LoanTokenizationTransactor, error)

NewLoanTokenizationTransactor creates a new write-only instance of LoanTokenization, bound to a specific deployed contract.

func (*LoanTokenizationTransactor) TransferOwnership

func (_LoanTokenization *LoanTokenizationTransactor) 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()

type LoanTokenizationTransactorRaw

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

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

func (*LoanTokenizationTransactorRaw) Transact

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

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

func (*LoanTokenizationTransactorRaw) Transfer

func (_LoanTokenization *LoanTokenizationTransactorRaw) 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 LoanTokenizationTransactorSession

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

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

func (*LoanTokenizationTransactorSession) TransferOwnership

func (_LoanTokenization *LoanTokenizationTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address _newOwner) returns()

type OracleNotifierInterface

type OracleNotifierInterface struct {
	OracleNotifierInterfaceCaller     // Read-only binding to the contract
	OracleNotifierInterfaceTransactor // Write-only binding to the contract
	OracleNotifierInterfaceFilterer   // Log filterer for contract events
}

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

func NewOracleNotifierInterface

func NewOracleNotifierInterface(address common.Address, backend bind.ContractBackend) (*OracleNotifierInterface, error)

NewOracleNotifierInterface creates a new instance of OracleNotifierInterface, bound to a specific deployed contract.

type OracleNotifierInterfaceCaller

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

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

func NewOracleNotifierInterfaceCaller

func NewOracleNotifierInterfaceCaller(address common.Address, caller bind.ContractCaller) (*OracleNotifierInterfaceCaller, error)

NewOracleNotifierInterfaceCaller creates a new read-only instance of OracleNotifierInterface, bound to a specific deployed contract.

type OracleNotifierInterfaceCallerRaw

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

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

func (*OracleNotifierInterfaceCallerRaw) Call

func (_OracleNotifierInterface *OracleNotifierInterfaceCallerRaw) 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 OracleNotifierInterfaceCallerSession

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

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

type OracleNotifierInterfaceFilterer

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

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

func NewOracleNotifierInterfaceFilterer

func NewOracleNotifierInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*OracleNotifierInterfaceFilterer, error)

NewOracleNotifierInterfaceFilterer creates a new log filterer instance of OracleNotifierInterface, bound to a specific deployed contract.

type OracleNotifierInterfaceRaw

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

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

func (*OracleNotifierInterfaceRaw) Call

func (_OracleNotifierInterface *OracleNotifierInterfaceRaw) 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 (*OracleNotifierInterfaceRaw) Transact

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

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

func (*OracleNotifierInterfaceRaw) Transfer

func (_OracleNotifierInterface *OracleNotifierInterfaceRaw) 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 OracleNotifierInterfaceSession

type OracleNotifierInterfaceSession struct {
	Contract     *OracleNotifierInterface // 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
}

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

func (*OracleNotifierInterfaceSession) CloseLoanNotifier

func (_OracleNotifierInterface *OracleNotifierInterfaceSession) CloseLoanNotifier(loanOrder BZxObjectsLoanOrder, loanPosition BZxObjectsLoanPosition, loanCloser common.Address, closeAmount *big.Int, isLiquidation bool) (*types.Transaction, error)

CloseLoanNotifier is a paid mutator transaction binding the contract method 0xcd4fa66d.

Solidity: function closeLoanNotifier((address,address,address,address,uint256,uint256,uint256,uint256,uint256,bytes32) loanOrder, (address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256) loanPosition, address loanCloser, uint256 closeAmount, bool isLiquidation) returns(bool)

type OracleNotifierInterfaceTransactor

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

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

func NewOracleNotifierInterfaceTransactor

func NewOracleNotifierInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*OracleNotifierInterfaceTransactor, error)

NewOracleNotifierInterfaceTransactor creates a new write-only instance of OracleNotifierInterface, bound to a specific deployed contract.

func (*OracleNotifierInterfaceTransactor) CloseLoanNotifier

func (_OracleNotifierInterface *OracleNotifierInterfaceTransactor) CloseLoanNotifier(opts *bind.TransactOpts, loanOrder BZxObjectsLoanOrder, loanPosition BZxObjectsLoanPosition, loanCloser common.Address, closeAmount *big.Int, isLiquidation bool) (*types.Transaction, error)

CloseLoanNotifier is a paid mutator transaction binding the contract method 0xcd4fa66d.

Solidity: function closeLoanNotifier((address,address,address,address,uint256,uint256,uint256,uint256,uint256,bytes32) loanOrder, (address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256) loanPosition, address loanCloser, uint256 closeAmount, bool isLiquidation) returns(bool)

type OracleNotifierInterfaceTransactorRaw

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

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

func (*OracleNotifierInterfaceTransactorRaw) Transact

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

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

func (*OracleNotifierInterfaceTransactorRaw) Transfer

func (_OracleNotifierInterface *OracleNotifierInterfaceTransactorRaw) 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 OracleNotifierInterfaceTransactorSession

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

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

func (*OracleNotifierInterfaceTransactorSession) CloseLoanNotifier

func (_OracleNotifierInterface *OracleNotifierInterfaceTransactorSession) CloseLoanNotifier(loanOrder BZxObjectsLoanOrder, loanPosition BZxObjectsLoanPosition, loanCloser common.Address, closeAmount *big.Int, isLiquidation bool) (*types.Transaction, error)

CloseLoanNotifier is a paid mutator transaction binding the contract method 0xcd4fa66d.

Solidity: function closeLoanNotifier((address,address,address,address,uint256,uint256,uint256,uint256,uint256,bytes32) loanOrder, (address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256) loanPosition, address loanCloser, uint256 closeAmount, bool isLiquidation) returns(bool)

type Ownable

type Ownable struct {
	OwnableCaller     // Read-only binding to the contract
	OwnableTransactor // Write-only binding to the contract
	OwnableFilterer   // Log filterer for contract events
}

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

func DeployOwnable

func DeployOwnable(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Ownable, error)

DeployOwnable deploys a new Ethereum contract, binding an instance of Ownable to it.

func NewOwnable

func NewOwnable(address common.Address, backend bind.ContractBackend) (*Ownable, error)

NewOwnable creates a new instance of Ownable, bound to a specific deployed contract.

type OwnableCaller

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

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

func NewOwnableCaller

func NewOwnableCaller(address common.Address, caller bind.ContractCaller) (*OwnableCaller, error)

NewOwnableCaller creates a new read-only instance of Ownable, bound to a specific deployed contract.

func (*OwnableCaller) Owner

func (_Ownable *OwnableCaller) 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)

type OwnableCallerRaw

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

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

func (*OwnableCallerRaw) Call

func (_Ownable *OwnableCallerRaw) 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 OwnableCallerSession

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

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

func (*OwnableCallerSession) Owner

func (_Ownable *OwnableCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

type OwnableFilterer

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

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

func NewOwnableFilterer

func NewOwnableFilterer(address common.Address, filterer bind.ContractFilterer) (*OwnableFilterer, error)

NewOwnableFilterer creates a new log filterer instance of Ownable, bound to a specific deployed contract.

func (*OwnableFilterer) FilterOwnershipTransferred

func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error)

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

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

func (*OwnableFilterer) ParseOwnershipTransferred

func (_Ownable *OwnableFilterer) ParseOwnershipTransferred(log types.Log) (*OwnableOwnershipTransferred, error)

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

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

func (*OwnableFilterer) WatchOwnershipTransferred

func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, 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)

type OwnableOwnershipTransferred

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

OwnableOwnershipTransferred represents a OwnershipTransferred event raised by the Ownable contract.

type OwnableOwnershipTransferredIterator

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

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

func (*OwnableOwnershipTransferredIterator) Close

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

func (*OwnableOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OwnableOwnershipTransferredIterator) 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 OwnableRaw

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

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

func (*OwnableRaw) Call

func (_Ownable *OwnableRaw) 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 (*OwnableRaw) Transact

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

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

func (*OwnableRaw) Transfer

func (_Ownable *OwnableRaw) 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 OwnableSession

type OwnableSession struct {
	Contract     *Ownable          // 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
}

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

func (*OwnableSession) Owner

func (_Ownable *OwnableSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*OwnableSession) TransferOwnership

func (_Ownable *OwnableSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address _newOwner) returns()

type OwnableTransactor

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

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

func NewOwnableTransactor

func NewOwnableTransactor(address common.Address, transactor bind.ContractTransactor) (*OwnableTransactor, error)

NewOwnableTransactor creates a new write-only instance of Ownable, bound to a specific deployed contract.

func (*OwnableTransactor) TransferOwnership

func (_Ownable *OwnableTransactor) 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()

type OwnableTransactorRaw

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

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

func (*OwnableTransactorRaw) Transact

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

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

func (*OwnableTransactorRaw) Transfer

func (_Ownable *OwnableTransactorRaw) 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 OwnableTransactorSession

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

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

func (*OwnableTransactorSession) TransferOwnership

func (_Ownable *OwnableTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address _newOwner) returns()

type ReentrancyGuard

type ReentrancyGuard struct {
	ReentrancyGuardCaller     // Read-only binding to the contract
	ReentrancyGuardTransactor // Write-only binding to the contract
	ReentrancyGuardFilterer   // Log filterer for contract events
}

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

func DeployReentrancyGuard

func DeployReentrancyGuard(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ReentrancyGuard, error)

DeployReentrancyGuard deploys a new Ethereum contract, binding an instance of ReentrancyGuard to it.

func NewReentrancyGuard

func NewReentrancyGuard(address common.Address, backend bind.ContractBackend) (*ReentrancyGuard, error)

NewReentrancyGuard creates a new instance of ReentrancyGuard, bound to a specific deployed contract.

type ReentrancyGuardCaller

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

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

func NewReentrancyGuardCaller

func NewReentrancyGuardCaller(address common.Address, caller bind.ContractCaller) (*ReentrancyGuardCaller, error)

NewReentrancyGuardCaller creates a new read-only instance of ReentrancyGuard, bound to a specific deployed contract.

type ReentrancyGuardCallerRaw

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

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

func (*ReentrancyGuardCallerRaw) Call

func (_ReentrancyGuard *ReentrancyGuardCallerRaw) 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 ReentrancyGuardCallerSession

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

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

type ReentrancyGuardFilterer

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

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

func NewReentrancyGuardFilterer

func NewReentrancyGuardFilterer(address common.Address, filterer bind.ContractFilterer) (*ReentrancyGuardFilterer, error)

NewReentrancyGuardFilterer creates a new log filterer instance of ReentrancyGuard, bound to a specific deployed contract.

type ReentrancyGuardRaw

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

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

func (*ReentrancyGuardRaw) Call

func (_ReentrancyGuard *ReentrancyGuardRaw) 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 (*ReentrancyGuardRaw) Transact

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

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

func (*ReentrancyGuardRaw) Transfer

func (_ReentrancyGuard *ReentrancyGuardRaw) 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 ReentrancyGuardSession

type ReentrancyGuardSession struct {
	Contract     *ReentrancyGuard  // 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
}

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

type ReentrancyGuardTransactor

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

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

func NewReentrancyGuardTransactor

func NewReentrancyGuardTransactor(address common.Address, transactor bind.ContractTransactor) (*ReentrancyGuardTransactor, error)

NewReentrancyGuardTransactor creates a new write-only instance of ReentrancyGuard, bound to a specific deployed contract.

type ReentrancyGuardTransactorRaw

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

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

func (*ReentrancyGuardTransactorRaw) Transact

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

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

func (*ReentrancyGuardTransactorRaw) Transfer

func (_ReentrancyGuard *ReentrancyGuardTransactorRaw) 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 ReentrancyGuardTransactorSession

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

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

type SafeMath

type SafeMath struct {
	SafeMathCaller     // Read-only binding to the contract
	SafeMathTransactor // Write-only binding to the contract
	SafeMathFilterer   // Log filterer for contract events
}

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

func DeploySafeMath

func DeploySafeMath(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SafeMath, error)

DeploySafeMath deploys a new Ethereum contract, binding an instance of SafeMath to it.

func NewSafeMath

func NewSafeMath(address common.Address, backend bind.ContractBackend) (*SafeMath, error)

NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract.

type SafeMathCaller

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

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

func NewSafeMathCaller

func NewSafeMathCaller(address common.Address, caller bind.ContractCaller) (*SafeMathCaller, error)

NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract.

type SafeMathCallerRaw

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

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

func (*SafeMathCallerRaw) Call

func (_SafeMath *SafeMathCallerRaw) 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 SafeMathCallerSession

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

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

type SafeMathFilterer

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

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

func NewSafeMathFilterer

func NewSafeMathFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeMathFilterer, error)

NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract.

type SafeMathRaw

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

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

func (*SafeMathRaw) Call

func (_SafeMath *SafeMathRaw) 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 (*SafeMathRaw) Transact

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

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

func (*SafeMathRaw) Transfer

func (_SafeMath *SafeMathRaw) 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 SafeMathSession

type SafeMathSession struct {
	Contract     *SafeMath         // 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
}

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

type SafeMathTransactor

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

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

func NewSafeMathTransactor

func NewSafeMathTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeMathTransactor, error)

NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract.

type SafeMathTransactorRaw

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

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

func (*SafeMathTransactorRaw) Transact

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

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

func (*SafeMathTransactorRaw) Transfer

func (_SafeMath *SafeMathTransactorRaw) 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 SafeMathTransactorSession

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

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

type WETHInterface

type WETHInterface struct {
	WETHInterfaceCaller     // Read-only binding to the contract
	WETHInterfaceTransactor // Write-only binding to the contract
	WETHInterfaceFilterer   // Log filterer for contract events
}

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

func NewWETHInterface

func NewWETHInterface(address common.Address, backend bind.ContractBackend) (*WETHInterface, error)

NewWETHInterface creates a new instance of WETHInterface, bound to a specific deployed contract.

type WETHInterfaceApproval

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

WETHInterfaceApproval represents a Approval event raised by the WETHInterface contract.

type WETHInterfaceApprovalIterator

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

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

func (*WETHInterfaceApprovalIterator) Close

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

func (*WETHInterfaceApprovalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*WETHInterfaceApprovalIterator) 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 WETHInterfaceCaller

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

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

func NewWETHInterfaceCaller

func NewWETHInterfaceCaller(address common.Address, caller bind.ContractCaller) (*WETHInterfaceCaller, error)

NewWETHInterfaceCaller creates a new read-only instance of WETHInterface, bound to a specific deployed contract.

func (*WETHInterfaceCaller) Allowance

func (_WETHInterface *WETHInterfaceCaller) 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 (*WETHInterfaceCaller) BalanceOf

func (_WETHInterface *WETHInterfaceCaller) BalanceOf(opts *bind.CallOpts, _who common.Address) (*big.Int, error)

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

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

func (*WETHInterfaceCaller) Decimals

func (_WETHInterface *WETHInterfaceCaller) 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 (*WETHInterfaceCaller) Name

func (_WETHInterface *WETHInterfaceCaller) 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 (*WETHInterfaceCaller) Symbol

func (_WETHInterface *WETHInterfaceCaller) 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 (*WETHInterfaceCaller) TotalSupply

func (_WETHInterface *WETHInterfaceCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type WETHInterfaceCallerRaw

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

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

func (*WETHInterfaceCallerRaw) Call

func (_WETHInterface *WETHInterfaceCallerRaw) 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 WETHInterfaceCallerSession

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

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

func (*WETHInterfaceCallerSession) Allowance

func (_WETHInterface *WETHInterfaceCallerSession) 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 (*WETHInterfaceCallerSession) BalanceOf

func (_WETHInterface *WETHInterfaceCallerSession) BalanceOf(_who common.Address) (*big.Int, error)

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

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

func (*WETHInterfaceCallerSession) Decimals

func (_WETHInterface *WETHInterfaceCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*WETHInterfaceCallerSession) Name

func (_WETHInterface *WETHInterfaceCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*WETHInterfaceCallerSession) Symbol

func (_WETHInterface *WETHInterfaceCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*WETHInterfaceCallerSession) TotalSupply

func (_WETHInterface *WETHInterfaceCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type WETHInterfaceFilterer

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

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

func NewWETHInterfaceFilterer

func NewWETHInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*WETHInterfaceFilterer, error)

NewWETHInterfaceFilterer creates a new log filterer instance of WETHInterface, bound to a specific deployed contract.

func (*WETHInterfaceFilterer) FilterApproval

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

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

func (_WETHInterface *WETHInterfaceFilterer) ParseApproval(log types.Log) (*WETHInterfaceApproval, error)

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

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

func (*WETHInterfaceFilterer) ParseTransfer

func (_WETHInterface *WETHInterfaceFilterer) ParseTransfer(log types.Log) (*WETHInterfaceTransfer, error)

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

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

func (*WETHInterfaceFilterer) WatchApproval

func (_WETHInterface *WETHInterfaceFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *WETHInterfaceApproval, 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 (*WETHInterfaceFilterer) WatchTransfer

func (_WETHInterface *WETHInterfaceFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *WETHInterfaceTransfer, 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 WETHInterfaceRaw

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

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

func (*WETHInterfaceRaw) Call

func (_WETHInterface *WETHInterfaceRaw) 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 (*WETHInterfaceRaw) Transact

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

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

func (*WETHInterfaceRaw) Transfer

func (_WETHInterface *WETHInterfaceRaw) 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 WETHInterfaceSession

type WETHInterfaceSession struct {
	Contract     *WETHInterface    // 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
}

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

func (*WETHInterfaceSession) Allowance

func (_WETHInterface *WETHInterfaceSession) 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 (*WETHInterfaceSession) Approve

func (_WETHInterface *WETHInterfaceSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*WETHInterfaceSession) BalanceOf

func (_WETHInterface *WETHInterfaceSession) BalanceOf(_who common.Address) (*big.Int, error)

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

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

func (*WETHInterfaceSession) Decimals

func (_WETHInterface *WETHInterfaceSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*WETHInterfaceSession) Deposit

func (_WETHInterface *WETHInterfaceSession) Deposit() (*types.Transaction, error)

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

Solidity: function deposit() payable returns()

func (*WETHInterfaceSession) Name

func (_WETHInterface *WETHInterfaceSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*WETHInterfaceSession) Symbol

func (_WETHInterface *WETHInterfaceSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*WETHInterfaceSession) TotalSupply

func (_WETHInterface *WETHInterfaceSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*WETHInterfaceSession) Transfer

func (_WETHInterface *WETHInterfaceSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*WETHInterfaceSession) TransferFrom

func (_WETHInterface *WETHInterfaceSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

func (*WETHInterfaceSession) Withdraw

func (_WETHInterface *WETHInterfaceSession) Withdraw(wad *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 wad) returns()

type WETHInterfaceTransactor

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

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

func NewWETHInterfaceTransactor

func NewWETHInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*WETHInterfaceTransactor, error)

NewWETHInterfaceTransactor creates a new write-only instance of WETHInterface, bound to a specific deployed contract.

func (*WETHInterfaceTransactor) Approve

func (_WETHInterface *WETHInterfaceTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*WETHInterfaceTransactor) Deposit

func (_WETHInterface *WETHInterfaceTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function deposit() payable returns()

func (*WETHInterfaceTransactor) Transfer

func (_WETHInterface *WETHInterfaceTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*WETHInterfaceTransactor) TransferFrom

func (_WETHInterface *WETHInterfaceTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

func (*WETHInterfaceTransactor) Withdraw

func (_WETHInterface *WETHInterfaceTransactor) Withdraw(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 wad) returns()

type WETHInterfaceTransactorRaw

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

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

func (*WETHInterfaceTransactorRaw) Transact

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

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

func (*WETHInterfaceTransactorRaw) Transfer

func (_WETHInterface *WETHInterfaceTransactorRaw) 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 WETHInterfaceTransactorSession

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

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

func (*WETHInterfaceTransactorSession) Approve

func (_WETHInterface *WETHInterfaceTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*WETHInterfaceTransactorSession) Deposit

func (_WETHInterface *WETHInterfaceTransactorSession) Deposit() (*types.Transaction, error)

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

Solidity: function deposit() payable returns()

func (*WETHInterfaceTransactorSession) Transfer

func (_WETHInterface *WETHInterfaceTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*WETHInterfaceTransactorSession) TransferFrom

func (_WETHInterface *WETHInterfaceTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

func (*WETHInterfaceTransactorSession) Withdraw

func (_WETHInterface *WETHInterfaceTransactorSession) Withdraw(wad *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 wad) returns()

type WETHInterfaceTransfer

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

WETHInterfaceTransfer represents a Transfer event raised by the WETHInterface contract.

type WETHInterfaceTransferIterator

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

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

func (*WETHInterfaceTransferIterator) Close

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

func (*WETHInterfaceTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*WETHInterfaceTransferIterator) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL