explorer

package
v0.0.0-...-e8a7bc5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadContractABI

func DownloadContractABI(b *cmn.Blockchain, a common.Address) error

func DownloadContractCode

func DownloadContractCode(b *cmn.Blockchain, a common.Address) (string, error)

func Init

func Init()

func Loop

func Loop()

Types

type ABIElement

type ABIElement struct {
	Type            string            `json:"type"`
	StateMutability string            `json:"stateMutability,omitempty"`
	Inputs          []ABIInputElement `json:"inputs,omitempty"`
	Name            string            `json:"name,omitempty"`
}

type ABIInputElement

type ABIInputElement struct {
	Type         string            `json:"type"`
	Name         string            `json:"name"`
	InternalType string            `json:"internalType,omitempty"`
	Components   []ABIInputElement `json:"components,omitempty"`
}

type BlockscoutAPI

type BlockscoutAPI struct {
}

func (*BlockscoutAPI) DownloadContract

func (e *BlockscoutAPI) DownloadContract(w *cmn.Wallet, b *cmn.Blockchain, a common.Address) (string, error)

type ConstructorArguments

type ConstructorArguments struct {
}

type ContractSource

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

type EtherScanAPI

type EtherScanAPI struct {
}

func (*EtherScanAPI) DownloadContract

func (e *EtherScanAPI) DownloadContract(w *cmn.Wallet, b *cmn.Blockchain, a common.Address) (string, error)

type Explorer

type Explorer interface {
	DownloadContract(w *cmn.Wallet, b *cmn.Blockchain, contract common.Address) (string, error)
}

type ExternalLibrary

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

type SmartContract

type SmartContract 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                        []ABIElement           `json:"abi"`
	SourceCode                 string                 `json:"source_code"`
	FilePath                   string                 `json:"file_path"`
	CompilerSettings           map[string]interface{} `json:"compiler_settings"`
	ConstructorArgs            string                 `json:"constructor_args"`
	AdditionalSources          []ContractSource       `json:"additional_sources"`
}

Jump to

Keyboard shortcuts

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