Documentation
¶
Index ¶
- Constants
- type ChannelIdentifier
- type ChannelUniqueID
- type ECVerify
- type ECVerifyCaller
- type ECVerifyCallerRaw
- type ECVerifyCallerSession
- type ECVerifyFilterer
- type ECVerifyRaw
- func (_ECVerify *ECVerifyRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_ECVerify *ECVerifyRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ECVerify *ECVerifyRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ECVerifySession
- type ECVerifyTransactor
- type ECVerifyTransactorRaw
- type ECVerifyTransactorSession
- type SecretRegistry
- type SecretRegistryCaller
- func (_SecretRegistry *SecretRegistryCaller) ContractVersion(opts *bind.CallOpts) (string, error)
- func (_SecretRegistry *SecretRegistryCaller) GetSecretRevealBlockHeight(opts *bind.CallOpts, secrethash [32]byte) (*big.Int, error)
- func (_SecretRegistry *SecretRegistryCaller) SecrethashToBlock(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- type SecretRegistryCallerRaw
- type SecretRegistryCallerSession
- func (_SecretRegistry *SecretRegistryCallerSession) ContractVersion() (string, error)
- func (_SecretRegistry *SecretRegistryCallerSession) GetSecretRevealBlockHeight(secrethash [32]byte) (*big.Int, error)
- func (_SecretRegistry *SecretRegistryCallerSession) SecrethashToBlock(arg0 [32]byte) (*big.Int, error)
- type SecretRegistryFilterer
- func (_SecretRegistry *SecretRegistryFilterer) FilterSecretRevealed(opts *bind.FilterOpts, secret [][32]byte) (*SecretRegistrySecretRevealedIterator, error)
- func (_SecretRegistry *SecretRegistryFilterer) WatchSecretRevealed(opts *bind.WatchOpts, sink chan<- *SecretRegistrySecretRevealed, ...) (event.Subscription, error)
- type SecretRegistryRaw
- func (_SecretRegistry *SecretRegistryRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_SecretRegistry *SecretRegistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_SecretRegistry *SecretRegistryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SecretRegistrySecretRevealed
- type SecretRegistrySecretRevealedIterator
- type SecretRegistrySession
- func (_SecretRegistry *SecretRegistrySession) ContractVersion() (string, error)
- func (_SecretRegistry *SecretRegistrySession) GetSecretRevealBlockHeight(secrethash [32]byte) (*big.Int, error)
- func (_SecretRegistry *SecretRegistrySession) RegisterSecret(secret [32]byte) (*types.Transaction, error)
- func (_SecretRegistry *SecretRegistrySession) SecrethashToBlock(arg0 [32]byte) (*big.Int, error)
- type SecretRegistryTransactor
- type SecretRegistryTransactorRaw
- type SecretRegistryTransactorSession
- type Token
- type TokenApproval
- type TokenApprovalIterator
- type TokenCaller
- func (_Token *TokenCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)
- func (_Token *TokenCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)
- func (_Token *TokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_Token *TokenCaller) Name(opts *bind.CallOpts) (string, error)
- func (_Token *TokenCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_Token *TokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type TokenCallerRaw
- type TokenCallerSession
- func (_Token *TokenCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
- func (_Token *TokenCallerSession) BalanceOf(_owner common.Address) (*big.Int, error)
- func (_Token *TokenCallerSession) Decimals() (uint8, error)
- func (_Token *TokenCallerSession) Name() (string, error)
- func (_Token *TokenCallerSession) Symbol() (string, error)
- func (_Token *TokenCallerSession) TotalSupply() (*big.Int, error)
- type TokenFilterer
- func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*TokenApprovalIterator, error)
- func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*TokenTransferIterator, error)
- func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, _owner []common.Address, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, _from []common.Address, ...) (event.Subscription, error)
- type TokenRaw
- func (_Token *TokenRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Token *TokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TokenSession
- func (_Token *TokenSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
- func (_Token *TokenSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) ApproveAndCall(_spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error)
- func (_Token *TokenSession) BalanceOf(_owner common.Address) (*big.Int, error)
- func (_Token *TokenSession) Decimals() (uint8, error)
- func (_Token *TokenSession) Name() (string, error)
- func (_Token *TokenSession) Symbol() (string, error)
- func (_Token *TokenSession) TotalSupply() (*big.Int, error)
- func (_Token *TokenSession) Transfer(to common.Address, value *big.Int, data []byte) (*types.Transaction, error)
- func (_Token *TokenSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- type TokenTransactor
- func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) ApproveAndCall(opts *bind.TransactOpts, _spender common.Address, _amount *big.Int, ...) (*types.Transaction, error)
- func (_Token *TokenTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int, data []byte) (*types.Transaction, error)
- func (_Token *TokenTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error)
- type TokenTransactorRaw
- type TokenTransactorSession
- func (_Token *TokenTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) ApproveAndCall(_spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Transfer(to common.Address, value *big.Int, data []byte) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- type TokenTransfer
- type TokenTransferIterator
- type TokensNetwork
- type TokensNetworkBalanceProofUpdated
- type TokensNetworkBalanceProofUpdatedIterator
- type TokensNetworkCaller
- func (_TokensNetwork *TokensNetworkCaller) ChainId(opts *bind.CallOpts) (*big.Int, error)
- func (_TokensNetwork *TokensNetworkCaller) Channels(opts *bind.CallOpts, arg0 [32]byte) (struct{ ... }, error)
- func (_TokensNetwork *TokensNetworkCaller) ContractExists(opts *bind.CallOpts, contract_address common.Address) (bool, error)
- func (_TokensNetwork *TokensNetworkCaller) ContractVersion(opts *bind.CallOpts) (string, error)
- func (_TokensNetwork *TokensNetworkCaller) GetChannelInfo(opts *bind.CallOpts, token common.Address, participant1 common.Address, ...) ([32]byte, uint64, uint64, uint8, uint64, error)
- func (_TokensNetwork *TokensNetworkCaller) GetChannelInfoByChannelIdentifier(opts *bind.CallOpts, channel_identifier [32]byte) (uint64, uint64, uint8, uint64, error)
- func (_TokensNetwork *TokensNetworkCaller) GetChannelParticipantInfo(opts *bind.CallOpts, token common.Address, participant common.Address, ...) (*big.Int, [24]byte, uint64, error)
- func (_TokensNetwork *TokensNetworkCaller) PunishBlockNumber(opts *bind.CallOpts) (uint64, error)
- func (_TokensNetwork *TokensNetworkCaller) QueryUnlockedLocks(opts *bind.CallOpts, token common.Address, participant common.Address, ...) (bool, error)
- func (_TokensNetwork *TokensNetworkCaller) RegisteredToken(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_TokensNetwork *TokensNetworkCaller) SecretRegistry(opts *bind.CallOpts) (common.Address, error)
- func (_TokensNetwork *TokensNetworkCaller) SignaturePrefix(opts *bind.CallOpts) (string, error)
- type TokensNetworkCallerRaw
- type TokensNetworkCallerSession
- func (_TokensNetwork *TokensNetworkCallerSession) ChainId() (*big.Int, error)
- func (_TokensNetwork *TokensNetworkCallerSession) Channels(arg0 [32]byte) (struct{ ... }, error)
- func (_TokensNetwork *TokensNetworkCallerSession) ContractExists(contract_address common.Address) (bool, error)
- func (_TokensNetwork *TokensNetworkCallerSession) ContractVersion() (string, error)
- func (_TokensNetwork *TokensNetworkCallerSession) GetChannelInfo(token common.Address, participant1 common.Address, participant2 common.Address) ([32]byte, uint64, uint64, uint8, uint64, error)
- func (_TokensNetwork *TokensNetworkCallerSession) GetChannelInfoByChannelIdentifier(channel_identifier [32]byte) (uint64, uint64, uint8, uint64, error)
- func (_TokensNetwork *TokensNetworkCallerSession) GetChannelParticipantInfo(token common.Address, participant common.Address, partner common.Address) (*big.Int, [24]byte, uint64, error)
- func (_TokensNetwork *TokensNetworkCallerSession) PunishBlockNumber() (uint64, error)
- func (_TokensNetwork *TokensNetworkCallerSession) QueryUnlockedLocks(token common.Address, participant common.Address, partner common.Address, ...) (bool, error)
- func (_TokensNetwork *TokensNetworkCallerSession) RegisteredToken(arg0 common.Address) (bool, error)
- func (_TokensNetwork *TokensNetworkCallerSession) SecretRegistry() (common.Address, error)
- func (_TokensNetwork *TokensNetworkCallerSession) SignaturePrefix() (string, error)
- type TokensNetworkChannelClosed
- type TokensNetworkChannelClosedIterator
- type TokensNetworkChannelCooperativeSettled
- type TokensNetworkChannelCooperativeSettledIterator
- type TokensNetworkChannelNewDeposit
- type TokensNetworkChannelNewDepositIterator
- type TokensNetworkChannelOpenedAndDeposit
- type TokensNetworkChannelOpenedAndDepositIterator
- type TokensNetworkChannelPunished
- type TokensNetworkChannelPunishedIterator
- type TokensNetworkChannelSettled
- type TokensNetworkChannelSettledIterator
- type TokensNetworkChannelUnlocked
- type TokensNetworkChannelUnlockedIterator
- type TokensNetworkChannelWithdraw
- type TokensNetworkChannelWithdrawIterator
- type TokensNetworkFilterer
- func (_TokensNetwork *TokensNetworkFilterer) FilterBalanceProofUpdated(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkBalanceProofUpdatedIterator, error)
- func (_TokensNetwork *TokensNetworkFilterer) FilterChannelClosed(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelClosedIterator, error)
- func (_TokensNetwork *TokensNetworkFilterer) FilterChannelCooperativeSettled(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelCooperativeSettledIterator, error)
- func (_TokensNetwork *TokensNetworkFilterer) FilterChannelNewDeposit(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelNewDepositIterator, error)
- func (_TokensNetwork *TokensNetworkFilterer) FilterChannelOpenedAndDeposit(opts *bind.FilterOpts, token []common.Address) (*TokensNetworkChannelOpenedAndDepositIterator, error)
- func (_TokensNetwork *TokensNetworkFilterer) FilterChannelPunished(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelPunishedIterator, error)
- func (_TokensNetwork *TokensNetworkFilterer) FilterChannelSettled(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelSettledIterator, error)
- func (_TokensNetwork *TokensNetworkFilterer) FilterChannelUnlocked(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelUnlockedIterator, error)
- func (_TokensNetwork *TokensNetworkFilterer) FilterChannelWithdraw(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelWithdrawIterator, error)
- func (_TokensNetwork *TokensNetworkFilterer) FilterTokenNetworkCreated(opts *bind.FilterOpts, token_address []common.Address) (*TokensNetworkTokenNetworkCreatedIterator, error)
- func (_TokensNetwork *TokensNetworkFilterer) WatchBalanceProofUpdated(opts *bind.WatchOpts, sink chan<- *TokensNetworkBalanceProofUpdated, ...) (event.Subscription, error)
- func (_TokensNetwork *TokensNetworkFilterer) WatchChannelClosed(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelClosed, ...) (event.Subscription, error)
- func (_TokensNetwork *TokensNetworkFilterer) WatchChannelCooperativeSettled(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelCooperativeSettled, ...) (event.Subscription, error)
- func (_TokensNetwork *TokensNetworkFilterer) WatchChannelNewDeposit(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelNewDeposit, ...) (event.Subscription, error)
- func (_TokensNetwork *TokensNetworkFilterer) WatchChannelOpenedAndDeposit(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelOpenedAndDeposit, ...) (event.Subscription, error)
- func (_TokensNetwork *TokensNetworkFilterer) WatchChannelPunished(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelPunished, ...) (event.Subscription, error)
- func (_TokensNetwork *TokensNetworkFilterer) WatchChannelSettled(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelSettled, ...) (event.Subscription, error)
- func (_TokensNetwork *TokensNetworkFilterer) WatchChannelUnlocked(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelUnlocked, ...) (event.Subscription, error)
- func (_TokensNetwork *TokensNetworkFilterer) WatchChannelWithdraw(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelWithdraw, ...) (event.Subscription, error)
- func (_TokensNetwork *TokensNetworkFilterer) WatchTokenNetworkCreated(opts *bind.WatchOpts, sink chan<- *TokensNetworkTokenNetworkCreated, ...) (event.Subscription, error)
- type TokensNetworkRaw
- func (_TokensNetwork *TokensNetworkRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_TokensNetwork *TokensNetworkRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TokensNetworkSession
- func (_TokensNetwork *TokensNetworkSession) ChainId() (*big.Int, error)
- func (_TokensNetwork *TokensNetworkSession) Channels(arg0 [32]byte) (struct{ ... }, error)
- func (_TokensNetwork *TokensNetworkSession) ContractExists(contract_address common.Address) (bool, error)
- func (_TokensNetwork *TokensNetworkSession) ContractVersion() (string, error)
- func (_TokensNetwork *TokensNetworkSession) CooperativeSettle(token common.Address, participant1 common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkSession) Deposit(token common.Address, participant common.Address, partner common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkSession) GetChannelInfo(token common.Address, participant1 common.Address, participant2 common.Address) ([32]byte, uint64, uint64, uint8, uint64, error)
- func (_TokensNetwork *TokensNetworkSession) GetChannelInfoByChannelIdentifier(channel_identifier [32]byte) (uint64, uint64, uint8, uint64, error)
- func (_TokensNetwork *TokensNetworkSession) GetChannelParticipantInfo(token common.Address, participant common.Address, partner common.Address) (*big.Int, [24]byte, uint64, error)
- func (_TokensNetwork *TokensNetworkSession) PrepareSettle(token common.Address, partner common.Address, transferred_amount *big.Int, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkSession) PunishBlockNumber() (uint64, error)
- func (_TokensNetwork *TokensNetworkSession) PunishObsoleteUnlock(token common.Address, beneficiary common.Address, cheater common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkSession) QueryUnlockedLocks(token common.Address, participant common.Address, partner common.Address, ...) (bool, error)
- func (_TokensNetwork *TokensNetworkSession) ReceiveApproval(from common.Address, value *big.Int, token_ common.Address, data []byte) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkSession) RegisteredToken(arg0 common.Address) (bool, error)
- func (_TokensNetwork *TokensNetworkSession) SecretRegistry() (common.Address, error)
- func (_TokensNetwork *TokensNetworkSession) Settle(token common.Address, participant1 common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkSession) SignaturePrefix() (string, error)
- func (_TokensNetwork *TokensNetworkSession) TokenFallback(arg0 common.Address, value *big.Int, data []byte) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkSession) Unlock(token common.Address, partner common.Address, transferred_amount *big.Int, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkSession) UnlockDelegate(token common.Address, partner common.Address, participant common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkSession) UpdateBalanceProof(token common.Address, partner common.Address, transferred_amount *big.Int, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkSession) UpdateBalanceProofDelegate(token common.Address, partner common.Address, participant common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkSession) WithDraw(token common.Address, participant common.Address, partner common.Address, ...) (*types.Transaction, error)
- type TokensNetworkTokenNetworkCreated
- type TokensNetworkTokenNetworkCreatedIterator
- type TokensNetworkTransactor
- func (_TokensNetwork *TokensNetworkTransactor) CooperativeSettle(opts *bind.TransactOpts, token common.Address, participant1 common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactor) Deposit(opts *bind.TransactOpts, token common.Address, participant common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactor) PrepareSettle(opts *bind.TransactOpts, token common.Address, partner common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactor) PunishObsoleteUnlock(opts *bind.TransactOpts, token common.Address, beneficiary common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactor) ReceiveApproval(opts *bind.TransactOpts, from common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactor) Settle(opts *bind.TransactOpts, token common.Address, participant1 common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactor) TokenFallback(opts *bind.TransactOpts, arg0 common.Address, value *big.Int, data []byte) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactor) Unlock(opts *bind.TransactOpts, token common.Address, partner common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactor) UnlockDelegate(opts *bind.TransactOpts, token common.Address, partner common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactor) UpdateBalanceProof(opts *bind.TransactOpts, token common.Address, partner common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactor) UpdateBalanceProofDelegate(opts *bind.TransactOpts, token common.Address, partner common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactor) WithDraw(opts *bind.TransactOpts, token common.Address, participant common.Address, ...) (*types.Transaction, error)
- type TokensNetworkTransactorRaw
- type TokensNetworkTransactorSession
- func (_TokensNetwork *TokensNetworkTransactorSession) CooperativeSettle(token common.Address, participant1 common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactorSession) Deposit(token common.Address, participant common.Address, partner common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactorSession) PrepareSettle(token common.Address, partner common.Address, transferred_amount *big.Int, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactorSession) PunishObsoleteUnlock(token common.Address, beneficiary common.Address, cheater common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactorSession) ReceiveApproval(from common.Address, value *big.Int, token_ common.Address, data []byte) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactorSession) Settle(token common.Address, participant1 common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactorSession) TokenFallback(arg0 common.Address, value *big.Int, data []byte) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactorSession) Unlock(token common.Address, partner common.Address, transferred_amount *big.Int, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactorSession) UnlockDelegate(token common.Address, partner common.Address, participant common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactorSession) UpdateBalanceProof(token common.Address, partner common.Address, transferred_amount *big.Int, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactorSession) UpdateBalanceProofDelegate(token common.Address, partner common.Address, participant common.Address, ...) (*types.Transaction, error)
- func (_TokensNetwork *TokensNetworkTransactorSession) WithDraw(token common.Address, participant common.Address, partner common.Address, ...) (*types.Transaction, error)
- type Utils
- type UtilsCaller
- type UtilsCallerRaw
- type UtilsCallerSession
- type UtilsFilterer
- type UtilsRaw
- func (_Utils *UtilsRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Utils *UtilsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Utils *UtilsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type UtilsSession
- type UtilsTransactor
- type UtilsTransactorRaw
- type UtilsTransactorSession
Constants ¶
const ChannelStateClosed = 2
const ChannelStateOpened = 1
const ChannelStateSettledOrNotExist = 0
const ECVerifyABI = "[]"
ECVerifyABI is the input ABI used to generate the binding from.
const ECVerifyBin = `` /* 242-byte string literal not displayed */
ECVerifyBin is the compiled bytecode used for deploying new contracts.
const SecretRegistryABI = "" /* 1017-byte string literal not displayed */
SecretRegistryABI is the input ABI used to generate the binding from.
const SecretRegistryBin = `` /* 1696-byte string literal not displayed */
SecretRegistryBin is the compiled bytecode used for deploying new contracts.
const TokenABI = "" /* 3470-byte string literal not displayed */
TokenABI is the input ABI used to generate the binding from.
const TokenBin = `0x`
TokenBin is the compiled bytecode used for deploying new contracts.
const TokensNetworkABI = "" /* 12344-byte string literal not displayed */
TokensNetworkABI is the input ABI used to generate the binding from.
const TokensNetworkBin = `` /* 34050-byte string literal not displayed */
TokensNetworkBin is the compiled bytecode used for deploying new contracts.
const UtilsABI = "" /* 415-byte string literal not displayed */
UtilsABI is the input ABI used to generate the binding from.
const UtilsBin = `` /* 848-byte string literal not displayed */
UtilsBin is the compiled bytecode used for deploying new contracts.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelUniqueID ¶
type ChannelUniqueID struct { ChannelIdentifier common.Hash `json:"channel_identifier"` OpenBlockNumber int64 `json:"open_block_number"` }
ChannelUniqueID unique id of a channel
func (*ChannelUniqueID) String ¶
func (c *ChannelUniqueID) String() string
type ECVerify ¶
type ECVerify struct { ECVerifyCaller // Read-only binding to the contract ECVerifyTransactor // Write-only binding to the contract ECVerifyFilterer // Log filterer for contract events }
ECVerify is an auto generated Go binding around an Ethereum contract.
func DeployECVerify ¶
func DeployECVerify(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ECVerify, error)
DeployECVerify deploys a new Ethereum contract, binding an instance of ECVerify to it.
func NewECVerify ¶
NewECVerify creates a new instance of ECVerify, bound to a specific deployed contract.
type ECVerifyCaller ¶
type ECVerifyCaller struct {
// contains filtered or unexported fields
}
ECVerifyCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewECVerifyCaller ¶
func NewECVerifyCaller(address common.Address, caller bind.ContractCaller) (*ECVerifyCaller, error)
NewECVerifyCaller creates a new read-only instance of ECVerify, bound to a specific deployed contract.
type ECVerifyCallerRaw ¶
type ECVerifyCallerRaw struct {
Contract *ECVerifyCaller // Generic read-only contract binding to access the raw methods on
}
ECVerifyCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ECVerifyCallerRaw) Call ¶
func (_ECVerify *ECVerifyCallerRaw) 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 ECVerifyCallerSession ¶
type ECVerifyCallerSession struct { Contract *ECVerifyCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ECVerifyCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type ECVerifyFilterer ¶
type ECVerifyFilterer struct {
// contains filtered or unexported fields
}
ECVerifyFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewECVerifyFilterer ¶
func NewECVerifyFilterer(address common.Address, filterer bind.ContractFilterer) (*ECVerifyFilterer, error)
NewECVerifyFilterer creates a new log filterer instance of ECVerify, bound to a specific deployed contract.
type ECVerifyRaw ¶
type ECVerifyRaw struct {
Contract *ECVerify // Generic contract binding to access the raw methods on
}
ECVerifyRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ECVerifyRaw) Call ¶
func (_ECVerify *ECVerifyRaw) 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 (*ECVerifyRaw) Transact ¶
func (_ECVerify *ECVerifyRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ECVerifyRaw) Transfer ¶
func (_ECVerify *ECVerifyRaw) 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 ECVerifySession ¶
type ECVerifySession struct { Contract *ECVerify // 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 }
ECVerifySession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
type ECVerifyTransactor ¶
type ECVerifyTransactor struct {
// contains filtered or unexported fields
}
ECVerifyTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewECVerifyTransactor ¶
func NewECVerifyTransactor(address common.Address, transactor bind.ContractTransactor) (*ECVerifyTransactor, error)
NewECVerifyTransactor creates a new write-only instance of ECVerify, bound to a specific deployed contract.
type ECVerifyTransactorRaw ¶
type ECVerifyTransactorRaw struct {
Contract *ECVerifyTransactor // Generic write-only contract binding to access the raw methods on
}
ECVerifyTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ECVerifyTransactorRaw) Transact ¶
func (_ECVerify *ECVerifyTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ECVerifyTransactorRaw) Transfer ¶
func (_ECVerify *ECVerifyTransactorRaw) 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 ECVerifyTransactorSession ¶
type ECVerifyTransactorSession struct { Contract *ECVerifyTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ECVerifyTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type SecretRegistry ¶
type SecretRegistry struct { SecretRegistryCaller // Read-only binding to the contract SecretRegistryTransactor // Write-only binding to the contract SecretRegistryFilterer // Log filterer for contract events }
SecretRegistry is an auto generated Go binding around an Ethereum contract.
func DeploySecretRegistry ¶
func DeploySecretRegistry(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SecretRegistry, error)
DeploySecretRegistry deploys a new Ethereum contract, binding an instance of SecretRegistry to it.
func NewSecretRegistry ¶
func NewSecretRegistry(address common.Address, backend bind.ContractBackend) (*SecretRegistry, error)
NewSecretRegistry creates a new instance of SecretRegistry, bound to a specific deployed contract.
type SecretRegistryCaller ¶
type SecretRegistryCaller struct {
// contains filtered or unexported fields
}
SecretRegistryCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSecretRegistryCaller ¶
func NewSecretRegistryCaller(address common.Address, caller bind.ContractCaller) (*SecretRegistryCaller, error)
NewSecretRegistryCaller creates a new read-only instance of SecretRegistry, bound to a specific deployed contract.
func (*SecretRegistryCaller) ContractVersion ¶
func (_SecretRegistry *SecretRegistryCaller) ContractVersion(opts *bind.CallOpts) (string, error)
ContractVersion is a free data retrieval call binding the contract method 0xb32c65c8.
Solidity: function contract_version() constant returns(string)
func (*SecretRegistryCaller) GetSecretRevealBlockHeight ¶
func (_SecretRegistry *SecretRegistryCaller) GetSecretRevealBlockHeight(opts *bind.CallOpts, secrethash [32]byte) (*big.Int, error)
GetSecretRevealBlockHeight is a free data retrieval call binding the contract method 0xc1f62946.
Solidity: function getSecretRevealBlockHeight(secrethash bytes32) constant returns(uint256)
func (*SecretRegistryCaller) SecrethashToBlock ¶
func (_SecretRegistry *SecretRegistryCaller) SecrethashToBlock(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
SecrethashToBlock is a free data retrieval call binding the contract method 0x97340309.
Solidity: function secrethash_to_block( bytes32) constant returns(uint256)
type SecretRegistryCallerRaw ¶
type SecretRegistryCallerRaw struct {
Contract *SecretRegistryCaller // Generic read-only contract binding to access the raw methods on
}
SecretRegistryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SecretRegistryCallerRaw) Call ¶
func (_SecretRegistry *SecretRegistryCallerRaw) 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 SecretRegistryCallerSession ¶
type SecretRegistryCallerSession struct { Contract *SecretRegistryCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
SecretRegistryCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*SecretRegistryCallerSession) ContractVersion ¶
func (_SecretRegistry *SecretRegistryCallerSession) ContractVersion() (string, error)
ContractVersion is a free data retrieval call binding the contract method 0xb32c65c8.
Solidity: function contract_version() constant returns(string)
func (*SecretRegistryCallerSession) GetSecretRevealBlockHeight ¶
func (_SecretRegistry *SecretRegistryCallerSession) GetSecretRevealBlockHeight(secrethash [32]byte) (*big.Int, error)
GetSecretRevealBlockHeight is a free data retrieval call binding the contract method 0xc1f62946.
Solidity: function getSecretRevealBlockHeight(secrethash bytes32) constant returns(uint256)
func (*SecretRegistryCallerSession) SecrethashToBlock ¶
func (_SecretRegistry *SecretRegistryCallerSession) SecrethashToBlock(arg0 [32]byte) (*big.Int, error)
SecrethashToBlock is a free data retrieval call binding the contract method 0x97340309.
Solidity: function secrethash_to_block( bytes32) constant returns(uint256)
type SecretRegistryFilterer ¶
type SecretRegistryFilterer struct {
// contains filtered or unexported fields
}
SecretRegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSecretRegistryFilterer ¶
func NewSecretRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*SecretRegistryFilterer, error)
NewSecretRegistryFilterer creates a new log filterer instance of SecretRegistry, bound to a specific deployed contract.
func (*SecretRegistryFilterer) FilterSecretRevealed ¶
func (_SecretRegistry *SecretRegistryFilterer) FilterSecretRevealed(opts *bind.FilterOpts, secret [][32]byte) (*SecretRegistrySecretRevealedIterator, error)
FilterSecretRevealed is a free log retrieval operation binding the contract event 0x9b7ddc883342824bd7ddbff103e7a69f8f2e60b96c075cd1b8b8b9713ecc75a4.
Solidity: e SecretRevealed(secret indexed bytes32)
func (*SecretRegistryFilterer) WatchSecretRevealed ¶
func (_SecretRegistry *SecretRegistryFilterer) WatchSecretRevealed(opts *bind.WatchOpts, sink chan<- *SecretRegistrySecretRevealed, secret [][32]byte) (event.Subscription, error)
WatchSecretRevealed is a free log subscription operation binding the contract event 0x9b7ddc883342824bd7ddbff103e7a69f8f2e60b96c075cd1b8b8b9713ecc75a4.
Solidity: e SecretRevealed(secret indexed bytes32)
type SecretRegistryRaw ¶
type SecretRegistryRaw struct {
Contract *SecretRegistry // Generic contract binding to access the raw methods on
}
SecretRegistryRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SecretRegistryRaw) Call ¶
func (_SecretRegistry *SecretRegistryRaw) 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 (*SecretRegistryRaw) Transact ¶
func (_SecretRegistry *SecretRegistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SecretRegistryRaw) Transfer ¶
func (_SecretRegistry *SecretRegistryRaw) 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 SecretRegistrySecretRevealed ¶
type SecretRegistrySecretRevealed struct { Secret [32]byte Raw types.Log // Blockchain specific contextual infos }
SecretRegistrySecretRevealed represents a SecretRevealed event raised by the SecretRegistry contract.
type SecretRegistrySecretRevealedIterator ¶
type SecretRegistrySecretRevealedIterator struct { Event *SecretRegistrySecretRevealed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SecretRegistrySecretRevealedIterator is returned from FilterSecretRevealed and is used to iterate over the raw logs and unpacked data for SecretRevealed events raised by the SecretRegistry contract.
func (*SecretRegistrySecretRevealedIterator) Close ¶
func (it *SecretRegistrySecretRevealedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SecretRegistrySecretRevealedIterator) Error ¶
func (it *SecretRegistrySecretRevealedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SecretRegistrySecretRevealedIterator) Next ¶
func (it *SecretRegistrySecretRevealedIterator) 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 SecretRegistrySession ¶
type SecretRegistrySession struct { Contract *SecretRegistry // 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 }
SecretRegistrySession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*SecretRegistrySession) ContractVersion ¶
func (_SecretRegistry *SecretRegistrySession) ContractVersion() (string, error)
ContractVersion is a free data retrieval call binding the contract method 0xb32c65c8.
Solidity: function contract_version() constant returns(string)
func (*SecretRegistrySession) GetSecretRevealBlockHeight ¶
func (_SecretRegistry *SecretRegistrySession) GetSecretRevealBlockHeight(secrethash [32]byte) (*big.Int, error)
GetSecretRevealBlockHeight is a free data retrieval call binding the contract method 0xc1f62946.
Solidity: function getSecretRevealBlockHeight(secrethash bytes32) constant returns(uint256)
func (*SecretRegistrySession) RegisterSecret ¶
func (_SecretRegistry *SecretRegistrySession) RegisterSecret(secret [32]byte) (*types.Transaction, error)
RegisterSecret is a paid mutator transaction binding the contract method 0x12ad8bfc.
Solidity: function registerSecret(secret bytes32) returns(bool)
func (*SecretRegistrySession) SecrethashToBlock ¶
func (_SecretRegistry *SecretRegistrySession) SecrethashToBlock(arg0 [32]byte) (*big.Int, error)
SecrethashToBlock is a free data retrieval call binding the contract method 0x97340309.
Solidity: function secrethash_to_block( bytes32) constant returns(uint256)
type SecretRegistryTransactor ¶
type SecretRegistryTransactor struct {
// contains filtered or unexported fields
}
SecretRegistryTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSecretRegistryTransactor ¶
func NewSecretRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*SecretRegistryTransactor, error)
NewSecretRegistryTransactor creates a new write-only instance of SecretRegistry, bound to a specific deployed contract.
func (*SecretRegistryTransactor) RegisterSecret ¶
func (_SecretRegistry *SecretRegistryTransactor) RegisterSecret(opts *bind.TransactOpts, secret [32]byte) (*types.Transaction, error)
RegisterSecret is a paid mutator transaction binding the contract method 0x12ad8bfc.
Solidity: function registerSecret(secret bytes32) returns(bool)
type SecretRegistryTransactorRaw ¶
type SecretRegistryTransactorRaw struct {
Contract *SecretRegistryTransactor // Generic write-only contract binding to access the raw methods on
}
SecretRegistryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SecretRegistryTransactorRaw) Transact ¶
func (_SecretRegistry *SecretRegistryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SecretRegistryTransactorRaw) Transfer ¶
func (_SecretRegistry *SecretRegistryTransactorRaw) 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 SecretRegistryTransactorSession ¶
type SecretRegistryTransactorSession struct { Contract *SecretRegistryTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SecretRegistryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*SecretRegistryTransactorSession) RegisterSecret ¶
func (_SecretRegistry *SecretRegistryTransactorSession) RegisterSecret(secret [32]byte) (*types.Transaction, error)
RegisterSecret is a paid mutator transaction binding the contract method 0x12ad8bfc.
Solidity: function registerSecret(secret bytes32) returns(bool)
type Token ¶
type Token struct { TokenCaller // Read-only binding to the contract TokenTransactor // Write-only binding to the contract TokenFilterer // Log filterer for contract events }
Token is an auto generated Go binding around an Ethereum contract.
func DeployToken ¶
func DeployToken(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Token, error)
DeployToken deploys a new Ethereum contract, binding an instance of Token to it.
type TokenApproval ¶
type TokenApproval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenApproval represents a Approval event raised by the Token contract.
type TokenApprovalIterator ¶
type TokenApprovalIterator struct { Event *TokenApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Token contract.
func (*TokenApprovalIterator) Close ¶
func (it *TokenApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenApprovalIterator) Error ¶
func (it *TokenApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenApprovalIterator) Next ¶
func (it *TokenApprovalIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type TokenCaller ¶
type TokenCaller struct {
// contains filtered or unexported fields
}
TokenCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTokenCaller ¶
func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*TokenCaller, error)
NewTokenCaller creates a new read-only instance of Token, bound to a specific deployed contract.
func (*TokenCaller) Allowance ¶
func (_Token *TokenCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(_owner address, _spender address) constant returns(remaining uint256)
func (*TokenCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(_owner address) constant returns(balance uint256)
func (*TokenCaller) Decimals ¶
func (_Token *TokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint8)
func (*TokenCaller) Name ¶
func (_Token *TokenCaller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(string)
func (*TokenCaller) Symbol ¶
func (_Token *TokenCaller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant returns(string)
func (*TokenCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(supply uint256)
type TokenCallerRaw ¶
type TokenCallerRaw struct {
Contract *TokenCaller // Generic read-only contract binding to access the raw methods on
}
TokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TokenCallerRaw) Call ¶
func (_Token *TokenCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type TokenCallerSession ¶
type TokenCallerSession struct { Contract *TokenCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TokenCallerSession) Allowance ¶
func (_Token *TokenCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(_owner address, _spender address) constant returns(remaining uint256)
func (*TokenCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(_owner address) constant returns(balance uint256)
func (*TokenCallerSession) Decimals ¶
func (_Token *TokenCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint8)
func (*TokenCallerSession) Name ¶
func (_Token *TokenCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(string)
func (*TokenCallerSession) Symbol ¶
func (_Token *TokenCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant returns(string)
func (*TokenCallerSession) TotalSupply ¶
func (_Token *TokenCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(supply uint256)
type TokenFilterer ¶
type TokenFilterer struct {
// contains filtered or unexported fields
}
TokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTokenFilterer ¶
func NewTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenFilterer, error)
NewTokenFilterer creates a new log filterer instance of Token, bound to a specific deployed contract.
func (*TokenFilterer) FilterApproval ¶
func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*TokenApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: e Approval(_owner indexed address, _spender indexed address, _value uint256)
func (*TokenFilterer) FilterTransfer ¶
func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*TokenTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: e Transfer(_from indexed address, _to indexed address, _value uint256)
func (*TokenFilterer) WatchApproval ¶
func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, _owner []common.Address, _spender []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: e Approval(_owner indexed address, _spender indexed address, _value uint256)
func (*TokenFilterer) WatchTransfer ¶
func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, _from []common.Address, _to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: e Transfer(_from indexed address, _to indexed address, _value uint256)
type TokenRaw ¶
type TokenRaw struct {
Contract *Token // Generic contract binding to access the raw methods on
}
TokenRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TokenRaw) Call ¶
func (_Token *TokenRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*TokenRaw) Transact ¶
func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenRaw) Transfer ¶
func (_Token *TokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type TokenSession ¶
type TokenSession struct { Contract *Token // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TokenSession) Allowance ¶
func (_Token *TokenSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(_owner address, _spender address) constant returns(remaining uint256)
func (*TokenSession) Approve ¶
func (_Token *TokenSession) 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 (*TokenSession) ApproveAndCall ¶
func (_Token *TokenSession) ApproveAndCall(_spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error)
ApproveAndCall is a paid mutator transaction binding the contract method 0xcae9ca51.
Solidity: function approveAndCall(_spender address, _amount uint256, _extraData bytes) returns(success bool)
func (*TokenSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(_owner address) constant returns(balance uint256)
func (*TokenSession) Decimals ¶
func (_Token *TokenSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint8)
func (*TokenSession) Name ¶
func (_Token *TokenSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(string)
func (*TokenSession) Symbol ¶
func (_Token *TokenSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant returns(string)
func (*TokenSession) TotalSupply ¶
func (_Token *TokenSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(supply uint256)
func (*TokenSession) Transfer ¶
func (_Token *TokenSession) Transfer(to common.Address, value *big.Int, data []byte) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xbe45fd62.
Solidity: function transfer(to address, value uint256, data bytes) returns()
func (*TokenSession) TransferFrom ¶
func (_Token *TokenSession) 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 TokenTransactor ¶
type TokenTransactor struct {
// contains filtered or unexported fields
}
TokenTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTokenTransactor ¶
func NewTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenTransactor, error)
NewTokenTransactor creates a new write-only instance of Token, bound to a specific deployed contract.
func (*TokenTransactor) Approve ¶
func (_Token *TokenTransactor) 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 (*TokenTransactor) ApproveAndCall ¶
func (_Token *TokenTransactor) ApproveAndCall(opts *bind.TransactOpts, _spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error)
ApproveAndCall is a paid mutator transaction binding the contract method 0xcae9ca51.
Solidity: function approveAndCall(_spender address, _amount uint256, _extraData bytes) returns(success bool)
func (*TokenTransactor) Transfer ¶
func (_Token *TokenTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int, data []byte) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xbe45fd62.
Solidity: function transfer(to address, value uint256, data bytes) returns()
func (*TokenTransactor) TransferFrom ¶
func (_Token *TokenTransactor) 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 TokenTransactorRaw ¶
type TokenTransactorRaw struct {
Contract *TokenTransactor // Generic write-only contract binding to access the raw methods on
}
TokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TokenTransactorRaw) Transact ¶
func (_Token *TokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenTransactorRaw) Transfer ¶
func (_Token *TokenTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type TokenTransactorSession ¶
type TokenTransactorSession struct { Contract *TokenTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TokenTransactorSession) Approve ¶
func (_Token *TokenTransactorSession) 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 (*TokenTransactorSession) ApproveAndCall ¶
func (_Token *TokenTransactorSession) ApproveAndCall(_spender common.Address, _amount *big.Int, _extraData []byte) (*types.Transaction, error)
ApproveAndCall is a paid mutator transaction binding the contract method 0xcae9ca51.
Solidity: function approveAndCall(_spender address, _amount uint256, _extraData bytes) returns(success bool)
func (*TokenTransactorSession) Transfer ¶
func (_Token *TokenTransactorSession) Transfer(to common.Address, value *big.Int, data []byte) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xbe45fd62.
Solidity: function transfer(to address, value uint256, data bytes) returns()
func (*TokenTransactorSession) TransferFrom ¶
func (_Token *TokenTransactorSession) 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 TokenTransfer ¶
type TokenTransfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenTransfer represents a Transfer event raised by the Token contract.
type TokenTransferIterator ¶
type TokenTransferIterator struct { Event *TokenTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Token contract.
func (*TokenTransferIterator) Close ¶
func (it *TokenTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenTransferIterator) Error ¶
func (it *TokenTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenTransferIterator) Next ¶
func (it *TokenTransferIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type TokensNetwork ¶
type TokensNetwork struct { TokensNetworkCaller // Read-only binding to the contract TokensNetworkTransactor // Write-only binding to the contract TokensNetworkFilterer // Log filterer for contract events }
TokensNetwork is an auto generated Go binding around an Ethereum contract.
func DeployTokensNetwork ¶
func DeployTokensNetwork(auth *bind.TransactOpts, backend bind.ContractBackend, _chain_id *big.Int) (common.Address, *types.Transaction, *TokensNetwork, error)
DeployTokensNetwork deploys a new Ethereum contract, binding an instance of TokensNetwork to it.
func NewTokensNetwork ¶
func NewTokensNetwork(address common.Address, backend bind.ContractBackend) (*TokensNetwork, error)
NewTokensNetwork creates a new instance of TokensNetwork, bound to a specific deployed contract.
type TokensNetworkBalanceProofUpdated ¶
type TokensNetworkBalanceProofUpdated struct { ChannelIdentifier [32]byte Participant common.Address Locksroot [32]byte TransferredAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokensNetworkBalanceProofUpdated represents a BalanceProofUpdated event raised by the TokensNetwork contract.
type TokensNetworkBalanceProofUpdatedIterator ¶
type TokensNetworkBalanceProofUpdatedIterator struct { Event *TokensNetworkBalanceProofUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokensNetworkBalanceProofUpdatedIterator is returned from FilterBalanceProofUpdated and is used to iterate over the raw logs and unpacked data for BalanceProofUpdated events raised by the TokensNetwork contract.
func (*TokensNetworkBalanceProofUpdatedIterator) Close ¶
func (it *TokensNetworkBalanceProofUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokensNetworkBalanceProofUpdatedIterator) Error ¶
func (it *TokensNetworkBalanceProofUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokensNetworkBalanceProofUpdatedIterator) Next ¶
func (it *TokensNetworkBalanceProofUpdatedIterator) 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 TokensNetworkCaller ¶
type TokensNetworkCaller struct {
// contains filtered or unexported fields
}
TokensNetworkCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTokensNetworkCaller ¶
func NewTokensNetworkCaller(address common.Address, caller bind.ContractCaller) (*TokensNetworkCaller, error)
NewTokensNetworkCaller creates a new read-only instance of TokensNetwork, bound to a specific deployed contract.
func (*TokensNetworkCaller) ChainId ¶
ChainId is a free data retrieval call binding the contract method 0x3af973b1.
Solidity: function chain_id() constant returns(uint256)
func (*TokensNetworkCaller) Channels ¶
func (_TokensNetwork *TokensNetworkCaller) Channels(opts *bind.CallOpts, arg0 [32]byte) (struct { SettleTimeout uint64 SettleBlockNumber uint64 OpenBlockNumber uint64 State uint8 }, error)
Channels is a free data retrieval call binding the contract method 0x7a7ebd7b.
Solidity: function channels( bytes32) constant returns(settle_timeout uint64, settle_block_number uint64, open_block_number uint64, state uint8)
func (*TokensNetworkCaller) ContractExists ¶
func (_TokensNetwork *TokensNetworkCaller) ContractExists(opts *bind.CallOpts, contract_address common.Address) (bool, error)
ContractExists is a free data retrieval call binding the contract method 0x7709bc78.
Solidity: function contractExists(contract_address address) constant returns(bool)
func (*TokensNetworkCaller) ContractVersion ¶
func (_TokensNetwork *TokensNetworkCaller) ContractVersion(opts *bind.CallOpts) (string, error)
ContractVersion is a free data retrieval call binding the contract method 0xb32c65c8.
Solidity: function contract_version() constant returns(string)
func (*TokensNetworkCaller) GetChannelInfo ¶
func (_TokensNetwork *TokensNetworkCaller) GetChannelInfo(opts *bind.CallOpts, token common.Address, participant1 common.Address, participant2 common.Address) ([32]byte, uint64, uint64, uint8, uint64, error)
GetChannelInfo is a free data retrieval call binding the contract method 0x385cb489.
Solidity: function getChannelInfo(token address, participant1 address, participant2 address) constant returns(bytes32, uint64, uint64, uint8, uint64)
func (*TokensNetworkCaller) GetChannelInfoByChannelIdentifier ¶
func (_TokensNetwork *TokensNetworkCaller) GetChannelInfoByChannelIdentifier(opts *bind.CallOpts, channel_identifier [32]byte) (uint64, uint64, uint8, uint64, error)
GetChannelInfoByChannelIdentifier is a free data retrieval call binding the contract method 0x9fe5b187.
Solidity: function getChannelInfoByChannelIdentifier(channel_identifier bytes32) constant returns(uint64, uint64, uint8, uint64)
func (*TokensNetworkCaller) GetChannelParticipantInfo ¶
func (_TokensNetwork *TokensNetworkCaller) GetChannelParticipantInfo(opts *bind.CallOpts, token common.Address, participant common.Address, partner common.Address) (*big.Int, [24]byte, uint64, error)
GetChannelParticipantInfo is a free data retrieval call binding the contract method 0xf28591c3.
Solidity: function getChannelParticipantInfo(token address, participant address, partner address) constant returns(uint256, bytes24, uint64)
func (*TokensNetworkCaller) PunishBlockNumber ¶
func (_TokensNetwork *TokensNetworkCaller) PunishBlockNumber(opts *bind.CallOpts) (uint64, error)
PunishBlockNumber is a free data retrieval call binding the contract method 0x9375cff2.
Solidity: function punish_block_number() constant returns(uint64)
func (*TokensNetworkCaller) QueryUnlockedLocks ¶
func (_TokensNetwork *TokensNetworkCaller) QueryUnlockedLocks(opts *bind.CallOpts, token common.Address, participant common.Address, partner common.Address, lockhash [32]byte) (bool, error)
QueryUnlockedLocks is a free data retrieval call binding the contract method 0x2c3ddceb.
Solidity: function queryUnlockedLocks(token address, participant address, partner address, lockhash bytes32) constant returns(bool)
func (*TokensNetworkCaller) RegisteredToken ¶
func (_TokensNetwork *TokensNetworkCaller) RegisteredToken(opts *bind.CallOpts, arg0 common.Address) (bool, error)
RegisteredToken is a free data retrieval call binding the contract method 0x7541085c.
Solidity: function registered_token( address) constant returns(bool)
func (*TokensNetworkCaller) SecretRegistry ¶
func (_TokensNetwork *TokensNetworkCaller) SecretRegistry(opts *bind.CallOpts) (common.Address, error)
SecretRegistry is a free data retrieval call binding the contract method 0x24d73a93.
Solidity: function secret_registry() constant returns(address)
func (*TokensNetworkCaller) SignaturePrefix ¶
func (_TokensNetwork *TokensNetworkCaller) SignaturePrefix(opts *bind.CallOpts) (string, error)
SignaturePrefix is a free data retrieval call binding the contract method 0x87234237.
Solidity: function signature_prefix() constant returns(string)
type TokensNetworkCallerRaw ¶
type TokensNetworkCallerRaw struct {
Contract *TokensNetworkCaller // Generic read-only contract binding to access the raw methods on
}
TokensNetworkCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TokensNetworkCallerRaw) Call ¶
func (_TokensNetwork *TokensNetworkCallerRaw) 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 TokensNetworkCallerSession ¶
type TokensNetworkCallerSession struct { Contract *TokensNetworkCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TokensNetworkCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TokensNetworkCallerSession) ChainId ¶
func (_TokensNetwork *TokensNetworkCallerSession) ChainId() (*big.Int, error)
ChainId is a free data retrieval call binding the contract method 0x3af973b1.
Solidity: function chain_id() constant returns(uint256)
func (*TokensNetworkCallerSession) Channels ¶
func (_TokensNetwork *TokensNetworkCallerSession) Channels(arg0 [32]byte) (struct { SettleTimeout uint64 SettleBlockNumber uint64 OpenBlockNumber uint64 State uint8 }, error)
Channels is a free data retrieval call binding the contract method 0x7a7ebd7b.
Solidity: function channels( bytes32) constant returns(settle_timeout uint64, settle_block_number uint64, open_block_number uint64, state uint8)
func (*TokensNetworkCallerSession) ContractExists ¶
func (_TokensNetwork *TokensNetworkCallerSession) ContractExists(contract_address common.Address) (bool, error)
ContractExists is a free data retrieval call binding the contract method 0x7709bc78.
Solidity: function contractExists(contract_address address) constant returns(bool)
func (*TokensNetworkCallerSession) ContractVersion ¶
func (_TokensNetwork *TokensNetworkCallerSession) ContractVersion() (string, error)
ContractVersion is a free data retrieval call binding the contract method 0xb32c65c8.
Solidity: function contract_version() constant returns(string)
func (*TokensNetworkCallerSession) GetChannelInfo ¶
func (_TokensNetwork *TokensNetworkCallerSession) GetChannelInfo(token common.Address, participant1 common.Address, participant2 common.Address) ([32]byte, uint64, uint64, uint8, uint64, error)
GetChannelInfo is a free data retrieval call binding the contract method 0x385cb489.
Solidity: function getChannelInfo(token address, participant1 address, participant2 address) constant returns(bytes32, uint64, uint64, uint8, uint64)
func (*TokensNetworkCallerSession) GetChannelInfoByChannelIdentifier ¶
func (_TokensNetwork *TokensNetworkCallerSession) GetChannelInfoByChannelIdentifier(channel_identifier [32]byte) (uint64, uint64, uint8, uint64, error)
GetChannelInfoByChannelIdentifier is a free data retrieval call binding the contract method 0x9fe5b187.
Solidity: function getChannelInfoByChannelIdentifier(channel_identifier bytes32) constant returns(uint64, uint64, uint8, uint64)
func (*TokensNetworkCallerSession) GetChannelParticipantInfo ¶
func (_TokensNetwork *TokensNetworkCallerSession) GetChannelParticipantInfo(token common.Address, participant common.Address, partner common.Address) (*big.Int, [24]byte, uint64, error)
GetChannelParticipantInfo is a free data retrieval call binding the contract method 0xf28591c3.
Solidity: function getChannelParticipantInfo(token address, participant address, partner address) constant returns(uint256, bytes24, uint64)
func (*TokensNetworkCallerSession) PunishBlockNumber ¶
func (_TokensNetwork *TokensNetworkCallerSession) PunishBlockNumber() (uint64, error)
PunishBlockNumber is a free data retrieval call binding the contract method 0x9375cff2.
Solidity: function punish_block_number() constant returns(uint64)
func (*TokensNetworkCallerSession) QueryUnlockedLocks ¶
func (_TokensNetwork *TokensNetworkCallerSession) QueryUnlockedLocks(token common.Address, participant common.Address, partner common.Address, lockhash [32]byte) (bool, error)
QueryUnlockedLocks is a free data retrieval call binding the contract method 0x2c3ddceb.
Solidity: function queryUnlockedLocks(token address, participant address, partner address, lockhash bytes32) constant returns(bool)
func (*TokensNetworkCallerSession) RegisteredToken ¶
func (_TokensNetwork *TokensNetworkCallerSession) RegisteredToken(arg0 common.Address) (bool, error)
RegisteredToken is a free data retrieval call binding the contract method 0x7541085c.
Solidity: function registered_token( address) constant returns(bool)
func (*TokensNetworkCallerSession) SecretRegistry ¶
func (_TokensNetwork *TokensNetworkCallerSession) SecretRegistry() (common.Address, error)
SecretRegistry is a free data retrieval call binding the contract method 0x24d73a93.
Solidity: function secret_registry() constant returns(address)
func (*TokensNetworkCallerSession) SignaturePrefix ¶
func (_TokensNetwork *TokensNetworkCallerSession) SignaturePrefix() (string, error)
SignaturePrefix is a free data retrieval call binding the contract method 0x87234237.
Solidity: function signature_prefix() constant returns(string)
type TokensNetworkChannelClosed ¶
type TokensNetworkChannelClosed struct { ChannelIdentifier [32]byte ClosingParticipant common.Address Locksroot [32]byte TransferredAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokensNetworkChannelClosed represents a ChannelClosed event raised by the TokensNetwork contract.
type TokensNetworkChannelClosedIterator ¶
type TokensNetworkChannelClosedIterator struct { Event *TokensNetworkChannelClosed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokensNetworkChannelClosedIterator is returned from FilterChannelClosed and is used to iterate over the raw logs and unpacked data for ChannelClosed events raised by the TokensNetwork contract.
func (*TokensNetworkChannelClosedIterator) Close ¶
func (it *TokensNetworkChannelClosedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokensNetworkChannelClosedIterator) Error ¶
func (it *TokensNetworkChannelClosedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokensNetworkChannelClosedIterator) Next ¶
func (it *TokensNetworkChannelClosedIterator) 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 TokensNetworkChannelCooperativeSettled ¶
type TokensNetworkChannelCooperativeSettled struct { ChannelIdentifier [32]byte Participant1Amount *big.Int Participant2Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokensNetworkChannelCooperativeSettled represents a ChannelCooperativeSettled event raised by the TokensNetwork contract.
type TokensNetworkChannelCooperativeSettledIterator ¶
type TokensNetworkChannelCooperativeSettledIterator struct { Event *TokensNetworkChannelCooperativeSettled // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokensNetworkChannelCooperativeSettledIterator is returned from FilterChannelCooperativeSettled and is used to iterate over the raw logs and unpacked data for ChannelCooperativeSettled events raised by the TokensNetwork contract.
func (*TokensNetworkChannelCooperativeSettledIterator) Close ¶
func (it *TokensNetworkChannelCooperativeSettledIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokensNetworkChannelCooperativeSettledIterator) Error ¶
func (it *TokensNetworkChannelCooperativeSettledIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokensNetworkChannelCooperativeSettledIterator) Next ¶
func (it *TokensNetworkChannelCooperativeSettledIterator) 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 TokensNetworkChannelNewDeposit ¶
type TokensNetworkChannelNewDeposit struct { ChannelIdentifier [32]byte Participant common.Address TotalDeposit *big.Int Raw types.Log // Blockchain specific contextual infos }
TokensNetworkChannelNewDeposit represents a ChannelNewDeposit event raised by the TokensNetwork contract.
type TokensNetworkChannelNewDepositIterator ¶
type TokensNetworkChannelNewDepositIterator struct { Event *TokensNetworkChannelNewDeposit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokensNetworkChannelNewDepositIterator is returned from FilterChannelNewDeposit and is used to iterate over the raw logs and unpacked data for ChannelNewDeposit events raised by the TokensNetwork contract.
func (*TokensNetworkChannelNewDepositIterator) Close ¶
func (it *TokensNetworkChannelNewDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokensNetworkChannelNewDepositIterator) Error ¶
func (it *TokensNetworkChannelNewDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokensNetworkChannelNewDepositIterator) Next ¶
func (it *TokensNetworkChannelNewDepositIterator) 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 TokensNetworkChannelOpenedAndDeposit ¶
type TokensNetworkChannelOpenedAndDeposit struct { Token common.Address Participant common.Address Partner common.Address SettleTimeout uint64 Participant1Deposit *big.Int Raw types.Log // Blockchain specific contextual infos }
TokensNetworkChannelOpenedAndDeposit represents a ChannelOpenedAndDeposit event raised by the TokensNetwork contract.
type TokensNetworkChannelOpenedAndDepositIterator ¶
type TokensNetworkChannelOpenedAndDepositIterator struct { Event *TokensNetworkChannelOpenedAndDeposit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokensNetworkChannelOpenedAndDepositIterator is returned from FilterChannelOpenedAndDeposit and is used to iterate over the raw logs and unpacked data for ChannelOpenedAndDeposit events raised by the TokensNetwork contract.
func (*TokensNetworkChannelOpenedAndDepositIterator) Close ¶
func (it *TokensNetworkChannelOpenedAndDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokensNetworkChannelOpenedAndDepositIterator) Error ¶
func (it *TokensNetworkChannelOpenedAndDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokensNetworkChannelOpenedAndDepositIterator) Next ¶
func (it *TokensNetworkChannelOpenedAndDepositIterator) 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 TokensNetworkChannelPunished ¶
type TokensNetworkChannelPunished struct { ChannelIdentifier [32]byte Beneficiary common.Address Raw types.Log // Blockchain specific contextual infos }
TokensNetworkChannelPunished represents a ChannelPunished event raised by the TokensNetwork contract.
type TokensNetworkChannelPunishedIterator ¶
type TokensNetworkChannelPunishedIterator struct { Event *TokensNetworkChannelPunished // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokensNetworkChannelPunishedIterator is returned from FilterChannelPunished and is used to iterate over the raw logs and unpacked data for ChannelPunished events raised by the TokensNetwork contract.
func (*TokensNetworkChannelPunishedIterator) Close ¶
func (it *TokensNetworkChannelPunishedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokensNetworkChannelPunishedIterator) Error ¶
func (it *TokensNetworkChannelPunishedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokensNetworkChannelPunishedIterator) Next ¶
func (it *TokensNetworkChannelPunishedIterator) 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 TokensNetworkChannelSettled ¶
type TokensNetworkChannelSettled struct { ChannelIdentifier [32]byte Participant1Amount *big.Int Participant2Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokensNetworkChannelSettled represents a ChannelSettled event raised by the TokensNetwork contract.
type TokensNetworkChannelSettledIterator ¶
type TokensNetworkChannelSettledIterator struct { Event *TokensNetworkChannelSettled // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokensNetworkChannelSettledIterator is returned from FilterChannelSettled and is used to iterate over the raw logs and unpacked data for ChannelSettled events raised by the TokensNetwork contract.
func (*TokensNetworkChannelSettledIterator) Close ¶
func (it *TokensNetworkChannelSettledIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokensNetworkChannelSettledIterator) Error ¶
func (it *TokensNetworkChannelSettledIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokensNetworkChannelSettledIterator) Next ¶
func (it *TokensNetworkChannelSettledIterator) 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 TokensNetworkChannelUnlocked ¶
type TokensNetworkChannelUnlocked struct { ChannelIdentifier [32]byte PayerParticipant common.Address Lockhash [32]byte TransferredAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokensNetworkChannelUnlocked represents a ChannelUnlocked event raised by the TokensNetwork contract.
type TokensNetworkChannelUnlockedIterator ¶
type TokensNetworkChannelUnlockedIterator struct { Event *TokensNetworkChannelUnlocked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokensNetworkChannelUnlockedIterator is returned from FilterChannelUnlocked and is used to iterate over the raw logs and unpacked data for ChannelUnlocked events raised by the TokensNetwork contract.
func (*TokensNetworkChannelUnlockedIterator) Close ¶
func (it *TokensNetworkChannelUnlockedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokensNetworkChannelUnlockedIterator) Error ¶
func (it *TokensNetworkChannelUnlockedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokensNetworkChannelUnlockedIterator) Next ¶
func (it *TokensNetworkChannelUnlockedIterator) 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 TokensNetworkChannelWithdraw ¶
type TokensNetworkChannelWithdraw struct { ChannelIdentifier [32]byte Participant1 common.Address Participant1Balance *big.Int Participant2 common.Address Participant2Balance *big.Int Raw types.Log // Blockchain specific contextual infos }
TokensNetworkChannelWithdraw represents a ChannelWithdraw event raised by the TokensNetwork contract.
type TokensNetworkChannelWithdrawIterator ¶
type TokensNetworkChannelWithdrawIterator struct { Event *TokensNetworkChannelWithdraw // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokensNetworkChannelWithdrawIterator is returned from FilterChannelWithdraw and is used to iterate over the raw logs and unpacked data for ChannelWithdraw events raised by the TokensNetwork contract.
func (*TokensNetworkChannelWithdrawIterator) Close ¶
func (it *TokensNetworkChannelWithdrawIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokensNetworkChannelWithdrawIterator) Error ¶
func (it *TokensNetworkChannelWithdrawIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokensNetworkChannelWithdrawIterator) Next ¶
func (it *TokensNetworkChannelWithdrawIterator) 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 TokensNetworkFilterer ¶
type TokensNetworkFilterer struct {
// contains filtered or unexported fields
}
TokensNetworkFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTokensNetworkFilterer ¶
func NewTokensNetworkFilterer(address common.Address, filterer bind.ContractFilterer) (*TokensNetworkFilterer, error)
NewTokensNetworkFilterer creates a new log filterer instance of TokensNetwork, bound to a specific deployed contract.
func (*TokensNetworkFilterer) FilterBalanceProofUpdated ¶
func (_TokensNetwork *TokensNetworkFilterer) FilterBalanceProofUpdated(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkBalanceProofUpdatedIterator, error)
FilterBalanceProofUpdated is a free log retrieval operation binding the contract event 0x910c9237f4197a18340110a181e8fb775496506a007a94b46f9f80f2a35918f9.
Solidity: e BalanceProofUpdated(channel_identifier indexed bytes32, participant address, locksroot bytes32, transferred_amount uint256)
func (*TokensNetworkFilterer) FilterChannelClosed ¶
func (_TokensNetwork *TokensNetworkFilterer) FilterChannelClosed(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelClosedIterator, error)
FilterChannelClosed is a free log retrieval operation binding the contract event 0x69610baaace24c039f891a11b42c0b1df1496ab0db38b0c4ee4ed33d6d53da1a.
Solidity: e ChannelClosed(channel_identifier indexed bytes32, closing_participant address, locksroot bytes32, transferred_amount uint256)
func (*TokensNetworkFilterer) FilterChannelCooperativeSettled ¶
func (_TokensNetwork *TokensNetworkFilterer) FilterChannelCooperativeSettled(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelCooperativeSettledIterator, error)
FilterChannelCooperativeSettled is a free log retrieval operation binding the contract event 0xfb2f4bc0fb2e0f1001f78d15e81a2e1981f262d31e8bd72309e26cc63bf7bb02.
Solidity: e ChannelCooperativeSettled(channel_identifier indexed bytes32, participant1_amount uint256, participant2_amount uint256)
func (*TokensNetworkFilterer) FilterChannelNewDeposit ¶
func (_TokensNetwork *TokensNetworkFilterer) FilterChannelNewDeposit(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelNewDepositIterator, error)
FilterChannelNewDeposit is a free log retrieval operation binding the contract event 0x0346e981e2bfa2366dc2307a8f1fa24779830a01121b1275fe565c6b98bb4d34.
Solidity: e ChannelNewDeposit(channel_identifier indexed bytes32, participant address, total_deposit uint256)
func (*TokensNetworkFilterer) FilterChannelOpenedAndDeposit ¶
func (_TokensNetwork *TokensNetworkFilterer) FilterChannelOpenedAndDeposit(opts *bind.FilterOpts, token []common.Address) (*TokensNetworkChannelOpenedAndDepositIterator, error)
FilterChannelOpenedAndDeposit is a free log retrieval operation binding the contract event 0xc3a8dbc3d2c201f4a985c395dff13cbcf880e0652f34061448c3363c23a9d2db.
Solidity: e ChannelOpenedAndDeposit(token indexed address, participant address, partner address, settle_timeout uint64, participant1_deposit uint256)
func (*TokensNetworkFilterer) FilterChannelPunished ¶
func (_TokensNetwork *TokensNetworkFilterer) FilterChannelPunished(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelPunishedIterator, error)
FilterChannelPunished is a free log retrieval operation binding the contract event 0xa913b8478dcdecf113bad71030afc079c268eb9abc88e45615f438824127ae00.
Solidity: e ChannelPunished(channel_identifier indexed bytes32, beneficiary address)
func (*TokensNetworkFilterer) FilterChannelSettled ¶
func (_TokensNetwork *TokensNetworkFilterer) FilterChannelSettled(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelSettledIterator, error)
FilterChannelSettled is a free log retrieval operation binding the contract event 0xf94fb5c0628a82dc90648e8dc5e983f632633b0d26603d64e8cc042ca0790aa4.
Solidity: e ChannelSettled(channel_identifier indexed bytes32, participant1_amount uint256, participant2_amount uint256)
func (*TokensNetworkFilterer) FilterChannelUnlocked ¶
func (_TokensNetwork *TokensNetworkFilterer) FilterChannelUnlocked(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelUnlockedIterator, error)
FilterChannelUnlocked is a free log retrieval operation binding the contract event 0x9e3b094fde58f3a83bd8b77d0a995fdb71f3169c6fa7e6d386e9f5902841e5ff.
Solidity: e ChannelUnlocked(channel_identifier indexed bytes32, payer_participant address, lockhash bytes32, transferred_amount uint256)
func (*TokensNetworkFilterer) FilterChannelWithdraw ¶
func (_TokensNetwork *TokensNetworkFilterer) FilterChannelWithdraw(opts *bind.FilterOpts, channel_identifier [][32]byte) (*TokensNetworkChannelWithdrawIterator, error)
FilterChannelWithdraw is a free log retrieval operation binding the contract event 0xdc5ff4ab383e66679a382f376c0e80534f51f3f3a398add646422cd81f5f815d.
Solidity: e ChannelWithdraw(channel_identifier indexed bytes32, participant1 address, participant1_balance uint256, participant2 address, participant2_balance uint256)
func (*TokensNetworkFilterer) FilterTokenNetworkCreated ¶
func (_TokensNetwork *TokensNetworkFilterer) FilterTokenNetworkCreated(opts *bind.FilterOpts, token_address []common.Address) (*TokensNetworkTokenNetworkCreatedIterator, error)
FilterTokenNetworkCreated is a free log retrieval operation binding the contract event 0x5210099284eeab0088ae17e05fea8ee641c34757be9270872d6404ba6dcbe003.
Solidity: e TokenNetworkCreated(token_address indexed address)
func (*TokensNetworkFilterer) WatchBalanceProofUpdated ¶
func (_TokensNetwork *TokensNetworkFilterer) WatchBalanceProofUpdated(opts *bind.WatchOpts, sink chan<- *TokensNetworkBalanceProofUpdated, channel_identifier [][32]byte) (event.Subscription, error)
WatchBalanceProofUpdated is a free log subscription operation binding the contract event 0x910c9237f4197a18340110a181e8fb775496506a007a94b46f9f80f2a35918f9.
Solidity: e BalanceProofUpdated(channel_identifier indexed bytes32, participant address, locksroot bytes32, transferred_amount uint256)
func (*TokensNetworkFilterer) WatchChannelClosed ¶
func (_TokensNetwork *TokensNetworkFilterer) WatchChannelClosed(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelClosed, channel_identifier [][32]byte) (event.Subscription, error)
WatchChannelClosed is a free log subscription operation binding the contract event 0x69610baaace24c039f891a11b42c0b1df1496ab0db38b0c4ee4ed33d6d53da1a.
Solidity: e ChannelClosed(channel_identifier indexed bytes32, closing_participant address, locksroot bytes32, transferred_amount uint256)
func (*TokensNetworkFilterer) WatchChannelCooperativeSettled ¶
func (_TokensNetwork *TokensNetworkFilterer) WatchChannelCooperativeSettled(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelCooperativeSettled, channel_identifier [][32]byte) (event.Subscription, error)
WatchChannelCooperativeSettled is a free log subscription operation binding the contract event 0xfb2f4bc0fb2e0f1001f78d15e81a2e1981f262d31e8bd72309e26cc63bf7bb02.
Solidity: e ChannelCooperativeSettled(channel_identifier indexed bytes32, participant1_amount uint256, participant2_amount uint256)
func (*TokensNetworkFilterer) WatchChannelNewDeposit ¶
func (_TokensNetwork *TokensNetworkFilterer) WatchChannelNewDeposit(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelNewDeposit, channel_identifier [][32]byte) (event.Subscription, error)
WatchChannelNewDeposit is a free log subscription operation binding the contract event 0x0346e981e2bfa2366dc2307a8f1fa24779830a01121b1275fe565c6b98bb4d34.
Solidity: e ChannelNewDeposit(channel_identifier indexed bytes32, participant address, total_deposit uint256)
func (*TokensNetworkFilterer) WatchChannelOpenedAndDeposit ¶
func (_TokensNetwork *TokensNetworkFilterer) WatchChannelOpenedAndDeposit(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelOpenedAndDeposit, token []common.Address) (event.Subscription, error)
WatchChannelOpenedAndDeposit is a free log subscription operation binding the contract event 0xc3a8dbc3d2c201f4a985c395dff13cbcf880e0652f34061448c3363c23a9d2db.
Solidity: e ChannelOpenedAndDeposit(token indexed address, participant address, partner address, settle_timeout uint64, participant1_deposit uint256)
func (*TokensNetworkFilterer) WatchChannelPunished ¶
func (_TokensNetwork *TokensNetworkFilterer) WatchChannelPunished(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelPunished, channel_identifier [][32]byte) (event.Subscription, error)
WatchChannelPunished is a free log subscription operation binding the contract event 0xa913b8478dcdecf113bad71030afc079c268eb9abc88e45615f438824127ae00.
Solidity: e ChannelPunished(channel_identifier indexed bytes32, beneficiary address)
func (*TokensNetworkFilterer) WatchChannelSettled ¶
func (_TokensNetwork *TokensNetworkFilterer) WatchChannelSettled(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelSettled, channel_identifier [][32]byte) (event.Subscription, error)
WatchChannelSettled is a free log subscription operation binding the contract event 0xf94fb5c0628a82dc90648e8dc5e983f632633b0d26603d64e8cc042ca0790aa4.
Solidity: e ChannelSettled(channel_identifier indexed bytes32, participant1_amount uint256, participant2_amount uint256)
func (*TokensNetworkFilterer) WatchChannelUnlocked ¶
func (_TokensNetwork *TokensNetworkFilterer) WatchChannelUnlocked(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelUnlocked, channel_identifier [][32]byte) (event.Subscription, error)
WatchChannelUnlocked is a free log subscription operation binding the contract event 0x9e3b094fde58f3a83bd8b77d0a995fdb71f3169c6fa7e6d386e9f5902841e5ff.
Solidity: e ChannelUnlocked(channel_identifier indexed bytes32, payer_participant address, lockhash bytes32, transferred_amount uint256)
func (*TokensNetworkFilterer) WatchChannelWithdraw ¶
func (_TokensNetwork *TokensNetworkFilterer) WatchChannelWithdraw(opts *bind.WatchOpts, sink chan<- *TokensNetworkChannelWithdraw, channel_identifier [][32]byte) (event.Subscription, error)
WatchChannelWithdraw is a free log subscription operation binding the contract event 0xdc5ff4ab383e66679a382f376c0e80534f51f3f3a398add646422cd81f5f815d.
Solidity: e ChannelWithdraw(channel_identifier indexed bytes32, participant1 address, participant1_balance uint256, participant2 address, participant2_balance uint256)
func (*TokensNetworkFilterer) WatchTokenNetworkCreated ¶
func (_TokensNetwork *TokensNetworkFilterer) WatchTokenNetworkCreated(opts *bind.WatchOpts, sink chan<- *TokensNetworkTokenNetworkCreated, token_address []common.Address) (event.Subscription, error)
WatchTokenNetworkCreated is a free log subscription operation binding the contract event 0x5210099284eeab0088ae17e05fea8ee641c34757be9270872d6404ba6dcbe003.
Solidity: e TokenNetworkCreated(token_address indexed address)
type TokensNetworkRaw ¶
type TokensNetworkRaw struct {
Contract *TokensNetwork // Generic contract binding to access the raw methods on
}
TokensNetworkRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TokensNetworkRaw) Call ¶
func (_TokensNetwork *TokensNetworkRaw) 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 (*TokensNetworkRaw) Transact ¶
func (_TokensNetwork *TokensNetworkRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokensNetworkRaw) Transfer ¶
func (_TokensNetwork *TokensNetworkRaw) 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 TokensNetworkSession ¶
type TokensNetworkSession struct { Contract *TokensNetwork // 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 }
TokensNetworkSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TokensNetworkSession) ChainId ¶
func (_TokensNetwork *TokensNetworkSession) ChainId() (*big.Int, error)
ChainId is a free data retrieval call binding the contract method 0x3af973b1.
Solidity: function chain_id() constant returns(uint256)
func (*TokensNetworkSession) Channels ¶
func (_TokensNetwork *TokensNetworkSession) Channels(arg0 [32]byte) (struct { SettleTimeout uint64 SettleBlockNumber uint64 OpenBlockNumber uint64 State uint8 }, error)
Channels is a free data retrieval call binding the contract method 0x7a7ebd7b.
Solidity: function channels( bytes32) constant returns(settle_timeout uint64, settle_block_number uint64, open_block_number uint64, state uint8)
func (*TokensNetworkSession) ContractExists ¶
func (_TokensNetwork *TokensNetworkSession) ContractExists(contract_address common.Address) (bool, error)
ContractExists is a free data retrieval call binding the contract method 0x7709bc78.
Solidity: function contractExists(contract_address address) constant returns(bool)
func (*TokensNetworkSession) ContractVersion ¶
func (_TokensNetwork *TokensNetworkSession) ContractVersion() (string, error)
ContractVersion is a free data retrieval call binding the contract method 0xb32c65c8.
Solidity: function contract_version() constant returns(string)
func (*TokensNetworkSession) CooperativeSettle ¶
func (_TokensNetwork *TokensNetworkSession) CooperativeSettle(token common.Address, participant1 common.Address, participant1_balance *big.Int, participant2 common.Address, participant2_balance *big.Int, participant1_signature []byte, participant2_signature []byte) (*types.Transaction, error)
CooperativeSettle is a paid mutator transaction binding the contract method 0xc9c598e4.
Solidity: function cooperativeSettle(token address, participant1 address, participant1_balance uint256, participant2 address, participant2_balance uint256, participant1_signature bytes, participant2_signature bytes) returns()
func (*TokensNetworkSession) Deposit ¶
func (_TokensNetwork *TokensNetworkSession) Deposit(token common.Address, participant common.Address, partner common.Address, amount *big.Int, settle_timeout uint64) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xe1b77e4e.
Solidity: function deposit(token address, participant address, partner address, amount uint256, settle_timeout uint64) returns()
func (*TokensNetworkSession) GetChannelInfo ¶
func (_TokensNetwork *TokensNetworkSession) GetChannelInfo(token common.Address, participant1 common.Address, participant2 common.Address) ([32]byte, uint64, uint64, uint8, uint64, error)
GetChannelInfo is a free data retrieval call binding the contract method 0x385cb489.
Solidity: function getChannelInfo(token address, participant1 address, participant2 address) constant returns(bytes32, uint64, uint64, uint8, uint64)
func (*TokensNetworkSession) GetChannelInfoByChannelIdentifier ¶
func (_TokensNetwork *TokensNetworkSession) GetChannelInfoByChannelIdentifier(channel_identifier [32]byte) (uint64, uint64, uint8, uint64, error)
GetChannelInfoByChannelIdentifier is a free data retrieval call binding the contract method 0x9fe5b187.
Solidity: function getChannelInfoByChannelIdentifier(channel_identifier bytes32) constant returns(uint64, uint64, uint8, uint64)
func (*TokensNetworkSession) GetChannelParticipantInfo ¶
func (_TokensNetwork *TokensNetworkSession) GetChannelParticipantInfo(token common.Address, participant common.Address, partner common.Address) (*big.Int, [24]byte, uint64, error)
GetChannelParticipantInfo is a free data retrieval call binding the contract method 0xf28591c3.
Solidity: function getChannelParticipantInfo(token address, participant address, partner address) constant returns(uint256, bytes24, uint64)
func (*TokensNetworkSession) PrepareSettle ¶
func (_TokensNetwork *TokensNetworkSession) PrepareSettle(token common.Address, partner common.Address, transferred_amount *big.Int, locksroot [32]byte, nonce uint64, additional_hash [32]byte, signature []byte) (*types.Transaction, error)
PrepareSettle is a paid mutator transaction binding the contract method 0x5b7d6661.
Solidity: function prepareSettle(token address, partner address, transferred_amount uint256, locksroot bytes32, nonce uint64, additional_hash bytes32, signature bytes) returns()
func (*TokensNetworkSession) PunishBlockNumber ¶
func (_TokensNetwork *TokensNetworkSession) PunishBlockNumber() (uint64, error)
PunishBlockNumber is a free data retrieval call binding the contract method 0x9375cff2.
Solidity: function punish_block_number() constant returns(uint64)
func (*TokensNetworkSession) PunishObsoleteUnlock ¶
func (_TokensNetwork *TokensNetworkSession) PunishObsoleteUnlock(token common.Address, beneficiary common.Address, cheater common.Address, lockhash [32]byte, additional_hash [32]byte, cheater_signature []byte) (*types.Transaction, error)
PunishObsoleteUnlock is a paid mutator transaction binding the contract method 0xed04a068.
Solidity: function punishObsoleteUnlock(token address, beneficiary address, cheater address, lockhash bytes32, additional_hash bytes32, cheater_signature bytes) returns()
func (*TokensNetworkSession) QueryUnlockedLocks ¶
func (_TokensNetwork *TokensNetworkSession) QueryUnlockedLocks(token common.Address, participant common.Address, partner common.Address, lockhash [32]byte) (bool, error)
QueryUnlockedLocks is a free data retrieval call binding the contract method 0x2c3ddceb.
Solidity: function queryUnlockedLocks(token address, participant address, partner address, lockhash bytes32) constant returns(bool)
func (*TokensNetworkSession) ReceiveApproval ¶
func (_TokensNetwork *TokensNetworkSession) ReceiveApproval(from common.Address, value *big.Int, token_ common.Address, data []byte) (*types.Transaction, error)
ReceiveApproval is a paid mutator transaction binding the contract method 0x8f4ffcb1.
Solidity: function receiveApproval(from address, value uint256, token_ address, data bytes) returns(success bool)
func (*TokensNetworkSession) RegisteredToken ¶
func (_TokensNetwork *TokensNetworkSession) RegisteredToken(arg0 common.Address) (bool, error)
RegisteredToken is a free data retrieval call binding the contract method 0x7541085c.
Solidity: function registered_token( address) constant returns(bool)
func (*TokensNetworkSession) SecretRegistry ¶
func (_TokensNetwork *TokensNetworkSession) SecretRegistry() (common.Address, error)
SecretRegistry is a free data retrieval call binding the contract method 0x24d73a93.
Solidity: function secret_registry() constant returns(address)
func (*TokensNetworkSession) Settle ¶
func (_TokensNetwork *TokensNetworkSession) Settle(token common.Address, participant1 common.Address, participant1_transferred_amount *big.Int, participant1_locksroot [32]byte, participant2 common.Address, participant2_transferred_amount *big.Int, participant2_locksroot [32]byte) (*types.Transaction, error)
Settle is a paid mutator transaction binding the contract method 0x635bbe0a.
Solidity: function settle(token address, participant1 address, participant1_transferred_amount uint256, participant1_locksroot bytes32, participant2 address, participant2_transferred_amount uint256, participant2_locksroot bytes32) returns()
func (*TokensNetworkSession) SignaturePrefix ¶
func (_TokensNetwork *TokensNetworkSession) SignaturePrefix() (string, error)
SignaturePrefix is a free data retrieval call binding the contract method 0x87234237.
Solidity: function signature_prefix() constant returns(string)
func (*TokensNetworkSession) TokenFallback ¶
func (_TokensNetwork *TokensNetworkSession) TokenFallback(arg0 common.Address, value *big.Int, data []byte) (*types.Transaction, error)
TokenFallback is a paid mutator transaction binding the contract method 0xc0ee0b8a.
Solidity: function tokenFallback( address, value uint256, data bytes) returns(success bool)
func (*TokensNetworkSession) Unlock ¶
func (_TokensNetwork *TokensNetworkSession) Unlock(token common.Address, partner common.Address, transferred_amount *big.Int, expiration *big.Int, amount *big.Int, secret_hash [32]byte, merkle_proof []byte) (*types.Transaction, error)
Unlock is a paid mutator transaction binding the contract method 0x928798f2.
Solidity: function unlock(token address, partner address, transferred_amount uint256, expiration uint256, amount uint256, secret_hash bytes32, merkle_proof bytes) returns()
func (*TokensNetworkSession) UnlockDelegate ¶
func (_TokensNetwork *TokensNetworkSession) UnlockDelegate(token common.Address, partner common.Address, participant common.Address, transferred_amount *big.Int, expiration *big.Int, amount *big.Int, secret_hash [32]byte, merkle_proof []byte, participant_signature []byte) (*types.Transaction, error)
UnlockDelegate is a paid mutator transaction binding the contract method 0x343461b2.
Solidity: function unlockDelegate(token address, partner address, participant address, transferred_amount uint256, expiration uint256, amount uint256, secret_hash bytes32, merkle_proof bytes, participant_signature bytes) returns()
func (*TokensNetworkSession) UpdateBalanceProof ¶
func (_TokensNetwork *TokensNetworkSession) UpdateBalanceProof(token common.Address, partner common.Address, transferred_amount *big.Int, locksroot [32]byte, nonce uint64, additional_hash [32]byte, partner_signature []byte) (*types.Transaction, error)
UpdateBalanceProof is a paid mutator transaction binding the contract method 0x560bf6b7.
Solidity: function updateBalanceProof(token address, partner address, transferred_amount uint256, locksroot bytes32, nonce uint64, additional_hash bytes32, partner_signature bytes) returns()
func (*TokensNetworkSession) UpdateBalanceProofDelegate ¶
func (_TokensNetwork *TokensNetworkSession) UpdateBalanceProofDelegate(token common.Address, partner common.Address, participant common.Address, transferred_amount *big.Int, locksroot [32]byte, nonce uint64, additional_hash [32]byte, partner_signature []byte, participant_signature []byte) (*types.Transaction, error)
UpdateBalanceProofDelegate is a paid mutator transaction binding the contract method 0xbe7c380e.
Solidity: function updateBalanceProofDelegate(token address, partner address, participant address, transferred_amount uint256, locksroot bytes32, nonce uint64, additional_hash bytes32, partner_signature bytes, participant_signature bytes) returns()
func (*TokensNetworkSession) WithDraw ¶
func (_TokensNetwork *TokensNetworkSession) WithDraw(token common.Address, participant common.Address, partner common.Address, participant_balance *big.Int, participant_withdraw *big.Int, participant_signature []byte, partner_signature []byte) (*types.Transaction, error)
WithDraw is a paid mutator transaction binding the contract method 0x2fb2dae8.
Solidity: function withDraw(token address, participant address, partner address, participant_balance uint256, participant_withdraw uint256, participant_signature bytes, partner_signature bytes) returns()
type TokensNetworkTokenNetworkCreated ¶
type TokensNetworkTokenNetworkCreated struct { TokenAddress common.Address Raw types.Log // Blockchain specific contextual infos }
TokensNetworkTokenNetworkCreated represents a TokenNetworkCreated event raised by the TokensNetwork contract.
type TokensNetworkTokenNetworkCreatedIterator ¶
type TokensNetworkTokenNetworkCreatedIterator struct { Event *TokensNetworkTokenNetworkCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokensNetworkTokenNetworkCreatedIterator is returned from FilterTokenNetworkCreated and is used to iterate over the raw logs and unpacked data for TokenNetworkCreated events raised by the TokensNetwork contract.
func (*TokensNetworkTokenNetworkCreatedIterator) Close ¶
func (it *TokensNetworkTokenNetworkCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokensNetworkTokenNetworkCreatedIterator) Error ¶
func (it *TokensNetworkTokenNetworkCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokensNetworkTokenNetworkCreatedIterator) Next ¶
func (it *TokensNetworkTokenNetworkCreatedIterator) 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 TokensNetworkTransactor ¶
type TokensNetworkTransactor struct {
// contains filtered or unexported fields
}
TokensNetworkTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTokensNetworkTransactor ¶
func NewTokensNetworkTransactor(address common.Address, transactor bind.ContractTransactor) (*TokensNetworkTransactor, error)
NewTokensNetworkTransactor creates a new write-only instance of TokensNetwork, bound to a specific deployed contract.
func (*TokensNetworkTransactor) CooperativeSettle ¶
func (_TokensNetwork *TokensNetworkTransactor) CooperativeSettle(opts *bind.TransactOpts, token common.Address, participant1 common.Address, participant1_balance *big.Int, participant2 common.Address, participant2_balance *big.Int, participant1_signature []byte, participant2_signature []byte) (*types.Transaction, error)
CooperativeSettle is a paid mutator transaction binding the contract method 0xc9c598e4.
Solidity: function cooperativeSettle(token address, participant1 address, participant1_balance uint256, participant2 address, participant2_balance uint256, participant1_signature bytes, participant2_signature bytes) returns()
func (*TokensNetworkTransactor) Deposit ¶
func (_TokensNetwork *TokensNetworkTransactor) Deposit(opts *bind.TransactOpts, token common.Address, participant common.Address, partner common.Address, amount *big.Int, settle_timeout uint64) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xe1b77e4e.
Solidity: function deposit(token address, participant address, partner address, amount uint256, settle_timeout uint64) returns()
func (*TokensNetworkTransactor) PrepareSettle ¶
func (_TokensNetwork *TokensNetworkTransactor) PrepareSettle(opts *bind.TransactOpts, token common.Address, partner common.Address, transferred_amount *big.Int, locksroot [32]byte, nonce uint64, additional_hash [32]byte, signature []byte) (*types.Transaction, error)
PrepareSettle is a paid mutator transaction binding the contract method 0x5b7d6661.
Solidity: function prepareSettle(token address, partner address, transferred_amount uint256, locksroot bytes32, nonce uint64, additional_hash bytes32, signature bytes) returns()
func (*TokensNetworkTransactor) PunishObsoleteUnlock ¶
func (_TokensNetwork *TokensNetworkTransactor) PunishObsoleteUnlock(opts *bind.TransactOpts, token common.Address, beneficiary common.Address, cheater common.Address, lockhash [32]byte, additional_hash [32]byte, cheater_signature []byte) (*types.Transaction, error)
PunishObsoleteUnlock is a paid mutator transaction binding the contract method 0xed04a068.
Solidity: function punishObsoleteUnlock(token address, beneficiary address, cheater address, lockhash bytes32, additional_hash bytes32, cheater_signature bytes) returns()
func (*TokensNetworkTransactor) ReceiveApproval ¶
func (_TokensNetwork *TokensNetworkTransactor) ReceiveApproval(opts *bind.TransactOpts, from common.Address, value *big.Int, token_ common.Address, data []byte) (*types.Transaction, error)
ReceiveApproval is a paid mutator transaction binding the contract method 0x8f4ffcb1.
Solidity: function receiveApproval(from address, value uint256, token_ address, data bytes) returns(success bool)
func (*TokensNetworkTransactor) Settle ¶
func (_TokensNetwork *TokensNetworkTransactor) Settle(opts *bind.TransactOpts, token common.Address, participant1 common.Address, participant1_transferred_amount *big.Int, participant1_locksroot [32]byte, participant2 common.Address, participant2_transferred_amount *big.Int, participant2_locksroot [32]byte) (*types.Transaction, error)
Settle is a paid mutator transaction binding the contract method 0x635bbe0a.
Solidity: function settle(token address, participant1 address, participant1_transferred_amount uint256, participant1_locksroot bytes32, participant2 address, participant2_transferred_amount uint256, participant2_locksroot bytes32) returns()
func (*TokensNetworkTransactor) TokenFallback ¶
func (_TokensNetwork *TokensNetworkTransactor) TokenFallback(opts *bind.TransactOpts, arg0 common.Address, value *big.Int, data []byte) (*types.Transaction, error)
TokenFallback is a paid mutator transaction binding the contract method 0xc0ee0b8a.
Solidity: function tokenFallback( address, value uint256, data bytes) returns(success bool)
func (*TokensNetworkTransactor) Unlock ¶
func (_TokensNetwork *TokensNetworkTransactor) Unlock(opts *bind.TransactOpts, token common.Address, partner common.Address, transferred_amount *big.Int, expiration *big.Int, amount *big.Int, secret_hash [32]byte, merkle_proof []byte) (*types.Transaction, error)
Unlock is a paid mutator transaction binding the contract method 0x928798f2.
Solidity: function unlock(token address, partner address, transferred_amount uint256, expiration uint256, amount uint256, secret_hash bytes32, merkle_proof bytes) returns()
func (*TokensNetworkTransactor) UnlockDelegate ¶
func (_TokensNetwork *TokensNetworkTransactor) UnlockDelegate(opts *bind.TransactOpts, token common.Address, partner common.Address, participant common.Address, transferred_amount *big.Int, expiration *big.Int, amount *big.Int, secret_hash [32]byte, merkle_proof []byte, participant_signature []byte) (*types.Transaction, error)
UnlockDelegate is a paid mutator transaction binding the contract method 0x343461b2.
Solidity: function unlockDelegate(token address, partner address, participant address, transferred_amount uint256, expiration uint256, amount uint256, secret_hash bytes32, merkle_proof bytes, participant_signature bytes) returns()
func (*TokensNetworkTransactor) UpdateBalanceProof ¶
func (_TokensNetwork *TokensNetworkTransactor) UpdateBalanceProof(opts *bind.TransactOpts, token common.Address, partner common.Address, transferred_amount *big.Int, locksroot [32]byte, nonce uint64, additional_hash [32]byte, partner_signature []byte) (*types.Transaction, error)
UpdateBalanceProof is a paid mutator transaction binding the contract method 0x560bf6b7.
Solidity: function updateBalanceProof(token address, partner address, transferred_amount uint256, locksroot bytes32, nonce uint64, additional_hash bytes32, partner_signature bytes) returns()
func (*TokensNetworkTransactor) UpdateBalanceProofDelegate ¶
func (_TokensNetwork *TokensNetworkTransactor) UpdateBalanceProofDelegate(opts *bind.TransactOpts, token common.Address, partner common.Address, participant common.Address, transferred_amount *big.Int, locksroot [32]byte, nonce uint64, additional_hash [32]byte, partner_signature []byte, participant_signature []byte) (*types.Transaction, error)
UpdateBalanceProofDelegate is a paid mutator transaction binding the contract method 0xbe7c380e.
Solidity: function updateBalanceProofDelegate(token address, partner address, participant address, transferred_amount uint256, locksroot bytes32, nonce uint64, additional_hash bytes32, partner_signature bytes, participant_signature bytes) returns()
func (*TokensNetworkTransactor) WithDraw ¶
func (_TokensNetwork *TokensNetworkTransactor) WithDraw(opts *bind.TransactOpts, token common.Address, participant common.Address, partner common.Address, participant_balance *big.Int, participant_withdraw *big.Int, participant_signature []byte, partner_signature []byte) (*types.Transaction, error)
WithDraw is a paid mutator transaction binding the contract method 0x2fb2dae8.
Solidity: function withDraw(token address, participant address, partner address, participant_balance uint256, participant_withdraw uint256, participant_signature bytes, partner_signature bytes) returns()
type TokensNetworkTransactorRaw ¶
type TokensNetworkTransactorRaw struct {
Contract *TokensNetworkTransactor // Generic write-only contract binding to access the raw methods on
}
TokensNetworkTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TokensNetworkTransactorRaw) Transact ¶
func (_TokensNetwork *TokensNetworkTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokensNetworkTransactorRaw) Transfer ¶
func (_TokensNetwork *TokensNetworkTransactorRaw) 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 TokensNetworkTransactorSession ¶
type TokensNetworkTransactorSession struct { Contract *TokensNetworkTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TokensNetworkTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TokensNetworkTransactorSession) CooperativeSettle ¶
func (_TokensNetwork *TokensNetworkTransactorSession) CooperativeSettle(token common.Address, participant1 common.Address, participant1_balance *big.Int, participant2 common.Address, participant2_balance *big.Int, participant1_signature []byte, participant2_signature []byte) (*types.Transaction, error)
CooperativeSettle is a paid mutator transaction binding the contract method 0xc9c598e4.
Solidity: function cooperativeSettle(token address, participant1 address, participant1_balance uint256, participant2 address, participant2_balance uint256, participant1_signature bytes, participant2_signature bytes) returns()
func (*TokensNetworkTransactorSession) Deposit ¶
func (_TokensNetwork *TokensNetworkTransactorSession) Deposit(token common.Address, participant common.Address, partner common.Address, amount *big.Int, settle_timeout uint64) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xe1b77e4e.
Solidity: function deposit(token address, participant address, partner address, amount uint256, settle_timeout uint64) returns()
func (*TokensNetworkTransactorSession) PrepareSettle ¶
func (_TokensNetwork *TokensNetworkTransactorSession) PrepareSettle(token common.Address, partner common.Address, transferred_amount *big.Int, locksroot [32]byte, nonce uint64, additional_hash [32]byte, signature []byte) (*types.Transaction, error)
PrepareSettle is a paid mutator transaction binding the contract method 0x5b7d6661.
Solidity: function prepareSettle(token address, partner address, transferred_amount uint256, locksroot bytes32, nonce uint64, additional_hash bytes32, signature bytes) returns()
func (*TokensNetworkTransactorSession) PunishObsoleteUnlock ¶
func (_TokensNetwork *TokensNetworkTransactorSession) PunishObsoleteUnlock(token common.Address, beneficiary common.Address, cheater common.Address, lockhash [32]byte, additional_hash [32]byte, cheater_signature []byte) (*types.Transaction, error)
PunishObsoleteUnlock is a paid mutator transaction binding the contract method 0xed04a068.
Solidity: function punishObsoleteUnlock(token address, beneficiary address, cheater address, lockhash bytes32, additional_hash bytes32, cheater_signature bytes) returns()
func (*TokensNetworkTransactorSession) ReceiveApproval ¶
func (_TokensNetwork *TokensNetworkTransactorSession) ReceiveApproval(from common.Address, value *big.Int, token_ common.Address, data []byte) (*types.Transaction, error)
ReceiveApproval is a paid mutator transaction binding the contract method 0x8f4ffcb1.
Solidity: function receiveApproval(from address, value uint256, token_ address, data bytes) returns(success bool)
func (*TokensNetworkTransactorSession) Settle ¶
func (_TokensNetwork *TokensNetworkTransactorSession) Settle(token common.Address, participant1 common.Address, participant1_transferred_amount *big.Int, participant1_locksroot [32]byte, participant2 common.Address, participant2_transferred_amount *big.Int, participant2_locksroot [32]byte) (*types.Transaction, error)
Settle is a paid mutator transaction binding the contract method 0x635bbe0a.
Solidity: function settle(token address, participant1 address, participant1_transferred_amount uint256, participant1_locksroot bytes32, participant2 address, participant2_transferred_amount uint256, participant2_locksroot bytes32) returns()
func (*TokensNetworkTransactorSession) TokenFallback ¶
func (_TokensNetwork *TokensNetworkTransactorSession) TokenFallback(arg0 common.Address, value *big.Int, data []byte) (*types.Transaction, error)
TokenFallback is a paid mutator transaction binding the contract method 0xc0ee0b8a.
Solidity: function tokenFallback( address, value uint256, data bytes) returns(success bool)
func (*TokensNetworkTransactorSession) Unlock ¶
func (_TokensNetwork *TokensNetworkTransactorSession) Unlock(token common.Address, partner common.Address, transferred_amount *big.Int, expiration *big.Int, amount *big.Int, secret_hash [32]byte, merkle_proof []byte) (*types.Transaction, error)
Unlock is a paid mutator transaction binding the contract method 0x928798f2.
Solidity: function unlock(token address, partner address, transferred_amount uint256, expiration uint256, amount uint256, secret_hash bytes32, merkle_proof bytes) returns()
func (*TokensNetworkTransactorSession) UnlockDelegate ¶
func (_TokensNetwork *TokensNetworkTransactorSession) UnlockDelegate(token common.Address, partner common.Address, participant common.Address, transferred_amount *big.Int, expiration *big.Int, amount *big.Int, secret_hash [32]byte, merkle_proof []byte, participant_signature []byte) (*types.Transaction, error)
UnlockDelegate is a paid mutator transaction binding the contract method 0x343461b2.
Solidity: function unlockDelegate(token address, partner address, participant address, transferred_amount uint256, expiration uint256, amount uint256, secret_hash bytes32, merkle_proof bytes, participant_signature bytes) returns()
func (*TokensNetworkTransactorSession) UpdateBalanceProof ¶
func (_TokensNetwork *TokensNetworkTransactorSession) UpdateBalanceProof(token common.Address, partner common.Address, transferred_amount *big.Int, locksroot [32]byte, nonce uint64, additional_hash [32]byte, partner_signature []byte) (*types.Transaction, error)
UpdateBalanceProof is a paid mutator transaction binding the contract method 0x560bf6b7.
Solidity: function updateBalanceProof(token address, partner address, transferred_amount uint256, locksroot bytes32, nonce uint64, additional_hash bytes32, partner_signature bytes) returns()
func (*TokensNetworkTransactorSession) UpdateBalanceProofDelegate ¶
func (_TokensNetwork *TokensNetworkTransactorSession) UpdateBalanceProofDelegate(token common.Address, partner common.Address, participant common.Address, transferred_amount *big.Int, locksroot [32]byte, nonce uint64, additional_hash [32]byte, partner_signature []byte, participant_signature []byte) (*types.Transaction, error)
UpdateBalanceProofDelegate is a paid mutator transaction binding the contract method 0xbe7c380e.
Solidity: function updateBalanceProofDelegate(token address, partner address, participant address, transferred_amount uint256, locksroot bytes32, nonce uint64, additional_hash bytes32, partner_signature bytes, participant_signature bytes) returns()
func (*TokensNetworkTransactorSession) WithDraw ¶
func (_TokensNetwork *TokensNetworkTransactorSession) WithDraw(token common.Address, participant common.Address, partner common.Address, participant_balance *big.Int, participant_withdraw *big.Int, participant_signature []byte, partner_signature []byte) (*types.Transaction, error)
WithDraw is a paid mutator transaction binding the contract method 0x2fb2dae8.
Solidity: function withDraw(token address, participant address, partner address, participant_balance uint256, participant_withdraw uint256, participant_signature bytes, partner_signature bytes) returns()
type Utils ¶
type Utils struct { UtilsCaller // Read-only binding to the contract UtilsTransactor // Write-only binding to the contract UtilsFilterer // Log filterer for contract events }
Utils is an auto generated Go binding around an Ethereum contract.
func DeployUtils ¶
func DeployUtils(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Utils, error)
DeployUtils deploys a new Ethereum contract, binding an instance of Utils to it.
type UtilsCaller ¶
type UtilsCaller struct {
// contains filtered or unexported fields
}
UtilsCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewUtilsCaller ¶
func NewUtilsCaller(address common.Address, caller bind.ContractCaller) (*UtilsCaller, error)
NewUtilsCaller creates a new read-only instance of Utils, bound to a specific deployed contract.
func (*UtilsCaller) ContractExists ¶
func (_Utils *UtilsCaller) ContractExists(opts *bind.CallOpts, contract_address common.Address) (bool, error)
ContractExists is a free data retrieval call binding the contract method 0x7709bc78.
Solidity: function contractExists(contract_address address) constant returns(bool)
func (*UtilsCaller) ContractVersion ¶
func (_Utils *UtilsCaller) ContractVersion(opts *bind.CallOpts) (string, error)
ContractVersion is a free data retrieval call binding the contract method 0xb32c65c8.
Solidity: function contract_version() constant returns(string)
type UtilsCallerRaw ¶
type UtilsCallerRaw struct {
Contract *UtilsCaller // Generic read-only contract binding to access the raw methods on
}
UtilsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*UtilsCallerRaw) Call ¶
func (_Utils *UtilsCallerRaw) 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 UtilsCallerSession ¶
type UtilsCallerSession struct { Contract *UtilsCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
UtilsCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*UtilsCallerSession) ContractExists ¶
func (_Utils *UtilsCallerSession) ContractExists(contract_address common.Address) (bool, error)
ContractExists is a free data retrieval call binding the contract method 0x7709bc78.
Solidity: function contractExists(contract_address address) constant returns(bool)
func (*UtilsCallerSession) ContractVersion ¶
func (_Utils *UtilsCallerSession) ContractVersion() (string, error)
ContractVersion is a free data retrieval call binding the contract method 0xb32c65c8.
Solidity: function contract_version() constant returns(string)
type UtilsFilterer ¶
type UtilsFilterer struct {
// contains filtered or unexported fields
}
UtilsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewUtilsFilterer ¶
func NewUtilsFilterer(address common.Address, filterer bind.ContractFilterer) (*UtilsFilterer, error)
NewUtilsFilterer creates a new log filterer instance of Utils, bound to a specific deployed contract.
type UtilsRaw ¶
type UtilsRaw struct {
Contract *Utils // Generic contract binding to access the raw methods on
}
UtilsRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*UtilsRaw) Call ¶
func (_Utils *UtilsRaw) 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 (*UtilsRaw) Transact ¶
func (_Utils *UtilsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UtilsRaw) Transfer ¶
func (_Utils *UtilsRaw) 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 UtilsSession ¶
type UtilsSession struct { Contract *Utils // 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 }
UtilsSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*UtilsSession) ContractExists ¶
func (_Utils *UtilsSession) ContractExists(contract_address common.Address) (bool, error)
ContractExists is a free data retrieval call binding the contract method 0x7709bc78.
Solidity: function contractExists(contract_address address) constant returns(bool)
func (*UtilsSession) ContractVersion ¶
func (_Utils *UtilsSession) ContractVersion() (string, error)
ContractVersion is a free data retrieval call binding the contract method 0xb32c65c8.
Solidity: function contract_version() constant returns(string)
type UtilsTransactor ¶
type UtilsTransactor struct {
// contains filtered or unexported fields
}
UtilsTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewUtilsTransactor ¶
func NewUtilsTransactor(address common.Address, transactor bind.ContractTransactor) (*UtilsTransactor, error)
NewUtilsTransactor creates a new write-only instance of Utils, bound to a specific deployed contract.
type UtilsTransactorRaw ¶
type UtilsTransactorRaw struct {
Contract *UtilsTransactor // Generic write-only contract binding to access the raw methods on
}
UtilsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*UtilsTransactorRaw) Transact ¶
func (_Utils *UtilsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UtilsTransactorRaw) Transfer ¶
func (_Utils *UtilsTransactorRaw) 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 UtilsTransactorSession ¶
type UtilsTransactorSession struct { Contract *UtilsTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
UtilsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.