models

package
v0.0.0-...-bee63d0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Envs         config.Env
	EventEmitter *emission.Emitter
}

type Error

type Error struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Error   interface{} `json:"error"`
}

type NewAddressInWatch

type NewAddressInWatch struct {
	Address string `json:"address"`
}

type Response

type Response struct {
	Code    int                    `json:"code"`
	Message string                 `json:"message"`
	Data    interface{}            `json:"data"`
	Meta    map[string]interface{} `json:"meta"`
}

type Transaction

type Transaction struct {
	Id              primitive.ObjectID `json:"_id"`
	BlockNumber     string             `json:"blockNumber"`
	BlockHash       string             `json:"blockHash" validate:"required"`
	Timestamp       int64              `json:"timestamp"`
	Date            time.Time          `json:"date"`
	From            string             `json:"from"`
	Gas             float64            `json:"gas"`
	GasPrice        float64            `json:"gasPrice"`
	Hash            string             `json:"hash" validate:"required"`
	To              string             `json:"to"`
	Type            uint8              `json:"type"`
	Value           float64            `json:"value"`
	SenderBalance   float64            `json:"senderBalance"`
	ReceiverBalance float64            `json:"receiverBalance"`
	ContractAddress string             `json:"contractAddress"`
}

type WatchList

type WatchList struct {
	Id      primitive.ObjectID `json:"_id"`
	Address string             `json:"address" validate:"required"`
}

Jump to

Keyboard shortcuts

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