Documentation
¶
Index ¶
- Constants
- Variables
- func DecodeAppState(appStateBytes []byte) (uint64, uint64, []byte, uint64, error)
- func DecodeAppStateProof(stateProofBytes []byte) ([]byte, [][]byte, error)
- func EncodeAppState(nonce uint64, seqNum uint64, state []byte, disputeTimeout uint64) ([]byte, error)
- func EncodeAppStateProof(appStateBytes []byte, sigs [][]byte) ([]byte, error)
- func GetVirtualAddress(byteCode []byte, constructor []byte, nonce uint64) []byte
- func SigSortedAppStateProof(proof []byte) ([]byte, error)
- func SortPlayerSigs(state []byte, sigs [][]byte) [][]byte
- func SortPlayers(src []ctype.Addr) []ctype.Addr
- type AppChannel
- type AppClient
- func (c *AppClient) ApplyAction(cid string, action []byte) error
- func (c *AppClient) DeleteAppChannel(cid string)
- func (c *AppClient) FinalizeAppChannelOnActionTimeout(cid string) error
- func (c *AppClient) GetAppChannel(cid string) *AppChannel
- func (c *AppClient) GetAppChannelActionDeadline(cid string) (uint64, error)
- func (c *AppClient) GetAppChannelDeployedAddr(cid string) (ctype.Addr, error)
- func (c *AppClient) GetAppChannelSeqNum(cid string) (uint64, error)
- func (c *AppClient) GetAppChannelSettleFinalizedTime(cid string) (uint64, error)
- func (c *AppClient) GetAppChannelState(cid string, key *big.Int) ([]byte, error)
- func (c *AppClient) GetAppChannelStatus(cid string) (uint8, error)
- func (c *AppClient) GetBooleanOutcome(cid string, query []byte) (bool, bool, error)
- func (c *AppClient) NewAppChannelOnDeployedContract(contractAddr ctype.Addr, nonce uint64, players []ctype.Addr, ...) (string, error)
- func (c *AppClient) NewAppChannelOnVirtualContract(byteCode []byte, constructor []byte, nonce uint64, onchainTimeout uint64, ...) (string, error)
- func (c *AppClient) PutAppChannel(cid string, appChannel *AppChannel)
- func (c *AppClient) SettleAppChannel(cid string, stateproof []byte) error
- func (c *AppClient) SettleByInvalidState(gcid string, oracleProof []byte, cosignedStateProof []byte) error
- func (c *AppClient) SettleByInvalidTurn(gcid string, oracleProof []byte, cosignedStateProof []byte) error
- func (c *AppClient) SettleByMoveTimeout(gcid string, oracleProof []byte) error
- func (c *AppClient) SettleBySigTimeout(gcid string, oracleProof []byte) error
- func (c *AppClient) SignAppState(cid string, seqNum uint64, state []byte) ([]byte, []byte, error)
- type AppState
- func (*AppState) Descriptor() ([]byte, []int)
- func (m *AppState) GetNonce() uint64
- func (m *AppState) GetSeqNum() uint64
- func (m *AppState) GetState() []byte
- func (m *AppState) GetTimeout() uint64
- func (*AppState) ProtoMessage()
- func (m *AppState) Reset()
- func (m *AppState) String() string
- func (m *AppState) XXX_DiscardUnknown()
- func (m *AppState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AppState) XXX_Merge(src proto.Message)
- func (m *AppState) XXX_Size() int
- func (m *AppState) XXX_Unmarshal(b []byte) error
- type IBooleanOutcome
- type IBooleanOutcomeCaller
- type IBooleanOutcomeCallerRaw
- type IBooleanOutcomeCallerSession
- type IBooleanOutcomeFilterer
- type IBooleanOutcomeRaw
- func (_IBooleanOutcome *IBooleanOutcomeRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_IBooleanOutcome *IBooleanOutcomeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IBooleanOutcome *IBooleanOutcomeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IBooleanOutcomeSession
- type IBooleanOutcomeTransactor
- type IBooleanOutcomeTransactorRaw
- type IBooleanOutcomeTransactorSession
- type IMultiSession
- type IMultiSessionCaller
- func (_IMultiSession *IMultiSessionCaller) GetActionDeadline(opts *bind.CallOpts, _session [32]byte) (*big.Int, error)
- func (_IMultiSession *IMultiSessionCaller) GetSeqNum(opts *bind.CallOpts, _session [32]byte) (*big.Int, error)
- func (_IMultiSession *IMultiSessionCaller) GetSessionID(opts *bind.CallOpts, _nonce *big.Int, _signers []common.Address) ([32]byte, error)
- func (_IMultiSession *IMultiSessionCaller) GetSettleFinalizedTime(opts *bind.CallOpts, _session [32]byte) (*big.Int, error)
- func (_IMultiSession *IMultiSessionCaller) GetState(opts *bind.CallOpts, _session [32]byte, _key *big.Int) ([]byte, error)
- func (_IMultiSession *IMultiSessionCaller) GetStatus(opts *bind.CallOpts, _session [32]byte) (uint8, error)
- type IMultiSessionCallerRaw
- type IMultiSessionCallerSession
- func (_IMultiSession *IMultiSessionCallerSession) GetActionDeadline(_session [32]byte) (*big.Int, error)
- func (_IMultiSession *IMultiSessionCallerSession) GetSeqNum(_session [32]byte) (*big.Int, error)
- func (_IMultiSession *IMultiSessionCallerSession) GetSessionID(_nonce *big.Int, _signers []common.Address) ([32]byte, error)
- func (_IMultiSession *IMultiSessionCallerSession) GetSettleFinalizedTime(_session [32]byte) (*big.Int, error)
- func (_IMultiSession *IMultiSessionCallerSession) GetState(_session [32]byte, _key *big.Int) ([]byte, error)
- func (_IMultiSession *IMultiSessionCallerSession) GetStatus(_session [32]byte) (uint8, error)
- type IMultiSessionFilterer
- func (_IMultiSession *IMultiSessionFilterer) FilterIntendSettle(opts *bind.FilterOpts, session [][32]byte) (*IMultiSessionIntendSettleIterator, error)
- func (_IMultiSession *IMultiSessionFilterer) ParseIntendSettle(log types.Log) (*IMultiSessionIntendSettle, error)
- func (_IMultiSession *IMultiSessionFilterer) WatchIntendSettle(opts *bind.WatchOpts, sink chan<- *IMultiSessionIntendSettle, ...) (event.Subscription, error)
- type IMultiSessionIntendSettle
- type IMultiSessionIntendSettleIterator
- type IMultiSessionRaw
- func (_IMultiSession *IMultiSessionRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_IMultiSession *IMultiSessionRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IMultiSession *IMultiSessionRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IMultiSessionSession
- func (_IMultiSession *IMultiSessionSession) ApplyAction(_session [32]byte, _action []byte) (*types.Transaction, error)
- func (_IMultiSession *IMultiSessionSession) FinalizeOnActionTimeout(_session [32]byte) (*types.Transaction, error)
- func (_IMultiSession *IMultiSessionSession) GetActionDeadline(_session [32]byte) (*big.Int, error)
- func (_IMultiSession *IMultiSessionSession) GetSeqNum(_session [32]byte) (*big.Int, error)
- func (_IMultiSession *IMultiSessionSession) GetSessionID(_nonce *big.Int, _signers []common.Address) ([32]byte, error)
- func (_IMultiSession *IMultiSessionSession) GetSettleFinalizedTime(_session [32]byte) (*big.Int, error)
- func (_IMultiSession *IMultiSessionSession) GetState(_session [32]byte, _key *big.Int) ([]byte, error)
- func (_IMultiSession *IMultiSessionSession) GetStatus(_session [32]byte) (uint8, error)
- func (_IMultiSession *IMultiSessionSession) IntendSettle(_stateProof []byte) (*types.Transaction, error)
- type IMultiSessionTransactor
- func (_IMultiSession *IMultiSessionTransactor) ApplyAction(opts *bind.TransactOpts, _session [32]byte, _action []byte) (*types.Transaction, error)
- func (_IMultiSession *IMultiSessionTransactor) FinalizeOnActionTimeout(opts *bind.TransactOpts, _session [32]byte) (*types.Transaction, error)
- func (_IMultiSession *IMultiSessionTransactor) IntendSettle(opts *bind.TransactOpts, _stateProof []byte) (*types.Transaction, error)
- type IMultiSessionTransactorRaw
- type IMultiSessionTransactorSession
- func (_IMultiSession *IMultiSessionTransactorSession) ApplyAction(_session [32]byte, _action []byte) (*types.Transaction, error)
- func (_IMultiSession *IMultiSessionTransactorSession) FinalizeOnActionTimeout(_session [32]byte) (*types.Transaction, error)
- func (_IMultiSession *IMultiSessionTransactorSession) IntendSettle(_stateProof []byte) (*types.Transaction, error)
- type IMultiSessionWithOracle
- type IMultiSessionWithOracleCaller
- type IMultiSessionWithOracleCallerRaw
- type IMultiSessionWithOracleCallerSession
- type IMultiSessionWithOracleFilterer
- type IMultiSessionWithOracleRaw
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IMultiSessionWithOracleSession
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) GetSessionID(_nonce *big.Int, _signers []common.Address) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) GetState(_session [32]byte, _key *big.Int) ([]byte, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) GetStatus(_session [32]byte) (uint8, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) SettleByInvalidState(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) SettleByInvalidTurn(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) SettleByMoveTimeout(_oracleProof []byte) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) SettleBySigTimeout(_oracleProof []byte) (*types.Transaction, error)
- type IMultiSessionWithOracleTransactor
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactor) GetSessionID(opts *bind.TransactOpts, _nonce *big.Int, _signers []common.Address) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactor) SettleByInvalidState(opts *bind.TransactOpts, _oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactor) SettleByInvalidTurn(opts *bind.TransactOpts, _oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactor) SettleByMoveTimeout(opts *bind.TransactOpts, _oracleProof []byte) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactor) SettleBySigTimeout(opts *bind.TransactOpts, _oracleProof []byte) (*types.Transaction, error)
- type IMultiSessionWithOracleTransactorRaw
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IMultiSessionWithOracleTransactorSession
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorSession) GetSessionID(_nonce *big.Int, _signers []common.Address) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorSession) SettleByInvalidState(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorSession) SettleByInvalidTurn(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorSession) SettleByMoveTimeout(_oracleProof []byte) (*types.Transaction, error)
- func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorSession) SettleBySigTimeout(_oracleProof []byte) (*types.Transaction, error)
- type INumericOutcome
- type INumericOutcomeCaller
- type INumericOutcomeCallerRaw
- type INumericOutcomeCallerSession
- type INumericOutcomeFilterer
- type INumericOutcomeRaw
- func (_INumericOutcome *INumericOutcomeRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_INumericOutcome *INumericOutcomeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_INumericOutcome *INumericOutcomeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type INumericOutcomeSession
- type INumericOutcomeTransactor
- type INumericOutcomeTransactorRaw
- type INumericOutcomeTransactorSession
- type ISingleSession
- type ISingleSessionCaller
- func (_ISingleSession *ISingleSessionCaller) GetActionDeadline(opts *bind.CallOpts) (*big.Int, error)
- func (_ISingleSession *ISingleSessionCaller) GetSeqNum(opts *bind.CallOpts) (*big.Int, error)
- func (_ISingleSession *ISingleSessionCaller) GetSettleFinalizedTime(opts *bind.CallOpts) (*big.Int, error)
- func (_ISingleSession *ISingleSessionCaller) GetState(opts *bind.CallOpts, _key *big.Int) ([]byte, error)
- func (_ISingleSession *ISingleSessionCaller) GetStatus(opts *bind.CallOpts) (uint8, error)
- type ISingleSessionCallerRaw
- type ISingleSessionCallerSession
- func (_ISingleSession *ISingleSessionCallerSession) GetActionDeadline() (*big.Int, error)
- func (_ISingleSession *ISingleSessionCallerSession) GetSeqNum() (*big.Int, error)
- func (_ISingleSession *ISingleSessionCallerSession) GetSettleFinalizedTime() (*big.Int, error)
- func (_ISingleSession *ISingleSessionCallerSession) GetState(_key *big.Int) ([]byte, error)
- func (_ISingleSession *ISingleSessionCallerSession) GetStatus() (uint8, error)
- type ISingleSessionFilterer
- func (_ISingleSession *ISingleSessionFilterer) FilterIntendSettle(opts *bind.FilterOpts) (*ISingleSessionIntendSettleIterator, error)
- func (_ISingleSession *ISingleSessionFilterer) ParseIntendSettle(log types.Log) (*ISingleSessionIntendSettle, error)
- func (_ISingleSession *ISingleSessionFilterer) WatchIntendSettle(opts *bind.WatchOpts, sink chan<- *ISingleSessionIntendSettle) (event.Subscription, error)
- type ISingleSessionIntendSettle
- type ISingleSessionIntendSettleIterator
- type ISingleSessionRaw
- func (_ISingleSession *ISingleSessionRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_ISingleSession *ISingleSessionRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ISingleSession *ISingleSessionRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ISingleSessionSession
- func (_ISingleSession *ISingleSessionSession) ApplyAction(_action []byte) (*types.Transaction, error)
- func (_ISingleSession *ISingleSessionSession) FinalizeOnActionTimeout() (*types.Transaction, error)
- func (_ISingleSession *ISingleSessionSession) GetActionDeadline() (*big.Int, error)
- func (_ISingleSession *ISingleSessionSession) GetSeqNum() (*big.Int, error)
- func (_ISingleSession *ISingleSessionSession) GetSettleFinalizedTime() (*big.Int, error)
- func (_ISingleSession *ISingleSessionSession) GetState(_key *big.Int) ([]byte, error)
- func (_ISingleSession *ISingleSessionSession) GetStatus() (uint8, error)
- func (_ISingleSession *ISingleSessionSession) IntendSettle(_stateProof []byte) (*types.Transaction, error)
- type ISingleSessionTransactor
- func (_ISingleSession *ISingleSessionTransactor) ApplyAction(opts *bind.TransactOpts, _action []byte) (*types.Transaction, error)
- func (_ISingleSession *ISingleSessionTransactor) FinalizeOnActionTimeout(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_ISingleSession *ISingleSessionTransactor) IntendSettle(opts *bind.TransactOpts, _stateProof []byte) (*types.Transaction, error)
- type ISingleSessionTransactorRaw
- type ISingleSessionTransactorSession
- func (_ISingleSession *ISingleSessionTransactorSession) ApplyAction(_action []byte) (*types.Transaction, error)
- func (_ISingleSession *ISingleSessionTransactorSession) FinalizeOnActionTimeout() (*types.Transaction, error)
- func (_ISingleSession *ISingleSessionTransactorSession) IntendSettle(_stateProof []byte) (*types.Transaction, error)
- type ISingleSessionWithOracle
- type ISingleSessionWithOracleCaller
- type ISingleSessionWithOracleCallerRaw
- type ISingleSessionWithOracleCallerSession
- type ISingleSessionWithOracleFilterer
- type ISingleSessionWithOracleRaw
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ISingleSessionWithOracleSession
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleSession) GetState(_key *big.Int) ([]byte, error)
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleSession) GetStatus() (uint8, error)
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleSession) SettleByInvalidState(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleSession) SettleByInvalidTurn(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleSession) SettleByMoveTimeout(_oracleProof []byte) (*types.Transaction, error)
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleSession) SettleBySigTimeout(_oracleProof []byte) (*types.Transaction, error)
- type ISingleSessionWithOracleTransactor
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactor) SettleByInvalidState(opts *bind.TransactOpts, _oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactor) SettleByInvalidTurn(opts *bind.TransactOpts, _oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactor) SettleByMoveTimeout(opts *bind.TransactOpts, _oracleProof []byte) (*types.Transaction, error)
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactor) SettleBySigTimeout(opts *bind.TransactOpts, _oracleProof []byte) (*types.Transaction, error)
- type ISingleSessionWithOracleTransactorRaw
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ISingleSessionWithOracleTransactorSession
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactorSession) SettleByInvalidState(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactorSession) SettleByInvalidTurn(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactorSession) SettleByMoveTimeout(_oracleProof []byte) (*types.Transaction, error)
- func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactorSession) SettleBySigTimeout(_oracleProof []byte) (*types.Transaction, error)
- type OracleProof
- func (*OracleProof) Descriptor() ([]byte, []int)
- func (m *OracleProof) GetOracleState() []byte
- func (m *OracleProof) GetSig() []byte
- func (*OracleProof) ProtoMessage()
- func (m *OracleProof) Reset()
- func (m *OracleProof) String() string
- func (m *OracleProof) XXX_DiscardUnknown()
- func (m *OracleProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OracleProof) XXX_Merge(src proto.Message)
- func (m *OracleProof) XXX_Size() int
- func (m *OracleProof) XXX_Unmarshal(b []byte) error
- type OracleState
- func (*OracleState) Descriptor() ([]byte, []int)
- func (m *OracleState) GetCurrentTime() uint64
- func (m *OracleState) GetPlayers() [][]byte
- func (m *OracleState) GetStateProof() []byte
- func (m *OracleState) GetUpdateTime() uint64
- func (m *OracleState) GetUpdater() []byte
- func (*OracleState) ProtoMessage()
- func (m *OracleState) Reset()
- func (m *OracleState) String() string
- func (m *OracleState) XXX_DiscardUnknown()
- func (m *OracleState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OracleState) XXX_Merge(src proto.Message)
- func (m *OracleState) XXX_Size() int
- func (m *OracleState) XXX_Unmarshal(b []byte) error
- type SessionQuery
- func (*SessionQuery) Descriptor() ([]byte, []int)
- func (m *SessionQuery) GetQuery() []byte
- func (m *SessionQuery) GetSession() []byte
- func (*SessionQuery) ProtoMessage()
- func (m *SessionQuery) Reset()
- func (m *SessionQuery) String() string
- func (m *SessionQuery) XXX_DiscardUnknown()
- func (m *SessionQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SessionQuery) XXX_Merge(src proto.Message)
- func (m *SessionQuery) XXX_Size() int
- func (m *SessionQuery) XXX_Unmarshal(b []byte) error
- type StateProof
- func (*StateProof) Descriptor() ([]byte, []int)
- func (m *StateProof) GetAppState() []byte
- func (m *StateProof) GetSigs() [][]byte
- func (*StateProof) ProtoMessage()
- func (m *StateProof) Reset()
- func (m *StateProof) String() string
- func (m *StateProof) XXX_DiscardUnknown()
- func (m *StateProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StateProof) XXX_Merge(src proto.Message)
- func (m *StateProof) XXX_Size() int
- func (m *StateProof) XXX_Unmarshal(b []byte) error
Constants ¶
const IBooleanOutcomeABI = "" /* 432-byte string literal not displayed */
IBooleanOutcomeABI is the input ABI used to generate the binding from.
const IMultiSessionABI = "" /* 2269-byte string literal not displayed */
IMultiSessionABI is the input ABI used to generate the binding from.
const IMultiSessionWithOracleABI = "" /* 1686-byte string literal not displayed */
IMultiSessionWithOracleABI is the input ABI used to generate the binding from.
const INumericOutcomeABI = "" /* 435-byte string literal not displayed */
INumericOutcomeABI is the input ABI used to generate the binding from.
const ISingleSessionABI = "" /* 1629-byte string literal not displayed */
ISingleSessionABI is the input ABI used to generate the binding from.
const ISingleSessionWithOracleABI = "" /* 1314-byte string literal not displayed */
ISingleSessionWithOracleABI is the input ABI used to generate the binding from.
Variables ¶
var E_Soltype = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FieldOptions)(nil), ExtensionType: (*string)(nil), Field: 1003, Name: "app.soltype", Tag: "bytes,1003,opt,name=soltype", Filename: "app.proto", }
Functions ¶
func DecodeAppState ¶
func DecodeAppStateProof ¶
func EncodeAppState ¶
func EncodeAppStateProof ¶
func GetVirtualAddress ¶
func SigSortedAppStateProof ¶
func SortPlayerSigs ¶
Types ¶
type AppChannel ¶
type AppChannel struct {
Type entity.ConditionType
Nonce uint64
ByteCode []byte // only for virtual contract
Constructor []byte // only for virtual contract
Players []ctype.Addr // only for deployed contract
Session [32]byte // only for deployed contract
DeployedAddr ctype.Addr
OnChainTimeout uint64
Callback common.StateCallback
// contains filtered or unexported fields
}
type AppClient ¶
type AppClient struct {
// contains filtered or unexported fields
}
func NewAppClient ¶
func NewAppClient( nodeConfig common.GlobalNodeConfig, transactor *eth.Transactor, transactorPool *eth.TransactorPool, monitorService intfs.MonitorService, dal *storage.DAL, signer eth.Signer, ) *AppClient
func (*AppClient) DeleteAppChannel ¶
func (*AppClient) FinalizeAppChannelOnActionTimeout ¶
func (*AppClient) GetAppChannel ¶
func (c *AppClient) GetAppChannel(cid string) *AppChannel
func (*AppClient) GetAppChannelActionDeadline ¶
func (*AppClient) GetAppChannelDeployedAddr ¶
func (*AppClient) GetAppChannelSeqNum ¶
func (*AppClient) GetAppChannelSettleFinalizedTime ¶
func (*AppClient) GetAppChannelState ¶
func (*AppClient) GetAppChannelStatus ¶
func (*AppClient) GetBooleanOutcome ¶
GetBooleanOutcome returns contract isFinalized and getOutcome
func (*AppClient) NewAppChannelOnDeployedContract ¶
func (*AppClient) NewAppChannelOnVirtualContract ¶
func (*AppClient) PutAppChannel ¶
func (c *AppClient) PutAppChannel(cid string, appChannel *AppChannel)
func (*AppClient) SettleAppChannel ¶
func (*AppClient) SettleByInvalidState ¶
func (*AppClient) SettleByInvalidTurn ¶
func (*AppClient) SettleByMoveTimeout ¶
func (*AppClient) SettleBySigTimeout ¶
type AppState ¶
type AppState struct {
// nonce should be unique for each app session among the same signers
Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
// for each nonce, new state has higher sequence number
SeqNum uint64 `protobuf:"varint,2,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"`
// app specific state
State []byte `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
// on-chain response (settle, action) timeout
Timeout uint64 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Next Tag: 5
func (*AppState) Descriptor ¶
func (*AppState) GetTimeout ¶
func (*AppState) ProtoMessage ¶
func (*AppState) ProtoMessage()
func (*AppState) XXX_DiscardUnknown ¶
func (m *AppState) XXX_DiscardUnknown()
func (*AppState) XXX_Marshal ¶
func (*AppState) XXX_Unmarshal ¶
type IBooleanOutcome ¶
type IBooleanOutcome struct {
IBooleanOutcomeCaller // Read-only binding to the contract
IBooleanOutcomeTransactor // Write-only binding to the contract
IBooleanOutcomeFilterer // Log filterer for contract events
}
IBooleanOutcome is an auto generated Go binding around an Ethereum contract.
func NewIBooleanOutcome ¶
func NewIBooleanOutcome(address common.Address, backend bind.ContractBackend) (*IBooleanOutcome, error)
NewIBooleanOutcome creates a new instance of IBooleanOutcome, bound to a specific deployed contract.
type IBooleanOutcomeCaller ¶
type IBooleanOutcomeCaller struct {
// contains filtered or unexported fields
}
IBooleanOutcomeCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIBooleanOutcomeCaller ¶
func NewIBooleanOutcomeCaller(address common.Address, caller bind.ContractCaller) (*IBooleanOutcomeCaller, error)
NewIBooleanOutcomeCaller creates a new read-only instance of IBooleanOutcome, bound to a specific deployed contract.
func (*IBooleanOutcomeCaller) GetOutcome ¶
func (_IBooleanOutcome *IBooleanOutcomeCaller) GetOutcome(opts *bind.CallOpts, _query []byte) (bool, error)
GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.
Solidity: function getOutcome(bytes _query) view returns(bool)
func (*IBooleanOutcomeCaller) IsFinalized ¶
func (_IBooleanOutcome *IBooleanOutcomeCaller) IsFinalized(opts *bind.CallOpts, _query []byte) (bool, error)
IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.
Solidity: function isFinalized(bytes _query) view returns(bool)
type IBooleanOutcomeCallerRaw ¶
type IBooleanOutcomeCallerRaw struct {
Contract *IBooleanOutcomeCaller // Generic read-only contract binding to access the raw methods on
}
IBooleanOutcomeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IBooleanOutcomeCallerRaw) Call ¶
func (_IBooleanOutcome *IBooleanOutcomeCallerRaw) 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 IBooleanOutcomeCallerSession ¶
type IBooleanOutcomeCallerSession struct {
Contract *IBooleanOutcomeCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
IBooleanOutcomeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*IBooleanOutcomeCallerSession) GetOutcome ¶
func (_IBooleanOutcome *IBooleanOutcomeCallerSession) GetOutcome(_query []byte) (bool, error)
GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.
Solidity: function getOutcome(bytes _query) view returns(bool)
func (*IBooleanOutcomeCallerSession) IsFinalized ¶
func (_IBooleanOutcome *IBooleanOutcomeCallerSession) IsFinalized(_query []byte) (bool, error)
IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.
Solidity: function isFinalized(bytes _query) view returns(bool)
type IBooleanOutcomeFilterer ¶
type IBooleanOutcomeFilterer struct {
// contains filtered or unexported fields
}
IBooleanOutcomeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIBooleanOutcomeFilterer ¶
func NewIBooleanOutcomeFilterer(address common.Address, filterer bind.ContractFilterer) (*IBooleanOutcomeFilterer, error)
NewIBooleanOutcomeFilterer creates a new log filterer instance of IBooleanOutcome, bound to a specific deployed contract.
type IBooleanOutcomeRaw ¶
type IBooleanOutcomeRaw struct {
Contract *IBooleanOutcome // Generic contract binding to access the raw methods on
}
IBooleanOutcomeRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IBooleanOutcomeRaw) Call ¶
func (_IBooleanOutcome *IBooleanOutcomeRaw) 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 (*IBooleanOutcomeRaw) Transact ¶
func (_IBooleanOutcome *IBooleanOutcomeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IBooleanOutcomeRaw) Transfer ¶
func (_IBooleanOutcome *IBooleanOutcomeRaw) 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 IBooleanOutcomeSession ¶
type IBooleanOutcomeSession struct {
Contract *IBooleanOutcome // 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
}
IBooleanOutcomeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IBooleanOutcomeSession) GetOutcome ¶
func (_IBooleanOutcome *IBooleanOutcomeSession) GetOutcome(_query []byte) (bool, error)
GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.
Solidity: function getOutcome(bytes _query) view returns(bool)
func (*IBooleanOutcomeSession) IsFinalized ¶
func (_IBooleanOutcome *IBooleanOutcomeSession) IsFinalized(_query []byte) (bool, error)
IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.
Solidity: function isFinalized(bytes _query) view returns(bool)
type IBooleanOutcomeTransactor ¶
type IBooleanOutcomeTransactor struct {
// contains filtered or unexported fields
}
IBooleanOutcomeTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIBooleanOutcomeTransactor ¶
func NewIBooleanOutcomeTransactor(address common.Address, transactor bind.ContractTransactor) (*IBooleanOutcomeTransactor, error)
NewIBooleanOutcomeTransactor creates a new write-only instance of IBooleanOutcome, bound to a specific deployed contract.
type IBooleanOutcomeTransactorRaw ¶
type IBooleanOutcomeTransactorRaw struct {
Contract *IBooleanOutcomeTransactor // Generic write-only contract binding to access the raw methods on
}
IBooleanOutcomeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IBooleanOutcomeTransactorRaw) Transact ¶
func (_IBooleanOutcome *IBooleanOutcomeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IBooleanOutcomeTransactorRaw) Transfer ¶
func (_IBooleanOutcome *IBooleanOutcomeTransactorRaw) 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 IBooleanOutcomeTransactorSession ¶
type IBooleanOutcomeTransactorSession struct {
Contract *IBooleanOutcomeTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
IBooleanOutcomeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type IMultiSession ¶
type IMultiSession struct {
IMultiSessionCaller // Read-only binding to the contract
IMultiSessionTransactor // Write-only binding to the contract
IMultiSessionFilterer // Log filterer for contract events
}
IMultiSession is an auto generated Go binding around an Ethereum contract.
func NewIMultiSession ¶
func NewIMultiSession(address common.Address, backend bind.ContractBackend) (*IMultiSession, error)
NewIMultiSession creates a new instance of IMultiSession, bound to a specific deployed contract.
type IMultiSessionCaller ¶
type IMultiSessionCaller struct {
// contains filtered or unexported fields
}
IMultiSessionCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIMultiSessionCaller ¶
func NewIMultiSessionCaller(address common.Address, caller bind.ContractCaller) (*IMultiSessionCaller, error)
NewIMultiSessionCaller creates a new read-only instance of IMultiSession, bound to a specific deployed contract.
func (*IMultiSessionCaller) GetActionDeadline ¶
func (_IMultiSession *IMultiSessionCaller) GetActionDeadline(opts *bind.CallOpts, _session [32]byte) (*big.Int, error)
GetActionDeadline is a free data retrieval call binding the contract method 0xcab92446.
Solidity: function getActionDeadline(bytes32 _session) view returns(uint256)
func (*IMultiSessionCaller) GetSeqNum ¶
func (_IMultiSession *IMultiSessionCaller) GetSeqNum(opts *bind.CallOpts, _session [32]byte) (*big.Int, error)
GetSeqNum is a free data retrieval call binding the contract method 0x3b6de66f.
Solidity: function getSeqNum(bytes32 _session) view returns(uint256)
func (*IMultiSessionCaller) GetSessionID ¶
func (_IMultiSession *IMultiSessionCaller) GetSessionID(opts *bind.CallOpts, _nonce *big.Int, _signers []common.Address) ([32]byte, error)
GetSessionID is a free data retrieval call binding the contract method 0x4d8bedec.
Solidity: function getSessionID(uint256 _nonce, address[] _signers) pure returns(bytes32)
func (*IMultiSessionCaller) GetSettleFinalizedTime ¶
func (_IMultiSession *IMultiSessionCaller) GetSettleFinalizedTime(opts *bind.CallOpts, _session [32]byte) (*big.Int, error)
GetSettleFinalizedTime is a free data retrieval call binding the contract method 0x09b65d86.
Solidity: function getSettleFinalizedTime(bytes32 _session) view returns(uint256)
func (*IMultiSessionCaller) GetState ¶
func (_IMultiSession *IMultiSessionCaller) GetState(opts *bind.CallOpts, _session [32]byte, _key *big.Int) ([]byte, error)
GetState is a free data retrieval call binding the contract method 0x29dd2f8e.
Solidity: function getState(bytes32 _session, uint256 _key) view returns(bytes)
type IMultiSessionCallerRaw ¶
type IMultiSessionCallerRaw struct {
Contract *IMultiSessionCaller // Generic read-only contract binding to access the raw methods on
}
IMultiSessionCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IMultiSessionCallerRaw) Call ¶
func (_IMultiSession *IMultiSessionCallerRaw) 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 IMultiSessionCallerSession ¶
type IMultiSessionCallerSession struct {
Contract *IMultiSessionCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
IMultiSessionCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*IMultiSessionCallerSession) GetActionDeadline ¶
func (_IMultiSession *IMultiSessionCallerSession) GetActionDeadline(_session [32]byte) (*big.Int, error)
GetActionDeadline is a free data retrieval call binding the contract method 0xcab92446.
Solidity: function getActionDeadline(bytes32 _session) view returns(uint256)
func (*IMultiSessionCallerSession) GetSeqNum ¶
func (_IMultiSession *IMultiSessionCallerSession) GetSeqNum(_session [32]byte) (*big.Int, error)
GetSeqNum is a free data retrieval call binding the contract method 0x3b6de66f.
Solidity: function getSeqNum(bytes32 _session) view returns(uint256)
func (*IMultiSessionCallerSession) GetSessionID ¶
func (_IMultiSession *IMultiSessionCallerSession) GetSessionID(_nonce *big.Int, _signers []common.Address) ([32]byte, error)
GetSessionID is a free data retrieval call binding the contract method 0x4d8bedec.
Solidity: function getSessionID(uint256 _nonce, address[] _signers) pure returns(bytes32)
func (*IMultiSessionCallerSession) GetSettleFinalizedTime ¶
func (_IMultiSession *IMultiSessionCallerSession) GetSettleFinalizedTime(_session [32]byte) (*big.Int, error)
GetSettleFinalizedTime is a free data retrieval call binding the contract method 0x09b65d86.
Solidity: function getSettleFinalizedTime(bytes32 _session) view returns(uint256)
func (*IMultiSessionCallerSession) GetState ¶
func (_IMultiSession *IMultiSessionCallerSession) GetState(_session [32]byte, _key *big.Int) ([]byte, error)
GetState is a free data retrieval call binding the contract method 0x29dd2f8e.
Solidity: function getState(bytes32 _session, uint256 _key) view returns(bytes)
type IMultiSessionFilterer ¶
type IMultiSessionFilterer struct {
// contains filtered or unexported fields
}
IMultiSessionFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIMultiSessionFilterer ¶
func NewIMultiSessionFilterer(address common.Address, filterer bind.ContractFilterer) (*IMultiSessionFilterer, error)
NewIMultiSessionFilterer creates a new log filterer instance of IMultiSession, bound to a specific deployed contract.
func (*IMultiSessionFilterer) FilterIntendSettle ¶
func (_IMultiSession *IMultiSessionFilterer) FilterIntendSettle(opts *bind.FilterOpts, session [][32]byte) (*IMultiSessionIntendSettleIterator, error)
FilterIntendSettle is a free log retrieval operation binding the contract event 0x82c4eeba939ff9358877334330e22a5cdb0472113cd14f90625ea634b60d2e5b.
Solidity: event IntendSettle(bytes32 indexed session, uint256 seq)
func (*IMultiSessionFilterer) ParseIntendSettle ¶
func (_IMultiSession *IMultiSessionFilterer) ParseIntendSettle(log types.Log) (*IMultiSessionIntendSettle, error)
ParseIntendSettle is a log parse operation binding the contract event 0x82c4eeba939ff9358877334330e22a5cdb0472113cd14f90625ea634b60d2e5b.
Solidity: event IntendSettle(bytes32 indexed session, uint256 seq)
func (*IMultiSessionFilterer) WatchIntendSettle ¶
func (_IMultiSession *IMultiSessionFilterer) WatchIntendSettle(opts *bind.WatchOpts, sink chan<- *IMultiSessionIntendSettle, session [][32]byte) (event.Subscription, error)
WatchIntendSettle is a free log subscription operation binding the contract event 0x82c4eeba939ff9358877334330e22a5cdb0472113cd14f90625ea634b60d2e5b.
Solidity: event IntendSettle(bytes32 indexed session, uint256 seq)
type IMultiSessionIntendSettle ¶
type IMultiSessionIntendSettle struct {
Session [32]byte
Seq *big.Int
Raw types.Log // Blockchain specific contextual infos
}
IMultiSessionIntendSettle represents a IntendSettle event raised by the IMultiSession contract.
type IMultiSessionIntendSettleIterator ¶
type IMultiSessionIntendSettleIterator struct {
Event *IMultiSessionIntendSettle // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
IMultiSessionIntendSettleIterator is returned from FilterIntendSettle and is used to iterate over the raw logs and unpacked data for IntendSettle events raised by the IMultiSession contract.
func (*IMultiSessionIntendSettleIterator) Close ¶
func (it *IMultiSessionIntendSettleIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*IMultiSessionIntendSettleIterator) Error ¶
func (it *IMultiSessionIntendSettleIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*IMultiSessionIntendSettleIterator) Next ¶
func (it *IMultiSessionIntendSettleIterator) 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 IMultiSessionRaw ¶
type IMultiSessionRaw struct {
Contract *IMultiSession // Generic contract binding to access the raw methods on
}
IMultiSessionRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IMultiSessionRaw) Call ¶
func (_IMultiSession *IMultiSessionRaw) 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 (*IMultiSessionRaw) Transact ¶
func (_IMultiSession *IMultiSessionRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IMultiSessionRaw) Transfer ¶
func (_IMultiSession *IMultiSessionRaw) 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 IMultiSessionSession ¶
type IMultiSessionSession struct {
Contract *IMultiSession // 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
}
IMultiSessionSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IMultiSessionSession) ApplyAction ¶
func (_IMultiSession *IMultiSessionSession) ApplyAction(_session [32]byte, _action []byte) (*types.Transaction, error)
ApplyAction is a paid mutator transaction binding the contract method 0xf3c77192.
Solidity: function applyAction(bytes32 _session, bytes _action) returns()
func (*IMultiSessionSession) FinalizeOnActionTimeout ¶
func (_IMultiSession *IMultiSessionSession) FinalizeOnActionTimeout(_session [32]byte) (*types.Transaction, error)
FinalizeOnActionTimeout is a paid mutator transaction binding the contract method 0xb89fa28b.
Solidity: function finalizeOnActionTimeout(bytes32 _session) returns()
func (*IMultiSessionSession) GetActionDeadline ¶
func (_IMultiSession *IMultiSessionSession) GetActionDeadline(_session [32]byte) (*big.Int, error)
GetActionDeadline is a free data retrieval call binding the contract method 0xcab92446.
Solidity: function getActionDeadline(bytes32 _session) view returns(uint256)
func (*IMultiSessionSession) GetSeqNum ¶
func (_IMultiSession *IMultiSessionSession) GetSeqNum(_session [32]byte) (*big.Int, error)
GetSeqNum is a free data retrieval call binding the contract method 0x3b6de66f.
Solidity: function getSeqNum(bytes32 _session) view returns(uint256)
func (*IMultiSessionSession) GetSessionID ¶
func (_IMultiSession *IMultiSessionSession) GetSessionID(_nonce *big.Int, _signers []common.Address) ([32]byte, error)
GetSessionID is a free data retrieval call binding the contract method 0x4d8bedec.
Solidity: function getSessionID(uint256 _nonce, address[] _signers) pure returns(bytes32)
func (*IMultiSessionSession) GetSettleFinalizedTime ¶
func (_IMultiSession *IMultiSessionSession) GetSettleFinalizedTime(_session [32]byte) (*big.Int, error)
GetSettleFinalizedTime is a free data retrieval call binding the contract method 0x09b65d86.
Solidity: function getSettleFinalizedTime(bytes32 _session) view returns(uint256)
func (*IMultiSessionSession) GetState ¶
func (_IMultiSession *IMultiSessionSession) GetState(_session [32]byte, _key *big.Int) ([]byte, error)
GetState is a free data retrieval call binding the contract method 0x29dd2f8e.
Solidity: function getState(bytes32 _session, uint256 _key) view returns(bytes)
func (*IMultiSessionSession) GetStatus ¶
func (_IMultiSession *IMultiSessionSession) GetStatus(_session [32]byte) (uint8, error)
GetStatus is a free data retrieval call binding the contract method 0x5de28ae0.
Solidity: function getStatus(bytes32 _session) view returns(uint8)
func (*IMultiSessionSession) IntendSettle ¶
func (_IMultiSession *IMultiSessionSession) IntendSettle(_stateProof []byte) (*types.Transaction, error)
IntendSettle is a paid mutator transaction binding the contract method 0x130d33fe.
Solidity: function intendSettle(bytes _stateProof) returns()
type IMultiSessionTransactor ¶
type IMultiSessionTransactor struct {
// contains filtered or unexported fields
}
IMultiSessionTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIMultiSessionTransactor ¶
func NewIMultiSessionTransactor(address common.Address, transactor bind.ContractTransactor) (*IMultiSessionTransactor, error)
NewIMultiSessionTransactor creates a new write-only instance of IMultiSession, bound to a specific deployed contract.
func (*IMultiSessionTransactor) ApplyAction ¶
func (_IMultiSession *IMultiSessionTransactor) ApplyAction(opts *bind.TransactOpts, _session [32]byte, _action []byte) (*types.Transaction, error)
ApplyAction is a paid mutator transaction binding the contract method 0xf3c77192.
Solidity: function applyAction(bytes32 _session, bytes _action) returns()
func (*IMultiSessionTransactor) FinalizeOnActionTimeout ¶
func (_IMultiSession *IMultiSessionTransactor) FinalizeOnActionTimeout(opts *bind.TransactOpts, _session [32]byte) (*types.Transaction, error)
FinalizeOnActionTimeout is a paid mutator transaction binding the contract method 0xb89fa28b.
Solidity: function finalizeOnActionTimeout(bytes32 _session) returns()
func (*IMultiSessionTransactor) IntendSettle ¶
func (_IMultiSession *IMultiSessionTransactor) IntendSettle(opts *bind.TransactOpts, _stateProof []byte) (*types.Transaction, error)
IntendSettle is a paid mutator transaction binding the contract method 0x130d33fe.
Solidity: function intendSettle(bytes _stateProof) returns()
type IMultiSessionTransactorRaw ¶
type IMultiSessionTransactorRaw struct {
Contract *IMultiSessionTransactor // Generic write-only contract binding to access the raw methods on
}
IMultiSessionTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IMultiSessionTransactorRaw) Transact ¶
func (_IMultiSession *IMultiSessionTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IMultiSessionTransactorRaw) Transfer ¶
func (_IMultiSession *IMultiSessionTransactorRaw) 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 IMultiSessionTransactorSession ¶
type IMultiSessionTransactorSession struct {
Contract *IMultiSessionTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
IMultiSessionTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*IMultiSessionTransactorSession) ApplyAction ¶
func (_IMultiSession *IMultiSessionTransactorSession) ApplyAction(_session [32]byte, _action []byte) (*types.Transaction, error)
ApplyAction is a paid mutator transaction binding the contract method 0xf3c77192.
Solidity: function applyAction(bytes32 _session, bytes _action) returns()
func (*IMultiSessionTransactorSession) FinalizeOnActionTimeout ¶
func (_IMultiSession *IMultiSessionTransactorSession) FinalizeOnActionTimeout(_session [32]byte) (*types.Transaction, error)
FinalizeOnActionTimeout is a paid mutator transaction binding the contract method 0xb89fa28b.
Solidity: function finalizeOnActionTimeout(bytes32 _session) returns()
func (*IMultiSessionTransactorSession) IntendSettle ¶
func (_IMultiSession *IMultiSessionTransactorSession) IntendSettle(_stateProof []byte) (*types.Transaction, error)
IntendSettle is a paid mutator transaction binding the contract method 0x130d33fe.
Solidity: function intendSettle(bytes _stateProof) returns()
type IMultiSessionWithOracle ¶
type IMultiSessionWithOracle struct {
IMultiSessionWithOracleCaller // Read-only binding to the contract
IMultiSessionWithOracleTransactor // Write-only binding to the contract
IMultiSessionWithOracleFilterer // Log filterer for contract events
}
IMultiSessionWithOracle is an auto generated Go binding around an Ethereum contract.
func NewIMultiSessionWithOracle ¶
func NewIMultiSessionWithOracle(address common.Address, backend bind.ContractBackend) (*IMultiSessionWithOracle, error)
NewIMultiSessionWithOracle creates a new instance of IMultiSessionWithOracle, bound to a specific deployed contract.
type IMultiSessionWithOracleCaller ¶
type IMultiSessionWithOracleCaller struct {
// contains filtered or unexported fields
}
IMultiSessionWithOracleCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIMultiSessionWithOracleCaller ¶
func NewIMultiSessionWithOracleCaller(address common.Address, caller bind.ContractCaller) (*IMultiSessionWithOracleCaller, error)
NewIMultiSessionWithOracleCaller creates a new read-only instance of IMultiSessionWithOracle, bound to a specific deployed contract.
func (*IMultiSessionWithOracleCaller) GetState ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleCaller) GetState(opts *bind.CallOpts, _session [32]byte, _key *big.Int) ([]byte, error)
GetState is a free data retrieval call binding the contract method 0x29dd2f8e.
Solidity: function getState(bytes32 _session, uint256 _key) view returns(bytes)
func (*IMultiSessionWithOracleCaller) GetStatus ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleCaller) GetStatus(opts *bind.CallOpts, _session [32]byte) (uint8, error)
GetStatus is a free data retrieval call binding the contract method 0x5de28ae0.
Solidity: function getStatus(bytes32 _session) view returns(uint8)
type IMultiSessionWithOracleCallerRaw ¶
type IMultiSessionWithOracleCallerRaw struct {
Contract *IMultiSessionWithOracleCaller // Generic read-only contract binding to access the raw methods on
}
IMultiSessionWithOracleCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IMultiSessionWithOracleCallerRaw) Call ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleCallerRaw) 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 IMultiSessionWithOracleCallerSession ¶
type IMultiSessionWithOracleCallerSession struct {
Contract *IMultiSessionWithOracleCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
IMultiSessionWithOracleCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*IMultiSessionWithOracleCallerSession) GetState ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleCallerSession) GetState(_session [32]byte, _key *big.Int) ([]byte, error)
GetState is a free data retrieval call binding the contract method 0x29dd2f8e.
Solidity: function getState(bytes32 _session, uint256 _key) view returns(bytes)
func (*IMultiSessionWithOracleCallerSession) GetStatus ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleCallerSession) GetStatus(_session [32]byte) (uint8, error)
GetStatus is a free data retrieval call binding the contract method 0x5de28ae0.
Solidity: function getStatus(bytes32 _session) view returns(uint8)
type IMultiSessionWithOracleFilterer ¶
type IMultiSessionWithOracleFilterer struct {
// contains filtered or unexported fields
}
IMultiSessionWithOracleFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIMultiSessionWithOracleFilterer ¶
func NewIMultiSessionWithOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*IMultiSessionWithOracleFilterer, error)
NewIMultiSessionWithOracleFilterer creates a new log filterer instance of IMultiSessionWithOracle, bound to a specific deployed contract.
type IMultiSessionWithOracleRaw ¶
type IMultiSessionWithOracleRaw struct {
Contract *IMultiSessionWithOracle // Generic contract binding to access the raw methods on
}
IMultiSessionWithOracleRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IMultiSessionWithOracleRaw) Call ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleRaw) 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 (*IMultiSessionWithOracleRaw) Transact ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IMultiSessionWithOracleRaw) Transfer ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleRaw) 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 IMultiSessionWithOracleSession ¶
type IMultiSessionWithOracleSession struct {
Contract *IMultiSessionWithOracle // 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
}
IMultiSessionWithOracleSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IMultiSessionWithOracleSession) GetSessionID ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) GetSessionID(_nonce *big.Int, _signers []common.Address) (*types.Transaction, error)
GetSessionID is a paid mutator transaction binding the contract method 0x4d8bedec.
Solidity: function getSessionID(uint256 _nonce, address[] _signers) returns(bytes32 session)
func (*IMultiSessionWithOracleSession) GetState ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) GetState(_session [32]byte, _key *big.Int) ([]byte, error)
GetState is a free data retrieval call binding the contract method 0x29dd2f8e.
Solidity: function getState(bytes32 _session, uint256 _key) view returns(bytes)
func (*IMultiSessionWithOracleSession) GetStatus ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) GetStatus(_session [32]byte) (uint8, error)
GetStatus is a free data retrieval call binding the contract method 0x5de28ae0.
Solidity: function getStatus(bytes32 _session) view returns(uint8)
func (*IMultiSessionWithOracleSession) SettleByInvalidState ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) SettleByInvalidState(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
SettleByInvalidState is a paid mutator transaction binding the contract method 0xfb3fe806.
Solidity: function settleByInvalidState(bytes _oracleProof, bytes _cosignedStateProof) returns()
func (*IMultiSessionWithOracleSession) SettleByInvalidTurn ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) SettleByInvalidTurn(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
SettleByInvalidTurn is a paid mutator transaction binding the contract method 0xa428cd3b.
Solidity: function settleByInvalidTurn(bytes _oracleProof, bytes _cosignedStateProof) returns()
func (*IMultiSessionWithOracleSession) SettleByMoveTimeout ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) SettleByMoveTimeout(_oracleProof []byte) (*types.Transaction, error)
SettleByMoveTimeout is a paid mutator transaction binding the contract method 0xf26285b2.
Solidity: function settleByMoveTimeout(bytes _oracleProof) returns()
func (*IMultiSessionWithOracleSession) SettleBySigTimeout ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleSession) SettleBySigTimeout(_oracleProof []byte) (*types.Transaction, error)
SettleBySigTimeout is a paid mutator transaction binding the contract method 0x2141dbda.
Solidity: function settleBySigTimeout(bytes _oracleProof) returns()
type IMultiSessionWithOracleTransactor ¶
type IMultiSessionWithOracleTransactor struct {
// contains filtered or unexported fields
}
IMultiSessionWithOracleTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIMultiSessionWithOracleTransactor ¶
func NewIMultiSessionWithOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*IMultiSessionWithOracleTransactor, error)
NewIMultiSessionWithOracleTransactor creates a new write-only instance of IMultiSessionWithOracle, bound to a specific deployed contract.
func (*IMultiSessionWithOracleTransactor) GetSessionID ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactor) GetSessionID(opts *bind.TransactOpts, _nonce *big.Int, _signers []common.Address) (*types.Transaction, error)
GetSessionID is a paid mutator transaction binding the contract method 0x4d8bedec.
Solidity: function getSessionID(uint256 _nonce, address[] _signers) returns(bytes32 session)
func (*IMultiSessionWithOracleTransactor) SettleByInvalidState ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactor) SettleByInvalidState(opts *bind.TransactOpts, _oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
SettleByInvalidState is a paid mutator transaction binding the contract method 0xfb3fe806.
Solidity: function settleByInvalidState(bytes _oracleProof, bytes _cosignedStateProof) returns()
func (*IMultiSessionWithOracleTransactor) SettleByInvalidTurn ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactor) SettleByInvalidTurn(opts *bind.TransactOpts, _oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
SettleByInvalidTurn is a paid mutator transaction binding the contract method 0xa428cd3b.
Solidity: function settleByInvalidTurn(bytes _oracleProof, bytes _cosignedStateProof) returns()
func (*IMultiSessionWithOracleTransactor) SettleByMoveTimeout ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactor) SettleByMoveTimeout(opts *bind.TransactOpts, _oracleProof []byte) (*types.Transaction, error)
SettleByMoveTimeout is a paid mutator transaction binding the contract method 0xf26285b2.
Solidity: function settleByMoveTimeout(bytes _oracleProof) returns()
func (*IMultiSessionWithOracleTransactor) SettleBySigTimeout ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactor) SettleBySigTimeout(opts *bind.TransactOpts, _oracleProof []byte) (*types.Transaction, error)
SettleBySigTimeout is a paid mutator transaction binding the contract method 0x2141dbda.
Solidity: function settleBySigTimeout(bytes _oracleProof) returns()
type IMultiSessionWithOracleTransactorRaw ¶
type IMultiSessionWithOracleTransactorRaw struct {
Contract *IMultiSessionWithOracleTransactor // Generic write-only contract binding to access the raw methods on
}
IMultiSessionWithOracleTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IMultiSessionWithOracleTransactorRaw) Transact ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IMultiSessionWithOracleTransactorRaw) Transfer ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorRaw) 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 IMultiSessionWithOracleTransactorSession ¶
type IMultiSessionWithOracleTransactorSession struct {
Contract *IMultiSessionWithOracleTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
IMultiSessionWithOracleTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*IMultiSessionWithOracleTransactorSession) GetSessionID ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorSession) GetSessionID(_nonce *big.Int, _signers []common.Address) (*types.Transaction, error)
GetSessionID is a paid mutator transaction binding the contract method 0x4d8bedec.
Solidity: function getSessionID(uint256 _nonce, address[] _signers) returns(bytes32 session)
func (*IMultiSessionWithOracleTransactorSession) SettleByInvalidState ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorSession) SettleByInvalidState(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
SettleByInvalidState is a paid mutator transaction binding the contract method 0xfb3fe806.
Solidity: function settleByInvalidState(bytes _oracleProof, bytes _cosignedStateProof) returns()
func (*IMultiSessionWithOracleTransactorSession) SettleByInvalidTurn ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorSession) SettleByInvalidTurn(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
SettleByInvalidTurn is a paid mutator transaction binding the contract method 0xa428cd3b.
Solidity: function settleByInvalidTurn(bytes _oracleProof, bytes _cosignedStateProof) returns()
func (*IMultiSessionWithOracleTransactorSession) SettleByMoveTimeout ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorSession) SettleByMoveTimeout(_oracleProof []byte) (*types.Transaction, error)
SettleByMoveTimeout is a paid mutator transaction binding the contract method 0xf26285b2.
Solidity: function settleByMoveTimeout(bytes _oracleProof) returns()
func (*IMultiSessionWithOracleTransactorSession) SettleBySigTimeout ¶
func (_IMultiSessionWithOracle *IMultiSessionWithOracleTransactorSession) SettleBySigTimeout(_oracleProof []byte) (*types.Transaction, error)
SettleBySigTimeout is a paid mutator transaction binding the contract method 0x2141dbda.
Solidity: function settleBySigTimeout(bytes _oracleProof) returns()
type INumericOutcome ¶
type INumericOutcome struct {
INumericOutcomeCaller // Read-only binding to the contract
INumericOutcomeTransactor // Write-only binding to the contract
INumericOutcomeFilterer // Log filterer for contract events
}
INumericOutcome is an auto generated Go binding around an Ethereum contract.
func NewINumericOutcome ¶
func NewINumericOutcome(address common.Address, backend bind.ContractBackend) (*INumericOutcome, error)
NewINumericOutcome creates a new instance of INumericOutcome, bound to a specific deployed contract.
type INumericOutcomeCaller ¶
type INumericOutcomeCaller struct {
// contains filtered or unexported fields
}
INumericOutcomeCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewINumericOutcomeCaller ¶
func NewINumericOutcomeCaller(address common.Address, caller bind.ContractCaller) (*INumericOutcomeCaller, error)
NewINumericOutcomeCaller creates a new read-only instance of INumericOutcome, bound to a specific deployed contract.
func (*INumericOutcomeCaller) GetOutcome ¶
func (_INumericOutcome *INumericOutcomeCaller) GetOutcome(opts *bind.CallOpts, _query []byte) (*big.Int, error)
GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.
Solidity: function getOutcome(bytes _query) view returns(uint256)
func (*INumericOutcomeCaller) IsFinalized ¶
func (_INumericOutcome *INumericOutcomeCaller) IsFinalized(opts *bind.CallOpts, _query []byte) (bool, error)
IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.
Solidity: function isFinalized(bytes _query) view returns(bool)
type INumericOutcomeCallerRaw ¶
type INumericOutcomeCallerRaw struct {
Contract *INumericOutcomeCaller // Generic read-only contract binding to access the raw methods on
}
INumericOutcomeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*INumericOutcomeCallerRaw) Call ¶
func (_INumericOutcome *INumericOutcomeCallerRaw) 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 INumericOutcomeCallerSession ¶
type INumericOutcomeCallerSession struct {
Contract *INumericOutcomeCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
INumericOutcomeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*INumericOutcomeCallerSession) GetOutcome ¶
func (_INumericOutcome *INumericOutcomeCallerSession) GetOutcome(_query []byte) (*big.Int, error)
GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.
Solidity: function getOutcome(bytes _query) view returns(uint256)
func (*INumericOutcomeCallerSession) IsFinalized ¶
func (_INumericOutcome *INumericOutcomeCallerSession) IsFinalized(_query []byte) (bool, error)
IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.
Solidity: function isFinalized(bytes _query) view returns(bool)
type INumericOutcomeFilterer ¶
type INumericOutcomeFilterer struct {
// contains filtered or unexported fields
}
INumericOutcomeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewINumericOutcomeFilterer ¶
func NewINumericOutcomeFilterer(address common.Address, filterer bind.ContractFilterer) (*INumericOutcomeFilterer, error)
NewINumericOutcomeFilterer creates a new log filterer instance of INumericOutcome, bound to a specific deployed contract.
type INumericOutcomeRaw ¶
type INumericOutcomeRaw struct {
Contract *INumericOutcome // Generic contract binding to access the raw methods on
}
INumericOutcomeRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*INumericOutcomeRaw) Call ¶
func (_INumericOutcome *INumericOutcomeRaw) 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 (*INumericOutcomeRaw) Transact ¶
func (_INumericOutcome *INumericOutcomeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*INumericOutcomeRaw) Transfer ¶
func (_INumericOutcome *INumericOutcomeRaw) 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 INumericOutcomeSession ¶
type INumericOutcomeSession struct {
Contract *INumericOutcome // 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
}
INumericOutcomeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*INumericOutcomeSession) GetOutcome ¶
func (_INumericOutcome *INumericOutcomeSession) GetOutcome(_query []byte) (*big.Int, error)
GetOutcome is a free data retrieval call binding the contract method 0xea4ba8eb.
Solidity: function getOutcome(bytes _query) view returns(uint256)
func (*INumericOutcomeSession) IsFinalized ¶
func (_INumericOutcome *INumericOutcomeSession) IsFinalized(_query []byte) (bool, error)
IsFinalized is a free data retrieval call binding the contract method 0xbcdbda94.
Solidity: function isFinalized(bytes _query) view returns(bool)
type INumericOutcomeTransactor ¶
type INumericOutcomeTransactor struct {
// contains filtered or unexported fields
}
INumericOutcomeTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewINumericOutcomeTransactor ¶
func NewINumericOutcomeTransactor(address common.Address, transactor bind.ContractTransactor) (*INumericOutcomeTransactor, error)
NewINumericOutcomeTransactor creates a new write-only instance of INumericOutcome, bound to a specific deployed contract.
type INumericOutcomeTransactorRaw ¶
type INumericOutcomeTransactorRaw struct {
Contract *INumericOutcomeTransactor // Generic write-only contract binding to access the raw methods on
}
INumericOutcomeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*INumericOutcomeTransactorRaw) Transact ¶
func (_INumericOutcome *INumericOutcomeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*INumericOutcomeTransactorRaw) Transfer ¶
func (_INumericOutcome *INumericOutcomeTransactorRaw) 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 INumericOutcomeTransactorSession ¶
type INumericOutcomeTransactorSession struct {
Contract *INumericOutcomeTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
INumericOutcomeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type ISingleSession ¶
type ISingleSession struct {
ISingleSessionCaller // Read-only binding to the contract
ISingleSessionTransactor // Write-only binding to the contract
ISingleSessionFilterer // Log filterer for contract events
}
ISingleSession is an auto generated Go binding around an Ethereum contract.
func NewISingleSession ¶
func NewISingleSession(address common.Address, backend bind.ContractBackend) (*ISingleSession, error)
NewISingleSession creates a new instance of ISingleSession, bound to a specific deployed contract.
type ISingleSessionCaller ¶
type ISingleSessionCaller struct {
// contains filtered or unexported fields
}
ISingleSessionCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewISingleSessionCaller ¶
func NewISingleSessionCaller(address common.Address, caller bind.ContractCaller) (*ISingleSessionCaller, error)
NewISingleSessionCaller creates a new read-only instance of ISingleSession, bound to a specific deployed contract.
func (*ISingleSessionCaller) GetActionDeadline ¶
func (_ISingleSession *ISingleSessionCaller) GetActionDeadline(opts *bind.CallOpts) (*big.Int, error)
GetActionDeadline is a free data retrieval call binding the contract method 0xbbc35280.
Solidity: function getActionDeadline() view returns(uint256)
func (*ISingleSessionCaller) GetSeqNum ¶
GetSeqNum is a free data retrieval call binding the contract method 0x6d15c457.
Solidity: function getSeqNum() view returns(uint256)
func (*ISingleSessionCaller) GetSettleFinalizedTime ¶
func (_ISingleSession *ISingleSessionCaller) GetSettleFinalizedTime(opts *bind.CallOpts) (*big.Int, error)
GetSettleFinalizedTime is a free data retrieval call binding the contract method 0xb71ca01f.
Solidity: function getSettleFinalizedTime() view returns(uint256)
type ISingleSessionCallerRaw ¶
type ISingleSessionCallerRaw struct {
Contract *ISingleSessionCaller // Generic read-only contract binding to access the raw methods on
}
ISingleSessionCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ISingleSessionCallerRaw) Call ¶
func (_ISingleSession *ISingleSessionCallerRaw) 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 ISingleSessionCallerSession ¶
type ISingleSessionCallerSession struct {
Contract *ISingleSessionCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
ISingleSessionCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ISingleSessionCallerSession) GetActionDeadline ¶
func (_ISingleSession *ISingleSessionCallerSession) GetActionDeadline() (*big.Int, error)
GetActionDeadline is a free data retrieval call binding the contract method 0xbbc35280.
Solidity: function getActionDeadline() view returns(uint256)
func (*ISingleSessionCallerSession) GetSeqNum ¶
func (_ISingleSession *ISingleSessionCallerSession) GetSeqNum() (*big.Int, error)
GetSeqNum is a free data retrieval call binding the contract method 0x6d15c457.
Solidity: function getSeqNum() view returns(uint256)
func (*ISingleSessionCallerSession) GetSettleFinalizedTime ¶
func (_ISingleSession *ISingleSessionCallerSession) GetSettleFinalizedTime() (*big.Int, error)
GetSettleFinalizedTime is a free data retrieval call binding the contract method 0xb71ca01f.
Solidity: function getSettleFinalizedTime() view returns(uint256)
func (*ISingleSessionCallerSession) GetState ¶
func (_ISingleSession *ISingleSessionCallerSession) GetState(_key *big.Int) ([]byte, error)
GetState is a free data retrieval call binding the contract method 0x44c9af28.
Solidity: function getState(uint256 _key) view returns(bytes)
func (*ISingleSessionCallerSession) GetStatus ¶
func (_ISingleSession *ISingleSessionCallerSession) GetStatus() (uint8, error)
GetStatus is a free data retrieval call binding the contract method 0x4e69d560.
Solidity: function getStatus() view returns(uint8)
type ISingleSessionFilterer ¶
type ISingleSessionFilterer struct {
// contains filtered or unexported fields
}
ISingleSessionFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewISingleSessionFilterer ¶
func NewISingleSessionFilterer(address common.Address, filterer bind.ContractFilterer) (*ISingleSessionFilterer, error)
NewISingleSessionFilterer creates a new log filterer instance of ISingleSession, bound to a specific deployed contract.
func (*ISingleSessionFilterer) FilterIntendSettle ¶
func (_ISingleSession *ISingleSessionFilterer) FilterIntendSettle(opts *bind.FilterOpts) (*ISingleSessionIntendSettleIterator, error)
FilterIntendSettle is a free log retrieval operation binding the contract event 0xce68db27527c6058059e8cbd1c6de0528ef1c417fe1c21c545919c7da3466d2a.
Solidity: event IntendSettle(uint256 seq)
func (*ISingleSessionFilterer) ParseIntendSettle ¶
func (_ISingleSession *ISingleSessionFilterer) ParseIntendSettle(log types.Log) (*ISingleSessionIntendSettle, error)
ParseIntendSettle is a log parse operation binding the contract event 0xce68db27527c6058059e8cbd1c6de0528ef1c417fe1c21c545919c7da3466d2a.
Solidity: event IntendSettle(uint256 seq)
func (*ISingleSessionFilterer) WatchIntendSettle ¶
func (_ISingleSession *ISingleSessionFilterer) WatchIntendSettle(opts *bind.WatchOpts, sink chan<- *ISingleSessionIntendSettle) (event.Subscription, error)
WatchIntendSettle is a free log subscription operation binding the contract event 0xce68db27527c6058059e8cbd1c6de0528ef1c417fe1c21c545919c7da3466d2a.
Solidity: event IntendSettle(uint256 seq)
type ISingleSessionIntendSettle ¶
type ISingleSessionIntendSettle struct {
Seq *big.Int
Raw types.Log // Blockchain specific contextual infos
}
ISingleSessionIntendSettle represents a IntendSettle event raised by the ISingleSession contract.
type ISingleSessionIntendSettleIterator ¶
type ISingleSessionIntendSettleIterator struct {
Event *ISingleSessionIntendSettle // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
ISingleSessionIntendSettleIterator is returned from FilterIntendSettle and is used to iterate over the raw logs and unpacked data for IntendSettle events raised by the ISingleSession contract.
func (*ISingleSessionIntendSettleIterator) Close ¶
func (it *ISingleSessionIntendSettleIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ISingleSessionIntendSettleIterator) Error ¶
func (it *ISingleSessionIntendSettleIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ISingleSessionIntendSettleIterator) Next ¶
func (it *ISingleSessionIntendSettleIterator) 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 ISingleSessionRaw ¶
type ISingleSessionRaw struct {
Contract *ISingleSession // Generic contract binding to access the raw methods on
}
ISingleSessionRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ISingleSessionRaw) Call ¶
func (_ISingleSession *ISingleSessionRaw) 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 (*ISingleSessionRaw) Transact ¶
func (_ISingleSession *ISingleSessionRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ISingleSessionRaw) Transfer ¶
func (_ISingleSession *ISingleSessionRaw) 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 ISingleSessionSession ¶
type ISingleSessionSession struct {
Contract *ISingleSession // 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
}
ISingleSessionSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ISingleSessionSession) ApplyAction ¶
func (_ISingleSession *ISingleSessionSession) ApplyAction(_action []byte) (*types.Transaction, error)
ApplyAction is a paid mutator transaction binding the contract method 0x1f2b71e5.
Solidity: function applyAction(bytes _action) returns()
func (*ISingleSessionSession) FinalizeOnActionTimeout ¶
func (_ISingleSession *ISingleSessionSession) FinalizeOnActionTimeout() (*types.Transaction, error)
FinalizeOnActionTimeout is a paid mutator transaction binding the contract method 0xfa5e7ff5.
Solidity: function finalizeOnActionTimeout() returns()
func (*ISingleSessionSession) GetActionDeadline ¶
func (_ISingleSession *ISingleSessionSession) GetActionDeadline() (*big.Int, error)
GetActionDeadline is a free data retrieval call binding the contract method 0xbbc35280.
Solidity: function getActionDeadline() view returns(uint256)
func (*ISingleSessionSession) GetSeqNum ¶
func (_ISingleSession *ISingleSessionSession) GetSeqNum() (*big.Int, error)
GetSeqNum is a free data retrieval call binding the contract method 0x6d15c457.
Solidity: function getSeqNum() view returns(uint256)
func (*ISingleSessionSession) GetSettleFinalizedTime ¶
func (_ISingleSession *ISingleSessionSession) GetSettleFinalizedTime() (*big.Int, error)
GetSettleFinalizedTime is a free data retrieval call binding the contract method 0xb71ca01f.
Solidity: function getSettleFinalizedTime() view returns(uint256)
func (*ISingleSessionSession) GetState ¶
func (_ISingleSession *ISingleSessionSession) GetState(_key *big.Int) ([]byte, error)
GetState is a free data retrieval call binding the contract method 0x44c9af28.
Solidity: function getState(uint256 _key) view returns(bytes)
func (*ISingleSessionSession) GetStatus ¶
func (_ISingleSession *ISingleSessionSession) GetStatus() (uint8, error)
GetStatus is a free data retrieval call binding the contract method 0x4e69d560.
Solidity: function getStatus() view returns(uint8)
func (*ISingleSessionSession) IntendSettle ¶
func (_ISingleSession *ISingleSessionSession) IntendSettle(_stateProof []byte) (*types.Transaction, error)
IntendSettle is a paid mutator transaction binding the contract method 0x130d33fe.
Solidity: function intendSettle(bytes _stateProof) returns()
type ISingleSessionTransactor ¶
type ISingleSessionTransactor struct {
// contains filtered or unexported fields
}
ISingleSessionTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewISingleSessionTransactor ¶
func NewISingleSessionTransactor(address common.Address, transactor bind.ContractTransactor) (*ISingleSessionTransactor, error)
NewISingleSessionTransactor creates a new write-only instance of ISingleSession, bound to a specific deployed contract.
func (*ISingleSessionTransactor) ApplyAction ¶
func (_ISingleSession *ISingleSessionTransactor) ApplyAction(opts *bind.TransactOpts, _action []byte) (*types.Transaction, error)
ApplyAction is a paid mutator transaction binding the contract method 0x1f2b71e5.
Solidity: function applyAction(bytes _action) returns()
func (*ISingleSessionTransactor) FinalizeOnActionTimeout ¶
func (_ISingleSession *ISingleSessionTransactor) FinalizeOnActionTimeout(opts *bind.TransactOpts) (*types.Transaction, error)
FinalizeOnActionTimeout is a paid mutator transaction binding the contract method 0xfa5e7ff5.
Solidity: function finalizeOnActionTimeout() returns()
func (*ISingleSessionTransactor) IntendSettle ¶
func (_ISingleSession *ISingleSessionTransactor) IntendSettle(opts *bind.TransactOpts, _stateProof []byte) (*types.Transaction, error)
IntendSettle is a paid mutator transaction binding the contract method 0x130d33fe.
Solidity: function intendSettle(bytes _stateProof) returns()
type ISingleSessionTransactorRaw ¶
type ISingleSessionTransactorRaw struct {
Contract *ISingleSessionTransactor // Generic write-only contract binding to access the raw methods on
}
ISingleSessionTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ISingleSessionTransactorRaw) Transact ¶
func (_ISingleSession *ISingleSessionTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ISingleSessionTransactorRaw) Transfer ¶
func (_ISingleSession *ISingleSessionTransactorRaw) 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 ISingleSessionTransactorSession ¶
type ISingleSessionTransactorSession struct {
Contract *ISingleSessionTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
ISingleSessionTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ISingleSessionTransactorSession) ApplyAction ¶
func (_ISingleSession *ISingleSessionTransactorSession) ApplyAction(_action []byte) (*types.Transaction, error)
ApplyAction is a paid mutator transaction binding the contract method 0x1f2b71e5.
Solidity: function applyAction(bytes _action) returns()
func (*ISingleSessionTransactorSession) FinalizeOnActionTimeout ¶
func (_ISingleSession *ISingleSessionTransactorSession) FinalizeOnActionTimeout() (*types.Transaction, error)
FinalizeOnActionTimeout is a paid mutator transaction binding the contract method 0xfa5e7ff5.
Solidity: function finalizeOnActionTimeout() returns()
func (*ISingleSessionTransactorSession) IntendSettle ¶
func (_ISingleSession *ISingleSessionTransactorSession) IntendSettle(_stateProof []byte) (*types.Transaction, error)
IntendSettle is a paid mutator transaction binding the contract method 0x130d33fe.
Solidity: function intendSettle(bytes _stateProof) returns()
type ISingleSessionWithOracle ¶
type ISingleSessionWithOracle struct {
ISingleSessionWithOracleCaller // Read-only binding to the contract
ISingleSessionWithOracleTransactor // Write-only binding to the contract
ISingleSessionWithOracleFilterer // Log filterer for contract events
}
ISingleSessionWithOracle is an auto generated Go binding around an Ethereum contract.
func NewISingleSessionWithOracle ¶
func NewISingleSessionWithOracle(address common.Address, backend bind.ContractBackend) (*ISingleSessionWithOracle, error)
NewISingleSessionWithOracle creates a new instance of ISingleSessionWithOracle, bound to a specific deployed contract.
type ISingleSessionWithOracleCaller ¶
type ISingleSessionWithOracleCaller struct {
// contains filtered or unexported fields
}
ISingleSessionWithOracleCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewISingleSessionWithOracleCaller ¶
func NewISingleSessionWithOracleCaller(address common.Address, caller bind.ContractCaller) (*ISingleSessionWithOracleCaller, error)
NewISingleSessionWithOracleCaller creates a new read-only instance of ISingleSessionWithOracle, bound to a specific deployed contract.
func (*ISingleSessionWithOracleCaller) GetState ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleCaller) GetState(opts *bind.CallOpts, _key *big.Int) ([]byte, error)
GetState is a free data retrieval call binding the contract method 0x44c9af28.
Solidity: function getState(uint256 _key) view returns(bytes)
type ISingleSessionWithOracleCallerRaw ¶
type ISingleSessionWithOracleCallerRaw struct {
Contract *ISingleSessionWithOracleCaller // Generic read-only contract binding to access the raw methods on
}
ISingleSessionWithOracleCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ISingleSessionWithOracleCallerRaw) Call ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleCallerRaw) 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 ISingleSessionWithOracleCallerSession ¶
type ISingleSessionWithOracleCallerSession struct {
Contract *ISingleSessionWithOracleCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
ISingleSessionWithOracleCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ISingleSessionWithOracleCallerSession) GetState ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleCallerSession) GetState(_key *big.Int) ([]byte, error)
GetState is a free data retrieval call binding the contract method 0x44c9af28.
Solidity: function getState(uint256 _key) view returns(bytes)
func (*ISingleSessionWithOracleCallerSession) GetStatus ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleCallerSession) GetStatus() (uint8, error)
GetStatus is a free data retrieval call binding the contract method 0x4e69d560.
Solidity: function getStatus() view returns(uint8)
type ISingleSessionWithOracleFilterer ¶
type ISingleSessionWithOracleFilterer struct {
// contains filtered or unexported fields
}
ISingleSessionWithOracleFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewISingleSessionWithOracleFilterer ¶
func NewISingleSessionWithOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*ISingleSessionWithOracleFilterer, error)
NewISingleSessionWithOracleFilterer creates a new log filterer instance of ISingleSessionWithOracle, bound to a specific deployed contract.
type ISingleSessionWithOracleRaw ¶
type ISingleSessionWithOracleRaw struct {
Contract *ISingleSessionWithOracle // Generic contract binding to access the raw methods on
}
ISingleSessionWithOracleRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ISingleSessionWithOracleRaw) Call ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleRaw) 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 (*ISingleSessionWithOracleRaw) Transact ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ISingleSessionWithOracleRaw) Transfer ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleRaw) 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 ISingleSessionWithOracleSession ¶
type ISingleSessionWithOracleSession struct {
Contract *ISingleSessionWithOracle // 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
}
ISingleSessionWithOracleSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ISingleSessionWithOracleSession) GetState ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleSession) GetState(_key *big.Int) ([]byte, error)
GetState is a free data retrieval call binding the contract method 0x44c9af28.
Solidity: function getState(uint256 _key) view returns(bytes)
func (*ISingleSessionWithOracleSession) GetStatus ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleSession) GetStatus() (uint8, error)
GetStatus is a free data retrieval call binding the contract method 0x4e69d560.
Solidity: function getStatus() view returns(uint8)
func (*ISingleSessionWithOracleSession) SettleByInvalidState ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleSession) SettleByInvalidState(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
SettleByInvalidState is a paid mutator transaction binding the contract method 0xfb3fe806.
Solidity: function settleByInvalidState(bytes _oracleProof, bytes _cosignedStateProof) returns()
func (*ISingleSessionWithOracleSession) SettleByInvalidTurn ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleSession) SettleByInvalidTurn(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
SettleByInvalidTurn is a paid mutator transaction binding the contract method 0xa428cd3b.
Solidity: function settleByInvalidTurn(bytes _oracleProof, bytes _cosignedStateProof) returns()
func (*ISingleSessionWithOracleSession) SettleByMoveTimeout ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleSession) SettleByMoveTimeout(_oracleProof []byte) (*types.Transaction, error)
SettleByMoveTimeout is a paid mutator transaction binding the contract method 0xf26285b2.
Solidity: function settleByMoveTimeout(bytes _oracleProof) returns()
func (*ISingleSessionWithOracleSession) SettleBySigTimeout ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleSession) SettleBySigTimeout(_oracleProof []byte) (*types.Transaction, error)
SettleBySigTimeout is a paid mutator transaction binding the contract method 0x2141dbda.
Solidity: function settleBySigTimeout(bytes _oracleProof) returns()
type ISingleSessionWithOracleTransactor ¶
type ISingleSessionWithOracleTransactor struct {
// contains filtered or unexported fields
}
ISingleSessionWithOracleTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewISingleSessionWithOracleTransactor ¶
func NewISingleSessionWithOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*ISingleSessionWithOracleTransactor, error)
NewISingleSessionWithOracleTransactor creates a new write-only instance of ISingleSessionWithOracle, bound to a specific deployed contract.
func (*ISingleSessionWithOracleTransactor) SettleByInvalidState ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactor) SettleByInvalidState(opts *bind.TransactOpts, _oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
SettleByInvalidState is a paid mutator transaction binding the contract method 0xfb3fe806.
Solidity: function settleByInvalidState(bytes _oracleProof, bytes _cosignedStateProof) returns()
func (*ISingleSessionWithOracleTransactor) SettleByInvalidTurn ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactor) SettleByInvalidTurn(opts *bind.TransactOpts, _oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
SettleByInvalidTurn is a paid mutator transaction binding the contract method 0xa428cd3b.
Solidity: function settleByInvalidTurn(bytes _oracleProof, bytes _cosignedStateProof) returns()
func (*ISingleSessionWithOracleTransactor) SettleByMoveTimeout ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactor) SettleByMoveTimeout(opts *bind.TransactOpts, _oracleProof []byte) (*types.Transaction, error)
SettleByMoveTimeout is a paid mutator transaction binding the contract method 0xf26285b2.
Solidity: function settleByMoveTimeout(bytes _oracleProof) returns()
func (*ISingleSessionWithOracleTransactor) SettleBySigTimeout ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactor) SettleBySigTimeout(opts *bind.TransactOpts, _oracleProof []byte) (*types.Transaction, error)
SettleBySigTimeout is a paid mutator transaction binding the contract method 0x2141dbda.
Solidity: function settleBySigTimeout(bytes _oracleProof) returns()
type ISingleSessionWithOracleTransactorRaw ¶
type ISingleSessionWithOracleTransactorRaw struct {
Contract *ISingleSessionWithOracleTransactor // Generic write-only contract binding to access the raw methods on
}
ISingleSessionWithOracleTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ISingleSessionWithOracleTransactorRaw) Transact ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ISingleSessionWithOracleTransactorRaw) Transfer ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactorRaw) 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 ISingleSessionWithOracleTransactorSession ¶
type ISingleSessionWithOracleTransactorSession struct {
Contract *ISingleSessionWithOracleTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
ISingleSessionWithOracleTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ISingleSessionWithOracleTransactorSession) SettleByInvalidState ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactorSession) SettleByInvalidState(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
SettleByInvalidState is a paid mutator transaction binding the contract method 0xfb3fe806.
Solidity: function settleByInvalidState(bytes _oracleProof, bytes _cosignedStateProof) returns()
func (*ISingleSessionWithOracleTransactorSession) SettleByInvalidTurn ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactorSession) SettleByInvalidTurn(_oracleProof []byte, _cosignedStateProof []byte) (*types.Transaction, error)
SettleByInvalidTurn is a paid mutator transaction binding the contract method 0xa428cd3b.
Solidity: function settleByInvalidTurn(bytes _oracleProof, bytes _cosignedStateProof) returns()
func (*ISingleSessionWithOracleTransactorSession) SettleByMoveTimeout ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactorSession) SettleByMoveTimeout(_oracleProof []byte) (*types.Transaction, error)
SettleByMoveTimeout is a paid mutator transaction binding the contract method 0xf26285b2.
Solidity: function settleByMoveTimeout(bytes _oracleProof) returns()
func (*ISingleSessionWithOracleTransactorSession) SettleBySigTimeout ¶
func (_ISingleSessionWithOracle *ISingleSessionWithOracleTransactorSession) SettleBySigTimeout(_oracleProof []byte) (*types.Transaction, error)
SettleBySigTimeout is a paid mutator transaction binding the contract method 0x2141dbda.
Solidity: function settleBySigTimeout(bytes _oracleProof) returns()
type OracleProof ¶
type OracleProof struct {
OracleState []byte `protobuf:"bytes,1,opt,name=oracle_state,json=oracleState,proto3" json:"oracle_state,omitempty"`
Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*OracleProof) Descriptor ¶
func (*OracleProof) Descriptor() ([]byte, []int)
func (*OracleProof) GetOracleState ¶
func (m *OracleProof) GetOracleState() []byte
func (*OracleProof) GetSig ¶
func (m *OracleProof) GetSig() []byte
func (*OracleProof) ProtoMessage ¶
func (*OracleProof) ProtoMessage()
func (*OracleProof) Reset ¶
func (m *OracleProof) Reset()
func (*OracleProof) String ¶
func (m *OracleProof) String() string
func (*OracleProof) XXX_DiscardUnknown ¶
func (m *OracleProof) XXX_DiscardUnknown()
func (*OracleProof) XXX_Marshal ¶
func (m *OracleProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OracleProof) XXX_Merge ¶
func (m *OracleProof) XXX_Merge(src proto.Message)
func (*OracleProof) XXX_Size ¶
func (m *OracleProof) XXX_Size() int
func (*OracleProof) XXX_Unmarshal ¶
func (m *OracleProof) XXX_Unmarshal(b []byte) error
type OracleState ¶
type OracleState struct {
// serialized stateProof
StateProof []byte `protobuf:"bytes,1,opt,name=state_proof,json=stateProof,proto3" json:"state_proof,omitempty"`
// the address of user who updated the stateproof
Updater []byte `protobuf:"bytes,2,opt,name=updater,proto3" json:"updater,omitempty"`
// block number when state proof updated
UpdateTime uint64 `protobuf:"varint,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// block number when oracle proof requested
CurrentTime uint64 `protobuf:"varint,4,opt,name=current_time,json=currentTime,proto3" json:"current_time,omitempty"`
// player addresses
Players [][]byte `protobuf:"bytes,5,rep,name=players,proto3" json:"players,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*OracleState) Descriptor ¶
func (*OracleState) Descriptor() ([]byte, []int)
func (*OracleState) GetCurrentTime ¶
func (m *OracleState) GetCurrentTime() uint64
func (*OracleState) GetPlayers ¶
func (m *OracleState) GetPlayers() [][]byte
func (*OracleState) GetStateProof ¶
func (m *OracleState) GetStateProof() []byte
func (*OracleState) GetUpdateTime ¶
func (m *OracleState) GetUpdateTime() uint64
func (*OracleState) GetUpdater ¶
func (m *OracleState) GetUpdater() []byte
func (*OracleState) ProtoMessage ¶
func (*OracleState) ProtoMessage()
func (*OracleState) Reset ¶
func (m *OracleState) Reset()
func (*OracleState) String ¶
func (m *OracleState) String() string
func (*OracleState) XXX_DiscardUnknown ¶
func (m *OracleState) XXX_DiscardUnknown()
func (*OracleState) XXX_Marshal ¶
func (m *OracleState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OracleState) XXX_Merge ¶
func (m *OracleState) XXX_Merge(src proto.Message)
func (*OracleState) XXX_Size ¶
func (m *OracleState) XXX_Size() int
func (*OracleState) XXX_Unmarshal ¶
func (m *OracleState) XXX_Unmarshal(b []byte) error
type SessionQuery ¶
type SessionQuery struct {
// session ID
Session []byte `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
// query related to the specified session
Query []byte `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
used for multi-session app Next Tag: 3
func (*SessionQuery) Descriptor ¶
func (*SessionQuery) Descriptor() ([]byte, []int)
func (*SessionQuery) GetQuery ¶
func (m *SessionQuery) GetQuery() []byte
func (*SessionQuery) GetSession ¶
func (m *SessionQuery) GetSession() []byte
func (*SessionQuery) ProtoMessage ¶
func (*SessionQuery) ProtoMessage()
func (*SessionQuery) Reset ¶
func (m *SessionQuery) Reset()
func (*SessionQuery) String ¶
func (m *SessionQuery) String() string
func (*SessionQuery) XXX_DiscardUnknown ¶
func (m *SessionQuery) XXX_DiscardUnknown()
func (*SessionQuery) XXX_Marshal ¶
func (m *SessionQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SessionQuery) XXX_Merge ¶
func (m *SessionQuery) XXX_Merge(src proto.Message)
func (*SessionQuery) XXX_Size ¶
func (m *SessionQuery) XXX_Size() int
func (*SessionQuery) XXX_Unmarshal ¶
func (m *SessionQuery) XXX_Unmarshal(b []byte) error
type StateProof ¶
type StateProof struct {
// serialized AppState
AppState []byte `protobuf:"bytes,1,opt,name=app_state,json=appState,proto3" json:"app_state,omitempty"`
Sigs [][]byte `protobuf:"bytes,2,rep,name=sigs,proto3" json:"sigs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Next Tag: 3
func (*StateProof) Descriptor ¶
func (*StateProof) Descriptor() ([]byte, []int)
func (*StateProof) GetAppState ¶
func (m *StateProof) GetAppState() []byte
func (*StateProof) GetSigs ¶
func (m *StateProof) GetSigs() [][]byte
func (*StateProof) ProtoMessage ¶
func (*StateProof) ProtoMessage()
func (*StateProof) Reset ¶
func (m *StateProof) Reset()
func (*StateProof) String ¶
func (m *StateProof) String() string
func (*StateProof) XXX_DiscardUnknown ¶
func (m *StateProof) XXX_DiscardUnknown()
func (*StateProof) XXX_Marshal ¶
func (m *StateProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StateProof) XXX_Merge ¶
func (m *StateProof) XXX_Merge(src proto.Message)
func (*StateProof) XXX_Size ¶
func (m *StateProof) XXX_Size() int
func (*StateProof) XXX_Unmarshal ¶
func (m *StateProof) XXX_Unmarshal(b []byte) error