global

package
v0.0.0-...-1369677 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB           *gorm.DB
	EthClient    *ethclient.Client
	ChainId      int64
	GasPriceRate = uint64(100) // gasPrice浮动
)

Functions

func SetAccount

func SetAccount(_accounts ...Account)

SetAccount 设置账号

Types

type Account

type Account struct {
	ContractAddress string // 合约地址
	Address         string // 地址
	PrivateKey      string // 私钥
}

func GetAccount

func GetAccount(contractAddress string) *Account

Jump to

Keyboard shortcuts

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