cosmos

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccAddressFromBech32  = sdktypes.AccAddressFromBech32
	AccAddressFromHex     = sdktypes.AccAddressFromHex
	ValAddressFromBech32  = sdktypes.ValAddressFromBech32
	ValAddressFromHex     = sdktypes.ValAddressFromHex
	ConsAddressFromBech32 = sdktypes.ConsAddressFromBech32
	ConsAddressFromHex    = sdktypes.ConsAddressFromHex
)
View Source
var (
	NewCoin         = sdktypes.NewCoin
	NewInt64Coin    = sdktypes.NewInt64Coin
	NewCoins        = sdktypes.NewCoins
	NewDecCoin      = sdktypes.NewDecCoin
	NewInt64DecCoin = sdktypes.NewInt64DecCoin
	NewDecCoins     = sdktypes.NewDecCoins
)
View Source
var (
	NewMsgSend      = banktypes.NewMsgSend
	NewMsgMultiSend = banktypes.NewMsgMultiSend
)
View Source
var (
	NewInt                   = sdktypes.NewInt
	NewIntFromBigInt         = sdktypes.NewIntFromBigInt
	NewIntFromString         = sdktypes.NewIntFromString
	NewIntFromUint64         = sdktypes.NewIntFromUint64
	NewIntWithDecimal        = sdktypes.NewIntWithDecimal
	NewDec                   = sdktypes.NewDec
	NewDecCoinFromCoin       = sdktypes.NewDecCoinFromCoin
	NewDecCoinFromDec        = sdktypes.NewDecCoinFromDec
	NewDecFromBigInt         = sdktypes.NewDecFromBigInt
	NewDecFromBigIntWithPrec = sdktypes.NewDecFromBigIntWithPrec
	NewDecFromInt            = sdktypes.NewDecFromInt
	NewDecFromIntWithPrec    = sdktypes.NewDecFromIntWithPrec
	NewDecFromStr            = sdktypes.NewDecFromStr
	NewDecWithPrec           = sdktypes.NewDecWithPrec
)
View Source
var (
	SignWithPrivKey = clienttx.SignWithPrivKey
)

Functions

This section is empty.

Types

type AccAddress

type AccAddress = sdktypes.AccAddress

type BroadcastMode

type BroadcastMode = txtypes.BroadcastMode
const (
	BroadcastModeUnspecified BroadcastMode = 0
	BroadcastModeBlock       BroadcastMode = 1
	BroadcastModeSync        BroadcastMode = 2
	BroadcastModeAsync       BroadcastMode = 3
)

type BroadcastTxRequest

type BroadcastTxRequest = txtypes.BroadcastTxRequest

func NewBroadcastTxRequest

func NewBroadcastTxRequest(txBytes []byte, broadcastMode BroadcastMode) *BroadcastTxRequest

type BroadcastTxResponse

type BroadcastTxResponse = txtypes.BroadcastTxResponse

type Coin

type Coin = sdktypes.Coin

type Coins

type Coins = sdktypes.Coins

type ConsAddress

type ConsAddress = sdktypes.ConsAddress

type Dec

type Dec = sdktypes.Dec

type DecCoin

type DecCoin = sdktypes.DecCoin

type DecCoins

type DecCoins = sdktypes.DecCoins

type Int

type Int = sdktypes.Int

type Msg

type Msg = sdktypes.Msg

type MultiSend

type MultiSend = banktypes.MsgMultiSend

type Send

type Send = banktypes.MsgSend

type SignMode

type SignMode = signing.SignMode

SignMode represents a signing mode with its own security guarantees.

const (
	// SignModeUnspecified specifies an unknown signing mode and will be
	// rejected
	SignModeUnspecified SignMode = 0
	// SignModeDirect specifies a signing mode which uses SignDoc and is
	// verified with raw bytes from Tx
	SignModeDirect SignMode = 1
	// SignModeTexture is a future signing mode that will verify some
	// human-readable textual representation on top of the binary representation
	// from SIGN_MODE_DIRECT
	SignModeTexture SignMode = 2
	// SignModeLegacyAminoJSON is a backwards compatibility mode which uses
	// Amino JSON and will be removed in the future
	SignModeLegacyAminoJSON SignMode = 127
)

type SignatureV2

type SignatureV2 = signing.SignatureV2

SignatureV2 is a convenience type that is easier to use in application logic than the protobuf SignerInfo's and raw signature bytes. It goes beyond the first sdk.Signature types by supporting sign modes and explicitly nested multi-signatures. It is intended to be used for both building and verifying signatures.

type SignerData

type SignerData = authsigning.SignerData

SignerData is the specific information needed to sign a transaction that generally isn't included in the transaction body itself

type SimulateRequest

type SimulateRequest = txtypes.SimulateRequest

func NewSimulateRequest

func NewSimulateRequest(txBytes []byte) *SimulateRequest

type SimulateResponse

type SimulateResponse = txtypes.SimulateResponse

type SingleSignatureData

type SingleSignatureData = signing.SingleSignatureData

type Tx

type Tx = authsigning.Tx

Tx defines a transaction interface that supports all standard message, signature fee, memo, and auxiliary interfaces.

type TxBuilder

type TxBuilder = client.TxBuilder

type TxConfig

type TxConfig = client.TxConfig

type TxResponse

type TxResponse = types.TxResponse

type ValAddress

type ValAddress = sdktypes.ValAddress

Jump to

Keyboard shortcuts

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