types

package
v0.0.0-...-317f62a Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	INITIATED      string = "INITIATED"
	COMMITTED             = "COMMITTED"
	APPROVED              = "APPROVED"
	INDELIVERY            = "IN-DELIVERY"
	COMPLETED             = "COMPLETED"
	CANCELLED             = "CANCELLED"
	TIME_FORMAT           = "2006-01-02 15:04:05.999999999 +0000 UTC"
	TOKEN                 = "token"
	IDVALUE               = "IdValue"
	OWNER                 = "Owner"
	VENDOR                = "Vendor"
	CONSUMER              = "Consumer"
	OWNER_PAY             = "OwnerPay"
	VENDOR_PAY            = "VendorPay"
	REFUND_PAY            = "RefundPay"
	START_TIME            = "StartTime"
	VENDOR_ETA            = "VendorETA"
	OWNER_ETA             = "OwnerETA"
	CREATE_GAS     uint64 = 200
	PROCESS_GAS    uint64 = 100
	SETTLEMENT_GAS uint64 = 300
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "deal"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_deal"
)
View Source
const (
	ContractCounterKey = "ContractCounter-value-"
)
View Source
const (
	DealCounterKey = "DealCounter-value-"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	// NewContractKeyPrefix is the prefix to retrieve all NewContract
	NewContractKeyPrefix = "NewContract/value/"
)
View Source
const (
	// NewDealKeyPrefix is the prefix to retrieve all NewDeal
	NewDealKeyPrefix = "NewDeal/value/"
)
View Source
const TypeMsgApproveContract = "approve_contract"
View Source
const TypeMsgCancelOrder = "cancel_order"
View Source
const TypeMsgCommitContract = "commit_contract"
View Source
const TypeMsgCreateContract = "create_contract"
View Source
const TypeMsgCreateDeal = "create_deal"
View Source
const TypeMsgOrderDelivered = "order_delivered"
View Source
const TypeMsgShipOrder = "ship_order"

Variables

View Source
var (
	ErrInvalidLengthContractCounter        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowContractCounter          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupContractCounter = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthDealCounter        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDealCounter          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDealCounter = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidOwner           = sdkerrors.Register(ModuleName, 1100, "Owner does not exists")
	ErrInvalidVendor          = sdkerrors.Register(ModuleName, 1101, "Vendor does not exists")
	ErrInvalidConsumer        = sdkerrors.Register(ModuleName, 1102, "Consumer does not exists")
	ErrInvalidCommission      = sdkerrors.Register(ModuleName, 1103, "Invalid commission")
	ErrDealNotFound           = sdkerrors.Register(ModuleName, 1104, "Deal not found")
	ErrContractNotFound       = sdkerrors.Register(ModuleName, 1105, "Contract not found")
	ErrContractExpired        = sdkerrors.Register(ModuleName, 1106, "Contract already expired")
	ErrInvalidTime            = sdkerrors.Register(ModuleName, 1107, "Invalid Time")
	ErrDescLength             = sdkerrors.Register(ModuleName, 1108, "Desc length too large")
	ErrPaymentFailed          = sdkerrors.Register(ModuleName, 1109, "Payment Failed")
	ErrNotCommitted           = sdkerrors.Register(ModuleName, 1110, "Contract not in commit stage")
	ErrNotShipped             = sdkerrors.Register(ModuleName, 1111, "Order not yet shipped or completed")
	ErrNotApprovedOrCompleted = sdkerrors.Register(ModuleName, 1112, "Contract is either completed or not in approved stage")
	ErrRefund                 = sdkerrors.Register(ModuleName, 1113, "Refund applicable after 20 mins delay")
	ErrVendorETA              = sdkerrors.Register(ModuleName, 1114, "Vendor ETA should be less than or equal to half of that of Owner ETA")
)

x/deal module sentinel errors

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 (
	ErrInvalidLengthNewContract        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNewContract          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNewContract = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthNewDeal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNewDeal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNewDeal = 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")
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func NewContractKey

func NewContractKey(
	index string,
) []byte

NewContractKey returns the store key to retrieve a NewContract from the index fields

func NewDealKey

func NewDealKey(
	index string,
) []byte

NewDealKey returns the store key to retrieve a NewDeal from the index fields

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
	GetModuleAddress(name string) sdk.AccAddress
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type ContractCounter

type ContractCounter struct {
	DealId  string `protobuf:"bytes,1,opt,name=dealId,proto3" json:"dealId,omitempty"`
	IdValue uint64 `protobuf:"varint,2,opt,name=idValue,proto3" json:"idValue,omitempty"`
}

func (*ContractCounter) Descriptor

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

func (*ContractCounter) GetDealId

func (m *ContractCounter) GetDealId() string

func (*ContractCounter) GetIdValue

func (m *ContractCounter) GetIdValue() uint64

func (*ContractCounter) Marshal

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

func (*ContractCounter) MarshalTo

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

func (*ContractCounter) MarshalToSizedBuffer

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

func (*ContractCounter) ProtoMessage

func (*ContractCounter) ProtoMessage()

func (*ContractCounter) Reset

func (m *ContractCounter) Reset()

func (*ContractCounter) Size

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

func (*ContractCounter) String

func (m *ContractCounter) String() string

func (*ContractCounter) Unmarshal

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

func (*ContractCounter) XXX_DiscardUnknown

func (m *ContractCounter) XXX_DiscardUnknown()

func (*ContractCounter) XXX_Marshal

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

func (*ContractCounter) XXX_Merge

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

func (*ContractCounter) XXX_Size

func (m *ContractCounter) XXX_Size() int

func (*ContractCounter) XXX_Unmarshal

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

type DealCounter

type DealCounter struct {
	IdValue uint64 `protobuf:"varint,1,opt,name=idValue,proto3" json:"idValue,omitempty"`
}

func (*DealCounter) Descriptor

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

func (*DealCounter) GetIdValue

func (m *DealCounter) GetIdValue() uint64

func (*DealCounter) Marshal

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

func (*DealCounter) MarshalTo

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

func (*DealCounter) MarshalToSizedBuffer

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

func (*DealCounter) ProtoMessage

func (*DealCounter) ProtoMessage()

func (*DealCounter) Reset

func (m *DealCounter) Reset()

func (*DealCounter) Size

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

func (*DealCounter) String

func (m *DealCounter) String() string

func (*DealCounter) Unmarshal

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

func (*DealCounter) XXX_DiscardUnknown

func (m *DealCounter) XXX_DiscardUnknown()

func (*DealCounter) XXX_Marshal

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

func (*DealCounter) XXX_Merge

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

func (*DealCounter) XXX_Size

func (m *DealCounter) XXX_Size() int

func (*DealCounter) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params          Params             `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	DealCounter     *DealCounter       `protobuf:"bytes,2,opt,name=dealCounter,proto3" json:"dealCounter,omitempty"`
	NewDealList     []NewDeal          `protobuf:"bytes,3,rep,name=newDealList,proto3" json:"newDealList"`
	ContractCounter []*ContractCounter `protobuf:"bytes,4,rep,name=contractCounter,proto3" json:"contractCounter,omitempty"`
	NewContractList []NewContract      `protobuf:"bytes,5,rep,name=newContractList,proto3" json:"newContractList"`
}

GenesisState defines the deal module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetContractCounter

func (m *GenesisState) GetContractCounter() []*ContractCounter

func (*GenesisState) GetDealCounter

func (m *GenesisState) GetDealCounter() *DealCounter

func (*GenesisState) GetNewContractList

func (m *GenesisState) GetNewContractList() []NewContract

func (*GenesisState) GetNewDealList

func (m *GenesisState) GetNewDealList() []NewDeal

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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 (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

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 MsgApproveContract

type MsgApproveContract struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	DealId     string `protobuf:"bytes,2,opt,name=dealId,proto3" json:"dealId,omitempty"`
	ContractId string `protobuf:"bytes,3,opt,name=contractId,proto3" json:"contractId,omitempty"`
}

func NewMsgApproveContract

func NewMsgApproveContract(creator string, dealId string, contractId string) *MsgApproveContract

func (*MsgApproveContract) DealHandlerValidation

func (msg *MsgApproveContract) DealHandlerValidation(goCtx context.Context, contract *NewContract) error

func (*MsgApproveContract) Descriptor

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

func (*MsgApproveContract) GetContractId

func (m *MsgApproveContract) GetContractId() string

func (*MsgApproveContract) GetCreator

func (m *MsgApproveContract) GetCreator() string

func (*MsgApproveContract) GetDealId

func (m *MsgApproveContract) GetDealId() string

func (*MsgApproveContract) GetSignBytes

func (msg *MsgApproveContract) GetSignBytes() []byte

func (*MsgApproveContract) GetSigners

func (msg *MsgApproveContract) GetSigners() []sdk.AccAddress

func (*MsgApproveContract) Marshal

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

func (*MsgApproveContract) MarshalTo

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

func (*MsgApproveContract) MarshalToSizedBuffer

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

func (*MsgApproveContract) ProtoMessage

func (*MsgApproveContract) ProtoMessage()

func (*MsgApproveContract) Reset

func (m *MsgApproveContract) Reset()

func (*MsgApproveContract) Route

func (msg *MsgApproveContract) Route() string

func (*MsgApproveContract) Size

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

func (*MsgApproveContract) String

func (m *MsgApproveContract) String() string

func (*MsgApproveContract) Type

func (msg *MsgApproveContract) Type() string

func (*MsgApproveContract) Unmarshal

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

func (*MsgApproveContract) ValidateBasic

func (msg *MsgApproveContract) ValidateBasic() error

func (*MsgApproveContract) XXX_DiscardUnknown

func (m *MsgApproveContract) XXX_DiscardUnknown()

func (*MsgApproveContract) XXX_Marshal

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

func (*MsgApproveContract) XXX_Merge

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

func (*MsgApproveContract) XXX_Size

func (m *MsgApproveContract) XXX_Size() int

func (*MsgApproveContract) XXX_Unmarshal

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

type MsgApproveContractResponse

type MsgApproveContractResponse struct {
	IdValue        string `protobuf:"bytes,1,opt,name=idValue,proto3" json:"idValue,omitempty"`
	ContractStatus string `protobuf:"bytes,2,opt,name=contractStatus,proto3" json:"contractStatus,omitempty"`
}

func (*MsgApproveContractResponse) Descriptor

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

func (*MsgApproveContractResponse) GetContractStatus

func (m *MsgApproveContractResponse) GetContractStatus() string

func (*MsgApproveContractResponse) GetIdValue

func (m *MsgApproveContractResponse) GetIdValue() string

func (*MsgApproveContractResponse) Marshal

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

func (*MsgApproveContractResponse) MarshalTo

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

func (*MsgApproveContractResponse) MarshalToSizedBuffer

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

func (*MsgApproveContractResponse) ProtoMessage

func (*MsgApproveContractResponse) ProtoMessage()

func (*MsgApproveContractResponse) Reset

func (m *MsgApproveContractResponse) Reset()

func (*MsgApproveContractResponse) Size

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

func (*MsgApproveContractResponse) String

func (m *MsgApproveContractResponse) String() string

func (*MsgApproveContractResponse) Unmarshal

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

func (*MsgApproveContractResponse) XXX_DiscardUnknown

func (m *MsgApproveContractResponse) XXX_DiscardUnknown()

func (*MsgApproveContractResponse) XXX_Marshal

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

func (*MsgApproveContractResponse) XXX_Merge

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

func (*MsgApproveContractResponse) XXX_Size

func (m *MsgApproveContractResponse) XXX_Size() int

func (*MsgApproveContractResponse) XXX_Unmarshal

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

type MsgCancelOrder

type MsgCancelOrder struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	DealId     string `protobuf:"bytes,2,opt,name=dealId,proto3" json:"dealId,omitempty"`
	ContractId string `protobuf:"bytes,3,opt,name=contractId,proto3" json:"contractId,omitempty"`
}

func NewMsgCancelOrder

func NewMsgCancelOrder(creator string, dealId string, contractId string) *MsgCancelOrder

func (*MsgCancelOrder) DealHandlerValidation

func (msg *MsgCancelOrder) DealHandlerValidation(goCtx context.Context, contract *NewContract) error

func (*MsgCancelOrder) Descriptor

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

func (*MsgCancelOrder) GetContractId

func (m *MsgCancelOrder) GetContractId() string

func (*MsgCancelOrder) GetCreator

func (m *MsgCancelOrder) GetCreator() string

func (*MsgCancelOrder) GetDealId

func (m *MsgCancelOrder) GetDealId() string

func (*MsgCancelOrder) GetSignBytes

func (msg *MsgCancelOrder) GetSignBytes() []byte

func (*MsgCancelOrder) GetSigners

func (msg *MsgCancelOrder) GetSigners() []sdk.AccAddress

func (*MsgCancelOrder) Marshal

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

func (*MsgCancelOrder) MarshalTo

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

func (*MsgCancelOrder) MarshalToSizedBuffer

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

func (*MsgCancelOrder) ProtoMessage

func (*MsgCancelOrder) ProtoMessage()

func (*MsgCancelOrder) Reset

func (m *MsgCancelOrder) Reset()

func (*MsgCancelOrder) Route

func (msg *MsgCancelOrder) Route() string

func (*MsgCancelOrder) Size

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

func (*MsgCancelOrder) String

func (m *MsgCancelOrder) String() string

func (*MsgCancelOrder) Type

func (msg *MsgCancelOrder) Type() string

func (*MsgCancelOrder) Unmarshal

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

func (*MsgCancelOrder) ValidateBasic

func (msg *MsgCancelOrder) ValidateBasic() error

func (*MsgCancelOrder) XXX_DiscardUnknown

func (m *MsgCancelOrder) XXX_DiscardUnknown()

func (*MsgCancelOrder) XXX_Marshal

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

func (*MsgCancelOrder) XXX_Merge

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

func (*MsgCancelOrder) XXX_Size

func (m *MsgCancelOrder) XXX_Size() int

func (*MsgCancelOrder) XXX_Unmarshal

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

type MsgCancelOrderResponse

type MsgCancelOrderResponse struct {
	IdValue        string `protobuf:"bytes,1,opt,name=idValue,proto3" json:"idValue,omitempty"`
	ContractStatus string `protobuf:"bytes,2,opt,name=contractStatus,proto3" json:"contractStatus,omitempty"`
}

func (*MsgCancelOrderResponse) Descriptor

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

func (*MsgCancelOrderResponse) GetContractStatus

func (m *MsgCancelOrderResponse) GetContractStatus() string

func (*MsgCancelOrderResponse) GetIdValue

func (m *MsgCancelOrderResponse) GetIdValue() string

func (*MsgCancelOrderResponse) Marshal

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

func (*MsgCancelOrderResponse) MarshalTo

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

func (*MsgCancelOrderResponse) MarshalToSizedBuffer

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

func (*MsgCancelOrderResponse) ProtoMessage

func (*MsgCancelOrderResponse) ProtoMessage()

func (*MsgCancelOrderResponse) Reset

func (m *MsgCancelOrderResponse) Reset()

func (*MsgCancelOrderResponse) Size

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

func (*MsgCancelOrderResponse) String

func (m *MsgCancelOrderResponse) String() string

func (*MsgCancelOrderResponse) Unmarshal

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

func (*MsgCancelOrderResponse) XXX_DiscardUnknown

func (m *MsgCancelOrderResponse) XXX_DiscardUnknown()

func (*MsgCancelOrderResponse) XXX_Marshal

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

func (*MsgCancelOrderResponse) XXX_Merge

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

func (*MsgCancelOrderResponse) XXX_Size

func (m *MsgCancelOrderResponse) XXX_Size() int

func (*MsgCancelOrderResponse) XXX_Unmarshal

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

type MsgClient

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 MsgCommitContract

type MsgCommitContract struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	DealId     string `protobuf:"bytes,2,opt,name=dealId,proto3" json:"dealId,omitempty"`
	ContractId string `protobuf:"bytes,3,opt,name=contractId,proto3" json:"contractId,omitempty"`
	VendorETA  string `protobuf:"bytes,4,opt,name=vendorETA,proto3" json:"vendorETA,omitempty"`
}

func NewMsgCommitContract

func NewMsgCommitContract(creator, dealId, contractId, vendorETA string) *MsgCommitContract

func (*MsgCommitContract) Descriptor

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

func (*MsgCommitContract) GetContractId

func (m *MsgCommitContract) GetContractId() string

func (*MsgCommitContract) GetCreator

func (m *MsgCommitContract) GetCreator() string

func (*MsgCommitContract) GetDealId

func (m *MsgCommitContract) GetDealId() string

func (*MsgCommitContract) GetSignBytes

func (msg *MsgCommitContract) GetSignBytes() []byte

func (*MsgCommitContract) GetSigners

func (msg *MsgCommitContract) GetSigners() []sdk.AccAddress

func (*MsgCommitContract) GetVendorETA

func (m *MsgCommitContract) GetVendorETA() string

func (*MsgCommitContract) Marshal

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

func (*MsgCommitContract) MarshalTo

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

func (*MsgCommitContract) MarshalToSizedBuffer

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

func (*MsgCommitContract) ProtoMessage

func (*MsgCommitContract) ProtoMessage()

func (*MsgCommitContract) Reset

func (m *MsgCommitContract) Reset()

func (*MsgCommitContract) Route

func (msg *MsgCommitContract) Route() string

func (*MsgCommitContract) Size

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

func (*MsgCommitContract) String

func (m *MsgCommitContract) String() string

func (*MsgCommitContract) Type

func (msg *MsgCommitContract) Type() string

func (*MsgCommitContract) Unmarshal

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

func (*MsgCommitContract) ValidateBasic

func (msg *MsgCommitContract) ValidateBasic() error

func (*MsgCommitContract) XXX_DiscardUnknown

func (m *MsgCommitContract) XXX_DiscardUnknown()

func (*MsgCommitContract) XXX_Marshal

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

func (*MsgCommitContract) XXX_Merge

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

func (*MsgCommitContract) XXX_Size

func (m *MsgCommitContract) XXX_Size() int

func (*MsgCommitContract) XXX_Unmarshal

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

type MsgCommitContractResponse

type MsgCommitContractResponse struct {
	IdValue        string `protobuf:"bytes,1,opt,name=idValue,proto3" json:"idValue,omitempty"`
	ContractStatus string `protobuf:"bytes,2,opt,name=contractStatus,proto3" json:"contractStatus,omitempty"`
}

func (*MsgCommitContractResponse) Descriptor

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

func (*MsgCommitContractResponse) GetContractStatus

func (m *MsgCommitContractResponse) GetContractStatus() string

func (*MsgCommitContractResponse) GetIdValue

func (m *MsgCommitContractResponse) GetIdValue() string

func (*MsgCommitContractResponse) Marshal

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

func (*MsgCommitContractResponse) MarshalTo

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

func (*MsgCommitContractResponse) MarshalToSizedBuffer

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

func (*MsgCommitContractResponse) ProtoMessage

func (*MsgCommitContractResponse) ProtoMessage()

func (*MsgCommitContractResponse) Reset

func (m *MsgCommitContractResponse) Reset()

func (*MsgCommitContractResponse) Size

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

func (*MsgCommitContractResponse) String

func (m *MsgCommitContractResponse) String() string

func (*MsgCommitContractResponse) Unmarshal

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

func (*MsgCommitContractResponse) XXX_DiscardUnknown

func (m *MsgCommitContractResponse) XXX_DiscardUnknown()

func (*MsgCommitContractResponse) XXX_Marshal

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

func (*MsgCommitContractResponse) XXX_Merge

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

func (*MsgCommitContractResponse) XXX_Size

func (m *MsgCommitContractResponse) XXX_Size() int

func (*MsgCommitContractResponse) XXX_Unmarshal

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

type MsgCreateContract

type MsgCreateContract struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	DealId   string `protobuf:"bytes,2,opt,name=dealId,proto3" json:"dealId,omitempty"`
	Consumer string `protobuf:"bytes,3,opt,name=consumer,proto3" json:"consumer,omitempty"`
	Desc     string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"`
	OwnerETA string `protobuf:"bytes,5,opt,name=ownerETA,proto3" json:"ownerETA,omitempty"`
	Expiry   string `protobuf:"bytes,6,opt,name=expiry,proto3" json:"expiry,omitempty"`
	Fees     uint64 `protobuf:"varint,7,opt,name=fees,proto3" json:"fees,omitempty"`
}

func NewMsgCreateContract

func NewMsgCreateContract(creator string, dealId string, consumer string, desc string, ownerETA string, expiry string, fees uint64) *MsgCreateContract

func (*MsgCreateContract) Descriptor

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

func (*MsgCreateContract) GetConsumer

func (m *MsgCreateContract) GetConsumer() string

func (*MsgCreateContract) GetCreator

func (m *MsgCreateContract) GetCreator() string

func (*MsgCreateContract) GetDealId

func (m *MsgCreateContract) GetDealId() string

func (*MsgCreateContract) GetDesc

func (m *MsgCreateContract) GetDesc() string

func (*MsgCreateContract) GetExpiry

func (m *MsgCreateContract) GetExpiry() string

func (*MsgCreateContract) GetFees

func (m *MsgCreateContract) GetFees() uint64

func (*MsgCreateContract) GetOwnerETA

func (m *MsgCreateContract) GetOwnerETA() string

func (*MsgCreateContract) GetSignBytes

func (msg *MsgCreateContract) GetSignBytes() []byte

func (*MsgCreateContract) GetSigners

func (msg *MsgCreateContract) GetSigners() []sdk.AccAddress

func (*MsgCreateContract) Marshal

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

func (*MsgCreateContract) MarshalTo

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

func (*MsgCreateContract) MarshalToSizedBuffer

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

func (*MsgCreateContract) ProtoMessage

func (*MsgCreateContract) ProtoMessage()

func (*MsgCreateContract) Reset

func (m *MsgCreateContract) Reset()

func (*MsgCreateContract) Route

func (msg *MsgCreateContract) Route() string

func (*MsgCreateContract) Size

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

func (*MsgCreateContract) String

func (m *MsgCreateContract) String() string

func (*MsgCreateContract) Type

func (msg *MsgCreateContract) Type() string

func (*MsgCreateContract) Unmarshal

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

func (*MsgCreateContract) ValidateBasic

func (msg *MsgCreateContract) ValidateBasic() error

func (*MsgCreateContract) XXX_DiscardUnknown

func (m *MsgCreateContract) XXX_DiscardUnknown()

func (*MsgCreateContract) XXX_Marshal

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

func (*MsgCreateContract) XXX_Merge

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

func (*MsgCreateContract) XXX_Size

func (m *MsgCreateContract) XXX_Size() int

func (*MsgCreateContract) XXX_Unmarshal

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

type MsgCreateContractResponse

type MsgCreateContractResponse struct {
	IdValue        string `protobuf:"bytes,1,opt,name=idValue,proto3" json:"idValue,omitempty"`
	ContractStatus string `protobuf:"bytes,2,opt,name=contractStatus,proto3" json:"contractStatus,omitempty"`
}

func (*MsgCreateContractResponse) Descriptor

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

func (*MsgCreateContractResponse) GetContractStatus

func (m *MsgCreateContractResponse) GetContractStatus() string

func (*MsgCreateContractResponse) GetIdValue

func (m *MsgCreateContractResponse) GetIdValue() string

func (*MsgCreateContractResponse) Marshal

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

func (*MsgCreateContractResponse) MarshalTo

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

func (*MsgCreateContractResponse) MarshalToSizedBuffer

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

func (*MsgCreateContractResponse) ProtoMessage

func (*MsgCreateContractResponse) ProtoMessage()

func (*MsgCreateContractResponse) Reset

func (m *MsgCreateContractResponse) Reset()

func (*MsgCreateContractResponse) Size

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

func (*MsgCreateContractResponse) String

func (m *MsgCreateContractResponse) String() string

func (*MsgCreateContractResponse) Unmarshal

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

func (*MsgCreateContractResponse) XXX_DiscardUnknown

func (m *MsgCreateContractResponse) XXX_DiscardUnknown()

func (*MsgCreateContractResponse) XXX_Marshal

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

func (*MsgCreateContractResponse) XXX_Merge

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

func (*MsgCreateContractResponse) XXX_Size

func (m *MsgCreateContractResponse) XXX_Size() int

func (*MsgCreateContractResponse) XXX_Unmarshal

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

type MsgCreateDeal

type MsgCreateDeal struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Vendor     string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Commission uint64 `protobuf:"varint,3,opt,name=commission,proto3" json:"commission,omitempty"`
}

func NewMsgCreateDeal

func NewMsgCreateDeal(creator string, vendor string, commission uint64) *MsgCreateDeal

func (*MsgCreateDeal) Descriptor

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

func (*MsgCreateDeal) GetCommission

func (m *MsgCreateDeal) GetCommission() uint64

func (*MsgCreateDeal) GetCreator

func (m *MsgCreateDeal) GetCreator() string

func (*MsgCreateDeal) GetSignBytes

func (msg *MsgCreateDeal) GetSignBytes() []byte

func (*MsgCreateDeal) GetSigners

func (msg *MsgCreateDeal) GetSigners() []sdk.AccAddress

func (*MsgCreateDeal) GetVendor

func (m *MsgCreateDeal) GetVendor() string

func (*MsgCreateDeal) Marshal

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

func (*MsgCreateDeal) MarshalTo

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

func (*MsgCreateDeal) MarshalToSizedBuffer

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

func (*MsgCreateDeal) ProtoMessage

func (*MsgCreateDeal) ProtoMessage()

func (*MsgCreateDeal) Reset

func (m *MsgCreateDeal) Reset()

func (*MsgCreateDeal) Route

func (msg *MsgCreateDeal) Route() string

func (*MsgCreateDeal) Size

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

func (*MsgCreateDeal) String

func (m *MsgCreateDeal) String() string

func (*MsgCreateDeal) Type

func (msg *MsgCreateDeal) Type() string

func (*MsgCreateDeal) Unmarshal

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

func (*MsgCreateDeal) ValidateBasic

func (msg *MsgCreateDeal) ValidateBasic() error

func (*MsgCreateDeal) XXX_DiscardUnknown

func (m *MsgCreateDeal) XXX_DiscardUnknown()

func (*MsgCreateDeal) XXX_Marshal

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

func (*MsgCreateDeal) XXX_Merge

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

func (*MsgCreateDeal) XXX_Size

func (m *MsgCreateDeal) XXX_Size() int

func (*MsgCreateDeal) XXX_Unmarshal

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

type MsgCreateDealResponse

type MsgCreateDealResponse struct {
	IdValue string `protobuf:"bytes,1,opt,name=idValue,proto3" json:"idValue,omitempty"`
}

func (*MsgCreateDealResponse) Descriptor

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

func (*MsgCreateDealResponse) GetIdValue

func (m *MsgCreateDealResponse) GetIdValue() string

func (*MsgCreateDealResponse) Marshal

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

func (*MsgCreateDealResponse) MarshalTo

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

func (*MsgCreateDealResponse) MarshalToSizedBuffer

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

func (*MsgCreateDealResponse) ProtoMessage

func (*MsgCreateDealResponse) ProtoMessage()

func (*MsgCreateDealResponse) Reset

func (m *MsgCreateDealResponse) Reset()

func (*MsgCreateDealResponse) Size

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

func (*MsgCreateDealResponse) String

func (m *MsgCreateDealResponse) String() string

func (*MsgCreateDealResponse) Unmarshal

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

func (*MsgCreateDealResponse) XXX_DiscardUnknown

func (m *MsgCreateDealResponse) XXX_DiscardUnknown()

func (*MsgCreateDealResponse) XXX_Marshal

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

func (*MsgCreateDealResponse) XXX_Merge

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

func (*MsgCreateDealResponse) XXX_Size

func (m *MsgCreateDealResponse) XXX_Size() int

func (*MsgCreateDealResponse) XXX_Unmarshal

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

type MsgOrderDelivered

type MsgOrderDelivered struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	DealId     string `protobuf:"bytes,2,opt,name=dealId,proto3" json:"dealId,omitempty"`
	ContractId string `protobuf:"bytes,3,opt,name=contractId,proto3" json:"contractId,omitempty"`
}

func NewMsgOrderDelivered

func NewMsgOrderDelivered(creator string, dealId string, contractId string) *MsgOrderDelivered

func (*MsgOrderDelivered) Descriptor

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

func (*MsgOrderDelivered) GetContractId

func (m *MsgOrderDelivered) GetContractId() string

func (*MsgOrderDelivered) GetCreator

func (m *MsgOrderDelivered) GetCreator() string

func (*MsgOrderDelivered) GetDealId

func (m *MsgOrderDelivered) GetDealId() string

func (*MsgOrderDelivered) GetSignBytes

func (msg *MsgOrderDelivered) GetSignBytes() []byte

func (*MsgOrderDelivered) GetSigners

func (msg *MsgOrderDelivered) GetSigners() []sdk.AccAddress

func (*MsgOrderDelivered) Marshal

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

func (*MsgOrderDelivered) MarshalTo

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

func (*MsgOrderDelivered) MarshalToSizedBuffer

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

func (*MsgOrderDelivered) ProtoMessage

func (*MsgOrderDelivered) ProtoMessage()

func (*MsgOrderDelivered) Reset

func (m *MsgOrderDelivered) Reset()

func (*MsgOrderDelivered) Route

func (msg *MsgOrderDelivered) Route() string

func (*MsgOrderDelivered) Size

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

func (*MsgOrderDelivered) String

func (m *MsgOrderDelivered) String() string

func (*MsgOrderDelivered) Type

func (msg *MsgOrderDelivered) Type() string

func (*MsgOrderDelivered) Unmarshal

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

func (*MsgOrderDelivered) ValidateBasic

func (msg *MsgOrderDelivered) ValidateBasic() error

func (*MsgOrderDelivered) XXX_DiscardUnknown

func (m *MsgOrderDelivered) XXX_DiscardUnknown()

func (*MsgOrderDelivered) XXX_Marshal

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

func (*MsgOrderDelivered) XXX_Merge

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

func (*MsgOrderDelivered) XXX_Size

func (m *MsgOrderDelivered) XXX_Size() int

func (*MsgOrderDelivered) XXX_Unmarshal

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

type MsgOrderDeliveredResponse

type MsgOrderDeliveredResponse struct {
	IdValue        string `protobuf:"bytes,1,opt,name=idValue,proto3" json:"idValue,omitempty"`
	ContractStatus string `protobuf:"bytes,2,opt,name=contractStatus,proto3" json:"contractStatus,omitempty"`
}

func (*MsgOrderDeliveredResponse) Descriptor

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

func (*MsgOrderDeliveredResponse) GetContractStatus

func (m *MsgOrderDeliveredResponse) GetContractStatus() string

func (*MsgOrderDeliveredResponse) GetIdValue

func (m *MsgOrderDeliveredResponse) GetIdValue() string

func (*MsgOrderDeliveredResponse) Marshal

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

func (*MsgOrderDeliveredResponse) MarshalTo

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

func (*MsgOrderDeliveredResponse) MarshalToSizedBuffer

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

func (*MsgOrderDeliveredResponse) ProtoMessage

func (*MsgOrderDeliveredResponse) ProtoMessage()

func (*MsgOrderDeliveredResponse) Reset

func (m *MsgOrderDeliveredResponse) Reset()

func (*MsgOrderDeliveredResponse) Size

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

func (*MsgOrderDeliveredResponse) String

func (m *MsgOrderDeliveredResponse) String() string

func (*MsgOrderDeliveredResponse) Unmarshal

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

func (*MsgOrderDeliveredResponse) XXX_DiscardUnknown

func (m *MsgOrderDeliveredResponse) XXX_DiscardUnknown()

func (*MsgOrderDeliveredResponse) XXX_Marshal

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

func (*MsgOrderDeliveredResponse) XXX_Merge

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

func (*MsgOrderDeliveredResponse) XXX_Size

func (m *MsgOrderDeliveredResponse) XXX_Size() int

func (*MsgOrderDeliveredResponse) XXX_Unmarshal

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

type MsgShipOrder

type MsgShipOrder struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	DealId     string `protobuf:"bytes,2,opt,name=dealId,proto3" json:"dealId,omitempty"`
	ContractId string `protobuf:"bytes,3,opt,name=contractId,proto3" json:"contractId,omitempty"`
}

func NewMsgShipOrder

func NewMsgShipOrder(creator string, dealId string, contractId string) *MsgShipOrder

func (*MsgShipOrder) Descriptor

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

func (*MsgShipOrder) GetContractId

func (m *MsgShipOrder) GetContractId() string

func (*MsgShipOrder) GetCreator

func (m *MsgShipOrder) GetCreator() string

func (*MsgShipOrder) GetDealId

func (m *MsgShipOrder) GetDealId() string

func (*MsgShipOrder) GetSignBytes

func (msg *MsgShipOrder) GetSignBytes() []byte

func (*MsgShipOrder) GetSigners

func (msg *MsgShipOrder) GetSigners() []sdk.AccAddress

func (*MsgShipOrder) Marshal

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

func (*MsgShipOrder) MarshalTo

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

func (*MsgShipOrder) MarshalToSizedBuffer

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

func (*MsgShipOrder) ProtoMessage

func (*MsgShipOrder) ProtoMessage()

func (*MsgShipOrder) Reset

func (m *MsgShipOrder) Reset()

func (*MsgShipOrder) Route

func (msg *MsgShipOrder) Route() string

func (*MsgShipOrder) Size

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

func (*MsgShipOrder) String

func (m *MsgShipOrder) String() string

func (*MsgShipOrder) Type

func (msg *MsgShipOrder) Type() string

func (*MsgShipOrder) Unmarshal

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

func (*MsgShipOrder) ValidateBasic

func (msg *MsgShipOrder) ValidateBasic() error

func (*MsgShipOrder) XXX_DiscardUnknown

func (m *MsgShipOrder) XXX_DiscardUnknown()

func (*MsgShipOrder) XXX_Marshal

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

func (*MsgShipOrder) XXX_Merge

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

func (*MsgShipOrder) XXX_Size

func (m *MsgShipOrder) XXX_Size() int

func (*MsgShipOrder) XXX_Unmarshal

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

type MsgShipOrderResponse

type MsgShipOrderResponse struct {
	IdValue        string `protobuf:"bytes,1,opt,name=idValue,proto3" json:"idValue,omitempty"`
	ContractStatus string `protobuf:"bytes,2,opt,name=contractStatus,proto3" json:"contractStatus,omitempty"`
}

func (*MsgShipOrderResponse) Descriptor

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

func (*MsgShipOrderResponse) GetContractStatus

func (m *MsgShipOrderResponse) GetContractStatus() string

func (*MsgShipOrderResponse) GetIdValue

func (m *MsgShipOrderResponse) GetIdValue() string

func (*MsgShipOrderResponse) Marshal

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

func (*MsgShipOrderResponse) MarshalTo

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

func (*MsgShipOrderResponse) MarshalToSizedBuffer

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

func (*MsgShipOrderResponse) ProtoMessage

func (*MsgShipOrderResponse) ProtoMessage()

func (*MsgShipOrderResponse) Reset

func (m *MsgShipOrderResponse) Reset()

func (*MsgShipOrderResponse) Size

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

func (*MsgShipOrderResponse) String

func (m *MsgShipOrderResponse) String() string

func (*MsgShipOrderResponse) Unmarshal

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

func (*MsgShipOrderResponse) XXX_DiscardUnknown

func (m *MsgShipOrderResponse) XXX_DiscardUnknown()

func (*MsgShipOrderResponse) XXX_Marshal

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

func (*MsgShipOrderResponse) XXX_Merge

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

func (*MsgShipOrderResponse) XXX_Size

func (m *MsgShipOrderResponse) XXX_Size() int

func (*MsgShipOrderResponse) XXX_Unmarshal

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

type NewContract

type NewContract struct {
	DealId        string `protobuf:"bytes,1,opt,name=dealId,proto3" json:"dealId,omitempty"`
	ContractId    string `protobuf:"bytes,2,opt,name=contractId,proto3" json:"contractId,omitempty"`
	Consumer      string `protobuf:"bytes,3,opt,name=consumer,proto3" json:"consumer,omitempty"`
	Desc          string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"`
	OwnerETA      uint32 `protobuf:"varint,5,opt,name=ownerETA,proto3" json:"ownerETA,omitempty"`
	VendorETA     uint32 `protobuf:"varint,6,opt,name=vendorETA,proto3" json:"vendorETA,omitempty"`
	Status        string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
	Fees          uint64 `protobuf:"varint,8,opt,name=fees,proto3" json:"fees,omitempty"`
	Expiry        string `protobuf:"bytes,9,opt,name=expiry,proto3" json:"expiry,omitempty"`
	ShippingDelay uint32 `protobuf:"varint,10,opt,name=shippingDelay,proto3" json:"shippingDelay,omitempty"`
	StartTime     string `protobuf:"bytes,11,opt,name=startTime,proto3" json:"startTime,omitempty"`
	DeliveryDelay uint32 `protobuf:"varint,12,opt,name=deliveryDelay,proto3" json:"deliveryDelay,omitempty"`
}

func (*NewContract) Descriptor

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

func (*NewContract) GetCoin

func (newContract *NewContract) GetCoin(amount uint64) (fees sdk.Coin)

func (*NewContract) GetConsumer

func (m *NewContract) GetConsumer() string

func (*NewContract) GetConsumerAddress

func (newContract *NewContract) GetConsumerAddress() (consumer sdk.AccAddress, err error)

func (*NewContract) GetContractId

func (m *NewContract) GetContractId() string

func (*NewContract) GetDealId

func (m *NewContract) GetDealId() string

func (*NewContract) GetDeliveryDelay

func (m *NewContract) GetDeliveryDelay() uint32

func (*NewContract) GetDesc

func (m *NewContract) GetDesc() string

func (*NewContract) GetExpiry

func (m *NewContract) GetExpiry() string

func (*NewContract) GetFees

func (m *NewContract) GetFees() uint64

func (*NewContract) GetOwnerETA

func (m *NewContract) GetOwnerETA() uint32

func (*NewContract) GetShippingDelay

func (m *NewContract) GetShippingDelay() uint32

func (*NewContract) GetStartTime

func (m *NewContract) GetStartTime() string

func (*NewContract) GetStatus

func (m *NewContract) GetStatus() string

func (*NewContract) GetVendorETA

func (m *NewContract) GetVendorETA() uint32

func (*NewContract) Marshal

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

func (*NewContract) MarshalTo

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

func (*NewContract) MarshalToSizedBuffer

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

func (*NewContract) ProtoMessage

func (*NewContract) ProtoMessage()

func (*NewContract) Reset

func (m *NewContract) Reset()

func (*NewContract) Size

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

func (*NewContract) String

func (m *NewContract) String() string

func (*NewContract) Unmarshal

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

func (*NewContract) Validate

func (newContract *NewContract) Validate() (err error)

func (*NewContract) ValidateDesc

func (newContract *NewContract) ValidateDesc() (err error)

func (*NewContract) XXX_DiscardUnknown

func (m *NewContract) XXX_DiscardUnknown()

func (*NewContract) XXX_Marshal

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

func (*NewContract) XXX_Merge

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

func (*NewContract) XXX_Size

func (m *NewContract) XXX_Size() int

func (*NewContract) XXX_Unmarshal

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

type NewDeal

type NewDeal struct {
	DealId     string `protobuf:"bytes,1,opt,name=dealId,proto3" json:"dealId,omitempty"`
	Owner      string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Vendor     string `protobuf:"bytes,3,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Commission uint64 `protobuf:"varint,4,opt,name=commission,proto3" json:"commission,omitempty"`
}

func (*NewDeal) Descriptor

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

func (*NewDeal) GetCommission

func (m *NewDeal) GetCommission() uint64

func (*NewDeal) GetDealId

func (m *NewDeal) GetDealId() string

func (*NewDeal) GetOwner

func (m *NewDeal) GetOwner() string

func (*NewDeal) GetOwnerAddress

func (newDeal *NewDeal) GetOwnerAddress() (owner sdk.AccAddress, err error)

func (*NewDeal) GetVendor

func (m *NewDeal) GetVendor() string

func (*NewDeal) GetVendorAddress

func (newDeal *NewDeal) GetVendorAddress() (vendor sdk.AccAddress, err error)

func (*NewDeal) Marshal

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

func (*NewDeal) MarshalTo

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

func (*NewDeal) MarshalToSizedBuffer

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

func (*NewDeal) ProtoMessage

func (*NewDeal) ProtoMessage()

func (*NewDeal) Reset

func (m *NewDeal) Reset()

func (*NewDeal) Size

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

func (*NewDeal) String

func (m *NewDeal) String() string

func (*NewDeal) Unmarshal

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

func (*NewDeal) Validate

func (newDeal *NewDeal) Validate() (err error)

func (*NewDeal) ValidateCommission

func (newDeal *NewDeal) ValidateCommission() (err error)

func (*NewDeal) XXX_DiscardUnknown

func (m *NewDeal) XXX_DiscardUnknown()

func (*NewDeal) XXX_Marshal

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

func (*NewDeal) XXX_Merge

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

func (*NewDeal) XXX_Size

func (m *NewDeal) XXX_Size() int

func (*NewDeal) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

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 (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

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 (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

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 QueryAllNewContractRequest

type QueryAllNewContractRequest struct {
	DealId     string             `protobuf:"bytes,1,opt,name=dealId,proto3" json:"dealId,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllNewContractRequest) Descriptor

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

func (*QueryAllNewContractRequest) GetDealId

func (m *QueryAllNewContractRequest) GetDealId() string

func (*QueryAllNewContractRequest) GetPagination

func (m *QueryAllNewContractRequest) GetPagination() *query.PageRequest

func (*QueryAllNewContractRequest) Marshal

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

func (*QueryAllNewContractRequest) MarshalTo

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

func (*QueryAllNewContractRequest) MarshalToSizedBuffer

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

func (*QueryAllNewContractRequest) ProtoMessage

func (*QueryAllNewContractRequest) ProtoMessage()

func (*QueryAllNewContractRequest) Reset

func (m *QueryAllNewContractRequest) Reset()

func (*QueryAllNewContractRequest) Size

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

func (*QueryAllNewContractRequest) String

func (m *QueryAllNewContractRequest) String() string

func (*QueryAllNewContractRequest) Unmarshal

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

func (*QueryAllNewContractRequest) XXX_DiscardUnknown

func (m *QueryAllNewContractRequest) XXX_DiscardUnknown()

func (*QueryAllNewContractRequest) XXX_Marshal

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

func (*QueryAllNewContractRequest) XXX_Merge

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

func (*QueryAllNewContractRequest) XXX_Size

func (m *QueryAllNewContractRequest) XXX_Size() int

func (*QueryAllNewContractRequest) XXX_Unmarshal

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

type QueryAllNewContractResponse

type QueryAllNewContractResponse struct {
	NewContract []NewContract       `protobuf:"bytes,1,rep,name=newContract,proto3" json:"newContract"`
	Pagination  *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllNewContractResponse) Descriptor

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

func (*QueryAllNewContractResponse) GetNewContract

func (m *QueryAllNewContractResponse) GetNewContract() []NewContract

func (*QueryAllNewContractResponse) GetPagination

func (m *QueryAllNewContractResponse) GetPagination() *query.PageResponse

func (*QueryAllNewContractResponse) Marshal

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

func (*QueryAllNewContractResponse) MarshalTo

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

func (*QueryAllNewContractResponse) MarshalToSizedBuffer

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

func (*QueryAllNewContractResponse) ProtoMessage

func (*QueryAllNewContractResponse) ProtoMessage()

func (*QueryAllNewContractResponse) Reset

func (m *QueryAllNewContractResponse) Reset()

func (*QueryAllNewContractResponse) Size

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

func (*QueryAllNewContractResponse) String

func (m *QueryAllNewContractResponse) String() string

func (*QueryAllNewContractResponse) Unmarshal

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

func (*QueryAllNewContractResponse) XXX_DiscardUnknown

func (m *QueryAllNewContractResponse) XXX_DiscardUnknown()

func (*QueryAllNewContractResponse) XXX_Marshal

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

func (*QueryAllNewContractResponse) XXX_Merge

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

func (*QueryAllNewContractResponse) XXX_Size

func (m *QueryAllNewContractResponse) XXX_Size() int

func (*QueryAllNewContractResponse) XXX_Unmarshal

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

type QueryAllNewDealRequest

type QueryAllNewDealRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllNewDealRequest) Descriptor

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

func (*QueryAllNewDealRequest) GetPagination

func (m *QueryAllNewDealRequest) GetPagination() *query.PageRequest

func (*QueryAllNewDealRequest) Marshal

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

func (*QueryAllNewDealRequest) MarshalTo

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

func (*QueryAllNewDealRequest) MarshalToSizedBuffer

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

func (*QueryAllNewDealRequest) ProtoMessage

func (*QueryAllNewDealRequest) ProtoMessage()

func (*QueryAllNewDealRequest) Reset

func (m *QueryAllNewDealRequest) Reset()

func (*QueryAllNewDealRequest) Size

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

func (*QueryAllNewDealRequest) String

func (m *QueryAllNewDealRequest) String() string

func (*QueryAllNewDealRequest) Unmarshal

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

func (*QueryAllNewDealRequest) XXX_DiscardUnknown

func (m *QueryAllNewDealRequest) XXX_DiscardUnknown()

func (*QueryAllNewDealRequest) XXX_Marshal

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

func (*QueryAllNewDealRequest) XXX_Merge

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

func (*QueryAllNewDealRequest) XXX_Size

func (m *QueryAllNewDealRequest) XXX_Size() int

func (*QueryAllNewDealRequest) XXX_Unmarshal

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

type QueryAllNewDealResponse

type QueryAllNewDealResponse struct {
	NewDeal    []NewDeal           `protobuf:"bytes,1,rep,name=newDeal,proto3" json:"newDeal"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllNewDealResponse) Descriptor

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

func (*QueryAllNewDealResponse) GetNewDeal

func (m *QueryAllNewDealResponse) GetNewDeal() []NewDeal

func (*QueryAllNewDealResponse) GetPagination

func (m *QueryAllNewDealResponse) GetPagination() *query.PageResponse

func (*QueryAllNewDealResponse) Marshal

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

func (*QueryAllNewDealResponse) MarshalTo

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

func (*QueryAllNewDealResponse) MarshalToSizedBuffer

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

func (*QueryAllNewDealResponse) ProtoMessage

func (*QueryAllNewDealResponse) ProtoMessage()

func (*QueryAllNewDealResponse) Reset

func (m *QueryAllNewDealResponse) Reset()

func (*QueryAllNewDealResponse) Size

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

func (*QueryAllNewDealResponse) String

func (m *QueryAllNewDealResponse) String() string

func (*QueryAllNewDealResponse) Unmarshal

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

func (*QueryAllNewDealResponse) XXX_DiscardUnknown

func (m *QueryAllNewDealResponse) XXX_DiscardUnknown()

func (*QueryAllNewDealResponse) XXX_Marshal

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

func (*QueryAllNewDealResponse) XXX_Merge

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

func (*QueryAllNewDealResponse) XXX_Size

func (m *QueryAllNewDealResponse) XXX_Size() int

func (*QueryAllNewDealResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a NewDeal by index.
	NewDeal(ctx context.Context, in *QueryGetNewDealRequest, opts ...grpc.CallOption) (*QueryGetNewDealResponse, error)
	// Queries a list of NewDeal items.
	NewDealAll(ctx context.Context, in *QueryAllNewDealRequest, opts ...grpc.CallOption) (*QueryAllNewDealResponse, error)
	// Queries a NewContract by index.
	NewContract(ctx context.Context, in *QueryGetNewContractRequest, opts ...grpc.CallOption) (*QueryGetNewContractResponse, error)
	// Queries a list of NewContract items.
	NewContractAll(ctx context.Context, in *QueryAllNewContractRequest, opts ...grpc.CallOption) (*QueryAllNewContractResponse, 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 QueryGetNewContractRequest

type QueryGetNewContractRequest struct {
	DealId     string `protobuf:"bytes,1,opt,name=dealId,proto3" json:"dealId,omitempty"`
	ContractId string `protobuf:"bytes,2,opt,name=contractId,proto3" json:"contractId,omitempty"`
}

func (*QueryGetNewContractRequest) Descriptor

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

func (*QueryGetNewContractRequest) GetContractId

func (m *QueryGetNewContractRequest) GetContractId() string

func (*QueryGetNewContractRequest) GetDealId

func (m *QueryGetNewContractRequest) GetDealId() string

func (*QueryGetNewContractRequest) Marshal

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

func (*QueryGetNewContractRequest) MarshalTo

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

func (*QueryGetNewContractRequest) MarshalToSizedBuffer

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

func (*QueryGetNewContractRequest) ProtoMessage

func (*QueryGetNewContractRequest) ProtoMessage()

func (*QueryGetNewContractRequest) Reset

func (m *QueryGetNewContractRequest) Reset()

func (*QueryGetNewContractRequest) Size

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

func (*QueryGetNewContractRequest) String

func (m *QueryGetNewContractRequest) String() string

func (*QueryGetNewContractRequest) Unmarshal

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

func (*QueryGetNewContractRequest) XXX_DiscardUnknown

func (m *QueryGetNewContractRequest) XXX_DiscardUnknown()

func (*QueryGetNewContractRequest) XXX_Marshal

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

func (*QueryGetNewContractRequest) XXX_Merge

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

func (*QueryGetNewContractRequest) XXX_Size

func (m *QueryGetNewContractRequest) XXX_Size() int

func (*QueryGetNewContractRequest) XXX_Unmarshal

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

type QueryGetNewContractResponse

type QueryGetNewContractResponse struct {
	NewContract NewContract `protobuf:"bytes,1,opt,name=newContract,proto3" json:"newContract"`
}

func (*QueryGetNewContractResponse) Descriptor

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

func (*QueryGetNewContractResponse) GetNewContract

func (m *QueryGetNewContractResponse) GetNewContract() NewContract

func (*QueryGetNewContractResponse) Marshal

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

func (*QueryGetNewContractResponse) MarshalTo

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

func (*QueryGetNewContractResponse) MarshalToSizedBuffer

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

func (*QueryGetNewContractResponse) ProtoMessage

func (*QueryGetNewContractResponse) ProtoMessage()

func (*QueryGetNewContractResponse) Reset

func (m *QueryGetNewContractResponse) Reset()

func (*QueryGetNewContractResponse) Size

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

func (*QueryGetNewContractResponse) String

func (m *QueryGetNewContractResponse) String() string

func (*QueryGetNewContractResponse) Unmarshal

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

func (*QueryGetNewContractResponse) XXX_DiscardUnknown

func (m *QueryGetNewContractResponse) XXX_DiscardUnknown()

func (*QueryGetNewContractResponse) XXX_Marshal

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

func (*QueryGetNewContractResponse) XXX_Merge

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

func (*QueryGetNewContractResponse) XXX_Size

func (m *QueryGetNewContractResponse) XXX_Size() int

func (*QueryGetNewContractResponse) XXX_Unmarshal

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

type QueryGetNewDealRequest

type QueryGetNewDealRequest struct {
	Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
}

func (*QueryGetNewDealRequest) Descriptor

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

func (*QueryGetNewDealRequest) GetIndex

func (m *QueryGetNewDealRequest) GetIndex() string

func (*QueryGetNewDealRequest) Marshal

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

func (*QueryGetNewDealRequest) MarshalTo

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

func (*QueryGetNewDealRequest) MarshalToSizedBuffer

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

func (*QueryGetNewDealRequest) ProtoMessage

func (*QueryGetNewDealRequest) ProtoMessage()

func (*QueryGetNewDealRequest) Reset

func (m *QueryGetNewDealRequest) Reset()

func (*QueryGetNewDealRequest) Size

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

func (*QueryGetNewDealRequest) String

func (m *QueryGetNewDealRequest) String() string

func (*QueryGetNewDealRequest) Unmarshal

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

func (*QueryGetNewDealRequest) XXX_DiscardUnknown

func (m *QueryGetNewDealRequest) XXX_DiscardUnknown()

func (*QueryGetNewDealRequest) XXX_Marshal

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

func (*QueryGetNewDealRequest) XXX_Merge

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

func (*QueryGetNewDealRequest) XXX_Size

func (m *QueryGetNewDealRequest) XXX_Size() int

func (*QueryGetNewDealRequest) XXX_Unmarshal

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

type QueryGetNewDealResponse

type QueryGetNewDealResponse struct {
	NewDeal NewDeal `protobuf:"bytes,1,opt,name=newDeal,proto3" json:"newDeal"`
}

func (*QueryGetNewDealResponse) Descriptor

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

func (*QueryGetNewDealResponse) GetNewDeal

func (m *QueryGetNewDealResponse) GetNewDeal() NewDeal

func (*QueryGetNewDealResponse) Marshal

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

func (*QueryGetNewDealResponse) MarshalTo

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

func (*QueryGetNewDealResponse) MarshalToSizedBuffer

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

func (*QueryGetNewDealResponse) ProtoMessage

func (*QueryGetNewDealResponse) ProtoMessage()

func (*QueryGetNewDealResponse) Reset

func (m *QueryGetNewDealResponse) Reset()

func (*QueryGetNewDealResponse) Size

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

func (*QueryGetNewDealResponse) String

func (m *QueryGetNewDealResponse) String() string

func (*QueryGetNewDealResponse) Unmarshal

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

func (*QueryGetNewDealResponse) XXX_DiscardUnknown

func (m *QueryGetNewDealResponse) XXX_DiscardUnknown()

func (*QueryGetNewDealResponse) XXX_Marshal

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

func (*QueryGetNewDealResponse) XXX_Merge

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

func (*QueryGetNewDealResponse) XXX_Size

func (m *QueryGetNewDealResponse) XXX_Size() int

func (*QueryGetNewDealResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a NewDeal by index.
	NewDeal(context.Context, *QueryGetNewDealRequest) (*QueryGetNewDealResponse, error)
	// Queries a list of NewDeal items.
	NewDealAll(context.Context, *QueryAllNewDealRequest) (*QueryAllNewDealResponse, error)
	// Queries a NewContract by index.
	NewContract(context.Context, *QueryGetNewContractRequest) (*QueryGetNewContractResponse, error)
	// Queries a list of NewContract items.
	NewContractAll(context.Context, *QueryAllNewContractRequest) (*QueryAllNewContractResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ApproveContract

func (*UnimplementedMsgServer) CancelOrder

func (*UnimplementedMsgServer) CommitContract

func (*UnimplementedMsgServer) CreateContract

func (*UnimplementedMsgServer) CreateDeal

func (*UnimplementedMsgServer) OrderDelivered

func (*UnimplementedMsgServer) ShipOrder

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) NewContract

func (*UnimplementedQueryServer) NewContractAll

func (*UnimplementedQueryServer) NewDeal

func (*UnimplementedQueryServer) NewDealAll

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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