common

package
v0.0.0-...-69a37e0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: LGPL-2.1 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS       = 0
	HASHLENERROR  = 1
	HASHDATAERROR = 2
	SERVERERROR   = 3
)
View Source
const (
	WETHER_DATA_PROCESS string = "Weather Forecast"
)

Variables

View Source
var CodeMessageMap = map[int32]string{
	SUCCESS:       "success",
	HASHLENERROR:  "hash use sha256. match 32 bytes",
	HASHDATAERROR: "hash error",
	SERVERERROR:   "verify server get error from layer2 server",
}

Functions

func GetLayer2EventByTxHash

func GetLayer2EventByTxHash(txHash string, cfg *layer2config.Config) (*sdkcom.SmartContactEvent, error)

Types

type VerifyResponse

type VerifyResponse struct {
	Code    int32       `json:"code"`
	Message string      `json:"message"`
	Result  interface{} `json:"result"`
}

Jump to

Keyboard shortcuts

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