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 ¶
func ContractPathToName ¶
func GetArtifactPath ¶
GetArtifactPath returns the artifact path for a given contract name
Types ¶
type APIChecker ¶
type ArtifactMetadata ¶
type ArtifactMetadata struct {
ContractPath string
CompilerVersion string
Optimizer OptimizerSettings
EVMVersion string
Sources map[string]SourceContent
}
ArtifactMetadata contains processed artifact information
type BlockscoutChecker ¶
type BlockscoutChecker struct {
// contains filtered or unexported fields
}
func NewBlockscoutChecker ¶
func NewBlockscoutChecker(verifierUrl string, chainID uint64, logger log.Logger) *BlockscoutChecker
func (*BlockscoutChecker) CanCheck ¶
func (b *BlockscoutChecker) CanCheck() bool
func (*BlockscoutChecker) CheckStatus ¶
func (b *BlockscoutChecker) CheckStatus(ctx context.Context, address common.Address) (*VerificationStatus, error)
func (*BlockscoutChecker) GetChainArg ¶
func (b *BlockscoutChecker) GetChainArg(chainID uint64) (string, error)
func (*BlockscoutChecker) GetDefaultURL ¶
func (b *BlockscoutChecker) GetDefaultURL(chainID uint64) (string, error)
type EtherscanChecker ¶
type EtherscanChecker struct {
// contains filtered or unexported fields
}
func NewEtherscanChecker ¶
func NewEtherscanChecker(apiKey string, chainID uint64, logger log.Logger) *EtherscanChecker
func (*EtherscanChecker) CanCheck ¶
func (e *EtherscanChecker) CanCheck() bool
func (*EtherscanChecker) CheckStatus ¶
func (e *EtherscanChecker) CheckStatus(ctx context.Context, address common.Address) (*VerificationStatus, error)
func (*EtherscanChecker) GetChainArg ¶
func (e *EtherscanChecker) GetChainArg(chainID uint64) (string, error)
func (*EtherscanChecker) GetDefaultURL ¶
func (e *EtherscanChecker) GetDefaultURL(chainID uint64) (string, error)
type ForgeVerifier ¶
type ForgeVerifier struct {
// contains filtered or unexported fields
}
func NewForgeVerifier ¶
func NewForgeVerifier(opts ForgeVerifierOpts) (*ForgeVerifier, error)
func (*ForgeVerifier) VerifyContract ¶
func (*ForgeVerifier) VerifyContractWithConstructorArgs ¶
func (*ForgeVerifier) VerifyContracts ¶
type ForgeVerifierOpts ¶
type OptimizerSettings ¶
OptimizerSettings represents compiler optimizer configuration
type SourceContent ¶
type SourceContent struct {
Content string
}
SourceContent represents the content of a source file
type VerificationStatus ¶
Click to show internal directories.
Click to hide internal directories.