web3

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthResponse

func AuthResponse(client *ethclient.Client, contractAddr, authAddr string, params []byte) (string, error)

func GetEventAddress

func GetEventAddress(e *SelfAuthEvent) string

func Init

func Init(gatewayWss, gatewayHttps string, fGetParam func(string) string) (*ethclient.Client, error)

func StringToKeccak256

func StringToKeccak256(s string) [32]byte

stringToKeccak256 converts a string to a keccak256 hash of type [32]byte

func UnInit

func UnInit(client *ethclient.Client)

func WatchContract

func WatchContract(client *ethclient.Client, watchAddress string, handleFunc func(types.Log) error)

func WatchTransaction

func WatchTransaction(client *ethclient.Client, watchAddress, to string) (err error)

Types

type SelfAuthEvent

type SelfAuthEvent struct {
	AuthAddr [20]byte
	Params   []byte
}

func GetEvent

func GetEvent(l types.Log) *SelfAuthEvent

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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