Versions in this module Expand all Collapse all v0 v0.0.2 Nov 14, 2022 v0.0.1 Nov 14, 2022 Changes in this version + var ErrNotFound = errors.New("file not found") + type API struct + func NewAPI(baseURL string) *API + func (api *API) Chains(ctx context.Context) ([]Chain, error) + func (api *API) CheckAllByAddresses(ctx context.Context, addresses []string, chainIds []string) ([]CheckAllStatus, error) + func (api *API) CheckByAddresses(ctx context.Context, addresses []string, chainIds []string) ([]CheckStatus, error) + func (api *API) GetContractAddresses(ctx context.Context, chainID string) (*ContractAddresses, error) + func (api *API) GetFile(ctx context.Context, chainID, address, match, filename string) (*Metadata, error) + func (api *API) GetFileTree(ctx context.Context, chainID, address string) (*FileTree, error) + func (api *API) GetFileTreeFullMatches(ctx context.Context, chainID, address string) ([]string, error) + func (api *API) GetFiles(ctx context.Context, chainID, address string) ([]Sources, error) + func (api *API) GetFilesFullMatch(ctx context.Context, chainID, address string) ([]File, error) + func (api *API) Health(ctx context.Context) (string, error) + type Chain struct + Chain string + ChainID int64 + ContractFetchAddress string + Ens struct{ ... } + Explorers []Explorer + Faucets []string + Icon string + InfoURL string + Monitored bool + Name string + NativeCurrency NativeCurrency + Network string + NetworkID int64 + RPC []string + ShortName string + Slip44 int64 + Supported bool + TxRegex string + type ChainIdStatus struct + ChainID string + Status string + type CheckAllStatus struct + Address string + ChainIds []ChainIdStatus + type CheckStatus struct + Address string + ChainIds []string + Status string + type Compiler struct + Version string + type ContractAddresses struct + Full []string + Partial []string + type Doc struct + Kind string + Methods map[string]stdJSON.RawMessage + Version int + type Error struct + Error string + type Explorer struct + Name string + Standard string + URL string + type File struct + Content string + Name string + Path string + type FileTree struct + Files []string + Status string + type Metadata struct + Compiler Compiler + Language string + Output Output + Settings Settings + Sources map[string]Source + Version int + func ParseMetadata(data string) (*Metadata, error) + type NativeCurrency struct + Decimals int + Name string + Symbol string + type Output struct + ABI stdJSON.RawMessage + DevDoc Doc + UserDoc Doc + type Settings struct + CompilationTarget map[string]string + EvmVersion string + Libraries struct{} + Metadata struct{ ... } + Optimizer struct{ ... } + Remappings []interface{} + type Source struct + Keccak256 string + License string + Urls []string + type Sources struct + Files []File + Status string