Documentation
¶
Index ¶
- Variables
- func AutoVerify(ctx context.Context, logger log.Logger, rpcUrl string, chainID uint64, ...) error
- func ContractPathToName(contractPath string) string
- func GetArtifactPath(name string) string
- func GetBundleFromFile(filepath string) (map[string]common.Address, error)
- func VerifyCLI(cliCtx *cli.Context) error
- type APIChecker
- type ArtifactMetadata
- type BlockscoutChecker
- func (b *BlockscoutChecker) CanCheck() bool
- func (b *BlockscoutChecker) CheckStatus(ctx context.Context, address common.Address) (*VerificationStatus, error)
- func (b *BlockscoutChecker) GetChainArg(chainID uint64) (string, error)
- func (b *BlockscoutChecker) GetDefaultURL(chainID uint64) (string, error)
- type EtherscanChecker
- type ForgeVerifier
- func (v *ForgeVerifier) VerifyContract(ctx context.Context, address common.Address, contractName string) error
- func (v *ForgeVerifier) VerifyContractWithConstructorArgs(ctx context.Context, address common.Address, contractName string, ...) error
- func (v *ForgeVerifier) VerifyContracts(ctx context.Context, contracts map[string]common.Address) (verified, skipped, partiallyVerified, failed int, ...)
- type ForgeVerifierOpts
- type OptimizerSettings
- type SourceContent
- type VerificationStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyVerified = fmt.Errorf("contract already verified") ErrPartiallyVerified = fmt.Errorf("contract is partially verified but cannot be upgraded to full verification") )
Functions ¶
func AutoVerify ¶ added in v1.16.3
func ContractPathToName ¶ added in v1.16.3
func GetArtifactPath ¶ added in v1.16.3
GetArtifactPath returns the artifact path for a given contract name
func GetBundleFromFile ¶ added in v1.16.3
Types ¶
type APIChecker ¶ added in v1.16.3
type ArtifactMetadata ¶ added in v1.16.3
type ArtifactMetadata struct {
ContractPath string
CompilerVersion string
Optimizer OptimizerSettings
EVMVersion string
Sources map[string]SourceContent
}
ArtifactMetadata contains processed artifact information
type BlockscoutChecker ¶ added in v1.16.3
type BlockscoutChecker struct {
// contains filtered or unexported fields
}
func NewBlockscoutChecker ¶ added in v1.16.3
func NewBlockscoutChecker(verifierUrl string, chainID uint64, logger log.Logger) *BlockscoutChecker
func (*BlockscoutChecker) CanCheck ¶ added in v1.16.3
func (b *BlockscoutChecker) CanCheck() bool
func (*BlockscoutChecker) CheckStatus ¶ added in v1.16.3
func (b *BlockscoutChecker) CheckStatus(ctx context.Context, address common.Address) (*VerificationStatus, error)
func (*BlockscoutChecker) GetChainArg ¶ added in v1.16.3
func (b *BlockscoutChecker) GetChainArg(chainID uint64) (string, error)
func (*BlockscoutChecker) GetDefaultURL ¶ added in v1.16.3
func (b *BlockscoutChecker) GetDefaultURL(chainID uint64) (string, error)
type EtherscanChecker ¶ added in v1.16.3
type EtherscanChecker struct {
// contains filtered or unexported fields
}
func NewEtherscanChecker ¶ added in v1.16.3
func NewEtherscanChecker(apiKey string, chainID uint64, logger log.Logger) *EtherscanChecker
func (*EtherscanChecker) CanCheck ¶ added in v1.16.3
func (e *EtherscanChecker) CanCheck() bool
func (*EtherscanChecker) CheckStatus ¶ added in v1.16.3
func (e *EtherscanChecker) CheckStatus(ctx context.Context, address common.Address) (*VerificationStatus, error)
func (*EtherscanChecker) GetChainArg ¶ added in v1.16.3
func (e *EtherscanChecker) GetChainArg(chainID uint64) (string, error)
func (*EtherscanChecker) GetDefaultURL ¶ added in v1.16.3
func (e *EtherscanChecker) GetDefaultURL(chainID uint64) (string, error)
type ForgeVerifier ¶ added in v1.16.3
type ForgeVerifier struct {
// contains filtered or unexported fields
}
func NewForgeVerifier ¶ added in v1.16.3
func NewForgeVerifier(opts ForgeVerifierOpts) (*ForgeVerifier, error)
func (*ForgeVerifier) VerifyContract ¶ added in v1.16.3
func (*ForgeVerifier) VerifyContractWithConstructorArgs ¶ added in v1.16.3
func (*ForgeVerifier) VerifyContracts ¶ added in v1.16.3
type ForgeVerifierOpts ¶ added in v1.16.3
type OptimizerSettings ¶
OptimizerSettings represents compiler optimizer configuration
type SourceContent ¶
type SourceContent struct {
Content string
}
SourceContent represents the content of a source file
type VerificationStatus ¶ added in v1.16.3
Click to show internal directories.
Click to hide internal directories.