Documentation ¶
Index ¶
- Variables
- type PancakePredictionV2BetInfo
- type Prediction
- type PredictionBetBear
- type PredictionBetBearIterator
- type PredictionBetBull
- type PredictionBetBullIterator
- type PredictionCaller
- func (_Prediction *PredictionCaller) AdminAddress(opts *bind.CallOpts) (common.Address, error)
- func (_Prediction *PredictionCaller) BufferSeconds(opts *bind.CallOpts) (*big.Int, error)
- func (_Prediction *PredictionCaller) Claimable(opts *bind.CallOpts, epoch *big.Int, user common.Address) (bool, error)
- func (_Prediction *PredictionCaller) CurrentEpoch(opts *bind.CallOpts) (*big.Int, error)
- func (_Prediction *PredictionCaller) GenesisLockOnce(opts *bind.CallOpts) (bool, error)
- func (_Prediction *PredictionCaller) GenesisStartOnce(opts *bind.CallOpts) (bool, error)
- func (_Prediction *PredictionCaller) GetUserRounds(opts *bind.CallOpts, user common.Address, cursor *big.Int, size *big.Int) ([]*big.Int, []PancakePredictionV2BetInfo, *big.Int, error)
- func (_Prediction *PredictionCaller) GetUserRoundsLength(opts *bind.CallOpts, user common.Address) (*big.Int, error)
- func (_Prediction *PredictionCaller) IntervalSeconds(opts *bind.CallOpts) (*big.Int, error)
- func (_Prediction *PredictionCaller) Ledger(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (struct{ ... }, error)
- func (_Prediction *PredictionCaller) MAXTREASURYFEE(opts *bind.CallOpts) (*big.Int, error)
- func (_Prediction *PredictionCaller) MinBetAmount(opts *bind.CallOpts) (*big.Int, error)
- func (_Prediction *PredictionCaller) OperatorAddress(opts *bind.CallOpts) (common.Address, error)
- func (_Prediction *PredictionCaller) Oracle(opts *bind.CallOpts) (common.Address, error)
- func (_Prediction *PredictionCaller) OracleLatestRoundId(opts *bind.CallOpts) (*big.Int, error)
- func (_Prediction *PredictionCaller) OracleUpdateAllowance(opts *bind.CallOpts) (*big.Int, error)
- func (_Prediction *PredictionCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Prediction *PredictionCaller) Paused(opts *bind.CallOpts) (bool, error)
- func (_Prediction *PredictionCaller) Refundable(opts *bind.CallOpts, epoch *big.Int, user common.Address) (bool, error)
- func (_Prediction *PredictionCaller) Round(opts *bind.CallOpts, arg0 *big.Int) (*Round, error)
- func (_Prediction *PredictionCaller) Rounds(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_Prediction *PredictionCaller) TreasuryAmount(opts *bind.CallOpts) (*big.Int, error)
- func (_Prediction *PredictionCaller) TreasuryFee(opts *bind.CallOpts) (*big.Int, error)
- func (_Prediction *PredictionCaller) UserRounds(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error)
- type PredictionCallerRaw
- type PredictionCallerSession
- func (_Prediction *PredictionCallerSession) AdminAddress() (common.Address, error)
- func (_Prediction *PredictionCallerSession) BufferSeconds() (*big.Int, error)
- func (_Prediction *PredictionCallerSession) Claimable(epoch *big.Int, user common.Address) (bool, error)
- func (_Prediction *PredictionCallerSession) CurrentEpoch() (*big.Int, error)
- func (_Prediction *PredictionCallerSession) GenesisLockOnce() (bool, error)
- func (_Prediction *PredictionCallerSession) GenesisStartOnce() (bool, error)
- func (_Prediction *PredictionCallerSession) GetUserRounds(user common.Address, cursor *big.Int, size *big.Int) ([]*big.Int, []PancakePredictionV2BetInfo, *big.Int, error)
- func (_Prediction *PredictionCallerSession) GetUserRoundsLength(user common.Address) (*big.Int, error)
- func (_Prediction *PredictionCallerSession) IntervalSeconds() (*big.Int, error)
- func (_Prediction *PredictionCallerSession) Ledger(arg0 *big.Int, arg1 common.Address) (struct{ ... }, error)
- func (_Prediction *PredictionCallerSession) MAXTREASURYFEE() (*big.Int, error)
- func (_Prediction *PredictionCallerSession) MinBetAmount() (*big.Int, error)
- func (_Prediction *PredictionCallerSession) OperatorAddress() (common.Address, error)
- func (_Prediction *PredictionCallerSession) Oracle() (common.Address, error)
- func (_Prediction *PredictionCallerSession) OracleLatestRoundId() (*big.Int, error)
- func (_Prediction *PredictionCallerSession) OracleUpdateAllowance() (*big.Int, error)
- func (_Prediction *PredictionCallerSession) Owner() (common.Address, error)
- func (_Prediction *PredictionCallerSession) Paused() (bool, error)
- func (_Prediction *PredictionCallerSession) Refundable(epoch *big.Int, user common.Address) (bool, error)
- func (_Prediction *PredictionCallerSession) Rounds(arg0 *big.Int) (struct{ ... }, error)
- func (_Prediction *PredictionCallerSession) TreasuryAmount() (*big.Int, error)
- func (_Prediction *PredictionCallerSession) TreasuryFee() (*big.Int, error)
- func (_Prediction *PredictionCallerSession) UserRounds(arg0 common.Address, arg1 *big.Int) (*big.Int, error)
- type PredictionClaim
- type PredictionClaimIterator
- type PredictionEndRound
- type PredictionEndRoundIterator
- type PredictionFilterer
- func (_Prediction *PredictionFilterer) FilterBetBear(opts *bind.FilterOpts, sender []common.Address, epoch []*big.Int) (*PredictionBetBearIterator, error)
- func (_Prediction *PredictionFilterer) FilterBetBull(opts *bind.FilterOpts, sender []common.Address, epoch []*big.Int) (*PredictionBetBullIterator, error)
- func (_Prediction *PredictionFilterer) FilterClaim(opts *bind.FilterOpts, sender []common.Address, epoch []*big.Int) (*PredictionClaimIterator, error)
- func (_Prediction *PredictionFilterer) FilterEndRound(opts *bind.FilterOpts, epoch []*big.Int, roundId []*big.Int) (*PredictionEndRoundIterator, error)
- func (_Prediction *PredictionFilterer) FilterLockRound(opts *bind.FilterOpts, epoch []*big.Int, roundId []*big.Int) (*PredictionLockRoundIterator, error)
- func (_Prediction *PredictionFilterer) FilterNewAdminAddress(opts *bind.FilterOpts) (*PredictionNewAdminAddressIterator, error)
- func (_Prediction *PredictionFilterer) FilterNewBufferAndIntervalSeconds(opts *bind.FilterOpts) (*PredictionNewBufferAndIntervalSecondsIterator, error)
- func (_Prediction *PredictionFilterer) FilterNewMinBetAmount(opts *bind.FilterOpts, epoch []*big.Int) (*PredictionNewMinBetAmountIterator, error)
- func (_Prediction *PredictionFilterer) FilterNewOperatorAddress(opts *bind.FilterOpts) (*PredictionNewOperatorAddressIterator, error)
- func (_Prediction *PredictionFilterer) FilterNewOracle(opts *bind.FilterOpts) (*PredictionNewOracleIterator, error)
- func (_Prediction *PredictionFilterer) FilterNewOracleUpdateAllowance(opts *bind.FilterOpts) (*PredictionNewOracleUpdateAllowanceIterator, error)
- func (_Prediction *PredictionFilterer) FilterNewTreasuryFee(opts *bind.FilterOpts, epoch []*big.Int) (*PredictionNewTreasuryFeeIterator, error)
- func (_Prediction *PredictionFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*PredictionOwnershipTransferredIterator, error)
- func (_Prediction *PredictionFilterer) FilterPause(opts *bind.FilterOpts, epoch []*big.Int) (*PredictionPauseIterator, error)
- func (_Prediction *PredictionFilterer) FilterPaused(opts *bind.FilterOpts) (*PredictionPausedIterator, error)
- func (_Prediction *PredictionFilterer) FilterRewardsCalculated(opts *bind.FilterOpts, epoch []*big.Int) (*PredictionRewardsCalculatedIterator, error)
- func (_Prediction *PredictionFilterer) FilterStartRound(opts *bind.FilterOpts, epoch []*big.Int) (*PredictionStartRoundIterator, error)
- func (_Prediction *PredictionFilterer) FilterTokenRecovery(opts *bind.FilterOpts, token []common.Address) (*PredictionTokenRecoveryIterator, error)
- func (_Prediction *PredictionFilterer) FilterTreasuryClaim(opts *bind.FilterOpts) (*PredictionTreasuryClaimIterator, error)
- func (_Prediction *PredictionFilterer) FilterUnpause(opts *bind.FilterOpts, epoch []*big.Int) (*PredictionUnpauseIterator, error)
- func (_Prediction *PredictionFilterer) FilterUnpaused(opts *bind.FilterOpts) (*PredictionUnpausedIterator, error)
- func (_Prediction *PredictionFilterer) ParseBetBear(log types.Log) (*PredictionBetBear, error)
- func (_Prediction *PredictionFilterer) ParseBetBull(log types.Log) (*PredictionBetBull, error)
- func (_Prediction *PredictionFilterer) ParseClaim(log types.Log) (*PredictionClaim, error)
- func (_Prediction *PredictionFilterer) ParseEndRound(log types.Log) (*PredictionEndRound, error)
- func (_Prediction *PredictionFilterer) ParseLockRound(log types.Log) (*PredictionLockRound, error)
- func (_Prediction *PredictionFilterer) ParseNewAdminAddress(log types.Log) (*PredictionNewAdminAddress, error)
- func (_Prediction *PredictionFilterer) ParseNewBufferAndIntervalSeconds(log types.Log) (*PredictionNewBufferAndIntervalSeconds, error)
- func (_Prediction *PredictionFilterer) ParseNewMinBetAmount(log types.Log) (*PredictionNewMinBetAmount, error)
- func (_Prediction *PredictionFilterer) ParseNewOperatorAddress(log types.Log) (*PredictionNewOperatorAddress, error)
- func (_Prediction *PredictionFilterer) ParseNewOracle(log types.Log) (*PredictionNewOracle, error)
- func (_Prediction *PredictionFilterer) ParseNewOracleUpdateAllowance(log types.Log) (*PredictionNewOracleUpdateAllowance, error)
- func (_Prediction *PredictionFilterer) ParseNewTreasuryFee(log types.Log) (*PredictionNewTreasuryFee, error)
- func (_Prediction *PredictionFilterer) ParseOwnershipTransferred(log types.Log) (*PredictionOwnershipTransferred, error)
- func (_Prediction *PredictionFilterer) ParsePause(log types.Log) (*PredictionPause, error)
- func (_Prediction *PredictionFilterer) ParsePaused(log types.Log) (*PredictionPaused, error)
- func (_Prediction *PredictionFilterer) ParseRewardsCalculated(log types.Log) (*PredictionRewardsCalculated, error)
- func (_Prediction *PredictionFilterer) ParseStartRound(log types.Log) (*PredictionStartRound, error)
- func (_Prediction *PredictionFilterer) ParseTokenRecovery(log types.Log) (*PredictionTokenRecovery, error)
- func (_Prediction *PredictionFilterer) ParseTreasuryClaim(log types.Log) (*PredictionTreasuryClaim, error)
- func (_Prediction *PredictionFilterer) ParseUnpause(log types.Log) (*PredictionUnpause, error)
- func (_Prediction *PredictionFilterer) ParseUnpaused(log types.Log) (*PredictionUnpaused, error)
- func (_Prediction *PredictionFilterer) WatchBetBear(opts *bind.WatchOpts, sink chan<- *PredictionBetBear, sender []common.Address, ...) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchBetBull(opts *bind.WatchOpts, sink chan<- *PredictionBetBull, sender []common.Address, ...) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *PredictionClaim, sender []common.Address, ...) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchEndRound(opts *bind.WatchOpts, sink chan<- *PredictionEndRound, epoch []*big.Int, ...) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchLockRound(opts *bind.WatchOpts, sink chan<- *PredictionLockRound, epoch []*big.Int, ...) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchNewAdminAddress(opts *bind.WatchOpts, sink chan<- *PredictionNewAdminAddress) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchNewBufferAndIntervalSeconds(opts *bind.WatchOpts, sink chan<- *PredictionNewBufferAndIntervalSeconds) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchNewMinBetAmount(opts *bind.WatchOpts, sink chan<- *PredictionNewMinBetAmount, epoch []*big.Int) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchNewOperatorAddress(opts *bind.WatchOpts, sink chan<- *PredictionNewOperatorAddress) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchNewOracle(opts *bind.WatchOpts, sink chan<- *PredictionNewOracle) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchNewOracleUpdateAllowance(opts *bind.WatchOpts, sink chan<- *PredictionNewOracleUpdateAllowance) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchNewTreasuryFee(opts *bind.WatchOpts, sink chan<- *PredictionNewTreasuryFee, epoch []*big.Int) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PredictionOwnershipTransferred, ...) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchPause(opts *bind.WatchOpts, sink chan<- *PredictionPause, epoch []*big.Int) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *PredictionPaused) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchRewardsCalculated(opts *bind.WatchOpts, sink chan<- *PredictionRewardsCalculated, ...) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchStartRound(opts *bind.WatchOpts, sink chan<- *PredictionStartRound, epoch []*big.Int) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchTokenRecovery(opts *bind.WatchOpts, sink chan<- *PredictionTokenRecovery, ...) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchTreasuryClaim(opts *bind.WatchOpts, sink chan<- *PredictionTreasuryClaim) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchUnpause(opts *bind.WatchOpts, sink chan<- *PredictionUnpause, epoch []*big.Int) (event.Subscription, error)
- func (_Prediction *PredictionFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *PredictionUnpaused) (event.Subscription, error)
- type PredictionLockRound
- type PredictionLockRoundIterator
- type PredictionNewAdminAddress
- type PredictionNewAdminAddressIterator
- type PredictionNewBufferAndIntervalSeconds
- type PredictionNewBufferAndIntervalSecondsIterator
- type PredictionNewMinBetAmount
- type PredictionNewMinBetAmountIterator
- type PredictionNewOperatorAddress
- type PredictionNewOperatorAddressIterator
- type PredictionNewOracle
- type PredictionNewOracleIterator
- type PredictionNewOracleUpdateAllowance
- type PredictionNewOracleUpdateAllowanceIterator
- type PredictionNewTreasuryFee
- type PredictionNewTreasuryFeeIterator
- type PredictionOwnershipTransferred
- type PredictionOwnershipTransferredIterator
- type PredictionPause
- type PredictionPauseIterator
- type PredictionPaused
- type PredictionPausedIterator
- type PredictionRaw
- func (_Prediction *PredictionRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Prediction *PredictionRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Prediction *PredictionRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type PredictionRewardsCalculated
- type PredictionRewardsCalculatedIterator
- type PredictionSession
- func (_Prediction *PredictionSession) AdminAddress() (common.Address, error)
- func (_Prediction *PredictionSession) BetBear(epoch *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionSession) BetBull(epoch *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionSession) BufferSeconds() (*big.Int, error)
- func (_Prediction *PredictionSession) Claim(epochs []*big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionSession) ClaimTreasury() (*types.Transaction, error)
- func (_Prediction *PredictionSession) Claimable(epoch *big.Int, user common.Address) (bool, error)
- func (_Prediction *PredictionSession) CurrentEpoch() (*big.Int, error)
- func (_Prediction *PredictionSession) ExecuteRound() (*types.Transaction, error)
- func (_Prediction *PredictionSession) GenesisLockOnce() (bool, error)
- func (_Prediction *PredictionSession) GenesisLockRound() (*types.Transaction, error)
- func (_Prediction *PredictionSession) GenesisStartOnce() (bool, error)
- func (_Prediction *PredictionSession) GenesisStartRound() (*types.Transaction, error)
- func (_Prediction *PredictionSession) GetUserRounds(user common.Address, cursor *big.Int, size *big.Int) ([]*big.Int, []PancakePredictionV2BetInfo, *big.Int, error)
- func (_Prediction *PredictionSession) GetUserRoundsLength(user common.Address) (*big.Int, error)
- func (_Prediction *PredictionSession) IntervalSeconds() (*big.Int, error)
- func (_Prediction *PredictionSession) Ledger(arg0 *big.Int, arg1 common.Address) (struct{ ... }, error)
- func (_Prediction *PredictionSession) MAXTREASURYFEE() (*big.Int, error)
- func (_Prediction *PredictionSession) MinBetAmount() (*big.Int, error)
- func (_Prediction *PredictionSession) OperatorAddress() (common.Address, error)
- func (_Prediction *PredictionSession) Oracle() (common.Address, error)
- func (_Prediction *PredictionSession) OracleLatestRoundId() (*big.Int, error)
- func (_Prediction *PredictionSession) OracleUpdateAllowance() (*big.Int, error)
- func (_Prediction *PredictionSession) Owner() (common.Address, error)
- func (_Prediction *PredictionSession) Pause() (*types.Transaction, error)
- func (_Prediction *PredictionSession) Paused() (bool, error)
- func (_Prediction *PredictionSession) RecoverToken(_token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionSession) Refundable(epoch *big.Int, user common.Address) (bool, error)
- func (_Prediction *PredictionSession) RenounceOwnership() (*types.Transaction, error)
- func (_Prediction *PredictionSession) Rounds(arg0 *big.Int) (struct{ ... }, error)
- func (_Prediction *PredictionSession) SetAdmin(_adminAddress common.Address) (*types.Transaction, error)
- func (_Prediction *PredictionSession) SetBufferAndIntervalSeconds(_bufferSeconds *big.Int, _intervalSeconds *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionSession) SetMinBetAmount(_minBetAmount *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionSession) SetOperator(_operatorAddress common.Address) (*types.Transaction, error)
- func (_Prediction *PredictionSession) SetOracle(_oracle common.Address) (*types.Transaction, error)
- func (_Prediction *PredictionSession) SetOracleUpdateAllowance(_oracleUpdateAllowance *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionSession) SetTreasuryFee(_treasuryFee *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Prediction *PredictionSession) TreasuryAmount() (*big.Int, error)
- func (_Prediction *PredictionSession) TreasuryFee() (*big.Int, error)
- func (_Prediction *PredictionSession) Unpause() (*types.Transaction, error)
- func (_Prediction *PredictionSession) UserRounds(arg0 common.Address, arg1 *big.Int) (*big.Int, error)
- type PredictionStartRound
- type PredictionStartRoundIterator
- type PredictionTokenRecovery
- type PredictionTokenRecoveryIterator
- type PredictionTransactor
- func (_Prediction *PredictionTransactor) BetBear(opts *bind.TransactOpts, epoch *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) BetBull(opts *bind.TransactOpts, epoch *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) Claim(opts *bind.TransactOpts, epochs []*big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) ClaimTreasury(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) ExecuteRound(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) GenesisLockRound(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) GenesisStartRound(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) RecoverToken(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) SetAdmin(opts *bind.TransactOpts, _adminAddress common.Address) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) SetBufferAndIntervalSeconds(opts *bind.TransactOpts, _bufferSeconds *big.Int, _intervalSeconds *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) SetMinBetAmount(opts *bind.TransactOpts, _minBetAmount *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) SetOperator(opts *bind.TransactOpts, _operatorAddress common.Address) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) SetOracle(opts *bind.TransactOpts, _oracle common.Address) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) SetOracleUpdateAllowance(opts *bind.TransactOpts, _oracleUpdateAllowance *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) SetTreasuryFee(opts *bind.TransactOpts, _treasuryFee *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_Prediction *PredictionTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
- type PredictionTransactorRaw
- type PredictionTransactorSession
- func (_Prediction *PredictionTransactorSession) BetBear(epoch *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) BetBull(epoch *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) Claim(epochs []*big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) ClaimTreasury() (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) ExecuteRound() (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) GenesisLockRound() (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) GenesisStartRound() (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) Pause() (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) RecoverToken(_token common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) SetAdmin(_adminAddress common.Address) (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) SetBufferAndIntervalSeconds(_bufferSeconds *big.Int, _intervalSeconds *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) SetMinBetAmount(_minBetAmount *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) SetOperator(_operatorAddress common.Address) (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) SetOracle(_oracle common.Address) (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) SetOracleUpdateAllowance(_oracleUpdateAllowance *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) SetTreasuryFee(_treasuryFee *big.Int) (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Prediction *PredictionTransactorSession) Unpause() (*types.Transaction, error)
- type PredictionTreasuryClaim
- type PredictionTreasuryClaimIterator
- type PredictionUnpause
- type PredictionUnpauseIterator
- type PredictionUnpaused
- type PredictionUnpausedIterator
- type Round
Constants ¶
This section is empty.
Variables ¶
var (
AddressPrediction = common.HexToAddress("0x18b2a687610328590bc8f2e5fedde3b582a49cda")
)
var PredictionABI = PredictionMetaData.ABI
PredictionABI is the input ABI used to generate the binding from. Deprecated: Use PredictionMetaData.ABI instead.
var PredictionMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_oracleAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_adminAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_operatorAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_intervalSeconds\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_bufferSeconds\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_minBetAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_oracleUpdateAllowance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_treasuryFee\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BetBear\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BetBull\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Claim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"roundId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"price\",\"type\":\"int256\"}],\"name\":\"EndRound\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"roundId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"price\",\"type\":\"int256\"}],\"name\":\"LockRound\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"NewAdminAddress\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bufferSeconds\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"intervalSeconds\",\"type\":\"uint256\"}],\"name\":\"NewBufferAndIntervalSeconds\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minBetAmount\",\"type\":\"uint256\"}],\"name\":\"NewMinBetAmount\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"NewOperatorAddress\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"}],\"name\":\"NewOracle\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oracleUpdateAllowance\",\"type\":\"uint256\"}],\"name\":\"NewOracleUpdateAllowance\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"treasuryFee\",\"type\":\"uint256\"}],\"name\":\"NewTreasuryFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"}],\"name\":\"Pause\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardBaseCalAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"treasuryAmount\",\"type\":\"uint256\"}],\"name\":\"RewardsCalculated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"}],\"name\":\"StartRound\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TokenRecovery\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TreasuryClaim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"}],\"name\":\"Unpause\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAX_TREASURY_FEE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"}],\"name\":\"betBear\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"}],\"name\":\"betBull\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bufferSeconds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"epochs\",\"type\":\"uint256[]\"}],\"name\":\"claim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimTreasury\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"claimable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentEpoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"executeRound\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"genesisLockOnce\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"genesisLockRound\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"genesisStartOnce\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"genesisStartRound\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"cursor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"size\",\"type\":\"uint256\"}],\"name\":\"getUserRounds\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"components\":[{\"internalType\":\"enumPancakePredictionV2.Position\",\"name\":\"position\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"claimed\",\"type\":\"bool\"}],\"internalType\":\"structPancakePredictionV2.BetInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getUserRoundsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"intervalSeconds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"ledger\",\"outputs\":[{\"internalType\":\"enumPancakePredictionV2.Position\",\"name\":\"position\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"claimed\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minBetAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"operatorAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"oracle\",\"outputs\":[{\"internalType\":\"contractAggregatorV3Interface\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"oracleLatestRoundId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"oracleUpdateAllowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"recoverToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"refundable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"rounds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lockTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"closeTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"lockPrice\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"closePrice\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"lockOracleId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"closeOracleId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bullAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bearAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardBaseCalAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardAmount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"oracleCalled\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_adminAddress\",\"type\":\"address\"}],\"name\":\"setAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_bufferSeconds\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_intervalSeconds\",\"type\":\"uint256\"}],\"name\":\"setBufferAndIntervalSeconds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_minBetAmount\",\"type\":\"uint256\"}],\"name\":\"setMinBetAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_operatorAddress\",\"type\":\"address\"}],\"name\":\"setOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_oracle\",\"type\":\"address\"}],\"name\":\"setOracle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_oracleUpdateAllowance\",\"type\":\"uint256\"}],\"name\":\"setOracleUpdateAllowance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_treasuryFee\",\"type\":\"uint256\"}],\"name\":\"setTreasuryFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"treasuryAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"treasuryFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"userRounds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
PredictionMetaData contains all meta data concerning the Prediction contract.
Functions ¶
This section is empty.
Types ¶
type PancakePredictionV2BetInfo ¶
PancakePredictionV2BetInfo is an auto generated low-level Go binding around an user-defined struct.
type Prediction ¶
type Prediction struct { PredictionCaller // Read-only binding to the contract PredictionTransactor // Write-only binding to the contract PredictionFilterer // Log filterer for contract events }
Prediction is an auto generated Go binding around an Ethereum contract.
func NewPrediction ¶
func NewPrediction(address common.Address, backend bind.ContractBackend) (*Prediction, error)
NewPrediction creates a new instance of Prediction, bound to a specific deployed contract.
type PredictionBetBear ¶
type PredictionBetBear struct { Sender common.Address Epoch *big.Int Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionBetBear represents a BetBear event raised by the Prediction contract.
type PredictionBetBearIterator ¶
type PredictionBetBearIterator struct { Event *PredictionBetBear // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionBetBearIterator is returned from FilterBetBear and is used to iterate over the raw logs and unpacked data for BetBear events raised by the Prediction contract.
func (*PredictionBetBearIterator) Close ¶
func (it *PredictionBetBearIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionBetBearIterator) Error ¶
func (it *PredictionBetBearIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionBetBearIterator) Next ¶
func (it *PredictionBetBearIterator) 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 PredictionBetBull ¶
type PredictionBetBull struct { Sender common.Address Epoch *big.Int Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionBetBull represents a BetBull event raised by the Prediction contract.
type PredictionBetBullIterator ¶
type PredictionBetBullIterator struct { Event *PredictionBetBull // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionBetBullIterator is returned from FilterBetBull and is used to iterate over the raw logs and unpacked data for BetBull events raised by the Prediction contract.
func (*PredictionBetBullIterator) Close ¶
func (it *PredictionBetBullIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionBetBullIterator) Error ¶
func (it *PredictionBetBullIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionBetBullIterator) Next ¶
func (it *PredictionBetBullIterator) 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 PredictionCaller ¶
type PredictionCaller struct {
// contains filtered or unexported fields
}
PredictionCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPredictionCaller ¶
func NewPredictionCaller(address common.Address, caller bind.ContractCaller) (*PredictionCaller, error)
NewPredictionCaller creates a new read-only instance of Prediction, bound to a specific deployed contract.
func (*PredictionCaller) AdminAddress ¶
AdminAddress is a free data retrieval call binding the contract method 0xfc6f9468.
Solidity: function adminAddress() view returns(address)
func (*PredictionCaller) BufferSeconds ¶
BufferSeconds is a free data retrieval call binding the contract method 0xeaba2361.
Solidity: function bufferSeconds() view returns(uint256)
func (*PredictionCaller) Claimable ¶
func (_Prediction *PredictionCaller) Claimable(opts *bind.CallOpts, epoch *big.Int, user common.Address) (bool, error)
Claimable is a free data retrieval call binding the contract method 0xa0c7f71c.
Solidity: function claimable(uint256 epoch, address user) view returns(bool)
func (*PredictionCaller) CurrentEpoch ¶
CurrentEpoch is a free data retrieval call binding the contract method 0x76671808.
Solidity: function currentEpoch() view returns(uint256)
func (*PredictionCaller) GenesisLockOnce ¶
func (_Prediction *PredictionCaller) GenesisLockOnce(opts *bind.CallOpts) (bool, error)
GenesisLockOnce is a free data retrieval call binding the contract method 0x0f74174f.
Solidity: function genesisLockOnce() view returns(bool)
func (*PredictionCaller) GenesisStartOnce ¶
func (_Prediction *PredictionCaller) GenesisStartOnce(opts *bind.CallOpts) (bool, error)
GenesisStartOnce is a free data retrieval call binding the contract method 0xf7fdec28.
Solidity: function genesisStartOnce() view returns(bool)
func (*PredictionCaller) GetUserRounds ¶
func (_Prediction *PredictionCaller) GetUserRounds(opts *bind.CallOpts, user common.Address, cursor *big.Int, size *big.Int) ([]*big.Int, []PancakePredictionV2BetInfo, *big.Int, error)
GetUserRounds is a free data retrieval call binding the contract method 0x951fd600.
Solidity: function getUserRounds(address user, uint256 cursor, uint256 size) view returns(uint256[], (uint8,uint256,bool)[], uint256)
func (*PredictionCaller) GetUserRoundsLength ¶
func (_Prediction *PredictionCaller) GetUserRoundsLength(opts *bind.CallOpts, user common.Address) (*big.Int, error)
GetUserRoundsLength is a free data retrieval call binding the contract method 0x273867d4.
Solidity: function getUserRoundsLength(address user) view returns(uint256)
func (*PredictionCaller) IntervalSeconds ¶
IntervalSeconds is a free data retrieval call binding the contract method 0x7d1cd04f.
Solidity: function intervalSeconds() view returns(uint256)
func (*PredictionCaller) Ledger ¶
func (_Prediction *PredictionCaller) Ledger(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (struct { Position uint8 Amount *big.Int Claimed bool }, error)
Ledger is a free data retrieval call binding the contract method 0x7285c58b.
Solidity: function ledger(uint256 , address ) view returns(uint8 position, uint256 amount, bool claimed)
func (*PredictionCaller) MAXTREASURYFEE ¶
MAXTREASURYFEE is a free data retrieval call binding the contract method 0xf2b3c809.
Solidity: function MAX_TREASURY_FEE() view returns(uint256)
func (*PredictionCaller) MinBetAmount ¶
MinBetAmount is a free data retrieval call binding the contract method 0xfa968eea.
Solidity: function minBetAmount() view returns(uint256)
func (*PredictionCaller) OperatorAddress ¶
OperatorAddress is a free data retrieval call binding the contract method 0x127effb2.
Solidity: function operatorAddress() view returns(address)
func (*PredictionCaller) Oracle ¶
Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.
Solidity: function oracle() view returns(address)
func (*PredictionCaller) OracleLatestRoundId ¶
OracleLatestRoundId is a free data retrieval call binding the contract method 0xec324703.
Solidity: function oracleLatestRoundId() view returns(uint256)
func (*PredictionCaller) OracleUpdateAllowance ¶
OracleUpdateAllowance is a free data retrieval call binding the contract method 0x60554011.
Solidity: function oracleUpdateAllowance() view returns(uint256)
func (*PredictionCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*PredictionCaller) Paused ¶
func (_Prediction *PredictionCaller) Paused(opts *bind.CallOpts) (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*PredictionCaller) Refundable ¶
func (_Prediction *PredictionCaller) Refundable(opts *bind.CallOpts, epoch *big.Int, user common.Address) (bool, error)
Refundable is a free data retrieval call binding the contract method 0x7bf41254.
Solidity: function refundable(uint256 epoch, address user) view returns(bool)
func (*PredictionCaller) Rounds ¶
func (_Prediction *PredictionCaller) Rounds(opts *bind.CallOpts, arg0 *big.Int) (struct { Epoch *big.Int StartTimestamp *big.Int LockTimestamp *big.Int CloseTimestamp *big.Int LockPrice *big.Int ClosePrice *big.Int LockOracleId *big.Int CloseOracleId *big.Int TotalAmount *big.Int BullAmount *big.Int BearAmount *big.Int RewardBaseCalAmount *big.Int RewardAmount *big.Int OracleCalled bool }, error)
Rounds is a free data retrieval call binding the contract method 0x8c65c81f.
Solidity: function rounds(uint256 ) view returns(uint256 epoch, uint256 startTimestamp, uint256 lockTimestamp, uint256 closeTimestamp, int256 lockPrice, int256 closePrice, uint256 lockOracleId, uint256 closeOracleId, uint256 totalAmount, uint256 bullAmount, uint256 bearAmount, uint256 rewardBaseCalAmount, uint256 rewardAmount, bool oracleCalled)
func (*PredictionCaller) TreasuryAmount ¶
TreasuryAmount is a free data retrieval call binding the contract method 0x368acb09.
Solidity: function treasuryAmount() view returns(uint256)
func (*PredictionCaller) TreasuryFee ¶
TreasuryFee is a free data retrieval call binding the contract method 0xcc32d176.
Solidity: function treasuryFee() view returns(uint256)
func (*PredictionCaller) UserRounds ¶
func (_Prediction *PredictionCaller) UserRounds(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error)
UserRounds is a free data retrieval call binding the contract method 0xdd1f7596.
Solidity: function userRounds(address , uint256 ) view returns(uint256)
type PredictionCallerRaw ¶
type PredictionCallerRaw struct {
Contract *PredictionCaller // Generic read-only contract binding to access the raw methods on
}
PredictionCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*PredictionCallerRaw) Call ¶
func (_Prediction *PredictionCallerRaw) 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 PredictionCallerSession ¶
type PredictionCallerSession struct { Contract *PredictionCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
PredictionCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*PredictionCallerSession) AdminAddress ¶
func (_Prediction *PredictionCallerSession) AdminAddress() (common.Address, error)
AdminAddress is a free data retrieval call binding the contract method 0xfc6f9468.
Solidity: function adminAddress() view returns(address)
func (*PredictionCallerSession) BufferSeconds ¶
func (_Prediction *PredictionCallerSession) BufferSeconds() (*big.Int, error)
BufferSeconds is a free data retrieval call binding the contract method 0xeaba2361.
Solidity: function bufferSeconds() view returns(uint256)
func (*PredictionCallerSession) Claimable ¶
func (_Prediction *PredictionCallerSession) Claimable(epoch *big.Int, user common.Address) (bool, error)
Claimable is a free data retrieval call binding the contract method 0xa0c7f71c.
Solidity: function claimable(uint256 epoch, address user) view returns(bool)
func (*PredictionCallerSession) CurrentEpoch ¶
func (_Prediction *PredictionCallerSession) CurrentEpoch() (*big.Int, error)
CurrentEpoch is a free data retrieval call binding the contract method 0x76671808.
Solidity: function currentEpoch() view returns(uint256)
func (*PredictionCallerSession) GenesisLockOnce ¶
func (_Prediction *PredictionCallerSession) GenesisLockOnce() (bool, error)
GenesisLockOnce is a free data retrieval call binding the contract method 0x0f74174f.
Solidity: function genesisLockOnce() view returns(bool)
func (*PredictionCallerSession) GenesisStartOnce ¶
func (_Prediction *PredictionCallerSession) GenesisStartOnce() (bool, error)
GenesisStartOnce is a free data retrieval call binding the contract method 0xf7fdec28.
Solidity: function genesisStartOnce() view returns(bool)
func (*PredictionCallerSession) GetUserRounds ¶
func (_Prediction *PredictionCallerSession) GetUserRounds(user common.Address, cursor *big.Int, size *big.Int) ([]*big.Int, []PancakePredictionV2BetInfo, *big.Int, error)
GetUserRounds is a free data retrieval call binding the contract method 0x951fd600.
Solidity: function getUserRounds(address user, uint256 cursor, uint256 size) view returns(uint256[], (uint8,uint256,bool)[], uint256)
func (*PredictionCallerSession) GetUserRoundsLength ¶
func (_Prediction *PredictionCallerSession) GetUserRoundsLength(user common.Address) (*big.Int, error)
GetUserRoundsLength is a free data retrieval call binding the contract method 0x273867d4.
Solidity: function getUserRoundsLength(address user) view returns(uint256)
func (*PredictionCallerSession) IntervalSeconds ¶
func (_Prediction *PredictionCallerSession) IntervalSeconds() (*big.Int, error)
IntervalSeconds is a free data retrieval call binding the contract method 0x7d1cd04f.
Solidity: function intervalSeconds() view returns(uint256)
func (*PredictionCallerSession) Ledger ¶
func (_Prediction *PredictionCallerSession) Ledger(arg0 *big.Int, arg1 common.Address) (struct { Position uint8 Amount *big.Int Claimed bool }, error)
Ledger is a free data retrieval call binding the contract method 0x7285c58b.
Solidity: function ledger(uint256 , address ) view returns(uint8 position, uint256 amount, bool claimed)
func (*PredictionCallerSession) MAXTREASURYFEE ¶
func (_Prediction *PredictionCallerSession) MAXTREASURYFEE() (*big.Int, error)
MAXTREASURYFEE is a free data retrieval call binding the contract method 0xf2b3c809.
Solidity: function MAX_TREASURY_FEE() view returns(uint256)
func (*PredictionCallerSession) MinBetAmount ¶
func (_Prediction *PredictionCallerSession) MinBetAmount() (*big.Int, error)
MinBetAmount is a free data retrieval call binding the contract method 0xfa968eea.
Solidity: function minBetAmount() view returns(uint256)
func (*PredictionCallerSession) OperatorAddress ¶
func (_Prediction *PredictionCallerSession) OperatorAddress() (common.Address, error)
OperatorAddress is a free data retrieval call binding the contract method 0x127effb2.
Solidity: function operatorAddress() view returns(address)
func (*PredictionCallerSession) Oracle ¶
func (_Prediction *PredictionCallerSession) Oracle() (common.Address, error)
Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.
Solidity: function oracle() view returns(address)
func (*PredictionCallerSession) OracleLatestRoundId ¶
func (_Prediction *PredictionCallerSession) OracleLatestRoundId() (*big.Int, error)
OracleLatestRoundId is a free data retrieval call binding the contract method 0xec324703.
Solidity: function oracleLatestRoundId() view returns(uint256)
func (*PredictionCallerSession) OracleUpdateAllowance ¶
func (_Prediction *PredictionCallerSession) OracleUpdateAllowance() (*big.Int, error)
OracleUpdateAllowance is a free data retrieval call binding the contract method 0x60554011.
Solidity: function oracleUpdateAllowance() view returns(uint256)
func (*PredictionCallerSession) Owner ¶
func (_Prediction *PredictionCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*PredictionCallerSession) Paused ¶
func (_Prediction *PredictionCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*PredictionCallerSession) Refundable ¶
func (_Prediction *PredictionCallerSession) Refundable(epoch *big.Int, user common.Address) (bool, error)
Refundable is a free data retrieval call binding the contract method 0x7bf41254.
Solidity: function refundable(uint256 epoch, address user) view returns(bool)
func (*PredictionCallerSession) Rounds ¶
func (_Prediction *PredictionCallerSession) Rounds(arg0 *big.Int) (struct { Epoch *big.Int StartTimestamp *big.Int LockTimestamp *big.Int CloseTimestamp *big.Int LockPrice *big.Int ClosePrice *big.Int LockOracleId *big.Int CloseOracleId *big.Int TotalAmount *big.Int BullAmount *big.Int BearAmount *big.Int RewardBaseCalAmount *big.Int RewardAmount *big.Int OracleCalled bool }, error)
Rounds is a free data retrieval call binding the contract method 0x8c65c81f.
Solidity: function rounds(uint256 ) view returns(uint256 epoch, uint256 startTimestamp, uint256 lockTimestamp, uint256 closeTimestamp, int256 lockPrice, int256 closePrice, uint256 lockOracleId, uint256 closeOracleId, uint256 totalAmount, uint256 bullAmount, uint256 bearAmount, uint256 rewardBaseCalAmount, uint256 rewardAmount, bool oracleCalled)
func (*PredictionCallerSession) TreasuryAmount ¶
func (_Prediction *PredictionCallerSession) TreasuryAmount() (*big.Int, error)
TreasuryAmount is a free data retrieval call binding the contract method 0x368acb09.
Solidity: function treasuryAmount() view returns(uint256)
func (*PredictionCallerSession) TreasuryFee ¶
func (_Prediction *PredictionCallerSession) TreasuryFee() (*big.Int, error)
TreasuryFee is a free data retrieval call binding the contract method 0xcc32d176.
Solidity: function treasuryFee() view returns(uint256)
func (*PredictionCallerSession) UserRounds ¶
func (_Prediction *PredictionCallerSession) UserRounds(arg0 common.Address, arg1 *big.Int) (*big.Int, error)
UserRounds is a free data retrieval call binding the contract method 0xdd1f7596.
Solidity: function userRounds(address , uint256 ) view returns(uint256)
type PredictionClaim ¶
type PredictionClaim struct { Sender common.Address Epoch *big.Int Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionClaim represents a Claim event raised by the Prediction contract.
type PredictionClaimIterator ¶
type PredictionClaimIterator struct { Event *PredictionClaim // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionClaimIterator is returned from FilterClaim and is used to iterate over the raw logs and unpacked data for Claim events raised by the Prediction contract.
func (*PredictionClaimIterator) Close ¶
func (it *PredictionClaimIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionClaimIterator) Error ¶
func (it *PredictionClaimIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionClaimIterator) Next ¶
func (it *PredictionClaimIterator) 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 PredictionEndRound ¶
type PredictionEndRound struct { Epoch *big.Int RoundId *big.Int Price *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionEndRound represents a EndRound event raised by the Prediction contract.
type PredictionEndRoundIterator ¶
type PredictionEndRoundIterator struct { Event *PredictionEndRound // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionEndRoundIterator is returned from FilterEndRound and is used to iterate over the raw logs and unpacked data for EndRound events raised by the Prediction contract.
func (*PredictionEndRoundIterator) Close ¶
func (it *PredictionEndRoundIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionEndRoundIterator) Error ¶
func (it *PredictionEndRoundIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionEndRoundIterator) Next ¶
func (it *PredictionEndRoundIterator) 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 PredictionFilterer ¶
type PredictionFilterer struct {
// contains filtered or unexported fields
}
PredictionFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPredictionFilterer ¶
func NewPredictionFilterer(address common.Address, filterer bind.ContractFilterer) (*PredictionFilterer, error)
NewPredictionFilterer creates a new log filterer instance of Prediction, bound to a specific deployed contract.
func (*PredictionFilterer) FilterBetBear ¶
func (_Prediction *PredictionFilterer) FilterBetBear(opts *bind.FilterOpts, sender []common.Address, epoch []*big.Int) (*PredictionBetBearIterator, error)
FilterBetBear is a free log retrieval operation binding the contract event 0x0d8c1fe3e67ab767116a81f122b83c2557a8c2564019cb7c4f83de1aeb1f1f0d.
Solidity: event BetBear(address indexed sender, uint256 indexed epoch, uint256 amount)
func (*PredictionFilterer) FilterBetBull ¶
func (_Prediction *PredictionFilterer) FilterBetBull(opts *bind.FilterOpts, sender []common.Address, epoch []*big.Int) (*PredictionBetBullIterator, error)
FilterBetBull is a free log retrieval operation binding the contract event 0x438122d8cff518d18388099a5181f0d17a12b4f1b55faedf6e4a6acee0060c12.
Solidity: event BetBull(address indexed sender, uint256 indexed epoch, uint256 amount)
func (*PredictionFilterer) FilterClaim ¶
func (_Prediction *PredictionFilterer) FilterClaim(opts *bind.FilterOpts, sender []common.Address, epoch []*big.Int) (*PredictionClaimIterator, error)
FilterClaim is a free log retrieval operation binding the contract event 0x34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf7.
Solidity: event Claim(address indexed sender, uint256 indexed epoch, uint256 amount)
func (*PredictionFilterer) FilterEndRound ¶
func (_Prediction *PredictionFilterer) FilterEndRound(opts *bind.FilterOpts, epoch []*big.Int, roundId []*big.Int) (*PredictionEndRoundIterator, error)
FilterEndRound is a free log retrieval operation binding the contract event 0xb6ff1fe915db84788cbbbc017f0d2bef9485fad9fd0bd8ce9340fde0d8410dd8.
Solidity: event EndRound(uint256 indexed epoch, uint256 indexed roundId, int256 price)
func (*PredictionFilterer) FilterLockRound ¶
func (_Prediction *PredictionFilterer) FilterLockRound(opts *bind.FilterOpts, epoch []*big.Int, roundId []*big.Int) (*PredictionLockRoundIterator, error)
FilterLockRound is a free log retrieval operation binding the contract event 0x482e76a65b448a42deef26e99e58fb20c85e26f075defff8df6aa80459b39006.
Solidity: event LockRound(uint256 indexed epoch, uint256 indexed roundId, int256 price)
func (*PredictionFilterer) FilterNewAdminAddress ¶
func (_Prediction *PredictionFilterer) FilterNewAdminAddress(opts *bind.FilterOpts) (*PredictionNewAdminAddressIterator, error)
FilterNewAdminAddress is a free log retrieval operation binding the contract event 0x137b621413925496477d46e5055ac0d56178bdd724ba8bf843afceef18268ba3.
Solidity: event NewAdminAddress(address admin)
func (*PredictionFilterer) FilterNewBufferAndIntervalSeconds ¶
func (_Prediction *PredictionFilterer) FilterNewBufferAndIntervalSeconds(opts *bind.FilterOpts) (*PredictionNewBufferAndIntervalSecondsIterator, error)
FilterNewBufferAndIntervalSeconds is a free log retrieval operation binding the contract event 0xe60149e0431fec12df63dfab5fce2a9cefe9a4d3df5f41cb626f579ae1f2b91a.
Solidity: event NewBufferAndIntervalSeconds(uint256 bufferSeconds, uint256 intervalSeconds)
func (*PredictionFilterer) FilterNewMinBetAmount ¶
func (_Prediction *PredictionFilterer) FilterNewMinBetAmount(opts *bind.FilterOpts, epoch []*big.Int) (*PredictionNewMinBetAmountIterator, error)
FilterNewMinBetAmount is a free log retrieval operation binding the contract event 0x90eb87c560a0213754ceb3a7fa3012f01acab0a35602c1e1995adf69dabc9d50.
Solidity: event NewMinBetAmount(uint256 indexed epoch, uint256 minBetAmount)
func (*PredictionFilterer) FilterNewOperatorAddress ¶
func (_Prediction *PredictionFilterer) FilterNewOperatorAddress(opts *bind.FilterOpts) (*PredictionNewOperatorAddressIterator, error)
FilterNewOperatorAddress is a free log retrieval operation binding the contract event 0xc47d127c07bdd56c5ccba00463ce3bd3c1bca71b4670eea6e5d0c02e4aa156e2.
Solidity: event NewOperatorAddress(address operator)
func (*PredictionFilterer) FilterNewOracle ¶
func (_Prediction *PredictionFilterer) FilterNewOracle(opts *bind.FilterOpts) (*PredictionNewOracleIterator, error)
FilterNewOracle is a free log retrieval operation binding the contract event 0xb3eacd0e351fafdfefdec84e1cd19679b38dbcd63ea7c2c24da17fd2bc3b3c0e.
Solidity: event NewOracle(address oracle)
func (*PredictionFilterer) FilterNewOracleUpdateAllowance ¶
func (_Prediction *PredictionFilterer) FilterNewOracleUpdateAllowance(opts *bind.FilterOpts) (*PredictionNewOracleUpdateAllowanceIterator, error)
FilterNewOracleUpdateAllowance is a free log retrieval operation binding the contract event 0x93ccaceac092ffb842c46b8718667a13a80e9058dcd0bd403d0b47215b30da07.
Solidity: event NewOracleUpdateAllowance(uint256 oracleUpdateAllowance)
func (*PredictionFilterer) FilterNewTreasuryFee ¶
func (_Prediction *PredictionFilterer) FilterNewTreasuryFee(opts *bind.FilterOpts, epoch []*big.Int) (*PredictionNewTreasuryFeeIterator, error)
FilterNewTreasuryFee is a free log retrieval operation binding the contract event 0xb1c4ee38d35556741133da7ff9b6f7ab0fa88d0406133126ff128f635490a857.
Solidity: event NewTreasuryFee(uint256 indexed epoch, uint256 treasuryFee)
func (*PredictionFilterer) FilterOwnershipTransferred ¶
func (_Prediction *PredictionFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*PredictionOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*PredictionFilterer) FilterPause ¶
func (_Prediction *PredictionFilterer) FilterPause(opts *bind.FilterOpts, epoch []*big.Int) (*PredictionPauseIterator, error)
FilterPause is a free log retrieval operation binding the contract event 0x68b095021b1f40fe513109f513c66692f0b3219aee674a69f4efc57badb8201d.
Solidity: event Pause(uint256 indexed epoch)
func (*PredictionFilterer) FilterPaused ¶
func (_Prediction *PredictionFilterer) FilterPaused(opts *bind.FilterOpts) (*PredictionPausedIterator, error)
FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*PredictionFilterer) FilterRewardsCalculated ¶
func (_Prediction *PredictionFilterer) FilterRewardsCalculated(opts *bind.FilterOpts, epoch []*big.Int) (*PredictionRewardsCalculatedIterator, error)
FilterRewardsCalculated is a free log retrieval operation binding the contract event 0x6dfdfcb09c8804d0058826cd2539f1acfbe3cb887c9be03d928035bce0f1a58d.
Solidity: event RewardsCalculated(uint256 indexed epoch, uint256 rewardBaseCalAmount, uint256 rewardAmount, uint256 treasuryAmount)
func (*PredictionFilterer) FilterStartRound ¶
func (_Prediction *PredictionFilterer) FilterStartRound(opts *bind.FilterOpts, epoch []*big.Int) (*PredictionStartRoundIterator, error)
FilterStartRound is a free log retrieval operation binding the contract event 0x939f42374aa9bf1d8d8cd56d8a9110cb040cd8dfeae44080c6fcf2645e51b452.
Solidity: event StartRound(uint256 indexed epoch)
func (*PredictionFilterer) FilterTokenRecovery ¶
func (_Prediction *PredictionFilterer) FilterTokenRecovery(opts *bind.FilterOpts, token []common.Address) (*PredictionTokenRecoveryIterator, error)
FilterTokenRecovery is a free log retrieval operation binding the contract event 0x14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e98.
Solidity: event TokenRecovery(address indexed token, uint256 amount)
func (*PredictionFilterer) FilterTreasuryClaim ¶
func (_Prediction *PredictionFilterer) FilterTreasuryClaim(opts *bind.FilterOpts) (*PredictionTreasuryClaimIterator, error)
FilterTreasuryClaim is a free log retrieval operation binding the contract event 0xb9197c6b8e21274bd1e2d9c956a88af5cfee510f630fab3f046300f88b422361.
Solidity: event TreasuryClaim(uint256 amount)
func (*PredictionFilterer) FilterUnpause ¶
func (_Prediction *PredictionFilterer) FilterUnpause(opts *bind.FilterOpts, epoch []*big.Int) (*PredictionUnpauseIterator, error)
FilterUnpause is a free log retrieval operation binding the contract event 0xaaa520fdd7d2c83061d632fa017b0432407e798818af63ea908589fceda39ab7.
Solidity: event Unpause(uint256 indexed epoch)
func (*PredictionFilterer) FilterUnpaused ¶
func (_Prediction *PredictionFilterer) FilterUnpaused(opts *bind.FilterOpts) (*PredictionUnpausedIterator, error)
FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*PredictionFilterer) ParseBetBear ¶
func (_Prediction *PredictionFilterer) ParseBetBear(log types.Log) (*PredictionBetBear, error)
ParseBetBear is a log parse operation binding the contract event 0x0d8c1fe3e67ab767116a81f122b83c2557a8c2564019cb7c4f83de1aeb1f1f0d.
Solidity: event BetBear(address indexed sender, uint256 indexed epoch, uint256 amount)
func (*PredictionFilterer) ParseBetBull ¶
func (_Prediction *PredictionFilterer) ParseBetBull(log types.Log) (*PredictionBetBull, error)
ParseBetBull is a log parse operation binding the contract event 0x438122d8cff518d18388099a5181f0d17a12b4f1b55faedf6e4a6acee0060c12.
Solidity: event BetBull(address indexed sender, uint256 indexed epoch, uint256 amount)
func (*PredictionFilterer) ParseClaim ¶
func (_Prediction *PredictionFilterer) ParseClaim(log types.Log) (*PredictionClaim, error)
ParseClaim is a log parse operation binding the contract event 0x34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf7.
Solidity: event Claim(address indexed sender, uint256 indexed epoch, uint256 amount)
func (*PredictionFilterer) ParseEndRound ¶
func (_Prediction *PredictionFilterer) ParseEndRound(log types.Log) (*PredictionEndRound, error)
ParseEndRound is a log parse operation binding the contract event 0xb6ff1fe915db84788cbbbc017f0d2bef9485fad9fd0bd8ce9340fde0d8410dd8.
Solidity: event EndRound(uint256 indexed epoch, uint256 indexed roundId, int256 price)
func (*PredictionFilterer) ParseLockRound ¶
func (_Prediction *PredictionFilterer) ParseLockRound(log types.Log) (*PredictionLockRound, error)
ParseLockRound is a log parse operation binding the contract event 0x482e76a65b448a42deef26e99e58fb20c85e26f075defff8df6aa80459b39006.
Solidity: event LockRound(uint256 indexed epoch, uint256 indexed roundId, int256 price)
func (*PredictionFilterer) ParseNewAdminAddress ¶
func (_Prediction *PredictionFilterer) ParseNewAdminAddress(log types.Log) (*PredictionNewAdminAddress, error)
ParseNewAdminAddress is a log parse operation binding the contract event 0x137b621413925496477d46e5055ac0d56178bdd724ba8bf843afceef18268ba3.
Solidity: event NewAdminAddress(address admin)
func (*PredictionFilterer) ParseNewBufferAndIntervalSeconds ¶
func (_Prediction *PredictionFilterer) ParseNewBufferAndIntervalSeconds(log types.Log) (*PredictionNewBufferAndIntervalSeconds, error)
ParseNewBufferAndIntervalSeconds is a log parse operation binding the contract event 0xe60149e0431fec12df63dfab5fce2a9cefe9a4d3df5f41cb626f579ae1f2b91a.
Solidity: event NewBufferAndIntervalSeconds(uint256 bufferSeconds, uint256 intervalSeconds)
func (*PredictionFilterer) ParseNewMinBetAmount ¶
func (_Prediction *PredictionFilterer) ParseNewMinBetAmount(log types.Log) (*PredictionNewMinBetAmount, error)
ParseNewMinBetAmount is a log parse operation binding the contract event 0x90eb87c560a0213754ceb3a7fa3012f01acab0a35602c1e1995adf69dabc9d50.
Solidity: event NewMinBetAmount(uint256 indexed epoch, uint256 minBetAmount)
func (*PredictionFilterer) ParseNewOperatorAddress ¶
func (_Prediction *PredictionFilterer) ParseNewOperatorAddress(log types.Log) (*PredictionNewOperatorAddress, error)
ParseNewOperatorAddress is a log parse operation binding the contract event 0xc47d127c07bdd56c5ccba00463ce3bd3c1bca71b4670eea6e5d0c02e4aa156e2.
Solidity: event NewOperatorAddress(address operator)
func (*PredictionFilterer) ParseNewOracle ¶
func (_Prediction *PredictionFilterer) ParseNewOracle(log types.Log) (*PredictionNewOracle, error)
ParseNewOracle is a log parse operation binding the contract event 0xb3eacd0e351fafdfefdec84e1cd19679b38dbcd63ea7c2c24da17fd2bc3b3c0e.
Solidity: event NewOracle(address oracle)
func (*PredictionFilterer) ParseNewOracleUpdateAllowance ¶
func (_Prediction *PredictionFilterer) ParseNewOracleUpdateAllowance(log types.Log) (*PredictionNewOracleUpdateAllowance, error)
ParseNewOracleUpdateAllowance is a log parse operation binding the contract event 0x93ccaceac092ffb842c46b8718667a13a80e9058dcd0bd403d0b47215b30da07.
Solidity: event NewOracleUpdateAllowance(uint256 oracleUpdateAllowance)
func (*PredictionFilterer) ParseNewTreasuryFee ¶
func (_Prediction *PredictionFilterer) ParseNewTreasuryFee(log types.Log) (*PredictionNewTreasuryFee, error)
ParseNewTreasuryFee is a log parse operation binding the contract event 0xb1c4ee38d35556741133da7ff9b6f7ab0fa88d0406133126ff128f635490a857.
Solidity: event NewTreasuryFee(uint256 indexed epoch, uint256 treasuryFee)
func (*PredictionFilterer) ParseOwnershipTransferred ¶
func (_Prediction *PredictionFilterer) ParseOwnershipTransferred(log types.Log) (*PredictionOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*PredictionFilterer) ParsePause ¶
func (_Prediction *PredictionFilterer) ParsePause(log types.Log) (*PredictionPause, error)
ParsePause is a log parse operation binding the contract event 0x68b095021b1f40fe513109f513c66692f0b3219aee674a69f4efc57badb8201d.
Solidity: event Pause(uint256 indexed epoch)
func (*PredictionFilterer) ParsePaused ¶
func (_Prediction *PredictionFilterer) ParsePaused(log types.Log) (*PredictionPaused, error)
ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*PredictionFilterer) ParseRewardsCalculated ¶
func (_Prediction *PredictionFilterer) ParseRewardsCalculated(log types.Log) (*PredictionRewardsCalculated, error)
ParseRewardsCalculated is a log parse operation binding the contract event 0x6dfdfcb09c8804d0058826cd2539f1acfbe3cb887c9be03d928035bce0f1a58d.
Solidity: event RewardsCalculated(uint256 indexed epoch, uint256 rewardBaseCalAmount, uint256 rewardAmount, uint256 treasuryAmount)
func (*PredictionFilterer) ParseStartRound ¶
func (_Prediction *PredictionFilterer) ParseStartRound(log types.Log) (*PredictionStartRound, error)
ParseStartRound is a log parse operation binding the contract event 0x939f42374aa9bf1d8d8cd56d8a9110cb040cd8dfeae44080c6fcf2645e51b452.
Solidity: event StartRound(uint256 indexed epoch)
func (*PredictionFilterer) ParseTokenRecovery ¶
func (_Prediction *PredictionFilterer) ParseTokenRecovery(log types.Log) (*PredictionTokenRecovery, error)
ParseTokenRecovery is a log parse operation binding the contract event 0x14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e98.
Solidity: event TokenRecovery(address indexed token, uint256 amount)
func (*PredictionFilterer) ParseTreasuryClaim ¶
func (_Prediction *PredictionFilterer) ParseTreasuryClaim(log types.Log) (*PredictionTreasuryClaim, error)
ParseTreasuryClaim is a log parse operation binding the contract event 0xb9197c6b8e21274bd1e2d9c956a88af5cfee510f630fab3f046300f88b422361.
Solidity: event TreasuryClaim(uint256 amount)
func (*PredictionFilterer) ParseUnpause ¶
func (_Prediction *PredictionFilterer) ParseUnpause(log types.Log) (*PredictionUnpause, error)
ParseUnpause is a log parse operation binding the contract event 0xaaa520fdd7d2c83061d632fa017b0432407e798818af63ea908589fceda39ab7.
Solidity: event Unpause(uint256 indexed epoch)
func (*PredictionFilterer) ParseUnpaused ¶
func (_Prediction *PredictionFilterer) ParseUnpaused(log types.Log) (*PredictionUnpaused, error)
ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*PredictionFilterer) WatchBetBear ¶
func (_Prediction *PredictionFilterer) WatchBetBear(opts *bind.WatchOpts, sink chan<- *PredictionBetBear, sender []common.Address, epoch []*big.Int) (event.Subscription, error)
WatchBetBear is a free log subscription operation binding the contract event 0x0d8c1fe3e67ab767116a81f122b83c2557a8c2564019cb7c4f83de1aeb1f1f0d.
Solidity: event BetBear(address indexed sender, uint256 indexed epoch, uint256 amount)
func (*PredictionFilterer) WatchBetBull ¶
func (_Prediction *PredictionFilterer) WatchBetBull(opts *bind.WatchOpts, sink chan<- *PredictionBetBull, sender []common.Address, epoch []*big.Int) (event.Subscription, error)
WatchBetBull is a free log subscription operation binding the contract event 0x438122d8cff518d18388099a5181f0d17a12b4f1b55faedf6e4a6acee0060c12.
Solidity: event BetBull(address indexed sender, uint256 indexed epoch, uint256 amount)
func (*PredictionFilterer) WatchClaim ¶
func (_Prediction *PredictionFilterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *PredictionClaim, sender []common.Address, epoch []*big.Int) (event.Subscription, error)
WatchClaim is a free log subscription operation binding the contract event 0x34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf7.
Solidity: event Claim(address indexed sender, uint256 indexed epoch, uint256 amount)
func (*PredictionFilterer) WatchEndRound ¶
func (_Prediction *PredictionFilterer) WatchEndRound(opts *bind.WatchOpts, sink chan<- *PredictionEndRound, epoch []*big.Int, roundId []*big.Int) (event.Subscription, error)
WatchEndRound is a free log subscription operation binding the contract event 0xb6ff1fe915db84788cbbbc017f0d2bef9485fad9fd0bd8ce9340fde0d8410dd8.
Solidity: event EndRound(uint256 indexed epoch, uint256 indexed roundId, int256 price)
func (*PredictionFilterer) WatchLockRound ¶
func (_Prediction *PredictionFilterer) WatchLockRound(opts *bind.WatchOpts, sink chan<- *PredictionLockRound, epoch []*big.Int, roundId []*big.Int) (event.Subscription, error)
WatchLockRound is a free log subscription operation binding the contract event 0x482e76a65b448a42deef26e99e58fb20c85e26f075defff8df6aa80459b39006.
Solidity: event LockRound(uint256 indexed epoch, uint256 indexed roundId, int256 price)
func (*PredictionFilterer) WatchNewAdminAddress ¶
func (_Prediction *PredictionFilterer) WatchNewAdminAddress(opts *bind.WatchOpts, sink chan<- *PredictionNewAdminAddress) (event.Subscription, error)
WatchNewAdminAddress is a free log subscription operation binding the contract event 0x137b621413925496477d46e5055ac0d56178bdd724ba8bf843afceef18268ba3.
Solidity: event NewAdminAddress(address admin)
func (*PredictionFilterer) WatchNewBufferAndIntervalSeconds ¶
func (_Prediction *PredictionFilterer) WatchNewBufferAndIntervalSeconds(opts *bind.WatchOpts, sink chan<- *PredictionNewBufferAndIntervalSeconds) (event.Subscription, error)
WatchNewBufferAndIntervalSeconds is a free log subscription operation binding the contract event 0xe60149e0431fec12df63dfab5fce2a9cefe9a4d3df5f41cb626f579ae1f2b91a.
Solidity: event NewBufferAndIntervalSeconds(uint256 bufferSeconds, uint256 intervalSeconds)
func (*PredictionFilterer) WatchNewMinBetAmount ¶
func (_Prediction *PredictionFilterer) WatchNewMinBetAmount(opts *bind.WatchOpts, sink chan<- *PredictionNewMinBetAmount, epoch []*big.Int) (event.Subscription, error)
WatchNewMinBetAmount is a free log subscription operation binding the contract event 0x90eb87c560a0213754ceb3a7fa3012f01acab0a35602c1e1995adf69dabc9d50.
Solidity: event NewMinBetAmount(uint256 indexed epoch, uint256 minBetAmount)
func (*PredictionFilterer) WatchNewOperatorAddress ¶
func (_Prediction *PredictionFilterer) WatchNewOperatorAddress(opts *bind.WatchOpts, sink chan<- *PredictionNewOperatorAddress) (event.Subscription, error)
WatchNewOperatorAddress is a free log subscription operation binding the contract event 0xc47d127c07bdd56c5ccba00463ce3bd3c1bca71b4670eea6e5d0c02e4aa156e2.
Solidity: event NewOperatorAddress(address operator)
func (*PredictionFilterer) WatchNewOracle ¶
func (_Prediction *PredictionFilterer) WatchNewOracle(opts *bind.WatchOpts, sink chan<- *PredictionNewOracle) (event.Subscription, error)
WatchNewOracle is a free log subscription operation binding the contract event 0xb3eacd0e351fafdfefdec84e1cd19679b38dbcd63ea7c2c24da17fd2bc3b3c0e.
Solidity: event NewOracle(address oracle)
func (*PredictionFilterer) WatchNewOracleUpdateAllowance ¶
func (_Prediction *PredictionFilterer) WatchNewOracleUpdateAllowance(opts *bind.WatchOpts, sink chan<- *PredictionNewOracleUpdateAllowance) (event.Subscription, error)
WatchNewOracleUpdateAllowance is a free log subscription operation binding the contract event 0x93ccaceac092ffb842c46b8718667a13a80e9058dcd0bd403d0b47215b30da07.
Solidity: event NewOracleUpdateAllowance(uint256 oracleUpdateAllowance)
func (*PredictionFilterer) WatchNewTreasuryFee ¶
func (_Prediction *PredictionFilterer) WatchNewTreasuryFee(opts *bind.WatchOpts, sink chan<- *PredictionNewTreasuryFee, epoch []*big.Int) (event.Subscription, error)
WatchNewTreasuryFee is a free log subscription operation binding the contract event 0xb1c4ee38d35556741133da7ff9b6f7ab0fa88d0406133126ff128f635490a857.
Solidity: event NewTreasuryFee(uint256 indexed epoch, uint256 treasuryFee)
func (*PredictionFilterer) WatchOwnershipTransferred ¶
func (_Prediction *PredictionFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PredictionOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*PredictionFilterer) WatchPause ¶
func (_Prediction *PredictionFilterer) WatchPause(opts *bind.WatchOpts, sink chan<- *PredictionPause, epoch []*big.Int) (event.Subscription, error)
WatchPause is a free log subscription operation binding the contract event 0x68b095021b1f40fe513109f513c66692f0b3219aee674a69f4efc57badb8201d.
Solidity: event Pause(uint256 indexed epoch)
func (*PredictionFilterer) WatchPaused ¶
func (_Prediction *PredictionFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *PredictionPaused) (event.Subscription, error)
WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*PredictionFilterer) WatchRewardsCalculated ¶
func (_Prediction *PredictionFilterer) WatchRewardsCalculated(opts *bind.WatchOpts, sink chan<- *PredictionRewardsCalculated, epoch []*big.Int) (event.Subscription, error)
WatchRewardsCalculated is a free log subscription operation binding the contract event 0x6dfdfcb09c8804d0058826cd2539f1acfbe3cb887c9be03d928035bce0f1a58d.
Solidity: event RewardsCalculated(uint256 indexed epoch, uint256 rewardBaseCalAmount, uint256 rewardAmount, uint256 treasuryAmount)
func (*PredictionFilterer) WatchStartRound ¶
func (_Prediction *PredictionFilterer) WatchStartRound(opts *bind.WatchOpts, sink chan<- *PredictionStartRound, epoch []*big.Int) (event.Subscription, error)
WatchStartRound is a free log subscription operation binding the contract event 0x939f42374aa9bf1d8d8cd56d8a9110cb040cd8dfeae44080c6fcf2645e51b452.
Solidity: event StartRound(uint256 indexed epoch)
func (*PredictionFilterer) WatchTokenRecovery ¶
func (_Prediction *PredictionFilterer) WatchTokenRecovery(opts *bind.WatchOpts, sink chan<- *PredictionTokenRecovery, token []common.Address) (event.Subscription, error)
WatchTokenRecovery is a free log subscription operation binding the contract event 0x14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e98.
Solidity: event TokenRecovery(address indexed token, uint256 amount)
func (*PredictionFilterer) WatchTreasuryClaim ¶
func (_Prediction *PredictionFilterer) WatchTreasuryClaim(opts *bind.WatchOpts, sink chan<- *PredictionTreasuryClaim) (event.Subscription, error)
WatchTreasuryClaim is a free log subscription operation binding the contract event 0xb9197c6b8e21274bd1e2d9c956a88af5cfee510f630fab3f046300f88b422361.
Solidity: event TreasuryClaim(uint256 amount)
func (*PredictionFilterer) WatchUnpause ¶
func (_Prediction *PredictionFilterer) WatchUnpause(opts *bind.WatchOpts, sink chan<- *PredictionUnpause, epoch []*big.Int) (event.Subscription, error)
WatchUnpause is a free log subscription operation binding the contract event 0xaaa520fdd7d2c83061d632fa017b0432407e798818af63ea908589fceda39ab7.
Solidity: event Unpause(uint256 indexed epoch)
func (*PredictionFilterer) WatchUnpaused ¶
func (_Prediction *PredictionFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *PredictionUnpaused) (event.Subscription, error)
WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
type PredictionLockRound ¶
type PredictionLockRound struct { Epoch *big.Int RoundId *big.Int Price *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionLockRound represents a LockRound event raised by the Prediction contract.
type PredictionLockRoundIterator ¶
type PredictionLockRoundIterator struct { Event *PredictionLockRound // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionLockRoundIterator is returned from FilterLockRound and is used to iterate over the raw logs and unpacked data for LockRound events raised by the Prediction contract.
func (*PredictionLockRoundIterator) Close ¶
func (it *PredictionLockRoundIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionLockRoundIterator) Error ¶
func (it *PredictionLockRoundIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionLockRoundIterator) Next ¶
func (it *PredictionLockRoundIterator) 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 PredictionNewAdminAddress ¶
type PredictionNewAdminAddress struct { Admin common.Address Raw types.Log // Blockchain specific contextual infos }
PredictionNewAdminAddress represents a NewAdminAddress event raised by the Prediction contract.
type PredictionNewAdminAddressIterator ¶
type PredictionNewAdminAddressIterator struct { Event *PredictionNewAdminAddress // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionNewAdminAddressIterator is returned from FilterNewAdminAddress and is used to iterate over the raw logs and unpacked data for NewAdminAddress events raised by the Prediction contract.
func (*PredictionNewAdminAddressIterator) Close ¶
func (it *PredictionNewAdminAddressIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionNewAdminAddressIterator) Error ¶
func (it *PredictionNewAdminAddressIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionNewAdminAddressIterator) Next ¶
func (it *PredictionNewAdminAddressIterator) 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 PredictionNewBufferAndIntervalSeconds ¶
type PredictionNewBufferAndIntervalSeconds struct { BufferSeconds *big.Int IntervalSeconds *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionNewBufferAndIntervalSeconds represents a NewBufferAndIntervalSeconds event raised by the Prediction contract.
type PredictionNewBufferAndIntervalSecondsIterator ¶
type PredictionNewBufferAndIntervalSecondsIterator struct { Event *PredictionNewBufferAndIntervalSeconds // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionNewBufferAndIntervalSecondsIterator is returned from FilterNewBufferAndIntervalSeconds and is used to iterate over the raw logs and unpacked data for NewBufferAndIntervalSeconds events raised by the Prediction contract.
func (*PredictionNewBufferAndIntervalSecondsIterator) Close ¶
func (it *PredictionNewBufferAndIntervalSecondsIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionNewBufferAndIntervalSecondsIterator) Error ¶
func (it *PredictionNewBufferAndIntervalSecondsIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionNewBufferAndIntervalSecondsIterator) Next ¶
func (it *PredictionNewBufferAndIntervalSecondsIterator) 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 PredictionNewMinBetAmount ¶
type PredictionNewMinBetAmount struct { Epoch *big.Int MinBetAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionNewMinBetAmount represents a NewMinBetAmount event raised by the Prediction contract.
type PredictionNewMinBetAmountIterator ¶
type PredictionNewMinBetAmountIterator struct { Event *PredictionNewMinBetAmount // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionNewMinBetAmountIterator is returned from FilterNewMinBetAmount and is used to iterate over the raw logs and unpacked data for NewMinBetAmount events raised by the Prediction contract.
func (*PredictionNewMinBetAmountIterator) Close ¶
func (it *PredictionNewMinBetAmountIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionNewMinBetAmountIterator) Error ¶
func (it *PredictionNewMinBetAmountIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionNewMinBetAmountIterator) Next ¶
func (it *PredictionNewMinBetAmountIterator) 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 PredictionNewOperatorAddress ¶
type PredictionNewOperatorAddress struct { Operator common.Address Raw types.Log // Blockchain specific contextual infos }
PredictionNewOperatorAddress represents a NewOperatorAddress event raised by the Prediction contract.
type PredictionNewOperatorAddressIterator ¶
type PredictionNewOperatorAddressIterator struct { Event *PredictionNewOperatorAddress // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionNewOperatorAddressIterator is returned from FilterNewOperatorAddress and is used to iterate over the raw logs and unpacked data for NewOperatorAddress events raised by the Prediction contract.
func (*PredictionNewOperatorAddressIterator) Close ¶
func (it *PredictionNewOperatorAddressIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionNewOperatorAddressIterator) Error ¶
func (it *PredictionNewOperatorAddressIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionNewOperatorAddressIterator) Next ¶
func (it *PredictionNewOperatorAddressIterator) 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 PredictionNewOracle ¶
type PredictionNewOracle struct { Oracle common.Address Raw types.Log // Blockchain specific contextual infos }
PredictionNewOracle represents a NewOracle event raised by the Prediction contract.
type PredictionNewOracleIterator ¶
type PredictionNewOracleIterator struct { Event *PredictionNewOracle // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionNewOracleIterator is returned from FilterNewOracle and is used to iterate over the raw logs and unpacked data for NewOracle events raised by the Prediction contract.
func (*PredictionNewOracleIterator) Close ¶
func (it *PredictionNewOracleIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionNewOracleIterator) Error ¶
func (it *PredictionNewOracleIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionNewOracleIterator) Next ¶
func (it *PredictionNewOracleIterator) 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 PredictionNewOracleUpdateAllowance ¶
type PredictionNewOracleUpdateAllowance struct { OracleUpdateAllowance *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionNewOracleUpdateAllowance represents a NewOracleUpdateAllowance event raised by the Prediction contract.
type PredictionNewOracleUpdateAllowanceIterator ¶
type PredictionNewOracleUpdateAllowanceIterator struct { Event *PredictionNewOracleUpdateAllowance // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionNewOracleUpdateAllowanceIterator is returned from FilterNewOracleUpdateAllowance and is used to iterate over the raw logs and unpacked data for NewOracleUpdateAllowance events raised by the Prediction contract.
func (*PredictionNewOracleUpdateAllowanceIterator) Close ¶
func (it *PredictionNewOracleUpdateAllowanceIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionNewOracleUpdateAllowanceIterator) Error ¶
func (it *PredictionNewOracleUpdateAllowanceIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionNewOracleUpdateAllowanceIterator) Next ¶
func (it *PredictionNewOracleUpdateAllowanceIterator) 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 PredictionNewTreasuryFee ¶
type PredictionNewTreasuryFee struct { Epoch *big.Int TreasuryFee *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionNewTreasuryFee represents a NewTreasuryFee event raised by the Prediction contract.
type PredictionNewTreasuryFeeIterator ¶
type PredictionNewTreasuryFeeIterator struct { Event *PredictionNewTreasuryFee // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionNewTreasuryFeeIterator is returned from FilterNewTreasuryFee and is used to iterate over the raw logs and unpacked data for NewTreasuryFee events raised by the Prediction contract.
func (*PredictionNewTreasuryFeeIterator) Close ¶
func (it *PredictionNewTreasuryFeeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionNewTreasuryFeeIterator) Error ¶
func (it *PredictionNewTreasuryFeeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionNewTreasuryFeeIterator) Next ¶
func (it *PredictionNewTreasuryFeeIterator) 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 PredictionOwnershipTransferred ¶
type PredictionOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
PredictionOwnershipTransferred represents a OwnershipTransferred event raised by the Prediction contract.
type PredictionOwnershipTransferredIterator ¶
type PredictionOwnershipTransferredIterator struct { Event *PredictionOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Prediction contract.
func (*PredictionOwnershipTransferredIterator) Close ¶
func (it *PredictionOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionOwnershipTransferredIterator) Error ¶
func (it *PredictionOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionOwnershipTransferredIterator) Next ¶
func (it *PredictionOwnershipTransferredIterator) 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 PredictionPause ¶
type PredictionPause struct { Epoch *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionPause represents a Pause event raised by the Prediction contract.
type PredictionPauseIterator ¶
type PredictionPauseIterator struct { Event *PredictionPause // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionPauseIterator is returned from FilterPause and is used to iterate over the raw logs and unpacked data for Pause events raised by the Prediction contract.
func (*PredictionPauseIterator) Close ¶
func (it *PredictionPauseIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionPauseIterator) Error ¶
func (it *PredictionPauseIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionPauseIterator) Next ¶
func (it *PredictionPauseIterator) 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 PredictionPaused ¶
type PredictionPaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
PredictionPaused represents a Paused event raised by the Prediction contract.
type PredictionPausedIterator ¶
type PredictionPausedIterator struct { Event *PredictionPaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Prediction contract.
func (*PredictionPausedIterator) Close ¶
func (it *PredictionPausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionPausedIterator) Error ¶
func (it *PredictionPausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionPausedIterator) Next ¶
func (it *PredictionPausedIterator) 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 PredictionRaw ¶
type PredictionRaw struct {
Contract *Prediction // Generic contract binding to access the raw methods on
}
PredictionRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*PredictionRaw) Call ¶
func (_Prediction *PredictionRaw) 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 (*PredictionRaw) Transact ¶
func (_Prediction *PredictionRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PredictionRaw) Transfer ¶
func (_Prediction *PredictionRaw) 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 PredictionRewardsCalculated ¶
type PredictionRewardsCalculated struct { Epoch *big.Int RewardBaseCalAmount *big.Int RewardAmount *big.Int TreasuryAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionRewardsCalculated represents a RewardsCalculated event raised by the Prediction contract.
type PredictionRewardsCalculatedIterator ¶
type PredictionRewardsCalculatedIterator struct { Event *PredictionRewardsCalculated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionRewardsCalculatedIterator is returned from FilterRewardsCalculated and is used to iterate over the raw logs and unpacked data for RewardsCalculated events raised by the Prediction contract.
func (*PredictionRewardsCalculatedIterator) Close ¶
func (it *PredictionRewardsCalculatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionRewardsCalculatedIterator) Error ¶
func (it *PredictionRewardsCalculatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionRewardsCalculatedIterator) Next ¶
func (it *PredictionRewardsCalculatedIterator) 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 PredictionSession ¶
type PredictionSession struct { Contract *Prediction // 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 }
PredictionSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*PredictionSession) AdminAddress ¶
func (_Prediction *PredictionSession) AdminAddress() (common.Address, error)
AdminAddress is a free data retrieval call binding the contract method 0xfc6f9468.
Solidity: function adminAddress() view returns(address)
func (*PredictionSession) BetBear ¶
func (_Prediction *PredictionSession) BetBear(epoch *big.Int) (*types.Transaction, error)
BetBear is a paid mutator transaction binding the contract method 0xaa6b873a.
Solidity: function betBear(uint256 epoch) payable returns()
func (*PredictionSession) BetBull ¶
func (_Prediction *PredictionSession) BetBull(epoch *big.Int) (*types.Transaction, error)
BetBull is a paid mutator transaction binding the contract method 0x57fb096f.
Solidity: function betBull(uint256 epoch) payable returns()
func (*PredictionSession) BufferSeconds ¶
func (_Prediction *PredictionSession) BufferSeconds() (*big.Int, error)
BufferSeconds is a free data retrieval call binding the contract method 0xeaba2361.
Solidity: function bufferSeconds() view returns(uint256)
func (*PredictionSession) Claim ¶
func (_Prediction *PredictionSession) Claim(epochs []*big.Int) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x6ba4c138.
Solidity: function claim(uint256[] epochs) returns()
func (*PredictionSession) ClaimTreasury ¶
func (_Prediction *PredictionSession) ClaimTreasury() (*types.Transaction, error)
ClaimTreasury is a paid mutator transaction binding the contract method 0x003bdc74.
Solidity: function claimTreasury() returns()
func (*PredictionSession) Claimable ¶
Claimable is a free data retrieval call binding the contract method 0xa0c7f71c.
Solidity: function claimable(uint256 epoch, address user) view returns(bool)
func (*PredictionSession) CurrentEpoch ¶
func (_Prediction *PredictionSession) CurrentEpoch() (*big.Int, error)
CurrentEpoch is a free data retrieval call binding the contract method 0x76671808.
Solidity: function currentEpoch() view returns(uint256)
func (*PredictionSession) ExecuteRound ¶
func (_Prediction *PredictionSession) ExecuteRound() (*types.Transaction, error)
ExecuteRound is a paid mutator transaction binding the contract method 0x7b3205f5.
Solidity: function executeRound() returns()
func (*PredictionSession) GenesisLockOnce ¶
func (_Prediction *PredictionSession) GenesisLockOnce() (bool, error)
GenesisLockOnce is a free data retrieval call binding the contract method 0x0f74174f.
Solidity: function genesisLockOnce() view returns(bool)
func (*PredictionSession) GenesisLockRound ¶
func (_Prediction *PredictionSession) GenesisLockRound() (*types.Transaction, error)
GenesisLockRound is a paid mutator transaction binding the contract method 0xd9d55eac.
Solidity: function genesisLockRound() returns()
func (*PredictionSession) GenesisStartOnce ¶
func (_Prediction *PredictionSession) GenesisStartOnce() (bool, error)
GenesisStartOnce is a free data retrieval call binding the contract method 0xf7fdec28.
Solidity: function genesisStartOnce() view returns(bool)
func (*PredictionSession) GenesisStartRound ¶
func (_Prediction *PredictionSession) GenesisStartRound() (*types.Transaction, error)
GenesisStartRound is a paid mutator transaction binding the contract method 0x452fd75a.
Solidity: function genesisStartRound() returns()
func (*PredictionSession) GetUserRounds ¶
func (_Prediction *PredictionSession) GetUserRounds(user common.Address, cursor *big.Int, size *big.Int) ([]*big.Int, []PancakePredictionV2BetInfo, *big.Int, error)
GetUserRounds is a free data retrieval call binding the contract method 0x951fd600.
Solidity: function getUserRounds(address user, uint256 cursor, uint256 size) view returns(uint256[], (uint8,uint256,bool)[], uint256)
func (*PredictionSession) GetUserRoundsLength ¶
GetUserRoundsLength is a free data retrieval call binding the contract method 0x273867d4.
Solidity: function getUserRoundsLength(address user) view returns(uint256)
func (*PredictionSession) IntervalSeconds ¶
func (_Prediction *PredictionSession) IntervalSeconds() (*big.Int, error)
IntervalSeconds is a free data retrieval call binding the contract method 0x7d1cd04f.
Solidity: function intervalSeconds() view returns(uint256)
func (*PredictionSession) Ledger ¶
func (_Prediction *PredictionSession) Ledger(arg0 *big.Int, arg1 common.Address) (struct { Position uint8 Amount *big.Int Claimed bool }, error)
Ledger is a free data retrieval call binding the contract method 0x7285c58b.
Solidity: function ledger(uint256 , address ) view returns(uint8 position, uint256 amount, bool claimed)
func (*PredictionSession) MAXTREASURYFEE ¶
func (_Prediction *PredictionSession) MAXTREASURYFEE() (*big.Int, error)
MAXTREASURYFEE is a free data retrieval call binding the contract method 0xf2b3c809.
Solidity: function MAX_TREASURY_FEE() view returns(uint256)
func (*PredictionSession) MinBetAmount ¶
func (_Prediction *PredictionSession) MinBetAmount() (*big.Int, error)
MinBetAmount is a free data retrieval call binding the contract method 0xfa968eea.
Solidity: function minBetAmount() view returns(uint256)
func (*PredictionSession) OperatorAddress ¶
func (_Prediction *PredictionSession) OperatorAddress() (common.Address, error)
OperatorAddress is a free data retrieval call binding the contract method 0x127effb2.
Solidity: function operatorAddress() view returns(address)
func (*PredictionSession) Oracle ¶
func (_Prediction *PredictionSession) Oracle() (common.Address, error)
Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.
Solidity: function oracle() view returns(address)
func (*PredictionSession) OracleLatestRoundId ¶
func (_Prediction *PredictionSession) OracleLatestRoundId() (*big.Int, error)
OracleLatestRoundId is a free data retrieval call binding the contract method 0xec324703.
Solidity: function oracleLatestRoundId() view returns(uint256)
func (*PredictionSession) OracleUpdateAllowance ¶
func (_Prediction *PredictionSession) OracleUpdateAllowance() (*big.Int, error)
OracleUpdateAllowance is a free data retrieval call binding the contract method 0x60554011.
Solidity: function oracleUpdateAllowance() view returns(uint256)
func (*PredictionSession) Owner ¶
func (_Prediction *PredictionSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*PredictionSession) Pause ¶
func (_Prediction *PredictionSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*PredictionSession) Paused ¶
func (_Prediction *PredictionSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*PredictionSession) RecoverToken ¶
func (_Prediction *PredictionSession) RecoverToken(_token common.Address, _amount *big.Int) (*types.Transaction, error)
RecoverToken is a paid mutator transaction binding the contract method 0xb29a8140.
Solidity: function recoverToken(address _token, uint256 _amount) returns()
func (*PredictionSession) Refundable ¶
Refundable is a free data retrieval call binding the contract method 0x7bf41254.
Solidity: function refundable(uint256 epoch, address user) view returns(bool)
func (*PredictionSession) RenounceOwnership ¶
func (_Prediction *PredictionSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*PredictionSession) Rounds ¶
func (_Prediction *PredictionSession) Rounds(arg0 *big.Int) (struct { Epoch *big.Int StartTimestamp *big.Int LockTimestamp *big.Int CloseTimestamp *big.Int LockPrice *big.Int ClosePrice *big.Int LockOracleId *big.Int CloseOracleId *big.Int TotalAmount *big.Int BullAmount *big.Int BearAmount *big.Int RewardBaseCalAmount *big.Int RewardAmount *big.Int OracleCalled bool }, error)
Rounds is a free data retrieval call binding the contract method 0x8c65c81f.
Solidity: function rounds(uint256 ) view returns(uint256 epoch, uint256 startTimestamp, uint256 lockTimestamp, uint256 closeTimestamp, int256 lockPrice, int256 closePrice, uint256 lockOracleId, uint256 closeOracleId, uint256 totalAmount, uint256 bullAmount, uint256 bearAmount, uint256 rewardBaseCalAmount, uint256 rewardAmount, bool oracleCalled)
func (*PredictionSession) SetAdmin ¶
func (_Prediction *PredictionSession) SetAdmin(_adminAddress common.Address) (*types.Transaction, error)
SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.
Solidity: function setAdmin(address _adminAddress) returns()
func (*PredictionSession) SetBufferAndIntervalSeconds ¶
func (_Prediction *PredictionSession) SetBufferAndIntervalSeconds(_bufferSeconds *big.Int, _intervalSeconds *big.Int) (*types.Transaction, error)
SetBufferAndIntervalSeconds is a paid mutator transaction binding the contract method 0x890dc766.
Solidity: function setBufferAndIntervalSeconds(uint256 _bufferSeconds, uint256 _intervalSeconds) returns()
func (*PredictionSession) SetMinBetAmount ¶
func (_Prediction *PredictionSession) SetMinBetAmount(_minBetAmount *big.Int) (*types.Transaction, error)
SetMinBetAmount is a paid mutator transaction binding the contract method 0x6c188593.
Solidity: function setMinBetAmount(uint256 _minBetAmount) returns()
func (*PredictionSession) SetOperator ¶
func (_Prediction *PredictionSession) SetOperator(_operatorAddress common.Address) (*types.Transaction, error)
SetOperator is a paid mutator transaction binding the contract method 0xb3ab15fb.
Solidity: function setOperator(address _operatorAddress) returns()
func (*PredictionSession) SetOracle ¶
func (_Prediction *PredictionSession) SetOracle(_oracle common.Address) (*types.Transaction, error)
SetOracle is a paid mutator transaction binding the contract method 0x7adbf973.
Solidity: function setOracle(address _oracle) returns()
func (*PredictionSession) SetOracleUpdateAllowance ¶
func (_Prediction *PredictionSession) SetOracleUpdateAllowance(_oracleUpdateAllowance *big.Int) (*types.Transaction, error)
SetOracleUpdateAllowance is a paid mutator transaction binding the contract method 0xcf2f5039.
Solidity: function setOracleUpdateAllowance(uint256 _oracleUpdateAllowance) returns()
func (*PredictionSession) SetTreasuryFee ¶
func (_Prediction *PredictionSession) SetTreasuryFee(_treasuryFee *big.Int) (*types.Transaction, error)
SetTreasuryFee is a paid mutator transaction binding the contract method 0x77e741c7.
Solidity: function setTreasuryFee(uint256 _treasuryFee) returns()
func (*PredictionSession) TransferOwnership ¶
func (_Prediction *PredictionSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*PredictionSession) TreasuryAmount ¶
func (_Prediction *PredictionSession) TreasuryAmount() (*big.Int, error)
TreasuryAmount is a free data retrieval call binding the contract method 0x368acb09.
Solidity: function treasuryAmount() view returns(uint256)
func (*PredictionSession) TreasuryFee ¶
func (_Prediction *PredictionSession) TreasuryFee() (*big.Int, error)
TreasuryFee is a free data retrieval call binding the contract method 0xcc32d176.
Solidity: function treasuryFee() view returns(uint256)
func (*PredictionSession) Unpause ¶
func (_Prediction *PredictionSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
func (*PredictionSession) UserRounds ¶
func (_Prediction *PredictionSession) UserRounds(arg0 common.Address, arg1 *big.Int) (*big.Int, error)
UserRounds is a free data retrieval call binding the contract method 0xdd1f7596.
Solidity: function userRounds(address , uint256 ) view returns(uint256)
type PredictionStartRound ¶
type PredictionStartRound struct { Epoch *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionStartRound represents a StartRound event raised by the Prediction contract.
type PredictionStartRoundIterator ¶
type PredictionStartRoundIterator struct { Event *PredictionStartRound // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionStartRoundIterator is returned from FilterStartRound and is used to iterate over the raw logs and unpacked data for StartRound events raised by the Prediction contract.
func (*PredictionStartRoundIterator) Close ¶
func (it *PredictionStartRoundIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionStartRoundIterator) Error ¶
func (it *PredictionStartRoundIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionStartRoundIterator) Next ¶
func (it *PredictionStartRoundIterator) 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 PredictionTokenRecovery ¶
type PredictionTokenRecovery struct { Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionTokenRecovery represents a TokenRecovery event raised by the Prediction contract.
type PredictionTokenRecoveryIterator ¶
type PredictionTokenRecoveryIterator struct { Event *PredictionTokenRecovery // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionTokenRecoveryIterator is returned from FilterTokenRecovery and is used to iterate over the raw logs and unpacked data for TokenRecovery events raised by the Prediction contract.
func (*PredictionTokenRecoveryIterator) Close ¶
func (it *PredictionTokenRecoveryIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionTokenRecoveryIterator) Error ¶
func (it *PredictionTokenRecoveryIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionTokenRecoveryIterator) Next ¶
func (it *PredictionTokenRecoveryIterator) 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 PredictionTransactor ¶
type PredictionTransactor struct {
// contains filtered or unexported fields
}
PredictionTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPredictionTransactor ¶
func NewPredictionTransactor(address common.Address, transactor bind.ContractTransactor) (*PredictionTransactor, error)
NewPredictionTransactor creates a new write-only instance of Prediction, bound to a specific deployed contract.
func (*PredictionTransactor) BetBear ¶
func (_Prediction *PredictionTransactor) BetBear(opts *bind.TransactOpts, epoch *big.Int) (*types.Transaction, error)
BetBear is a paid mutator transaction binding the contract method 0xaa6b873a.
Solidity: function betBear(uint256 epoch) payable returns()
func (*PredictionTransactor) BetBull ¶
func (_Prediction *PredictionTransactor) BetBull(opts *bind.TransactOpts, epoch *big.Int) (*types.Transaction, error)
BetBull is a paid mutator transaction binding the contract method 0x57fb096f.
Solidity: function betBull(uint256 epoch) payable returns()
func (*PredictionTransactor) Claim ¶
func (_Prediction *PredictionTransactor) Claim(opts *bind.TransactOpts, epochs []*big.Int) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x6ba4c138.
Solidity: function claim(uint256[] epochs) returns()
func (*PredictionTransactor) ClaimTreasury ¶
func (_Prediction *PredictionTransactor) ClaimTreasury(opts *bind.TransactOpts) (*types.Transaction, error)
ClaimTreasury is a paid mutator transaction binding the contract method 0x003bdc74.
Solidity: function claimTreasury() returns()
func (*PredictionTransactor) ExecuteRound ¶
func (_Prediction *PredictionTransactor) ExecuteRound(opts *bind.TransactOpts) (*types.Transaction, error)
ExecuteRound is a paid mutator transaction binding the contract method 0x7b3205f5.
Solidity: function executeRound() returns()
func (*PredictionTransactor) GenesisLockRound ¶
func (_Prediction *PredictionTransactor) GenesisLockRound(opts *bind.TransactOpts) (*types.Transaction, error)
GenesisLockRound is a paid mutator transaction binding the contract method 0xd9d55eac.
Solidity: function genesisLockRound() returns()
func (*PredictionTransactor) GenesisStartRound ¶
func (_Prediction *PredictionTransactor) GenesisStartRound(opts *bind.TransactOpts) (*types.Transaction, error)
GenesisStartRound is a paid mutator transaction binding the contract method 0x452fd75a.
Solidity: function genesisStartRound() returns()
func (*PredictionTransactor) Pause ¶
func (_Prediction *PredictionTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*PredictionTransactor) RecoverToken ¶
func (_Prediction *PredictionTransactor) RecoverToken(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)
RecoverToken is a paid mutator transaction binding the contract method 0xb29a8140.
Solidity: function recoverToken(address _token, uint256 _amount) returns()
func (*PredictionTransactor) RenounceOwnership ¶
func (_Prediction *PredictionTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*PredictionTransactor) SetAdmin ¶
func (_Prediction *PredictionTransactor) SetAdmin(opts *bind.TransactOpts, _adminAddress common.Address) (*types.Transaction, error)
SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.
Solidity: function setAdmin(address _adminAddress) returns()
func (*PredictionTransactor) SetBufferAndIntervalSeconds ¶
func (_Prediction *PredictionTransactor) SetBufferAndIntervalSeconds(opts *bind.TransactOpts, _bufferSeconds *big.Int, _intervalSeconds *big.Int) (*types.Transaction, error)
SetBufferAndIntervalSeconds is a paid mutator transaction binding the contract method 0x890dc766.
Solidity: function setBufferAndIntervalSeconds(uint256 _bufferSeconds, uint256 _intervalSeconds) returns()
func (*PredictionTransactor) SetMinBetAmount ¶
func (_Prediction *PredictionTransactor) SetMinBetAmount(opts *bind.TransactOpts, _minBetAmount *big.Int) (*types.Transaction, error)
SetMinBetAmount is a paid mutator transaction binding the contract method 0x6c188593.
Solidity: function setMinBetAmount(uint256 _minBetAmount) returns()
func (*PredictionTransactor) SetOperator ¶
func (_Prediction *PredictionTransactor) SetOperator(opts *bind.TransactOpts, _operatorAddress common.Address) (*types.Transaction, error)
SetOperator is a paid mutator transaction binding the contract method 0xb3ab15fb.
Solidity: function setOperator(address _operatorAddress) returns()
func (*PredictionTransactor) SetOracle ¶
func (_Prediction *PredictionTransactor) SetOracle(opts *bind.TransactOpts, _oracle common.Address) (*types.Transaction, error)
SetOracle is a paid mutator transaction binding the contract method 0x7adbf973.
Solidity: function setOracle(address _oracle) returns()
func (*PredictionTransactor) SetOracleUpdateAllowance ¶
func (_Prediction *PredictionTransactor) SetOracleUpdateAllowance(opts *bind.TransactOpts, _oracleUpdateAllowance *big.Int) (*types.Transaction, error)
SetOracleUpdateAllowance is a paid mutator transaction binding the contract method 0xcf2f5039.
Solidity: function setOracleUpdateAllowance(uint256 _oracleUpdateAllowance) returns()
func (*PredictionTransactor) SetTreasuryFee ¶
func (_Prediction *PredictionTransactor) SetTreasuryFee(opts *bind.TransactOpts, _treasuryFee *big.Int) (*types.Transaction, error)
SetTreasuryFee is a paid mutator transaction binding the contract method 0x77e741c7.
Solidity: function setTreasuryFee(uint256 _treasuryFee) returns()
func (*PredictionTransactor) TransferOwnership ¶
func (_Prediction *PredictionTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*PredictionTransactor) Unpause ¶
func (_Prediction *PredictionTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
type PredictionTransactorRaw ¶
type PredictionTransactorRaw struct {
Contract *PredictionTransactor // Generic write-only contract binding to access the raw methods on
}
PredictionTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*PredictionTransactorRaw) Transact ¶
func (_Prediction *PredictionTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PredictionTransactorRaw) Transfer ¶
func (_Prediction *PredictionTransactorRaw) 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 PredictionTransactorSession ¶
type PredictionTransactorSession struct { Contract *PredictionTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
PredictionTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*PredictionTransactorSession) BetBear ¶
func (_Prediction *PredictionTransactorSession) BetBear(epoch *big.Int) (*types.Transaction, error)
BetBear is a paid mutator transaction binding the contract method 0xaa6b873a.
Solidity: function betBear(uint256 epoch) payable returns()
func (*PredictionTransactorSession) BetBull ¶
func (_Prediction *PredictionTransactorSession) BetBull(epoch *big.Int) (*types.Transaction, error)
BetBull is a paid mutator transaction binding the contract method 0x57fb096f.
Solidity: function betBull(uint256 epoch) payable returns()
func (*PredictionTransactorSession) Claim ¶
func (_Prediction *PredictionTransactorSession) Claim(epochs []*big.Int) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x6ba4c138.
Solidity: function claim(uint256[] epochs) returns()
func (*PredictionTransactorSession) ClaimTreasury ¶
func (_Prediction *PredictionTransactorSession) ClaimTreasury() (*types.Transaction, error)
ClaimTreasury is a paid mutator transaction binding the contract method 0x003bdc74.
Solidity: function claimTreasury() returns()
func (*PredictionTransactorSession) ExecuteRound ¶
func (_Prediction *PredictionTransactorSession) ExecuteRound() (*types.Transaction, error)
ExecuteRound is a paid mutator transaction binding the contract method 0x7b3205f5.
Solidity: function executeRound() returns()
func (*PredictionTransactorSession) GenesisLockRound ¶
func (_Prediction *PredictionTransactorSession) GenesisLockRound() (*types.Transaction, error)
GenesisLockRound is a paid mutator transaction binding the contract method 0xd9d55eac.
Solidity: function genesisLockRound() returns()
func (*PredictionTransactorSession) GenesisStartRound ¶
func (_Prediction *PredictionTransactorSession) GenesisStartRound() (*types.Transaction, error)
GenesisStartRound is a paid mutator transaction binding the contract method 0x452fd75a.
Solidity: function genesisStartRound() returns()
func (*PredictionTransactorSession) Pause ¶
func (_Prediction *PredictionTransactorSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*PredictionTransactorSession) RecoverToken ¶
func (_Prediction *PredictionTransactorSession) RecoverToken(_token common.Address, _amount *big.Int) (*types.Transaction, error)
RecoverToken is a paid mutator transaction binding the contract method 0xb29a8140.
Solidity: function recoverToken(address _token, uint256 _amount) returns()
func (*PredictionTransactorSession) RenounceOwnership ¶
func (_Prediction *PredictionTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*PredictionTransactorSession) SetAdmin ¶
func (_Prediction *PredictionTransactorSession) SetAdmin(_adminAddress common.Address) (*types.Transaction, error)
SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.
Solidity: function setAdmin(address _adminAddress) returns()
func (*PredictionTransactorSession) SetBufferAndIntervalSeconds ¶
func (_Prediction *PredictionTransactorSession) SetBufferAndIntervalSeconds(_bufferSeconds *big.Int, _intervalSeconds *big.Int) (*types.Transaction, error)
SetBufferAndIntervalSeconds is a paid mutator transaction binding the contract method 0x890dc766.
Solidity: function setBufferAndIntervalSeconds(uint256 _bufferSeconds, uint256 _intervalSeconds) returns()
func (*PredictionTransactorSession) SetMinBetAmount ¶
func (_Prediction *PredictionTransactorSession) SetMinBetAmount(_minBetAmount *big.Int) (*types.Transaction, error)
SetMinBetAmount is a paid mutator transaction binding the contract method 0x6c188593.
Solidity: function setMinBetAmount(uint256 _minBetAmount) returns()
func (*PredictionTransactorSession) SetOperator ¶
func (_Prediction *PredictionTransactorSession) SetOperator(_operatorAddress common.Address) (*types.Transaction, error)
SetOperator is a paid mutator transaction binding the contract method 0xb3ab15fb.
Solidity: function setOperator(address _operatorAddress) returns()
func (*PredictionTransactorSession) SetOracle ¶
func (_Prediction *PredictionTransactorSession) SetOracle(_oracle common.Address) (*types.Transaction, error)
SetOracle is a paid mutator transaction binding the contract method 0x7adbf973.
Solidity: function setOracle(address _oracle) returns()
func (*PredictionTransactorSession) SetOracleUpdateAllowance ¶
func (_Prediction *PredictionTransactorSession) SetOracleUpdateAllowance(_oracleUpdateAllowance *big.Int) (*types.Transaction, error)
SetOracleUpdateAllowance is a paid mutator transaction binding the contract method 0xcf2f5039.
Solidity: function setOracleUpdateAllowance(uint256 _oracleUpdateAllowance) returns()
func (*PredictionTransactorSession) SetTreasuryFee ¶
func (_Prediction *PredictionTransactorSession) SetTreasuryFee(_treasuryFee *big.Int) (*types.Transaction, error)
SetTreasuryFee is a paid mutator transaction binding the contract method 0x77e741c7.
Solidity: function setTreasuryFee(uint256 _treasuryFee) returns()
func (*PredictionTransactorSession) TransferOwnership ¶
func (_Prediction *PredictionTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*PredictionTransactorSession) Unpause ¶
func (_Prediction *PredictionTransactorSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
type PredictionTreasuryClaim ¶
type PredictionTreasuryClaim struct { Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionTreasuryClaim represents a TreasuryClaim event raised by the Prediction contract.
type PredictionTreasuryClaimIterator ¶
type PredictionTreasuryClaimIterator struct { Event *PredictionTreasuryClaim // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionTreasuryClaimIterator is returned from FilterTreasuryClaim and is used to iterate over the raw logs and unpacked data for TreasuryClaim events raised by the Prediction contract.
func (*PredictionTreasuryClaimIterator) Close ¶
func (it *PredictionTreasuryClaimIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionTreasuryClaimIterator) Error ¶
func (it *PredictionTreasuryClaimIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionTreasuryClaimIterator) Next ¶
func (it *PredictionTreasuryClaimIterator) 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 PredictionUnpause ¶
type PredictionUnpause struct { Epoch *big.Int Raw types.Log // Blockchain specific contextual infos }
PredictionUnpause represents a Unpause event raised by the Prediction contract.
type PredictionUnpauseIterator ¶
type PredictionUnpauseIterator struct { Event *PredictionUnpause // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionUnpauseIterator is returned from FilterUnpause and is used to iterate over the raw logs and unpacked data for Unpause events raised by the Prediction contract.
func (*PredictionUnpauseIterator) Close ¶
func (it *PredictionUnpauseIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionUnpauseIterator) Error ¶
func (it *PredictionUnpauseIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionUnpauseIterator) Next ¶
func (it *PredictionUnpauseIterator) 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 PredictionUnpaused ¶
type PredictionUnpaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
PredictionUnpaused represents a Unpaused event raised by the Prediction contract.
type PredictionUnpausedIterator ¶
type PredictionUnpausedIterator struct { Event *PredictionUnpaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PredictionUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Prediction contract.
func (*PredictionUnpausedIterator) Close ¶
func (it *PredictionUnpausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PredictionUnpausedIterator) Error ¶
func (it *PredictionUnpausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PredictionUnpausedIterator) Next ¶
func (it *PredictionUnpausedIterator) 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 Round ¶
type Round struct { Epoch *big.Int StartTimestamp *big.Int LockTimestamp *big.Int CloseTimestamp *big.Int LockPrice *big.Int ClosePrice *big.Int LockOracleId *big.Int CloseOracleId *big.Int TotalAmount *big.Int BullAmount *big.Int BearAmount *big.Int RewardBaseCalAmount *big.Int RewardAmount *big.Int OracleCalled bool }