swap

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSwapServer

func RegisterSwapServer(s *grpc.Server, srv SwapServer)

Types

type SendMntpRequest

type SendMntpRequest struct {
	SourceAddress        string   `protobuf:"bytes,1,opt,name=sourceAddress,proto3" json:"sourceAddress,omitempty"`
	SourceTransaction    string   `protobuf:"bytes,2,opt,name=sourceTransaction,proto3" json:"sourceTransaction,omitempty"`
	DestinationAddress   string   `protobuf:"bytes,3,opt,name=destinationAddress,proto3" json:"destinationAddress,omitempty"`
	Amount               string   `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendMntpRequest) Descriptor

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

func (*SendMntpRequest) GetAmount

func (m *SendMntpRequest) GetAmount() string

func (*SendMntpRequest) GetDestinationAddress

func (m *SendMntpRequest) GetDestinationAddress() string

func (*SendMntpRequest) GetSourceAddress

func (m *SendMntpRequest) GetSourceAddress() string

func (*SendMntpRequest) GetSourceTransaction

func (m *SendMntpRequest) GetSourceTransaction() string

func (*SendMntpRequest) ProtoMessage

func (*SendMntpRequest) ProtoMessage()

func (*SendMntpRequest) Reset

func (m *SendMntpRequest) Reset()

func (*SendMntpRequest) String

func (m *SendMntpRequest) String() string

func (*SendMntpRequest) XXX_DiscardUnknown

func (m *SendMntpRequest) XXX_DiscardUnknown()

func (*SendMntpRequest) XXX_Marshal

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

func (*SendMntpRequest) XXX_Merge

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

func (*SendMntpRequest) XXX_Size

func (m *SendMntpRequest) XXX_Size() int

func (*SendMntpRequest) XXX_Unmarshal

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

type SendMntpResult

type SendMntpResult struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendMntpResult) Descriptor

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

func (*SendMntpResult) ProtoMessage

func (*SendMntpResult) ProtoMessage()

func (*SendMntpResult) Reset

func (m *SendMntpResult) Reset()

func (*SendMntpResult) String

func (m *SendMntpResult) String() string

func (*SendMntpResult) XXX_DiscardUnknown

func (m *SendMntpResult) XXX_DiscardUnknown()

func (*SendMntpResult) XXX_Marshal

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

func (*SendMntpResult) XXX_Merge

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

func (*SendMntpResult) XXX_Size

func (m *SendMntpResult) XXX_Size() int

func (*SendMntpResult) XXX_Unmarshal

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

type SwapClient

type SwapClient interface {
	// SendMntp enqueues MNTP transfer from Ethereum swap-contract
	SendMntp(ctx context.Context, in *SendMntpRequest, opts ...grpc.CallOption) (*SendMntpResult, error)
}

SwapClient is the client API for Swap service.

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

func NewSwapClient

func NewSwapClient(cc grpc.ClientConnInterface) SwapClient

type SwapServer

type SwapServer interface {
	// SendMntp enqueues MNTP transfer from Ethereum swap-contract
	SendMntp(context.Context, *SendMntpRequest) (*SendMntpResult, error)
}

SwapServer is the server API for Swap service.

type UnimplementedSwapServer added in v1.0.1

type UnimplementedSwapServer struct {
}

UnimplementedSwapServer can be embedded to have forward compatible implementations.

func (*UnimplementedSwapServer) SendMntp added in v1.0.1

Source Files

Jump to

Keyboard shortcuts

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