types

package
v1.6.12 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "auth"
	// DefaultParamspace defines the default auth module parameter subspace
	DefaultParamspace = ModuleName

	StoreKey = "auth"

	// FeeCollectorName the root string for the fee collator account address
	FeeCollectorName = "fee_collector"
)
View Source
const (
	DefaultMaxMemoCharacters      uint64 = 256
	DefaultTxSizeCostPerByte      uint64 = 10
	DefaultSigVerifyCostED25519   uint64 = 590
	DefaultSigVerifyCostSecp256k1 uint64 = 1000
)

Variables

View Source
var (
	KeyMaxMemoCharacters      = []byte("MaxMemoCharacters")
	KeyTxSizeCostPerByte      = []byte("TxSizeCostPerByte")
	KeySigVerifyCostED25519   = []byte("SigVerifyCostED25519")
	KeySigVerifyCostSecp256k1 = []byte("SigVerifyCostSecp256k1")
	KeyNumTxs                 = []byte("NumTxs")
)

Parameter keys

View Source
var (
	ErrTxValidateBasic = sdkerrors.Register(string(DefaultCodespace), uint32(CodeTxValidateBasicError), "tx validate basic failed")
)
View Source
var ModuleCdc *codec.Codec

Functions

func ParamKeyTable

func ParamKeyTable() types.KeyTable

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

Types

type CodeType

type CodeType = sdk.CodeType
const (
	DefaultCodespace         sdk.CodespaceType = "auth"
	CodeTxValidateBasicError CodeType          = 1001
)

type GenesisState

type GenesisState struct {
	Params Params `json:"params" yaml:"params"`
}

func DefaultGenesisState

func DefaultGenesisState() GenesisState

func NewGenesisState

func NewGenesisState(params Params) GenesisState

type Params

type Params struct {
	MaxMemoCharacters      uint64 `json:"max_memo_characters" yaml:"max_memo_characters"`
	TxSizeCostPerByte      uint64 `json:"tx_size_cost_per_byte" yaml:"tx_size_cost_per_byte"`
	SigVerifyCostED25519   uint64 `json:"sig_verify_cost_ed_25519" yaml:"sig_verify_cost_ed_25519"`
	SigVerifyCostSecp256k1 uint64 `json:"sig_verify_cost_secp_256_k_1" yaml:"sig_verify_cost_secp_256_k_1"`
}

func DefaultParams

func DefaultParams() Params

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() types.ParamSetPairs

Jump to

Keyboard shortcuts

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