Documentation ¶
Overview ¶
Package app links together all the various components to construct a bcp-demo app.
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) app.Decorators
- func CommitKVStore(dbPath string) (weave.CommitKVStore, error)
- func Examples() []commands.Example
- 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, issuer weave.Address) app.Router
- func Stack(issuer weave.Address) weave.Handler
- func TxDecoder(bz []byte) (weave.Tx, error)
- type BatchMsg
- func (*BatchMsg) Descriptor() ([]byte, []int)
- func (m *BatchMsg) GetMessages() []BatchMsg_Union
- func (m *BatchMsg) Marshal() (dAtA []byte, err error)
- func (m *BatchMsg) MarshalTo(dAtA []byte) (int, error)
- func (msg *BatchMsg) MsgList() ([]weave.Msg, error)
- func (*BatchMsg) Path() string
- func (*BatchMsg) ProtoMessage()
- func (m *BatchMsg) Reset()
- func (m *BatchMsg) Size() (n int)
- func (m *BatchMsg) String() string
- func (m *BatchMsg) Unmarshal(dAtA []byte) error
- func (msg *BatchMsg) Validate() error
- func (m *BatchMsg) XXX_DiscardUnknown()
- func (m *BatchMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchMsg) XXX_Merge(src proto.Message)
- func (m *BatchMsg) XXX_Size() int
- func (m *BatchMsg) XXX_Unmarshal(b []byte) error
- type BatchMsg_Union
- func (*BatchMsg_Union) Descriptor() ([]byte, []int)
- func (m *BatchMsg_Union) GetCreateContractMsg() *multisig.CreateContractMsg
- func (m *BatchMsg_Union) GetCreateEscrowMsg() *escrow.CreateEscrowMsg
- func (m *BatchMsg_Union) GetNewTokenInfoMsg() *currency.NewTokenInfoMsg
- func (m *BatchMsg_Union) GetReleaseEscrowMsg() *escrow.ReleaseEscrowMsg
- func (m *BatchMsg_Union) GetReturnEscrowMsg() *escrow.ReturnEscrowMsg
- func (m *BatchMsg_Union) GetSendMsg() *cash.SendMsg
- func (m *BatchMsg_Union) GetSetValidatorsMsg() *validators.SetValidatorsMsg
- func (m *BatchMsg_Union) GetSum() isBatchMsg_Union_Sum
- func (m *BatchMsg_Union) GetUpdateContractMsg() *multisig.UpdateContractMsg
- func (m *BatchMsg_Union) GetUpdateEscrowMsg() *escrow.UpdateEscrowPartiesMsg
- func (m *BatchMsg_Union) Marshal() (dAtA []byte, err error)
- func (m *BatchMsg_Union) MarshalTo(dAtA []byte) (int, error)
- func (*BatchMsg_Union) ProtoMessage()
- func (m *BatchMsg_Union) Reset()
- func (m *BatchMsg_Union) Size() (n int)
- func (m *BatchMsg_Union) String() string
- func (m *BatchMsg_Union) Unmarshal(dAtA []byte) error
- func (m *BatchMsg_Union) XXX_DiscardUnknown()
- func (m *BatchMsg_Union) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchMsg_Union) XXX_Merge(src proto.Message)
- func (*BatchMsg_Union) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *BatchMsg_Union) XXX_Size() int
- func (m *BatchMsg_Union) XXX_Unmarshal(b []byte) error
- type BatchMsg_Union_CreateContractMsg
- type BatchMsg_Union_CreateEscrowMsg
- type BatchMsg_Union_NewTokenInfoMsg
- type BatchMsg_Union_ReleaseEscrowMsg
- type BatchMsg_Union_ReturnEscrowMsg
- type BatchMsg_Union_SendMsg
- type BatchMsg_Union_SetValidatorsMsg
- type BatchMsg_Union_UpdateContractMsg
- type BatchMsg_Union_UpdateEscrowMsg
- type Tx
- func (*Tx) Descriptor() ([]byte, []int)
- func (m *Tx) GetBatchMsg() *BatchMsg
- func (m *Tx) GetCreateContractMsg() *multisig.CreateContractMsg
- func (m *Tx) GetCreateEscrowMsg() *escrow.CreateEscrowMsg
- func (m *Tx) GetDistributeMsg() *distribution.DistributeMsg
- func (m *Tx) GetFees() *cash.FeeInfo
- func (tx *Tx) GetMsg() (weave.Msg, error)
- func (m *Tx) GetMultisig() [][]byte
- func (m *Tx) GetNewRevenueMsg() *distribution.NewRevenueMsg
- func (m *Tx) GetNewTokenInfoMsg() *currency.NewTokenInfoMsg
- func (m *Tx) GetPreimage() []byte
- func (m *Tx) GetReleaseEscrowMsg() *escrow.ReleaseEscrowMsg
- func (m *Tx) GetResetRevenueMsg() *distribution.ResetRevenueMsg
- func (m *Tx) GetReturnEscrowMsg() *escrow.ReturnEscrowMsg
- func (m *Tx) GetSendMsg() *cash.SendMsg
- 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 (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_BatchMsg
- type Tx_CreateContractMsg
- type Tx_CreateEscrowMsg
- type Tx_DistributeMsg
- type Tx_NewRevenueMsg
- type Tx_NewTokenInfoMsg
- type Tx_ReleaseEscrowMsg
- type Tx_ResetRevenueMsg
- type Tx_ReturnEscrowMsg
- type Tx_SendMsg
- 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(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 ¶
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 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 BatchMsg ¶ added in v0.10.0
type BatchMsg struct {
Messages []BatchMsg_Union `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages"`
}
BatchMsg encapsulates multiple messages to support batch transaction
func (*BatchMsg) Descriptor ¶ added in v0.10.0
func (*BatchMsg) GetMessages ¶ added in v0.10.0
func (m *BatchMsg) GetMessages() []BatchMsg_Union
func (*BatchMsg) ProtoMessage ¶ added in v0.10.0
func (*BatchMsg) ProtoMessage()
func (*BatchMsg) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *BatchMsg) XXX_DiscardUnknown()
func (*BatchMsg) XXX_Marshal ¶ added in v0.12.0
func (*BatchMsg) XXX_Unmarshal ¶ added in v0.12.0
type BatchMsg_Union ¶ added in v0.10.0
type BatchMsg_Union struct { // Types that are valid to be assigned to Sum: // *BatchMsg_Union_SendMsg // *BatchMsg_Union_CreateEscrowMsg // *BatchMsg_Union_ReleaseEscrowMsg // *BatchMsg_Union_ReturnEscrowMsg // *BatchMsg_Union_UpdateEscrowMsg // *BatchMsg_Union_CreateContractMsg // *BatchMsg_Union_UpdateContractMsg // *BatchMsg_Union_SetValidatorsMsg // *BatchMsg_Union_NewTokenInfoMsg Sum isBatchMsg_Union_Sum `protobuf_oneof:"sum"` }
func (*BatchMsg_Union) Descriptor ¶ added in v0.10.0
func (*BatchMsg_Union) Descriptor() ([]byte, []int)
func (*BatchMsg_Union) GetCreateContractMsg ¶ added in v0.10.0
func (m *BatchMsg_Union) GetCreateContractMsg() *multisig.CreateContractMsg
func (*BatchMsg_Union) GetCreateEscrowMsg ¶ added in v0.10.0
func (m *BatchMsg_Union) GetCreateEscrowMsg() *escrow.CreateEscrowMsg
func (*BatchMsg_Union) GetNewTokenInfoMsg ¶ added in v0.10.0
func (m *BatchMsg_Union) GetNewTokenInfoMsg() *currency.NewTokenInfoMsg
func (*BatchMsg_Union) GetReleaseEscrowMsg ¶ added in v0.10.0
func (m *BatchMsg_Union) GetReleaseEscrowMsg() *escrow.ReleaseEscrowMsg
func (*BatchMsg_Union) GetReturnEscrowMsg ¶ added in v0.10.0
func (m *BatchMsg_Union) GetReturnEscrowMsg() *escrow.ReturnEscrowMsg
func (*BatchMsg_Union) GetSendMsg ¶ added in v0.10.0
func (m *BatchMsg_Union) GetSendMsg() *cash.SendMsg
func (*BatchMsg_Union) GetSetValidatorsMsg ¶ added in v0.10.0
func (m *BatchMsg_Union) GetSetValidatorsMsg() *validators.SetValidatorsMsg
func (*BatchMsg_Union) GetSum ¶ added in v0.10.0
func (m *BatchMsg_Union) GetSum() isBatchMsg_Union_Sum
func (*BatchMsg_Union) GetUpdateContractMsg ¶ added in v0.10.0
func (m *BatchMsg_Union) GetUpdateContractMsg() *multisig.UpdateContractMsg
func (*BatchMsg_Union) GetUpdateEscrowMsg ¶ added in v0.10.0
func (m *BatchMsg_Union) GetUpdateEscrowMsg() *escrow.UpdateEscrowPartiesMsg
func (*BatchMsg_Union) Marshal ¶ added in v0.10.0
func (m *BatchMsg_Union) Marshal() (dAtA []byte, err error)
func (*BatchMsg_Union) MarshalTo ¶ added in v0.10.0
func (m *BatchMsg_Union) MarshalTo(dAtA []byte) (int, error)
func (*BatchMsg_Union) ProtoMessage ¶ added in v0.10.0
func (*BatchMsg_Union) ProtoMessage()
func (*BatchMsg_Union) Reset ¶ added in v0.10.0
func (m *BatchMsg_Union) Reset()
func (*BatchMsg_Union) Size ¶ added in v0.10.0
func (m *BatchMsg_Union) Size() (n int)
func (*BatchMsg_Union) String ¶ added in v0.10.0
func (m *BatchMsg_Union) String() string
func (*BatchMsg_Union) Unmarshal ¶ added in v0.10.0
func (m *BatchMsg_Union) Unmarshal(dAtA []byte) error
func (*BatchMsg_Union) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *BatchMsg_Union) XXX_DiscardUnknown()
func (*BatchMsg_Union) XXX_Marshal ¶ added in v0.12.0
func (m *BatchMsg_Union) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchMsg_Union) XXX_Merge ¶ added in v0.12.0
func (m *BatchMsg_Union) XXX_Merge(src proto.Message)
func (*BatchMsg_Union) XXX_OneofFuncs ¶ added in v0.10.0
func (*BatchMsg_Union) 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 (*BatchMsg_Union) XXX_Size ¶ added in v0.12.0
func (m *BatchMsg_Union) XXX_Size() int
func (*BatchMsg_Union) XXX_Unmarshal ¶ added in v0.12.0
func (m *BatchMsg_Union) XXX_Unmarshal(b []byte) error
type BatchMsg_Union_CreateContractMsg ¶ added in v0.10.0
type BatchMsg_Union_CreateContractMsg struct {
CreateContractMsg *multisig.CreateContractMsg `protobuf:"bytes,8,opt,name=create_contract_msg,json=createContractMsg,proto3,oneof"`
}
func (*BatchMsg_Union_CreateContractMsg) MarshalTo ¶ added in v0.10.0
func (m *BatchMsg_Union_CreateContractMsg) MarshalTo(dAtA []byte) (int, error)
func (*BatchMsg_Union_CreateContractMsg) Size ¶ added in v0.10.0
func (m *BatchMsg_Union_CreateContractMsg) Size() (n int)
type BatchMsg_Union_CreateEscrowMsg ¶ added in v0.10.0
type BatchMsg_Union_CreateEscrowMsg struct {
CreateEscrowMsg *escrow.CreateEscrowMsg `protobuf:"bytes,4,opt,name=create_escrow_msg,json=createEscrowMsg,proto3,oneof"`
}
func (*BatchMsg_Union_CreateEscrowMsg) MarshalTo ¶ added in v0.10.0
func (m *BatchMsg_Union_CreateEscrowMsg) MarshalTo(dAtA []byte) (int, error)
func (*BatchMsg_Union_CreateEscrowMsg) Size ¶ added in v0.10.0
func (m *BatchMsg_Union_CreateEscrowMsg) Size() (n int)
type BatchMsg_Union_NewTokenInfoMsg ¶ added in v0.10.0
type BatchMsg_Union_NewTokenInfoMsg struct {
NewTokenInfoMsg *currency.NewTokenInfoMsg `protobuf:"bytes,11,opt,name=new_token_info_msg,json=newTokenInfoMsg,proto3,oneof"`
}
func (*BatchMsg_Union_NewTokenInfoMsg) MarshalTo ¶ added in v0.10.0
func (m *BatchMsg_Union_NewTokenInfoMsg) MarshalTo(dAtA []byte) (int, error)
func (*BatchMsg_Union_NewTokenInfoMsg) Size ¶ added in v0.10.0
func (m *BatchMsg_Union_NewTokenInfoMsg) Size() (n int)
type BatchMsg_Union_ReleaseEscrowMsg ¶ added in v0.10.0
type BatchMsg_Union_ReleaseEscrowMsg struct {
ReleaseEscrowMsg *escrow.ReleaseEscrowMsg `protobuf:"bytes,5,opt,name=release_escrow_msg,json=releaseEscrowMsg,proto3,oneof"`
}
func (*BatchMsg_Union_ReleaseEscrowMsg) MarshalTo ¶ added in v0.10.0
func (m *BatchMsg_Union_ReleaseEscrowMsg) MarshalTo(dAtA []byte) (int, error)
func (*BatchMsg_Union_ReleaseEscrowMsg) Size ¶ added in v0.10.0
func (m *BatchMsg_Union_ReleaseEscrowMsg) Size() (n int)
type BatchMsg_Union_ReturnEscrowMsg ¶ added in v0.10.0
type BatchMsg_Union_ReturnEscrowMsg struct {
ReturnEscrowMsg *escrow.ReturnEscrowMsg `protobuf:"bytes,6,opt,name=return_escrow_msg,json=returnEscrowMsg,proto3,oneof"`
}
func (*BatchMsg_Union_ReturnEscrowMsg) MarshalTo ¶ added in v0.10.0
func (m *BatchMsg_Union_ReturnEscrowMsg) MarshalTo(dAtA []byte) (int, error)
func (*BatchMsg_Union_ReturnEscrowMsg) Size ¶ added in v0.10.0
func (m *BatchMsg_Union_ReturnEscrowMsg) Size() (n int)
type BatchMsg_Union_SendMsg ¶ added in v0.10.0
type BatchMsg_Union_SendMsg struct {
SendMsg *cash.SendMsg `protobuf:"bytes,1,opt,name=send_msg,json=sendMsg,proto3,oneof"`
}
func (*BatchMsg_Union_SendMsg) MarshalTo ¶ added in v0.10.0
func (m *BatchMsg_Union_SendMsg) MarshalTo(dAtA []byte) (int, error)
func (*BatchMsg_Union_SendMsg) Size ¶ added in v0.10.0
func (m *BatchMsg_Union_SendMsg) Size() (n int)
type BatchMsg_Union_SetValidatorsMsg ¶ added in v0.10.0
type BatchMsg_Union_SetValidatorsMsg struct {
SetValidatorsMsg *validators.SetValidatorsMsg `protobuf:"bytes,10,opt,name=set_validators_msg,json=setValidatorsMsg,proto3,oneof"`
}
func (*BatchMsg_Union_SetValidatorsMsg) MarshalTo ¶ added in v0.10.0
func (m *BatchMsg_Union_SetValidatorsMsg) MarshalTo(dAtA []byte) (int, error)
func (*BatchMsg_Union_SetValidatorsMsg) Size ¶ added in v0.10.0
func (m *BatchMsg_Union_SetValidatorsMsg) Size() (n int)
type BatchMsg_Union_UpdateContractMsg ¶ added in v0.10.0
type BatchMsg_Union_UpdateContractMsg struct {
UpdateContractMsg *multisig.UpdateContractMsg `protobuf:"bytes,9,opt,name=update_contract_msg,json=updateContractMsg,proto3,oneof"`
}
func (*BatchMsg_Union_UpdateContractMsg) MarshalTo ¶ added in v0.10.0
func (m *BatchMsg_Union_UpdateContractMsg) MarshalTo(dAtA []byte) (int, error)
func (*BatchMsg_Union_UpdateContractMsg) Size ¶ added in v0.10.0
func (m *BatchMsg_Union_UpdateContractMsg) Size() (n int)
type BatchMsg_Union_UpdateEscrowMsg ¶ added in v0.10.0
type BatchMsg_Union_UpdateEscrowMsg struct {
UpdateEscrowMsg *escrow.UpdateEscrowPartiesMsg `protobuf:"bytes,7,opt,name=update_escrow_msg,json=updateEscrowMsg,proto3,oneof"`
}
func (*BatchMsg_Union_UpdateEscrowMsg) MarshalTo ¶ added in v0.10.0
func (m *BatchMsg_Union_UpdateEscrowMsg) MarshalTo(dAtA []byte) (int, error)
func (*BatchMsg_Union_UpdateEscrowMsg) Size ¶ added in v0.10.0
func (m *BatchMsg_Union_UpdateEscrowMsg) Size() (n int)
type Tx ¶
type Tx struct { Fees *cash.FeeInfo `protobuf:"bytes,1,opt,name=fees,proto3" json:"fees,omitempty"` Signatures []*sigs.StdSignature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` // Preimage for hashlock. Preimage []byte `protobuf:"bytes,3,opt,name=preimage,proto3" json:"preimage,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_SendMsg // *Tx_CreateEscrowMsg // *Tx_ReleaseEscrowMsg // *Tx_ReturnEscrowMsg // *Tx_UpdateEscrowMsg // *Tx_CreateContractMsg // *Tx_UpdateContractMsg // *Tx_SetValidatorsMsg // *Tx_NewTokenInfoMsg // *Tx_BatchMsg // *Tx_NewRevenueMsg // *Tx_DistributeMsg // *Tx_ResetRevenueMsg Sum isTx_Sum `protobuf_oneof:"sum"` }
Tx contains the message.
When extending Tx, follow the rules:
- range 1-50 is reserved for middlewares,
- range 51-inf is reserved for different message types,
- keep the same numbers for the same message types in both bcpd and bnsd applications. For example, FeeInfo field is used by both and indexed at first position. Skip unused fields (leave index unused).
func (*Tx) Descriptor ¶
func (*Tx) GetBatchMsg ¶ added in v0.10.0
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) GetDistributeMsg ¶ added in v0.12.0
func (m *Tx) GetDistributeMsg() *distribution.DistributeMsg
func (*Tx) GetMultisig ¶ added in v0.8.0
func (*Tx) GetNewRevenueMsg ¶ added in v0.12.0
func (m *Tx) GetNewRevenueMsg() *distribution.NewRevenueMsg
func (*Tx) GetNewTokenInfoMsg ¶ added in v0.10.0
func (m *Tx) GetNewTokenInfoMsg() *currency.NewTokenInfoMsg
func (*Tx) GetPreimage ¶
func (*Tx) GetReleaseEscrowMsg ¶
func (m *Tx) GetReleaseEscrowMsg() *escrow.ReleaseEscrowMsg
func (*Tx) GetResetRevenueMsg ¶ added in v0.12.0
func (m *Tx) GetResetRevenueMsg() *distribution.ResetRevenueMsg
func (*Tx) GetReturnEscrowMsg ¶
func (m *Tx) GetReturnEscrowMsg() *escrow.ReturnEscrowMsg
func (*Tx) GetSendMsg ¶
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()
func (*Tx) XXX_DiscardUnknown ¶ added in v0.12.0
func (m *Tx) XXX_DiscardUnknown()
func (*Tx) XXX_Marshal ¶ added in v0.12.0
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 ¶ added in v0.12.0
type Tx_BatchMsg ¶ added in v0.10.0
type Tx_BatchMsg struct {
BatchMsg *BatchMsg `protobuf:"bytes,60,opt,name=batch_msg,json=batchMsg,proto3,oneof"`
}
func (*Tx_BatchMsg) MarshalTo ¶ added in v0.10.0
func (m *Tx_BatchMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_BatchMsg) Size ¶ added in v0.10.0
func (m *Tx_BatchMsg) Size() (n int)
type Tx_CreateContractMsg ¶ added in v0.8.0
type Tx_CreateContractMsg struct {
CreateContractMsg *multisig.CreateContractMsg `protobuf:"bytes,56,opt,name=create_contract_msg,json=createContractMsg,proto3,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,52,opt,name=create_escrow_msg,json=createEscrowMsg,proto3,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_DistributeMsg ¶ added in v0.12.0
type Tx_DistributeMsg struct {
DistributeMsg *distribution.DistributeMsg `protobuf:"bytes,67,opt,name=distribute_msg,json=distributeMsg,proto3,oneof"`
}
func (*Tx_DistributeMsg) MarshalTo ¶ added in v0.12.0
func (m *Tx_DistributeMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_DistributeMsg) Size ¶ added in v0.12.0
func (m *Tx_DistributeMsg) Size() (n int)
type Tx_NewRevenueMsg ¶ added in v0.12.0
type Tx_NewRevenueMsg struct {
NewRevenueMsg *distribution.NewRevenueMsg `protobuf:"bytes,66,opt,name=new_revenue_msg,json=newRevenueMsg,proto3,oneof"`
}
func (*Tx_NewRevenueMsg) MarshalTo ¶ added in v0.12.0
func (m *Tx_NewRevenueMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_NewRevenueMsg) Size ¶ added in v0.12.0
func (m *Tx_NewRevenueMsg) Size() (n int)
type Tx_NewTokenInfoMsg ¶ added in v0.10.0
type Tx_NewTokenInfoMsg struct {
NewTokenInfoMsg *currency.NewTokenInfoMsg `protobuf:"bytes,59,opt,name=new_token_info_msg,json=newTokenInfoMsg,proto3,oneof"`
}
func (*Tx_NewTokenInfoMsg) MarshalTo ¶ added in v0.10.0
func (m *Tx_NewTokenInfoMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_NewTokenInfoMsg) Size ¶ added in v0.10.0
func (m *Tx_NewTokenInfoMsg) Size() (n int)
type Tx_ReleaseEscrowMsg ¶
type Tx_ReleaseEscrowMsg struct {
ReleaseEscrowMsg *escrow.ReleaseEscrowMsg `protobuf:"bytes,53,opt,name=release_escrow_msg,json=releaseEscrowMsg,proto3,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_ResetRevenueMsg ¶ added in v0.12.0
type Tx_ResetRevenueMsg struct {
ResetRevenueMsg *distribution.ResetRevenueMsg `protobuf:"bytes,68,opt,name=reset_revenue_msg,json=resetRevenueMsg,proto3,oneof"`
}
func (*Tx_ResetRevenueMsg) MarshalTo ¶ added in v0.12.0
func (m *Tx_ResetRevenueMsg) MarshalTo(dAtA []byte) (int, error)
func (*Tx_ResetRevenueMsg) Size ¶ added in v0.12.0
func (m *Tx_ResetRevenueMsg) Size() (n int)
type Tx_ReturnEscrowMsg ¶
type Tx_ReturnEscrowMsg struct {
ReturnEscrowMsg *escrow.ReturnEscrowMsg `protobuf:"bytes,54,opt,name=return_escrow_msg,json=returnEscrowMsg,proto3,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,51,opt,name=send_msg,json=sendMsg,proto3,oneof"`
}
func (*Tx_SendMsg) Size ¶
func (m *Tx_SendMsg) Size() (n int)
type Tx_SetValidatorsMsg ¶ added in v0.8.0
type Tx_SetValidatorsMsg struct {
SetValidatorsMsg *validators.SetValidatorsMsg `protobuf:"bytes,58,opt,name=set_validators_msg,json=setValidatorsMsg,proto3,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,57,opt,name=update_contract_msg,json=updateContractMsg,proto3,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,55,opt,name=update_escrow_msg,json=updateEscrowMsg,proto3,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)