Documentation
¶
Index ¶
- Constants
- Variables
- func Execute() error
- func ReadCLIFile(cliPath string) (ids.ID, map[string]string, error)
- type ClusterInfo
- type Controller
- type Handler
- func (h *Handler) DefaultActor() (ids.ID, *cli.PrivateKey, chain.AuthFactory, *hrpc.JSONRPCClient, ...)
- func (h *Handler) DefaultNuklaiVMJSONRPCClient(checkAllChains bool) ([]*nrpc.JSONRPCClient, error)
- func (*Handler) GetAllValidators(ctx context.Context, cli *nrpc.JSONRPCClient) ([]*emission.Validator, error)
- func (*Handler) GetAssetInfo(ctx context.Context, ncli *nrpc.JSONRPCClient, addr codec.Address, ...) ([]byte, uint8, uint64, ids.ID, error)
- func (*Handler) GetEmissionInfo(ctx context.Context, cli *nrpc.JSONRPCClient) (uint64, uint64, uint64, uint64, uint64, uint64, string, uint64, error)
- func (*Handler) GetStakedValidators(ctx context.Context, cli *nrpc.JSONRPCClient) ([]*emission.Validator, error)
- func (*Handler) GetUserStake(ctx context.Context, cli *nrpc.JSONRPCClient, owner codec.Address, ...) (uint64, uint64, uint64, string, string, error)
- func (*Handler) GetValidatorStake(ctx context.Context, cli *nrpc.JSONRPCClient, nodeID ids.NodeID) (uint64, uint64, uint64, uint64, string, string, error)
- func (h *Handler) ImportCLI(cliPath string) error
- func (h *Handler) Root() *cli.Handler
Constants ¶
View Source
const ( TimeLayout = "2006-01-02 15:04:05" Auto = "auto" Manual = "manual" )
Define the layout that matches the provided date string Note: the reference time is "Mon Jan 2 15:04:05 MST 2006" in Go
Variables ¶
Functions ¶
Types ¶
type ClusterInfo ¶
type ClusterInfo struct { ChainID string `yaml:"CHAIN_ID"` // ids.ID requires "first and last characters to be quotes" SubnetID string `yaml:"SUBNET_ID"` APIs []struct { CloudID string `yaml:"CLOUD_ID"` IP string `yaml:"IP"` Region string `yaml:"REGION"` } `yaml:"API"` Validators []struct { CloudID string `yaml:"CLOUD_ID"` IP string `yaml:"IP"` Region string `yaml:"REGION"` NodeID string `yaml:"NODE_ID"` } `yaml:"VALIDATOR"` }
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(databasePath string) *Controller
func (*Controller) DatabasePath ¶
func (c *Controller) DatabasePath() string
func (*Controller) Decimals ¶
func (*Controller) Decimals() uint8
func (*Controller) ParseAddress ¶
func (*Controller) ParseAddress(address string) (codec.Address, error)
func (*Controller) Symbol ¶
func (*Controller) Symbol() string
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) DefaultActor ¶
func (h *Handler) DefaultActor() ( ids.ID, *cli.PrivateKey, chain.AuthFactory, *hrpc.JSONRPCClient, *hrpc.WebSocketClient, *nrpc.JSONRPCClient, error, )
func (*Handler) DefaultNuklaiVMJSONRPCClient ¶
func (h *Handler) DefaultNuklaiVMJSONRPCClient(checkAllChains bool) ([]*nrpc.JSONRPCClient, error)
func (*Handler) GetAllValidators ¶
func (*Handler) GetAssetInfo ¶
func (*Handler) GetEmissionInfo ¶
func (*Handler) GetStakedValidators ¶
func (*Handler) GetUserStake ¶
func (*Handler) GetValidatorStake ¶
Click to show internal directories.
Click to hide internal directories.