erc20

package
v1.0.1-stable-dd60dab Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: GPL-3.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

View Source
const CompatibleERC20ABI = "" /* 1894-byte string literal not displayed */

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

View Source
const CompatibleERC20Bin = `0x`

CompatibleERC20Bin is the compiled bytecode used for deploying new contracts.

View Source
const ERC20SwapContractABI = "" /* 3148-byte string literal not displayed */

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

View Source
const ERC20SwapContractBin = `0x`

ERC20SwapContractBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

func NewERC20SwapContractBinder

func NewERC20SwapContractBinder(account libeth.Account, swap swap.Swap, cost blockchain.Cost, logger logrus.FieldLogger) (immediate.Contract, error)

NewERC20SwapContractBinder returns a new ERC20 Atom instance

Types

type CompatibleERC20

type CompatibleERC20 struct {
	CompatibleERC20Caller     // Read-only binding to the contract
	CompatibleERC20Transactor // Write-only binding to the contract
	CompatibleERC20Filterer   // Log filterer for contract events
}

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

func DeployCompatibleERC20

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

DeployCompatibleERC20 deploys a new Ethereum contract, binding an instance of CompatibleERC20 to it.

func NewCompatibleERC20

func NewCompatibleERC20(address common.Address, backend bind.ContractBackend) (*CompatibleERC20, error)

NewCompatibleERC20 creates a new instance of CompatibleERC20, bound to a specific deployed contract.

type CompatibleERC20Approval

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

CompatibleERC20Approval represents a Approval event raised by the CompatibleERC20 contract.

type CompatibleERC20ApprovalIterator

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

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

func (*CompatibleERC20ApprovalIterator) Close

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

func (*CompatibleERC20ApprovalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CompatibleERC20ApprovalIterator) 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 CompatibleERC20Caller

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

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

func NewCompatibleERC20Caller

func NewCompatibleERC20Caller(address common.Address, caller bind.ContractCaller) (*CompatibleERC20Caller, error)

NewCompatibleERC20Caller creates a new read-only instance of CompatibleERC20, bound to a specific deployed contract.

func (*CompatibleERC20Caller) Allowance

func (_CompatibleERC20 *CompatibleERC20Caller) 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(owner address, spender address) constant returns(uint256)

func (*CompatibleERC20Caller) BalanceOf

func (_CompatibleERC20 *CompatibleERC20Caller) BalanceOf(opts *bind.CallOpts, who common.Address) (*big.Int, error)

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

Solidity: function balanceOf(who address) constant returns(uint256)

func (*CompatibleERC20Caller) TotalSupply

func (_CompatibleERC20 *CompatibleERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

type CompatibleERC20CallerRaw

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

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

func (*CompatibleERC20CallerRaw) Call

func (_CompatibleERC20 *CompatibleERC20CallerRaw) 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 CompatibleERC20CallerSession

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

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

func (*CompatibleERC20CallerSession) Allowance

func (_CompatibleERC20 *CompatibleERC20CallerSession) 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(owner address, spender address) constant returns(uint256)

func (*CompatibleERC20CallerSession) BalanceOf

func (_CompatibleERC20 *CompatibleERC20CallerSession) BalanceOf(who common.Address) (*big.Int, error)

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

Solidity: function balanceOf(who address) constant returns(uint256)

func (*CompatibleERC20CallerSession) TotalSupply

func (_CompatibleERC20 *CompatibleERC20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

type CompatibleERC20Filterer

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

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

func NewCompatibleERC20Filterer

func NewCompatibleERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*CompatibleERC20Filterer, error)

NewCompatibleERC20Filterer creates a new log filterer instance of CompatibleERC20, bound to a specific deployed contract.

func (*CompatibleERC20Filterer) FilterApproval

func (_CompatibleERC20 *CompatibleERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*CompatibleERC20ApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

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

func (*CompatibleERC20Filterer) FilterTransfer

func (_CompatibleERC20 *CompatibleERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*CompatibleERC20TransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

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

func (*CompatibleERC20Filterer) WatchApproval

func (_CompatibleERC20 *CompatibleERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *CompatibleERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

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

func (*CompatibleERC20Filterer) WatchTransfer

func (_CompatibleERC20 *CompatibleERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *CompatibleERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

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

type CompatibleERC20Raw

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

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

func (*CompatibleERC20Raw) Call

func (_CompatibleERC20 *CompatibleERC20Raw) 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 (*CompatibleERC20Raw) Transact

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

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

func (*CompatibleERC20Raw) Transfer

func (_CompatibleERC20 *CompatibleERC20Raw) 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 CompatibleERC20Session

type CompatibleERC20Session struct {
	Contract     *CompatibleERC20  // 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
}

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

func (*CompatibleERC20Session) Allowance

func (_CompatibleERC20 *CompatibleERC20Session) 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(owner address, spender address) constant returns(uint256)

func (*CompatibleERC20Session) Approve

func (_CompatibleERC20 *CompatibleERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

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

Solidity: function approve(spender address, value uint256) returns()

func (*CompatibleERC20Session) BalanceOf

func (_CompatibleERC20 *CompatibleERC20Session) BalanceOf(who common.Address) (*big.Int, error)

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

Solidity: function balanceOf(who address) constant returns(uint256)

func (*CompatibleERC20Session) TotalSupply

func (_CompatibleERC20 *CompatibleERC20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

func (*CompatibleERC20Session) Transfer

func (_CompatibleERC20 *CompatibleERC20Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(to address, value uint256) returns()

func (*CompatibleERC20Session) TransferFrom

func (_CompatibleERC20 *CompatibleERC20Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

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

type CompatibleERC20Transactor

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

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

func NewCompatibleERC20Transactor

func NewCompatibleERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*CompatibleERC20Transactor, error)

NewCompatibleERC20Transactor creates a new write-only instance of CompatibleERC20, bound to a specific deployed contract.

func (*CompatibleERC20Transactor) Approve

func (_CompatibleERC20 *CompatibleERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)

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

Solidity: function approve(spender address, value uint256) returns()

func (*CompatibleERC20Transactor) Transfer

func (_CompatibleERC20 *CompatibleERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(to address, value uint256) returns()

func (*CompatibleERC20Transactor) TransferFrom

func (_CompatibleERC20 *CompatibleERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

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

type CompatibleERC20TransactorRaw

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

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

func (*CompatibleERC20TransactorRaw) Transact

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

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

func (*CompatibleERC20TransactorRaw) Transfer

func (_CompatibleERC20 *CompatibleERC20TransactorRaw) 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 CompatibleERC20TransactorSession

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

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

func (*CompatibleERC20TransactorSession) Approve

func (_CompatibleERC20 *CompatibleERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

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

Solidity: function approve(spender address, value uint256) returns()

func (*CompatibleERC20TransactorSession) Transfer

func (_CompatibleERC20 *CompatibleERC20TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(to address, value uint256) returns()

func (*CompatibleERC20TransactorSession) TransferFrom

func (_CompatibleERC20 *CompatibleERC20TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

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

type CompatibleERC20Transfer

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

CompatibleERC20Transfer represents a Transfer event raised by the CompatibleERC20 contract.

type CompatibleERC20TransferIterator

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

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

func (*CompatibleERC20TransferIterator) Close

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

func (*CompatibleERC20TransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CompatibleERC20TransferIterator) 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 ERC20SwapContract

type ERC20SwapContract struct {
	ERC20SwapContractCaller     // Read-only binding to the contract
	ERC20SwapContractTransactor // Write-only binding to the contract
	ERC20SwapContractFilterer   // Log filterer for contract events
}

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

func DeployERC20SwapContract

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

DeployERC20SwapContract deploys a new Ethereum contract, binding an instance of ERC20SwapContract to it.

func NewERC20SwapContract

func NewERC20SwapContract(address common.Address, backend bind.ContractBackend) (*ERC20SwapContract, error)

NewERC20SwapContract creates a new instance of ERC20SwapContract, bound to a specific deployed contract.

type ERC20SwapContractCaller

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

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

func NewERC20SwapContractCaller

func NewERC20SwapContractCaller(address common.Address, caller bind.ContractCaller) (*ERC20SwapContractCaller, error)

NewERC20SwapContractCaller creates a new read-only instance of ERC20SwapContract, bound to a specific deployed contract.

func (*ERC20SwapContractCaller) Audit

func (_ERC20SwapContract *ERC20SwapContractCaller) Audit(opts *bind.CallOpts, _swapID [32]byte) (struct {
	Timelock   *big.Int
	Value      *big.Int
	To         common.Address
	BrokerFee  *big.Int
	Broker     common.Address
	From       common.Address
	SecretLock [32]byte
}, error)

Audit is a free data retrieval call binding the contract method 0xc140635b.

Solidity: function audit(_swapID bytes32) constant returns(timelock uint256, value uint256, to address, brokerFee uint256, broker address, from address, secretLock bytes32)

func (*ERC20SwapContractCaller) AuditSecret

func (_ERC20SwapContract *ERC20SwapContractCaller) AuditSecret(opts *bind.CallOpts, _swapID [32]byte) ([32]byte, error)

AuditSecret is a free data retrieval call binding the contract method 0x976d00f4.

Solidity: function auditSecret(_swapID bytes32) constant returns(secretKey bytes32)

func (*ERC20SwapContractCaller) Initiatable

func (_ERC20SwapContract *ERC20SwapContractCaller) Initiatable(opts *bind.CallOpts, _swapID [32]byte) (bool, error)

Initiatable is a free data retrieval call binding the contract method 0x09ece618.

Solidity: function initiatable(_swapID bytes32) constant returns(bool)

func (*ERC20SwapContractCaller) Redeemable

func (_ERC20SwapContract *ERC20SwapContractCaller) Redeemable(opts *bind.CallOpts, _swapID [32]byte) (bool, error)

Redeemable is a free data retrieval call binding the contract method 0x68f06b29.

Solidity: function redeemable(_swapID bytes32) constant returns(bool)

func (*ERC20SwapContractCaller) Refundable

func (_ERC20SwapContract *ERC20SwapContractCaller) Refundable(opts *bind.CallOpts, _swapID [32]byte) (bool, error)

Refundable is a free data retrieval call binding the contract method 0x9fb31475.

Solidity: function refundable(_swapID bytes32) constant returns(bool)

func (*ERC20SwapContractCaller) SwapID

func (_ERC20SwapContract *ERC20SwapContractCaller) SwapID(opts *bind.CallOpts, _secretLock [32]byte, _timelock *big.Int) ([32]byte, error)

SwapID is a free data retrieval call binding the contract method 0x4b2ac3fa.

Solidity: function swapID(_secretLock bytes32, _timelock uint256) constant returns(bytes32)

type ERC20SwapContractCallerRaw

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

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

func (*ERC20SwapContractCallerRaw) Call

func (_ERC20SwapContract *ERC20SwapContractCallerRaw) 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 ERC20SwapContractCallerSession

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

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

func (*ERC20SwapContractCallerSession) Audit

func (_ERC20SwapContract *ERC20SwapContractCallerSession) Audit(_swapID [32]byte) (struct {
	Timelock   *big.Int
	Value      *big.Int
	To         common.Address
	BrokerFee  *big.Int
	Broker     common.Address
	From       common.Address
	SecretLock [32]byte
}, error)

Audit is a free data retrieval call binding the contract method 0xc140635b.

Solidity: function audit(_swapID bytes32) constant returns(timelock uint256, value uint256, to address, brokerFee uint256, broker address, from address, secretLock bytes32)

func (*ERC20SwapContractCallerSession) AuditSecret

func (_ERC20SwapContract *ERC20SwapContractCallerSession) AuditSecret(_swapID [32]byte) ([32]byte, error)

AuditSecret is a free data retrieval call binding the contract method 0x976d00f4.

Solidity: function auditSecret(_swapID bytes32) constant returns(secretKey bytes32)

func (*ERC20SwapContractCallerSession) Initiatable

func (_ERC20SwapContract *ERC20SwapContractCallerSession) Initiatable(_swapID [32]byte) (bool, error)

Initiatable is a free data retrieval call binding the contract method 0x09ece618.

Solidity: function initiatable(_swapID bytes32) constant returns(bool)

func (*ERC20SwapContractCallerSession) Redeemable

func (_ERC20SwapContract *ERC20SwapContractCallerSession) Redeemable(_swapID [32]byte) (bool, error)

Redeemable is a free data retrieval call binding the contract method 0x68f06b29.

Solidity: function redeemable(_swapID bytes32) constant returns(bool)

func (*ERC20SwapContractCallerSession) Refundable

func (_ERC20SwapContract *ERC20SwapContractCallerSession) Refundable(_swapID [32]byte) (bool, error)

Refundable is a free data retrieval call binding the contract method 0x9fb31475.

Solidity: function refundable(_swapID bytes32) constant returns(bool)

func (*ERC20SwapContractCallerSession) SwapID

func (_ERC20SwapContract *ERC20SwapContractCallerSession) SwapID(_secretLock [32]byte, _timelock *big.Int) ([32]byte, error)

SwapID is a free data retrieval call binding the contract method 0x4b2ac3fa.

Solidity: function swapID(_secretLock bytes32, _timelock uint256) constant returns(bytes32)

type ERC20SwapContractFilterer

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

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

func NewERC20SwapContractFilterer

func NewERC20SwapContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ERC20SwapContractFilterer, error)

NewERC20SwapContractFilterer creates a new log filterer instance of ERC20SwapContract, bound to a specific deployed contract.

type ERC20SwapContractRaw

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

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

func (*ERC20SwapContractRaw) Call

func (_ERC20SwapContract *ERC20SwapContractRaw) 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 (*ERC20SwapContractRaw) Transact

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

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

func (*ERC20SwapContractRaw) Transfer

func (_ERC20SwapContract *ERC20SwapContractRaw) 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 ERC20SwapContractSession

type ERC20SwapContractSession struct {
	Contract     *ERC20SwapContract // 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
}

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

func (*ERC20SwapContractSession) Audit

func (_ERC20SwapContract *ERC20SwapContractSession) Audit(_swapID [32]byte) (struct {
	Timelock   *big.Int
	Value      *big.Int
	To         common.Address
	BrokerFee  *big.Int
	Broker     common.Address
	From       common.Address
	SecretLock [32]byte
}, error)

Audit is a free data retrieval call binding the contract method 0xc140635b.

Solidity: function audit(_swapID bytes32) constant returns(timelock uint256, value uint256, to address, brokerFee uint256, broker address, from address, secretLock bytes32)

func (*ERC20SwapContractSession) AuditSecret

func (_ERC20SwapContract *ERC20SwapContractSession) AuditSecret(_swapID [32]byte) ([32]byte, error)

AuditSecret is a free data retrieval call binding the contract method 0x976d00f4.

Solidity: function auditSecret(_swapID bytes32) constant returns(secretKey bytes32)

func (*ERC20SwapContractSession) Initiatable

func (_ERC20SwapContract *ERC20SwapContractSession) Initiatable(_swapID [32]byte) (bool, error)

Initiatable is a free data retrieval call binding the contract method 0x09ece618.

Solidity: function initiatable(_swapID bytes32) constant returns(bool)

func (*ERC20SwapContractSession) Initiate

func (_ERC20SwapContract *ERC20SwapContractSession) Initiate(_swapID [32]byte, _spender common.Address, _secretLock [32]byte, _timelock *big.Int, _value *big.Int) (*types.Transaction, error)

Initiate is a paid mutator transaction binding the contract method 0x027a2577.

Solidity: function initiate(_swapID bytes32, _spender address, _secretLock bytes32, _timelock uint256, _value uint256) returns()

func (*ERC20SwapContractSession) InitiateWithFees

func (_ERC20SwapContract *ERC20SwapContractSession) InitiateWithFees(_swapID [32]byte, _spender common.Address, _broker common.Address, _brokerFee *big.Int, _secretLock [32]byte, _timelock *big.Int, _value *big.Int) (*types.Transaction, error)

InitiateWithFees is a paid mutator transaction binding the contract method 0xb8688e3f.

Solidity: function initiateWithFees(_swapID bytes32, _spender address, _broker address, _brokerFee uint256, _secretLock bytes32, _timelock uint256, _value uint256) returns()

func (*ERC20SwapContractSession) Redeem

func (_ERC20SwapContract *ERC20SwapContractSession) Redeem(_swapID [32]byte, _receiver common.Address, _secretKey [32]byte) (*types.Transaction, error)

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

Solidity: function redeem(_swapID bytes32, _receiver address, _secretKey bytes32) returns()

func (*ERC20SwapContractSession) Redeemable

func (_ERC20SwapContract *ERC20SwapContractSession) Redeemable(_swapID [32]byte) (bool, error)

Redeemable is a free data retrieval call binding the contract method 0x68f06b29.

Solidity: function redeemable(_swapID bytes32) constant returns(bool)

func (*ERC20SwapContractSession) Refund

func (_ERC20SwapContract *ERC20SwapContractSession) Refund(_swapID [32]byte) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x7249fbb6.

Solidity: function refund(_swapID bytes32) returns()

func (*ERC20SwapContractSession) Refundable

func (_ERC20SwapContract *ERC20SwapContractSession) Refundable(_swapID [32]byte) (bool, error)

Refundable is a free data retrieval call binding the contract method 0x9fb31475.

Solidity: function refundable(_swapID bytes32) constant returns(bool)

func (*ERC20SwapContractSession) SwapID

func (_ERC20SwapContract *ERC20SwapContractSession) SwapID(_secretLock [32]byte, _timelock *big.Int) ([32]byte, error)

SwapID is a free data retrieval call binding the contract method 0x4b2ac3fa.

Solidity: function swapID(_secretLock bytes32, _timelock uint256) constant returns(bytes32)

func (*ERC20SwapContractSession) WithdrawBrokerFees

func (_ERC20SwapContract *ERC20SwapContractSession) WithdrawBrokerFees(_amount *big.Int) (*types.Transaction, error)

WithdrawBrokerFees is a paid mutator transaction binding the contract method 0x4c6d37ff.

Solidity: function withdrawBrokerFees(_amount uint256) returns()

type ERC20SwapContractTransactor

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

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

func NewERC20SwapContractTransactor

func NewERC20SwapContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ERC20SwapContractTransactor, error)

NewERC20SwapContractTransactor creates a new write-only instance of ERC20SwapContract, bound to a specific deployed contract.

func (*ERC20SwapContractTransactor) Initiate

func (_ERC20SwapContract *ERC20SwapContractTransactor) Initiate(opts *bind.TransactOpts, _swapID [32]byte, _spender common.Address, _secretLock [32]byte, _timelock *big.Int, _value *big.Int) (*types.Transaction, error)

Initiate is a paid mutator transaction binding the contract method 0x027a2577.

Solidity: function initiate(_swapID bytes32, _spender address, _secretLock bytes32, _timelock uint256, _value uint256) returns()

func (*ERC20SwapContractTransactor) InitiateWithFees

func (_ERC20SwapContract *ERC20SwapContractTransactor) InitiateWithFees(opts *bind.TransactOpts, _swapID [32]byte, _spender common.Address, _broker common.Address, _brokerFee *big.Int, _secretLock [32]byte, _timelock *big.Int, _value *big.Int) (*types.Transaction, error)

InitiateWithFees is a paid mutator transaction binding the contract method 0xb8688e3f.

Solidity: function initiateWithFees(_swapID bytes32, _spender address, _broker address, _brokerFee uint256, _secretLock bytes32, _timelock uint256, _value uint256) returns()

func (*ERC20SwapContractTransactor) Redeem

func (_ERC20SwapContract *ERC20SwapContractTransactor) Redeem(opts *bind.TransactOpts, _swapID [32]byte, _receiver common.Address, _secretKey [32]byte) (*types.Transaction, error)

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

Solidity: function redeem(_swapID bytes32, _receiver address, _secretKey bytes32) returns()

func (*ERC20SwapContractTransactor) Refund

func (_ERC20SwapContract *ERC20SwapContractTransactor) Refund(opts *bind.TransactOpts, _swapID [32]byte) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x7249fbb6.

Solidity: function refund(_swapID bytes32) returns()

func (*ERC20SwapContractTransactor) WithdrawBrokerFees

func (_ERC20SwapContract *ERC20SwapContractTransactor) WithdrawBrokerFees(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)

WithdrawBrokerFees is a paid mutator transaction binding the contract method 0x4c6d37ff.

Solidity: function withdrawBrokerFees(_amount uint256) returns()

type ERC20SwapContractTransactorRaw

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

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

func (*ERC20SwapContractTransactorRaw) Transact

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

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

func (*ERC20SwapContractTransactorRaw) Transfer

func (_ERC20SwapContract *ERC20SwapContractTransactorRaw) 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 ERC20SwapContractTransactorSession

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

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

func (*ERC20SwapContractTransactorSession) Initiate

func (_ERC20SwapContract *ERC20SwapContractTransactorSession) Initiate(_swapID [32]byte, _spender common.Address, _secretLock [32]byte, _timelock *big.Int, _value *big.Int) (*types.Transaction, error)

Initiate is a paid mutator transaction binding the contract method 0x027a2577.

Solidity: function initiate(_swapID bytes32, _spender address, _secretLock bytes32, _timelock uint256, _value uint256) returns()

func (*ERC20SwapContractTransactorSession) InitiateWithFees

func (_ERC20SwapContract *ERC20SwapContractTransactorSession) InitiateWithFees(_swapID [32]byte, _spender common.Address, _broker common.Address, _brokerFee *big.Int, _secretLock [32]byte, _timelock *big.Int, _value *big.Int) (*types.Transaction, error)

InitiateWithFees is a paid mutator transaction binding the contract method 0xb8688e3f.

Solidity: function initiateWithFees(_swapID bytes32, _spender address, _broker address, _brokerFee uint256, _secretLock bytes32, _timelock uint256, _value uint256) returns()

func (*ERC20SwapContractTransactorSession) Redeem

func (_ERC20SwapContract *ERC20SwapContractTransactorSession) Redeem(_swapID [32]byte, _receiver common.Address, _secretKey [32]byte) (*types.Transaction, error)

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

Solidity: function redeem(_swapID bytes32, _receiver address, _secretKey bytes32) returns()

func (*ERC20SwapContractTransactorSession) Refund

func (_ERC20SwapContract *ERC20SwapContractTransactorSession) Refund(_swapID [32]byte) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x7249fbb6.

Solidity: function refund(_swapID bytes32) returns()

func (*ERC20SwapContractTransactorSession) WithdrawBrokerFees

func (_ERC20SwapContract *ERC20SwapContractTransactorSession) WithdrawBrokerFees(_amount *big.Int) (*types.Transaction, error)

WithdrawBrokerFees is a paid mutator transaction binding the contract method 0x4c6d37ff.

Solidity: function withdrawBrokerFees(_amount uint256) returns()

Jump to

Keyboard shortcuts

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