Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AdminClientAccountantModifyBalanceCmd = &cobra.Command{
Use: "accountant-modify-balance",
Short: "Generate an empty accountant modify balance template at specified path",
Run: runAccountantModifyBalanceTemplate,
}
View Source
var AdminClientCircleIntegrationRegisterEmitterAndDomainCmd = &cobra.Command{
Use: "circle-integration-register-emitter-and-domain",
Short: "Generate an empty circle integration register emitter and domain template at specified path",
Run: runCircleIntegrationRegisterEmitterAndDomainTemplate,
}
View Source
var AdminClientCircleIntegrationUpdateWormholeFinalityCmd = &cobra.Command{
Use: "circle-integration-update-wormhole-finality",
Short: "Generate an empty circle integration update wormhole finality template at specified path",
Run: runCircleIntegrationUpdateWormholeFinalityTemplate,
}
View Source
var AdminClientCircleIntegrationUpgradeContractImplementationCmd = &cobra.Command{
Use: "circle-integration-upgrade-contract-implementation",
Short: "Generate an empty circle integration upgrade contract implementation template at specified path",
Run: runCircleIntegrationUpgradeContractImplementationTemplate,
}
View Source
var AdminClientContractUpgradeTemplateCmd = &cobra.Command{
Use: "contract-upgrade",
Short: "Generate an empty contract upgrade template",
Run: runContractUpgradeTemplate,
}
View Source
var AdminClientFindMissingMessagesCmd = &cobra.Command{ Use: "find-missing-messages [CHAIN_ID] [EMITTER_ADDRESS_HEX]", Short: "Find sequence number gaps for the given chain ID and emitter address", Run: runFindMissingMessages, Args: cobra.ExactArgs(2), }
View Source
var AdminClientGatewayCancelUpgradeCmd = &cobra.Command{
Use: "gateway-cancel-upgrade",
Short: "Cancel a scheduled upgrade on Gateway",
Run: runGatewayCancelUpgradeTemplate,
}
View Source
var AdminClientGatewayIbcComposabilityMwSetContractCmd = &cobra.Command{
Use: "gateway-ibc-composability-mw-set-contract",
Short: "Set the contract that the IBC Composability middleware will query",
Run: runGatewayIbcComposabilityMwSetContractTemplate,
}
View Source
var AdminClientGatewayScheduleUpgradeCmd = &cobra.Command{
Use: "gateway-schedule-upgrade",
Short: "Schedule an upgrade on Gateway with a specified name for a specified height",
Run: runGatewayScheduleUpgradeTemplate,
}
View Source
var AdminClientGeneralPurposeGovernanceEvmCallCmd = &cobra.Command{
Use: "governance-evm-call",
Short: "Generate a 'general purpose evm governance call' template for specified chain and address",
Run: runGeneralPurposeGovernanceEvmCallTemplate,
}
View Source
var AdminClientGeneralPurposeGovernanceSolanaCallCmd = &cobra.Command{
Use: "governance-solana-call",
Short: "Generate a 'general purpose solana governance call' template for specified chain and address",
Run: runGeneralPurposeGovernanceSolanaCallTemplate,
}
View Source
var AdminClientGovernanceVAAVerifyCmd = &cobra.Command{ Use: "governance-vaa-verify [FILENAME]", Short: "Verify governance vaa in prototxt format (offline)", Run: runGovernanceVAAVerify, Args: cobra.ExactArgs(1), }
View Source
var AdminClientGuardianSetTemplateCmd = &cobra.Command{
Use: "guardian-set-update",
Short: "Generate an empty guardian set template",
Run: runGuardianSetTemplate,
}
View Source
var AdminClientIbcReceiverUpdateChannelChainCmd = &cobra.Command{
Use: "ibc-receiver-update-channel-chain",
Short: "Generate an empty ibc receiver channelId to chainId mapping update template at specified path",
Run: runIbcReceiverUpdateChannelChainTemplate,
}
View Source
var AdminClientIbcTranslatorUpdateChannelChainCmd = &cobra.Command{
Use: "ibc-translator-update-channel-chain",
Short: "Generate an empty ibc translator channelId to chainId mapping update template at specified path",
Run: runIbcTranslatorUpdateChannelChainTemplate,
}
View Source
var AdminClientInjectGuardianSetUpdateCmd = &cobra.Command{ Use: "governance-vaa-inject [FILENAME]", Short: "Inject and sign a governance VAA from a prototxt file (see docs!)", Run: runInjectGovernanceVAA, Args: cobra.ExactArgs(1), }
View Source
var AdminClientListNodes = &cobra.Command{
Use: "list-nodes",
Short: "Fetches an aggregated list of guardian nodes",
Run: runListNodes,
}
View Source
var AdminClientRecoverChainIdCmd = &cobra.Command{
Use: "recover-chain-id",
Short: "Generate an empty recover chain id template at specified path",
Run: runRecoverChainIdTemplate,
}
View Source
var AdminClientSignWormchainAddress = &cobra.Command{ Use: "sign-wormchain-address [vaa-signer-uri] [wormchain-validator-address]", Short: "Sign a wormchain validator address. Only sign the address that you control the key for and will be for your validator.", RunE: runSignWormchainValidatorAddress, Args: cobra.ExactArgs(2), }
View Source
var AdminClientTokenBridgeRegisterChainCmd = &cobra.Command{
Use: "token-bridge-register-chain",
Short: "Generate an empty token bridge chain registration template at specified path",
Run: runTokenBridgeRegisterChainTemplate,
}
View Source
var AdminClientTokenBridgeUpgradeContractCmd = &cobra.Command{
Use: "token-bridge-upgrade-contract",
Short: "Generate an empty token bridge contract upgrade template at specified path",
Run: runTokenBridgeUpgradeContractTemplate,
}
View Source
var AdminClientWormchainAddWasmInstantiateAllowlistCmd = &cobra.Command{
Use: "wormchain-add-wasm-instantiate-allowlist",
Short: "Generate an empty wormchain add wasm instantiate allowlist template at specified path",
Run: runWormchainAddWasmInstantiateAllowlistTemplate,
}
View Source
var AdminClientWormchainDeleteWasmInstantiateAllowlistCmd = &cobra.Command{
Use: "wormchain-delete-wasm-instantiate-allowlist",
Short: "Generate an empty wormchain delete wasm instantiate allowlist template at specified path",
Run: runWormchainDeleteWasmInstantiateAllowlistTemplate,
}
View Source
var AdminClientWormchainInstantiateContractCmd = &cobra.Command{
Use: "wormchain-instantiate-contract",
Short: "Generate an empty wormchain instantiate contract template at specified path",
Run: runWormchainInstantiateContractTemplate,
}
View Source
var AdminClientWormchainMigrateContractCmd = &cobra.Command{
Use: "wormchain-migrate-contract",
Short: "Generate an empty wormchain migrate contract template at specified path",
Run: runWormchainMigrateContractTemplate,
}
View Source
var AdminClientWormchainStoreCodeCmd = &cobra.Command{
Use: "wormchain-store-code",
Short: "Generate an empty wormchain store code template at specified path",
Run: runWormchainStoreCodeTemplate,
}
View Source
var AdminClientWormholeRelayerSetDefaultDeliveryProviderCmd = &cobra.Command{
Use: "wormhole-relayer-set-default-delivery-provider",
Short: "Generate a 'set default delivery provider' template for specified chain and address",
Run: runWormholeRelayerSetDefaultDeliveryProviderTemplate,
}
View Source
var AdminCmd = &cobra.Command{
Use: "admin",
Short: "Guardian node admin commands",
}
View Source
var Build = "prod"
This variable may be overridden by the -X linker flag to "dev" in which case we enforce the --unsafeDevMode flag. Only development binaries/docker images are distributed. Production binaries are required to be built from source by guardians to reduce risk from a compromised builder.
View Source
var ClientChainGovernorDropPendingVAACmd = &cobra.Command{ Use: "governor-drop-pending-vaa [VAA_ID]", Short: "Removes the specified VAA (chain/emitter/seq) from the chain governor pending list", Run: runChainGovernorDropPendingVAA, Args: cobra.ExactArgs(1), }
View Source
var ClientChainGovernorReleasePendingVAACmd = &cobra.Command{ Use: "governor-release-pending-vaa [VAA_ID]", Short: "Releases the specified VAA (chain/emitter/seq) from the chain governor pending list, publishing it immediately", Run: runChainGovernorReleasePendingVAA, Args: cobra.ExactArgs(1), }
View Source
var ClientChainGovernorReloadCmd = &cobra.Command{ Use: "governor-reload", Short: "Clears the chain governor history and reloads it from the database", Run: runChainGovernorReload, Args: cobra.ExactArgs(0), }
View Source
var ClientChainGovernorResetReleaseTimerCmd = &cobra.Command{ Use: "governor-reset-release-timer [VAA_ID] <num_days>", Short: "Resets the release timer for a chain governor pending VAA, extending it to num_days (up to a maximum of 7), defaulting to one day if num_days is omitted", Run: runChainGovernorResetReleaseTimer, Args: cobra.RangeArgs(1, 2), }
View Source
var ClientChainGovernorStatusCmd = &cobra.Command{ Use: "governor-status", Short: "Displays the status of the chain governor", Run: runChainGovernorStatus, Args: cobra.ExactArgs(0), }
View Source
var DumpRPCs = &cobra.Command{ Use: "dump-rpcs", Short: "Displays the RPCs in use by the guardian", Run: runDumpRPCs, Args: cobra.ExactArgs(0), }
View Source
var DumpVAAByMessageID = &cobra.Command{ Use: "dump-vaa-by-message-id [MESSAGE_ID]", Short: "Retrieve a VAA by message ID (chain/emitter/seq) and decode and dump the VAA", Run: runDumpVAAByMessageID, Args: cobra.ExactArgs(1), }
View Source
var GetAndObserveMissingVAAs = &cobra.Command{ Use: "get-and-observe-missing-vaas [URL] [API_KEY]", Short: "Get the list of missing VAAs from a cloud function and try to reobserve them.", Run: runGetAndObserveMissingVAAs, Args: cobra.ExactArgs(2), }
View Source
var Keccak256Hash = &cobra.Command{ Use: "keccak256", Short: "Compute legacy keccak256 hash", Run: runKeccak256Hash, Args: cobra.ExactArgs(0), }
View Source
var KeygenCmd = &cobra.Command{ Use: "keygen [KEYFILE]", Short: "Create guardian key at the specified path", Run: runKeygen, Args: cobra.ExactArgs(1), }
View Source
var NodeCmd = &cobra.Command{
Use: "node",
Short: "Run the guardiand node",
PersistentPreRunE: initConfig,
Run: runNode,
}
NodeCmd represents the node command
View Source
var PurgePythNetVaasCmd = &cobra.Command{ Use: "purge-pythnet-vaas [DAYS_OLD] <logonly>", Short: "Deletes PythNet VAAs from the database that are more than [DAYS_OLD] days only (if logonly is specified, doesn't delete anything)", Run: runPurgePythNetVaas, Args: cobra.RangeArgs(1, 2), }
View Source
var SendObservationRequest = &cobra.Command{ Use: "send-observation-request [CHAIN_ID|CHAIN_NAME] [TX_HASH_HEX]", Short: "Broadcast an observation request for the given chain ID and chain-specific tx_hash", Run: runSendObservationRequest, Args: cobra.ExactArgs(2), }
View Source
var SignExistingVaaCmd = &cobra.Command{ Use: "sign-existing-vaa [VAA] [NEW_GUARDIANS] [NEW_GUARDIAN_SET_INDEX]", Short: "Signs an existing VAA for a new guardian set using the local guardian key. This only works if the new VAA would have quorum.", Run: runSignExistingVaa, Args: cobra.ExactArgs(3), }
View Source
var SignExistingVaasFromCSVCmd = &cobra.Command{ Use: "sign-existing-vaas-csv [IN_FILE] [OUT_FILE] [NEW_GUARDIANS] [NEW_GUARDIAN_SET_INDEX]", Short: "Signs a CSV [VAA_ID,VAA_HEX] of existing VAAs for a new guardian set using the local guardian key and writes it to a new CSV. VAAs that don't have quorum on the new set will be dropped.", Run: runSignExistingVaasFromCSV, Args: cobra.ExactArgs(4), }
View Source
var TemplateCmd = &cobra.Command{
Use: "template",
Short: "Guardian governance VAA template commands ",
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.