vabi

package
v0.0.0-...-6c9d739 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: OSL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DigitalReserveSystemABI = "" /* 5691-byte string literal not displayed */

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

View Source
const FeederABI = "" /* 6902-byte string literal not displayed */

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

View Source
const HeartABI = "" /* 10938-byte string literal not displayed */

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

View Source
const PriceABI = "" /* 2756-byte string literal not displayed */

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

View Source
const StableCreditABI = "" /* 8195-byte string literal not displayed */

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

View Source
const TokenABI = "" /* 5303-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type DigitalReserveSystem

type DigitalReserveSystem struct {
	DigitalReserveSystemCaller     // Read-only binding to the contract
	DigitalReserveSystemTransactor // Write-only binding to the contract
	DigitalReserveSystemFilterer   // Log filterer for contract events
}

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

func NewDigitalReserveSystem

func NewDigitalReserveSystem(address common.Address, backend bind.ContractBackend) (*DigitalReserveSystem, error)

NewDigitalReserveSystem creates a new instance of DigitalReserveSystem, bound to a specific deployed contract.

type DigitalReserveSystemCaller

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

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

func NewDigitalReserveSystemCaller

func NewDigitalReserveSystemCaller(address common.Address, caller bind.ContractCaller) (*DigitalReserveSystemCaller, error)

NewDigitalReserveSystemCaller creates a new read-only instance of DigitalReserveSystem, bound to a specific deployed contract.

func (*DigitalReserveSystemCaller) CollateralHealthCheck

func (_DigitalReserveSystem *DigitalReserveSystemCaller) CollateralHealthCheck(opts *bind.CallOpts, assetCode string) (common.Address, [32]byte, *big.Int, *big.Int, error)

CollateralHealthCheck is a free data retrieval call binding the contract method 0x48268143.

Solidity: function collateralHealthCheck(string assetCode) view returns(address, bytes32, uint256, uint256)

func (*DigitalReserveSystemCaller) GetExchange

func (_DigitalReserveSystem *DigitalReserveSystemCaller) GetExchange(opts *bind.CallOpts, assetCode string) (string, [32]byte, *big.Int, error)

GetExchange is a free data retrieval call binding the contract method 0xff4b2032.

Solidity: function getExchange(string assetCode) view returns(string, bytes32, uint256)

func (*DigitalReserveSystemCaller) GetStableCreditAmount

func (_DigitalReserveSystem *DigitalReserveSystemCaller) GetStableCreditAmount(opts *bind.CallOpts, assetCode string) (*big.Int, error)

GetStableCreditAmount is a free data retrieval call binding the contract method 0xb2ffa6cb.

Solidity: function getStableCreditAmount(string assetCode) view returns(uint256)

func (*DigitalReserveSystemCaller) Heart

func (_DigitalReserveSystem *DigitalReserveSystemCaller) Heart(opts *bind.CallOpts) (common.Address, error)

Heart is a free data retrieval call binding the contract method 0xf58d1c94.

Solidity: function heart() view returns(address)

type DigitalReserveSystemCallerRaw

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

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

func (*DigitalReserveSystemCallerRaw) Call

func (_DigitalReserveSystem *DigitalReserveSystemCallerRaw) 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 DigitalReserveSystemCallerSession

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

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

func (*DigitalReserveSystemCallerSession) CollateralHealthCheck

func (_DigitalReserveSystem *DigitalReserveSystemCallerSession) CollateralHealthCheck(assetCode string) (common.Address, [32]byte, *big.Int, *big.Int, error)

CollateralHealthCheck is a free data retrieval call binding the contract method 0x48268143.

Solidity: function collateralHealthCheck(string assetCode) view returns(address, bytes32, uint256, uint256)

func (*DigitalReserveSystemCallerSession) GetExchange

func (_DigitalReserveSystem *DigitalReserveSystemCallerSession) GetExchange(assetCode string) (string, [32]byte, *big.Int, error)

GetExchange is a free data retrieval call binding the contract method 0xff4b2032.

Solidity: function getExchange(string assetCode) view returns(string, bytes32, uint256)

func (*DigitalReserveSystemCallerSession) GetStableCreditAmount

func (_DigitalReserveSystem *DigitalReserveSystemCallerSession) GetStableCreditAmount(assetCode string) (*big.Int, error)

GetStableCreditAmount is a free data retrieval call binding the contract method 0xb2ffa6cb.

Solidity: function getStableCreditAmount(string assetCode) view returns(uint256)

func (*DigitalReserveSystemCallerSession) Heart

func (_DigitalReserveSystem *DigitalReserveSystemCallerSession) Heart() (common.Address, error)

Heart is a free data retrieval call binding the contract method 0xf58d1c94.

Solidity: function heart() view returns(address)

type DigitalReserveSystemFilterer

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

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

func NewDigitalReserveSystemFilterer

func NewDigitalReserveSystemFilterer(address common.Address, filterer bind.ContractFilterer) (*DigitalReserveSystemFilterer, error)

NewDigitalReserveSystemFilterer creates a new log filterer instance of DigitalReserveSystem, bound to a specific deployed contract.

func (*DigitalReserveSystemFilterer) FilterMint

func (_DigitalReserveSystem *DigitalReserveSystemFilterer) FilterMint(opts *bind.FilterOpts, assetAddress []common.Address, collateralAssetCode [][32]byte) (*DigitalReserveSystemMintIterator, error)

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

Solidity: event Mint(string assetCode, uint256 mintAmount, address indexed assetAddress, bytes32 indexed collateralAssetCode, uint256 collateralAmount)

func (*DigitalReserveSystemFilterer) FilterRebalance

func (_DigitalReserveSystem *DigitalReserveSystemFilterer) FilterRebalance(opts *bind.FilterOpts, collateralAssetCode [][32]byte) (*DigitalReserveSystemRebalanceIterator, error)

FilterRebalance is a free log retrieval operation binding the contract event 0x008e62cd96b0691398a041f2299585aff60e32ad8c758616f09bdebded312571.

Solidity: event Rebalance(string assetCode, bytes32 indexed collateralAssetCode, uint256 requiredAmount, uint256 presentAmount)

func (*DigitalReserveSystemFilterer) FilterRedeem

func (_DigitalReserveSystem *DigitalReserveSystemFilterer) FilterRedeem(opts *bind.FilterOpts, collateralAssetAddress []common.Address, collateralAssetCode [][32]byte) (*DigitalReserveSystemRedeemIterator, error)

FilterRedeem is a free log retrieval operation binding the contract event 0xa10c2c65339d202e362f405266f364b6d67e3d643f28be672e5629015930e94e.

Solidity: event Redeem(string assetCode, uint256 stableCreditAmount, address indexed collateralAssetAddress, bytes32 indexed collateralAssetCode, uint256 collateralAmount)

func (*DigitalReserveSystemFilterer) FilterSetup

func (_DigitalReserveSystem *DigitalReserveSystemFilterer) FilterSetup(opts *bind.FilterOpts, collateralAssetCode [][32]byte) (*DigitalReserveSystemSetupIterator, error)

FilterSetup is a free log retrieval operation binding the contract event 0xcab34b46abfe0198ee940493abe1167b55efc2b24ff7c43c988360d197c962df.

Solidity: event Setup(string assetCode, bytes32 peggedCurrency, uint256 peggedValue, bytes32 indexed collateralAssetCode, address assetAddress)

func (*DigitalReserveSystemFilterer) ParseMint

func (_DigitalReserveSystem *DigitalReserveSystemFilterer) ParseMint(log types.Log) (*DigitalReserveSystemMint, error)

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

Solidity: event Mint(string assetCode, uint256 mintAmount, address indexed assetAddress, bytes32 indexed collateralAssetCode, uint256 collateralAmount)

func (*DigitalReserveSystemFilterer) ParseRebalance

func (_DigitalReserveSystem *DigitalReserveSystemFilterer) ParseRebalance(log types.Log) (*DigitalReserveSystemRebalance, error)

ParseRebalance is a log parse operation binding the contract event 0x008e62cd96b0691398a041f2299585aff60e32ad8c758616f09bdebded312571.

Solidity: event Rebalance(string assetCode, bytes32 indexed collateralAssetCode, uint256 requiredAmount, uint256 presentAmount)

func (*DigitalReserveSystemFilterer) ParseRedeem

func (_DigitalReserveSystem *DigitalReserveSystemFilterer) ParseRedeem(log types.Log) (*DigitalReserveSystemRedeem, error)

ParseRedeem is a log parse operation binding the contract event 0xa10c2c65339d202e362f405266f364b6d67e3d643f28be672e5629015930e94e.

Solidity: event Redeem(string assetCode, uint256 stableCreditAmount, address indexed collateralAssetAddress, bytes32 indexed collateralAssetCode, uint256 collateralAmount)

func (*DigitalReserveSystemFilterer) ParseSetup

func (_DigitalReserveSystem *DigitalReserveSystemFilterer) ParseSetup(log types.Log) (*DigitalReserveSystemSetup, error)

ParseSetup is a log parse operation binding the contract event 0xcab34b46abfe0198ee940493abe1167b55efc2b24ff7c43c988360d197c962df.

Solidity: event Setup(string assetCode, bytes32 peggedCurrency, uint256 peggedValue, bytes32 indexed collateralAssetCode, address assetAddress)

func (*DigitalReserveSystemFilterer) WatchMint

func (_DigitalReserveSystem *DigitalReserveSystemFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *DigitalReserveSystemMint, assetAddress []common.Address, collateralAssetCode [][32]byte) (event.Subscription, error)

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

Solidity: event Mint(string assetCode, uint256 mintAmount, address indexed assetAddress, bytes32 indexed collateralAssetCode, uint256 collateralAmount)

func (*DigitalReserveSystemFilterer) WatchRebalance

func (_DigitalReserveSystem *DigitalReserveSystemFilterer) WatchRebalance(opts *bind.WatchOpts, sink chan<- *DigitalReserveSystemRebalance, collateralAssetCode [][32]byte) (event.Subscription, error)

WatchRebalance is a free log subscription operation binding the contract event 0x008e62cd96b0691398a041f2299585aff60e32ad8c758616f09bdebded312571.

Solidity: event Rebalance(string assetCode, bytes32 indexed collateralAssetCode, uint256 requiredAmount, uint256 presentAmount)

func (*DigitalReserveSystemFilterer) WatchRedeem

func (_DigitalReserveSystem *DigitalReserveSystemFilterer) WatchRedeem(opts *bind.WatchOpts, sink chan<- *DigitalReserveSystemRedeem, collateralAssetAddress []common.Address, collateralAssetCode [][32]byte) (event.Subscription, error)

WatchRedeem is a free log subscription operation binding the contract event 0xa10c2c65339d202e362f405266f364b6d67e3d643f28be672e5629015930e94e.

Solidity: event Redeem(string assetCode, uint256 stableCreditAmount, address indexed collateralAssetAddress, bytes32 indexed collateralAssetCode, uint256 collateralAmount)

func (*DigitalReserveSystemFilterer) WatchSetup

func (_DigitalReserveSystem *DigitalReserveSystemFilterer) WatchSetup(opts *bind.WatchOpts, sink chan<- *DigitalReserveSystemSetup, collateralAssetCode [][32]byte) (event.Subscription, error)

WatchSetup is a free log subscription operation binding the contract event 0xcab34b46abfe0198ee940493abe1167b55efc2b24ff7c43c988360d197c962df.

Solidity: event Setup(string assetCode, bytes32 peggedCurrency, uint256 peggedValue, bytes32 indexed collateralAssetCode, address assetAddress)

type DigitalReserveSystemMint

type DigitalReserveSystemMint struct {
	AssetCode           string
	MintAmount          *big.Int
	AssetAddress        common.Address
	CollateralAssetCode [32]byte
	CollateralAmount    *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

DigitalReserveSystemMint represents a Mint event raised by the DigitalReserveSystem contract.

type DigitalReserveSystemMintIterator

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

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

func (*DigitalReserveSystemMintIterator) Close

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

func (*DigitalReserveSystemMintIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DigitalReserveSystemMintIterator) 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 DigitalReserveSystemRaw

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

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

func (*DigitalReserveSystemRaw) Call

func (_DigitalReserveSystem *DigitalReserveSystemRaw) 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 (*DigitalReserveSystemRaw) Transact

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

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

func (*DigitalReserveSystemRaw) Transfer

func (_DigitalReserveSystem *DigitalReserveSystemRaw) 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 DigitalReserveSystemRebalance

type DigitalReserveSystemRebalance struct {
	AssetCode           string
	CollateralAssetCode [32]byte
	RequiredAmount      *big.Int
	PresentAmount       *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

DigitalReserveSystemRebalance represents a Rebalance event raised by the DigitalReserveSystem contract.

type DigitalReserveSystemRebalanceIterator

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

DigitalReserveSystemRebalanceIterator is returned from FilterRebalance and is used to iterate over the raw logs and unpacked data for Rebalance events raised by the DigitalReserveSystem contract.

func (*DigitalReserveSystemRebalanceIterator) Close

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

func (*DigitalReserveSystemRebalanceIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DigitalReserveSystemRebalanceIterator) 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 DigitalReserveSystemRedeem

type DigitalReserveSystemRedeem struct {
	AssetCode              string
	StableCreditAmount     *big.Int
	CollateralAssetAddress common.Address
	CollateralAssetCode    [32]byte
	CollateralAmount       *big.Int
	Raw                    types.Log // Blockchain specific contextual infos
}

DigitalReserveSystemRedeem represents a Redeem event raised by the DigitalReserveSystem contract.

type DigitalReserveSystemRedeemIterator

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

DigitalReserveSystemRedeemIterator is returned from FilterRedeem and is used to iterate over the raw logs and unpacked data for Redeem events raised by the DigitalReserveSystem contract.

func (*DigitalReserveSystemRedeemIterator) Close

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

func (*DigitalReserveSystemRedeemIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DigitalReserveSystemRedeemIterator) 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 DigitalReserveSystemSession

type DigitalReserveSystemSession struct {
	Contract     *DigitalReserveSystem // 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
}

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

func (*DigitalReserveSystemSession) CollateralHealthCheck

func (_DigitalReserveSystem *DigitalReserveSystemSession) CollateralHealthCheck(assetCode string) (common.Address, [32]byte, *big.Int, *big.Int, error)

CollateralHealthCheck is a free data retrieval call binding the contract method 0x48268143.

Solidity: function collateralHealthCheck(string assetCode) view returns(address, bytes32, uint256, uint256)

func (*DigitalReserveSystemSession) GetExchange

func (_DigitalReserveSystem *DigitalReserveSystemSession) GetExchange(assetCode string) (string, [32]byte, *big.Int, error)

GetExchange is a free data retrieval call binding the contract method 0xff4b2032.

Solidity: function getExchange(string assetCode) view returns(string, bytes32, uint256)

func (*DigitalReserveSystemSession) GetStableCreditAmount

func (_DigitalReserveSystem *DigitalReserveSystemSession) GetStableCreditAmount(assetCode string) (*big.Int, error)

GetStableCreditAmount is a free data retrieval call binding the contract method 0xb2ffa6cb.

Solidity: function getStableCreditAmount(string assetCode) view returns(uint256)

func (*DigitalReserveSystemSession) Heart

func (_DigitalReserveSystem *DigitalReserveSystemSession) Heart() (common.Address, error)

Heart is a free data retrieval call binding the contract method 0xf58d1c94.

Solidity: function heart() view returns(address)

func (*DigitalReserveSystemSession) MintFromCollateralAmount

func (_DigitalReserveSystem *DigitalReserveSystemSession) MintFromCollateralAmount(netCollateralAmount *big.Int, assetCode string) (*types.Transaction, error)

MintFromCollateralAmount is a paid mutator transaction binding the contract method 0xf15821f7.

Solidity: function mintFromCollateralAmount(uint256 netCollateralAmount, string assetCode) returns(bool)

func (*DigitalReserveSystemSession) MintFromStableCreditAmount

func (_DigitalReserveSystem *DigitalReserveSystemSession) MintFromStableCreditAmount(mintAmount *big.Int, assetCode string) (*types.Transaction, error)

MintFromStableCreditAmount is a paid mutator transaction binding the contract method 0x99bbfd72.

Solidity: function mintFromStableCreditAmount(uint256 mintAmount, string assetCode) returns(bool)

func (*DigitalReserveSystemSession) Rebalance

func (_DigitalReserveSystem *DigitalReserveSystemSession) Rebalance(assetCode string) (*types.Transaction, error)

Rebalance is a paid mutator transaction binding the contract method 0x41212e9e.

Solidity: function rebalance(string assetCode) returns(bool)

func (*DigitalReserveSystemSession) Redeem

func (_DigitalReserveSystem *DigitalReserveSystemSession) Redeem(stableCreditAmount *big.Int, assetCode string) (*types.Transaction, error)

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

Solidity: function redeem(uint256 stableCreditAmount, string assetCode) returns(bool)

func (*DigitalReserveSystemSession) Setup

func (_DigitalReserveSystem *DigitalReserveSystemSession) Setup(collateralAssetCode [32]byte, peggedCurrency [32]byte, assetCode string, peggedValue *big.Int) (*types.Transaction, error)

Setup is a paid mutator transaction binding the contract method 0xcbbaa9a0.

Solidity: function setup(bytes32 collateralAssetCode, bytes32 peggedCurrency, string assetCode, uint256 peggedValue) returns(string, address)

type DigitalReserveSystemSetup

type DigitalReserveSystemSetup struct {
	AssetCode           string
	PeggedCurrency      [32]byte
	PeggedValue         *big.Int
	CollateralAssetCode [32]byte
	AssetAddress        common.Address
	Raw                 types.Log // Blockchain specific contextual infos
}

DigitalReserveSystemSetup represents a Setup event raised by the DigitalReserveSystem contract.

type DigitalReserveSystemSetupIterator

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

DigitalReserveSystemSetupIterator is returned from FilterSetup and is used to iterate over the raw logs and unpacked data for Setup events raised by the DigitalReserveSystem contract.

func (*DigitalReserveSystemSetupIterator) Close

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

func (*DigitalReserveSystemSetupIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DigitalReserveSystemSetupIterator) 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 DigitalReserveSystemTransactor

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

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

func NewDigitalReserveSystemTransactor

func NewDigitalReserveSystemTransactor(address common.Address, transactor bind.ContractTransactor) (*DigitalReserveSystemTransactor, error)

NewDigitalReserveSystemTransactor creates a new write-only instance of DigitalReserveSystem, bound to a specific deployed contract.

func (*DigitalReserveSystemTransactor) MintFromCollateralAmount

func (_DigitalReserveSystem *DigitalReserveSystemTransactor) MintFromCollateralAmount(opts *bind.TransactOpts, netCollateralAmount *big.Int, assetCode string) (*types.Transaction, error)

MintFromCollateralAmount is a paid mutator transaction binding the contract method 0xf15821f7.

Solidity: function mintFromCollateralAmount(uint256 netCollateralAmount, string assetCode) returns(bool)

func (*DigitalReserveSystemTransactor) MintFromStableCreditAmount

func (_DigitalReserveSystem *DigitalReserveSystemTransactor) MintFromStableCreditAmount(opts *bind.TransactOpts, mintAmount *big.Int, assetCode string) (*types.Transaction, error)

MintFromStableCreditAmount is a paid mutator transaction binding the contract method 0x99bbfd72.

Solidity: function mintFromStableCreditAmount(uint256 mintAmount, string assetCode) returns(bool)

func (*DigitalReserveSystemTransactor) Rebalance

func (_DigitalReserveSystem *DigitalReserveSystemTransactor) Rebalance(opts *bind.TransactOpts, assetCode string) (*types.Transaction, error)

Rebalance is a paid mutator transaction binding the contract method 0x41212e9e.

Solidity: function rebalance(string assetCode) returns(bool)

func (*DigitalReserveSystemTransactor) Redeem

func (_DigitalReserveSystem *DigitalReserveSystemTransactor) Redeem(opts *bind.TransactOpts, stableCreditAmount *big.Int, assetCode string) (*types.Transaction, error)

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

Solidity: function redeem(uint256 stableCreditAmount, string assetCode) returns(bool)

func (*DigitalReserveSystemTransactor) Setup

func (_DigitalReserveSystem *DigitalReserveSystemTransactor) Setup(opts *bind.TransactOpts, collateralAssetCode [32]byte, peggedCurrency [32]byte, assetCode string, peggedValue *big.Int) (*types.Transaction, error)

Setup is a paid mutator transaction binding the contract method 0xcbbaa9a0.

Solidity: function setup(bytes32 collateralAssetCode, bytes32 peggedCurrency, string assetCode, uint256 peggedValue) returns(string, address)

type DigitalReserveSystemTransactorRaw

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

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

func (*DigitalReserveSystemTransactorRaw) Transact

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

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

func (*DigitalReserveSystemTransactorRaw) Transfer

func (_DigitalReserveSystem *DigitalReserveSystemTransactorRaw) 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 DigitalReserveSystemTransactorSession

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

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

func (*DigitalReserveSystemTransactorSession) MintFromCollateralAmount

func (_DigitalReserveSystem *DigitalReserveSystemTransactorSession) MintFromCollateralAmount(netCollateralAmount *big.Int, assetCode string) (*types.Transaction, error)

MintFromCollateralAmount is a paid mutator transaction binding the contract method 0xf15821f7.

Solidity: function mintFromCollateralAmount(uint256 netCollateralAmount, string assetCode) returns(bool)

func (*DigitalReserveSystemTransactorSession) MintFromStableCreditAmount

func (_DigitalReserveSystem *DigitalReserveSystemTransactorSession) MintFromStableCreditAmount(mintAmount *big.Int, assetCode string) (*types.Transaction, error)

MintFromStableCreditAmount is a paid mutator transaction binding the contract method 0x99bbfd72.

Solidity: function mintFromStableCreditAmount(uint256 mintAmount, string assetCode) returns(bool)

func (*DigitalReserveSystemTransactorSession) Rebalance

func (_DigitalReserveSystem *DigitalReserveSystemTransactorSession) Rebalance(assetCode string) (*types.Transaction, error)

Rebalance is a paid mutator transaction binding the contract method 0x41212e9e.

Solidity: function rebalance(string assetCode) returns(bool)

func (*DigitalReserveSystemTransactorSession) Redeem

func (_DigitalReserveSystem *DigitalReserveSystemTransactorSession) Redeem(stableCreditAmount *big.Int, assetCode string) (*types.Transaction, error)

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

Solidity: function redeem(uint256 stableCreditAmount, string assetCode) returns(bool)

func (*DigitalReserveSystemTransactorSession) Setup

func (_DigitalReserveSystem *DigitalReserveSystemTransactorSession) Setup(collateralAssetCode [32]byte, peggedCurrency [32]byte, assetCode string, peggedValue *big.Int) (*types.Transaction, error)

Setup is a paid mutator transaction binding the contract method 0xcbbaa9a0.

Solidity: function setup(bytes32 collateralAssetCode, bytes32 peggedCurrency, string assetCode, uint256 peggedValue) returns(string, address)

type Feeder

type Feeder struct {
	FeederCaller     // Read-only binding to the contract
	FeederTransactor // Write-only binding to the contract
	FeederFilterer   // Log filterer for contract events
}

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

func NewFeeder

func NewFeeder(address common.Address, backend bind.ContractBackend) (*Feeder, error)

NewFeeder creates a new instance of Feeder, bound to a specific deployed contract.

type FeederAcceptPrice

type FeederAcceptPrice struct {
	PriceInWei   *big.Int
	TimeInSecond *big.Int
	Sender       common.Address
	Raw          types.Log // Blockchain specific contextual infos
}

FeederAcceptPrice represents a AcceptPrice event raised by the Feeder contract.

type FeederAcceptPriceIterator

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

FeederAcceptPriceIterator is returned from FilterAcceptPrice and is used to iterate over the raw logs and unpacked data for AcceptPrice events raised by the Feeder contract.

func (*FeederAcceptPriceIterator) Close

func (it *FeederAcceptPriceIterator) Close() error

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

func (*FeederAcceptPriceIterator) Error

func (it *FeederAcceptPriceIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*FeederAcceptPriceIterator) Next

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

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

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

func NewFeederCaller

func NewFeederCaller(address common.Address, caller bind.ContractCaller) (*FeederCaller, error)

NewFeederCaller creates a new read-only instance of Feeder, bound to a specific deployed contract.

func (*FeederCaller) CollateralCode

func (_Feeder *FeederCaller) CollateralCode(opts *bind.CallOpts) ([32]byte, error)

CollateralCode is a free data retrieval call binding the contract method 0x5587c436.

Solidity: function collateralCode() view returns(bytes32)

func (*FeederCaller) FiatCode

func (_Feeder *FeederCaller) FiatCode(opts *bind.CallOpts) ([32]byte, error)

FiatCode is a free data retrieval call binding the contract method 0x64bc5204.

Solidity: function fiatCode() view returns(bytes32)

func (*FeederCaller) FirstPrice

func (_Feeder *FeederCaller) FirstPrice(opts *bind.CallOpts) (struct {
	PriceInWei   *big.Int
	TimeInSecond *big.Int
	Source       common.Address
}, error)

FirstPrice is a free data retrieval call binding the contract method 0x39a3da4a.

Solidity: function firstPrice() view returns(uint256 priceInWei, uint256 timeInSecond, address source)

func (*FeederCaller) GetLastPrice

func (_Feeder *FeederCaller) GetLastPrice(opts *bind.CallOpts) (*big.Int, *big.Int, error)

GetLastPrice is a free data retrieval call binding the contract method 0xd8cf24fd.

Solidity: function getLastPrice() view returns(uint256, uint256)

func (*FeederCaller) LastPrice

func (_Feeder *FeederCaller) LastPrice(opts *bind.CallOpts) (struct {
	PriceInWei   *big.Int
	TimeInSecond *big.Int
	Source       common.Address
}, error)

LastPrice is a free data retrieval call binding the contract method 0x053f14da.

Solidity: function lastPrice() view returns(uint256 priceInWei, uint256 timeInSecond, address source)

func (*FeederCaller) NumOfPrices

func (_Feeder *FeederCaller) NumOfPrices(opts *bind.CallOpts) (*big.Int, error)

NumOfPrices is a free data retrieval call binding the contract method 0x77680bb5.

Solidity: function numOfPrices() view returns(uint256)

func (*FeederCaller) Owner

func (_Feeder *FeederCaller) 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 (*FeederCaller) PriceFeed1

func (_Feeder *FeederCaller) PriceFeed1(opts *bind.CallOpts) (common.Address, error)

PriceFeed1 is a free data retrieval call binding the contract method 0xab0ca0e1.

Solidity: function priceFeed1() view returns(address)

func (*FeederCaller) PriceFeed2

func (_Feeder *FeederCaller) PriceFeed2(opts *bind.CallOpts) (common.Address, error)

PriceFeed2 is a free data retrieval call binding the contract method 0xe5693f41.

Solidity: function priceFeed2() view returns(address)

func (*FeederCaller) PriceFeed3

func (_Feeder *FeederCaller) PriceFeed3(opts *bind.CallOpts) (common.Address, error)

PriceFeed3 is a free data retrieval call binding the contract method 0x427cb6fe.

Solidity: function priceFeed3() view returns(address)

func (*FeederCaller) PriceFeedTimeTol

func (_Feeder *FeederCaller) PriceFeedTimeTol(opts *bind.CallOpts) (*big.Int, error)

PriceFeedTimeTol is a free data retrieval call binding the contract method 0x57ef7f57.

Solidity: function priceFeedTimeTol() view returns(uint256)

func (*FeederCaller) PriceTolInBP

func (_Feeder *FeederCaller) PriceTolInBP(opts *bind.CallOpts) (*big.Int, error)

PriceTolInBP is a free data retrieval call binding the contract method 0x61efd490.

Solidity: function priceTolInBP() view returns(uint256)

func (*FeederCaller) PriceUpdateCoolDown

func (_Feeder *FeederCaller) PriceUpdateCoolDown(opts *bind.CallOpts) (*big.Int, error)

PriceUpdateCoolDown is a free data retrieval call binding the contract method 0xdcfe4c53.

Solidity: function priceUpdateCoolDown() view returns(uint256)

func (*FeederCaller) SecondPrice

func (_Feeder *FeederCaller) SecondPrice(opts *bind.CallOpts) (struct {
	PriceInWei   *big.Int
	TimeInSecond *big.Int
	Source       common.Address
}, error)

SecondPrice is a free data retrieval call binding the contract method 0xd1e61e24.

Solidity: function secondPrice() view returns(uint256 priceInWei, uint256 timeInSecond, address source)

func (*FeederCaller) Started

func (_Feeder *FeederCaller) Started(opts *bind.CallOpts) (bool, error)

Started is a free data retrieval call binding the contract method 0x1f2698ab.

Solidity: function started() view returns(bool)

type FeederCallerRaw

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

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

func (*FeederCallerRaw) Call

func (_Feeder *FeederCallerRaw) 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 FeederCallerSession

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

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

func (*FeederCallerSession) CollateralCode

func (_Feeder *FeederCallerSession) CollateralCode() ([32]byte, error)

CollateralCode is a free data retrieval call binding the contract method 0x5587c436.

Solidity: function collateralCode() view returns(bytes32)

func (*FeederCallerSession) FiatCode

func (_Feeder *FeederCallerSession) FiatCode() ([32]byte, error)

FiatCode is a free data retrieval call binding the contract method 0x64bc5204.

Solidity: function fiatCode() view returns(bytes32)

func (*FeederCallerSession) FirstPrice

func (_Feeder *FeederCallerSession) FirstPrice() (struct {
	PriceInWei   *big.Int
	TimeInSecond *big.Int
	Source       common.Address
}, error)

FirstPrice is a free data retrieval call binding the contract method 0x39a3da4a.

Solidity: function firstPrice() view returns(uint256 priceInWei, uint256 timeInSecond, address source)

func (*FeederCallerSession) GetLastPrice

func (_Feeder *FeederCallerSession) GetLastPrice() (*big.Int, *big.Int, error)

GetLastPrice is a free data retrieval call binding the contract method 0xd8cf24fd.

Solidity: function getLastPrice() view returns(uint256, uint256)

func (*FeederCallerSession) LastPrice

func (_Feeder *FeederCallerSession) LastPrice() (struct {
	PriceInWei   *big.Int
	TimeInSecond *big.Int
	Source       common.Address
}, error)

LastPrice is a free data retrieval call binding the contract method 0x053f14da.

Solidity: function lastPrice() view returns(uint256 priceInWei, uint256 timeInSecond, address source)

func (*FeederCallerSession) NumOfPrices

func (_Feeder *FeederCallerSession) NumOfPrices() (*big.Int, error)

NumOfPrices is a free data retrieval call binding the contract method 0x77680bb5.

Solidity: function numOfPrices() view returns(uint256)

func (*FeederCallerSession) Owner

func (_Feeder *FeederCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FeederCallerSession) PriceFeed1

func (_Feeder *FeederCallerSession) PriceFeed1() (common.Address, error)

PriceFeed1 is a free data retrieval call binding the contract method 0xab0ca0e1.

Solidity: function priceFeed1() view returns(address)

func (*FeederCallerSession) PriceFeed2

func (_Feeder *FeederCallerSession) PriceFeed2() (common.Address, error)

PriceFeed2 is a free data retrieval call binding the contract method 0xe5693f41.

Solidity: function priceFeed2() view returns(address)

func (*FeederCallerSession) PriceFeed3

func (_Feeder *FeederCallerSession) PriceFeed3() (common.Address, error)

PriceFeed3 is a free data retrieval call binding the contract method 0x427cb6fe.

Solidity: function priceFeed3() view returns(address)

func (*FeederCallerSession) PriceFeedTimeTol

func (_Feeder *FeederCallerSession) PriceFeedTimeTol() (*big.Int, error)

PriceFeedTimeTol is a free data retrieval call binding the contract method 0x57ef7f57.

Solidity: function priceFeedTimeTol() view returns(uint256)

func (*FeederCallerSession) PriceTolInBP

func (_Feeder *FeederCallerSession) PriceTolInBP() (*big.Int, error)

PriceTolInBP is a free data retrieval call binding the contract method 0x61efd490.

Solidity: function priceTolInBP() view returns(uint256)

func (*FeederCallerSession) PriceUpdateCoolDown

func (_Feeder *FeederCallerSession) PriceUpdateCoolDown() (*big.Int, error)

PriceUpdateCoolDown is a free data retrieval call binding the contract method 0xdcfe4c53.

Solidity: function priceUpdateCoolDown() view returns(uint256)

func (*FeederCallerSession) SecondPrice

func (_Feeder *FeederCallerSession) SecondPrice() (struct {
	PriceInWei   *big.Int
	TimeInSecond *big.Int
	Source       common.Address
}, error)

SecondPrice is a free data retrieval call binding the contract method 0xd1e61e24.

Solidity: function secondPrice() view returns(uint256 priceInWei, uint256 timeInSecond, address source)

func (*FeederCallerSession) Started

func (_Feeder *FeederCallerSession) Started() (bool, error)

Started is a free data retrieval call binding the contract method 0x1f2698ab.

Solidity: function started() view returns(bool)

type FeederCommitPrice

type FeederCommitPrice struct {
	PriceInWei   *big.Int
	TimeInSecond *big.Int
	Sender       common.Address
	Index        *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

FeederCommitPrice represents a CommitPrice event raised by the Feeder contract.

type FeederCommitPriceIterator

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

FeederCommitPriceIterator is returned from FilterCommitPrice and is used to iterate over the raw logs and unpacked data for CommitPrice events raised by the Feeder contract.

func (*FeederCommitPriceIterator) Close

func (it *FeederCommitPriceIterator) Close() error

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

func (*FeederCommitPriceIterator) Error

func (it *FeederCommitPriceIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*FeederCommitPriceIterator) Next

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

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

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

func NewFeederFilterer

func NewFeederFilterer(address common.Address, filterer bind.ContractFilterer) (*FeederFilterer, error)

NewFeederFilterer creates a new log filterer instance of Feeder, bound to a specific deployed contract.

func (*FeederFilterer) FilterAcceptPrice

func (_Feeder *FeederFilterer) FilterAcceptPrice(opts *bind.FilterOpts, priceInWei []*big.Int, timeInSecond []*big.Int) (*FeederAcceptPriceIterator, error)

FilterAcceptPrice is a free log retrieval operation binding the contract event 0x60a26741549361639cff0096d0c4599ee53831ec6dec262b89d7fb1ddde1726e.

Solidity: event AcceptPrice(uint256 indexed priceInWei, uint256 indexed timeInSecond, address sender)

func (*FeederFilterer) FilterCommitPrice

func (_Feeder *FeederFilterer) FilterCommitPrice(opts *bind.FilterOpts, priceInWei []*big.Int, timeInSecond []*big.Int) (*FeederCommitPriceIterator, error)

FilterCommitPrice is a free log retrieval operation binding the contract event 0xe95a7bb58ff5f75fa581ca00ff98b7a825caba174942abffb75a1d2b12d90dd9.

Solidity: event CommitPrice(uint256 indexed priceInWei, uint256 indexed timeInSecond, address sender, uint256 index)

func (*FeederFilterer) FilterSetValue

func (_Feeder *FeederFilterer) FilterSetValue(opts *bind.FilterOpts) (*FeederSetValueIterator, error)

FilterSetValue is a free log retrieval operation binding the contract event 0xabd08d77cf1eed600c8ba851f4210365f6695aa58b9500aa52a83db7d8b534ba.

Solidity: event SetValue(uint256 index, uint256 oldValue, uint256 newValue)

func (*FeederFilterer) FilterUpdatePriceFeed

func (_Feeder *FeederFilterer) FilterUpdatePriceFeed(opts *bind.FilterOpts) (*FeederUpdatePriceFeedIterator, error)

FilterUpdatePriceFeed is a free log retrieval operation binding the contract event 0x0c19c511fd3cdf7b4524c00cd2176627ee9fdd2644d68683e6cc04b79280f316.

Solidity: event UpdatePriceFeed(address updater, address newPriceFeed)

func (*FeederFilterer) ParseAcceptPrice

func (_Feeder *FeederFilterer) ParseAcceptPrice(log types.Log) (*FeederAcceptPrice, error)

ParseAcceptPrice is a log parse operation binding the contract event 0x60a26741549361639cff0096d0c4599ee53831ec6dec262b89d7fb1ddde1726e.

Solidity: event AcceptPrice(uint256 indexed priceInWei, uint256 indexed timeInSecond, address sender)

func (*FeederFilterer) ParseCommitPrice

func (_Feeder *FeederFilterer) ParseCommitPrice(log types.Log) (*FeederCommitPrice, error)

ParseCommitPrice is a log parse operation binding the contract event 0xe95a7bb58ff5f75fa581ca00ff98b7a825caba174942abffb75a1d2b12d90dd9.

Solidity: event CommitPrice(uint256 indexed priceInWei, uint256 indexed timeInSecond, address sender, uint256 index)

func (*FeederFilterer) ParseSetValue

func (_Feeder *FeederFilterer) ParseSetValue(log types.Log) (*FeederSetValue, error)

ParseSetValue is a log parse operation binding the contract event 0xabd08d77cf1eed600c8ba851f4210365f6695aa58b9500aa52a83db7d8b534ba.

Solidity: event SetValue(uint256 index, uint256 oldValue, uint256 newValue)

func (*FeederFilterer) ParseUpdatePriceFeed

func (_Feeder *FeederFilterer) ParseUpdatePriceFeed(log types.Log) (*FeederUpdatePriceFeed, error)

ParseUpdatePriceFeed is a log parse operation binding the contract event 0x0c19c511fd3cdf7b4524c00cd2176627ee9fdd2644d68683e6cc04b79280f316.

Solidity: event UpdatePriceFeed(address updater, address newPriceFeed)

func (*FeederFilterer) WatchAcceptPrice

func (_Feeder *FeederFilterer) WatchAcceptPrice(opts *bind.WatchOpts, sink chan<- *FeederAcceptPrice, priceInWei []*big.Int, timeInSecond []*big.Int) (event.Subscription, error)

WatchAcceptPrice is a free log subscription operation binding the contract event 0x60a26741549361639cff0096d0c4599ee53831ec6dec262b89d7fb1ddde1726e.

Solidity: event AcceptPrice(uint256 indexed priceInWei, uint256 indexed timeInSecond, address sender)

func (*FeederFilterer) WatchCommitPrice

func (_Feeder *FeederFilterer) WatchCommitPrice(opts *bind.WatchOpts, sink chan<- *FeederCommitPrice, priceInWei []*big.Int, timeInSecond []*big.Int) (event.Subscription, error)

WatchCommitPrice is a free log subscription operation binding the contract event 0xe95a7bb58ff5f75fa581ca00ff98b7a825caba174942abffb75a1d2b12d90dd9.

Solidity: event CommitPrice(uint256 indexed priceInWei, uint256 indexed timeInSecond, address sender, uint256 index)

func (*FeederFilterer) WatchSetValue

func (_Feeder *FeederFilterer) WatchSetValue(opts *bind.WatchOpts, sink chan<- *FeederSetValue) (event.Subscription, error)

WatchSetValue is a free log subscription operation binding the contract event 0xabd08d77cf1eed600c8ba851f4210365f6695aa58b9500aa52a83db7d8b534ba.

Solidity: event SetValue(uint256 index, uint256 oldValue, uint256 newValue)

func (*FeederFilterer) WatchUpdatePriceFeed

func (_Feeder *FeederFilterer) WatchUpdatePriceFeed(opts *bind.WatchOpts, sink chan<- *FeederUpdatePriceFeed) (event.Subscription, error)

WatchUpdatePriceFeed is a free log subscription operation binding the contract event 0x0c19c511fd3cdf7b4524c00cd2176627ee9fdd2644d68683e6cc04b79280f316.

Solidity: event UpdatePriceFeed(address updater, address newPriceFeed)

type FeederRaw

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

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

func (*FeederRaw) Call

func (_Feeder *FeederRaw) 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 (*FeederRaw) Transact

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

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

func (*FeederRaw) Transfer

func (_Feeder *FeederRaw) 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 FeederSession

type FeederSession struct {
	Contract     *Feeder           // 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
}

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

func (*FeederSession) CollateralCode

func (_Feeder *FeederSession) CollateralCode() ([32]byte, error)

CollateralCode is a free data retrieval call binding the contract method 0x5587c436.

Solidity: function collateralCode() view returns(bytes32)

func (*FeederSession) CommitPrice

func (_Feeder *FeederSession) CommitPrice(priceInWei *big.Int) (*types.Transaction, error)

CommitPrice is a paid mutator transaction binding the contract method 0x028a82f4.

Solidity: function commitPrice(uint256 priceInWei) returns(bool success)

func (*FeederSession) FiatCode

func (_Feeder *FeederSession) FiatCode() ([32]byte, error)

FiatCode is a free data retrieval call binding the contract method 0x64bc5204.

Solidity: function fiatCode() view returns(bytes32)

func (*FeederSession) FirstPrice

func (_Feeder *FeederSession) FirstPrice() (struct {
	PriceInWei   *big.Int
	TimeInSecond *big.Int
	Source       common.Address
}, error)

FirstPrice is a free data retrieval call binding the contract method 0x39a3da4a.

Solidity: function firstPrice() view returns(uint256 priceInWei, uint256 timeInSecond, address source)

func (*FeederSession) GetLastPrice

func (_Feeder *FeederSession) GetLastPrice() (*big.Int, *big.Int, error)

GetLastPrice is a free data retrieval call binding the contract method 0xd8cf24fd.

Solidity: function getLastPrice() view returns(uint256, uint256)

func (*FeederSession) LastPrice

func (_Feeder *FeederSession) LastPrice() (struct {
	PriceInWei   *big.Int
	TimeInSecond *big.Int
	Source       common.Address
}, error)

LastPrice is a free data retrieval call binding the contract method 0x053f14da.

Solidity: function lastPrice() view returns(uint256 priceInWei, uint256 timeInSecond, address source)

func (*FeederSession) NumOfPrices

func (_Feeder *FeederSession) NumOfPrices() (*big.Int, error)

NumOfPrices is a free data retrieval call binding the contract method 0x77680bb5.

Solidity: function numOfPrices() view returns(uint256)

func (*FeederSession) Owner

func (_Feeder *FeederSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FeederSession) PriceFeed1

func (_Feeder *FeederSession) PriceFeed1() (common.Address, error)

PriceFeed1 is a free data retrieval call binding the contract method 0xab0ca0e1.

Solidity: function priceFeed1() view returns(address)

func (*FeederSession) PriceFeed2

func (_Feeder *FeederSession) PriceFeed2() (common.Address, error)

PriceFeed2 is a free data retrieval call binding the contract method 0xe5693f41.

Solidity: function priceFeed2() view returns(address)

func (*FeederSession) PriceFeed3

func (_Feeder *FeederSession) PriceFeed3() (common.Address, error)

PriceFeed3 is a free data retrieval call binding the contract method 0x427cb6fe.

Solidity: function priceFeed3() view returns(address)

func (*FeederSession) PriceFeedTimeTol

func (_Feeder *FeederSession) PriceFeedTimeTol() (*big.Int, error)

PriceFeedTimeTol is a free data retrieval call binding the contract method 0x57ef7f57.

Solidity: function priceFeedTimeTol() view returns(uint256)

func (*FeederSession) PriceTolInBP

func (_Feeder *FeederSession) PriceTolInBP() (*big.Int, error)

PriceTolInBP is a free data retrieval call binding the contract method 0x61efd490.

Solidity: function priceTolInBP() view returns(uint256)

func (*FeederSession) PriceUpdateCoolDown

func (_Feeder *FeederSession) PriceUpdateCoolDown() (*big.Int, error)

PriceUpdateCoolDown is a free data retrieval call binding the contract method 0xdcfe4c53.

Solidity: function priceUpdateCoolDown() view returns(uint256)

func (*FeederSession) SecondPrice

func (_Feeder *FeederSession) SecondPrice() (struct {
	PriceInWei   *big.Int
	TimeInSecond *big.Int
	Source       common.Address
}, error)

SecondPrice is a free data retrieval call binding the contract method 0xd1e61e24.

Solidity: function secondPrice() view returns(uint256 priceInWei, uint256 timeInSecond, address source)

func (*FeederSession) SetValue

func (_Feeder *FeederSession) SetValue(idx *big.Int, newValue *big.Int) (*types.Transaction, error)

SetValue is a paid mutator transaction binding the contract method 0x7b8d56e3.

Solidity: function setValue(uint256 idx, uint256 newValue) returns(bool success)

func (*FeederSession) StartOracle

func (_Feeder *FeederSession) StartOracle(priceInWei *big.Int) (*types.Transaction, error)

StartOracle is a paid mutator transaction binding the contract method 0xa99ae651.

Solidity: function startOracle(uint256 priceInWei) returns(bool success)

func (*FeederSession) Started

func (_Feeder *FeederSession) Started() (bool, error)

Started is a free data retrieval call binding the contract method 0x1f2698ab.

Solidity: function started() view returns(bool)

func (*FeederSession) UpdatePriceFeed

func (_Feeder *FeederSession) UpdatePriceFeed(index *big.Int, feeder common.Address) (*types.Transaction, error)

UpdatePriceFeed is a paid mutator transaction binding the contract method 0xacfc827e.

Solidity: function updatePriceFeed(uint256 index, address feeder) returns(bool)

type FeederSetValue

type FeederSetValue struct {
	Index    *big.Int
	OldValue *big.Int
	NewValue *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

FeederSetValue represents a SetValue event raised by the Feeder contract.

type FeederSetValueIterator

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

FeederSetValueIterator is returned from FilterSetValue and is used to iterate over the raw logs and unpacked data for SetValue events raised by the Feeder contract.

func (*FeederSetValueIterator) Close

func (it *FeederSetValueIterator) Close() error

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

func (*FeederSetValueIterator) Error

func (it *FeederSetValueIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*FeederSetValueIterator) Next

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

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

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

func NewFeederTransactor

func NewFeederTransactor(address common.Address, transactor bind.ContractTransactor) (*FeederTransactor, error)

NewFeederTransactor creates a new write-only instance of Feeder, bound to a specific deployed contract.

func (*FeederTransactor) CommitPrice

func (_Feeder *FeederTransactor) CommitPrice(opts *bind.TransactOpts, priceInWei *big.Int) (*types.Transaction, error)

CommitPrice is a paid mutator transaction binding the contract method 0x028a82f4.

Solidity: function commitPrice(uint256 priceInWei) returns(bool success)

func (*FeederTransactor) SetValue

func (_Feeder *FeederTransactor) SetValue(opts *bind.TransactOpts, idx *big.Int, newValue *big.Int) (*types.Transaction, error)

SetValue is a paid mutator transaction binding the contract method 0x7b8d56e3.

Solidity: function setValue(uint256 idx, uint256 newValue) returns(bool success)

func (*FeederTransactor) StartOracle

func (_Feeder *FeederTransactor) StartOracle(opts *bind.TransactOpts, priceInWei *big.Int) (*types.Transaction, error)

StartOracle is a paid mutator transaction binding the contract method 0xa99ae651.

Solidity: function startOracle(uint256 priceInWei) returns(bool success)

func (*FeederTransactor) UpdatePriceFeed

func (_Feeder *FeederTransactor) UpdatePriceFeed(opts *bind.TransactOpts, index *big.Int, feeder common.Address) (*types.Transaction, error)

UpdatePriceFeed is a paid mutator transaction binding the contract method 0xacfc827e.

Solidity: function updatePriceFeed(uint256 index, address feeder) returns(bool)

type FeederTransactorRaw

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

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

func (*FeederTransactorRaw) Transact

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

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

func (*FeederTransactorRaw) Transfer

func (_Feeder *FeederTransactorRaw) 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 FeederTransactorSession

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

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

func (*FeederTransactorSession) CommitPrice

func (_Feeder *FeederTransactorSession) CommitPrice(priceInWei *big.Int) (*types.Transaction, error)

CommitPrice is a paid mutator transaction binding the contract method 0x028a82f4.

Solidity: function commitPrice(uint256 priceInWei) returns(bool success)

func (*FeederTransactorSession) SetValue

func (_Feeder *FeederTransactorSession) SetValue(idx *big.Int, newValue *big.Int) (*types.Transaction, error)

SetValue is a paid mutator transaction binding the contract method 0x7b8d56e3.

Solidity: function setValue(uint256 idx, uint256 newValue) returns(bool success)

func (*FeederTransactorSession) StartOracle

func (_Feeder *FeederTransactorSession) StartOracle(priceInWei *big.Int) (*types.Transaction, error)

StartOracle is a paid mutator transaction binding the contract method 0xa99ae651.

Solidity: function startOracle(uint256 priceInWei) returns(bool success)

func (*FeederTransactorSession) UpdatePriceFeed

func (_Feeder *FeederTransactorSession) UpdatePriceFeed(index *big.Int, feeder common.Address) (*types.Transaction, error)

UpdatePriceFeed is a paid mutator transaction binding the contract method 0xacfc827e.

Solidity: function updatePriceFeed(uint256 index, address feeder) returns(bool)

type FeederUpdatePriceFeed

type FeederUpdatePriceFeed struct {
	Updater      common.Address
	NewPriceFeed common.Address
	Raw          types.Log // Blockchain specific contextual infos
}

FeederUpdatePriceFeed represents a UpdatePriceFeed event raised by the Feeder contract.

type FeederUpdatePriceFeedIterator

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

FeederUpdatePriceFeedIterator is returned from FilterUpdatePriceFeed and is used to iterate over the raw logs and unpacked data for UpdatePriceFeed events raised by the Feeder contract.

func (*FeederUpdatePriceFeedIterator) Close

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

func (*FeederUpdatePriceFeedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FeederUpdatePriceFeedIterator) 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 Heart

type Heart struct {
	HeartCaller     // Read-only binding to the contract
	HeartTransactor // Write-only binding to the contract
	HeartFilterer   // Log filterer for contract events
}

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

func NewHeart

func NewHeart(address common.Address, backend bind.ContractBackend) (*Heart, error)

NewHeart creates a new instance of Heart, bound to a specific deployed contract.

type HeartCaller

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

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

func NewHeartCaller

func NewHeartCaller(address common.Address, caller bind.ContractCaller) (*HeartCaller, error)

NewHeartCaller creates a new read-only instance of Heart, bound to a specific deployed contract.

func (*HeartCaller) CollateralAssets

func (_Heart *HeartCaller) CollateralAssets(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

CollateralAssets is a free data retrieval call binding the contract method 0x0f09f97c.

Solidity: function collateralAssets(bytes32 ) view returns(address)

func (*HeartCaller) CollateralRatios

func (_Heart *HeartCaller) CollateralRatios(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)

CollateralRatios is a free data retrieval call binding the contract method 0x7c0fa9a7.

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

func (*HeartCaller) CollectedFee

func (_Heart *HeartCaller) CollectedFee(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)

CollectedFee is a free data retrieval call binding the contract method 0xd0d4212e.

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

func (*HeartCaller) CreditIssuanceFee

func (_Heart *HeartCaller) CreditIssuanceFee(opts *bind.CallOpts) (*big.Int, error)

CreditIssuanceFee is a free data retrieval call binding the contract method 0x1f6f2072.

Solidity: function creditIssuanceFee() view returns(uint256)

func (*HeartCaller) DrsAddr

func (_Heart *HeartCaller) DrsAddr(opts *bind.CallOpts) (common.Address, error)

DrsAddr is a free data retrieval call binding the contract method 0x716ec8ee.

Solidity: function drsAddr() view returns(address)

func (*HeartCaller) GetCollateralAsset

func (_Heart *HeartCaller) GetCollateralAsset(opts *bind.CallOpts, assetCode [32]byte) (common.Address, error)

GetCollateralAsset is a free data retrieval call binding the contract method 0xd476f04b.

Solidity: function getCollateralAsset(bytes32 assetCode) view returns(address)

func (*HeartCaller) GetCollateralRatio

func (_Heart *HeartCaller) GetCollateralRatio(opts *bind.CallOpts, assetCode [32]byte) (*big.Int, error)

GetCollateralRatio is a free data retrieval call binding the contract method 0x0fb79eb2.

Solidity: function getCollateralRatio(bytes32 assetCode) view returns(uint256)

func (*HeartCaller) GetCollectedFee

func (_Heart *HeartCaller) GetCollectedFee(opts *bind.CallOpts, collateralAssetCode [32]byte) (*big.Int, error)

GetCollectedFee is a free data retrieval call binding the contract method 0xf9af9ce0.

Solidity: function getCollectedFee(bytes32 collateralAssetCode) view returns(uint256)

func (*HeartCaller) GetCreditIssuanceFee

func (_Heart *HeartCaller) GetCreditIssuanceFee(opts *bind.CallOpts) (*big.Int, error)

GetCreditIssuanceFee is a free data retrieval call binding the contract method 0x016b3a11.

Solidity: function getCreditIssuanceFee() view returns(uint256)

func (*HeartCaller) GetDenominator

func (_Heart *HeartCaller) GetDenominator(opts *bind.CallOpts) (*big.Int, error)

GetDenominator is a free data retrieval call binding the contract method 0x190eaaba.

Solidity: function getDenominator() view returns(uint256)

func (*HeartCaller) GetDrsAddress

func (_Heart *HeartCaller) GetDrsAddress(opts *bind.CallOpts) (common.Address, error)

GetDrsAddress is a free data retrieval call binding the contract method 0x70fa9a6d.

Solidity: function getDrsAddress() view returns(address)

func (*HeartCaller) GetNextStableCredit

func (_Heart *HeartCaller) GetNextStableCredit(opts *bind.CallOpts, stableCreditId [32]byte) (common.Address, error)

GetNextStableCredit is a free data retrieval call binding the contract method 0xbb31146e.

Solidity: function getNextStableCredit(bytes32 stableCreditId) view returns(address)

func (*HeartCaller) GetPriceContract

func (_Heart *HeartCaller) GetPriceContract(opts *bind.CallOpts, linkId [32]byte) (common.Address, error)

GetPriceContract is a free data retrieval call binding the contract method 0xdd06356c.

Solidity: function getPriceContract(bytes32 linkId) view returns(address)

func (*HeartCaller) GetRecentStableCredit

func (_Heart *HeartCaller) GetRecentStableCredit(opts *bind.CallOpts) (common.Address, error)

GetRecentStableCredit is a free data retrieval call binding the contract method 0x33aec2fd.

Solidity: function getRecentStableCredit() view returns(address)

func (*HeartCaller) GetReserveFreeze

func (_Heart *HeartCaller) GetReserveFreeze(opts *bind.CallOpts, assetCode [32]byte) (*big.Int, error)

GetReserveFreeze is a free data retrieval call binding the contract method 0xbd09b85d.

Solidity: function getReserveFreeze(bytes32 assetCode) view returns(uint256)

func (*HeartCaller) GetReserveManager

func (_Heart *HeartCaller) GetReserveManager(opts *bind.CallOpts) (common.Address, error)

GetReserveManager is a free data retrieval call binding the contract method 0x81c210f8.

Solidity: function getReserveManager() view returns(address)

func (*HeartCaller) GetStableCreditById

func (_Heart *HeartCaller) GetStableCreditById(opts *bind.CallOpts, stableCreditId [32]byte) (common.Address, error)

GetStableCreditById is a free data retrieval call binding the contract method 0xf1e476a6.

Solidity: function getStableCreditById(bytes32 stableCreditId) view returns(address)

func (*HeartCaller) GetStableCreditCount

func (_Heart *HeartCaller) GetStableCreditCount(opts *bind.CallOpts) (uint8, error)

GetStableCreditCount is a free data retrieval call binding the contract method 0x573ae02a.

Solidity: function getStableCreditCount() view returns(uint8)

func (*HeartCaller) Governor

func (_Heart *HeartCaller) Governor(opts *bind.CallOpts, arg0 common.Address) (bool, error)

Governor is a free data retrieval call binding the contract method 0x70ec42e8.

Solidity: function governor(address ) view returns(bool)

func (*HeartCaller) IsGovernor

func (_Heart *HeartCaller) IsGovernor(opts *bind.CallOpts, addr common.Address) (bool, error)

IsGovernor is a free data retrieval call binding the contract method 0xe43581b8.

Solidity: function isGovernor(address addr) view returns(bool)

func (*HeartCaller) IsLinkAllowed

func (_Heart *HeartCaller) IsLinkAllowed(opts *bind.CallOpts, linkId [32]byte) (bool, error)

IsLinkAllowed is a free data retrieval call binding the contract method 0xc084770d.

Solidity: function isLinkAllowed(bytes32 linkId) view returns(bool)

func (*HeartCaller) IsTrustedPartner

func (_Heart *HeartCaller) IsTrustedPartner(opts *bind.CallOpts, addr common.Address) (bool, error)

IsTrustedPartner is a free data retrieval call binding the contract method 0x449c3b74.

Solidity: function isTrustedPartner(address addr) view returns(bool)

func (*HeartCaller) Prices

func (_Heart *HeartCaller) Prices(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

Prices is a free data retrieval call binding the contract method 0x60846bc6.

Solidity: function prices(bytes32 ) view returns(address)

func (*HeartCaller) ReserveFreeze

func (_Heart *HeartCaller) ReserveFreeze(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)

ReserveFreeze is a free data retrieval call binding the contract method 0x78f4dce8.

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

func (*HeartCaller) ReserveManager

func (_Heart *HeartCaller) ReserveManager(opts *bind.CallOpts) (common.Address, error)

ReserveManager is a free data retrieval call binding the contract method 0xbb004abc.

Solidity: function reserveManager() view returns(address)

func (*HeartCaller) StableCredits

func (_Heart *HeartCaller) StableCredits(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

StableCredits is a free data retrieval call binding the contract method 0x22042f9f.

Solidity: function stableCredits(bytes32 ) view returns(address)

func (*HeartCaller) StableCreditsLL

func (_Heart *HeartCaller) StableCreditsLL(opts *bind.CallOpts) (uint8, error)

StableCreditsLL is a free data retrieval call binding the contract method 0x8019155e.

Solidity: function stableCreditsLL() view returns(uint8 llSize)

func (*HeartCaller) TrustedPartners

func (_Heart *HeartCaller) TrustedPartners(opts *bind.CallOpts, arg0 common.Address) (bool, error)

TrustedPartners is a free data retrieval call binding the contract method 0x29fc9ec8.

Solidity: function trustedPartners(address ) view returns(bool)

type HeartCallerRaw

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

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

func (*HeartCallerRaw) Call

func (_Heart *HeartCallerRaw) 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 HeartCallerSession

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

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

func (*HeartCallerSession) CollateralAssets

func (_Heart *HeartCallerSession) CollateralAssets(arg0 [32]byte) (common.Address, error)

CollateralAssets is a free data retrieval call binding the contract method 0x0f09f97c.

Solidity: function collateralAssets(bytes32 ) view returns(address)

func (*HeartCallerSession) CollateralRatios

func (_Heart *HeartCallerSession) CollateralRatios(arg0 [32]byte) (*big.Int, error)

CollateralRatios is a free data retrieval call binding the contract method 0x7c0fa9a7.

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

func (*HeartCallerSession) CollectedFee

func (_Heart *HeartCallerSession) CollectedFee(arg0 [32]byte) (*big.Int, error)

CollectedFee is a free data retrieval call binding the contract method 0xd0d4212e.

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

func (*HeartCallerSession) CreditIssuanceFee

func (_Heart *HeartCallerSession) CreditIssuanceFee() (*big.Int, error)

CreditIssuanceFee is a free data retrieval call binding the contract method 0x1f6f2072.

Solidity: function creditIssuanceFee() view returns(uint256)

func (*HeartCallerSession) DrsAddr

func (_Heart *HeartCallerSession) DrsAddr() (common.Address, error)

DrsAddr is a free data retrieval call binding the contract method 0x716ec8ee.

Solidity: function drsAddr() view returns(address)

func (*HeartCallerSession) GetCollateralAsset

func (_Heart *HeartCallerSession) GetCollateralAsset(assetCode [32]byte) (common.Address, error)

GetCollateralAsset is a free data retrieval call binding the contract method 0xd476f04b.

Solidity: function getCollateralAsset(bytes32 assetCode) view returns(address)

func (*HeartCallerSession) GetCollateralRatio

func (_Heart *HeartCallerSession) GetCollateralRatio(assetCode [32]byte) (*big.Int, error)

GetCollateralRatio is a free data retrieval call binding the contract method 0x0fb79eb2.

Solidity: function getCollateralRatio(bytes32 assetCode) view returns(uint256)

func (*HeartCallerSession) GetCollectedFee

func (_Heart *HeartCallerSession) GetCollectedFee(collateralAssetCode [32]byte) (*big.Int, error)

GetCollectedFee is a free data retrieval call binding the contract method 0xf9af9ce0.

Solidity: function getCollectedFee(bytes32 collateralAssetCode) view returns(uint256)

func (*HeartCallerSession) GetCreditIssuanceFee

func (_Heart *HeartCallerSession) GetCreditIssuanceFee() (*big.Int, error)

GetCreditIssuanceFee is a free data retrieval call binding the contract method 0x016b3a11.

Solidity: function getCreditIssuanceFee() view returns(uint256)

func (*HeartCallerSession) GetDenominator

func (_Heart *HeartCallerSession) GetDenominator() (*big.Int, error)

GetDenominator is a free data retrieval call binding the contract method 0x190eaaba.

Solidity: function getDenominator() view returns(uint256)

func (*HeartCallerSession) GetDrsAddress

func (_Heart *HeartCallerSession) GetDrsAddress() (common.Address, error)

GetDrsAddress is a free data retrieval call binding the contract method 0x70fa9a6d.

Solidity: function getDrsAddress() view returns(address)

func (*HeartCallerSession) GetNextStableCredit

func (_Heart *HeartCallerSession) GetNextStableCredit(stableCreditId [32]byte) (common.Address, error)

GetNextStableCredit is a free data retrieval call binding the contract method 0xbb31146e.

Solidity: function getNextStableCredit(bytes32 stableCreditId) view returns(address)

func (*HeartCallerSession) GetPriceContract

func (_Heart *HeartCallerSession) GetPriceContract(linkId [32]byte) (common.Address, error)

GetPriceContract is a free data retrieval call binding the contract method 0xdd06356c.

Solidity: function getPriceContract(bytes32 linkId) view returns(address)

func (*HeartCallerSession) GetRecentStableCredit

func (_Heart *HeartCallerSession) GetRecentStableCredit() (common.Address, error)

GetRecentStableCredit is a free data retrieval call binding the contract method 0x33aec2fd.

Solidity: function getRecentStableCredit() view returns(address)

func (*HeartCallerSession) GetReserveFreeze

func (_Heart *HeartCallerSession) GetReserveFreeze(assetCode [32]byte) (*big.Int, error)

GetReserveFreeze is a free data retrieval call binding the contract method 0xbd09b85d.

Solidity: function getReserveFreeze(bytes32 assetCode) view returns(uint256)

func (*HeartCallerSession) GetReserveManager

func (_Heart *HeartCallerSession) GetReserveManager() (common.Address, error)

GetReserveManager is a free data retrieval call binding the contract method 0x81c210f8.

Solidity: function getReserveManager() view returns(address)

func (*HeartCallerSession) GetStableCreditById

func (_Heart *HeartCallerSession) GetStableCreditById(stableCreditId [32]byte) (common.Address, error)

GetStableCreditById is a free data retrieval call binding the contract method 0xf1e476a6.

Solidity: function getStableCreditById(bytes32 stableCreditId) view returns(address)

func (*HeartCallerSession) GetStableCreditCount

func (_Heart *HeartCallerSession) GetStableCreditCount() (uint8, error)

GetStableCreditCount is a free data retrieval call binding the contract method 0x573ae02a.

Solidity: function getStableCreditCount() view returns(uint8)

func (*HeartCallerSession) Governor

func (_Heart *HeartCallerSession) Governor(arg0 common.Address) (bool, error)

Governor is a free data retrieval call binding the contract method 0x70ec42e8.

Solidity: function governor(address ) view returns(bool)

func (*HeartCallerSession) IsGovernor

func (_Heart *HeartCallerSession) IsGovernor(addr common.Address) (bool, error)

IsGovernor is a free data retrieval call binding the contract method 0xe43581b8.

Solidity: function isGovernor(address addr) view returns(bool)

func (*HeartCallerSession) IsLinkAllowed

func (_Heart *HeartCallerSession) IsLinkAllowed(linkId [32]byte) (bool, error)

IsLinkAllowed is a free data retrieval call binding the contract method 0xc084770d.

Solidity: function isLinkAllowed(bytes32 linkId) view returns(bool)

func (*HeartCallerSession) IsTrustedPartner

func (_Heart *HeartCallerSession) IsTrustedPartner(addr common.Address) (bool, error)

IsTrustedPartner is a free data retrieval call binding the contract method 0x449c3b74.

Solidity: function isTrustedPartner(address addr) view returns(bool)

func (*HeartCallerSession) Prices

func (_Heart *HeartCallerSession) Prices(arg0 [32]byte) (common.Address, error)

Prices is a free data retrieval call binding the contract method 0x60846bc6.

Solidity: function prices(bytes32 ) view returns(address)

func (*HeartCallerSession) ReserveFreeze

func (_Heart *HeartCallerSession) ReserveFreeze(arg0 [32]byte) (*big.Int, error)

ReserveFreeze is a free data retrieval call binding the contract method 0x78f4dce8.

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

func (*HeartCallerSession) ReserveManager

func (_Heart *HeartCallerSession) ReserveManager() (common.Address, error)

ReserveManager is a free data retrieval call binding the contract method 0xbb004abc.

Solidity: function reserveManager() view returns(address)

func (*HeartCallerSession) StableCredits

func (_Heart *HeartCallerSession) StableCredits(arg0 [32]byte) (common.Address, error)

StableCredits is a free data retrieval call binding the contract method 0x22042f9f.

Solidity: function stableCredits(bytes32 ) view returns(address)

func (*HeartCallerSession) StableCreditsLL

func (_Heart *HeartCallerSession) StableCreditsLL() (uint8, error)

StableCreditsLL is a free data retrieval call binding the contract method 0x8019155e.

Solidity: function stableCreditsLL() view returns(uint8 llSize)

func (*HeartCallerSession) TrustedPartners

func (_Heart *HeartCallerSession) TrustedPartners(arg0 common.Address) (bool, error)

TrustedPartners is a free data retrieval call binding the contract method 0x29fc9ec8.

Solidity: function trustedPartners(address ) view returns(bool)

type HeartFilterer

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

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

func NewHeartFilterer

func NewHeartFilterer(address common.Address, filterer bind.ContractFilterer) (*HeartFilterer, error)

NewHeartFilterer creates a new log filterer instance of Heart, bound to a specific deployed contract.

type HeartRaw

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

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

func (*HeartRaw) Call

func (_Heart *HeartRaw) 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 (*HeartRaw) Transact

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

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

func (*HeartRaw) Transfer

func (_Heart *HeartRaw) 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 HeartSession

type HeartSession struct {
	Contract     *Heart            // 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
}

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

func (*HeartSession) AddPrice

func (_Heart *HeartSession) AddPrice(linkId [32]byte, newPrice common.Address) (*types.Transaction, error)

AddPrice is a paid mutator transaction binding the contract method 0x29582080.

Solidity: function addPrice(bytes32 linkId, address newPrice) returns()

func (*HeartSession) AddStableCredit

func (_Heart *HeartSession) AddStableCredit(newStableCredit common.Address) (*types.Transaction, error)

AddStableCredit is a paid mutator transaction binding the contract method 0xbb33674a.

Solidity: function addStableCredit(address newStableCredit) returns()

func (*HeartSession) CollateralAssets

func (_Heart *HeartSession) CollateralAssets(arg0 [32]byte) (common.Address, error)

CollateralAssets is a free data retrieval call binding the contract method 0x0f09f97c.

Solidity: function collateralAssets(bytes32 ) view returns(address)

func (*HeartSession) CollateralRatios

func (_Heart *HeartSession) CollateralRatios(arg0 [32]byte) (*big.Int, error)

CollateralRatios is a free data retrieval call binding the contract method 0x7c0fa9a7.

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

func (*HeartSession) CollectFee

func (_Heart *HeartSession) CollectFee(fee *big.Int, collateralAssetCode [32]byte) (*types.Transaction, error)

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

Solidity: function collectFee(uint256 fee, bytes32 collateralAssetCode) returns()

func (*HeartSession) CollectedFee

func (_Heart *HeartSession) CollectedFee(arg0 [32]byte) (*big.Int, error)

CollectedFee is a free data retrieval call binding the contract method 0xd0d4212e.

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

func (*HeartSession) CreditIssuanceFee

func (_Heart *HeartSession) CreditIssuanceFee() (*big.Int, error)

CreditIssuanceFee is a free data retrieval call binding the contract method 0x1f6f2072.

Solidity: function creditIssuanceFee() view returns(uint256)

func (*HeartSession) DrsAddr

func (_Heart *HeartSession) DrsAddr() (common.Address, error)

DrsAddr is a free data retrieval call binding the contract method 0x716ec8ee.

Solidity: function drsAddr() view returns(address)

func (*HeartSession) GetCollateralAsset

func (_Heart *HeartSession) GetCollateralAsset(assetCode [32]byte) (common.Address, error)

GetCollateralAsset is a free data retrieval call binding the contract method 0xd476f04b.

Solidity: function getCollateralAsset(bytes32 assetCode) view returns(address)

func (*HeartSession) GetCollateralRatio

func (_Heart *HeartSession) GetCollateralRatio(assetCode [32]byte) (*big.Int, error)

GetCollateralRatio is a free data retrieval call binding the contract method 0x0fb79eb2.

Solidity: function getCollateralRatio(bytes32 assetCode) view returns(uint256)

func (*HeartSession) GetCollectedFee

func (_Heart *HeartSession) GetCollectedFee(collateralAssetCode [32]byte) (*big.Int, error)

GetCollectedFee is a free data retrieval call binding the contract method 0xf9af9ce0.

Solidity: function getCollectedFee(bytes32 collateralAssetCode) view returns(uint256)

func (*HeartSession) GetCreditIssuanceFee

func (_Heart *HeartSession) GetCreditIssuanceFee() (*big.Int, error)

GetCreditIssuanceFee is a free data retrieval call binding the contract method 0x016b3a11.

Solidity: function getCreditIssuanceFee() view returns(uint256)

func (*HeartSession) GetDenominator

func (_Heart *HeartSession) GetDenominator() (*big.Int, error)

GetDenominator is a free data retrieval call binding the contract method 0x190eaaba.

Solidity: function getDenominator() view returns(uint256)

func (*HeartSession) GetDrsAddress

func (_Heart *HeartSession) GetDrsAddress() (common.Address, error)

GetDrsAddress is a free data retrieval call binding the contract method 0x70fa9a6d.

Solidity: function getDrsAddress() view returns(address)

func (*HeartSession) GetNextStableCredit

func (_Heart *HeartSession) GetNextStableCredit(stableCreditId [32]byte) (common.Address, error)

GetNextStableCredit is a free data retrieval call binding the contract method 0xbb31146e.

Solidity: function getNextStableCredit(bytes32 stableCreditId) view returns(address)

func (*HeartSession) GetPriceContract

func (_Heart *HeartSession) GetPriceContract(linkId [32]byte) (common.Address, error)

GetPriceContract is a free data retrieval call binding the contract method 0xdd06356c.

Solidity: function getPriceContract(bytes32 linkId) view returns(address)

func (*HeartSession) GetRecentStableCredit

func (_Heart *HeartSession) GetRecentStableCredit() (common.Address, error)

GetRecentStableCredit is a free data retrieval call binding the contract method 0x33aec2fd.

Solidity: function getRecentStableCredit() view returns(address)

func (*HeartSession) GetReserveFreeze

func (_Heart *HeartSession) GetReserveFreeze(assetCode [32]byte) (*big.Int, error)

GetReserveFreeze is a free data retrieval call binding the contract method 0xbd09b85d.

Solidity: function getReserveFreeze(bytes32 assetCode) view returns(uint256)

func (*HeartSession) GetReserveManager

func (_Heart *HeartSession) GetReserveManager() (common.Address, error)

GetReserveManager is a free data retrieval call binding the contract method 0x81c210f8.

Solidity: function getReserveManager() view returns(address)

func (*HeartSession) GetStableCreditById

func (_Heart *HeartSession) GetStableCreditById(stableCreditId [32]byte) (common.Address, error)

GetStableCreditById is a free data retrieval call binding the contract method 0xf1e476a6.

Solidity: function getStableCreditById(bytes32 stableCreditId) view returns(address)

func (*HeartSession) GetStableCreditCount

func (_Heart *HeartSession) GetStableCreditCount() (uint8, error)

GetStableCreditCount is a free data retrieval call binding the contract method 0x573ae02a.

Solidity: function getStableCreditCount() view returns(uint8)

func (*HeartSession) Governor

func (_Heart *HeartSession) Governor(arg0 common.Address) (bool, error)

Governor is a free data retrieval call binding the contract method 0x70ec42e8.

Solidity: function governor(address ) view returns(bool)

func (*HeartSession) IsGovernor

func (_Heart *HeartSession) IsGovernor(addr common.Address) (bool, error)

IsGovernor is a free data retrieval call binding the contract method 0xe43581b8.

Solidity: function isGovernor(address addr) view returns(bool)

func (*HeartSession) IsLinkAllowed

func (_Heart *HeartSession) IsLinkAllowed(linkId [32]byte) (bool, error)

IsLinkAllowed is a free data retrieval call binding the contract method 0xc084770d.

Solidity: function isLinkAllowed(bytes32 linkId) view returns(bool)

func (*HeartSession) IsTrustedPartner

func (_Heart *HeartSession) IsTrustedPartner(addr common.Address) (bool, error)

IsTrustedPartner is a free data retrieval call binding the contract method 0x449c3b74.

Solidity: function isTrustedPartner(address addr) view returns(bool)

func (*HeartSession) Prices

func (_Heart *HeartSession) Prices(arg0 [32]byte) (common.Address, error)

Prices is a free data retrieval call binding the contract method 0x60846bc6.

Solidity: function prices(bytes32 ) view returns(address)

func (*HeartSession) ReserveFreeze

func (_Heart *HeartSession) ReserveFreeze(arg0 [32]byte) (*big.Int, error)

ReserveFreeze is a free data retrieval call binding the contract method 0x78f4dce8.

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

func (*HeartSession) ReserveManager

func (_Heart *HeartSession) ReserveManager() (common.Address, error)

ReserveManager is a free data retrieval call binding the contract method 0xbb004abc.

Solidity: function reserveManager() view returns(address)

func (_Heart *HeartSession) SetAllowedLink(linkId [32]byte, enable bool) (*types.Transaction, error)

SetAllowedLink is a paid mutator transaction binding the contract method 0xe402da4e.

Solidity: function setAllowedLink(bytes32 linkId, bool enable) returns()

func (*HeartSession) SetCollateralAsset

func (_Heart *HeartSession) SetCollateralAsset(assetCode [32]byte, addr common.Address, ratio *big.Int) (*types.Transaction, error)

SetCollateralAsset is a paid mutator transaction binding the contract method 0x88bed352.

Solidity: function setCollateralAsset(bytes32 assetCode, address addr, uint256 ratio) returns()

func (*HeartSession) SetCollateralRatio

func (_Heart *HeartSession) SetCollateralRatio(assetCode [32]byte, ratio *big.Int) (*types.Transaction, error)

SetCollateralRatio is a paid mutator transaction binding the contract method 0xdb4d96d1.

Solidity: function setCollateralRatio(bytes32 assetCode, uint256 ratio) returns()

func (*HeartSession) SetCreditIssuanceFee

func (_Heart *HeartSession) SetCreditIssuanceFee(newFee *big.Int) (*types.Transaction, error)

SetCreditIssuanceFee is a paid mutator transaction binding the contract method 0xaedb08d4.

Solidity: function setCreditIssuanceFee(uint256 newFee) returns()

func (*HeartSession) SetDrsAddress

func (_Heart *HeartSession) SetDrsAddress(newDrsAddress common.Address) (*types.Transaction, error)

SetDrsAddress is a paid mutator transaction binding the contract method 0xe12b39f5.

Solidity: function setDrsAddress(address newDrsAddress) returns()

func (*HeartSession) SetGovernor

func (_Heart *HeartSession) SetGovernor(addr common.Address) (*types.Transaction, error)

SetGovernor is a paid mutator transaction binding the contract method 0xc42cf535.

Solidity: function setGovernor(address addr) returns()

func (*HeartSession) SetReserveFreeze

func (_Heart *HeartSession) SetReserveFreeze(assetCode [32]byte, newSeconds *big.Int) (*types.Transaction, error)

SetReserveFreeze is a paid mutator transaction binding the contract method 0xd49620c4.

Solidity: function setReserveFreeze(bytes32 assetCode, uint256 newSeconds) returns()

func (*HeartSession) SetReserveManager

func (_Heart *HeartSession) SetReserveManager(newReserveManager common.Address) (*types.Transaction, error)

SetReserveManager is a paid mutator transaction binding the contract method 0xdf7da754.

Solidity: function setReserveManager(address newReserveManager) returns()

func (*HeartSession) SetTrustedPartner

func (_Heart *HeartSession) SetTrustedPartner(addr common.Address) (*types.Transaction, error)

SetTrustedPartner is a paid mutator transaction binding the contract method 0x68698406.

Solidity: function setTrustedPartner(address addr) returns()

func (*HeartSession) StableCredits

func (_Heart *HeartSession) StableCredits(arg0 [32]byte) (common.Address, error)

StableCredits is a free data retrieval call binding the contract method 0x22042f9f.

Solidity: function stableCredits(bytes32 ) view returns(address)

func (*HeartSession) StableCreditsLL

func (_Heart *HeartSession) StableCreditsLL() (uint8, error)

StableCreditsLL is a free data retrieval call binding the contract method 0x8019155e.

Solidity: function stableCreditsLL() view returns(uint8 llSize)

func (*HeartSession) TrustedPartners

func (_Heart *HeartSession) TrustedPartners(arg0 common.Address) (bool, error)

TrustedPartners is a free data retrieval call binding the contract method 0x29fc9ec8.

Solidity: function trustedPartners(address ) view returns(bool)

func (*HeartSession) WithdrawFee

func (_Heart *HeartSession) WithdrawFee(collateralAssetCode [32]byte, amount *big.Int) (*types.Transaction, error)

WithdrawFee is a paid mutator transaction binding the contract method 0xd77da9a2.

Solidity: function withdrawFee(bytes32 collateralAssetCode, uint256 amount) returns()

type HeartTransactor

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

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

func NewHeartTransactor

func NewHeartTransactor(address common.Address, transactor bind.ContractTransactor) (*HeartTransactor, error)

NewHeartTransactor creates a new write-only instance of Heart, bound to a specific deployed contract.

func (*HeartTransactor) AddPrice

func (_Heart *HeartTransactor) AddPrice(opts *bind.TransactOpts, linkId [32]byte, newPrice common.Address) (*types.Transaction, error)

AddPrice is a paid mutator transaction binding the contract method 0x29582080.

Solidity: function addPrice(bytes32 linkId, address newPrice) returns()

func (*HeartTransactor) AddStableCredit

func (_Heart *HeartTransactor) AddStableCredit(opts *bind.TransactOpts, newStableCredit common.Address) (*types.Transaction, error)

AddStableCredit is a paid mutator transaction binding the contract method 0xbb33674a.

Solidity: function addStableCredit(address newStableCredit) returns()

func (*HeartTransactor) CollectFee

func (_Heart *HeartTransactor) CollectFee(opts *bind.TransactOpts, fee *big.Int, collateralAssetCode [32]byte) (*types.Transaction, error)

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

Solidity: function collectFee(uint256 fee, bytes32 collateralAssetCode) returns()

func (_Heart *HeartTransactor) SetAllowedLink(opts *bind.TransactOpts, linkId [32]byte, enable bool) (*types.Transaction, error)

SetAllowedLink is a paid mutator transaction binding the contract method 0xe402da4e.

Solidity: function setAllowedLink(bytes32 linkId, bool enable) returns()

func (*HeartTransactor) SetCollateralAsset

func (_Heart *HeartTransactor) SetCollateralAsset(opts *bind.TransactOpts, assetCode [32]byte, addr common.Address, ratio *big.Int) (*types.Transaction, error)

SetCollateralAsset is a paid mutator transaction binding the contract method 0x88bed352.

Solidity: function setCollateralAsset(bytes32 assetCode, address addr, uint256 ratio) returns()

func (*HeartTransactor) SetCollateralRatio

func (_Heart *HeartTransactor) SetCollateralRatio(opts *bind.TransactOpts, assetCode [32]byte, ratio *big.Int) (*types.Transaction, error)

SetCollateralRatio is a paid mutator transaction binding the contract method 0xdb4d96d1.

Solidity: function setCollateralRatio(bytes32 assetCode, uint256 ratio) returns()

func (*HeartTransactor) SetCreditIssuanceFee

func (_Heart *HeartTransactor) SetCreditIssuanceFee(opts *bind.TransactOpts, newFee *big.Int) (*types.Transaction, error)

SetCreditIssuanceFee is a paid mutator transaction binding the contract method 0xaedb08d4.

Solidity: function setCreditIssuanceFee(uint256 newFee) returns()

func (*HeartTransactor) SetDrsAddress

func (_Heart *HeartTransactor) SetDrsAddress(opts *bind.TransactOpts, newDrsAddress common.Address) (*types.Transaction, error)

SetDrsAddress is a paid mutator transaction binding the contract method 0xe12b39f5.

Solidity: function setDrsAddress(address newDrsAddress) returns()

func (*HeartTransactor) SetGovernor

func (_Heart *HeartTransactor) SetGovernor(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

SetGovernor is a paid mutator transaction binding the contract method 0xc42cf535.

Solidity: function setGovernor(address addr) returns()

func (*HeartTransactor) SetReserveFreeze

func (_Heart *HeartTransactor) SetReserveFreeze(opts *bind.TransactOpts, assetCode [32]byte, newSeconds *big.Int) (*types.Transaction, error)

SetReserveFreeze is a paid mutator transaction binding the contract method 0xd49620c4.

Solidity: function setReserveFreeze(bytes32 assetCode, uint256 newSeconds) returns()

func (*HeartTransactor) SetReserveManager

func (_Heart *HeartTransactor) SetReserveManager(opts *bind.TransactOpts, newReserveManager common.Address) (*types.Transaction, error)

SetReserveManager is a paid mutator transaction binding the contract method 0xdf7da754.

Solidity: function setReserveManager(address newReserveManager) returns()

func (*HeartTransactor) SetTrustedPartner

func (_Heart *HeartTransactor) SetTrustedPartner(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

SetTrustedPartner is a paid mutator transaction binding the contract method 0x68698406.

Solidity: function setTrustedPartner(address addr) returns()

func (*HeartTransactor) WithdrawFee

func (_Heart *HeartTransactor) WithdrawFee(opts *bind.TransactOpts, collateralAssetCode [32]byte, amount *big.Int) (*types.Transaction, error)

WithdrawFee is a paid mutator transaction binding the contract method 0xd77da9a2.

Solidity: function withdrawFee(bytes32 collateralAssetCode, uint256 amount) returns()

type HeartTransactorRaw

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

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

func (*HeartTransactorRaw) Transact

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

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

func (*HeartTransactorRaw) Transfer

func (_Heart *HeartTransactorRaw) 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 HeartTransactorSession

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

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

func (*HeartTransactorSession) AddPrice

func (_Heart *HeartTransactorSession) AddPrice(linkId [32]byte, newPrice common.Address) (*types.Transaction, error)

AddPrice is a paid mutator transaction binding the contract method 0x29582080.

Solidity: function addPrice(bytes32 linkId, address newPrice) returns()

func (*HeartTransactorSession) AddStableCredit

func (_Heart *HeartTransactorSession) AddStableCredit(newStableCredit common.Address) (*types.Transaction, error)

AddStableCredit is a paid mutator transaction binding the contract method 0xbb33674a.

Solidity: function addStableCredit(address newStableCredit) returns()

func (*HeartTransactorSession) CollectFee

func (_Heart *HeartTransactorSession) CollectFee(fee *big.Int, collateralAssetCode [32]byte) (*types.Transaction, error)

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

Solidity: function collectFee(uint256 fee, bytes32 collateralAssetCode) returns()

func (_Heart *HeartTransactorSession) SetAllowedLink(linkId [32]byte, enable bool) (*types.Transaction, error)

SetAllowedLink is a paid mutator transaction binding the contract method 0xe402da4e.

Solidity: function setAllowedLink(bytes32 linkId, bool enable) returns()

func (*HeartTransactorSession) SetCollateralAsset

func (_Heart *HeartTransactorSession) SetCollateralAsset(assetCode [32]byte, addr common.Address, ratio *big.Int) (*types.Transaction, error)

SetCollateralAsset is a paid mutator transaction binding the contract method 0x88bed352.

Solidity: function setCollateralAsset(bytes32 assetCode, address addr, uint256 ratio) returns()

func (*HeartTransactorSession) SetCollateralRatio

func (_Heart *HeartTransactorSession) SetCollateralRatio(assetCode [32]byte, ratio *big.Int) (*types.Transaction, error)

SetCollateralRatio is a paid mutator transaction binding the contract method 0xdb4d96d1.

Solidity: function setCollateralRatio(bytes32 assetCode, uint256 ratio) returns()

func (*HeartTransactorSession) SetCreditIssuanceFee

func (_Heart *HeartTransactorSession) SetCreditIssuanceFee(newFee *big.Int) (*types.Transaction, error)

SetCreditIssuanceFee is a paid mutator transaction binding the contract method 0xaedb08d4.

Solidity: function setCreditIssuanceFee(uint256 newFee) returns()

func (*HeartTransactorSession) SetDrsAddress

func (_Heart *HeartTransactorSession) SetDrsAddress(newDrsAddress common.Address) (*types.Transaction, error)

SetDrsAddress is a paid mutator transaction binding the contract method 0xe12b39f5.

Solidity: function setDrsAddress(address newDrsAddress) returns()

func (*HeartTransactorSession) SetGovernor

func (_Heart *HeartTransactorSession) SetGovernor(addr common.Address) (*types.Transaction, error)

SetGovernor is a paid mutator transaction binding the contract method 0xc42cf535.

Solidity: function setGovernor(address addr) returns()

func (*HeartTransactorSession) SetReserveFreeze

func (_Heart *HeartTransactorSession) SetReserveFreeze(assetCode [32]byte, newSeconds *big.Int) (*types.Transaction, error)

SetReserveFreeze is a paid mutator transaction binding the contract method 0xd49620c4.

Solidity: function setReserveFreeze(bytes32 assetCode, uint256 newSeconds) returns()

func (*HeartTransactorSession) SetReserveManager

func (_Heart *HeartTransactorSession) SetReserveManager(newReserveManager common.Address) (*types.Transaction, error)

SetReserveManager is a paid mutator transaction binding the contract method 0xdf7da754.

Solidity: function setReserveManager(address newReserveManager) returns()

func (*HeartTransactorSession) SetTrustedPartner

func (_Heart *HeartTransactorSession) SetTrustedPartner(addr common.Address) (*types.Transaction, error)

SetTrustedPartner is a paid mutator transaction binding the contract method 0x68698406.

Solidity: function setTrustedPartner(address addr) returns()

func (*HeartTransactorSession) WithdrawFee

func (_Heart *HeartTransactorSession) WithdrawFee(collateralAssetCode [32]byte, amount *big.Int) (*types.Transaction, error)

WithdrawFee is a paid mutator transaction binding the contract method 0xd77da9a2.

Solidity: function withdrawFee(bytes32 collateralAssetCode, uint256 amount) returns()

type Price

type Price struct {
	PriceCaller     // Read-only binding to the contract
	PriceTransactor // Write-only binding to the contract
	PriceFilterer   // Log filterer for contract events
}

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

func NewPrice

func NewPrice(address common.Address, backend bind.ContractBackend) (*Price, error)

NewPrice creates a new instance of Price, bound to a specific deployed contract.

type PriceCaller

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

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

func NewPriceCaller

func NewPriceCaller(address common.Address, caller bind.ContractCaller) (*PriceCaller, error)

NewPriceCaller creates a new read-only instance of Price, bound to a specific deployed contract.

func (*PriceCaller) Active

func (_Price *PriceCaller) Active(opts *bind.CallOpts) (bool, error)

Active is a free data retrieval call binding the contract method 0x02fb0c5e.

Solidity: function active() view returns(bool)

func (*PriceCaller) FeederAddr

func (_Price *PriceCaller) FeederAddr(opts *bind.CallOpts) (common.Address, error)

FeederAddr is a free data retrieval call binding the contract method 0x7f9bc0ff.

Solidity: function feederAddr() view returns(address)

func (*PriceCaller) Get

func (_Price *PriceCaller) Get(opts *bind.CallOpts) (*big.Int, error)

Get is a free data retrieval call binding the contract method 0x6d4ce63c.

Solidity: function get() view returns(uint256)

func (*PriceCaller) GetWithError

func (_Price *PriceCaller) GetWithError(opts *bind.CallOpts) (*big.Int, bool, bool, error)

GetWithError is a free data retrieval call binding the contract method 0x498b5828.

Solidity: function getWithError() view returns(uint256, bool, bool)

func (*PriceCaller) Owner

func (_Price *PriceCaller) 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 (*PriceCaller) Price

func (_Price *PriceCaller) Price(opts *bind.CallOpts) (*big.Int, error)

Price is a free data retrieval call binding the contract method 0xa035b1fe.

Solidity: function price() view returns(uint256)

type PriceCallerRaw

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

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

func (*PriceCallerRaw) Call

func (_Price *PriceCallerRaw) 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 PriceCallerSession

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

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

func (*PriceCallerSession) Active

func (_Price *PriceCallerSession) Active() (bool, error)

Active is a free data retrieval call binding the contract method 0x02fb0c5e.

Solidity: function active() view returns(bool)

func (*PriceCallerSession) FeederAddr

func (_Price *PriceCallerSession) FeederAddr() (common.Address, error)

FeederAddr is a free data retrieval call binding the contract method 0x7f9bc0ff.

Solidity: function feederAddr() view returns(address)

func (*PriceCallerSession) Get

func (_Price *PriceCallerSession) Get() (*big.Int, error)

Get is a free data retrieval call binding the contract method 0x6d4ce63c.

Solidity: function get() view returns(uint256)

func (*PriceCallerSession) GetWithError

func (_Price *PriceCallerSession) GetWithError() (*big.Int, bool, bool, error)

GetWithError is a free data retrieval call binding the contract method 0x498b5828.

Solidity: function getWithError() view returns(uint256, bool, bool)

func (*PriceCallerSession) Owner

func (_Price *PriceCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PriceCallerSession) Price

func (_Price *PriceCallerSession) Price() (*big.Int, error)

Price is a free data retrieval call binding the contract method 0xa035b1fe.

Solidity: function price() view returns(uint256)

type PriceFilterer

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

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

func NewPriceFilterer

func NewPriceFilterer(address common.Address, filterer bind.ContractFilterer) (*PriceFilterer, error)

NewPriceFilterer creates a new log filterer instance of Price, bound to a specific deployed contract.

func (*PriceFilterer) FilterPriceActivate

func (_Price *PriceFilterer) FilterPriceActivate(opts *bind.FilterOpts) (*PricePriceActivateIterator, error)

FilterPriceActivate is a free log retrieval operation binding the contract event 0x2e219088454a765156309a15f374957f610cefb0bab9c32ecf58446b3d94b881.

Solidity: event PriceActivate(address caller, address price, bool isActive)

func (*PriceFilterer) FilterPriceVoid

func (_Price *PriceFilterer) FilterPriceVoid(opts *bind.FilterOpts) (*PricePriceVoidIterator, error)

FilterPriceVoid is a free log retrieval operation binding the contract event 0xa1777e5c3fd82f369568fbd467e2cf87e4aa58a75621857a7714235c8ff9073b.

Solidity: event PriceVoid(address caller, address price, bool isActive)

func (*PriceFilterer) ParsePriceActivate

func (_Price *PriceFilterer) ParsePriceActivate(log types.Log) (*PricePriceActivate, error)

ParsePriceActivate is a log parse operation binding the contract event 0x2e219088454a765156309a15f374957f610cefb0bab9c32ecf58446b3d94b881.

Solidity: event PriceActivate(address caller, address price, bool isActive)

func (*PriceFilterer) ParsePriceVoid

func (_Price *PriceFilterer) ParsePriceVoid(log types.Log) (*PricePriceVoid, error)

ParsePriceVoid is a log parse operation binding the contract event 0xa1777e5c3fd82f369568fbd467e2cf87e4aa58a75621857a7714235c8ff9073b.

Solidity: event PriceVoid(address caller, address price, bool isActive)

func (*PriceFilterer) WatchPriceActivate

func (_Price *PriceFilterer) WatchPriceActivate(opts *bind.WatchOpts, sink chan<- *PricePriceActivate) (event.Subscription, error)

WatchPriceActivate is a free log subscription operation binding the contract event 0x2e219088454a765156309a15f374957f610cefb0bab9c32ecf58446b3d94b881.

Solidity: event PriceActivate(address caller, address price, bool isActive)

func (*PriceFilterer) WatchPriceVoid

func (_Price *PriceFilterer) WatchPriceVoid(opts *bind.WatchOpts, sink chan<- *PricePriceVoid) (event.Subscription, error)

WatchPriceVoid is a free log subscription operation binding the contract event 0xa1777e5c3fd82f369568fbd467e2cf87e4aa58a75621857a7714235c8ff9073b.

Solidity: event PriceVoid(address caller, address price, bool isActive)

type PricePriceActivate

type PricePriceActivate struct {
	Caller   common.Address
	Price    common.Address
	IsActive bool
	Raw      types.Log // Blockchain specific contextual infos
}

PricePriceActivate represents a PriceActivate event raised by the Price contract.

type PricePriceActivateIterator

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

PricePriceActivateIterator is returned from FilterPriceActivate and is used to iterate over the raw logs and unpacked data for PriceActivate events raised by the Price contract.

func (*PricePriceActivateIterator) Close

func (it *PricePriceActivateIterator) Close() error

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

func (*PricePriceActivateIterator) Error

func (it *PricePriceActivateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PricePriceActivateIterator) Next

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

type PricePriceVoid struct {
	Caller   common.Address
	Price    common.Address
	IsActive bool
	Raw      types.Log // Blockchain specific contextual infos
}

PricePriceVoid represents a PriceVoid event raised by the Price contract.

type PricePriceVoidIterator

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

PricePriceVoidIterator is returned from FilterPriceVoid and is used to iterate over the raw logs and unpacked data for PriceVoid events raised by the Price contract.

func (*PricePriceVoidIterator) Close

func (it *PricePriceVoidIterator) Close() error

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

func (*PricePriceVoidIterator) Error

func (it *PricePriceVoidIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PricePriceVoidIterator) Next

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

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

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

func (*PriceRaw) Call

func (_Price *PriceRaw) 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 (*PriceRaw) Transact

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

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

func (*PriceRaw) Transfer

func (_Price *PriceRaw) 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 PriceSession

type PriceSession struct {
	Contract     *Price            // 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
}

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

func (*PriceSession) Activate

func (_Price *PriceSession) Activate() (*types.Transaction, error)

Activate is a paid mutator transaction binding the contract method 0x0f15f4c0.

Solidity: function activate() returns()

func (*PriceSession) Active

func (_Price *PriceSession) Active() (bool, error)

Active is a free data retrieval call binding the contract method 0x02fb0c5e.

Solidity: function active() view returns(bool)

func (*PriceSession) FeederAddr

func (_Price *PriceSession) FeederAddr() (common.Address, error)

FeederAddr is a free data retrieval call binding the contract method 0x7f9bc0ff.

Solidity: function feederAddr() view returns(address)

func (*PriceSession) Get

func (_Price *PriceSession) Get() (*big.Int, error)

Get is a free data retrieval call binding the contract method 0x6d4ce63c.

Solidity: function get() view returns(uint256)

func (*PriceSession) GetWithError

func (_Price *PriceSession) GetWithError() (*big.Int, bool, bool, error)

GetWithError is a free data retrieval call binding the contract method 0x498b5828.

Solidity: function getWithError() view returns(uint256, bool, bool)

func (*PriceSession) Initialize

func (_Price *PriceSession) Initialize(_owner common.Address, _feederAddr common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _owner, address _feederAddr) returns()

func (*PriceSession) Owner

func (_Price *PriceSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PriceSession) Post

func (_Price *PriceSession) Post() (*types.Transaction, error)

Post is a paid mutator transaction binding the contract method 0x05c1f502.

Solidity: function post() returns()

func (*PriceSession) Price

func (_Price *PriceSession) Price() (*big.Int, error)

Price is a free data retrieval call binding the contract method 0xa035b1fe.

Solidity: function price() view returns(uint256)

func (*PriceSession) Void

func (_Price *PriceSession) Void() (*types.Transaction, error)

Void is a paid mutator transaction binding the contract method 0xac4c25b2.

Solidity: function void() returns()

type PriceTransactor

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

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

func NewPriceTransactor

func NewPriceTransactor(address common.Address, transactor bind.ContractTransactor) (*PriceTransactor, error)

NewPriceTransactor creates a new write-only instance of Price, bound to a specific deployed contract.

func (*PriceTransactor) Activate

func (_Price *PriceTransactor) Activate(opts *bind.TransactOpts) (*types.Transaction, error)

Activate is a paid mutator transaction binding the contract method 0x0f15f4c0.

Solidity: function activate() returns()

func (*PriceTransactor) Initialize

func (_Price *PriceTransactor) Initialize(opts *bind.TransactOpts, _owner common.Address, _feederAddr common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _owner, address _feederAddr) returns()

func (*PriceTransactor) Post

func (_Price *PriceTransactor) Post(opts *bind.TransactOpts) (*types.Transaction, error)

Post is a paid mutator transaction binding the contract method 0x05c1f502.

Solidity: function post() returns()

func (*PriceTransactor) Void

func (_Price *PriceTransactor) Void(opts *bind.TransactOpts) (*types.Transaction, error)

Void is a paid mutator transaction binding the contract method 0xac4c25b2.

Solidity: function void() returns()

type PriceTransactorRaw

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

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

func (*PriceTransactorRaw) Transact

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

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

func (*PriceTransactorRaw) Transfer

func (_Price *PriceTransactorRaw) 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 PriceTransactorSession

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

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

func (*PriceTransactorSession) Activate

func (_Price *PriceTransactorSession) Activate() (*types.Transaction, error)

Activate is a paid mutator transaction binding the contract method 0x0f15f4c0.

Solidity: function activate() returns()

func (*PriceTransactorSession) Initialize

func (_Price *PriceTransactorSession) Initialize(_owner common.Address, _feederAddr common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _owner, address _feederAddr) returns()

func (*PriceTransactorSession) Post

func (_Price *PriceTransactorSession) Post() (*types.Transaction, error)

Post is a paid mutator transaction binding the contract method 0x05c1f502.

Solidity: function post() returns()

func (*PriceTransactorSession) Void

func (_Price *PriceTransactorSession) Void() (*types.Transaction, error)

Void is a paid mutator transaction binding the contract method 0xac4c25b2.

Solidity: function void() returns()

type StableCredit

type StableCredit struct {
	StableCreditCaller     // Read-only binding to the contract
	StableCreditTransactor // Write-only binding to the contract
	StableCreditFilterer   // Log filterer for contract events
}

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

func NewStableCredit

func NewStableCredit(address common.Address, backend bind.ContractBackend) (*StableCredit, error)

NewStableCredit creates a new instance of StableCredit, bound to a specific deployed contract.

type StableCreditApproval

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

StableCreditApproval represents a Approval event raised by the StableCredit contract.

type StableCreditApprovalIterator

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

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

func (*StableCreditApprovalIterator) Close

func (it *StableCreditApprovalIterator) Close() error

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

func (*StableCreditApprovalIterator) Error

func (it *StableCreditApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StableCreditApprovalIterator) 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 StableCreditCaller

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

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

func NewStableCreditCaller

func NewStableCreditCaller(address common.Address, caller bind.ContractCaller) (*StableCreditCaller, error)

NewStableCreditCaller creates a new read-only instance of StableCredit, bound to a specific deployed contract.

func (*StableCreditCaller) Allowance

func (_StableCredit *StableCreditCaller) 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 (*StableCreditCaller) AssetCode

func (_StableCredit *StableCreditCaller) AssetCode(opts *bind.CallOpts) (string, error)

AssetCode is a free data retrieval call binding the contract method 0x4e841e3e.

Solidity: function assetCode() view returns(string)

func (*StableCreditCaller) BalanceOf

func (_StableCredit *StableCreditCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

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

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

func (*StableCreditCaller) Collateral

func (_StableCredit *StableCreditCaller) Collateral(opts *bind.CallOpts) (common.Address, error)

Collateral is a free data retrieval call binding the contract method 0xd8dfeb45.

Solidity: function collateral() view returns(address)

func (*StableCreditCaller) CollateralAssetCode

func (_StableCredit *StableCreditCaller) CollateralAssetCode(opts *bind.CallOpts) ([32]byte, error)

CollateralAssetCode is a free data retrieval call binding the contract method 0x5312424c.

Solidity: function collateralAssetCode() view returns(bytes32)

func (*StableCreditCaller) CreditOwner

func (_StableCredit *StableCreditCaller) CreditOwner(opts *bind.CallOpts) (common.Address, error)

CreditOwner is a free data retrieval call binding the contract method 0x20dc407a.

Solidity: function creditOwner() view returns(address)

func (*StableCreditCaller) Decimals

func (_StableCredit *StableCreditCaller) 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 (*StableCreditCaller) DrsAddress

func (_StableCredit *StableCreditCaller) DrsAddress(opts *bind.CallOpts) (common.Address, error)

DrsAddress is a free data retrieval call binding the contract method 0x1e2650de.

Solidity: function drsAddress() view returns(address)

func (*StableCreditCaller) GetCollateralDetail

func (_StableCredit *StableCreditCaller) GetCollateralDetail(opts *bind.CallOpts) (*big.Int, common.Address, error)

GetCollateralDetail is a free data retrieval call binding the contract method 0x49bf0f2d.

Solidity: function getCollateralDetail() view returns(uint256, address)

func (*StableCreditCaller) GetId

func (_StableCredit *StableCreditCaller) GetId(opts *bind.CallOpts) ([32]byte, error)

GetId is a free data retrieval call binding the contract method 0x5d1ca631.

Solidity: function getId() view returns(bytes32)

func (*StableCreditCaller) Heart

func (_StableCredit *StableCreditCaller) Heart(opts *bind.CallOpts) (common.Address, error)

Heart is a free data retrieval call binding the contract method 0xf58d1c94.

Solidity: function heart() view returns(address)

func (*StableCreditCaller) Name

func (_StableCredit *StableCreditCaller) 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 (*StableCreditCaller) PeggedCurrency

func (_StableCredit *StableCreditCaller) PeggedCurrency(opts *bind.CallOpts) ([32]byte, error)

PeggedCurrency is a free data retrieval call binding the contract method 0xaefee60e.

Solidity: function peggedCurrency() view returns(bytes32)

func (*StableCreditCaller) PeggedValue

func (_StableCredit *StableCreditCaller) PeggedValue(opts *bind.CallOpts) (*big.Int, error)

PeggedValue is a free data retrieval call binding the contract method 0x3cf252a9.

Solidity: function peggedValue() view returns(uint256)

func (*StableCreditCaller) Symbol

func (_StableCredit *StableCreditCaller) 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 (*StableCreditCaller) TotalSupply

func (_StableCredit *StableCreditCaller) 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 StableCreditCallerRaw

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

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

func (*StableCreditCallerRaw) Call

func (_StableCredit *StableCreditCallerRaw) 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 StableCreditCallerSession

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

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

func (*StableCreditCallerSession) Allowance

func (_StableCredit *StableCreditCallerSession) 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 (*StableCreditCallerSession) AssetCode

func (_StableCredit *StableCreditCallerSession) AssetCode() (string, error)

AssetCode is a free data retrieval call binding the contract method 0x4e841e3e.

Solidity: function assetCode() view returns(string)

func (*StableCreditCallerSession) BalanceOf

func (_StableCredit *StableCreditCallerSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*StableCreditCallerSession) Collateral

func (_StableCredit *StableCreditCallerSession) Collateral() (common.Address, error)

Collateral is a free data retrieval call binding the contract method 0xd8dfeb45.

Solidity: function collateral() view returns(address)

func (*StableCreditCallerSession) CollateralAssetCode

func (_StableCredit *StableCreditCallerSession) CollateralAssetCode() ([32]byte, error)

CollateralAssetCode is a free data retrieval call binding the contract method 0x5312424c.

Solidity: function collateralAssetCode() view returns(bytes32)

func (*StableCreditCallerSession) CreditOwner

func (_StableCredit *StableCreditCallerSession) CreditOwner() (common.Address, error)

CreditOwner is a free data retrieval call binding the contract method 0x20dc407a.

Solidity: function creditOwner() view returns(address)

func (*StableCreditCallerSession) Decimals

func (_StableCredit *StableCreditCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*StableCreditCallerSession) DrsAddress

func (_StableCredit *StableCreditCallerSession) DrsAddress() (common.Address, error)

DrsAddress is a free data retrieval call binding the contract method 0x1e2650de.

Solidity: function drsAddress() view returns(address)

func (*StableCreditCallerSession) GetCollateralDetail

func (_StableCredit *StableCreditCallerSession) GetCollateralDetail() (*big.Int, common.Address, error)

GetCollateralDetail is a free data retrieval call binding the contract method 0x49bf0f2d.

Solidity: function getCollateralDetail() view returns(uint256, address)

func (*StableCreditCallerSession) GetId

func (_StableCredit *StableCreditCallerSession) GetId() ([32]byte, error)

GetId is a free data retrieval call binding the contract method 0x5d1ca631.

Solidity: function getId() view returns(bytes32)

func (*StableCreditCallerSession) Heart

func (_StableCredit *StableCreditCallerSession) Heart() (common.Address, error)

Heart is a free data retrieval call binding the contract method 0xf58d1c94.

Solidity: function heart() view returns(address)

func (*StableCreditCallerSession) Name

func (_StableCredit *StableCreditCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*StableCreditCallerSession) PeggedCurrency

func (_StableCredit *StableCreditCallerSession) PeggedCurrency() ([32]byte, error)

PeggedCurrency is a free data retrieval call binding the contract method 0xaefee60e.

Solidity: function peggedCurrency() view returns(bytes32)

func (*StableCreditCallerSession) PeggedValue

func (_StableCredit *StableCreditCallerSession) PeggedValue() (*big.Int, error)

PeggedValue is a free data retrieval call binding the contract method 0x3cf252a9.

Solidity: function peggedValue() view returns(uint256)

func (*StableCreditCallerSession) Symbol

func (_StableCredit *StableCreditCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*StableCreditCallerSession) TotalSupply

func (_StableCredit *StableCreditCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type StableCreditFilterer

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

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

func NewStableCreditFilterer

func NewStableCreditFilterer(address common.Address, filterer bind.ContractFilterer) (*StableCreditFilterer, error)

NewStableCreditFilterer creates a new log filterer instance of StableCredit, bound to a specific deployed contract.

func (*StableCreditFilterer) FilterApproval

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

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

func (_StableCredit *StableCreditFilterer) ParseApproval(log types.Log) (*StableCreditApproval, error)

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

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

func (*StableCreditFilterer) ParseTransfer

func (_StableCredit *StableCreditFilterer) ParseTransfer(log types.Log) (*StableCreditTransfer, error)

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

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

func (*StableCreditFilterer) WatchApproval

func (_StableCredit *StableCreditFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *StableCreditApproval, 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 (*StableCreditFilterer) WatchTransfer

func (_StableCredit *StableCreditFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *StableCreditTransfer, 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 StableCreditRaw

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

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

func (*StableCreditRaw) Call

func (_StableCredit *StableCreditRaw) 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 (*StableCreditRaw) Transact

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

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

func (*StableCreditRaw) Transfer

func (_StableCredit *StableCreditRaw) 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 StableCreditSession

type StableCreditSession struct {
	Contract     *StableCredit     // 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
}

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

func (*StableCreditSession) Allowance

func (_StableCredit *StableCreditSession) 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 (*StableCreditSession) Approve

func (_StableCredit *StableCreditSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*StableCreditSession) ApproveCollateral

func (_StableCredit *StableCreditSession) ApproveCollateral() (*types.Transaction, error)

ApproveCollateral is a paid mutator transaction binding the contract method 0x2664ecf9.

Solidity: function approveCollateral() returns()

func (*StableCreditSession) AssetCode

func (_StableCredit *StableCreditSession) AssetCode() (string, error)

AssetCode is a free data retrieval call binding the contract method 0x4e841e3e.

Solidity: function assetCode() view returns(string)

func (*StableCreditSession) BalanceOf

func (_StableCredit *StableCreditSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*StableCreditSession) Burn

func (_StableCredit *StableCreditSession) Burn(tokenOwner common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*StableCreditSession) Collateral

func (_StableCredit *StableCreditSession) Collateral() (common.Address, error)

Collateral is a free data retrieval call binding the contract method 0xd8dfeb45.

Solidity: function collateral() view returns(address)

func (*StableCreditSession) CollateralAssetCode

func (_StableCredit *StableCreditSession) CollateralAssetCode() ([32]byte, error)

CollateralAssetCode is a free data retrieval call binding the contract method 0x5312424c.

Solidity: function collateralAssetCode() view returns(bytes32)

func (*StableCreditSession) CreditOwner

func (_StableCredit *StableCreditSession) CreditOwner() (common.Address, error)

CreditOwner is a free data retrieval call binding the contract method 0x20dc407a.

Solidity: function creditOwner() view returns(address)

func (*StableCreditSession) Decimals

func (_StableCredit *StableCreditSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*StableCreditSession) DecreaseAllowance

func (_StableCredit *StableCreditSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*StableCreditSession) DrsAddress

func (_StableCredit *StableCreditSession) DrsAddress() (common.Address, error)

DrsAddress is a free data retrieval call binding the contract method 0x1e2650de.

Solidity: function drsAddress() view returns(address)

func (*StableCreditSession) GetCollateralDetail

func (_StableCredit *StableCreditSession) GetCollateralDetail() (*big.Int, common.Address, error)

GetCollateralDetail is a free data retrieval call binding the contract method 0x49bf0f2d.

Solidity: function getCollateralDetail() view returns(uint256, address)

func (*StableCreditSession) GetId

func (_StableCredit *StableCreditSession) GetId() ([32]byte, error)

GetId is a free data retrieval call binding the contract method 0x5d1ca631.

Solidity: function getId() view returns(bytes32)

func (*StableCreditSession) Heart

func (_StableCredit *StableCreditSession) Heart() (common.Address, error)

Heart is a free data retrieval call binding the contract method 0xf58d1c94.

Solidity: function heart() view returns(address)

func (*StableCreditSession) IncreaseAllowance

func (_StableCredit *StableCreditSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*StableCreditSession) Mint

func (_StableCredit *StableCreditSession) Mint(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*StableCreditSession) Name

func (_StableCredit *StableCreditSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*StableCreditSession) PeggedCurrency

func (_StableCredit *StableCreditSession) PeggedCurrency() ([32]byte, error)

PeggedCurrency is a free data retrieval call binding the contract method 0xaefee60e.

Solidity: function peggedCurrency() view returns(bytes32)

func (*StableCreditSession) PeggedValue

func (_StableCredit *StableCreditSession) PeggedValue() (*big.Int, error)

PeggedValue is a free data retrieval call binding the contract method 0x3cf252a9.

Solidity: function peggedValue() view returns(uint256)

func (*StableCreditSession) Redeem

func (_StableCredit *StableCreditSession) Redeem(redeemer common.Address, burnAmount *big.Int, returnAmount *big.Int) (*types.Transaction, error)

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

Solidity: function redeem(address redeemer, uint256 burnAmount, uint256 returnAmount) returns()

func (*StableCreditSession) Symbol

func (_StableCredit *StableCreditSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*StableCreditSession) TotalSupply

func (_StableCredit *StableCreditSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*StableCreditSession) Transfer

func (_StableCredit *StableCreditSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*StableCreditSession) TransferCollateralToReserve

func (_StableCredit *StableCreditSession) TransferCollateralToReserve(amount *big.Int) (*types.Transaction, error)

TransferCollateralToReserve is a paid mutator transaction binding the contract method 0x83044595.

Solidity: function transferCollateralToReserve(uint256 amount) returns(bool)

func (*StableCreditSession) TransferFrom

func (_StableCredit *StableCreditSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type StableCreditTransactor

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

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

func NewStableCreditTransactor

func NewStableCreditTransactor(address common.Address, transactor bind.ContractTransactor) (*StableCreditTransactor, error)

NewStableCreditTransactor creates a new write-only instance of StableCredit, bound to a specific deployed contract.

func (*StableCreditTransactor) Approve

func (_StableCredit *StableCreditTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*StableCreditTransactor) ApproveCollateral

func (_StableCredit *StableCreditTransactor) ApproveCollateral(opts *bind.TransactOpts) (*types.Transaction, error)

ApproveCollateral is a paid mutator transaction binding the contract method 0x2664ecf9.

Solidity: function approveCollateral() returns()

func (*StableCreditTransactor) Burn

func (_StableCredit *StableCreditTransactor) Burn(opts *bind.TransactOpts, tokenOwner common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*StableCreditTransactor) DecreaseAllowance

func (_StableCredit *StableCreditTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*StableCreditTransactor) IncreaseAllowance

func (_StableCredit *StableCreditTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*StableCreditTransactor) Mint

func (_StableCredit *StableCreditTransactor) Mint(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*StableCreditTransactor) Redeem

func (_StableCredit *StableCreditTransactor) Redeem(opts *bind.TransactOpts, redeemer common.Address, burnAmount *big.Int, returnAmount *big.Int) (*types.Transaction, error)

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

Solidity: function redeem(address redeemer, uint256 burnAmount, uint256 returnAmount) returns()

func (*StableCreditTransactor) Transfer

func (_StableCredit *StableCreditTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*StableCreditTransactor) TransferCollateralToReserve

func (_StableCredit *StableCreditTransactor) TransferCollateralToReserve(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

TransferCollateralToReserve is a paid mutator transaction binding the contract method 0x83044595.

Solidity: function transferCollateralToReserve(uint256 amount) returns(bool)

func (*StableCreditTransactor) TransferFrom

func (_StableCredit *StableCreditTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type StableCreditTransactorRaw

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

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

func (*StableCreditTransactorRaw) Transact

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

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

func (*StableCreditTransactorRaw) Transfer

func (_StableCredit *StableCreditTransactorRaw) 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 StableCreditTransactorSession

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

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

func (*StableCreditTransactorSession) Approve

func (_StableCredit *StableCreditTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*StableCreditTransactorSession) ApproveCollateral

func (_StableCredit *StableCreditTransactorSession) ApproveCollateral() (*types.Transaction, error)

ApproveCollateral is a paid mutator transaction binding the contract method 0x2664ecf9.

Solidity: function approveCollateral() returns()

func (*StableCreditTransactorSession) Burn

func (_StableCredit *StableCreditTransactorSession) Burn(tokenOwner common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*StableCreditTransactorSession) DecreaseAllowance

func (_StableCredit *StableCreditTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*StableCreditTransactorSession) IncreaseAllowance

func (_StableCredit *StableCreditTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*StableCreditTransactorSession) Mint

func (_StableCredit *StableCreditTransactorSession) Mint(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*StableCreditTransactorSession) Redeem

func (_StableCredit *StableCreditTransactorSession) Redeem(redeemer common.Address, burnAmount *big.Int, returnAmount *big.Int) (*types.Transaction, error)

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

Solidity: function redeem(address redeemer, uint256 burnAmount, uint256 returnAmount) returns()

func (*StableCreditTransactorSession) Transfer

func (_StableCredit *StableCreditTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*StableCreditTransactorSession) TransferCollateralToReserve

func (_StableCredit *StableCreditTransactorSession) TransferCollateralToReserve(amount *big.Int) (*types.Transaction, error)

TransferCollateralToReserve is a paid mutator transaction binding the contract method 0x83044595.

Solidity: function transferCollateralToReserve(uint256 amount) returns(bool)

func (*StableCreditTransactorSession) TransferFrom

func (_StableCredit *StableCreditTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type StableCreditTransfer

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

StableCreditTransfer represents a Transfer event raised by the StableCredit contract.

type StableCreditTransferIterator

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

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

func (*StableCreditTransferIterator) Close

func (it *StableCreditTransferIterator) Close() error

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

func (*StableCreditTransferIterator) Error

func (it *StableCreditTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

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

type Token struct {
	TokenCaller     // Read-only binding to the contract
	TokenTransactor // Write-only binding to the contract
	TokenFilterer   // Log filterer for contract events
}

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

func NewToken

func NewToken(address common.Address, backend bind.ContractBackend) (*Token, error)

NewToken creates a new instance of Token, bound to a specific deployed contract.

type TokenApproval

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

TokenApproval represents a Approval event raised by the Token contract.

type TokenApprovalIterator

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

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

func (*TokenApprovalIterator) Close

func (it *TokenApprovalIterator) Close() error

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

func (*TokenApprovalIterator) Error

func (it *TokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenApprovalIterator) Next

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

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

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

func NewTokenCaller

func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*TokenCaller, error)

NewTokenCaller creates a new read-only instance of Token, bound to a specific deployed contract.

func (*TokenCaller) Allowance

func (_Token *TokenCaller) 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 (*TokenCaller) BalanceOf

func (_Token *TokenCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

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

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

func (*TokenCaller) Decimals

func (_Token *TokenCaller) 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 (*TokenCaller) IsWhitelistAdmin

func (_Token *TokenCaller) IsWhitelistAdmin(opts *bind.CallOpts, account common.Address) (bool, error)

IsWhitelistAdmin is a free data retrieval call binding the contract method 0xbb5f747b.

Solidity: function isWhitelistAdmin(address account) view returns(bool)

func (*TokenCaller) Name

func (_Token *TokenCaller) 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 (*TokenCaller) Symbol

func (_Token *TokenCaller) 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 (*TokenCaller) TotalSupply

func (_Token *TokenCaller) 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 TokenCallerRaw

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

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

func (*TokenCallerRaw) Call

func (_Token *TokenCallerRaw) 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 TokenCallerSession

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

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

func (*TokenCallerSession) Allowance

func (_Token *TokenCallerSession) 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 (*TokenCallerSession) BalanceOf

func (_Token *TokenCallerSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*TokenCallerSession) Decimals

func (_Token *TokenCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*TokenCallerSession) IsWhitelistAdmin

func (_Token *TokenCallerSession) IsWhitelistAdmin(account common.Address) (bool, error)

IsWhitelistAdmin is a free data retrieval call binding the contract method 0xbb5f747b.

Solidity: function isWhitelistAdmin(address account) view returns(bool)

func (*TokenCallerSession) Name

func (_Token *TokenCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*TokenCallerSession) Symbol

func (_Token *TokenCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*TokenCallerSession) TotalSupply

func (_Token *TokenCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type TokenFilterer

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

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

func NewTokenFilterer

func NewTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenFilterer, error)

NewTokenFilterer creates a new log filterer instance of Token, bound to a specific deployed contract.

func (*TokenFilterer) FilterApproval

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

func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*TokenTransferIterator, 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 (*TokenFilterer) FilterWhitelistAdminAdded

func (_Token *TokenFilterer) FilterWhitelistAdminAdded(opts *bind.FilterOpts, account []common.Address) (*TokenWhitelistAdminAddedIterator, error)

FilterWhitelistAdminAdded is a free log retrieval operation binding the contract event 0x22380c05984257a1cb900161c713dd71d39e74820f1aea43bd3f1bdd20961299.

Solidity: event WhitelistAdminAdded(address indexed account)

func (*TokenFilterer) FilterWhitelistAdminRemoved

func (_Token *TokenFilterer) FilterWhitelistAdminRemoved(opts *bind.FilterOpts, account []common.Address) (*TokenWhitelistAdminRemovedIterator, error)

FilterWhitelistAdminRemoved is a free log retrieval operation binding the contract event 0x0a8eb35e5ca14b3d6f28e4abf2f128dbab231a58b56e89beb5d636115001e165.

Solidity: event WhitelistAdminRemoved(address indexed account)

func (*TokenFilterer) ParseApproval

func (_Token *TokenFilterer) ParseApproval(log types.Log) (*TokenApproval, error)

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

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

func (*TokenFilterer) ParseTransfer

func (_Token *TokenFilterer) ParseTransfer(log types.Log) (*TokenTransfer, error)

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

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

func (*TokenFilterer) ParseWhitelistAdminAdded

func (_Token *TokenFilterer) ParseWhitelistAdminAdded(log types.Log) (*TokenWhitelistAdminAdded, error)

ParseWhitelistAdminAdded is a log parse operation binding the contract event 0x22380c05984257a1cb900161c713dd71d39e74820f1aea43bd3f1bdd20961299.

Solidity: event WhitelistAdminAdded(address indexed account)

func (*TokenFilterer) ParseWhitelistAdminRemoved

func (_Token *TokenFilterer) ParseWhitelistAdminRemoved(log types.Log) (*TokenWhitelistAdminRemoved, error)

ParseWhitelistAdminRemoved is a log parse operation binding the contract event 0x0a8eb35e5ca14b3d6f28e4abf2f128dbab231a58b56e89beb5d636115001e165.

Solidity: event WhitelistAdminRemoved(address indexed account)

func (*TokenFilterer) WatchApproval

func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, 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 (*TokenFilterer) WatchTransfer

func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

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

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

func (*TokenFilterer) WatchWhitelistAdminAdded

func (_Token *TokenFilterer) WatchWhitelistAdminAdded(opts *bind.WatchOpts, sink chan<- *TokenWhitelistAdminAdded, account []common.Address) (event.Subscription, error)

WatchWhitelistAdminAdded is a free log subscription operation binding the contract event 0x22380c05984257a1cb900161c713dd71d39e74820f1aea43bd3f1bdd20961299.

Solidity: event WhitelistAdminAdded(address indexed account)

func (*TokenFilterer) WatchWhitelistAdminRemoved

func (_Token *TokenFilterer) WatchWhitelistAdminRemoved(opts *bind.WatchOpts, sink chan<- *TokenWhitelistAdminRemoved, account []common.Address) (event.Subscription, error)

WatchWhitelistAdminRemoved is a free log subscription operation binding the contract event 0x0a8eb35e5ca14b3d6f28e4abf2f128dbab231a58b56e89beb5d636115001e165.

Solidity: event WhitelistAdminRemoved(address indexed account)

type TokenRaw

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

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

func (*TokenRaw) Call

func (_Token *TokenRaw) 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 (*TokenRaw) Transact

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

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

func (*TokenRaw) Transfer

func (_Token *TokenRaw) 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 TokenSession

type TokenSession struct {
	Contract     *Token            // 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
}

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

func (*TokenSession) AddWhitelistAdmin

func (_Token *TokenSession) AddWhitelistAdmin(account common.Address) (*types.Transaction, error)

AddWhitelistAdmin is a paid mutator transaction binding the contract method 0x7362d9c8.

Solidity: function addWhitelistAdmin(address account) returns()

func (*TokenSession) Allowance

func (_Token *TokenSession) 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 (*TokenSession) Approve

func (_Token *TokenSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*TokenSession) BalanceOf

func (_Token *TokenSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*TokenSession) Decimals

func (_Token *TokenSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*TokenSession) DecreaseAllowance

func (_Token *TokenSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*TokenSession) IncreaseAllowance

func (_Token *TokenSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*TokenSession) IsWhitelistAdmin

func (_Token *TokenSession) IsWhitelistAdmin(account common.Address) (bool, error)

IsWhitelistAdmin is a free data retrieval call binding the contract method 0xbb5f747b.

Solidity: function isWhitelistAdmin(address account) view returns(bool)

func (*TokenSession) Name

func (_Token *TokenSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*TokenSession) RenounceWhitelistAdmin

func (_Token *TokenSession) RenounceWhitelistAdmin() (*types.Transaction, error)

RenounceWhitelistAdmin is a paid mutator transaction binding the contract method 0x4c5a628c.

Solidity: function renounceWhitelistAdmin() returns()

func (*TokenSession) Symbol

func (_Token *TokenSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*TokenSession) TotalSupply

func (_Token *TokenSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*TokenSession) Transfer

func (_Token *TokenSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*TokenSession) TransferFrom

func (_Token *TokenSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type TokenTransactor

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

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

func NewTokenTransactor

func NewTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenTransactor, error)

NewTokenTransactor creates a new write-only instance of Token, bound to a specific deployed contract.

func (*TokenTransactor) AddWhitelistAdmin

func (_Token *TokenTransactor) AddWhitelistAdmin(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

AddWhitelistAdmin is a paid mutator transaction binding the contract method 0x7362d9c8.

Solidity: function addWhitelistAdmin(address account) returns()

func (*TokenTransactor) Approve

func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*TokenTransactor) DecreaseAllowance

func (_Token *TokenTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*TokenTransactor) IncreaseAllowance

func (_Token *TokenTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*TokenTransactor) RenounceWhitelistAdmin

func (_Token *TokenTransactor) RenounceWhitelistAdmin(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceWhitelistAdmin is a paid mutator transaction binding the contract method 0x4c5a628c.

Solidity: function renounceWhitelistAdmin() returns()

func (*TokenTransactor) Transfer

func (_Token *TokenTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*TokenTransactor) TransferFrom

func (_Token *TokenTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type TokenTransactorRaw

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

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

func (*TokenTransactorRaw) Transact

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

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

func (*TokenTransactorRaw) Transfer

func (_Token *TokenTransactorRaw) 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 TokenTransactorSession

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

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

func (*TokenTransactorSession) AddWhitelistAdmin

func (_Token *TokenTransactorSession) AddWhitelistAdmin(account common.Address) (*types.Transaction, error)

AddWhitelistAdmin is a paid mutator transaction binding the contract method 0x7362d9c8.

Solidity: function addWhitelistAdmin(address account) returns()

func (*TokenTransactorSession) Approve

func (_Token *TokenTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*TokenTransactorSession) DecreaseAllowance

func (_Token *TokenTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*TokenTransactorSession) IncreaseAllowance

func (_Token *TokenTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*TokenTransactorSession) RenounceWhitelistAdmin

func (_Token *TokenTransactorSession) RenounceWhitelistAdmin() (*types.Transaction, error)

RenounceWhitelistAdmin is a paid mutator transaction binding the contract method 0x4c5a628c.

Solidity: function renounceWhitelistAdmin() returns()

func (*TokenTransactorSession) Transfer

func (_Token *TokenTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*TokenTransactorSession) TransferFrom

func (_Token *TokenTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type TokenTransfer

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

TokenTransfer represents a Transfer event raised by the Token contract.

type TokenTransferIterator

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

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

func (*TokenTransferIterator) Close

func (it *TokenTransferIterator) Close() error

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

func (*TokenTransferIterator) Error

func (it *TokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenTransferIterator) Next

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

type TokenWhitelistAdminAdded struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

TokenWhitelistAdminAdded represents a WhitelistAdminAdded event raised by the Token contract.

type TokenWhitelistAdminAddedIterator

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

TokenWhitelistAdminAddedIterator is returned from FilterWhitelistAdminAdded and is used to iterate over the raw logs and unpacked data for WhitelistAdminAdded events raised by the Token contract.

func (*TokenWhitelistAdminAddedIterator) Close

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

func (*TokenWhitelistAdminAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenWhitelistAdminAddedIterator) 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 TokenWhitelistAdminRemoved

type TokenWhitelistAdminRemoved struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

TokenWhitelistAdminRemoved represents a WhitelistAdminRemoved event raised by the Token contract.

type TokenWhitelistAdminRemovedIterator

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

TokenWhitelistAdminRemovedIterator is returned from FilterWhitelistAdminRemoved and is used to iterate over the raw logs and unpacked data for WhitelistAdminRemoved events raised by the Token contract.

func (*TokenWhitelistAdminRemovedIterator) Close

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

func (*TokenWhitelistAdminRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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