wasm

package
v1.18.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package wasm supports smart contract integration with the provenance name module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encoder

func Encoder(contract sdk.AccAddress, msg json.RawMessage, _ string) ([]sdk.Msg, error)

Encoder returns a smart contract message encoder for the name module.

Types

type AssessCustomFeeParams

type AssessCustomFeeParams struct {
	// The fee amount to assess
	Amount sdk.Coin `json:"amount"`
	// The signer of the message
	From string `json:"from"`
	// An optional short name
	Name string `json:"name,omitempty"`
	// An optional address to receive the fees. if present, the split amount from basis points is sent to address.
	Recipient string `json:"recipient,omitempty"`
	// An optional recipient basis points (0 - 10,000). if not present, defaults to 10,000
	RecipientBasisPoints string `recipient_basis_points:"recipient,omitempty"`
}

AssessCustomFeeParams are params for encoding a MsgAssessCustomMsgFeeRequest.

func (*AssessCustomFeeParams) Encode

func (params *AssessCustomFeeParams) Encode(_ sdk.AccAddress) ([]sdk.Msg, error)

Encode creates a MsgAssessCustomMsgFeeRequest.

type MsgFeesMsgParams

type MsgFeesMsgParams struct {
	// Params for encoding a MsgAddMarkerRequest
	AssessCustomFee *AssessCustomFeeParams `json:"assess_custom_fee,omitempty"`
}

MsgFeesMsgParams are params for encoding []sdk.Msg types from the msgfees module.

Jump to

Keyboard shortcuts

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