{"modulePath":"github.com/pushchain/push-chain-node","version":"v0.0.43","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package chains\n\n## Types\n\n```go\ntype Chains struct {\n\t// contains filtered or unexported fields\n}\n```\nChains manages chain clients by fetching chain configs periodically and adding/removing clients accordingly\n\n```go\nfunc NewChains(\n\tpushCore *pushcore.Client,\n\tpushSigner *pushsigner.Signer,\n\tcfg *config.Config,\n\tlogger zerolog.Logger,\n) *Chains\n```\nNewChains creates a new chains manager\n\n```go\nfunc (c *Chains) GetClient(chainID string) (common.ChainClient, error)\n```\nGetClient returns the chain client for the specified chain ID\n\n```go\nfunc (c *Chains) GetStandardConfirmations(chainID string) uint64\n```\nGetStandardConfirmations returns the chain's standard block confirmations from registry config (BlockConfirmation.StandardInbound). Used for outbound tx completion. Returns 12 if not set.\n\n```go\nfunc (c *Chains) IsChainInboundEnabled(chainID string) bool\n```\nIsChainInboundEnabled returns whether inbound is enabled for the given chain\n\n```go\nfunc (c *Chains) IsChainOutboundEnabled(chainID string) bool\n```\nIsChainOutboundEnabled returns whether outbound is enabled for the given chain\n\n```go\nfunc (c *Chains) IsEVMChain(chainID string) bool\n```\nIsEVMChain returns true if the chain uses EVM (e.g. Ethereum, BSC). Used by coordinator for nonce behaviour.\n\n```go\nfunc (c *Chains) Start(ctx context.Context) error\n```\nStart begins fetching chains and managing chain clients\n\n```go\nfunc (c *Chains) Stop()\n```\nStop stops the chains manager\n\n```go\nfunc (c *Chains) StopAll()\n```\nStopAll stops all chain clients\n\n","path":"github.com/pushchain/push-chain-node/universalClient/chains","name":"chains","synopsis":"","isRedistributable":true}
