types

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 tmtypes.RequestQuery) bool
	Query(state state.State, req tmtypes.RequestQuery) tmtypes.ResponseQuery

	AcceptTx(ctx Context, tx interface{}) bool
	CheckTx(state state.State, ctx Context, tx interface{}) tmtypes.ResponseCheckTx
	DeliverTx(state state.State, ctx Context, tx interface{}) tmtypes.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