services

package
v0.0.0-...-68e5106 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainName = "Ethereum"
	Network   = "mainnet"
)
View Source
const MaxRecvMessageSize = 1024 * 1024 * 300

Variables

View Source
var (
	EthGasLimit   uint64 = 21000
	TokenGasLimit uint64 = 120000
)

Functions

This section is empty.

Types

type BusinessMiddleConfig

type BusinessMiddleConfig struct {
	GrpcHostname string
	GrpcPort     int
}

type BusinessMiddleWireServices

type BusinessMiddleWireServices struct {
	*BusinessMiddleConfig
	// contains filtered or unexported fields
}

func NewBusinessMiddleWireServices

func NewBusinessMiddleWireServices(db *database.DB, config *BusinessMiddleConfig, accountClient *rpcclient.WalletChainAccountClient) (*BusinessMiddleWireServices, error)

func (*BusinessMiddleWireServices) BusinessRegister

func (*BusinessMiddleWireServices) ExportAddressesByPublicKeys

func (*BusinessMiddleWireServices) SetTokenAddress

func (*BusinessMiddleWireServices) Start

func (*BusinessMiddleWireServices) Stop

func (*BusinessMiddleWireServices) Stopped

func (bws *BusinessMiddleWireServices) Stopped() bool

type TxStructure

type TxStructure struct {
	ChainId         string `json:"chain_id"`
	Nonce           uint64 `json:"nonce"`
	GasPrice        string `json:"gas_price"`
	GasTipCap       string `json:"gas_tip_cap"`
	GasFeeCap       string `json:"gas_fee_cap"`
	Gas             uint64 `json:"gas"`
	ContractAddress string `json:"contract_address"`
	FromAddress     string `json:"from_address"`
	ToAddress       string `json:"to_address"`
	TokenId         string `json:"token_id"`
	Value           string `json:"value"`
}

Jump to

Keyboard shortcuts

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