Documentation ¶
Index ¶
- Constants
- Variables
- type ISpaceshipStakingMission
- type ISpaceshipStakingNFTInfo
- type ISpaceshipStakingRewardInfo
- type SpaceshipStaking
- type SpaceshipStakingCaller
- func (_SpaceshipStaking *SpaceshipStakingCaller) CalculateReward(opts *bind.CallOpts, _missionNum *big.Int) (ISpaceshipStakingRewardInfo, error)
- func (_SpaceshipStaking *SpaceshipStakingCaller) MissionToUsersInvest(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (struct{ ... }, error)
- func (_SpaceshipStaking *SpaceshipStakingCaller) Missions(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_SpaceshipStaking *SpaceshipStakingCaller) MissionsCount(opts *bind.CallOpts) (*big.Int, error)
- func (_SpaceshipStaking *SpaceshipStakingCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_SpaceshipStaking *SpaceshipStakingCaller) TLMToken(opts *bind.CallOpts) (common.Address, error)
- type SpaceshipStakingCallerRaw
- type SpaceshipStakingCallerSession
- func (_SpaceshipStaking *SpaceshipStakingCallerSession) CalculateReward(_missionNum *big.Int) (ISpaceshipStakingRewardInfo, error)
- func (_SpaceshipStaking *SpaceshipStakingCallerSession) MissionToUsersInvest(arg0 *big.Int, arg1 common.Address) (struct{ ... }, error)
- func (_SpaceshipStaking *SpaceshipStakingCallerSession) Missions(arg0 *big.Int) (struct{ ... }, error)
- func (_SpaceshipStaking *SpaceshipStakingCallerSession) MissionsCount() (*big.Int, error)
- func (_SpaceshipStaking *SpaceshipStakingCallerSession) Owner() (common.Address, error)
- func (_SpaceshipStaking *SpaceshipStakingCallerSession) TLMToken() (common.Address, error)
- type SpaceshipStakingFilterer
- func (_SpaceshipStaking *SpaceshipStakingFilterer) FilterMissionCreated(opts *bind.FilterOpts, id []*big.Int) (*SpaceshipStakingMissionCreatedIterator, error)
- func (_SpaceshipStaking *SpaceshipStakingFilterer) FilterMissionJoined(opts *bind.FilterOpts, missionId []*big.Int, player []common.Address) (*SpaceshipStakingMissionJoinedIterator, error)
- func (_SpaceshipStaking *SpaceshipStakingFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*SpaceshipStakingOwnershipTransferredIterator, error)
- func (_SpaceshipStaking *SpaceshipStakingFilterer) FilterRewardWithdrawn(opts *bind.FilterOpts, missionId []*big.Int, player []common.Address) (*SpaceshipStakingRewardWithdrawnIterator, error)
- func (_SpaceshipStaking *SpaceshipStakingFilterer) ParseMissionCreated(log types.Log) (*SpaceshipStakingMissionCreated, error)
- func (_SpaceshipStaking *SpaceshipStakingFilterer) ParseMissionJoined(log types.Log) (*SpaceshipStakingMissionJoined, error)
- func (_SpaceshipStaking *SpaceshipStakingFilterer) ParseOwnershipTransferred(log types.Log) (*SpaceshipStakingOwnershipTransferred, error)
- func (_SpaceshipStaking *SpaceshipStakingFilterer) ParseRewardWithdrawn(log types.Log) (*SpaceshipStakingRewardWithdrawn, error)
- func (_SpaceshipStaking *SpaceshipStakingFilterer) WatchMissionCreated(opts *bind.WatchOpts, sink chan<- *SpaceshipStakingMissionCreated, ...) (event.Subscription, error)
- func (_SpaceshipStaking *SpaceshipStakingFilterer) WatchMissionJoined(opts *bind.WatchOpts, sink chan<- *SpaceshipStakingMissionJoined, ...) (event.Subscription, error)
- func (_SpaceshipStaking *SpaceshipStakingFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SpaceshipStakingOwnershipTransferred, ...) (event.Subscription, error)
- func (_SpaceshipStaking *SpaceshipStakingFilterer) WatchRewardWithdrawn(opts *bind.WatchOpts, sink chan<- *SpaceshipStakingRewardWithdrawn, ...) (event.Subscription, error)
- type SpaceshipStakingMissionCreated
- type SpaceshipStakingMissionCreatedIterator
- type SpaceshipStakingMissionJoined
- type SpaceshipStakingMissionJoinedIterator
- type SpaceshipStakingOwnershipTransferred
- type SpaceshipStakingOwnershipTransferredIterator
- type SpaceshipStakingRaw
- func (_SpaceshipStaking *SpaceshipStakingRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_SpaceshipStaking *SpaceshipStakingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_SpaceshipStaking *SpaceshipStakingRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SpaceshipStakingRewardWithdrawn
- type SpaceshipStakingRewardWithdrawnIterator
- type SpaceshipStakingSession
- func (_SpaceshipStaking *SpaceshipStakingSession) CalculateReward(_missionNum *big.Int) (ISpaceshipStakingRewardInfo, error)
- func (_SpaceshipStaking *SpaceshipStakingSession) CreateMission(_newMission ISpaceshipStakingMission) (*types.Transaction, error)
- func (_SpaceshipStaking *SpaceshipStakingSession) JoinToMission(_missionNum *big.Int, _spaceshipCount *big.Int) (*types.Transaction, error)
- func (_SpaceshipStaking *SpaceshipStakingSession) MissionToUsersInvest(arg0 *big.Int, arg1 common.Address) (struct{ ... }, error)
- func (_SpaceshipStaking *SpaceshipStakingSession) Missions(arg0 *big.Int) (struct{ ... }, error)
- func (_SpaceshipStaking *SpaceshipStakingSession) MissionsCount() (*big.Int, error)
- func (_SpaceshipStaking *SpaceshipStakingSession) Owner() (common.Address, error)
- func (_SpaceshipStaking *SpaceshipStakingSession) RenounceOwnership() (*types.Transaction, error)
- func (_SpaceshipStaking *SpaceshipStakingSession) TLMToken() (common.Address, error)
- func (_SpaceshipStaking *SpaceshipStakingSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_SpaceshipStaking *SpaceshipStakingSession) Withdraw(_missionNum *big.Int) (*types.Transaction, error)
- type SpaceshipStakingTransactor
- func (_SpaceshipStaking *SpaceshipStakingTransactor) CreateMission(opts *bind.TransactOpts, _newMission ISpaceshipStakingMission) (*types.Transaction, error)
- func (_SpaceshipStaking *SpaceshipStakingTransactor) JoinToMission(opts *bind.TransactOpts, _missionNum *big.Int, _spaceshipCount *big.Int) (*types.Transaction, error)
- func (_SpaceshipStaking *SpaceshipStakingTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_SpaceshipStaking *SpaceshipStakingTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_SpaceshipStaking *SpaceshipStakingTransactor) Withdraw(opts *bind.TransactOpts, _missionNum *big.Int) (*types.Transaction, error)
- type SpaceshipStakingTransactorRaw
- type SpaceshipStakingTransactorSession
- func (_SpaceshipStaking *SpaceshipStakingTransactorSession) CreateMission(_newMission ISpaceshipStakingMission) (*types.Transaction, error)
- func (_SpaceshipStaking *SpaceshipStakingTransactorSession) JoinToMission(_missionNum *big.Int, _spaceshipCount *big.Int) (*types.Transaction, error)
- func (_SpaceshipStaking *SpaceshipStakingTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_SpaceshipStaking *SpaceshipStakingTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_SpaceshipStaking *SpaceshipStakingTransactorSession) Withdraw(_missionNum *big.Int) (*types.Transaction, error)
Constants ¶
const SpaceshipStakingABI = "" /* 6470-byte string literal not displayed */
SpaceshipStakingABI is the input ABI used to generate the binding from.
Variables ¶
var SpaceshipStakingBin = "" /* 29822-byte string literal not displayed */
SpaceshipStakingBin is the compiled bytecode used for deploying new contracts.
Functions ¶
This section is empty.
Types ¶
type ISpaceshipStakingMission ¶
type ISpaceshipStakingMission struct { BoardingTime uint64 LaunchTime uint64 Duration uint64 MissionType uint64 Reward *big.Int SpaceshipCost *big.Int MissionPower *big.Int Description string Name string BoostCounters []*big.Int BoostPrices []*big.Int NftInfo ISpaceshipStakingNFTInfo }
ISpaceshipStakingMission is an auto generated low-level Go binding around an user-defined struct.
type ISpaceshipStakingNFTInfo ¶
ISpaceshipStakingNFTInfo is an auto generated low-level Go binding around an user-defined struct.
type ISpaceshipStakingRewardInfo ¶
type ISpaceshipStakingRewardInfo struct { InvestedTLM *big.Int InvestedBNB *big.Int RewardTLM *big.Int RewardNFTCount *big.Int }
ISpaceshipStakingRewardInfo is an auto generated low-level Go binding around an user-defined struct.
type SpaceshipStaking ¶
type SpaceshipStaking struct { SpaceshipStakingCaller // Read-only binding to the contract SpaceshipStakingTransactor // Write-only binding to the contract SpaceshipStakingFilterer // Log filterer for contract events }
SpaceshipStaking is an auto generated Go binding around an Ethereum contract.
func DeploySpaceshipStaking ¶
func DeploySpaceshipStaking(auth *bind.TransactOpts, backend bind.ContractBackend, _TLMToken common.Address) (common.Address, *types.Transaction, *SpaceshipStaking, error)
DeploySpaceshipStaking deploys a new Ethereum contract, binding an instance of SpaceshipStaking to it.
func NewSpaceshipStaking ¶
func NewSpaceshipStaking(address common.Address, backend bind.ContractBackend) (*SpaceshipStaking, error)
NewSpaceshipStaking creates a new instance of SpaceshipStaking, bound to a specific deployed contract.
type SpaceshipStakingCaller ¶
type SpaceshipStakingCaller struct {
// contains filtered or unexported fields
}
SpaceshipStakingCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSpaceshipStakingCaller ¶
func NewSpaceshipStakingCaller(address common.Address, caller bind.ContractCaller) (*SpaceshipStakingCaller, error)
NewSpaceshipStakingCaller creates a new read-only instance of SpaceshipStaking, bound to a specific deployed contract.
func (*SpaceshipStakingCaller) CalculateReward ¶
func (_SpaceshipStaking *SpaceshipStakingCaller) CalculateReward(opts *bind.CallOpts, _missionNum *big.Int) (ISpaceshipStakingRewardInfo, error)
CalculateReward is a free data retrieval call binding the contract method 0xd2d7231f.
Solidity: function calculateReward(uint256 _missionNum) view returns((uint256,uint256,uint256,uint256))
func (*SpaceshipStakingCaller) MissionToUsersInvest ¶
func (_SpaceshipStaking *SpaceshipStakingCaller) MissionToUsersInvest(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (struct { Ships *big.Int BNBAmount *big.Int }, error)
MissionToUsersInvest is a free data retrieval call binding the contract method 0x25fbc80d.
Solidity: function missionToUsersInvest(uint256 , address ) view returns(uint256 ships, uint256 BNBAmount)
func (*SpaceshipStakingCaller) Missions ¶
func (_SpaceshipStaking *SpaceshipStakingCaller) Missions(opts *bind.CallOpts, arg0 *big.Int) (struct { BoardingTime uint64 LaunchTime uint64 Duration uint64 MissionType uint64 Reward *big.Int SpaceshipCost *big.Int MissionPower *big.Int Description string Name string NftInfo ISpaceshipStakingNFTInfo }, error)
Missions is a free data retrieval call binding the contract method 0x2c8fe526.
Solidity: function missions(uint256 ) view returns(uint64 boardingTime, uint64 launchTime, uint64 duration, uint64 missionType, uint256 reward, uint256 spaceshipCost, uint256 missionPower, string description, string name, (address,string) nftInfo)
func (*SpaceshipStakingCaller) MissionsCount ¶
func (_SpaceshipStaking *SpaceshipStakingCaller) MissionsCount(opts *bind.CallOpts) (*big.Int, error)
MissionsCount is a free data retrieval call binding the contract method 0xb6d25495.
Solidity: function missionsCount() view returns(uint256)
type SpaceshipStakingCallerRaw ¶
type SpaceshipStakingCallerRaw struct {
Contract *SpaceshipStakingCaller // Generic read-only contract binding to access the raw methods on
}
SpaceshipStakingCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SpaceshipStakingCallerRaw) Call ¶
func (_SpaceshipStaking *SpaceshipStakingCallerRaw) 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 SpaceshipStakingCallerSession ¶
type SpaceshipStakingCallerSession struct { Contract *SpaceshipStakingCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
SpaceshipStakingCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*SpaceshipStakingCallerSession) CalculateReward ¶
func (_SpaceshipStaking *SpaceshipStakingCallerSession) CalculateReward(_missionNum *big.Int) (ISpaceshipStakingRewardInfo, error)
CalculateReward is a free data retrieval call binding the contract method 0xd2d7231f.
Solidity: function calculateReward(uint256 _missionNum) view returns((uint256,uint256,uint256,uint256))
func (*SpaceshipStakingCallerSession) MissionToUsersInvest ¶
func (_SpaceshipStaking *SpaceshipStakingCallerSession) MissionToUsersInvest(arg0 *big.Int, arg1 common.Address) (struct { Ships *big.Int BNBAmount *big.Int }, error)
MissionToUsersInvest is a free data retrieval call binding the contract method 0x25fbc80d.
Solidity: function missionToUsersInvest(uint256 , address ) view returns(uint256 ships, uint256 BNBAmount)
func (*SpaceshipStakingCallerSession) Missions ¶
func (_SpaceshipStaking *SpaceshipStakingCallerSession) Missions(arg0 *big.Int) (struct { BoardingTime uint64 LaunchTime uint64 Duration uint64 MissionType uint64 Reward *big.Int SpaceshipCost *big.Int MissionPower *big.Int Description string Name string NftInfo ISpaceshipStakingNFTInfo }, error)
Missions is a free data retrieval call binding the contract method 0x2c8fe526.
Solidity: function missions(uint256 ) view returns(uint64 boardingTime, uint64 launchTime, uint64 duration, uint64 missionType, uint256 reward, uint256 spaceshipCost, uint256 missionPower, string description, string name, (address,string) nftInfo)
func (*SpaceshipStakingCallerSession) MissionsCount ¶
func (_SpaceshipStaking *SpaceshipStakingCallerSession) MissionsCount() (*big.Int, error)
MissionsCount is a free data retrieval call binding the contract method 0xb6d25495.
Solidity: function missionsCount() view returns(uint256)
type SpaceshipStakingFilterer ¶
type SpaceshipStakingFilterer struct {
// contains filtered or unexported fields
}
SpaceshipStakingFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSpaceshipStakingFilterer ¶
func NewSpaceshipStakingFilterer(address common.Address, filterer bind.ContractFilterer) (*SpaceshipStakingFilterer, error)
NewSpaceshipStakingFilterer creates a new log filterer instance of SpaceshipStaking, bound to a specific deployed contract.
func (*SpaceshipStakingFilterer) FilterMissionCreated ¶
func (_SpaceshipStaking *SpaceshipStakingFilterer) FilterMissionCreated(opts *bind.FilterOpts, id []*big.Int) (*SpaceshipStakingMissionCreatedIterator, error)
FilterMissionCreated is a free log retrieval operation binding the contract event 0x280fd1c13afdf05ef9c7dbd512eed44cfa4545e4c471c2673baf1d275a3d8fd9.
Solidity: event MissionCreated(uint256 indexed id, string name)
func (*SpaceshipStakingFilterer) FilterMissionJoined ¶
func (_SpaceshipStaking *SpaceshipStakingFilterer) FilterMissionJoined(opts *bind.FilterOpts, missionId []*big.Int, player []common.Address) (*SpaceshipStakingMissionJoinedIterator, error)
FilterMissionJoined is a free log retrieval operation binding the contract event 0xceb49b5adb5e3737df9e0679d210f1006878fb83bf58974f7279b0c79460898b.
Solidity: event MissionJoined(uint256 indexed missionId, address indexed player, uint256 spaceshipCount)
func (*SpaceshipStakingFilterer) FilterOwnershipTransferred ¶
func (_SpaceshipStaking *SpaceshipStakingFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SpaceshipStakingOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*SpaceshipStakingFilterer) FilterRewardWithdrawn ¶
func (_SpaceshipStaking *SpaceshipStakingFilterer) FilterRewardWithdrawn(opts *bind.FilterOpts, missionId []*big.Int, player []common.Address) (*SpaceshipStakingRewardWithdrawnIterator, error)
FilterRewardWithdrawn is a free log retrieval operation binding the contract event 0x3f0d190fee71fcedf315c1a691ca936a8893467ce62d0bb52e5643ded084fe46.
Solidity: event RewardWithdrawn(uint256 indexed missionId, address indexed player, uint256 investedTLM, uint256 rewardTLM, uint256 investedBNB)
func (*SpaceshipStakingFilterer) ParseMissionCreated ¶
func (_SpaceshipStaking *SpaceshipStakingFilterer) ParseMissionCreated(log types.Log) (*SpaceshipStakingMissionCreated, error)
ParseMissionCreated is a log parse operation binding the contract event 0x280fd1c13afdf05ef9c7dbd512eed44cfa4545e4c471c2673baf1d275a3d8fd9.
Solidity: event MissionCreated(uint256 indexed id, string name)
func (*SpaceshipStakingFilterer) ParseMissionJoined ¶
func (_SpaceshipStaking *SpaceshipStakingFilterer) ParseMissionJoined(log types.Log) (*SpaceshipStakingMissionJoined, error)
ParseMissionJoined is a log parse operation binding the contract event 0xceb49b5adb5e3737df9e0679d210f1006878fb83bf58974f7279b0c79460898b.
Solidity: event MissionJoined(uint256 indexed missionId, address indexed player, uint256 spaceshipCount)
func (*SpaceshipStakingFilterer) ParseOwnershipTransferred ¶
func (_SpaceshipStaking *SpaceshipStakingFilterer) ParseOwnershipTransferred(log types.Log) (*SpaceshipStakingOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*SpaceshipStakingFilterer) ParseRewardWithdrawn ¶
func (_SpaceshipStaking *SpaceshipStakingFilterer) ParseRewardWithdrawn(log types.Log) (*SpaceshipStakingRewardWithdrawn, error)
ParseRewardWithdrawn is a log parse operation binding the contract event 0x3f0d190fee71fcedf315c1a691ca936a8893467ce62d0bb52e5643ded084fe46.
Solidity: event RewardWithdrawn(uint256 indexed missionId, address indexed player, uint256 investedTLM, uint256 rewardTLM, uint256 investedBNB)
func (*SpaceshipStakingFilterer) WatchMissionCreated ¶
func (_SpaceshipStaking *SpaceshipStakingFilterer) WatchMissionCreated(opts *bind.WatchOpts, sink chan<- *SpaceshipStakingMissionCreated, id []*big.Int) (event.Subscription, error)
WatchMissionCreated is a free log subscription operation binding the contract event 0x280fd1c13afdf05ef9c7dbd512eed44cfa4545e4c471c2673baf1d275a3d8fd9.
Solidity: event MissionCreated(uint256 indexed id, string name)
func (*SpaceshipStakingFilterer) WatchMissionJoined ¶
func (_SpaceshipStaking *SpaceshipStakingFilterer) WatchMissionJoined(opts *bind.WatchOpts, sink chan<- *SpaceshipStakingMissionJoined, missionId []*big.Int, player []common.Address) (event.Subscription, error)
WatchMissionJoined is a free log subscription operation binding the contract event 0xceb49b5adb5e3737df9e0679d210f1006878fb83bf58974f7279b0c79460898b.
Solidity: event MissionJoined(uint256 indexed missionId, address indexed player, uint256 spaceshipCount)
func (*SpaceshipStakingFilterer) WatchOwnershipTransferred ¶
func (_SpaceshipStaking *SpaceshipStakingFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SpaceshipStakingOwnershipTransferred, 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 (*SpaceshipStakingFilterer) WatchRewardWithdrawn ¶
func (_SpaceshipStaking *SpaceshipStakingFilterer) WatchRewardWithdrawn(opts *bind.WatchOpts, sink chan<- *SpaceshipStakingRewardWithdrawn, missionId []*big.Int, player []common.Address) (event.Subscription, error)
WatchRewardWithdrawn is a free log subscription operation binding the contract event 0x3f0d190fee71fcedf315c1a691ca936a8893467ce62d0bb52e5643ded084fe46.
Solidity: event RewardWithdrawn(uint256 indexed missionId, address indexed player, uint256 investedTLM, uint256 rewardTLM, uint256 investedBNB)
type SpaceshipStakingMissionCreated ¶
type SpaceshipStakingMissionCreated struct { Id *big.Int Name string Raw types.Log // Blockchain specific contextual infos }
SpaceshipStakingMissionCreated represents a MissionCreated event raised by the SpaceshipStaking contract.
type SpaceshipStakingMissionCreatedIterator ¶
type SpaceshipStakingMissionCreatedIterator struct { Event *SpaceshipStakingMissionCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SpaceshipStakingMissionCreatedIterator is returned from FilterMissionCreated and is used to iterate over the raw logs and unpacked data for MissionCreated events raised by the SpaceshipStaking contract.
func (*SpaceshipStakingMissionCreatedIterator) Close ¶
func (it *SpaceshipStakingMissionCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SpaceshipStakingMissionCreatedIterator) Error ¶
func (it *SpaceshipStakingMissionCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SpaceshipStakingMissionCreatedIterator) Next ¶
func (it *SpaceshipStakingMissionCreatedIterator) 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 SpaceshipStakingMissionJoined ¶
type SpaceshipStakingMissionJoined struct { MissionId *big.Int Player common.Address SpaceshipCount *big.Int Raw types.Log // Blockchain specific contextual infos }
SpaceshipStakingMissionJoined represents a MissionJoined event raised by the SpaceshipStaking contract.
type SpaceshipStakingMissionJoinedIterator ¶
type SpaceshipStakingMissionJoinedIterator struct { Event *SpaceshipStakingMissionJoined // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SpaceshipStakingMissionJoinedIterator is returned from FilterMissionJoined and is used to iterate over the raw logs and unpacked data for MissionJoined events raised by the SpaceshipStaking contract.
func (*SpaceshipStakingMissionJoinedIterator) Close ¶
func (it *SpaceshipStakingMissionJoinedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SpaceshipStakingMissionJoinedIterator) Error ¶
func (it *SpaceshipStakingMissionJoinedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SpaceshipStakingMissionJoinedIterator) Next ¶
func (it *SpaceshipStakingMissionJoinedIterator) 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 SpaceshipStakingOwnershipTransferred ¶
type SpaceshipStakingOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
SpaceshipStakingOwnershipTransferred represents a OwnershipTransferred event raised by the SpaceshipStaking contract.
type SpaceshipStakingOwnershipTransferredIterator ¶
type SpaceshipStakingOwnershipTransferredIterator struct { Event *SpaceshipStakingOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SpaceshipStakingOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the SpaceshipStaking contract.
func (*SpaceshipStakingOwnershipTransferredIterator) Close ¶
func (it *SpaceshipStakingOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SpaceshipStakingOwnershipTransferredIterator) Error ¶
func (it *SpaceshipStakingOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SpaceshipStakingOwnershipTransferredIterator) Next ¶
func (it *SpaceshipStakingOwnershipTransferredIterator) 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 SpaceshipStakingRaw ¶
type SpaceshipStakingRaw struct {
Contract *SpaceshipStaking // Generic contract binding to access the raw methods on
}
SpaceshipStakingRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SpaceshipStakingRaw) Call ¶
func (_SpaceshipStaking *SpaceshipStakingRaw) 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 (*SpaceshipStakingRaw) Transact ¶
func (_SpaceshipStaking *SpaceshipStakingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SpaceshipStakingRaw) Transfer ¶
func (_SpaceshipStaking *SpaceshipStakingRaw) 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 SpaceshipStakingRewardWithdrawn ¶
type SpaceshipStakingRewardWithdrawn struct { MissionId *big.Int Player common.Address InvestedTLM *big.Int RewardTLM *big.Int InvestedBNB *big.Int Raw types.Log // Blockchain specific contextual infos }
SpaceshipStakingRewardWithdrawn represents a RewardWithdrawn event raised by the SpaceshipStaking contract.
type SpaceshipStakingRewardWithdrawnIterator ¶
type SpaceshipStakingRewardWithdrawnIterator struct { Event *SpaceshipStakingRewardWithdrawn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SpaceshipStakingRewardWithdrawnIterator is returned from FilterRewardWithdrawn and is used to iterate over the raw logs and unpacked data for RewardWithdrawn events raised by the SpaceshipStaking contract.
func (*SpaceshipStakingRewardWithdrawnIterator) Close ¶
func (it *SpaceshipStakingRewardWithdrawnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SpaceshipStakingRewardWithdrawnIterator) Error ¶
func (it *SpaceshipStakingRewardWithdrawnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SpaceshipStakingRewardWithdrawnIterator) Next ¶
func (it *SpaceshipStakingRewardWithdrawnIterator) 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 SpaceshipStakingSession ¶
type SpaceshipStakingSession struct { Contract *SpaceshipStaking // 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 }
SpaceshipStakingSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*SpaceshipStakingSession) CalculateReward ¶
func (_SpaceshipStaking *SpaceshipStakingSession) CalculateReward(_missionNum *big.Int) (ISpaceshipStakingRewardInfo, error)
CalculateReward is a free data retrieval call binding the contract method 0xd2d7231f.
Solidity: function calculateReward(uint256 _missionNum) view returns((uint256,uint256,uint256,uint256))
func (*SpaceshipStakingSession) CreateMission ¶
func (_SpaceshipStaking *SpaceshipStakingSession) CreateMission(_newMission ISpaceshipStakingMission) (*types.Transaction, error)
CreateMission is a paid mutator transaction binding the contract method 0xe2d18bee.
Solidity: function createMission((uint64,uint64,uint64,uint64,uint256,uint256,uint256,string,string,uint256[],uint256[],(address,string)) _newMission) returns(bool)
func (*SpaceshipStakingSession) JoinToMission ¶
func (_SpaceshipStaking *SpaceshipStakingSession) JoinToMission(_missionNum *big.Int, _spaceshipCount *big.Int) (*types.Transaction, error)
JoinToMission is a paid mutator transaction binding the contract method 0x4dc2fd6b.
Solidity: function joinToMission(uint256 _missionNum, uint256 _spaceshipCount) payable returns(bool)
func (*SpaceshipStakingSession) MissionToUsersInvest ¶
func (_SpaceshipStaking *SpaceshipStakingSession) MissionToUsersInvest(arg0 *big.Int, arg1 common.Address) (struct { Ships *big.Int BNBAmount *big.Int }, error)
MissionToUsersInvest is a free data retrieval call binding the contract method 0x25fbc80d.
Solidity: function missionToUsersInvest(uint256 , address ) view returns(uint256 ships, uint256 BNBAmount)
func (*SpaceshipStakingSession) Missions ¶
func (_SpaceshipStaking *SpaceshipStakingSession) Missions(arg0 *big.Int) (struct { BoardingTime uint64 LaunchTime uint64 Duration uint64 MissionType uint64 Reward *big.Int SpaceshipCost *big.Int MissionPower *big.Int Description string Name string NftInfo ISpaceshipStakingNFTInfo }, error)
Missions is a free data retrieval call binding the contract method 0x2c8fe526.
Solidity: function missions(uint256 ) view returns(uint64 boardingTime, uint64 launchTime, uint64 duration, uint64 missionType, uint256 reward, uint256 spaceshipCost, uint256 missionPower, string description, string name, (address,string) nftInfo)
func (*SpaceshipStakingSession) MissionsCount ¶
func (_SpaceshipStaking *SpaceshipStakingSession) MissionsCount() (*big.Int, error)
MissionsCount is a free data retrieval call binding the contract method 0xb6d25495.
Solidity: function missionsCount() view returns(uint256)
func (*SpaceshipStakingSession) Owner ¶
func (_SpaceshipStaking *SpaceshipStakingSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*SpaceshipStakingSession) RenounceOwnership ¶
func (_SpaceshipStaking *SpaceshipStakingSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*SpaceshipStakingSession) TLMToken ¶
func (_SpaceshipStaking *SpaceshipStakingSession) TLMToken() (common.Address, error)
TLMToken is a free data retrieval call binding the contract method 0x47e4beee.
Solidity: function TLMToken() view returns(address)
func (*SpaceshipStakingSession) TransferOwnership ¶
func (_SpaceshipStaking *SpaceshipStakingSession) 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 (*SpaceshipStakingSession) Withdraw ¶
func (_SpaceshipStaking *SpaceshipStakingSession) Withdraw(_missionNum *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 _missionNum) returns(bool)
type SpaceshipStakingTransactor ¶
type SpaceshipStakingTransactor struct {
// contains filtered or unexported fields
}
SpaceshipStakingTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSpaceshipStakingTransactor ¶
func NewSpaceshipStakingTransactor(address common.Address, transactor bind.ContractTransactor) (*SpaceshipStakingTransactor, error)
NewSpaceshipStakingTransactor creates a new write-only instance of SpaceshipStaking, bound to a specific deployed contract.
func (*SpaceshipStakingTransactor) CreateMission ¶
func (_SpaceshipStaking *SpaceshipStakingTransactor) CreateMission(opts *bind.TransactOpts, _newMission ISpaceshipStakingMission) (*types.Transaction, error)
CreateMission is a paid mutator transaction binding the contract method 0xe2d18bee.
Solidity: function createMission((uint64,uint64,uint64,uint64,uint256,uint256,uint256,string,string,uint256[],uint256[],(address,string)) _newMission) returns(bool)
func (*SpaceshipStakingTransactor) JoinToMission ¶
func (_SpaceshipStaking *SpaceshipStakingTransactor) JoinToMission(opts *bind.TransactOpts, _missionNum *big.Int, _spaceshipCount *big.Int) (*types.Transaction, error)
JoinToMission is a paid mutator transaction binding the contract method 0x4dc2fd6b.
Solidity: function joinToMission(uint256 _missionNum, uint256 _spaceshipCount) payable returns(bool)
func (*SpaceshipStakingTransactor) RenounceOwnership ¶
func (_SpaceshipStaking *SpaceshipStakingTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*SpaceshipStakingTransactor) TransferOwnership ¶
func (_SpaceshipStaking *SpaceshipStakingTransactor) 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 (*SpaceshipStakingTransactor) Withdraw ¶
func (_SpaceshipStaking *SpaceshipStakingTransactor) Withdraw(opts *bind.TransactOpts, _missionNum *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 _missionNum) returns(bool)
type SpaceshipStakingTransactorRaw ¶
type SpaceshipStakingTransactorRaw struct {
Contract *SpaceshipStakingTransactor // Generic write-only contract binding to access the raw methods on
}
SpaceshipStakingTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SpaceshipStakingTransactorRaw) Transact ¶
func (_SpaceshipStaking *SpaceshipStakingTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SpaceshipStakingTransactorRaw) Transfer ¶
func (_SpaceshipStaking *SpaceshipStakingTransactorRaw) 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 SpaceshipStakingTransactorSession ¶
type SpaceshipStakingTransactorSession struct { Contract *SpaceshipStakingTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SpaceshipStakingTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*SpaceshipStakingTransactorSession) CreateMission ¶
func (_SpaceshipStaking *SpaceshipStakingTransactorSession) CreateMission(_newMission ISpaceshipStakingMission) (*types.Transaction, error)
CreateMission is a paid mutator transaction binding the contract method 0xe2d18bee.
Solidity: function createMission((uint64,uint64,uint64,uint64,uint256,uint256,uint256,string,string,uint256[],uint256[],(address,string)) _newMission) returns(bool)
func (*SpaceshipStakingTransactorSession) JoinToMission ¶
func (_SpaceshipStaking *SpaceshipStakingTransactorSession) JoinToMission(_missionNum *big.Int, _spaceshipCount *big.Int) (*types.Transaction, error)
JoinToMission is a paid mutator transaction binding the contract method 0x4dc2fd6b.
Solidity: function joinToMission(uint256 _missionNum, uint256 _spaceshipCount) payable returns(bool)
func (*SpaceshipStakingTransactorSession) RenounceOwnership ¶
func (_SpaceshipStaking *SpaceshipStakingTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*SpaceshipStakingTransactorSession) TransferOwnership ¶
func (_SpaceshipStaking *SpaceshipStakingTransactorSession) 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 (*SpaceshipStakingTransactorSession) Withdraw ¶
func (_SpaceshipStaking *SpaceshipStakingTransactorSession) Withdraw(_missionNum *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 _missionNum) returns(bool)