Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand creates the contract command with verify-env subcommand.
func NewVerifyEnvCmd ¶
NewVerifyEnvCmd creates the verify-env subcommand. Exported for domains that want to add it as a top-level command (e.g. verify-evm) while using the same implementation.
Types ¶
type Config ¶
type Config struct {
Logger logger.Logger
Domain domain.Domain
ContractInputsProvider evm.ContractInputsProvider
// VerifierHTTPClient is optional; when set, verifiers use it for API calls (e.g. in tests).
VerifierHTTPClient *http.Client
Deps Deps
}
Config holds the configuration for contract commands.
type DataStoreLoadOptions ¶
type DataStoreLoadOptions struct {
// FromLocal, when true, always use local files (envdir.DataStore) and ignore domain config.
// Use for local runs when you want to verify against local datastore only.
FromLocal bool
}
DataStoreLoadOptions configures how the datastore is loaded.
type DataStoreLoaderFunc ¶
type DataStoreLoaderFunc func(ctx context.Context, envdir domain.EnvDir, lggr logger.Logger, opts DataStoreLoadOptions) (datastore.DataStore, error)
DataStoreLoaderFunc returns a datastore for the given env directory. When opts.FromLocal is false and domain uses catalog datastore, loads from the remote catalog (CI-friendly).
type Deps ¶
type Deps struct {
NetworkLoader NetworkLoaderFunc
DataStoreLoader DataStoreLoaderFunc
}
Deps holds injectable dependencies.
Click to show internal directories.
Click to hide internal directories.