dforce

package
v1.4.1-rc-43 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DforceABI = "" /* 16628-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Dforce

type Dforce struct {
	DforceCaller     // Read-only binding to the contract
	DforceTransactor // Write-only binding to the contract
	DforceFilterer   // Log filterer for contract events
}

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

func NewDforce

func NewDforce(address common.Address, backend bind.ContractBackend) (*Dforce, error)

NewDforce creates a new instance of Dforce, bound to a specific deployed contract.

type DforceCaller

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

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

func NewDforceCaller

func NewDforceCaller(address common.Address, caller bind.ContractCaller) (*DforceCaller, error)

NewDforceCaller creates a new read-only instance of Dforce, bound to a specific deployed contract.

func (*DforceCaller) Authority

func (_Dforce *DforceCaller) Authority(opts *bind.CallOpts) (common.Address, error)

Authority is a free data retrieval call binding the contract method 0xbf7e214f.

Solidity: function authority() view returns(address)

func (*DforceCaller) ExchangeRate

func (_Dforce *DforceCaller) ExchangeRate(opts *bind.CallOpts, _input common.Address, _output common.Address) (*big.Int, error)

ExchangeRate is a free data retrieval call binding the contract method 0xccb0101b.

Solidity: function exchangeRate(address _input, address _output) view returns(uint256)

func (*DforceCaller) Fee

func (_Dforce *DforceCaller) Fee(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xbe5011a1.

Solidity: function fee(address , address ) view returns(uint256)

func (*DforceCaller) GetAmountByInput

func (_Dforce *DforceCaller) GetAmountByInput(opts *bind.CallOpts, _input common.Address, _output common.Address, _inputAmount *big.Int) (*big.Int, error)

GetAmountByInput is a free data retrieval call binding the contract method 0xaf77fedb.

Solidity: function getAmountByInput(address _input, address _output, uint256 _inputAmount) view returns(uint256)

func (*DforceCaller) GetAmountByOutput

func (_Dforce *DforceCaller) GetAmountByOutput(opts *bind.CallOpts, _input common.Address, _output common.Address, _outputAmount *big.Int) (*big.Int, error)

GetAmountByOutput is a free data retrieval call binding the contract method 0xf6cf166f.

Solidity: function getAmountByOutput(address _input, address _output, uint256 _outputAmount) view returns(uint256)

func (*DforceCaller) GetBestOutputByInput

func (_Dforce *DforceCaller) GetBestOutputByInput(opts *bind.CallOpts, _input common.Address, _output common.Address, _inputAmount *big.Int) (*big.Int, error)

GetBestOutputByInput is a free data retrieval call binding the contract method 0x858efd4b.

Solidity: function getBestOutputByInput(address _input, address _output, uint256 _inputAmount) view returns(uint256)

func (*DforceCaller) GetLiquidity

func (_Dforce *DforceCaller) GetLiquidity(opts *bind.CallOpts, _token common.Address) (*big.Int, error)

GetLiquidity is a free data retrieval call binding the contract method 0xa747b93b.

Solidity: function getLiquidity(address _token) view returns(uint256)

func (*DforceCaller) IsOpen

func (_Dforce *DforceCaller) IsOpen(opts *bind.CallOpts) (bool, error)

IsOpen is a free data retrieval call binding the contract method 0x47535d7b.

Solidity: function isOpen() view returns(bool)

func (*DforceCaller) MaxSwing

func (_Dforce *DforceCaller) MaxSwing(opts *bind.CallOpts) (*big.Int, error)

MaxSwing is a free data retrieval call binding the contract method 0xc5faf1d5.

Solidity: function maxSwing() view returns(uint256)

func (*DforceCaller) NewOwner

func (_Dforce *DforceCaller) NewOwner(opts *bind.CallOpts) (common.Address, error)

NewOwner is a free data retrieval call binding the contract method 0xd4ee1d90.

Solidity: function newOwner() view returns(address)

func (*DforceCaller) Oracle

func (_Dforce *DforceCaller) Oracle(opts *bind.CallOpts) (common.Address, error)

Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.

Solidity: function oracle() view returns(address)

func (*DforceCaller) Owner

func (_Dforce *DforceCaller) 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 (*DforceCaller) Paused

func (_Dforce *DforceCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*DforceCaller) RemainingDToken

func (_Dforce *DforceCaller) RemainingDToken(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

RemainingDToken is a free data retrieval call binding the contract method 0x3a8921a7.

Solidity: function remainingDToken(address ) view returns(address)

func (*DforceCaller) SupportDToken

func (_Dforce *DforceCaller) SupportDToken(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

SupportDToken is a free data retrieval call binding the contract method 0xd6692462.

Solidity: function supportDToken(address ) view returns(address)

func (*DforceCaller) TokensEnable

func (_Dforce *DforceCaller) TokensEnable(opts *bind.CallOpts, arg0 common.Address) (bool, error)

TokensEnable is a free data retrieval call binding the contract method 0x338a6397.

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

func (*DforceCaller) TradesDisable

func (_Dforce *DforceCaller) TradesDisable(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)

TradesDisable is a free data retrieval call binding the contract method 0xb1db0a6e.

Solidity: function tradesDisable(address , address ) view returns(bool)

type DforceCallerRaw

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

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

func (*DforceCallerRaw) Call

func (_Dforce *DforceCallerRaw) 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 DforceCallerSession

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

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

func (*DforceCallerSession) Authority

func (_Dforce *DforceCallerSession) Authority() (common.Address, error)

Authority is a free data retrieval call binding the contract method 0xbf7e214f.

Solidity: function authority() view returns(address)

func (*DforceCallerSession) ExchangeRate

func (_Dforce *DforceCallerSession) ExchangeRate(_input common.Address, _output common.Address) (*big.Int, error)

ExchangeRate is a free data retrieval call binding the contract method 0xccb0101b.

Solidity: function exchangeRate(address _input, address _output) view returns(uint256)

func (*DforceCallerSession) Fee

func (_Dforce *DforceCallerSession) Fee(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xbe5011a1.

Solidity: function fee(address , address ) view returns(uint256)

func (*DforceCallerSession) GetAmountByInput

func (_Dforce *DforceCallerSession) GetAmountByInput(_input common.Address, _output common.Address, _inputAmount *big.Int) (*big.Int, error)

GetAmountByInput is a free data retrieval call binding the contract method 0xaf77fedb.

Solidity: function getAmountByInput(address _input, address _output, uint256 _inputAmount) view returns(uint256)

func (*DforceCallerSession) GetAmountByOutput

func (_Dforce *DforceCallerSession) GetAmountByOutput(_input common.Address, _output common.Address, _outputAmount *big.Int) (*big.Int, error)

GetAmountByOutput is a free data retrieval call binding the contract method 0xf6cf166f.

Solidity: function getAmountByOutput(address _input, address _output, uint256 _outputAmount) view returns(uint256)

func (*DforceCallerSession) GetBestOutputByInput

func (_Dforce *DforceCallerSession) GetBestOutputByInput(_input common.Address, _output common.Address, _inputAmount *big.Int) (*big.Int, error)

GetBestOutputByInput is a free data retrieval call binding the contract method 0x858efd4b.

Solidity: function getBestOutputByInput(address _input, address _output, uint256 _inputAmount) view returns(uint256)

func (*DforceCallerSession) GetLiquidity

func (_Dforce *DforceCallerSession) GetLiquidity(_token common.Address) (*big.Int, error)

GetLiquidity is a free data retrieval call binding the contract method 0xa747b93b.

Solidity: function getLiquidity(address _token) view returns(uint256)

func (*DforceCallerSession) IsOpen

func (_Dforce *DforceCallerSession) IsOpen() (bool, error)

IsOpen is a free data retrieval call binding the contract method 0x47535d7b.

Solidity: function isOpen() view returns(bool)

func (*DforceCallerSession) MaxSwing

func (_Dforce *DforceCallerSession) MaxSwing() (*big.Int, error)

MaxSwing is a free data retrieval call binding the contract method 0xc5faf1d5.

Solidity: function maxSwing() view returns(uint256)

func (*DforceCallerSession) NewOwner

func (_Dforce *DforceCallerSession) NewOwner() (common.Address, error)

NewOwner is a free data retrieval call binding the contract method 0xd4ee1d90.

Solidity: function newOwner() view returns(address)

func (*DforceCallerSession) Oracle

func (_Dforce *DforceCallerSession) Oracle() (common.Address, error)

Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.

Solidity: function oracle() view returns(address)

func (*DforceCallerSession) Owner

func (_Dforce *DforceCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*DforceCallerSession) Paused

func (_Dforce *DforceCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*DforceCallerSession) RemainingDToken

func (_Dforce *DforceCallerSession) RemainingDToken(arg0 common.Address) (common.Address, error)

RemainingDToken is a free data retrieval call binding the contract method 0x3a8921a7.

Solidity: function remainingDToken(address ) view returns(address)

func (*DforceCallerSession) SupportDToken

func (_Dforce *DforceCallerSession) SupportDToken(arg0 common.Address) (common.Address, error)

SupportDToken is a free data retrieval call binding the contract method 0xd6692462.

Solidity: function supportDToken(address ) view returns(address)

func (*DforceCallerSession) TokensEnable

func (_Dforce *DforceCallerSession) TokensEnable(arg0 common.Address) (bool, error)

TokensEnable is a free data retrieval call binding the contract method 0x338a6397.

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

func (*DforceCallerSession) TradesDisable

func (_Dforce *DforceCallerSession) TradesDisable(arg0 common.Address, arg1 common.Address) (bool, error)

TradesDisable is a free data retrieval call binding the contract method 0xb1db0a6e.

Solidity: function tradesDisable(address , address ) view returns(bool)

type DforceDisableDToken

type DforceDisableDToken struct {
	DToken        common.Address
	Token         common.Address
	DTokenBalance *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

DforceDisableDToken represents a DisableDToken event raised by the Dforce contract.

type DforceDisableDTokenIterator

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

DforceDisableDTokenIterator is returned from FilterDisableDToken and is used to iterate over the raw logs and unpacked data for DisableDToken events raised by the Dforce contract.

func (*DforceDisableDTokenIterator) Close

func (it *DforceDisableDTokenIterator) Close() error

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

func (*DforceDisableDTokenIterator) Error

func (it *DforceDisableDTokenIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceDisableDTokenIterator) Next

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

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

DforceDisableToken represents a DisableToken event raised by the Dforce contract.

type DforceDisableTokenIterator

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

DforceDisableTokenIterator is returned from FilterDisableToken and is used to iterate over the raw logs and unpacked data for DisableToken events raised by the Dforce contract.

func (*DforceDisableTokenIterator) Close

func (it *DforceDisableTokenIterator) Close() error

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

func (*DforceDisableTokenIterator) Error

func (it *DforceDisableTokenIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceDisableTokenIterator) Next

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

type DforceDisableTrade struct {
	Input  common.Address
	Output common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

DforceDisableTrade represents a DisableTrade event raised by the Dforce contract.

type DforceDisableTradeIterator

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

DforceDisableTradeIterator is returned from FilterDisableTrade and is used to iterate over the raw logs and unpacked data for DisableTrade events raised by the Dforce contract.

func (*DforceDisableTradeIterator) Close

func (it *DforceDisableTradeIterator) Close() error

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

func (*DforceDisableTradeIterator) Error

func (it *DforceDisableTradeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceDisableTradeIterator) Next

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

type DforceEmergencyStop struct {
	IsOpen bool
	Raw    types.Log // Blockchain specific contextual infos
}

DforceEmergencyStop represents a EmergencyStop event raised by the Dforce contract.

type DforceEmergencyStopIterator

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

DforceEmergencyStopIterator is returned from FilterEmergencyStop and is used to iterate over the raw logs and unpacked data for EmergencyStop events raised by the Dforce contract.

func (*DforceEmergencyStopIterator) Close

func (it *DforceEmergencyStopIterator) Close() error

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

func (*DforceEmergencyStopIterator) Error

func (it *DforceEmergencyStopIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceEmergencyStopIterator) Next

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

type DforceEnableDToken struct {
	DToken        common.Address
	Token         common.Address
	DTokenBalance *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

DforceEnableDToken represents a EnableDToken event raised by the Dforce contract.

type DforceEnableDTokenIterator

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

DforceEnableDTokenIterator is returned from FilterEnableDToken and is used to iterate over the raw logs and unpacked data for EnableDToken events raised by the Dforce contract.

func (*DforceEnableDTokenIterator) Close

func (it *DforceEnableDTokenIterator) Close() error

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

func (*DforceEnableDTokenIterator) Error

func (it *DforceEnableDTokenIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceEnableDTokenIterator) Next

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

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

DforceEnableToken represents a EnableToken event raised by the Dforce contract.

type DforceEnableTokenIterator

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

DforceEnableTokenIterator is returned from FilterEnableToken and is used to iterate over the raw logs and unpacked data for EnableToken events raised by the Dforce contract.

func (*DforceEnableTokenIterator) Close

func (it *DforceEnableTokenIterator) Close() error

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

func (*DforceEnableTokenIterator) Error

func (it *DforceEnableTokenIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceEnableTokenIterator) Next

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

type DforceEnableTrade struct {
	Input  common.Address
	Output common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

DforceEnableTrade represents a EnableTrade event raised by the Dforce contract.

type DforceEnableTradeIterator

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

DforceEnableTradeIterator is returned from FilterEnableTrade and is used to iterate over the raw logs and unpacked data for EnableTrade events raised by the Dforce contract.

func (*DforceEnableTradeIterator) Close

func (it *DforceEnableTradeIterator) Close() error

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

func (*DforceEnableTradeIterator) Error

func (it *DforceEnableTradeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceEnableTradeIterator) Next

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

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

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

func NewDforceFilterer

func NewDforceFilterer(address common.Address, filterer bind.ContractFilterer) (*DforceFilterer, error)

NewDforceFilterer creates a new log filterer instance of Dforce, bound to a specific deployed contract.

func (*DforceFilterer) FilterDisableDToken

func (_Dforce *DforceFilterer) FilterDisableDToken(opts *bind.FilterOpts) (*DforceDisableDTokenIterator, error)

FilterDisableDToken is a free log retrieval operation binding the contract event 0xaf142643cc04854b375c86a81031bf9043111c3757c7e489c0e791dd30fe5252.

Solidity: event DisableDToken(address DToken, address token, uint256 DTokenBalance)

func (*DforceFilterer) FilterDisableToken

func (_Dforce *DforceFilterer) FilterDisableToken(opts *bind.FilterOpts) (*DforceDisableTokenIterator, error)

FilterDisableToken is a free log retrieval operation binding the contract event 0x3907c2f289c906800bbef774e6e4a476623eae8c1abc6cd0a78ef88aba9a6225.

Solidity: event DisableToken(address token)

func (*DforceFilterer) FilterDisableTrade

func (_Dforce *DforceFilterer) FilterDisableTrade(opts *bind.FilterOpts) (*DforceDisableTradeIterator, error)

FilterDisableTrade is a free log retrieval operation binding the contract event 0x48026cd74df281df76fcaf355f758047053aba10579ac0251255ea125d28860b.

Solidity: event DisableTrade(address input, address output)

func (*DforceFilterer) FilterEmergencyStop

func (_Dforce *DforceFilterer) FilterEmergencyStop(opts *bind.FilterOpts) (*DforceEmergencyStopIterator, error)

FilterEmergencyStop is a free log retrieval operation binding the contract event 0xcbe1b789cda412d9e1c647ed03d0c71e2f71484be36f9ca2b2a346b29edf1b70.

Solidity: event EmergencyStop(bool isOpen)

func (*DforceFilterer) FilterEnableDToken

func (_Dforce *DforceFilterer) FilterEnableDToken(opts *bind.FilterOpts) (*DforceEnableDTokenIterator, error)

FilterEnableDToken is a free log retrieval operation binding the contract event 0xb323e69a09394d23d413ed3452a32bfcb64cd9eaf2d5fc27e6a98b3ead0bd501.

Solidity: event EnableDToken(address DToken, address token, uint256 DTokenBalance)

func (*DforceFilterer) FilterEnableToken

func (_Dforce *DforceFilterer) FilterEnableToken(opts *bind.FilterOpts) (*DforceEnableTokenIterator, error)

FilterEnableToken is a free log retrieval operation binding the contract event 0x1f4b6598cc34e310cc34bcfcb372afb5ba5af654fad97b26cc10ae8289f1c62f.

Solidity: event EnableToken(address token)

func (*DforceFilterer) FilterEnableTrade

func (_Dforce *DforceFilterer) FilterEnableTrade(opts *bind.FilterOpts) (*DforceEnableTradeIterator, error)

FilterEnableTrade is a free log retrieval operation binding the contract event 0x5a27ad565647c044a93ca5b40639a1cf6bcc69260317b5f05e4572cec28f773a.

Solidity: event EnableTrade(address input, address output)

func (*DforceFilterer) FilterLogSetAuthority

func (_Dforce *DforceFilterer) FilterLogSetAuthority(opts *bind.FilterOpts, authority []common.Address) (*DforceLogSetAuthorityIterator, error)

FilterLogSetAuthority is a free log retrieval operation binding the contract event 0x1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada4.

Solidity: event LogSetAuthority(address indexed authority)

func (*DforceFilterer) FilterLogSetOwner

func (_Dforce *DforceFilterer) FilterLogSetOwner(opts *bind.FilterOpts, owner []common.Address) (*DforceLogSetOwnerIterator, error)

FilterLogSetOwner is a free log retrieval operation binding the contract event 0xce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed94.

Solidity: event LogSetOwner(address indexed owner)

func (*DforceFilterer) FilterOwnerUpdate

func (_Dforce *DforceFilterer) FilterOwnerUpdate(opts *bind.FilterOpts, owner []common.Address, newOwner []common.Address) (*DforceOwnerUpdateIterator, error)

FilterOwnerUpdate is a free log retrieval operation binding the contract event 0x343765429aea5a34b3ff6a3785a98a5abb2597aca87bfbb58632c173d585373a.

Solidity: event OwnerUpdate(address indexed owner, address indexed newOwner)

func (*DforceFilterer) FilterPaused

func (_Dforce *DforceFilterer) FilterPaused(opts *bind.FilterOpts) (*DforcePausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address admin)

func (*DforceFilterer) FilterSetFee

func (_Dforce *DforceFilterer) FilterSetFee(opts *bind.FilterOpts) (*DforceSetFeeIterator, error)

FilterSetFee is a free log retrieval operation binding the contract event 0x44a6d70a601a6f8a85c075467e9d7245897140cbf6dd505c9d9d764459f5fb64.

Solidity: event SetFee(address input, address output, uint256 fee)

func (*DforceFilterer) FilterSetMaxSwing

func (_Dforce *DforceFilterer) FilterSetMaxSwing(opts *bind.FilterOpts) (*DforceSetMaxSwingIterator, error)

FilterSetMaxSwing is a free log retrieval operation binding the contract event 0x2d8b75edba0b3a319274edc8de327c1163f1b657579353fd93e6fc4a5eaafc5e.

Solidity: event SetMaxSwing(uint256 maxSwing)

func (*DforceFilterer) FilterSetOracle

func (_Dforce *DforceFilterer) FilterSetOracle(opts *bind.FilterOpts) (*DforceSetOracleIterator, error)

FilterSetOracle is a free log retrieval operation binding the contract event 0xd3b5d1e0ffaeff528910f3663f0adace7694ab8241d58e17a91351ced2e08031.

Solidity: event SetOracle(address oracle)

func (*DforceFilterer) FilterSwap

func (_Dforce *DforceFilterer) FilterSwap(opts *bind.FilterOpts) (*DforceSwapIterator, error)

FilterSwap is a free log retrieval operation binding the contract event 0x3c659b0d071f4048f56712c66ca2ab11885b2f4d5ad1029adbdd300aaa0c18d6.

Solidity: event Swap(address from, address to, address input, uint256 inputAmount, uint256 inputPrice, address output, uint256 outputAmount, uint256 outputPrice)

func (*DforceFilterer) FilterTransferIn

func (_Dforce *DforceFilterer) FilterTransferIn(opts *bind.FilterOpts) (*DforceTransferInIterator, error)

FilterTransferIn is a free log retrieval operation binding the contract event 0x79f2c52b850a60522f5c49f634599f750fba2a92c9112ea49634c172d3d93ab6.

Solidity: event TransferIn(address token, uint256 amount, uint256 balance)

func (*DforceFilterer) FilterTransferOut

func (_Dforce *DforceFilterer) FilterTransferOut(opts *bind.FilterOpts) (*DforceTransferOutIterator, error)

FilterTransferOut is a free log retrieval operation binding the contract event 0x08d474da06d67ac0e0658410133ac9d6a35c74cfb6c9da5f68bbd68e66230534.

Solidity: event TransferOut(address token, address receiver, uint256 amount, uint256 balance)

func (*DforceFilterer) FilterUnpaused

func (_Dforce *DforceFilterer) FilterUnpaused(opts *bind.FilterOpts) (*DforceUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address admin)

func (*DforceFilterer) ParseDisableDToken

func (_Dforce *DforceFilterer) ParseDisableDToken(log types.Log) (*DforceDisableDToken, error)

ParseDisableDToken is a log parse operation binding the contract event 0xaf142643cc04854b375c86a81031bf9043111c3757c7e489c0e791dd30fe5252.

Solidity: event DisableDToken(address DToken, address token, uint256 DTokenBalance)

func (*DforceFilterer) ParseDisableToken

func (_Dforce *DforceFilterer) ParseDisableToken(log types.Log) (*DforceDisableToken, error)

ParseDisableToken is a log parse operation binding the contract event 0x3907c2f289c906800bbef774e6e4a476623eae8c1abc6cd0a78ef88aba9a6225.

Solidity: event DisableToken(address token)

func (*DforceFilterer) ParseDisableTrade

func (_Dforce *DforceFilterer) ParseDisableTrade(log types.Log) (*DforceDisableTrade, error)

ParseDisableTrade is a log parse operation binding the contract event 0x48026cd74df281df76fcaf355f758047053aba10579ac0251255ea125d28860b.

Solidity: event DisableTrade(address input, address output)

func (*DforceFilterer) ParseEmergencyStop

func (_Dforce *DforceFilterer) ParseEmergencyStop(log types.Log) (*DforceEmergencyStop, error)

ParseEmergencyStop is a log parse operation binding the contract event 0xcbe1b789cda412d9e1c647ed03d0c71e2f71484be36f9ca2b2a346b29edf1b70.

Solidity: event EmergencyStop(bool isOpen)

func (*DforceFilterer) ParseEnableDToken

func (_Dforce *DforceFilterer) ParseEnableDToken(log types.Log) (*DforceEnableDToken, error)

ParseEnableDToken is a log parse operation binding the contract event 0xb323e69a09394d23d413ed3452a32bfcb64cd9eaf2d5fc27e6a98b3ead0bd501.

Solidity: event EnableDToken(address DToken, address token, uint256 DTokenBalance)

func (*DforceFilterer) ParseEnableToken

func (_Dforce *DforceFilterer) ParseEnableToken(log types.Log) (*DforceEnableToken, error)

ParseEnableToken is a log parse operation binding the contract event 0x1f4b6598cc34e310cc34bcfcb372afb5ba5af654fad97b26cc10ae8289f1c62f.

Solidity: event EnableToken(address token)

func (*DforceFilterer) ParseEnableTrade

func (_Dforce *DforceFilterer) ParseEnableTrade(log types.Log) (*DforceEnableTrade, error)

ParseEnableTrade is a log parse operation binding the contract event 0x5a27ad565647c044a93ca5b40639a1cf6bcc69260317b5f05e4572cec28f773a.

Solidity: event EnableTrade(address input, address output)

func (*DforceFilterer) ParseLogSetAuthority

func (_Dforce *DforceFilterer) ParseLogSetAuthority(log types.Log) (*DforceLogSetAuthority, error)

ParseLogSetAuthority is a log parse operation binding the contract event 0x1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada4.

Solidity: event LogSetAuthority(address indexed authority)

func (*DforceFilterer) ParseLogSetOwner

func (_Dforce *DforceFilterer) ParseLogSetOwner(log types.Log) (*DforceLogSetOwner, error)

ParseLogSetOwner is a log parse operation binding the contract event 0xce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed94.

Solidity: event LogSetOwner(address indexed owner)

func (*DforceFilterer) ParseOwnerUpdate

func (_Dforce *DforceFilterer) ParseOwnerUpdate(log types.Log) (*DforceOwnerUpdate, error)

ParseOwnerUpdate is a log parse operation binding the contract event 0x343765429aea5a34b3ff6a3785a98a5abb2597aca87bfbb58632c173d585373a.

Solidity: event OwnerUpdate(address indexed owner, address indexed newOwner)

func (*DforceFilterer) ParsePaused

func (_Dforce *DforceFilterer) ParsePaused(log types.Log) (*DforcePaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address admin)

func (*DforceFilterer) ParseSetFee

func (_Dforce *DforceFilterer) ParseSetFee(log types.Log) (*DforceSetFee, error)

ParseSetFee is a log parse operation binding the contract event 0x44a6d70a601a6f8a85c075467e9d7245897140cbf6dd505c9d9d764459f5fb64.

Solidity: event SetFee(address input, address output, uint256 fee)

func (*DforceFilterer) ParseSetMaxSwing

func (_Dforce *DforceFilterer) ParseSetMaxSwing(log types.Log) (*DforceSetMaxSwing, error)

ParseSetMaxSwing is a log parse operation binding the contract event 0x2d8b75edba0b3a319274edc8de327c1163f1b657579353fd93e6fc4a5eaafc5e.

Solidity: event SetMaxSwing(uint256 maxSwing)

func (*DforceFilterer) ParseSetOracle

func (_Dforce *DforceFilterer) ParseSetOracle(log types.Log) (*DforceSetOracle, error)

ParseSetOracle is a log parse operation binding the contract event 0xd3b5d1e0ffaeff528910f3663f0adace7694ab8241d58e17a91351ced2e08031.

Solidity: event SetOracle(address oracle)

func (*DforceFilterer) ParseSwap

func (_Dforce *DforceFilterer) ParseSwap(log types.Log) (*DforceSwap, error)

ParseSwap is a log parse operation binding the contract event 0x3c659b0d071f4048f56712c66ca2ab11885b2f4d5ad1029adbdd300aaa0c18d6.

Solidity: event Swap(address from, address to, address input, uint256 inputAmount, uint256 inputPrice, address output, uint256 outputAmount, uint256 outputPrice)

func (*DforceFilterer) ParseTransferIn

func (_Dforce *DforceFilterer) ParseTransferIn(log types.Log) (*DforceTransferIn, error)

ParseTransferIn is a log parse operation binding the contract event 0x79f2c52b850a60522f5c49f634599f750fba2a92c9112ea49634c172d3d93ab6.

Solidity: event TransferIn(address token, uint256 amount, uint256 balance)

func (*DforceFilterer) ParseTransferOut

func (_Dforce *DforceFilterer) ParseTransferOut(log types.Log) (*DforceTransferOut, error)

ParseTransferOut is a log parse operation binding the contract event 0x08d474da06d67ac0e0658410133ac9d6a35c74cfb6c9da5f68bbd68e66230534.

Solidity: event TransferOut(address token, address receiver, uint256 amount, uint256 balance)

func (*DforceFilterer) ParseUnpaused

func (_Dforce *DforceFilterer) ParseUnpaused(log types.Log) (*DforceUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address admin)

func (*DforceFilterer) WatchDisableDToken

func (_Dforce *DforceFilterer) WatchDisableDToken(opts *bind.WatchOpts, sink chan<- *DforceDisableDToken) (event.Subscription, error)

WatchDisableDToken is a free log subscription operation binding the contract event 0xaf142643cc04854b375c86a81031bf9043111c3757c7e489c0e791dd30fe5252.

Solidity: event DisableDToken(address DToken, address token, uint256 DTokenBalance)

func (*DforceFilterer) WatchDisableToken

func (_Dforce *DforceFilterer) WatchDisableToken(opts *bind.WatchOpts, sink chan<- *DforceDisableToken) (event.Subscription, error)

WatchDisableToken is a free log subscription operation binding the contract event 0x3907c2f289c906800bbef774e6e4a476623eae8c1abc6cd0a78ef88aba9a6225.

Solidity: event DisableToken(address token)

func (*DforceFilterer) WatchDisableTrade

func (_Dforce *DforceFilterer) WatchDisableTrade(opts *bind.WatchOpts, sink chan<- *DforceDisableTrade) (event.Subscription, error)

WatchDisableTrade is a free log subscription operation binding the contract event 0x48026cd74df281df76fcaf355f758047053aba10579ac0251255ea125d28860b.

Solidity: event DisableTrade(address input, address output)

func (*DforceFilterer) WatchEmergencyStop

func (_Dforce *DforceFilterer) WatchEmergencyStop(opts *bind.WatchOpts, sink chan<- *DforceEmergencyStop) (event.Subscription, error)

WatchEmergencyStop is a free log subscription operation binding the contract event 0xcbe1b789cda412d9e1c647ed03d0c71e2f71484be36f9ca2b2a346b29edf1b70.

Solidity: event EmergencyStop(bool isOpen)

func (*DforceFilterer) WatchEnableDToken

func (_Dforce *DforceFilterer) WatchEnableDToken(opts *bind.WatchOpts, sink chan<- *DforceEnableDToken) (event.Subscription, error)

WatchEnableDToken is a free log subscription operation binding the contract event 0xb323e69a09394d23d413ed3452a32bfcb64cd9eaf2d5fc27e6a98b3ead0bd501.

Solidity: event EnableDToken(address DToken, address token, uint256 DTokenBalance)

func (*DforceFilterer) WatchEnableToken

func (_Dforce *DforceFilterer) WatchEnableToken(opts *bind.WatchOpts, sink chan<- *DforceEnableToken) (event.Subscription, error)

WatchEnableToken is a free log subscription operation binding the contract event 0x1f4b6598cc34e310cc34bcfcb372afb5ba5af654fad97b26cc10ae8289f1c62f.

Solidity: event EnableToken(address token)

func (*DforceFilterer) WatchEnableTrade

func (_Dforce *DforceFilterer) WatchEnableTrade(opts *bind.WatchOpts, sink chan<- *DforceEnableTrade) (event.Subscription, error)

WatchEnableTrade is a free log subscription operation binding the contract event 0x5a27ad565647c044a93ca5b40639a1cf6bcc69260317b5f05e4572cec28f773a.

Solidity: event EnableTrade(address input, address output)

func (*DforceFilterer) WatchLogSetAuthority

func (_Dforce *DforceFilterer) WatchLogSetAuthority(opts *bind.WatchOpts, sink chan<- *DforceLogSetAuthority, authority []common.Address) (event.Subscription, error)

WatchLogSetAuthority is a free log subscription operation binding the contract event 0x1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada4.

Solidity: event LogSetAuthority(address indexed authority)

func (*DforceFilterer) WatchLogSetOwner

func (_Dforce *DforceFilterer) WatchLogSetOwner(opts *bind.WatchOpts, sink chan<- *DforceLogSetOwner, owner []common.Address) (event.Subscription, error)

WatchLogSetOwner is a free log subscription operation binding the contract event 0xce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed94.

Solidity: event LogSetOwner(address indexed owner)

func (*DforceFilterer) WatchOwnerUpdate

func (_Dforce *DforceFilterer) WatchOwnerUpdate(opts *bind.WatchOpts, sink chan<- *DforceOwnerUpdate, owner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnerUpdate is a free log subscription operation binding the contract event 0x343765429aea5a34b3ff6a3785a98a5abb2597aca87bfbb58632c173d585373a.

Solidity: event OwnerUpdate(address indexed owner, address indexed newOwner)

func (*DforceFilterer) WatchPaused

func (_Dforce *DforceFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *DforcePaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address admin)

func (*DforceFilterer) WatchSetFee

func (_Dforce *DforceFilterer) WatchSetFee(opts *bind.WatchOpts, sink chan<- *DforceSetFee) (event.Subscription, error)

WatchSetFee is a free log subscription operation binding the contract event 0x44a6d70a601a6f8a85c075467e9d7245897140cbf6dd505c9d9d764459f5fb64.

Solidity: event SetFee(address input, address output, uint256 fee)

func (*DforceFilterer) WatchSetMaxSwing

func (_Dforce *DforceFilterer) WatchSetMaxSwing(opts *bind.WatchOpts, sink chan<- *DforceSetMaxSwing) (event.Subscription, error)

WatchSetMaxSwing is a free log subscription operation binding the contract event 0x2d8b75edba0b3a319274edc8de327c1163f1b657579353fd93e6fc4a5eaafc5e.

Solidity: event SetMaxSwing(uint256 maxSwing)

func (*DforceFilterer) WatchSetOracle

func (_Dforce *DforceFilterer) WatchSetOracle(opts *bind.WatchOpts, sink chan<- *DforceSetOracle) (event.Subscription, error)

WatchSetOracle is a free log subscription operation binding the contract event 0xd3b5d1e0ffaeff528910f3663f0adace7694ab8241d58e17a91351ced2e08031.

Solidity: event SetOracle(address oracle)

func (*DforceFilterer) WatchSwap

func (_Dforce *DforceFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *DforceSwap) (event.Subscription, error)

WatchSwap is a free log subscription operation binding the contract event 0x3c659b0d071f4048f56712c66ca2ab11885b2f4d5ad1029adbdd300aaa0c18d6.

Solidity: event Swap(address from, address to, address input, uint256 inputAmount, uint256 inputPrice, address output, uint256 outputAmount, uint256 outputPrice)

func (*DforceFilterer) WatchTransferIn

func (_Dforce *DforceFilterer) WatchTransferIn(opts *bind.WatchOpts, sink chan<- *DforceTransferIn) (event.Subscription, error)

WatchTransferIn is a free log subscription operation binding the contract event 0x79f2c52b850a60522f5c49f634599f750fba2a92c9112ea49634c172d3d93ab6.

Solidity: event TransferIn(address token, uint256 amount, uint256 balance)

func (*DforceFilterer) WatchTransferOut

func (_Dforce *DforceFilterer) WatchTransferOut(opts *bind.WatchOpts, sink chan<- *DforceTransferOut) (event.Subscription, error)

WatchTransferOut is a free log subscription operation binding the contract event 0x08d474da06d67ac0e0658410133ac9d6a35c74cfb6c9da5f68bbd68e66230534.

Solidity: event TransferOut(address token, address receiver, uint256 amount, uint256 balance)

func (*DforceFilterer) WatchUnpaused

func (_Dforce *DforceFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *DforceUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address admin)

type DforceLogSetAuthority

type DforceLogSetAuthority struct {
	Authority common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

DforceLogSetAuthority represents a LogSetAuthority event raised by the Dforce contract.

type DforceLogSetAuthorityIterator

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

DforceLogSetAuthorityIterator is returned from FilterLogSetAuthority and is used to iterate over the raw logs and unpacked data for LogSetAuthority events raised by the Dforce contract.

func (*DforceLogSetAuthorityIterator) Close

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

func (*DforceLogSetAuthorityIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceLogSetAuthorityIterator) 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 DforceLogSetOwner

type DforceLogSetOwner struct {
	Owner common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

DforceLogSetOwner represents a LogSetOwner event raised by the Dforce contract.

type DforceLogSetOwnerIterator

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

DforceLogSetOwnerIterator is returned from FilterLogSetOwner and is used to iterate over the raw logs and unpacked data for LogSetOwner events raised by the Dforce contract.

func (*DforceLogSetOwnerIterator) Close

func (it *DforceLogSetOwnerIterator) Close() error

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

func (*DforceLogSetOwnerIterator) Error

func (it *DforceLogSetOwnerIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceLogSetOwnerIterator) Next

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

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

DforceOwnerUpdate represents a OwnerUpdate event raised by the Dforce contract.

type DforceOwnerUpdateIterator

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

DforceOwnerUpdateIterator is returned from FilterOwnerUpdate and is used to iterate over the raw logs and unpacked data for OwnerUpdate events raised by the Dforce contract.

func (*DforceOwnerUpdateIterator) Close

func (it *DforceOwnerUpdateIterator) Close() error

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

func (*DforceOwnerUpdateIterator) Error

func (it *DforceOwnerUpdateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceOwnerUpdateIterator) Next

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

type DforcePaused struct {
	Admin common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

DforcePaused represents a Paused event raised by the Dforce contract.

type DforcePausedIterator

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

DforcePausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Dforce contract.

func (*DforcePausedIterator) Close

func (it *DforcePausedIterator) Close() error

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

func (*DforcePausedIterator) Error

func (it *DforcePausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforcePausedIterator) Next

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

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

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

func (*DforceRaw) Call

func (_Dforce *DforceRaw) 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 (*DforceRaw) Transact

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

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

func (*DforceRaw) Transfer

func (_Dforce *DforceRaw) 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 DforceSession

type DforceSession struct {
	Contract     *Dforce           // 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
}

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

func (*DforceSession) AcceptOwnership

func (_Dforce *DforceSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*DforceSession) Active

func (_Dforce *DforceSession) Active(_oracle common.Address) (*types.Transaction, error)

Active is a paid mutator transaction binding the contract method 0x4ea71327.

Solidity: function active(address _oracle) returns()

func (*DforceSession) Authority

func (_Dforce *DforceSession) Authority() (common.Address, error)

Authority is a free data retrieval call binding the contract method 0xbf7e214f.

Solidity: function authority() view returns(address)

func (*DforceSession) DisableDToken

func (_Dforce *DforceSession) DisableDToken(_dToken common.Address) (*types.Transaction, error)

DisableDToken is a paid mutator transaction binding the contract method 0xea000b80.

Solidity: function disableDToken(address _dToken) returns()

func (*DforceSession) DisableOwnership

func (_Dforce *DforceSession) DisableOwnership() (*types.Transaction, error)

DisableOwnership is a paid mutator transaction binding the contract method 0x93c0b096.

Solidity: function disableOwnership() returns()

func (*DforceSession) DisableToken

func (_Dforce *DforceSession) DisableToken(_token common.Address) (*types.Transaction, error)

DisableToken is a paid mutator transaction binding the contract method 0x23e27a64.

Solidity: function disableToken(address _token) returns()

func (*DforceSession) DisableTrade

func (_Dforce *DforceSession) DisableTrade(_input common.Address, _output common.Address) (*types.Transaction, error)

DisableTrade is a paid mutator transaction binding the contract method 0xb80e706a.

Solidity: function disableTrade(address _input, address _output) returns()

func (*DforceSession) EmergencyStop

func (_Dforce *DforceSession) EmergencyStop(_changeStateTo bool) (*types.Transaction, error)

EmergencyStop is a paid mutator transaction binding the contract method 0x0ac62e02.

Solidity: function emergencyStop(bool _changeStateTo) returns()

func (*DforceSession) EnableDToken

func (_Dforce *DforceSession) EnableDToken(_dToken common.Address) (*types.Transaction, error)

EnableDToken is a paid mutator transaction binding the contract method 0x4a67645c.

Solidity: function enableDToken(address _dToken) returns()

func (*DforceSession) EnableToken

func (_Dforce *DforceSession) EnableToken(_token common.Address) (*types.Transaction, error)

EnableToken is a paid mutator transaction binding the contract method 0xc690908a.

Solidity: function enableToken(address _token) returns()

func (*DforceSession) EnableTrade

func (_Dforce *DforceSession) EnableTrade(_input common.Address, _output common.Address) (*types.Transaction, error)

EnableTrade is a paid mutator transaction binding the contract method 0x800cf13d.

Solidity: function enableTrade(address _input, address _output) returns()

func (*DforceSession) ExchangeRate

func (_Dforce *DforceSession) ExchangeRate(_input common.Address, _output common.Address) (*big.Int, error)

ExchangeRate is a free data retrieval call binding the contract method 0xccb0101b.

Solidity: function exchangeRate(address _input, address _output) view returns(uint256)

func (*DforceSession) Fee

func (_Dforce *DforceSession) Fee(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xbe5011a1.

Solidity: function fee(address , address ) view returns(uint256)

func (*DforceSession) GetAmountByInput

func (_Dforce *DforceSession) GetAmountByInput(_input common.Address, _output common.Address, _inputAmount *big.Int) (*big.Int, error)

GetAmountByInput is a free data retrieval call binding the contract method 0xaf77fedb.

Solidity: function getAmountByInput(address _input, address _output, uint256 _inputAmount) view returns(uint256)

func (*DforceSession) GetAmountByOutput

func (_Dforce *DforceSession) GetAmountByOutput(_input common.Address, _output common.Address, _outputAmount *big.Int) (*big.Int, error)

GetAmountByOutput is a free data retrieval call binding the contract method 0xf6cf166f.

Solidity: function getAmountByOutput(address _input, address _output, uint256 _outputAmount) view returns(uint256)

func (*DforceSession) GetBestOutputByInput

func (_Dforce *DforceSession) GetBestOutputByInput(_input common.Address, _output common.Address, _inputAmount *big.Int) (*big.Int, error)

GetBestOutputByInput is a free data retrieval call binding the contract method 0x858efd4b.

Solidity: function getBestOutputByInput(address _input, address _output, uint256 _inputAmount) view returns(uint256)

func (*DforceSession) GetLiquidity

func (_Dforce *DforceSession) GetLiquidity(_token common.Address) (*big.Int, error)

GetLiquidity is a free data retrieval call binding the contract method 0xa747b93b.

Solidity: function getLiquidity(address _token) view returns(uint256)

func (*DforceSession) IsOpen

func (_Dforce *DforceSession) IsOpen() (bool, error)

IsOpen is a free data retrieval call binding the contract method 0x47535d7b.

Solidity: function isOpen() view returns(bool)

func (*DforceSession) MaxSwing

func (_Dforce *DforceSession) MaxSwing() (*big.Int, error)

MaxSwing is a free data retrieval call binding the contract method 0xc5faf1d5.

Solidity: function maxSwing() view returns(uint256)

func (*DforceSession) NewOwner

func (_Dforce *DforceSession) NewOwner() (common.Address, error)

NewOwner is a free data retrieval call binding the contract method 0xd4ee1d90.

Solidity: function newOwner() view returns(address)

func (*DforceSession) Oracle

func (_Dforce *DforceSession) Oracle() (common.Address, error)

Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.

Solidity: function oracle() view returns(address)

func (*DforceSession) Owner

func (_Dforce *DforceSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*DforceSession) Pause

func (_Dforce *DforceSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*DforceSession) Paused

func (_Dforce *DforceSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*DforceSession) RemainingDToken

func (_Dforce *DforceSession) RemainingDToken(arg0 common.Address) (common.Address, error)

RemainingDToken is a free data retrieval call binding the contract method 0x3a8921a7.

Solidity: function remainingDToken(address ) view returns(address)

func (*DforceSession) SetAuthority

func (_Dforce *DforceSession) SetAuthority(authority_ common.Address) (*types.Transaction, error)

SetAuthority is a paid mutator transaction binding the contract method 0x7a9e5e4b.

Solidity: function setAuthority(address authority_) returns()

func (*DforceSession) SetFee

func (_Dforce *DforceSession) SetFee(_input common.Address, _output common.Address, _fee *big.Int) (*types.Transaction, error)

SetFee is a paid mutator transaction binding the contract method 0xdc7e98df.

Solidity: function setFee(address _input, address _output, uint256 _fee) returns()

func (*DforceSession) SetFeeBatch

func (_Dforce *DforceSession) SetFeeBatch(_input []common.Address, _output []common.Address, _fee []*big.Int) (*types.Transaction, error)

SetFeeBatch is a paid mutator transaction binding the contract method 0x8ff76519.

Solidity: function setFeeBatch(address[] _input, address[] _output, uint256[] _fee) returns()

func (*DforceSession) SetMaxSwing

func (_Dforce *DforceSession) SetMaxSwing(_maxSwing *big.Int) (*types.Transaction, error)

SetMaxSwing is a paid mutator transaction binding the contract method 0x3e36b146.

Solidity: function setMaxSwing(uint256 _maxSwing) returns()

func (*DforceSession) SetOracle

func (_Dforce *DforceSession) SetOracle(_oracle common.Address) (*types.Transaction, error)

SetOracle is a paid mutator transaction binding the contract method 0x7adbf973.

Solidity: function setOracle(address _oracle) returns()

func (*DforceSession) SupportDToken

func (_Dforce *DforceSession) SupportDToken(arg0 common.Address) (common.Address, error)

SupportDToken is a free data retrieval call binding the contract method 0xd6692462.

Solidity: function supportDToken(address ) view returns(address)

func (*DforceSession) Swap

func (_Dforce *DforceSession) Swap(_input common.Address, _output common.Address, _inputAmount *big.Int, _receiver common.Address) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x6e81221c.

Solidity: function swap(address _input, address _output, uint256 _inputAmount, address _receiver) returns()

func (*DforceSession) Swap0

func (_Dforce *DforceSession) Swap0(_input common.Address, _output common.Address, _inputAmount *big.Int) (*types.Transaction, error)

Swap0 is a paid mutator transaction binding the contract method 0xdf791e50.

Solidity: function swap(address _input, address _output, uint256 _inputAmount) returns()

func (*DforceSession) SwapTo

func (_Dforce *DforceSession) SwapTo(_input common.Address, _output common.Address, _outputAmount *big.Int, _receiver common.Address) (*types.Transaction, error)

SwapTo is a paid mutator transaction binding the contract method 0x2f7846a0.

Solidity: function swapTo(address _input, address _output, uint256 _outputAmount, address _receiver) returns()

func (*DforceSession) SwapTo0

func (_Dforce *DforceSession) SwapTo0(_input common.Address, _output common.Address, _outputAmount *big.Int) (*types.Transaction, error)

SwapTo0 is a paid mutator transaction binding the contract method 0x95ff216f.

Solidity: function swapTo(address _input, address _output, uint256 _outputAmount) returns()

func (*DforceSession) TokensEnable

func (_Dforce *DforceSession) TokensEnable(arg0 common.Address) (bool, error)

TokensEnable is a free data retrieval call binding the contract method 0x338a6397.

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

func (*DforceSession) TradesDisable

func (_Dforce *DforceSession) TradesDisable(arg0 common.Address, arg1 common.Address) (bool, error)

TradesDisable is a free data retrieval call binding the contract method 0xb1db0a6e.

Solidity: function tradesDisable(address , address ) view returns(bool)

func (*DforceSession) TransferIn

func (_Dforce *DforceSession) TransferIn(_token common.Address, _amount *big.Int) (*types.Transaction, error)

TransferIn is a paid mutator transaction binding the contract method 0xe8888915.

Solidity: function transferIn(address _token, uint256 _amount) returns()

func (*DforceSession) TransferOut

func (_Dforce *DforceSession) TransferOut(_token common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error)

TransferOut is a paid mutator transaction binding the contract method 0x078d3b79.

Solidity: function transferOut(address _token, address _receiver, uint256 _amount) returns()

func (*DforceSession) TransferOutALL

func (_Dforce *DforceSession) TransferOutALL(_token common.Address, _receiver common.Address) (*types.Transaction, error)

TransferOutALL is a paid mutator transaction binding the contract method 0x381dc1e5.

Solidity: function transferOutALL(address _token, address _receiver) returns()

func (*DforceSession) TransferOwnership

func (_Dforce *DforceSession) TransferOwnership(newOwner_ common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner_) returns()

func (*DforceSession) Unpause

func (_Dforce *DforceSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

type DforceSetFee

type DforceSetFee struct {
	Input  common.Address
	Output common.Address
	Fee    *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

DforceSetFee represents a SetFee event raised by the Dforce contract.

type DforceSetFeeIterator

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

DforceSetFeeIterator is returned from FilterSetFee and is used to iterate over the raw logs and unpacked data for SetFee events raised by the Dforce contract.

func (*DforceSetFeeIterator) Close

func (it *DforceSetFeeIterator) Close() error

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

func (*DforceSetFeeIterator) Error

func (it *DforceSetFeeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceSetFeeIterator) Next

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

type DforceSetMaxSwing struct {
	MaxSwing *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

DforceSetMaxSwing represents a SetMaxSwing event raised by the Dforce contract.

type DforceSetMaxSwingIterator

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

DforceSetMaxSwingIterator is returned from FilterSetMaxSwing and is used to iterate over the raw logs and unpacked data for SetMaxSwing events raised by the Dforce contract.

func (*DforceSetMaxSwingIterator) Close

func (it *DforceSetMaxSwingIterator) Close() error

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

func (*DforceSetMaxSwingIterator) Error

func (it *DforceSetMaxSwingIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceSetMaxSwingIterator) Next

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

type DforceSetOracle struct {
	Oracle common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

DforceSetOracle represents a SetOracle event raised by the Dforce contract.

type DforceSetOracleIterator

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

DforceSetOracleIterator is returned from FilterSetOracle and is used to iterate over the raw logs and unpacked data for SetOracle events raised by the Dforce contract.

func (*DforceSetOracleIterator) Close

func (it *DforceSetOracleIterator) Close() error

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

func (*DforceSetOracleIterator) Error

func (it *DforceSetOracleIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceSetOracleIterator) Next

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

type DforceSwap struct {
	From         common.Address
	To           common.Address
	Input        common.Address
	InputAmount  *big.Int
	InputPrice   *big.Int
	Output       common.Address
	OutputAmount *big.Int
	OutputPrice  *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

DforceSwap represents a Swap event raised by the Dforce contract.

type DforceSwapIterator

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

DforceSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the Dforce contract.

func (*DforceSwapIterator) Close

func (it *DforceSwapIterator) Close() error

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

func (*DforceSwapIterator) Error

func (it *DforceSwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceSwapIterator) Next

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

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

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

func NewDforceTransactor

func NewDforceTransactor(address common.Address, transactor bind.ContractTransactor) (*DforceTransactor, error)

NewDforceTransactor creates a new write-only instance of Dforce, bound to a specific deployed contract.

func (*DforceTransactor) AcceptOwnership

func (_Dforce *DforceTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*DforceTransactor) Active

func (_Dforce *DforceTransactor) Active(opts *bind.TransactOpts, _oracle common.Address) (*types.Transaction, error)

Active is a paid mutator transaction binding the contract method 0x4ea71327.

Solidity: function active(address _oracle) returns()

func (*DforceTransactor) DisableDToken

func (_Dforce *DforceTransactor) DisableDToken(opts *bind.TransactOpts, _dToken common.Address) (*types.Transaction, error)

DisableDToken is a paid mutator transaction binding the contract method 0xea000b80.

Solidity: function disableDToken(address _dToken) returns()

func (*DforceTransactor) DisableOwnership

func (_Dforce *DforceTransactor) DisableOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

DisableOwnership is a paid mutator transaction binding the contract method 0x93c0b096.

Solidity: function disableOwnership() returns()

func (*DforceTransactor) DisableToken

func (_Dforce *DforceTransactor) DisableToken(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)

DisableToken is a paid mutator transaction binding the contract method 0x23e27a64.

Solidity: function disableToken(address _token) returns()

func (*DforceTransactor) DisableTrade

func (_Dforce *DforceTransactor) DisableTrade(opts *bind.TransactOpts, _input common.Address, _output common.Address) (*types.Transaction, error)

DisableTrade is a paid mutator transaction binding the contract method 0xb80e706a.

Solidity: function disableTrade(address _input, address _output) returns()

func (*DforceTransactor) EmergencyStop

func (_Dforce *DforceTransactor) EmergencyStop(opts *bind.TransactOpts, _changeStateTo bool) (*types.Transaction, error)

EmergencyStop is a paid mutator transaction binding the contract method 0x0ac62e02.

Solidity: function emergencyStop(bool _changeStateTo) returns()

func (*DforceTransactor) EnableDToken

func (_Dforce *DforceTransactor) EnableDToken(opts *bind.TransactOpts, _dToken common.Address) (*types.Transaction, error)

EnableDToken is a paid mutator transaction binding the contract method 0x4a67645c.

Solidity: function enableDToken(address _dToken) returns()

func (*DforceTransactor) EnableToken

func (_Dforce *DforceTransactor) EnableToken(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)

EnableToken is a paid mutator transaction binding the contract method 0xc690908a.

Solidity: function enableToken(address _token) returns()

func (*DforceTransactor) EnableTrade

func (_Dforce *DforceTransactor) EnableTrade(opts *bind.TransactOpts, _input common.Address, _output common.Address) (*types.Transaction, error)

EnableTrade is a paid mutator transaction binding the contract method 0x800cf13d.

Solidity: function enableTrade(address _input, address _output) returns()

func (*DforceTransactor) Pause

func (_Dforce *DforceTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*DforceTransactor) SetAuthority

func (_Dforce *DforceTransactor) SetAuthority(opts *bind.TransactOpts, authority_ common.Address) (*types.Transaction, error)

SetAuthority is a paid mutator transaction binding the contract method 0x7a9e5e4b.

Solidity: function setAuthority(address authority_) returns()

func (*DforceTransactor) SetFee

func (_Dforce *DforceTransactor) SetFee(opts *bind.TransactOpts, _input common.Address, _output common.Address, _fee *big.Int) (*types.Transaction, error)

SetFee is a paid mutator transaction binding the contract method 0xdc7e98df.

Solidity: function setFee(address _input, address _output, uint256 _fee) returns()

func (*DforceTransactor) SetFeeBatch

func (_Dforce *DforceTransactor) SetFeeBatch(opts *bind.TransactOpts, _input []common.Address, _output []common.Address, _fee []*big.Int) (*types.Transaction, error)

SetFeeBatch is a paid mutator transaction binding the contract method 0x8ff76519.

Solidity: function setFeeBatch(address[] _input, address[] _output, uint256[] _fee) returns()

func (*DforceTransactor) SetMaxSwing

func (_Dforce *DforceTransactor) SetMaxSwing(opts *bind.TransactOpts, _maxSwing *big.Int) (*types.Transaction, error)

SetMaxSwing is a paid mutator transaction binding the contract method 0x3e36b146.

Solidity: function setMaxSwing(uint256 _maxSwing) returns()

func (*DforceTransactor) SetOracle

func (_Dforce *DforceTransactor) SetOracle(opts *bind.TransactOpts, _oracle common.Address) (*types.Transaction, error)

SetOracle is a paid mutator transaction binding the contract method 0x7adbf973.

Solidity: function setOracle(address _oracle) returns()

func (*DforceTransactor) Swap

func (_Dforce *DforceTransactor) Swap(opts *bind.TransactOpts, _input common.Address, _output common.Address, _inputAmount *big.Int, _receiver common.Address) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x6e81221c.

Solidity: function swap(address _input, address _output, uint256 _inputAmount, address _receiver) returns()

func (*DforceTransactor) Swap0

func (_Dforce *DforceTransactor) Swap0(opts *bind.TransactOpts, _input common.Address, _output common.Address, _inputAmount *big.Int) (*types.Transaction, error)

Swap0 is a paid mutator transaction binding the contract method 0xdf791e50.

Solidity: function swap(address _input, address _output, uint256 _inputAmount) returns()

func (*DforceTransactor) SwapTo

func (_Dforce *DforceTransactor) SwapTo(opts *bind.TransactOpts, _input common.Address, _output common.Address, _outputAmount *big.Int, _receiver common.Address) (*types.Transaction, error)

SwapTo is a paid mutator transaction binding the contract method 0x2f7846a0.

Solidity: function swapTo(address _input, address _output, uint256 _outputAmount, address _receiver) returns()

func (*DforceTransactor) SwapTo0

func (_Dforce *DforceTransactor) SwapTo0(opts *bind.TransactOpts, _input common.Address, _output common.Address, _outputAmount *big.Int) (*types.Transaction, error)

SwapTo0 is a paid mutator transaction binding the contract method 0x95ff216f.

Solidity: function swapTo(address _input, address _output, uint256 _outputAmount) returns()

func (*DforceTransactor) TransferIn

func (_Dforce *DforceTransactor) TransferIn(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)

TransferIn is a paid mutator transaction binding the contract method 0xe8888915.

Solidity: function transferIn(address _token, uint256 _amount) returns()

func (*DforceTransactor) TransferOut

func (_Dforce *DforceTransactor) TransferOut(opts *bind.TransactOpts, _token common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error)

TransferOut is a paid mutator transaction binding the contract method 0x078d3b79.

Solidity: function transferOut(address _token, address _receiver, uint256 _amount) returns()

func (*DforceTransactor) TransferOutALL

func (_Dforce *DforceTransactor) TransferOutALL(opts *bind.TransactOpts, _token common.Address, _receiver common.Address) (*types.Transaction, error)

TransferOutALL is a paid mutator transaction binding the contract method 0x381dc1e5.

Solidity: function transferOutALL(address _token, address _receiver) returns()

func (*DforceTransactor) TransferOwnership

func (_Dforce *DforceTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner_ common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner_) returns()

func (*DforceTransactor) Unpause

func (_Dforce *DforceTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

type DforceTransactorRaw

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

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

func (*DforceTransactorRaw) Transact

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

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

func (*DforceTransactorRaw) Transfer

func (_Dforce *DforceTransactorRaw) 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 DforceTransactorSession

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

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

func (*DforceTransactorSession) AcceptOwnership

func (_Dforce *DforceTransactorSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*DforceTransactorSession) Active

func (_Dforce *DforceTransactorSession) Active(_oracle common.Address) (*types.Transaction, error)

Active is a paid mutator transaction binding the contract method 0x4ea71327.

Solidity: function active(address _oracle) returns()

func (*DforceTransactorSession) DisableDToken

func (_Dforce *DforceTransactorSession) DisableDToken(_dToken common.Address) (*types.Transaction, error)

DisableDToken is a paid mutator transaction binding the contract method 0xea000b80.

Solidity: function disableDToken(address _dToken) returns()

func (*DforceTransactorSession) DisableOwnership

func (_Dforce *DforceTransactorSession) DisableOwnership() (*types.Transaction, error)

DisableOwnership is a paid mutator transaction binding the contract method 0x93c0b096.

Solidity: function disableOwnership() returns()

func (*DforceTransactorSession) DisableToken

func (_Dforce *DforceTransactorSession) DisableToken(_token common.Address) (*types.Transaction, error)

DisableToken is a paid mutator transaction binding the contract method 0x23e27a64.

Solidity: function disableToken(address _token) returns()

func (*DforceTransactorSession) DisableTrade

func (_Dforce *DforceTransactorSession) DisableTrade(_input common.Address, _output common.Address) (*types.Transaction, error)

DisableTrade is a paid mutator transaction binding the contract method 0xb80e706a.

Solidity: function disableTrade(address _input, address _output) returns()

func (*DforceTransactorSession) EmergencyStop

func (_Dforce *DforceTransactorSession) EmergencyStop(_changeStateTo bool) (*types.Transaction, error)

EmergencyStop is a paid mutator transaction binding the contract method 0x0ac62e02.

Solidity: function emergencyStop(bool _changeStateTo) returns()

func (*DforceTransactorSession) EnableDToken

func (_Dforce *DforceTransactorSession) EnableDToken(_dToken common.Address) (*types.Transaction, error)

EnableDToken is a paid mutator transaction binding the contract method 0x4a67645c.

Solidity: function enableDToken(address _dToken) returns()

func (*DforceTransactorSession) EnableToken

func (_Dforce *DforceTransactorSession) EnableToken(_token common.Address) (*types.Transaction, error)

EnableToken is a paid mutator transaction binding the contract method 0xc690908a.

Solidity: function enableToken(address _token) returns()

func (*DforceTransactorSession) EnableTrade

func (_Dforce *DforceTransactorSession) EnableTrade(_input common.Address, _output common.Address) (*types.Transaction, error)

EnableTrade is a paid mutator transaction binding the contract method 0x800cf13d.

Solidity: function enableTrade(address _input, address _output) returns()

func (*DforceTransactorSession) Pause

func (_Dforce *DforceTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*DforceTransactorSession) SetAuthority

func (_Dforce *DforceTransactorSession) SetAuthority(authority_ common.Address) (*types.Transaction, error)

SetAuthority is a paid mutator transaction binding the contract method 0x7a9e5e4b.

Solidity: function setAuthority(address authority_) returns()

func (*DforceTransactorSession) SetFee

func (_Dforce *DforceTransactorSession) SetFee(_input common.Address, _output common.Address, _fee *big.Int) (*types.Transaction, error)

SetFee is a paid mutator transaction binding the contract method 0xdc7e98df.

Solidity: function setFee(address _input, address _output, uint256 _fee) returns()

func (*DforceTransactorSession) SetFeeBatch

func (_Dforce *DforceTransactorSession) SetFeeBatch(_input []common.Address, _output []common.Address, _fee []*big.Int) (*types.Transaction, error)

SetFeeBatch is a paid mutator transaction binding the contract method 0x8ff76519.

Solidity: function setFeeBatch(address[] _input, address[] _output, uint256[] _fee) returns()

func (*DforceTransactorSession) SetMaxSwing

func (_Dforce *DforceTransactorSession) SetMaxSwing(_maxSwing *big.Int) (*types.Transaction, error)

SetMaxSwing is a paid mutator transaction binding the contract method 0x3e36b146.

Solidity: function setMaxSwing(uint256 _maxSwing) returns()

func (*DforceTransactorSession) SetOracle

func (_Dforce *DforceTransactorSession) SetOracle(_oracle common.Address) (*types.Transaction, error)

SetOracle is a paid mutator transaction binding the contract method 0x7adbf973.

Solidity: function setOracle(address _oracle) returns()

func (*DforceTransactorSession) Swap

func (_Dforce *DforceTransactorSession) Swap(_input common.Address, _output common.Address, _inputAmount *big.Int, _receiver common.Address) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x6e81221c.

Solidity: function swap(address _input, address _output, uint256 _inputAmount, address _receiver) returns()

func (*DforceTransactorSession) Swap0

func (_Dforce *DforceTransactorSession) Swap0(_input common.Address, _output common.Address, _inputAmount *big.Int) (*types.Transaction, error)

Swap0 is a paid mutator transaction binding the contract method 0xdf791e50.

Solidity: function swap(address _input, address _output, uint256 _inputAmount) returns()

func (*DforceTransactorSession) SwapTo

func (_Dforce *DforceTransactorSession) SwapTo(_input common.Address, _output common.Address, _outputAmount *big.Int, _receiver common.Address) (*types.Transaction, error)

SwapTo is a paid mutator transaction binding the contract method 0x2f7846a0.

Solidity: function swapTo(address _input, address _output, uint256 _outputAmount, address _receiver) returns()

func (*DforceTransactorSession) SwapTo0

func (_Dforce *DforceTransactorSession) SwapTo0(_input common.Address, _output common.Address, _outputAmount *big.Int) (*types.Transaction, error)

SwapTo0 is a paid mutator transaction binding the contract method 0x95ff216f.

Solidity: function swapTo(address _input, address _output, uint256 _outputAmount) returns()

func (*DforceTransactorSession) TransferIn

func (_Dforce *DforceTransactorSession) TransferIn(_token common.Address, _amount *big.Int) (*types.Transaction, error)

TransferIn is a paid mutator transaction binding the contract method 0xe8888915.

Solidity: function transferIn(address _token, uint256 _amount) returns()

func (*DforceTransactorSession) TransferOut

func (_Dforce *DforceTransactorSession) TransferOut(_token common.Address, _receiver common.Address, _amount *big.Int) (*types.Transaction, error)

TransferOut is a paid mutator transaction binding the contract method 0x078d3b79.

Solidity: function transferOut(address _token, address _receiver, uint256 _amount) returns()

func (*DforceTransactorSession) TransferOutALL

func (_Dforce *DforceTransactorSession) TransferOutALL(_token common.Address, _receiver common.Address) (*types.Transaction, error)

TransferOutALL is a paid mutator transaction binding the contract method 0x381dc1e5.

Solidity: function transferOutALL(address _token, address _receiver) returns()

func (*DforceTransactorSession) TransferOwnership

func (_Dforce *DforceTransactorSession) TransferOwnership(newOwner_ common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner_) returns()

func (*DforceTransactorSession) Unpause

func (_Dforce *DforceTransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

type DforceTransferIn

type DforceTransferIn struct {
	Token   common.Address
	Amount  *big.Int
	Balance *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

DforceTransferIn represents a TransferIn event raised by the Dforce contract.

type DforceTransferInIterator

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

DforceTransferInIterator is returned from FilterTransferIn and is used to iterate over the raw logs and unpacked data for TransferIn events raised by the Dforce contract.

func (*DforceTransferInIterator) Close

func (it *DforceTransferInIterator) Close() error

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

func (*DforceTransferInIterator) Error

func (it *DforceTransferInIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceTransferInIterator) Next

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

type DforceTransferOut struct {
	Token    common.Address
	Receiver common.Address
	Amount   *big.Int
	Balance  *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

DforceTransferOut represents a TransferOut event raised by the Dforce contract.

type DforceTransferOutIterator

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

DforceTransferOutIterator is returned from FilterTransferOut and is used to iterate over the raw logs and unpacked data for TransferOut events raised by the Dforce contract.

func (*DforceTransferOutIterator) Close

func (it *DforceTransferOutIterator) Close() error

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

func (*DforceTransferOutIterator) Error

func (it *DforceTransferOutIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceTransferOutIterator) Next

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

type DforceUnpaused struct {
	Admin common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

DforceUnpaused represents a Unpaused event raised by the Dforce contract.

type DforceUnpausedIterator

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

DforceUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Dforce contract.

func (*DforceUnpausedIterator) Close

func (it *DforceUnpausedIterator) Close() error

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

func (*DforceUnpausedIterator) Error

func (it *DforceUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DforceUnpausedIterator) Next

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL