Versions in this module Expand all Collapse all v1 v1.0.0 Nov 14, 2024 Changes in this version + var ErrNoSubnetAuthKeysInWallet = errors.New("auth wallet does not contain subnet auth keys") + func CheckNodeIsInSubnetValidators(subnetID ids.ID, nodeID string) (bool, error) + func FindErrorLogs(rootDirs ...string) + func GetChainID(network models.Network, chainName string) (ids.ID, error) + func GetChainIDs(network models.Network, chainName string) (string, string, error) + func GetCurrentSupply(subnetID ids.ID) error + func GetFirstEndpoint(clusterInfo *rpcpb.ClusterInfo, chain string) string + func GetLocallyDeployedSubnets() (map[string]struct{}, error) + func GetLocallyDeployedSubnetsFromFile(app *application.Avalanche) ([]string, error) + func GetPublicSubnetValidators(subnetID ids.ID, network models.Network) ([]platformvm.ClientPermissionlessValidator, error) + func GetSubnetAirdropKeyInfo(app *application.Avalanche, subnetName string) (string, string, string, error) + func GetSubnetValidators(subnetID ids.ID) ([]platformvm.ClientPermissionlessValidator, error) + func HasEndpoints(clusterInfo *rpcpb.ClusterInfo) bool + func IsSubnetValidator(subnetID ids.ID, nodeID ids.NodeID, network models.Network) (bool, error) + func IssueAddPermissionlessDelegatorTx(kc keychain.Keychain, subnetID ids.ID, nodeID ids.NodeID, stakeAmount uint64, ...) (ids.ID, error) + func IssueAddPermissionlessValidatorTx(kc keychain.Keychain, subnetID ids.ID, nodeID ids.NodeID, stakeAmount uint64, ...) (ids.ID, error) + func IssuePFromXImportTx(wallet primary.Wallet, usingLedger bool, hasOnlyOneKey bool, ...) (ids.ID, error) + func IssueRemoveSubnetValidatorTx(kc keychain.Keychain, subnetID ids.ID, nodeID ids.NodeID) (ids.ID, error) + func IssueTransformSubnetTx(elasticSubnetConfig models.ElasticSubnetConfig, kc keychain.Keychain, ...) (ids.ID, ids.ID, error) + func IssueXToPExportTx(wallet primary.Wallet, usingLedger bool, hasOnlyOneKey bool, assetID ids.ID, ...) (ids.ID, error) + func SetDefaultSnapshot(snapshotsDir string, resetCurrentSnapshot bool, avagoVersion string, ...) (bool, error) + func WaitForHealthy(ctx context.Context, cli client.Client) (*rpcpb.ClusterInfo, error) + func WriteExtraLocalNetworkData(app *application.Avalanche, cchainTeleporterMessengerAddress string, ...) error + type DeployInfo struct + BlockchainID ids.ID + SubnetID ids.ID + TeleporterMessengerAddress string + TeleporterRegistryAddress string + type ExtraLocalNetworkData struct + CChainTeleporterMessengerAddress string + CChainTeleporterRegistryAddress string + func GetExtraLocalNetworkData(app *application.Avalanche) (*ExtraLocalNetworkData, error) + type LocalDeployer struct + func NewLocalDeployer(app *application.Avalanche, avagoVersion string, avagoBinaryPath string, ...) *LocalDeployer + func (d *LocalDeployer) BackendStartedHere() bool + func (d *LocalDeployer) DeployToLocalNetwork(chain string, chainGenesis []byte, genesisPath string, subnetIDStr string) (*DeployInfo, error) + func (d *LocalDeployer) SetupLocalEnv() (bool, string, error) + func (d *LocalDeployer) StartServer() error + type PublicDeployer struct + func NewPublicDeployer(app *application.Avalanche, kc *keychain.Keychain, network models.Network) *PublicDeployer + func (d *PublicDeployer) AddPermissionlessDelegator(subnetID ids.ID, subnetAssetID ids.ID, nodeID ids.NodeID, stakeAmount uint64, ...) (ids.ID, error) + func (d *PublicDeployer) AddPermissionlessValidator(subnetID ids.ID, subnetAssetID ids.ID, nodeID ids.NodeID, stakeAmount uint64, ...) (ids.ID, error) + func (d *PublicDeployer) AddValidator(justIssueTx bool, controlKeys []string, subnetAuthKeysStrs []string, ...) (bool, *txs.Tx, []string, error) + func (d *PublicDeployer) Commit(tx *txs.Tx, justIssueTx bool) (ids.ID, error) + func (d *PublicDeployer) CreateAssetTx(tokenName string, tokenSymbol string, denomination byte, ...) (ids.ID, error) + func (d *PublicDeployer) DeployBlockchain(controlKeys []string, subnetAuthKeysStrs []string, subnetID ids.ID, ...) (bool, ids.ID, *txs.Tx, []string, error) + func (d *PublicDeployer) DeploySubnet(controlKeys []string, threshold uint32) (ids.ID, error) + func (d *PublicDeployer) ExportToPChainTx(subnetAssetID ids.ID, owner *secp256k1fx.OutputOwners, assetAmount uint64) (ids.ID, error) + func (d *PublicDeployer) ImportFromXChain(owner *secp256k1fx.OutputOwners) (ids.ID, error) + func (d *PublicDeployer) RemoveValidator(controlKeys []string, subnetAuthKeysStrs []string, subnetID ids.ID, ...) (bool, *txs.Tx, []string, error) + func (d *PublicDeployer) Sign(tx *txs.Tx, subnetAuthKeysStrs []string, subnetID ids.ID, ...) error + func (d *PublicDeployer) TransferSubnetOwnership(controlKeys []string, subnetAuthKeysStrs []string, subnetID ids.ID, ...) (bool, *txs.Tx, []string, error) + func (d *PublicDeployer) TransformSubnetTx(controlKeys []string, subnetAuthKeysStrs []string, ...) (bool, ids.ID, *txs.Tx, []string, error) + type Publisher interface + GetRepo func() (*git.Repository, error) + Publish func(r *git.Repository, subnetName, vmName string, subnetYAML []byte, vmYAML []byte) error + func NewPublisher(repoDir, repoURL, alias string) Publisher