xco

package
v0.1.0-xco.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "xco"
)
View Source
const XcoNativeToken = "uxco"

Variables

View Source
var (

	// ModuleCdc references the global x/xco module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/gov and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func BroadcastTx

func BroadcastTx(clientCtx client.Context, txf tx.Factory, xcodid exported.xcodid, msg sdk.Msg) error

func GenerateOrBroadcastTxCLI

func GenerateOrBroadcastTxCLI(clientCtx client.Context, flagSet *pflag.FlagSet, xcodid exported.xcodid, msg sdk.Msg) error

func GenerateOrBroadcastTxWithFactory

func GenerateOrBroadcastTxWithFactory(clientCtx client.Context, txf tx.Factory, xcodid exported.xcodid, msg sdk.Msg) error

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func Sign

func Sign(txf tx.Factory, clientCtx client.Context, txBuilder client.TxBuilder, overwriteSig bool, xcodid exported.xcodid) error

func SignAndBroadcastTxFromStdSignMsg

func SignAndBroadcastTxFromStdSignMsg(clientCtx client.Context,
	msg sdk.Msg, xcodid exported.xcodid, flagSet *pflag.FlagSet) (*sdk.TxResponse, error)

func XcoSigVerificationGasConsumer

func XcoSigVerificationGasConsumer(
	meter sdk.GasMeter, sig signing.SignatureV2, params authtypes.Params,
) error

Identical to DefaultSigVerificationGasConsumer, but with ed25519 allowed

Types

type PubKeyGetter

type PubKeyGetter func(ctx sdk.Context, msg XcoMsg, sigs []signing.SignatureV2) (cryptotypes.PubKey, error)

type XcoMsg

type XcoMsg interface {
	sdk.Msg
	GetSignerDid() exported.Did
	Type() string
	Route() string
}

Jump to

Keyboard shortcuts

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