Documentation ¶
Index ¶
- type Caller
- func (c *Caller) DelegationsByValidator(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, ...) (delegationID *big.Int, err error)
- func (c *Caller) GetAndUpdateEarnedBountyAmountOf(ctx context.Context, bc *bind.BoundContract, validatorID *big.Int, ...) (earned, endMonth *big.Int, err error)
- func (c *Caller) GetDelegation(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, ...) (d structs.Delegation, err error)
- func (c *Caller) GetDelegationState(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, ...) (ds structs.DelegationState, err error)
- func (c *Caller) GetDelegationWithInfo(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, ...) (d structs.Delegation, err error)
- func (c *Caller) GetEarnedFeeAmountOf(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, ...) (earned, endMonth *big.Int, err error)
- func (c *Caller) GetHolderDelegations(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, ...) (delegations []structs.Delegation, err error)
- func (c *Caller) GetNode(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, ...) (n structs.Node, err error)
- func (c *Caller) GetNodeAddress(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, ...) (adr common.Address, err error)
- func (c *Caller) GetNodeNextRewardDate(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, ...) (t time.Time, err error)
- func (c *Caller) GetNodeWithInfo(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, ...) (n structs.Node, err error)
- func (c *Caller) GetPendingDelegationsTokens(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, ...) (amount *big.Int, err error)
- func (c *Caller) GetValidator(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, ...) (v structs.Validator, err error)
- func (c *Caller) GetValidatorDelegations(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, ...) (delegations []structs.Delegation, err error)
- func (c *Caller) GetValidatorDelegationsIDs(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, ...) (delegationsIDs []uint64, err error)
- func (c *Caller) GetValidatorNodes(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, ...) (nodes []structs.Node, err error)
- func (c *Caller) GetValidatorWithInfo(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, ...) (v structs.Validator, err error)
- func (c *Caller) IsAuthorizedValidator(ctx context.Context, bc *bind.BoundContract, blockNumber uint64, ...) (isAuthorized bool, err error)
- type DelegationRaw
- type EthereumNodeType
- type IdError
- type ValidatorDelegationsCache
- type ValidatorRaw
- Bugs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Caller ¶
type Caller struct { NodeType EthereumNodeType // contains filtered or unexported fields }
Caller caller for SKALE api functions The only reason this exists is to be used as an interface binding all it's methods
func NewCaller ¶
func NewCaller(NodeType EthereumNodeType, requestsPerSecond float64) *Caller
func (*Caller) DelegationsByValidator ¶
func (*Caller) GetAndUpdateEarnedBountyAmountOf ¶
func (*Caller) GetDelegation ¶
func (*Caller) GetDelegationState ¶
func (*Caller) GetDelegationWithInfo ¶
func (c *Caller) GetDelegationWithInfo(ctx context.Context, bc transport.BoundContractCaller, blockNumber uint64, delegationID *big.Int) (d structs.Delegation, err error)
GetDelegationInfo delegation info with all parameters
func (*Caller) GetEarnedFeeAmountOf ¶
func (*Caller) GetHolderDelegations ¶
func (*Caller) GetNodeAddress ¶
func (*Caller) GetNodeNextRewardDate ¶
func (*Caller) GetNodeWithInfo ¶
func (*Caller) GetPendingDelegationsTokens ¶
func (*Caller) GetValidator ¶
func (*Caller) GetValidatorDelegations ¶
func (*Caller) GetValidatorDelegationsIDs ¶
func (*Caller) GetValidatorNodes ¶
func (*Caller) GetValidatorWithInfo ¶
type DelegationRaw ¶
type DelegationRaw struct { Holder common.Address `json:"holder"` ValidatorID *big.Int `json:"validatorId"` Amount *big.Int `json:"amount"` DelegationPeriod *big.Int `json:"delegationPeriod"` Created *big.Int `json:"created"` Started *big.Int `json:"started"` Finished *big.Int `json:"finished"` Info string `json:"info"` }
Delegation structure - to be used with abi.ConvertType method and it is decoding data using... field order. this is why we cannot change field order
type EthereumNodeType ¶
type EthereumNodeType uint8
const ( ENTArchive EthereumNodeType = iota ENTRecent )
type ValidatorRaw ¶
type ValidatorRaw struct { Name string `json:"name"` ValidatorAddress common.Address `json:"validatorAddress"` RequestedAddress common.Address `json:"requestedAddress"` Description string `json:"description"` FeeRate *big.Int `json:"feeRate"` RegistrationTime *big.Int `json:"registrationTime"` MinimumDelegationAmount *big.Int `json:"minimumDelegationAmount"` AcceptNewRequests bool `json:"acceptNewRequests"` }
Validator structure - to be used with abi.ConvertType method It is decoding data using... field order. this is why we cannot change field order
Notes ¶
Bugs ¶
recover from panic after format update!
Click to show internal directories.
Click to hide internal directories.