arcadeum

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const (
	UNKNOWN                     = -1
	NOT_STAKED                  = 0
	STAKED                      = 1
	STAKED_INSUFFICIENT_BALANCE = 2 // player's stake balance is below latest calculated stake
)
View Source
const ArcadeumABI = "" /* 5622-byte string literal not displayed */

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

View Source
const ArcadeumBin = `0x`

ArcadeumBin is the compiled bytecode used for deploying new contracts.

View Source
const DGameABI = "" /* 899-byte string literal not displayed */

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

View Source
const DGameBin = `0x`

DGameBin is the compiled bytecode used for deploying new contracts.

View Source
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

func NewArcadeum(address common.Address, backend bind.ContractBackend) (*Arcadeum, error)

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

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

func (*ArcadeumBalanceChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ArcadeumBalanceChangedIterator) Next

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

type 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

func (_Arcadeum *ArcadeumCallerSession) Balance(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 (*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

func (_Arcadeum *ArcadeumCallerSession) WithdrawalTime(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 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

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

func (*ArcadeumCheaterReportedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ArcadeumCheaterReportedIterator) Next

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

type 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

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

func (*ArcadeumRewardClaimedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ArcadeumRewardClaimedIterator) Next

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

type 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

func (_Arcadeum *ArcadeumSession) Balance(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 (*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

func (_Arcadeum *ArcadeumSession) WithdrawalTime(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 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

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

func (*ArcadeumWithdrawalStartedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ArcadeumWithdrawalStartedIterator) Next

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

type 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

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

func (*ArcadeumWithdrawalStoppedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ArcadeumWithdrawalStoppedIterator) Next

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

type 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

func (c *Client) CalculateRank(gameID uint32, secretSeed []byte) (uint32, error)

Call constant function ETH contract, passing in the payload, address of requester. Use gameID to map to correct game contract.

func (*Client) DGameContract

func (c *Client) DGameContract(gameID uint32) (*DGame, error)

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) MatchDuration

func (c *Client) MatchDuration(gameID uint32) (time.Duration, error)

func (*Client) MatchHash

func (c *Client) MatchHash(msg *MatchVerifiedMessage) ([32]byte, error)

func (*Client) PriceUSDInEth

func (c *Client) PriceUSDInEth() (float64, error)

Return the price of 1 USD in ETH

func (*Client) PublicSeed

func (c *Client) PublicSeed(gameID uint32, secretSeed []byte) ([]byte, error)

func (*Client) StakeBalanceInEth

func (c *Client) StakeBalanceInEth(address common.Address) (*big.Int, error)

Calculate the balance of a given address on the Arcadeum staking contract.

func (*Client) SubKeyParent

func (c *Client) SubKeyParent(subkey common.Address, sig *crypto.Signature) (common.Address, error)

Return the address of the signer of the subkey

func (*Client) SubscribeWithdrawalStarted

func (c *Client) SubscribeWithdrawalStarted() (event.Subscription, error)

func (*Client) TimestampSubkey

func (c *Client) TimestampSubkey(timestamp int64, sig crypto.Signature) (common.Address, error)

Return the subkey that signed a given timestamp

func (*Client) VerifySignedTimestamp

func (c *Client) VerifySignedTimestamp(req *VerifyTimestampRequest, subkeySig *crypto.Signature) (common.Address, error)

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.

func NewDGame

func NewDGame(address common.Address, backend bind.ContractBackend) (*DGame, error)

NewDGame creates a new instance of DGame, bound to a specific deployed contract.

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

func (_DGame *DGameCaller) MatchDuration(opts *bind.CallOpts) (*big.Int, error)

MatchDuration is a free data retrieval call binding the contract method 0x0e649a0b.

Solidity: function matchDuration() constant returns(uint256)

func (*DGameCaller) PublicSeed

func (_DGame *DGameCaller) PublicSeed(opts *bind.CallOpts, 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 (*DGameCaller) SecretSeedRating

func (_DGame *DGameCaller) SecretSeedRating(opts *bind.CallOpts, 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 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 MatchVerifiedPlayerInfo struct {
	SeedRating         uint32            `json:"seedRating"`
	PublicSeed         []byte            `json:"publicSeed,string"`
	SignatureTimestamp *crypto.Signature `json:"timestampSignature"`
}

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

type VerifyTimestampRequest

type VerifyTimestampRequest struct {
	GameID    uint32            `json:"gameID"`
	Timestamp int64             `json:"timestamp"` // unix time
	SubKey    *common.Address   `json:"subkey,string"`
	Signature *crypto.Signature `json:"signature"` // as signed by the players private key
}

Jump to

Keyboard shortcuts

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