Documentation ¶
Overview ¶
Package contract implements ethereum specific contract handling functionality for the node software.
It also has the solidity contracts and the go binding files, binaries generated from it. When contracts change, new files can be generated using go generate. (See contract_store/generate.go).
Index ¶
- Constants
- Variables
- func ValidateIntegrity(fs afero.Fs, contractList []Handler, contractsDir string) (corruptFiles, missingFiles []string, err error)
- type Handler
- type ILibSignatures
- type ILibSignaturesCaller
- type ILibSignaturesCallerRaw
- type ILibSignaturesCallerSession
- type ILibSignaturesFilterer
- type ILibSignaturesRaw
- func (_ILibSignatures *ILibSignaturesRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_ILibSignatures *ILibSignaturesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ILibSignatures *ILibSignaturesRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ILibSignaturesSession
- type ILibSignaturesTransactor
- type ILibSignaturesTransactorRaw
- type ILibSignaturesTransactorSession
- type LibSignatures
- type LibSignaturesCaller
- type LibSignaturesCallerRaw
- type LibSignaturesCallerSession
- type LibSignaturesFilterer
- type LibSignaturesRaw
- func (_LibSignatures *LibSignaturesRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_LibSignatures *LibSignaturesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_LibSignatures *LibSignaturesRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type LibSignaturesSession
- type LibSignaturesTransactor
- type LibSignaturesTransactorRaw
- type LibSignaturesTransactorSession
- type MSContract
- type MSContractCaller
- func (_MSContract *MSContractCaller) Alice(opts *bind.CallOpts) (struct{ ... }, error)
- func (_MSContract *MSContractCaller) Bob(opts *bind.CallOpts) (struct{ ... }, error)
- func (_MSContract *MSContractCaller) C(opts *bind.CallOpts) (struct{ ... }, error)
- func (_MSContract *MSContractCaller) Status(opts *bind.CallOpts) (uint8, error)
- func (_MSContract *MSContractCaller) Timeout(opts *bind.CallOpts) (*big.Int, error)
- type MSContractCallerRaw
- type MSContractCallerSession
- func (_MSContract *MSContractCallerSession) Alice() (struct{ ... }, error)
- func (_MSContract *MSContractCallerSession) Bob() (struct{ ... }, error)
- func (_MSContract *MSContractCallerSession) C() (struct{ ... }, error)
- func (_MSContract *MSContractCallerSession) Status() (uint8, error)
- func (_MSContract *MSContractCallerSession) Timeout() (*big.Int, error)
- type MSContractEventClosed
- type MSContractEventClosedIterator
- type MSContractEventClosing
- type MSContractEventClosingIterator
- type MSContractEventInitialized
- type MSContractEventInitializedIterator
- type MSContractEventInitializing
- type MSContractEventInitializingIterator
- type MSContractEventNotClosed
- type MSContractEventNotClosedIterator
- type MSContractEventRefunded
- type MSContractEventRefundedIterator
- type MSContractEventStateRegistered
- type MSContractEventStateRegisteredIterator
- type MSContractEventStateRegistering
- type MSContractEventStateRegisteringIterator
- type MSContractFilterer
- func (_MSContract *MSContractFilterer) FilterEventClosed(opts *bind.FilterOpts) (*MSContractEventClosedIterator, error)
- func (_MSContract *MSContractFilterer) FilterEventClosing(opts *bind.FilterOpts) (*MSContractEventClosingIterator, error)
- func (_MSContract *MSContractFilterer) FilterEventInitialized(opts *bind.FilterOpts) (*MSContractEventInitializedIterator, error)
- func (_MSContract *MSContractFilterer) FilterEventInitializing(opts *bind.FilterOpts) (*MSContractEventInitializingIterator, error)
- func (_MSContract *MSContractFilterer) FilterEventNotClosed(opts *bind.FilterOpts) (*MSContractEventNotClosedIterator, error)
- func (_MSContract *MSContractFilterer) FilterEventRefunded(opts *bind.FilterOpts) (*MSContractEventRefundedIterator, error)
- func (_MSContract *MSContractFilterer) FilterEventStateRegistered(opts *bind.FilterOpts) (*MSContractEventStateRegisteredIterator, error)
- func (_MSContract *MSContractFilterer) FilterEventStateRegistering(opts *bind.FilterOpts) (*MSContractEventStateRegisteringIterator, error)
- func (_MSContract *MSContractFilterer) WatchEventClosed(opts *bind.WatchOpts, sink chan<- *MSContractEventClosed) (event.Subscription, error)
- func (_MSContract *MSContractFilterer) WatchEventClosing(opts *bind.WatchOpts, sink chan<- *MSContractEventClosing) (event.Subscription, error)
- func (_MSContract *MSContractFilterer) WatchEventInitialized(opts *bind.WatchOpts, sink chan<- *MSContractEventInitialized) (event.Subscription, error)
- func (_MSContract *MSContractFilterer) WatchEventInitializing(opts *bind.WatchOpts, sink chan<- *MSContractEventInitializing) (event.Subscription, error)
- func (_MSContract *MSContractFilterer) WatchEventNotClosed(opts *bind.WatchOpts, sink chan<- *MSContractEventNotClosed) (event.Subscription, error)
- func (_MSContract *MSContractFilterer) WatchEventRefunded(opts *bind.WatchOpts, sink chan<- *MSContractEventRefunded) (event.Subscription, error)
- func (_MSContract *MSContractFilterer) WatchEventStateRegistered(opts *bind.WatchOpts, sink chan<- *MSContractEventStateRegistered) (event.Subscription, error)
- func (_MSContract *MSContractFilterer) WatchEventStateRegistering(opts *bind.WatchOpts, sink chan<- *MSContractEventStateRegistering) (event.Subscription, error)
- type MSContractRaw
- func (_MSContract *MSContractRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_MSContract *MSContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_MSContract *MSContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type MSContractSession
- func (_MSContract *MSContractSession) Alice() (struct{ ... }, error)
- func (_MSContract *MSContractSession) Bob() (struct{ ... }, error)
- func (_MSContract *MSContractSession) C() (struct{ ... }, error)
- func (_MSContract *MSContractSession) Close() (*types.Transaction, error)
- func (_MSContract *MSContractSession) Confirm() (*types.Transaction, error)
- func (_MSContract *MSContractSession) Execute(_alice common.Address, _bob common.Address) (*types.Transaction, error)
- func (_MSContract *MSContractSession) FinalizeClose() (*types.Transaction, error)
- func (_MSContract *MSContractSession) FinalizeRegister() (*types.Transaction, error)
- func (_MSContract *MSContractSession) Refund() (*types.Transaction, error)
- func (_MSContract *MSContractSession) StateRegister(_vpc common.Address, _sid *big.Int, _blockedA *big.Int, _blockedB *big.Int, ...) (*types.Transaction, error)
- func (_MSContract *MSContractSession) Status() (uint8, error)
- func (_MSContract *MSContractSession) Timeout() (*big.Int, error)
- type MSContractTransactor
- func (_MSContract *MSContractTransactor) Close(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_MSContract *MSContractTransactor) Confirm(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_MSContract *MSContractTransactor) Execute(opts *bind.TransactOpts, _alice common.Address, _bob common.Address) (*types.Transaction, error)
- func (_MSContract *MSContractTransactor) FinalizeClose(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_MSContract *MSContractTransactor) FinalizeRegister(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_MSContract *MSContractTransactor) Refund(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_MSContract *MSContractTransactor) StateRegister(opts *bind.TransactOpts, _vpc common.Address, _sid *big.Int, ...) (*types.Transaction, error)
- type MSContractTransactorRaw
- type MSContractTransactorSession
- func (_MSContract *MSContractTransactorSession) Close() (*types.Transaction, error)
- func (_MSContract *MSContractTransactorSession) Confirm() (*types.Transaction, error)
- func (_MSContract *MSContractTransactorSession) Execute(_alice common.Address, _bob common.Address) (*types.Transaction, error)
- func (_MSContract *MSContractTransactorSession) FinalizeClose() (*types.Transaction, error)
- func (_MSContract *MSContractTransactorSession) FinalizeRegister() (*types.Transaction, error)
- func (_MSContract *MSContractTransactorSession) Refund() (*types.Transaction, error)
- func (_MSContract *MSContractTransactorSession) StateRegister(_vpc common.Address, _sid *big.Int, _blockedA *big.Int, _blockedB *big.Int, ...) (*types.Transaction, error)
- type MatchStatus
- type StoreType
- func (cs StoreType) LibSignatures() Handler
- func (cs StoreType) MSContract() Handler
- func (cs StoreType) SHA256Sum() []byte
- func (cs StoreType) TimeoutMSContract() time.Duration
- func (cs StoreType) TimeoutVPCExtendedValidity() time.Duration
- func (cs StoreType) TimeoutVPCValidity() time.Duration
- func (cs StoreType) VPC() Handler
- type VPC
- type VPCCaller
- type VPCCallerRaw
- type VPCCallerSession
- type VPCEventVpcClosed
- type VPCEventVpcClosedIterator
- type VPCEventVpcClosing
- type VPCEventVpcClosingIterator
- type VPCFilterer
- func (_VPC *VPCFilterer) FilterEventVpcClosed(opts *bind.FilterOpts, _id [][32]byte) (*VPCEventVpcClosedIterator, error)
- func (_VPC *VPCFilterer) FilterEventVpcClosing(opts *bind.FilterOpts, _id [][32]byte) (*VPCEventVpcClosingIterator, error)
- func (_VPC *VPCFilterer) WatchEventVpcClosed(opts *bind.WatchOpts, sink chan<- *VPCEventVpcClosed, _id [][32]byte) (event.Subscription, error)
- func (_VPC *VPCFilterer) WatchEventVpcClosing(opts *bind.WatchOpts, sink chan<- *VPCEventVpcClosing, _id [][32]byte) (event.Subscription, error)
- type VPCRaw
- func (_VPC *VPCRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_VPC *VPCRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_VPC *VPCRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type VPCSession
- func (_VPC *VPCSession) Close(alice common.Address, bob common.Address, sid *big.Int, version *big.Int, ...) (*types.Transaction, error)
- func (_VPC *VPCSession) Finalize(alice common.Address, bob common.Address, sid *big.Int) (*types.Transaction, error)
- func (_VPC *VPCSession) Id() ([32]byte, error)
- func (_VPC *VPCSession) LibSig() (common.Address, error)
- func (_VPC *VPCSession) S() (struct{ ... }, error)
- func (_VPC *VPCSession) States(arg0 [32]byte) (struct{ ... }, error)
- type VPCTransactor
- type VPCTransactorRaw
- type VPCTransactorSession
Constants ¶
const ILibSignaturesABI = "" /* 300-byte string literal not displayed */
ILibSignaturesABI is the input ABI used to generate the binding from.
const ILibSignaturesBin = `0x`
ILibSignaturesBin is the compiled bytecode used for deploying new contracts.
const LibSignaturesABI = "" /* 300-byte string literal not displayed */
LibSignaturesABI is the input ABI used to generate the binding from.
const LibSignaturesBin = `` /* 1088-byte string literal not displayed */
LibSignaturesBin is the compiled bytecode used for deploying new contracts.
const MSContractABI = "" /* 3969-byte string literal not displayed */
MSContractABI is the input ABI used to generate the binding from.
const MSContractBin = `` /* 9730-byte string literal not displayed */
MSContractBin is the compiled bytecode used for deploying new contracts.
const VPCABI = "" /* 2853-byte string literal not displayed */
VPCABI is the input ABI used to generate the binding from.
const VPCBin = `` /* 7250-byte string literal not displayed */
VPCBin is the compiled bytecode used for deploying new contracts.
Variables ¶
var Store = StoreType{ // contains filtered or unexported fields }
Store represents the instance of contract store.
Functions ¶
func ValidateIntegrity ¶
func ValidateIntegrity(fs afero.Fs, contractList []Handler, contractsDir string) (corruptFiles, missingFiles []string, err error)
ValidateIntegrity validates the integrity of files on disk pertaining to each contract in the contract list. Integrity is validated by computing SHA256 sum of files on disk and comparing it with expected values in contract handlers.
Types ¶
type Handler ¶
type Handler struct { Name string `json:"name"` Version string `json:"version"` GasUnits uint64 `json:"-"` HashSolFile string `json:"hashSolFile"` HashGoFile string `json:"-"` HashBinRuntimeFile string `json:"hashBinRuntimeFile"` }
Handler manages the files on disk corresponding to a contract, it's version and gas units required for deployment.
type ILibSignatures ¶
type ILibSignatures struct { ILibSignaturesCaller // Read-only binding to the contract ILibSignaturesTransactor // Write-only binding to the contract ILibSignaturesFilterer // Log filterer for contract events }
ILibSignatures is an auto generated Go binding around an Ethereum contract.
func DeployILibSignatures ¶
func DeployILibSignatures(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ILibSignatures, error)
DeployILibSignatures deploys a new Ethereum contract, binding an instance of ILibSignatures to it.
func NewILibSignatures ¶
func NewILibSignatures(address common.Address, backend bind.ContractBackend) (*ILibSignatures, error)
NewILibSignatures creates a new instance of ILibSignatures, bound to a specific deployed contract.
type ILibSignaturesCaller ¶
type ILibSignaturesCaller struct {
// contains filtered or unexported fields
}
ILibSignaturesCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewILibSignaturesCaller ¶
func NewILibSignaturesCaller(address common.Address, caller bind.ContractCaller) (*ILibSignaturesCaller, error)
NewILibSignaturesCaller creates a new read-only instance of ILibSignatures, bound to a specific deployed contract.
func (*ILibSignaturesCaller) Verify ¶
func (_ILibSignatures *ILibSignaturesCaller) Verify(opts *bind.CallOpts, addr common.Address, message [32]byte, signature []byte) (bool, error)
Verify is a free data retrieval call binding the contract method 0x1a86b550.
Solidity: function verify(addr address, message bytes32, signature bytes) constant returns(bool)
type ILibSignaturesCallerRaw ¶
type ILibSignaturesCallerRaw struct {
Contract *ILibSignaturesCaller // Generic read-only contract binding to access the raw methods on
}
ILibSignaturesCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ILibSignaturesCallerRaw) Call ¶
func (_ILibSignatures *ILibSignaturesCallerRaw) 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 ILibSignaturesCallerSession ¶
type ILibSignaturesCallerSession struct { Contract *ILibSignaturesCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ILibSignaturesCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ILibSignaturesCallerSession) Verify ¶
func (_ILibSignatures *ILibSignaturesCallerSession) Verify(addr common.Address, message [32]byte, signature []byte) (bool, error)
Verify is a free data retrieval call binding the contract method 0x1a86b550.
Solidity: function verify(addr address, message bytes32, signature bytes) constant returns(bool)
type ILibSignaturesFilterer ¶
type ILibSignaturesFilterer struct {
// contains filtered or unexported fields
}
ILibSignaturesFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewILibSignaturesFilterer ¶
func NewILibSignaturesFilterer(address common.Address, filterer bind.ContractFilterer) (*ILibSignaturesFilterer, error)
NewILibSignaturesFilterer creates a new log filterer instance of ILibSignatures, bound to a specific deployed contract.
type ILibSignaturesRaw ¶
type ILibSignaturesRaw struct {
Contract *ILibSignatures // Generic contract binding to access the raw methods on
}
ILibSignaturesRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ILibSignaturesRaw) Call ¶
func (_ILibSignatures *ILibSignaturesRaw) 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 (*ILibSignaturesRaw) Transact ¶
func (_ILibSignatures *ILibSignaturesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ILibSignaturesRaw) Transfer ¶
func (_ILibSignatures *ILibSignaturesRaw) 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 ILibSignaturesSession ¶
type ILibSignaturesSession struct { Contract *ILibSignatures // 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 }
ILibSignaturesSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ILibSignaturesSession) Verify ¶
func (_ILibSignatures *ILibSignaturesSession) Verify(addr common.Address, message [32]byte, signature []byte) (bool, error)
Verify is a free data retrieval call binding the contract method 0x1a86b550.
Solidity: function verify(addr address, message bytes32, signature bytes) constant returns(bool)
type ILibSignaturesTransactor ¶
type ILibSignaturesTransactor struct {
// contains filtered or unexported fields
}
ILibSignaturesTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewILibSignaturesTransactor ¶
func NewILibSignaturesTransactor(address common.Address, transactor bind.ContractTransactor) (*ILibSignaturesTransactor, error)
NewILibSignaturesTransactor creates a new write-only instance of ILibSignatures, bound to a specific deployed contract.
type ILibSignaturesTransactorRaw ¶
type ILibSignaturesTransactorRaw struct {
Contract *ILibSignaturesTransactor // Generic write-only contract binding to access the raw methods on
}
ILibSignaturesTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ILibSignaturesTransactorRaw) Transact ¶
func (_ILibSignatures *ILibSignaturesTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ILibSignaturesTransactorRaw) Transfer ¶
func (_ILibSignatures *ILibSignaturesTransactorRaw) 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 ILibSignaturesTransactorSession ¶
type ILibSignaturesTransactorSession struct { Contract *ILibSignaturesTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ILibSignaturesTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type LibSignatures ¶
type LibSignatures struct { LibSignaturesCaller // Read-only binding to the contract LibSignaturesTransactor // Write-only binding to the contract LibSignaturesFilterer // Log filterer for contract events }
LibSignatures is an auto generated Go binding around an Ethereum contract.
func DeployLibSignatures ¶
func DeployLibSignatures(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *LibSignatures, error)
DeployLibSignatures deploys a new Ethereum contract, binding an instance of LibSignatures to it.
func NewLibSignatures ¶
func NewLibSignatures(address common.Address, backend bind.ContractBackend) (*LibSignatures, error)
NewLibSignatures creates a new instance of LibSignatures, bound to a specific deployed contract.
type LibSignaturesCaller ¶
type LibSignaturesCaller struct {
// contains filtered or unexported fields
}
LibSignaturesCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewLibSignaturesCaller ¶
func NewLibSignaturesCaller(address common.Address, caller bind.ContractCaller) (*LibSignaturesCaller, error)
NewLibSignaturesCaller creates a new read-only instance of LibSignatures, bound to a specific deployed contract.
func (*LibSignaturesCaller) Verify ¶
func (_LibSignatures *LibSignaturesCaller) Verify(opts *bind.CallOpts, addr common.Address, message [32]byte, signature []byte) (bool, error)
Verify is a free data retrieval call binding the contract method 0x1a86b550.
Solidity: function verify(addr address, message bytes32, signature bytes) constant returns(bool)
type LibSignaturesCallerRaw ¶
type LibSignaturesCallerRaw struct {
Contract *LibSignaturesCaller // Generic read-only contract binding to access the raw methods on
}
LibSignaturesCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*LibSignaturesCallerRaw) Call ¶
func (_LibSignatures *LibSignaturesCallerRaw) 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 LibSignaturesCallerSession ¶
type LibSignaturesCallerSession struct { Contract *LibSignaturesCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
LibSignaturesCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*LibSignaturesCallerSession) Verify ¶
func (_LibSignatures *LibSignaturesCallerSession) Verify(addr common.Address, message [32]byte, signature []byte) (bool, error)
Verify is a free data retrieval call binding the contract method 0x1a86b550.
Solidity: function verify(addr address, message bytes32, signature bytes) constant returns(bool)
type LibSignaturesFilterer ¶
type LibSignaturesFilterer struct {
// contains filtered or unexported fields
}
LibSignaturesFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewLibSignaturesFilterer ¶
func NewLibSignaturesFilterer(address common.Address, filterer bind.ContractFilterer) (*LibSignaturesFilterer, error)
NewLibSignaturesFilterer creates a new log filterer instance of LibSignatures, bound to a specific deployed contract.
type LibSignaturesRaw ¶
type LibSignaturesRaw struct {
Contract *LibSignatures // Generic contract binding to access the raw methods on
}
LibSignaturesRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*LibSignaturesRaw) Call ¶
func (_LibSignatures *LibSignaturesRaw) 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 (*LibSignaturesRaw) Transact ¶
func (_LibSignatures *LibSignaturesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*LibSignaturesRaw) Transfer ¶
func (_LibSignatures *LibSignaturesRaw) 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 LibSignaturesSession ¶
type LibSignaturesSession struct { Contract *LibSignatures // 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 }
LibSignaturesSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*LibSignaturesSession) Verify ¶
func (_LibSignatures *LibSignaturesSession) Verify(addr common.Address, message [32]byte, signature []byte) (bool, error)
Verify is a free data retrieval call binding the contract method 0x1a86b550.
Solidity: function verify(addr address, message bytes32, signature bytes) constant returns(bool)
type LibSignaturesTransactor ¶
type LibSignaturesTransactor struct {
// contains filtered or unexported fields
}
LibSignaturesTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewLibSignaturesTransactor ¶
func NewLibSignaturesTransactor(address common.Address, transactor bind.ContractTransactor) (*LibSignaturesTransactor, error)
NewLibSignaturesTransactor creates a new write-only instance of LibSignatures, bound to a specific deployed contract.
type LibSignaturesTransactorRaw ¶
type LibSignaturesTransactorRaw struct {
Contract *LibSignaturesTransactor // Generic write-only contract binding to access the raw methods on
}
LibSignaturesTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*LibSignaturesTransactorRaw) Transact ¶
func (_LibSignatures *LibSignaturesTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*LibSignaturesTransactorRaw) Transfer ¶
func (_LibSignatures *LibSignaturesTransactorRaw) 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 LibSignaturesTransactorSession ¶
type LibSignaturesTransactorSession struct { Contract *LibSignaturesTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
LibSignaturesTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type MSContract ¶
type MSContract struct { MSContractCaller // Read-only binding to the contract MSContractTransactor // Write-only binding to the contract MSContractFilterer // Log filterer for contract events }
MSContract is an auto generated Go binding around an Ethereum contract.
func DeployMSContract ¶
func DeployMSContract(auth *bind.TransactOpts, backend bind.ContractBackend, _libSig common.Address, _addressAlice common.Address, _addressBob common.Address) (common.Address, *types.Transaction, *MSContract, error)
DeployMSContract deploys a new Ethereum contract, binding an instance of MSContract to it.
func NewMSContract ¶
func NewMSContract(address common.Address, backend bind.ContractBackend) (*MSContract, error)
NewMSContract creates a new instance of MSContract, bound to a specific deployed contract.
type MSContractCaller ¶
type MSContractCaller struct {
// contains filtered or unexported fields
}
MSContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewMSContractCaller ¶
func NewMSContractCaller(address common.Address, caller bind.ContractCaller) (*MSContractCaller, error)
NewMSContractCaller creates a new read-only instance of MSContract, bound to a specific deployed contract.
func (*MSContractCaller) Alice ¶
func (_MSContract *MSContractCaller) Alice(opts *bind.CallOpts) (struct { Id common.Address Cash *big.Int WaitForInput bool }, error)
Alice is a free data retrieval call binding the contract method 0xfb47e3a2.
Solidity: function alice() constant returns(id address, cash uint256, waitForInput bool)
func (*MSContractCaller) Bob ¶
func (_MSContract *MSContractCaller) Bob(opts *bind.CallOpts) (struct { Id common.Address Cash *big.Int WaitForInput bool }, error)
Bob is a free data retrieval call binding the contract method 0xc09cec77.
Solidity: function bob() constant returns(id address, cash uint256, waitForInput bool)
func (*MSContractCaller) C ¶
func (_MSContract *MSContractCaller) C(opts *bind.CallOpts) (struct { Active bool Vpc common.Address Sid *big.Int BlockedA *big.Int BlockedB *big.Int Version *big.Int }, error)
C is a free data retrieval call binding the contract method 0xc3da42b8.
Solidity: function c() constant returns(active bool, vpc address, sid uint256, blockedA uint256, blockedB uint256, version uint256)
type MSContractCallerRaw ¶
type MSContractCallerRaw struct {
Contract *MSContractCaller // Generic read-only contract binding to access the raw methods on
}
MSContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*MSContractCallerRaw) Call ¶
func (_MSContract *MSContractCallerRaw) 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 MSContractCallerSession ¶
type MSContractCallerSession struct { Contract *MSContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
MSContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*MSContractCallerSession) Alice ¶
func (_MSContract *MSContractCallerSession) Alice() (struct { Id common.Address Cash *big.Int WaitForInput bool }, error)
Alice is a free data retrieval call binding the contract method 0xfb47e3a2.
Solidity: function alice() constant returns(id address, cash uint256, waitForInput bool)
func (*MSContractCallerSession) Bob ¶
func (_MSContract *MSContractCallerSession) Bob() (struct { Id common.Address Cash *big.Int WaitForInput bool }, error)
Bob is a free data retrieval call binding the contract method 0xc09cec77.
Solidity: function bob() constant returns(id address, cash uint256, waitForInput bool)
func (*MSContractCallerSession) C ¶
func (_MSContract *MSContractCallerSession) C() (struct { Active bool Vpc common.Address Sid *big.Int BlockedA *big.Int BlockedB *big.Int Version *big.Int }, error)
C is a free data retrieval call binding the contract method 0xc3da42b8.
Solidity: function c() constant returns(active bool, vpc address, sid uint256, blockedA uint256, blockedB uint256, version uint256)
func (*MSContractCallerSession) Status ¶
func (_MSContract *MSContractCallerSession) Status() (uint8, error)
Status is a free data retrieval call binding the contract method 0x200d2ed2.
Solidity: function status() constant returns(uint8)
type MSContractEventClosed ¶
MSContractEventClosed represents a EventClosed event raised by the MSContract contract.
type MSContractEventClosedIterator ¶
type MSContractEventClosedIterator struct { Event *MSContractEventClosed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MSContractEventClosedIterator is returned from FilterEventClosed and is used to iterate over the raw logs and unpacked data for EventClosed events raised by the MSContract contract.
func (*MSContractEventClosedIterator) Close ¶
func (it *MSContractEventClosedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MSContractEventClosedIterator) Error ¶
func (it *MSContractEventClosedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MSContractEventClosedIterator) Next ¶
func (it *MSContractEventClosedIterator) 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 MSContractEventClosing ¶
MSContractEventClosing represents a EventClosing event raised by the MSContract contract.
type MSContractEventClosingIterator ¶
type MSContractEventClosingIterator struct { Event *MSContractEventClosing // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MSContractEventClosingIterator is returned from FilterEventClosing and is used to iterate over the raw logs and unpacked data for EventClosing events raised by the MSContract contract.
func (*MSContractEventClosingIterator) Close ¶
func (it *MSContractEventClosingIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MSContractEventClosingIterator) Error ¶
func (it *MSContractEventClosingIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MSContractEventClosingIterator) Next ¶
func (it *MSContractEventClosingIterator) 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 MSContractEventInitialized ¶
type MSContractEventInitialized struct { CashAlice *big.Int CashBob *big.Int Raw types.Log // Blockchain specific contextual infos }
MSContractEventInitialized represents a EventInitialized event raised by the MSContract contract.
type MSContractEventInitializedIterator ¶
type MSContractEventInitializedIterator struct { Event *MSContractEventInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MSContractEventInitializedIterator is returned from FilterEventInitialized and is used to iterate over the raw logs and unpacked data for EventInitialized events raised by the MSContract contract.
func (*MSContractEventInitializedIterator) Close ¶
func (it *MSContractEventInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MSContractEventInitializedIterator) Error ¶
func (it *MSContractEventInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MSContractEventInitializedIterator) Next ¶
func (it *MSContractEventInitializedIterator) 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 MSContractEventInitializing ¶
type MSContractEventInitializing struct { AddressAlice common.Address AddressBob common.Address Raw types.Log // Blockchain specific contextual infos }
MSContractEventInitializing represents a EventInitializing event raised by the MSContract contract.
type MSContractEventInitializingIterator ¶
type MSContractEventInitializingIterator struct { Event *MSContractEventInitializing // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MSContractEventInitializingIterator is returned from FilterEventInitializing and is used to iterate over the raw logs and unpacked data for EventInitializing events raised by the MSContract contract.
func (*MSContractEventInitializingIterator) Close ¶
func (it *MSContractEventInitializingIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MSContractEventInitializingIterator) Error ¶
func (it *MSContractEventInitializingIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MSContractEventInitializingIterator) Next ¶
func (it *MSContractEventInitializingIterator) 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 MSContractEventNotClosed ¶
MSContractEventNotClosed represents a EventNotClosed event raised by the MSContract contract.
type MSContractEventNotClosedIterator ¶
type MSContractEventNotClosedIterator struct { Event *MSContractEventNotClosed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MSContractEventNotClosedIterator is returned from FilterEventNotClosed and is used to iterate over the raw logs and unpacked data for EventNotClosed events raised by the MSContract contract.
func (*MSContractEventNotClosedIterator) Close ¶
func (it *MSContractEventNotClosedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MSContractEventNotClosedIterator) Error ¶
func (it *MSContractEventNotClosedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MSContractEventNotClosedIterator) Next ¶
func (it *MSContractEventNotClosedIterator) 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 MSContractEventRefunded ¶
MSContractEventRefunded represents a EventRefunded event raised by the MSContract contract.
type MSContractEventRefundedIterator ¶
type MSContractEventRefundedIterator struct { Event *MSContractEventRefunded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MSContractEventRefundedIterator is returned from FilterEventRefunded and is used to iterate over the raw logs and unpacked data for EventRefunded events raised by the MSContract contract.
func (*MSContractEventRefundedIterator) Close ¶
func (it *MSContractEventRefundedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MSContractEventRefundedIterator) Error ¶
func (it *MSContractEventRefundedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MSContractEventRefundedIterator) Next ¶
func (it *MSContractEventRefundedIterator) 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 MSContractEventStateRegistered ¶
type MSContractEventStateRegistered struct { BlockedAlice *big.Int BlockedBob *big.Int Raw types.Log // Blockchain specific contextual infos }
MSContractEventStateRegistered represents a EventStateRegistered event raised by the MSContract contract.
type MSContractEventStateRegisteredIterator ¶
type MSContractEventStateRegisteredIterator struct { Event *MSContractEventStateRegistered // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MSContractEventStateRegisteredIterator is returned from FilterEventStateRegistered and is used to iterate over the raw logs and unpacked data for EventStateRegistered events raised by the MSContract contract.
func (*MSContractEventStateRegisteredIterator) Close ¶
func (it *MSContractEventStateRegisteredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MSContractEventStateRegisteredIterator) Error ¶
func (it *MSContractEventStateRegisteredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MSContractEventStateRegisteredIterator) Next ¶
func (it *MSContractEventStateRegisteredIterator) 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 MSContractEventStateRegistering ¶
type MSContractEventStateRegistering struct {
Raw types.Log // Blockchain specific contextual infos
}
MSContractEventStateRegistering represents a EventStateRegistering event raised by the MSContract contract.
type MSContractEventStateRegisteringIterator ¶
type MSContractEventStateRegisteringIterator struct { Event *MSContractEventStateRegistering // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MSContractEventStateRegisteringIterator is returned from FilterEventStateRegistering and is used to iterate over the raw logs and unpacked data for EventStateRegistering events raised by the MSContract contract.
func (*MSContractEventStateRegisteringIterator) Close ¶
func (it *MSContractEventStateRegisteringIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MSContractEventStateRegisteringIterator) Error ¶
func (it *MSContractEventStateRegisteringIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MSContractEventStateRegisteringIterator) Next ¶
func (it *MSContractEventStateRegisteringIterator) 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 MSContractFilterer ¶
type MSContractFilterer struct {
// contains filtered or unexported fields
}
MSContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewMSContractFilterer ¶
func NewMSContractFilterer(address common.Address, filterer bind.ContractFilterer) (*MSContractFilterer, error)
NewMSContractFilterer creates a new log filterer instance of MSContract, bound to a specific deployed contract.
func (*MSContractFilterer) FilterEventClosed ¶
func (_MSContract *MSContractFilterer) FilterEventClosed(opts *bind.FilterOpts) (*MSContractEventClosedIterator, error)
FilterEventClosed is a free log retrieval operation binding the contract event 0x84b734c38d9368aeb5efcfdc2b8dd5da3027b2f694d640e017ba23beafe6c06c.
Solidity: e EventClosed()
func (*MSContractFilterer) FilterEventClosing ¶
func (_MSContract *MSContractFilterer) FilterEventClosing(opts *bind.FilterOpts) (*MSContractEventClosingIterator, error)
FilterEventClosing is a free log retrieval operation binding the contract event 0x1cf3c51ed35ad77fe26da47a4b40e561be39d952d0a8e2d3c5d6f688e8cd4a7f.
Solidity: e EventClosing()
func (*MSContractFilterer) FilterEventInitialized ¶
func (_MSContract *MSContractFilterer) FilterEventInitialized(opts *bind.FilterOpts) (*MSContractEventInitializedIterator, error)
FilterEventInitialized is a free log retrieval operation binding the contract event 0x66923fdac57bb7f27112472d419ef406c021433b6cf64d88b2f78c5280fe0b62.
Solidity: e EventInitialized(cashAlice uint256, cashBob uint256)
func (*MSContractFilterer) FilterEventInitializing ¶
func (_MSContract *MSContractFilterer) FilterEventInitializing(opts *bind.FilterOpts) (*MSContractEventInitializingIterator, error)
FilterEventInitializing is a free log retrieval operation binding the contract event 0x6cb11985dbf588b27bf25de9727dc78faff0c068234f103b54525ec5e4ddebc5.
Solidity: e EventInitializing(addressAlice address, addressBob address)
func (*MSContractFilterer) FilterEventNotClosed ¶
func (_MSContract *MSContractFilterer) FilterEventNotClosed(opts *bind.FilterOpts) (*MSContractEventNotClosedIterator, error)
FilterEventNotClosed is a free log retrieval operation binding the contract event 0xcd08a02eb4f3c86c4b3352cbe9447051bfc1af76dd9388d388d23c5624a4524b.
Solidity: e EventNotClosed()
func (*MSContractFilterer) FilterEventRefunded ¶
func (_MSContract *MSContractFilterer) FilterEventRefunded(opts *bind.FilterOpts) (*MSContractEventRefundedIterator, error)
FilterEventRefunded is a free log retrieval operation binding the contract event 0xefbc23b4c571c79ee832603f52f6fafc9321a042b7c57a9bd82f809741db3849.
Solidity: e EventRefunded()
func (*MSContractFilterer) FilterEventStateRegistered ¶
func (_MSContract *MSContractFilterer) FilterEventStateRegistered(opts *bind.FilterOpts) (*MSContractEventStateRegisteredIterator, error)
FilterEventStateRegistered is a free log retrieval operation binding the contract event 0xf025b0293fd70914bfa444833429b6c197b8d1aefa338e5d4e6fb3ccfd1aa251.
Solidity: e EventStateRegistered(blockedAlice uint256, blockedBob uint256)
func (*MSContractFilterer) FilterEventStateRegistering ¶
func (_MSContract *MSContractFilterer) FilterEventStateRegistering(opts *bind.FilterOpts) (*MSContractEventStateRegisteringIterator, error)
FilterEventStateRegistering is a free log retrieval operation binding the contract event 0x82ce8e9a702f5f21ca7b1a4bbc6fd40407c770d7ae87544871fe505a728c7e71.
Solidity: e EventStateRegistering()
func (*MSContractFilterer) WatchEventClosed ¶
func (_MSContract *MSContractFilterer) WatchEventClosed(opts *bind.WatchOpts, sink chan<- *MSContractEventClosed) (event.Subscription, error)
WatchEventClosed is a free log subscription operation binding the contract event 0x84b734c38d9368aeb5efcfdc2b8dd5da3027b2f694d640e017ba23beafe6c06c.
Solidity: e EventClosed()
func (*MSContractFilterer) WatchEventClosing ¶
func (_MSContract *MSContractFilterer) WatchEventClosing(opts *bind.WatchOpts, sink chan<- *MSContractEventClosing) (event.Subscription, error)
WatchEventClosing is a free log subscription operation binding the contract event 0x1cf3c51ed35ad77fe26da47a4b40e561be39d952d0a8e2d3c5d6f688e8cd4a7f.
Solidity: e EventClosing()
func (*MSContractFilterer) WatchEventInitialized ¶
func (_MSContract *MSContractFilterer) WatchEventInitialized(opts *bind.WatchOpts, sink chan<- *MSContractEventInitialized) (event.Subscription, error)
WatchEventInitialized is a free log subscription operation binding the contract event 0x66923fdac57bb7f27112472d419ef406c021433b6cf64d88b2f78c5280fe0b62.
Solidity: e EventInitialized(cashAlice uint256, cashBob uint256)
func (*MSContractFilterer) WatchEventInitializing ¶
func (_MSContract *MSContractFilterer) WatchEventInitializing(opts *bind.WatchOpts, sink chan<- *MSContractEventInitializing) (event.Subscription, error)
WatchEventInitializing is a free log subscription operation binding the contract event 0x6cb11985dbf588b27bf25de9727dc78faff0c068234f103b54525ec5e4ddebc5.
Solidity: e EventInitializing(addressAlice address, addressBob address)
func (*MSContractFilterer) WatchEventNotClosed ¶
func (_MSContract *MSContractFilterer) WatchEventNotClosed(opts *bind.WatchOpts, sink chan<- *MSContractEventNotClosed) (event.Subscription, error)
WatchEventNotClosed is a free log subscription operation binding the contract event 0xcd08a02eb4f3c86c4b3352cbe9447051bfc1af76dd9388d388d23c5624a4524b.
Solidity: e EventNotClosed()
func (*MSContractFilterer) WatchEventRefunded ¶
func (_MSContract *MSContractFilterer) WatchEventRefunded(opts *bind.WatchOpts, sink chan<- *MSContractEventRefunded) (event.Subscription, error)
WatchEventRefunded is a free log subscription operation binding the contract event 0xefbc23b4c571c79ee832603f52f6fafc9321a042b7c57a9bd82f809741db3849.
Solidity: e EventRefunded()
func (*MSContractFilterer) WatchEventStateRegistered ¶
func (_MSContract *MSContractFilterer) WatchEventStateRegistered(opts *bind.WatchOpts, sink chan<- *MSContractEventStateRegistered) (event.Subscription, error)
WatchEventStateRegistered is a free log subscription operation binding the contract event 0xf025b0293fd70914bfa444833429b6c197b8d1aefa338e5d4e6fb3ccfd1aa251.
Solidity: e EventStateRegistered(blockedAlice uint256, blockedBob uint256)
func (*MSContractFilterer) WatchEventStateRegistering ¶
func (_MSContract *MSContractFilterer) WatchEventStateRegistering(opts *bind.WatchOpts, sink chan<- *MSContractEventStateRegistering) (event.Subscription, error)
WatchEventStateRegistering is a free log subscription operation binding the contract event 0x82ce8e9a702f5f21ca7b1a4bbc6fd40407c770d7ae87544871fe505a728c7e71.
Solidity: e EventStateRegistering()
type MSContractRaw ¶
type MSContractRaw struct {
Contract *MSContract // Generic contract binding to access the raw methods on
}
MSContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*MSContractRaw) Call ¶
func (_MSContract *MSContractRaw) 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 (*MSContractRaw) Transact ¶
func (_MSContract *MSContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MSContractRaw) Transfer ¶
func (_MSContract *MSContractRaw) 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 MSContractSession ¶
type MSContractSession struct { Contract *MSContract // 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 }
MSContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*MSContractSession) Alice ¶
func (_MSContract *MSContractSession) Alice() (struct { Id common.Address Cash *big.Int WaitForInput bool }, error)
Alice is a free data retrieval call binding the contract method 0xfb47e3a2.
Solidity: function alice() constant returns(id address, cash uint256, waitForInput bool)
func (*MSContractSession) Bob ¶
func (_MSContract *MSContractSession) Bob() (struct { Id common.Address Cash *big.Int WaitForInput bool }, error)
Bob is a free data retrieval call binding the contract method 0xc09cec77.
Solidity: function bob() constant returns(id address, cash uint256, waitForInput bool)
func (*MSContractSession) C ¶
func (_MSContract *MSContractSession) C() (struct { Active bool Vpc common.Address Sid *big.Int BlockedA *big.Int BlockedB *big.Int Version *big.Int }, error)
C is a free data retrieval call binding the contract method 0xc3da42b8.
Solidity: function c() constant returns(active bool, vpc address, sid uint256, blockedA uint256, blockedB uint256, version uint256)
func (*MSContractSession) Close ¶
func (_MSContract *MSContractSession) Close() (*types.Transaction, error)
Close is a paid mutator transaction binding the contract method 0x43d726d6.
Solidity: function close() returns()
func (*MSContractSession) Confirm ¶
func (_MSContract *MSContractSession) Confirm() (*types.Transaction, error)
Confirm is a paid mutator transaction binding the contract method 0x7022b58e.
Solidity: function confirm() returns()
func (*MSContractSession) Execute ¶
func (_MSContract *MSContractSession) Execute(_alice common.Address, _bob common.Address) (*types.Transaction, error)
Execute is a paid mutator transaction binding the contract method 0xd80aea15.
Solidity: function execute(_alice address, _bob address) returns()
func (*MSContractSession) FinalizeClose ¶
func (_MSContract *MSContractSession) FinalizeClose() (*types.Transaction, error)
FinalizeClose is a paid mutator transaction binding the contract method 0x67516ea1.
Solidity: function finalizeClose() returns()
func (*MSContractSession) FinalizeRegister ¶
func (_MSContract *MSContractSession) FinalizeRegister() (*types.Transaction, error)
FinalizeRegister is a paid mutator transaction binding the contract method 0xc3995846.
Solidity: function finalizeRegister() returns()
func (*MSContractSession) Refund ¶
func (_MSContract *MSContractSession) Refund() (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0x590e1ae3.
Solidity: function refund() returns()
func (*MSContractSession) StateRegister ¶
func (_MSContract *MSContractSession) StateRegister(_vpc common.Address, _sid *big.Int, _blockedA *big.Int, _blockedB *big.Int, _version *big.Int, sigA []byte, sigB []byte) (*types.Transaction, error)
StateRegister is a paid mutator transaction binding the contract method 0x46cc2f8a.
Solidity: function stateRegister(_vpc address, _sid uint256, _blockedA uint256, _blockedB uint256, _version uint256, sigA bytes, sigB bytes) returns()
func (*MSContractSession) Status ¶
func (_MSContract *MSContractSession) Status() (uint8, error)
Status is a free data retrieval call binding the contract method 0x200d2ed2.
Solidity: function status() constant returns(uint8)
type MSContractTransactor ¶
type MSContractTransactor struct {
// contains filtered or unexported fields
}
MSContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewMSContractTransactor ¶
func NewMSContractTransactor(address common.Address, transactor bind.ContractTransactor) (*MSContractTransactor, error)
NewMSContractTransactor creates a new write-only instance of MSContract, bound to a specific deployed contract.
func (*MSContractTransactor) Close ¶
func (_MSContract *MSContractTransactor) Close(opts *bind.TransactOpts) (*types.Transaction, error)
Close is a paid mutator transaction binding the contract method 0x43d726d6.
Solidity: function close() returns()
func (*MSContractTransactor) Confirm ¶
func (_MSContract *MSContractTransactor) Confirm(opts *bind.TransactOpts) (*types.Transaction, error)
Confirm is a paid mutator transaction binding the contract method 0x7022b58e.
Solidity: function confirm() returns()
func (*MSContractTransactor) Execute ¶
func (_MSContract *MSContractTransactor) Execute(opts *bind.TransactOpts, _alice common.Address, _bob common.Address) (*types.Transaction, error)
Execute is a paid mutator transaction binding the contract method 0xd80aea15.
Solidity: function execute(_alice address, _bob address) returns()
func (*MSContractTransactor) FinalizeClose ¶
func (_MSContract *MSContractTransactor) FinalizeClose(opts *bind.TransactOpts) (*types.Transaction, error)
FinalizeClose is a paid mutator transaction binding the contract method 0x67516ea1.
Solidity: function finalizeClose() returns()
func (*MSContractTransactor) FinalizeRegister ¶
func (_MSContract *MSContractTransactor) FinalizeRegister(opts *bind.TransactOpts) (*types.Transaction, error)
FinalizeRegister is a paid mutator transaction binding the contract method 0xc3995846.
Solidity: function finalizeRegister() returns()
func (*MSContractTransactor) Refund ¶
func (_MSContract *MSContractTransactor) Refund(opts *bind.TransactOpts) (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0x590e1ae3.
Solidity: function refund() returns()
func (*MSContractTransactor) StateRegister ¶
func (_MSContract *MSContractTransactor) StateRegister(opts *bind.TransactOpts, _vpc common.Address, _sid *big.Int, _blockedA *big.Int, _blockedB *big.Int, _version *big.Int, sigA []byte, sigB []byte) (*types.Transaction, error)
StateRegister is a paid mutator transaction binding the contract method 0x46cc2f8a.
Solidity: function stateRegister(_vpc address, _sid uint256, _blockedA uint256, _blockedB uint256, _version uint256, sigA bytes, sigB bytes) returns()
type MSContractTransactorRaw ¶
type MSContractTransactorRaw struct {
Contract *MSContractTransactor // Generic write-only contract binding to access the raw methods on
}
MSContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*MSContractTransactorRaw) Transact ¶
func (_MSContract *MSContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MSContractTransactorRaw) Transfer ¶
func (_MSContract *MSContractTransactorRaw) 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 MSContractTransactorSession ¶
type MSContractTransactorSession struct { Contract *MSContractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MSContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*MSContractTransactorSession) Close ¶
func (_MSContract *MSContractTransactorSession) Close() (*types.Transaction, error)
Close is a paid mutator transaction binding the contract method 0x43d726d6.
Solidity: function close() returns()
func (*MSContractTransactorSession) Confirm ¶
func (_MSContract *MSContractTransactorSession) Confirm() (*types.Transaction, error)
Confirm is a paid mutator transaction binding the contract method 0x7022b58e.
Solidity: function confirm() returns()
func (*MSContractTransactorSession) Execute ¶
func (_MSContract *MSContractTransactorSession) Execute(_alice common.Address, _bob common.Address) (*types.Transaction, error)
Execute is a paid mutator transaction binding the contract method 0xd80aea15.
Solidity: function execute(_alice address, _bob address) returns()
func (*MSContractTransactorSession) FinalizeClose ¶
func (_MSContract *MSContractTransactorSession) FinalizeClose() (*types.Transaction, error)
FinalizeClose is a paid mutator transaction binding the contract method 0x67516ea1.
Solidity: function finalizeClose() returns()
func (*MSContractTransactorSession) FinalizeRegister ¶
func (_MSContract *MSContractTransactorSession) FinalizeRegister() (*types.Transaction, error)
FinalizeRegister is a paid mutator transaction binding the contract method 0xc3995846.
Solidity: function finalizeRegister() returns()
func (*MSContractTransactorSession) Refund ¶
func (_MSContract *MSContractTransactorSession) Refund() (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0x590e1ae3.
Solidity: function refund() returns()
func (*MSContractTransactorSession) StateRegister ¶
func (_MSContract *MSContractTransactorSession) StateRegister(_vpc common.Address, _sid *big.Int, _blockedA *big.Int, _blockedB *big.Int, _version *big.Int, sigA []byte, sigB []byte) (*types.Transaction, error)
StateRegister is a paid mutator transaction binding the contract method 0x46cc2f8a.
Solidity: function stateRegister(_vpc address, _sid uint256, _blockedA uint256, _blockedB uint256, _version uint256, sigA bytes, sigB bytes) returns()
type MatchStatus ¶
type MatchStatus uint8
MatchStatus represents the match result when contracts are compared.
const ( Match MatchStatus = iota NoMatch Missing Unknown )
Enumeration of allowed values for MatchStatus.
func CheckSha256Sum ¶
func CheckSha256Sum(reader io.Reader, reqSha256Sum string) (status MatchStatus, err error)
CheckSha256Sum returns Match if SHA256 sum over the data in reader matches the reqSHA256 sum. Else a NoMatch or Unknown status with appropriate error information is returned.
type StoreType ¶
type StoreType struct {
// contains filtered or unexported fields
}
StoreType represents the contract store with handlers for each contract, its timeout periods and storage directory on disk.
func (StoreType) LibSignatures ¶
LibSignatures return the libsignatures contract handler from the store
func (StoreType) MSContract ¶
MSContract returns the ms contract handler from the store.
func (StoreType) SHA256Sum ¶
SHA256Sum calculates and returns SHA256 sum over the all hash of runtime binaries corresponding to each contract in contract store.
func (StoreType) TimeoutMSContract ¶
TimeoutMSContract returns the ms contract timeout value.
func (StoreType) TimeoutVPCExtendedValidity ¶
TimeoutVPCExtendedValidity returns the vpc extended timeout value.
func (StoreType) TimeoutVPCValidity ¶
TimeoutVPCValidity returns the vpc validity timeout value.
type VPC ¶
type VPC struct { VPCCaller // Read-only binding to the contract VPCTransactor // Write-only binding to the contract VPCFilterer // Log filterer for contract events }
VPC is an auto generated Go binding around an Ethereum contract.
func DeployVPC ¶
func DeployVPC(auth *bind.TransactOpts, backend bind.ContractBackend, _libSig common.Address) (common.Address, *types.Transaction, *VPC, error)
DeployVPC deploys a new Ethereum contract, binding an instance of VPC to it.
type VPCCaller ¶
type VPCCaller struct {
// contains filtered or unexported fields
}
VPCCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewVPCCaller ¶
NewVPCCaller creates a new read-only instance of VPC, bound to a specific deployed contract.
func (*VPCCaller) Id ¶
Id is a free data retrieval call binding the contract method 0xaf640d0f.
Solidity: function id() constant returns(bytes32)
func (*VPCCaller) LibSig ¶
LibSig is a free data retrieval call binding the contract method 0x1cd6bbbd.
Solidity: function libSig() constant returns(address)
func (*VPCCaller) S ¶
func (_VPC *VPCCaller) S(opts *bind.CallOpts) (struct { AliceCash *big.Int BobCash *big.Int SeqNo *big.Int Validity *big.Int ExtendedValidity *big.Int Open bool WaitingForAlice bool WaitingForBob bool Init bool }, error)
S is a free data retrieval call binding the contract method 0x86b714e2.
Solidity: function s() constant returns(AliceCash uint256, BobCash uint256, seqNo uint256, validity uint256, extendedValidity uint256, open bool, waitingForAlice bool, waitingForBob bool, init bool)
func (*VPCCaller) States ¶
func (_VPC *VPCCaller) States(opts *bind.CallOpts, arg0 [32]byte) (struct { AliceCash *big.Int BobCash *big.Int SeqNo *big.Int Validity *big.Int ExtendedValidity *big.Int Open bool WaitingForAlice bool WaitingForBob bool Init bool }, error)
States is a free data retrieval call binding the contract method 0xfbdc1ef1.
Solidity: function states( bytes32) constant returns(AliceCash uint256, BobCash uint256, seqNo uint256, validity uint256, extendedValidity uint256, open bool, waitingForAlice bool, waitingForBob bool, init bool)
type VPCCallerRaw ¶
type VPCCallerRaw struct {
Contract *VPCCaller // Generic read-only contract binding to access the raw methods on
}
VPCCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*VPCCallerRaw) Call ¶
func (_VPC *VPCCallerRaw) 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 VPCCallerSession ¶
type VPCCallerSession struct { Contract *VPCCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
VPCCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*VPCCallerSession) Id ¶
func (_VPC *VPCCallerSession) Id() ([32]byte, error)
Id is a free data retrieval call binding the contract method 0xaf640d0f.
Solidity: function id() constant returns(bytes32)
func (*VPCCallerSession) LibSig ¶
func (_VPC *VPCCallerSession) LibSig() (common.Address, error)
LibSig is a free data retrieval call binding the contract method 0x1cd6bbbd.
Solidity: function libSig() constant returns(address)
func (*VPCCallerSession) S ¶
func (_VPC *VPCCallerSession) S() (struct { AliceCash *big.Int BobCash *big.Int SeqNo *big.Int Validity *big.Int ExtendedValidity *big.Int Open bool WaitingForAlice bool WaitingForBob bool Init bool }, error)
S is a free data retrieval call binding the contract method 0x86b714e2.
Solidity: function s() constant returns(AliceCash uint256, BobCash uint256, seqNo uint256, validity uint256, extendedValidity uint256, open bool, waitingForAlice bool, waitingForBob bool, init bool)
func (*VPCCallerSession) States ¶
func (_VPC *VPCCallerSession) States(arg0 [32]byte) (struct { AliceCash *big.Int BobCash *big.Int SeqNo *big.Int Validity *big.Int ExtendedValidity *big.Int Open bool WaitingForAlice bool WaitingForBob bool Init bool }, error)
States is a free data retrieval call binding the contract method 0xfbdc1ef1.
Solidity: function states( bytes32) constant returns(AliceCash uint256, BobCash uint256, seqNo uint256, validity uint256, extendedValidity uint256, open bool, waitingForAlice bool, waitingForBob bool, init bool)
type VPCEventVpcClosed ¶
type VPCEventVpcClosed struct { Id [32]byte CashAlice *big.Int CashBob *big.Int Raw types.Log // Blockchain specific contextual infos }
VPCEventVpcClosed represents a EventVpcClosed event raised by the VPC contract.
type VPCEventVpcClosedIterator ¶
type VPCEventVpcClosedIterator struct { Event *VPCEventVpcClosed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VPCEventVpcClosedIterator is returned from FilterEventVpcClosed and is used to iterate over the raw logs and unpacked data for EventVpcClosed events raised by the VPC contract.
func (*VPCEventVpcClosedIterator) Close ¶
func (it *VPCEventVpcClosedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VPCEventVpcClosedIterator) Error ¶
func (it *VPCEventVpcClosedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VPCEventVpcClosedIterator) Next ¶
func (it *VPCEventVpcClosedIterator) 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 VPCEventVpcClosing ¶
type VPCEventVpcClosing struct { Id [32]byte Raw types.Log // Blockchain specific contextual infos }
VPCEventVpcClosing represents a EventVpcClosing event raised by the VPC contract.
type VPCEventVpcClosingIterator ¶
type VPCEventVpcClosingIterator struct { Event *VPCEventVpcClosing // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VPCEventVpcClosingIterator is returned from FilterEventVpcClosing and is used to iterate over the raw logs and unpacked data for EventVpcClosing events raised by the VPC contract.
func (*VPCEventVpcClosingIterator) Close ¶
func (it *VPCEventVpcClosingIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VPCEventVpcClosingIterator) Error ¶
func (it *VPCEventVpcClosingIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VPCEventVpcClosingIterator) Next ¶
func (it *VPCEventVpcClosingIterator) 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 VPCFilterer ¶
type VPCFilterer struct {
// contains filtered or unexported fields
}
VPCFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewVPCFilterer ¶
func NewVPCFilterer(address common.Address, filterer bind.ContractFilterer) (*VPCFilterer, error)
NewVPCFilterer creates a new log filterer instance of VPC, bound to a specific deployed contract.
func (*VPCFilterer) FilterEventVpcClosed ¶
func (_VPC *VPCFilterer) FilterEventVpcClosed(opts *bind.FilterOpts, _id [][32]byte) (*VPCEventVpcClosedIterator, error)
FilterEventVpcClosed is a free log retrieval operation binding the contract event 0x26aa54eb5022b6fca25647b788775f49744c0c0df0ab3f674b858856d4dbf004.
Solidity: e EventVpcClosed(_id indexed bytes32, cashAlice uint256, cashBob uint256)
func (*VPCFilterer) FilterEventVpcClosing ¶
func (_VPC *VPCFilterer) FilterEventVpcClosing(opts *bind.FilterOpts, _id [][32]byte) (*VPCEventVpcClosingIterator, error)
FilterEventVpcClosing is a free log retrieval operation binding the contract event 0xd2e6dd92165017c1e9454967126e093291ed52383300a83cc477adca7963128f.
Solidity: e EventVpcClosing(_id indexed bytes32)
func (*VPCFilterer) WatchEventVpcClosed ¶
func (_VPC *VPCFilterer) WatchEventVpcClosed(opts *bind.WatchOpts, sink chan<- *VPCEventVpcClosed, _id [][32]byte) (event.Subscription, error)
WatchEventVpcClosed is a free log subscription operation binding the contract event 0x26aa54eb5022b6fca25647b788775f49744c0c0df0ab3f674b858856d4dbf004.
Solidity: e EventVpcClosed(_id indexed bytes32, cashAlice uint256, cashBob uint256)
func (*VPCFilterer) WatchEventVpcClosing ¶
func (_VPC *VPCFilterer) WatchEventVpcClosing(opts *bind.WatchOpts, sink chan<- *VPCEventVpcClosing, _id [][32]byte) (event.Subscription, error)
WatchEventVpcClosing is a free log subscription operation binding the contract event 0xd2e6dd92165017c1e9454967126e093291ed52383300a83cc477adca7963128f.
Solidity: e EventVpcClosing(_id indexed bytes32)
type VPCRaw ¶
type VPCRaw struct {
Contract *VPC // Generic contract binding to access the raw methods on
}
VPCRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*VPCRaw) Call ¶
func (_VPC *VPCRaw) 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 (*VPCRaw) Transact ¶
func (_VPC *VPCRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*VPCRaw) Transfer ¶
func (_VPC *VPCRaw) 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 VPCSession ¶
type VPCSession struct { Contract *VPC // 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 }
VPCSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*VPCSession) Close ¶
func (_VPC *VPCSession) Close(alice common.Address, bob common.Address, sid *big.Int, version *big.Int, aliceCash *big.Int, bobCash *big.Int, signA []byte, signB []byte) (*types.Transaction, error)
Close is a paid mutator transaction binding the contract method 0x5eb3d246.
Solidity: function close(alice address, bob address, sid uint256, version uint256, aliceCash uint256, bobCash uint256, signA bytes, signB bytes) returns()
func (*VPCSession) Finalize ¶
func (_VPC *VPCSession) Finalize(alice common.Address, bob common.Address, sid *big.Int) (*types.Transaction, error)
Finalize is a paid mutator transaction binding the contract method 0x5e9d2afe.
Solidity: function finalize(alice address, bob address, sid uint256) returns(v bool, a uint256, b uint256)
func (*VPCSession) Id ¶
func (_VPC *VPCSession) Id() ([32]byte, error)
Id is a free data retrieval call binding the contract method 0xaf640d0f.
Solidity: function id() constant returns(bytes32)
func (*VPCSession) LibSig ¶
func (_VPC *VPCSession) LibSig() (common.Address, error)
LibSig is a free data retrieval call binding the contract method 0x1cd6bbbd.
Solidity: function libSig() constant returns(address)
func (*VPCSession) S ¶
func (_VPC *VPCSession) S() (struct { AliceCash *big.Int BobCash *big.Int SeqNo *big.Int Validity *big.Int ExtendedValidity *big.Int Open bool WaitingForAlice bool WaitingForBob bool Init bool }, error)
S is a free data retrieval call binding the contract method 0x86b714e2.
Solidity: function s() constant returns(AliceCash uint256, BobCash uint256, seqNo uint256, validity uint256, extendedValidity uint256, open bool, waitingForAlice bool, waitingForBob bool, init bool)
func (*VPCSession) States ¶
func (_VPC *VPCSession) States(arg0 [32]byte) (struct { AliceCash *big.Int BobCash *big.Int SeqNo *big.Int Validity *big.Int ExtendedValidity *big.Int Open bool WaitingForAlice bool WaitingForBob bool Init bool }, error)
States is a free data retrieval call binding the contract method 0xfbdc1ef1.
Solidity: function states( bytes32) constant returns(AliceCash uint256, BobCash uint256, seqNo uint256, validity uint256, extendedValidity uint256, open bool, waitingForAlice bool, waitingForBob bool, init bool)
type VPCTransactor ¶
type VPCTransactor struct {
// contains filtered or unexported fields
}
VPCTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewVPCTransactor ¶
func NewVPCTransactor(address common.Address, transactor bind.ContractTransactor) (*VPCTransactor, error)
NewVPCTransactor creates a new write-only instance of VPC, bound to a specific deployed contract.
func (*VPCTransactor) Close ¶
func (_VPC *VPCTransactor) Close(opts *bind.TransactOpts, alice common.Address, bob common.Address, sid *big.Int, version *big.Int, aliceCash *big.Int, bobCash *big.Int, signA []byte, signB []byte) (*types.Transaction, error)
Close is a paid mutator transaction binding the contract method 0x5eb3d246.
Solidity: function close(alice address, bob address, sid uint256, version uint256, aliceCash uint256, bobCash uint256, signA bytes, signB bytes) returns()
func (*VPCTransactor) Finalize ¶
func (_VPC *VPCTransactor) Finalize(opts *bind.TransactOpts, alice common.Address, bob common.Address, sid *big.Int) (*types.Transaction, error)
Finalize is a paid mutator transaction binding the contract method 0x5e9d2afe.
Solidity: function finalize(alice address, bob address, sid uint256) returns(v bool, a uint256, b uint256)
type VPCTransactorRaw ¶
type VPCTransactorRaw struct {
Contract *VPCTransactor // Generic write-only contract binding to access the raw methods on
}
VPCTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*VPCTransactorRaw) Transact ¶
func (_VPC *VPCTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*VPCTransactorRaw) Transfer ¶
func (_VPC *VPCTransactorRaw) 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 VPCTransactorSession ¶
type VPCTransactorSession struct { Contract *VPCTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
VPCTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*VPCTransactorSession) Close ¶
func (_VPC *VPCTransactorSession) Close(alice common.Address, bob common.Address, sid *big.Int, version *big.Int, aliceCash *big.Int, bobCash *big.Int, signA []byte, signB []byte) (*types.Transaction, error)
Close is a paid mutator transaction binding the contract method 0x5eb3d246.
Solidity: function close(alice address, bob address, sid uint256, version uint256, aliceCash uint256, bobCash uint256, signA bytes, signB bytes) returns()
func (*VPCTransactorSession) Finalize ¶
func (_VPC *VPCTransactorSession) Finalize(alice common.Address, bob common.Address, sid *big.Int) (*types.Transaction, error)
Finalize is a paid mutator transaction binding the contract method 0x5e9d2afe.
Solidity: function finalize(alice address, bob address, sid uint256) returns(v bool, a uint256, b uint256)