types

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BroadcastSync  = flags.BroadcastSync
	BroadcastAsync = flags.BroadcastAsync
	BroadcastBlock = flags.BroadcastBlock
)

const

Variables

This section is empty.

Functions

func NewCodec

func NewCodec() (*Codec, AppCodec)

NewCodec new codec

Types

type AppCodec

type AppCodec = codec.Marshaler

AppCodec app marshaler

type ClientConfig

type ClientConfig struct {
	NodeURI       string
	GRpcURI       string
	ChainID       string
	BroadcastMode string
	Gas           uint64
	GasAdjustment float64
}

ClientConfig records the base config of gosdk client

func NewClientConfig

func NewClientConfig(nodeURI, grpcURI, chainID string, broadcastMode string, feesStr string, gas uint64, gasAdjustment float64,
	gasPricesStr string) (cliConfig ClientConfig, err error)

NewClientConfig new ClientConfig

type Codec

type Codec = codec.LegacyAmino

Codec amino codec to marshal/unmarshal

Jump to

Keyboard shortcuts

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