Documentation ¶
Index ¶
- Constants
- type Arcadeum
- type ArcadeumBalanceChanged
- type ArcadeumBalanceChangedIterator
- type ArcadeumCaller
- func (_Arcadeum *ArcadeumCaller) Balance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Arcadeum *ArcadeumCaller) CanFinishWithdrawal(opts *bind.CallOpts, account common.Address) (bool, error)
- func (_Arcadeum *ArcadeumCaller) CanStopWithdrawalXXX(opts *bind.CallOpts, timestamp *big.Int, timestampV uint8, timestampR [32]byte, ...) (bool, error)
- func (_Arcadeum *ArcadeumCaller) CouldStopWithdrawalXXX(opts *bind.CallOpts, timestamp *big.Int, timestampV uint8, timestampR [32]byte, ...) (bool, error)
- func (_Arcadeum *ArcadeumCaller) IsWithdrawing(opts *bind.CallOpts, account common.Address) (bool, error)
- func (_Arcadeum *ArcadeumCaller) MatchHashXXX(opts *bind.CallOpts, game common.Address, timestamp *big.Int, ...) ([32]byte, error)
- func (_Arcadeum *ArcadeumCaller) PlayerAccountXXX(opts *bind.CallOpts, timestamp *big.Int, timestampV uint8, timestampR [32]byte, ...) (common.Address, error)
- func (_Arcadeum *ArcadeumCaller) SubkeyMessage(opts *bind.CallOpts, subkey common.Address) (string, error)
- func (_Arcadeum *ArcadeumCaller) SubkeyParentXXX(opts *bind.CallOpts, subkey common.Address, subkeyV uint8, subkeyR [32]byte, ...) (common.Address, error)
- func (_Arcadeum *ArcadeumCaller) TimestampSubkeyXXX(opts *bind.CallOpts, timestamp *big.Int, timestampV uint8, timestampR [32]byte, ...) (common.Address, error)
- func (_Arcadeum *ArcadeumCaller) WithdrawalTime(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- type ArcadeumCallerRaw
- type ArcadeumCallerSession
- func (_Arcadeum *ArcadeumCallerSession) Balance(arg0 common.Address) (*big.Int, error)
- func (_Arcadeum *ArcadeumCallerSession) CanFinishWithdrawal(account common.Address) (bool, error)
- func (_Arcadeum *ArcadeumCallerSession) CanStopWithdrawalXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, ...) (bool, error)
- func (_Arcadeum *ArcadeumCallerSession) CouldStopWithdrawalXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, ...) (bool, error)
- func (_Arcadeum *ArcadeumCallerSession) IsWithdrawing(account common.Address) (bool, error)
- func (_Arcadeum *ArcadeumCallerSession) MatchHashXXX(game common.Address, timestamp *big.Int, accounts [2]common.Address, ...) ([32]byte, error)
- func (_Arcadeum *ArcadeumCallerSession) PlayerAccountXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, ...) (common.Address, error)
- func (_Arcadeum *ArcadeumCallerSession) SubkeyMessage(subkey common.Address) (string, error)
- func (_Arcadeum *ArcadeumCallerSession) SubkeyParentXXX(subkey common.Address, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (common.Address, error)
- func (_Arcadeum *ArcadeumCallerSession) TimestampSubkeyXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte) (common.Address, error)
- func (_Arcadeum *ArcadeumCallerSession) WithdrawalTime(arg0 common.Address) (*big.Int, error)
- type ArcadeumCheaterReported
- type ArcadeumCheaterReportedIterator
- type ArcadeumFilterer
- func (_Arcadeum *ArcadeumFilterer) FilterBalanceChanged(opts *bind.FilterOpts, account []common.Address) (*ArcadeumBalanceChangedIterator, error)
- func (_Arcadeum *ArcadeumFilterer) FilterCheaterReported(opts *bind.FilterOpts, account []common.Address, subkey []common.Address, ...) (*ArcadeumCheaterReportedIterator, error)
- func (_Arcadeum *ArcadeumFilterer) FilterRewardClaimed(opts *bind.FilterOpts, account []common.Address, subkey []common.Address, ...) (*ArcadeumRewardClaimedIterator, error)
- func (_Arcadeum *ArcadeumFilterer) FilterWithdrawalStarted(opts *bind.FilterOpts, account []common.Address) (*ArcadeumWithdrawalStartedIterator, error)
- func (_Arcadeum *ArcadeumFilterer) FilterWithdrawalStopped(opts *bind.FilterOpts, account []common.Address) (*ArcadeumWithdrawalStoppedIterator, error)
- func (_Arcadeum *ArcadeumFilterer) WatchBalanceChanged(opts *bind.WatchOpts, sink chan<- *ArcadeumBalanceChanged, ...) (event.Subscription, error)
- func (_Arcadeum *ArcadeumFilterer) WatchCheaterReported(opts *bind.WatchOpts, sink chan<- *ArcadeumCheaterReported, ...) (event.Subscription, error)
- func (_Arcadeum *ArcadeumFilterer) WatchRewardClaimed(opts *bind.WatchOpts, sink chan<- *ArcadeumRewardClaimed, ...) (event.Subscription, error)
- func (_Arcadeum *ArcadeumFilterer) WatchWithdrawalStarted(opts *bind.WatchOpts, sink chan<- *ArcadeumWithdrawalStarted, ...) (event.Subscription, error)
- func (_Arcadeum *ArcadeumFilterer) WatchWithdrawalStopped(opts *bind.WatchOpts, sink chan<- *ArcadeumWithdrawalStopped, ...) (event.Subscription, error)
- type ArcadeumRaw
- func (_Arcadeum *ArcadeumRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Arcadeum *ArcadeumRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Arcadeum *ArcadeumRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ArcadeumRewardClaimed
- type ArcadeumRewardClaimedIterator
- type ArcadeumSession
- func (_Arcadeum *ArcadeumSession) Balance(arg0 common.Address) (*big.Int, error)
- func (_Arcadeum *ArcadeumSession) CanFinishWithdrawal(account common.Address) (bool, error)
- func (_Arcadeum *ArcadeumSession) CanStopWithdrawalXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, ...) (bool, error)
- func (_Arcadeum *ArcadeumSession) CouldStopWithdrawalXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, ...) (bool, error)
- func (_Arcadeum *ArcadeumSession) Deposit() (*types.Transaction, error)
- func (_Arcadeum *ArcadeumSession) FinishWithdrawal() (*types.Transaction, error)
- func (_Arcadeum *ArcadeumSession) IsWithdrawing(account common.Address) (bool, error)
- func (_Arcadeum *ArcadeumSession) MatchHashXXX(game common.Address, timestamp *big.Int, accounts [2]common.Address, ...) ([32]byte, error)
- func (_Arcadeum *ArcadeumSession) PlayerAccountXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, ...) (common.Address, error)
- func (_Arcadeum *ArcadeumSession) StartWithdrawal() (*types.Transaction, error)
- func (_Arcadeum *ArcadeumSession) StopWithdrawalXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, ...) (*types.Transaction, error)
- func (_Arcadeum *ArcadeumSession) SubkeyMessage(subkey common.Address) (string, error)
- func (_Arcadeum *ArcadeumSession) SubkeyParentXXX(subkey common.Address, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (common.Address, error)
- func (_Arcadeum *ArcadeumSession) TimestampSubkeyXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte) (common.Address, error)
- func (_Arcadeum *ArcadeumSession) WithdrawalTime(arg0 common.Address) (*big.Int, error)
- type ArcadeumTransactor
- func (_Arcadeum *ArcadeumTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Arcadeum *ArcadeumTransactor) FinishWithdrawal(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Arcadeum *ArcadeumTransactor) StartWithdrawal(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Arcadeum *ArcadeumTransactor) StopWithdrawalXXX(opts *bind.TransactOpts, timestamp *big.Int, timestampV uint8, ...) (*types.Transaction, error)
- type ArcadeumTransactorRaw
- type ArcadeumTransactorSession
- func (_Arcadeum *ArcadeumTransactorSession) Deposit() (*types.Transaction, error)
- func (_Arcadeum *ArcadeumTransactorSession) FinishWithdrawal() (*types.Transaction, error)
- func (_Arcadeum *ArcadeumTransactorSession) StartWithdrawal() (*types.Transaction, error)
- func (_Arcadeum *ArcadeumTransactorSession) StopWithdrawalXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, ...) (*types.Transaction, error)
- type ArcadeumWithdrawalStarted
- type ArcadeumWithdrawalStartedIterator
- type ArcadeumWithdrawalStopped
- type ArcadeumWithdrawalStoppedIterator
- type Client
- func (c *Client) CalculateRank(gameID uint32, secretSeed []byte) (uint32, error)
- func (c *Client) DGameContract(gameID uint32) (*DGame, error)
- func (c *Client) GetStakedStatus(from common.Address) (StakedStatus, error)
- func (c *Client) HandleWithdrawalStarted(handler IWithdrawalStartedHandler)
- func (c *Client) IsSecretSeedValid(gameID uint32, account common.Address, secretSeed []byte) (bool, error)
- func (c *Client) MatchDuration(gameID uint32) (time.Duration, error)
- func (c *Client) MatchHash(msg *MatchVerifiedMessage) ([32]byte, error)
- func (c *Client) PriceUSDInEth() (float64, error)
- func (c *Client) PublicSeed(gameID uint32, secretSeed []byte) ([]byte, error)
- func (c *Client) StakeBalanceInEth(address common.Address) (*big.Int, error)
- func (c *Client) SubKeyParent(subkey common.Address, sig *crypto.Signature) (common.Address, error)
- func (c *Client) SubscribeWithdrawalStarted() (event.Subscription, error)
- func (c *Client) TimestampSubkey(timestamp int64, sig crypto.Signature) (common.Address, error)
- func (c *Client) VerifySignedTimestamp(req *VerifyTimestampRequest, subkeySig *crypto.Signature) (common.Address, error)
- type DGame
- type DGameCaller
- func (_DGame *DGameCaller) IsSecretSeedValid(opts *bind.CallOpts, account common.Address, secretSeed []byte) (bool, error)
- func (_DGame *DGameCaller) MatchDuration(opts *bind.CallOpts) (*big.Int, error)
- func (_DGame *DGameCaller) PublicSeed(opts *bind.CallOpts, secretSeed []byte) ([]byte, error)
- func (_DGame *DGameCaller) SecretSeedRating(opts *bind.CallOpts, secretSeed []byte) (uint32, error)
- type DGameCallerRaw
- type DGameCallerSession
- func (_DGame *DGameCallerSession) IsSecretSeedValid(account common.Address, secretSeed []byte) (bool, error)
- func (_DGame *DGameCallerSession) MatchDuration() (*big.Int, error)
- func (_DGame *DGameCallerSession) PublicSeed(secretSeed []byte) ([]byte, error)
- func (_DGame *DGameCallerSession) SecretSeedRating(secretSeed []byte) (uint32, error)
- type DGameFilterer
- type DGameRaw
- func (_DGame *DGameRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_DGame *DGameRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_DGame *DGameRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type DGameSession
- func (_DGame *DGameSession) IsSecretSeedValid(account common.Address, secretSeed []byte) (bool, error)
- func (_DGame *DGameSession) MatchDuration() (*big.Int, error)
- func (_DGame *DGameSession) PublicSeed(secretSeed []byte) ([]byte, error)
- func (_DGame *DGameSession) SecretSeedRating(secretSeed []byte) (uint32, error)
- type DGameTransactor
- type DGameTransactorRaw
- type DGameTransactorSession
- type EtherScanPriceResponse
- type IWithdrawalStartedHandler
- type MatchVerifiedMessage
- type MatchVerifiedPlayerInfo
- type PriceResult
- type StakedStatus
- type VerifyTimestampRequest
Constants ¶
const ( UNKNOWN = -1 NOT_STAKED = 0 STAKED = 1 STAKED_INSUFFICIENT_BALANCE = 2 // player's stake balance is below latest calculated stake )
const ArcadeumABI = "" /* 5622-byte string literal not displayed */
ArcadeumABI is the input ABI used to generate the binding from.
const ArcadeumBin = `0x`
ArcadeumBin is the compiled bytecode used for deploying new contracts.
const DGameABI = "" /* 899-byte string literal not displayed */
DGameABI is the input ABI used to generate the binding from.
const DGameBin = `0x`
DGameBin is the compiled bytecode used for deploying new contracts.
const (
PRICE_SAMPLE_INTERVAL_IN_SEC = 60 // 1 min
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arcadeum ¶
type Arcadeum struct { ArcadeumCaller // Read-only binding to the contract ArcadeumTransactor // Write-only binding to the contract ArcadeumFilterer // Log filterer for contract events }
Arcadeum is an auto generated Go binding around an Ethereum contract.
func DeployArcadeum ¶
func DeployArcadeum(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Arcadeum, error)
DeployArcadeum deploys a new Ethereum contract, binding an instance of Arcadeum to it.
func NewArcadeum ¶
NewArcadeum creates a new instance of Arcadeum, bound to a specific deployed contract.
type ArcadeumBalanceChanged ¶
type ArcadeumBalanceChanged struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
ArcadeumBalanceChanged represents a BalanceChanged event raised by the Arcadeum contract.
type ArcadeumBalanceChangedIterator ¶
type ArcadeumBalanceChangedIterator struct { Event *ArcadeumBalanceChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ArcadeumBalanceChangedIterator is returned from FilterBalanceChanged and is used to iterate over the raw logs and unpacked data for BalanceChanged events raised by the Arcadeum contract.
func (*ArcadeumBalanceChangedIterator) Close ¶
func (it *ArcadeumBalanceChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ArcadeumBalanceChangedIterator) Error ¶
func (it *ArcadeumBalanceChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ArcadeumBalanceChangedIterator) Next ¶
func (it *ArcadeumBalanceChangedIterator) 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 ArcadeumCaller ¶
type ArcadeumCaller struct {
// contains filtered or unexported fields
}
ArcadeumCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewArcadeumCaller ¶
func NewArcadeumCaller(address common.Address, caller bind.ContractCaller) (*ArcadeumCaller, error)
NewArcadeumCaller creates a new read-only instance of Arcadeum, bound to a specific deployed contract.
func (*ArcadeumCaller) Balance ¶
func (_Arcadeum *ArcadeumCaller) Balance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
Balance is a free data retrieval call binding the contract method 0xe3d670d7.
Solidity: function balance( address) constant returns(uint256)
func (*ArcadeumCaller) CanFinishWithdrawal ¶
func (_Arcadeum *ArcadeumCaller) CanFinishWithdrawal(opts *bind.CallOpts, account common.Address) (bool, error)
CanFinishWithdrawal is a free data retrieval call binding the contract method 0x98b6a663.
Solidity: function canFinishWithdrawal(account address) constant returns(bool)
func (*ArcadeumCaller) CanStopWithdrawalXXX ¶
func (_Arcadeum *ArcadeumCaller) CanStopWithdrawalXXX(opts *bind.CallOpts, timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (bool, error)
CanStopWithdrawalXXX is a free data retrieval call binding the contract method 0x60512bc9.
Solidity: function canStopWithdrawalXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) constant returns(bool)
func (*ArcadeumCaller) CouldStopWithdrawalXXX ¶
func (_Arcadeum *ArcadeumCaller) CouldStopWithdrawalXXX(opts *bind.CallOpts, timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (bool, error)
CouldStopWithdrawalXXX is a free data retrieval call binding the contract method 0x9d2d02ab.
Solidity: function couldStopWithdrawalXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) constant returns(bool)
func (*ArcadeumCaller) IsWithdrawing ¶
func (_Arcadeum *ArcadeumCaller) IsWithdrawing(opts *bind.CallOpts, account common.Address) (bool, error)
IsWithdrawing is a free data retrieval call binding the contract method 0xed095b84.
Solidity: function isWithdrawing(account address) constant returns(bool)
func (*ArcadeumCaller) MatchHashXXX ¶
func (_Arcadeum *ArcadeumCaller) MatchHashXXX(opts *bind.CallOpts, game common.Address, timestamp *big.Int, accounts [2]common.Address, subkeys [2]common.Address, seedRatings [2]uint32) ([32]byte, error)
MatchHashXXX is a free data retrieval call binding the contract method 0x1723ecca.
Solidity: function matchHashXXX(game address, timestamp uint256, accounts address[2], subkeys address[2], seedRatings uint32[2]) constant returns(bytes32)
func (*ArcadeumCaller) PlayerAccountXXX ¶
func (_Arcadeum *ArcadeumCaller) PlayerAccountXXX(opts *bind.CallOpts, timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (common.Address, error)
PlayerAccountXXX is a free data retrieval call binding the contract method 0xd9a6ad9d.
Solidity: function playerAccountXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) constant returns(address)
func (*ArcadeumCaller) SubkeyMessage ¶
func (_Arcadeum *ArcadeumCaller) SubkeyMessage(opts *bind.CallOpts, subkey common.Address) (string, error)
SubkeyMessage is a free data retrieval call binding the contract method 0x41b677db.
Solidity: function subkeyMessage(subkey address) constant returns(string)
func (*ArcadeumCaller) SubkeyParentXXX ¶
func (_Arcadeum *ArcadeumCaller) SubkeyParentXXX(opts *bind.CallOpts, subkey common.Address, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (common.Address, error)
SubkeyParentXXX is a free data retrieval call binding the contract method 0x5e15d8a8.
Solidity: function subkeyParentXXX(subkey address, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) constant returns(address)
func (*ArcadeumCaller) TimestampSubkeyXXX ¶
func (_Arcadeum *ArcadeumCaller) TimestampSubkeyXXX(opts *bind.CallOpts, timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte) (common.Address, error)
TimestampSubkeyXXX is a free data retrieval call binding the contract method 0x529fec07.
Solidity: function timestampSubkeyXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32) constant returns(address)
func (*ArcadeumCaller) WithdrawalTime ¶
func (_Arcadeum *ArcadeumCaller) WithdrawalTime(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
WithdrawalTime is a free data retrieval call binding the contract method 0x8fe4b1e6.
Solidity: function withdrawalTime( address) constant returns(uint256)
type ArcadeumCallerRaw ¶
type ArcadeumCallerRaw struct {
Contract *ArcadeumCaller // Generic read-only contract binding to access the raw methods on
}
ArcadeumCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ArcadeumCallerRaw) Call ¶
func (_Arcadeum *ArcadeumCallerRaw) 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 ArcadeumCallerSession ¶
type ArcadeumCallerSession struct { Contract *ArcadeumCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ArcadeumCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ArcadeumCallerSession) Balance ¶
Balance is a free data retrieval call binding the contract method 0xe3d670d7.
Solidity: function balance( address) constant returns(uint256)
func (*ArcadeumCallerSession) CanFinishWithdrawal ¶
func (_Arcadeum *ArcadeumCallerSession) CanFinishWithdrawal(account common.Address) (bool, error)
CanFinishWithdrawal is a free data retrieval call binding the contract method 0x98b6a663.
Solidity: function canFinishWithdrawal(account address) constant returns(bool)
func (*ArcadeumCallerSession) CanStopWithdrawalXXX ¶
func (_Arcadeum *ArcadeumCallerSession) CanStopWithdrawalXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (bool, error)
CanStopWithdrawalXXX is a free data retrieval call binding the contract method 0x60512bc9.
Solidity: function canStopWithdrawalXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) constant returns(bool)
func (*ArcadeumCallerSession) CouldStopWithdrawalXXX ¶
func (_Arcadeum *ArcadeumCallerSession) CouldStopWithdrawalXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (bool, error)
CouldStopWithdrawalXXX is a free data retrieval call binding the contract method 0x9d2d02ab.
Solidity: function couldStopWithdrawalXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) constant returns(bool)
func (*ArcadeumCallerSession) IsWithdrawing ¶
func (_Arcadeum *ArcadeumCallerSession) IsWithdrawing(account common.Address) (bool, error)
IsWithdrawing is a free data retrieval call binding the contract method 0xed095b84.
Solidity: function isWithdrawing(account address) constant returns(bool)
func (*ArcadeumCallerSession) MatchHashXXX ¶
func (_Arcadeum *ArcadeumCallerSession) MatchHashXXX(game common.Address, timestamp *big.Int, accounts [2]common.Address, subkeys [2]common.Address, seedRatings [2]uint32) ([32]byte, error)
MatchHashXXX is a free data retrieval call binding the contract method 0x1723ecca.
Solidity: function matchHashXXX(game address, timestamp uint256, accounts address[2], subkeys address[2], seedRatings uint32[2]) constant returns(bytes32)
func (*ArcadeumCallerSession) PlayerAccountXXX ¶
func (_Arcadeum *ArcadeumCallerSession) PlayerAccountXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (common.Address, error)
PlayerAccountXXX is a free data retrieval call binding the contract method 0xd9a6ad9d.
Solidity: function playerAccountXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) constant returns(address)
func (*ArcadeumCallerSession) SubkeyMessage ¶
func (_Arcadeum *ArcadeumCallerSession) SubkeyMessage(subkey common.Address) (string, error)
SubkeyMessage is a free data retrieval call binding the contract method 0x41b677db.
Solidity: function subkeyMessage(subkey address) constant returns(string)
func (*ArcadeumCallerSession) SubkeyParentXXX ¶
func (_Arcadeum *ArcadeumCallerSession) SubkeyParentXXX(subkey common.Address, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (common.Address, error)
SubkeyParentXXX is a free data retrieval call binding the contract method 0x5e15d8a8.
Solidity: function subkeyParentXXX(subkey address, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) constant returns(address)
func (*ArcadeumCallerSession) TimestampSubkeyXXX ¶
func (_Arcadeum *ArcadeumCallerSession) TimestampSubkeyXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte) (common.Address, error)
TimestampSubkeyXXX is a free data retrieval call binding the contract method 0x529fec07.
Solidity: function timestampSubkeyXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32) constant returns(address)
func (*ArcadeumCallerSession) WithdrawalTime ¶
WithdrawalTime is a free data retrieval call binding the contract method 0x8fe4b1e6.
Solidity: function withdrawalTime( address) constant returns(uint256)
type ArcadeumCheaterReported ¶
type ArcadeumCheaterReported struct { Account common.Address Subkey common.Address Timestamp *big.Int Raw types.Log // Blockchain specific contextual infos }
ArcadeumCheaterReported represents a CheaterReported event raised by the Arcadeum contract.
type ArcadeumCheaterReportedIterator ¶
type ArcadeumCheaterReportedIterator struct { Event *ArcadeumCheaterReported // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ArcadeumCheaterReportedIterator is returned from FilterCheaterReported and is used to iterate over the raw logs and unpacked data for CheaterReported events raised by the Arcadeum contract.
func (*ArcadeumCheaterReportedIterator) Close ¶
func (it *ArcadeumCheaterReportedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ArcadeumCheaterReportedIterator) Error ¶
func (it *ArcadeumCheaterReportedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ArcadeumCheaterReportedIterator) Next ¶
func (it *ArcadeumCheaterReportedIterator) 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 ArcadeumFilterer ¶
type ArcadeumFilterer struct {
// contains filtered or unexported fields
}
ArcadeumFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewArcadeumFilterer ¶
func NewArcadeumFilterer(address common.Address, filterer bind.ContractFilterer) (*ArcadeumFilterer, error)
NewArcadeumFilterer creates a new log filterer instance of Arcadeum, bound to a specific deployed contract.
func (*ArcadeumFilterer) FilterBalanceChanged ¶
func (_Arcadeum *ArcadeumFilterer) FilterBalanceChanged(opts *bind.FilterOpts, account []common.Address) (*ArcadeumBalanceChangedIterator, error)
FilterBalanceChanged is a free log retrieval operation binding the contract event 0xeadc109e76de61f30acdeb8f317d29d2bfc33fb375d996835e421c72aabb7170.
Solidity: e balanceChanged(account indexed address)
func (*ArcadeumFilterer) FilterCheaterReported ¶
func (_Arcadeum *ArcadeumFilterer) FilterCheaterReported(opts *bind.FilterOpts, account []common.Address, subkey []common.Address, timestamp []*big.Int) (*ArcadeumCheaterReportedIterator, error)
FilterCheaterReported is a free log retrieval operation binding the contract event 0x423574c10f85c584a34398d1162a81db5d7f6c1482f7e9788a562d5f9368aebb.
Solidity: e cheaterReported(account indexed address, subkey indexed address, timestamp indexed uint256)
func (*ArcadeumFilterer) FilterRewardClaimed ¶
func (_Arcadeum *ArcadeumFilterer) FilterRewardClaimed(opts *bind.FilterOpts, account []common.Address, subkey []common.Address, timestamp []*big.Int) (*ArcadeumRewardClaimedIterator, error)
FilterRewardClaimed is a free log retrieval operation binding the contract event 0x1b187dff96b38a8cbbbdbbc7758627a4bc7248425c7aecef38ac84a63107837f.
Solidity: e rewardClaimed(account indexed address, subkey indexed address, timestamp indexed uint256)
func (*ArcadeumFilterer) FilterWithdrawalStarted ¶
func (_Arcadeum *ArcadeumFilterer) FilterWithdrawalStarted(opts *bind.FilterOpts, account []common.Address) (*ArcadeumWithdrawalStartedIterator, error)
FilterWithdrawalStarted is a free log retrieval operation binding the contract event 0x3ab48c8f15bc703088e6dd5631e3d30792f37e03cbdf5011637a8915b0d0bb47.
Solidity: e withdrawalStarted(account indexed address)
func (*ArcadeumFilterer) FilterWithdrawalStopped ¶
func (_Arcadeum *ArcadeumFilterer) FilterWithdrawalStopped(opts *bind.FilterOpts, account []common.Address) (*ArcadeumWithdrawalStoppedIterator, error)
FilterWithdrawalStopped is a free log retrieval operation binding the contract event 0xd002c0e157290359441a1dfa197f28329220c0e1d378d1974e9a87d3a6480633.
Solidity: e withdrawalStopped(account indexed address)
func (*ArcadeumFilterer) WatchBalanceChanged ¶
func (_Arcadeum *ArcadeumFilterer) WatchBalanceChanged(opts *bind.WatchOpts, sink chan<- *ArcadeumBalanceChanged, account []common.Address) (event.Subscription, error)
WatchBalanceChanged is a free log subscription operation binding the contract event 0xeadc109e76de61f30acdeb8f317d29d2bfc33fb375d996835e421c72aabb7170.
Solidity: e balanceChanged(account indexed address)
func (*ArcadeumFilterer) WatchCheaterReported ¶
func (_Arcadeum *ArcadeumFilterer) WatchCheaterReported(opts *bind.WatchOpts, sink chan<- *ArcadeumCheaterReported, account []common.Address, subkey []common.Address, timestamp []*big.Int) (event.Subscription, error)
WatchCheaterReported is a free log subscription operation binding the contract event 0x423574c10f85c584a34398d1162a81db5d7f6c1482f7e9788a562d5f9368aebb.
Solidity: e cheaterReported(account indexed address, subkey indexed address, timestamp indexed uint256)
func (*ArcadeumFilterer) WatchRewardClaimed ¶
func (_Arcadeum *ArcadeumFilterer) WatchRewardClaimed(opts *bind.WatchOpts, sink chan<- *ArcadeumRewardClaimed, account []common.Address, subkey []common.Address, timestamp []*big.Int) (event.Subscription, error)
WatchRewardClaimed is a free log subscription operation binding the contract event 0x1b187dff96b38a8cbbbdbbc7758627a4bc7248425c7aecef38ac84a63107837f.
Solidity: e rewardClaimed(account indexed address, subkey indexed address, timestamp indexed uint256)
func (*ArcadeumFilterer) WatchWithdrawalStarted ¶
func (_Arcadeum *ArcadeumFilterer) WatchWithdrawalStarted(opts *bind.WatchOpts, sink chan<- *ArcadeumWithdrawalStarted, account []common.Address) (event.Subscription, error)
WatchWithdrawalStarted is a free log subscription operation binding the contract event 0x3ab48c8f15bc703088e6dd5631e3d30792f37e03cbdf5011637a8915b0d0bb47.
Solidity: e withdrawalStarted(account indexed address)
func (*ArcadeumFilterer) WatchWithdrawalStopped ¶
func (_Arcadeum *ArcadeumFilterer) WatchWithdrawalStopped(opts *bind.WatchOpts, sink chan<- *ArcadeumWithdrawalStopped, account []common.Address) (event.Subscription, error)
WatchWithdrawalStopped is a free log subscription operation binding the contract event 0xd002c0e157290359441a1dfa197f28329220c0e1d378d1974e9a87d3a6480633.
Solidity: e withdrawalStopped(account indexed address)
type ArcadeumRaw ¶
type ArcadeumRaw struct {
Contract *Arcadeum // Generic contract binding to access the raw methods on
}
ArcadeumRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ArcadeumRaw) Call ¶
func (_Arcadeum *ArcadeumRaw) 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 (*ArcadeumRaw) Transact ¶
func (_Arcadeum *ArcadeumRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ArcadeumRaw) Transfer ¶
func (_Arcadeum *ArcadeumRaw) 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 ArcadeumRewardClaimed ¶
type ArcadeumRewardClaimed struct { Account common.Address Subkey common.Address Timestamp *big.Int Raw types.Log // Blockchain specific contextual infos }
ArcadeumRewardClaimed represents a RewardClaimed event raised by the Arcadeum contract.
type ArcadeumRewardClaimedIterator ¶
type ArcadeumRewardClaimedIterator struct { Event *ArcadeumRewardClaimed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ArcadeumRewardClaimedIterator is returned from FilterRewardClaimed and is used to iterate over the raw logs and unpacked data for RewardClaimed events raised by the Arcadeum contract.
func (*ArcadeumRewardClaimedIterator) Close ¶
func (it *ArcadeumRewardClaimedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ArcadeumRewardClaimedIterator) Error ¶
func (it *ArcadeumRewardClaimedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ArcadeumRewardClaimedIterator) Next ¶
func (it *ArcadeumRewardClaimedIterator) 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 ArcadeumSession ¶
type ArcadeumSession struct { Contract *Arcadeum // 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 }
ArcadeumSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ArcadeumSession) Balance ¶
Balance is a free data retrieval call binding the contract method 0xe3d670d7.
Solidity: function balance( address) constant returns(uint256)
func (*ArcadeumSession) CanFinishWithdrawal ¶
func (_Arcadeum *ArcadeumSession) CanFinishWithdrawal(account common.Address) (bool, error)
CanFinishWithdrawal is a free data retrieval call binding the contract method 0x98b6a663.
Solidity: function canFinishWithdrawal(account address) constant returns(bool)
func (*ArcadeumSession) CanStopWithdrawalXXX ¶
func (_Arcadeum *ArcadeumSession) CanStopWithdrawalXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (bool, error)
CanStopWithdrawalXXX is a free data retrieval call binding the contract method 0x60512bc9.
Solidity: function canStopWithdrawalXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) constant returns(bool)
func (*ArcadeumSession) CouldStopWithdrawalXXX ¶
func (_Arcadeum *ArcadeumSession) CouldStopWithdrawalXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (bool, error)
CouldStopWithdrawalXXX is a free data retrieval call binding the contract method 0x9d2d02ab.
Solidity: function couldStopWithdrawalXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) constant returns(bool)
func (*ArcadeumSession) Deposit ¶
func (_Arcadeum *ArcadeumSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() returns()
func (*ArcadeumSession) FinishWithdrawal ¶
func (_Arcadeum *ArcadeumSession) FinishWithdrawal() (*types.Transaction, error)
FinishWithdrawal is a paid mutator transaction binding the contract method 0xbde6cf64.
Solidity: function finishWithdrawal() returns()
func (*ArcadeumSession) IsWithdrawing ¶
func (_Arcadeum *ArcadeumSession) IsWithdrawing(account common.Address) (bool, error)
IsWithdrawing is a free data retrieval call binding the contract method 0xed095b84.
Solidity: function isWithdrawing(account address) constant returns(bool)
func (*ArcadeumSession) MatchHashXXX ¶
func (_Arcadeum *ArcadeumSession) MatchHashXXX(game common.Address, timestamp *big.Int, accounts [2]common.Address, subkeys [2]common.Address, seedRatings [2]uint32) ([32]byte, error)
MatchHashXXX is a free data retrieval call binding the contract method 0x1723ecca.
Solidity: function matchHashXXX(game address, timestamp uint256, accounts address[2], subkeys address[2], seedRatings uint32[2]) constant returns(bytes32)
func (*ArcadeumSession) PlayerAccountXXX ¶
func (_Arcadeum *ArcadeumSession) PlayerAccountXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (common.Address, error)
PlayerAccountXXX is a free data retrieval call binding the contract method 0xd9a6ad9d.
Solidity: function playerAccountXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) constant returns(address)
func (*ArcadeumSession) StartWithdrawal ¶
func (_Arcadeum *ArcadeumSession) StartWithdrawal() (*types.Transaction, error)
StartWithdrawal is a paid mutator transaction binding the contract method 0xbc2f8dd8.
Solidity: function startWithdrawal() returns()
func (*ArcadeumSession) StopWithdrawalXXX ¶
func (_Arcadeum *ArcadeumSession) StopWithdrawalXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (*types.Transaction, error)
StopWithdrawalXXX is a paid mutator transaction binding the contract method 0xf57a863a.
Solidity: function stopWithdrawalXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) returns()
func (*ArcadeumSession) SubkeyMessage ¶
func (_Arcadeum *ArcadeumSession) SubkeyMessage(subkey common.Address) (string, error)
SubkeyMessage is a free data retrieval call binding the contract method 0x41b677db.
Solidity: function subkeyMessage(subkey address) constant returns(string)
func (*ArcadeumSession) SubkeyParentXXX ¶
func (_Arcadeum *ArcadeumSession) SubkeyParentXXX(subkey common.Address, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (common.Address, error)
SubkeyParentXXX is a free data retrieval call binding the contract method 0x5e15d8a8.
Solidity: function subkeyParentXXX(subkey address, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) constant returns(address)
func (*ArcadeumSession) TimestampSubkeyXXX ¶
func (_Arcadeum *ArcadeumSession) TimestampSubkeyXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte) (common.Address, error)
TimestampSubkeyXXX is a free data retrieval call binding the contract method 0x529fec07.
Solidity: function timestampSubkeyXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32) constant returns(address)
func (*ArcadeumSession) WithdrawalTime ¶
WithdrawalTime is a free data retrieval call binding the contract method 0x8fe4b1e6.
Solidity: function withdrawalTime( address) constant returns(uint256)
type ArcadeumTransactor ¶
type ArcadeumTransactor struct {
// contains filtered or unexported fields
}
ArcadeumTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewArcadeumTransactor ¶
func NewArcadeumTransactor(address common.Address, transactor bind.ContractTransactor) (*ArcadeumTransactor, error)
NewArcadeumTransactor creates a new write-only instance of Arcadeum, bound to a specific deployed contract.
func (*ArcadeumTransactor) Deposit ¶
func (_Arcadeum *ArcadeumTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() returns()
func (*ArcadeumTransactor) FinishWithdrawal ¶
func (_Arcadeum *ArcadeumTransactor) FinishWithdrawal(opts *bind.TransactOpts) (*types.Transaction, error)
FinishWithdrawal is a paid mutator transaction binding the contract method 0xbde6cf64.
Solidity: function finishWithdrawal() returns()
func (*ArcadeumTransactor) StartWithdrawal ¶
func (_Arcadeum *ArcadeumTransactor) StartWithdrawal(opts *bind.TransactOpts) (*types.Transaction, error)
StartWithdrawal is a paid mutator transaction binding the contract method 0xbc2f8dd8.
Solidity: function startWithdrawal() returns()
func (*ArcadeumTransactor) StopWithdrawalXXX ¶
func (_Arcadeum *ArcadeumTransactor) StopWithdrawalXXX(opts *bind.TransactOpts, timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (*types.Transaction, error)
StopWithdrawalXXX is a paid mutator transaction binding the contract method 0xf57a863a.
Solidity: function stopWithdrawalXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) returns()
type ArcadeumTransactorRaw ¶
type ArcadeumTransactorRaw struct {
Contract *ArcadeumTransactor // Generic write-only contract binding to access the raw methods on
}
ArcadeumTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ArcadeumTransactorRaw) Transact ¶
func (_Arcadeum *ArcadeumTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ArcadeumTransactorRaw) Transfer ¶
func (_Arcadeum *ArcadeumTransactorRaw) 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 ArcadeumTransactorSession ¶
type ArcadeumTransactorSession struct { Contract *ArcadeumTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ArcadeumTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ArcadeumTransactorSession) Deposit ¶
func (_Arcadeum *ArcadeumTransactorSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() returns()
func (*ArcadeumTransactorSession) FinishWithdrawal ¶
func (_Arcadeum *ArcadeumTransactorSession) FinishWithdrawal() (*types.Transaction, error)
FinishWithdrawal is a paid mutator transaction binding the contract method 0xbde6cf64.
Solidity: function finishWithdrawal() returns()
func (*ArcadeumTransactorSession) StartWithdrawal ¶
func (_Arcadeum *ArcadeumTransactorSession) StartWithdrawal() (*types.Transaction, error)
StartWithdrawal is a paid mutator transaction binding the contract method 0xbc2f8dd8.
Solidity: function startWithdrawal() returns()
func (*ArcadeumTransactorSession) StopWithdrawalXXX ¶
func (_Arcadeum *ArcadeumTransactorSession) StopWithdrawalXXX(timestamp *big.Int, timestampV uint8, timestampR [32]byte, timestampS [32]byte, subkeyV uint8, subkeyR [32]byte, subkeyS [32]byte) (*types.Transaction, error)
StopWithdrawalXXX is a paid mutator transaction binding the contract method 0xf57a863a.
Solidity: function stopWithdrawalXXX(timestamp uint256, timestampV uint8, timestampR bytes32, timestampS bytes32, subkeyV uint8, subkeyR bytes32, subkeyS bytes32) returns()
type ArcadeumWithdrawalStarted ¶
type ArcadeumWithdrawalStarted struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
ArcadeumWithdrawalStarted represents a WithdrawalStarted event raised by the Arcadeum contract.
type ArcadeumWithdrawalStartedIterator ¶
type ArcadeumWithdrawalStartedIterator struct { Event *ArcadeumWithdrawalStarted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ArcadeumWithdrawalStartedIterator is returned from FilterWithdrawalStarted and is used to iterate over the raw logs and unpacked data for WithdrawalStarted events raised by the Arcadeum contract.
func (*ArcadeumWithdrawalStartedIterator) Close ¶
func (it *ArcadeumWithdrawalStartedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ArcadeumWithdrawalStartedIterator) Error ¶
func (it *ArcadeumWithdrawalStartedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ArcadeumWithdrawalStartedIterator) Next ¶
func (it *ArcadeumWithdrawalStartedIterator) 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 ArcadeumWithdrawalStopped ¶
type ArcadeumWithdrawalStopped struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
ArcadeumWithdrawalStopped represents a WithdrawalStopped event raised by the Arcadeum contract.
type ArcadeumWithdrawalStoppedIterator ¶
type ArcadeumWithdrawalStoppedIterator struct { Event *ArcadeumWithdrawalStopped // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ArcadeumWithdrawalStoppedIterator is returned from FilterWithdrawalStopped and is used to iterate over the raw logs and unpacked data for WithdrawalStopped events raised by the Arcadeum contract.
func (*ArcadeumWithdrawalStoppedIterator) Close ¶
func (it *ArcadeumWithdrawalStoppedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ArcadeumWithdrawalStoppedIterator) Error ¶
func (it *ArcadeumWithdrawalStoppedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ArcadeumWithdrawalStoppedIterator) Next ¶
func (it *ArcadeumWithdrawalStoppedIterator) 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 Client ¶
type Client struct { LastPriceUnixTime int64 // time of last ether/usd price retrieval; used for cache refresh USDInETH float64 // price of 1 USD in ETH EtherscanPriceURL string MinStakeUSD float32 // minimum Arcadeum stake amount in USD ArcadeumContractAddress common.Address GameAddress map[uint32]common.Address // gameID -> game contract address Conn *ethclient.Client ArcadeumContract *Arcadeum }
func NewArcadeumClient ¶
func NewArcadeumClient(ethcfg *config.ETHConfig, arccfg *config.ArcadeumConfig) *Client
func (*Client) CalculateRank ¶
Call constant function ETH contract, passing in the payload, address of requester. Use gameID to map to correct game contract.
func (*Client) GetStakedStatus ¶
func (c *Client) GetStakedStatus(from common.Address) (StakedStatus, error)
func (*Client) HandleWithdrawalStarted ¶
func (c *Client) HandleWithdrawalStarted(handler IWithdrawalStartedHandler)
func (*Client) IsSecretSeedValid ¶
func (c *Client) IsSecretSeedValid(gameID uint32, account common.Address, secretSeed []byte) (bool, error)
Check if the account owns the secret seed "deck"
func (*Client) PriceUSDInEth ¶
Return the price of 1 USD in ETH
func (*Client) PublicSeed ¶
func (*Client) StakeBalanceInEth ¶
Calculate the balance of a given address on the Arcadeum staking contract.
func (*Client) SubKeyParent ¶
Return the address of the signer of the subkey
func (*Client) SubscribeWithdrawalStarted ¶
func (c *Client) SubscribeWithdrawalStarted() (event.Subscription, error)
func (*Client) TimestampSubkey ¶
Return the subkey that signed a given timestamp
func (*Client) VerifySignedTimestamp ¶
type DGame ¶
type DGame struct { DGameCaller // Read-only binding to the contract DGameTransactor // Write-only binding to the contract DGameFilterer // Log filterer for contract events }
DGame is an auto generated Go binding around an Ethereum contract.
func DeployDGame ¶
func DeployDGame(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *DGame, error)
DeployDGame deploys a new Ethereum contract, binding an instance of DGame to it.
type DGameCaller ¶
type DGameCaller struct {
// contains filtered or unexported fields
}
DGameCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewDGameCaller ¶
func NewDGameCaller(address common.Address, caller bind.ContractCaller) (*DGameCaller, error)
NewDGameCaller creates a new read-only instance of DGame, bound to a specific deployed contract.
func (*DGameCaller) IsSecretSeedValid ¶
func (_DGame *DGameCaller) IsSecretSeedValid(opts *bind.CallOpts, account common.Address, secretSeed []byte) (bool, error)
IsSecretSeedValid is a free data retrieval call binding the contract method 0x67745882.
Solidity: function isSecretSeedValid(account address, secretSeed bytes) constant returns(bool)
func (*DGameCaller) MatchDuration ¶
MatchDuration is a free data retrieval call binding the contract method 0x0e649a0b.
Solidity: function matchDuration() constant returns(uint256)
func (*DGameCaller) PublicSeed ¶
PublicSeed is a free data retrieval call binding the contract method 0x9bf391ec.
Solidity: function publicSeed(secretSeed bytes) constant returns(bytes)
func (*DGameCaller) SecretSeedRating ¶
SecretSeedRating is a free data retrieval call binding the contract method 0x9ef7f8d4.
Solidity: function secretSeedRating(secretSeed bytes) constant returns(uint32)
type DGameCallerRaw ¶
type DGameCallerRaw struct {
Contract *DGameCaller // Generic read-only contract binding to access the raw methods on
}
DGameCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*DGameCallerRaw) Call ¶
func (_DGame *DGameCallerRaw) 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 DGameCallerSession ¶
type DGameCallerSession struct { Contract *DGameCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
DGameCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*DGameCallerSession) IsSecretSeedValid ¶
func (_DGame *DGameCallerSession) IsSecretSeedValid(account common.Address, secretSeed []byte) (bool, error)
IsSecretSeedValid is a free data retrieval call binding the contract method 0x67745882.
Solidity: function isSecretSeedValid(account address, secretSeed bytes) constant returns(bool)
func (*DGameCallerSession) MatchDuration ¶
func (_DGame *DGameCallerSession) MatchDuration() (*big.Int, error)
MatchDuration is a free data retrieval call binding the contract method 0x0e649a0b.
Solidity: function matchDuration() constant returns(uint256)
func (*DGameCallerSession) PublicSeed ¶
func (_DGame *DGameCallerSession) PublicSeed(secretSeed []byte) ([]byte, error)
PublicSeed is a free data retrieval call binding the contract method 0x9bf391ec.
Solidity: function publicSeed(secretSeed bytes) constant returns(bytes)
func (*DGameCallerSession) SecretSeedRating ¶
func (_DGame *DGameCallerSession) SecretSeedRating(secretSeed []byte) (uint32, error)
SecretSeedRating is a free data retrieval call binding the contract method 0x9ef7f8d4.
Solidity: function secretSeedRating(secretSeed bytes) constant returns(uint32)
type DGameFilterer ¶
type DGameFilterer struct {
// contains filtered or unexported fields
}
DGameFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewDGameFilterer ¶
func NewDGameFilterer(address common.Address, filterer bind.ContractFilterer) (*DGameFilterer, error)
NewDGameFilterer creates a new log filterer instance of DGame, bound to a specific deployed contract.
type DGameRaw ¶
type DGameRaw struct {
Contract *DGame // Generic contract binding to access the raw methods on
}
DGameRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*DGameRaw) Call ¶
func (_DGame *DGameRaw) 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 (*DGameRaw) Transact ¶
func (_DGame *DGameRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DGameRaw) Transfer ¶
func (_DGame *DGameRaw) 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 DGameSession ¶
type DGameSession struct { Contract *DGame // 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 }
DGameSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*DGameSession) IsSecretSeedValid ¶
func (_DGame *DGameSession) IsSecretSeedValid(account common.Address, secretSeed []byte) (bool, error)
IsSecretSeedValid is a free data retrieval call binding the contract method 0x67745882.
Solidity: function isSecretSeedValid(account address, secretSeed bytes) constant returns(bool)
func (*DGameSession) MatchDuration ¶
func (_DGame *DGameSession) MatchDuration() (*big.Int, error)
MatchDuration is a free data retrieval call binding the contract method 0x0e649a0b.
Solidity: function matchDuration() constant returns(uint256)
func (*DGameSession) PublicSeed ¶
func (_DGame *DGameSession) PublicSeed(secretSeed []byte) ([]byte, error)
PublicSeed is a free data retrieval call binding the contract method 0x9bf391ec.
Solidity: function publicSeed(secretSeed bytes) constant returns(bytes)
func (*DGameSession) SecretSeedRating ¶
func (_DGame *DGameSession) SecretSeedRating(secretSeed []byte) (uint32, error)
SecretSeedRating is a free data retrieval call binding the contract method 0x9ef7f8d4.
Solidity: function secretSeedRating(secretSeed bytes) constant returns(uint32)
type DGameTransactor ¶
type DGameTransactor struct {
// contains filtered or unexported fields
}
DGameTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewDGameTransactor ¶
func NewDGameTransactor(address common.Address, transactor bind.ContractTransactor) (*DGameTransactor, error)
NewDGameTransactor creates a new write-only instance of DGame, bound to a specific deployed contract.
type DGameTransactorRaw ¶
type DGameTransactorRaw struct {
Contract *DGameTransactor // Generic write-only contract binding to access the raw methods on
}
DGameTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*DGameTransactorRaw) Transact ¶
func (_DGame *DGameTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DGameTransactorRaw) Transfer ¶
func (_DGame *DGameTransactorRaw) 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 DGameTransactorSession ¶
type DGameTransactorSession struct { Contract *DGameTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
DGameTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type EtherScanPriceResponse ¶
type EtherScanPriceResponse struct { Status int `json:"status,string"` Message string `json:"message"` Result *PriceResult `json:"result"` }
type IWithdrawalStartedHandler ¶
type IWithdrawalStartedHandler interface {
OnWithdrawalStarted(event *ArcadeumWithdrawalStarted)
}
type MatchVerifiedMessage ¶
type MatchVerifiedMessage struct { Accounts [2]common.Address Subkeys [2]common.Address GameAddress common.Address `json:"game"` Timestamp int64 `json:"timestamp"` PlayerIndex uint8 `json:"playerID"` Players [2]*MatchVerifiedPlayerInfo `json:"players"` MatchHash [32]byte SignatureMatchHash *crypto.Signature `json:"matchSignature"` SignatureOpponentSubkey *crypto.Signature `json:"opponentSubkeySignature"` }
type MatchVerifiedPlayerInfo ¶
type PriceResult ¶
type PriceResult struct { EthBTC float64 `json:"ethbtc,string"` // price of 1 ETH in BTC EthBTCTUnixTime int64 `json:"ethbtc_timestamp,string"` // unix time of last Eth/BTC price calculation EthUSD float64 `json:"ethusd,string"` // price of 1 ETH in USD EthUSDUnixTime int64 `json:"ethusd_timestamp,string"` // unix time of last Eth/USD price calculation }
type StakedStatus ¶
type StakedStatus int