v1

package
v0.0.0-...-87f7994 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCounter        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCounter          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCounter = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type MsgIncreaseCounter

type MsgIncreaseCounter struct {
	// amount is the amount to increase the counter by.
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
}

MsgIncreaseCounter defines a message which increases the counter by a given amount.

func (*MsgIncreaseCounter) Descriptor

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

func (*MsgIncreaseCounter) GetAmount

func (m *MsgIncreaseCounter) GetAmount() uint64

func (*MsgIncreaseCounter) Marshal

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

func (*MsgIncreaseCounter) MarshalTo

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

func (*MsgIncreaseCounter) MarshalToSizedBuffer

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

func (*MsgIncreaseCounter) ProtoMessage

func (*MsgIncreaseCounter) ProtoMessage()

func (*MsgIncreaseCounter) Reset

func (m *MsgIncreaseCounter) Reset()

func (*MsgIncreaseCounter) Size

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

func (*MsgIncreaseCounter) String

func (m *MsgIncreaseCounter) String() string

func (*MsgIncreaseCounter) Unmarshal

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

func (*MsgIncreaseCounter) XXX_DiscardUnknown

func (m *MsgIncreaseCounter) XXX_DiscardUnknown()

func (*MsgIncreaseCounter) XXX_Marshal

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

func (*MsgIncreaseCounter) XXX_Merge

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

func (*MsgIncreaseCounter) XXX_Size

func (m *MsgIncreaseCounter) XXX_Size() int

func (*MsgIncreaseCounter) XXX_Unmarshal

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

type MsgIncreaseCounterResponse

type MsgIncreaseCounterResponse struct {
	// new_amount defines the new counter value after the increase.
	NewAmount uint64 `protobuf:"varint,1,opt,name=new_amount,json=newAmount,proto3" json:"new_amount,omitempty"`
}

MsgIncreaseCounterResponse defines the MsgIncreaseCounter response type. Returns the new counter value.

func (*MsgIncreaseCounterResponse) Descriptor

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

func (*MsgIncreaseCounterResponse) GetNewAmount

func (m *MsgIncreaseCounterResponse) GetNewAmount() uint64

func (*MsgIncreaseCounterResponse) Marshal

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

func (*MsgIncreaseCounterResponse) MarshalTo

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

func (*MsgIncreaseCounterResponse) MarshalToSizedBuffer

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

func (*MsgIncreaseCounterResponse) ProtoMessage

func (*MsgIncreaseCounterResponse) ProtoMessage()

func (*MsgIncreaseCounterResponse) Reset

func (m *MsgIncreaseCounterResponse) Reset()

func (*MsgIncreaseCounterResponse) Size

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

func (*MsgIncreaseCounterResponse) String

func (m *MsgIncreaseCounterResponse) String() string

func (*MsgIncreaseCounterResponse) Unmarshal

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

func (*MsgIncreaseCounterResponse) XXX_DiscardUnknown

func (m *MsgIncreaseCounterResponse) XXX_DiscardUnknown()

func (*MsgIncreaseCounterResponse) XXX_Marshal

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

func (*MsgIncreaseCounterResponse) XXX_Merge

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

func (*MsgIncreaseCounterResponse) XXX_Size

func (m *MsgIncreaseCounterResponse) XXX_Size() int

func (*MsgIncreaseCounterResponse) XXX_Unmarshal

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

type MsgInit

type MsgInit struct {
	// initial_value is the initial amount to set the counter to.
	InitialValue uint64 `protobuf:"varint,1,opt,name=initial_value,json=initialValue,proto3" json:"initial_value,omitempty"`
}

MsgInit defines a message which initializes the counter with a given amount.

func (*MsgInit) Descriptor

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

func (*MsgInit) GetInitialValue

func (m *MsgInit) GetInitialValue() uint64

func (*MsgInit) Marshal

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

func (*MsgInit) MarshalTo

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

func (*MsgInit) MarshalToSizedBuffer

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

func (*MsgInit) ProtoMessage

func (*MsgInit) ProtoMessage()

func (*MsgInit) Reset

func (m *MsgInit) Reset()

func (*MsgInit) Size

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

func (*MsgInit) String

func (m *MsgInit) String() string

func (*MsgInit) Unmarshal

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

func (*MsgInit) XXX_DiscardUnknown

func (m *MsgInit) XXX_DiscardUnknown()

func (*MsgInit) XXX_Marshal

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

func (*MsgInit) XXX_Merge

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

func (*MsgInit) XXX_Size

func (m *MsgInit) XXX_Size() int

func (*MsgInit) XXX_Unmarshal

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

type MsgInitResponse

type MsgInitResponse struct {
}

MsgInitResponse defines the MsgInit response type.

func (*MsgInitResponse) Descriptor

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

func (*MsgInitResponse) Marshal

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

func (*MsgInitResponse) MarshalTo

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

func (*MsgInitResponse) MarshalToSizedBuffer

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

func (*MsgInitResponse) ProtoMessage

func (*MsgInitResponse) ProtoMessage()

func (*MsgInitResponse) Reset

func (m *MsgInitResponse) Reset()

func (*MsgInitResponse) Size

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

func (*MsgInitResponse) String

func (m *MsgInitResponse) String() string

func (*MsgInitResponse) Unmarshal

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

func (*MsgInitResponse) XXX_DiscardUnknown

func (m *MsgInitResponse) XXX_DiscardUnknown()

func (*MsgInitResponse) XXX_Marshal

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

func (*MsgInitResponse) XXX_Merge

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

func (*MsgInitResponse) XXX_Size

func (m *MsgInitResponse) XXX_Size() int

func (*MsgInitResponse) XXX_Unmarshal

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

type MsgTestDependencies

type MsgTestDependencies struct {
}

MsgTestDependencies is used to test the dependencies.

func (*MsgTestDependencies) Descriptor

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

func (*MsgTestDependencies) Marshal

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

func (*MsgTestDependencies) MarshalTo

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

func (*MsgTestDependencies) MarshalToSizedBuffer

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

func (*MsgTestDependencies) ProtoMessage

func (*MsgTestDependencies) ProtoMessage()

func (*MsgTestDependencies) Reset

func (m *MsgTestDependencies) Reset()

func (*MsgTestDependencies) Size

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

func (*MsgTestDependencies) String

func (m *MsgTestDependencies) String() string

func (*MsgTestDependencies) Unmarshal

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

func (*MsgTestDependencies) XXX_DiscardUnknown

func (m *MsgTestDependencies) XXX_DiscardUnknown()

func (*MsgTestDependencies) XXX_Marshal

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

func (*MsgTestDependencies) XXX_Merge

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

func (*MsgTestDependencies) XXX_Size

func (m *MsgTestDependencies) XXX_Size() int

func (*MsgTestDependencies) XXX_Unmarshal

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

type MsgTestDependenciesResponse

type MsgTestDependenciesResponse struct {
	// chain_id is used to test that the header service correctly works.
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// address is used to test address codec.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// before_gas is used to test the gas meter reporting.
	BeforeGas uint64 `protobuf:"varint,3,opt,name=before_gas,json=beforeGas,proto3" json:"before_gas,omitempty"`
	// after_gas is used to test gas meter increasing.
	AfterGas uint64 `protobuf:"varint,4,opt,name=after_gas,json=afterGas,proto3" json:"after_gas,omitempty"`
	// funds reports the funds from the implementation.Funds method.
	Funds github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=funds,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"funds"`
}

MsgTestDependenciesResponse is used to test the dependencies.

func (*MsgTestDependenciesResponse) Descriptor

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

func (*MsgTestDependenciesResponse) GetAddress

func (m *MsgTestDependenciesResponse) GetAddress() string

func (*MsgTestDependenciesResponse) GetAfterGas

func (m *MsgTestDependenciesResponse) GetAfterGas() uint64

func (*MsgTestDependenciesResponse) GetBeforeGas

func (m *MsgTestDependenciesResponse) GetBeforeGas() uint64

func (*MsgTestDependenciesResponse) GetChainId

func (m *MsgTestDependenciesResponse) GetChainId() string

func (*MsgTestDependenciesResponse) GetFunds

func (*MsgTestDependenciesResponse) Marshal

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

func (*MsgTestDependenciesResponse) MarshalTo

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

func (*MsgTestDependenciesResponse) MarshalToSizedBuffer

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

func (*MsgTestDependenciesResponse) ProtoMessage

func (*MsgTestDependenciesResponse) ProtoMessage()

func (*MsgTestDependenciesResponse) Reset

func (m *MsgTestDependenciesResponse) Reset()

func (*MsgTestDependenciesResponse) Size

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

func (*MsgTestDependenciesResponse) String

func (m *MsgTestDependenciesResponse) String() string

func (*MsgTestDependenciesResponse) Unmarshal

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

func (*MsgTestDependenciesResponse) XXX_DiscardUnknown

func (m *MsgTestDependenciesResponse) XXX_DiscardUnknown()

func (*MsgTestDependenciesResponse) XXX_Marshal

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

func (*MsgTestDependenciesResponse) XXX_Merge

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

func (*MsgTestDependenciesResponse) XXX_Size

func (m *MsgTestDependenciesResponse) XXX_Size() int

func (*MsgTestDependenciesResponse) XXX_Unmarshal

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

type QueryCounterRequest

type QueryCounterRequest struct {
}

QueryCounterRequest is used to query the counter value.

func (*QueryCounterRequest) Descriptor

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

func (*QueryCounterRequest) Marshal

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

func (*QueryCounterRequest) MarshalTo

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

func (*QueryCounterRequest) MarshalToSizedBuffer

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

func (*QueryCounterRequest) ProtoMessage

func (*QueryCounterRequest) ProtoMessage()

func (*QueryCounterRequest) Reset

func (m *QueryCounterRequest) Reset()

func (*QueryCounterRequest) Size

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

func (*QueryCounterRequest) String

func (m *QueryCounterRequest) String() string

func (*QueryCounterRequest) Unmarshal

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

func (*QueryCounterRequest) XXX_DiscardUnknown

func (m *QueryCounterRequest) XXX_DiscardUnknown()

func (*QueryCounterRequest) XXX_Marshal

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

func (*QueryCounterRequest) XXX_Merge

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

func (*QueryCounterRequest) XXX_Size

func (m *QueryCounterRequest) XXX_Size() int

func (*QueryCounterRequest) XXX_Unmarshal

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

type QueryCounterResponse

type QueryCounterResponse struct {
	// value defines the value of the counter.
	Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
}

QueryCounterResponse returns the counter value.

func (*QueryCounterResponse) Descriptor

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

func (*QueryCounterResponse) GetValue

func (m *QueryCounterResponse) GetValue() uint64

func (*QueryCounterResponse) Marshal

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

func (*QueryCounterResponse) MarshalTo

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

func (*QueryCounterResponse) MarshalToSizedBuffer

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

func (*QueryCounterResponse) ProtoMessage

func (*QueryCounterResponse) ProtoMessage()

func (*QueryCounterResponse) Reset

func (m *QueryCounterResponse) Reset()

func (*QueryCounterResponse) Size

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

func (*QueryCounterResponse) String

func (m *QueryCounterResponse) String() string

func (*QueryCounterResponse) Unmarshal

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

func (*QueryCounterResponse) XXX_DiscardUnknown

func (m *QueryCounterResponse) XXX_DiscardUnknown()

func (*QueryCounterResponse) XXX_Marshal

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

func (*QueryCounterResponse) XXX_Merge

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

func (*QueryCounterResponse) XXX_Size

func (m *QueryCounterResponse) XXX_Size() int

func (*QueryCounterResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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