terra

package
v0.5.15 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: GPL-3.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
const DefaultTerraDecimalsDivisor = 1e5

Variables

View Source
var (
	// NewAddressDecoder re-exports cosmos.NewAddressDecoder
	NewAddressDecoder = cosmos.NewAddressDecoder

	// NewAddressEncoder re-exports cosmos.NewAddressEncoder
	NewAddressEncoder = cosmos.NewAddressEncoder

	// NewAddressEncodeDecoder re-exports cosmos.NewAddressEnodeDecoder
	NewAddressEncodeDecoder = cosmos.NewAddressEncodeDecoder
)
View Source
var (
	// DefaultClientOptions re-exports cosmos.DefaultClientOptions
	DefaultClientOptions = cosmos.DefaultClientOptions

	// DefaultTxBuilderOptions re-exports cosmos.DefaultTxBuilderOptions
	DefaultTxBuilderOptions = cosmos.DefaultTxBuilderOptions

	// NewGasEstimator re-exports cosmos.NewGasEstimator
	NewGasEstimator = cosmos.NewGasEstimator
)

Functions

func NewTxBuilder

func NewTxBuilder(opts TxBuilderOptions, client *Client) account.TxBuilder

NewTxBuilder returns an implementation of the transaction builder interface from the Cosmos Compat API, and exposes the functionality to build simple Terra transactions.

Types

type Address

type Address = cosmos.Address

Address re-exports cosmos-compatible address

type AddressDecoder

type AddressDecoder = cosmos.AddressDecoder

AddressDecoder re-exports cosmos.AddressDecoder

type AddressEncodeDecoder

type AddressEncodeDecoder = cosmos.AddressEncodeDecoder

AddressEncodeDecoder re-exports cosmos.AddressEncodeDecoder

type AddressEncoder

type AddressEncoder = cosmos.AddressEncoder

AddressEncoder re-exports cosmos.AddressEncoder

type Client

type Client = cosmos.Client

Client re-exports cosmos.Client

func NewClient

func NewClient(opts ClientOptions) *Client

NewClient returns returns a new Client with Terra codec.

type ClientOptions

type ClientOptions = cosmos.ClientOptions

ClientOptions re-exports cosmos.ClientOptions

type GasEstimator added in v0.5.6

type GasEstimator struct {
	// contains filtered or unexported fields
}

func NewHttpGasEstimator added in v0.5.6

func NewHttpGasEstimator(url, key string, decimals int, fallbackGas pack.U256) GasEstimator

func (GasEstimator) EstimateGas added in v0.5.6

func (gasEstimator GasEstimator) EstimateGas(ctx context.Context) (pack.U256, pack.U256, error)

type TxBuilderOptions

type TxBuilderOptions = cosmos.TxBuilderOptions

TxBuilderOptions re-exports cosmos.TxBuilderOptions

Jump to

Keyboard shortcuts

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