fury

package
v0.0.0-...-7a9719f Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const FuryNativeToken = "ufury"
View Source
const (
	ModuleName = "fury"
)

Variables

View Source
var (

	// ModuleCdc references the global x/fury 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, furyDid exported.FuryDid, msg sdk.Msg) error

func FurySigVerificationGasConsumer

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

Identical to DefaultSigVerificationGasConsumer, but with ed25519 allowed

func GenerateOrBroadcastTxCLI

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

func GenerateOrBroadcastTxWithFactory

func GenerateOrBroadcastTxWithFactory(clientCtx client.Context, txf tx.Factory, furyDid exported.FuryDid, 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, furyDid exported.FuryDid) error

func SignAndBroadcastTxFromStdSignMsg

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

Types

type FuryMsg

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

type PubKeyGetter

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

Jump to

Keyboard shortcuts

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