cosmos

package
v1.0.2-prerelease Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCoinDecimals = 8

	EnvSignerName     = "SIGNER_NAME"
	EnvSignerPassword = "SIGNER_PASSWD"
	EnvChainHome      = "CHAIN_HOME_FOLDER"
)

Variables

View Source
var (
	KeyringServiceName           = sdk.KeyringServiceName
	NewRoute                     = baseapp.NewMsgServiceRouter
	NewKVStoreKeys               = storetypes.NewKVStoreKeys
	NewUint                      = sdkmath.NewUint
	ParseUint                    = sdkmath.ParseUint
	NewInt                       = sdkmath.NewInt
	NewIntFromString             = sdkmath.NewIntFromString
	NewDec                       = sdkmath.LegacyNewDec
	ZeroInt                      = sdkmath.ZeroInt
	ZeroUint                     = sdkmath.ZeroUint
	ZeroDec                      = sdkmath.LegacyZeroDec
	OneUint                      = sdkmath.OneUint
	NewInt64Coin                 = sdk.NewInt64Coin
	NewCoin                      = sdk.NewCoin
	NewCoins                     = sdk.NewCoins
	ParseCoin                    = sdk.ParseCoinNormalized
	ParseCoins                   = sdk.ParseCoinsNormalized
	NewDecWithPrec               = sdkmath.LegacyNewDecWithPrec
	NewDecFromBigInt             = sdkmath.LegacyNewDecFromBigInt
	NewIntFromBigInt             = sdkmath.NewIntFromBigInt
	NewUintFromBigInt            = sdkmath.NewUintFromBigInt
	ValAddressFromBech32         = sdk.ValAddressFromBech32
	AccAddressFromBech32         = sdk.AccAddressFromBech32
	VerifyAddressFormat          = sdk.VerifyAddressFormat
	GetFromBech32                = sdk.GetFromBech32
	NewAttribute                 = sdk.NewAttribute
	NewDecFromStr                = sdkmath.LegacyNewDecFromStr
	GetConfig                    = sdk.GetConfig
	NewEvent                     = sdk.NewEvent
	RegisterCodec                = sdk.RegisterLegacyAminoCodec
	NewEventManager              = sdk.NewEventManager
	EventTypeMessage             = sdk.EventTypeMessage
	AttributeKeyModule           = sdk.AttributeKeyModule
	KVStorePrefixIterator        = storetypes.KVStorePrefixIterator
	KVStoreReversePrefixIterator = storetypes.KVStoreReversePrefixIterator
	NewKVStoreKey                = storetypes.NewKVStoreKey
	NewTransientStoreKey         = storetypes.NewTransientStoreKey
	NewContext                   = sdk.NewContext

	// nolint
	GetPubKeyFromBech32 = legacybech32.UnmarshalPubKey
	// nolint
	Bech32ifyPubKey         = legacybech32.MarshalPubKey
	Bech32PubKeyTypeConsPub = legacybech32.ConsPK
	Bech32PubKeyTypeAccPub  = legacybech32.AccPK
	Bech32PubkeyTypeValPK   = legacybech32.ValPK
	Wrapf                   = errors.Wrapf
	MustSortJSON            = sdk.MustSortJSON
	CodeUnauthorized        = uint32(4)
	CodeInsufficientFunds   = uint32(5)
)

Functions

func ErrInsufficientCoins

func ErrInsufficientCoins(err error, msg string) error

func ErrInvalidAddress

func ErrInvalidAddress(addr string) error

func ErrInvalidCoins

func ErrInvalidCoins(msg string) error

func ErrUnauthorized

func ErrUnauthorized(msg string) error

func ErrUnknownRequest

func ErrUnknownRequest(msg string) error

Types

type AccAddress

type AccAddress = sdk.AccAddress

type Account

type Account = sdk.AccountI

type Attribute

type Attribute = sdk.Attribute

type Coin

type Coin = sdk.Coin

type Coins

type Coins = sdk.Coins

type Context

type Context = sdk.Context

type Dec

type Dec = sdkmath.LegacyDec

type Event

type Event = sdk.Event

type Events

type Events = sdk.Events

type Int

type Int = sdkmath.Int

type Iterator

type Iterator = storetypes.Iterator

type Msg

type Msg = sdk.Msg

type Result

type Result = sdk.Result

type TxResponse

type TxResponse = sdk.TxResponse

Handler = baseapp.MsgServiceHandler Querier = func(ctx Context, path []string, req abci.RequestQuery) ([]byte, error)

type Uint

type Uint = sdkmath.Uint

Route = baseapp.MessageRouter

type ValAddress

type ValAddress = sdk.ValAddress

Jump to

Keyboard shortcuts

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