v1beta3

package
v0.0.2-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName is the module name constant used in many places
	ModuleName = "agov"

	// StoreKey is the store key string for deployment
	StoreKey = ModuleName

	// RouterKey is the message route for deployment
	RouterKey = ModuleName
)

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultMinInitialDepositRate = sdk.NewDecWithPrec(40, 2)
)
View Source
var (
	KeyDepositParams = []byte("depositparams")
)

Functions

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for agov module Deprecated: now params can be accessed via cosmos-sdk gov store

Types

type DepositParams

type DepositParams struct {
	// min_initial_deposit_rate minimum % of TotalDeposit
	// author of the proposal must put in order for proposal tx to be committed
	MinInitialDepositRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 200-byte string literal not displayed */
}

DepositParams defines the parameters for the x/gov module

func DefaultDepositParams

func DefaultDepositParams() DepositParams

func NewDepositParams

func NewDepositParams(minInitialDepositRate sdk.Dec) DepositParams

NewDepositParams creates a new DepositParams object

func (*DepositParams) Descriptor

func (*DepositParams) Descriptor() ([]byte, []int)

func (*DepositParams) Marshal

func (m *DepositParams) Marshal() (dAtA []byte, err error)

func (*DepositParams) MarshalTo

func (m *DepositParams) MarshalTo(dAtA []byte) (int, error)

func (*DepositParams) MarshalToSizedBuffer

func (m *DepositParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DepositParams) ProtoMessage

func (*DepositParams) ProtoMessage()

func (*DepositParams) Reset

func (m *DepositParams) Reset()

func (*DepositParams) Size

func (m *DepositParams) Size() (n int)

func (*DepositParams) String

func (m *DepositParams) String() string

func (*DepositParams) Unmarshal

func (m *DepositParams) Unmarshal(dAtA []byte) error

func (DepositParams) Validate

func (p DepositParams) Validate() error

func (*DepositParams) XXX_DiscardUnknown

func (m *DepositParams) XXX_DiscardUnknown()

func (*DepositParams) XXX_Marshal

func (m *DepositParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DepositParams) XXX_Merge

func (m *DepositParams) XXX_Merge(src proto.Message)

func (*DepositParams) XXX_Size

func (m *DepositParams) XXX_Size() int

func (*DepositParams) XXX_Unmarshal

func (m *DepositParams) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	DepositParams DepositParams `protobuf:"bytes,1,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params" yaml:"deposit_params"`
}

GenesisState stores slice of genesis deployment instance

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetDepositParams

func (m *GenesisState) GetDepositParams() DepositParams

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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