{"modulePath":"github.com/smartcontractkit/cre-cli","version":"v1.42.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package client\n\n## Functions\n\n```go\nfunc DecodeCustomError(errStr string) string\n```\n\n```go\nfunc LoadContracts(l *zerolog.Logger, client *seth.Client) error\n```\n\n```go\nfunc NewEthClientFromEnv(v *viper.Viper, l *zerolog.Logger, ethUrl string) (*seth.Client, error)\n```\n\n```go\nfunc NewSethClient(\n\tconfigFile string,\n\trpc string,\n\tprivateKeys []string,\n\tchainId uint64,\n) (*seth.Client, error)\n```\n\n```go\nfunc NewSethClientWithSimulated(\n\tconfigFile string,\n\trpcURL string,\n\tprivateKeys []string,\n\tchainId uint64,\n\tbackend *simulated.Backend,\n) (*seth.Client, error)\n```\n\n## Types\n\n```go\ntype Factory interface {\n\tNewWorkflowRegistryV2Client(ctx context.Context) (*WorkflowRegistryV2Client, error)\n\tGetTxType() TxType\n\tGetSkipConfirmation() bool\n}\n```\n\n```go\nfunc NewFactory(logger *zerolog.Logger, viper *viper.Viper) Factory\n```\n\n```go\ntype LedgerConfig struct {\n\tDerivationPath string\n\tLedgerEnabled  bool\n}\n```\n\n```go\ntype RawTx struct {\n\tTo       string\n\tData     []byte\n\tFunction string\n\tArgs     []string\n}\n```\n\n```go\ntype RegisterWorkflowV2Parameters struct {\n\tWorkflowName string   // required: user specified human readable workflow name label\n\tTag          string   // required: User input tag for the workflow, e.g. \"Por Workflow v2\"\n\tWorkflowID   [32]byte // required: generated based on the workflow content and owner address\n\tStatus       uint8    // required\n\tDonFamily    string   // required: DON family label\n\n\tBinaryURL  string // required: URL location for the workflow binary WASM file\n\tConfigURL  string // optional: URL location for the workflow configuration file (default empty string)\n\tAttributes []byte // optional: 1 to pause workflow after registration, 0 to activate it (default is 0)\n\tKeepAlive  bool   // optional: whether to keep the other workflows of the same name and owner active after the new deploy (default is false)\n}\n```\n\n```go\ntype TxClient struct {\n\tLogger    *zerolog.Logger\n\tEthClient *seth.Client\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype TxClientConfig struct {\n\tTxType       TxType\n\tLedgerConfig *LedgerConfig\n\tSkipPrompt   bool\n}\n```\n\n```go\ntype TxOutput struct {\n\tType  TxType\n\tHash  common.Hash\n\tRawTx RawTx\n}\n```\n\n```go\ntype TxType int\n```\n\n```go\nconst (\n\tRegular TxType = iota\n\tRaw\n\tLedger\n\tChangeset\n)\n```\n\n```go\nfunc (i TxType) String() string\n```\n\n```go\ntype WorkflowRegistryV2Client struct {\n\tTxClient\n\tContractAddress common.Address\n\tWr              workflowRegistryV2Contract\n}\n```\n\n```go\nfunc NewWorkflowRegistryV2Client(logger *zerolog.Logger, ethClient *seth.Client, address string, txcConfig TxClientConfig) *WorkflowRegistryV2Client\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) ActivateWorkflow(ctx context.Context, workflowID [32]byte, donFamily string) (*TxOutput, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) AllowlistRequest(ctx context.Context, requestDigest [32]byte, duration time.Duration) (*TxOutput, error)\n```\nAllowlistRequest sends the request digest to the WorkflowRegistry allowlist with a default expiry of now + 10 minutes. \\`requestDigestHex\\` should be the hex string produced by utils.CalculateRequestDigest(...), with or without \"0x\".\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) BatchPauseWorkflows(ctx context.Context, workflowIDs [][32]byte) (*TxOutput, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) CanLinkOwner(ctx context.Context, owner common.Address, validityTimestamp *big.Int, proof [32]byte, signature []byte) error\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) CanUnlinkOwner(ctx context.Context, owner common.Address, validityTimestamp *big.Int, signature []byte) error\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) CheckUserDonLimit(\n\tctx context.Context,\n\towner common.Address,\n\tdonFamily string,\n\tpending uint32,\n) error\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) DeleteWorkflow(ctx context.Context, workflowID [32]byte) (*TxOutput, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) GetLinkedOwners(ctx context.Context, start, batchSize *big.Int) ([]common.Address, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) GetMaxWorkflowsPerDON(ctx context.Context, donFamily [32]byte) (uint32, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) GetMaxWorkflowsPerUserDON(ctx context.Context, user common.Address, donFamily [32]byte) (uint32, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) GetMaxWorkflowsPerUserDONByFamily(ctx context.Context, user common.Address, donFamily string) (uint32, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) GetWorkflow(ctx context.Context, owner common.Address, workflowName, tag string) (workflow_registry_v2_wrapper.WorkflowRegistryWorkflowMetadataView, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) GetWorkflowListByOwner(ctx context.Context, owner common.Address, start, limit *big.Int) ([]workflow_registry_v2_wrapper.WorkflowRegistryWorkflowMetadataView, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) GetWorkflowListByOwnerAndName(ctx context.Context, owner common.Address, workflowName string, start, limit *big.Int) ([]workflow_registry_v2_wrapper.WorkflowRegistryWorkflowMetadataView, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) IsAllowedSigner(ctx context.Context, signer common.Address) (bool, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) IsOwnerLinked(ctx context.Context, owner common.Address) (bool, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) IsRequestAllowlisted(ctx context.Context, owner common.Address, digest [32]byte) (bool, error)\n```\nIsRequestAllowlisted queries the registry to check if a given (owner, requestDigest) is allowlisted. requestDigestHex may include or omit the 0x prefix.\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) LinkOwner(ctx context.Context, validityTimestamp *big.Int, proof [32]byte, signature []byte) (*TxOutput, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) SetDONOverride(ctx context.Context, donFamily [32]byte, limit uint32, enabled bool) error\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) SetDefaults(ctx context.Context, maxPerDON, maxPerUserDON uint32) error\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) SetDonLimit(ctx context.Context, donFamily string, limit uint32, userDefaultLimit uint32) error\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) SetUserDONOverride(ctx context.Context, user common.Address, donFamily [32]byte, limit uint32, enabled bool) error\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) TotalLinkedOwners(ctx context.Context) (*big.Int, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) TypeAndVersion(ctx context.Context) (string, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) UnlinkOwner(ctx context.Context, owner common.Address, validityTimestamp *big.Int, signature []byte) (*TxOutput, error)\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) UpdateAllowedSigners(ctx context.Context, signers []common.Address, allowed bool) error\n```\n\n```go\nfunc (wrc *WorkflowRegistryV2Client) UpsertWorkflow(ctx context.Context, params RegisterWorkflowV2Parameters) (*TxOutput, error)\n```\n\n","path":"github.com/smartcontractkit/cre-cli/cmd/client","name":"client","synopsis":"","isRedistributable":true}
