Documentation ¶
Index ¶
- func DownloadContractABI(b *cmn.Blockchain, a common.Address) error
- func DownloadContractCode(b *cmn.Blockchain, a common.Address) (string, error)
- func Init()
- func Loop()
- type ABIElement
- type ABIInputElement
- type BlockscoutAPI
- type ConstructorArguments
- type ContractSource
- type EtherScanAPI
- type Explorer
- type ExternalLibrary
- type SmartContract
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadContractABI ¶
func DownloadContractABI(b *cmn.Blockchain, a common.Address) error
func DownloadContractCode ¶
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 EtherScanAPI ¶
type EtherScanAPI struct { }
func (*EtherScanAPI) DownloadContract ¶
func (e *EtherScanAPI) DownloadContract(w *cmn.Wallet, b *cmn.Blockchain, a common.Address) (string, error)
type ExternalLibrary ¶
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"` }
Click to show internal directories.
Click to hide internal directories.