utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTTP = &HTTPClient{}
View Source
var ZeroAddress = common.HexToAddress("0x0000000000000000000000000000000000000000")

Functions

func ParseTopics

func ParseTopics(topics []common.Hash) (topic.Topic, common.Address, common.Address, *big.Int)

func PrettyString

func PrettyString(str []byte) string

func ReplaceSchemeWithGateway

func ReplaceSchemeWithGateway(url string) string

ReplaceSchemeWithGateway func replaceSchemeWithGateway(url string, gateway string) string {

func WalletShortAddress

func WalletShortAddress(address common.Address) string

Types

type HTTPClient

type HTTPClient struct{}

func (*HTTPClient) Get

func (h *HTTPClient) Get(url string) (*http.Response, error)

func (*HTTPClient) GetWithHeader

func (h *HTTPClient) GetWithHeader(url string, customHeader http.Header) (*http.Response, error)

func (*HTTPClient) GetWithTLS12

func (h *HTTPClient) GetWithTLS12(url string) (*http.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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