Documentation ¶
Overview ¶
Package client implements client. TODO: TO BE MIGRATED TO UPSTREAM AVALANCHEGO.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyID = errors.New("empty ID") ErrEmptyURI = errors.New("empty URI") ErrInvalidInterval = errors.New("invalid interval") )
View Source
var ( ErrInsufficientBalanceForGasFee = errors.New("insufficient balance for gas") ErrInsufficientBalanceForStakeAmount = errors.New("insufficient balance for stake amount") ErrUnexpectedSubnetID = errors.New("unexpected subnet ID") ErrEmptyValidator = errors.New("empty validator set") ErrAlreadyValidator = errors.New("already validator") ErrAlreadySubnetValidator = errors.New("already subnet validator") ErrNotValidatingPrimaryNetwork = errors.New("validator not validating the primary network") ErrInvalidSubnetValidatePeriod = errors.New("invalid subnet validate period") ErrInvalidValidatorData = errors.New("invalid validator data") ErrValidatorNotFound = errors.New("validator not found") // ref. "vms.platformvm". ErrWrongTxType = errors.New("wrong transaction type") ErrUnknownOwners = errors.New("unknown owners") ErrCantSign = errors.New("can't sign") )
Functions ¶
This section is empty.
Types ¶
type KeyStore ¶
type KeyStore interface {
Client() api_keystore.Client
}
type OpOption ¶
type OpOption func(*Op)
func WithChangeAddress ¶
func WithDryMode ¶
func WithRewardAddress ¶
func WithRewardShares ¶
func WithStakeAmount ¶
type P ¶
type P interface { Client() platformvm.Client Checker() internal_platformvm.Checker Balance(ctx context.Context, key key.Key) (uint64, error) CreateSubnet( ctx context.Context, key key.Key, opts ...OpOption, ) (subnetID ids.ID, took time.Duration, err error) AddValidator( ctx context.Context, k key.Key, nodeID ids.ShortID, start time.Time, end time.Time, opts ...OpOption, ) (took time.Duration, err error) AddSubnetValidator( ctx context.Context, k key.Key, subnetID ids.ID, nodeID ids.ShortID, start time.Time, end time.Time, weight uint64, opts ...OpOption, ) (took time.Duration, err error) CreateBlockchain( ctx context.Context, key key.Key, subnetID ids.ID, chainName string, vmID ids.ID, vmGenesis []byte, opts ...OpOption, ) (blkChainID ids.ID, took time.Duration, err error) GetValidator( ctx context.Context, rsubnetID ids.ID, nodeID ids.ShortID, ) (start time.Time, end time.Time, err error) }
Click to show internal directories.
Click to hide internal directories.