types

package
v0.36.1 Latest Latest
Warning

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

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

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the name of the module
	ModuleName = "permission"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// RouterKey to be used for routing msgs
	RouterKey = ModuleName

	// QuerierRoute to be used for legacy query routing
	QuerierRoute = ModuleName

	// RestRoute to be used for rest routing
	RestRoute = 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 (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrGov = sdkerrors.Register(ModuleName, 2, "permission module error")
)

module errors

View Source
var ModuleCdc = codec.NewAminoCodec(amino)

ModuleCdc defines the module codec

Functions

func KeyTable

func KeyTable() params.KeyTable

KeyTable retrieves a subspace table for the module

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers types and interfaces with the given registry

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers concrete types on codec

func RegisterMsgHandler added in v0.18.0

func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMsgHandlerClient added in v0.18.0

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

RegisterMsgHandlerClient registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgClient" to call the correct interceptors.

func RegisterMsgHandlerFromEndpoint added in v0.18.0

func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMsgHandlerServer added in v0.18.0

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterMsgHandlerFromEndpoint instead.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type DeregisterControllerRequest

type DeregisterControllerRequest struct {
	Sender     github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=sender,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"sender,omitempty"`
	Controller github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 128-byte string literal not displayed */
}

DeregisterController represents a message to deregister a controller account

func NewDeregisterControllerRequest

func NewDeregisterControllerRequest(sender sdk.AccAddress, controller sdk.AccAddress) *DeregisterControllerRequest

NewDeregisterControllerRequest is the constructor for DeregisterControllerRequest

func (*DeregisterControllerRequest) Descriptor

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

func (DeregisterControllerRequest) GetSignBytes

func (m DeregisterControllerRequest) GetSignBytes() []byte

GetSignBytes returns the message bytes that need to be signed

func (DeregisterControllerRequest) GetSigners

func (m DeregisterControllerRequest) GetSigners() []sdk.AccAddress

GetSigners returns the set of signers for this message

func (*DeregisterControllerRequest) Marshal

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

func (*DeregisterControllerRequest) MarshalTo

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

func (*DeregisterControllerRequest) MarshalToSizedBuffer

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

func (*DeregisterControllerRequest) ProtoMessage

func (*DeregisterControllerRequest) ProtoMessage()

func (*DeregisterControllerRequest) Reset

func (m *DeregisterControllerRequest) Reset()

func (DeregisterControllerRequest) Route

Route returns the route for this message

func (*DeregisterControllerRequest) Size

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

func (*DeregisterControllerRequest) String

func (m *DeregisterControllerRequest) String() string

func (DeregisterControllerRequest) Type

Type returns the type of the message

func (*DeregisterControllerRequest) Unmarshal

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

func (DeregisterControllerRequest) ValidateBasic

func (m DeregisterControllerRequest) ValidateBasic() error

ValidateBasic executes a stateless message validation

func (*DeregisterControllerRequest) XXX_DiscardUnknown

func (m *DeregisterControllerRequest) XXX_DiscardUnknown()

func (*DeregisterControllerRequest) XXX_Marshal

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

func (*DeregisterControllerRequest) XXX_Merge

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

func (*DeregisterControllerRequest) XXX_Size

func (m *DeregisterControllerRequest) XXX_Size() int

func (*DeregisterControllerRequest) XXX_Unmarshal

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

type DeregisterControllerResponse

type DeregisterControllerResponse struct {
}

func (*DeregisterControllerResponse) Descriptor

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

func (*DeregisterControllerResponse) Marshal

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

func (*DeregisterControllerResponse) MarshalTo

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

func (*DeregisterControllerResponse) MarshalToSizedBuffer

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

func (*DeregisterControllerResponse) ProtoMessage

func (*DeregisterControllerResponse) ProtoMessage()

func (*DeregisterControllerResponse) Reset

func (m *DeregisterControllerResponse) Reset()

func (*DeregisterControllerResponse) Size

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

func (*DeregisterControllerResponse) String

func (*DeregisterControllerResponse) Unmarshal

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

func (*DeregisterControllerResponse) XXX_DiscardUnknown

func (m *DeregisterControllerResponse) XXX_DiscardUnknown()

func (*DeregisterControllerResponse) XXX_Marshal

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

func (*DeregisterControllerResponse) XXX_Merge

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

func (*DeregisterControllerResponse) XXX_Size

func (m *DeregisterControllerResponse) XXX_Size() int

func (*DeregisterControllerResponse) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params        Params                      `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	GovernanceKey *multisig.LegacyAminoPubKey `protobuf:"bytes,2,opt,name=governance_key,json=governanceKey,proto3" json:"governance_key,omitempty"`
	GovAccounts   []GovAccount                `protobuf:"bytes,3,rep,name=gov_accounts,json=govAccounts,proto3" json:"gov_accounts"`
}

GenesisState represents the genesis state

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a genesis state with default parameters

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) GenesisState

GetGenesisStateFromAppState returns x/permission GenesisState given raw application genesis state.

func NewGenesisState

func NewGenesisState(params Params, governanceKey *multisig.LegacyAminoPubKey, accounts []GovAccount) *GenesisState

NewGenesisState is the constructor for GenesisState

func (*GenesisState) Descriptor

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

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) Validate

func (m GenesisState) Validate() error

Validate performs a validation check on the genesis parameters

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

type GovAccount

type GovAccount struct {
	Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"`
	Role    exported.Role                                 `protobuf:"varint,2,opt,name=role,proto3,enum=axelar.permission.exported.v1beta1.Role" json:"role,omitempty"`
}

func NewGovAccount

func NewGovAccount(addr sdk.AccAddress, role exported.Role) GovAccount

NewGovAccount performs a stateless check to ensure the Chain object has been initialized correctly

func (*GovAccount) Descriptor

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

func (*GovAccount) Marshal

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

func (*GovAccount) MarshalTo

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

func (*GovAccount) MarshalToSizedBuffer

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

func (*GovAccount) ProtoMessage

func (*GovAccount) ProtoMessage()

func (*GovAccount) Reset

func (m *GovAccount) Reset()

func (*GovAccount) Size

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

func (*GovAccount) String

func (m *GovAccount) String() string

func (*GovAccount) Unmarshal

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

func (GovAccount) Validate

func (m GovAccount) Validate() error

Validate performs a stateless check to ensure the Chain object has been initialized correctly

func (*GovAccount) XXX_DiscardUnknown

func (m *GovAccount) XXX_DiscardUnknown()

func (*GovAccount) XXX_Marshal

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

func (*GovAccount) XXX_Merge

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

func (*GovAccount) XXX_Size

func (m *GovAccount) XXX_Size() int

func (*GovAccount) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	RegisterController(ctx context.Context, in *RegisterControllerRequest, opts ...grpc.CallOption) (*RegisterControllerResponse, error)
	DeregisterController(ctx context.Context, in *DeregisterControllerRequest, opts ...grpc.CallOption) (*DeregisterControllerResponse, error)
	UpdateGovernanceKey(ctx context.Context, in *UpdateGovernanceKeyRequest, opts ...grpc.CallOption) (*UpdateGovernanceKeyResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

MsgServer is the server API for Msg service.

type Params

type Params struct {
}

Params represent the genesis parameters for the module

func DefaultParams

func DefaultParams() Params

DefaultParams creates the default genesis parameters

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (m *Params) ParamSetPairs() params.ParamSetPairs

ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of permission module's parameters.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (m Params) Validate() error

Validate checks if the parameters are valid

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type ParamsRequest added in v0.34.0

type ParamsRequest struct {
}

ParamsRequest represents a message that queries the params

func (*ParamsRequest) Descriptor added in v0.34.0

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

func (*ParamsRequest) Marshal added in v0.34.0

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

func (*ParamsRequest) MarshalTo added in v0.34.0

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

func (*ParamsRequest) MarshalToSizedBuffer added in v0.34.0

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

func (*ParamsRequest) ProtoMessage added in v0.34.0

func (*ParamsRequest) ProtoMessage()

func (*ParamsRequest) Reset added in v0.34.0

func (m *ParamsRequest) Reset()

func (*ParamsRequest) Size added in v0.34.0

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

func (*ParamsRequest) String added in v0.34.0

func (m *ParamsRequest) String() string

func (*ParamsRequest) Unmarshal added in v0.34.0

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

func (*ParamsRequest) XXX_DiscardUnknown added in v0.34.0

func (m *ParamsRequest) XXX_DiscardUnknown()

func (*ParamsRequest) XXX_Marshal added in v0.34.0

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

func (*ParamsRequest) XXX_Merge added in v0.34.0

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

func (*ParamsRequest) XXX_Size added in v0.34.0

func (m *ParamsRequest) XXX_Size() int

func (*ParamsRequest) XXX_Unmarshal added in v0.34.0

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

type ParamsResponse added in v0.34.0

type ParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

func (*ParamsResponse) Descriptor added in v0.34.0

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

func (*ParamsResponse) Marshal added in v0.34.0

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

func (*ParamsResponse) MarshalTo added in v0.34.0

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

func (*ParamsResponse) MarshalToSizedBuffer added in v0.34.0

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

func (*ParamsResponse) ProtoMessage added in v0.34.0

func (*ParamsResponse) ProtoMessage()

func (*ParamsResponse) Reset added in v0.34.0

func (m *ParamsResponse) Reset()

func (*ParamsResponse) Size added in v0.34.0

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

func (*ParamsResponse) String added in v0.34.0

func (m *ParamsResponse) String() string

func (*ParamsResponse) Unmarshal added in v0.34.0

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

func (*ParamsResponse) XXX_DiscardUnknown added in v0.34.0

func (m *ParamsResponse) XXX_DiscardUnknown()

func (*ParamsResponse) XXX_Marshal added in v0.34.0

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

func (*ParamsResponse) XXX_Merge added in v0.34.0

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

func (*ParamsResponse) XXX_Size added in v0.34.0

func (m *ParamsResponse) XXX_Size() int

func (*ParamsResponse) XXX_Unmarshal added in v0.34.0

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

type QueryClient

type QueryClient interface {
	// GovernanceKey returns the multisig governance key
	GovernanceKey(ctx context.Context, in *QueryGovernanceKeyRequest, opts ...grpc.CallOption) (*QueryGovernanceKeyResponse, error)
	Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryGovernanceKeyRequest

type QueryGovernanceKeyRequest struct {
}

QueryGovernanceKeyRequest is the request type for the Query/GovernanceKey RPC method

func (*QueryGovernanceKeyRequest) Descriptor

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

func (*QueryGovernanceKeyRequest) Marshal

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

func (*QueryGovernanceKeyRequest) MarshalTo

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

func (*QueryGovernanceKeyRequest) MarshalToSizedBuffer

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

func (*QueryGovernanceKeyRequest) ProtoMessage

func (*QueryGovernanceKeyRequest) ProtoMessage()

func (*QueryGovernanceKeyRequest) Reset

func (m *QueryGovernanceKeyRequest) Reset()

func (*QueryGovernanceKeyRequest) Size

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

func (*QueryGovernanceKeyRequest) String

func (m *QueryGovernanceKeyRequest) String() string

func (*QueryGovernanceKeyRequest) Unmarshal

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

func (*QueryGovernanceKeyRequest) XXX_DiscardUnknown

func (m *QueryGovernanceKeyRequest) XXX_DiscardUnknown()

func (*QueryGovernanceKeyRequest) XXX_Marshal

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

func (*QueryGovernanceKeyRequest) XXX_Merge

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

func (*QueryGovernanceKeyRequest) XXX_Size

func (m *QueryGovernanceKeyRequest) XXX_Size() int

func (*QueryGovernanceKeyRequest) XXX_Unmarshal

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

type QueryGovernanceKeyResponse

type QueryGovernanceKeyResponse struct {
	GovernanceKey multisig.LegacyAminoPubKey `protobuf:"bytes,1,opt,name=governance_key,json=governanceKey,proto3" json:"governance_key"`
}

QueryGovernanceKeyResponse is the response type for the Query/GovernanceKey RPC method

func (*QueryGovernanceKeyResponse) Descriptor

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

func (*QueryGovernanceKeyResponse) Marshal

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

func (*QueryGovernanceKeyResponse) MarshalTo

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

func (*QueryGovernanceKeyResponse) MarshalToSizedBuffer

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

func (*QueryGovernanceKeyResponse) ProtoMessage

func (*QueryGovernanceKeyResponse) ProtoMessage()

func (*QueryGovernanceKeyResponse) Reset

func (m *QueryGovernanceKeyResponse) Reset()

func (*QueryGovernanceKeyResponse) Size

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

func (*QueryGovernanceKeyResponse) String

func (m *QueryGovernanceKeyResponse) String() string

func (*QueryGovernanceKeyResponse) Unmarshal

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

func (*QueryGovernanceKeyResponse) XXX_DiscardUnknown

func (m *QueryGovernanceKeyResponse) XXX_DiscardUnknown()

func (*QueryGovernanceKeyResponse) XXX_Marshal

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

func (*QueryGovernanceKeyResponse) XXX_Merge

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

func (*QueryGovernanceKeyResponse) XXX_Size

func (m *QueryGovernanceKeyResponse) XXX_Size() int

func (*QueryGovernanceKeyResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// GovernanceKey returns the multisig governance key
	GovernanceKey(context.Context, *QueryGovernanceKeyRequest) (*QueryGovernanceKeyResponse, error)
	Params(context.Context, *ParamsRequest) (*ParamsResponse, error)
}

QueryServer is the server API for Query service.

type RegisterControllerRequest

type RegisterControllerRequest struct {
	Sender     github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=sender,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"sender,omitempty"`
	Controller github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 128-byte string literal not displayed */
}

MsgRegisterController represents a message to register a controller account

func NewRegisterControllerRequest

func NewRegisterControllerRequest(sender sdk.AccAddress, controller sdk.AccAddress) *RegisterControllerRequest

NewRegisterControllerRequest is the constructor for RegisterControllerRequest

func (*RegisterControllerRequest) Descriptor

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

func (RegisterControllerRequest) GetSignBytes

func (m RegisterControllerRequest) GetSignBytes() []byte

GetSignBytes returns the message bytes that need to be signed

func (RegisterControllerRequest) GetSigners

func (m RegisterControllerRequest) GetSigners() []sdk.AccAddress

GetSigners returns the set of signers for this message

func (*RegisterControllerRequest) Marshal

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

func (*RegisterControllerRequest) MarshalTo

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

func (*RegisterControllerRequest) MarshalToSizedBuffer

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

func (*RegisterControllerRequest) ProtoMessage

func (*RegisterControllerRequest) ProtoMessage()

func (*RegisterControllerRequest) Reset

func (m *RegisterControllerRequest) Reset()

func (RegisterControllerRequest) Route

Route returns the route for this message

func (*RegisterControllerRequest) Size

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

func (*RegisterControllerRequest) String

func (m *RegisterControllerRequest) String() string

func (RegisterControllerRequest) Type

Type returns the type of the message

func (*RegisterControllerRequest) Unmarshal

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

func (RegisterControllerRequest) ValidateBasic

func (m RegisterControllerRequest) ValidateBasic() error

ValidateBasic executes a stateless message validation

func (*RegisterControllerRequest) XXX_DiscardUnknown

func (m *RegisterControllerRequest) XXX_DiscardUnknown()

func (*RegisterControllerRequest) XXX_Marshal

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

func (*RegisterControllerRequest) XXX_Merge

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

func (*RegisterControllerRequest) XXX_Size

func (m *RegisterControllerRequest) XXX_Size() int

func (*RegisterControllerRequest) XXX_Unmarshal

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

type RegisterControllerResponse

type RegisterControllerResponse struct {
}

func (*RegisterControllerResponse) Descriptor

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

func (*RegisterControllerResponse) Marshal

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

func (*RegisterControllerResponse) MarshalTo

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

func (*RegisterControllerResponse) MarshalToSizedBuffer

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

func (*RegisterControllerResponse) ProtoMessage

func (*RegisterControllerResponse) ProtoMessage()

func (*RegisterControllerResponse) Reset

func (m *RegisterControllerResponse) Reset()

func (*RegisterControllerResponse) Size

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

func (*RegisterControllerResponse) String

func (m *RegisterControllerResponse) String() string

func (*RegisterControllerResponse) Unmarshal

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

func (*RegisterControllerResponse) XXX_DiscardUnknown

func (m *RegisterControllerResponse) XXX_DiscardUnknown()

func (*RegisterControllerResponse) XXX_Marshal

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

func (*RegisterControllerResponse) XXX_Merge

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

func (*RegisterControllerResponse) XXX_Size

func (m *RegisterControllerResponse) XXX_Size() int

func (*RegisterControllerResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) DeregisterController

func (*UnimplementedMsgServer) RegisterController

func (*UnimplementedMsgServer) UpdateGovernanceKey

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GovernanceKey

func (*UnimplementedQueryServer) Params added in v0.34.0

type UpdateGovernanceKeyRequest

type UpdateGovernanceKeyRequest struct {
	Sender        github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=sender,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"sender,omitempty"`
	GovernanceKey multisig.LegacyAminoPubKey                    `protobuf:"bytes,2,opt,name=governance_key,json=governanceKey,proto3" json:"governance_key"`
}

func NewUpdateGovernanceKeyRequest

func NewUpdateGovernanceKeyRequest(sender sdk.AccAddress, threshold int, pubKeys ...cryptotypes.PubKey) *UpdateGovernanceKeyRequest

NewUpdateGovernanceKeyRequest is the constructor for UpdateGovernanceKeyRequest

func (*UpdateGovernanceKeyRequest) Descriptor

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

func (UpdateGovernanceKeyRequest) GetSignBytes

func (m UpdateGovernanceKeyRequest) GetSignBytes() []byte

GetSignBytes returns the message bytes that need to be signed

func (UpdateGovernanceKeyRequest) GetSigners

func (m UpdateGovernanceKeyRequest) GetSigners() []sdk.AccAddress

GetSigners returns the set of signers for this message

func (*UpdateGovernanceKeyRequest) Marshal

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

func (*UpdateGovernanceKeyRequest) MarshalTo

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

func (*UpdateGovernanceKeyRequest) MarshalToSizedBuffer

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

func (*UpdateGovernanceKeyRequest) ProtoMessage

func (*UpdateGovernanceKeyRequest) ProtoMessage()

func (*UpdateGovernanceKeyRequest) Reset

func (m *UpdateGovernanceKeyRequest) Reset()

func (UpdateGovernanceKeyRequest) Route

Route returns the route for this message

func (*UpdateGovernanceKeyRequest) Size

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

func (*UpdateGovernanceKeyRequest) String

func (m *UpdateGovernanceKeyRequest) String() string

func (UpdateGovernanceKeyRequest) Type

Type returns the type of the message

func (*UpdateGovernanceKeyRequest) Unmarshal

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

func (UpdateGovernanceKeyRequest) UnpackInterfaces

func (m UpdateGovernanceKeyRequest) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage

func (UpdateGovernanceKeyRequest) ValidateBasic

func (m UpdateGovernanceKeyRequest) ValidateBasic() error

ValidateBasic executes a stateless message validation

func (*UpdateGovernanceKeyRequest) XXX_DiscardUnknown

func (m *UpdateGovernanceKeyRequest) XXX_DiscardUnknown()

func (*UpdateGovernanceKeyRequest) XXX_Marshal

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

func (*UpdateGovernanceKeyRequest) XXX_Merge

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

func (*UpdateGovernanceKeyRequest) XXX_Size

func (m *UpdateGovernanceKeyRequest) XXX_Size() int

func (*UpdateGovernanceKeyRequest) XXX_Unmarshal

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

type UpdateGovernanceKeyResponse

type UpdateGovernanceKeyResponse struct {
}

func (*UpdateGovernanceKeyResponse) Descriptor

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

func (*UpdateGovernanceKeyResponse) Marshal

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

func (*UpdateGovernanceKeyResponse) MarshalTo

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

func (*UpdateGovernanceKeyResponse) MarshalToSizedBuffer

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

func (*UpdateGovernanceKeyResponse) ProtoMessage

func (*UpdateGovernanceKeyResponse) ProtoMessage()

func (*UpdateGovernanceKeyResponse) Reset

func (m *UpdateGovernanceKeyResponse) Reset()

func (*UpdateGovernanceKeyResponse) Size

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

func (*UpdateGovernanceKeyResponse) String

func (m *UpdateGovernanceKeyResponse) String() string

func (*UpdateGovernanceKeyResponse) Unmarshal

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

func (*UpdateGovernanceKeyResponse) XXX_DiscardUnknown

func (m *UpdateGovernanceKeyResponse) XXX_DiscardUnknown()

func (*UpdateGovernanceKeyResponse) XXX_Marshal

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

func (*UpdateGovernanceKeyResponse) XXX_Merge

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

func (*UpdateGovernanceKeyResponse) XXX_Size

func (m *UpdateGovernanceKeyResponse) XXX_Size() int

func (*UpdateGovernanceKeyResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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