types

package
v0.2.2-0...-13ba25a Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCodespace sdk.CodespaceType = ModuleName

	CodeSendDisabled         sdk.CodeType = 101
	CodeInvalidInputsOutputs sdk.CodeType = 102
	CodeNegativeAmount       sdk.CodeType = 103
)

Bank errors reserve 100 ~ 199.

View Source
const (
	// module name
	ModuleName   = "bank"
	QuerierRoute = ModuleName
)
View Source
const (
	// DefaultParamspace for params keeper
	DefaultParamspace = ModuleName
	// DefaultSendEnabled enabled
	DefaultSendEnabled = true
)
View Source
const RouterKey = ModuleName

RouterKey is they name of the bank module

Variables

View Source
var (
	EventTypeTransfer     = "transfer"
	EventTypeIssueAsset   = "issueAsset"
	EventTypeIssueFiat    = "issueFiat"
	EventTypeRedeemAsset  = "redeemAsset"
	EventTypeRedeemFiat   = "redeemFiat"
	EventTypeSendAsset    = "sendAsset"
	EventTypeSendFiat     = "sendFiat"
	EventTypeExecuteOrder = "executeOrder"
	EventTypeReleaseAsset = "releaseAsset"

	AttributeKeyRecipient = "recipient"
	AttributeKeySender    = "sender"

	AttributeValueCategory = ModuleName
)

Bank module event types

View Source
var ModuleCdc *codec.Codec

module codec

View Source
var ParamStoreKeySendEnabled = []byte("sendenabled")

ParamStoreKeySendEnabled is store's key for SendEnabled

Functions

func BuildMsgDefineACL

func BuildMsgDefineACL(from sdk.AccAddress, to sdk.AccAddress, aclAccount acl.ACLAccount) sdk.Msg

BuildMsgDefineACL : build define acls message

func BuildMsgDefineACLWithACLs

func BuildMsgDefineACLWithACLs(msgs []DefineACL) sdk.Msg

BuildMsgDefineACLWithACLs : build define acls message

func BuildMsgDefineOrganization

func BuildMsgDefineOrganization(from sdk.AccAddress, to sdk.AccAddress, organizationID acl.OrganizationID, zoneID acl.ZoneID) sdk.Msg

BuildMsgDefineOrganization : build define organization message

func BuildMsgDefineOrganizationWithMsgs

func BuildMsgDefineOrganizationWithMsgs(msgs []DefineOrganization) sdk.Msg

BuildMsgDefineOrganizationWithMsgs : build define organization message

func BuildMsgDefineZone

func BuildMsgDefineZone(from sdk.AccAddress, to sdk.AccAddress, zoneID acl.ZoneID) sdk.Msg

BuildMsgDefineZone : build define zones message

func BuildMsgDefineZoneWithDefineZones

func BuildMsgDefineZoneWithDefineZones(msgs []DefineZone) sdk.Msg

BuildMsgDefineZoneWithDefineZones : build define zones message

func ErrInputOutputMismatch

func ErrInputOutputMismatch(codespace sdk.CodespaceType) sdk.Error

ErrInputOutputMismatch is an error

func ErrNegativeAmount

func ErrNegativeAmount(codeSpace sdk.CodespaceType, msg string) sdk.Error

func ErrNoInputs

func ErrNoInputs(codespace sdk.CodespaceType) sdk.Error

ErrNoInputs is an error

func ErrNoOutputs

func ErrNoOutputs(codespace sdk.CodespaceType) sdk.Error

ErrNoOutputs is an error

func ErrSendDisabled

func ErrSendDisabled(codespace sdk.CodespaceType) sdk.Error

ErrSendDisabled is an error

func ParamKeyTable

func ParamKeyTable() params.KeyTable

ParamKeyTable type declaration for parameters

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

Register concrete types on codec codec

func ValidateInputsOutputs

func ValidateInputsOutputs(inputs []Input, outputs []Output) sdk.Error

ValidateInputsOutputs validates that each respective input and output is valid and that the sum of inputs is equal to the sum of outputs.

Types

type AccountKeeper

type AccountKeeper interface {
	NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) exported.Account

	GetAccount(ctx sdk.Context, addr sdk.AccAddress) exported.Account
	GetAllAccounts(ctx sdk.Context) []exported.Account
	SetAccount(ctx sdk.Context, acc exported.Account)

	GetNextAssetPegHash(ctx sdk.Context) int
	GetNextFiatPegHash(ctx sdk.Context) int

	IterateAccounts(ctx sdk.Context, process func(exported.Account) bool)
}

AccountKeeper defines the account contract that must be fulfilled when creating a x/bank keeper.

type BuyerExecuteOrder

type BuyerExecuteOrder struct {
	MediatorAddress sdk.AccAddress `json:"mediatorAddress"`
	BuyerAddress    sdk.AccAddress `json:"buyerAddress"`
	SellerAddress   sdk.AccAddress `json:"sellerAddress"`
	PegHash         types.PegHash  `json:"pegHash"`
	FiatProofHash   string         `json:"fiatProofHash"`
}

BuyerExecuteOrder - transaction input

func NewBuyerExecuteOrder

func NewBuyerExecuteOrder(mediatorAddress sdk.AccAddress, buyerAddress sdk.AccAddress, sellerAddress sdk.AccAddress, pegHash types.PegHash, fiatProofHash string) BuyerExecuteOrder

NewBuyerExecuteOrder : initializer

func (BuyerExecuteOrder) GetSignBytes

func (in BuyerExecuteOrder) GetSignBytes() []byte

GetSignBytes : get bytes to sign

func (BuyerExecuteOrder) ValidateBasic

func (in BuyerExecuteOrder) ValidateBasic() sdk.Error

type DefineACL

type DefineACL struct {
	From       sdk.AccAddress `json:"from"`
	To         sdk.AccAddress `json:"to"`
	ACLAccount acl.ACLAccount `json:"aclAccount"`
}

DefineACL : indular define acl message

func BuildMsgDefineACLs

func BuildMsgDefineACLs(from sdk.AccAddress, to sdk.AccAddress, aclAccount acl.ACLAccount, msgs []DefineACL) []DefineACL

BuildMsgDefineACLs : build define acls message

func NewDefineACL

func NewDefineACL(from sdk.AccAddress, to sdk.AccAddress, aclAccount acl.ACLAccount) DefineACL

NewDefineACL : new define acl struct

func (DefineACL) GetSignBytes

func (in DefineACL) GetSignBytes() []byte

GetSignBytes : get bytes to sign

func (DefineACL) ValidateBasic

func (in DefineACL) ValidateBasic() sdk.Error

ValidateBasic : Validate Basic

type DefineOrganization

type DefineOrganization struct {
	From           sdk.AccAddress     `json:"from"`
	To             sdk.AccAddress     `json:"to"`
	OrganizationID acl.OrganizationID `json:"organizationID"`
	ZoneID         acl.ZoneID         `json:"zoneID"`
}

DefineOrganization : singular define organization message

func BuildMsgDefineOrganizations

func BuildMsgDefineOrganizations(from sdk.AccAddress, to sdk.AccAddress, organizationID acl.OrganizationID, zoneID acl.ZoneID, msgs []DefineOrganization) []DefineOrganization

BuildMsgDefineOrganizations : build define organization message

func NewDefineOrganization

func NewDefineOrganization(from sdk.AccAddress, to sdk.AccAddress, organizationID acl.OrganizationID, zoneID acl.ZoneID) DefineOrganization

NewDefineOrganization : new define organization struct

func (DefineOrganization) GetSignBytes

func (in DefineOrganization) GetSignBytes() []byte

GetSignBytes : get bytes to sign

func (DefineOrganization) ValidateBasic

func (in DefineOrganization) ValidateBasic() sdk.Error

ValidateBasic : Validate Basic

type DefineZone

type DefineZone struct {
	From   sdk.AccAddress `json:"from"`
	To     sdk.AccAddress `json:"to"`
	ZoneID acl.ZoneID     `json:"zoneID"`
}

DefineZone : singular define zone message *****ACL

func BuildMsgDefineZones

func BuildMsgDefineZones(from sdk.AccAddress, to sdk.AccAddress, zoneID acl.ZoneID, msgs []DefineZone) []DefineZone

BuildMsgDefineZones : build define zones message

func NewDefineZone

func NewDefineZone(from sdk.AccAddress, to sdk.AccAddress, zoneID acl.ZoneID) DefineZone

NewDefineZone : new define zone struct

func (DefineZone) GetSignBytes

func (in DefineZone) GetSignBytes() []byte

GetSignBytes : get bytes to sign

func (DefineZone) ValidateBasic

func (in DefineZone) ValidateBasic() sdk.Error

ValidateBasic : Validate Basic

type Input

type Input struct {
	Address sdk.AccAddress `json:"address" yaml:"address"`
	Coins   sdk.Coins      `json:"coins" yaml:"coins"`
}

Input models transaction input

func NewInput

func NewInput(addr sdk.AccAddress, coins sdk.Coins) Input

NewInput - create a transaction input, used with MsgMultiSend

func (Input) ValidateBasic

func (in Input) ValidateBasic() sdk.Error

ValidateBasic - validate transaction input

type IssueAsset

type IssueAsset struct {
	IssuerAddress sdk.AccAddress `json:"issuerAddress"`
	ToAddress     sdk.AccAddress `json:"toAddress"`
	AssetPeg      types.AssetPeg `json:"assetPeg"`
}

IssueAsset - transaction input

func NewIssueAsset

func NewIssueAsset(issuerAddress sdk.AccAddress, toAddress sdk.AccAddress, assetPeg types.AssetPeg) IssueAsset

NewIssueAsset : initializer

func (IssueAsset) GetSignBytes

func (in IssueAsset) GetSignBytes() []byte

GetSignBytes : get bytes to sign

func (IssueAsset) ValidateBasic

func (in IssueAsset) ValidateBasic() sdk.Error

type IssueFiat

type IssueFiat struct {
	IssuerAddress sdk.AccAddress `json:"issuerAddress"`
	ToAddress     sdk.AccAddress `json:"toAddress"`
	FiatPeg       types.FiatPeg  `json:"fiatPeg"`
}

IssueFiat - transaction input

func NewIssueFiat

func NewIssueFiat(issuerAddress sdk.AccAddress, toAddress sdk.AccAddress, fiatPeg types.FiatPeg) IssueFiat

NewIssueFiat : initializer

func (IssueFiat) GetSignBytes

func (in IssueFiat) GetSignBytes() []byte

GetSignBytes : get bytes to sign

func (IssueFiat) ValidateBasic

func (in IssueFiat) ValidateBasic() sdk.Error

type MsgBankBuyerExecuteOrders

type MsgBankBuyerExecuteOrders struct {
	BuyerExecuteOrders []BuyerExecuteOrder `json:"buyerExecuteOrders"`
}

MsgBankBuyerExecuteOrders : high level issuance of fiats module

func NewMsgBankBuyerExecuteOrders

func NewMsgBankBuyerExecuteOrders(buyerExecuteOrders []BuyerExecuteOrder) MsgBankBuyerExecuteOrders

NewMsgBankBuyerExecuteOrders : initilizer

func (MsgBankBuyerExecuteOrders) GetSignBytes

func (msg MsgBankBuyerExecuteOrders) GetSignBytes() []byte

GetSignBytes : implements msg

func (MsgBankBuyerExecuteOrders) GetSigners

func (msg MsgBankBuyerExecuteOrders) GetSigners() []sdk.AccAddress

GetSigners : implements msg

func (MsgBankBuyerExecuteOrders) Route

func (msg MsgBankBuyerExecuteOrders) Route() string

func (MsgBankBuyerExecuteOrders) Type

func (msg MsgBankBuyerExecuteOrders) Type() string

Type : implements msg

func (MsgBankBuyerExecuteOrders) ValidateBasic

func (msg MsgBankBuyerExecuteOrders) ValidateBasic() sdk.Error

ValidateBasic : implements msg

type MsgBankIssueAssets

type MsgBankIssueAssets struct {
	IssueAssets []IssueAsset `json:"issueAssets"`
}

MsgBankIssueAssets : high level issuance of assets module

func NewMsgBankIssueAssets

func NewMsgBankIssueAssets(issueAssets []IssueAsset) MsgBankIssueAssets

NewMsgBankIssueAssets : initilizer

func (MsgBankIssueAssets) GetSignBytes

func (msg MsgBankIssueAssets) GetSignBytes() []byte

GetSignBytes : implements msg

func (MsgBankIssueAssets) GetSigners

func (msg MsgBankIssueAssets) GetSigners() []sdk.AccAddress

GetSigners : implements msg

func (MsgBankIssueAssets) Route

func (msg MsgBankIssueAssets) Route() string

func (MsgBankIssueAssets) Type

func (msg MsgBankIssueAssets) Type() string

Type : implements msg

func (MsgBankIssueAssets) ValidateBasic

func (msg MsgBankIssueAssets) ValidateBasic() sdk.Error

ValidateBasic : implements msg

type MsgBankIssueFiats

type MsgBankIssueFiats struct {
	IssueFiats []IssueFiat `json:"issueFiats"`
}

MsgBankIssueFiats : high level issuance of fiats module

func NewMsgBankIssueFiats

func NewMsgBankIssueFiats(issueFiats []IssueFiat) MsgBankIssueFiats

NewMsgBankIssueFiats : initilizer

func (MsgBankIssueFiats) GetSignBytes

func (msg MsgBankIssueFiats) GetSignBytes() []byte

GetSignBytes : implements msg

func (MsgBankIssueFiats) GetSigners

func (msg MsgBankIssueFiats) GetSigners() []sdk.AccAddress

GetSigners : implements msg

func (MsgBankIssueFiats) Route

func (msg MsgBankIssueFiats) Route() string

func (MsgBankIssueFiats) Type

func (msg MsgBankIssueFiats) Type() string

Type : implements msg

func (MsgBankIssueFiats) ValidateBasic

func (msg MsgBankIssueFiats) ValidateBasic() sdk.Error

ValidateBasic : implements msg

type MsgBankRedeemAssets

type MsgBankRedeemAssets struct {
	RedeemAssets []RedeemAsset `json:"redeemAssets"`
}

MsgBankRedeemAssets : Message to redeem issued assets

func NewMsgBankRedeemAssets

func NewMsgBankRedeemAssets(redeemAssets []RedeemAsset) MsgBankRedeemAssets

NewMsgBankRedeemAssets : initializer

func (MsgBankRedeemAssets) GetSignBytes

func (msg MsgBankRedeemAssets) GetSignBytes() []byte

GetSignBytes : implements msg

func (MsgBankRedeemAssets) GetSigners

func (msg MsgBankRedeemAssets) GetSigners() []sdk.AccAddress

GetSigners : implements msg

func (MsgBankRedeemAssets) Route

func (msg MsgBankRedeemAssets) Route() string

func (MsgBankRedeemAssets) Type

func (msg MsgBankRedeemAssets) Type() string

Type : implements msg

func (MsgBankRedeemAssets) ValidateBasic

func (msg MsgBankRedeemAssets) ValidateBasic() sdk.Error

ValidateBasic : implements msg

type MsgBankRedeemFiats

type MsgBankRedeemFiats struct {
	RedeemFiats []RedeemFiat `json:"redeemFiats"`
}

MsgBankRedeemFiats : Message to redeem issued fiats

func NewMsgBankRedeemFiats

func NewMsgBankRedeemFiats(redeemFiats []RedeemFiat) MsgBankRedeemFiats

NewMsgBankRedeemFiats : initializer

func (MsgBankRedeemFiats) GetSignBytes

func (msg MsgBankRedeemFiats) GetSignBytes() []byte

GetSignBytes : implements msg

func (MsgBankRedeemFiats) GetSigners

func (msg MsgBankRedeemFiats) GetSigners() []sdk.AccAddress

GetSigners : implements msg

func (MsgBankRedeemFiats) Route

func (msg MsgBankRedeemFiats) Route() string

func (MsgBankRedeemFiats) Type

func (msg MsgBankRedeemFiats) Type() string

Type : implements msg

func (MsgBankRedeemFiats) ValidateBasic

func (msg MsgBankRedeemFiats) ValidateBasic() sdk.Error

ValidateBasic : implements msg

type MsgBankReleaseAssets

type MsgBankReleaseAssets struct {
	ReleaseAssets []ReleaseAsset `json:"releseAssets"`
}

MsgBankReleaseAssets : high level release of asset module

func NewMsgBankReleaseAssets

func NewMsgBankReleaseAssets(releseAsset []ReleaseAsset) MsgBankReleaseAssets

NewMsgBankReleaseAssets : initilizer

func (MsgBankReleaseAssets) GetSignBytes

func (msg MsgBankReleaseAssets) GetSignBytes() []byte

GetSignBytes : implements msg

func (MsgBankReleaseAssets) GetSigners

func (msg MsgBankReleaseAssets) GetSigners() []sdk.AccAddress

GetSigners : implements msg

func (MsgBankReleaseAssets) Route

func (msg MsgBankReleaseAssets) Route() string

func (MsgBankReleaseAssets) Type

func (msg MsgBankReleaseAssets) Type() string

Type : implements msg

func (MsgBankReleaseAssets) ValidateBasic

func (msg MsgBankReleaseAssets) ValidateBasic() sdk.Error

ValidateBasic : implements msg

type MsgBankSellerExecuteOrders

type MsgBankSellerExecuteOrders struct {
	SellerExecuteOrders []SellerExecuteOrder `json:"sellerExecuteOrders"`
}

MsgBankSellerExecuteOrders : high level issuance of fiats module

func NewMsgBankSellerExecuteOrders

func NewMsgBankSellerExecuteOrders(sellerExecuteOrders []SellerExecuteOrder) MsgBankSellerExecuteOrders

NewMsgBankSellerExecuteOrders : initilizer

func (MsgBankSellerExecuteOrders) GetSignBytes

func (msg MsgBankSellerExecuteOrders) GetSignBytes() []byte

GetSignBytes : implements msg

func (MsgBankSellerExecuteOrders) GetSigners

func (msg MsgBankSellerExecuteOrders) GetSigners() []sdk.AccAddress

GetSigners : implements msg

func (MsgBankSellerExecuteOrders) Route

func (msg MsgBankSellerExecuteOrders) Route() string

func (MsgBankSellerExecuteOrders) Type

Type : implements msg

func (MsgBankSellerExecuteOrders) ValidateBasic

func (msg MsgBankSellerExecuteOrders) ValidateBasic() sdk.Error

ValidateBasic : implements msg

type MsgBankSendAssets

type MsgBankSendAssets struct {
	SendAssets []SendAsset `json:"sendAssets"`
}

MsgBankSendAssets : high level issuance of assets module

func NewMsgBankSendAssets

func NewMsgBankSendAssets(sendAssets []SendAsset) MsgBankSendAssets

NewMsgBankSendAssets : initilizer

func (MsgBankSendAssets) GetSignBytes

func (msg MsgBankSendAssets) GetSignBytes() []byte

GetSignBytes : implements msg

func (MsgBankSendAssets) GetSigners

func (msg MsgBankSendAssets) GetSigners() []sdk.AccAddress

GetSigners : implements msg

func (MsgBankSendAssets) Route

func (msg MsgBankSendAssets) Route() string

func (MsgBankSendAssets) Type

func (msg MsgBankSendAssets) Type() string

Type : implements msg

func (MsgBankSendAssets) ValidateBasic

func (msg MsgBankSendAssets) ValidateBasic() sdk.Error

ValidateBasic : implements msg

type MsgBankSendFiats

type MsgBankSendFiats struct {
	SendFiats []SendFiat `json:"sendFiats"`
}

MsgBankSendFiats : high level issuance of fiats module

func NewMsgBankSendFiats

func NewMsgBankSendFiats(sendFiats []SendFiat) MsgBankSendFiats

NewMsgBankSendFiats : initilizer

func (MsgBankSendFiats) GetSignBytes

func (msg MsgBankSendFiats) GetSignBytes() []byte

GetSignBytes : implements msg

func (MsgBankSendFiats) GetSigners

func (msg MsgBankSendFiats) GetSigners() []sdk.AccAddress

GetSigners : implements msg

func (MsgBankSendFiats) Route

func (msg MsgBankSendFiats) Route() string

func (MsgBankSendFiats) Type

func (msg MsgBankSendFiats) Type() string

Type : implements msg

func (MsgBankSendFiats) ValidateBasic

func (msg MsgBankSendFiats) ValidateBasic() sdk.Error

ValidateBasic : implements msg

type MsgDefineACLs

type MsgDefineACLs struct {
	DefineACLs []DefineACL `json:"defineACLs"`
}

MsgDefineACLs : message define acls

func NewMsgDefineACLs

func NewMsgDefineACLs(defineACLs []DefineACL) MsgDefineACLs

NewMsgDefineACLs : new message define acls

func (MsgDefineACLs) GetSignBytes

func (msg MsgDefineACLs) GetSignBytes() []byte

GetSignBytes : implements msg

func (MsgDefineACLs) GetSigners

func (msg MsgDefineACLs) GetSigners() []sdk.AccAddress

GetSigners : implements msg

func (MsgDefineACLs) Route

func (msg MsgDefineACLs) Route() string

func (MsgDefineACLs) Type

func (msg MsgDefineACLs) Type() string

Type : implements msg

func (MsgDefineACLs) ValidateBasic

func (msg MsgDefineACLs) ValidateBasic() sdk.Error

ValidateBasic : implements msg

type MsgDefineOrganizations

type MsgDefineOrganizations struct {
	DefineOrganizations []DefineOrganization `json:"defineOrganizations"`
}

MsgDefineOrganizations : message define organizations

func NewMsgDefineOrganizations

func NewMsgDefineOrganizations(defineOrganizations []DefineOrganization) MsgDefineOrganizations

NewMsgDefineOrganizations : new message define organizations

func (MsgDefineOrganizations) GetSignBytes

func (msg MsgDefineOrganizations) GetSignBytes() []byte

GetSignBytes : implements msg

func (MsgDefineOrganizations) GetSigners

func (msg MsgDefineOrganizations) GetSigners() []sdk.AccAddress

GetSigners : implements msg

func (MsgDefineOrganizations) Route

func (msg MsgDefineOrganizations) Route() string

func (MsgDefineOrganizations) Type

func (msg MsgDefineOrganizations) Type() string

Type : implements msg

func (MsgDefineOrganizations) ValidateBasic

func (msg MsgDefineOrganizations) ValidateBasic() sdk.Error

ValidateBasic : implements msg

type MsgDefineZones

type MsgDefineZones struct {
	DefineZones []DefineZone `json:"defineZones"`
}

MsgDefineZones : message define zones

func NewMsgDefineZones

func NewMsgDefineZones(defineZones []DefineZone) MsgDefineZones

NewMsgDefineZones : new message define zones

func (MsgDefineZones) GetSignBytes

func (msg MsgDefineZones) GetSignBytes() []byte

GetSignBytes : implements msg

func (MsgDefineZones) GetSigners

func (msg MsgDefineZones) GetSigners() []sdk.AccAddress

GetSigners : implements msg

func (MsgDefineZones) Route

func (msg MsgDefineZones) Route() string

func (MsgDefineZones) Type

func (msg MsgDefineZones) Type() string

Type : implements msg

func (MsgDefineZones) ValidateBasic

func (msg MsgDefineZones) ValidateBasic() sdk.Error

ValidateBasic : implements msg

type MsgMultiSend

type MsgMultiSend struct {
	Inputs  []Input  `json:"inputs" yaml:"inputs"`
	Outputs []Output `json:"outputs" yaml:"outputs"`
}

MsgMultiSend - high level transaction of the coin module

func NewMsgMultiSend

func NewMsgMultiSend(in []Input, out []Output) MsgMultiSend

NewMsgMultiSend - construct arbitrary multi-in, multi-out send msg.

func (MsgMultiSend) GetSignBytes

func (msg MsgMultiSend) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgMultiSend) GetSigners

func (msg MsgMultiSend) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (MsgMultiSend) Route

func (msg MsgMultiSend) Route() string

Route Implements Msg

func (MsgMultiSend) Type

func (msg MsgMultiSend) Type() string

Type Implements Msg

func (MsgMultiSend) ValidateBasic

func (msg MsgMultiSend) ValidateBasic() sdk.Error

ValidateBasic Implements Msg.

type MsgSend

type MsgSend struct {
	FromAddress sdk.AccAddress `json:"from_address" yaml:"from_address"`
	ToAddress   sdk.AccAddress `json:"to_address" yaml:"to_address"`
	Amount      sdk.Coins      `json:"amount" yaml:"amount"`
}

MsgSend - high level transaction of the coin module

func NewMsgSend

func NewMsgSend(fromAddr, toAddr sdk.AccAddress, amount sdk.Coins) MsgSend

NewMsgSend - construct arbitrary multi-in, multi-out send msg.

func (MsgSend) GetSignBytes

func (msg MsgSend) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgSend) GetSigners

func (msg MsgSend) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (MsgSend) Route

func (msg MsgSend) Route() string

Route Implements Msg.

func (MsgSend) Type

func (msg MsgSend) Type() string

Type Implements Msg.

func (MsgSend) ValidateBasic

func (msg MsgSend) ValidateBasic() sdk.Error

ValidateBasic Implements Msg.

type Output

type Output struct {
	Address sdk.AccAddress `json:"address" yaml:"address"`
	Coins   sdk.Coins      `json:"coins" yaml:"coins"`
}

Output models transaction outputs

func NewOutput

func NewOutput(addr sdk.AccAddress, coins sdk.Coins) Output

NewOutput - create a transaction output, used with MsgMultiSend

func (Output) ValidateBasic

func (out Output) ValidateBasic() sdk.Error

ValidateBasic - validate transaction output

type QueryBalanceParams

type QueryBalanceParams struct {
	Address sdk.AccAddress
}

QueryBalanceParams defines the params for querying an account balance.

func NewQueryBalanceParams

func NewQueryBalanceParams(addr sdk.AccAddress) QueryBalanceParams

NewQueryBalanceParams creates a new instance of QueryBalanceParams.

type RedeemAsset

type RedeemAsset struct {
	IssuerAddress   sdk.AccAddress `json:"issuerAddress"`
	RedeemerAddress sdk.AccAddress `json:"redeemerAddress"`
	PegHash         types.PegHash  `json:"pegHash"`
}

RedeemAsset : transsction input

func NewRedeemAsset

func NewRedeemAsset(issuerAddress sdk.AccAddress, redeemerAddress sdk.AccAddress, pegHash types.PegHash) RedeemAsset

NewRedeemAsset : initializer

func (RedeemAsset) GetSignBytes

func (in RedeemAsset) GetSignBytes() []byte

GetSignBytes : get bytes to sign

func (RedeemAsset) ValidateBasic

func (in RedeemAsset) ValidateBasic() sdk.Error

type RedeemFiat

type RedeemFiat struct {
	RedeemerAddress sdk.AccAddress `json:"redeemerAddress"`
	IssuerAddress   sdk.AccAddress `json:"issuerAddress"`
	Amount          int64          `json:"amount"`
}

RedeemFiat : transaction input

func NewRedeemFiat

func NewRedeemFiat(redeemerAddress sdk.AccAddress, issuerAddress sdk.AccAddress, amount int64) RedeemFiat

NewRedeemFiat : initializer

func (RedeemFiat) GetSignBytes

func (in RedeemFiat) GetSignBytes() []byte

GetSignBytes : get bytes to sign

func (RedeemFiat) ValidateBasic

func (in RedeemFiat) ValidateBasic() sdk.Error

type ReleaseAsset

type ReleaseAsset struct {
	ZoneAddress  sdk.AccAddress `json:"zoneAddress"`
	OwnerAddress sdk.AccAddress `json:"ownerAddress"`
	PegHash      types.PegHash  `json:"pegHash"`
}

ReleaseAsset - transaction input

func NewReleaseAsset

func NewReleaseAsset(zoneAddress sdk.AccAddress, ownerAddress sdk.AccAddress, pegHash types.PegHash) ReleaseAsset

NewReleaseAsset : initializer

func (ReleaseAsset) GetSignBytes

func (in ReleaseAsset) GetSignBytes() []byte

GetSignBytes : get bytes to sign

func (ReleaseAsset) ValidateBasic

func (in ReleaseAsset) ValidateBasic() sdk.Error

type ReputationKeeper

type ReputationKeeper interface {
	SetSendAssetsPositiveTx(ctx sdk.Context)
}

type SellerExecuteOrder

type SellerExecuteOrder struct {
	MediatorAddress sdk.AccAddress `json:"mediatorAddress"`
	BuyerAddress    sdk.AccAddress `json:"buyerAddress"`
	SellerAddress   sdk.AccAddress `json:"sellerAddress"`
	PegHash         types.PegHash  `json:"pegHash"`
	AWBProofHash    string         `json:"awbProofHash"`
}

SellerExecuteOrder - transaction input

func NewSellerExecuteOrder

func NewSellerExecuteOrder(mediatorAddress sdk.AccAddress, buyerAddress sdk.AccAddress, sellerAddress sdk.AccAddress, pegHash types.PegHash, awbProofHash string) SellerExecuteOrder

NewSellerExecuteOrder : initializer

func (SellerExecuteOrder) GetSignBytes

func (in SellerExecuteOrder) GetSignBytes() []byte

GetSignBytes : get bytes to sign

func (SellerExecuteOrder) ValidateBasic

func (in SellerExecuteOrder) ValidateBasic() sdk.Error

type SendAsset

type SendAsset struct {
	FromAddress sdk.AccAddress `json:"fromAddress"`
	ToAddress   sdk.AccAddress `json:"toAddress"`
	PegHash     types.PegHash  `json:"pegHash"`
}

SendAsset - transaction input

func NewSendAsset

func NewSendAsset(fromAddress sdk.AccAddress, toAddress sdk.AccAddress, pegHash types.PegHash) SendAsset

NewSendAsset : initializer

func (SendAsset) GetSignBytes

func (in SendAsset) GetSignBytes() []byte

GetSignBytes : get bytes to sign

func (SendAsset) ValidateBasic

func (in SendAsset) ValidateBasic() sdk.Error

type SendFiat

type SendFiat struct {
	FromAddress sdk.AccAddress `json:"fromAddress"`
	ToAddress   sdk.AccAddress `json:"toAddress"`
	PegHash     types.PegHash  `json:"pegHash"`
	Amount      int64          `json:"amount"`
}

SendFiat - transaction input

func NewSendFiat

func NewSendFiat(fromAddress sdk.AccAddress, toAddress sdk.AccAddress, pegHash types.PegHash, amount int64) SendFiat

NewSendFiat : initializer

func (SendFiat) GetSignBytes

func (in SendFiat) GetSignBytes() []byte

GetSignBytes : get bytes to sign

func (SendFiat) ValidateBasic

func (in SendFiat) ValidateBasic() sdk.Error

Jump to

Keyboard shortcuts

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