Documentation ¶
Index ¶
- type BinaryChecker
- type Client
- func (_m *Client) AddNode(ctx context.Context, name string, execPath string, opts ...client.OpOption) (*rpcpb.AddNodeResponse, error)
- func (_m *Client) AddPermissionlessDelegator(ctx context.Context, validatorSpec []*rpcpb.PermissionlessStakerSpec) (*rpcpb.AddPermissionlessDelegatorResponse, error)
- func (_m *Client) AddPermissionlessValidator(ctx context.Context, validatorSpec []*rpcpb.PermissionlessStakerSpec) (*rpcpb.AddPermissionlessValidatorResponse, error)
- func (_m *Client) AttachPeer(ctx context.Context, nodeName string) (*rpcpb.AttachPeerResponse, error)
- func (_m *Client) Close() error
- func (_m *Client) CreateBlockchains(ctx context.Context, blockchainSpecs []*rpcpb.BlockchainSpec) (*rpcpb.CreateBlockchainsResponse, error)
- func (_m *Client) CreateSubnets(ctx context.Context, subnetSpecs []*rpcpb.SubnetSpec) (*rpcpb.CreateSubnetsResponse, error)
- func (_m *Client) GetSnapshotNames(ctx context.Context) ([]string, error)
- func (_m *Client) Health(ctx context.Context) (*rpcpb.HealthResponse, error)
- func (_m *Client) ListBlockchains(ctx context.Context) ([]*rpcpb.CustomChainInfo, error)
- func (_m *Client) ListRpcs(ctx context.Context) ([]*rpcpb.BlockchainRpcs, error)
- func (_m *Client) ListSubnets(ctx context.Context) ([]string, error)
- func (_m *Client) LoadSnapshot(ctx context.Context, snapshotName string, opts ...client.OpOption) (*rpcpb.LoadSnapshotResponse, error)
- func (_m *Client) PauseNode(ctx context.Context, name string) (*rpcpb.PauseNodeResponse, error)
- func (_m *Client) Ping(ctx context.Context) (*rpcpb.PingResponse, error)
- func (_m *Client) RPCVersion(ctx context.Context) (*rpcpb.RPCVersionResponse, error)
- func (_m *Client) RemoveNode(ctx context.Context, name string) (*rpcpb.RemoveNodeResponse, error)
- func (_m *Client) RemoveSnapshot(ctx context.Context, snapshotName string) (*rpcpb.RemoveSnapshotResponse, error)
- func (_m *Client) RemoveSubnetValidator(ctx context.Context, validatorSpec []*rpcpb.RemoveSubnetValidatorSpec) (*rpcpb.RemoveSubnetValidatorResponse, error)
- func (_m *Client) RestartNode(ctx context.Context, name string, opts ...client.OpOption) (*rpcpb.RestartNodeResponse, error)
- func (_m *Client) ResumeNode(ctx context.Context, name string) (*rpcpb.ResumeNodeResponse, error)
- func (_m *Client) SaveSnapshot(ctx context.Context, snapshotName string) (*rpcpb.SaveSnapshotResponse, error)
- func (_m *Client) SendOutboundMessage(ctx context.Context, nodeName string, peerID string, op uint32, msgBody []byte) (*rpcpb.SendOutboundMessageResponse, error)
- func (_m *Client) Start(ctx context.Context, execPath string, opts ...client.OpOption) (*rpcpb.StartResponse, error)
- func (_m *Client) Status(ctx context.Context) (*rpcpb.StatusResponse, error)
- func (_m *Client) Stop(ctx context.Context) (*rpcpb.StopResponse, error)
- func (_m *Client) StreamStatus(ctx context.Context, pushInterval time.Duration) (<-chan *rpcpb.ClusterInfo, error)
- func (_m *Client) TransformElasticSubnets(ctx context.Context, elasticSubnetSpecs []*rpcpb.ElasticSubnetSpec) (*rpcpb.TransformElasticSubnetsResponse, error)
- func (_m *Client) URIs(ctx context.Context) ([]string, error)
- func (_m *Client) VMID(ctx context.Context, vmName string) (string, error)
- func (_m *Client) WaitForHealthy(ctx context.Context) (*rpcpb.WaitForHealthyResponse, error)
- type Downloader
- type InfoClient
- func (_m *InfoClient) GetBlockchainID(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (ids.ID, error)
- func (_m *InfoClient) GetNetworkID(_a0 context.Context, _a1 ...rpc.Option) (uint32, error)
- func (_m *InfoClient) GetNetworkName(_a0 context.Context, _a1 ...rpc.Option) (string, error)
- func (_m *InfoClient) GetNodeID(_a0 context.Context, _a1 ...rpc.Option) (ids.NodeID, *signer.ProofOfPossession, error)
- func (_m *InfoClient) GetNodeIP(_a0 context.Context, _a1 ...rpc.Option) (string, error)
- func (_m *InfoClient) GetNodeVersion(_a0 context.Context, _a1 ...rpc.Option) (*info.GetNodeVersionReply, error)
- func (_m *InfoClient) GetTxFee(_a0 context.Context, _a1 ...rpc.Option) (*info.GetTxFeeResponse, error)
- func (_m *InfoClient) GetVMs(_a0 context.Context, _a1 ...rpc.Option) (map[ids.ID][]string, error)
- func (_m *InfoClient) IsBootstrapped(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (bool, error)
- func (_m *InfoClient) Peers(_a0 context.Context, _a1 ...rpc.Option) ([]info.Peer, error)
- func (_m *InfoClient) Uptime(_a0 context.Context, _a1 ids.ID, _a2 ...rpc.Option) (*info.UptimeResponse, error)
- type Installer
- type PClient
- func (_m *PClient) AddDelegator(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error)
- func (_m *PClient) AddSubnetValidator(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error)
- func (_m *PClient) AddValidator(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error)
- func (_m *PClient) AwaitTxDecided(ctx context.Context, txID ids.ID, freq time.Duration, options ...rpc.Option) (*platformvm.GetTxStatusResponse, error)
- func (_m *PClient) CreateAddress(ctx context.Context, user api.UserPass, options ...rpc.Option) (ids.ShortID, error)
- func (_m *PClient) CreateBlockchain(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error)
- func (_m *PClient) CreateSubnet(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error)
- func (_m *PClient) ExportAVAX(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error)
- func (_m *PClient) ExportKey(ctx context.Context, user api.UserPass, address ids.ShortID, ...) (*secp256k1.PrivateKey, error)
- func (_m *PClient) GetAtomicUTXOs(ctx context.Context, addrs []ids.ShortID, sourceChain string, limit uint32, ...) ([][]byte, ids.ShortID, ids.ID, error)
- func (_m *PClient) GetBalance(ctx context.Context, addrs []ids.ShortID, options ...rpc.Option) (*platformvm.GetBalanceResponse, error)
- func (_m *PClient) GetBlock(ctx context.Context, blockID ids.ID, options ...rpc.Option) ([]byte, error)
- func (_m *PClient) GetBlockchainStatus(ctx context.Context, blockchainID string, options ...rpc.Option) (status.BlockchainStatus, error)
- func (_m *PClient) GetBlockchains(ctx context.Context, options ...rpc.Option) ([]platformvm.APIBlockchain, error)
- func (_m *PClient) GetCurrentSupply(ctx context.Context, subnetID ids.ID, options ...rpc.Option) (uint64, error)
- func (_m *PClient) GetCurrentValidators(ctx context.Context, subnetID ids.ID, nodeIDs []ids.NodeID, ...) ([]platformvm.ClientPermissionlessValidator, error)
- func (_m *PClient) GetHeight(ctx context.Context, options ...rpc.Option) (uint64, error)
- func (_m *PClient) GetMaxStakeAmount(ctx context.Context, subnetID ids.ID, nodeID ids.NodeID, startTime uint64, ...) (uint64, error)
- func (_m *PClient) GetMinStake(ctx context.Context, subnetID ids.ID, options ...rpc.Option) (uint64, uint64, error)
- func (_m *PClient) GetPendingValidators(ctx context.Context, subnetID ids.ID, nodeIDs []ids.NodeID, ...) ([]interface{}, []interface{}, error)
- func (_m *PClient) GetRewardUTXOs(_a0 context.Context, _a1 *api.GetTxArgs, _a2 ...rpc.Option) ([][]byte, error)
- func (_m *PClient) GetStake(ctx context.Context, addrs []ids.ShortID, validatorsOnly bool, ...) (map[ids.ID]uint64, [][]byte, error)
- func (_m *PClient) GetStakingAssetID(ctx context.Context, subnetID ids.ID, options ...rpc.Option) (ids.ID, error)
- func (_m *PClient) GetSubnets(ctx context.Context, subnetIDs []ids.ID, options ...rpc.Option) ([]platformvm.ClientSubnet, error)
- func (_m *PClient) GetTimestamp(ctx context.Context, options ...rpc.Option) (time.Time, error)
- func (_m *PClient) GetTotalStake(ctx context.Context, subnetID ids.ID, options ...rpc.Option) (uint64, error)
- func (_m *PClient) GetTx(ctx context.Context, txID ids.ID, options ...rpc.Option) ([]byte, error)
- func (_m *PClient) GetTxStatus(ctx context.Context, txID ids.ID, options ...rpc.Option) (*platformvm.GetTxStatusResponse, error)
- func (_m *PClient) GetUTXOs(ctx context.Context, addrs []ids.ShortID, limit uint32, ...) ([][]byte, ids.ShortID, ids.ID, error)
- func (_m *PClient) GetValidatorsAt(ctx context.Context, subnetID ids.ID, height uint64, options ...rpc.Option) (map[ids.NodeID]uint64, error)
- func (_m *PClient) ImportAVAX(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error)
- func (_m *PClient) ImportKey(ctx context.Context, user api.UserPass, privateKey *secp256k1.PrivateKey, ...) (ids.ShortID, error)
- func (_m *PClient) IssueTx(ctx context.Context, tx []byte, options ...rpc.Option) (ids.ID, error)
- func (_m *PClient) ListAddresses(ctx context.Context, user api.UserPass, options ...rpc.Option) ([]ids.ShortID, error)
- func (_m *PClient) SampleValidators(ctx context.Context, subnetID ids.ID, sampleSize uint16, options ...rpc.Option) ([]ids.NodeID, error)
- func (_m *PClient) ValidatedBy(ctx context.Context, blockchainID ids.ID, options ...rpc.Option) (ids.ID, error)
- func (_m *PClient) Validates(ctx context.Context, subnetID ids.ID, options ...rpc.Option) ([]ids.ID, error)
- type PluginBinaryDownloader
- type ProcessChecker
- type Prompter
- func (_m *Prompter) CaptureAddress(promptStr string) (common.Address, error)
- func (_m *Prompter) CaptureDate(promptStr string) (time.Time, error)
- func (_m *Prompter) CaptureEmail(promptStr string) (string, error)
- func (_m *Prompter) CaptureExistingFilepath(promptStr string) (string, error)
- func (_m *Prompter) CaptureFloat(promptStr string, validator func(float64) error) (float64, error)
- func (_m *Prompter) CaptureFujiDuration(promptStr string) (time.Duration, error)
- func (_m *Prompter) CaptureFutureDate(promptStr string, minDate time.Time) (time.Time, error)
- func (_m *Prompter) CaptureGitURL(promptStr string) (*url.URL, error)
- func (_m *Prompter) CaptureID(promptStr string) (ids.ID, error)
- func (_m *Prompter) CaptureIndex(promptStr string, options []interface{}) (int, error)
- func (_m *Prompter) CaptureList(promptStr string, options []string) (string, error)
- func (_m *Prompter) CaptureMainnetDuration(promptStr string) (time.Duration, error)
- func (_m *Prompter) CaptureNewFilepath(promptStr string) (string, error)
- func (_m *Prompter) CaptureNoYes(promptStr string) (bool, error)
- func (_m *Prompter) CaptureNodeID(promptStr string) (ids.NodeID, error)
- func (_m *Prompter) CapturePChainAddress(promptStr string, network models.Network) (string, error)
- func (_m *Prompter) CapturePositiveBigInt(promptStr string) (*big.Int, error)
- func (_m *Prompter) CapturePositiveInt(promptStr string, comparators []prompts.Comparator) (int, error)
- func (_m *Prompter) CaptureRepoBranch(promptStr string, repo string) (string, error)
- func (_m *Prompter) CaptureRepoFile(promptStr string, repo string, branch string) (string, error)
- func (_m *Prompter) CaptureString(promptStr string) (string, error)
- func (_m *Prompter) CaptureStringAllowEmpty(promptStr string) (string, error)
- func (_m *Prompter) CaptureURL(promptStr string) (string, error)
- func (_m *Prompter) CaptureUint32(promptStr string) (uint32, error)
- func (_m *Prompter) CaptureUint64(promptStr string) (uint64, error)
- func (_m *Prompter) CaptureUint64Compare(promptStr string, comparators []prompts.Comparator) (uint64, error)
- func (_m *Prompter) CaptureVersion(promptStr string) (string, error)
- func (_m *Prompter) CaptureWeight(promptStr string) (uint64, error)
- func (_m *Prompter) CaptureYesNo(promptStr string) (bool, error)
- func (_m *Prompter) ChooseKeyOrLedger(goal string) (bool, error)
- type Publisher
- type StatusChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryChecker ¶
BinaryChecker is an autogenerated mock type for the BinaryChecker type
func NewBinaryChecker ¶ added in v0.2.0
func NewBinaryChecker(t interface { mock.TestingT Cleanup(func()) }) *BinaryChecker
NewBinaryChecker creates a new instance of BinaryChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*BinaryChecker) ExistsWithVersion ¶ added in v0.2.2
func (_m *BinaryChecker) ExistsWithVersion(name string, binaryPrefix string, version string) (bool, error)
ExistsWithVersion provides a mock function with given fields: name, binaryPrefix, version
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v1.1.0
func NewClient(t mockConstructorTestingTNewClient) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Client) AddNode ¶
func (_m *Client) AddNode(ctx context.Context, name string, execPath string, opts ...client.OpOption) (*rpcpb.AddNodeResponse, error)
AddNode provides a mock function with given fields: ctx, name, execPath, opts
func (*Client) AddPermissionlessDelegator ¶ added in v1.2.6
func (_m *Client) AddPermissionlessDelegator(ctx context.Context, validatorSpec []*rpcpb.PermissionlessStakerSpec) (*rpcpb.AddPermissionlessDelegatorResponse, error)
AddPermissionlessDelegator provides a mock function with given fields: ctx, validatorSpec
func (*Client) AddPermissionlessValidator ¶ added in v1.2.2
func (_m *Client) AddPermissionlessValidator(ctx context.Context, validatorSpec []*rpcpb.PermissionlessStakerSpec) (*rpcpb.AddPermissionlessValidatorResponse, error)
AddPermissionlessValidator provides a mock function with given fields: ctx, validatorSpec
func (*Client) AttachPeer ¶
func (_m *Client) AttachPeer(ctx context.Context, nodeName string) (*rpcpb.AttachPeerResponse, error)
AttachPeer provides a mock function with given fields: ctx, nodeName
func (*Client) CreateBlockchains ¶
func (_m *Client) CreateBlockchains(ctx context.Context, blockchainSpecs []*rpcpb.BlockchainSpec) (*rpcpb.CreateBlockchainsResponse, error)
CreateBlockchains provides a mock function with given fields: ctx, blockchainSpecs
func (*Client) CreateSubnets ¶
func (_m *Client) CreateSubnets(ctx context.Context, subnetSpecs []*rpcpb.SubnetSpec) (*rpcpb.CreateSubnetsResponse, error)
CreateSubnets provides a mock function with given fields: ctx, subnetSpecs
func (*Client) GetSnapshotNames ¶
GetSnapshotNames provides a mock function with given fields: ctx
func (*Client) ListBlockchains ¶ added in v1.2.6
ListBlockchains provides a mock function with given fields: ctx
func (*Client) ListSubnets ¶ added in v1.2.6
ListSubnets provides a mock function with given fields: ctx
func (*Client) LoadSnapshot ¶
func (_m *Client) LoadSnapshot(ctx context.Context, snapshotName string, opts ...client.OpOption) (*rpcpb.LoadSnapshotResponse, error)
LoadSnapshot provides a mock function with given fields: ctx, snapshotName, opts
func (*Client) PauseNode ¶ added in v1.2.0
PauseNode provides a mock function with given fields: ctx, name
func (*Client) RPCVersion ¶ added in v1.1.1
RPCVersion provides a mock function with given fields: ctx
func (*Client) RemoveNode ¶
RemoveNode provides a mock function with given fields: ctx, name
func (*Client) RemoveSnapshot ¶
func (_m *Client) RemoveSnapshot(ctx context.Context, snapshotName string) (*rpcpb.RemoveSnapshotResponse, error)
RemoveSnapshot provides a mock function with given fields: ctx, snapshotName
func (*Client) RemoveSubnetValidator ¶ added in v1.2.2
func (_m *Client) RemoveSubnetValidator(ctx context.Context, validatorSpec []*rpcpb.RemoveSubnetValidatorSpec) (*rpcpb.RemoveSubnetValidatorResponse, error)
RemoveSubnetValidator provides a mock function with given fields: ctx, validatorSpec
func (*Client) RestartNode ¶
func (_m *Client) RestartNode(ctx context.Context, name string, opts ...client.OpOption) (*rpcpb.RestartNodeResponse, error)
RestartNode provides a mock function with given fields: ctx, name, opts
func (*Client) ResumeNode ¶ added in v1.2.0
ResumeNode provides a mock function with given fields: ctx, name
func (*Client) SaveSnapshot ¶
func (_m *Client) SaveSnapshot(ctx context.Context, snapshotName string) (*rpcpb.SaveSnapshotResponse, error)
SaveSnapshot provides a mock function with given fields: ctx, snapshotName
func (*Client) SendOutboundMessage ¶
func (_m *Client) SendOutboundMessage(ctx context.Context, nodeName string, peerID string, op uint32, msgBody []byte) (*rpcpb.SendOutboundMessageResponse, error)
SendOutboundMessage provides a mock function with given fields: ctx, nodeName, peerID, op, msgBody
func (*Client) Start ¶
func (_m *Client) Start(ctx context.Context, execPath string, opts ...client.OpOption) (*rpcpb.StartResponse, error)
Start provides a mock function with given fields: ctx, execPath, opts
func (*Client) StreamStatus ¶
func (_m *Client) StreamStatus(ctx context.Context, pushInterval time.Duration) (<-chan *rpcpb.ClusterInfo, error)
StreamStatus provides a mock function with given fields: ctx, pushInterval
func (*Client) TransformElasticSubnets ¶ added in v1.2.1
func (_m *Client) TransformElasticSubnets(ctx context.Context, elasticSubnetSpecs []*rpcpb.ElasticSubnetSpec) (*rpcpb.TransformElasticSubnetsResponse, error)
TransformElasticSubnets provides a mock function with given fields: ctx, elasticSubnetSpecs
func (*Client) WaitForHealthy ¶ added in v1.1.0
WaitForHealthy provides a mock function with given fields: ctx
type Downloader ¶ added in v1.0.1
Downloader is an autogenerated mock type for the Downloader type
func NewDownloader ¶ added in v1.0.1
func NewDownloader(t interface { mock.TestingT Cleanup(func()) }) *Downloader
NewDownloader creates a new instance of Downloader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Downloader) Download ¶ added in v1.0.1
func (_m *Downloader) Download(url string) ([]byte, error)
Download provides a mock function with given fields: url
func (*Downloader) GetAllReleasesForRepo ¶ added in v1.0.3
func (_m *Downloader) GetAllReleasesForRepo(org string, repo string) ([]string, error)
GetAllReleasesForRepo provides a mock function with given fields: org, repo
func (*Downloader) GetLatestReleaseVersion ¶ added in v1.0.1
func (_m *Downloader) GetLatestReleaseVersion(releaseURL string) (string, error)
GetLatestReleaseVersion provides a mock function with given fields: releaseURL
type InfoClient ¶ added in v1.0.0
InfoClient is an autogenerated mock type for the Client type
func NewInfoClient ¶ added in v1.0.0
func NewInfoClient(t mockConstructorTestingTNewInfoClient) *InfoClient
NewInfoClient creates a new instance of InfoClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*InfoClient) GetBlockchainID ¶ added in v1.0.0
func (_m *InfoClient) GetBlockchainID(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (ids.ID, error)
GetBlockchainID provides a mock function with given fields: _a0, _a1, _a2
func (*InfoClient) GetNetworkID ¶ added in v1.0.0
GetNetworkID provides a mock function with given fields: _a0, _a1
func (*InfoClient) GetNetworkName ¶ added in v1.0.0
GetNetworkName provides a mock function with given fields: _a0, _a1
func (*InfoClient) GetNodeID ¶ added in v1.0.0
func (_m *InfoClient) GetNodeID(_a0 context.Context, _a1 ...rpc.Option) (ids.NodeID, *signer.ProofOfPossession, error)
GetNodeID provides a mock function with given fields: _a0, _a1
func (*InfoClient) GetNodeIP ¶ added in v1.0.0
GetNodeIP provides a mock function with given fields: _a0, _a1
func (*InfoClient) GetNodeVersion ¶ added in v1.0.0
func (_m *InfoClient) GetNodeVersion(_a0 context.Context, _a1 ...rpc.Option) (*info.GetNodeVersionReply, error)
GetNodeVersion provides a mock function with given fields: _a0, _a1
func (*InfoClient) GetTxFee ¶ added in v1.0.0
func (_m *InfoClient) GetTxFee(_a0 context.Context, _a1 ...rpc.Option) (*info.GetTxFeeResponse, error)
GetTxFee provides a mock function with given fields: _a0, _a1
func (*InfoClient) GetVMs ¶ added in v1.0.0
GetVMs provides a mock function with given fields: _a0, _a1
func (*InfoClient) IsBootstrapped ¶ added in v1.0.0
func (_m *InfoClient) IsBootstrapped(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (bool, error)
IsBootstrapped provides a mock function with given fields: _a0, _a1, _a2
type Installer ¶ added in v0.2.2
Installer is an autogenerated mock type for the Installer type
func NewInstaller ¶ added in v0.2.2
NewInstaller creates a new instance of Installer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type PClient ¶ added in v0.2.1
PClient is an autogenerated mock type for the PClient type
func NewPClient ¶ added in v1.1.1
func NewPClient(t mockConstructorTestingTNewPClient) *PClient
NewPClient creates a new instance of PClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PClient) AddDelegator ¶ added in v0.2.1
func (_m *PClient) AddDelegator(ctx context.Context, user api.UserPass, from []ids.ShortID, changeAddr ids.ShortID, rewardAddress ids.ShortID, nodeID ids.NodeID, stakeAmount uint64, startTime uint64, endTime uint64, options ...rpc.Option) (ids.ID, error)
AddDelegator provides a mock function with given fields: ctx, user, from, changeAddr, rewardAddress, nodeID, stakeAmount, startTime, endTime, options
func (*PClient) AddSubnetValidator ¶ added in v0.2.1
func (_m *PClient) AddSubnetValidator(ctx context.Context, user api.UserPass, from []ids.ShortID, changeAddr ids.ShortID, subnetID ids.ID, nodeID ids.NodeID, stakeAmount uint64, startTime uint64, endTime uint64, options ...rpc.Option) (ids.ID, error)
AddSubnetValidator provides a mock function with given fields: ctx, user, from, changeAddr, subnetID, nodeID, stakeAmount, startTime, endTime, options
func (*PClient) AddValidator ¶ added in v0.2.1
func (_m *PClient) AddValidator(ctx context.Context, user api.UserPass, from []ids.ShortID, changeAddr ids.ShortID, rewardAddress ids.ShortID, nodeID ids.NodeID, stakeAmount uint64, startTime uint64, endTime uint64, delegationFeeRate float32, options ...rpc.Option) (ids.ID, error)
AddValidator provides a mock function with given fields: ctx, user, from, changeAddr, rewardAddress, nodeID, stakeAmount, startTime, endTime, delegationFeeRate, options
func (*PClient) AwaitTxDecided ¶ added in v0.2.1
func (_m *PClient) AwaitTxDecided(ctx context.Context, txID ids.ID, freq time.Duration, options ...rpc.Option) (*platformvm.GetTxStatusResponse, error)
AwaitTxDecided provides a mock function with given fields: ctx, txID, freq, options
func (*PClient) CreateAddress ¶ added in v0.2.1
func (_m *PClient) CreateAddress(ctx context.Context, user api.UserPass, options ...rpc.Option) (ids.ShortID, error)
CreateAddress provides a mock function with given fields: ctx, user, options
func (*PClient) CreateBlockchain ¶ added in v0.2.1
func (_m *PClient) CreateBlockchain(ctx context.Context, user api.UserPass, from []ids.ShortID, changeAddr ids.ShortID, subnetID ids.ID, vmID string, fxIDs []string, name string, genesisData []byte, options ...rpc.Option) (ids.ID, error)
CreateBlockchain provides a mock function with given fields: ctx, user, from, changeAddr, subnetID, vmID, fxIDs, name, genesisData, options
func (*PClient) CreateSubnet ¶ added in v0.2.1
func (_m *PClient) CreateSubnet(ctx context.Context, user api.UserPass, from []ids.ShortID, changeAddr ids.ShortID, controlKeys []ids.ShortID, threshold uint32, options ...rpc.Option) (ids.ID, error)
CreateSubnet provides a mock function with given fields: ctx, user, from, changeAddr, controlKeys, threshold, options
func (*PClient) ExportAVAX ¶ added in v0.2.1
func (_m *PClient) ExportAVAX(ctx context.Context, user api.UserPass, from []ids.ShortID, changeAddr ids.ShortID, to ids.ShortID, toChainIDAlias string, amount uint64, options ...rpc.Option) (ids.ID, error)
ExportAVAX provides a mock function with given fields: ctx, user, from, changeAddr, to, toChainIDAlias, amount, options
func (*PClient) ExportKey ¶ added in v0.2.1
func (_m *PClient) ExportKey(ctx context.Context, user api.UserPass, address ids.ShortID, options ...rpc.Option) (*secp256k1.PrivateKey, error)
ExportKey provides a mock function with given fields: ctx, user, address, options
func (*PClient) GetAtomicUTXOs ¶ added in v0.2.1
func (_m *PClient) GetAtomicUTXOs(ctx context.Context, addrs []ids.ShortID, sourceChain string, limit uint32, startAddress ids.ShortID, startUTXOID ids.ID, options ...rpc.Option) ([][]byte, ids.ShortID, ids.ID, error)
GetAtomicUTXOs provides a mock function with given fields: ctx, addrs, sourceChain, limit, startAddress, startUTXOID, options
func (*PClient) GetBalance ¶ added in v0.2.1
func (_m *PClient) GetBalance(ctx context.Context, addrs []ids.ShortID, options ...rpc.Option) (*platformvm.GetBalanceResponse, error)
GetBalance provides a mock function with given fields: ctx, addrs, options
func (*PClient) GetBlock ¶ added in v0.2.1
func (_m *PClient) GetBlock(ctx context.Context, blockID ids.ID, options ...rpc.Option) ([]byte, error)
GetBlock provides a mock function with given fields: ctx, blockID, options
func (*PClient) GetBlockchainStatus ¶ added in v0.2.1
func (_m *PClient) GetBlockchainStatus(ctx context.Context, blockchainID string, options ...rpc.Option) (status.BlockchainStatus, error)
GetBlockchainStatus provides a mock function with given fields: ctx, blockchainID, options
func (*PClient) GetBlockchains ¶ added in v0.2.1
func (_m *PClient) GetBlockchains(ctx context.Context, options ...rpc.Option) ([]platformvm.APIBlockchain, error)
GetBlockchains provides a mock function with given fields: ctx, options
func (*PClient) GetCurrentSupply ¶ added in v0.2.1
func (_m *PClient) GetCurrentSupply(ctx context.Context, subnetID ids.ID, options ...rpc.Option) (uint64, error)
GetCurrentSupply provides a mock function with given fields: ctx, subnetID, options
func (*PClient) GetCurrentValidators ¶ added in v0.2.1
func (_m *PClient) GetCurrentValidators(ctx context.Context, subnetID ids.ID, nodeIDs []ids.NodeID, options ...rpc.Option) ([]platformvm.ClientPermissionlessValidator, error)
GetCurrentValidators provides a mock function with given fields: ctx, subnetID, nodeIDs, options
func (*PClient) GetHeight ¶ added in v0.2.1
GetHeight provides a mock function with given fields: ctx, options
func (*PClient) GetMaxStakeAmount ¶ added in v0.2.1
func (_m *PClient) GetMaxStakeAmount(ctx context.Context, subnetID ids.ID, nodeID ids.NodeID, startTime uint64, endTime uint64, options ...rpc.Option) (uint64, error)
GetMaxStakeAmount provides a mock function with given fields: ctx, subnetID, nodeID, startTime, endTime, options
func (*PClient) GetMinStake ¶ added in v0.2.1
func (_m *PClient) GetMinStake(ctx context.Context, subnetID ids.ID, options ...rpc.Option) (uint64, uint64, error)
GetMinStake provides a mock function with given fields: ctx, subnetID, options
func (*PClient) GetPendingValidators ¶ added in v0.2.1
func (_m *PClient) GetPendingValidators(ctx context.Context, subnetID ids.ID, nodeIDs []ids.NodeID, options ...rpc.Option) ([]interface{}, []interface{}, error)
GetPendingValidators provides a mock function with given fields: ctx, subnetID, nodeIDs, options
func (*PClient) GetRewardUTXOs ¶ added in v0.2.1
func (_m *PClient) GetRewardUTXOs(_a0 context.Context, _a1 *api.GetTxArgs, _a2 ...rpc.Option) ([][]byte, error)
GetRewardUTXOs provides a mock function with given fields: _a0, _a1, _a2
func (*PClient) GetStake ¶ added in v0.2.1
func (_m *PClient) GetStake(ctx context.Context, addrs []ids.ShortID, validatorsOnly bool, options ...rpc.Option) (map[ids.ID]uint64, [][]byte, error)
GetStake provides a mock function with given fields: ctx, addrs, validatorsOnly, options
func (*PClient) GetStakingAssetID ¶ added in v0.2.1
func (_m *PClient) GetStakingAssetID(ctx context.Context, subnetID ids.ID, options ...rpc.Option) (ids.ID, error)
GetStakingAssetID provides a mock function with given fields: ctx, subnetID, options
func (*PClient) GetSubnets ¶ added in v0.2.1
func (_m *PClient) GetSubnets(ctx context.Context, subnetIDs []ids.ID, options ...rpc.Option) ([]platformvm.ClientSubnet, error)
GetSubnets provides a mock function with given fields: ctx, subnetIDs, options
func (*PClient) GetTimestamp ¶ added in v0.2.1
GetTimestamp provides a mock function with given fields: ctx, options
func (*PClient) GetTotalStake ¶ added in v0.2.1
func (_m *PClient) GetTotalStake(ctx context.Context, subnetID ids.ID, options ...rpc.Option) (uint64, error)
GetTotalStake provides a mock function with given fields: ctx, subnetID, options
func (*PClient) GetTx ¶ added in v0.2.1
GetTx provides a mock function with given fields: ctx, txID, options
func (*PClient) GetTxStatus ¶ added in v0.2.1
func (_m *PClient) GetTxStatus(ctx context.Context, txID ids.ID, options ...rpc.Option) (*platformvm.GetTxStatusResponse, error)
GetTxStatus provides a mock function with given fields: ctx, txID, options
func (*PClient) GetUTXOs ¶ added in v0.2.1
func (_m *PClient) GetUTXOs(ctx context.Context, addrs []ids.ShortID, limit uint32, startAddress ids.ShortID, startUTXOID ids.ID, options ...rpc.Option) ([][]byte, ids.ShortID, ids.ID, error)
GetUTXOs provides a mock function with given fields: ctx, addrs, limit, startAddress, startUTXOID, options
func (*PClient) GetValidatorsAt ¶ added in v0.2.1
func (_m *PClient) GetValidatorsAt(ctx context.Context, subnetID ids.ID, height uint64, options ...rpc.Option) (map[ids.NodeID]uint64, error)
GetValidatorsAt provides a mock function with given fields: ctx, subnetID, height, options
func (*PClient) ImportAVAX ¶ added in v0.2.1
func (_m *PClient) ImportAVAX(ctx context.Context, user api.UserPass, from []ids.ShortID, changeAddr ids.ShortID, to ids.ShortID, sourceChain string, options ...rpc.Option) (ids.ID, error)
ImportAVAX provides a mock function with given fields: ctx, user, from, changeAddr, to, sourceChain, options
func (*PClient) ImportKey ¶ added in v0.2.1
func (_m *PClient) ImportKey(ctx context.Context, user api.UserPass, privateKey *secp256k1.PrivateKey, options ...rpc.Option) (ids.ShortID, error)
ImportKey provides a mock function with given fields: ctx, user, privateKey, options
func (*PClient) IssueTx ¶ added in v0.2.1
IssueTx provides a mock function with given fields: ctx, tx, options
func (*PClient) ListAddresses ¶ added in v0.2.1
func (_m *PClient) ListAddresses(ctx context.Context, user api.UserPass, options ...rpc.Option) ([]ids.ShortID, error)
ListAddresses provides a mock function with given fields: ctx, user, options
func (*PClient) SampleValidators ¶ added in v0.2.1
func (_m *PClient) SampleValidators(ctx context.Context, subnetID ids.ID, sampleSize uint16, options ...rpc.Option) ([]ids.NodeID, error)
SampleValidators provides a mock function with given fields: ctx, subnetID, sampleSize, options
type PluginBinaryDownloader ¶
PluginBinaryDownloader is an autogenerated mock type for the PluginBinaryDownloader type
func NewPluginBinaryDownloader ¶ added in v0.2.0
func NewPluginBinaryDownloader(t interface { mock.TestingT Cleanup(func()) }) *PluginBinaryDownloader
NewPluginBinaryDownloader creates a new instance of PluginBinaryDownloader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PluginBinaryDownloader) InstallVM ¶ added in v0.2.2
func (_m *PluginBinaryDownloader) InstallVM(vmID string, vmBin string) error
InstallVM provides a mock function with given fields: vmID, vmBin
func (*PluginBinaryDownloader) RemoveVM ¶ added in v1.1.0
func (_m *PluginBinaryDownloader) RemoveVM(vmID string) error
RemoveVM provides a mock function with given fields: vmID
type ProcessChecker ¶
ProcessChecker is an autogenerated mock type for the ProcessChecker type
func NewProcessChecker ¶ added in v0.2.0
func NewProcessChecker(t interface { mock.TestingT Cleanup(func()) }) *ProcessChecker
NewProcessChecker creates a new instance of ProcessChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ProcessChecker) IsServerProcessRunning ¶
func (_m *ProcessChecker) IsServerProcessRunning(app *application.Avalanche) (bool, error)
IsServerProcessRunning provides a mock function with given fields: app
type Prompter ¶ added in v0.2.0
Prompter is an autogenerated mock type for the Prompter type
func NewPrompter ¶ added in v0.2.0
NewPrompter creates a new instance of Prompter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Prompter) CaptureAddress ¶ added in v0.2.0
CaptureAddress provides a mock function with given fields: promptStr
func (*Prompter) CaptureDate ¶ added in v0.2.0
CaptureDate provides a mock function with given fields: promptStr
func (*Prompter) CaptureEmail ¶ added in v0.2.3
CaptureEmail provides a mock function with given fields: promptStr
func (*Prompter) CaptureExistingFilepath ¶ added in v0.2.0
CaptureExistingFilepath provides a mock function with given fields: promptStr
func (*Prompter) CaptureFloat ¶ added in v1.2.4
CaptureFloat provides a mock function with given fields: promptStr, validator
func (*Prompter) CaptureFujiDuration ¶ added in v1.2.7
CaptureFujiDuration provides a mock function with given fields: promptStr
func (*Prompter) CaptureFutureDate ¶ added in v1.1.0
CaptureFutureDate provides a mock function with given fields: promptStr, minDate
func (*Prompter) CaptureGitURL ¶ added in v0.2.3
CaptureGitURL provides a mock function with given fields: promptStr
func (*Prompter) CaptureID ¶ added in v1.0.3
CaptureID provides a mock function with given fields: promptStr
func (*Prompter) CaptureIndex ¶ added in v0.2.0
CaptureIndex provides a mock function with given fields: promptStr, options
func (*Prompter) CaptureList ¶ added in v0.2.0
CaptureList provides a mock function with given fields: promptStr, options
func (*Prompter) CaptureMainnetDuration ¶ added in v1.2.7
CaptureMainnetDuration provides a mock function with given fields: promptStr
func (*Prompter) CaptureNewFilepath ¶ added in v1.0.1
CaptureNewFilepath provides a mock function with given fields: promptStr
func (*Prompter) CaptureNoYes ¶ added in v0.2.0
CaptureNoYes provides a mock function with given fields: promptStr
func (*Prompter) CaptureNodeID ¶ added in v0.2.0
CaptureNodeID provides a mock function with given fields: promptStr
func (*Prompter) CapturePChainAddress ¶ added in v0.2.0
CapturePChainAddress provides a mock function with given fields: promptStr, network
func (*Prompter) CapturePositiveBigInt ¶ added in v0.2.0
CapturePositiveBigInt provides a mock function with given fields: promptStr
func (*Prompter) CapturePositiveInt ¶ added in v1.2.2
func (_m *Prompter) CapturePositiveInt(promptStr string, comparators []prompts.Comparator) (int, error)
CapturePositiveInt provides a mock function with given fields: promptStr, comparators
func (*Prompter) CaptureRepoBranch ¶ added in v1.3.1
CaptureRepoBranch provides a mock function with given fields: promptStr, repo
func (*Prompter) CaptureRepoFile ¶ added in v1.3.1
CaptureRepoFile provides a mock function with given fields: promptStr, repo, branch
func (*Prompter) CaptureString ¶ added in v0.2.0
CaptureString provides a mock function with given fields: promptStr
func (*Prompter) CaptureStringAllowEmpty ¶ added in v0.2.3
CaptureStringAllowEmpty provides a mock function with given fields: promptStr
func (*Prompter) CaptureURL ¶ added in v1.3.1
CaptureURL provides a mock function with given fields: promptStr
func (*Prompter) CaptureUint32 ¶ added in v1.2.4
CaptureUint32 provides a mock function with given fields: promptStr
func (*Prompter) CaptureUint64 ¶ added in v0.2.0
CaptureUint64 provides a mock function with given fields: promptStr
func (*Prompter) CaptureUint64Compare ¶ added in v1.2.0
func (_m *Prompter) CaptureUint64Compare(promptStr string, comparators []prompts.Comparator) (uint64, error)
CaptureUint64Compare provides a mock function with given fields: promptStr, comparators
func (*Prompter) CaptureVersion ¶ added in v0.2.2
CaptureVersion provides a mock function with given fields: promptStr
func (*Prompter) CaptureWeight ¶ added in v0.2.0
CaptureWeight provides a mock function with given fields: promptStr
func (*Prompter) CaptureYesNo ¶ added in v0.2.0
CaptureYesNo provides a mock function with given fields: promptStr
type Publisher ¶ added in v0.2.3
Publisher is an autogenerated mock type for the Publisher type
func NewPublisher ¶ added in v0.2.3
NewPublisher creates a new instance of Publisher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type StatusChecker ¶ added in v1.0.1
StatusChecker is an autogenerated mock type for the StatusChecker type
func NewStatusChecker ¶ added in v1.0.1
func NewStatusChecker(t interface { mock.TestingT Cleanup(func()) }) *StatusChecker
NewStatusChecker creates a new instance of StatusChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StatusChecker) GetCurrentNetworkVersion ¶ added in v1.0.1
func (_m *StatusChecker) GetCurrentNetworkVersion() (string, int, bool, error)
GetCurrentNetworkVersion provides a mock function with given fields: