swap

package
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 PrepareSwapRequest

type PrepareSwapRequest struct {
	UserAddress          string   `protobuf:"bytes,1,opt,name=userAddress,proto3" json:"userAddress,omitempty"`
	DestinationAddress   string   `protobuf:"bytes,2,opt,name=destinationAddress,proto3" json:"destinationAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PrepareSwapRequest) Descriptor

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

func (*PrepareSwapRequest) GetDestinationAddress

func (m *PrepareSwapRequest) GetDestinationAddress() string

func (*PrepareSwapRequest) GetUserAddress

func (m *PrepareSwapRequest) GetUserAddress() string

func (*PrepareSwapRequest) ProtoMessage

func (*PrepareSwapRequest) ProtoMessage()

func (*PrepareSwapRequest) Reset

func (m *PrepareSwapRequest) Reset()

func (*PrepareSwapRequest) String

func (m *PrepareSwapRequest) String() string

func (*PrepareSwapRequest) XXX_DiscardUnknown

func (m *PrepareSwapRequest) XXX_DiscardUnknown()

func (*PrepareSwapRequest) XXX_Marshal

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

func (*PrepareSwapRequest) XXX_Merge

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

func (*PrepareSwapRequest) XXX_Size

func (m *PrepareSwapRequest) XXX_Size() int

func (*PrepareSwapRequest) XXX_Unmarshal

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

type PrepareSwapResult

type PrepareSwapResult struct {
	SwapAddress          string   `protobuf:"bytes,1,opt,name=swapAddress,proto3" json:"swapAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PrepareSwapResult) Descriptor

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

func (*PrepareSwapResult) GetSwapAddress

func (m *PrepareSwapResult) GetSwapAddress() string

func (*PrepareSwapResult) ProtoMessage

func (*PrepareSwapResult) ProtoMessage()

func (*PrepareSwapResult) Reset

func (m *PrepareSwapResult) Reset()

func (*PrepareSwapResult) String

func (m *PrepareSwapResult) String() string

func (*PrepareSwapResult) XXX_DiscardUnknown

func (m *PrepareSwapResult) XXX_DiscardUnknown()

func (*PrepareSwapResult) XXX_Marshal

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

func (*PrepareSwapResult) XXX_Merge

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

func (*PrepareSwapResult) XXX_Size

func (m *PrepareSwapResult) XXX_Size() int

func (*PrepareSwapResult) XXX_Unmarshal

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

type SwapClient

type SwapClient interface {
	// PrepareSwap sets Ethereum destination wallet for the specified Mint source wallet
	PrepareSwap(ctx context.Context, in *PrepareSwapRequest, opts ...grpc.CallOption) (*PrepareSwapResult, 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 {
	// PrepareSwap sets Ethereum destination wallet for the specified Mint source wallet
	PrepareSwap(context.Context, *PrepareSwapRequest) (*PrepareSwapResult, 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) PrepareSwap added in v1.0.1

Jump to

Keyboard shortcuts

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