Documentation
¶
Overview ¶
Package wallet is a generated protocol buffer package.
It is generated from these files:
wallet/colored_token.proto wallet/common.proto wallet/didentity.proto wallet/pki.proto wallet/query.proto wallet/services.proto wallet/tx.proto wallet/verifiable_claim.proto
It has these top-level messages:
ColoredToken Metadata UniformPayload DidOwner DidControl OffchainMetadata DDO PublicKey PrivateKey SignatureHeader Signature SignatureSimple AssetsGrowth UsersGrowth DAppAxtConsume DAppAxtTotal DAppIssuedToken DAppIssuedTokens DAppList DAppNum DAppTotal DAppUsersList DAppUsersTotal HotAssets HotTokens TopAssetUsers TopTokenUsers Total TxIN TxOUT UTXO TX TXs SingleColorResult QueryTxRequest QueryUTXORequest QueryUTXOResponse TxScript ProcessTxResponse UTXOSignature VerifiableClaim VerifiableClaimBrief
Index ¶
- Variables
- func RegisterTxSrvcServer(s *grpc.Server, srv TxSrvcServer)
- type AssetsGrowth
- type CTStatus
- type ColorType
- type ColoredToken
- func (*ColoredToken) Descriptor() ([]byte, []int)
- func (m *ColoredToken) GetAncestor() string
- func (m *ColoredToken) GetEndorsers() map[string]*Signature
- func (m *ColoredToken) GetExpireTime() int64
- func (m *ColoredToken) GetId() string
- func (m *ColoredToken) GetIssueTime() int64
- func (m *ColoredToken) GetIssuers() map[string]*Signature
- func (m *ColoredToken) GetMetadata() []byte
- func (m *ColoredToken) GetStatus() CTStatus
- func (*ColoredToken) ProtoMessage()
- func (m *ColoredToken) Reset()
- func (m *ColoredToken) String() string
- type DAppAxtConsume
- type DAppAxtTotal
- type DAppIssuedToken
- type DAppIssuedTokens
- type DAppList
- type DAppNum
- type DAppTotal
- func (*DAppTotal) Descriptor() ([]byte, []int)
- func (m *DAppTotal) GetTotalAssets() int64
- func (m *DAppTotal) GetTotalAxtConsumedTxs() int64
- func (m *DAppTotal) GetTotalIncomeAssets() int64
- func (m *DAppTotal) GetTotalIncomeTokens() int64
- func (m *DAppTotal) GetTotalIncomeTxs() int64
- func (m *DAppTotal) GetTotalSpendingAssets() int64
- func (m *DAppTotal) GetTotalSpendingTokens() int64
- func (m *DAppTotal) GetTotalSpendingTxs() int64
- func (m *DAppTotal) GetTotalTokens() int64
- func (m *DAppTotal) GetTotalTxs() int64
- func (*DAppTotal) ProtoMessage()
- func (m *DAppTotal) Reset()
- func (m *DAppTotal) String() string
- type DAppUsersList
- func (*DAppUsersList) Descriptor() ([]byte, []int)
- func (m *DAppUsersList) GetEmail() string
- func (m *DAppUsersList) GetId() int64
- func (m *DAppUsersList) GetName() string
- func (m *DAppUsersList) GetPhone() string
- func (*DAppUsersList) ProtoMessage()
- func (m *DAppUsersList) Reset()
- func (m *DAppUsersList) String() string
- type DAppUsersTotal
- type DDO
- func (*DDO) Descriptor() ([]byte, []int)
- func (m *DDO) GetClaims() map[string]*VerifiableClaimBrief
- func (m *DDO) GetContext() string
- func (m *DDO) GetControls() []*DidControl
- func (m *DDO) GetCreated() *google_protobuf.Timestamp
- func (m *DDO) GetEndpoint() string
- func (m *DDO) GetExpires() *google_protobuf.Timestamp
- func (m *DDO) GetGuardian() string
- func (m *DDO) GetId() string
- func (m *DDO) GetMetadata() *Metadata
- func (m *DDO) GetName() string
- func (m *DDO) GetOffchainMetadata() *OffchainMetadata
- func (m *DDO) GetOwners() []*DidOwner
- func (m *DDO) GetParentId() string
- func (m *DDO) GetServices() map[string]string
- func (m *DDO) GetSignatures() []*Signature
- func (m *DDO) GetStatus() Status
- func (m *DDO) GetType() []DidType
- func (m *DDO) GetUpdated() *google_protobuf.Timestamp
- func (*DDO) ProtoMessage()
- func (m *DDO) Reset()
- func (m *DDO) String() string
- type DidControl
- type DidControlType
- type DidOwner
- func (*DidOwner) Descriptor() ([]byte, []int)
- func (m *DidOwner) GetExpires() *google_protobuf.Timestamp
- func (m *DidOwner) GetId() string
- func (m *DidOwner) GetPublicKey() *PublicKey
- func (m *DidOwner) GetType() []string
- func (*DidOwner) ProtoMessage()
- func (m *DidOwner) Reset()
- func (m *DidOwner) String() string
- type DidType
- type HotAssets
- type HotTokens
- type Metadata
- type OffchainMetadata
- func (*OffchainMetadata) Descriptor() ([]byte, []int)
- func (m *OffchainMetadata) GetContentHash() string
- func (m *OffchainMetadata) GetEndpoint() string
- func (m *OffchainMetadata) GetFilename() string
- func (m *OffchainMetadata) GetReadOnly() bool
- func (m *OffchainMetadata) GetSize() int32
- func (m *OffchainMetadata) GetStorageType() string
- func (*OffchainMetadata) ProtoMessage()
- func (m *OffchainMetadata) Reset()
- func (m *OffchainMetadata) String() string
- type PrivateKey
- type ProcessTxResponse
- type PublicKey
- type QueryTxRequest
- type QueryUTXORequest
- func (*QueryUTXORequest) Descriptor() ([]byte, []int)
- func (m *QueryUTXORequest) GetAddr() string
- func (m *QueryUTXORequest) GetBeginAt() *google_protobuf.Timestamp
- func (m *QueryUTXORequest) GetCTokenId() string
- func (m *QueryUTXORequest) GetCType() ColorType
- func (m *QueryUTXORequest) GetEndAt() *google_protobuf.Timestamp
- func (m *QueryUTXORequest) GetFromAddr() string
- func (m *QueryUTXORequest) GetNum() int32
- func (m *QueryUTXORequest) GetPage() int32
- func (*QueryUTXORequest) ProtoMessage()
- func (m *QueryUTXORequest) Reset()
- func (m *QueryUTXORequest) String() string
- type QueryUTXOResponse
- func (*QueryUTXOResponse) Descriptor() ([]byte, []int)
- func (m *QueryUTXOResponse) GetUtxos() []*UTXO
- func (m *QueryUTXOResponse) Len() int
- func (m *QueryUTXOResponse) Less(i, j int) bool
- func (*QueryUTXOResponse) ProtoMessage()
- func (m *QueryUTXOResponse) Reset()
- func (m *QueryUTXOResponse) String() string
- func (m *QueryUTXOResponse) Swap(i, j int)
- type Signature
- type SignatureHeader
- func (*SignatureHeader) Descriptor() ([]byte, []int)
- func (m *SignatureHeader) GetCreated() *google_protobuf.Timestamp
- func (m *SignatureHeader) GetCreator() string
- func (m *SignatureHeader) GetNonce() []byte
- func (m *SignatureHeader) GetSignType() string
- func (*SignatureHeader) ProtoMessage()
- func (m *SignatureHeader) Reset()
- func (m *SignatureHeader) String() string
- type SignatureSimple
- func (*SignatureSimple) Descriptor() ([]byte, []int)
- func (m *SignatureSimple) GetCreator() string
- func (m *SignatureSimple) GetNonce() []byte
- func (m *SignatureSimple) GetSign() []byte
- func (*SignatureSimple) ProtoMessage()
- func (m *SignatureSimple) Reset()
- func (m *SignatureSimple) String() string
- type SingleColorResult
- type Status
- type TX
- func (*TX) Descriptor() ([]byte, []int)
- func (m *TX) GetFounder() string
- func (m *TX) GetTimestamp() *common.TimestampWrapper
- func (m *TX) GetTimestampNanos() int32
- func (m *TX) GetTxType() TxType
- func (m *TX) GetTxin() []*TxIN
- func (m *TX) GetTxout() []*TxOUT
- func (m *TX) GetVersion() uint32
- func (*TX) ProtoMessage()
- func (m *TX) Reset()
- func (m *TX) String() string
- type TXs
- type TopAssetUsers
- type TopTokenUsers
- type Total
- type TransactionType
- type TxIN
- type TxOUT
- func (*TxOUT) Descriptor() ([]byte, []int)
- func (m *TxOUT) GetAddr() string
- func (m *TxOUT) GetCTokenId() string
- func (m *TxOUT) GetCType() ColorType
- func (m *TxOUT) GetScript() []byte
- func (m *TxOUT) GetUntil() int64
- func (m *TxOUT) GetValue() int64
- func (*TxOUT) ProtoMessage()
- func (m *TxOUT) Reset()
- func (m *TxOUT) String() string
- type TxScript
- type TxSrvcClient
- type TxSrvcServer
- type TxType
- type UTXO
- func (*UTXO) Descriptor() ([]byte, []int)
- func (m *UTXO) GetAddr() string
- func (m *UTXO) GetBcTxId() string
- func (m *UTXO) GetCTokenId() string
- func (m *UTXO) GetCType() ColorType
- func (m *UTXO) GetCreatedAt() *common.TimestampWrapper
- func (m *UTXO) GetCreatedAtNanos() int32
- func (m *UTXO) GetFounder() string
- func (m *UTXO) GetIx() string
- func (m *UTXO) GetScript() []byte
- func (m *UTXO) GetSourceTxDataHash() string
- func (m *UTXO) GetSpentAt() *common.TimestampWrapper
- func (m *UTXO) GetSpentAtNanos() int32
- func (m *UTXO) GetSpentTxDataHash() string
- func (m *UTXO) GetTxType() TxType
- func (m *UTXO) GetUntil() int64
- func (m *UTXO) GetValue() int64
- func (*UTXO) ProtoMessage()
- func (m *UTXO) Reset()
- func (m *UTXO) String() string
- type UTXOSignature
- func (*UTXOSignature) Descriptor() ([]byte, []int)
- func (m *UTXOSignature) GetCreated() int64
- func (m *UTXOSignature) GetCreator() string
- func (m *UTXOSignature) GetNonce() string
- func (m *UTXOSignature) GetPublicKey() []byte
- func (m *UTXOSignature) GetSignature() []byte
- func (*UTXOSignature) ProtoMessage()
- func (m *UTXOSignature) Reset()
- func (m *UTXOSignature) String() string
- type UniformPayload
- func (*UniformPayload) Descriptor() ([]byte, []int)
- func (m *UniformPayload) GetFounder() string
- func (m *UniformPayload) GetPayload() []byte
- func (m *UniformPayload) GetType() TransactionType
- func (m *UniformPayload) GetVersion() int32
- func (*UniformPayload) ProtoMessage()
- func (m *UniformPayload) Reset()
- func (m *UniformPayload) String() string
- type UsersGrowth
- type VerifiableClaim
- func (*VerifiableClaim) Descriptor() ([]byte, []int)
- func (m *VerifiableClaim) GetCreated() *google_protobuf.Timestamp
- func (m *VerifiableClaim) GetExpires() *google_protobuf.Timestamp
- func (m *VerifiableClaim) GetHolder() string
- func (m *VerifiableClaim) GetId() string
- func (m *VerifiableClaim) GetIssuer() string
- func (m *VerifiableClaim) GetMetadata() *Metadata
- func (m *VerifiableClaim) GetName() string
- func (m *VerifiableClaim) GetSignatures() []*Signature
- func (m *VerifiableClaim) GetStatus() Status
- func (m *VerifiableClaim) GetType() string
- func (m *VerifiableClaim) GetUpdated() *google_protobuf.Timestamp
- func (*VerifiableClaim) ProtoMessage()
- func (m *VerifiableClaim) Reset()
- func (m *VerifiableClaim) String() string
- type VerifiableClaimBrief
- func (*VerifiableClaimBrief) Descriptor() ([]byte, []int)
- func (m *VerifiableClaimBrief) GetId() string
- func (m *VerifiableClaimBrief) GetName() string
- func (m *VerifiableClaimBrief) GetStatus() Status
- func (m *VerifiableClaimBrief) GetType() string
- func (*VerifiableClaimBrief) ProtoMessage()
- func (m *VerifiableClaimBrief) Reset()
- func (m *VerifiableClaimBrief) String() string
Constants ¶
This section is empty.
Variables ¶
var CTStatus_name = map[int32]string{
0: "INUSE",
1: "REVOKED",
2: "EXPIRED",
}
var CTStatus_value = map[string]int32{
"INUSE": 0,
"REVOKED": 1,
"EXPIRED": 2,
}
var ColorType_name = map[int32]string{
0: "Undefined",
1: "CTOKEN",
2: "CASSET",
}
var ColorType_value = map[string]int32{
"Undefined": 0,
"CTOKEN": 1,
"CASSET": 2,
}
var DidControlType_name = map[int32]string{
0: "OR",
1: "AND",
2: "MOFN",
}
var DidControlType_value = map[string]int32{
"OR": 0,
"AND": 1,
"MOFN": 2,
}
var DidType_name = map[int32]string{
0: "ASSET",
1: "ENTITY",
2: "ORGANIZATION",
3: "PERSON",
4: "INDEPENDENT",
5: "DEPENDENT",
6: "SERIALNUMBER",
11: "SWCASH",
12: "SWFEE",
13: "SWLOAN",
14: "SWINTEREST",
21: "DAPP",
22: "APPCHAIN",
}
var DidType_value = map[string]int32{
"ASSET": 0,
"ENTITY": 1,
"ORGANIZATION": 2,
"PERSON": 3,
"INDEPENDENT": 4,
"DEPENDENT": 5,
"SERIALNUMBER": 6,
"SWCASH": 11,
"SWFEE": 12,
"SWLOAN": 13,
"SWINTEREST": 14,
"DAPP": 21,
"APPCHAIN": 22,
}
var Status_name = map[int32]string{
0: "INVALID",
1: "VALID",
2: "ISSUED",
}
var Status_value = map[string]int32{
"INVALID": 0,
"VALID": 1,
"ISSUED": 2,
}
var TransactionType_name = map[int32]string{
0: "CreateTx",
1: "CreateDID",
2: "UpdateDID",
3: "CreateVC",
4: "UpdateVC",
5: "CreateCToken",
6: "UpdateCToken",
7: "CreateIndex",
}
var TransactionType_value = map[string]int32{
"CreateTx": 0,
"CreateDID": 1,
"UpdateDID": 2,
"CreateVC": 3,
"UpdateVC": 4,
"CreateCToken": 5,
"UpdateCToken": 6,
"CreateIndex": 7,
}
var TxType_name = map[int32]string{
0: "ISSUE",
1: "NORMAL",
2: "REDEEM",
3: "REVOKE",
4: "ROLLBACK",
5: "INTEREST",
6: "FEE",
7: "REVERSE",
}
var TxType_value = map[string]int32{
"ISSUE": 0,
"NORMAL": 1,
"REDEEM": 2,
"REVOKE": 3,
"ROLLBACK": 4,
"INTEREST": 5,
"FEE": 6,
"REVERSE": 7,
}
Functions ¶
func RegisterTxSrvcServer ¶
func RegisterTxSrvcServer(s *grpc.Server, srv TxSrvcServer)
Types ¶
type AssetsGrowth ¶
type AssetsGrowth struct { // query datetime Datetime string `protobuf:"bytes,1,opt,name=datetime" json:"datetime,omitempty"` // growth amount GrowthAmount int64 `protobuf:"varint,2,opt,name=growth_amount,json=growthAmount" json:"growth_amount,omitempty"` }
func (*AssetsGrowth) Descriptor ¶
func (*AssetsGrowth) Descriptor() ([]byte, []int)
func (*AssetsGrowth) GetDatetime ¶
func (m *AssetsGrowth) GetDatetime() string
func (*AssetsGrowth) GetGrowthAmount ¶
func (m *AssetsGrowth) GetGrowthAmount() int64
func (*AssetsGrowth) ProtoMessage ¶
func (*AssetsGrowth) ProtoMessage()
func (*AssetsGrowth) Reset ¶
func (m *AssetsGrowth) Reset()
func (*AssetsGrowth) String ¶
func (m *AssetsGrowth) String() string
type ColoredToken ¶
type ColoredToken struct { // ColoredToken ID Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // ColoredToken issued base on which ancestor // this should be a didentity Ancestor string `protobuf:"bytes,2,opt,name=ancestor" json:"ancestor,omitempty"` // issue timestamp IssueTime int64 `protobuf:"varint,3,opt,name=issueTime" json:"issueTime,omitempty"` // expire timestamp, -1 indicates no expire ExpireTime int64 `protobuf:"varint,4,opt,name=expireTime" json:"expireTime,omitempty"` // ColoredToken status Status CTStatus `protobuf:"varint,5,opt,name=status,enum=wallet.CTStatus" json:"status,omitempty"` // issuers didentity and signature map Issuers map[string]*Signature `` /* 134-byte string literal not displayed */ // endorsers didentity and signature map Endorsers map[string]*Signature `` /* 138-byte string literal not displayed */ // metadata Metadata []byte `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"` }
func (*ColoredToken) Descriptor ¶
func (*ColoredToken) Descriptor() ([]byte, []int)
func (*ColoredToken) GetAncestor ¶
func (m *ColoredToken) GetAncestor() string
func (*ColoredToken) GetEndorsers ¶
func (m *ColoredToken) GetEndorsers() map[string]*Signature
func (*ColoredToken) GetExpireTime ¶
func (m *ColoredToken) GetExpireTime() int64
func (*ColoredToken) GetId ¶
func (m *ColoredToken) GetId() string
func (*ColoredToken) GetIssueTime ¶
func (m *ColoredToken) GetIssueTime() int64
func (*ColoredToken) GetIssuers ¶
func (m *ColoredToken) GetIssuers() map[string]*Signature
func (*ColoredToken) GetMetadata ¶
func (m *ColoredToken) GetMetadata() []byte
func (*ColoredToken) GetStatus ¶
func (m *ColoredToken) GetStatus() CTStatus
func (*ColoredToken) ProtoMessage ¶
func (*ColoredToken) ProtoMessage()
func (*ColoredToken) Reset ¶
func (m *ColoredToken) Reset()
func (*ColoredToken) String ¶
func (m *ColoredToken) String() string
type DAppAxtConsume ¶
type DAppAxtConsume struct { // query datetime Datetime string `protobuf:"bytes,1,opt,name=datetime" json:"datetime,omitempty"` // query consume_amount ConsumeAmount int64 `protobuf:"varint,2,opt,name=consume_amount,json=consumeAmount" json:"consume_amount,omitempty"` }
func (*DAppAxtConsume) Descriptor ¶
func (*DAppAxtConsume) Descriptor() ([]byte, []int)
func (*DAppAxtConsume) GetConsumeAmount ¶
func (m *DAppAxtConsume) GetConsumeAmount() int64
func (*DAppAxtConsume) GetDatetime ¶
func (m *DAppAxtConsume) GetDatetime() string
func (*DAppAxtConsume) ProtoMessage ¶
func (*DAppAxtConsume) ProtoMessage()
func (*DAppAxtConsume) Reset ¶
func (m *DAppAxtConsume) Reset()
func (*DAppAxtConsume) String ¶
func (m *DAppAxtConsume) String() string
type DAppAxtTotal ¶
type DAppAxtTotal struct { // query assign_amount AssignAmount int64 `protobuf:"varint,1,opt,name=assign_amount,json=assignAmount" json:"assign_amount,omitempty"` // query remain_amount RemainAmount int64 `protobuf:"varint,2,opt,name=remain_amount,json=remainAmount" json:"remain_amount,omitempty"` }
func (*DAppAxtTotal) Descriptor ¶
func (*DAppAxtTotal) Descriptor() ([]byte, []int)
func (*DAppAxtTotal) GetAssignAmount ¶
func (m *DAppAxtTotal) GetAssignAmount() int64
func (*DAppAxtTotal) GetRemainAmount ¶
func (m *DAppAxtTotal) GetRemainAmount() int64
func (*DAppAxtTotal) ProtoMessage ¶
func (*DAppAxtTotal) ProtoMessage()
func (*DAppAxtTotal) Reset ¶
func (m *DAppAxtTotal) Reset()
func (*DAppAxtTotal) String ¶
func (m *DAppAxtTotal) String() string
type DAppIssuedToken ¶
type DAppIssuedToken struct { // query issued_amount IssuedAmount int64 `protobuf:"varint,1,opt,name=issued_amount,json=issuedAmount" json:"issued_amount,omitempty"` // query remain_amount RemainAmount int64 `protobuf:"varint,2,opt,name=remain_amount,json=remainAmount" json:"remain_amount,omitempty"` }
func (*DAppIssuedToken) Descriptor ¶
func (*DAppIssuedToken) Descriptor() ([]byte, []int)
func (*DAppIssuedToken) GetIssuedAmount ¶
func (m *DAppIssuedToken) GetIssuedAmount() int64
func (*DAppIssuedToken) GetRemainAmount ¶
func (m *DAppIssuedToken) GetRemainAmount() int64
func (*DAppIssuedToken) ProtoMessage ¶
func (*DAppIssuedToken) ProtoMessage()
func (*DAppIssuedToken) Reset ¶
func (m *DAppIssuedToken) Reset()
func (*DAppIssuedToken) String ¶
func (m *DAppIssuedToken) String() string
type DAppIssuedTokens ¶
type DAppIssuedTokens struct { // query dap DAppIssuedTokens map[string]*DAppIssuedToken `` /* 152-byte string literal not displayed */ }
func (*DAppIssuedTokens) Descriptor ¶
func (*DAppIssuedTokens) Descriptor() ([]byte, []int)
func (*DAppIssuedTokens) GetDAppIssuedTokens ¶
func (m *DAppIssuedTokens) GetDAppIssuedTokens() map[string]*DAppIssuedToken
func (*DAppIssuedTokens) ProtoMessage ¶
func (*DAppIssuedTokens) ProtoMessage()
func (*DAppIssuedTokens) Reset ¶
func (m *DAppIssuedTokens) Reset()
func (*DAppIssuedTokens) String ¶
func (m *DAppIssuedTokens) String() string
type DAppList ¶
type DAppList struct { // query name Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // query description Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` // query logo Logo string `protobuf:"bytes,3,opt,name=logo" json:"logo,omitempty"` }
func (*DAppList) Descriptor ¶
func (*DAppList) GetDescription ¶
func (*DAppList) ProtoMessage ¶
func (*DAppList) ProtoMessage()
type DAppNum ¶
type DAppNum struct { // query num Num int64 `protobuf:"varint,1,opt,name=num" json:"num,omitempty"` }
func (*DAppNum) Descriptor ¶
func (*DAppNum) ProtoMessage ¶
func (*DAppNum) ProtoMessage()
type DAppTotal ¶
type DAppTotal struct { // query total_assets TotalAssets int64 `protobuf:"varint,1,opt,name=total_assets,json=totalAssets" json:"total_assets,omitempty"` // query total_tokens TotalTokens int64 `protobuf:"varint,2,opt,name=total_tokens,json=totalTokens" json:"total_tokens,omitempty"` // query total_txs TotalTxs int64 `protobuf:"varint,3,opt,name=total_txs,json=totalTxs" json:"total_txs,omitempty"` // query total_income_txs TotalIncomeTxs int64 `protobuf:"varint,4,opt,name=total_income_txs,json=totalIncomeTxs" json:"total_income_txs,omitempty"` // query total_spending_txs TotalSpendingTxs int64 `protobuf:"varint,5,opt,name=total_spending_txs,json=totalSpendingTxs" json:"total_spending_txs,omitempty"` // query total_axt_consumed_txs TotalAxtConsumedTxs int64 `protobuf:"varint,6,opt,name=total_axt_consumed_txs,json=totalAxtConsumedTxs" json:"total_axt_consumed_txs,omitempty"` // query total_income_assets TotalIncomeAssets int64 `protobuf:"varint,7,opt,name=total_income_assets,json=totalIncomeAssets" json:"total_income_assets,omitempty"` // query total_spending_assets TotalSpendingAssets int64 `protobuf:"varint,8,opt,name=total_spending_assets,json=totalSpendingAssets" json:"total_spending_assets,omitempty"` // query total_income_tokens TotalIncomeTokens int64 `protobuf:"varint,9,opt,name=total_income_tokens,json=totalIncomeTokens" json:"total_income_tokens,omitempty"` // query total_spending_tokens TotalSpendingTokens int64 `protobuf:"varint,10,opt,name=total_spending_tokens,json=totalSpendingTokens" json:"total_spending_tokens,omitempty"` }
func (*DAppTotal) Descriptor ¶
func (*DAppTotal) GetTotalAssets ¶
func (*DAppTotal) GetTotalAxtConsumedTxs ¶
func (*DAppTotal) GetTotalIncomeAssets ¶
func (*DAppTotal) GetTotalIncomeTokens ¶
func (*DAppTotal) GetTotalIncomeTxs ¶
func (*DAppTotal) GetTotalSpendingAssets ¶
func (*DAppTotal) GetTotalSpendingTokens ¶
func (*DAppTotal) GetTotalSpendingTxs ¶
func (*DAppTotal) GetTotalTokens ¶
func (*DAppTotal) GetTotalTxs ¶
func (*DAppTotal) ProtoMessage ¶
func (*DAppTotal) ProtoMessage()
type DAppUsersList ¶
type DAppUsersList struct { // query id Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` // query name Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // query email Email string `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"` // query phone Phone string `protobuf:"bytes,4,opt,name=phone" json:"phone,omitempty"` }
func (*DAppUsersList) Descriptor ¶
func (*DAppUsersList) Descriptor() ([]byte, []int)
func (*DAppUsersList) GetEmail ¶
func (m *DAppUsersList) GetEmail() string
func (*DAppUsersList) GetId ¶
func (m *DAppUsersList) GetId() int64
func (*DAppUsersList) GetName ¶
func (m *DAppUsersList) GetName() string
func (*DAppUsersList) GetPhone ¶
func (m *DAppUsersList) GetPhone() string
func (*DAppUsersList) ProtoMessage ¶
func (*DAppUsersList) ProtoMessage()
func (*DAppUsersList) Reset ¶
func (m *DAppUsersList) Reset()
func (*DAppUsersList) String ¶
func (m *DAppUsersList) String() string
type DAppUsersTotal ¶
type DAppUsersTotal struct { // query total_users TotalUsers int64 `protobuf:"varint,1,opt,name=total_users,json=totalUsers" json:"total_users,omitempty"` }
func (*DAppUsersTotal) Descriptor ¶
func (*DAppUsersTotal) Descriptor() ([]byte, []int)
func (*DAppUsersTotal) GetTotalUsers ¶
func (m *DAppUsersTotal) GetTotalUsers() int64
func (*DAppUsersTotal) ProtoMessage ¶
func (*DAppUsersTotal) ProtoMessage()
func (*DAppUsersTotal) Reset ¶
func (m *DAppUsersTotal) Reset()
func (*DAppUsersTotal) String ¶
func (m *DAppUsersTotal) String() string
type DDO ¶
type DDO struct { Context string `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` Type []DidType `protobuf:"varint,3,rep,packed,name=type,enum=wallet.DidType" json:"type,omitempty"` Owners []*DidOwner `protobuf:"bytes,4,rep,name=owners" json:"owners,omitempty"` Guardian string `protobuf:"bytes,5,opt,name=guardian" json:"guardian,omitempty"` Controls []*DidControl `protobuf:"bytes,6,rep,name=controls" json:"controls,omitempty"` Claims map[string]*VerifiableClaimBrief `` /* 132-byte string literal not displayed */ Services map[string]string `` /* 136-byte string literal not displayed */ Endpoint string `protobuf:"bytes,9,opt,name=endpoint" json:"endpoint,omitempty"` Metadata *Metadata `protobuf:"bytes,10,opt,name=metadata" json:"metadata,omitempty"` Created *google_protobuf.Timestamp `protobuf:"bytes,11,opt,name=created" json:"created,omitempty"` Updated *google_protobuf.Timestamp `protobuf:"bytes,12,opt,name=updated" json:"updated,omitempty"` Expires *google_protobuf.Timestamp `protobuf:"bytes,13,opt,name=expires" json:"expires,omitempty"` Signatures []*Signature `protobuf:"bytes,14,rep,name=signatures" json:"signatures,omitempty"` Status Status `protobuf:"varint,15,opt,name=status,enum=wallet.Status" json:"status,omitempty"` Name string `protobuf:"bytes,16,opt,name=name" json:"name,omitempty"` ParentId string `protobuf:"bytes,17,opt,name=parentId" json:"parentId,omitempty"` OffchainMetadata *OffchainMetadata `protobuf:"bytes,18,opt,name=offchainMetadata" json:"offchainMetadata,omitempty"` }
DDO defines an object to describe the decentralized identity
func (*DDO) Descriptor ¶
func (*DDO) GetClaims ¶
func (m *DDO) GetClaims() map[string]*VerifiableClaimBrief
func (*DDO) GetContext ¶
func (*DDO) GetControls ¶
func (m *DDO) GetControls() []*DidControl
func (*DDO) GetCreated ¶
func (m *DDO) GetCreated() *google_protobuf.Timestamp
func (*DDO) GetEndpoint ¶
func (*DDO) GetExpires ¶
func (m *DDO) GetExpires() *google_protobuf.Timestamp
func (*DDO) GetGuardian ¶
func (*DDO) GetMetadata ¶
func (*DDO) GetOffchainMetadata ¶
func (m *DDO) GetOffchainMetadata() *OffchainMetadata
func (*DDO) GetParentId ¶
func (*DDO) GetServices ¶
func (*DDO) GetSignatures ¶
func (*DDO) GetUpdated ¶
func (m *DDO) GetUpdated() *google_protobuf.Timestamp
func (*DDO) ProtoMessage ¶
func (*DDO) ProtoMessage()
type DidControl ¶
type DidControl struct { Type DidControlType `protobuf:"varint,1,opt,name=type,enum=wallet.DidControlType" json:"type,omitempty"` MinimumSignatures int32 `protobuf:"varint,2,opt,name=minimumSignatures" json:"minimumSignatures,omitempty"` Signers []string `protobuf:"bytes,3,rep,name=signers" json:"signers,omitempty"` }
DidControl defines controllers information of decentralized identity
func (*DidControl) Descriptor ¶
func (*DidControl) Descriptor() ([]byte, []int)
func (*DidControl) GetMinimumSignatures ¶
func (m *DidControl) GetMinimumSignatures() int32
func (*DidControl) GetSigners ¶
func (m *DidControl) GetSigners() []string
func (*DidControl) GetType ¶
func (m *DidControl) GetType() DidControlType
func (*DidControl) ProtoMessage ¶
func (*DidControl) ProtoMessage()
func (*DidControl) Reset ¶
func (m *DidControl) Reset()
func (*DidControl) String ¶
func (m *DidControl) String() string
type DidControlType ¶
type DidControlType int32
DidControlType defines the control type of decentralized identity controllers or, and, m of n
const ( DidControlType_OR DidControlType = 0 DidControlType_AND DidControlType = 1 DidControlType_MOFN DidControlType = 2 )
func (DidControlType) EnumDescriptor ¶
func (DidControlType) EnumDescriptor() ([]byte, []int)
func (DidControlType) String ¶
func (x DidControlType) String() string
type DidOwner ¶
type DidOwner struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Type []string `protobuf:"bytes,2,rep,name=type" json:"type,omitempty"` Expires *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=expires" json:"expires,omitempty"` PublicKey *PublicKey `protobuf:"bytes,4,opt,name=publicKey" json:"publicKey,omitempty"` }
DidOwner defines owner information of decentralized identity
func (*DidOwner) Descriptor ¶
func (*DidOwner) GetExpires ¶
func (m *DidOwner) GetExpires() *google_protobuf.Timestamp
func (*DidOwner) GetPublicKey ¶
func (*DidOwner) ProtoMessage ¶
func (*DidOwner) ProtoMessage()
type DidType ¶
type DidType int32
DidType decentralized identity types Decentralized Identity ├── Asset: 资产类型
└── SerialNumber: 序列号资产类型
└── Entity: 账户类型
├── DApp: DAPP账户类型 ├── APPChain: 应用链账户类型 ├── Organization: 组织账户类型 └── Person: 个人账户类型 ├── Dependent: 非独立个人账户类型 └── Independent: 独立个人账户类型
const ( DidType_ASSET DidType = 0 DidType_ENTITY DidType = 1 DidType_ORGANIZATION DidType = 2 DidType_PERSON DidType = 3 DidType_INDEPENDENT DidType = 4 DidType_DEPENDENT DidType = 5 DidType_SERIALNUMBER DidType = 6 DidType_SWCASH DidType = 11 DidType_SWFEE DidType = 12 DidType_SWLOAN DidType = 13 DidType_SWINTEREST DidType = 14 DidType_DAPP DidType = 21 DidType_APPCHAIN DidType = 22 )
func (DidType) EnumDescriptor ¶
type HotAssets ¶
type HotAssets struct { // query asset_id AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId" json:"asset_id,omitempty"` // query txs_num TxsNum int64 `protobuf:"varint,2,opt,name=txs_num,json=txsNum" json:"txs_num,omitempty"` }
func (*HotAssets) Descriptor ¶
func (*HotAssets) GetAssetId ¶
func (*HotAssets) ProtoMessage ¶
func (*HotAssets) ProtoMessage()
type HotTokens ¶
type HotTokens struct { // query token_id TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId" json:"token_id,omitempty"` // query txs_num TxsNum int64 `protobuf:"varint,2,opt,name=txs_num,json=txsNum" json:"txs_num,omitempty"` }
func (*HotTokens) Descriptor ¶
func (*HotTokens) GetTokenId ¶
func (*HotTokens) ProtoMessage ¶
func (*HotTokens) ProtoMessage()
type Metadata ¶
type Metadata struct { Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
Metadata defines on chain metadata of decentralized identity
func (*Metadata) Descriptor ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
type OffchainMetadata ¶
type OffchainMetadata struct { Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` Endpoint string `protobuf:"bytes,2,opt,name=endpoint" json:"endpoint,omitempty"` StorageType string `protobuf:"bytes,3,opt,name=storageType" json:"storageType,omitempty"` ContentHash string `protobuf:"bytes,4,opt,name=contentHash" json:"contentHash,omitempty"` Size int32 `protobuf:"varint,5,opt,name=size" json:"size,omitempty"` ReadOnly bool `protobuf:"varint,6,opt,name=readOnly" json:"readOnly,omitempty"` }
OffchainMetadata defines offchain metadata of decentralized identity
func (*OffchainMetadata) Descriptor ¶
func (*OffchainMetadata) Descriptor() ([]byte, []int)
func (*OffchainMetadata) GetContentHash ¶
func (m *OffchainMetadata) GetContentHash() string
func (*OffchainMetadata) GetEndpoint ¶
func (m *OffchainMetadata) GetEndpoint() string
func (*OffchainMetadata) GetFilename ¶
func (m *OffchainMetadata) GetFilename() string
func (*OffchainMetadata) GetReadOnly ¶
func (m *OffchainMetadata) GetReadOnly() bool
func (*OffchainMetadata) GetSize ¶
func (m *OffchainMetadata) GetSize() int32
func (*OffchainMetadata) GetStorageType ¶
func (m *OffchainMetadata) GetStorageType() string
func (*OffchainMetadata) ProtoMessage ¶
func (*OffchainMetadata) ProtoMessage()
func (*OffchainMetadata) Reset ¶
func (m *OffchainMetadata) Reset()
func (*OffchainMetadata) String ¶
func (m *OffchainMetadata) String() string
type PrivateKey ¶
type PrivateKey struct { Usage string `protobuf:"bytes,1,opt,name=usage" json:"usage,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` RawData []byte `protobuf:"bytes,3,opt,name=rawData,proto3" json:"rawData,omitempty"` }
func (*PrivateKey) Descriptor ¶
func (*PrivateKey) Descriptor() ([]byte, []int)
func (*PrivateKey) GetRawData ¶
func (m *PrivateKey) GetRawData() []byte
func (*PrivateKey) GetType ¶
func (m *PrivateKey) GetType() string
func (*PrivateKey) GetUsage ¶
func (m *PrivateKey) GetUsage() string
func (*PrivateKey) ProtoMessage ¶
func (*PrivateKey) ProtoMessage()
func (*PrivateKey) Reset ¶
func (m *PrivateKey) Reset()
func (*PrivateKey) String ¶
func (m *PrivateKey) String() string
type ProcessTxResponse ¶
type ProcessTxResponse struct {
TxID string `protobuf:"bytes,1,opt,name=txID" json:"txID,omitempty"`
}
func (*ProcessTxResponse) Descriptor ¶
func (*ProcessTxResponse) Descriptor() ([]byte, []int)
func (*ProcessTxResponse) GetTxID ¶
func (m *ProcessTxResponse) GetTxID() string
func (*ProcessTxResponse) ProtoMessage ¶
func (*ProcessTxResponse) ProtoMessage()
func (*ProcessTxResponse) Reset ¶
func (m *ProcessTxResponse) Reset()
func (*ProcessTxResponse) String ¶
func (m *ProcessTxResponse) String() string
type PublicKey ¶
type PublicKey struct { Usage string `protobuf:"bytes,1,opt,name=usage" json:"usage,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` RawData []byte `protobuf:"bytes,3,opt,name=rawData,proto3" json:"rawData,omitempty"` }
func (*PublicKey) Descriptor ¶
func (*PublicKey) GetRawData ¶
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
type QueryTxRequest ¶
type QueryTxRequest struct {
TxHashHex string `protobuf:"bytes,1,opt,name=txHashHex" json:"txHashHex,omitempty"`
}
func (*QueryTxRequest) Descriptor ¶
func (*QueryTxRequest) Descriptor() ([]byte, []int)
func (*QueryTxRequest) GetTxHashHex ¶
func (m *QueryTxRequest) GetTxHashHex() string
func (*QueryTxRequest) ProtoMessage ¶
func (*QueryTxRequest) ProtoMessage()
func (*QueryTxRequest) Reset ¶
func (m *QueryTxRequest) Reset()
func (*QueryTxRequest) String ¶
func (m *QueryTxRequest) String() string
type QueryUTXORequest ¶
type QueryUTXORequest struct { Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"` CTokenId string `protobuf:"bytes,2,opt,name=cTokenId" json:"cTokenId,omitempty"` CType ColorType `protobuf:"varint,3,opt,name=cType,enum=wallet.ColorType" json:"cType,omitempty"` FromAddr string `protobuf:"bytes,4,opt,name=fromAddr" json:"fromAddr,omitempty"` BeginAt *google_protobuf.Timestamp `protobuf:"bytes,5,opt,name=beginAt" json:"beginAt,omitempty"` EndAt *google_protobuf.Timestamp `protobuf:"bytes,6,opt,name=endAt" json:"endAt,omitempty"` Num int32 `protobuf:"varint,7,opt,name=num" json:"num,omitempty"` Page int32 `protobuf:"varint,8,opt,name=page" json:"page,omitempty"` }
func (*QueryUTXORequest) Descriptor ¶
func (*QueryUTXORequest) Descriptor() ([]byte, []int)
func (*QueryUTXORequest) GetAddr ¶
func (m *QueryUTXORequest) GetAddr() string
func (*QueryUTXORequest) GetBeginAt ¶
func (m *QueryUTXORequest) GetBeginAt() *google_protobuf.Timestamp
func (*QueryUTXORequest) GetCTokenId ¶
func (m *QueryUTXORequest) GetCTokenId() string
func (*QueryUTXORequest) GetCType ¶
func (m *QueryUTXORequest) GetCType() ColorType
func (*QueryUTXORequest) GetEndAt ¶
func (m *QueryUTXORequest) GetEndAt() *google_protobuf.Timestamp
func (*QueryUTXORequest) GetFromAddr ¶
func (m *QueryUTXORequest) GetFromAddr() string
func (*QueryUTXORequest) GetNum ¶
func (m *QueryUTXORequest) GetNum() int32
func (*QueryUTXORequest) GetPage ¶
func (m *QueryUTXORequest) GetPage() int32
func (*QueryUTXORequest) ProtoMessage ¶
func (*QueryUTXORequest) ProtoMessage()
func (*QueryUTXORequest) Reset ¶
func (m *QueryUTXORequest) Reset()
func (*QueryUTXORequest) String ¶
func (m *QueryUTXORequest) String() string
type QueryUTXOResponse ¶
type QueryUTXOResponse struct {
Utxos []*UTXO `protobuf:"bytes,1,rep,name=utxos" json:"utxos,omitempty"`
}
func (*QueryUTXOResponse) Descriptor ¶
func (*QueryUTXOResponse) Descriptor() ([]byte, []int)
func (*QueryUTXOResponse) GetUtxos ¶
func (m *QueryUTXOResponse) GetUtxos() []*UTXO
func (*QueryUTXOResponse) Len ¶
func (m *QueryUTXOResponse) Len() int
func (*QueryUTXOResponse) Less ¶
func (m *QueryUTXOResponse) Less(i, j int) bool
func (*QueryUTXOResponse) ProtoMessage ¶
func (*QueryUTXOResponse) ProtoMessage()
func (*QueryUTXOResponse) Reset ¶
func (m *QueryUTXOResponse) Reset()
func (*QueryUTXOResponse) String ¶
func (m *QueryUTXOResponse) String() string
func (*QueryUTXOResponse) Swap ¶
func (m *QueryUTXOResponse) Swap(i, j int)
type Signature ¶
type Signature struct { Header *SignatureHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Sign []byte `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"` }
func (*Signature) Descriptor ¶
func (*Signature) GetHeader ¶
func (m *Signature) GetHeader() *SignatureHeader
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
type SignatureHeader ¶
type SignatureHeader struct { SignType string `protobuf:"bytes,1,opt,name=signType" json:"signType,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator" json:"creator,omitempty"` Created *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=created" json:"created,omitempty"` Nonce []byte `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"` }
func (*SignatureHeader) Descriptor ¶
func (*SignatureHeader) Descriptor() ([]byte, []int)
func (*SignatureHeader) GetCreated ¶
func (m *SignatureHeader) GetCreated() *google_protobuf.Timestamp
func (*SignatureHeader) GetCreator ¶
func (m *SignatureHeader) GetCreator() string
func (*SignatureHeader) GetNonce ¶
func (m *SignatureHeader) GetNonce() []byte
func (*SignatureHeader) GetSignType ¶
func (m *SignatureHeader) GetSignType() string
func (*SignatureHeader) ProtoMessage ¶
func (*SignatureHeader) ProtoMessage()
func (*SignatureHeader) Reset ¶
func (m *SignatureHeader) Reset()
func (*SignatureHeader) String ¶
func (m *SignatureHeader) String() string
type SignatureSimple ¶
type SignatureSimple struct { Creator string `protobuf:"bytes,1,opt,name=creator" json:"creator,omitempty"` Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` Sign []byte `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"` }
func (*SignatureSimple) Descriptor ¶
func (*SignatureSimple) Descriptor() ([]byte, []int)
func (*SignatureSimple) GetCreator ¶
func (m *SignatureSimple) GetCreator() string
func (*SignatureSimple) GetNonce ¶
func (m *SignatureSimple) GetNonce() []byte
func (*SignatureSimple) GetSign ¶
func (m *SignatureSimple) GetSign() []byte
func (*SignatureSimple) ProtoMessage ¶
func (*SignatureSimple) ProtoMessage()
func (*SignatureSimple) Reset ¶
func (m *SignatureSimple) Reset()
func (*SignatureSimple) String ¶
func (m *SignatureSimple) String() string
type SingleColorResult ¶
type SingleColorResult struct { SumCurrentOutputs int64 `protobuf:"varint,1,opt,name=sumCurrentOutputs" json:"sumCurrentOutputs,omitempty"` SumPriorOutputs int64 `protobuf:"varint,2,opt,name=sumPriorOutputs" json:"sumPriorOutputs,omitempty"` }
Single color result
func (*SingleColorResult) Descriptor ¶
func (*SingleColorResult) Descriptor() ([]byte, []int)
func (*SingleColorResult) GetSumCurrentOutputs ¶
func (m *SingleColorResult) GetSumCurrentOutputs() int64
func (*SingleColorResult) GetSumPriorOutputs ¶
func (m *SingleColorResult) GetSumPriorOutputs() int64
func (*SingleColorResult) ProtoMessage ¶
func (*SingleColorResult) ProtoMessage()
func (*SingleColorResult) Reset ¶
func (m *SingleColorResult) Reset()
func (*SingleColorResult) String ¶
func (m *SingleColorResult) String() string
type TX ¶
type TX struct { Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` // @inject_tag: gorm:"type:varchar(50)" Timestamp *common.TimestampWrapper `protobuf:"bytes,2,opt,name=timestamp" json:"timestamp,omitempty" gorm:"type:varchar(50)"` // nanoseconds of timestamp TimestampNanos int32 `protobuf:"varint,3,opt,name=timestampNanos" json:"timestampNanos,omitempty"` Txin []*TxIN `protobuf:"bytes,4,rep,name=txin" json:"txin,omitempty"` Txout []*TxOUT `protobuf:"bytes,5,rep,name=txout" json:"txout,omitempty"` TxType TxType `protobuf:"varint,6,opt,name=txType,enum=wallet.TxType" json:"txType,omitempty"` Founder string `protobuf:"bytes,7,opt,name=founder" json:"founder,omitempty"` }
utxo tx
func (*TX) Descriptor ¶
func (*TX) GetFounder ¶
func (*TX) GetTimestamp ¶
func (m *TX) GetTimestamp() *common.TimestampWrapper
func (*TX) GetTimestampNanos ¶
func (*TX) GetVersion ¶
func (*TX) ProtoMessage ¶
func (*TX) ProtoMessage()
type TXs ¶
type TXs struct {
Txs []*TX `protobuf:"bytes,1,rep,name=txs" json:"txs,omitempty"`
}
utxo txs
func (*TXs) Descriptor ¶
func (*TXs) ProtoMessage ¶
func (*TXs) ProtoMessage()
type TopAssetUsers ¶
type TopAssetUsers struct { // query user_id UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId" json:"user_id,omitempty"` // query assets_num AssetsNum int64 `protobuf:"varint,2,opt,name=assets_num,json=assetsNum" json:"assets_num,omitempty"` }
func (*TopAssetUsers) Descriptor ¶
func (*TopAssetUsers) Descriptor() ([]byte, []int)
func (*TopAssetUsers) GetAssetsNum ¶
func (m *TopAssetUsers) GetAssetsNum() int64
func (*TopAssetUsers) GetUserId ¶
func (m *TopAssetUsers) GetUserId() string
func (*TopAssetUsers) ProtoMessage ¶
func (*TopAssetUsers) ProtoMessage()
func (*TopAssetUsers) Reset ¶
func (m *TopAssetUsers) Reset()
func (*TopAssetUsers) String ¶
func (m *TopAssetUsers) String() string
type TopTokenUsers ¶
type TopTokenUsers struct { // query user_id UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId" json:"user_id,omitempty"` // query tokens_num TokensNum int64 `protobuf:"varint,2,opt,name=tokens_num,json=tokensNum" json:"tokens_num,omitempty"` }
func (*TopTokenUsers) Descriptor ¶
func (*TopTokenUsers) Descriptor() ([]byte, []int)
func (*TopTokenUsers) GetTokensNum ¶
func (m *TopTokenUsers) GetTokensNum() int64
func (*TopTokenUsers) GetUserId ¶
func (m *TopTokenUsers) GetUserId() string
func (*TopTokenUsers) ProtoMessage ¶
func (*TopTokenUsers) ProtoMessage()
func (*TopTokenUsers) Reset ¶
func (m *TopTokenUsers) Reset()
func (*TopTokenUsers) String ¶
func (m *TopTokenUsers) String() string
type Total ¶
type Total struct { // query id TotalDapps int64 `protobuf:"varint,1,opt,name=total_dapps,json=totalDapps" json:"total_dapps,omitempty"` // query total_users TotalUsers int64 `protobuf:"varint,2,opt,name=total_users,json=totalUsers" json:"total_users,omitempty"` // query total_assets TotalAssets int64 `protobuf:"varint,3,opt,name=total_assets,json=totalAssets" json:"total_assets,omitempty"` // query total_tokens TotalTokens int64 `protobuf:"varint,4,opt,name=total_tokens,json=totalTokens" json:"total_tokens,omitempty"` }
func (*Total) Descriptor ¶
func (*Total) GetTotalAssets ¶
func (*Total) GetTotalDapps ¶
func (*Total) GetTotalTokens ¶
func (*Total) GetTotalUsers ¶
func (*Total) ProtoMessage ¶
func (*Total) ProtoMessage()
type TransactionType ¶
type TransactionType int32
Marmot transaction type
const ( TransactionType_CreateTx TransactionType = 0 TransactionType_CreateDID TransactionType = 1 TransactionType_UpdateDID TransactionType = 2 TransactionType_CreateVC TransactionType = 3 TransactionType_UpdateVC TransactionType = 4 TransactionType_CreateCToken TransactionType = 5 TransactionType_UpdateCToken TransactionType = 6 TransactionType_CreateIndex TransactionType = 7 )
func (TransactionType) EnumDescriptor ¶
func (TransactionType) EnumDescriptor() ([]byte, []int)
func (TransactionType) String ¶
func (x TransactionType) String() string
type TxIN ¶
type TxIN struct { // previous output index Ix uint32 `protobuf:"varint,1,opt,name=ix" json:"ix,omitempty"` SourceHash []byte `protobuf:"bytes,2,opt,name=sourceHash,proto3" json:"sourceHash,omitempty"` Script []byte `protobuf:"bytes,3,opt,name=script,proto3" json:"script,omitempty"` Sequence uint32 `protobuf:"varint,4,opt,name=sequence" json:"sequence,omitempty"` }
txin not specified who has this txin, because creator can use their txout only, txin must be creator's previous txout
func (*TxIN) Descriptor ¶
func (*TxIN) GetSequence ¶
func (*TxIN) GetSourceHash ¶
func (*TxIN) ProtoMessage ¶
func (*TxIN) ProtoMessage()
type TxOUT ¶
type TxOUT struct { // ColoredToken ID CTokenId string `protobuf:"bytes,1,opt,name=cTokenId" json:"cTokenId,omitempty"` // ColorType CType ColorType `protobuf:"varint,2,opt,name=cType,enum=wallet.ColorType" json:"cType,omitempty"` // coin amount Value int64 `protobuf:"varint,3,opt,name=value" json:"value,omitempty"` // who will receive this txout Addr string `protobuf:"bytes,4,opt,name=addr" json:"addr,omitempty"` // until xx timestamp, any one cant spend the txout // -1 means no check Until int64 `protobuf:"varint,5,opt,name=until" json:"until,omitempty"` // script Script []byte `protobuf:"bytes,6,opt,name=script,proto3" json:"script,omitempty"` }
tx out
func (*TxOUT) Descriptor ¶
func (*TxOUT) GetCTokenId ¶
func (*TxOUT) ProtoMessage ¶
func (*TxOUT) ProtoMessage()
type TxScript ¶
type TxScript struct { Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` }
func (*TxScript) Descriptor ¶
func (*TxScript) GetPayload ¶
func (*TxScript) GetVersion ¶
func (*TxScript) ProtoMessage ¶
func (*TxScript) ProtoMessage()
type TxSrvcClient ¶
type TxSrvcClient interface { // ProcessTx handles the UTXO transaction request, TxIN -> TxOUT ProcessTx(ctx context.Context, in *TXs, opts ...grpc.CallOption) (*ProcessTxResponse, error) QueryTx(ctx context.Context, in *QueryTxRequest, opts ...grpc.CallOption) (*TX, error) QueryUTXO(ctx context.Context, in *QueryUTXORequest, opts ...grpc.CallOption) (*QueryUTXOResponse, error) }
func NewTxSrvcClient ¶
func NewTxSrvcClient(cc *grpc.ClientConn) TxSrvcClient
type TxSrvcServer ¶
type TxSrvcServer interface { // ProcessTx handles the UTXO transaction request, TxIN -> TxOUT ProcessTx(context.Context, *TXs) (*ProcessTxResponse, error) QueryTx(context.Context, *QueryTxRequest) (*TX, error) QueryUTXO(context.Context, *QueryUTXORequest) (*QueryUTXOResponse, error) }
type TxType ¶
type TxType int32
const ( // Issue ColoredToken TxType_ISSUE TxType = 0 // Transfer ColoredToken TxType_NORMAL TxType = 1 // Redeem ColoredToken // 贴现 TxType_REDEEM TxType = 2 // Revoke ColoredToken // 回收 TxType_REVOKE TxType = 3 // ROLLBACK transaction TxType_ROLLBACK TxType = 4 // interest transaction TxType_INTEREST TxType = 5 // fee transaction TxType_FEE TxType = 6 // Reverse a transaction // 平账操作 TxType_REVERSE TxType = 7 )
func (TxType) EnumDescriptor ¶
type UTXO ¶
type UTXO struct { // SourceTxDataHash the Bitcoin hash (double sha256) of // the given transaction // @inject_tag: gorm:"type:varchar(128);primary_key" SourceTxDataHash string `protobuf:"bytes,1,opt,name=sourceTxDataHash" json:"sourceTxDataHash,omitempty" gorm:"type:varchar(128);primary_key"` // Ix index of output array in the transaction // @inject_tag: gorm:"type:varchar(8);primary_key" // TODO: when using uint32 type and ix is 0 can not save to db // so using string temporarily, will use uint32 type instead next version Ix string `protobuf:"bytes,2,opt,name=ix" json:"ix,omitempty" gorm:"type:varchar(8);primary_key"` // ColoredToken ID // @inject_tag: gorm:"type:varchar(128)" CTokenId string `protobuf:"bytes,3,opt,name=cTokenId" json:"cTokenId,omitempty" gorm:"type:varchar(128)"` // ColorType CType ColorType `protobuf:"varint,4,opt,name=cType,enum=wallet.ColorType" json:"cType,omitempty"` // coin amount Value int64 `protobuf:"varint,5,opt,name=value" json:"value,omitempty"` // who will receive this txout // @inject_tag: gorm:"type:varchar(64);index" Addr string `protobuf:"bytes,6,opt,name=addr" json:"addr,omitempty" gorm:"type:varchar(64);index"` // until xx timestamp, any one cant spend the txout // -1 means no check Until int64 `protobuf:"varint,7,opt,name=until" json:"until,omitempty"` // script Script []byte `protobuf:"bytes,8,opt,name=script,proto3" json:"script,omitempty"` // CreatedAt // @inject_tag: gorm:"type:varchar(64)" CreatedAt *common.TimestampWrapper `protobuf:"bytes,9,opt,name=createdAt" json:"createdAt,omitempty" gorm:"type:varchar(64)"` // nanoseconds of timestamp CreatedAtNanos int32 `protobuf:"varint,10,opt,name=createdAtNanos" json:"createdAtNanos,omitempty"` // Founder who created this tx // @inject_tag: gorm:"type:varchar(64);index" Founder string `protobuf:"bytes,11,opt,name=founder" json:"founder,omitempty" gorm:"type:varchar(64);index"` TxType TxType `protobuf:"varint,12,opt,name=txType,enum=wallet.TxType" json:"txType,omitempty"` // BcTxId blockchain transaction id BcTxId string `protobuf:"bytes,13,opt,name=bcTxId" json:"bcTxId,omitempty"` // SpentTxDataHash // @inject_tag: gorm:"type:varchar(128)" SpentTxDataHash string `protobuf:"bytes,14,opt,name=spentTxDataHash" json:"spentTxDataHash,omitempty" gorm:"type:varchar(128)"` // SpentAt ... // @inject_tag: gorm:"type:varchar(64)" SpentAt *common.TimestampWrapper `protobuf:"bytes,15,opt,name=spentAt" json:"spentAt,omitempty" gorm:"type:varchar(64)"` // nanoseconds of timestamp SpentAtNanos int32 `protobuf:"varint,16,opt,name=spentAtNanos" json:"spentAtNanos,omitempty"` }
UTXO
func (*UTXO) Descriptor ¶
func (*UTXO) GetCTokenId ¶
func (*UTXO) GetCreatedAt ¶
func (m *UTXO) GetCreatedAt() *common.TimestampWrapper
func (*UTXO) GetCreatedAtNanos ¶
func (*UTXO) GetFounder ¶
func (*UTXO) GetSourceTxDataHash ¶
func (*UTXO) GetSpentAt ¶
func (m *UTXO) GetSpentAt() *common.TimestampWrapper
func (*UTXO) GetSpentAtNanos ¶
func (*UTXO) GetSpentTxDataHash ¶
func (*UTXO) ProtoMessage ¶
func (*UTXO) ProtoMessage()
type UTXOSignature ¶
type UTXOSignature struct { Creator string `protobuf:"bytes,1,opt,name=creator" json:"creator,omitempty"` Created int64 `protobuf:"varint,2,opt,name=created" json:"created,omitempty"` Nonce string `protobuf:"bytes,3,opt,name=nonce" json:"nonce,omitempty"` Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` PublicKey []byte `protobuf:"bytes,5,opt,name=publicKey,proto3" json:"publicKey,omitempty"` }
UTXOSignature is used to save signature of UTXO PublicKey is which the utxo owned to(IPublicKey.GetRawData()) Signature is signed the PublicKey by founder's private key
func (*UTXOSignature) Descriptor ¶
func (*UTXOSignature) Descriptor() ([]byte, []int)
func (*UTXOSignature) GetCreated ¶
func (m *UTXOSignature) GetCreated() int64
func (*UTXOSignature) GetCreator ¶
func (m *UTXOSignature) GetCreator() string
func (*UTXOSignature) GetNonce ¶
func (m *UTXOSignature) GetNonce() string
func (*UTXOSignature) GetPublicKey ¶
func (m *UTXOSignature) GetPublicKey() []byte
func (*UTXOSignature) GetSignature ¶
func (m *UTXOSignature) GetSignature() []byte
func (*UTXOSignature) ProtoMessage ¶
func (*UTXOSignature) ProtoMessage()
func (*UTXOSignature) Reset ¶
func (m *UTXOSignature) Reset()
func (*UTXOSignature) String ¶
func (m *UTXOSignature) String() string
type UniformPayload ¶
type UniformPayload struct { Version int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` Type TransactionType `protobuf:"varint,2,opt,name=type,enum=wallet.TransactionType" json:"type,omitempty"` Founder string `protobuf:"bytes,3,opt,name=founder" json:"founder,omitempty"` Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` }
func (*UniformPayload) Descriptor ¶
func (*UniformPayload) Descriptor() ([]byte, []int)
func (*UniformPayload) GetFounder ¶
func (m *UniformPayload) GetFounder() string
func (*UniformPayload) GetPayload ¶
func (m *UniformPayload) GetPayload() []byte
func (*UniformPayload) GetType ¶
func (m *UniformPayload) GetType() TransactionType
func (*UniformPayload) GetVersion ¶
func (m *UniformPayload) GetVersion() int32
func (*UniformPayload) ProtoMessage ¶
func (*UniformPayload) ProtoMessage()
func (*UniformPayload) Reset ¶
func (m *UniformPayload) Reset()
func (*UniformPayload) String ¶
func (m *UniformPayload) String() string
type UsersGrowth ¶
type UsersGrowth struct { // query datetime Datetime string `protobuf:"bytes,1,opt,name=datetime" json:"datetime,omitempty"` // query growth_amount GrowthAmount int64 `protobuf:"varint,2,opt,name=growth_amount,json=growthAmount" json:"growth_amount,omitempty"` }
func (*UsersGrowth) Descriptor ¶
func (*UsersGrowth) Descriptor() ([]byte, []int)
func (*UsersGrowth) GetDatetime ¶
func (m *UsersGrowth) GetDatetime() string
func (*UsersGrowth) GetGrowthAmount ¶
func (m *UsersGrowth) GetGrowthAmount() int64
func (*UsersGrowth) ProtoMessage ¶
func (*UsersGrowth) ProtoMessage()
func (*UsersGrowth) Reset ¶
func (m *UsersGrowth) Reset()
func (*UsersGrowth) String ¶
func (m *UsersGrowth) String() string
type VerifiableClaim ¶
type VerifiableClaim struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Status Status `protobuf:"varint,2,opt,name=status,enum=wallet.Status" json:"status,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Type string `protobuf:"bytes,4,opt,name=type" json:"type,omitempty"` Metadata *Metadata `protobuf:"bytes,5,opt,name=metadata" json:"metadata,omitempty"` Holder string `protobuf:"bytes,6,opt,name=holder" json:"holder,omitempty"` Issuer string `protobuf:"bytes,7,opt,name=issuer" json:"issuer,omitempty"` Signatures []*Signature `protobuf:"bytes,8,rep,name=signatures" json:"signatures,omitempty"` Created *google_protobuf.Timestamp `protobuf:"bytes,9,opt,name=created" json:"created,omitempty"` Updated *google_protobuf.Timestamp `protobuf:"bytes,10,opt,name=updated" json:"updated,omitempty"` Expires *google_protobuf.Timestamp `protobuf:"bytes,11,opt,name=expires" json:"expires,omitempty"` }
func (*VerifiableClaim) Descriptor ¶
func (*VerifiableClaim) Descriptor() ([]byte, []int)
func (*VerifiableClaim) GetCreated ¶
func (m *VerifiableClaim) GetCreated() *google_protobuf.Timestamp
func (*VerifiableClaim) GetExpires ¶
func (m *VerifiableClaim) GetExpires() *google_protobuf.Timestamp
func (*VerifiableClaim) GetHolder ¶
func (m *VerifiableClaim) GetHolder() string
func (*VerifiableClaim) GetId ¶
func (m *VerifiableClaim) GetId() string
func (*VerifiableClaim) GetIssuer ¶
func (m *VerifiableClaim) GetIssuer() string
func (*VerifiableClaim) GetMetadata ¶
func (m *VerifiableClaim) GetMetadata() *Metadata
func (*VerifiableClaim) GetName ¶
func (m *VerifiableClaim) GetName() string
func (*VerifiableClaim) GetSignatures ¶
func (m *VerifiableClaim) GetSignatures() []*Signature
func (*VerifiableClaim) GetStatus ¶
func (m *VerifiableClaim) GetStatus() Status
func (*VerifiableClaim) GetType ¶
func (m *VerifiableClaim) GetType() string
func (*VerifiableClaim) GetUpdated ¶
func (m *VerifiableClaim) GetUpdated() *google_protobuf.Timestamp
func (*VerifiableClaim) ProtoMessage ¶
func (*VerifiableClaim) ProtoMessage()
func (*VerifiableClaim) Reset ¶
func (m *VerifiableClaim) Reset()
func (*VerifiableClaim) String ¶
func (m *VerifiableClaim) String() string
type VerifiableClaimBrief ¶
type VerifiableClaimBrief struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Status Status `protobuf:"varint,2,opt,name=status,enum=wallet.Status" json:"status,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Type string `protobuf:"bytes,4,opt,name=type" json:"type,omitempty"` }
func (*VerifiableClaimBrief) Descriptor ¶
func (*VerifiableClaimBrief) Descriptor() ([]byte, []int)
func (*VerifiableClaimBrief) GetId ¶
func (m *VerifiableClaimBrief) GetId() string
func (*VerifiableClaimBrief) GetName ¶
func (m *VerifiableClaimBrief) GetName() string
func (*VerifiableClaimBrief) GetStatus ¶
func (m *VerifiableClaimBrief) GetStatus() Status
func (*VerifiableClaimBrief) GetType ¶
func (m *VerifiableClaimBrief) GetType() string
func (*VerifiableClaimBrief) ProtoMessage ¶
func (*VerifiableClaimBrief) ProtoMessage()
func (*VerifiableClaimBrief) Reset ¶
func (m *VerifiableClaimBrief) Reset()
func (*VerifiableClaimBrief) String ¶
func (m *VerifiableClaimBrief) String() string