contract

package
v1.2.4-rc Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelegationInfo

type DelegationInfo struct {
	Amount        *big.Int
	CreatedAt     *big.Int
	UndelegatedAt *big.Int
}

type Grant

type Grant struct {
	Amount        *big.Int
	Withdrawn     *big.Int
	Staked        *big.Int
	RevokedAmount *big.Int
	RevokedAt     *big.Int
	Grantee       common.Address
}

type GrantStakeDetails

type GrantStakeDetails struct {
	GrantId         *big.Int
	Amount          *big.Int
	StakingContract common.Address
}

type GrantUnlockingSchedule

type GrantUnlockingSchedule struct {
	GrantManager common.Address
	Duration     *big.Int
	Start        *big.Int
	Cliff        *big.Int
	Policy       common.Address
}

type KeepRandomBeaconOperator

type KeepRandomBeaconOperator struct {
	// contains filtered or unexported fields
}

func NewKeepRandomBeaconOperator

func NewKeepRandomBeaconOperator(
	contractAddress common.Address,
	accountKey *keystore.Key,
	backend bind.ContractBackend,
	nonceManager *ethutil.NonceManager,
	miningWaiter *ethutil.MiningWaiter,
	transactionMutex *sync.Mutex,
) (*KeepRandomBeaconOperator, error)

func (*KeepRandomBeaconOperator) AddServiceContract

func (krbo *KeepRandomBeaconOperator) AddServiceContract(
	serviceContract common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconOperator) AddServiceContractGasEstimate

func (krbo *KeepRandomBeaconOperator) AddServiceContractGasEstimate(
	serviceContract common.Address,
) (uint64, error)

func (*KeepRandomBeaconOperator) CallAddServiceContract

func (krbo *KeepRandomBeaconOperator) CallAddServiceContract(
	serviceContract common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconOperator) CallCreateGroup

func (krbo *KeepRandomBeaconOperator) CallCreateGroup(
	_newEntry *big.Int,
	submitter common.Address,
	value *big.Int,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconOperator) CallGenesis

func (krbo *KeepRandomBeaconOperator) CallGenesis(
	value *big.Int,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconOperator) CallRelayEntry

func (krbo *KeepRandomBeaconOperator) CallRelayEntry(
	_groupSignature []uint8,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconOperator) CallRemoveServiceContract

func (krbo *KeepRandomBeaconOperator) CallRemoveServiceContract(
	serviceContract common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconOperator) CallReportRelayEntryTimeout

func (krbo *KeepRandomBeaconOperator) CallReportRelayEntryTimeout(
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconOperator) CallReportUnauthorizedSigning

func (krbo *KeepRandomBeaconOperator) CallReportUnauthorizedSigning(
	groupIndex *big.Int,
	signedMsgSender []uint8,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconOperator) CallSign

func (krbo *KeepRandomBeaconOperator) CallSign(
	requestId *big.Int,
	previousEntry []uint8,
	value *big.Int,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconOperator) CallSubmitDkgResult

func (krbo *KeepRandomBeaconOperator) CallSubmitDkgResult(
	submitterMemberIndex *big.Int,
	groupPubKey []uint8,
	misbehaved []uint8,
	signatures []uint8,
	signingMembersIndexes []*big.Int,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconOperator) CallSubmitTicket

func (krbo *KeepRandomBeaconOperator) CallSubmitTicket(
	ticket [32]uint8,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconOperator) CallWithdrawGroupMemberRewards

func (krbo *KeepRandomBeaconOperator) CallWithdrawGroupMemberRewards(
	operator common.Address,
	groupIndex *big.Int,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconOperator) CreateGroup

func (krbo *KeepRandomBeaconOperator) CreateGroup(
	_newEntry *big.Int,
	submitter common.Address,
	value *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconOperator) CreateGroupGasEstimate

func (krbo *KeepRandomBeaconOperator) CreateGroupGasEstimate(
	_newEntry *big.Int,
	submitter common.Address,
) (uint64, error)

func (*KeepRandomBeaconOperator) CurrentRequestGroupIndex added in v1.1.2

func (krbo *KeepRandomBeaconOperator) CurrentRequestGroupIndex() (*big.Int, error)

func (*KeepRandomBeaconOperator) CurrentRequestGroupIndexAtBlock added in v1.1.2

func (krbo *KeepRandomBeaconOperator) CurrentRequestGroupIndexAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) CurrentRequestPreviousEntry added in v1.1.2

func (krbo *KeepRandomBeaconOperator) CurrentRequestPreviousEntry() ([]uint8, error)

func (*KeepRandomBeaconOperator) CurrentRequestPreviousEntryAtBlock added in v1.1.2

func (krbo *KeepRandomBeaconOperator) CurrentRequestPreviousEntryAtBlock(
	blockNumber *big.Int,
) ([]uint8, error)

func (*KeepRandomBeaconOperator) CurrentRequestStartBlock added in v1.1.2

func (krbo *KeepRandomBeaconOperator) CurrentRequestStartBlock() (*big.Int, error)

func (*KeepRandomBeaconOperator) CurrentRequestStartBlockAtBlock added in v1.1.2

func (krbo *KeepRandomBeaconOperator) CurrentRequestStartBlockAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) DkgGasEstimate

func (krbo *KeepRandomBeaconOperator) DkgGasEstimate() (*big.Int, error)

func (*KeepRandomBeaconOperator) DkgGasEstimateAtBlock

func (krbo *KeepRandomBeaconOperator) DkgGasEstimateAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) DkgSubmitterReimbursementFee

func (krbo *KeepRandomBeaconOperator) DkgSubmitterReimbursementFee() (*big.Int, error)

func (*KeepRandomBeaconOperator) DkgSubmitterReimbursementFeeAtBlock

func (krbo *KeepRandomBeaconOperator) DkgSubmitterReimbursementFeeAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) EntryVerificationFee

func (krbo *KeepRandomBeaconOperator) EntryVerificationFee() (*big.Int, error)

func (*KeepRandomBeaconOperator) EntryVerificationFeeAtBlock

func (krbo *KeepRandomBeaconOperator) EntryVerificationFeeAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) EntryVerificationGasEstimate

func (krbo *KeepRandomBeaconOperator) EntryVerificationGasEstimate() (*big.Int, error)

func (*KeepRandomBeaconOperator) EntryVerificationGasEstimateAtBlock

func (krbo *KeepRandomBeaconOperator) EntryVerificationGasEstimateAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) GasPriceCeiling

func (krbo *KeepRandomBeaconOperator) GasPriceCeiling() (*big.Int, error)

func (*KeepRandomBeaconOperator) GasPriceCeilingAtBlock

func (krbo *KeepRandomBeaconOperator) GasPriceCeilingAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) Genesis

func (krbo *KeepRandomBeaconOperator) Genesis(
	value *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconOperator) GenesisGasEstimate

func (krbo *KeepRandomBeaconOperator) GenesisGasEstimate() (uint64, error)

func (*KeepRandomBeaconOperator) GetFirstActiveGroupIndex

func (krbo *KeepRandomBeaconOperator) GetFirstActiveGroupIndex() (*big.Int, error)

func (*KeepRandomBeaconOperator) GetFirstActiveGroupIndexAtBlock

func (krbo *KeepRandomBeaconOperator) GetFirstActiveGroupIndexAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) GetGroupMemberRewards

func (krbo *KeepRandomBeaconOperator) GetGroupMemberRewards(
	groupPubKey []uint8,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) GetGroupMemberRewardsAtBlock

func (krbo *KeepRandomBeaconOperator) GetGroupMemberRewardsAtBlock(
	groupPubKey []uint8,
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) GetGroupMembers

func (krbo *KeepRandomBeaconOperator) GetGroupMembers(
	groupPubKey []uint8,
) ([]common.Address, error)

func (*KeepRandomBeaconOperator) GetGroupMembersAtBlock

func (krbo *KeepRandomBeaconOperator) GetGroupMembersAtBlock(
	groupPubKey []uint8,
	blockNumber *big.Int,
) ([]common.Address, error)

func (*KeepRandomBeaconOperator) GetGroupPublicKey

func (krbo *KeepRandomBeaconOperator) GetGroupPublicKey(
	groupIndex *big.Int,
) ([]uint8, error)

func (*KeepRandomBeaconOperator) GetGroupPublicKeyAtBlock

func (krbo *KeepRandomBeaconOperator) GetGroupPublicKeyAtBlock(
	groupIndex *big.Int,
	blockNumber *big.Int,
) ([]uint8, error)

func (*KeepRandomBeaconOperator) GroupCreationFee

func (krbo *KeepRandomBeaconOperator) GroupCreationFee() (*big.Int, error)

func (*KeepRandomBeaconOperator) GroupCreationFeeAtBlock

func (krbo *KeepRandomBeaconOperator) GroupCreationFeeAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) GroupMemberBaseReward

func (krbo *KeepRandomBeaconOperator) GroupMemberBaseReward() (*big.Int, error)

func (*KeepRandomBeaconOperator) GroupMemberBaseRewardAtBlock

func (krbo *KeepRandomBeaconOperator) GroupMemberBaseRewardAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) GroupProfitFee

func (krbo *KeepRandomBeaconOperator) GroupProfitFee() (*big.Int, error)

func (*KeepRandomBeaconOperator) GroupProfitFeeAtBlock

func (krbo *KeepRandomBeaconOperator) GroupProfitFeeAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) GroupSelectionGasEstimate

func (krbo *KeepRandomBeaconOperator) GroupSelectionGasEstimate() (*big.Int, error)

func (*KeepRandomBeaconOperator) GroupSelectionGasEstimateAtBlock

func (krbo *KeepRandomBeaconOperator) GroupSelectionGasEstimateAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) GroupSize

func (krbo *KeepRandomBeaconOperator) GroupSize() (*big.Int, error)

func (*KeepRandomBeaconOperator) GroupSizeAtBlock

func (krbo *KeepRandomBeaconOperator) GroupSizeAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) GroupThreshold

func (krbo *KeepRandomBeaconOperator) GroupThreshold() (*big.Int, error)

func (*KeepRandomBeaconOperator) GroupThresholdAtBlock

func (krbo *KeepRandomBeaconOperator) GroupThresholdAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) HasMinimumStake

func (krbo *KeepRandomBeaconOperator) HasMinimumStake(
	staker common.Address,
) (bool, error)

func (*KeepRandomBeaconOperator) HasMinimumStakeAtBlock

func (krbo *KeepRandomBeaconOperator) HasMinimumStakeAtBlock(
	staker common.Address,
	blockNumber *big.Int,
) (bool, error)

func (*KeepRandomBeaconOperator) HasWithdrawnRewards added in v1.1.2

func (krbo *KeepRandomBeaconOperator) HasWithdrawnRewards(
	operator common.Address,
	groupIndex *big.Int,
) (bool, error)

func (*KeepRandomBeaconOperator) HasWithdrawnRewardsAtBlock added in v1.1.2

func (krbo *KeepRandomBeaconOperator) HasWithdrawnRewardsAtBlock(
	operator common.Address,
	groupIndex *big.Int,
	blockNumber *big.Int,
) (bool, error)

func (*KeepRandomBeaconOperator) IsEntryInProgress added in v1.1.2

func (krbo *KeepRandomBeaconOperator) IsEntryInProgress() (bool, error)

func (*KeepRandomBeaconOperator) IsEntryInProgressAtBlock added in v1.1.2

func (krbo *KeepRandomBeaconOperator) IsEntryInProgressAtBlock(
	blockNumber *big.Int,
) (bool, error)

func (*KeepRandomBeaconOperator) IsGroupRegistered

func (krbo *KeepRandomBeaconOperator) IsGroupRegistered(
	groupPubKey []uint8,
) (bool, error)

func (*KeepRandomBeaconOperator) IsGroupRegisteredAtBlock

func (krbo *KeepRandomBeaconOperator) IsGroupRegisteredAtBlock(
	groupPubKey []uint8,
	blockNumber *big.Int,
) (bool, error)

func (*KeepRandomBeaconOperator) IsGroupSelectionPossible

func (krbo *KeepRandomBeaconOperator) IsGroupSelectionPossible() (bool, error)

func (*KeepRandomBeaconOperator) IsGroupSelectionPossibleAtBlock

func (krbo *KeepRandomBeaconOperator) IsGroupSelectionPossibleAtBlock(
	blockNumber *big.Int,
) (bool, error)

func (*KeepRandomBeaconOperator) IsStaleGroup

func (krbo *KeepRandomBeaconOperator) IsStaleGroup(
	groupPubKey []uint8,
) (bool, error)

func (*KeepRandomBeaconOperator) IsStaleGroupAtBlock

func (krbo *KeepRandomBeaconOperator) IsStaleGroupAtBlock(
	groupPubKey []uint8,
	blockNumber *big.Int,
) (bool, error)

func (*KeepRandomBeaconOperator) NumberOfGroups

func (krbo *KeepRandomBeaconOperator) NumberOfGroups() (*big.Int, error)

func (*KeepRandomBeaconOperator) NumberOfGroupsAtBlock

func (krbo *KeepRandomBeaconOperator) NumberOfGroupsAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) RelayEntry

func (krbo *KeepRandomBeaconOperator) RelayEntry(
	_groupSignature []uint8,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconOperator) RelayEntryGasEstimate

func (krbo *KeepRandomBeaconOperator) RelayEntryGasEstimate(
	_groupSignature []uint8,
) (uint64, error)

func (*KeepRandomBeaconOperator) RelayEntryTimeout

func (krbo *KeepRandomBeaconOperator) RelayEntryTimeout() (*big.Int, error)

func (*KeepRandomBeaconOperator) RelayEntryTimeoutAtBlock

func (krbo *KeepRandomBeaconOperator) RelayEntryTimeoutAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) RemoveServiceContract

func (krbo *KeepRandomBeaconOperator) RemoveServiceContract(
	serviceContract common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconOperator) RemoveServiceContractGasEstimate

func (krbo *KeepRandomBeaconOperator) RemoveServiceContractGasEstimate(
	serviceContract common.Address,
) (uint64, error)

func (*KeepRandomBeaconOperator) ReportRelayEntryTimeout

func (krbo *KeepRandomBeaconOperator) ReportRelayEntryTimeout(

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconOperator) ReportRelayEntryTimeoutGasEstimate

func (krbo *KeepRandomBeaconOperator) ReportRelayEntryTimeoutGasEstimate() (uint64, error)

func (*KeepRandomBeaconOperator) ReportUnauthorizedSigning

func (krbo *KeepRandomBeaconOperator) ReportUnauthorizedSigning(
	groupIndex *big.Int,
	signedMsgSender []uint8,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconOperator) ReportUnauthorizedSigningGasEstimate

func (krbo *KeepRandomBeaconOperator) ReportUnauthorizedSigningGasEstimate(
	groupIndex *big.Int,
	signedMsgSender []uint8,
) (uint64, error)

func (*KeepRandomBeaconOperator) ResultPublicationBlockStep

func (krbo *KeepRandomBeaconOperator) ResultPublicationBlockStep() (*big.Int, error)

func (*KeepRandomBeaconOperator) ResultPublicationBlockStepAtBlock

func (krbo *KeepRandomBeaconOperator) ResultPublicationBlockStepAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) SelectedParticipants

func (krbo *KeepRandomBeaconOperator) SelectedParticipants() ([]common.Address, error)

func (*KeepRandomBeaconOperator) SelectedParticipantsAtBlock

func (krbo *KeepRandomBeaconOperator) SelectedParticipantsAtBlock(
	blockNumber *big.Int,
) ([]common.Address, error)

func (*KeepRandomBeaconOperator) Sign

func (krbo *KeepRandomBeaconOperator) Sign(
	requestId *big.Int,
	previousEntry []uint8,
	value *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconOperator) SignGasEstimate

func (krbo *KeepRandomBeaconOperator) SignGasEstimate(
	requestId *big.Int,
	previousEntry []uint8,
) (uint64, error)

func (*KeepRandomBeaconOperator) SubmitDkgResult

func (krbo *KeepRandomBeaconOperator) SubmitDkgResult(
	submitterMemberIndex *big.Int,
	groupPubKey []uint8,
	misbehaved []uint8,
	signatures []uint8,
	signingMembersIndexes []*big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconOperator) SubmitDkgResultGasEstimate

func (krbo *KeepRandomBeaconOperator) SubmitDkgResultGasEstimate(
	submitterMemberIndex *big.Int,
	groupPubKey []uint8,
	misbehaved []uint8,
	signatures []uint8,
	signingMembersIndexes []*big.Int,
) (uint64, error)

func (*KeepRandomBeaconOperator) SubmitTicket

func (krbo *KeepRandomBeaconOperator) SubmitTicket(
	ticket [32]uint8,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconOperator) SubmitTicketGasEstimate

func (krbo *KeepRandomBeaconOperator) SubmitTicketGasEstimate(
	ticket [32]uint8,
) (uint64, error)

func (*KeepRandomBeaconOperator) SubmittedTickets

func (krbo *KeepRandomBeaconOperator) SubmittedTickets() ([]uint64, error)

func (*KeepRandomBeaconOperator) SubmittedTicketsAtBlock

func (krbo *KeepRandomBeaconOperator) SubmittedTicketsAtBlock(
	blockNumber *big.Int,
) ([]uint64, error)

func (*KeepRandomBeaconOperator) TicketSubmissionTimeout

func (krbo *KeepRandomBeaconOperator) TicketSubmissionTimeout() (*big.Int, error)

func (*KeepRandomBeaconOperator) TicketSubmissionTimeoutAtBlock

func (krbo *KeepRandomBeaconOperator) TicketSubmissionTimeoutAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconOperator) WatchDkgResultSubmittedEvent

func (krbo *KeepRandomBeaconOperator) WatchDkgResultSubmittedEvent(
	success keepRandomBeaconOperatorDkgResultSubmittedEventFunc,
	fail func(err error) error,
) (subscription.EventSubscription, error)

func (*KeepRandomBeaconOperator) WatchGroupMemberRewardsWithdrawn

func (krbo *KeepRandomBeaconOperator) WatchGroupMemberRewardsWithdrawn(
	success keepRandomBeaconOperatorGroupMemberRewardsWithdrawnFunc,
	fail func(err error) error,
	beneficiaryFilter []common.Address,
) (subscription.EventSubscription, error)

func (*KeepRandomBeaconOperator) WatchGroupSelectionStarted

func (krbo *KeepRandomBeaconOperator) WatchGroupSelectionStarted(
	success keepRandomBeaconOperatorGroupSelectionStartedFunc,
	fail func(err error) error,
) (subscription.EventSubscription, error)

func (*KeepRandomBeaconOperator) WatchOnGroupRegistered

func (krbo *KeepRandomBeaconOperator) WatchOnGroupRegistered(
	success keepRandomBeaconOperatorOnGroupRegisteredFunc,
	fail func(err error) error,
) (subscription.EventSubscription, error)

func (*KeepRandomBeaconOperator) WatchRelayEntryRequested

func (krbo *KeepRandomBeaconOperator) WatchRelayEntryRequested(
	success keepRandomBeaconOperatorRelayEntryRequestedFunc,
	fail func(err error) error,
) (subscription.EventSubscription, error)

func (*KeepRandomBeaconOperator) WatchRelayEntrySubmitted

func (krbo *KeepRandomBeaconOperator) WatchRelayEntrySubmitted(
	success keepRandomBeaconOperatorRelayEntrySubmittedFunc,
	fail func(err error) error,
) (subscription.EventSubscription, error)

func (*KeepRandomBeaconOperator) WatchRelayEntryTimeoutReported

func (krbo *KeepRandomBeaconOperator) WatchRelayEntryTimeoutReported(
	success keepRandomBeaconOperatorRelayEntryTimeoutReportedFunc,
	fail func(err error) error,
	groupIndexFilter []*big.Int,
) (subscription.EventSubscription, error)

func (*KeepRandomBeaconOperator) WatchUnauthorizedSigningReported

func (krbo *KeepRandomBeaconOperator) WatchUnauthorizedSigningReported(
	success keepRandomBeaconOperatorUnauthorizedSigningReportedFunc,
	fail func(err error) error,
	groupIndexFilter []*big.Int,
) (subscription.EventSubscription, error)

func (*KeepRandomBeaconOperator) WithdrawGroupMemberRewards

func (krbo *KeepRandomBeaconOperator) WithdrawGroupMemberRewards(
	operator common.Address,
	groupIndex *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconOperator) WithdrawGroupMemberRewardsGasEstimate

func (krbo *KeepRandomBeaconOperator) WithdrawGroupMemberRewardsGasEstimate(
	operator common.Address,
	groupIndex *big.Int,
) (uint64, error)

type KeepRandomBeaconService

type KeepRandomBeaconService struct {
	// contains filtered or unexported fields
}

func NewKeepRandomBeaconService

func NewKeepRandomBeaconService(
	contractAddress common.Address,
	accountKey *keystore.Key,
	backend bind.ContractBackend,
	nonceManager *ethutil.NonceManager,
	miningWaiter *ethutil.MiningWaiter,
	transactionMutex *sync.Mutex,
) (*KeepRandomBeaconService, error)

func (*KeepRandomBeaconService) AddOperatorContract

func (krbs *KeepRandomBeaconService) AddOperatorContract(
	operatorContract common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconService) AddOperatorContractGasEstimate

func (krbs *KeepRandomBeaconService) AddOperatorContractGasEstimate(
	operatorContract common.Address,
) (uint64, error)

func (*KeepRandomBeaconService) BaseCallbackGas

func (krbs *KeepRandomBeaconService) BaseCallbackGas() (*big.Int, error)

func (*KeepRandomBeaconService) BaseCallbackGasAtBlock

func (krbs *KeepRandomBeaconService) BaseCallbackGasAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconService) CallAddOperatorContract

func (krbs *KeepRandomBeaconService) CallAddOperatorContract(
	operatorContract common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconService) CallEntryCreated

func (krbs *KeepRandomBeaconService) CallEntryCreated(
	requestId *big.Int,
	entry []uint8,
	submitter common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconService) CallExecuteCallback

func (krbs *KeepRandomBeaconService) CallExecuteCallback(
	requestId *big.Int,
	entry *big.Int,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconService) CallFundDkgFeePool

func (krbs *KeepRandomBeaconService) CallFundDkgFeePool(
	value *big.Int,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconService) CallFundRequestSubsidyFeePool

func (krbs *KeepRandomBeaconService) CallFundRequestSubsidyFeePool(
	value *big.Int,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconService) CallInitialize

func (krbs *KeepRandomBeaconService) CallInitialize(
	dkgContributionMargin *big.Int,
	registry common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconService) CallRemoveOperatorContract

func (krbs *KeepRandomBeaconService) CallRemoveOperatorContract(
	operatorContract common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconService) CallRequestRelayEntry

func (krbs *KeepRandomBeaconService) CallRequestRelayEntry(
	value *big.Int,
	blockNumber *big.Int,
) (*big.Int, error)

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconService) CallRequestRelayEntry0

func (krbs *KeepRandomBeaconService) CallRequestRelayEntry0(
	callbackContract common.Address,
	callbackGas *big.Int,
	value *big.Int,
	blockNumber *big.Int,
) (*big.Int, error)

Non-mutating call, not a transaction submission.

func (*KeepRandomBeaconService) CallbackSurplusRecipient added in v1.1.2

func (krbs *KeepRandomBeaconService) CallbackSurplusRecipient(
	requestId *big.Int,
) (common.Address, error)

func (*KeepRandomBeaconService) CallbackSurplusRecipientAtBlock added in v1.1.2

func (krbs *KeepRandomBeaconService) CallbackSurplusRecipientAtBlock(
	requestId *big.Int,
	blockNumber *big.Int,
) (common.Address, error)

func (*KeepRandomBeaconService) DkgContributionMargin added in v1.1.2

func (krbs *KeepRandomBeaconService) DkgContributionMargin() (*big.Int, error)

func (*KeepRandomBeaconService) DkgContributionMarginAtBlock added in v1.1.2

func (krbs *KeepRandomBeaconService) DkgContributionMarginAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconService) DkgFeePool added in v1.1.2

func (krbs *KeepRandomBeaconService) DkgFeePool() (*big.Int, error)

func (*KeepRandomBeaconService) DkgFeePoolAtBlock added in v1.1.2

func (krbs *KeepRandomBeaconService) DkgFeePoolAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconService) EntryCreated

func (krbs *KeepRandomBeaconService) EntryCreated(
	requestId *big.Int,
	entry []uint8,
	submitter common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconService) EntryCreatedGasEstimate

func (krbs *KeepRandomBeaconService) EntryCreatedGasEstimate(
	requestId *big.Int,
	entry []uint8,
	submitter common.Address,
) (uint64, error)

func (*KeepRandomBeaconService) EntryFeeBreakdown

func (krbs *KeepRandomBeaconService) EntryFeeBreakdown() (entryFeeBreakdown, error)

func (*KeepRandomBeaconService) EntryFeeBreakdownAtBlock

func (krbs *KeepRandomBeaconService) EntryFeeBreakdownAtBlock(
	blockNumber *big.Int,
) (entryFeeBreakdown, error)

func (*KeepRandomBeaconService) EntryFeeEstimate

func (krbs *KeepRandomBeaconService) EntryFeeEstimate(
	callbackGas *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconService) EntryFeeEstimateAtBlock

func (krbs *KeepRandomBeaconService) EntryFeeEstimateAtBlock(
	callbackGas *big.Int,
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconService) ExecuteCallback

func (krbs *KeepRandomBeaconService) ExecuteCallback(
	requestId *big.Int,
	entry *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconService) ExecuteCallbackGasEstimate

func (krbs *KeepRandomBeaconService) ExecuteCallbackGasEstimate(
	requestId *big.Int,
	entry *big.Int,
) (uint64, error)

func (*KeepRandomBeaconService) FundDkgFeePool

func (krbs *KeepRandomBeaconService) FundDkgFeePool(
	value *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconService) FundDkgFeePoolGasEstimate

func (krbs *KeepRandomBeaconService) FundDkgFeePoolGasEstimate() (uint64, error)

func (*KeepRandomBeaconService) FundRequestSubsidyFeePool

func (krbs *KeepRandomBeaconService) FundRequestSubsidyFeePool(
	value *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconService) FundRequestSubsidyFeePoolGasEstimate

func (krbs *KeepRandomBeaconService) FundRequestSubsidyFeePoolGasEstimate() (uint64, error)

func (*KeepRandomBeaconService) Initialize

func (krbs *KeepRandomBeaconService) Initialize(
	dkgContributionMargin *big.Int,
	registry common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconService) InitializeGasEstimate

func (krbs *KeepRandomBeaconService) InitializeGasEstimate(
	dkgContributionMargin *big.Int,
	registry common.Address,
) (uint64, error)

func (*KeepRandomBeaconService) Initialized

func (krbs *KeepRandomBeaconService) Initialized() (bool, error)

func (*KeepRandomBeaconService) InitializedAtBlock

func (krbs *KeepRandomBeaconService) InitializedAtBlock(
	blockNumber *big.Int,
) (bool, error)

func (*KeepRandomBeaconService) RemoveOperatorContract

func (krbs *KeepRandomBeaconService) RemoveOperatorContract(
	operatorContract common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconService) RemoveOperatorContractGasEstimate

func (krbs *KeepRandomBeaconService) RemoveOperatorContractGasEstimate(
	operatorContract common.Address,
) (uint64, error)

func (*KeepRandomBeaconService) RequestRelayEntry

func (krbs *KeepRandomBeaconService) RequestRelayEntry(
	value *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconService) RequestRelayEntry0

func (krbs *KeepRandomBeaconService) RequestRelayEntry0(
	callbackContract common.Address,
	callbackGas *big.Int,
	value *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*KeepRandomBeaconService) RequestRelayEntry0GasEstimate

func (krbs *KeepRandomBeaconService) RequestRelayEntry0GasEstimate(
	callbackContract common.Address,
	callbackGas *big.Int,
) (uint64, error)

func (*KeepRandomBeaconService) RequestRelayEntryGasEstimate

func (krbs *KeepRandomBeaconService) RequestRelayEntryGasEstimate() (uint64, error)

func (*KeepRandomBeaconService) RequestSubsidyFeePool added in v1.1.2

func (krbs *KeepRandomBeaconService) RequestSubsidyFeePool() (*big.Int, error)

func (*KeepRandomBeaconService) RequestSubsidyFeePoolAtBlock added in v1.1.2

func (krbs *KeepRandomBeaconService) RequestSubsidyFeePoolAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*KeepRandomBeaconService) SelectOperatorContract

func (krbs *KeepRandomBeaconService) SelectOperatorContract(
	seed *big.Int,
) (common.Address, error)

func (*KeepRandomBeaconService) SelectOperatorContractAtBlock

func (krbs *KeepRandomBeaconService) SelectOperatorContractAtBlock(
	seed *big.Int,
	blockNumber *big.Int,
) (common.Address, error)

func (*KeepRandomBeaconService) Version

func (krbs *KeepRandomBeaconService) Version() (string, error)

func (*KeepRandomBeaconService) VersionAtBlock

func (krbs *KeepRandomBeaconService) VersionAtBlock(
	blockNumber *big.Int,
) (string, error)

func (*KeepRandomBeaconService) WatchRelayEntryGenerated

func (krbs *KeepRandomBeaconService) WatchRelayEntryGenerated(
	success keepRandomBeaconServiceRelayEntryGeneratedFunc,
	fail func(err error) error,
) (subscription.EventSubscription, error)

func (*KeepRandomBeaconService) WatchRelayEntryRequested

func (krbs *KeepRandomBeaconService) WatchRelayEntryRequested(
	success keepRandomBeaconServiceRelayEntryRequestedFunc,
	fail func(err error) error,
) (subscription.EventSubscription, error)

type Locks

type Locks struct {
	Creators    []common.Address
	Expirations []*big.Int
}

type TokenGrant

type TokenGrant struct {
	// contains filtered or unexported fields
}

func NewTokenGrant

func NewTokenGrant(
	contractAddress common.Address,
	accountKey *keystore.Key,
	backend bind.ContractBackend,
	nonceManager *ethutil.NonceManager,
	miningWaiter *ethutil.MiningWaiter,
	transactionMutex *sync.Mutex,
) (*TokenGrant, error)

func (*TokenGrant) AuthorizeStakingContract

func (tg *TokenGrant) AuthorizeStakingContract(
	_stakingContract common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenGrant) AuthorizeStakingContractGasEstimate

func (tg *TokenGrant) AuthorizeStakingContractGasEstimate(
	_stakingContract common.Address,
) (uint64, error)

func (*TokenGrant) AvailableToStake

func (tg *TokenGrant) AvailableToStake(
	_grantId *big.Int,
) (*big.Int, error)

func (*TokenGrant) AvailableToStakeAtBlock

func (tg *TokenGrant) AvailableToStakeAtBlock(
	_grantId *big.Int,
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenGrant) BalanceOf

func (tg *TokenGrant) BalanceOf(
	_owner common.Address,
) (*big.Int, error)

func (*TokenGrant) BalanceOfAtBlock

func (tg *TokenGrant) BalanceOfAtBlock(
	_owner common.Address,
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenGrant) Balances

func (tg *TokenGrant) Balances(
	arg0 common.Address,
) (*big.Int, error)

func (*TokenGrant) BalancesAtBlock

func (tg *TokenGrant) BalancesAtBlock(
	arg0 common.Address,
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenGrant) CallAuthorizeStakingContract

func (tg *TokenGrant) CallAuthorizeStakingContract(
	_stakingContract common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenGrant) CallCancelRevokedStake

func (tg *TokenGrant) CallCancelRevokedStake(
	_operator common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenGrant) CallCancelStake

func (tg *TokenGrant) CallCancelStake(
	_operator common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenGrant) CallReceiveApproval

func (tg *TokenGrant) CallReceiveApproval(
	_from common.Address,
	_amount *big.Int,
	_token common.Address,
	_extraData []uint8,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenGrant) CallRecoverStake

func (tg *TokenGrant) CallRecoverStake(
	_operator common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenGrant) CallRevoke

func (tg *TokenGrant) CallRevoke(
	_id *big.Int,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenGrant) CallStake

func (tg *TokenGrant) CallStake(
	_id *big.Int,
	_stakingContract common.Address,
	_amount *big.Int,
	_extraData []uint8,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenGrant) CallUndelegate

func (tg *TokenGrant) CallUndelegate(
	_operator common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenGrant) CallUndelegateRevoked

func (tg *TokenGrant) CallUndelegateRevoked(
	_operator common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenGrant) CallWithdraw

func (tg *TokenGrant) CallWithdraw(
	_id *big.Int,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenGrant) CallWithdrawRevoked

func (tg *TokenGrant) CallWithdrawRevoked(
	_id *big.Int,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenGrant) CancelRevokedStake

func (tg *TokenGrant) CancelRevokedStake(
	_operator common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenGrant) CancelRevokedStakeGasEstimate

func (tg *TokenGrant) CancelRevokedStakeGasEstimate(
	_operator common.Address,
) (uint64, error)

func (*TokenGrant) CancelStake

func (tg *TokenGrant) CancelStake(
	_operator common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenGrant) CancelStakeGasEstimate

func (tg *TokenGrant) CancelStakeGasEstimate(
	_operator common.Address,
) (uint64, error)

func (*TokenGrant) GetGrant

func (tg *TokenGrant) GetGrant(
	_id *big.Int,
) (Grant, error)

func (*TokenGrant) GetGrantAtBlock

func (tg *TokenGrant) GetGrantAtBlock(
	_id *big.Int,
	blockNumber *big.Int,
) (Grant, error)

func (*TokenGrant) GetGrantStakeDetails

func (tg *TokenGrant) GetGrantStakeDetails(
	operator common.Address,
) (GrantStakeDetails, error)

func (*TokenGrant) GetGrantStakeDetailsAtBlock

func (tg *TokenGrant) GetGrantStakeDetailsAtBlock(
	operator common.Address,
	blockNumber *big.Int,
) (GrantStakeDetails, error)

func (*TokenGrant) GetGrantUnlockingSchedule

func (tg *TokenGrant) GetGrantUnlockingSchedule(
	_id *big.Int,
) (GrantUnlockingSchedule, error)

func (*TokenGrant) GetGrantUnlockingScheduleAtBlock

func (tg *TokenGrant) GetGrantUnlockingScheduleAtBlock(
	_id *big.Int,
	blockNumber *big.Int,
) (GrantUnlockingSchedule, error)

func (*TokenGrant) GetGranteeOperators

func (tg *TokenGrant) GetGranteeOperators(
	grantee common.Address,
) ([]common.Address, error)

func (*TokenGrant) GetGranteeOperatorsAtBlock

func (tg *TokenGrant) GetGranteeOperatorsAtBlock(
	grantee common.Address,
	blockNumber *big.Int,
) ([]common.Address, error)

func (*TokenGrant) GetGrants

func (tg *TokenGrant) GetGrants(
	_granteeOrGrantManager common.Address,
) ([]*big.Int, error)

func (*TokenGrant) GetGrantsAtBlock

func (tg *TokenGrant) GetGrantsAtBlock(
	_granteeOrGrantManager common.Address,
	blockNumber *big.Int,
) ([]*big.Int, error)

func (*TokenGrant) GrantIndices

func (tg *TokenGrant) GrantIndices(
	arg0 common.Address,
	arg1 *big.Int,
) (*big.Int, error)

func (*TokenGrant) GrantIndicesAtBlock

func (tg *TokenGrant) GrantIndicesAtBlock(
	arg0 common.Address,
	arg1 *big.Int,
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenGrant) GrantStakes

func (tg *TokenGrant) GrantStakes(
	arg0 common.Address,
) (common.Address, error)

func (*TokenGrant) GrantStakesAtBlock

func (tg *TokenGrant) GrantStakesAtBlock(
	arg0 common.Address,
	blockNumber *big.Int,
) (common.Address, error)

func (*TokenGrant) GranteesToOperators

func (tg *TokenGrant) GranteesToOperators(
	arg0 common.Address,
	arg1 *big.Int,
) (common.Address, error)

func (*TokenGrant) GranteesToOperatorsAtBlock

func (tg *TokenGrant) GranteesToOperatorsAtBlock(
	arg0 common.Address,
	arg1 *big.Int,
	blockNumber *big.Int,
) (common.Address, error)

func (*TokenGrant) Grants

func (tg *TokenGrant) Grants(
	arg0 *big.Int,
) (grants, error)

func (*TokenGrant) GrantsAtBlock

func (tg *TokenGrant) GrantsAtBlock(
	arg0 *big.Int,
	blockNumber *big.Int,
) (grants, error)

func (*TokenGrant) NumGrants

func (tg *TokenGrant) NumGrants() (*big.Int, error)

func (*TokenGrant) NumGrantsAtBlock

func (tg *TokenGrant) NumGrantsAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenGrant) ReceiveApproval

func (tg *TokenGrant) ReceiveApproval(
	_from common.Address,
	_amount *big.Int,
	_token common.Address,
	_extraData []uint8,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenGrant) ReceiveApprovalGasEstimate

func (tg *TokenGrant) ReceiveApprovalGasEstimate(
	_from common.Address,
	_amount *big.Int,
	_token common.Address,
	_extraData []uint8,
) (uint64, error)

func (*TokenGrant) RecoverStake

func (tg *TokenGrant) RecoverStake(
	_operator common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenGrant) RecoverStakeGasEstimate

func (tg *TokenGrant) RecoverStakeGasEstimate(
	_operator common.Address,
) (uint64, error)

func (*TokenGrant) Revoke

func (tg *TokenGrant) Revoke(
	_id *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenGrant) RevokeGasEstimate

func (tg *TokenGrant) RevokeGasEstimate(
	_id *big.Int,
) (uint64, error)

func (*TokenGrant) Stake

func (tg *TokenGrant) Stake(
	_id *big.Int,
	_stakingContract common.Address,
	_amount *big.Int,
	_extraData []uint8,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenGrant) StakeBalanceOf

func (tg *TokenGrant) StakeBalanceOf(
	_address common.Address,
) (*big.Int, error)

func (*TokenGrant) StakeBalanceOfAtBlock

func (tg *TokenGrant) StakeBalanceOfAtBlock(
	_address common.Address,
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenGrant) StakeGasEstimate

func (tg *TokenGrant) StakeGasEstimate(
	_id *big.Int,
	_stakingContract common.Address,
	_amount *big.Int,
	_extraData []uint8,
) (uint64, error)

func (*TokenGrant) Token

func (tg *TokenGrant) Token() (common.Address, error)

func (*TokenGrant) TokenAtBlock

func (tg *TokenGrant) TokenAtBlock(
	blockNumber *big.Int,
) (common.Address, error)

func (*TokenGrant) Undelegate

func (tg *TokenGrant) Undelegate(
	_operator common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenGrant) UndelegateGasEstimate

func (tg *TokenGrant) UndelegateGasEstimate(
	_operator common.Address,
) (uint64, error)

func (*TokenGrant) UndelegateRevoked

func (tg *TokenGrant) UndelegateRevoked(
	_operator common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenGrant) UndelegateRevokedGasEstimate

func (tg *TokenGrant) UndelegateRevokedGasEstimate(
	_operator common.Address,
) (uint64, error)

func (*TokenGrant) UnlockedAmount

func (tg *TokenGrant) UnlockedAmount(
	_id *big.Int,
) (*big.Int, error)

func (*TokenGrant) UnlockedAmountAtBlock

func (tg *TokenGrant) UnlockedAmountAtBlock(
	_id *big.Int,
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenGrant) WatchStakingContractAuthorized added in v1.1.2

func (tg *TokenGrant) WatchStakingContractAuthorized(
	success tokenGrantStakingContractAuthorizedFunc,
	fail func(err error) error,
	grantManagerFilter []common.Address,
) (subscription.EventSubscription, error)

func (*TokenGrant) WatchTokenGrantCreated

func (tg *TokenGrant) WatchTokenGrantCreated(
	success tokenGrantTokenGrantCreatedFunc,
	fail func(err error) error,
) (subscription.EventSubscription, error)

func (*TokenGrant) WatchTokenGrantRevoked

func (tg *TokenGrant) WatchTokenGrantRevoked(
	success tokenGrantTokenGrantRevokedFunc,
	fail func(err error) error,
) (subscription.EventSubscription, error)

func (*TokenGrant) WatchTokenGrantStaked

func (tg *TokenGrant) WatchTokenGrantStaked(
	success tokenGrantTokenGrantStakedFunc,
	fail func(err error) error,
	grantIdFilter []*big.Int,
) (subscription.EventSubscription, error)

func (*TokenGrant) WatchTokenGrantWithdrawn

func (tg *TokenGrant) WatchTokenGrantWithdrawn(
	success tokenGrantTokenGrantWithdrawnFunc,
	fail func(err error) error,
	grantIdFilter []*big.Int,
) (subscription.EventSubscription, error)

func (*TokenGrant) Withdraw

func (tg *TokenGrant) Withdraw(
	_id *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenGrant) WithdrawGasEstimate

func (tg *TokenGrant) WithdrawGasEstimate(
	_id *big.Int,
) (uint64, error)

func (*TokenGrant) WithdrawRevoked

func (tg *TokenGrant) WithdrawRevoked(
	_id *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenGrant) WithdrawRevokedGasEstimate

func (tg *TokenGrant) WithdrawRevokedGasEstimate(
	_id *big.Int,
) (uint64, error)

func (*TokenGrant) Withdrawable

func (tg *TokenGrant) Withdrawable(
	_id *big.Int,
) (*big.Int, error)

func (*TokenGrant) WithdrawableAtBlock

func (tg *TokenGrant) WithdrawableAtBlock(
	_id *big.Int,
	blockNumber *big.Int,
) (*big.Int, error)

type TokenStaking

type TokenStaking struct {
	// contains filtered or unexported fields
}

func NewTokenStaking

func NewTokenStaking(
	contractAddress common.Address,
	accountKey *keystore.Key,
	backend bind.ContractBackend,
	nonceManager *ethutil.NonceManager,
	miningWaiter *ethutil.MiningWaiter,
	transactionMutex *sync.Mutex,
) (*TokenStaking, error)

func (*TokenStaking) ActiveStake

func (ts *TokenStaking) ActiveStake(
	_operator common.Address,
	_operatorContract common.Address,
) (*big.Int, error)

func (*TokenStaking) ActiveStakeAtBlock

func (ts *TokenStaking) ActiveStakeAtBlock(
	_operator common.Address,
	_operatorContract common.Address,
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenStaking) AuthorizeOperatorContract

func (ts *TokenStaking) AuthorizeOperatorContract(
	_operator common.Address,
	_operatorContract common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenStaking) AuthorizeOperatorContractGasEstimate

func (ts *TokenStaking) AuthorizeOperatorContractGasEstimate(
	_operator common.Address,
	_operatorContract common.Address,
) (uint64, error)

func (*TokenStaking) AuthorizerOf

func (ts *TokenStaking) AuthorizerOf(
	_operator common.Address,
) (common.Address, error)

func (*TokenStaking) AuthorizerOfAtBlock

func (ts *TokenStaking) AuthorizerOfAtBlock(
	_operator common.Address,
	blockNumber *big.Int,
) (common.Address, error)

func (*TokenStaking) BalanceOf

func (ts *TokenStaking) BalanceOf(
	_address common.Address,
) (*big.Int, error)

func (*TokenStaking) BalanceOfAtBlock

func (ts *TokenStaking) BalanceOfAtBlock(
	_address common.Address,
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenStaking) BeneficiaryOf

func (ts *TokenStaking) BeneficiaryOf(
	_operator common.Address,
) (common.Address, error)

func (*TokenStaking) BeneficiaryOfAtBlock

func (ts *TokenStaking) BeneficiaryOfAtBlock(
	_operator common.Address,
	blockNumber *big.Int,
) (common.Address, error)

func (*TokenStaking) CallAuthorizeOperatorContract

func (ts *TokenStaking) CallAuthorizeOperatorContract(
	_operator common.Address,
	_operatorContract common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenStaking) CallCancelStake

func (ts *TokenStaking) CallCancelStake(
	_operator common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenStaking) CallClaimDelegatedAuthority

func (ts *TokenStaking) CallClaimDelegatedAuthority(
	delegatedAuthoritySource common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenStaking) CallLockStake

func (ts *TokenStaking) CallLockStake(
	operator common.Address,
	duration *big.Int,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenStaking) CallReceiveApproval

func (ts *TokenStaking) CallReceiveApproval(
	_from common.Address,
	_value *big.Int,
	_token common.Address,
	_extraData []uint8,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenStaking) CallRecoverStake

func (ts *TokenStaking) CallRecoverStake(
	_operator common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenStaking) CallReleaseExpiredLock

func (ts *TokenStaking) CallReleaseExpiredLock(
	operator common.Address,
	operatorContract common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenStaking) CallSeize

func (ts *TokenStaking) CallSeize(
	amountToSeize *big.Int,
	rewardMultiplier *big.Int,
	tattletale common.Address,
	misbehavedOperators []common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenStaking) CallSlash

func (ts *TokenStaking) CallSlash(
	amountToSlash *big.Int,
	misbehavedOperators []common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenStaking) CallUndelegate

func (ts *TokenStaking) CallUndelegate(
	_operator common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenStaking) CallUndelegateAt

func (ts *TokenStaking) CallUndelegateAt(
	_operator common.Address,
	_undelegationTimestamp *big.Int,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenStaking) CallUnlockStake

func (ts *TokenStaking) CallUnlockStake(
	operator common.Address,
	blockNumber *big.Int,
) error

Non-mutating call, not a transaction submission.

func (*TokenStaking) CancelStake

func (ts *TokenStaking) CancelStake(
	_operator common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenStaking) CancelStakeGasEstimate

func (ts *TokenStaking) CancelStakeGasEstimate(
	_operator common.Address,
) (uint64, error)

func (*TokenStaking) ClaimDelegatedAuthority

func (ts *TokenStaking) ClaimDelegatedAuthority(
	delegatedAuthoritySource common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenStaking) ClaimDelegatedAuthorityGasEstimate

func (ts *TokenStaking) ClaimDelegatedAuthorityGasEstimate(
	delegatedAuthoritySource common.Address,
) (uint64, error)

func (*TokenStaking) EligibleStake

func (ts *TokenStaking) EligibleStake(
	_operator common.Address,
	_operatorContract common.Address,
) (*big.Int, error)

func (*TokenStaking) EligibleStakeAtBlock

func (ts *TokenStaking) EligibleStakeAtBlock(
	_operator common.Address,
	_operatorContract common.Address,
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenStaking) GetAuthoritySource

func (ts *TokenStaking) GetAuthoritySource(
	operatorContract common.Address,
) (common.Address, error)

func (*TokenStaking) GetAuthoritySourceAtBlock

func (ts *TokenStaking) GetAuthoritySourceAtBlock(
	operatorContract common.Address,
	blockNumber *big.Int,
) (common.Address, error)

func (*TokenStaking) GetDelegationInfo

func (ts *TokenStaking) GetDelegationInfo(
	_operator common.Address,
) (DelegationInfo, error)

func (*TokenStaking) GetDelegationInfoAtBlock

func (ts *TokenStaking) GetDelegationInfoAtBlock(
	_operator common.Address,
	blockNumber *big.Int,
) (DelegationInfo, error)

func (*TokenStaking) GetLocks

func (ts *TokenStaking) GetLocks(
	operator common.Address,
) (Locks, error)

func (*TokenStaking) GetLocksAtBlock

func (ts *TokenStaking) GetLocksAtBlock(
	operator common.Address,
	blockNumber *big.Int,
) (Locks, error)

func (*TokenStaking) HasMinimumStake

func (ts *TokenStaking) HasMinimumStake(
	staker common.Address,
	operatorContract common.Address,
) (bool, error)

func (*TokenStaking) HasMinimumStakeAtBlock

func (ts *TokenStaking) HasMinimumStakeAtBlock(
	staker common.Address,
	operatorContract common.Address,
	blockNumber *big.Int,
) (bool, error)

func (*TokenStaking) InitializationPeriod

func (ts *TokenStaking) InitializationPeriod() (*big.Int, error)

func (*TokenStaking) InitializationPeriodAtBlock

func (ts *TokenStaking) InitializationPeriodAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenStaking) IsAuthorizedForOperator

func (ts *TokenStaking) IsAuthorizedForOperator(
	_operator common.Address,
	_operatorContract common.Address,
) (bool, error)

func (*TokenStaking) IsAuthorizedForOperatorAtBlock

func (ts *TokenStaking) IsAuthorizedForOperatorAtBlock(
	_operator common.Address,
	_operatorContract common.Address,
	blockNumber *big.Int,
) (bool, error)

func (*TokenStaking) IsStakeLocked

func (ts *TokenStaking) IsStakeLocked(
	operator common.Address,
) (bool, error)

func (*TokenStaking) IsStakeLockedAtBlock

func (ts *TokenStaking) IsStakeLockedAtBlock(
	operator common.Address,
	blockNumber *big.Int,
) (bool, error)

func (*TokenStaking) LockStake

func (ts *TokenStaking) LockStake(
	operator common.Address,
	duration *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenStaking) LockStakeGasEstimate

func (ts *TokenStaking) LockStakeGasEstimate(
	operator common.Address,
	duration *big.Int,
) (uint64, error)

func (*TokenStaking) MaximumLockDuration

func (ts *TokenStaking) MaximumLockDuration() (*big.Int, error)

func (*TokenStaking) MaximumLockDurationAtBlock

func (ts *TokenStaking) MaximumLockDurationAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenStaking) MinimumStake

func (ts *TokenStaking) MinimumStake() (*big.Int, error)

func (*TokenStaking) MinimumStakeAtBlock

func (ts *TokenStaking) MinimumStakeAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenStaking) MinimumStakeBase

func (ts *TokenStaking) MinimumStakeBase() (*big.Int, error)

func (*TokenStaking) MinimumStakeBaseAtBlock

func (ts *TokenStaking) MinimumStakeBaseAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenStaking) MinimumStakeSchedule

func (ts *TokenStaking) MinimumStakeSchedule() (*big.Int, error)

func (*TokenStaking) MinimumStakeScheduleAtBlock

func (ts *TokenStaking) MinimumStakeScheduleAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenStaking) MinimumStakeScheduleStart

func (ts *TokenStaking) MinimumStakeScheduleStart() (*big.Int, error)

func (*TokenStaking) MinimumStakeScheduleStartAtBlock

func (ts *TokenStaking) MinimumStakeScheduleStartAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenStaking) MinimumStakeSteps

func (ts *TokenStaking) MinimumStakeSteps() (*big.Int, error)

func (*TokenStaking) MinimumStakeStepsAtBlock

func (ts *TokenStaking) MinimumStakeStepsAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenStaking) Operators

func (ts *TokenStaking) Operators(
	arg0 common.Address,
) (operators, error)

func (*TokenStaking) OperatorsAtBlock

func (ts *TokenStaking) OperatorsAtBlock(
	arg0 common.Address,
	blockNumber *big.Int,
) (operators, error)

func (*TokenStaking) OperatorsOf

func (ts *TokenStaking) OperatorsOf(
	_address common.Address,
) ([]common.Address, error)

func (*TokenStaking) OperatorsOfAtBlock

func (ts *TokenStaking) OperatorsOfAtBlock(
	_address common.Address,
	blockNumber *big.Int,
) ([]common.Address, error)

func (*TokenStaking) OwnerOf

func (ts *TokenStaking) OwnerOf(
	_operator common.Address,
) (common.Address, error)

func (*TokenStaking) OwnerOfAtBlock

func (ts *TokenStaking) OwnerOfAtBlock(
	_operator common.Address,
	blockNumber *big.Int,
) (common.Address, error)

func (*TokenStaking) OwnerOperators

func (ts *TokenStaking) OwnerOperators(
	arg0 common.Address,
	arg1 *big.Int,
) (common.Address, error)

func (*TokenStaking) OwnerOperatorsAtBlock

func (ts *TokenStaking) OwnerOperatorsAtBlock(
	arg0 common.Address,
	arg1 *big.Int,
	blockNumber *big.Int,
) (common.Address, error)

func (*TokenStaking) ReceiveApproval

func (ts *TokenStaking) ReceiveApproval(
	_from common.Address,
	_value *big.Int,
	_token common.Address,
	_extraData []uint8,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenStaking) ReceiveApprovalGasEstimate

func (ts *TokenStaking) ReceiveApprovalGasEstimate(
	_from common.Address,
	_value *big.Int,
	_token common.Address,
	_extraData []uint8,
) (uint64, error)

func (*TokenStaking) RecoverStake

func (ts *TokenStaking) RecoverStake(
	_operator common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenStaking) RecoverStakeGasEstimate

func (ts *TokenStaking) RecoverStakeGasEstimate(
	_operator common.Address,
) (uint64, error)

func (*TokenStaking) Registry

func (ts *TokenStaking) Registry() (common.Address, error)

func (*TokenStaking) RegistryAtBlock

func (ts *TokenStaking) RegistryAtBlock(
	blockNumber *big.Int,
) (common.Address, error)

func (*TokenStaking) ReleaseExpiredLock

func (ts *TokenStaking) ReleaseExpiredLock(
	operator common.Address,
	operatorContract common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenStaking) ReleaseExpiredLockGasEstimate

func (ts *TokenStaking) ReleaseExpiredLockGasEstimate(
	operator common.Address,
	operatorContract common.Address,
) (uint64, error)

func (*TokenStaking) Seize

func (ts *TokenStaking) Seize(
	amountToSeize *big.Int,
	rewardMultiplier *big.Int,
	tattletale common.Address,
	misbehavedOperators []common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenStaking) SeizeGasEstimate

func (ts *TokenStaking) SeizeGasEstimate(
	amountToSeize *big.Int,
	rewardMultiplier *big.Int,
	tattletale common.Address,
	misbehavedOperators []common.Address,
) (uint64, error)

func (*TokenStaking) Slash

func (ts *TokenStaking) Slash(
	amountToSlash *big.Int,
	misbehavedOperators []common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenStaking) SlashGasEstimate

func (ts *TokenStaking) SlashGasEstimate(
	amountToSlash *big.Int,
	misbehavedOperators []common.Address,
) (uint64, error)

func (*TokenStaking) Token

func (ts *TokenStaking) Token() (common.Address, error)

func (*TokenStaking) TokenAtBlock

func (ts *TokenStaking) TokenAtBlock(
	blockNumber *big.Int,
) (common.Address, error)

func (*TokenStaking) Undelegate

func (ts *TokenStaking) Undelegate(
	_operator common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenStaking) UndelegateAt

func (ts *TokenStaking) UndelegateAt(
	_operator common.Address,
	_undelegationTimestamp *big.Int,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenStaking) UndelegateAtGasEstimate

func (ts *TokenStaking) UndelegateAtGasEstimate(
	_operator common.Address,
	_undelegationTimestamp *big.Int,
) (uint64, error)

func (*TokenStaking) UndelegateGasEstimate

func (ts *TokenStaking) UndelegateGasEstimate(
	_operator common.Address,
) (uint64, error)

func (*TokenStaking) UndelegationPeriod

func (ts *TokenStaking) UndelegationPeriod() (*big.Int, error)

func (*TokenStaking) UndelegationPeriodAtBlock

func (ts *TokenStaking) UndelegationPeriodAtBlock(
	blockNumber *big.Int,
) (*big.Int, error)

func (*TokenStaking) UnlockStake

func (ts *TokenStaking) UnlockStake(
	operator common.Address,

	transactionOptions ...ethutil.TransactionOptions,
) (*types.Transaction, error)

Transaction submission.

func (*TokenStaking) UnlockStakeGasEstimate

func (ts *TokenStaking) UnlockStakeGasEstimate(
	operator common.Address,
) (uint64, error)

func (*TokenStaking) WatchExpiredLockReleased

func (ts *TokenStaking) WatchExpiredLockReleased(
	success tokenStakingExpiredLockReleasedFunc,
	fail func(err error) error,
	operatorFilter []common.Address,
) (subscription.EventSubscription, error)

func (*TokenStaking) WatchLockReleased

func (ts *TokenStaking) WatchLockReleased(
	success tokenStakingLockReleasedFunc,
	fail func(err error) error,
	operatorFilter []common.Address,
) (subscription.EventSubscription, error)

func (*TokenStaking) WatchRecoveredStake

func (ts *TokenStaking) WatchRecoveredStake(
	success tokenStakingRecoveredStakeFunc,
	fail func(err error) error,
) (subscription.EventSubscription, error)

func (*TokenStaking) WatchStakeLocked

func (ts *TokenStaking) WatchStakeLocked(
	success tokenStakingStakeLockedFunc,
	fail func(err error) error,
	operatorFilter []common.Address,
) (subscription.EventSubscription, error)

func (*TokenStaking) WatchStaked

func (ts *TokenStaking) WatchStaked(
	success tokenStakingStakedFunc,
	fail func(err error) error,
	fromFilter []common.Address,
) (subscription.EventSubscription, error)

func (*TokenStaking) WatchTokensSeized

func (ts *TokenStaking) WatchTokensSeized(
	success tokenStakingTokensSeizedFunc,
	fail func(err error) error,
	operatorFilter []common.Address,
) (subscription.EventSubscription, error)

func (*TokenStaking) WatchTokensSlashed

func (ts *TokenStaking) WatchTokensSlashed(
	success tokenStakingTokensSlashedFunc,
	fail func(err error) error,
	operatorFilter []common.Address,
) (subscription.EventSubscription, error)

func (*TokenStaking) WatchUndelegated

func (ts *TokenStaking) WatchUndelegated(
	success tokenStakingUndelegatedFunc,
	fail func(err error) error,
	operatorFilter []common.Address,
) (subscription.EventSubscription, error)

Jump to

Keyboard shortcuts

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