Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CheckNotEmpty(value string, name string) (valid bool, err error)
- func GetPaymentContractKey(contractId string) []byte
- func GetPaymentTemplateKey(templateId string) []byte
- func GetSubscriptionKey(subscriptionId string) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateGenesis(data *GenesisState) error
- type BlockPeriod
- func (*BlockPeriod) Descriptor() ([]byte, []int)
- func (m *BlockPeriod) GetPeriodLength() int64
- func (m *BlockPeriod) GetPeriodStartBlock() int64
- func (p BlockPeriod) GetPeriodUnit() string
- func (m *BlockPeriod) Marshal() (dAtA []byte, err error)
- func (m *BlockPeriod) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockPeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockPeriod) ProtoMessage()
- func (m *BlockPeriod) Reset()
- func (m *BlockPeriod) Size() (n int)
- func (m *BlockPeriod) String() string
- func (m *BlockPeriod) Unmarshal(dAtA []byte) error
- func (p BlockPeriod) Validate() error
- func (m *BlockPeriod) XXX_DiscardUnknown()
- func (m *BlockPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockPeriod) XXX_Merge(src proto.Message)
- func (m *BlockPeriod) XXX_Size() int
- func (m *BlockPeriod) XXX_Unmarshal(b []byte) error
- type Discount
- func (*Discount) Descriptor() ([]byte, []int)
- func (m *Discount) Marshal() (dAtA []byte, err error)
- func (m *Discount) MarshalTo(dAtA []byte) (int, error)
- func (m *Discount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Discount) ProtoMessage()
- func (m *Discount) Reset()
- func (m *Discount) Size() (n int)
- func (m *Discount) String() string
- func (m *Discount) Unmarshal(dAtA []byte) error
- func (d Discount) Validate() error
- func (m *Discount) XXX_DiscardUnknown()
- func (m *Discount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Discount) XXX_Merge(src proto.Message)
- func (m *Discount) XXX_Size() int
- func (m *Discount) XXX_Unmarshal(b []byte) error
- type Discounts
- type Distribution
- type DistributionShare
- func (*DistributionShare) Descriptor() ([]byte, []int)
- func (m *DistributionShare) GetAddress() string
- func (d DistributionShare) GetShareOf(amount sdk.DecCoins) sdk.DecCoins
- func (m *DistributionShare) Marshal() (dAtA []byte, err error)
- func (m *DistributionShare) MarshalTo(dAtA []byte) (int, error)
- func (m *DistributionShare) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DistributionShare) ProtoMessage()
- func (m *DistributionShare) Reset()
- func (m *DistributionShare) Size() (n int)
- func (m *DistributionShare) String() string
- func (m *DistributionShare) Unmarshal(dAtA []byte) error
- func (d DistributionShare) Validate() error
- func (m *DistributionShare) XXX_DiscardUnknown()
- func (m *DistributionShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DistributionShare) XXX_Merge(src proto.Message)
- func (m *DistributionShare) XXX_Size() int
- func (m *DistributionShare) XXX_Unmarshal(b []byte) error
- type FeeType
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetPaymentContracts() []PaymentContract
- func (m *GenesisState) GetPaymentTemplates() []PaymentTemplate
- func (m *GenesisState) GetSubscriptions() []Subscription
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (data GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreatePaymentContract
- func (*MsgCreatePaymentContract) Descriptor() ([]byte, []int)
- func (m *MsgCreatePaymentContract) GetCanDeauthorise() bool
- func (m *MsgCreatePaymentContract) GetCreatorAddress() string
- func (m *MsgCreatePaymentContract) GetCreatorDid() github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment
- func (msg MsgCreatePaymentContract) GetIidController() iidtypes.DIDFragment
- func (m *MsgCreatePaymentContract) GetPayer() string
- func (m *MsgCreatePaymentContract) GetPaymentContractId() string
- func (m *MsgCreatePaymentContract) GetPaymentTemplateId() string
- func (m *MsgCreatePaymentContract) GetRecipients() []DistributionShare
- func (msg MsgCreatePaymentContract) GetSignBytes() []byte
- func (msg MsgCreatePaymentContract) GetSigners() []sdk.AccAddress
- func (m *MsgCreatePaymentContract) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePaymentContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePaymentContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePaymentContract) ProtoMessage()
- func (m *MsgCreatePaymentContract) Reset()
- func (msg MsgCreatePaymentContract) Route() string
- func (m *MsgCreatePaymentContract) Size() (n int)
- func (msg MsgCreatePaymentContract) String() string
- func (msg MsgCreatePaymentContract) Type() string
- func (m *MsgCreatePaymentContract) Unmarshal(dAtA []byte) error
- func (msg MsgCreatePaymentContract) ValidateBasic() error
- func (m *MsgCreatePaymentContract) XXX_DiscardUnknown()
- func (m *MsgCreatePaymentContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePaymentContract) XXX_Merge(src proto.Message)
- func (m *MsgCreatePaymentContract) XXX_Size() int
- func (m *MsgCreatePaymentContract) XXX_Unmarshal(b []byte) error
- type MsgCreatePaymentContractResponse
- func (*MsgCreatePaymentContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePaymentContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePaymentContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePaymentContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePaymentContractResponse) ProtoMessage()
- func (m *MsgCreatePaymentContractResponse) Reset()
- func (m *MsgCreatePaymentContractResponse) Size() (n int)
- func (m *MsgCreatePaymentContractResponse) String() string
- func (m *MsgCreatePaymentContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePaymentContractResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePaymentContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePaymentContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePaymentContractResponse) XXX_Size() int
- func (m *MsgCreatePaymentContractResponse) XXX_Unmarshal(b []byte) error
- type MsgCreatePaymentTemplate
- func (*MsgCreatePaymentTemplate) Descriptor() ([]byte, []int)
- func (m *MsgCreatePaymentTemplate) GetCreatorAddress() string
- func (m *MsgCreatePaymentTemplate) GetCreatorDid() github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment
- func (msg MsgCreatePaymentTemplate) GetIidController() iidtypes.DIDFragment
- func (m *MsgCreatePaymentTemplate) GetPaymentTemplate() PaymentTemplate
- func (msg MsgCreatePaymentTemplate) GetSignBytes() []byte
- func (msg MsgCreatePaymentTemplate) GetSigners() []sdk.AccAddress
- func (m *MsgCreatePaymentTemplate) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePaymentTemplate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePaymentTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePaymentTemplate) ProtoMessage()
- func (m *MsgCreatePaymentTemplate) Reset()
- func (msg MsgCreatePaymentTemplate) Route() string
- func (m *MsgCreatePaymentTemplate) Size() (n int)
- func (msg MsgCreatePaymentTemplate) String() string
- func (msg MsgCreatePaymentTemplate) Type() string
- func (m *MsgCreatePaymentTemplate) Unmarshal(dAtA []byte) error
- func (msg MsgCreatePaymentTemplate) ValidateBasic() error
- func (m *MsgCreatePaymentTemplate) XXX_DiscardUnknown()
- func (m *MsgCreatePaymentTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePaymentTemplate) XXX_Merge(src proto.Message)
- func (m *MsgCreatePaymentTemplate) XXX_Size() int
- func (m *MsgCreatePaymentTemplate) XXX_Unmarshal(b []byte) error
- type MsgCreatePaymentTemplateResponse
- func (*MsgCreatePaymentTemplateResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePaymentTemplateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePaymentTemplateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePaymentTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePaymentTemplateResponse) ProtoMessage()
- func (m *MsgCreatePaymentTemplateResponse) Reset()
- func (m *MsgCreatePaymentTemplateResponse) Size() (n int)
- func (m *MsgCreatePaymentTemplateResponse) String() string
- func (m *MsgCreatePaymentTemplateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePaymentTemplateResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePaymentTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePaymentTemplateResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePaymentTemplateResponse) XXX_Size() int
- func (m *MsgCreatePaymentTemplateResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateSubscription
- func (*MsgCreateSubscription) Descriptor() ([]byte, []int)
- func (msg MsgCreateSubscription) GetIidController() iidtypes.DIDFragment
- func (msg *MsgCreateSubscription) GetPeriod() Period
- func (msg MsgCreateSubscription) GetSignBytes() []byte
- func (msg MsgCreateSubscription) GetSigners() []sdk.AccAddress
- func (m *MsgCreateSubscription) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSubscription) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSubscription) ProtoMessage()
- func (m *MsgCreateSubscription) Reset()
- func (msg MsgCreateSubscription) Route() string
- func (msg *MsgCreateSubscription) SetPeriod(period Period) error
- func (m *MsgCreateSubscription) Size() (n int)
- func (msg MsgCreateSubscription) String() string
- func (msg MsgCreateSubscription) Type() string
- func (m *MsgCreateSubscription) Unmarshal(dAtA []byte) error
- func (m MsgCreateSubscription) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (msg MsgCreateSubscription) ValidateBasic() error
- func (m *MsgCreateSubscription) XXX_DiscardUnknown()
- func (m *MsgCreateSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSubscription) XXX_Merge(src proto.Message)
- func (m *MsgCreateSubscription) XXX_Size() int
- func (m *MsgCreateSubscription) XXX_Unmarshal(b []byte) error
- type MsgCreateSubscriptionResponse
- func (*MsgCreateSubscriptionResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateSubscriptionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSubscriptionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSubscriptionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSubscriptionResponse) ProtoMessage()
- func (m *MsgCreateSubscriptionResponse) Reset()
- func (m *MsgCreateSubscriptionResponse) Size() (n int)
- func (m *MsgCreateSubscriptionResponse) String() string
- func (m *MsgCreateSubscriptionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateSubscriptionResponse) XXX_DiscardUnknown()
- func (m *MsgCreateSubscriptionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSubscriptionResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateSubscriptionResponse) XXX_Size() int
- func (m *MsgCreateSubscriptionResponse) XXX_Unmarshal(b []byte) error
- type MsgEffectPayment
- func (*MsgEffectPayment) Descriptor() ([]byte, []int)
- func (msg MsgEffectPayment) GetIidController() iidtypes.DIDFragment
- func (m *MsgEffectPayment) GetPartialPaymentAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgEffectPayment) GetPaymentContractId() string
- func (m *MsgEffectPayment) GetSenderAddress() string
- func (m *MsgEffectPayment) GetSenderDid() github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment
- func (msg MsgEffectPayment) GetSignBytes() []byte
- func (msg MsgEffectPayment) GetSigners() []sdk.AccAddress
- func (m *MsgEffectPayment) Marshal() (dAtA []byte, err error)
- func (m *MsgEffectPayment) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEffectPayment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEffectPayment) ProtoMessage()
- func (m *MsgEffectPayment) Reset()
- func (msg MsgEffectPayment) Route() string
- func (m *MsgEffectPayment) Size() (n int)
- func (msg MsgEffectPayment) String() string
- func (msg MsgEffectPayment) Type() string
- func (m *MsgEffectPayment) Unmarshal(dAtA []byte) error
- func (msg MsgEffectPayment) ValidateBasic() error
- func (m *MsgEffectPayment) XXX_DiscardUnknown()
- func (m *MsgEffectPayment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEffectPayment) XXX_Merge(src proto.Message)
- func (m *MsgEffectPayment) XXX_Size() int
- func (m *MsgEffectPayment) XXX_Unmarshal(b []byte) error
- type MsgEffectPaymentResponse
- func (*MsgEffectPaymentResponse) Descriptor() ([]byte, []int)
- func (m *MsgEffectPaymentResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgEffectPaymentResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEffectPaymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEffectPaymentResponse) ProtoMessage()
- func (m *MsgEffectPaymentResponse) Reset()
- func (m *MsgEffectPaymentResponse) Size() (n int)
- func (m *MsgEffectPaymentResponse) String() string
- func (m *MsgEffectPaymentResponse) Unmarshal(dAtA []byte) error
- func (m *MsgEffectPaymentResponse) XXX_DiscardUnknown()
- func (m *MsgEffectPaymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEffectPaymentResponse) XXX_Merge(src proto.Message)
- func (m *MsgEffectPaymentResponse) XXX_Size() int
- func (m *MsgEffectPaymentResponse) XXX_Unmarshal(b []byte) error
- type MsgGrantDiscount
- func (*MsgGrantDiscount) Descriptor() ([]byte, []int)
- func (msg MsgGrantDiscount) GetIidController() iidtypes.DIDFragment
- func (m *MsgGrantDiscount) GetPaymentContractId() string
- func (m *MsgGrantDiscount) GetRecipient() string
- func (m *MsgGrantDiscount) GetSenderAddress() string
- func (m *MsgGrantDiscount) GetSenderDid() github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment
- func (msg MsgGrantDiscount) GetSignBytes() []byte
- func (msg MsgGrantDiscount) GetSigners() []sdk.AccAddress
- func (m *MsgGrantDiscount) Marshal() (dAtA []byte, err error)
- func (m *MsgGrantDiscount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGrantDiscount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGrantDiscount) ProtoMessage()
- func (m *MsgGrantDiscount) Reset()
- func (msg MsgGrantDiscount) Route() string
- func (m *MsgGrantDiscount) Size() (n int)
- func (msg MsgGrantDiscount) String() string
- func (msg MsgGrantDiscount) Type() string
- func (m *MsgGrantDiscount) Unmarshal(dAtA []byte) error
- func (msg MsgGrantDiscount) ValidateBasic() error
- func (m *MsgGrantDiscount) XXX_DiscardUnknown()
- func (m *MsgGrantDiscount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGrantDiscount) XXX_Merge(src proto.Message)
- func (m *MsgGrantDiscount) XXX_Size() int
- func (m *MsgGrantDiscount) XXX_Unmarshal(b []byte) error
- type MsgGrantDiscountResponse
- func (*MsgGrantDiscountResponse) Descriptor() ([]byte, []int)
- func (m *MsgGrantDiscountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgGrantDiscountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGrantDiscountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGrantDiscountResponse) ProtoMessage()
- func (m *MsgGrantDiscountResponse) Reset()
- func (m *MsgGrantDiscountResponse) Size() (n int)
- func (m *MsgGrantDiscountResponse) String() string
- func (m *MsgGrantDiscountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgGrantDiscountResponse) XXX_DiscardUnknown()
- func (m *MsgGrantDiscountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGrantDiscountResponse) XXX_Merge(src proto.Message)
- func (m *MsgGrantDiscountResponse) XXX_Size() int
- func (m *MsgGrantDiscountResponse) XXX_Unmarshal(b []byte) error
- type MsgRevokeDiscount
- func (*MsgRevokeDiscount) Descriptor() ([]byte, []int)
- func (m *MsgRevokeDiscount) GetHolder() string
- func (msg MsgRevokeDiscount) GetIidController() iidtypes.DIDFragment
- func (m *MsgRevokeDiscount) GetPaymentContractId() string
- func (m *MsgRevokeDiscount) GetSenderAddress() string
- func (m *MsgRevokeDiscount) GetSenderDid() github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment
- func (msg MsgRevokeDiscount) GetSignBytes() []byte
- func (msg MsgRevokeDiscount) GetSigners() []sdk.AccAddress
- func (m *MsgRevokeDiscount) Marshal() (dAtA []byte, err error)
- func (m *MsgRevokeDiscount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRevokeDiscount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRevokeDiscount) ProtoMessage()
- func (m *MsgRevokeDiscount) Reset()
- func (msg MsgRevokeDiscount) Route() string
- func (m *MsgRevokeDiscount) Size() (n int)
- func (msg MsgRevokeDiscount) String() string
- func (msg MsgRevokeDiscount) Type() string
- func (m *MsgRevokeDiscount) Unmarshal(dAtA []byte) error
- func (msg MsgRevokeDiscount) ValidateBasic() error
- func (m *MsgRevokeDiscount) XXX_DiscardUnknown()
- func (m *MsgRevokeDiscount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRevokeDiscount) XXX_Merge(src proto.Message)
- func (m *MsgRevokeDiscount) XXX_Size() int
- func (m *MsgRevokeDiscount) XXX_Unmarshal(b []byte) error
- type MsgRevokeDiscountResponse
- func (*MsgRevokeDiscountResponse) Descriptor() ([]byte, []int)
- func (m *MsgRevokeDiscountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRevokeDiscountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRevokeDiscountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRevokeDiscountResponse) ProtoMessage()
- func (m *MsgRevokeDiscountResponse) Reset()
- func (m *MsgRevokeDiscountResponse) Size() (n int)
- func (m *MsgRevokeDiscountResponse) String() string
- func (m *MsgRevokeDiscountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRevokeDiscountResponse) XXX_DiscardUnknown()
- func (m *MsgRevokeDiscountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRevokeDiscountResponse) XXX_Merge(src proto.Message)
- func (m *MsgRevokeDiscountResponse) XXX_Size() int
- func (m *MsgRevokeDiscountResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetPaymentContractAuthorisation
- func (*MsgSetPaymentContractAuthorisation) Descriptor() ([]byte, []int)
- func (m *MsgSetPaymentContractAuthorisation) GetAuthorised() bool
- func (msg MsgSetPaymentContractAuthorisation) GetIidController() iidtypes.DIDFragment
- func (m *MsgSetPaymentContractAuthorisation) GetPayerAddress() string
- func (m *MsgSetPaymentContractAuthorisation) GetPayerDid() github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment
- func (m *MsgSetPaymentContractAuthorisation) GetPaymentContractId() string
- func (msg MsgSetPaymentContractAuthorisation) GetSignBytes() []byte
- func (msg MsgSetPaymentContractAuthorisation) GetSigners() []sdk.AccAddress
- func (m *MsgSetPaymentContractAuthorisation) Marshal() (dAtA []byte, err error)
- func (m *MsgSetPaymentContractAuthorisation) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetPaymentContractAuthorisation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetPaymentContractAuthorisation) ProtoMessage()
- func (m *MsgSetPaymentContractAuthorisation) Reset()
- func (msg MsgSetPaymentContractAuthorisation) Route() string
- func (m *MsgSetPaymentContractAuthorisation) Size() (n int)
- func (msg MsgSetPaymentContractAuthorisation) String() string
- func (msg MsgSetPaymentContractAuthorisation) Type() string
- func (m *MsgSetPaymentContractAuthorisation) Unmarshal(dAtA []byte) error
- func (msg MsgSetPaymentContractAuthorisation) ValidateBasic() error
- func (m *MsgSetPaymentContractAuthorisation) XXX_DiscardUnknown()
- func (m *MsgSetPaymentContractAuthorisation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetPaymentContractAuthorisation) XXX_Merge(src proto.Message)
- func (m *MsgSetPaymentContractAuthorisation) XXX_Size() int
- func (m *MsgSetPaymentContractAuthorisation) XXX_Unmarshal(b []byte) error
- type MsgSetPaymentContractAuthorisationResponse
- func (*MsgSetPaymentContractAuthorisationResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetPaymentContractAuthorisationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetPaymentContractAuthorisationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetPaymentContractAuthorisationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetPaymentContractAuthorisationResponse) ProtoMessage()
- func (m *MsgSetPaymentContractAuthorisationResponse) Reset()
- func (m *MsgSetPaymentContractAuthorisationResponse) Size() (n int)
- func (m *MsgSetPaymentContractAuthorisationResponse) String() string
- func (m *MsgSetPaymentContractAuthorisationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetPaymentContractAuthorisationResponse) XXX_DiscardUnknown()
- func (m *MsgSetPaymentContractAuthorisationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetPaymentContractAuthorisationResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetPaymentContractAuthorisationResponse) XXX_Size() int
- func (m *MsgSetPaymentContractAuthorisationResponse) XXX_Unmarshal(b []byte) error
- type PaymentContract
- func (pc PaymentContract) CanEffectPayment(template PaymentTemplate) bool
- func (*PaymentContract) Descriptor() ([]byte, []int)
- func (m *PaymentContract) GetAuthorised() bool
- func (m *PaymentContract) GetCanDeauthorise() bool
- func (m *PaymentContract) GetCreator() string
- func (m *PaymentContract) GetCumulativePay() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *PaymentContract) GetCurrentRemainder() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *PaymentContract) GetId() string
- func (m *PaymentContract) GetPayer() string
- func (m *PaymentContract) GetPaymentTemplateId() string
- func (m *PaymentContract) GetRecipients() []DistributionShare
- func (pc PaymentContract) IsFirstPayment() bool
- func (m *PaymentContract) Marshal() (dAtA []byte, err error)
- func (m *PaymentContract) MarshalTo(dAtA []byte) (int, error)
- func (m *PaymentContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PaymentContract) ProtoMessage()
- func (m *PaymentContract) Reset()
- func (m *PaymentContract) Size() (n int)
- func (m *PaymentContract) String() string
- func (m *PaymentContract) Unmarshal(dAtA []byte) error
- func (pc PaymentContract) Validate() error
- func (m *PaymentContract) XXX_DiscardUnknown()
- func (m *PaymentContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaymentContract) XXX_Merge(src proto.Message)
- func (m *PaymentContract) XXX_Size() int
- func (m *PaymentContract) XXX_Unmarshal(b []byte) error
- type PaymentTemplate
- func (*PaymentTemplate) Descriptor() ([]byte, []int)
- func (pt PaymentTemplate) GetDiscountPercent(discountId sdk.Uint) (sdk.Dec, error)
- func (m *PaymentTemplate) GetDiscounts() []Discount
- func (m *PaymentTemplate) GetId() string
- func (m *PaymentTemplate) GetPaymentAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *PaymentTemplate) GetPaymentMaximum() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *PaymentTemplate) GetPaymentMinimum() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *PaymentTemplate) Marshal() (dAtA []byte, err error)
- func (m *PaymentTemplate) MarshalTo(dAtA []byte) (int, error)
- func (m *PaymentTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PaymentTemplate) ProtoMessage()
- func (m *PaymentTemplate) Reset()
- func (m *PaymentTemplate) Size() (n int)
- func (m *PaymentTemplate) String() string
- func (m *PaymentTemplate) Unmarshal(dAtA []byte) error
- func (pt PaymentTemplate) Validate() error
- func (m *PaymentTemplate) XXX_DiscardUnknown()
- func (m *PaymentTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaymentTemplate) XXX_Merge(src proto.Message)
- func (m *PaymentTemplate) XXX_Size() int
- func (m *PaymentTemplate) XXX_Unmarshal(b []byte) error
- type Period
- type QueryClient
- type QueryPaymentContractRequest
- func (*QueryPaymentContractRequest) Descriptor() ([]byte, []int)
- func (m *QueryPaymentContractRequest) GetPaymentContractId() string
- func (m *QueryPaymentContractRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPaymentContractRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPaymentContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPaymentContractRequest) ProtoMessage()
- func (m *QueryPaymentContractRequest) Reset()
- func (m *QueryPaymentContractRequest) Size() (n int)
- func (m *QueryPaymentContractRequest) String() string
- func (m *QueryPaymentContractRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPaymentContractRequest) XXX_DiscardUnknown()
- func (m *QueryPaymentContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPaymentContractRequest) XXX_Merge(src proto.Message)
- func (m *QueryPaymentContractRequest) XXX_Size() int
- func (m *QueryPaymentContractRequest) XXX_Unmarshal(b []byte) error
- type QueryPaymentContractResponse
- func (*QueryPaymentContractResponse) Descriptor() ([]byte, []int)
- func (m *QueryPaymentContractResponse) GetPaymentContract() PaymentContract
- func (m *QueryPaymentContractResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPaymentContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPaymentContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPaymentContractResponse) ProtoMessage()
- func (m *QueryPaymentContractResponse) Reset()
- func (m *QueryPaymentContractResponse) Size() (n int)
- func (m *QueryPaymentContractResponse) String() string
- func (m *QueryPaymentContractResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPaymentContractResponse) XXX_DiscardUnknown()
- func (m *QueryPaymentContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPaymentContractResponse) XXX_Merge(src proto.Message)
- func (m *QueryPaymentContractResponse) XXX_Size() int
- func (m *QueryPaymentContractResponse) XXX_Unmarshal(b []byte) error
- type QueryPaymentContractsByIdPrefixRequest
- func (*QueryPaymentContractsByIdPrefixRequest) Descriptor() ([]byte, []int)
- func (m *QueryPaymentContractsByIdPrefixRequest) GetPaymentContractsIdPrefix() string
- func (m *QueryPaymentContractsByIdPrefixRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPaymentContractsByIdPrefixRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPaymentContractsByIdPrefixRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPaymentContractsByIdPrefixRequest) ProtoMessage()
- func (m *QueryPaymentContractsByIdPrefixRequest) Reset()
- func (m *QueryPaymentContractsByIdPrefixRequest) Size() (n int)
- func (m *QueryPaymentContractsByIdPrefixRequest) String() string
- func (m *QueryPaymentContractsByIdPrefixRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPaymentContractsByIdPrefixRequest) XXX_DiscardUnknown()
- func (m *QueryPaymentContractsByIdPrefixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPaymentContractsByIdPrefixRequest) XXX_Merge(src proto.Message)
- func (m *QueryPaymentContractsByIdPrefixRequest) XXX_Size() int
- func (m *QueryPaymentContractsByIdPrefixRequest) XXX_Unmarshal(b []byte) error
- type QueryPaymentContractsByIdPrefixResponse
- func (*QueryPaymentContractsByIdPrefixResponse) Descriptor() ([]byte, []int)
- func (m *QueryPaymentContractsByIdPrefixResponse) GetPaymentContracts() []PaymentContract
- func (m *QueryPaymentContractsByIdPrefixResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPaymentContractsByIdPrefixResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPaymentContractsByIdPrefixResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPaymentContractsByIdPrefixResponse) ProtoMessage()
- func (m *QueryPaymentContractsByIdPrefixResponse) Reset()
- func (m *QueryPaymentContractsByIdPrefixResponse) Size() (n int)
- func (m *QueryPaymentContractsByIdPrefixResponse) String() string
- func (m *QueryPaymentContractsByIdPrefixResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPaymentContractsByIdPrefixResponse) XXX_DiscardUnknown()
- func (m *QueryPaymentContractsByIdPrefixResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPaymentContractsByIdPrefixResponse) XXX_Merge(src proto.Message)
- func (m *QueryPaymentContractsByIdPrefixResponse) XXX_Size() int
- func (m *QueryPaymentContractsByIdPrefixResponse) XXX_Unmarshal(b []byte) error
- type QueryPaymentTemplateRequest
- func (*QueryPaymentTemplateRequest) Descriptor() ([]byte, []int)
- func (m *QueryPaymentTemplateRequest) GetPaymentTemplateId() string
- func (m *QueryPaymentTemplateRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPaymentTemplateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPaymentTemplateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPaymentTemplateRequest) ProtoMessage()
- func (m *QueryPaymentTemplateRequest) Reset()
- func (m *QueryPaymentTemplateRequest) Size() (n int)
- func (m *QueryPaymentTemplateRequest) String() string
- func (m *QueryPaymentTemplateRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPaymentTemplateRequest) XXX_DiscardUnknown()
- func (m *QueryPaymentTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPaymentTemplateRequest) XXX_Merge(src proto.Message)
- func (m *QueryPaymentTemplateRequest) XXX_Size() int
- func (m *QueryPaymentTemplateRequest) XXX_Unmarshal(b []byte) error
- type QueryPaymentTemplateResponse
- func (*QueryPaymentTemplateResponse) Descriptor() ([]byte, []int)
- func (m *QueryPaymentTemplateResponse) GetPaymentTemplate() PaymentTemplate
- func (m *QueryPaymentTemplateResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPaymentTemplateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPaymentTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPaymentTemplateResponse) ProtoMessage()
- func (m *QueryPaymentTemplateResponse) Reset()
- func (m *QueryPaymentTemplateResponse) Size() (n int)
- func (m *QueryPaymentTemplateResponse) String() string
- func (m *QueryPaymentTemplateResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPaymentTemplateResponse) XXX_DiscardUnknown()
- func (m *QueryPaymentTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPaymentTemplateResponse) XXX_Merge(src proto.Message)
- func (m *QueryPaymentTemplateResponse) XXX_Size() int
- func (m *QueryPaymentTemplateResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySubscriptionRequest
- func (*QuerySubscriptionRequest) Descriptor() ([]byte, []int)
- func (m *QuerySubscriptionRequest) GetSubscriptionId() string
- func (m *QuerySubscriptionRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySubscriptionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubscriptionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubscriptionRequest) ProtoMessage()
- func (m *QuerySubscriptionRequest) Reset()
- func (m *QuerySubscriptionRequest) Size() (n int)
- func (m *QuerySubscriptionRequest) String() string
- func (m *QuerySubscriptionRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySubscriptionRequest) XXX_DiscardUnknown()
- func (m *QuerySubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubscriptionRequest) XXX_Merge(src proto.Message)
- func (m *QuerySubscriptionRequest) XXX_Size() int
- func (m *QuerySubscriptionRequest) XXX_Unmarshal(b []byte) error
- type QuerySubscriptionResponse
- func (*QuerySubscriptionResponse) Descriptor() ([]byte, []int)
- func (m *QuerySubscriptionResponse) GetSubscription() Subscription
- func (m *QuerySubscriptionResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySubscriptionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubscriptionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubscriptionResponse) ProtoMessage()
- func (m *QuerySubscriptionResponse) Reset()
- func (m *QuerySubscriptionResponse) Size() (n int)
- func (m *QuerySubscriptionResponse) String() string
- func (m *QuerySubscriptionResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySubscriptionResponse) XXX_DiscardUnknown()
- func (m *QuerySubscriptionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubscriptionResponse) XXX_Merge(src proto.Message)
- func (m *QuerySubscriptionResponse) XXX_Size() int
- func (m *QuerySubscriptionResponse) XXX_Unmarshal(b []byte) error
- type Subscription
- func (*Subscription) Descriptor() ([]byte, []int)
- func (s *Subscription) GetPeriod() Period
- func (s Subscription) IsComplete() bool
- func (m *Subscription) Marshal() (dAtA []byte, err error)
- func (m *Subscription) MarshalTo(dAtA []byte) (int, error)
- func (m *Subscription) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (s Subscription) MaxPeriodsReached() bool
- func (s *Subscription) NextPeriod(periodPaid bool)
- func (*Subscription) ProtoMessage()
- func (m *Subscription) Reset()
- func (s *Subscription) SetPeriod(period Period) error
- func (s Subscription) ShouldEffect(ctx sdk.Context) bool
- func (m *Subscription) Size() (n int)
- func (m *Subscription) String() string
- func (m *Subscription) Unmarshal(dAtA []byte) error
- func (s Subscription) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (s Subscription) Validate() error
- func (m *Subscription) XXX_DiscardUnknown()
- func (m *Subscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Subscription) XXX_Merge(src proto.Message)
- func (m *Subscription) XXX_Size() int
- func (m *Subscription) XXX_Unmarshal(b []byte) error
- type TestPeriod
- func (*TestPeriod) Descriptor() ([]byte, []int)
- func (m *TestPeriod) GetPeriodLength() int64
- func (m *TestPeriod) GetPeriodStartBlock() int64
- func (p TestPeriod) GetPeriodUnit() string
- func (m *TestPeriod) Marshal() (dAtA []byte, err error)
- func (m *TestPeriod) MarshalTo(dAtA []byte) (int, error)
- func (m *TestPeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TestPeriod) ProtoMessage()
- func (m *TestPeriod) Reset()
- func (m *TestPeriod) Size() (n int)
- func (m *TestPeriod) String() string
- func (m *TestPeriod) Unmarshal(dAtA []byte) error
- func (p TestPeriod) Validate() error
- func (m *TestPeriod) XXX_DiscardUnknown()
- func (m *TestPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TestPeriod) XXX_Merge(src proto.Message)
- func (m *TestPeriod) XXX_Size() int
- func (m *TestPeriod) XXX_Unmarshal(b []byte) error
- type TimePeriod
- func (*TimePeriod) Descriptor() ([]byte, []int)
- func (m *TimePeriod) GetPeriodDurationNs() time.Duration
- func (m *TimePeriod) GetPeriodStartTime() time.Time
- func (p TimePeriod) GetPeriodUnit() string
- func (m *TimePeriod) Marshal() (dAtA []byte, err error)
- func (m *TimePeriod) MarshalTo(dAtA []byte) (int, error)
- func (m *TimePeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TimePeriod) ProtoMessage()
- func (m *TimePeriod) Reset()
- func (m *TimePeriod) Size() (n int)
- func (m *TimePeriod) String() string
- func (m *TimePeriod) Unmarshal(dAtA []byte) error
- func (p TimePeriod) Validate() error
- func (m *TimePeriod) XXX_DiscardUnknown()
- func (m *TimePeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TimePeriod) XXX_Merge(src proto.Message)
- func (m *TimePeriod) XXX_Size() int
- func (m *TimePeriod) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreatePaymentContract(ctx context.Context, req *MsgCreatePaymentContract) (*MsgCreatePaymentContractResponse, error)
- func (*UnimplementedMsgServer) CreatePaymentTemplate(ctx context.Context, req *MsgCreatePaymentTemplate) (*MsgCreatePaymentTemplateResponse, error)
- func (*UnimplementedMsgServer) CreateSubscription(ctx context.Context, req *MsgCreateSubscription) (*MsgCreateSubscriptionResponse, error)
- func (*UnimplementedMsgServer) EffectPayment(ctx context.Context, req *MsgEffectPayment) (*MsgEffectPaymentResponse, error)
- func (*UnimplementedMsgServer) GrantDiscount(ctx context.Context, req *MsgGrantDiscount) (*MsgGrantDiscountResponse, error)
- func (*UnimplementedMsgServer) RevokeDiscount(ctx context.Context, req *MsgRevokeDiscount) (*MsgRevokeDiscountResponse, error)
- func (*UnimplementedMsgServer) SetPaymentContractAuthorisation(ctx context.Context, req *MsgSetPaymentContractAuthorisation) (*MsgSetPaymentContractAuthorisationResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) PaymentContract(ctx context.Context, req *QueryPaymentContractRequest) (*QueryPaymentContractResponse, error)
- func (*UnimplementedQueryServer) PaymentContractsByIdPrefix(ctx context.Context, req *QueryPaymentContractsByIdPrefixRequest) (*QueryPaymentContractsByIdPrefixResponse, error)
- func (*UnimplementedQueryServer) PaymentTemplate(ctx context.Context, req *QueryPaymentTemplateRequest) (*QueryPaymentTemplateResponse, error)
- func (*UnimplementedQueryServer) Subscription(ctx context.Context, req *QuerySubscriptionRequest) (*QuerySubscriptionResponse, error)
Constants ¶
const ( EventTypePaymentContractAuthorisation = "payment_contract_authorisation" EventTypeCreatePaymentTemplate = "create_payment_template" EventTypeCreatePaymentContract = "create_payment_contract" EventTypeCreateSubscription = "create_subscription" EventTypeGrantDiscount = "grant_discount" EventTypeRevokeDiscount = "revoke_discount" EventTypeEffectPayment = "effect_payment" AttributeKeyPayerDid = "payer_did" AttributeKeyPaymentContractId = "payment_contract-id" AttributeKeyAuthorised = "authorised" AttributeKeyCreatorDid = "creator_did" AttributeKeyPaymentTemplateId = "payment_template_id" AttributeKeyPayer = "payer" AttributeKeyRecipients = "recipients" AttributeKeyDiscountId = "discount_id" AttributeKeySubscriptionId = "attribute_key" AttributeKeyMaxPeriods = "max_periods" AttributeKeyPeriod = "period" AttributeKeySenderDid = "sender_did" AttributeKeyRecipient = "recipient" AttributeKeyHolder = "holder" AttributeKeyAttributeKeyId = "payment_id" AttributeKeyPaymentAmount = "payment_amount" AttributeKeyPaymentMinimum = "payment_minimum" AttributeKeyPaymentMaximum = "payment_maximum" AttributeKeyDiscounts = "discounts" AttributeKeyInputFromPayRemainderPool = "input_from_pay_remainder_pool" AttributeKeyInputFromPayer = "input_from_payer" AttributeKeyOutputToPayRemainderPool = "output_to_pay_remainder_pool" AttributeKeyOutputToPayees = "output_to_payees" AttributeValueCategory = ModuleName )
const ( ModuleName = "payments" DefaultParamspace = ModuleName StoreKey = ModuleName RouterKey = ModuleName QuerierRoute = ModuleName PayRemainderPool = "pay_remainder_pool" PaymentIdPrefix = "payment:" PaymentTemplateIdPrefix = PaymentIdPrefix + "template:" PaymentContractIdPrefix = PaymentIdPrefix + "contract:" SubscriptionIdPrefix = PaymentIdPrefix + "subscription:" )
const ( BlockPeriodUnit = "block" TimePeriodUnit = "time" )
const ( TypeMsgCreatePaymentTemplate = "create-payment-template" TypeMsgCreatePaymentContract = "create-payment-contract" TypeMsgCreateSubscription = "create-subscription" TypeMsgSetPaymentContractAuthorisation = "set-payment-contract-authorisation" TypeMsgGrantDiscount = "grant-discount" TypeMsgRevokeDiscount = "revoke-discount" TypeMsgEffectPayment = "effect-payment" )
const (
DefaultCodespace = ModuleName
)
Variables ¶
var ( ErrDistributionPercentagesNot100 = sdkerrors.Register(DefaultCodespace, 3, "payment distribution percentages should add up to 100") ErrInvalidPeriod = sdkerrors.Register(DefaultCodespace, 4, "period is invalid") ErrDiscountIDsBeSequentialFrom1 = sdkerrors.Register(DefaultCodespace, 6, "discount IDs must be sequential starting with 1") ErrNegativeDiscountPercentage = sdkerrors.Register(DefaultCodespace, 7, "discount percentage must be positive") ErrDiscountPercentageGreaterThan100 = sdkerrors.Register(DefaultCodespace, 8, "discount percentage cannot exceed 100") ErrDiscountIdIsNotInTemplate = sdkerrors.Register(DefaultCodespace, 9, "discount ID specified is not one of the template's discounts") ErrInvalidPaymentTemplate = sdkerrors.Register(DefaultCodespace, 10, "payment template invalid") ErrTriedToEffectSubscriptionPaymentWhenShouldnt = sdkerrors.Register(DefaultCodespace, 11, "tried to effect subscription payment when shouldn't") ErrInvalidId = sdkerrors.Register(DefaultCodespace, 12, "id is invalid") ErrInvalidArgument = sdkerrors.Register(DefaultCodespace, 13, "invalid argument") ErrAlreadyExists = sdkerrors.Register(DefaultCodespace, 14, "already exist") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( PaymentTemplateKeyPrefix = []byte{0x00} PaymentContractKeyPrefix = []byte{0x01} SubscriptionKeyPrefix = []byte{0x02} )
var ( ErrInvalidLengthPayments = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPayments = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPayments = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ValidPaymentTemplateId = regexp.MustCompile(`^payment:template:[a-zA-Z][a-zA-Z0-9/_:-]*$`) ValidPaymentContractId = regexp.MustCompile(`^payment:contract:[a-zA-Z][a-zA-Z0-9/_:-]*$`) ValidSubscriptionId = regexp.MustCompile(`^payment:subscription:[a-zA-Z][a-zA-Z0-9/_:-]*$`) IsValidPaymentTemplateId = ValidPaymentTemplateId.MatchString IsValidPaymentContractId = ValidPaymentContractId.MatchString IsValidSubscriptionId = ValidSubscriptionId.MatchString )
var ( // ModuleCdc references the global x/payments module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/gov and // defined at the application level. ModuleCdc = codec.NewAminoCodec(amino) )
Functions ¶
func GetPaymentContractKey ¶
func GetPaymentTemplateKey ¶
func GetSubscriptionKey ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateGenesis ¶
func ValidateGenesis(data *GenesisState) error
Types ¶
type BlockPeriod ¶
type BlockPeriod struct { PeriodLength int64 `protobuf:"varint,1,opt,name=period_length,json=periodLength,proto3" json:"period_length,omitempty" yaml:"period_length"` PeriodStartBlock int64 `` /* 138-byte string literal not displayed */ }
BlockPeriod implements the Period interface and specifies a period in terms of number of blocks.
func NewBlockPeriod ¶
func NewBlockPeriod(periodLength, periodStartBlock int64) BlockPeriod
func (*BlockPeriod) Descriptor ¶
func (*BlockPeriod) Descriptor() ([]byte, []int)
func (*BlockPeriod) GetPeriodLength ¶
func (m *BlockPeriod) GetPeriodLength() int64
func (*BlockPeriod) GetPeriodStartBlock ¶
func (m *BlockPeriod) GetPeriodStartBlock() int64
func (BlockPeriod) GetPeriodUnit ¶
func (p BlockPeriod) GetPeriodUnit() string
func (*BlockPeriod) Marshal ¶
func (m *BlockPeriod) Marshal() (dAtA []byte, err error)
func (*BlockPeriod) MarshalToSizedBuffer ¶
func (m *BlockPeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockPeriod) ProtoMessage ¶
func (*BlockPeriod) ProtoMessage()
func (*BlockPeriod) Reset ¶
func (m *BlockPeriod) Reset()
func (*BlockPeriod) Size ¶
func (m *BlockPeriod) Size() (n int)
func (*BlockPeriod) String ¶
func (m *BlockPeriod) String() string
func (*BlockPeriod) Unmarshal ¶
func (m *BlockPeriod) Unmarshal(dAtA []byte) error
func (BlockPeriod) Validate ¶
func (p BlockPeriod) Validate() error
func (*BlockPeriod) XXX_DiscardUnknown ¶
func (m *BlockPeriod) XXX_DiscardUnknown()
func (*BlockPeriod) XXX_Marshal ¶
func (m *BlockPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockPeriod) XXX_Merge ¶
func (m *BlockPeriod) XXX_Merge(src proto.Message)
func (*BlockPeriod) XXX_Size ¶
func (m *BlockPeriod) XXX_Size() int
func (*BlockPeriod) XXX_Unmarshal ¶
func (m *BlockPeriod) XXX_Unmarshal(b []byte) error
type Discount ¶
type Discount struct { Id github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,1,opt,name=id,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"id" yaml:"id"` Percent github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=percent,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"percent" yaml:"percent"` }
Discount contains details about a discount which can be granted to payers.
func (*Discount) Descriptor ¶
func (*Discount) MarshalToSizedBuffer ¶
func (*Discount) ProtoMessage ¶
func (*Discount) ProtoMessage()
func (*Discount) XXX_DiscardUnknown ¶
func (m *Discount) XXX_DiscardUnknown()
func (*Discount) XXX_Marshal ¶
func (*Discount) XXX_Unmarshal ¶
type Distribution ¶
type Distribution []DistributionShare
func NewDistribution ¶
func NewDistribution(shares ...DistributionShare) Distribution
func (Distribution) GetDistributionsFor ¶
func (d Distribution) GetDistributionsFor(amount sdk.Coins) []sdk.DecCoins
func (Distribution) Validate ¶
func (d Distribution) Validate() error
type DistributionShare ¶
type DistributionShare struct {}
DistributionShare specifies the share of a specific payment an address will receive.
func NewDistributionShare ¶
func NewDistributionShare(address sdk.AccAddress, percentage sdk.Dec) DistributionShare
func NewFullDistributionShare ¶
func NewFullDistributionShare(address sdk.AccAddress) DistributionShare
func (*DistributionShare) Descriptor ¶
func (*DistributionShare) Descriptor() ([]byte, []int)
func (*DistributionShare) GetAddress ¶
func (m *DistributionShare) GetAddress() string
func (DistributionShare) GetShareOf ¶
func (d DistributionShare) GetShareOf(amount sdk.DecCoins) sdk.DecCoins
func (*DistributionShare) Marshal ¶
func (m *DistributionShare) Marshal() (dAtA []byte, err error)
func (*DistributionShare) MarshalTo ¶
func (m *DistributionShare) MarshalTo(dAtA []byte) (int, error)
func (*DistributionShare) MarshalToSizedBuffer ¶
func (m *DistributionShare) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DistributionShare) ProtoMessage ¶
func (*DistributionShare) ProtoMessage()
func (*DistributionShare) Reset ¶
func (m *DistributionShare) Reset()
func (*DistributionShare) Size ¶
func (m *DistributionShare) Size() (n int)
func (*DistributionShare) String ¶
func (m *DistributionShare) String() string
func (*DistributionShare) Unmarshal ¶
func (m *DistributionShare) Unmarshal(dAtA []byte) error
func (DistributionShare) Validate ¶
func (d DistributionShare) Validate() error
func (*DistributionShare) XXX_DiscardUnknown ¶
func (m *DistributionShare) XXX_DiscardUnknown()
func (*DistributionShare) XXX_Marshal ¶
func (m *DistributionShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DistributionShare) XXX_Merge ¶
func (m *DistributionShare) XXX_Merge(src proto.Message)
func (*DistributionShare) XXX_Size ¶
func (m *DistributionShare) XXX_Size() int
func (*DistributionShare) XXX_Unmarshal ¶
func (m *DistributionShare) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { PaymentTemplates []PaymentTemplate `protobuf:"bytes,1,rep,name=payment_templates,json=paymentTemplates,proto3" json:"payment_templates" yaml:"payment_templates"` PaymentContracts []PaymentContract `protobuf:"bytes,2,rep,name=payment_contracts,json=paymentContracts,proto3" json:"payment_contracts" yaml:"payment_contracts"` Subscriptions []Subscription `protobuf:"bytes,3,rep,name=subscriptions,proto3" json:"subscriptions" yaml:"subscriptions"` }
GenesisState defines the payments module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(templates []PaymentTemplate, contracts []PaymentContract, subscriptions []Subscription) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetPaymentContracts ¶
func (m *GenesisState) GetPaymentContracts() []PaymentContract
func (*GenesisState) GetPaymentTemplates ¶
func (m *GenesisState) GetPaymentTemplates() []PaymentTemplate
func (*GenesisState) GetSubscriptions ¶
func (m *GenesisState) GetSubscriptions() []Subscription
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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) UnpackInterfaces ¶
func (data GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
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 MsgClient ¶
type MsgClient interface { // SetPaymentContractAuthorisation defines a method for authorising or deauthorising a payment contract. SetPaymentContractAuthorisation(ctx context.Context, in *MsgSetPaymentContractAuthorisation, opts ...grpc.CallOption) (*MsgSetPaymentContractAuthorisationResponse, error) // CreatePaymentTemplate defines a method for creating a payment template. CreatePaymentTemplate(ctx context.Context, in *MsgCreatePaymentTemplate, opts ...grpc.CallOption) (*MsgCreatePaymentTemplateResponse, error) // CreatePaymentContract defines a method for creating a payment contract. CreatePaymentContract(ctx context.Context, in *MsgCreatePaymentContract, opts ...grpc.CallOption) (*MsgCreatePaymentContractResponse, error) // CreateSubscription defines a method for creating a subscription. CreateSubscription(ctx context.Context, in *MsgCreateSubscription, opts ...grpc.CallOption) (*MsgCreateSubscriptionResponse, error) // GrantDiscount defines a method for granting a discount to a payer on a specific payment contract. GrantDiscount(ctx context.Context, in *MsgGrantDiscount, opts ...grpc.CallOption) (*MsgGrantDiscountResponse, error) // RevokeDiscount defines a method for revoking a discount previously granted to a payer. RevokeDiscount(ctx context.Context, in *MsgRevokeDiscount, opts ...grpc.CallOption) (*MsgRevokeDiscountResponse, error) // EffectPayment defines a method for putting a specific payment contract into effect. EffectPayment(ctx context.Context, in *MsgEffectPayment, opts ...grpc.CallOption) (*MsgEffectPaymentResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreatePaymentContract ¶
type MsgCreatePaymentContract struct { CreatorDid github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 184-byte string literal not displayed */ PaymentTemplateId string `` /* 141-byte string literal not displayed */ PaymentContractId string `` /* 141-byte string literal not displayed */ Payer string `protobuf:"bytes,4,opt,name=payer,proto3" json:"payer,omitempty" yaml:"payer"` Recipients []DistributionShare `protobuf:"bytes,5,rep,name=recipients,proto3" json:"recipients" yaml:"recipients"` DiscountId github_com_cosmos_cosmos_sdk_types.Uint `` /* 151-byte string literal not displayed */ CreatorAddress string `protobuf:"bytes,8,opt,name=creator_address,json=creatorAddress,proto3" json:"creator_address" yaml:"creator_address"` }
MsgCreatePaymentContract defines a message for creating a payment contract.
func NewMsgCreatePaymentContract ¶
func NewMsgCreatePaymentContract(templateId, contractId string, payer sdk.AccAddress, recipients Distribution, canDeauthorise bool, discountId sdk.Uint, creatorDid iidtypes.DIDFragment, creatorAddress string) *MsgCreatePaymentContract
func (*MsgCreatePaymentContract) Descriptor ¶
func (*MsgCreatePaymentContract) Descriptor() ([]byte, []int)
func (*MsgCreatePaymentContract) GetCanDeauthorise ¶
func (m *MsgCreatePaymentContract) GetCanDeauthorise() bool
func (*MsgCreatePaymentContract) GetCreatorAddress ¶
func (m *MsgCreatePaymentContract) GetCreatorAddress() string
func (*MsgCreatePaymentContract) GetCreatorDid ¶
func (m *MsgCreatePaymentContract) GetCreatorDid() github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment
func (MsgCreatePaymentContract) GetIidController ¶
func (msg MsgCreatePaymentContract) GetIidController() iidtypes.DIDFragment
func (*MsgCreatePaymentContract) GetPayer ¶
func (m *MsgCreatePaymentContract) GetPayer() string
func (*MsgCreatePaymentContract) GetPaymentContractId ¶
func (m *MsgCreatePaymentContract) GetPaymentContractId() string
func (*MsgCreatePaymentContract) GetPaymentTemplateId ¶
func (m *MsgCreatePaymentContract) GetPaymentTemplateId() string
func (*MsgCreatePaymentContract) GetRecipients ¶
func (m *MsgCreatePaymentContract) GetRecipients() []DistributionShare
func (MsgCreatePaymentContract) GetSignBytes ¶
func (msg MsgCreatePaymentContract) GetSignBytes() []byte
func (MsgCreatePaymentContract) GetSigners ¶
func (msg MsgCreatePaymentContract) GetSigners() []sdk.AccAddress
func (msg MsgCreatePaymentContract) GetSignerDid() didexported.Did { return msg.CreatorDid.Did() }
func (*MsgCreatePaymentContract) Marshal ¶
func (m *MsgCreatePaymentContract) Marshal() (dAtA []byte, err error)
func (*MsgCreatePaymentContract) MarshalTo ¶
func (m *MsgCreatePaymentContract) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePaymentContract) MarshalToSizedBuffer ¶
func (m *MsgCreatePaymentContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePaymentContract) ProtoMessage ¶
func (*MsgCreatePaymentContract) ProtoMessage()
func (*MsgCreatePaymentContract) Reset ¶
func (m *MsgCreatePaymentContract) Reset()
func (MsgCreatePaymentContract) Route ¶
func (msg MsgCreatePaymentContract) Route() string
func (*MsgCreatePaymentContract) Size ¶
func (m *MsgCreatePaymentContract) Size() (n int)
func (MsgCreatePaymentContract) String ¶
func (msg MsgCreatePaymentContract) String() string
func (MsgCreatePaymentContract) Type ¶
func (msg MsgCreatePaymentContract) Type() string
func (*MsgCreatePaymentContract) Unmarshal ¶
func (m *MsgCreatePaymentContract) Unmarshal(dAtA []byte) error
func (MsgCreatePaymentContract) ValidateBasic ¶
func (msg MsgCreatePaymentContract) ValidateBasic() error
func (*MsgCreatePaymentContract) XXX_DiscardUnknown ¶
func (m *MsgCreatePaymentContract) XXX_DiscardUnknown()
func (*MsgCreatePaymentContract) XXX_Marshal ¶
func (m *MsgCreatePaymentContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePaymentContract) XXX_Merge ¶
func (m *MsgCreatePaymentContract) XXX_Merge(src proto.Message)
func (*MsgCreatePaymentContract) XXX_Size ¶
func (m *MsgCreatePaymentContract) XXX_Size() int
func (*MsgCreatePaymentContract) XXX_Unmarshal ¶
func (m *MsgCreatePaymentContract) XXX_Unmarshal(b []byte) error
type MsgCreatePaymentContractResponse ¶
type MsgCreatePaymentContractResponse struct { }
MsgCreatePaymentContractResponse defines the Msg/CreatePaymentContract response type.
func (*MsgCreatePaymentContractResponse) Descriptor ¶
func (*MsgCreatePaymentContractResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePaymentContractResponse) Marshal ¶
func (m *MsgCreatePaymentContractResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePaymentContractResponse) MarshalTo ¶
func (m *MsgCreatePaymentContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePaymentContractResponse) MarshalToSizedBuffer ¶
func (m *MsgCreatePaymentContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePaymentContractResponse) ProtoMessage ¶
func (*MsgCreatePaymentContractResponse) ProtoMessage()
func (*MsgCreatePaymentContractResponse) Reset ¶
func (m *MsgCreatePaymentContractResponse) Reset()
func (*MsgCreatePaymentContractResponse) Size ¶
func (m *MsgCreatePaymentContractResponse) Size() (n int)
func (*MsgCreatePaymentContractResponse) String ¶
func (m *MsgCreatePaymentContractResponse) String() string
func (*MsgCreatePaymentContractResponse) Unmarshal ¶
func (m *MsgCreatePaymentContractResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePaymentContractResponse) XXX_DiscardUnknown ¶
func (m *MsgCreatePaymentContractResponse) XXX_DiscardUnknown()
func (*MsgCreatePaymentContractResponse) XXX_Marshal ¶
func (m *MsgCreatePaymentContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePaymentContractResponse) XXX_Merge ¶
func (m *MsgCreatePaymentContractResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePaymentContractResponse) XXX_Size ¶
func (m *MsgCreatePaymentContractResponse) XXX_Size() int
func (*MsgCreatePaymentContractResponse) XXX_Unmarshal ¶
func (m *MsgCreatePaymentContractResponse) XXX_Unmarshal(b []byte) error
type MsgCreatePaymentTemplate ¶
type MsgCreatePaymentTemplate struct { CreatorDid github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 184-byte string literal not displayed */ PaymentTemplate PaymentTemplate `protobuf:"bytes,2,opt,name=payment_template,json=paymentTemplate,proto3" json:"payment_template" yaml:"payment_template"` CreatorAddress string `protobuf:"bytes,3,opt,name=creator_address,json=creatorAddress,proto3" json:"creator_address" yaml:"creator_address"` }
MsgCreatePaymentTemplate defines a message for creating a payment template.
func NewMsgCreatePaymentTemplate ¶
func NewMsgCreatePaymentTemplate(template PaymentTemplate, creatorDid iidtypes.DIDFragment, creatorAddress string) *MsgCreatePaymentTemplate
func (*MsgCreatePaymentTemplate) Descriptor ¶
func (*MsgCreatePaymentTemplate) Descriptor() ([]byte, []int)
func (*MsgCreatePaymentTemplate) GetCreatorAddress ¶
func (m *MsgCreatePaymentTemplate) GetCreatorAddress() string
func (*MsgCreatePaymentTemplate) GetCreatorDid ¶
func (m *MsgCreatePaymentTemplate) GetCreatorDid() github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment
func (MsgCreatePaymentTemplate) GetIidController ¶
func (msg MsgCreatePaymentTemplate) GetIidController() iidtypes.DIDFragment
func (*MsgCreatePaymentTemplate) GetPaymentTemplate ¶
func (m *MsgCreatePaymentTemplate) GetPaymentTemplate() PaymentTemplate
func (MsgCreatePaymentTemplate) GetSignBytes ¶
func (msg MsgCreatePaymentTemplate) GetSignBytes() []byte
func (MsgCreatePaymentTemplate) GetSigners ¶
func (msg MsgCreatePaymentTemplate) GetSigners() []sdk.AccAddress
func (msg MsgCreatePaymentTemplate) GetSignerDid() didexported.Did { return msg.CreatorDid }
func (*MsgCreatePaymentTemplate) Marshal ¶
func (m *MsgCreatePaymentTemplate) Marshal() (dAtA []byte, err error)
func (*MsgCreatePaymentTemplate) MarshalTo ¶
func (m *MsgCreatePaymentTemplate) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePaymentTemplate) MarshalToSizedBuffer ¶
func (m *MsgCreatePaymentTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePaymentTemplate) ProtoMessage ¶
func (*MsgCreatePaymentTemplate) ProtoMessage()
func (*MsgCreatePaymentTemplate) Reset ¶
func (m *MsgCreatePaymentTemplate) Reset()
func (MsgCreatePaymentTemplate) Route ¶
func (msg MsgCreatePaymentTemplate) Route() string
func (*MsgCreatePaymentTemplate) Size ¶
func (m *MsgCreatePaymentTemplate) Size() (n int)
func (MsgCreatePaymentTemplate) String ¶
func (msg MsgCreatePaymentTemplate) String() string
func (MsgCreatePaymentTemplate) Type ¶
func (msg MsgCreatePaymentTemplate) Type() string
func (*MsgCreatePaymentTemplate) Unmarshal ¶
func (m *MsgCreatePaymentTemplate) Unmarshal(dAtA []byte) error
func (MsgCreatePaymentTemplate) ValidateBasic ¶
func (msg MsgCreatePaymentTemplate) ValidateBasic() error
func (*MsgCreatePaymentTemplate) XXX_DiscardUnknown ¶
func (m *MsgCreatePaymentTemplate) XXX_DiscardUnknown()
func (*MsgCreatePaymentTemplate) XXX_Marshal ¶
func (m *MsgCreatePaymentTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePaymentTemplate) XXX_Merge ¶
func (m *MsgCreatePaymentTemplate) XXX_Merge(src proto.Message)
func (*MsgCreatePaymentTemplate) XXX_Size ¶
func (m *MsgCreatePaymentTemplate) XXX_Size() int
func (*MsgCreatePaymentTemplate) XXX_Unmarshal ¶
func (m *MsgCreatePaymentTemplate) XXX_Unmarshal(b []byte) error
type MsgCreatePaymentTemplateResponse ¶
type MsgCreatePaymentTemplateResponse struct { }
MsgCreatePaymentTemplateResponse defines the Msg/CreatePaymentTemplate response type.
func (*MsgCreatePaymentTemplateResponse) Descriptor ¶
func (*MsgCreatePaymentTemplateResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePaymentTemplateResponse) Marshal ¶
func (m *MsgCreatePaymentTemplateResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePaymentTemplateResponse) MarshalTo ¶
func (m *MsgCreatePaymentTemplateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePaymentTemplateResponse) MarshalToSizedBuffer ¶
func (m *MsgCreatePaymentTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePaymentTemplateResponse) ProtoMessage ¶
func (*MsgCreatePaymentTemplateResponse) ProtoMessage()
func (*MsgCreatePaymentTemplateResponse) Reset ¶
func (m *MsgCreatePaymentTemplateResponse) Reset()
func (*MsgCreatePaymentTemplateResponse) Size ¶
func (m *MsgCreatePaymentTemplateResponse) Size() (n int)
func (*MsgCreatePaymentTemplateResponse) String ¶
func (m *MsgCreatePaymentTemplateResponse) String() string
func (*MsgCreatePaymentTemplateResponse) Unmarshal ¶
func (m *MsgCreatePaymentTemplateResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePaymentTemplateResponse) XXX_DiscardUnknown ¶
func (m *MsgCreatePaymentTemplateResponse) XXX_DiscardUnknown()
func (*MsgCreatePaymentTemplateResponse) XXX_Marshal ¶
func (m *MsgCreatePaymentTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePaymentTemplateResponse) XXX_Merge ¶
func (m *MsgCreatePaymentTemplateResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePaymentTemplateResponse) XXX_Size ¶
func (m *MsgCreatePaymentTemplateResponse) XXX_Size() int
func (*MsgCreatePaymentTemplateResponse) XXX_Unmarshal ¶
func (m *MsgCreatePaymentTemplateResponse) XXX_Unmarshal(b []byte) error
type MsgCreateSubscription ¶
type MsgCreateSubscription struct { CreatorDid github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 184-byte string literal not displayed */ SubscriptionId string `` /* 126-byte string literal not displayed */ PaymentContractId string `` /* 141-byte string literal not displayed */ MaxPeriods github_com_cosmos_cosmos_sdk_types.Uint `` /* 151-byte string literal not displayed */ Period *types.Any `protobuf:"bytes,5,opt,name=period,proto3" json:"period,omitempty" yaml:"period"` CreatorAddress string `protobuf:"bytes,6,opt,name=creator_address,json=creatorAddress,proto3" json:"creator_address" yaml:"creator_address"` }
MsgCreateSubscription defines a message for creating a subscription.
func NewMsgCreateSubscription ¶
func NewMsgCreateSubscription(subscriptionId, contractId string, maxPeriods sdk.Uint, period Period, creatorDid iidtypes.DIDFragment, creatorAddress string) *MsgCreateSubscription
func (*MsgCreateSubscription) Descriptor ¶
func (*MsgCreateSubscription) Descriptor() ([]byte, []int)
func (MsgCreateSubscription) GetIidController ¶
func (msg MsgCreateSubscription) GetIidController() iidtypes.DIDFragment
func (*MsgCreateSubscription) GetPeriod ¶
func (msg *MsgCreateSubscription) GetPeriod() Period
func (MsgCreateSubscription) GetSignBytes ¶
func (msg MsgCreateSubscription) GetSignBytes() []byte
func (MsgCreateSubscription) GetSigners ¶
func (msg MsgCreateSubscription) GetSigners() []sdk.AccAddress
func (msg MsgCreateSubscription) GetSignerDid() didexported.Did { return msg.CreatorDid }
func (*MsgCreateSubscription) Marshal ¶
func (m *MsgCreateSubscription) Marshal() (dAtA []byte, err error)
func (*MsgCreateSubscription) MarshalTo ¶
func (m *MsgCreateSubscription) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateSubscription) MarshalToSizedBuffer ¶
func (m *MsgCreateSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateSubscription) ProtoMessage ¶
func (*MsgCreateSubscription) ProtoMessage()
func (*MsgCreateSubscription) Reset ¶
func (m *MsgCreateSubscription) Reset()
func (MsgCreateSubscription) Route ¶
func (msg MsgCreateSubscription) Route() string
func (*MsgCreateSubscription) SetPeriod ¶
func (msg *MsgCreateSubscription) SetPeriod(period Period) error
func (*MsgCreateSubscription) Size ¶
func (m *MsgCreateSubscription) Size() (n int)
func (MsgCreateSubscription) String ¶
func (msg MsgCreateSubscription) String() string
func (MsgCreateSubscription) Type ¶
func (msg MsgCreateSubscription) Type() string
func (*MsgCreateSubscription) Unmarshal ¶
func (m *MsgCreateSubscription) Unmarshal(dAtA []byte) error
func (MsgCreateSubscription) UnpackInterfaces ¶
func (m MsgCreateSubscription) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (MsgCreateSubscription) ValidateBasic ¶
func (msg MsgCreateSubscription) ValidateBasic() error
func (*MsgCreateSubscription) XXX_DiscardUnknown ¶
func (m *MsgCreateSubscription) XXX_DiscardUnknown()
func (*MsgCreateSubscription) XXX_Marshal ¶
func (m *MsgCreateSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateSubscription) XXX_Merge ¶
func (m *MsgCreateSubscription) XXX_Merge(src proto.Message)
func (*MsgCreateSubscription) XXX_Size ¶
func (m *MsgCreateSubscription) XXX_Size() int
func (*MsgCreateSubscription) XXX_Unmarshal ¶
func (m *MsgCreateSubscription) XXX_Unmarshal(b []byte) error
type MsgCreateSubscriptionResponse ¶
type MsgCreateSubscriptionResponse struct { }
MsgCreateSubscriptionResponse defines the Msg/CreateSubscription response type.
func (*MsgCreateSubscriptionResponse) Descriptor ¶
func (*MsgCreateSubscriptionResponse) Descriptor() ([]byte, []int)
func (*MsgCreateSubscriptionResponse) Marshal ¶
func (m *MsgCreateSubscriptionResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateSubscriptionResponse) MarshalTo ¶
func (m *MsgCreateSubscriptionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateSubscriptionResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateSubscriptionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateSubscriptionResponse) ProtoMessage ¶
func (*MsgCreateSubscriptionResponse) ProtoMessage()
func (*MsgCreateSubscriptionResponse) Reset ¶
func (m *MsgCreateSubscriptionResponse) Reset()
func (*MsgCreateSubscriptionResponse) Size ¶
func (m *MsgCreateSubscriptionResponse) Size() (n int)
func (*MsgCreateSubscriptionResponse) String ¶
func (m *MsgCreateSubscriptionResponse) String() string
func (*MsgCreateSubscriptionResponse) Unmarshal ¶
func (m *MsgCreateSubscriptionResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateSubscriptionResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateSubscriptionResponse) XXX_DiscardUnknown()
func (*MsgCreateSubscriptionResponse) XXX_Marshal ¶
func (m *MsgCreateSubscriptionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateSubscriptionResponse) XXX_Merge ¶
func (m *MsgCreateSubscriptionResponse) XXX_Merge(src proto.Message)
func (*MsgCreateSubscriptionResponse) XXX_Size ¶
func (m *MsgCreateSubscriptionResponse) XXX_Size() int
func (*MsgCreateSubscriptionResponse) XXX_Unmarshal ¶
func (m *MsgCreateSubscriptionResponse) XXX_Unmarshal(b []byte) error
type MsgEffectPayment ¶
type MsgEffectPayment struct { SenderDid github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 180-byte string literal not displayed */ PaymentContractId string `` /* 141-byte string literal not displayed */ PartialPaymentAmount github_com_cosmos_cosmos_sdk_types.Coins `` /* 197-byte string literal not displayed */ SenderAddress string `protobuf:"bytes,4,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address" yaml:"sender_address"` }
MsgEffectPayment defines a message for putting a specific payment contract into effect.
func NewMsgEffectPayment ¶
func NewMsgEffectPayment(contractId string, creatorDid iidtypes.DIDFragment, senderAddress string) *MsgEffectPayment
func (*MsgEffectPayment) Descriptor ¶
func (*MsgEffectPayment) Descriptor() ([]byte, []int)
func (MsgEffectPayment) GetIidController ¶
func (msg MsgEffectPayment) GetIidController() iidtypes.DIDFragment
func (*MsgEffectPayment) GetPartialPaymentAmount ¶
func (m *MsgEffectPayment) GetPartialPaymentAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgEffectPayment) GetPaymentContractId ¶
func (m *MsgEffectPayment) GetPaymentContractId() string
func (*MsgEffectPayment) GetSenderAddress ¶
func (m *MsgEffectPayment) GetSenderAddress() string
func (*MsgEffectPayment) GetSenderDid ¶
func (m *MsgEffectPayment) GetSenderDid() github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment
func (MsgEffectPayment) GetSignBytes ¶
func (msg MsgEffectPayment) GetSignBytes() []byte
func (MsgEffectPayment) GetSigners ¶
func (msg MsgEffectPayment) GetSigners() []sdk.AccAddress
func (msg MsgEffectPayment) GetSignerDid() didexported.Did { return msg.SenderDid }
func (*MsgEffectPayment) Marshal ¶
func (m *MsgEffectPayment) Marshal() (dAtA []byte, err error)
func (*MsgEffectPayment) MarshalToSizedBuffer ¶
func (m *MsgEffectPayment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEffectPayment) ProtoMessage ¶
func (*MsgEffectPayment) ProtoMessage()
func (*MsgEffectPayment) Reset ¶
func (m *MsgEffectPayment) Reset()
func (MsgEffectPayment) Route ¶
func (msg MsgEffectPayment) Route() string
func (*MsgEffectPayment) Size ¶
func (m *MsgEffectPayment) Size() (n int)
func (MsgEffectPayment) String ¶
func (msg MsgEffectPayment) String() string
func (MsgEffectPayment) Type ¶
func (msg MsgEffectPayment) Type() string
func (*MsgEffectPayment) Unmarshal ¶
func (m *MsgEffectPayment) Unmarshal(dAtA []byte) error
func (MsgEffectPayment) ValidateBasic ¶
func (msg MsgEffectPayment) ValidateBasic() error
func (*MsgEffectPayment) XXX_DiscardUnknown ¶
func (m *MsgEffectPayment) XXX_DiscardUnknown()
func (*MsgEffectPayment) XXX_Marshal ¶
func (m *MsgEffectPayment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEffectPayment) XXX_Merge ¶
func (m *MsgEffectPayment) XXX_Merge(src proto.Message)
func (*MsgEffectPayment) XXX_Size ¶
func (m *MsgEffectPayment) XXX_Size() int
func (*MsgEffectPayment) XXX_Unmarshal ¶
func (m *MsgEffectPayment) XXX_Unmarshal(b []byte) error
type MsgEffectPaymentResponse ¶
type MsgEffectPaymentResponse struct { }
MsgEffectPaymentResponse defines the Msg/EffectPayment response type.
func (*MsgEffectPaymentResponse) Descriptor ¶
func (*MsgEffectPaymentResponse) Descriptor() ([]byte, []int)
func (*MsgEffectPaymentResponse) Marshal ¶
func (m *MsgEffectPaymentResponse) Marshal() (dAtA []byte, err error)
func (*MsgEffectPaymentResponse) MarshalTo ¶
func (m *MsgEffectPaymentResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgEffectPaymentResponse) MarshalToSizedBuffer ¶
func (m *MsgEffectPaymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEffectPaymentResponse) ProtoMessage ¶
func (*MsgEffectPaymentResponse) ProtoMessage()
func (*MsgEffectPaymentResponse) Reset ¶
func (m *MsgEffectPaymentResponse) Reset()
func (*MsgEffectPaymentResponse) Size ¶
func (m *MsgEffectPaymentResponse) Size() (n int)
func (*MsgEffectPaymentResponse) String ¶
func (m *MsgEffectPaymentResponse) String() string
func (*MsgEffectPaymentResponse) Unmarshal ¶
func (m *MsgEffectPaymentResponse) Unmarshal(dAtA []byte) error
func (*MsgEffectPaymentResponse) XXX_DiscardUnknown ¶
func (m *MsgEffectPaymentResponse) XXX_DiscardUnknown()
func (*MsgEffectPaymentResponse) XXX_Marshal ¶
func (m *MsgEffectPaymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEffectPaymentResponse) XXX_Merge ¶
func (m *MsgEffectPaymentResponse) XXX_Merge(src proto.Message)
func (*MsgEffectPaymentResponse) XXX_Size ¶
func (m *MsgEffectPaymentResponse) XXX_Size() int
func (*MsgEffectPaymentResponse) XXX_Unmarshal ¶
func (m *MsgEffectPaymentResponse) XXX_Unmarshal(b []byte) error
type MsgGrantDiscount ¶
type MsgGrantDiscount struct { SenderDid github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 180-byte string literal not displayed */ PaymentContractId string `` /* 141-byte string literal not displayed */ DiscountId github_com_cosmos_cosmos_sdk_types.Uint `` /* 151-byte string literal not displayed */ Recipient string `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty" yaml:"recipient"` SenderAddress string `protobuf:"bytes,5,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address" yaml:"sender_address"` }
MsgGrantDiscount defines a message for granting a discount to a payer on a specific payment contract.
func NewMsgGrantDiscount ¶
func NewMsgGrantDiscount(contractId string, discountId sdk.Uint, recipient sdk.AccAddress, creatorDid iidtypes.DIDFragment, senderAddress string) *MsgGrantDiscount
func (*MsgGrantDiscount) Descriptor ¶
func (*MsgGrantDiscount) Descriptor() ([]byte, []int)
func (MsgGrantDiscount) GetIidController ¶
func (msg MsgGrantDiscount) GetIidController() iidtypes.DIDFragment
func (*MsgGrantDiscount) GetPaymentContractId ¶
func (m *MsgGrantDiscount) GetPaymentContractId() string
func (*MsgGrantDiscount) GetRecipient ¶
func (m *MsgGrantDiscount) GetRecipient() string
func (*MsgGrantDiscount) GetSenderAddress ¶
func (m *MsgGrantDiscount) GetSenderAddress() string
func (*MsgGrantDiscount) GetSenderDid ¶
func (m *MsgGrantDiscount) GetSenderDid() github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment
func (MsgGrantDiscount) GetSignBytes ¶
func (msg MsgGrantDiscount) GetSignBytes() []byte
func (MsgGrantDiscount) GetSigners ¶
func (msg MsgGrantDiscount) GetSigners() []sdk.AccAddress
func (msg MsgGrantDiscount) GetSignerDid() didexported.Did { return msg.SenderDid }
func (*MsgGrantDiscount) Marshal ¶
func (m *MsgGrantDiscount) Marshal() (dAtA []byte, err error)
func (*MsgGrantDiscount) MarshalToSizedBuffer ¶
func (m *MsgGrantDiscount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGrantDiscount) ProtoMessage ¶
func (*MsgGrantDiscount) ProtoMessage()
func (*MsgGrantDiscount) Reset ¶
func (m *MsgGrantDiscount) Reset()
func (MsgGrantDiscount) Route ¶
func (msg MsgGrantDiscount) Route() string
func (*MsgGrantDiscount) Size ¶
func (m *MsgGrantDiscount) Size() (n int)
func (MsgGrantDiscount) String ¶
func (msg MsgGrantDiscount) String() string
func (MsgGrantDiscount) Type ¶
func (msg MsgGrantDiscount) Type() string
func (*MsgGrantDiscount) Unmarshal ¶
func (m *MsgGrantDiscount) Unmarshal(dAtA []byte) error
func (MsgGrantDiscount) ValidateBasic ¶
func (msg MsgGrantDiscount) ValidateBasic() error
func (*MsgGrantDiscount) XXX_DiscardUnknown ¶
func (m *MsgGrantDiscount) XXX_DiscardUnknown()
func (*MsgGrantDiscount) XXX_Marshal ¶
func (m *MsgGrantDiscount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGrantDiscount) XXX_Merge ¶
func (m *MsgGrantDiscount) XXX_Merge(src proto.Message)
func (*MsgGrantDiscount) XXX_Size ¶
func (m *MsgGrantDiscount) XXX_Size() int
func (*MsgGrantDiscount) XXX_Unmarshal ¶
func (m *MsgGrantDiscount) XXX_Unmarshal(b []byte) error
type MsgGrantDiscountResponse ¶
type MsgGrantDiscountResponse struct { }
MsgGrantDiscountResponse defines the Msg/GrantDiscount response type.
func (*MsgGrantDiscountResponse) Descriptor ¶
func (*MsgGrantDiscountResponse) Descriptor() ([]byte, []int)
func (*MsgGrantDiscountResponse) Marshal ¶
func (m *MsgGrantDiscountResponse) Marshal() (dAtA []byte, err error)
func (*MsgGrantDiscountResponse) MarshalTo ¶
func (m *MsgGrantDiscountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgGrantDiscountResponse) MarshalToSizedBuffer ¶
func (m *MsgGrantDiscountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGrantDiscountResponse) ProtoMessage ¶
func (*MsgGrantDiscountResponse) ProtoMessage()
func (*MsgGrantDiscountResponse) Reset ¶
func (m *MsgGrantDiscountResponse) Reset()
func (*MsgGrantDiscountResponse) Size ¶
func (m *MsgGrantDiscountResponse) Size() (n int)
func (*MsgGrantDiscountResponse) String ¶
func (m *MsgGrantDiscountResponse) String() string
func (*MsgGrantDiscountResponse) Unmarshal ¶
func (m *MsgGrantDiscountResponse) Unmarshal(dAtA []byte) error
func (*MsgGrantDiscountResponse) XXX_DiscardUnknown ¶
func (m *MsgGrantDiscountResponse) XXX_DiscardUnknown()
func (*MsgGrantDiscountResponse) XXX_Marshal ¶
func (m *MsgGrantDiscountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGrantDiscountResponse) XXX_Merge ¶
func (m *MsgGrantDiscountResponse) XXX_Merge(src proto.Message)
func (*MsgGrantDiscountResponse) XXX_Size ¶
func (m *MsgGrantDiscountResponse) XXX_Size() int
func (*MsgGrantDiscountResponse) XXX_Unmarshal ¶
func (m *MsgGrantDiscountResponse) XXX_Unmarshal(b []byte) error
type MsgRevokeDiscount ¶
type MsgRevokeDiscount struct { SenderDid github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 180-byte string literal not displayed */ PaymentContractId string `` /* 141-byte string literal not displayed */ Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty" yaml:"holder"` SenderAddress string `protobuf:"bytes,4,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address" yaml:"sender_address"` }
MsgRevokeDiscount defines a message for revoking a discount previously granted to a payer.
func NewMsgRevokeDiscount ¶
func NewMsgRevokeDiscount(contractId string, holder sdk.AccAddress, creatorDid iidtypes.DIDFragment, senderAddress string) *MsgRevokeDiscount
func (*MsgRevokeDiscount) Descriptor ¶
func (*MsgRevokeDiscount) Descriptor() ([]byte, []int)
func (*MsgRevokeDiscount) GetHolder ¶
func (m *MsgRevokeDiscount) GetHolder() string
func (MsgRevokeDiscount) GetIidController ¶
func (msg MsgRevokeDiscount) GetIidController() iidtypes.DIDFragment
func (*MsgRevokeDiscount) GetPaymentContractId ¶
func (m *MsgRevokeDiscount) GetPaymentContractId() string
func (*MsgRevokeDiscount) GetSenderAddress ¶
func (m *MsgRevokeDiscount) GetSenderAddress() string
func (*MsgRevokeDiscount) GetSenderDid ¶
func (m *MsgRevokeDiscount) GetSenderDid() github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment
func (MsgRevokeDiscount) GetSignBytes ¶
func (msg MsgRevokeDiscount) GetSignBytes() []byte
func (MsgRevokeDiscount) GetSigners ¶
func (msg MsgRevokeDiscount) GetSigners() []sdk.AccAddress
func (msg MsgRevokeDiscount) GetSignerDid() didexported.Did { return msg.SenderDid }
func (*MsgRevokeDiscount) Marshal ¶
func (m *MsgRevokeDiscount) Marshal() (dAtA []byte, err error)
func (*MsgRevokeDiscount) MarshalTo ¶
func (m *MsgRevokeDiscount) MarshalTo(dAtA []byte) (int, error)
func (*MsgRevokeDiscount) MarshalToSizedBuffer ¶
func (m *MsgRevokeDiscount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRevokeDiscount) ProtoMessage ¶
func (*MsgRevokeDiscount) ProtoMessage()
func (*MsgRevokeDiscount) Reset ¶
func (m *MsgRevokeDiscount) Reset()
func (MsgRevokeDiscount) Route ¶
func (msg MsgRevokeDiscount) Route() string
func (*MsgRevokeDiscount) Size ¶
func (m *MsgRevokeDiscount) Size() (n int)
func (MsgRevokeDiscount) String ¶
func (msg MsgRevokeDiscount) String() string
func (MsgRevokeDiscount) Type ¶
func (msg MsgRevokeDiscount) Type() string
func (*MsgRevokeDiscount) Unmarshal ¶
func (m *MsgRevokeDiscount) Unmarshal(dAtA []byte) error
func (MsgRevokeDiscount) ValidateBasic ¶
func (msg MsgRevokeDiscount) ValidateBasic() error
func (*MsgRevokeDiscount) XXX_DiscardUnknown ¶
func (m *MsgRevokeDiscount) XXX_DiscardUnknown()
func (*MsgRevokeDiscount) XXX_Marshal ¶
func (m *MsgRevokeDiscount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRevokeDiscount) XXX_Merge ¶
func (m *MsgRevokeDiscount) XXX_Merge(src proto.Message)
func (*MsgRevokeDiscount) XXX_Size ¶
func (m *MsgRevokeDiscount) XXX_Size() int
func (*MsgRevokeDiscount) XXX_Unmarshal ¶
func (m *MsgRevokeDiscount) XXX_Unmarshal(b []byte) error
type MsgRevokeDiscountResponse ¶
type MsgRevokeDiscountResponse struct { }
MsgRevokeDiscountResponse defines the Msg/RevokeDiscount response type.
func (*MsgRevokeDiscountResponse) Descriptor ¶
func (*MsgRevokeDiscountResponse) Descriptor() ([]byte, []int)
func (*MsgRevokeDiscountResponse) Marshal ¶
func (m *MsgRevokeDiscountResponse) Marshal() (dAtA []byte, err error)
func (*MsgRevokeDiscountResponse) MarshalTo ¶
func (m *MsgRevokeDiscountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRevokeDiscountResponse) MarshalToSizedBuffer ¶
func (m *MsgRevokeDiscountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRevokeDiscountResponse) ProtoMessage ¶
func (*MsgRevokeDiscountResponse) ProtoMessage()
func (*MsgRevokeDiscountResponse) Reset ¶
func (m *MsgRevokeDiscountResponse) Reset()
func (*MsgRevokeDiscountResponse) Size ¶
func (m *MsgRevokeDiscountResponse) Size() (n int)
func (*MsgRevokeDiscountResponse) String ¶
func (m *MsgRevokeDiscountResponse) String() string
func (*MsgRevokeDiscountResponse) Unmarshal ¶
func (m *MsgRevokeDiscountResponse) Unmarshal(dAtA []byte) error
func (*MsgRevokeDiscountResponse) XXX_DiscardUnknown ¶
func (m *MsgRevokeDiscountResponse) XXX_DiscardUnknown()
func (*MsgRevokeDiscountResponse) XXX_Marshal ¶
func (m *MsgRevokeDiscountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRevokeDiscountResponse) XXX_Merge ¶
func (m *MsgRevokeDiscountResponse) XXX_Merge(src proto.Message)
func (*MsgRevokeDiscountResponse) XXX_Size ¶
func (m *MsgRevokeDiscountResponse) XXX_Size() int
func (*MsgRevokeDiscountResponse) XXX_Unmarshal ¶
func (m *MsgRevokeDiscountResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // SetPaymentContractAuthorisation defines a method for authorising or deauthorising a payment contract. SetPaymentContractAuthorisation(context.Context, *MsgSetPaymentContractAuthorisation) (*MsgSetPaymentContractAuthorisationResponse, error) // CreatePaymentTemplate defines a method for creating a payment template. CreatePaymentTemplate(context.Context, *MsgCreatePaymentTemplate) (*MsgCreatePaymentTemplateResponse, error) // CreatePaymentContract defines a method for creating a payment contract. CreatePaymentContract(context.Context, *MsgCreatePaymentContract) (*MsgCreatePaymentContractResponse, error) // CreateSubscription defines a method for creating a subscription. CreateSubscription(context.Context, *MsgCreateSubscription) (*MsgCreateSubscriptionResponse, error) // GrantDiscount defines a method for granting a discount to a payer on a specific payment contract. GrantDiscount(context.Context, *MsgGrantDiscount) (*MsgGrantDiscountResponse, error) // RevokeDiscount defines a method for revoking a discount previously granted to a payer. RevokeDiscount(context.Context, *MsgRevokeDiscount) (*MsgRevokeDiscountResponse, error) // EffectPayment defines a method for putting a specific payment contract into effect. EffectPayment(context.Context, *MsgEffectPayment) (*MsgEffectPaymentResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetPaymentContractAuthorisation ¶
type MsgSetPaymentContractAuthorisation struct { PaymentContractId string `` /* 141-byte string literal not displayed */ PayerDid github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 176-byte string literal not displayed */ Authorised bool `protobuf:"varint,3,opt,name=authorised,proto3" json:"authorised,omitempty" yaml:"authorised"` PayerAddress string `protobuf:"bytes,4,opt,name=payer_address,json=payerAddress,proto3" json:"payer_address" yaml:"payer_address"` }
MsgSetPaymentContractAuthorisation defines a message for authorising or deauthorising a payment contract.
func NewMsgSetPaymentContractAuthorisation ¶
func NewMsgSetPaymentContractAuthorisation(contractId string, authorised bool, payerDid iidtypes.DIDFragment, payersAddress string) *MsgSetPaymentContractAuthorisation
func (*MsgSetPaymentContractAuthorisation) Descriptor ¶
func (*MsgSetPaymentContractAuthorisation) Descriptor() ([]byte, []int)
func (*MsgSetPaymentContractAuthorisation) GetAuthorised ¶
func (m *MsgSetPaymentContractAuthorisation) GetAuthorised() bool
func (MsgSetPaymentContractAuthorisation) GetIidController ¶
func (msg MsgSetPaymentContractAuthorisation) GetIidController() iidtypes.DIDFragment
func (*MsgSetPaymentContractAuthorisation) GetPayerAddress ¶
func (m *MsgSetPaymentContractAuthorisation) GetPayerAddress() string
func (*MsgSetPaymentContractAuthorisation) GetPayerDid ¶
func (m *MsgSetPaymentContractAuthorisation) GetPayerDid() github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment
func (*MsgSetPaymentContractAuthorisation) GetPaymentContractId ¶
func (m *MsgSetPaymentContractAuthorisation) GetPaymentContractId() string
func (MsgSetPaymentContractAuthorisation) GetSignBytes ¶
func (msg MsgSetPaymentContractAuthorisation) GetSignBytes() []byte
func (MsgSetPaymentContractAuthorisation) GetSigners ¶
func (msg MsgSetPaymentContractAuthorisation) GetSigners() []sdk.AccAddress
func (msg MsgSetPaymentContractAuthorisation) GetSignerDid() didexported.Did { return msg.PayerDid }
func (*MsgSetPaymentContractAuthorisation) Marshal ¶
func (m *MsgSetPaymentContractAuthorisation) Marshal() (dAtA []byte, err error)
func (*MsgSetPaymentContractAuthorisation) MarshalTo ¶
func (m *MsgSetPaymentContractAuthorisation) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetPaymentContractAuthorisation) MarshalToSizedBuffer ¶
func (m *MsgSetPaymentContractAuthorisation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetPaymentContractAuthorisation) ProtoMessage ¶
func (*MsgSetPaymentContractAuthorisation) ProtoMessage()
func (*MsgSetPaymentContractAuthorisation) Reset ¶
func (m *MsgSetPaymentContractAuthorisation) Reset()
func (MsgSetPaymentContractAuthorisation) Route ¶
func (msg MsgSetPaymentContractAuthorisation) Route() string
func (*MsgSetPaymentContractAuthorisation) Size ¶
func (m *MsgSetPaymentContractAuthorisation) Size() (n int)
func (MsgSetPaymentContractAuthorisation) String ¶
func (msg MsgSetPaymentContractAuthorisation) String() string
func (MsgSetPaymentContractAuthorisation) Type ¶
func (msg MsgSetPaymentContractAuthorisation) Type() string
func (*MsgSetPaymentContractAuthorisation) Unmarshal ¶
func (m *MsgSetPaymentContractAuthorisation) Unmarshal(dAtA []byte) error
func (MsgSetPaymentContractAuthorisation) ValidateBasic ¶
func (msg MsgSetPaymentContractAuthorisation) ValidateBasic() error
func (*MsgSetPaymentContractAuthorisation) XXX_DiscardUnknown ¶
func (m *MsgSetPaymentContractAuthorisation) XXX_DiscardUnknown()
func (*MsgSetPaymentContractAuthorisation) XXX_Marshal ¶
func (m *MsgSetPaymentContractAuthorisation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetPaymentContractAuthorisation) XXX_Merge ¶
func (m *MsgSetPaymentContractAuthorisation) XXX_Merge(src proto.Message)
func (*MsgSetPaymentContractAuthorisation) XXX_Size ¶
func (m *MsgSetPaymentContractAuthorisation) XXX_Size() int
func (*MsgSetPaymentContractAuthorisation) XXX_Unmarshal ¶
func (m *MsgSetPaymentContractAuthorisation) XXX_Unmarshal(b []byte) error
type MsgSetPaymentContractAuthorisationResponse ¶
type MsgSetPaymentContractAuthorisationResponse struct { }
MsgSetPaymentContractAuthorisationResponse defines the Msg/SetPaymentContractAuthorisation response type.
func (*MsgSetPaymentContractAuthorisationResponse) Descriptor ¶
func (*MsgSetPaymentContractAuthorisationResponse) Descriptor() ([]byte, []int)
func (*MsgSetPaymentContractAuthorisationResponse) Marshal ¶
func (m *MsgSetPaymentContractAuthorisationResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetPaymentContractAuthorisationResponse) MarshalTo ¶
func (m *MsgSetPaymentContractAuthorisationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetPaymentContractAuthorisationResponse) MarshalToSizedBuffer ¶
func (m *MsgSetPaymentContractAuthorisationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetPaymentContractAuthorisationResponse) ProtoMessage ¶
func (*MsgSetPaymentContractAuthorisationResponse) ProtoMessage()
func (*MsgSetPaymentContractAuthorisationResponse) Reset ¶
func (m *MsgSetPaymentContractAuthorisationResponse) Reset()
func (*MsgSetPaymentContractAuthorisationResponse) Size ¶
func (m *MsgSetPaymentContractAuthorisationResponse) Size() (n int)
func (*MsgSetPaymentContractAuthorisationResponse) String ¶
func (m *MsgSetPaymentContractAuthorisationResponse) String() string
func (*MsgSetPaymentContractAuthorisationResponse) Unmarshal ¶
func (m *MsgSetPaymentContractAuthorisationResponse) Unmarshal(dAtA []byte) error
func (*MsgSetPaymentContractAuthorisationResponse) XXX_DiscardUnknown ¶
func (m *MsgSetPaymentContractAuthorisationResponse) XXX_DiscardUnknown()
func (*MsgSetPaymentContractAuthorisationResponse) XXX_Marshal ¶
func (m *MsgSetPaymentContractAuthorisationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetPaymentContractAuthorisationResponse) XXX_Merge ¶
func (m *MsgSetPaymentContractAuthorisationResponse) XXX_Merge(src proto.Message)
func (*MsgSetPaymentContractAuthorisationResponse) XXX_Size ¶
func (m *MsgSetPaymentContractAuthorisationResponse) XXX_Size() int
func (*MsgSetPaymentContractAuthorisationResponse) XXX_Unmarshal ¶
func (m *MsgSetPaymentContractAuthorisationResponse) XXX_Unmarshal(b []byte) error
type PaymentContract ¶
type PaymentContract struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` PaymentTemplateId string `` /* 141-byte string literal not displayed */ Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` Payer string `protobuf:"bytes,4,opt,name=payer,proto3" json:"payer,omitempty" yaml:"payer"` Recipients []DistributionShare `protobuf:"bytes,5,rep,name=recipients,proto3" json:"recipients" yaml:"recipients"` CumulativePay github_com_cosmos_cosmos_sdk_types.Coins `` /* 166-byte string literal not displayed */ CurrentRemainder github_com_cosmos_cosmos_sdk_types.Coins `` /* 178-byte string literal not displayed */ Authorised bool `protobuf:"varint,9,opt,name=authorised,proto3" json:"authorised,omitempty" yaml:"authorised"` DiscountId github_com_cosmos_cosmos_sdk_types.Uint `` /* 152-byte string literal not displayed */ }
PaymentContract specifies an agreement between a payer and payee/s which can be invoked once or multiple times to effect payment/s.
func NewPaymentContract ¶
func NewPaymentContract(id, templateId string, creator, payer sdk.AccAddress, recipients Distribution, canDeauthorise, authorised bool, discountId sdk.Uint) PaymentContract
func NewPaymentContractNoDiscount ¶
func NewPaymentContractNoDiscount(id, templateId string, creator, payer sdk.AccAddress, recipients Distribution, canDeauthorise, authorised bool) PaymentContract
func (PaymentContract) CanEffectPayment ¶
func (pc PaymentContract) CanEffectPayment(template PaymentTemplate) bool
CanEffectPayment False if not authorised or the (non-zero!) max has been reached
func (*PaymentContract) Descriptor ¶
func (*PaymentContract) Descriptor() ([]byte, []int)
func (*PaymentContract) GetAuthorised ¶
func (m *PaymentContract) GetAuthorised() bool
func (*PaymentContract) GetCanDeauthorise ¶
func (m *PaymentContract) GetCanDeauthorise() bool
func (*PaymentContract) GetCreator ¶
func (m *PaymentContract) GetCreator() string
func (*PaymentContract) GetCumulativePay ¶
func (m *PaymentContract) GetCumulativePay() github_com_cosmos_cosmos_sdk_types.Coins
func (*PaymentContract) GetCurrentRemainder ¶
func (m *PaymentContract) GetCurrentRemainder() github_com_cosmos_cosmos_sdk_types.Coins
func (*PaymentContract) GetId ¶
func (m *PaymentContract) GetId() string
func (*PaymentContract) GetPayer ¶
func (m *PaymentContract) GetPayer() string
func (*PaymentContract) GetPaymentTemplateId ¶
func (m *PaymentContract) GetPaymentTemplateId() string
func (*PaymentContract) GetRecipients ¶
func (m *PaymentContract) GetRecipients() []DistributionShare
func (PaymentContract) IsFirstPayment ¶
func (pc PaymentContract) IsFirstPayment() bool
func (*PaymentContract) Marshal ¶
func (m *PaymentContract) Marshal() (dAtA []byte, err error)
func (*PaymentContract) MarshalToSizedBuffer ¶
func (m *PaymentContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PaymentContract) ProtoMessage ¶
func (*PaymentContract) ProtoMessage()
func (*PaymentContract) Reset ¶
func (m *PaymentContract) Reset()
func (*PaymentContract) Size ¶
func (m *PaymentContract) Size() (n int)
func (*PaymentContract) String ¶
func (m *PaymentContract) String() string
func (*PaymentContract) Unmarshal ¶
func (m *PaymentContract) Unmarshal(dAtA []byte) error
func (PaymentContract) Validate ¶
func (pc PaymentContract) Validate() error
func (*PaymentContract) XXX_DiscardUnknown ¶
func (m *PaymentContract) XXX_DiscardUnknown()
func (*PaymentContract) XXX_Marshal ¶
func (m *PaymentContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaymentContract) XXX_Merge ¶
func (m *PaymentContract) XXX_Merge(src proto.Message)
func (*PaymentContract) XXX_Size ¶
func (m *PaymentContract) XXX_Size() int
func (*PaymentContract) XXX_Unmarshal ¶
func (m *PaymentContract) XXX_Unmarshal(b []byte) error
type PaymentTemplate ¶
type PaymentTemplate struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` PaymentAmount github_com_cosmos_cosmos_sdk_types.Coins `` /* 166-byte string literal not displayed */ PaymentMinimum github_com_cosmos_cosmos_sdk_types.Coins `` /* 170-byte string literal not displayed */ PaymentMaximum github_com_cosmos_cosmos_sdk_types.Coins `` /* 170-byte string literal not displayed */ Discounts []Discount `protobuf:"bytes,5,rep,name=discounts,proto3" json:"discounts" yaml:"discounts"` }
PaymentTemplate contains details about a payment, with no info about the payer or payee.
func (*PaymentTemplate) Descriptor ¶
func (*PaymentTemplate) Descriptor() ([]byte, []int)
func (PaymentTemplate) GetDiscountPercent ¶
func (*PaymentTemplate) GetDiscounts ¶
func (m *PaymentTemplate) GetDiscounts() []Discount
func (*PaymentTemplate) GetId ¶
func (m *PaymentTemplate) GetId() string
func (*PaymentTemplate) GetPaymentAmount ¶
func (m *PaymentTemplate) GetPaymentAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*PaymentTemplate) GetPaymentMaximum ¶
func (m *PaymentTemplate) GetPaymentMaximum() github_com_cosmos_cosmos_sdk_types.Coins
func (*PaymentTemplate) GetPaymentMinimum ¶
func (m *PaymentTemplate) GetPaymentMinimum() github_com_cosmos_cosmos_sdk_types.Coins
func (*PaymentTemplate) Marshal ¶
func (m *PaymentTemplate) Marshal() (dAtA []byte, err error)
func (*PaymentTemplate) MarshalToSizedBuffer ¶
func (m *PaymentTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PaymentTemplate) ProtoMessage ¶
func (*PaymentTemplate) ProtoMessage()
func (*PaymentTemplate) Reset ¶
func (m *PaymentTemplate) Reset()
func (*PaymentTemplate) Size ¶
func (m *PaymentTemplate) Size() (n int)
func (*PaymentTemplate) String ¶
func (m *PaymentTemplate) String() string
func (*PaymentTemplate) Unmarshal ¶
func (m *PaymentTemplate) Unmarshal(dAtA []byte) error
func (PaymentTemplate) Validate ¶
func (pt PaymentTemplate) Validate() error
func (*PaymentTemplate) XXX_DiscardUnknown ¶
func (m *PaymentTemplate) XXX_DiscardUnknown()
func (*PaymentTemplate) XXX_Marshal ¶
func (m *PaymentTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaymentTemplate) XXX_Merge ¶
func (m *PaymentTemplate) XXX_Merge(src proto.Message)
func (*PaymentTemplate) XXX_Size ¶
func (m *PaymentTemplate) XXX_Size() int
func (*PaymentTemplate) XXX_Unmarshal ¶
func (m *PaymentTemplate) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // PaymentTemplate queries info of a specific payment template. PaymentTemplate(ctx context.Context, in *QueryPaymentTemplateRequest, opts ...grpc.CallOption) (*QueryPaymentTemplateResponse, error) // PaymentContract queries info of a specific payment contract. PaymentContract(ctx context.Context, in *QueryPaymentContractRequest, opts ...grpc.CallOption) (*QueryPaymentContractResponse, error) // PaymentContractsByIdPrefix lists all payment contracts having an id with a specific prefix. PaymentContractsByIdPrefix(ctx context.Context, in *QueryPaymentContractsByIdPrefixRequest, opts ...grpc.CallOption) (*QueryPaymentContractsByIdPrefixResponse, error) // Subscription queries info of a specific Subscription. Subscription(ctx context.Context, in *QuerySubscriptionRequest, opts ...grpc.CallOption) (*QuerySubscriptionResponse, 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 QueryPaymentContractRequest ¶
type QueryPaymentContractRequest struct {
PaymentContractId string `` /* 141-byte string literal not displayed */
}
QueryPaymentContractRequest is the request type for the Query/PaymentContract RPC method.
func (*QueryPaymentContractRequest) Descriptor ¶
func (*QueryPaymentContractRequest) Descriptor() ([]byte, []int)
func (*QueryPaymentContractRequest) GetPaymentContractId ¶
func (m *QueryPaymentContractRequest) GetPaymentContractId() string
func (*QueryPaymentContractRequest) Marshal ¶
func (m *QueryPaymentContractRequest) Marshal() (dAtA []byte, err error)
func (*QueryPaymentContractRequest) MarshalTo ¶
func (m *QueryPaymentContractRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPaymentContractRequest) MarshalToSizedBuffer ¶
func (m *QueryPaymentContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPaymentContractRequest) ProtoMessage ¶
func (*QueryPaymentContractRequest) ProtoMessage()
func (*QueryPaymentContractRequest) Reset ¶
func (m *QueryPaymentContractRequest) Reset()
func (*QueryPaymentContractRequest) Size ¶
func (m *QueryPaymentContractRequest) Size() (n int)
func (*QueryPaymentContractRequest) String ¶
func (m *QueryPaymentContractRequest) String() string
func (*QueryPaymentContractRequest) Unmarshal ¶
func (m *QueryPaymentContractRequest) Unmarshal(dAtA []byte) error
func (*QueryPaymentContractRequest) XXX_DiscardUnknown ¶
func (m *QueryPaymentContractRequest) XXX_DiscardUnknown()
func (*QueryPaymentContractRequest) XXX_Marshal ¶
func (m *QueryPaymentContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPaymentContractRequest) XXX_Merge ¶
func (m *QueryPaymentContractRequest) XXX_Merge(src proto.Message)
func (*QueryPaymentContractRequest) XXX_Size ¶
func (m *QueryPaymentContractRequest) XXX_Size() int
func (*QueryPaymentContractRequest) XXX_Unmarshal ¶
func (m *QueryPaymentContractRequest) XXX_Unmarshal(b []byte) error
type QueryPaymentContractResponse ¶
type QueryPaymentContractResponse struct {
PaymentContract PaymentContract `protobuf:"bytes,1,opt,name=payment_contract,json=paymentContract,proto3" json:"payment_contract" yaml:"payment_contract"`
}
QueryPaymentContractResponse is the response type for the Query/PaymentContract RPC method.
func (*QueryPaymentContractResponse) Descriptor ¶
func (*QueryPaymentContractResponse) Descriptor() ([]byte, []int)
func (*QueryPaymentContractResponse) GetPaymentContract ¶
func (m *QueryPaymentContractResponse) GetPaymentContract() PaymentContract
func (*QueryPaymentContractResponse) Marshal ¶
func (m *QueryPaymentContractResponse) Marshal() (dAtA []byte, err error)
func (*QueryPaymentContractResponse) MarshalTo ¶
func (m *QueryPaymentContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPaymentContractResponse) MarshalToSizedBuffer ¶
func (m *QueryPaymentContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPaymentContractResponse) ProtoMessage ¶
func (*QueryPaymentContractResponse) ProtoMessage()
func (*QueryPaymentContractResponse) Reset ¶
func (m *QueryPaymentContractResponse) Reset()
func (*QueryPaymentContractResponse) Size ¶
func (m *QueryPaymentContractResponse) Size() (n int)
func (*QueryPaymentContractResponse) String ¶
func (m *QueryPaymentContractResponse) String() string
func (*QueryPaymentContractResponse) Unmarshal ¶
func (m *QueryPaymentContractResponse) Unmarshal(dAtA []byte) error
func (*QueryPaymentContractResponse) XXX_DiscardUnknown ¶
func (m *QueryPaymentContractResponse) XXX_DiscardUnknown()
func (*QueryPaymentContractResponse) XXX_Marshal ¶
func (m *QueryPaymentContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPaymentContractResponse) XXX_Merge ¶
func (m *QueryPaymentContractResponse) XXX_Merge(src proto.Message)
func (*QueryPaymentContractResponse) XXX_Size ¶
func (m *QueryPaymentContractResponse) XXX_Size() int
func (*QueryPaymentContractResponse) XXX_Unmarshal ¶
func (m *QueryPaymentContractResponse) XXX_Unmarshal(b []byte) error
type QueryPaymentContractsByIdPrefixRequest ¶
type QueryPaymentContractsByIdPrefixRequest struct {
PaymentContractsIdPrefix string `` /* 172-byte string literal not displayed */
}
QueryPaymentContractsByIdPrefixRequest is the request type for the Query/PaymentContractsByIdPrefix RPC method.
func (*QueryPaymentContractsByIdPrefixRequest) Descriptor ¶
func (*QueryPaymentContractsByIdPrefixRequest) Descriptor() ([]byte, []int)
func (*QueryPaymentContractsByIdPrefixRequest) GetPaymentContractsIdPrefix ¶
func (m *QueryPaymentContractsByIdPrefixRequest) GetPaymentContractsIdPrefix() string
func (*QueryPaymentContractsByIdPrefixRequest) Marshal ¶
func (m *QueryPaymentContractsByIdPrefixRequest) Marshal() (dAtA []byte, err error)
func (*QueryPaymentContractsByIdPrefixRequest) MarshalTo ¶
func (m *QueryPaymentContractsByIdPrefixRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPaymentContractsByIdPrefixRequest) MarshalToSizedBuffer ¶
func (m *QueryPaymentContractsByIdPrefixRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPaymentContractsByIdPrefixRequest) ProtoMessage ¶
func (*QueryPaymentContractsByIdPrefixRequest) ProtoMessage()
func (*QueryPaymentContractsByIdPrefixRequest) Reset ¶
func (m *QueryPaymentContractsByIdPrefixRequest) Reset()
func (*QueryPaymentContractsByIdPrefixRequest) Size ¶
func (m *QueryPaymentContractsByIdPrefixRequest) Size() (n int)
func (*QueryPaymentContractsByIdPrefixRequest) String ¶
func (m *QueryPaymentContractsByIdPrefixRequest) String() string
func (*QueryPaymentContractsByIdPrefixRequest) Unmarshal ¶
func (m *QueryPaymentContractsByIdPrefixRequest) Unmarshal(dAtA []byte) error
func (*QueryPaymentContractsByIdPrefixRequest) XXX_DiscardUnknown ¶
func (m *QueryPaymentContractsByIdPrefixRequest) XXX_DiscardUnknown()
func (*QueryPaymentContractsByIdPrefixRequest) XXX_Marshal ¶
func (m *QueryPaymentContractsByIdPrefixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPaymentContractsByIdPrefixRequest) XXX_Merge ¶
func (m *QueryPaymentContractsByIdPrefixRequest) XXX_Merge(src proto.Message)
func (*QueryPaymentContractsByIdPrefixRequest) XXX_Size ¶
func (m *QueryPaymentContractsByIdPrefixRequest) XXX_Size() int
func (*QueryPaymentContractsByIdPrefixRequest) XXX_Unmarshal ¶
func (m *QueryPaymentContractsByIdPrefixRequest) XXX_Unmarshal(b []byte) error
type QueryPaymentContractsByIdPrefixResponse ¶
type QueryPaymentContractsByIdPrefixResponse struct {
PaymentContracts []PaymentContract `protobuf:"bytes,1,rep,name=payment_contracts,json=paymentContracts,proto3" json:"payment_contracts" yaml:"payment_contracts"`
}
QueryPaymentContractsByIdPrefixResponse is the response type for the Query/PaymentContractsByIdPrefix RPC method.
func (*QueryPaymentContractsByIdPrefixResponse) Descriptor ¶
func (*QueryPaymentContractsByIdPrefixResponse) Descriptor() ([]byte, []int)
func (*QueryPaymentContractsByIdPrefixResponse) GetPaymentContracts ¶
func (m *QueryPaymentContractsByIdPrefixResponse) GetPaymentContracts() []PaymentContract
func (*QueryPaymentContractsByIdPrefixResponse) Marshal ¶
func (m *QueryPaymentContractsByIdPrefixResponse) Marshal() (dAtA []byte, err error)
func (*QueryPaymentContractsByIdPrefixResponse) MarshalTo ¶
func (m *QueryPaymentContractsByIdPrefixResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPaymentContractsByIdPrefixResponse) MarshalToSizedBuffer ¶
func (m *QueryPaymentContractsByIdPrefixResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPaymentContractsByIdPrefixResponse) ProtoMessage ¶
func (*QueryPaymentContractsByIdPrefixResponse) ProtoMessage()
func (*QueryPaymentContractsByIdPrefixResponse) Reset ¶
func (m *QueryPaymentContractsByIdPrefixResponse) Reset()
func (*QueryPaymentContractsByIdPrefixResponse) Size ¶
func (m *QueryPaymentContractsByIdPrefixResponse) Size() (n int)
func (*QueryPaymentContractsByIdPrefixResponse) String ¶
func (m *QueryPaymentContractsByIdPrefixResponse) String() string
func (*QueryPaymentContractsByIdPrefixResponse) Unmarshal ¶
func (m *QueryPaymentContractsByIdPrefixResponse) Unmarshal(dAtA []byte) error
func (*QueryPaymentContractsByIdPrefixResponse) XXX_DiscardUnknown ¶
func (m *QueryPaymentContractsByIdPrefixResponse) XXX_DiscardUnknown()
func (*QueryPaymentContractsByIdPrefixResponse) XXX_Marshal ¶
func (m *QueryPaymentContractsByIdPrefixResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPaymentContractsByIdPrefixResponse) XXX_Merge ¶
func (m *QueryPaymentContractsByIdPrefixResponse) XXX_Merge(src proto.Message)
func (*QueryPaymentContractsByIdPrefixResponse) XXX_Size ¶
func (m *QueryPaymentContractsByIdPrefixResponse) XXX_Size() int
func (*QueryPaymentContractsByIdPrefixResponse) XXX_Unmarshal ¶
func (m *QueryPaymentContractsByIdPrefixResponse) XXX_Unmarshal(b []byte) error
type QueryPaymentTemplateRequest ¶
type QueryPaymentTemplateRequest struct {
PaymentTemplateId string `` /* 141-byte string literal not displayed */
}
QueryPaymentTemplateRequest is the request type for the Query/PaymentTemplate RPC method.
func (*QueryPaymentTemplateRequest) Descriptor ¶
func (*QueryPaymentTemplateRequest) Descriptor() ([]byte, []int)
func (*QueryPaymentTemplateRequest) GetPaymentTemplateId ¶
func (m *QueryPaymentTemplateRequest) GetPaymentTemplateId() string
func (*QueryPaymentTemplateRequest) Marshal ¶
func (m *QueryPaymentTemplateRequest) Marshal() (dAtA []byte, err error)
func (*QueryPaymentTemplateRequest) MarshalTo ¶
func (m *QueryPaymentTemplateRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPaymentTemplateRequest) MarshalToSizedBuffer ¶
func (m *QueryPaymentTemplateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPaymentTemplateRequest) ProtoMessage ¶
func (*QueryPaymentTemplateRequest) ProtoMessage()
func (*QueryPaymentTemplateRequest) Reset ¶
func (m *QueryPaymentTemplateRequest) Reset()
func (*QueryPaymentTemplateRequest) Size ¶
func (m *QueryPaymentTemplateRequest) Size() (n int)
func (*QueryPaymentTemplateRequest) String ¶
func (m *QueryPaymentTemplateRequest) String() string
func (*QueryPaymentTemplateRequest) Unmarshal ¶
func (m *QueryPaymentTemplateRequest) Unmarshal(dAtA []byte) error
func (*QueryPaymentTemplateRequest) XXX_DiscardUnknown ¶
func (m *QueryPaymentTemplateRequest) XXX_DiscardUnknown()
func (*QueryPaymentTemplateRequest) XXX_Marshal ¶
func (m *QueryPaymentTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPaymentTemplateRequest) XXX_Merge ¶
func (m *QueryPaymentTemplateRequest) XXX_Merge(src proto.Message)
func (*QueryPaymentTemplateRequest) XXX_Size ¶
func (m *QueryPaymentTemplateRequest) XXX_Size() int
func (*QueryPaymentTemplateRequest) XXX_Unmarshal ¶
func (m *QueryPaymentTemplateRequest) XXX_Unmarshal(b []byte) error
type QueryPaymentTemplateResponse ¶
type QueryPaymentTemplateResponse struct {
PaymentTemplate PaymentTemplate `protobuf:"bytes,1,opt,name=payment_template,json=paymentTemplate,proto3" json:"payment_template" yaml:"payment_template"`
}
QueryPaymentTemplateResponse is the response type for the Query/PaymentTemplate RPC method.
func (*QueryPaymentTemplateResponse) Descriptor ¶
func (*QueryPaymentTemplateResponse) Descriptor() ([]byte, []int)
func (*QueryPaymentTemplateResponse) GetPaymentTemplate ¶
func (m *QueryPaymentTemplateResponse) GetPaymentTemplate() PaymentTemplate
func (*QueryPaymentTemplateResponse) Marshal ¶
func (m *QueryPaymentTemplateResponse) Marshal() (dAtA []byte, err error)
func (*QueryPaymentTemplateResponse) MarshalTo ¶
func (m *QueryPaymentTemplateResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPaymentTemplateResponse) MarshalToSizedBuffer ¶
func (m *QueryPaymentTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPaymentTemplateResponse) ProtoMessage ¶
func (*QueryPaymentTemplateResponse) ProtoMessage()
func (*QueryPaymentTemplateResponse) Reset ¶
func (m *QueryPaymentTemplateResponse) Reset()
func (*QueryPaymentTemplateResponse) Size ¶
func (m *QueryPaymentTemplateResponse) Size() (n int)
func (*QueryPaymentTemplateResponse) String ¶
func (m *QueryPaymentTemplateResponse) String() string
func (*QueryPaymentTemplateResponse) Unmarshal ¶
func (m *QueryPaymentTemplateResponse) Unmarshal(dAtA []byte) error
func (*QueryPaymentTemplateResponse) XXX_DiscardUnknown ¶
func (m *QueryPaymentTemplateResponse) XXX_DiscardUnknown()
func (*QueryPaymentTemplateResponse) XXX_Marshal ¶
func (m *QueryPaymentTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPaymentTemplateResponse) XXX_Merge ¶
func (m *QueryPaymentTemplateResponse) XXX_Merge(src proto.Message)
func (*QueryPaymentTemplateResponse) XXX_Size ¶
func (m *QueryPaymentTemplateResponse) XXX_Size() int
func (*QueryPaymentTemplateResponse) XXX_Unmarshal ¶
func (m *QueryPaymentTemplateResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // PaymentTemplate queries info of a specific payment template. PaymentTemplate(context.Context, *QueryPaymentTemplateRequest) (*QueryPaymentTemplateResponse, error) // PaymentContract queries info of a specific payment contract. PaymentContract(context.Context, *QueryPaymentContractRequest) (*QueryPaymentContractResponse, error) // PaymentContractsByIdPrefix lists all payment contracts having an id with a specific prefix. PaymentContractsByIdPrefix(context.Context, *QueryPaymentContractsByIdPrefixRequest) (*QueryPaymentContractsByIdPrefixResponse, error) // Subscription queries info of a specific Subscription. Subscription(context.Context, *QuerySubscriptionRequest) (*QuerySubscriptionResponse, error) }
QueryServer is the server API for Query service.
type QuerySubscriptionRequest ¶
type QuerySubscriptionRequest struct {
SubscriptionId string `` /* 126-byte string literal not displayed */
}
QuerySubscriptionRequest is the request type for the Query/Subscription RPC method.
func (*QuerySubscriptionRequest) Descriptor ¶
func (*QuerySubscriptionRequest) Descriptor() ([]byte, []int)
func (*QuerySubscriptionRequest) GetSubscriptionId ¶
func (m *QuerySubscriptionRequest) GetSubscriptionId() string
func (*QuerySubscriptionRequest) Marshal ¶
func (m *QuerySubscriptionRequest) Marshal() (dAtA []byte, err error)
func (*QuerySubscriptionRequest) MarshalTo ¶
func (m *QuerySubscriptionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubscriptionRequest) MarshalToSizedBuffer ¶
func (m *QuerySubscriptionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubscriptionRequest) ProtoMessage ¶
func (*QuerySubscriptionRequest) ProtoMessage()
func (*QuerySubscriptionRequest) Reset ¶
func (m *QuerySubscriptionRequest) Reset()
func (*QuerySubscriptionRequest) Size ¶
func (m *QuerySubscriptionRequest) Size() (n int)
func (*QuerySubscriptionRequest) String ¶
func (m *QuerySubscriptionRequest) String() string
func (*QuerySubscriptionRequest) Unmarshal ¶
func (m *QuerySubscriptionRequest) Unmarshal(dAtA []byte) error
func (*QuerySubscriptionRequest) XXX_DiscardUnknown ¶
func (m *QuerySubscriptionRequest) XXX_DiscardUnknown()
func (*QuerySubscriptionRequest) XXX_Marshal ¶
func (m *QuerySubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubscriptionRequest) XXX_Merge ¶
func (m *QuerySubscriptionRequest) XXX_Merge(src proto.Message)
func (*QuerySubscriptionRequest) XXX_Size ¶
func (m *QuerySubscriptionRequest) XXX_Size() int
func (*QuerySubscriptionRequest) XXX_Unmarshal ¶
func (m *QuerySubscriptionRequest) XXX_Unmarshal(b []byte) error
type QuerySubscriptionResponse ¶
type QuerySubscriptionResponse struct {
Subscription Subscription `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription" yaml:"subscription"`
}
QuerySubscriptionResponse is the response type for the Query/Subscription RPC method.
func (*QuerySubscriptionResponse) Descriptor ¶
func (*QuerySubscriptionResponse) Descriptor() ([]byte, []int)
func (*QuerySubscriptionResponse) GetSubscription ¶
func (m *QuerySubscriptionResponse) GetSubscription() Subscription
func (*QuerySubscriptionResponse) Marshal ¶
func (m *QuerySubscriptionResponse) Marshal() (dAtA []byte, err error)
func (*QuerySubscriptionResponse) MarshalTo ¶
func (m *QuerySubscriptionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubscriptionResponse) MarshalToSizedBuffer ¶
func (m *QuerySubscriptionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubscriptionResponse) ProtoMessage ¶
func (*QuerySubscriptionResponse) ProtoMessage()
func (*QuerySubscriptionResponse) Reset ¶
func (m *QuerySubscriptionResponse) Reset()
func (*QuerySubscriptionResponse) Size ¶
func (m *QuerySubscriptionResponse) Size() (n int)
func (*QuerySubscriptionResponse) String ¶
func (m *QuerySubscriptionResponse) String() string
func (*QuerySubscriptionResponse) Unmarshal ¶
func (m *QuerySubscriptionResponse) Unmarshal(dAtA []byte) error
func (*QuerySubscriptionResponse) XXX_DiscardUnknown ¶
func (m *QuerySubscriptionResponse) XXX_DiscardUnknown()
func (*QuerySubscriptionResponse) XXX_Marshal ¶
func (m *QuerySubscriptionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubscriptionResponse) XXX_Merge ¶
func (m *QuerySubscriptionResponse) XXX_Merge(src proto.Message)
func (*QuerySubscriptionResponse) XXX_Size ¶
func (m *QuerySubscriptionResponse) XXX_Size() int
func (*QuerySubscriptionResponse) XXX_Unmarshal ¶
func (m *QuerySubscriptionResponse) XXX_Unmarshal(b []byte) error
type Subscription ¶
type Subscription struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` PaymentContractId string `` /* 141-byte string literal not displayed */ PeriodsSoFar github_com_cosmos_cosmos_sdk_types.Uint `` /* 162-byte string literal not displayed */ MaxPeriods github_com_cosmos_cosmos_sdk_types.Uint `` /* 151-byte string literal not displayed */ PeriodsAccumulated github_com_cosmos_cosmos_sdk_types.Uint `` /* 183-byte string literal not displayed */ Period *types1.Any `protobuf:"bytes,6,opt,name=period,proto3" json:"period,omitempty" yaml:"period"` }
Subscription specifies details of a payment to be effected periodically.
func NewSubscription ¶
func NewSubscription(id, contractId string, maxPeriods sdk.Uint, period Period) Subscription
func (*Subscription) Descriptor ¶
func (*Subscription) Descriptor() ([]byte, []int)
func (*Subscription) GetPeriod ¶
func (s *Subscription) GetPeriod() Period
func (Subscription) IsComplete ¶
func (s Subscription) IsComplete() bool
IsComplete True if we have reached the max number of periods and there are no accumulated periods
func (*Subscription) Marshal ¶
func (m *Subscription) Marshal() (dAtA []byte, err error)
func (*Subscription) MarshalToSizedBuffer ¶
func (m *Subscription) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (Subscription) MaxPeriodsReached ¶
func (s Subscription) MaxPeriodsReached() bool
MaxPeriodsReached True if max number of periods has been reached
func (*Subscription) NextPeriod ¶
func (s *Subscription) NextPeriod(periodPaid bool)
NextPeriod Proceed to the next period
func (*Subscription) ProtoMessage ¶
func (*Subscription) ProtoMessage()
func (*Subscription) Reset ¶
func (m *Subscription) Reset()
func (*Subscription) SetPeriod ¶
func (s *Subscription) SetPeriod(period Period) error
func (Subscription) ShouldEffect ¶
func (s Subscription) ShouldEffect(ctx sdk.Context) bool
ShouldEffect True if the subscription has started and
(A) the max no. of periods has not been reached and the period has ended, or (B) the max no. of periods has been reached but we have accumulated periods
This means that accumulated periods only get tackled once the max number of periods has been reached.
func (*Subscription) Size ¶
func (m *Subscription) Size() (n int)
func (*Subscription) String ¶
func (m *Subscription) String() string
func (*Subscription) Unmarshal ¶
func (m *Subscription) Unmarshal(dAtA []byte) error
func (Subscription) UnpackInterfaces ¶
func (s Subscription) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (Subscription) Validate ¶
func (s Subscription) Validate() error
func (*Subscription) XXX_DiscardUnknown ¶
func (m *Subscription) XXX_DiscardUnknown()
func (*Subscription) XXX_Marshal ¶
func (m *Subscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Subscription) XXX_Merge ¶
func (m *Subscription) XXX_Merge(src proto.Message)
func (*Subscription) XXX_Size ¶
func (m *Subscription) XXX_Size() int
func (*Subscription) XXX_Unmarshal ¶
func (m *Subscription) XXX_Unmarshal(b []byte) error
type TestPeriod ¶
type TestPeriod struct { PeriodLength int64 `protobuf:"varint,1,opt,name=period_length,json=periodLength,proto3" json:"period_length,omitempty" yaml:"period_length"` PeriodStartBlock int64 `` /* 138-byte string literal not displayed */ }
TestPeriod implements the Period interface and is identical to BlockPeriod, except it ignores the context in periodEnded() and periodStarted().
func NewTestPeriod ¶
func NewTestPeriod(periodLength, periodStartBlock int64) TestPeriod
func (*TestPeriod) Descriptor ¶
func (*TestPeriod) Descriptor() ([]byte, []int)
func (*TestPeriod) GetPeriodLength ¶
func (m *TestPeriod) GetPeriodLength() int64
func (*TestPeriod) GetPeriodStartBlock ¶
func (m *TestPeriod) GetPeriodStartBlock() int64
func (TestPeriod) GetPeriodUnit ¶
func (p TestPeriod) GetPeriodUnit() string
func (*TestPeriod) Marshal ¶
func (m *TestPeriod) Marshal() (dAtA []byte, err error)
func (*TestPeriod) MarshalToSizedBuffer ¶
func (m *TestPeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TestPeriod) ProtoMessage ¶
func (*TestPeriod) ProtoMessage()
func (*TestPeriod) Reset ¶
func (m *TestPeriod) Reset()
func (*TestPeriod) Size ¶
func (m *TestPeriod) Size() (n int)
func (*TestPeriod) String ¶
func (m *TestPeriod) String() string
func (*TestPeriod) Unmarshal ¶
func (m *TestPeriod) Unmarshal(dAtA []byte) error
func (TestPeriod) Validate ¶
func (p TestPeriod) Validate() error
func (*TestPeriod) XXX_DiscardUnknown ¶
func (m *TestPeriod) XXX_DiscardUnknown()
func (*TestPeriod) XXX_Marshal ¶
func (m *TestPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TestPeriod) XXX_Merge ¶
func (m *TestPeriod) XXX_Merge(src proto.Message)
func (*TestPeriod) XXX_Size ¶
func (m *TestPeriod) XXX_Size() int
func (*TestPeriod) XXX_Unmarshal ¶
func (m *TestPeriod) XXX_Unmarshal(b []byte) error
type TimePeriod ¶
type TimePeriod struct { PeriodDurationNs time.Duration `` /* 139-byte string literal not displayed */ PeriodStartTime time.Time `` /* 131-byte string literal not displayed */ }
TimePeriod implements the Period interface and specifies a period in terms of time.
func NewTimePeriod ¶
func NewTimePeriod(periodDurationNs time.Duration, periodStartTime time.Time) TimePeriod
func (*TimePeriod) Descriptor ¶
func (*TimePeriod) Descriptor() ([]byte, []int)
func (*TimePeriod) GetPeriodDurationNs ¶
func (m *TimePeriod) GetPeriodDurationNs() time.Duration
func (*TimePeriod) GetPeriodStartTime ¶
func (m *TimePeriod) GetPeriodStartTime() time.Time
func (TimePeriod) GetPeriodUnit ¶
func (p TimePeriod) GetPeriodUnit() string
func (*TimePeriod) Marshal ¶
func (m *TimePeriod) Marshal() (dAtA []byte, err error)
func (*TimePeriod) MarshalToSizedBuffer ¶
func (m *TimePeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TimePeriod) ProtoMessage ¶
func (*TimePeriod) ProtoMessage()
func (*TimePeriod) Reset ¶
func (m *TimePeriod) Reset()
func (*TimePeriod) Size ¶
func (m *TimePeriod) Size() (n int)
func (*TimePeriod) String ¶
func (m *TimePeriod) String() string
func (*TimePeriod) Unmarshal ¶
func (m *TimePeriod) Unmarshal(dAtA []byte) error
func (TimePeriod) Validate ¶
func (p TimePeriod) Validate() error
func (*TimePeriod) XXX_DiscardUnknown ¶
func (m *TimePeriod) XXX_DiscardUnknown()
func (*TimePeriod) XXX_Marshal ¶
func (m *TimePeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TimePeriod) XXX_Merge ¶
func (m *TimePeriod) XXX_Merge(src proto.Message)
func (*TimePeriod) XXX_Size ¶
func (m *TimePeriod) XXX_Size() int
func (*TimePeriod) XXX_Unmarshal ¶
func (m *TimePeriod) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreatePaymentContract ¶
func (*UnimplementedMsgServer) CreatePaymentContract(ctx context.Context, req *MsgCreatePaymentContract) (*MsgCreatePaymentContractResponse, error)
func (*UnimplementedMsgServer) CreatePaymentTemplate ¶
func (*UnimplementedMsgServer) CreatePaymentTemplate(ctx context.Context, req *MsgCreatePaymentTemplate) (*MsgCreatePaymentTemplateResponse, error)
func (*UnimplementedMsgServer) CreateSubscription ¶
func (*UnimplementedMsgServer) CreateSubscription(ctx context.Context, req *MsgCreateSubscription) (*MsgCreateSubscriptionResponse, error)
func (*UnimplementedMsgServer) EffectPayment ¶
func (*UnimplementedMsgServer) EffectPayment(ctx context.Context, req *MsgEffectPayment) (*MsgEffectPaymentResponse, error)
func (*UnimplementedMsgServer) GrantDiscount ¶
func (*UnimplementedMsgServer) GrantDiscount(ctx context.Context, req *MsgGrantDiscount) (*MsgGrantDiscountResponse, error)
func (*UnimplementedMsgServer) RevokeDiscount ¶
func (*UnimplementedMsgServer) RevokeDiscount(ctx context.Context, req *MsgRevokeDiscount) (*MsgRevokeDiscountResponse, error)
func (*UnimplementedMsgServer) SetPaymentContractAuthorisation ¶
func (*UnimplementedMsgServer) SetPaymentContractAuthorisation(ctx context.Context, req *MsgSetPaymentContractAuthorisation) (*MsgSetPaymentContractAuthorisationResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) PaymentContract ¶
func (*UnimplementedQueryServer) PaymentContract(ctx context.Context, req *QueryPaymentContractRequest) (*QueryPaymentContractResponse, error)
func (*UnimplementedQueryServer) PaymentContractsByIdPrefix ¶
func (*UnimplementedQueryServer) PaymentContractsByIdPrefix(ctx context.Context, req *QueryPaymentContractsByIdPrefixRequest) (*QueryPaymentContractsByIdPrefixResponse, error)
func (*UnimplementedQueryServer) PaymentTemplate ¶
func (*UnimplementedQueryServer) PaymentTemplate(ctx context.Context, req *QueryPaymentTemplateRequest) (*QueryPaymentTemplateResponse, error)
func (*UnimplementedQueryServer) Subscription ¶
func (*UnimplementedQueryServer) Subscription(ctx context.Context, req *QuerySubscriptionRequest) (*QuerySubscriptionResponse, error)