Documentation ¶
Index ¶
- Variables
- func Application(name string, h weave.Handler, tx weave.TxDecoder, dbPath string, debug bool) (app.BaseApp, error)
- func Authenticator() x.Authenticator
- func Chain(authFn x.Authenticator, minFee coin.Coin) app.Decorators
- func CommitKVStore(dbPath string) (weave.CommitKVStore, error)
- func DecorateApp(application app.BaseApp, logger log.Logger) app.BaseApp
- func GenInitOptions(args []string) (json.RawMessage, error)
- func GenerateApp(options *server.Options) (abci.Application, error)
- func GenerateCoinKey() (weave.Address, string, error)
- func QueryRouter() weave.QueryRouter
- func Router(authFn x.Authenticator) *app.Router
- func Stack(minFee coin.Coin) weave.Handler
- func TxDecoder(bz []byte) (weave.Tx, error)
- type Tx
- func (*Tx) Descriptor() ([]byte, []int)
- func (m *Tx) GetCashFees() *cash.FeeInfo
- func (m *Tx) GetCashSendMsg() *cash.SendMsg
- func (tx *Tx) GetMsg() (weave.Msg, error)
- func (m *Tx) GetMultisig() [][]byte
- func (m *Tx) GetOrderbookCancelOrderMsg() *orderbook.CancelOrderMsg
- func (m *Tx) GetOrderbookCreateOrderMsg() *orderbook.CreateOrderMsg
- func (m *Tx) GetOrderbookCreateOrderbookMsg() *orderbook.CreateOrderBookMsg
- func (m *Tx) GetSigsSignatures() []*sigs.StdSignature
- func (m *Tx) GetSum() isTx_Sum
- func (m *Tx) Marshal() (dAtA []byte, err error)
- func (m *Tx) MarshalTo(dAtA []byte) (int, error)
- func (*Tx) ProtoMessage()
- func (m *Tx) Reset()
- func (m *Tx) Size() (n int)
- func (m *Tx) String() string
- func (m *Tx) Unmarshal(dAtA []byte) error
- func (m *Tx) XXX_DiscardUnknown()
- func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tx) XXX_Merge(src proto.Message)
- func (*Tx) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Tx) XXX_Size() int
- func (m *Tx) XXX_Unmarshal(b []byte) error
- type Tx_CashSendMsg
- type Tx_OrderbookCancelOrderMsg
- type Tx_OrderbookCreateOrderMsg
- type Tx_OrderbookCreateOrderbookMsg
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthCodec = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCodec = fmt.Errorf("proto: integer overflow") )
Functions ¶
func Application ¶
func Application(name string, h weave.Handler, tx weave.TxDecoder, dbPath string, debug bool) (app.BaseApp, error)
Application constructs a basic ABCI application with the given arguments.
func Authenticator ¶
func Authenticator() x.Authenticator
Authenticator returns authentication with multisigs and public key signatues
func Chain ¶
func Chain(authFn x.Authenticator, minFee coin.Coin) app.Decorators
Chain returns a chain of decorators, to handle authentication, fees, logging, and recovery
func CommitKVStore ¶
func CommitKVStore(dbPath string) (weave.CommitKVStore, error)
CommitKVStore returns an initialized KVStore that persists the data to the named path.
func DecorateApp ¶
DecorateApp adds initializers and Logger to an Application
func GenInitOptions ¶
func GenInitOptions(args []string) (json.RawMessage, error)
GenInitOptions will produce some basic options for one rich account, to use for dev mode
func GenerateApp ¶
func GenerateApp(options *server.Options) (abci.Application, error)
GenerateApp is used to create a stub for server/start.go command
func GenerateCoinKey ¶
GenerateCoinKey returns the address of a public key, along with the secret phrase to recover the private key. You can give coins to this address and return the recovery phrase to the user to access them.
func QueryRouter ¶
func QueryRouter() weave.QueryRouter
QueryRouter returns a default query router, allowing access to "/auth", "/contracts" and "/"
Types ¶
type Tx ¶
type Tx struct { // fee info, autogenerates GetFees() CashFees *cash.FeeInfo `protobuf:"bytes,20,opt,name=cash_fees,json=cashFees,proto3" json:"cash_fees,omitempty"` SigsSignatures []*sigs.StdSignature `protobuf:"bytes,21,rep,name=sigs_signatures,json=sigsSignatures,proto3" json:"sigs_signatures,omitempty"` // ID of a multisig contract. Multisig [][]byte `protobuf:"bytes,4,rep,name=multisig,proto3" json:"multisig,omitempty"` // msg is a sum type over all allowed messages on this chain. // // Types that are valid to be assigned to Sum: // *Tx_CashSendMsg // *Tx_OrderbookCreateOrderbookMsg // *Tx_OrderbookCreateOrderMsg // *Tx_OrderbookCancelOrderMsg Sum isTx_Sum `protobuf_oneof:"sum"` }
Tx contains the message
func (*Tx) Descriptor ¶
func (*Tx) GetCashFees ¶
func (*Tx) GetCashSendMsg ¶
func (*Tx) GetMultisig ¶
func (*Tx) GetOrderbookCancelOrderMsg ¶
func (m *Tx) GetOrderbookCancelOrderMsg() *orderbook.CancelOrderMsg
func (*Tx) GetOrderbookCreateOrderMsg ¶
func (m *Tx) GetOrderbookCreateOrderMsg() *orderbook.CreateOrderMsg
func (*Tx) GetOrderbookCreateOrderbookMsg ¶
func (m *Tx) GetOrderbookCreateOrderbookMsg() *orderbook.CreateOrderBookMsg
func (*Tx) GetSigsSignatures ¶
func (m *Tx) GetSigsSignatures() []*sigs.StdSignature
func (*Tx) ProtoMessage ¶
func (*Tx) ProtoMessage()
func (*Tx) XXX_DiscardUnknown ¶
func (m *Tx) XXX_DiscardUnknown()
func (*Tx) XXX_OneofFuncs ¶
func (*Tx) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Tx) XXX_Unmarshal ¶
type Tx_CashSendMsg ¶
type Tx_CashSendMsg struct {
CashSendMsg *cash.SendMsg `protobuf:"bytes,51,opt,name=cash_send_msg,json=cashSendMsg,proto3,oneof"`
}
func (*Tx_CashSendMsg) Size ¶
func (m *Tx_CashSendMsg) Size() (n int)
type Tx_OrderbookCancelOrderMsg ¶
type Tx_OrderbookCancelOrderMsg struct {
OrderbookCancelOrderMsg *orderbook.CancelOrderMsg `protobuf:"bytes,102,opt,name=orderbook_cancel_order_msg,json=orderbookCancelOrderMsg,proto3,oneof"`
}
func (*Tx_OrderbookCancelOrderMsg) MarshalTo ¶
func (m *Tx_OrderbookCancelOrderMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_OrderbookCancelOrderMsg) Size ¶
func (m *Tx_OrderbookCancelOrderMsg) Size() (n int)
type Tx_OrderbookCreateOrderMsg ¶
type Tx_OrderbookCreateOrderMsg struct {
OrderbookCreateOrderMsg *orderbook.CreateOrderMsg `protobuf:"bytes,101,opt,name=orderbook_create_order_msg,json=orderbookCreateOrderMsg,proto3,oneof"`
}
func (*Tx_OrderbookCreateOrderMsg) MarshalTo ¶
func (m *Tx_OrderbookCreateOrderMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_OrderbookCreateOrderMsg) Size ¶
func (m *Tx_OrderbookCreateOrderMsg) Size() (n int)
type Tx_OrderbookCreateOrderbookMsg ¶
type Tx_OrderbookCreateOrderbookMsg struct {
OrderbookCreateOrderbookMsg *orderbook.CreateOrderBookMsg `protobuf:"bytes,100,opt,name=orderbook_create_orderbook_msg,json=orderbookCreateOrderbookMsg,proto3,oneof"`
}
func (*Tx_OrderbookCreateOrderbookMsg) MarshalTo ¶
func (m *Tx_OrderbookCreateOrderbookMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_OrderbookCreateOrderbookMsg) Size ¶
func (m *Tx_OrderbookCreateOrderbookMsg) Size() (n int)