trans

package
v0.0.0-...-422065e Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BTC_LOG_LABLE = "[BTC]"
	BTC_TXID      = "BTC_TXID_"
	BTC_TXID_0    = BTC_TXID + "0_"
	BTC_TXID_1    = BTC_TXID + "1_"
)

BTC db 前缀

View Source
const (
	BTC_TXID_TYPE_DEP = "0" //充值
	BTC_TXID_TYPE_WD  = "1" //提现
	BTC_TXID_TYPE_OT  = "2" //其他
)
View Source
const BankABI = "" /* 2067-byte string literal not displayed */

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

View Source
const BankBin = `` /* 2524-byte string literal not displayed */

BankBin is the compiled bytecode used for deploying new contracts.

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

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

View Source
const ERC20Bin = `0x`

ERC20Bin is the compiled bytecode used for deploying new contracts.

View Source
const OracleABI = "" /* 1505-byte string literal not displayed */

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

View Source
const OracleBin = `` /* 3016-byte string literal not displayed */

OracleBin is the compiled bytecode used for deploying new contracts.

View Source
const SinkABI = "" /* 3073-byte string literal not displayed */

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

View Source
const SinkBin = `` /* 13122-byte string literal not displayed */

SinkBin is the compiled bytecode used for deploying new contracts.

View Source
const WalletABI = "" /* 620-byte string literal not displayed */

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

View Source
const WalletBin = `` /* 1248-byte string literal not displayed */

WalletBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(db localdb.Database, id, pass string) bool

验证密码

func CheckPrivateKey

func CheckPrivateKey(db localdb.Database, args ...[]byte) bool

校验私钥hash Verify private key hash

func ExistPrivateKeyHash

func ExistPrivateKeyHash(db localdb.Database) bool

是否已创建过key If the key has been created

func GetBtcPrivKey

func GetBtcPrivKey() txscript.KeyDB

func GetBtcPubKey

func GetBtcPubKey(db localdb.Database) (string, error)

func GetSecret

func GetSecret(db localdb.Database) (string, error)

func NewKeyedTransactor

func NewKeyedTransactor() *bind.TransactOpts

func PrivateKeyToHex

func PrivateKeyToHex(db localdb.Database) string

func RecordPasswordHash

func RecordPasswordHash(db localdb.Database, id, pass string) bool

验证密码

func RecoverPrivateKey

func RecoverPrivateKey(db localdb.Database, args ...[]byte) error

Types

type AccountHandler

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

func NewAccountHandler

func NewAccountHandler(db localdb.Database, handler *EthHandler, poolSize int, path string) *AccountHandler

初始化 initialization

func (*AccountHandler) Start

func (a *AccountHandler) Start()

启动 读取目前池中多少可用账户 生成指定数量账户 Startup Load current number of available accounts, generate specified number of accounts

func (*AccountHandler) Stop

func (a *AccountHandler) Stop()

启动 读取目前池中多少可用账户 生成指定数量账户 Startup Load current number of available accounts, generate specified number of accounts

type AccountHandlerBtc

type AccountHandlerBtc struct {
	UncfmTxidMap map[string]*BTCTxidInfo //未确认的txid

	Account *btcutil.AddressPubKeyHash
	// contains filtered or unexported fields
}

---------------------账户相关--------------

func NewAccountHandlerBtc

func NewAccountHandlerBtc(db localdb.Database, handler *BtcHandler) *AccountHandlerBtc

初始化

func (*AccountHandlerBtc) Init

func (a *AccountHandlerBtc) Init() error

func (*AccountHandlerBtc) Stop

func (a *AccountHandlerBtc) Stop()

type BTCTxidInfo

type BTCTxidInfo struct {
	WDhash common.Hash
	TXID   string
	Vout   uint32
	Addr   string
	Type   string //"0"-充值,"1"提现,"2"其他
	Amount *big.Int
}

BTC

type Bank

type Bank struct {
	BankCaller     // Read-only binding to the contract
	BankTransactor // Write-only binding to the contract
	BankFilterer   // Log filterer for contract events
}

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

func DeployBank

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

DeployBank deploys a new Ethereum contract, binding an instance of Bank to it.

func NewBank

func NewBank(address common.Address, backend bind.ContractBackend) (*Bank, error)

NewBank creates a new instance of Bank, bound to a specific deployed contract.

type BankAllowFlow

type BankAllowFlow struct {
	Hash [32]byte
	Raw  types.Log // Blockchain specific contextual infos
}

BankAllowFlow represents a AllowFlow event raised by the Bank contract.

type BankAllowFlowIterator

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

BankAllowFlowIterator is returned from FilterAllowFlow and is used to iterate over the raw logs and unpacked data for AllowFlow events raised by the Bank contract.

func (*BankAllowFlowIterator) Close

func (it *BankAllowFlowIterator) Close() error

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

func (*BankAllowFlowIterator) Error

func (it *BankAllowFlowIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BankAllowFlowIterator) Next

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

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

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

func NewBankCaller

func NewBankCaller(address common.Address, caller bind.ContractCaller) (*BankCaller, error)

NewBankCaller creates a new read-only instance of Bank, bound to a specific deployed contract.

func (*BankCaller) Available

func (_Bank *BankCaller) Available(opts *bind.CallOpts, sf [32]byte) (bool, error)

Available is a free data retrieval call binding the contract method 0x6932854f.

Solidity: function available(sf bytes32) constant returns(bool)

type BankCallerRaw

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

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

func (*BankCallerRaw) Call

func (_Bank *BankCallerRaw) 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 BankCallerSession

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

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

func (*BankCallerSession) Available

func (_Bank *BankCallerSession) Available(sf [32]byte) (bool, error)

Available is a free data retrieval call binding the contract method 0x6932854f.

Solidity: function available(sf bytes32) constant returns(bool)

type BankDeposit

type BankDeposit struct {
	Account common.Address
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

BankDeposit represents a Deposit event raised by the Bank contract.

type BankDepositIterator

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

BankDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Bank contract.

func (*BankDepositIterator) Close

func (it *BankDepositIterator) Close() error

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

func (*BankDepositIterator) Error

func (it *BankDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BankDepositIterator) Next

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

type BankDisallowFlow struct {
	Hash [32]byte
	Raw  types.Log // Blockchain specific contextual infos
}

BankDisallowFlow represents a DisallowFlow event raised by the Bank contract.

type BankDisallowFlowIterator

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

BankDisallowFlowIterator is returned from FilterDisallowFlow and is used to iterate over the raw logs and unpacked data for DisallowFlow events raised by the Bank contract.

func (*BankDisallowFlowIterator) Close

func (it *BankDisallowFlowIterator) Close() error

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

func (*BankDisallowFlowIterator) Error

func (it *BankDisallowFlowIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BankDisallowFlowIterator) Next

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

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

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

func NewBankFilterer

func NewBankFilterer(address common.Address, filterer bind.ContractFilterer) (*BankFilterer, error)

NewBankFilterer creates a new log filterer instance of Bank, bound to a specific deployed contract.

func (*BankFilterer) FilterAllowFlow

func (_Bank *BankFilterer) FilterAllowFlow(opts *bind.FilterOpts) (*BankAllowFlowIterator, error)

FilterAllowFlow is a free log retrieval operation binding the contract event 0x19d544d2bbf9f77ed0ab86140926d49d992616ab5fc07309b84eb6f1d3576d7e.

Solidity: event AllowFlow(hash bytes32)

func (*BankFilterer) FilterDeposit

func (_Bank *BankFilterer) FilterDeposit(opts *bind.FilterOpts) (*BankDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.

Solidity: event Deposit(account address, amount uint256)

func (*BankFilterer) FilterDisallowFlow

func (_Bank *BankFilterer) FilterDisallowFlow(opts *bind.FilterOpts) (*BankDisallowFlowIterator, error)

FilterDisallowFlow is a free log retrieval operation binding the contract event 0xf7e63a19403de365ec1053b51e34449db449bfbad2b139b8f8ed7cd546b42687.

Solidity: event DisallowFlow(hash bytes32)

func (*BankFilterer) FilterWithdraw

func (_Bank *BankFilterer) FilterWithdraw(opts *bind.FilterOpts) (*BankWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364.

Solidity: event Withdraw(to address, amount uint256)

func (*BankFilterer) WatchAllowFlow

func (_Bank *BankFilterer) WatchAllowFlow(opts *bind.WatchOpts, sink chan<- *BankAllowFlow) (event.Subscription, error)

WatchAllowFlow is a free log subscription operation binding the contract event 0x19d544d2bbf9f77ed0ab86140926d49d992616ab5fc07309b84eb6f1d3576d7e.

Solidity: event AllowFlow(hash bytes32)

func (*BankFilterer) WatchDeposit

func (_Bank *BankFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *BankDeposit) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.

Solidity: event Deposit(account address, amount uint256)

func (*BankFilterer) WatchDisallowFlow

func (_Bank *BankFilterer) WatchDisallowFlow(opts *bind.WatchOpts, sink chan<- *BankDisallowFlow) (event.Subscription, error)

WatchDisallowFlow is a free log subscription operation binding the contract event 0xf7e63a19403de365ec1053b51e34449db449bfbad2b139b8f8ed7cd546b42687.

Solidity: event DisallowFlow(hash bytes32)

func (*BankFilterer) WatchWithdraw

func (_Bank *BankFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *BankWithdraw) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364.

Solidity: event Withdraw(to address, amount uint256)

type BankRaw

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

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

func (*BankRaw) Call

func (_Bank *BankRaw) 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 (*BankRaw) Transact

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

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

func (*BankRaw) Transfer

func (_Bank *BankRaw) 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 BankSession

type BankSession struct {
	Contract     *Bank             // 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
}

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

func (*BankSession) Allow

func (_Bank *BankSession) Allow(hash [32]byte) (*types.Transaction, error)

Allow is a paid mutator transaction binding the contract method 0xe8ffb32f.

Solidity: function allow(hash bytes32) returns(bool)

func (*BankSession) Available

func (_Bank *BankSession) Available(sf [32]byte) (bool, error)

Available is a free data retrieval call binding the contract method 0x6932854f.

Solidity: function available(sf bytes32) constant returns(bool)

func (*BankSession) Disallow

func (_Bank *BankSession) Disallow(hash [32]byte) (*types.Transaction, error)

Disallow is a paid mutator transaction binding the contract method 0x1bc57b90.

Solidity: function disallow(hash bytes32) returns(bool)

func (*BankSession) TransferERC20

func (_Bank *BankSession) TransferERC20(token common.Address, _to common.Address, _amount *big.Int, sf [32]byte) (*types.Transaction, error)

TransferERC20 is a paid mutator transaction binding the contract method 0xd5995c4a.

Solidity: function transferERC20(token address, _to address, _amount uint256, sf bytes32) returns()

func (*BankSession) Withdraw

func (_Bank *BankSession) Withdraw(to common.Address, amount *big.Int, sf [32]byte) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x106e6290.

Solidity: function withdraw(to address, amount uint256, sf bytes32) returns()

type BankTransactor

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

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

func NewBankTransactor

func NewBankTransactor(address common.Address, transactor bind.ContractTransactor) (*BankTransactor, error)

NewBankTransactor creates a new write-only instance of Bank, bound to a specific deployed contract.

func (*BankTransactor) Allow

func (_Bank *BankTransactor) Allow(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error)

Allow is a paid mutator transaction binding the contract method 0xe8ffb32f.

Solidity: function allow(hash bytes32) returns(bool)

func (*BankTransactor) Disallow

func (_Bank *BankTransactor) Disallow(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error)

Disallow is a paid mutator transaction binding the contract method 0x1bc57b90.

Solidity: function disallow(hash bytes32) returns(bool)

func (*BankTransactor) TransferERC20

func (_Bank *BankTransactor) TransferERC20(opts *bind.TransactOpts, token common.Address, _to common.Address, _amount *big.Int, sf [32]byte) (*types.Transaction, error)

TransferERC20 is a paid mutator transaction binding the contract method 0xd5995c4a.

Solidity: function transferERC20(token address, _to address, _amount uint256, sf bytes32) returns()

func (*BankTransactor) Withdraw

func (_Bank *BankTransactor) Withdraw(opts *bind.TransactOpts, to common.Address, amount *big.Int, sf [32]byte) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x106e6290.

Solidity: function withdraw(to address, amount uint256, sf bytes32) returns()

type BankTransactorRaw

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

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

func (*BankTransactorRaw) Transact

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

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

func (*BankTransactorRaw) Transfer

func (_Bank *BankTransactorRaw) 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 BankTransactorSession

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

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

func (*BankTransactorSession) Allow

func (_Bank *BankTransactorSession) Allow(hash [32]byte) (*types.Transaction, error)

Allow is a paid mutator transaction binding the contract method 0xe8ffb32f.

Solidity: function allow(hash bytes32) returns(bool)

func (*BankTransactorSession) Disallow

func (_Bank *BankTransactorSession) Disallow(hash [32]byte) (*types.Transaction, error)

Disallow is a paid mutator transaction binding the contract method 0x1bc57b90.

Solidity: function disallow(hash bytes32) returns(bool)

func (*BankTransactorSession) TransferERC20

func (_Bank *BankTransactorSession) TransferERC20(token common.Address, _to common.Address, _amount *big.Int, sf [32]byte) (*types.Transaction, error)

TransferERC20 is a paid mutator transaction binding the contract method 0xd5995c4a.

Solidity: function transferERC20(token address, _to address, _amount uint256, sf bytes32) returns()

func (*BankTransactorSession) Withdraw

func (_Bank *BankTransactorSession) Withdraw(to common.Address, amount *big.Int, sf [32]byte) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x106e6290.

Solidity: function withdraw(to address, amount uint256, sf bytes32) returns()

type BankWithdraw

type BankWithdraw struct {
	To     common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

BankWithdraw represents a Withdraw event raised by the Bank contract.

type BankWithdrawIterator

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

BankWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the Bank contract.

func (*BankWithdrawIterator) Close

func (it *BankWithdrawIterator) Close() error

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

func (*BankWithdrawIterator) Error

func (it *BankWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BankWithdrawIterator) Next

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

type BtcHandler struct {
	Net *chaincfg.Params
	// contains filtered or unexported fields
}

func Btc_test

func Btc_test(cfg *config.Config, db localdb.Database) (*BtcHandler, error)

func NewBtcHandler

func NewBtcHandler(cfg *config.Config, db localdb.Database) (*BtcHandler, error)

func (*BtcHandler) GetAccount

func (w *BtcHandler) GetAccount() string

获取btc地址

func (*BtcHandler) Start

func (w *BtcHandler) Start() (err error)

func (*BtcHandler) Status

func (w *BtcHandler) Status() (isWork bool)

func (*BtcHandler) Stop

func (w *BtcHandler) Stop()

type ERC20

type ERC20 struct {
	ERC20Caller     // Read-only binding to the contract
	ERC20Transactor // Write-only binding to the contract
	ERC20Filterer   // Log filterer for contract events
}

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

func DeployERC20

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

DeployERC20 deploys a new Ethereum contract, binding an instance of ERC20 to it.

func NewERC20

func NewERC20(address common.Address, backend bind.ContractBackend) (*ERC20, error)

NewERC20 creates a new instance of ERC20, bound to a specific deployed contract.

type ERC20Approval

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

ERC20Approval represents a Approval event raised by the ERC20 contract.

type ERC20ApprovalIterator

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

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

func (*ERC20ApprovalIterator) Close

func (it *ERC20ApprovalIterator) Close() error

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

func (*ERC20ApprovalIterator) Error

func (it *ERC20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20ApprovalIterator) Next

func (it *ERC20ApprovalIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ERC20Caller

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

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

func NewERC20Caller

func NewERC20Caller(address common.Address, caller bind.ContractCaller) (*ERC20Caller, error)

NewERC20Caller creates a new read-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Caller) Allowance

func (_ERC20 *ERC20Caller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(_owner address, _spender address) constant returns(remaining uint256)

func (*ERC20Caller) BalanceOf

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

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

Solidity: function balanceOf(_owner address) constant returns(balance uint256)

func (*ERC20Caller) TotalSupply

func (_ERC20 *ERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

type ERC20CallerRaw

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

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

func (*ERC20CallerRaw) Call

func (_ERC20 *ERC20CallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ERC20CallerSession

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

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

func (*ERC20CallerSession) Allowance

func (_ERC20 *ERC20CallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(_owner address, _spender address) constant returns(remaining uint256)

func (*ERC20CallerSession) BalanceOf

func (_ERC20 *ERC20CallerSession) BalanceOf(_owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(_owner address) constant returns(balance uint256)

func (*ERC20CallerSession) TotalSupply

func (_ERC20 *ERC20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

type ERC20Filterer

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

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

func NewERC20Filterer

func NewERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*ERC20Filterer, error)

NewERC20Filterer creates a new log filterer instance of ERC20, bound to a specific deployed contract.

func (*ERC20Filterer) FilterApproval

func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*ERC20ApprovalIterator, error)

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

Solidity: event Approval(_owner indexed address, _spender indexed address, _value uint256)

func (*ERC20Filterer) FilterTransfer

func (_ERC20 *ERC20Filterer) FilterTransfer(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*ERC20TransferIterator, error)

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

Solidity: event Transfer(_from indexed address, _to indexed address, _value uint256)

func (*ERC20Filterer) WatchApproval

func (_ERC20 *ERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20Approval, _owner []common.Address, _spender []common.Address) (event.Subscription, error)

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

Solidity: event Approval(_owner indexed address, _spender indexed address, _value uint256)

func (*ERC20Filterer) WatchTransfer

func (_ERC20 *ERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20Transfer, _from []common.Address, _to []common.Address) (event.Subscription, error)

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

Solidity: event Transfer(_from indexed address, _to indexed address, _value uint256)

type ERC20Raw

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

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

func (*ERC20Raw) Call

func (_ERC20 *ERC20Raw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ERC20Raw) Transact

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

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

func (*ERC20Raw) Transfer

func (_ERC20 *ERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20Session

type ERC20Session struct {
	Contract     *ERC20            // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

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

func (*ERC20Session) Allowance

func (_ERC20 *ERC20Session) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(_owner address, _spender address) constant returns(remaining uint256)

func (*ERC20Session) Approve

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

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

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

func (*ERC20Session) BalanceOf

func (_ERC20 *ERC20Session) BalanceOf(_owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(_owner address) constant returns(balance uint256)

func (*ERC20Session) TotalSupply

func (_ERC20 *ERC20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

func (*ERC20Session) Transfer

func (_ERC20 *ERC20Session) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(_to address, _value uint256) returns(success bool)

func (*ERC20Session) TransferFrom

func (_ERC20 *ERC20Session) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)

type ERC20Transactor

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

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

func NewERC20Transactor

func NewERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC20Transactor, error)

NewERC20Transactor creates a new write-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Transactor) Approve

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

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

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

func (*ERC20Transactor) Transfer

func (_ERC20 *ERC20Transactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(_to address, _value uint256) returns(success bool)

func (*ERC20Transactor) TransferFrom

func (_ERC20 *ERC20Transactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)

type ERC20TransactorRaw

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

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

func (*ERC20TransactorRaw) Transact

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

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

func (*ERC20TransactorRaw) Transfer

func (_ERC20 *ERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20TransactorSession

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

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

func (*ERC20TransactorSession) Approve

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

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

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

func (*ERC20TransactorSession) Transfer

func (_ERC20 *ERC20TransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(_to address, _value uint256) returns(success bool)

func (*ERC20TransactorSession) TransferFrom

func (_ERC20 *ERC20TransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)

type ERC20Transfer

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

ERC20Transfer represents a Transfer event raised by the ERC20 contract.

type ERC20TransferIterator

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

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

func (*ERC20TransferIterator) Close

func (it *ERC20TransferIterator) Close() error

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

func (*ERC20TransferIterator) Error

func (it *ERC20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20TransferIterator) Next

func (it *ERC20TransferIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EthHandler

type EthHandler struct {
	BtcHandler *BtcHandler
	// contains filtered or unexported fields
}

func NewEthHandler

func NewEthHandler(cfg *config.Config, db localdb.Database) (*EthHandler, error)

func (*EthHandler) BtcStart

func (w *EthHandler) BtcStart() error

TODO

func (*EthHandler) BtcStop

func (w *EthHandler) BtcStop() error

func (*EthHandler) DeployBank

func (e *EthHandler) DeployBank() (addr common.Address, tx *types.Transaction, b *Bank, err error)

发布bank

func (*EthHandler) DeployWallet

func (e *EthHandler) DeployWallet(nonce *big.Int) (addr common.Address, err error)

发布地址合约

func (*EthHandler) GetContractAddr

func (e *EthHandler) GetContractAddr() (common.Address, error)

获取合约地址

func (*EthHandler) Start

func (w *EthHandler) Start() error

func (*EthHandler) Stop

func (w *EthHandler) Stop()

type EventHandler

type EventHandler interface {
	Name() common.Hash
	Scan(log *common.EtherLog) error
}

type HandlerContext

type HandlerContext struct {
	Events          map[common.Hash]EventHandler
	State           State
	EtherURL        string
	Retries         int
	DelayedBlocks   *big.Int
	CursorBlocks    *big.Int
	ContractAddress common.Address
	Db              localdb.Database
	BlockNoFilePath string
	NonceFilePath   string
}

type IntSlice

type IntSlice [][]byte

func (IntSlice) Len

func (s IntSlice) Len() int

func (IntSlice) Less

func (s IntSlice) Less(i, j int) bool

func (IntSlice) Swap

func (s IntSlice) Swap(i, j int)

type Oracle

type Oracle struct {
	OracleCaller     // Read-only binding to the contract
	OracleTransactor // Write-only binding to the contract
	OracleFilterer   // Log filterer for contract events
}

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

func DeployOracle

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

DeployOracle deploys a new Ethereum contract, binding an instance of Oracle to it.

func NewOracle

func NewOracle(address common.Address, backend bind.ContractBackend) (*Oracle, error)

NewOracle creates a new instance of Oracle, bound to a specific deployed contract.

type OracleCaller

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

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

func NewOracleCaller

func NewOracleCaller(address common.Address, caller bind.ContractCaller) (*OracleCaller, error)

NewOracleCaller creates a new read-only instance of Oracle, bound to a specific deployed contract.

func (*OracleCaller) Boss

func (_Oracle *OracleCaller) Boss(opts *bind.CallOpts) (common.Address, error)

Boss is a free data retrieval call binding the contract method 0xc772af39.

Solidity: function boss() constant returns(address)

func (*OracleCaller) Count

func (_Oracle *OracleCaller) Count(opts *bind.CallOpts) (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() constant returns(uint256)

func (*OracleCaller) IndexOf

func (_Oracle *OracleCaller) IndexOf(opts *bind.CallOpts, idx *big.Int) (common.Address, bool, error)

IndexOf is a free data retrieval call binding the contract method 0x91ac7e65.

Solidity: function indexOf(idx uint256) constant returns(address, bool)

func (*OracleCaller) IsSigner

func (_Oracle *OracleCaller) IsSigner(opts *bind.CallOpts, signer common.Address) (bool, error)

IsSigner is a free data retrieval call binding the contract method 0x7df73e27.

Solidity: function isSigner(signer address) constant returns(bool)

func (*OracleCaller) TotalEnabledNodes

func (_Oracle *OracleCaller) TotalEnabledNodes(opts *bind.CallOpts) (*big.Int, error)

TotalEnabledNodes is a free data retrieval call binding the contract method 0x0921953e.

Solidity: function totalEnabledNodes() constant returns(uint256)

type OracleCallerRaw

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

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

func (*OracleCallerRaw) Call

func (_Oracle *OracleCallerRaw) 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 OracleCallerSession

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

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

func (*OracleCallerSession) Boss

func (_Oracle *OracleCallerSession) Boss() (common.Address, error)

Boss is a free data retrieval call binding the contract method 0xc772af39.

Solidity: function boss() constant returns(address)

func (*OracleCallerSession) Count

func (_Oracle *OracleCallerSession) Count() (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() constant returns(uint256)

func (*OracleCallerSession) IndexOf

func (_Oracle *OracleCallerSession) IndexOf(idx *big.Int) (common.Address, bool, error)

IndexOf is a free data retrieval call binding the contract method 0x91ac7e65.

Solidity: function indexOf(idx uint256) constant returns(address, bool)

func (*OracleCallerSession) IsSigner

func (_Oracle *OracleCallerSession) IsSigner(signer common.Address) (bool, error)

IsSigner is a free data retrieval call binding the contract method 0x7df73e27.

Solidity: function isSigner(signer address) constant returns(bool)

func (*OracleCallerSession) TotalEnabledNodes

func (_Oracle *OracleCallerSession) TotalEnabledNodes() (*big.Int, error)

TotalEnabledNodes is a free data retrieval call binding the contract method 0x0921953e.

Solidity: function totalEnabledNodes() constant returns(uint256)

type OracleFilterer

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

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

func NewOracleFilterer

func NewOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*OracleFilterer, error)

NewOracleFilterer creates a new log filterer instance of Oracle, bound to a specific deployed contract.

type OracleRaw

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

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

func (*OracleRaw) Call

func (_Oracle *OracleRaw) 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 (*OracleRaw) Transact

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

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

func (*OracleRaw) Transfer

func (_Oracle *OracleRaw) 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 OracleSession

type OracleSession struct {
	Contract     *Oracle           // 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
}

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

func (*OracleSession) AddSigner

func (_Oracle *OracleSession) AddSigner(signer common.Address) (*types.Transaction, error)

AddSigner is a paid mutator transaction binding the contract method 0xeb12d61e.

Solidity: function addSigner(signer address) returns()

func (*OracleSession) Boss

func (_Oracle *OracleSession) Boss() (common.Address, error)

Boss is a free data retrieval call binding the contract method 0xc772af39.

Solidity: function boss() constant returns(address)

func (*OracleSession) Count

func (_Oracle *OracleSession) Count() (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() constant returns(uint256)

func (*OracleSession) DisableSigner

func (_Oracle *OracleSession) DisableSigner(signer common.Address) (*types.Transaction, error)

DisableSigner is a paid mutator transaction binding the contract method 0x27086336.

Solidity: function disableSigner(signer address) returns(bool)

func (*OracleSession) IndexOf

func (_Oracle *OracleSession) IndexOf(idx *big.Int) (common.Address, bool, error)

IndexOf is a free data retrieval call binding the contract method 0x91ac7e65.

Solidity: function indexOf(idx uint256) constant returns(address, bool)

func (*OracleSession) IsSigner

func (_Oracle *OracleSession) IsSigner(signer common.Address) (bool, error)

IsSigner is a free data retrieval call binding the contract method 0x7df73e27.

Solidity: function isSigner(signer address) constant returns(bool)

func (*OracleSession) TotalEnabledNodes

func (_Oracle *OracleSession) TotalEnabledNodes() (*big.Int, error)

TotalEnabledNodes is a free data retrieval call binding the contract method 0x0921953e.

Solidity: function totalEnabledNodes() constant returns(uint256)

type OracleTransactor

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

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

func NewOracleTransactor

func NewOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*OracleTransactor, error)

NewOracleTransactor creates a new write-only instance of Oracle, bound to a specific deployed contract.

func (*OracleTransactor) AddSigner

func (_Oracle *OracleTransactor) AddSigner(opts *bind.TransactOpts, signer common.Address) (*types.Transaction, error)

AddSigner is a paid mutator transaction binding the contract method 0xeb12d61e.

Solidity: function addSigner(signer address) returns()

func (*OracleTransactor) DisableSigner

func (_Oracle *OracleTransactor) DisableSigner(opts *bind.TransactOpts, signer common.Address) (*types.Transaction, error)

DisableSigner is a paid mutator transaction binding the contract method 0x27086336.

Solidity: function disableSigner(signer address) returns(bool)

type OracleTransactorRaw

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

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

func (*OracleTransactorRaw) Transact

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

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

func (*OracleTransactorRaw) Transfer

func (_Oracle *OracleTransactorRaw) 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 OracleTransactorSession

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

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

func (*OracleTransactorSession) AddSigner

func (_Oracle *OracleTransactorSession) AddSigner(signer common.Address) (*types.Transaction, error)

AddSigner is a paid mutator transaction binding the contract method 0xeb12d61e.

Solidity: function addSigner(signer address) returns()

func (*OracleTransactorSession) DisableSigner

func (_Oracle *OracleTransactorSession) DisableSigner(signer common.Address) (*types.Transaction, error)

DisableSigner is a paid mutator transaction binding the contract method 0x27086336.

Solidity: function disableSigner(signer address) returns(bool)

type Sink

type Sink struct {
	SinkCaller     // Read-only binding to the contract
	SinkTransactor // Write-only binding to the contract
	SinkFilterer   // Log filterer for contract events
}

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

func DeploySink

DeploySink deploys a new Ethereum contract, binding an instance of Sink to it.

func NewSink

func NewSink(address common.Address, backend bind.ContractBackend) (*Sink, error)

NewSink creates a new instance of Sink, bound to a specific deployed contract.

type SinkCaller

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

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

func NewSinkCaller

func NewSinkCaller(address common.Address, caller bind.ContractCaller) (*SinkCaller, error)

NewSinkCaller creates a new read-only instance of Sink, bound to a specific deployed contract.

func (*SinkCaller) Available

func (_Sink *SinkCaller) Available(opts *bind.CallOpts, hash [32]byte) ([32]byte, bool, error)

Available is a free data retrieval call binding the contract method 0x6932854f.

Solidity: function available(hash bytes32) constant returns(bytes32, bool)

func (*SinkCaller) TxExists

func (_Sink *SinkCaller) TxExists(opts *bind.CallOpts, hash [32]byte, txHash [32]byte) (bool, error)

TxExists is a free data retrieval call binding the contract method 0xa8022bfa.

Solidity: function txExists(hash bytes32, txHash bytes32) constant returns(bool)

type SinkCallerRaw

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

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

func (*SinkCallerRaw) Call

func (_Sink *SinkCallerRaw) 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 SinkCallerSession

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

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

func (*SinkCallerSession) Available

func (_Sink *SinkCallerSession) Available(hash [32]byte) ([32]byte, bool, error)

Available is a free data retrieval call binding the contract method 0x6932854f.

Solidity: function available(hash bytes32) constant returns(bytes32, bool)

func (*SinkCallerSession) TxExists

func (_Sink *SinkCallerSession) TxExists(hash [32]byte, txHash [32]byte) (bool, error)

TxExists is a free data retrieval call binding the contract method 0xa8022bfa.

Solidity: function txExists(hash bytes32, txHash bytes32) constant returns(bool)

type SinkFilterer

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

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

func NewSinkFilterer

func NewSinkFilterer(address common.Address, filterer bind.ContractFilterer) (*SinkFilterer, error)

NewSinkFilterer creates a new log filterer instance of Sink, bound to a specific deployed contract.

func (*SinkFilterer) FilterSignflowAdded

func (_Sink *SinkFilterer) FilterSignflowAdded(opts *bind.FilterOpts) (*SinkSignflowAddedIterator, error)

FilterSignflowAdded is a free log retrieval operation binding the contract event 0x9f3f4c1672a4880364b07219cd9428dbc8a88774f53b12b98fae406c5a30ee5c.

Solidity: event SignflowAdded(hash bytes32, lastConfirmed address)

func (*SinkFilterer) FilterSignflowDisabled

func (_Sink *SinkFilterer) FilterSignflowDisabled(opts *bind.FilterOpts) (*SinkSignflowDisabledIterator, error)

FilterSignflowDisabled is a free log retrieval operation binding the contract event 0x484f49c7a40838d935f9cd616461fad6033bb6f7fa4491fbc72941d77671f09f.

Solidity: event SignflowDisabled(hash bytes32, lastConfirmed address)

func (*SinkFilterer) FilterSignflowEnabled

func (_Sink *SinkFilterer) FilterSignflowEnabled(opts *bind.FilterOpts) (*SinkSignflowEnabledIterator, error)

FilterSignflowEnabled is a free log retrieval operation binding the contract event 0x50177799234754a6d6af99e5ab43b5679c202f4058d342099bfb35acdfa1a867.

Solidity: event SignflowEnabled(hash bytes32, lastConfirmed address)

func (*SinkFilterer) FilterWithdrawApplied

func (_Sink *SinkFilterer) FilterWithdrawApplied(opts *bind.FilterOpts, hash [][32]byte, txHash [][32]byte) (*SinkWithdrawAppliedIterator, error)

FilterWithdrawApplied is a free log retrieval operation binding the contract event 0x7f508fd15756f38a4426383f9ef243dfccdfdff0a528e755b113ef8bef2c5c2e.

Solidity: event WithdrawApplied(hash indexed bytes32, txHash indexed bytes32, amount uint256, fee uint256, recipient address, category uint256, lastConfirmed address)

func (*SinkFilterer) WatchSignflowAdded

func (_Sink *SinkFilterer) WatchSignflowAdded(opts *bind.WatchOpts, sink chan<- *SinkSignflowAdded) (event.Subscription, error)

WatchSignflowAdded is a free log subscription operation binding the contract event 0x9f3f4c1672a4880364b07219cd9428dbc8a88774f53b12b98fae406c5a30ee5c.

Solidity: event SignflowAdded(hash bytes32, lastConfirmed address)

func (*SinkFilterer) WatchSignflowDisabled

func (_Sink *SinkFilterer) WatchSignflowDisabled(opts *bind.WatchOpts, sink chan<- *SinkSignflowDisabled) (event.Subscription, error)

WatchSignflowDisabled is a free log subscription operation binding the contract event 0x484f49c7a40838d935f9cd616461fad6033bb6f7fa4491fbc72941d77671f09f.

Solidity: event SignflowDisabled(hash bytes32, lastConfirmed address)

func (*SinkFilterer) WatchSignflowEnabled

func (_Sink *SinkFilterer) WatchSignflowEnabled(opts *bind.WatchOpts, sink chan<- *SinkSignflowEnabled) (event.Subscription, error)

WatchSignflowEnabled is a free log subscription operation binding the contract event 0x50177799234754a6d6af99e5ab43b5679c202f4058d342099bfb35acdfa1a867.

Solidity: event SignflowEnabled(hash bytes32, lastConfirmed address)

func (*SinkFilterer) WatchWithdrawApplied

func (_Sink *SinkFilterer) WatchWithdrawApplied(opts *bind.WatchOpts, sink chan<- *SinkWithdrawApplied, hash [][32]byte, txHash [][32]byte) (event.Subscription, error)

WatchWithdrawApplied is a free log subscription operation binding the contract event 0x7f508fd15756f38a4426383f9ef243dfccdfdff0a528e755b113ef8bef2c5c2e.

Solidity: event WithdrawApplied(hash indexed bytes32, txHash indexed bytes32, amount uint256, fee uint256, recipient address, category uint256, lastConfirmed address)

type SinkRaw

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

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

func (*SinkRaw) Call

func (_Sink *SinkRaw) 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 (*SinkRaw) Transact

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

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

func (*SinkRaw) Transfer

func (_Sink *SinkRaw) 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 SinkSession

type SinkSession struct {
	Contract     *Sink             // 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
}

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

func (*SinkSession) AddHash

func (_Sink *SinkSession) AddHash(hash [32]byte) (*types.Transaction, error)

AddHash is a paid mutator transaction binding the contract method 0x43e08ad1.

Solidity: function addHash(hash bytes32) returns(bool)

func (*SinkSession) Approve

func (_Sink *SinkSession) Approve(txHash [32]byte, amount *big.Int, fee *big.Int, recipient common.Address, hash [32]byte, category *big.Int) (*types.Transaction, error)

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

Solidity: function approve(txHash bytes32, amount uint256, fee uint256, recipient address, hash bytes32, category uint256) returns(bool)

func (*SinkSession) Available

func (_Sink *SinkSession) Available(hash [32]byte) ([32]byte, bool, error)

Available is a free data retrieval call binding the contract method 0x6932854f.

Solidity: function available(hash bytes32) constant returns(bytes32, bool)

func (*SinkSession) ChangeOracle

func (_Sink *SinkSession) ChangeOracle(newOracle common.Address) (*types.Transaction, error)

ChangeOracle is a paid mutator transaction binding the contract method 0x47c421b5.

Solidity: function changeOracle(newOracle address) returns()

func (*SinkSession) Disable

func (_Sink *SinkSession) Disable(hash [32]byte) (*types.Transaction, error)

Disable is a paid mutator transaction binding the contract method 0xcf751d81.

Solidity: function disable(hash bytes32) returns(bool)

func (*SinkSession) Enable

func (_Sink *SinkSession) Enable(hash [32]byte) (*types.Transaction, error)

Enable is a paid mutator transaction binding the contract method 0x1059171e.

Solidity: function enable(hash bytes32) returns(bool)

func (*SinkSession) TxExists

func (_Sink *SinkSession) TxExists(hash [32]byte, txHash [32]byte) (bool, error)

TxExists is a free data retrieval call binding the contract method 0xa8022bfa.

Solidity: function txExists(hash bytes32, txHash bytes32) constant returns(bool)

type SinkSignflowAdded

type SinkSignflowAdded struct {
	Hash          [32]byte
	LastConfirmed common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

SinkSignflowAdded represents a SignflowAdded event raised by the Sink contract.

type SinkSignflowAddedIterator

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

SinkSignflowAddedIterator is returned from FilterSignflowAdded and is used to iterate over the raw logs and unpacked data for SignflowAdded events raised by the Sink contract.

func (*SinkSignflowAddedIterator) Close

func (it *SinkSignflowAddedIterator) Close() error

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

func (*SinkSignflowAddedIterator) Error

func (it *SinkSignflowAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SinkSignflowAddedIterator) Next

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

type SinkSignflowDisabled struct {
	Hash          [32]byte
	LastConfirmed common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

SinkSignflowDisabled represents a SignflowDisabled event raised by the Sink contract.

type SinkSignflowDisabledIterator

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

SinkSignflowDisabledIterator is returned from FilterSignflowDisabled and is used to iterate over the raw logs and unpacked data for SignflowDisabled events raised by the Sink contract.

func (*SinkSignflowDisabledIterator) Close

func (it *SinkSignflowDisabledIterator) Close() error

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

func (*SinkSignflowDisabledIterator) Error

func (it *SinkSignflowDisabledIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SinkSignflowDisabledIterator) 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 SinkSignflowEnabled

type SinkSignflowEnabled struct {
	Hash          [32]byte
	LastConfirmed common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

SinkSignflowEnabled represents a SignflowEnabled event raised by the Sink contract.

type SinkSignflowEnabledIterator

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

SinkSignflowEnabledIterator is returned from FilterSignflowEnabled and is used to iterate over the raw logs and unpacked data for SignflowEnabled events raised by the Sink contract.

func (*SinkSignflowEnabledIterator) Close

func (it *SinkSignflowEnabledIterator) Close() error

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

func (*SinkSignflowEnabledIterator) Error

func (it *SinkSignflowEnabledIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SinkSignflowEnabledIterator) Next

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

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

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

func NewSinkTransactor

func NewSinkTransactor(address common.Address, transactor bind.ContractTransactor) (*SinkTransactor, error)

NewSinkTransactor creates a new write-only instance of Sink, bound to a specific deployed contract.

func (*SinkTransactor) AddHash

func (_Sink *SinkTransactor) AddHash(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error)

AddHash is a paid mutator transaction binding the contract method 0x43e08ad1.

Solidity: function addHash(hash bytes32) returns(bool)

func (*SinkTransactor) Approve

func (_Sink *SinkTransactor) Approve(opts *bind.TransactOpts, txHash [32]byte, amount *big.Int, fee *big.Int, recipient common.Address, hash [32]byte, category *big.Int) (*types.Transaction, error)

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

Solidity: function approve(txHash bytes32, amount uint256, fee uint256, recipient address, hash bytes32, category uint256) returns(bool)

func (*SinkTransactor) ChangeOracle

func (_Sink *SinkTransactor) ChangeOracle(opts *bind.TransactOpts, newOracle common.Address) (*types.Transaction, error)

ChangeOracle is a paid mutator transaction binding the contract method 0x47c421b5.

Solidity: function changeOracle(newOracle address) returns()

func (*SinkTransactor) Disable

func (_Sink *SinkTransactor) Disable(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error)

Disable is a paid mutator transaction binding the contract method 0xcf751d81.

Solidity: function disable(hash bytes32) returns(bool)

func (*SinkTransactor) Enable

func (_Sink *SinkTransactor) Enable(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error)

Enable is a paid mutator transaction binding the contract method 0x1059171e.

Solidity: function enable(hash bytes32) returns(bool)

type SinkTransactorRaw

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

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

func (*SinkTransactorRaw) Transact

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

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

func (*SinkTransactorRaw) Transfer

func (_Sink *SinkTransactorRaw) 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 SinkTransactorSession

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

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

func (*SinkTransactorSession) AddHash

func (_Sink *SinkTransactorSession) AddHash(hash [32]byte) (*types.Transaction, error)

AddHash is a paid mutator transaction binding the contract method 0x43e08ad1.

Solidity: function addHash(hash bytes32) returns(bool)

func (*SinkTransactorSession) Approve

func (_Sink *SinkTransactorSession) Approve(txHash [32]byte, amount *big.Int, fee *big.Int, recipient common.Address, hash [32]byte, category *big.Int) (*types.Transaction, error)

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

Solidity: function approve(txHash bytes32, amount uint256, fee uint256, recipient address, hash bytes32, category uint256) returns(bool)

func (*SinkTransactorSession) ChangeOracle

func (_Sink *SinkTransactorSession) ChangeOracle(newOracle common.Address) (*types.Transaction, error)

ChangeOracle is a paid mutator transaction binding the contract method 0x47c421b5.

Solidity: function changeOracle(newOracle address) returns()

func (*SinkTransactorSession) Disable

func (_Sink *SinkTransactorSession) Disable(hash [32]byte) (*types.Transaction, error)

Disable is a paid mutator transaction binding the contract method 0xcf751d81.

Solidity: function disable(hash bytes32) returns(bool)

func (*SinkTransactorSession) Enable

func (_Sink *SinkTransactorSession) Enable(hash [32]byte) (*types.Transaction, error)

Enable is a paid mutator transaction binding the contract method 0x1059171e.

Solidity: function enable(hash bytes32) returns(bool)

type SinkWithdrawApplied

type SinkWithdrawApplied struct {
	Hash          [32]byte
	TxHash        [32]byte
	Amount        *big.Int
	Fee           *big.Int
	Recipient     common.Address
	Category      *big.Int
	LastConfirmed common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

SinkWithdrawApplied represents a WithdrawApplied event raised by the Sink contract.

type SinkWithdrawAppliedIterator

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

SinkWithdrawAppliedIterator is returned from FilterWithdrawApplied and is used to iterate over the raw logs and unpacked data for WithdrawApplied events raised by the Sink contract.

func (*SinkWithdrawAppliedIterator) Close

func (it *SinkWithdrawAppliedIterator) Close() error

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

func (*SinkWithdrawAppliedIterator) Error

func (it *SinkWithdrawAppliedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SinkWithdrawAppliedIterator) Next

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

type State interface {
	GetContractAddress() (common.Address, error)
	SetContractAddress(common.Address) error
	Save(key []byte, value []byte) error
	Load(key []byte) ([]byte, error)
}

type Wallet

type Wallet struct {
	WalletCaller     // Read-only binding to the contract
	WalletTransactor // Write-only binding to the contract
	WalletFilterer   // Log filterer for contract events
}

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

func DeployWallet

func DeployWallet(auth *bind.TransactOpts, backend bind.ContractBackend, _bank common.Address) (common.Address, *types.Transaction, *Wallet, error)

DeployWallet deploys a new Ethereum contract, binding an instance of Wallet to it.

func NewWallet

func NewWallet(address common.Address, backend bind.ContractBackend) (*Wallet, error)

NewWallet creates a new instance of Wallet, bound to a specific deployed contract.

type WalletCaller

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

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

func NewWalletCaller

func NewWalletCaller(address common.Address, caller bind.ContractCaller) (*WalletCaller, error)

NewWalletCaller creates a new read-only instance of Wallet, bound to a specific deployed contract.

type WalletCallerRaw

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

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

func (*WalletCallerRaw) Call

func (_Wallet *WalletCallerRaw) 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 WalletCallerSession

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

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

type WalletFilterer

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

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

func NewWalletFilterer

func NewWalletFilterer(address common.Address, filterer bind.ContractFilterer) (*WalletFilterer, error)

NewWalletFilterer creates a new log filterer instance of Wallet, bound to a specific deployed contract.

func (*WalletFilterer) FilterWalletS

func (_Wallet *WalletFilterer) FilterWalletS(opts *bind.FilterOpts) (*WalletWalletSIterator, error)

FilterWalletS is a free log retrieval operation binding the contract event 0xa15ca1140c0139fca9cd3ac6d7be4ec33237ca678fd968550e0ff72ee5bedf44.

Solidity: event WalletS(bank address)

func (*WalletFilterer) WatchWalletS

func (_Wallet *WalletFilterer) WatchWalletS(opts *bind.WatchOpts, sink chan<- *WalletWalletS) (event.Subscription, error)

WatchWalletS is a free log subscription operation binding the contract event 0xa15ca1140c0139fca9cd3ac6d7be4ec33237ca678fd968550e0ff72ee5bedf44.

Solidity: event WalletS(bank address)

type WalletRaw

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

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

func (*WalletRaw) Call

func (_Wallet *WalletRaw) 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 (*WalletRaw) Transact

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

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

func (*WalletRaw) Transfer

func (_Wallet *WalletRaw) 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 WalletSession

type WalletSession struct {
	Contract     *Wallet           // 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
}

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

func (*WalletSession) TransferERC20

func (_Wallet *WalletSession) TransferERC20(token common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)

TransferERC20 is a paid mutator transaction binding the contract method 0x9db5dbe4.

Solidity: function transferERC20(token address, _to address, _amount uint256) returns()

type WalletTransactor

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

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

func NewWalletTransactor

func NewWalletTransactor(address common.Address, transactor bind.ContractTransactor) (*WalletTransactor, error)

NewWalletTransactor creates a new write-only instance of Wallet, bound to a specific deployed contract.

func (*WalletTransactor) TransferERC20

func (_Wallet *WalletTransactor) TransferERC20(opts *bind.TransactOpts, token common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)

TransferERC20 is a paid mutator transaction binding the contract method 0x9db5dbe4.

Solidity: function transferERC20(token address, _to address, _amount uint256) returns()

type WalletTransactorRaw

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

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

func (*WalletTransactorRaw) Transact

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

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

func (*WalletTransactorRaw) Transfer

func (_Wallet *WalletTransactorRaw) 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 WalletTransactorSession

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

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

func (*WalletTransactorSession) TransferERC20

func (_Wallet *WalletTransactorSession) TransferERC20(token common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)

TransferERC20 is a paid mutator transaction binding the contract method 0x9db5dbe4.

Solidity: function transferERC20(token address, _to address, _amount uint256) returns()

type WalletWalletS

type WalletWalletS struct {
	Bank common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

WalletWalletS represents a WalletS event raised by the Wallet contract.

type WalletWalletSIterator

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

WalletWalletSIterator is returned from FilterWalletS and is used to iterate over the raw logs and unpacked data for WalletS events raised by the Wallet contract.

func (*WalletWalletSIterator) Close

func (it *WalletWalletSIterator) Close() error

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

func (*WalletWalletSIterator) Error

func (it *WalletWalletSIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*WalletWalletSIterator) Next

func (it *WalletWalletSIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

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