{"modulePath":"github.com/iov-one/tutorial","version":"v0.0.0-20190806135343-59eeb304638e","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package app\n\n## Variables\n\n```go\nvar (\n\tErrInvalidLengthCodec = fmt.Errorf(\"proto: negative length found during unmarshaling\")\n\tErrIntOverflowCodec   = fmt.Errorf(\"proto: integer overflow\")\n)\n```\n\n## Functions\n\n```go\nfunc Application(name string, h weave.Handler,\n\ttx weave.TxDecoder, dbPath string, debug bool) (app.BaseApp, error)\n```\nApplication constructs a basic ABCI application with the given arguments.\n\n```go\nfunc Authenticator() x.Authenticator\n```\nAuthenticator returns authentication with multisigs and public key signatues\n\n```go\nfunc Chain(authFn x.Authenticator, minFee coin.Coin) app.Decorators\n```\nChain returns a chain of decorators, to handle authentication, fees, logging, and recovery\n\n```go\nfunc CommitKVStore(dbPath string) (weave.CommitKVStore, error)\n```\nCommitKVStore returns an initialized KVStore that persists the data to the named path.\n\n```go\nfunc DecorateApp(application app.BaseApp, logger log.Logger) app.BaseApp\n```\nDecorateApp adds initializers and Logger to an Application\n\n```go\nfunc GenInitOptions(args []string) (json.RawMessage, error)\n```\nGenInitOptions will produce some basic options for one rich account, to use for dev mode\n\n```go\nfunc GenerateApp(options *server.Options) (abci.Application, error)\n```\nGenerateApp is used to create a stub for server/start.go command\n\n```go\nfunc GenerateCoinKey() (weave.Address, string, error)\n```\nGenerateCoinKey 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.\n\n```go\nfunc QueryRouter() weave.QueryRouter\n```\nQueryRouter returns a default query router, allowing access to \"/auth\", \"/contracts\" and \"/\"\n\n```go\nfunc Router(authFn x.Authenticator) *app.Router\n```\nRouter returns a default router\n\n```go\nfunc Stack(minFee coin.Coin) weave.Handler\n```\nStack wires up a standard router with a standard decorator chain. This can be passed into BaseApp.\n\n```go\nfunc TxDecoder(bz []byte) (weave.Tx, error)\n```\nTxDecoder creates a Tx and unmarshals bytes into it\n\n## Types\n\n```go\ntype Tx struct {\n\t// fee info, autogenerates GetFees()\n\tCashFees       *cash.FeeInfo        `protobuf:\"bytes,20,opt,name=cash_fees,json=cashFees,proto3\" json:\"cash_fees,omitempty\"`\n\tSigsSignatures []*sigs.StdSignature `protobuf:\"bytes,21,rep,name=sigs_signatures,json=sigsSignatures,proto3\" json:\"sigs_signatures,omitempty\"`\n\t// ID of a multisig contract.\n\tMultisig [][]byte `protobuf:\"bytes,4,rep,name=multisig,proto3\" json:\"multisig,omitempty\"`\n\t// msg is a sum type over all allowed messages on this chain.\n\t//\n\t// Types that are valid to be assigned to Sum:\n\t//\t*Tx_CashSendMsg\n\t//\t*Tx_OrderbookCreateOrderbookMsg\n\t//\t*Tx_OrderbookCreateOrderMsg\n\t//\t*Tx_OrderbookCancelOrderMsg\n\tSum isTx_Sum `protobuf_oneof:\"sum\"`\n}\n```\nTx contains the message\n\n```go\nfunc (*Tx) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Tx) GetCashFees() *cash.FeeInfo\n```\n\n```go\nfunc (m *Tx) GetCashSendMsg() *cash.SendMsg\n```\n\n```go\nfunc (tx *Tx) GetMsg() (weave.Msg, error)\n```\nGetMsg switches over all types defined in the protobuf file\n\n```go\nfunc (m *Tx) GetMultisig() [][]byte\n```\n\n```go\nfunc (m *Tx) GetOrderbookCancelOrderMsg() *orderbook.CancelOrderMsg\n```\n\n```go\nfunc (m *Tx) GetOrderbookCreateOrderMsg() *orderbook.CreateOrderMsg\n```\n\n```go\nfunc (m *Tx) GetOrderbookCreateOrderbookMsg() *orderbook.CreateOrderBookMsg\n```\n\n```go\nfunc (m *Tx) GetSigsSignatures() []*sigs.StdSignature\n```\n\n```go\nfunc (m *Tx) GetSum() isTx_Sum\n```\n\n```go\nfunc (m *Tx) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *Tx) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*Tx) ProtoMessage()\n```\n\n```go\nfunc (m *Tx) Reset()\n```\n\n```go\nfunc (m *Tx) Size() (n int)\n```\n\n```go\nfunc (m *Tx) String() string\n```\n\n```go\nfunc (m *Tx) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *Tx) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *Tx) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (*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{})\n```\nXXX\\_OneofFuncs is for the internal use of the proto package.\n\n```go\nfunc (m *Tx) XXX_Size() int\n```\n\n```go\nfunc (m *Tx) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype Tx_CashSendMsg struct {\n\tCashSendMsg *cash.SendMsg `protobuf:\"bytes,51,opt,name=cash_send_msg,json=cashSendMsg,proto3,oneof\"`\n}\n```\n\n```go\nfunc (m *Tx_CashSendMsg) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *Tx_CashSendMsg) Size() (n int)\n```\n\n```go\ntype Tx_OrderbookCancelOrderMsg struct {\n\tOrderbookCancelOrderMsg *orderbook.CancelOrderMsg `protobuf:\"bytes,102,opt,name=orderbook_cancel_order_msg,json=orderbookCancelOrderMsg,proto3,oneof\"`\n}\n```\n\n```go\nfunc (m *Tx_OrderbookCancelOrderMsg) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *Tx_OrderbookCancelOrderMsg) Size() (n int)\n```\n\n```go\ntype Tx_OrderbookCreateOrderMsg struct {\n\tOrderbookCreateOrderMsg *orderbook.CreateOrderMsg `protobuf:\"bytes,101,opt,name=orderbook_create_order_msg,json=orderbookCreateOrderMsg,proto3,oneof\"`\n}\n```\n\n```go\nfunc (m *Tx_OrderbookCreateOrderMsg) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *Tx_OrderbookCreateOrderMsg) Size() (n int)\n```\n\n```go\ntype Tx_OrderbookCreateOrderbookMsg struct {\n\tOrderbookCreateOrderbookMsg *orderbook.CreateOrderBookMsg `protobuf:\"bytes,100,opt,name=orderbook_create_orderbook_msg,json=orderbookCreateOrderbookMsg,proto3,oneof\"`\n}\n```\n\n```go\nfunc (m *Tx_OrderbookCreateOrderbookMsg) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *Tx_OrderbookCreateOrderbookMsg) Size() (n int)\n```\n\n","path":"github.com/iov-one/tutorial/app","name":"app","synopsis":"","isRedistributable":true}
