Versions in this module Expand all Collapse all v1 v1.3.7 Jul 17, 2024 Changes in this version + var ErrNoSubnetAuthKeysInWallet = errors.New("auth wallet does not contain subnet auth keys") + func CheckNodeIsInSubnetPendingValidators(subnetID ids.ID, nodeID string) (bool, 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.Odyssey) ([]string, error) + func GetPublicSubnetValidators(subnetID ids.ID, network models.Network) ([]omegavm.ClientPermissionlessValidator, error) + func GetSubnetValidators(subnetID ids.ID) ([]omegavm.ClientPermissionlessValidator, error) + func HasEndpoints(clusterInfo *rpcpb.ClusterInfo) bool + func IsSubnetValidator(subnetID ids.ID, nodeID ids.NodeID, network models.Network) (bool, error) + func IssueAToOExportTx(wallet primary.Wallet, usingLedger bool, hasOnlyOneKey bool, assetID ids.ID, ...) (ids.ID, 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 IssueOFromAImportTx(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 SetDefaultSnapshot(snapshotsDir string, resetCurrentSnapshot bool, odygoVersion string) (bool, error) + func WaitForHealthy(ctx context.Context, cli client.Client) (*rpcpb.ClusterInfo, error) + type LocalDeployer struct + func NewLocalDeployer(app *application.Odyssey, odygoVersion string, odygoBinaryPath string, ...) *LocalDeployer + func (d *LocalDeployer) BackendStartedHere() bool + func (d *LocalDeployer) DeployToLocalNetwork(chain string, chainGenesis []byte, genesisPath string) (ids.ID, ids.ID, error) + func (d *LocalDeployer) SetupLocalEnv() (bool, string, error) + func (d *LocalDeployer) StartServer() error + type PublicDeployer struct + func NewPublicDeployer(app *application.Odyssey, 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(controlKeys []string, subnetAuthKeysStrs []string, subnetID ids.ID, ...) (bool, *txs.Tx, []string, error) + func (d *PublicDeployer) Commit(tx *txs.Tx) (ids.ID, error) + func (d *PublicDeployer) CreateAssetTx(subnetID ids.ID, 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) ExportToOChainTx(subnetID ids.ID, subnetAssetID ids.ID, owner *secp256k1fx.OutputOwners, ...) (ids.ID, error) + func (d *PublicDeployer) ImportFromAChain(subnetID ids.ID, 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, subnet ids.ID) 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