explorers

package
v0.0.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CACHE_TIME_OUT int64 = 30 // 30 seconds

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockExplorer

type BlockExplorer interface {
	RecommendedGasPrice() (float64, error)
	GetABIString(address string) (string, error)
}

type ConstructorArgument added in v0.0.31

type ConstructorArgument struct {
}

type ContractSource added in v0.0.31

type ContractSource struct {
	FilePath   string `json:"file_path"`
	SourceCode string `json:"source_code"`
}

type EtherscanLikeExplorer

type EtherscanLikeExplorer struct {
	ChainID uint64

	Domain string
	APIKey string
	// contains filtered or unexported fields
}

func NewBscscan

func NewBscscan() *EtherscanLikeExplorer

func NewEtherscanLikeExplorer

func NewEtherscanLikeExplorer(domain string, apiKey string) *EtherscanLikeExplorer

func NewEtherscanV2 added in v0.0.32

func NewEtherscanV2() *EtherscanLikeExplorer

func NewFtmscan

func NewFtmscan() *EtherscanLikeExplorer

func NewKovanEtherscan

func NewKovanEtherscan() *EtherscanLikeExplorer

func NewMainnetEtherscan

func NewMainnetEtherscan() *EtherscanLikeExplorer

func NewMumbaiPolygonscan

func NewMumbaiPolygonscan() *EtherscanLikeExplorer

func NewPolygonscan

func NewPolygonscan() *EtherscanLikeExplorer

func NewRinkebyEtherscan

func NewRinkebyEtherscan() *EtherscanLikeExplorer

func NewRopstenEtherscan

func NewRopstenEtherscan() *EtherscanLikeExplorer

func NewSnowtrace added in v0.0.30

func NewSnowtrace() *EtherscanLikeExplorer

func NewTestnetBscscan

func NewTestnetBscscan() *EtherscanLikeExplorer

func NewTomoBlockExplorer

func NewTomoBlockExplorer() *EtherscanLikeExplorer

func (*EtherscanLikeExplorer) GetABIString

func (ee *EtherscanLikeExplorer) GetABIString(address string) (string, error)

func (*EtherscanLikeExplorer) GetABIStringAPIURL

func (ee *EtherscanLikeExplorer) GetABIStringAPIURL(address string) string

func (*EtherscanLikeExplorer) RecommendedGasPrice

func (ee *EtherscanLikeExplorer) RecommendedGasPrice() (float64, error)

func (*EtherscanLikeExplorer) RecommendedGasPriceAPIURL

func (ee *EtherscanLikeExplorer) RecommendedGasPriceAPIURL() string

type ExternalLibrary added in v0.0.31

type ExternalLibrary struct {
	Name        string `json:"name"`
	AddressHash string `json:"address_hash"`
}

type OptimisticRollupExplorer added in v0.0.31

type OptimisticRollupExplorer struct {
	Domain string
	APIKey string
	// contains filtered or unexported fields
}

func NewOptimisticRollupExplorer added in v0.0.31

func NewOptimisticRollupExplorer(domain string, apiKey string) *OptimisticRollupExplorer

func (*OptimisticRollupExplorer) GetABIString added in v0.0.31

func (ee *OptimisticRollupExplorer) GetABIString(address string) (string, error)

func (*OptimisticRollupExplorer) RecommendedGasPrice added in v0.0.31

func (ee *OptimisticRollupExplorer) RecommendedGasPrice() (float64, error)

type SmartContractResponse added in v0.0.31

type SmartContractResponse struct {
	VerifiedTwinAddressHash    string                `json:"verified_twin_address_hash"`
	IsVerified                 bool                  `json:"is_verified"`
	IsChangedBytecode          bool                  `json:"is_changed_bytecode"`
	IsPartiallyVerified        bool                  `json:"is_partially_verified"`
	IsFullyVerified            bool                  `json:"is_fully_verified"`
	IsVerifiedViaSourcify      bool                  `json:"is_verified_via_sourcify"`
	IsVerifiedViaEthBytecodeDB bool                  `json:"is_verified_via_eth_bytecode_db"`
	IsVyperContract            bool                  `json:"is_vyper_contract"`
	IsSelfDestructed           bool                  `json:"is_self_destructed"`
	CanBeVisualizedViaSol2uml  bool                  `json:"can_be_visualized_via_sol2uml"`
	MinimalProxyAddressHash    string                `json:"minimal_proxy_address_hash"`
	SourcifyRepoURL            string                `json:"sourcify_repo_url"`
	Name                       string                `json:"name"`
	OptimizationEnabled        bool                  `json:"optimization_enabled"`
	OptimizationsRuns          int                   `json:"optimizations_runs"`
	CompilerVersion            string                `json:"compiler_version"`
	EVMVersion                 string                `json:"evm_version"`
	VerifiedAt                 string                `json:"verified_at"`
	ABI                        string                `json:"abi"`
	SourceCode                 string                `json:"source_code"`
	FilePath                   string                `json:"file_path"`
	CompilerSettings           interface{}           `json:"compiler_settings"`
	ConstructorArgs            string                `json:"constructor_args"`
	AdditionalSources          []ContractSource      `json:"additional_sources"`
	DecodedConstructorArgs     []ConstructorArgument `json:"decoded_constructor_args"`
	DeployedBytecode           string                `json:"deployed_bytecode"`
	CreationBytecode           string                `json:"creation_bytecode"`
	ExternalLibraries          []ExternalLibrary     `json:"external_libraries"`
	Language                   string                `json:"language"`
}

SmartContract represents the response structure from the HTTP call for smart contract verification details.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL