Documentation ¶
Index ¶
- Constants
- Variables
- func BroadcastTx(clientCtx client.Context, txf tx.Factory, xcodid exported.xcodid, msg sdk.Msg) error
- func GenerateOrBroadcastTxCLI(clientCtx client.Context, flagSet *pflag.FlagSet, xcodid exported.xcodid, ...) error
- func GenerateOrBroadcastTxWithFactory(clientCtx client.Context, txf tx.Factory, xcodid exported.xcodid, msg sdk.Msg) error
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func Sign(txf tx.Factory, clientCtx client.Context, txBuilder client.TxBuilder, ...) error
- func SignAndBroadcastTxFromStdSignMsg(clientCtx client.Context, msg sdk.Msg, xcodid exported.xcodid, ...) (*sdk.TxResponse, error)
- func XcoSigVerificationGasConsumer(meter sdk.GasMeter, sig signing.SignatureV2, params authtypes.Params) error
- type PubKeyGetter
- type XcoMsg
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 RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
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)
Click to show internal directories.
Click to hide internal directories.