gmp

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Msg_SetParams_FullMethodName = "/warden.gmp.Msg/SetParams"
	Msg_Bridge_FullMethodName    = "/warden.gmp.Msg/Bridge"
)
View Source
const (
	Query_Params_FullMethodName = "/warden.gmp.Query/Params"
)

Variables

View Source
var File_warden_gmp_genesis_proto protoreflect.FileDescriptor
View Source
var File_warden_gmp_gmp_proto protoreflect.FileDescriptor
View Source
var File_warden_gmp_query_proto protoreflect.FileDescriptor
View Source
var File_warden_gmp_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "warden.gmp.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SetParams",
			Handler:    _Msg_SetParams_Handler,
		},
		{
			MethodName: "Bridge",
			Handler:    _Msg_Bridge_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "warden/gmp/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "warden.gmp.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "warden/gmp/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type GenesisState

type GenesisState struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

GenesisState represents the genesis state of the gmp module.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type MsgBridge

type MsgBridge struct {

	// relayer is the address that signs the message.
	Relayer string `protobuf:"bytes,1,opt,name=relayer,proto3" json:"relayer,omitempty"`
	// destination_chain defines the chain which this will be relayed to.
	DestinationChain string `protobuf:"bytes,2,opt,name=destination_chain,json=destinationChain,proto3" json:"destination_chain,omitempty"`
	// warden_contract_address defines the warden contract that GMP is calling.
	WardenContractAddress string `` /* 126-byte string literal not displayed */
	// destination_contract_address defines the destination contract that warden is calling.
	DestinationContractAddress string `` /* 141-byte string literal not displayed */
	// destination_contract_calldata defines the command to call.
	DestinationContractCalldata []byte `` /* 144-byte string literal not displayed */
	// token determines the IBC token that the user wants to relay via GMP.
	Token *v1beta1.Coin `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

MsgBridge defines the Bridge message type.

func (*MsgBridge) Descriptor deprecated

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

Deprecated: Use MsgBridge.ProtoReflect.Descriptor instead.

func (*MsgBridge) GetDestinationChain

func (x *MsgBridge) GetDestinationChain() string

func (*MsgBridge) GetDestinationContractAddress

func (x *MsgBridge) GetDestinationContractAddress() string

func (*MsgBridge) GetDestinationContractCalldata

func (x *MsgBridge) GetDestinationContractCalldata() []byte

func (*MsgBridge) GetRelayer

func (x *MsgBridge) GetRelayer() string

func (*MsgBridge) GetToken

func (x *MsgBridge) GetToken() *v1beta1.Coin

func (*MsgBridge) GetWardenContractAddress

func (x *MsgBridge) GetWardenContractAddress() string

func (*MsgBridge) ProtoMessage

func (*MsgBridge) ProtoMessage()

func (*MsgBridge) ProtoReflect

func (x *MsgBridge) ProtoReflect() protoreflect.Message

func (*MsgBridge) Reset

func (x *MsgBridge) Reset()

func (*MsgBridge) String

func (x *MsgBridge) String() string

type MsgBridgeResponse

type MsgBridgeResponse struct {
	// contains filtered or unexported fields
}

MsgBridge defines the Bridge response type.

func (*MsgBridgeResponse) Descriptor deprecated

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

Deprecated: Use MsgBridgeResponse.ProtoReflect.Descriptor instead.

func (*MsgBridgeResponse) ProtoMessage

func (*MsgBridgeResponse) ProtoMessage()

func (*MsgBridgeResponse) ProtoReflect

func (x *MsgBridgeResponse) ProtoReflect() protoreflect.Message

func (*MsgBridgeResponse) Reset

func (x *MsgBridgeResponse) Reset()

func (*MsgBridgeResponse) String

func (x *MsgBridgeResponse) String() string

type MsgClient

type MsgClient interface {
	// SetParams sets the parameters for the gmp module.
	SetParams(ctx context.Context, in *MsgSetParams, opts ...grpc.CallOption) (*MsgSetParamsResponse, error)
	// Bridge relays Warden data via GMP.
	Bridge(ctx context.Context, in *MsgBridge, opts ...grpc.CallOption) (*MsgBridgeResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgServer

type MsgServer interface {
	// SetParams sets the parameters for the gmp module.
	SetParams(context.Context, *MsgSetParams) (*MsgSetParamsResponse, error)
	// Bridge relays Warden data via GMP.
	Bridge(context.Context, *MsgBridge) (*MsgBridgeResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgSetParams

type MsgSetParams struct {

	// address that controls the module (defaults to x/gov).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the gmp parameters to update.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgSetParams defines the SetParams message type.

func (*MsgSetParams) Descriptor deprecated

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

Deprecated: Use MsgSetParams.ProtoReflect.Descriptor instead.

func (*MsgSetParams) GetAuthority

func (x *MsgSetParams) GetAuthority() string

func (*MsgSetParams) GetParams

func (x *MsgSetParams) GetParams() *Params

func (*MsgSetParams) ProtoMessage

func (*MsgSetParams) ProtoMessage()

func (*MsgSetParams) ProtoReflect

func (x *MsgSetParams) ProtoReflect() protoreflect.Message

func (*MsgSetParams) Reset

func (x *MsgSetParams) Reset()

func (*MsgSetParams) String

func (x *MsgSetParams) String() string

type MsgSetParamsResponse

type MsgSetParamsResponse struct {
	// contains filtered or unexported fields
}

MsgSetParamsResponse defines the SetParams response type.

func (*MsgSetParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgSetParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgSetParamsResponse) ProtoMessage

func (*MsgSetParamsResponse) ProtoMessage()

func (*MsgSetParamsResponse) ProtoReflect

func (x *MsgSetParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgSetParamsResponse) Reset

func (x *MsgSetParamsResponse) Reset()

func (*MsgSetParamsResponse) String

func (x *MsgSetParamsResponse) String() string

type Params

type Params struct {

	// The axelar address that we'll send IBC transactions to.
	GmpAddress string `protobuf:"bytes,1,opt,name=gmp_address,json=gmpAddress,proto3" json:"gmp_address,omitempty"`
	// The channel over which we communicate with axelar.
	GmpChannel string `protobuf:"bytes,2,opt,name=gmp_channel,json=gmpChannel,proto3" json:"gmp_channel,omitempty"`
	// The amount of time we'll wait for a response from axelar before timing out.
	GmpTimeout int64 `protobuf:"varint,3,opt,name=gmp_timeout,json=gmpTimeout,proto3" json:"gmp_timeout,omitempty"`
	// The axelar address of the fee recipient.
	FeeRecipient string `protobuf:"bytes,4,opt,name=fee_recipient,json=feeRecipient,proto3" json:"fee_recipient,omitempty"`
	// contains filtered or unexported fields
}

Params defines the parameters for the gmp module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetFeeRecipient

func (x *Params) GetFeeRecipient() string

func (*Params) GetGmpAddress

func (x *Params) GetGmpAddress() string

func (*Params) GetGmpChannel

func (x *Params) GetGmpChannel() string

func (*Params) GetGmpTimeout

func (x *Params) GetGmpTimeout() int64

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type ParamsRequest

type ParamsRequest struct {
	// contains filtered or unexported fields
}

ParamsRequest is the request type for the Query/Params RPC method.

func (*ParamsRequest) Descriptor deprecated

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

Deprecated: Use ParamsRequest.ProtoReflect.Descriptor instead.

func (*ParamsRequest) ProtoMessage

func (*ParamsRequest) ProtoMessage()

func (*ParamsRequest) ProtoReflect

func (x *ParamsRequest) ProtoReflect() protoreflect.Message

func (*ParamsRequest) Reset

func (x *ParamsRequest) Reset()

func (*ParamsRequest) String

func (x *ParamsRequest) String() string

type ParamsResponse

type ParamsResponse struct {

	// params defines the parameters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

ParamsResponse is the response type for the Query/Params RPC method.

func (*ParamsResponse) Descriptor deprecated

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

Deprecated: Use ParamsResponse.ProtoReflect.Descriptor instead.

func (*ParamsResponse) GetParams

func (x *ParamsResponse) GetParams() *Params

func (*ParamsResponse) ProtoMessage

func (*ParamsResponse) ProtoMessage()

func (*ParamsResponse) ProtoReflect

func (x *ParamsResponse) ProtoReflect() protoreflect.Message

func (*ParamsResponse) Reset

func (x *ParamsResponse) Reset()

func (*ParamsResponse) String

func (x *ParamsResponse) String() string

type QueryClient

type QueryClient interface {
	// Params queries all parameters.
	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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryServer

type QueryServer interface {
	// Params queries all parameters.
	Params(context.Context, *ParamsRequest) (*ParamsResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) Bridge

func (UnimplementedMsgServer) SetParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Params

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Directories

Path Synopsis
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

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