Documentation ¶
Index ¶
- Constants
- Variables
- func ErrNoInputsOutputs(codeSpace cTypes.CodespaceType) cTypes.Error
- func ErrUnauthorized(codeSpace cTypes.CodespaceType) cTypes.Error
- func GetOrderKey(negotiationID negotiation.NegotiationID) []byte
- func RegisterCodec(cdc *codec.Codec)
- func ValidateGensis(data GenesisState) error
- type ACLKeeper
- type AccountKeeper
- type BaseOrder
- func (baseOrder BaseOrder) GetAWBProofHash() string
- func (baseOrder BaseOrder) GetAssetPegWallet() types.AssetPegWallet
- func (baseOrder BaseOrder) GetFiatPegWallet() types.FiatPegWallet
- func (baseOrder BaseOrder) GetFiatProofHash() string
- func (baseOrder BaseOrder) GetNegotiationID() negotiation.NegotiationID
- func (baseOrder *BaseOrder) SetAWBProofHash(awbProofHash string)
- func (baseOrder *BaseOrder) SetAssetPegWallet(assetPegWallet types.AssetPegWallet)
- func (baseOrder *BaseOrder) SetFiatPegWallet(fiatPegWallet types.FiatPegWallet)
- func (baseOrder *BaseOrder) SetFiatProofHash(fiatProofHash string)
- func (baseOrder *BaseOrder) SetNegotiationID(negotiationID negotiation.NegotiationID)
- type CodeType
- type GenesisState
- type NegotiationKeeper
- type Order
- type OrderDecoder
Constants ¶
View Source
const ( DefaultCodeSpace cTypes.CodespaceType = ModuleName CodeInvalidInputsOutputs cTypes.CodeType = 701 )
View Source
const ( ModuleName = "orders" StoreKey = ModuleName RouterKey = StoreKey QuerierRoute = RouterKey )
Variables ¶
View Source
var ModuleCdc *codec.Codec
View Source
var (
OrdersKey = []byte{0x07}
)
Functions ¶
func ErrNoInputsOutputs ¶
func ErrNoInputsOutputs(codeSpace cTypes.CodespaceType) cTypes.Error
func ErrUnauthorized ¶
func ErrUnauthorized(codeSpace cTypes.CodespaceType) cTypes.Error
func GetOrderKey ¶
func GetOrderKey(negotiationID negotiation.NegotiationID) []byte
func RegisterCodec ¶
func ValidateGensis ¶
func ValidateGensis(data GenesisState) error
Types ¶
type ACLKeeper ¶
type ACLKeeper interface {
GetAccountACLDetails(ctx cTypes.Context, fromAddress cTypes.AccAddress) (acl.ACLAccount, cTypes.Error)
}
type AccountKeeper ¶
type BaseOrder ¶
type BaseOrder struct { NegotiationID negotiation.NegotiationID `json:"negotiation_id"` FiatPegWallet types.FiatPegWallet `json:"fiat_peg_wallet"` AssetPegWallet types.AssetPegWallet `json:"asset_peg_wallet"` FiatProofHash string `json:"fiat_proof_hash"` AWBProofHash string `json:"awb_proof_hash"` }
func (BaseOrder) GetAWBProofHash ¶
func (BaseOrder) GetAssetPegWallet ¶
func (baseOrder BaseOrder) GetAssetPegWallet() types.AssetPegWallet
func (BaseOrder) GetFiatPegWallet ¶
func (baseOrder BaseOrder) GetFiatPegWallet() types.FiatPegWallet
func (BaseOrder) GetFiatProofHash ¶
func (BaseOrder) GetNegotiationID ¶
func (baseOrder BaseOrder) GetNegotiationID() negotiation.NegotiationID
func (*BaseOrder) SetAWBProofHash ¶
func (*BaseOrder) SetAssetPegWallet ¶
func (baseOrder *BaseOrder) SetAssetPegWallet(assetPegWallet types.AssetPegWallet)
func (*BaseOrder) SetFiatPegWallet ¶
func (baseOrder *BaseOrder) SetFiatPegWallet(fiatPegWallet types.FiatPegWallet)
func (*BaseOrder) SetFiatProofHash ¶
func (*BaseOrder) SetNegotiationID ¶
func (baseOrder *BaseOrder) SetNegotiationID(negotiationID negotiation.NegotiationID)
type GenesisState ¶
type GenesisState struct {
Orders []Order `json:"orders"`
}
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
type NegotiationKeeper ¶
type NegotiationKeeper interface {
GetNegotiation(ctx cTypes.Context, id negotiation.NegotiationID) (negotiation.Negotiation, cTypes.Error)
}
type Order ¶
type Order interface { GetNegotiationID() negotiation.NegotiationID SetNegotiationID(negotiation.NegotiationID) GetAssetPegWallet() types.AssetPegWallet SetAssetPegWallet(types.AssetPegWallet) GetFiatPegWallet() types.FiatPegWallet SetFiatPegWallet(types.FiatPegWallet) GetFiatProofHash() string SetFiatProofHash(string) GetAWBProofHash() string SetAWBProofHash(string) }
func ProtoBaseOrder ¶
func ProtoBaseOrder() Order
type OrderDecoder ¶
Click to show internal directories.
Click to hide internal directories.