types

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagNameApp        = "app"
	TagNameTxType     = "tx.type"
	TagNameDeployment = "market.deployment"
	TagNameLease      = "market.lease"

	TagAppAccount = "account"
	TxTypeSend    = "send"

	TagAppDeployment       = "deployment"
	TxTypeCreateDeployment = "deployment-create"
	TxTypeUpdateDeployment = "deployment-update"
	TxTypeCloseDeployment  = "deployment-close"

	TagAppOrder       = "order"
	TxTypeCreateOrder = "order-create"

	TagAppFulfillment       = "fulfillment"
	TxTypeCreateFulfillment = "fulfillment-create"
	TxTypeCloseFulfillment  = "fulfillment-close"

	TagAppLease       = "lease"
	TxTypeCreateLease = "lease-create"
	TxTypeCloseLease  = "lease-close"

	TagAppProvider       = "provider"
	TxTypeProviderCreate = "provider-create"
)

Variables

This section is empty.

Functions

func NewTagApp

func NewTagApp(name string) tmcommon.KVPair

func NewTagTxType

func NewTagTxType(name string) tmcommon.KVPair

func NewTags

func NewTags(appName, txType string) []tmcommon.KVPair

Types

type Application

type Application interface {
	Name() string
	AcceptQuery(req abci_types.RequestQuery) bool
	Query(state state.State, req abci_types.RequestQuery) abci_types.ResponseQuery

	AcceptTx(ctx Context, tx interface{}) bool
	CheckTx(state state.State, ctx Context, tx interface{}) abci_types.ResponseCheckTx
	DeliverTx(state state.State, ctx Context, tx interface{}) abci_types.ResponseDeliverTx
}

type BaseApp

type BaseApp struct {
	// contains filtered or unexported fields
}

func NewBaseApp

func NewBaseApp(name string, log log.Logger) *BaseApp

func (*BaseApp) Log

func (a *BaseApp) Log() log.Logger

func (*BaseApp) Name

func (a *BaseApp) Name() string

type Context

type Context interface {
	Signer() crypto.PubKey
}

func NewContext

func NewContext(tx *types.Tx) Context

type Error

type Error interface {
	Error() string
	Code() uint32
}

func ErrUnknownTransaction

func ErrUnknownTransaction() Error

func NewError

func NewError(code uint32, message string) Error

func WrapError

func WrapError(code uint32, err error) Error

Jump to

Keyboard shortcuts

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