Documentation ¶
Overview ¶
Package app links together all the various components to construct a bcp-demo app.
Package app is a generated protocol buffer package. It is generated from these files: app/codec.proto It has these top-level messages: Tx
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(minFee x.Coin, authFn x.Authenticator) app.Decorators
- func CommitKVStore(dbPath string) (weave.CommitKVStore, error)
- func Examples() []commands.Example
- func GenInitOptions(args []string) (json.RawMessage, error)
- func GenerateApp(home string, logger log.Logger, debug bool) (abci.Application, error)
- func GenerateCoinKey() (weave.Address, string, error)
- func QueryRouter() weave.QueryRouter
- func Router(authFn x.Authenticator, issuer weave.Address) app.Router
- func Stack(minFee x.Coin, issuer weave.Address) weave.Handler
- func TxDecoder(bz []byte) (weave.Tx, error)
- type Tx
- func (*Tx) Descriptor() ([]byte, []int)
- func (m *Tx) GetCreateContractMsg() *multisig.CreateContractMsg
- func (m *Tx) GetCreateEscrowMsg() *escrow.CreateEscrowMsg
- func (m *Tx) GetFees() *cash.FeeInfo
- func (tx *Tx) GetMsg() (weave.Msg, error)
- func (m *Tx) GetMultisig() [][]byte
- func (m *Tx) GetNewTokenMsg() *namecoin.NewTokenMsg
- func (m *Tx) GetPreimage() []byte
- func (m *Tx) GetReleaseEscrowMsg() *escrow.ReleaseEscrowMsg
- func (m *Tx) GetReturnEscrowMsg() *escrow.ReturnEscrowMsg
- func (m *Tx) GetSendMsg() *cash.SendMsg
- func (m *Tx) GetSetNameMsg() *namecoin.SetWalletNameMsg
- func (m *Tx) GetSetValidatorsMsg() *validators.SetValidatorsMsg
- func (tx *Tx) GetSignBytes() ([]byte, error)
- func (m *Tx) GetSignatures() []*sigs.StdSignature
- func (m *Tx) GetSum() isTx_Sum
- func (m *Tx) GetUpdateContractMsg() *multisig.UpdateContractMsg
- func (m *Tx) GetUpdateEscrowMsg() *escrow.UpdateEscrowPartiesMsg
- 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 (*Tx) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Tx_CreateContractMsg
- type Tx_CreateEscrowMsg
- type Tx_NewTokenMsg
- type Tx_ReleaseEscrowMsg
- type Tx_ReturnEscrowMsg
- type Tx_SendMsg
- type Tx_SetNameMsg
- type Tx_SetValidatorsMsg
- type Tx_UpdateContractMsg
- type Tx_UpdateEscrowMsg
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. If you are not sure what to use for the Handler, just use Stack().
func Authenticator ¶
func Authenticator() x.Authenticator
Authenticator returns the typical authentication, just using public key signatures
func Chain ¶
func Chain(minFee x.Coin, authFn x.Authenticator) 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 GenInitOptions ¶
func GenInitOptions(args []string) (json.RawMessage, error)
GenInitOptions will produce some basic options for one rich account, to use for dev mode
You can set
func GenerateApp ¶
GenerateApp is used to create a stub for server/start.go command
func GenerateCoinKey ¶
GenerateCoinKey returns the address of a public key, along with a json representation of the keys. You can give coins to this address and import the keys in the js client to use them
func QueryRouter ¶
func QueryRouter() weave.QueryRouter
QueryRouter returns a default query router, allowing access to "/wallets", "/validators", "/auth", "/", and "/escrows"
Types ¶
type Tx ¶
type Tx struct { // msg is a sum type over all allowed messages on this chain. // // Types that are valid to be assigned to Sum: // *Tx_SendMsg // *Tx_NewTokenMsg // *Tx_SetNameMsg // *Tx_CreateEscrowMsg // *Tx_ReleaseEscrowMsg // *Tx_ReturnEscrowMsg // *Tx_UpdateEscrowMsg // *Tx_CreateContractMsg // *Tx_UpdateContractMsg // *Tx_SetValidatorsMsg Sum isTx_Sum `protobuf_oneof:"sum"` // fee info, autogenerates GetFees() Fees *cash.FeeInfo `protobuf:"bytes,20,opt,name=fees" json:"fees,omitempty"` // signatures, autogenerates GetSignatures() Signatures []*sigs.StdSignature `protobuf:"bytes,21,rep,name=signatures" json:"signatures,omitempty"` // preimage for hashlock, autogenerates GetPreimage Preimage []byte `protobuf:"bytes,22,opt,name=preimage,proto3" json:"preimage,omitempty"` // id of multisig contract, autogenerates GetMultisig Multisig [][]byte `protobuf:"bytes,23,rep,name=multisig" json:"multisig,omitempty"` }
Tx contains the message
func (*Tx) Descriptor ¶
func (*Tx) GetCreateContractMsg ¶ added in v0.8.0
func (m *Tx) GetCreateContractMsg() *multisig.CreateContractMsg
func (*Tx) GetCreateEscrowMsg ¶
func (m *Tx) GetCreateEscrowMsg() *escrow.CreateEscrowMsg
func (*Tx) GetMultisig ¶ added in v0.8.0
func (*Tx) GetNewTokenMsg ¶
func (m *Tx) GetNewTokenMsg() *namecoin.NewTokenMsg
func (*Tx) GetPreimage ¶
func (*Tx) GetReleaseEscrowMsg ¶
func (m *Tx) GetReleaseEscrowMsg() *escrow.ReleaseEscrowMsg
func (*Tx) GetReturnEscrowMsg ¶
func (m *Tx) GetReturnEscrowMsg() *escrow.ReturnEscrowMsg
func (*Tx) GetSendMsg ¶
func (*Tx) GetSetNameMsg ¶
func (m *Tx) GetSetNameMsg() *namecoin.SetWalletNameMsg
func (*Tx) GetSetValidatorsMsg ¶ added in v0.8.0
func (m *Tx) GetSetValidatorsMsg() *validators.SetValidatorsMsg
func (*Tx) GetSignBytes ¶
GetSignBytes returns the bytes to sign...
func (*Tx) GetSignatures ¶
func (m *Tx) GetSignatures() []*sigs.StdSignature
func (*Tx) GetUpdateContractMsg ¶ added in v0.8.0
func (m *Tx) GetUpdateContractMsg() *multisig.UpdateContractMsg
func (*Tx) GetUpdateEscrowMsg ¶
func (m *Tx) GetUpdateEscrowMsg() *escrow.UpdateEscrowPartiesMsg
func (*Tx) ProtoMessage ¶
func (*Tx) ProtoMessage()
type Tx_CreateContractMsg ¶ added in v0.8.0
type Tx_CreateContractMsg struct {
CreateContractMsg *multisig.CreateContractMsg `protobuf:"bytes,8,opt,name=create_contract_msg,json=createContractMsg,oneof"`
}
func (*Tx_CreateContractMsg) MarshalTo ¶ added in v0.8.0
func (m *Tx_CreateContractMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_CreateContractMsg) Size ¶ added in v0.8.0
func (m *Tx_CreateContractMsg) Size() (n int)
type Tx_CreateEscrowMsg ¶
type Tx_CreateEscrowMsg struct {
CreateEscrowMsg *escrow.CreateEscrowMsg `protobuf:"bytes,4,opt,name=create_escrow_msg,json=createEscrowMsg,oneof"`
}
func (*Tx_CreateEscrowMsg) MarshalTo ¶
func (m *Tx_CreateEscrowMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_CreateEscrowMsg) Size ¶
func (m *Tx_CreateEscrowMsg) Size() (n int)
type Tx_NewTokenMsg ¶
type Tx_NewTokenMsg struct {
NewTokenMsg *namecoin.NewTokenMsg `protobuf:"bytes,2,opt,name=new_token_msg,json=newTokenMsg,oneof"`
}
func (*Tx_NewTokenMsg) Size ¶
func (m *Tx_NewTokenMsg) Size() (n int)
type Tx_ReleaseEscrowMsg ¶
type Tx_ReleaseEscrowMsg struct {
ReleaseEscrowMsg *escrow.ReleaseEscrowMsg `protobuf:"bytes,5,opt,name=release_escrow_msg,json=releaseEscrowMsg,oneof"`
}
func (*Tx_ReleaseEscrowMsg) MarshalTo ¶
func (m *Tx_ReleaseEscrowMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_ReleaseEscrowMsg) Size ¶
func (m *Tx_ReleaseEscrowMsg) Size() (n int)
type Tx_ReturnEscrowMsg ¶
type Tx_ReturnEscrowMsg struct {
ReturnEscrowMsg *escrow.ReturnEscrowMsg `protobuf:"bytes,6,opt,name=return_escrow_msg,json=returnEscrowMsg,oneof"`
}
func (*Tx_ReturnEscrowMsg) MarshalTo ¶
func (m *Tx_ReturnEscrowMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_ReturnEscrowMsg) Size ¶
func (m *Tx_ReturnEscrowMsg) Size() (n int)
type Tx_SendMsg ¶
type Tx_SendMsg struct {
SendMsg *cash.SendMsg `protobuf:"bytes,1,opt,name=send_msg,json=sendMsg,oneof"`
}
func (*Tx_SendMsg) Size ¶
func (m *Tx_SendMsg) Size() (n int)
type Tx_SetNameMsg ¶
type Tx_SetNameMsg struct {
SetNameMsg *namecoin.SetWalletNameMsg `protobuf:"bytes,3,opt,name=set_name_msg,json=setNameMsg,oneof"`
}
func (*Tx_SetNameMsg) Size ¶
func (m *Tx_SetNameMsg) Size() (n int)
type Tx_SetValidatorsMsg ¶ added in v0.8.0
type Tx_SetValidatorsMsg struct {
SetValidatorsMsg *validators.SetValidatorsMsg `protobuf:"bytes,10,opt,name=set_validators_msg,json=setValidatorsMsg,oneof"`
}
func (*Tx_SetValidatorsMsg) MarshalTo ¶ added in v0.8.0
func (m *Tx_SetValidatorsMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_SetValidatorsMsg) Size ¶ added in v0.8.0
func (m *Tx_SetValidatorsMsg) Size() (n int)
type Tx_UpdateContractMsg ¶ added in v0.8.0
type Tx_UpdateContractMsg struct {
UpdateContractMsg *multisig.UpdateContractMsg `protobuf:"bytes,9,opt,name=update_contract_msg,json=updateContractMsg,oneof"`
}
func (*Tx_UpdateContractMsg) MarshalTo ¶ added in v0.8.0
func (m *Tx_UpdateContractMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_UpdateContractMsg) Size ¶ added in v0.8.0
func (m *Tx_UpdateContractMsg) Size() (n int)
type Tx_UpdateEscrowMsg ¶
type Tx_UpdateEscrowMsg struct {
UpdateEscrowMsg *escrow.UpdateEscrowPartiesMsg `protobuf:"bytes,7,opt,name=update_escrow_msg,json=updateEscrowMsg,oneof"`
}
func (*Tx_UpdateEscrowMsg) MarshalTo ¶
func (m *Tx_UpdateEscrowMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_UpdateEscrowMsg) Size ¶
func (m *Tx_UpdateEscrowMsg) Size() (n int)