Documentation
¶
Index ¶
- Constants
- Variables
- func AmountFromZksync(s string) (uint64, error)
- func AmountToZksync(a uint64) string
- func Byte2Str(v []byte) string
- func Byte2Uint64(v []byte) uint64
- func CheckAmount(amount, coinPrecision int64) bool
- func CheckAssetLimitOrder(cfg *types.Chain33Config, order *SpotAssetLimitOrder) error
- func CheckCount(count int32) bool
- func CheckDirection(direction int32) bool
- func CheckExchangeAsset(coinExec string, left, right uint64) bool
- func CheckIsNFTToken(id uint64) bool
- func CheckIsNormalToken(id uint64) bool
- func CheckLimitOrder(cfg *types.Chain33Config, limitOrder *SpotLimitOrder) error
- func CheckNftOrder(cfg *types.Chain33Config, limitOrder *SpotNftOrder) error
- func CheckNftOrder2(cfg *types.Chain33Config, limitOrder *SpotNftOrder) error
- func CheckOp(op int32) bool
- func CheckPrice(price int64) bool
- func CheckStatus(status int32) bool
- func DecimalAddr2Hex(addr string) (string, bool)
- func DecodePacVal(p []byte, expBitWidth int) string
- func FilterHexPrefix(s string) string
- func GetOpChunkNum(opType uint32) (int, error)
- func GetStack() string
- func HexAddr2Decimal(addr string) (string, bool)
- func InitExecutor(cfg *types.Chain33Config)
- func InitFork(cfg *types.Chain33Config)
- func MergeReceipt(receipt1, receipt2 *types.Receipt) *types.Receipt
- func NftAmountFromZksync(s string) (uint64, error)
- func NftAmountToZksync(a uint64) string
- func RegisterZkspotServer(s *grpc.Server, srv ZkspotServer)
- func RegisterZksyncServer(s *grpc.Server, srv ZksyncServer)
- func SplitNFTContent(contentHash string) (*big.Int, *big.Int, string, error)
- func SpotInitFork(cfg *types.Chain33Config)
- func Str2Byte(v string) []byte
- func ZkFindExponentPart(s string) (int, error)
- func ZkTransferManExpPart(s string) (string, int, error)
- type AccountProxyPubKeys
- func (*AccountProxyPubKeys) Descriptor() ([]byte, []int)deprecated
- func (x *AccountProxyPubKeys) GetNormal() *ZkPubKey
- func (x *AccountProxyPubKeys) GetSuper() *ZkPubKey
- func (x *AccountProxyPubKeys) GetSystem() *ZkPubKey
- func (*AccountProxyPubKeys) ProtoMessage()
- func (x *AccountProxyPubKeys) ProtoReflect() protoreflect.Message
- func (x *AccountProxyPubKeys) Reset()
- func (x *AccountProxyPubKeys) String() string
- type AccountTree
- func (*AccountTree) Descriptor() ([]byte, []int)deprecated
- func (x *AccountTree) GetIndex() uint64
- func (x *AccountTree) GetMaxCurrentIndex() uint64
- func (x *AccountTree) GetSubTrees() []*SubTree
- func (x *AccountTree) GetTotalIndex() uint64
- func (*AccountTree) ProtoMessage()
- func (x *AccountTree) ProtoReflect() protoreflect.Message
- func (x *AccountTree) Reset()
- func (x *AccountTree) String() string
- type AccountWitness
- func (*AccountWitness) Descriptor() ([]byte, []int)deprecated
- func (x *AccountWitness) GetChain33Addr() string
- func (x *AccountWitness) GetEthAddr() string
- func (x *AccountWitness) GetID() uint64
- func (x *AccountWitness) GetProxyPubKeys() *AccountProxyPubKeys
- func (x *AccountWitness) GetPubKey() *ZkPubKey
- func (x *AccountWitness) GetSibling() *SiblingPath
- func (x *AccountWitness) GetTokenTreeRoot() string
- func (*AccountWitness) ProtoMessage()
- func (x *AccountWitness) ProtoReflect() protoreflect.Message
- func (x *AccountWitness) Reset()
- func (x *AccountWitness) String() string
- type AssetToken
- type AssetType
- type CoinCfg
- type CommitProofState
- func (*CommitProofState) Descriptor() ([]byte, []int)deprecated
- func (x *CommitProofState) GetBlockEnd() uint64
- func (x *CommitProofState) GetBlockStart() uint64
- func (x *CommitProofState) GetChainTitleId() uint64
- func (x *CommitProofState) GetCommitBlockHeight() int64
- func (x *CommitProofState) GetIndexEnd() uint64
- func (x *CommitProofState) GetIndexStart() uint64
- func (x *CommitProofState) GetNewTreeRoot() string
- func (x *CommitProofState) GetOldTreeRoot() string
- func (x *CommitProofState) GetOnChainProofId() uint64
- func (x *CommitProofState) GetOpIndex() uint32
- func (x *CommitProofState) GetProofId() uint64
- func (*CommitProofState) ProtoMessage()
- func (x *CommitProofState) ProtoReflect() protoreflect.Message
- func (x *CommitProofState) Reset()
- func (x *CommitProofState) String() string
- type DBprefix
- type DexAccount
- func (*DexAccount) Descriptor() ([]byte, []int)deprecated
- func (x *DexAccount) GetAddr() string
- func (x *DexAccount) GetBalance() []*DexAccountBalance
- func (x *DexAccount) GetDexName() string
- func (x *DexAccount) GetId() uint64
- func (*DexAccount) ProtoMessage()
- func (x *DexAccount) ProtoReflect() protoreflect.Message
- func (x *DexAccount) Reset()
- func (x *DexAccount) String() string
- type DexAccountBalance
- func (*DexAccountBalance) Descriptor() ([]byte, []int)deprecated
- func (x *DexAccountBalance) GetBalance() uint64
- func (x *DexAccountBalance) GetFrozen() uint64
- func (x *DexAccountBalance) GetId() uint64
- func (*DexAccountBalance) ProtoMessage()
- func (x *DexAccountBalance) ProtoReflect() protoreflect.Message
- func (x *DexAccountBalance) Reset()
- func (x *DexAccountBalance) String() string
- type Econfig
- type EthPriorityQueueID
- type HistoryAccountProofInfo
- func (*HistoryAccountProofInfo) Descriptor() ([]byte, []int)deprecated
- func (x *HistoryAccountProofInfo) GetLeafHashes() [][]byte
- func (x *HistoryAccountProofInfo) GetLeaves() []*HistoryLeaf
- func (x *HistoryAccountProofInfo) GetRootHash() string
- func (*HistoryAccountProofInfo) ProtoMessage()
- func (x *HistoryAccountProofInfo) ProtoReflect() protoreflect.Message
- func (x *HistoryAccountProofInfo) Reset()
- func (x *HistoryAccountProofInfo) String() string
- type HistoryLeaf
- func (*HistoryLeaf) Descriptor() ([]byte, []int)deprecated
- func (x *HistoryLeaf) GetAccountId() uint64
- func (x *HistoryLeaf) GetChain33Addr() string
- func (x *HistoryLeaf) GetEthAddress() string
- func (x *HistoryLeaf) GetProofId() uint64
- func (x *HistoryLeaf) GetProxyPubKeys() *AccountProxyPubKeys
- func (x *HistoryLeaf) GetPubKey() *ZkPubKey
- func (x *HistoryLeaf) GetTokenHash() string
- func (x *HistoryLeaf) GetTokens() []*TokenBalance
- func (*HistoryLeaf) ProtoMessage()
- func (x *HistoryLeaf) ProtoReflect() protoreflect.Message
- func (x *HistoryLeaf) Reset()
- func (x *HistoryLeaf) String() string
- type LastOnChainProof
- func (*LastOnChainProof) Descriptor() ([]byte, []int)deprecated
- func (x *LastOnChainProof) GetChainTitleId() uint64
- func (x *LastOnChainProof) GetOnChainProofId() uint64
- func (x *LastOnChainProof) GetProofId() uint64
- func (*LastOnChainProof) ProtoMessage()
- func (x *LastOnChainProof) ProtoReflect() protoreflect.Message
- func (x *LastOnChainProof) Reset()
- func (x *LastOnChainProof) String() string
- type Leaf
- func (*Leaf) Descriptor() ([]byte, []int)deprecated
- func (x *Leaf) GetAccountId() uint64
- func (x *Leaf) GetChain33Addr() string
- func (x *Leaf) GetEthAddress() string
- func (x *Leaf) GetProxyPubKeys() *AccountProxyPubKeys
- func (x *Leaf) GetPubKey() *ZkPubKey
- func (x *Leaf) GetTokenHash() string
- func (x *Leaf) GetTokenIds() []uint64
- func (*Leaf) ProtoMessage()
- func (x *Leaf) ProtoReflect() protoreflect.Message
- func (x *Leaf) Reset()
- func (x *Leaf) String() string
- type MatchInfo
- func (*MatchInfo) Descriptor() ([]byte, []int)deprecated
- func (x *MatchInfo) GetFeeMaker() int64
- func (x *MatchInfo) GetFeeTaker() int64
- func (x *MatchInfo) GetLeftBalance() int64
- func (x *MatchInfo) GetMatched() int64
- func (x *MatchInfo) GetPrice() int64
- func (x *MatchInfo) GetRightBalance() int64
- func (*MatchInfo) ProtoMessage()
- func (x *MatchInfo) ProtoReflect() protoreflect.Message
- func (x *MatchInfo) Reset()
- func (x *MatchInfo) String() string
- type MerkleTreeProof
- func (*MerkleTreeProof) Descriptor() ([]byte, []int)deprecated
- func (x *MerkleTreeProof) GetHelpers() []string
- func (x *MerkleTreeProof) GetProofSet() []string
- func (x *MerkleTreeProof) GetRootHash() string
- func (*MerkleTreeProof) ProtoMessage()
- func (x *MerkleTreeProof) ProtoReflect() protoreflect.Message
- func (x *MerkleTreeProof) Reset()
- func (x *MerkleTreeProof) String() string
- type OperationInfo
- func (*OperationInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OperationInfo) GetBlockHeight() uint64
- func (x *OperationInfo) GetEthPriorityId() int64
- func (x *OperationInfo) GetOpIndex() uint32
- func (x *OperationInfo) GetOperationBranches() []*OperationPairBranch
- func (x *OperationInfo) GetRoots() []string
- func (x *OperationInfo) GetSpecialInfo() *OperationSpecialInfo
- func (x *OperationInfo) GetTxHash() string
- func (x *OperationInfo) GetTxIndex() uint32
- func (x *OperationInfo) GetTxType() uint32
- func (*OperationInfo) ProtoMessage()
- func (x *OperationInfo) ProtoReflect() protoreflect.Message
- func (x *OperationInfo) Reset()
- func (x *OperationInfo) String() string
- type OperationMetaBranch
- func (*OperationMetaBranch) Descriptor() ([]byte, []int)deprecated
- func (x *OperationMetaBranch) GetAccountWitness() *AccountWitness
- func (x *OperationMetaBranch) GetTokenWitness() *TokenWitness
- func (*OperationMetaBranch) ProtoMessage()
- func (x *OperationMetaBranch) ProtoReflect() protoreflect.Message
- func (x *OperationMetaBranch) Reset()
- func (x *OperationMetaBranch) String() string
- type OperationPairBranch
- func (*OperationPairBranch) Descriptor() ([]byte, []int)deprecated
- func (x *OperationPairBranch) GetAfter() *OperationMetaBranch
- func (x *OperationPairBranch) GetBefore() *OperationMetaBranch
- func (*OperationPairBranch) ProtoMessage()
- func (x *OperationPairBranch) ProtoReflect() protoreflect.Message
- func (x *OperationPairBranch) Reset()
- func (x *OperationPairBranch) String() string
- type OperationSpecialInfo
- func (*OperationSpecialInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OperationSpecialInfo) GetContract2TreeNew() *ZkContractToTreeNewWitnessInfo
- func (x *OperationSpecialInfo) GetContractToTree() *ZkContractToTreeWitnessInfo
- func (x *OperationSpecialInfo) GetDeposit() *ZkDepositWitnessInfo
- func (x *OperationSpecialInfo) GetFee() *ZkFeeWitnessInfo
- func (x *OperationSpecialInfo) GetFullExit() *ZkFullExitWitnessInfo
- func (x *OperationSpecialInfo) GetMintNFT() *ZkMintNFTWitnessInfo
- func (x *OperationSpecialInfo) GetProxyExit() *ZkProxyExitWitnessInfo
- func (x *OperationSpecialInfo) GetSetPubKey() *ZkSetPubKeyWitnessInfo
- func (x *OperationSpecialInfo) GetSwap() *ZkSwapWitnessInfo
- func (x *OperationSpecialInfo) GetTransfer() *ZkTransferWitnessInfo
- func (x *OperationSpecialInfo) GetTransferNFT() *ZkTransferNFTWitnessInfo
- func (x *OperationSpecialInfo) GetTransferToNew() *ZkTransferToNewWitnessInfo
- func (x *OperationSpecialInfo) GetTreeToContract() *ZkTreeToContractWitnessInfo
- func (m *OperationSpecialInfo) GetValue() isOperationSpecialInfo_Value
- func (x *OperationSpecialInfo) GetWithdraw() *ZkWithdrawWitnessInfo
- func (x *OperationSpecialInfo) GetWithdrawNFT() *ZkWithdrawNFTWitnessInfo
- func (*OperationSpecialInfo) ProtoMessage()
- func (x *OperationSpecialInfo) ProtoReflect() protoreflect.Message
- func (x *OperationSpecialInfo) Reset()
- func (x *OperationSpecialInfo) String() string
- type OperationSpecialInfo_Contract2TreeNew
- type OperationSpecialInfo_ContractToTree
- type OperationSpecialInfo_Deposit
- type OperationSpecialInfo_Fee
- type OperationSpecialInfo_FullExit
- type OperationSpecialInfo_MintNFT
- type OperationSpecialInfo_ProxyExit
- type OperationSpecialInfo_SetPubKey
- type OperationSpecialInfo_Swap
- type OperationSpecialInfo_Transfer
- type OperationSpecialInfo_TransferNFT
- type OperationSpecialInfo_TransferToNew
- type OperationSpecialInfo_TreeToContract
- type OperationSpecialInfo_Withdraw
- type OperationSpecialInfo_WithdrawNFT
- type ReceiptCommitProof
- func (*ReceiptCommitProof) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptCommitProof) GetCurrent() *CommitProofState
- func (x *ReceiptCommitProof) GetPrev() *CommitProofState
- func (*ReceiptCommitProof) ProtoMessage()
- func (x *ReceiptCommitProof) ProtoReflect() protoreflect.Message
- func (x *ReceiptCommitProof) Reset()
- func (x *ReceiptCommitProof) String() string
- type ReceiptCommitProofRecord
- func (*ReceiptCommitProofRecord) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptCommitProofRecord) GetProof() *CommitProofState
- func (*ReceiptCommitProofRecord) ProtoMessage()
- func (x *ReceiptCommitProofRecord) ProtoReflect() protoreflect.Message
- func (x *ReceiptCommitProofRecord) Reset()
- func (x *ReceiptCommitProofRecord) String() string
- type ReceiptDexAccount
- func (*ReceiptDexAccount) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptDexAccount) GetCurrent() *DexAccount
- func (x *ReceiptDexAccount) GetPrev() *DexAccount
- func (*ReceiptDexAccount) ProtoMessage()
- func (x *ReceiptDexAccount) ProtoReflect() protoreflect.Message
- func (x *ReceiptDexAccount) Reset()
- func (x *ReceiptDexAccount) String() string
- type ReceiptDexBind
- func (*ReceiptDexBind) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptDexBind) GetExchangeAddress() string
- func (x *ReceiptDexBind) GetNewEntrustAddress() string
- func (x *ReceiptDexBind) GetOldEntrustAddress() string
- func (*ReceiptDexBind) ProtoMessage()
- func (x *ReceiptDexBind) ProtoReflect() protoreflect.Message
- func (x *ReceiptDexBind) Reset()
- func (x *ReceiptDexBind) String() string
- type ReceiptEthPriorityQueueID
- func (*ReceiptEthPriorityQueueID) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptEthPriorityQueueID) GetCurrent() int64
- func (x *ReceiptEthPriorityQueueID) GetPrev() int64
- func (*ReceiptEthPriorityQueueID) ProtoMessage()
- func (x *ReceiptEthPriorityQueueID) ProtoReflect() protoreflect.Message
- func (x *ReceiptEthPriorityQueueID) Reset()
- func (x *ReceiptEthPriorityQueueID) String() string
- type ReceiptExodusMode
- func (*ReceiptExodusMode) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptExodusMode) GetCurrent() int64
- func (x *ReceiptExodusMode) GetPrev() int64
- func (*ReceiptExodusMode) ProtoMessage()
- func (x *ReceiptExodusMode) ProtoReflect() protoreflect.Message
- func (x *ReceiptExodusMode) Reset()
- func (x *ReceiptExodusMode) String() string
- type ReceiptSetFee
- func (*ReceiptSetFee) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptSetFee) GetActionTy() int32
- func (x *ReceiptSetFee) GetCurrentAmount() string
- func (x *ReceiptSetFee) GetPrevAmount() string
- func (x *ReceiptSetFee) GetTokenId() uint64
- func (*ReceiptSetFee) ProtoMessage()
- func (x *ReceiptSetFee) ProtoReflect() protoreflect.Message
- func (x *ReceiptSetFee) Reset()
- func (x *ReceiptSetFee) String() string
- type ReceiptSetTokenSymbol
- func (*ReceiptSetTokenSymbol) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptSetTokenSymbol) GetCur() *ZkTokenSymbol
- func (x *ReceiptSetTokenSymbol) GetPre() *ZkTokenSymbol
- func (*ReceiptSetTokenSymbol) ProtoMessage()
- func (x *ReceiptSetTokenSymbol) ProtoReflect() protoreflect.Message
- func (x *ReceiptSetTokenSymbol) Reset()
- func (x *ReceiptSetTokenSymbol) String() string
- type ReceiptSetVerifier
- func (*ReceiptSetVerifier) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptSetVerifier) GetCurrent() *ZkVerifier
- func (x *ReceiptSetVerifier) GetPrev() *ZkVerifier
- func (*ReceiptSetVerifier) ProtoMessage()
- func (x *ReceiptSetVerifier) ProtoReflect() protoreflect.Message
- func (x *ReceiptSetVerifier) Reset()
- func (x *ReceiptSetVerifier) String() string
- type ReceiptSetVerifyKey
- func (*ReceiptSetVerifyKey) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptSetVerifyKey) GetCurrent() *ZkVerifyKey
- func (x *ReceiptSetVerifyKey) GetPrev() *ZkVerifyKey
- func (*ReceiptSetVerifyKey) ProtoMessage()
- func (x *ReceiptSetVerifyKey) ProtoReflect() protoreflect.Message
- func (x *ReceiptSetVerifyKey) Reset()
- func (x *ReceiptSetVerifyKey) String() string
- type ReceiptSpotMatch
- func (*ReceiptSpotMatch) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptSpotMatch) GetIndex() int64
- func (x *ReceiptSpotMatch) GetMatchOrders() []*SpotOrder
- func (x *ReceiptSpotMatch) GetOrder() *SpotOrder
- func (*ReceiptSpotMatch) ProtoMessage()
- func (x *ReceiptSpotMatch) ProtoReflect() protoreflect.Message
- func (x *ReceiptSpotMatch) Reset()
- func (x *ReceiptSpotMatch) String() string
- type ReceiptSpotTrade
- func (*ReceiptSpotTrade) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptSpotTrade) GetCurrent() *TradeAccounts
- func (x *ReceiptSpotTrade) GetMakerOrder() *ZkOrder
- func (x *ReceiptSpotTrade) GetMatch() *MatchInfo
- func (x *ReceiptSpotTrade) GetPrev() *TradeAccounts
- func (*ReceiptSpotTrade) ProtoMessage()
- func (x *ReceiptSpotTrade) ProtoReflect() protoreflect.Message
- func (x *ReceiptSpotTrade) Reset()
- func (x *ReceiptSpotTrade) String() string
- type RelayerOperators
- type RootInfo
- func (*RootInfo) Descriptor() ([]byte, []int)deprecated
- func (x *RootInfo) GetHeight() int32
- func (x *RootInfo) GetRootHash() string
- func (x *RootInfo) GetStartIndex() uint64
- func (*RootInfo) ProtoMessage()
- func (x *RootInfo) ProtoReflect() protoreflect.Message
- func (x *RootInfo) Reset()
- func (x *RootInfo) String() string
- type SiblingPath
- func (*SiblingPath) Descriptor() ([]byte, []int)deprecated
- func (x *SiblingPath) GetHelper() []string
- func (x *SiblingPath) GetPath() []string
- func (*SiblingPath) ProtoMessage()
- func (x *SiblingPath) ProtoReflect() protoreflect.Message
- func (x *SiblingPath) Reset()
- func (x *SiblingPath) String() string
- type SpotAction
- func (*SpotAction) Descriptor() ([]byte, []int)deprecated
- func (x *SpotAction) GetEntrustOrder() *SpotEntrustOrder
- func (x *SpotAction) GetEntrustRevokeOrder() *SpotEntrustRevokeOrder
- func (x *SpotAction) GetExchangeBind() *SpotExchangeBind
- func (x *SpotAction) GetLimitOrder() *SpotLimitOrder
- func (x *SpotAction) GetMarketOrder() *SpotMarketOrder
- func (x *SpotAction) GetRevokeOrder() *SpotRevokeOrder
- func (x *SpotAction) GetTy() int32
- func (m *SpotAction) GetValue() isSpotAction_Value
- func (*SpotAction) ProtoMessage()
- func (x *SpotAction) ProtoReflect() protoreflect.Message
- func (x *SpotAction) Reset()
- func (x *SpotAction) String() string
- type SpotAction_EntrustOrder
- type SpotAction_EntrustRevokeOrder
- type SpotAction_ExchangeBind
- type SpotAction_LimitOrder
- type SpotAction_MarketOrder
- type SpotAction_RevokeOrder
- type SpotAssetLimitOrder
- func (*SpotAssetLimitOrder) Descriptor() ([]byte, []int)deprecated
- func (x *SpotAssetLimitOrder) GetAmount() int64
- func (x *SpotAssetLimitOrder) GetLeftAsset() *ZkAsset
- func (x *SpotAssetLimitOrder) GetOp() int32
- func (x *SpotAssetLimitOrder) GetOrder() *ZkOrder
- func (x *SpotAssetLimitOrder) GetPrice() int64
- func (x *SpotAssetLimitOrder) GetRightAsset() *ZkAsset
- func (*SpotAssetLimitOrder) ProtoMessage()
- func (x *SpotAssetLimitOrder) ProtoReflect() protoreflect.Message
- func (x *SpotAssetLimitOrder) Reset()
- func (x *SpotAssetLimitOrder) String() string
- type SpotEntrustOrder
- func (*SpotEntrustOrder) Descriptor() ([]byte, []int)deprecated
- func (x *SpotEntrustOrder) GetAddr() string
- func (x *SpotEntrustOrder) GetAmount() int64
- func (x *SpotEntrustOrder) GetLeftAsset() uint64
- func (x *SpotEntrustOrder) GetOp() int32
- func (x *SpotEntrustOrder) GetOrder() *ZkOrder
- func (x *SpotEntrustOrder) GetPrice() int64
- func (x *SpotEntrustOrder) GetRightAsset() uint64
- func (*SpotEntrustOrder) ProtoMessage()
- func (x *SpotEntrustOrder) ProtoReflect() protoreflect.Message
- func (x *SpotEntrustOrder) Reset()
- func (x *SpotEntrustOrder) String() string
- type SpotEntrustRevokeOrder
- func (*SpotEntrustRevokeOrder) Descriptor() ([]byte, []int)deprecated
- func (x *SpotEntrustRevokeOrder) GetAddr() string
- func (x *SpotEntrustRevokeOrder) GetOrderID() int64
- func (*SpotEntrustRevokeOrder) ProtoMessage()
- func (x *SpotEntrustRevokeOrder) ProtoReflect() protoreflect.Message
- func (x *SpotEntrustRevokeOrder) Reset()
- func (x *SpotEntrustRevokeOrder) String() string
- type SpotExchangeBind
- func (*SpotExchangeBind) Descriptor() ([]byte, []int)deprecated
- func (x *SpotExchangeBind) GetEntrustAddress() string
- func (x *SpotExchangeBind) GetExchangeAddress() string
- func (*SpotExchangeBind) ProtoMessage()
- func (x *SpotExchangeBind) ProtoReflect() protoreflect.Message
- func (x *SpotExchangeBind) Reset()
- func (x *SpotExchangeBind) String() string
- type SpotLimitOrder
- func (*SpotLimitOrder) Descriptor() ([]byte, []int)deprecated
- func (x *SpotLimitOrder) GetAmount() int64
- func (x *SpotLimitOrder) GetLeftAsset() uint64
- func (x *SpotLimitOrder) GetOp() int32
- func (x *SpotLimitOrder) GetOrder() *ZkOrder
- func (x *SpotLimitOrder) GetPrice() int64
- func (x *SpotLimitOrder) GetRightAsset() uint64
- func (*SpotLimitOrder) ProtoMessage()
- func (x *SpotLimitOrder) ProtoReflect() protoreflect.Message
- func (x *SpotLimitOrder) Reset()
- func (x *SpotLimitOrder) String() string
- type SpotMarketDepth
- func (*SpotMarketDepth) Descriptor() ([]byte, []int)deprecated
- func (x *SpotMarketDepth) GetAmount() int64
- func (x *SpotMarketDepth) GetLeftAsset() uint64
- func (x *SpotMarketDepth) GetOp() int32
- func (x *SpotMarketDepth) GetPrice() int64
- func (x *SpotMarketDepth) GetRightAsset() uint64
- func (*SpotMarketDepth) ProtoMessage()
- func (x *SpotMarketDepth) ProtoReflect() protoreflect.Message
- func (x *SpotMarketDepth) Reset()
- func (x *SpotMarketDepth) String() string
- type SpotMarketDepthList
- func (*SpotMarketDepthList) Descriptor() ([]byte, []int)deprecated
- func (x *SpotMarketDepthList) GetList() []*SpotMarketDepth
- func (x *SpotMarketDepthList) GetPrimaryKey() string
- func (*SpotMarketDepthList) ProtoMessage()
- func (x *SpotMarketDepthList) ProtoReflect() protoreflect.Message
- func (x *SpotMarketDepthList) Reset()
- func (x *SpotMarketDepthList) String() string
- type SpotMarketOrder
- func (*SpotMarketOrder) Descriptor() ([]byte, []int)deprecated
- func (x *SpotMarketOrder) GetAmount() int64
- func (x *SpotMarketOrder) GetLeftAsset() uint32
- func (x *SpotMarketOrder) GetOp() int32
- func (x *SpotMarketOrder) GetRightAsset() uint32
- func (*SpotMarketOrder) ProtoMessage()
- func (x *SpotMarketOrder) ProtoReflect() protoreflect.Message
- func (x *SpotMarketOrder) Reset()
- func (x *SpotMarketOrder) String() string
- type SpotNftOrder
- func (*SpotNftOrder) Descriptor() ([]byte, []int)deprecated
- func (x *SpotNftOrder) GetAmount() int64
- func (x *SpotNftOrder) GetLeftAsset() uint64
- func (x *SpotNftOrder) GetOp() int32
- func (x *SpotNftOrder) GetOrder() *ZkOrder
- func (x *SpotNftOrder) GetPrice() int64
- func (x *SpotNftOrder) GetRightAsset() uint64
- func (*SpotNftOrder) ProtoMessage()
- func (x *SpotNftOrder) ProtoReflect() protoreflect.Message
- func (x *SpotNftOrder) Reset()
- func (x *SpotNftOrder) String() string
- type SpotNftTakerOrder
- func (*SpotNftTakerOrder) Descriptor() ([]byte, []int)deprecated
- func (x *SpotNftTakerOrder) GetOrder() *ZkOrder
- func (x *SpotNftTakerOrder) GetOrderID() int64
- func (*SpotNftTakerOrder) ProtoMessage()
- func (x *SpotNftTakerOrder) ProtoReflect() protoreflect.Message
- func (x *SpotNftTakerOrder) Reset()
- func (x *SpotNftTakerOrder) String() string
- type SpotOrder
- func (*SpotOrder) Descriptor() ([]byte, []int)deprecated
- func (x *SpotOrder) GetAVGPrice() int64
- func (x *SpotOrder) GetAddr() string
- func (x *SpotOrder) GetAssetLimitOrder() *SpotAssetLimitOrder
- func (x *SpotOrder) GetBalance() int64
- func (x *SpotOrder) GetCreateTime() int64
- func (x *SpotOrder) GetDigestedFee() int64
- func (x *SpotOrder) GetEntrustAddr() string
- func (x *SpotOrder) GetExecuted() int64
- func (x *SpotOrder) GetFeeBalance() int64
- func (x *SpotOrder) GetHash() string
- func (x *SpotOrder) GetIndex() int64
- func (x *SpotOrder) GetLimitOrder() *SpotLimitOrder
- func (x *SpotOrder) GetMarketOrder() *SpotMarketOrder
- func (x *SpotOrder) GetNftOrder() *SpotNftOrder
- func (x *SpotOrder) GetNftTakerOrder() *SpotNftTakerOrder
- func (x *SpotOrder) GetOrderID() int64
- func (x *SpotOrder) GetRate() int32
- func (x *SpotOrder) GetRevokeHash() string
- func (x *SpotOrder) GetStatus() int32
- func (x *SpotOrder) GetTakerRate() int32
- func (x *SpotOrder) GetTy() int32
- func (x *SpotOrder) GetUpdateTime() int64
- func (m *SpotOrder) GetValue() isSpotOrder_Value
- func (*SpotOrder) ProtoMessage()
- func (x *SpotOrder) ProtoReflect() protoreflect.Message
- func (x *SpotOrder) Reset()
- func (x *SpotOrder) String() string
- type SpotOrderList
- func (*SpotOrderList) Descriptor() ([]byte, []int)deprecated
- func (x *SpotOrderList) GetList() []*SpotOrder
- func (x *SpotOrderList) GetPrimaryKey() string
- func (*SpotOrderList) ProtoMessage()
- func (x *SpotOrderList) ProtoReflect() protoreflect.Message
- func (x *SpotOrderList) Reset()
- func (x *SpotOrderList) String() string
- type SpotOrder_AssetLimitOrder
- type SpotOrder_LimitOrder
- type SpotOrder_MarketOrder
- type SpotOrder_NftOrder
- type SpotOrder_NftTakerOrder
- type SpotQueryHistoryOrderList
- func (*SpotQueryHistoryOrderList) Descriptor() ([]byte, []int)deprecated
- func (x *SpotQueryHistoryOrderList) GetCount() int32
- func (x *SpotQueryHistoryOrderList) GetDirection() int32
- func (x *SpotQueryHistoryOrderList) GetLeftAsset() uint64
- func (x *SpotQueryHistoryOrderList) GetPrimaryKey() string
- func (x *SpotQueryHistoryOrderList) GetRightAsset() uint64
- func (*SpotQueryHistoryOrderList) ProtoMessage()
- func (x *SpotQueryHistoryOrderList) ProtoReflect() protoreflect.Message
- func (x *SpotQueryHistoryOrderList) Reset()
- func (x *SpotQueryHistoryOrderList) String() string
- type SpotQueryMarketDepth
- func (*SpotQueryMarketDepth) Descriptor() ([]byte, []int)deprecated
- func (x *SpotQueryMarketDepth) GetCount() int32
- func (x *SpotQueryMarketDepth) GetLeftAsset() uint64
- func (x *SpotQueryMarketDepth) GetOp() int32
- func (x *SpotQueryMarketDepth) GetPrimaryKey() string
- func (x *SpotQueryMarketDepth) GetRightAsset() uint64
- func (*SpotQueryMarketDepth) ProtoMessage()
- func (x *SpotQueryMarketDepth) ProtoReflect() protoreflect.Message
- func (x *SpotQueryMarketDepth) Reset()
- func (x *SpotQueryMarketDepth) String() string
- type SpotQueryOrder
- type SpotQueryOrderList
- func (*SpotQueryOrderList) Descriptor() ([]byte, []int)deprecated
- func (x *SpotQueryOrderList) GetAddress() string
- func (x *SpotQueryOrderList) GetCount() int32
- func (x *SpotQueryOrderList) GetDirection() int32
- func (x *SpotQueryOrderList) GetPrimaryKey() string
- func (x *SpotQueryOrderList) GetStatus() int32
- func (*SpotQueryOrderList) ProtoMessage()
- func (x *SpotQueryOrderList) ProtoReflect() protoreflect.Message
- func (x *SpotQueryOrderList) Reset()
- func (x *SpotQueryOrderList) String() string
- type SpotRevokeOrder
- type SubTree
- type TokenBalance
- func (*TokenBalance) Descriptor() ([]byte, []int)deprecated
- func (x *TokenBalance) GetBalance() string
- func (x *TokenBalance) GetTokenId() uint64
- func (*TokenBalance) ProtoMessage()
- func (x *TokenBalance) ProtoReflect() protoreflect.Message
- func (x *TokenBalance) Reset()
- func (x *TokenBalance) String() string
- type TokenWitness
- func (*TokenWitness) Descriptor() ([]byte, []int)deprecated
- func (x *TokenWitness) GetBalance() string
- func (x *TokenWitness) GetID() uint64
- func (x *TokenWitness) GetSibling() *SiblingPath
- func (*TokenWitness) ProtoMessage()
- func (x *TokenWitness) ProtoReflect() protoreflect.Message
- func (x *TokenWitness) Reset()
- func (x *TokenWitness) String() string
- type Trade
- type TradeAccounts
- func (*TradeAccounts) Descriptor() ([]byte, []int)deprecated
- func (x *TradeAccounts) GetFee() *DexAccount
- func (x *TradeAccounts) GetMaker() *DexAccount
- func (x *TradeAccounts) GetTaker() *DexAccount
- func (*TradeAccounts) ProtoMessage()
- func (x *TradeAccounts) ProtoReflect() protoreflect.Message
- func (x *TradeAccounts) Reset()
- func (x *TradeAccounts) String() string
- type TxInfo
- type UnimplementedZkspotServer
- type UnimplementedZksyncServer
- type ZkAccountTreeProof
- func (*ZkAccountTreeProof) Descriptor() ([]byte, []int)deprecated
- func (x *ZkAccountTreeProof) GetAccount() *HistoryLeaf
- func (x *ZkAccountTreeProof) GetProof() *MerkleTreeProof
- func (*ZkAccountTreeProof) ProtoMessage()
- func (x *ZkAccountTreeProof) ProtoReflect() protoreflect.Message
- func (x *ZkAccountTreeProof) Reset()
- func (x *ZkAccountTreeProof) String() string
- type ZkAsset
- func (*ZkAsset) Descriptor() ([]byte, []int)deprecated
- func (x *ZkAsset) GetEvmNftID() uint64
- func (x *ZkAsset) GetTokenAsset() *AssetToken
- func (x *ZkAsset) GetTy() AssetType
- func (m *ZkAsset) GetValue() isZkAsset_Value
- func (x *ZkAsset) GetZkAssetid() uint64
- func (*ZkAsset) ProtoMessage()
- func (x *ZkAsset) ProtoReflect() protoreflect.Message
- func (x *ZkAsset) Reset()
- func (x *ZkAsset) String() string
- type ZkAsset_EvmNftID
- type ZkAsset_TokenAsset
- type ZkAsset_ZkAssetid
- type ZkChainTitle
- func (*ZkChainTitle) Descriptor() ([]byte, []int)deprecated
- func (x *ZkChainTitle) GetChainTitle() string
- func (x *ZkChainTitle) GetChainTitleId() uint64
- func (*ZkChainTitle) ProtoMessage()
- func (x *ZkChainTitle) ProtoReflect() protoreflect.Message
- func (x *ZkChainTitle) Reset()
- func (x *ZkChainTitle) String() string
- type ZkChainTitleList
- type ZkCommitProof
- func (*ZkCommitProof) Descriptor() ([]byte, []int)deprecated
- func (x *ZkCommitProof) GetBlockEnd() uint64
- func (x *ZkCommitProof) GetBlockStart() uint64
- func (x *ZkCommitProof) GetCfgFeeAddrs() *ZkFeeAddrs
- func (x *ZkCommitProof) GetChainTitle() string
- func (x *ZkCommitProof) GetChainTitleId() uint64
- func (x *ZkCommitProof) GetCommitBlockHeight() int64
- func (x *ZkCommitProof) GetIndexEnd() uint64
- func (x *ZkCommitProof) GetIndexStart() uint64
- func (x *ZkCommitProof) GetNewTreeRoot() string
- func (x *ZkCommitProof) GetOldTreeRoot() string
- func (x *ZkCommitProof) GetOnChainProofId() uint64
- func (x *ZkCommitProof) GetOnChainPubDatas() []string
- func (x *ZkCommitProof) GetOpIndex() uint32
- func (x *ZkCommitProof) GetProof() string
- func (x *ZkCommitProof) GetProofId() uint64
- func (x *ZkCommitProof) GetPubDatas() []string
- func (x *ZkCommitProof) GetPublicInput() string
- func (*ZkCommitProof) ProtoMessage()
- func (x *ZkCommitProof) ProtoReflect() protoreflect.Message
- func (x *ZkCommitProof) Reset()
- func (x *ZkCommitProof) String() string
- type ZkContractToTree
- func (*ZkContractToTree) Descriptor() ([]byte, []int)deprecated
- func (x *ZkContractToTree) GetAmount() string
- func (x *ZkContractToTree) GetFromExec() string
- func (x *ZkContractToTree) GetSignature() *ZkSignature
- func (x *ZkContractToTree) GetToAccountId() uint64
- func (x *ZkContractToTree) GetToEthAddr() string
- func (x *ZkContractToTree) GetToLayer2Addr() string
- func (x *ZkContractToTree) GetTokenSymbol() string
- func (*ZkContractToTree) ProtoMessage()
- func (x *ZkContractToTree) ProtoReflect() protoreflect.Message
- func (x *ZkContractToTree) Reset()
- func (x *ZkContractToTree) String() string
- type ZkContractToTreeNewWitnessInfo
- func (*ZkContractToTreeNewWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkContractToTreeNewWitnessInfo) GetAmount() string
- func (x *ZkContractToTreeNewWitnessInfo) GetEthAddress() string
- func (x *ZkContractToTreeNewWitnessInfo) GetFee() *ZkFee
- func (x *ZkContractToTreeNewWitnessInfo) GetLayer2Addr() string
- func (x *ZkContractToTreeNewWitnessInfo) GetSignature() *ZkSignature
- func (x *ZkContractToTreeNewWitnessInfo) GetToAccountId() uint64
- func (x *ZkContractToTreeNewWitnessInfo) GetTokenId() uint64
- func (*ZkContractToTreeNewWitnessInfo) ProtoMessage()
- func (x *ZkContractToTreeNewWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkContractToTreeNewWitnessInfo) Reset()
- func (x *ZkContractToTreeNewWitnessInfo) String() string
- type ZkContractToTreeWitnessInfo
- func (*ZkContractToTreeWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkContractToTreeWitnessInfo) GetAccountId() uint64
- func (x *ZkContractToTreeWitnessInfo) GetAmount() string
- func (x *ZkContractToTreeWitnessInfo) GetFee() *ZkFee
- func (x *ZkContractToTreeWitnessInfo) GetSignature() *ZkSignature
- func (x *ZkContractToTreeWitnessInfo) GetTokenId() uint64
- func (*ZkContractToTreeWitnessInfo) ProtoMessage()
- func (x *ZkContractToTreeWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkContractToTreeWitnessInfo) Reset()
- func (x *ZkContractToTreeWitnessInfo) String() string
- type ZkDeposit
- func (*ZkDeposit) Descriptor() ([]byte, []int)deprecated
- func (x *ZkDeposit) GetAmount() string
- func (x *ZkDeposit) GetChain33Addr() string
- func (x *ZkDeposit) GetEthAddress() string
- func (x *ZkDeposit) GetEthPriorityQueueId() int64
- func (x *ZkDeposit) GetSignature() *ZkSignature
- func (x *ZkDeposit) GetTokenId() uint64
- func (*ZkDeposit) ProtoMessage()
- func (x *ZkDeposit) ProtoReflect() protoreflect.Message
- func (x *ZkDeposit) Reset()
- func (x *ZkDeposit) String() string
- type ZkDepositWitnessInfo
- func (*ZkDepositWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkDepositWitnessInfo) GetAccountId() uint64
- func (x *ZkDepositWitnessInfo) GetAmount() string
- func (x *ZkDepositWitnessInfo) GetEthAddress() string
- func (x *ZkDepositWitnessInfo) GetLayer2Addr() string
- func (x *ZkDepositWitnessInfo) GetSignature() *ZkSignature
- func (x *ZkDepositWitnessInfo) GetTokenId() uint64
- func (*ZkDepositWitnessInfo) ProtoMessage()
- func (x *ZkDepositWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkDepositWitnessInfo) Reset()
- func (x *ZkDepositWitnessInfo) String() string
- type ZkExodusBatchProofReq
- func (*ZkExodusBatchProofReq) Descriptor() ([]byte, []int)deprecated
- func (x *ZkExodusBatchProofReq) GetChainTitleId() uint64
- func (x *ZkExodusBatchProofReq) GetEndAccountId() uint64
- func (x *ZkExodusBatchProofReq) GetRootHash() string
- func (x *ZkExodusBatchProofReq) GetStartAccountId() uint64
- func (x *ZkExodusBatchProofReq) GetTokenId() uint64
- func (*ZkExodusBatchProofReq) ProtoMessage()
- func (x *ZkExodusBatchProofReq) ProtoReflect() protoreflect.Message
- func (x *ZkExodusBatchProofReq) Reset()
- func (x *ZkExodusBatchProofReq) String() string
- type ZkExodusMode
- type ZkFee
- type ZkFeeAddrs
- func (*ZkFeeAddrs) Descriptor() ([]byte, []int)deprecated
- func (x *ZkFeeAddrs) GetEthFeeAddr() string
- func (x *ZkFeeAddrs) GetL2FeeAddr() string
- func (*ZkFeeAddrs) ProtoMessage()
- func (x *ZkFeeAddrs) ProtoReflect() protoreflect.Message
- func (x *ZkFeeAddrs) Reset()
- func (x *ZkFeeAddrs) String() string
- type ZkFeeWitnessInfo
- func (*ZkFeeWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkFeeWitnessInfo) GetAccountId() uint64
- func (x *ZkFeeWitnessInfo) GetAmount() string
- func (x *ZkFeeWitnessInfo) GetSignature() *ZkSignature
- func (x *ZkFeeWitnessInfo) GetTokenId() uint64
- func (*ZkFeeWitnessInfo) ProtoMessage()
- func (x *ZkFeeWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkFeeWitnessInfo) Reset()
- func (x *ZkFeeWitnessInfo) String() string
- type ZkFetchProofList
- func (*ZkFetchProofList) Descriptor() ([]byte, []int)deprecated
- func (x *ZkFetchProofList) GetChainTitleId() uint64
- func (x *ZkFetchProofList) GetEndHeight() uint64
- func (x *ZkFetchProofList) GetOnChainProofId() uint64
- func (x *ZkFetchProofList) GetProofId() uint64
- func (x *ZkFetchProofList) GetReqLatestProof() bool
- func (x *ZkFetchProofList) GetReqOnChainProof() bool
- func (*ZkFetchProofList) ProtoMessage()
- func (x *ZkFetchProofList) ProtoReflect() protoreflect.Message
- func (x *ZkFetchProofList) Reset()
- func (x *ZkFetchProofList) String() string
- type ZkFullExit
- func (*ZkFullExit) Descriptor() ([]byte, []int)deprecated
- func (x *ZkFullExit) GetAccountId() uint64
- func (x *ZkFullExit) GetEthPriorityQueueId() int64
- func (x *ZkFullExit) GetSignature() *ZkSignature
- func (x *ZkFullExit) GetTokenId() uint64
- func (*ZkFullExit) ProtoMessage()
- func (x *ZkFullExit) ProtoReflect() protoreflect.Message
- func (x *ZkFullExit) Reset()
- func (x *ZkFullExit) String() string
- type ZkFullExitWitnessInfo
- func (*ZkFullExitWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkFullExitWitnessInfo) GetAccountId() uint64
- func (x *ZkFullExitWitnessInfo) GetAmount() string
- func (x *ZkFullExitWitnessInfo) GetEthAddress() string
- func (x *ZkFullExitWitnessInfo) GetFee() *ZkFee
- func (x *ZkFullExitWitnessInfo) GetSignature() *ZkSignature
- func (x *ZkFullExitWitnessInfo) GetTokenId() uint64
- func (*ZkFullExitWitnessInfo) ProtoMessage()
- func (x *ZkFullExitWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkFullExitWitnessInfo) Reset()
- func (x *ZkFullExitWitnessInfo) String() string
- type ZkMintNFT
- func (*ZkMintNFT) Descriptor() ([]byte, []int)deprecated
- func (x *ZkMintNFT) GetAmount() uint64
- func (x *ZkMintNFT) GetContentHash() string
- func (x *ZkMintNFT) GetErcProtocol() uint64
- func (x *ZkMintNFT) GetFromAccountId() uint64
- func (x *ZkMintNFT) GetRecipientId() uint64
- func (x *ZkMintNFT) GetSignature() *ZkSignature
- func (*ZkMintNFT) ProtoMessage()
- func (x *ZkMintNFT) ProtoReflect() protoreflect.Message
- func (x *ZkMintNFT) Reset()
- func (x *ZkMintNFT) String() string
- type ZkMintNFTWitnessInfo
- func (*ZkMintNFTWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkMintNFTWitnessInfo) GetAmount() string
- func (x *ZkMintNFTWitnessInfo) GetContentHash() []string
- func (x *ZkMintNFTWitnessInfo) GetCreateSerialId() uint64
- func (x *ZkMintNFTWitnessInfo) GetErcProtocol() uint64
- func (x *ZkMintNFTWitnessInfo) GetFee() *ZkFee
- func (x *ZkMintNFTWitnessInfo) GetMintAcctId() uint64
- func (x *ZkMintNFTWitnessInfo) GetNewNFTTokenID() uint64
- func (x *ZkMintNFTWitnessInfo) GetRecipientId() uint64
- func (x *ZkMintNFTWitnessInfo) GetSignature() *ZkSignature
- func (*ZkMintNFTWitnessInfo) ProtoMessage()
- func (x *ZkMintNFTWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkMintNFTWitnessInfo) Reset()
- func (x *ZkMintNFTWitnessInfo) String() string
- type ZkMsg
- type ZkNFTTokenStatus
- func (*ZkNFTTokenStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ZkNFTTokenStatus) GetBurnedAmount() uint64
- func (x *ZkNFTTokenStatus) GetContentHash() string
- func (x *ZkNFTTokenStatus) GetCreatorEthAddr() string
- func (x *ZkNFTTokenStatus) GetCreatorId() uint64
- func (x *ZkNFTTokenStatus) GetCreatorSerialId() uint64
- func (x *ZkNFTTokenStatus) GetErcProtocol() uint64
- func (x *ZkNFTTokenStatus) GetId() uint64
- func (x *ZkNFTTokenStatus) GetMintAmount() uint64
- func (*ZkNFTTokenStatus) ProtoMessage()
- func (x *ZkNFTTokenStatus) ProtoReflect() protoreflect.Message
- func (x *ZkNFTTokenStatus) Reset()
- func (x *ZkNFTTokenStatus) String() string
- type ZkOperation
- func (*ZkOperation) Descriptor() ([]byte, []int)deprecated
- func (x *ZkOperation) GetOp() *OperationSpecialInfo
- func (x *ZkOperation) GetTy() int32
- func (*ZkOperation) ProtoMessage()
- func (x *ZkOperation) ProtoReflect() protoreflect.Message
- func (x *ZkOperation) Reset()
- func (x *ZkOperation) String() string
- type ZkOrder
- func (*ZkOrder) Descriptor() ([]byte, []int)deprecated
- func (x *ZkOrder) GetAccountID() uint64
- func (x *ZkOrder) GetAmount() string
- func (x *ZkOrder) GetBuyAssetType() AssetType
- func (x *ZkOrder) GetEthAddress() string
- func (x *ZkOrder) GetRatio1() string
- func (x *ZkOrder) GetRatio2() string
- func (x *ZkOrder) GetSellAssetType() AssetType
- func (x *ZkOrder) GetSignature() *ZkSignature
- func (x *ZkOrder) GetTokenBuy() uint64
- func (x *ZkOrder) GetTokenSell() uint64
- func (*ZkOrder) ProtoMessage()
- func (x *ZkOrder) ProtoReflect() protoreflect.Message
- func (x *ZkOrder) Reset()
- func (x *ZkOrder) String() string
- type ZkProofWitness
- func (*ZkProofWitness) Descriptor() ([]byte, []int)deprecated
- func (x *ZkProofWitness) GetAccountWitness() *AccountWitness
- func (x *ZkProofWitness) GetTokenWitness() *TokenWitness
- func (x *ZkProofWitness) GetTreeRoot() string
- func (*ZkProofWitness) ProtoMessage()
- func (x *ZkProofWitness) ProtoReflect() protoreflect.Message
- func (x *ZkProofWitness) Reset()
- func (x *ZkProofWitness) String() string
- type ZkProxyExit
- func (*ZkProxyExit) Descriptor() ([]byte, []int)deprecated
- func (x *ZkProxyExit) GetProxyId() uint64
- func (x *ZkProxyExit) GetSignature() *ZkSignature
- func (x *ZkProxyExit) GetTargetId() uint64
- func (x *ZkProxyExit) GetTokenId() uint64
- func (*ZkProxyExit) ProtoMessage()
- func (x *ZkProxyExit) ProtoReflect() protoreflect.Message
- func (x *ZkProxyExit) Reset()
- func (x *ZkProxyExit) String() string
- type ZkProxyExitWitnessInfo
- func (*ZkProxyExitWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkProxyExitWitnessInfo) GetAmount() string
- func (x *ZkProxyExitWitnessInfo) GetEthAddress() string
- func (x *ZkProxyExitWitnessInfo) GetFee() *ZkFee
- func (x *ZkProxyExitWitnessInfo) GetProxyID() uint64
- func (x *ZkProxyExitWitnessInfo) GetSignature() *ZkSignature
- func (x *ZkProxyExitWitnessInfo) GetTargetId() uint64
- func (x *ZkProxyExitWitnessInfo) GetTokenId() uint64
- func (*ZkProxyExitWitnessInfo) ProtoMessage()
- func (x *ZkProxyExitWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkProxyExitWitnessInfo) Reset()
- func (x *ZkProxyExitWitnessInfo) String() string
- type ZkPubKey
- type ZkQueryProofReq
- func (*ZkQueryProofReq) Descriptor() ([]byte, []int)deprecated
- func (x *ZkQueryProofReq) GetEndBlockHeight() uint64
- func (x *ZkQueryProofReq) GetNeedDetail() bool
- func (x *ZkQueryProofReq) GetOpIndex() uint32
- func (x *ZkQueryProofReq) GetStartBlockHeight() uint64
- func (x *ZkQueryProofReq) GetStartIndex() uint64
- func (*ZkQueryProofReq) ProtoMessage()
- func (x *ZkQueryProofReq) ProtoReflect() protoreflect.Message
- func (x *ZkQueryProofReq) Reset()
- func (x *ZkQueryProofReq) String() string
- type ZkQueryProofResp
- func (*ZkQueryProofResp) Descriptor() ([]byte, []int)deprecated
- func (x *ZkQueryProofResp) GetOperationInfos() []*OperationInfo
- func (*ZkQueryProofResp) ProtoMessage()
- func (x *ZkQueryProofResp) ProtoReflect() protoreflect.Message
- func (x *ZkQueryProofResp) Reset()
- func (x *ZkQueryProofResp) String() string
- type ZkQueryProofStatusResp
- func (*ZkQueryProofStatusResp) Descriptor() ([]byte, []int)deprecated
- func (x *ZkQueryProofStatusResp) GetCommitProofState() *CommitProofState
- func (x *ZkQueryProofStatusResp) GetLatestCommitProofState() *CommitProofState
- func (x *ZkQueryProofStatusResp) GetMaxRecordId() int64
- func (x *ZkQueryProofStatusResp) GetProofId() uint64
- func (x *ZkQueryProofStatusResp) GetTxHash() string
- func (*ZkQueryProofStatusResp) ProtoMessage()
- func (x *ZkQueryProofStatusResp) ProtoReflect() protoreflect.Message
- func (x *ZkQueryProofStatusResp) Reset()
- func (x *ZkQueryProofStatusResp) String() string
- type ZkQueryReq
- func (*ZkQueryReq) Descriptor() ([]byte, []int)deprecated
- func (x *ZkQueryReq) GetAccountId() uint64
- func (x *ZkQueryReq) GetBlockHeight() uint64
- func (x *ZkQueryReq) GetChain33Addr() string
- func (x *ZkQueryReq) GetChain33WalletAddr() string
- func (x *ZkQueryReq) GetChainTitleId() uint64
- func (x *ZkQueryReq) GetEthAddress() string
- func (x *ZkQueryReq) GetOpType() uint32
- func (x *ZkQueryReq) GetProofId() uint64
- func (x *ZkQueryReq) GetTokenId() uint64
- func (x *ZkQueryReq) GetTokenSymbol() string
- func (x *ZkQueryReq) GetTxHash() string
- func (x *ZkQueryReq) GetTxIndex() uint32
- func (*ZkQueryReq) ProtoMessage()
- func (x *ZkQueryReq) ProtoReflect() protoreflect.Message
- func (x *ZkQueryReq) Reset()
- func (x *ZkQueryReq) String() string
- type ZkQueryResp
- func (*ZkQueryResp) Descriptor() ([]byte, []int)deprecated
- func (x *ZkQueryResp) GetLeaves() []*Leaf
- func (x *ZkQueryResp) GetOperationInfos() []*OperationInfo
- func (x *ZkQueryResp) GetTokenBalances() []*TokenBalance
- func (*ZkQueryResp) ProtoMessage()
- func (x *ZkQueryResp) ProtoReflect() protoreflect.Message
- func (x *ZkQueryResp) Reset()
- func (x *ZkQueryResp) String() string
- type ZkQueryTxOperationReq
- func (*ZkQueryTxOperationReq) Descriptor() ([]byte, []int)deprecated
- func (x *ZkQueryTxOperationReq) GetBlockOffset() uint32
- func (x *ZkQueryTxOperationReq) GetCount() uint32
- func (x *ZkQueryTxOperationReq) GetMaturity() uint32
- func (x *ZkQueryTxOperationReq) GetOpIndex() uint32
- func (x *ZkQueryTxOperationReq) GetStartBlockHeight() uint64
- func (x *ZkQueryTxOperationReq) GetStartIndex() uint64
- func (*ZkQueryTxOperationReq) ProtoMessage()
- func (x *ZkQueryTxOperationReq) ProtoReflect() protoreflect.Message
- func (x *ZkQueryTxOperationReq) Reset()
- func (x *ZkQueryTxOperationReq) String() string
- type ZkReceiptLeaf
- func (*ZkReceiptLeaf) Descriptor() ([]byte, []int)deprecated
- func (x *ZkReceiptLeaf) GetLeaf() *Leaf
- func (x *ZkReceiptLeaf) GetToken() *TokenBalance
- func (x *ZkReceiptLeaf) GetTokenProof() *MerkleTreeProof
- func (x *ZkReceiptLeaf) GetTreeProof() *MerkleTreeProof
- func (*ZkReceiptLeaf) ProtoMessage()
- func (x *ZkReceiptLeaf) ProtoReflect() protoreflect.Message
- func (x *ZkReceiptLeaf) Reset()
- func (x *ZkReceiptLeaf) String() string
- type ZkReceiptLog
- func (*ZkReceiptLog) Descriptor() ([]byte, []int)deprecated
- func (x *ZkReceiptLog) GetLocalKvs() []*types.KeyValue
- func (x *ZkReceiptLog) GetOperationInfo() *OperationInfo
- func (*ZkReceiptLog) ProtoMessage()
- func (x *ZkReceiptLog) ProtoReflect() protoreflect.Message
- func (x *ZkReceiptLog) Reset()
- func (x *ZkReceiptLog) String() string
- type ZkReqExistenceProof
- func (*ZkReqExistenceProof) Descriptor() ([]byte, []int)deprecated
- func (x *ZkReqExistenceProof) GetAccountId() uint64
- func (x *ZkReqExistenceProof) GetChainTitleId() uint64
- func (x *ZkReqExistenceProof) GetRootHash() string
- func (x *ZkReqExistenceProof) GetTokenId() uint64
- func (*ZkReqExistenceProof) ProtoMessage()
- func (x *ZkReqExistenceProof) ProtoReflect() protoreflect.Message
- func (x *ZkReqExistenceProof) Reset()
- func (x *ZkReqExistenceProof) String() string
- type ZkSetFee
- func (*ZkSetFee) Descriptor() ([]byte, []int)deprecated
- func (x *ZkSetFee) GetActionTy() int32
- func (x *ZkSetFee) GetAmount() string
- func (x *ZkSetFee) GetTokenId() uint64
- func (*ZkSetFee) ProtoMessage()
- func (x *ZkSetFee) ProtoReflect() protoreflect.Message
- func (x *ZkSetFee) Reset()
- func (x *ZkSetFee) String() string
- type ZkSetPubKey
- func (*ZkSetPubKey) Descriptor() ([]byte, []int)deprecated
- func (x *ZkSetPubKey) GetAccountId() uint64
- func (x *ZkSetPubKey) GetPubKey() *ZkPubKey
- func (x *ZkSetPubKey) GetPubKeyTy() uint64
- func (x *ZkSetPubKey) GetSignature() *ZkSignature
- func (*ZkSetPubKey) ProtoMessage()
- func (x *ZkSetPubKey) ProtoReflect() protoreflect.Message
- func (x *ZkSetPubKey) Reset()
- func (x *ZkSetPubKey) String() string
- type ZkSetPubKeyWitnessInfo
- func (*ZkSetPubKeyWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkSetPubKeyWitnessInfo) GetAccountId() uint64
- func (x *ZkSetPubKeyWitnessInfo) GetPubKey() *ZkPubKey
- func (x *ZkSetPubKeyWitnessInfo) GetPubKeyTy() uint64
- func (x *ZkSetPubKeyWitnessInfo) GetSignature() *ZkSignature
- func (*ZkSetPubKeyWitnessInfo) ProtoMessage()
- func (x *ZkSetPubKeyWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkSetPubKeyWitnessInfo) Reset()
- func (x *ZkSetPubKeyWitnessInfo) String() string
- type ZkSignature
- func (*ZkSignature) Descriptor() ([]byte, []int)deprecated
- func (x *ZkSignature) GetMsg() *ZkMsg
- func (x *ZkSignature) GetPubKey() *ZkPubKey
- func (x *ZkSignature) GetSignInfo() string
- func (*ZkSignature) ProtoMessage()
- func (x *ZkSignature) ProtoReflect() protoreflect.Message
- func (x *ZkSignature) Reset()
- func (x *ZkSignature) String() string
- type ZkSwap
- type ZkSwapOrderInfo
- func (*ZkSwapOrderInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkSwapOrderInfo) GetAccountId() uint64
- func (x *ZkSwapOrderInfo) GetAmount() string
- func (x *ZkSwapOrderInfo) GetRatioBuy() string
- func (x *ZkSwapOrderInfo) GetRatioSell() string
- func (x *ZkSwapOrderInfo) GetSignature() *ZkSignature
- func (*ZkSwapOrderInfo) ProtoMessage()
- func (x *ZkSwapOrderInfo) ProtoReflect() protoreflect.Message
- func (x *ZkSwapOrderInfo) Reset()
- func (x *ZkSwapOrderInfo) String() string
- type ZkSwapWitnessInfo
- func (*ZkSwapWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkSwapWitnessInfo) GetFee() *ZkFee
- func (x *ZkSwapWitnessInfo) GetLeft() *ZkSwapOrderInfo
- func (x *ZkSwapWitnessInfo) GetLeftDealAmount() string
- func (x *ZkSwapWitnessInfo) GetLeftTokenId() uint64
- func (x *ZkSwapWitnessInfo) GetRight() *ZkSwapOrderInfo
- func (x *ZkSwapWitnessInfo) GetRightDealAmount() string
- func (x *ZkSwapWitnessInfo) GetRightTokenID() uint64
- func (*ZkSwapWitnessInfo) ProtoMessage()
- func (x *ZkSwapWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkSwapWitnessInfo) Reset()
- func (x *ZkSwapWitnessInfo) String() string
- type ZkTokenSymbol
- func (*ZkTokenSymbol) Descriptor() ([]byte, []int)deprecated
- func (x *ZkTokenSymbol) GetDecimal() uint32
- func (x *ZkTokenSymbol) GetId() string
- func (x *ZkTokenSymbol) GetSymbol() string
- func (*ZkTokenSymbol) ProtoMessage()
- func (x *ZkTokenSymbol) ProtoReflect() protoreflect.Message
- func (x *ZkTokenSymbol) Reset()
- func (x *ZkTokenSymbol) String() string
- type ZkTokenTreeProof
- func (*ZkTokenTreeProof) Descriptor() ([]byte, []int)deprecated
- func (x *ZkTokenTreeProof) GetProof() *MerkleTreeProof
- func (x *ZkTokenTreeProof) GetToken() *TokenBalance
- func (*ZkTokenTreeProof) ProtoMessage()
- func (x *ZkTokenTreeProof) ProtoReflect() protoreflect.Message
- func (x *ZkTokenTreeProof) Reset()
- func (x *ZkTokenTreeProof) String() string
- type ZkTransfer
- func (*ZkTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *ZkTransfer) GetAmount() string
- func (x *ZkTransfer) GetFromAccountId() uint64
- func (x *ZkTransfer) GetSignature() *ZkSignature
- func (x *ZkTransfer) GetToAccountId() uint64
- func (x *ZkTransfer) GetTokenId() uint64
- func (*ZkTransfer) ProtoMessage()
- func (x *ZkTransfer) ProtoReflect() protoreflect.Message
- func (x *ZkTransfer) Reset()
- func (x *ZkTransfer) String() string
- type ZkTransferNFT
- func (*ZkTransferNFT) Descriptor() ([]byte, []int)deprecated
- func (x *ZkTransferNFT) GetAmount() uint64
- func (x *ZkTransferNFT) GetFromAccountId() uint64
- func (x *ZkTransferNFT) GetNFTTokenId() uint64
- func (x *ZkTransferNFT) GetRecipientId() uint64
- func (x *ZkTransferNFT) GetSignature() *ZkSignature
- func (*ZkTransferNFT) ProtoMessage()
- func (x *ZkTransferNFT) ProtoReflect() protoreflect.Message
- func (x *ZkTransferNFT) Reset()
- func (x *ZkTransferNFT) String() string
- type ZkTransferNFTWitnessInfo
- func (*ZkTransferNFTWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkTransferNFTWitnessInfo) GetAmount() string
- func (x *ZkTransferNFTWitnessInfo) GetFee() *ZkFee
- func (x *ZkTransferNFTWitnessInfo) GetFromAccountId() uint64
- func (x *ZkTransferNFTWitnessInfo) GetNFTTokenId() uint64
- func (x *ZkTransferNFTWitnessInfo) GetRecipientId() uint64
- func (x *ZkTransferNFTWitnessInfo) GetSignature() *ZkSignature
- func (*ZkTransferNFTWitnessInfo) ProtoMessage()
- func (x *ZkTransferNFTWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkTransferNFTWitnessInfo) Reset()
- func (x *ZkTransferNFTWitnessInfo) String() string
- type ZkTransferToNew
- func (*ZkTransferToNew) Descriptor() ([]byte, []int)deprecated
- func (x *ZkTransferToNew) GetAmount() string
- func (x *ZkTransferToNew) GetFromAccountId() uint64
- func (x *ZkTransferToNew) GetSignature() *ZkSignature
- func (x *ZkTransferToNew) GetToChain33Address() string
- func (x *ZkTransferToNew) GetToEthAddress() string
- func (x *ZkTransferToNew) GetTokenId() uint64
- func (*ZkTransferToNew) ProtoMessage()
- func (x *ZkTransferToNew) ProtoReflect() protoreflect.Message
- func (x *ZkTransferToNew) Reset()
- func (x *ZkTransferToNew) String() string
- type ZkTransferToNewWitnessInfo
- func (*ZkTransferToNewWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkTransferToNewWitnessInfo) GetAmount() string
- func (x *ZkTransferToNewWitnessInfo) GetEthAddress() string
- func (x *ZkTransferToNewWitnessInfo) GetFee() *ZkFee
- func (x *ZkTransferToNewWitnessInfo) GetFromAccountId() uint64
- func (x *ZkTransferToNewWitnessInfo) GetLayer2Addr() string
- func (x *ZkTransferToNewWitnessInfo) GetSignature() *ZkSignature
- func (x *ZkTransferToNewWitnessInfo) GetToAccountId() uint64
- func (x *ZkTransferToNewWitnessInfo) GetTokenId() uint64
- func (*ZkTransferToNewWitnessInfo) ProtoMessage()
- func (x *ZkTransferToNewWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkTransferToNewWitnessInfo) Reset()
- func (x *ZkTransferToNewWitnessInfo) String() string
- type ZkTransferWitnessInfo
- func (*ZkTransferWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkTransferWitnessInfo) GetAmount() string
- func (x *ZkTransferWitnessInfo) GetFee() *ZkFee
- func (x *ZkTransferWitnessInfo) GetFromAccountId() uint64
- func (x *ZkTransferWitnessInfo) GetSignature() *ZkSignature
- func (x *ZkTransferWitnessInfo) GetToAccountId() uint64
- func (x *ZkTransferWitnessInfo) GetTokenId() uint64
- func (*ZkTransferWitnessInfo) ProtoMessage()
- func (x *ZkTransferWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkTransferWitnessInfo) Reset()
- func (x *ZkTransferWitnessInfo) String() string
- type ZkTreeToContract
- func (*ZkTreeToContract) Descriptor() ([]byte, []int)deprecated
- func (x *ZkTreeToContract) GetAccountId() uint64
- func (x *ZkTreeToContract) GetAmount() string
- func (x *ZkTreeToContract) GetSignature() *ZkSignature
- func (x *ZkTreeToContract) GetToAcctId() uint64
- func (x *ZkTreeToContract) GetToExec() string
- func (x *ZkTreeToContract) GetTokenId() uint64
- func (*ZkTreeToContract) ProtoMessage()
- func (x *ZkTreeToContract) ProtoReflect() protoreflect.Message
- func (x *ZkTreeToContract) Reset()
- func (x *ZkTreeToContract) String() string
- type ZkTreeToContractWitnessInfo
- func (*ZkTreeToContractWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkTreeToContractWitnessInfo) GetAccountId() uint64
- func (x *ZkTreeToContractWitnessInfo) GetAmount() string
- func (x *ZkTreeToContractWitnessInfo) GetFee() *ZkFee
- func (x *ZkTreeToContractWitnessInfo) GetSignature() *ZkSignature
- func (x *ZkTreeToContractWitnessInfo) GetTokenId() uint64
- func (*ZkTreeToContractWitnessInfo) ProtoMessage()
- func (x *ZkTreeToContractWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkTreeToContractWitnessInfo) Reset()
- func (x *ZkTreeToContractWitnessInfo) String() string
- type ZkTxProofResp
- func (*ZkTxProofResp) Descriptor() ([]byte, []int)deprecated
- func (x *ZkTxProofResp) GetBlockHeight() uint64
- func (x *ZkTxProofResp) GetOpIndex() uint32
- func (x *ZkTxProofResp) GetProofId() uint64
- func (x *ZkTxProofResp) GetProofNewRoot() string
- func (x *ZkTxProofResp) GetTxHash() string
- func (x *ZkTxProofResp) GetTxIndex() uint32
- func (x *ZkTxProofResp) GetTxType() uint32
- func (*ZkTxProofResp) ProtoMessage()
- func (x *ZkTxProofResp) ProtoReflect() protoreflect.Message
- func (x *ZkTxProofResp) Reset()
- func (x *ZkTxProofResp) String() string
- type ZkVerifier
- func (*ZkVerifier) Descriptor() ([]byte, []int)deprecated
- func (x *ZkVerifier) GetChainTitleId() uint64
- func (x *ZkVerifier) GetVerifiers() []string
- func (*ZkVerifier) ProtoMessage()
- func (x *ZkVerifier) ProtoReflect() protoreflect.Message
- func (x *ZkVerifier) Reset()
- func (x *ZkVerifier) String() string
- type ZkVerifyKey
- func (*ZkVerifyKey) Descriptor() ([]byte, []int)deprecated
- func (x *ZkVerifyKey) GetChainTitleId() uint64
- func (x *ZkVerifyKey) GetKey() string
- func (*ZkVerifyKey) ProtoMessage()
- func (x *ZkVerifyKey) ProtoReflect() protoreflect.Message
- func (x *ZkVerifyKey) Reset()
- func (x *ZkVerifyKey) String() string
- type ZkWithdraw
- func (*ZkWithdraw) Descriptor() ([]byte, []int)deprecated
- func (x *ZkWithdraw) GetAccountId() uint64
- func (x *ZkWithdraw) GetAmount() string
- func (x *ZkWithdraw) GetSignature() *ZkSignature
- func (x *ZkWithdraw) GetTokenId() uint64
- func (*ZkWithdraw) ProtoMessage()
- func (x *ZkWithdraw) ProtoReflect() protoreflect.Message
- func (x *ZkWithdraw) Reset()
- func (x *ZkWithdraw) String() string
- type ZkWithdrawNFT
- func (*ZkWithdrawNFT) Descriptor() ([]byte, []int)deprecated
- func (x *ZkWithdrawNFT) GetAmount() uint64
- func (x *ZkWithdrawNFT) GetFromAccountId() uint64
- func (x *ZkWithdrawNFT) GetNFTTokenId() uint64
- func (x *ZkWithdrawNFT) GetSignature() *ZkSignature
- func (*ZkWithdrawNFT) ProtoMessage()
- func (x *ZkWithdrawNFT) ProtoReflect() protoreflect.Message
- func (x *ZkWithdrawNFT) Reset()
- func (x *ZkWithdrawNFT) String() string
- type ZkWithdrawNFTWitnessInfo
- func (*ZkWithdrawNFTWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkWithdrawNFTWitnessInfo) GetContentHash() []string
- func (x *ZkWithdrawNFTWitnessInfo) GetCreatorAcctId() uint64
- func (x *ZkWithdrawNFTWitnessInfo) GetCreatorSerialId() uint64
- func (x *ZkWithdrawNFTWitnessInfo) GetErcProtocol() uint64
- func (x *ZkWithdrawNFTWitnessInfo) GetEthAddress() string
- func (x *ZkWithdrawNFTWitnessInfo) GetFee() *ZkFee
- func (x *ZkWithdrawNFTWitnessInfo) GetFromAcctId() uint64
- func (x *ZkWithdrawNFTWitnessInfo) GetInitMintAmount() string
- func (x *ZkWithdrawNFTWitnessInfo) GetNFTTokenID() uint64
- func (x *ZkWithdrawNFTWitnessInfo) GetSignature() *ZkSignature
- func (x *ZkWithdrawNFTWitnessInfo) GetWithdrawAmount() string
- func (*ZkWithdrawNFTWitnessInfo) ProtoMessage()
- func (x *ZkWithdrawNFTWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkWithdrawNFTWitnessInfo) Reset()
- func (x *ZkWithdrawNFTWitnessInfo) String() string
- type ZkWithdrawWitnessInfo
- func (*ZkWithdrawWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkWithdrawWitnessInfo) GetAccountId() uint64
- func (x *ZkWithdrawWitnessInfo) GetAmount() string
- func (x *ZkWithdrawWitnessInfo) GetEthAddress() string
- func (x *ZkWithdrawWitnessInfo) GetFee() *ZkFee
- func (x *ZkWithdrawWitnessInfo) GetSignature() *ZkSignature
- func (x *ZkWithdrawWitnessInfo) GetTokenId() uint64
- func (*ZkWithdrawWitnessInfo) ProtoMessage()
- func (x *ZkWithdrawWitnessInfo) ProtoReflect() protoreflect.Message
- func (x *ZkWithdrawWitnessInfo) Reset()
- func (x *ZkWithdrawWitnessInfo) String() string
- type ZkspotClient
- type ZkspotServer
- type ZksyncAction
- func (*ZksyncAction) Descriptor() ([]byte, []int)deprecated
- func (x *ZksyncAction) GetAssetLimitOrder() *SpotAssetLimitOrder
- func (x *ZksyncAction) GetCommitProof() *ZkCommitProof
- func (x *ZksyncAction) GetContractToTree() *ZkContractToTree
- func (x *ZksyncAction) GetDeposit() *ZkDeposit
- func (x *ZksyncAction) GetFullExit() *ZkFullExit
- func (x *ZksyncAction) GetLimitOrder() *SpotLimitOrder
- func (x *ZksyncAction) GetMintNFT() *ZkMintNFT
- func (x *ZksyncAction) GetNftOrder() *SpotNftOrder
- func (x *ZksyncAction) GetNftOrder2() *SpotNftOrder
- func (x *ZksyncAction) GetNftTakerOrder() *SpotNftTakerOrder
- func (x *ZksyncAction) GetNftTakerOrder2() *SpotNftTakerOrder
- func (x *ZksyncAction) GetProxyExit() *ZkProxyExit
- func (x *ZksyncAction) GetRevokeOrder() *SpotRevokeOrder
- func (x *ZksyncAction) GetSetExodusMode() *ZkExodusMode
- func (x *ZksyncAction) GetSetFee() *ZkSetFee
- func (x *ZksyncAction) GetSetPubKey() *ZkSetPubKey
- func (x *ZksyncAction) GetSetTokenSymbol() *ZkTokenSymbol
- func (x *ZksyncAction) GetSetVerifier() *ZkVerifier
- func (x *ZksyncAction) GetSetVerifyKey() *ZkVerifyKey
- func (x *ZksyncAction) GetSwap() *ZkSwap
- func (x *ZksyncAction) GetTransfer() *types.AssetsTransfer
- func (x *ZksyncAction) GetTransferNFT() *ZkTransferNFT
- func (x *ZksyncAction) GetTransferToExec() *types.AssetsTransferToExec
- func (x *ZksyncAction) GetTransferToNew() *ZkTransferToNew
- func (x *ZksyncAction) GetTreeToContract() *ZkTreeToContract
- func (x *ZksyncAction) GetTy() int32
- func (m *ZksyncAction) GetValue() isZksyncAction_Value
- func (x *ZksyncAction) GetWithdraw() *types.AssetsWithdraw
- func (x *ZksyncAction) GetWithdrawNFT() *ZkWithdrawNFT
- func (x *ZksyncAction) GetZkTransfer() *ZkTransfer
- func (x *ZksyncAction) GetZkWithdraw() *ZkWithdraw
- func (*ZksyncAction) ProtoMessage()
- func (x *ZksyncAction) ProtoReflect() protoreflect.Message
- func (x *ZksyncAction) Reset()
- func (x *ZksyncAction) String() string
- type ZksyncAction_AssetLimitOrder
- type ZksyncAction_CommitProof
- type ZksyncAction_ContractToTree
- type ZksyncAction_Deposit
- type ZksyncAction_FullExit
- type ZksyncAction_LimitOrder
- type ZksyncAction_MintNFT
- type ZksyncAction_NftOrder
- type ZksyncAction_NftOrder2
- type ZksyncAction_NftTakerOrder
- type ZksyncAction_NftTakerOrder2
- type ZksyncAction_ProxyExit
- type ZksyncAction_RevokeOrder
- type ZksyncAction_SetExodusMode
- type ZksyncAction_SetFee
- type ZksyncAction_SetPubKey
- type ZksyncAction_SetTokenSymbol
- type ZksyncAction_SetVerifier
- type ZksyncAction_SetVerifyKey
- type ZksyncAction_Swap
- type ZksyncAction_Transfer
- type ZksyncAction_TransferNFT
- type ZksyncAction_TransferToExec
- type ZksyncAction_TransferToNew
- type ZksyncAction_TreeToContract
- type ZksyncAction_Withdraw
- type ZksyncAction_WithdrawNFT
- type ZksyncAction_ZkTransfer
- type ZksyncAction_ZkWithdraw
- type ZksyncClient
- type ZksyncServer
- type ZksyncType
Constants ¶
const ( TySpotNilAction = iota + 1000 TyLimitOrderAction TyMarketOrderAction TyRevokeOrderAction TyExchangeBindAction TyEntrustOrderAction TyEntrustRevokeOrderAction TyNftOrderAction TyNftTakerOrderAction // evmxgo nft order TyNftOrder2Action TyNftTakerOrder2Action TyAssetLimitOrderAction NameLimitOrderAction = "LimitOrder" NameMarketOrderAction = "MarketOrder" NameRevokeOrderAction = "RevokeOrder" NameExchangeBindAction = "ExchangeBind" NameEntrustOrderAction = "EntrustOrder" NameEntrustRevokeOrderAction = "EntrustRevokeOrder" NameNftOrderAction = "NftOrder" NameNftTakerOrderAction = "NftTakerOrder" NameNftOrder2Action = "NftOrder2" NameNftTakerOrder2Action = "NftTakerOrder2" NameAssetLimitOrderAction = "AssetLimitOrder" FuncNameQueryMarketDepth = "QueryMarketDepth" FuncNameQueryHistoryOrderList = "QueryHistoryOrderList" FuncNameQueryOrder = "QueryOrder" FuncNameQueryOrderList = "QueryOrderList" )
action类型id和name,这些常量可以自定义修改
const ( TySpotUnknowLog = iota + 1000 TyLimitOrderLog TyMarketOrderLog TyRevokeOrderLog TyNftOrderLog TyNftTakerOrderLog TyExchangeBindLog TySpotTradeLog // account logs TyDexAccountFrozen = iota + 1100 TyDexAccountActive TyDexAccountBurn TyDexAccountMint TyDexAccountTransfer TyDexAccountTransferFrozen )
log类型id值
const ( OpBuy = iota + 1 OpSell )
OP
const ( Ordered = iota Completed Revoked )
order status
const ( //Count 单次list还回条数 Count = int32(10) //MaxMatchCount 系统最大撮合深度 MaxMatchCount = 100 QeuryCountLmit = 20 PriceLimit = 1e16 )
const ( TyNoopAction = 0 TyDepositAction = 1 //eth存款 TyWithdrawAction = 2 //eth取款 TyTransferAction = 3 //转账 TyTransferToNewAction = 4 //向新地址转账 TyProxyExitAction = 5 //强制退出 TySetPubKeyAction = 6 //设置公钥 TyFullExitAction = 7 //从L1完全退出 TySwapAction = 8 //交换 TyContractToTreeAction = 9 //合约账户转入叶子 TyTreeToContractAction = 10 //叶子账户转入合约 TyFeeAction = 11 //手续费 TyMintNFTAction = 12 TyWithdrawNFTAction = 13 TyTransferNFTAction = 14 //纯特殊电路类型,非Zksync合约使用的action TyContractToTreeNewAction = 30 //合约账户转入新的叶子 //非电路action TySetVerifyKeyAction = 102 //设置电路验证key TyCommitProofAction = 103 //提交zk proof TySetVerifierAction = 104 //设置验证者 TySetFeeAction = 105 //设置手续费 TySetTokenSymbolAction = 106 //设置token的symbol 以方便在合约使用 TyAssetTransferAction = 107 //从tree转到zksync合约的资产账户之间转账 TyAssetTransferToExecAction = 108 //从tree转到zksync合约的资产转到执行器 TyAssetWithdrawAction = 109 //从执行器提款到zksync合约账户 NameNoopAction = "Noop" NameDepositAction = "Deposit" NameWithdrawAction = "ZkWithdraw" NameContractToTreeAction = "ContractToTree" NameTreeToContractAction = "TreeToContract" NameTransferAction = "ZkTransfer" NameTransferToNewAction = "TransferToNew" NameProxyExitAction = "ProxyExit" NameSetPubKeyAction = "SetPubKey" NameFullExitAction = "FullExit" NameSwapAction = "Swap" NameFeeAction = "Fee" NameMintNFTAction = "MintNFT" NameWithdrawNFTACTION = "WithdrawNFT" NameTransferNFTAction = "TransferNFT" NameSetVerifyKeyAction = "SetVerifyKey" NameCommitProofAction = "CommitProof" NameSetVerifierAction = "SetVerifier" NameSetFeeAction = "SetFee" NameSetTokenSymbolAction = "SetTokenSymbol" NameAssetTransfer = "Transfer" NameAssetTransfer2Exec = "TransferToExec" NameAssetWithdraw = "Withdraw" )
action类型id和name,这些常量可以自定义修改
const ( TyNoopLog = 100 TyDepositLog = 101 //存款 TyWithdrawLog = 102 //取款 TyTransferLog = 103 //转账 TyTransferToNewLog = 104 //向新地址转账 TyProxyExitLog = 105 //代理退出 TySetPubKeyLog = 106 //设置公钥 TyFullExitLog = 107 //从L1完全退出 TySwapLog = 108 //交换 TyContractToTreeLog = 109 //合约账户转入叶子 TyTreeToContractLog = 110 //叶子账户转入合约 TyFeeLog = 111 //手续费 TyMintNFTLog = 112 //铸造NFT TyWithdrawNFTLog = 113 //L2提款NFT到L1 TyTransferNFTLog = 114 //L2提款NFT到L1 /////非电路类型 TySetVerifyKeyLog = 202 //设置电路验证key TyCommitProofLog = 203 //提交zk proof TySetVerifierLog = 204 //设置验证者 TySetEthPriorityQueueId = 205 //设置 eth上 priority queue id; TySetFeeLog = 206 TyCommitProofRecordLog = 207 //提交zk proof TyLogSetTokenSymbol = 210 //设置电路验证key TyLogSetExodusMode = 211 //系统设置exodus mode )
log类型id值
const ( ListDESC = int32(0) ListASC = int32(1) ListSeek = int32(2) Add = int32(0) Sub = int32(1) //tree最大归档数目 MaxTreeArchiveLevel = 5 MaxLeafArchiveSum = 32 // =2^MaxTreeArchiveLevel )
const ( TxTypeBitWidth = 8 //1byte AccountBitWidth = 32 //4byte TokenBitWidth = 32 //4byte for support NFT id NFTAmountBitWidth = 16 AmountBitWidth = 128 //16byte AddrBitWidth = 160 //20byte HashBitWidth = 256 //32byte PubKeyBitWidth = 256 //32byte PacAmountManBitWidth = 35 //amount mantissa part, 比如12340000,只取1234部分,0000用exponent表示 PacFeeManBitWidth = 11 //fee mantissa part PacExpBitWidth = 5 //amount and fee exponent part,支持31个0 MaxExponentVal = 32 // 2**5 by exp bit width ChunkBitWidth = 224 //one chunk 16 bytes ChunkBytes = ChunkBitWidth / 8 //28 bytes )
msg宽度
const ( //BN254Fp=254bit,254-2 bit MsgFirstWidth = 252 MsgSecondWidth = 252 MsgThirdWidth = 248 MsgWidth = 752 //94 byte )
const ( DepositChunks = 3 Contract2TreeChunks = 2 Contract2TreeNewChunks = 3 Tree2ContractChunks = 2 TransferChunks = 2 Transfer2NewChunks = 3 WithdrawChunks = 2 ProxyExitChunks = 2 FullExitChunks = 2 SwapChunks = 4 NoopChunks = 1 SetPubKeyChunks = 3 FeeChunks = 1 //MintNFTChunks, withrawNFT, transferNft, NFT chunks 不只是看pubdata长度,更要看需要几个chunk完成,这里chunks超出了pubdata的长度 MintNFTChunks = 5 WithdrawNFTChunks = 6 TransferNFTChunks = 3 )
不同type chunk数量
const ( //SystemDefaultAcctId 缺省备用账户 SystemDefaultAcctId = 0 //SystemFeeAccountId 此账户作为缺省收费账户 SystemFeeAccountId = 1 //SystemNFTAccountId 此特殊账户没有私钥,只记录并产生NFT token资产,不会有小于NFTTokenId的FT token记录 SystemNFTAccountId = 2 //SystemTree2ContractAcctId, 汇总从 tree2contract 跨链的资产总额 SystemTree2ContractAcctId = 3 //SystemNFTTokenId 作为一个NFT token标记 低于NFTTokenId 为FT token id, 高于NFTTokenId为 NFT token id,即从NFTTokenId+1开始作为NFT资产 SystemNFTTokenId = 256 //2^8, )
const ( ZKERC1155 = 1 ZKERC721 = 2 )
ERC protocol
const ( NormalProxyPubKey = 1 SystemProxyPubKey = 2 SuperProxyPubKey = 3 )
const ( ExodusPrepareMode = 1 //逃生舱预备阶段 所有和L1相关的 onChain tx都不执行(deposit,withdraw,proxyexit) ExodusClearMode = 2 //逃生舱清算阶段 除contract2tree外,所有L2相关的tx都不允许执行,收敛最终treeRoot,保证尽快退出资产到L1 )
const ExecName = Zksync
const ZkCfgEthFeeAddr = "ethFeeAddr"
配置的系统收交易费账户
const ZkCfgInvalidProof = "invalidProofRootHash"
const ZkCfgInvalidTx = "invalidTxHash"
配置的无效交易和无效证明,用于平行链zksync交易的回滚(假设proof和eth不一致,无法fix时候)
const ZkCfgLayer2FeeAddr = "layer2FeeAddr"
const ZkManagerKey = "manager"
const ZkMimcHashSeed = "seed"
const ZkParaChainInnerTitleId = "1"
ZkParaChainInnerTitleId 平行链内部只有一个titleId,缺省为1,在主链上不同平行链有自己的titleId
const ZkVerifierKey = "verifier"
const Zksync = "zksync"
Zksync 执行器名称定义
Variables ¶
var ( ErrAssetAmount = fmt.Errorf("%s", "The asset amount is not valid!") ErrAssetPrice = fmt.Errorf("%s", "The asset price is not valid!") ErrAssetOp = fmt.Errorf("%s", "The asset op is not define!") ErrAssetBalance = fmt.Errorf("%s", "Insufficient balance!") ErrOrderSatus = fmt.Errorf("%s", "The order status is reovked or completed!") ErrAddr = fmt.Errorf("%s", "Wrong Addr!") ErrAsset = fmt.Errorf("%s", "The asset's execer or symbol can't be nil,The same assets cannot be exchanged!") ErrCount = fmt.Errorf("%s", "The param count can't large 20") ErrDirection = fmt.Errorf("%s", "The direction only 0 or 1!") ErrStatus = fmt.Errorf("%s", "The status only in 0 , 1, 2!") ErrOrderID = fmt.Errorf("%s", "Wrong OrderID!") ErrCfgFmt = fmt.Errorf("%s", "ErrCfgFmt") ErrBindAddr = fmt.Errorf("%s", "The address is not bound") // 资产处理 ErrDexNotEnough = fmt.Errorf("%s", "token balance not enough") ErrSpotFeeConfig = fmt.Errorf("%s", "spot fee config") )
var ( AssetType_name = map[int32]string{ 0: "Unknow", 1: "L1Erc20", 2: "TokenType", 3: "ZkNft", 4: "EvmNft", } AssetType_value = map[string]int32{ "Unknow": 0, "L1Erc20": 1, "TokenType": 2, "ZkNft": 3, "EvmNft": 4, } )
Enum value maps for AssetType.
var File_spot_proto protoreflect.FileDescriptor
var File_witness_proto protoreflect.FileDescriptor
var File_zksync_proto protoreflect.FileDescriptor
var ( //定义log的id和具体log类型及名称,填入具体自定义log类型 //ForkFix Forks ForkParamV1 = "ForkParamV1" )
var MverPrefix = "mver.exec.sub." + ExecName // [mver.exec.sub.zkspot]
config part
Functions ¶
func AmountFromZksync ¶ added in v1.67.4
func AmountToZksync ¶ added in v1.67.4
func Byte2Uint64 ¶
func CheckAmount ¶ added in v1.67.4
CheckAmount 最小交易 1coin
func CheckAssetLimitOrder ¶ added in v1.67.4
func CheckAssetLimitOrder(cfg *types.Chain33Config, order *SpotAssetLimitOrder) error
func CheckExchangeAsset ¶ added in v1.67.4
CheckExchangeAsset
func CheckIsNFTToken ¶ added in v1.67.4
func CheckIsNormalToken ¶ added in v1.67.4
func CheckLimitOrder ¶ added in v1.67.4
func CheckLimitOrder(cfg *types.Chain33Config, limitOrder *SpotLimitOrder) error
func CheckNftOrder ¶ added in v1.67.4
func CheckNftOrder(cfg *types.Chain33Config, limitOrder *SpotNftOrder) error
func CheckNftOrder2 ¶ added in v1.67.4
func CheckNftOrder2(cfg *types.Chain33Config, limitOrder *SpotNftOrder) error
func CheckPrice ¶ added in v1.67.4
CheckPrice price 1<=price<=1e16
func DecodePacVal ¶ added in v1.67.4
DecodePacVal decode pac val with man+exp format
func FilterHexPrefix ¶ added in v1.67.4
func GetOpChunkNum ¶ added in v1.67.4
func InitExecutor ¶
func InitExecutor(cfg *types.Chain33Config)
InitExecutor defines register executor
func MergeReceipt ¶ added in v1.67.4
func NftAmountFromZksync ¶ added in v1.67.4
func NftAmountToZksync ¶ added in v1.67.4
func RegisterZkspotServer ¶ added in v1.67.4
func RegisterZkspotServer(s *grpc.Server, srv ZkspotServer)
func RegisterZksyncServer ¶
func RegisterZksyncServer(s *grpc.Server, srv ZksyncServer)
func SplitNFTContent ¶ added in v1.67.4
func SpotInitFork ¶ added in v1.67.4
func SpotInitFork(cfg *types.Chain33Config)
SpotInitFork defines register fork
func ZkFindExponentPart ¶ added in v1.67.4
ZkFindExponentPart 找到一个数的指数数量,最大31个0,也就是10^31,循环div 10, 找到最后一个余数非0
Types ¶
type AccountProxyPubKeys ¶ added in v1.67.4
type AccountProxyPubKeys struct {
//代理地址都由用户自己指定,不能由代理地址指定,代理地址只能处理有限指定的操作
Normal *ZkPubKey `protobuf:"bytes,1,opt,name=normal,proto3" json:"normal,omitempty"`
System *ZkPubKey `protobuf:"bytes,2,opt,name=system,proto3" json:"system,omitempty"`
Super *ZkPubKey `protobuf:"bytes,3,opt,name=super,proto3" json:"super,omitempty"`
// contains filtered or unexported fields
}
func (*AccountProxyPubKeys) Descriptor
deprecated
added in
v1.67.4
func (*AccountProxyPubKeys) Descriptor() ([]byte, []int)
Deprecated: Use AccountProxyPubKeys.ProtoReflect.Descriptor instead.
func (*AccountProxyPubKeys) GetNormal ¶ added in v1.67.4
func (x *AccountProxyPubKeys) GetNormal() *ZkPubKey
func (*AccountProxyPubKeys) GetSuper ¶ added in v1.67.4
func (x *AccountProxyPubKeys) GetSuper() *ZkPubKey
func (*AccountProxyPubKeys) GetSystem ¶ added in v1.67.4
func (x *AccountProxyPubKeys) GetSystem() *ZkPubKey
func (*AccountProxyPubKeys) ProtoMessage ¶ added in v1.67.4
func (*AccountProxyPubKeys) ProtoMessage()
func (*AccountProxyPubKeys) ProtoReflect ¶ added in v1.67.4
func (x *AccountProxyPubKeys) ProtoReflect() protoreflect.Message
func (*AccountProxyPubKeys) Reset ¶ added in v1.67.4
func (x *AccountProxyPubKeys) Reset()
func (*AccountProxyPubKeys) String ¶ added in v1.67.4
func (x *AccountProxyPubKeys) String() string
type AccountTree ¶
type AccountTree struct {
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` //当前的叶子索引
TotalIndex uint64 `protobuf:"varint,2,opt,name=totalIndex,proto3" json:"totalIndex,omitempty"` //总计叶子索引
MaxCurrentIndex uint64 `protobuf:"varint,3,opt,name=maxCurrentIndex,proto3" json:"maxCurrentIndex,omitempty"` //当前索引最大值,超过最大值会进行归档
SubTrees []*SubTree `protobuf:"bytes,4,rep,name=subTrees,proto3" json:"subTrees,omitempty"` //当前未归档的子树
// contains filtered or unexported fields
}
func (*AccountTree) Descriptor
deprecated
func (*AccountTree) Descriptor() ([]byte, []int)
Deprecated: Use AccountTree.ProtoReflect.Descriptor instead.
func (*AccountTree) GetIndex ¶
func (x *AccountTree) GetIndex() uint64
func (*AccountTree) GetMaxCurrentIndex ¶
func (x *AccountTree) GetMaxCurrentIndex() uint64
func (*AccountTree) GetSubTrees ¶
func (x *AccountTree) GetSubTrees() []*SubTree
func (*AccountTree) GetTotalIndex ¶
func (x *AccountTree) GetTotalIndex() uint64
func (*AccountTree) ProtoMessage ¶
func (*AccountTree) ProtoMessage()
func (*AccountTree) ProtoReflect ¶
func (x *AccountTree) ProtoReflect() protoreflect.Message
func (*AccountTree) Reset ¶
func (x *AccountTree) Reset()
func (*AccountTree) String ¶
func (x *AccountTree) String() string
type AccountWitness ¶
type AccountWitness struct {
ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
EthAddr string `protobuf:"bytes,2,opt,name=ethAddr,proto3" json:"ethAddr,omitempty"`
Chain33Addr string `protobuf:"bytes,3,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"`
TokenTreeRoot string `protobuf:"bytes,4,opt,name=tokenTreeRoot,proto3" json:"tokenTreeRoot,omitempty"` //sub chain token tree root
PubKey *ZkPubKey `protobuf:"bytes,5,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
Sibling *SiblingPath `protobuf:"bytes,6,opt,name=sibling,proto3" json:"sibling,omitempty"`
ProxyPubKeys *AccountProxyPubKeys `protobuf:"bytes,7,opt,name=proxyPubKeys,proto3" json:"proxyPubKeys,omitempty"`
// contains filtered or unexported fields
}
func (*AccountWitness) Descriptor
deprecated
func (*AccountWitness) Descriptor() ([]byte, []int)
Deprecated: Use AccountWitness.ProtoReflect.Descriptor instead.
func (*AccountWitness) GetChain33Addr ¶
func (x *AccountWitness) GetChain33Addr() string
func (*AccountWitness) GetEthAddr ¶
func (x *AccountWitness) GetEthAddr() string
func (*AccountWitness) GetID ¶
func (x *AccountWitness) GetID() uint64
func (*AccountWitness) GetProxyPubKeys ¶ added in v1.67.4
func (x *AccountWitness) GetProxyPubKeys() *AccountProxyPubKeys
func (*AccountWitness) GetPubKey ¶
func (x *AccountWitness) GetPubKey() *ZkPubKey
func (*AccountWitness) GetSibling ¶
func (x *AccountWitness) GetSibling() *SiblingPath
func (*AccountWitness) GetTokenTreeRoot ¶
func (x *AccountWitness) GetTokenTreeRoot() string
func (*AccountWitness) ProtoMessage ¶
func (*AccountWitness) ProtoMessage()
func (*AccountWitness) ProtoReflect ¶
func (x *AccountWitness) ProtoReflect() protoreflect.Message
func (*AccountWitness) Reset ¶
func (x *AccountWitness) Reset()
func (*AccountWitness) String ¶
func (x *AccountWitness) String() string
type AssetToken ¶ added in v1.67.4
type AssetToken struct {
Execer string `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
// contains filtered or unexported fields
}
func (*AssetToken) Descriptor
deprecated
added in
v1.67.4
func (*AssetToken) Descriptor() ([]byte, []int)
Deprecated: Use AssetToken.ProtoReflect.Descriptor instead.
func (*AssetToken) GetExecer ¶ added in v1.67.4
func (x *AssetToken) GetExecer() string
func (*AssetToken) GetSymbol ¶ added in v1.67.4
func (x *AssetToken) GetSymbol() string
func (*AssetToken) ProtoMessage ¶ added in v1.67.4
func (*AssetToken) ProtoMessage()
func (*AssetToken) ProtoReflect ¶ added in v1.67.4
func (x *AssetToken) ProtoReflect() protoreflect.Message
func (*AssetToken) Reset ¶ added in v1.67.4
func (x *AssetToken) Reset()
func (*AssetToken) String ¶ added in v1.67.4
func (x *AssetToken) String() string
type AssetType ¶ added in v1.67.4
type AssetType int32
Asset may come from L1 ERC20, other contract Token, zksync gened NFT, evm-solidity-NFT
func (AssetType) Descriptor ¶ added in v1.67.4
func (AssetType) Descriptor() protoreflect.EnumDescriptor
func (AssetType) EnumDescriptor
deprecated
added in
v1.67.4
func (AssetType) Number ¶ added in v1.67.4
func (x AssetType) Number() protoreflect.EnumNumber
func (AssetType) Type ¶ added in v1.67.4
func (AssetType) Type() protoreflect.EnumType
type CommitProofState ¶
type CommitProofState struct {
BlockStart uint64 `protobuf:"varint,1,opt,name=blockStart,proto3" json:"blockStart,omitempty"`
IndexStart uint64 `protobuf:"varint,2,opt,name=indexStart,proto3" json:"indexStart,omitempty"`
BlockEnd uint64 `protobuf:"varint,3,opt,name=blockEnd,proto3" json:"blockEnd,omitempty"`
IndexEnd uint64 `protobuf:"varint,4,opt,name=indexEnd,proto3" json:"indexEnd,omitempty"`
OpIndex uint32 `protobuf:"varint,5,opt,name=opIndex,proto3" json:"opIndex,omitempty"`
OldTreeRoot string `protobuf:"bytes,6,opt,name=oldTreeRoot,proto3" json:"oldTreeRoot,omitempty"`
NewTreeRoot string `protobuf:"bytes,7,opt,name=newTreeRoot,proto3" json:"newTreeRoot,omitempty"`
ProofId uint64 `protobuf:"varint,10,opt,name=proofId,proto3" json:"proofId,omitempty"`
OnChainProofId uint64 `protobuf:"varint,11,opt,name=onChainProofId,proto3" json:"onChainProofId,omitempty"`
//commit时候的blockHeight
CommitBlockHeight int64 `protobuf:"varint,12,opt,name=commitBlockHeight,proto3" json:"commitBlockHeight,omitempty"`
ChainTitleId uint64 `protobuf:"varint,13,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
// contains filtered or unexported fields
}
commit proof stat, pubdata保存到localdb
func (*CommitProofState) Descriptor
deprecated
func (*CommitProofState) Descriptor() ([]byte, []int)
Deprecated: Use CommitProofState.ProtoReflect.Descriptor instead.
func (*CommitProofState) GetBlockEnd ¶
func (x *CommitProofState) GetBlockEnd() uint64
func (*CommitProofState) GetBlockStart ¶
func (x *CommitProofState) GetBlockStart() uint64
func (*CommitProofState) GetChainTitleId ¶ added in v1.67.4
func (x *CommitProofState) GetChainTitleId() uint64
func (*CommitProofState) GetCommitBlockHeight ¶ added in v1.67.4
func (x *CommitProofState) GetCommitBlockHeight() int64
func (*CommitProofState) GetIndexEnd ¶
func (x *CommitProofState) GetIndexEnd() uint64
func (*CommitProofState) GetIndexStart ¶
func (x *CommitProofState) GetIndexStart() uint64
func (*CommitProofState) GetNewTreeRoot ¶
func (x *CommitProofState) GetNewTreeRoot() string
func (*CommitProofState) GetOldTreeRoot ¶
func (x *CommitProofState) GetOldTreeRoot() string
func (*CommitProofState) GetOnChainProofId ¶ added in v1.67.4
func (x *CommitProofState) GetOnChainProofId() uint64
func (*CommitProofState) GetOpIndex ¶
func (x *CommitProofState) GetOpIndex() uint32
func (*CommitProofState) GetProofId ¶
func (x *CommitProofState) GetProofId() uint64
func (*CommitProofState) ProtoMessage ¶
func (*CommitProofState) ProtoMessage()
func (*CommitProofState) ProtoReflect ¶
func (x *CommitProofState) ProtoReflect() protoreflect.Message
func (*CommitProofState) Reset ¶
func (x *CommitProofState) Reset()
func (*CommitProofState) String ¶
func (x *CommitProofState) String() string
type DexAccount ¶ added in v1.67.4
type DexAccount struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Balance []*DexAccountBalance `protobuf:"bytes,3,rep,name=balance,proto3" json:"balance,omitempty"`
DexName string `protobuf:"bytes,4,opt,name=dexName,proto3" json:"dexName,omitempty"`
// contains filtered or unexported fields
}
用户代币的数量
func (*DexAccount) Descriptor
deprecated
added in
v1.67.4
func (*DexAccount) Descriptor() ([]byte, []int)
Deprecated: Use DexAccount.ProtoReflect.Descriptor instead.
func (*DexAccount) GetAddr ¶ added in v1.67.4
func (x *DexAccount) GetAddr() string
func (*DexAccount) GetBalance ¶ added in v1.67.4
func (x *DexAccount) GetBalance() []*DexAccountBalance
func (*DexAccount) GetDexName ¶ added in v1.67.4
func (x *DexAccount) GetDexName() string
func (*DexAccount) GetId ¶ added in v1.67.4
func (x *DexAccount) GetId() uint64
func (*DexAccount) ProtoMessage ¶ added in v1.67.4
func (*DexAccount) ProtoMessage()
func (*DexAccount) ProtoReflect ¶ added in v1.67.4
func (x *DexAccount) ProtoReflect() protoreflect.Message
func (*DexAccount) Reset ¶ added in v1.67.4
func (x *DexAccount) Reset()
func (*DexAccount) String ¶ added in v1.67.4
func (x *DexAccount) String() string
type DexAccountBalance ¶ added in v1.67.4
type DexAccountBalance struct {
// token id
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
Frozen uint64 `protobuf:"varint,3,opt,name=frozen,proto3" json:"frozen,omitempty"`
// contains filtered or unexported fields
}
每种代币的数量
func (*DexAccountBalance) Descriptor
deprecated
added in
v1.67.4
func (*DexAccountBalance) Descriptor() ([]byte, []int)
Deprecated: Use DexAccountBalance.ProtoReflect.Descriptor instead.
func (*DexAccountBalance) GetBalance ¶ added in v1.67.4
func (x *DexAccountBalance) GetBalance() uint64
func (*DexAccountBalance) GetFrozen ¶ added in v1.67.4
func (x *DexAccountBalance) GetFrozen() uint64
func (*DexAccountBalance) GetId ¶ added in v1.67.4
func (x *DexAccountBalance) GetId() uint64
func (*DexAccountBalance) ProtoMessage ¶ added in v1.67.4
func (*DexAccountBalance) ProtoMessage()
func (*DexAccountBalance) ProtoReflect ¶ added in v1.67.4
func (x *DexAccountBalance) ProtoReflect() protoreflect.Message
func (*DexAccountBalance) Reset ¶ added in v1.67.4
func (x *DexAccountBalance) Reset()
func (*DexAccountBalance) String ¶ added in v1.67.4
func (x *DexAccountBalance) String() string
type Econfig ¶ added in v1.67.4
func (*Econfig) GetFeeAddr ¶ added in v1.67.4
func (*Econfig) GetFeeAddrID ¶ added in v1.67.4
type EthPriorityQueueID ¶
type EthPriorityQueueID struct {
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
// contains filtered or unexported fields
}
func (*EthPriorityQueueID) Descriptor
deprecated
func (*EthPriorityQueueID) Descriptor() ([]byte, []int)
Deprecated: Use EthPriorityQueueID.ProtoReflect.Descriptor instead.
func (*EthPriorityQueueID) GetID ¶
func (x *EthPriorityQueueID) GetID() string
func (*EthPriorityQueueID) ProtoMessage ¶
func (*EthPriorityQueueID) ProtoMessage()
func (*EthPriorityQueueID) ProtoReflect ¶
func (x *EthPriorityQueueID) ProtoReflect() protoreflect.Message
func (*EthPriorityQueueID) Reset ¶
func (x *EthPriorityQueueID) Reset()
func (*EthPriorityQueueID) String ¶
func (x *EthPriorityQueueID) String() string
type HistoryAccountProofInfo ¶ added in v1.67.4
type HistoryAccountProofInfo struct {
RootHash string `protobuf:"bytes,1,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
Leaves []*HistoryLeaf `protobuf:"bytes,2,rep,name=leaves,proto3" json:"leaves,omitempty"`
LeafHashes [][]byte `protobuf:"bytes,3,rep,name=leafHashes,proto3" json:"leafHashes,omitempty"`
// contains filtered or unexported fields
}
func (*HistoryAccountProofInfo) Descriptor
deprecated
added in
v1.67.4
func (*HistoryAccountProofInfo) Descriptor() ([]byte, []int)
Deprecated: Use HistoryAccountProofInfo.ProtoReflect.Descriptor instead.
func (*HistoryAccountProofInfo) GetLeafHashes ¶ added in v1.67.4
func (x *HistoryAccountProofInfo) GetLeafHashes() [][]byte
func (*HistoryAccountProofInfo) GetLeaves ¶ added in v1.67.4
func (x *HistoryAccountProofInfo) GetLeaves() []*HistoryLeaf
func (*HistoryAccountProofInfo) GetRootHash ¶ added in v1.67.4
func (x *HistoryAccountProofInfo) GetRootHash() string
func (*HistoryAccountProofInfo) ProtoMessage ¶ added in v1.67.4
func (*HistoryAccountProofInfo) ProtoMessage()
func (*HistoryAccountProofInfo) ProtoReflect ¶ added in v1.67.4
func (x *HistoryAccountProofInfo) ProtoReflect() protoreflect.Message
func (*HistoryAccountProofInfo) Reset ¶ added in v1.67.4
func (x *HistoryAccountProofInfo) Reset()
func (*HistoryAccountProofInfo) String ¶ added in v1.67.4
func (x *HistoryAccountProofInfo) String() string
type HistoryLeaf ¶
type HistoryLeaf struct {
AccountId uint64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"` //accountId其实就是叶子的totalIndex
EthAddress string `protobuf:"bytes,2,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"` //账户对应的以太坊地址
PubKey *ZkPubKey `protobuf:"bytes,3,opt,name=pubKey,proto3" json:"pubKey,omitempty"` //eddsa公钥,用于验证身份
Chain33Addr string `protobuf:"bytes,4,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"` //chain33地址
TokenHash string `protobuf:"bytes,5,opt,name=tokenHash,proto3" json:"tokenHash,omitempty"` //叶子下token的hash
Tokens []*TokenBalance `protobuf:"bytes,6,rep,name=tokens,proto3" json:"tokens,omitempty"` //叶子下拥有的token
ProofId uint64 `protobuf:"varint,7,opt,name=proofId,proto3" json:"proofId,omitempty"` //账户状态所在的proofId
ProxyPubKeys *AccountProxyPubKeys `protobuf:"bytes,8,opt,name=proxyPubKeys,proto3" json:"proxyPubKeys,omitempty"` //eddsa代理公钥,用于验证代理者的身份
// contains filtered or unexported fields
}
func (*HistoryLeaf) Descriptor
deprecated
func (*HistoryLeaf) Descriptor() ([]byte, []int)
Deprecated: Use HistoryLeaf.ProtoReflect.Descriptor instead.
func (*HistoryLeaf) GetAccountId ¶
func (x *HistoryLeaf) GetAccountId() uint64
func (*HistoryLeaf) GetChain33Addr ¶
func (x *HistoryLeaf) GetChain33Addr() string
func (*HistoryLeaf) GetEthAddress ¶
func (x *HistoryLeaf) GetEthAddress() string
func (*HistoryLeaf) GetProofId ¶
func (x *HistoryLeaf) GetProofId() uint64
func (*HistoryLeaf) GetProxyPubKeys ¶ added in v1.67.4
func (x *HistoryLeaf) GetProxyPubKeys() *AccountProxyPubKeys
func (*HistoryLeaf) GetPubKey ¶
func (x *HistoryLeaf) GetPubKey() *ZkPubKey
func (*HistoryLeaf) GetTokenHash ¶
func (x *HistoryLeaf) GetTokenHash() string
func (*HistoryLeaf) GetTokens ¶
func (x *HistoryLeaf) GetTokens() []*TokenBalance
func (*HistoryLeaf) ProtoMessage ¶
func (*HistoryLeaf) ProtoMessage()
func (*HistoryLeaf) ProtoReflect ¶
func (x *HistoryLeaf) ProtoReflect() protoreflect.Message
func (*HistoryLeaf) Reset ¶
func (x *HistoryLeaf) Reset()
func (*HistoryLeaf) String ¶
func (x *HistoryLeaf) String() string
type LastOnChainProof ¶ added in v1.67.4
type LastOnChainProof struct {
ChainTitleId uint64 `protobuf:"varint,1,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
ProofId uint64 `protobuf:"varint,2,opt,name=proofId,proto3" json:"proofId,omitempty"`
OnChainProofId uint64 `protobuf:"varint,3,opt,name=onChainProofId,proto3" json:"onChainProofId,omitempty"`
// contains filtered or unexported fields
}
func (*LastOnChainProof) Descriptor
deprecated
added in
v1.67.4
func (*LastOnChainProof) Descriptor() ([]byte, []int)
Deprecated: Use LastOnChainProof.ProtoReflect.Descriptor instead.
func (*LastOnChainProof) GetChainTitleId ¶ added in v1.67.4
func (x *LastOnChainProof) GetChainTitleId() uint64
func (*LastOnChainProof) GetOnChainProofId ¶ added in v1.67.4
func (x *LastOnChainProof) GetOnChainProofId() uint64
func (*LastOnChainProof) GetProofId ¶ added in v1.67.4
func (x *LastOnChainProof) GetProofId() uint64
func (*LastOnChainProof) ProtoMessage ¶ added in v1.67.4
func (*LastOnChainProof) ProtoMessage()
func (*LastOnChainProof) ProtoReflect ¶ added in v1.67.4
func (x *LastOnChainProof) ProtoReflect() protoreflect.Message
func (*LastOnChainProof) Reset ¶ added in v1.67.4
func (x *LastOnChainProof) Reset()
func (*LastOnChainProof) String ¶ added in v1.67.4
func (x *LastOnChainProof) String() string
type Leaf ¶
type Leaf struct {
AccountId uint64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"` //accountId其实就是叶子的totalIndex
EthAddress string `protobuf:"bytes,2,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"` //账户对应的以太坊地址
PubKey *ZkPubKey `protobuf:"bytes,3,opt,name=pubKey,proto3" json:"pubKey,omitempty"` //eddsa公钥,用于验证身份
Chain33Addr string `protobuf:"bytes,4,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"` //chain33地址
TokenHash string `protobuf:"bytes,5,opt,name=tokenHash,proto3" json:"tokenHash,omitempty"` //叶子下token的hash
TokenIds []uint64 `protobuf:"varint,6,rep,packed,name=tokenIds,proto3" json:"tokenIds,omitempty"` //叶子下拥有的tokenId
ProxyPubKeys *AccountProxyPubKeys `protobuf:"bytes,7,opt,name=proxyPubKeys,proto3" json:"proxyPubKeys,omitempty"` //eddsa代理公钥,用于验证代理者的身份
// contains filtered or unexported fields
}
func (*Leaf) Descriptor
deprecated
func (*Leaf) GetAccountId ¶
func (*Leaf) GetChain33Addr ¶
func (*Leaf) GetEthAddress ¶
func (*Leaf) GetProxyPubKeys ¶ added in v1.67.4
func (x *Leaf) GetProxyPubKeys() *AccountProxyPubKeys
func (*Leaf) GetTokenHash ¶
func (*Leaf) GetTokenIds ¶
func (*Leaf) ProtoMessage ¶
func (*Leaf) ProtoMessage()
func (*Leaf) ProtoReflect ¶
func (x *Leaf) ProtoReflect() protoreflect.Message
type MatchInfo ¶ added in v1.67.4
type MatchInfo struct {
// trade match balance
Matched int64 `protobuf:"varint,1,opt,name=matched,proto3" json:"matched,omitempty"`
LeftBalance int64 `protobuf:"varint,2,opt,name=leftBalance,proto3" json:"leftBalance,omitempty"`
// = matched * price
RightBalance int64 `protobuf:"varint,3,opt,name=rightBalance,proto3" json:"rightBalance,omitempty"`
// fee use right token
FeeTaker int64 `protobuf:"varint,4,opt,name=feeTaker,proto3" json:"feeTaker,omitempty"`
FeeMaker int64 `protobuf:"varint,5,opt,name=feeMaker,proto3" json:"feeMaker,omitempty"`
Price int64 `protobuf:"varint,6,opt,name=price,proto3" json:"price,omitempty"`
// contains filtered or unexported fields
}
func (*MatchInfo) Descriptor
deprecated
added in
v1.67.4
func (*MatchInfo) GetFeeMaker ¶ added in v1.67.4
func (*MatchInfo) GetFeeTaker ¶ added in v1.67.4
func (*MatchInfo) GetLeftBalance ¶ added in v1.67.4
func (*MatchInfo) GetMatched ¶ added in v1.67.4
func (*MatchInfo) GetRightBalance ¶ added in v1.67.4
func (*MatchInfo) ProtoMessage ¶ added in v1.67.4
func (*MatchInfo) ProtoMessage()
func (*MatchInfo) ProtoReflect ¶ added in v1.67.4
func (x *MatchInfo) ProtoReflect() protoreflect.Message
type MerkleTreeProof ¶
type MerkleTreeProof struct {
RootHash string `protobuf:"bytes,1,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
ProofSet []string `protobuf:"bytes,2,rep,name=proofSet,proto3" json:"proofSet,omitempty"`
Helpers []string `protobuf:"bytes,3,rep,name=helpers,proto3" json:"helpers,omitempty"`
// contains filtered or unexported fields
}
func (*MerkleTreeProof) Descriptor
deprecated
func (*MerkleTreeProof) Descriptor() ([]byte, []int)
Deprecated: Use MerkleTreeProof.ProtoReflect.Descriptor instead.
func (*MerkleTreeProof) GetHelpers ¶
func (x *MerkleTreeProof) GetHelpers() []string
func (*MerkleTreeProof) GetProofSet ¶
func (x *MerkleTreeProof) GetProofSet() []string
func (*MerkleTreeProof) GetRootHash ¶
func (x *MerkleTreeProof) GetRootHash() string
func (*MerkleTreeProof) ProtoMessage ¶
func (*MerkleTreeProof) ProtoMessage()
func (*MerkleTreeProof) ProtoReflect ¶
func (x *MerkleTreeProof) ProtoReflect() protoreflect.Message
func (*MerkleTreeProof) Reset ¶
func (x *MerkleTreeProof) Reset()
func (*MerkleTreeProof) String ¶
func (x *MerkleTreeProof) String() string
type OperationInfo ¶
type OperationInfo struct {
BlockHeight uint64 `protobuf:"varint,1,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
TxIndex uint32 `protobuf:"varint,2,opt,name=txIndex,proto3" json:"txIndex,omitempty"`
OpIndex uint32 `protobuf:"varint,3,opt,name=opIndex,proto3" json:"opIndex,omitempty"`
TxType uint32 `protobuf:"varint,4,opt,name=txType,proto3" json:"txType,omitempty"`
TxHash string `protobuf:"bytes,5,opt,name=txHash,proto3" json:"txHash,omitempty"`
Roots []string `protobuf:"bytes,11,rep,name=roots,proto3" json:"roots,omitempty"` //每个操作后的root
//每个operation data由一对 操作前后数据组成,不同操作可以有多个操作数据,deposit:1,transfer:2
OperationBranches []*OperationPairBranch `protobuf:"bytes,12,rep,name=operationBranches,proto3" json:"operationBranches,omitempty"`
//操作特殊数据,像订单数据
SpecialInfo *OperationSpecialInfo `protobuf:"bytes,13,opt,name=specialInfo,proto3" json:"specialInfo,omitempty"`
//记录deposit或fullExit对应的eth priorityId,方便查询对应区块高度和证明Id
EthPriorityId int64 `protobuf:"varint,14,opt,name=ethPriorityId,proto3" json:"ethPriorityId,omitempty"`
// contains filtered or unexported fields
}
func (*OperationInfo) Descriptor
deprecated
func (*OperationInfo) Descriptor() ([]byte, []int)
Deprecated: Use OperationInfo.ProtoReflect.Descriptor instead.
func (*OperationInfo) GetBlockHeight ¶
func (x *OperationInfo) GetBlockHeight() uint64
func (*OperationInfo) GetEthPriorityId ¶ added in v1.67.4
func (x *OperationInfo) GetEthPriorityId() int64
func (*OperationInfo) GetOpIndex ¶
func (x *OperationInfo) GetOpIndex() uint32
func (*OperationInfo) GetOperationBranches ¶
func (x *OperationInfo) GetOperationBranches() []*OperationPairBranch
func (*OperationInfo) GetRoots ¶
func (x *OperationInfo) GetRoots() []string
func (*OperationInfo) GetSpecialInfo ¶
func (x *OperationInfo) GetSpecialInfo() *OperationSpecialInfo
func (*OperationInfo) GetTxHash ¶
func (x *OperationInfo) GetTxHash() string
func (*OperationInfo) GetTxIndex ¶
func (x *OperationInfo) GetTxIndex() uint32
func (*OperationInfo) GetTxType ¶
func (x *OperationInfo) GetTxType() uint32
func (*OperationInfo) ProtoMessage ¶
func (*OperationInfo) ProtoMessage()
func (*OperationInfo) ProtoReflect ¶
func (x *OperationInfo) ProtoReflect() protoreflect.Message
func (*OperationInfo) Reset ¶
func (x *OperationInfo) Reset()
func (*OperationInfo) String ¶
func (x *OperationInfo) String() string
type OperationMetaBranch ¶
type OperationMetaBranch struct {
AccountWitness *AccountWitness `protobuf:"bytes,1,opt,name=accountWitness,proto3" json:"accountWitness,omitempty"`
TokenWitness *TokenWitness `protobuf:"bytes,2,opt,name=tokenWitness,proto3" json:"tokenWitness,omitempty"`
// contains filtered or unexported fields
}
one operation branch
func (*OperationMetaBranch) Descriptor
deprecated
func (*OperationMetaBranch) Descriptor() ([]byte, []int)
Deprecated: Use OperationMetaBranch.ProtoReflect.Descriptor instead.
func (*OperationMetaBranch) GetAccountWitness ¶
func (x *OperationMetaBranch) GetAccountWitness() *AccountWitness
func (*OperationMetaBranch) GetTokenWitness ¶
func (x *OperationMetaBranch) GetTokenWitness() *TokenWitness
func (*OperationMetaBranch) ProtoMessage ¶
func (*OperationMetaBranch) ProtoMessage()
func (*OperationMetaBranch) ProtoReflect ¶
func (x *OperationMetaBranch) ProtoReflect() protoreflect.Message
func (*OperationMetaBranch) Reset ¶
func (x *OperationMetaBranch) Reset()
func (*OperationMetaBranch) String ¶
func (x *OperationMetaBranch) String() string
type OperationPairBranch ¶
type OperationPairBranch struct {
Before *OperationMetaBranch `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"`
After *OperationMetaBranch `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"`
// contains filtered or unexported fields
}
before and after operation data
func (*OperationPairBranch) Descriptor
deprecated
func (*OperationPairBranch) Descriptor() ([]byte, []int)
Deprecated: Use OperationPairBranch.ProtoReflect.Descriptor instead.
func (*OperationPairBranch) GetAfter ¶
func (x *OperationPairBranch) GetAfter() *OperationMetaBranch
func (*OperationPairBranch) GetBefore ¶
func (x *OperationPairBranch) GetBefore() *OperationMetaBranch
func (*OperationPairBranch) ProtoMessage ¶
func (*OperationPairBranch) ProtoMessage()
func (*OperationPairBranch) ProtoReflect ¶
func (x *OperationPairBranch) ProtoReflect() protoreflect.Message
func (*OperationPairBranch) Reset ¶
func (x *OperationPairBranch) Reset()
func (*OperationPairBranch) String ¶
func (x *OperationPairBranch) String() string
type OperationSpecialInfo ¶
type OperationSpecialInfo struct {
// repeated OperationSpecialData specialDatas = 111;
//
// Types that are assignable to Value:
// *OperationSpecialInfo_Deposit
// *OperationSpecialInfo_Withdraw
// *OperationSpecialInfo_Transfer
// *OperationSpecialInfo_TransferToNew
// *OperationSpecialInfo_ProxyExit
// *OperationSpecialInfo_SetPubKey
// *OperationSpecialInfo_FullExit
// *OperationSpecialInfo_Swap
// *OperationSpecialInfo_ContractToTree
// *OperationSpecialInfo_Contract2TreeNew
// *OperationSpecialInfo_TreeToContract
// *OperationSpecialInfo_Fee
// *OperationSpecialInfo_MintNFT
// *OperationSpecialInfo_WithdrawNFT
// *OperationSpecialInfo_TransferNFT
Value isOperationSpecialInfo_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
func (*OperationSpecialInfo) Descriptor
deprecated
func (*OperationSpecialInfo) Descriptor() ([]byte, []int)
Deprecated: Use OperationSpecialInfo.ProtoReflect.Descriptor instead.
func (*OperationSpecialInfo) GetContract2TreeNew ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetContract2TreeNew() *ZkContractToTreeNewWitnessInfo
func (*OperationSpecialInfo) GetContractToTree ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetContractToTree() *ZkContractToTreeWitnessInfo
func (*OperationSpecialInfo) GetDeposit ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetDeposit() *ZkDepositWitnessInfo
func (*OperationSpecialInfo) GetFee ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetFee() *ZkFeeWitnessInfo
func (*OperationSpecialInfo) GetFullExit ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetFullExit() *ZkFullExitWitnessInfo
func (*OperationSpecialInfo) GetMintNFT ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetMintNFT() *ZkMintNFTWitnessInfo
func (*OperationSpecialInfo) GetProxyExit ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetProxyExit() *ZkProxyExitWitnessInfo
func (*OperationSpecialInfo) GetSetPubKey ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetSetPubKey() *ZkSetPubKeyWitnessInfo
func (*OperationSpecialInfo) GetSwap ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetSwap() *ZkSwapWitnessInfo
func (*OperationSpecialInfo) GetTransfer ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetTransfer() *ZkTransferWitnessInfo
func (*OperationSpecialInfo) GetTransferNFT ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetTransferNFT() *ZkTransferNFTWitnessInfo
func (*OperationSpecialInfo) GetTransferToNew ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetTransferToNew() *ZkTransferToNewWitnessInfo
func (*OperationSpecialInfo) GetTreeToContract ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetTreeToContract() *ZkTreeToContractWitnessInfo
func (*OperationSpecialInfo) GetValue ¶ added in v1.67.4
func (m *OperationSpecialInfo) GetValue() isOperationSpecialInfo_Value
func (*OperationSpecialInfo) GetWithdraw ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetWithdraw() *ZkWithdrawWitnessInfo
func (*OperationSpecialInfo) GetWithdrawNFT ¶ added in v1.67.4
func (x *OperationSpecialInfo) GetWithdrawNFT() *ZkWithdrawNFTWitnessInfo
func (*OperationSpecialInfo) ProtoMessage ¶
func (*OperationSpecialInfo) ProtoMessage()
func (*OperationSpecialInfo) ProtoReflect ¶
func (x *OperationSpecialInfo) ProtoReflect() protoreflect.Message
func (*OperationSpecialInfo) Reset ¶
func (x *OperationSpecialInfo) Reset()
func (*OperationSpecialInfo) String ¶
func (x *OperationSpecialInfo) String() string
type OperationSpecialInfo_Contract2TreeNew ¶ added in v1.67.4
type OperationSpecialInfo_Contract2TreeNew struct {
Contract2TreeNew *ZkContractToTreeNewWitnessInfo `protobuf:"bytes,10,opt,name=contract2TreeNew,proto3,oneof"`
}
type OperationSpecialInfo_ContractToTree ¶ added in v1.67.4
type OperationSpecialInfo_ContractToTree struct {
ContractToTree *ZkContractToTreeWitnessInfo `protobuf:"bytes,9,opt,name=contractToTree,proto3,oneof"`
}
type OperationSpecialInfo_Deposit ¶ added in v1.67.4
type OperationSpecialInfo_Deposit struct {
Deposit *ZkDepositWitnessInfo `protobuf:"bytes,1,opt,name=deposit,proto3,oneof"`
}
type OperationSpecialInfo_Fee ¶ added in v1.67.4
type OperationSpecialInfo_Fee struct {
Fee *ZkFeeWitnessInfo `protobuf:"bytes,12,opt,name=fee,proto3,oneof"` //fee action
}
type OperationSpecialInfo_FullExit ¶ added in v1.67.4
type OperationSpecialInfo_FullExit struct {
FullExit *ZkFullExitWitnessInfo `protobuf:"bytes,7,opt,name=fullExit,proto3,oneof"`
}
type OperationSpecialInfo_MintNFT ¶ added in v1.67.4
type OperationSpecialInfo_MintNFT struct {
MintNFT *ZkMintNFTWitnessInfo `protobuf:"bytes,13,opt,name=mintNFT,proto3,oneof"`
}
type OperationSpecialInfo_ProxyExit ¶ added in v1.67.4
type OperationSpecialInfo_ProxyExit struct {
ProxyExit *ZkProxyExitWitnessInfo `protobuf:"bytes,5,opt,name=proxyExit,proto3,oneof"`
}
type OperationSpecialInfo_SetPubKey ¶ added in v1.67.4
type OperationSpecialInfo_SetPubKey struct {
SetPubKey *ZkSetPubKeyWitnessInfo `protobuf:"bytes,6,opt,name=setPubKey,proto3,oneof"`
}
type OperationSpecialInfo_Swap ¶ added in v1.67.4
type OperationSpecialInfo_Swap struct {
Swap *ZkSwapWitnessInfo `protobuf:"bytes,8,opt,name=swap,proto3,oneof"`
}
type OperationSpecialInfo_Transfer ¶ added in v1.67.4
type OperationSpecialInfo_Transfer struct {
Transfer *ZkTransferWitnessInfo `protobuf:"bytes,3,opt,name=transfer,proto3,oneof"`
}
type OperationSpecialInfo_TransferNFT ¶ added in v1.67.4
type OperationSpecialInfo_TransferNFT struct {
TransferNFT *ZkTransferNFTWitnessInfo `protobuf:"bytes,15,opt,name=transferNFT,proto3,oneof"`
}
type OperationSpecialInfo_TransferToNew ¶ added in v1.67.4
type OperationSpecialInfo_TransferToNew struct {
TransferToNew *ZkTransferToNewWitnessInfo `protobuf:"bytes,4,opt,name=transferToNew,proto3,oneof"`
}
type OperationSpecialInfo_TreeToContract ¶ added in v1.67.4
type OperationSpecialInfo_TreeToContract struct {
TreeToContract *ZkTreeToContractWitnessInfo `protobuf:"bytes,11,opt,name=treeToContract,proto3,oneof"`
}
type OperationSpecialInfo_Withdraw ¶ added in v1.67.4
type OperationSpecialInfo_Withdraw struct {
Withdraw *ZkWithdrawWitnessInfo `protobuf:"bytes,2,opt,name=withdraw,proto3,oneof"`
}
type OperationSpecialInfo_WithdrawNFT ¶ added in v1.67.4
type OperationSpecialInfo_WithdrawNFT struct {
WithdrawNFT *ZkWithdrawNFTWitnessInfo `protobuf:"bytes,14,opt,name=withdrawNFT,proto3,oneof"`
}
type ReceiptCommitProof ¶
type ReceiptCommitProof struct {
Prev *CommitProofState `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current *CommitProofState `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptCommitProof) Descriptor
deprecated
func (*ReceiptCommitProof) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptCommitProof.ProtoReflect.Descriptor instead.
func (*ReceiptCommitProof) GetCurrent ¶
func (x *ReceiptCommitProof) GetCurrent() *CommitProofState
func (*ReceiptCommitProof) GetPrev ¶
func (x *ReceiptCommitProof) GetPrev() *CommitProofState
func (*ReceiptCommitProof) ProtoMessage ¶
func (*ReceiptCommitProof) ProtoMessage()
func (*ReceiptCommitProof) ProtoReflect ¶
func (x *ReceiptCommitProof) ProtoReflect() protoreflect.Message
func (*ReceiptCommitProof) Reset ¶
func (x *ReceiptCommitProof) Reset()
func (*ReceiptCommitProof) String ¶
func (x *ReceiptCommitProof) String() string
type ReceiptCommitProofRecord ¶ added in v1.67.4
type ReceiptCommitProofRecord struct {
Proof *CommitProofState `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptCommitProofRecord) Descriptor
deprecated
added in
v1.67.4
func (*ReceiptCommitProofRecord) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptCommitProofRecord.ProtoReflect.Descriptor instead.
func (*ReceiptCommitProofRecord) GetProof ¶ added in v1.67.4
func (x *ReceiptCommitProofRecord) GetProof() *CommitProofState
func (*ReceiptCommitProofRecord) ProtoMessage ¶ added in v1.67.4
func (*ReceiptCommitProofRecord) ProtoMessage()
func (*ReceiptCommitProofRecord) ProtoReflect ¶ added in v1.67.4
func (x *ReceiptCommitProofRecord) ProtoReflect() protoreflect.Message
func (*ReceiptCommitProofRecord) Reset ¶ added in v1.67.4
func (x *ReceiptCommitProofRecord) Reset()
func (*ReceiptCommitProofRecord) String ¶ added in v1.67.4
func (x *ReceiptCommitProofRecord) String() string
type ReceiptDexAccount ¶ added in v1.67.4
type ReceiptDexAccount struct {
Prev *DexAccount `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current *DexAccount `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptDexAccount) Descriptor
deprecated
added in
v1.67.4
func (*ReceiptDexAccount) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptDexAccount.ProtoReflect.Descriptor instead.
func (*ReceiptDexAccount) GetCurrent ¶ added in v1.67.4
func (x *ReceiptDexAccount) GetCurrent() *DexAccount
func (*ReceiptDexAccount) GetPrev ¶ added in v1.67.4
func (x *ReceiptDexAccount) GetPrev() *DexAccount
func (*ReceiptDexAccount) ProtoMessage ¶ added in v1.67.4
func (*ReceiptDexAccount) ProtoMessage()
func (*ReceiptDexAccount) ProtoReflect ¶ added in v1.67.4
func (x *ReceiptDexAccount) ProtoReflect() protoreflect.Message
func (*ReceiptDexAccount) Reset ¶ added in v1.67.4
func (x *ReceiptDexAccount) Reset()
func (*ReceiptDexAccount) String ¶ added in v1.67.4
func (x *ReceiptDexAccount) String() string
type ReceiptDexBind ¶ added in v1.67.4
type ReceiptDexBind struct {
//交易地址
ExchangeAddress string `protobuf:"bytes,1,opt,name=exchangeAddress,proto3" json:"exchangeAddress,omitempty"`
//委托地址
NewEntrustAddress string `protobuf:"bytes,2,opt,name=newEntrustAddress,proto3" json:"newEntrustAddress,omitempty"`
//委托地址
OldEntrustAddress string `protobuf:"bytes,3,opt,name=oldEntrustAddress,proto3" json:"oldEntrustAddress,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptDexBind) Descriptor
deprecated
added in
v1.67.4
func (*ReceiptDexBind) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptDexBind.ProtoReflect.Descriptor instead.
func (*ReceiptDexBind) GetExchangeAddress ¶ added in v1.67.4
func (x *ReceiptDexBind) GetExchangeAddress() string
func (*ReceiptDexBind) GetNewEntrustAddress ¶ added in v1.67.4
func (x *ReceiptDexBind) GetNewEntrustAddress() string
func (*ReceiptDexBind) GetOldEntrustAddress ¶ added in v1.67.4
func (x *ReceiptDexBind) GetOldEntrustAddress() string
func (*ReceiptDexBind) ProtoMessage ¶ added in v1.67.4
func (*ReceiptDexBind) ProtoMessage()
func (*ReceiptDexBind) ProtoReflect ¶ added in v1.67.4
func (x *ReceiptDexBind) ProtoReflect() protoreflect.Message
func (*ReceiptDexBind) Reset ¶ added in v1.67.4
func (x *ReceiptDexBind) Reset()
func (*ReceiptDexBind) String ¶ added in v1.67.4
func (x *ReceiptDexBind) String() string
type ReceiptEthPriorityQueueID ¶
type ReceiptEthPriorityQueueID struct {
Prev int64 `protobuf:"varint,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current int64 `protobuf:"varint,2,opt,name=current,proto3" json:"current,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptEthPriorityQueueID) Descriptor
deprecated
func (*ReceiptEthPriorityQueueID) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptEthPriorityQueueID.ProtoReflect.Descriptor instead.
func (*ReceiptEthPriorityQueueID) GetCurrent ¶
func (x *ReceiptEthPriorityQueueID) GetCurrent() int64
func (*ReceiptEthPriorityQueueID) GetPrev ¶
func (x *ReceiptEthPriorityQueueID) GetPrev() int64
func (*ReceiptEthPriorityQueueID) ProtoMessage ¶
func (*ReceiptEthPriorityQueueID) ProtoMessage()
func (*ReceiptEthPriorityQueueID) ProtoReflect ¶
func (x *ReceiptEthPriorityQueueID) ProtoReflect() protoreflect.Message
func (*ReceiptEthPriorityQueueID) Reset ¶
func (x *ReceiptEthPriorityQueueID) Reset()
func (*ReceiptEthPriorityQueueID) String ¶
func (x *ReceiptEthPriorityQueueID) String() string
type ReceiptExodusMode ¶ added in v1.67.4
type ReceiptExodusMode struct {
Prev int64 `protobuf:"varint,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current int64 `protobuf:"varint,2,opt,name=current,proto3" json:"current,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptExodusMode) Descriptor
deprecated
added in
v1.67.4
func (*ReceiptExodusMode) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptExodusMode.ProtoReflect.Descriptor instead.
func (*ReceiptExodusMode) GetCurrent ¶ added in v1.67.4
func (x *ReceiptExodusMode) GetCurrent() int64
func (*ReceiptExodusMode) GetPrev ¶ added in v1.67.4
func (x *ReceiptExodusMode) GetPrev() int64
func (*ReceiptExodusMode) ProtoMessage ¶ added in v1.67.4
func (*ReceiptExodusMode) ProtoMessage()
func (*ReceiptExodusMode) ProtoReflect ¶ added in v1.67.4
func (x *ReceiptExodusMode) ProtoReflect() protoreflect.Message
func (*ReceiptExodusMode) Reset ¶ added in v1.67.4
func (x *ReceiptExodusMode) Reset()
func (*ReceiptExodusMode) String ¶ added in v1.67.4
func (x *ReceiptExodusMode) String() string
type ReceiptSetFee ¶
type ReceiptSetFee struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
ActionTy int32 `protobuf:"varint,2,opt,name=actionTy,proto3" json:"actionTy,omitempty"`
PrevAmount string `protobuf:"bytes,3,opt,name=prevAmount,proto3" json:"prevAmount,omitempty"`
CurrentAmount string `protobuf:"bytes,4,opt,name=currentAmount,proto3" json:"currentAmount,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptSetFee) Descriptor
deprecated
func (*ReceiptSetFee) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptSetFee.ProtoReflect.Descriptor instead.
func (*ReceiptSetFee) GetActionTy ¶
func (x *ReceiptSetFee) GetActionTy() int32
func (*ReceiptSetFee) GetCurrentAmount ¶
func (x *ReceiptSetFee) GetCurrentAmount() string
func (*ReceiptSetFee) GetPrevAmount ¶
func (x *ReceiptSetFee) GetPrevAmount() string
func (*ReceiptSetFee) GetTokenId ¶
func (x *ReceiptSetFee) GetTokenId() uint64
func (*ReceiptSetFee) ProtoMessage ¶
func (*ReceiptSetFee) ProtoMessage()
func (*ReceiptSetFee) ProtoReflect ¶
func (x *ReceiptSetFee) ProtoReflect() protoreflect.Message
func (*ReceiptSetFee) Reset ¶
func (x *ReceiptSetFee) Reset()
func (*ReceiptSetFee) String ¶
func (x *ReceiptSetFee) String() string
type ReceiptSetTokenSymbol ¶ added in v1.67.4
type ReceiptSetTokenSymbol struct {
Pre *ZkTokenSymbol `protobuf:"bytes,1,opt,name=pre,proto3" json:"pre,omitempty"`
Cur *ZkTokenSymbol `protobuf:"bytes,2,opt,name=cur,proto3" json:"cur,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptSetTokenSymbol) Descriptor
deprecated
added in
v1.67.4
func (*ReceiptSetTokenSymbol) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptSetTokenSymbol.ProtoReflect.Descriptor instead.
func (*ReceiptSetTokenSymbol) GetCur ¶ added in v1.67.4
func (x *ReceiptSetTokenSymbol) GetCur() *ZkTokenSymbol
func (*ReceiptSetTokenSymbol) GetPre ¶ added in v1.67.4
func (x *ReceiptSetTokenSymbol) GetPre() *ZkTokenSymbol
func (*ReceiptSetTokenSymbol) ProtoMessage ¶ added in v1.67.4
func (*ReceiptSetTokenSymbol) ProtoMessage()
func (*ReceiptSetTokenSymbol) ProtoReflect ¶ added in v1.67.4
func (x *ReceiptSetTokenSymbol) ProtoReflect() protoreflect.Message
func (*ReceiptSetTokenSymbol) Reset ¶ added in v1.67.4
func (x *ReceiptSetTokenSymbol) Reset()
func (*ReceiptSetTokenSymbol) String ¶ added in v1.67.4
func (x *ReceiptSetTokenSymbol) String() string
type ReceiptSetVerifier ¶
type ReceiptSetVerifier struct {
Prev *ZkVerifier `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current *ZkVerifier `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptSetVerifier) Descriptor
deprecated
func (*ReceiptSetVerifier) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptSetVerifier.ProtoReflect.Descriptor instead.
func (*ReceiptSetVerifier) GetCurrent ¶
func (x *ReceiptSetVerifier) GetCurrent() *ZkVerifier
func (*ReceiptSetVerifier) GetPrev ¶
func (x *ReceiptSetVerifier) GetPrev() *ZkVerifier
func (*ReceiptSetVerifier) ProtoMessage ¶
func (*ReceiptSetVerifier) ProtoMessage()
func (*ReceiptSetVerifier) ProtoReflect ¶
func (x *ReceiptSetVerifier) ProtoReflect() protoreflect.Message
func (*ReceiptSetVerifier) Reset ¶
func (x *ReceiptSetVerifier) Reset()
func (*ReceiptSetVerifier) String ¶
func (x *ReceiptSetVerifier) String() string
type ReceiptSetVerifyKey ¶
type ReceiptSetVerifyKey struct {
Prev *ZkVerifyKey `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current *ZkVerifyKey `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptSetVerifyKey) Descriptor
deprecated
func (*ReceiptSetVerifyKey) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptSetVerifyKey.ProtoReflect.Descriptor instead.
func (*ReceiptSetVerifyKey) GetCurrent ¶
func (x *ReceiptSetVerifyKey) GetCurrent() *ZkVerifyKey
func (*ReceiptSetVerifyKey) GetPrev ¶
func (x *ReceiptSetVerifyKey) GetPrev() *ZkVerifyKey
func (*ReceiptSetVerifyKey) ProtoMessage ¶
func (*ReceiptSetVerifyKey) ProtoMessage()
func (*ReceiptSetVerifyKey) ProtoReflect ¶
func (x *ReceiptSetVerifyKey) ProtoReflect() protoreflect.Message
func (*ReceiptSetVerifyKey) Reset ¶
func (x *ReceiptSetVerifyKey) Reset()
func (*ReceiptSetVerifyKey) String ¶
func (x *ReceiptSetVerifyKey) String() string
type ReceiptSpotMatch ¶ added in v1.67.4
type ReceiptSpotMatch struct {
Order *SpotOrder `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
MatchOrders []*SpotOrder `protobuf:"bytes,2,rep,name=matchOrders,proto3" json:"matchOrders,omitempty"`
Index int64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
// contains filtered or unexported fields
}
exchange执行票据日志
func (*ReceiptSpotMatch) Descriptor
deprecated
added in
v1.67.4
func (*ReceiptSpotMatch) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptSpotMatch.ProtoReflect.Descriptor instead.
func (*ReceiptSpotMatch) GetIndex ¶ added in v1.67.4
func (x *ReceiptSpotMatch) GetIndex() int64
func (*ReceiptSpotMatch) GetMatchOrders ¶ added in v1.67.4
func (x *ReceiptSpotMatch) GetMatchOrders() []*SpotOrder
func (*ReceiptSpotMatch) GetOrder ¶ added in v1.67.4
func (x *ReceiptSpotMatch) GetOrder() *SpotOrder
func (*ReceiptSpotMatch) ProtoMessage ¶ added in v1.67.4
func (*ReceiptSpotMatch) ProtoMessage()
func (*ReceiptSpotMatch) ProtoReflect ¶ added in v1.67.4
func (x *ReceiptSpotMatch) ProtoReflect() protoreflect.Message
func (*ReceiptSpotMatch) Reset ¶ added in v1.67.4
func (x *ReceiptSpotMatch) Reset()
func (*ReceiptSpotMatch) String ¶ added in v1.67.4
func (x *ReceiptSpotMatch) String() string
type ReceiptSpotTrade ¶ added in v1.67.4
type ReceiptSpotTrade struct {
Match *MatchInfo `protobuf:"bytes,1,opt,name=Match,proto3" json:"Match,omitempty"`
Prev *TradeAccounts `protobuf:"bytes,2,opt,name=prev,proto3" json:"prev,omitempty"`
Current *TradeAccounts `protobuf:"bytes,3,opt,name=current,proto3" json:"current,omitempty"`
// 加入zk order, 在电路验证需要
MakerOrder *ZkOrder `protobuf:"bytes,4,opt,name=makerOrder,proto3" json:"makerOrder,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptSpotTrade) Descriptor
deprecated
added in
v1.67.4
func (*ReceiptSpotTrade) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptSpotTrade.ProtoReflect.Descriptor instead.
func (*ReceiptSpotTrade) GetCurrent ¶ added in v1.67.4
func (x *ReceiptSpotTrade) GetCurrent() *TradeAccounts
func (*ReceiptSpotTrade) GetMakerOrder ¶ added in v1.67.4
func (x *ReceiptSpotTrade) GetMakerOrder() *ZkOrder
func (*ReceiptSpotTrade) GetMatch ¶ added in v1.67.4
func (x *ReceiptSpotTrade) GetMatch() *MatchInfo
func (*ReceiptSpotTrade) GetPrev ¶ added in v1.67.4
func (x *ReceiptSpotTrade) GetPrev() *TradeAccounts
func (*ReceiptSpotTrade) ProtoMessage ¶ added in v1.67.4
func (*ReceiptSpotTrade) ProtoMessage()
func (*ReceiptSpotTrade) ProtoReflect ¶ added in v1.67.4
func (x *ReceiptSpotTrade) ProtoReflect() protoreflect.Message
func (*ReceiptSpotTrade) Reset ¶ added in v1.67.4
func (x *ReceiptSpotTrade) Reset()
func (*ReceiptSpotTrade) String ¶ added in v1.67.4
func (x *ReceiptSpotTrade) String() string
type RelayerOperators ¶
type RelayerOperators struct {
Operators []string `protobuf:"bytes,1,rep,name=operators,proto3" json:"operators,omitempty"`
// contains filtered or unexported fields
}
zk relayer operators
func (*RelayerOperators) Descriptor
deprecated
func (*RelayerOperators) Descriptor() ([]byte, []int)
Deprecated: Use RelayerOperators.ProtoReflect.Descriptor instead.
func (*RelayerOperators) GetOperators ¶
func (x *RelayerOperators) GetOperators() []string
func (*RelayerOperators) ProtoMessage ¶
func (*RelayerOperators) ProtoMessage()
func (*RelayerOperators) ProtoReflect ¶
func (x *RelayerOperators) ProtoReflect() protoreflect.Message
func (*RelayerOperators) Reset ¶
func (x *RelayerOperators) Reset()
func (*RelayerOperators) String ¶
func (x *RelayerOperators) String() string
type RootInfo ¶
type RootInfo struct {
RootHash string `protobuf:"bytes,1,opt,name=rootHash,proto3" json:"rootHash,omitempty"` //归档Merkle Tree的根hash
Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` //归档的高度
StartIndex uint64 `protobuf:"varint,3,opt,name=startIndex,proto3" json:"startIndex,omitempty"` //开始的全局index
// contains filtered or unexported fields
}
func (*RootInfo) Descriptor
deprecated
func (*RootInfo) GetRootHash ¶
func (*RootInfo) GetStartIndex ¶
func (*RootInfo) ProtoMessage ¶
func (*RootInfo) ProtoMessage()
func (*RootInfo) ProtoReflect ¶
func (x *RootInfo) ProtoReflect() protoreflect.Message
type SiblingPath ¶
type SiblingPath struct {
Path []string `protobuf:"bytes,1,rep,name=path,proto3" json:"path,omitempty"`
Helper []string `protobuf:"bytes,2,rep,name=helper,proto3" json:"helper,omitempty"`
// contains filtered or unexported fields
}
func (*SiblingPath) Descriptor
deprecated
func (*SiblingPath) Descriptor() ([]byte, []int)
Deprecated: Use SiblingPath.ProtoReflect.Descriptor instead.
func (*SiblingPath) GetHelper ¶
func (x *SiblingPath) GetHelper() []string
func (*SiblingPath) GetPath ¶
func (x *SiblingPath) GetPath() []string
func (*SiblingPath) ProtoMessage ¶
func (*SiblingPath) ProtoMessage()
func (*SiblingPath) ProtoReflect ¶
func (x *SiblingPath) ProtoReflect() protoreflect.Message
func (*SiblingPath) Reset ¶
func (x *SiblingPath) Reset()
func (*SiblingPath) String ¶
func (x *SiblingPath) String() string
type SpotAction ¶ added in v1.67.4
type SpotAction struct {
// Types that are assignable to Value:
// *SpotAction_LimitOrder
// *SpotAction_MarketOrder
// *SpotAction_RevokeOrder
// *SpotAction_ExchangeBind
// *SpotAction_EntrustOrder
// *SpotAction_EntrustRevokeOrder
Value isSpotAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,6,opt,name=ty,proto3" json:"ty,omitempty"`
// contains filtered or unexported fields
}
func (*SpotAction) Descriptor
deprecated
added in
v1.67.4
func (*SpotAction) Descriptor() ([]byte, []int)
Deprecated: Use SpotAction.ProtoReflect.Descriptor instead.
func (*SpotAction) GetEntrustOrder ¶ added in v1.67.4
func (x *SpotAction) GetEntrustOrder() *SpotEntrustOrder
func (*SpotAction) GetEntrustRevokeOrder ¶ added in v1.67.4
func (x *SpotAction) GetEntrustRevokeOrder() *SpotEntrustRevokeOrder
func (*SpotAction) GetExchangeBind ¶ added in v1.67.4
func (x *SpotAction) GetExchangeBind() *SpotExchangeBind
func (*SpotAction) GetLimitOrder ¶ added in v1.67.4
func (x *SpotAction) GetLimitOrder() *SpotLimitOrder
func (*SpotAction) GetMarketOrder ¶ added in v1.67.4
func (x *SpotAction) GetMarketOrder() *SpotMarketOrder
func (*SpotAction) GetRevokeOrder ¶ added in v1.67.4
func (x *SpotAction) GetRevokeOrder() *SpotRevokeOrder
func (*SpotAction) GetTy ¶ added in v1.67.4
func (x *SpotAction) GetTy() int32
func (*SpotAction) GetValue ¶ added in v1.67.4
func (m *SpotAction) GetValue() isSpotAction_Value
func (*SpotAction) ProtoMessage ¶ added in v1.67.4
func (*SpotAction) ProtoMessage()
func (*SpotAction) ProtoReflect ¶ added in v1.67.4
func (x *SpotAction) ProtoReflect() protoreflect.Message
func (*SpotAction) Reset ¶ added in v1.67.4
func (x *SpotAction) Reset()
func (*SpotAction) String ¶ added in v1.67.4
func (x *SpotAction) String() string
type SpotAction_EntrustOrder ¶ added in v1.67.4
type SpotAction_EntrustOrder struct {
EntrustOrder *SpotEntrustOrder `protobuf:"bytes,5,opt,name=entrustOrder,proto3,oneof"`
}
type SpotAction_EntrustRevokeOrder ¶ added in v1.67.4
type SpotAction_EntrustRevokeOrder struct {
EntrustRevokeOrder *SpotEntrustRevokeOrder `protobuf:"bytes,7,opt,name=entrustRevokeOrder,proto3,oneof"`
}
type SpotAction_ExchangeBind ¶ added in v1.67.4
type SpotAction_ExchangeBind struct {
ExchangeBind *SpotExchangeBind `protobuf:"bytes,4,opt,name=exchangeBind,proto3,oneof"`
}
type SpotAction_LimitOrder ¶ added in v1.67.4
type SpotAction_LimitOrder struct {
LimitOrder *SpotLimitOrder `protobuf:"bytes,1,opt,name=limitOrder,proto3,oneof"`
}
type SpotAction_MarketOrder ¶ added in v1.67.4
type SpotAction_MarketOrder struct {
MarketOrder *SpotMarketOrder `protobuf:"bytes,2,opt,name=marketOrder,proto3,oneof"`
}
type SpotAction_RevokeOrder ¶ added in v1.67.4
type SpotAction_RevokeOrder struct {
RevokeOrder *SpotRevokeOrder `protobuf:"bytes,3,opt,name=revokeOrder,proto3,oneof"`
}
type SpotAssetLimitOrder ¶ added in v1.67.4
type SpotAssetLimitOrder struct {
//交易对
LeftAsset *ZkAsset `protobuf:"bytes,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
//交易对
RightAsset *ZkAsset `protobuf:"bytes,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
//价格
Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
//总量
Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
//操作, 1为买,2为卖
Op int32 `protobuf:"varint,5,opt,name=op,proto3" json:"op,omitempty"`
Order *ZkOrder `protobuf:"bytes,6,opt,name=order,proto3" json:"order,omitempty"`
// contains filtered or unexported fields
}
限价订单
func (*SpotAssetLimitOrder) Descriptor
deprecated
added in
v1.67.4
func (*SpotAssetLimitOrder) Descriptor() ([]byte, []int)
Deprecated: Use SpotAssetLimitOrder.ProtoReflect.Descriptor instead.
func (*SpotAssetLimitOrder) GetAmount ¶ added in v1.67.4
func (x *SpotAssetLimitOrder) GetAmount() int64
func (*SpotAssetLimitOrder) GetLeftAsset ¶ added in v1.67.4
func (x *SpotAssetLimitOrder) GetLeftAsset() *ZkAsset
func (*SpotAssetLimitOrder) GetOp ¶ added in v1.67.4
func (x *SpotAssetLimitOrder) GetOp() int32
func (*SpotAssetLimitOrder) GetOrder ¶ added in v1.67.4
func (x *SpotAssetLimitOrder) GetOrder() *ZkOrder
func (*SpotAssetLimitOrder) GetPrice ¶ added in v1.67.4
func (x *SpotAssetLimitOrder) GetPrice() int64
func (*SpotAssetLimitOrder) GetRightAsset ¶ added in v1.67.4
func (x *SpotAssetLimitOrder) GetRightAsset() *ZkAsset
func (*SpotAssetLimitOrder) ProtoMessage ¶ added in v1.67.4
func (*SpotAssetLimitOrder) ProtoMessage()
func (*SpotAssetLimitOrder) ProtoReflect ¶ added in v1.67.4
func (x *SpotAssetLimitOrder) ProtoReflect() protoreflect.Message
func (*SpotAssetLimitOrder) Reset ¶ added in v1.67.4
func (x *SpotAssetLimitOrder) Reset()
func (*SpotAssetLimitOrder) String ¶ added in v1.67.4
func (x *SpotAssetLimitOrder) String() string
type SpotEntrustOrder ¶ added in v1.67.4
type SpotEntrustOrder struct {
//交易对
LeftAsset uint64 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
//交易对
RightAsset uint64 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
//价格
Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
//总量
Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
//操作, 1为买,2为卖
Op int32 `protobuf:"varint,5,opt,name=op,proto3" json:"op,omitempty"`
//交易地址
Addr string `protobuf:"bytes,6,opt,name=addr,proto3" json:"addr,omitempty"`
Order *ZkOrder `protobuf:"bytes,7,opt,name=order,proto3" json:"order,omitempty"`
// contains filtered or unexported fields
}
委托限价订单
func (*SpotEntrustOrder) Descriptor
deprecated
added in
v1.67.4
func (*SpotEntrustOrder) Descriptor() ([]byte, []int)
Deprecated: Use SpotEntrustOrder.ProtoReflect.Descriptor instead.
func (*SpotEntrustOrder) GetAddr ¶ added in v1.67.4
func (x *SpotEntrustOrder) GetAddr() string
func (*SpotEntrustOrder) GetAmount ¶ added in v1.67.4
func (x *SpotEntrustOrder) GetAmount() int64
func (*SpotEntrustOrder) GetLeftAsset ¶ added in v1.67.4
func (x *SpotEntrustOrder) GetLeftAsset() uint64
func (*SpotEntrustOrder) GetOp ¶ added in v1.67.4
func (x *SpotEntrustOrder) GetOp() int32
func (*SpotEntrustOrder) GetOrder ¶ added in v1.67.4
func (x *SpotEntrustOrder) GetOrder() *ZkOrder
func (*SpotEntrustOrder) GetPrice ¶ added in v1.67.4
func (x *SpotEntrustOrder) GetPrice() int64
func (*SpotEntrustOrder) GetRightAsset ¶ added in v1.67.4
func (x *SpotEntrustOrder) GetRightAsset() uint64
func (*SpotEntrustOrder) ProtoMessage ¶ added in v1.67.4
func (*SpotEntrustOrder) ProtoMessage()
func (*SpotEntrustOrder) ProtoReflect ¶ added in v1.67.4
func (x *SpotEntrustOrder) ProtoReflect() protoreflect.Message
func (*SpotEntrustOrder) Reset ¶ added in v1.67.4
func (x *SpotEntrustOrder) Reset()
func (*SpotEntrustOrder) String ¶ added in v1.67.4
func (x *SpotEntrustOrder) String() string
type SpotEntrustRevokeOrder ¶ added in v1.67.4
type SpotEntrustRevokeOrder struct {
//订单号
OrderID int64 `protobuf:"varint,1,opt,name=orderID,proto3" json:"orderID,omitempty"`
//交易地址
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
// contains filtered or unexported fields
}
委托撤回订单
func (*SpotEntrustRevokeOrder) Descriptor
deprecated
added in
v1.67.4
func (*SpotEntrustRevokeOrder) Descriptor() ([]byte, []int)
Deprecated: Use SpotEntrustRevokeOrder.ProtoReflect.Descriptor instead.
func (*SpotEntrustRevokeOrder) GetAddr ¶ added in v1.67.4
func (x *SpotEntrustRevokeOrder) GetAddr() string
func (*SpotEntrustRevokeOrder) GetOrderID ¶ added in v1.67.4
func (x *SpotEntrustRevokeOrder) GetOrderID() int64
func (*SpotEntrustRevokeOrder) ProtoMessage ¶ added in v1.67.4
func (*SpotEntrustRevokeOrder) ProtoMessage()
func (*SpotEntrustRevokeOrder) ProtoReflect ¶ added in v1.67.4
func (x *SpotEntrustRevokeOrder) ProtoReflect() protoreflect.Message
func (*SpotEntrustRevokeOrder) Reset ¶ added in v1.67.4
func (x *SpotEntrustRevokeOrder) Reset()
func (*SpotEntrustRevokeOrder) String ¶ added in v1.67.4
func (x *SpotEntrustRevokeOrder) String() string
type SpotExchangeBind ¶ added in v1.67.4
type SpotExchangeBind struct {
//交易地址
ExchangeAddress string `protobuf:"bytes,1,opt,name=exchangeAddress,proto3" json:"exchangeAddress,omitempty"`
//委托地址
EntrustAddress string `protobuf:"bytes,2,opt,name=entrustAddress,proto3" json:"entrustAddress,omitempty"`
// contains filtered or unexported fields
}
func (*SpotExchangeBind) Descriptor
deprecated
added in
v1.67.4
func (*SpotExchangeBind) Descriptor() ([]byte, []int)
Deprecated: Use SpotExchangeBind.ProtoReflect.Descriptor instead.
func (*SpotExchangeBind) GetEntrustAddress ¶ added in v1.67.4
func (x *SpotExchangeBind) GetEntrustAddress() string
func (*SpotExchangeBind) GetExchangeAddress ¶ added in v1.67.4
func (x *SpotExchangeBind) GetExchangeAddress() string
func (*SpotExchangeBind) ProtoMessage ¶ added in v1.67.4
func (*SpotExchangeBind) ProtoMessage()
func (*SpotExchangeBind) ProtoReflect ¶ added in v1.67.4
func (x *SpotExchangeBind) ProtoReflect() protoreflect.Message
func (*SpotExchangeBind) Reset ¶ added in v1.67.4
func (x *SpotExchangeBind) Reset()
func (*SpotExchangeBind) String ¶ added in v1.67.4
func (x *SpotExchangeBind) String() string
type SpotLimitOrder ¶ added in v1.67.4
type SpotLimitOrder struct {
//交易对
LeftAsset uint64 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
//交易对
RightAsset uint64 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
//价格
Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
//总量
Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
//操作, 1为买,2为卖
Op int32 `protobuf:"varint,5,opt,name=op,proto3" json:"op,omitempty"`
Order *ZkOrder `protobuf:"bytes,6,opt,name=order,proto3" json:"order,omitempty"`
// contains filtered or unexported fields
}
限价订单
func (*SpotLimitOrder) Descriptor
deprecated
added in
v1.67.4
func (*SpotLimitOrder) Descriptor() ([]byte, []int)
Deprecated: Use SpotLimitOrder.ProtoReflect.Descriptor instead.
func (*SpotLimitOrder) GetAmount ¶ added in v1.67.4
func (x *SpotLimitOrder) GetAmount() int64
func (*SpotLimitOrder) GetLeftAsset ¶ added in v1.67.4
func (x *SpotLimitOrder) GetLeftAsset() uint64
func (*SpotLimitOrder) GetOp ¶ added in v1.67.4
func (x *SpotLimitOrder) GetOp() int32
func (*SpotLimitOrder) GetOrder ¶ added in v1.67.4
func (x *SpotLimitOrder) GetOrder() *ZkOrder
func (*SpotLimitOrder) GetPrice ¶ added in v1.67.4
func (x *SpotLimitOrder) GetPrice() int64
func (*SpotLimitOrder) GetRightAsset ¶ added in v1.67.4
func (x *SpotLimitOrder) GetRightAsset() uint64
func (*SpotLimitOrder) ProtoMessage ¶ added in v1.67.4
func (*SpotLimitOrder) ProtoMessage()
func (*SpotLimitOrder) ProtoReflect ¶ added in v1.67.4
func (x *SpotLimitOrder) ProtoReflect() protoreflect.Message
func (*SpotLimitOrder) Reset ¶ added in v1.67.4
func (x *SpotLimitOrder) Reset()
func (*SpotLimitOrder) String ¶ added in v1.67.4
func (x *SpotLimitOrder) String() string
type SpotMarketDepth ¶ added in v1.67.4
type SpotMarketDepth struct {
//资产1
LeftAsset uint64 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
//资产2
RightAsset uint64 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
//价格
Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
//总量
Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
//操作, 1为买,2为卖
Op int32 `protobuf:"varint,5,opt,name=op,proto3" json:"op,omitempty"`
// contains filtered or unexported fields
}
市场深度
func (*SpotMarketDepth) Descriptor
deprecated
added in
v1.67.4
func (*SpotMarketDepth) Descriptor() ([]byte, []int)
Deprecated: Use SpotMarketDepth.ProtoReflect.Descriptor instead.
func (*SpotMarketDepth) GetAmount ¶ added in v1.67.4
func (x *SpotMarketDepth) GetAmount() int64
func (*SpotMarketDepth) GetLeftAsset ¶ added in v1.67.4
func (x *SpotMarketDepth) GetLeftAsset() uint64
func (*SpotMarketDepth) GetOp ¶ added in v1.67.4
func (x *SpotMarketDepth) GetOp() int32
func (*SpotMarketDepth) GetPrice ¶ added in v1.67.4
func (x *SpotMarketDepth) GetPrice() int64
func (*SpotMarketDepth) GetRightAsset ¶ added in v1.67.4
func (x *SpotMarketDepth) GetRightAsset() uint64
func (*SpotMarketDepth) ProtoMessage ¶ added in v1.67.4
func (*SpotMarketDepth) ProtoMessage()
func (*SpotMarketDepth) ProtoReflect ¶ added in v1.67.4
func (x *SpotMarketDepth) ProtoReflect() protoreflect.Message
func (*SpotMarketDepth) Reset ¶ added in v1.67.4
func (x *SpotMarketDepth) Reset()
func (*SpotMarketDepth) String ¶ added in v1.67.4
func (x *SpotMarketDepth) String() string
type SpotMarketDepthList ¶ added in v1.67.4
type SpotMarketDepthList struct {
List []*SpotMarketDepth `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
PrimaryKey string `protobuf:"bytes,2,opt,name=primaryKey,proto3" json:"primaryKey,omitempty"`
// contains filtered or unexported fields
}
查询接口返回的市场深度列表
func (*SpotMarketDepthList) Descriptor
deprecated
added in
v1.67.4
func (*SpotMarketDepthList) Descriptor() ([]byte, []int)
Deprecated: Use SpotMarketDepthList.ProtoReflect.Descriptor instead.
func (*SpotMarketDepthList) GetList ¶ added in v1.67.4
func (x *SpotMarketDepthList) GetList() []*SpotMarketDepth
func (*SpotMarketDepthList) GetPrimaryKey ¶ added in v1.67.4
func (x *SpotMarketDepthList) GetPrimaryKey() string
func (*SpotMarketDepthList) ProtoMessage ¶ added in v1.67.4
func (*SpotMarketDepthList) ProtoMessage()
func (*SpotMarketDepthList) ProtoReflect ¶ added in v1.67.4
func (x *SpotMarketDepthList) ProtoReflect() protoreflect.Message
func (*SpotMarketDepthList) Reset ¶ added in v1.67.4
func (x *SpotMarketDepthList) Reset()
func (*SpotMarketDepthList) String ¶ added in v1.67.4
func (x *SpotMarketDepthList) String() string
type SpotMarketOrder ¶ added in v1.67.4
type SpotMarketOrder struct {
//资产1
LeftAsset uint32 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
//资产2
RightAsset uint32 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
//总量
Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
//操作, 1为买,2为卖
Op int32 `protobuf:"varint,4,opt,name=op,proto3" json:"op,omitempty"`
// contains filtered or unexported fields
}
市价委托
func (*SpotMarketOrder) Descriptor
deprecated
added in
v1.67.4
func (*SpotMarketOrder) Descriptor() ([]byte, []int)
Deprecated: Use SpotMarketOrder.ProtoReflect.Descriptor instead.
func (*SpotMarketOrder) GetAmount ¶ added in v1.67.4
func (x *SpotMarketOrder) GetAmount() int64
func (*SpotMarketOrder) GetLeftAsset ¶ added in v1.67.4
func (x *SpotMarketOrder) GetLeftAsset() uint32
func (*SpotMarketOrder) GetOp ¶ added in v1.67.4
func (x *SpotMarketOrder) GetOp() int32
func (*SpotMarketOrder) GetRightAsset ¶ added in v1.67.4
func (x *SpotMarketOrder) GetRightAsset() uint32
func (*SpotMarketOrder) ProtoMessage ¶ added in v1.67.4
func (*SpotMarketOrder) ProtoMessage()
func (*SpotMarketOrder) ProtoReflect ¶ added in v1.67.4
func (x *SpotMarketOrder) ProtoReflect() protoreflect.Message
func (*SpotMarketOrder) Reset ¶ added in v1.67.4
func (x *SpotMarketOrder) Reset()
func (*SpotMarketOrder) String ¶ added in v1.67.4
func (x *SpotMarketOrder) String() string
type SpotNftOrder ¶ added in v1.67.4
type SpotNftOrder struct {
//交易对
LeftAsset uint64 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
//交易对
RightAsset uint64 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
//价格
Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
//总量
Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
//操作, 1为买,2为卖
Op int32 `protobuf:"varint,5,opt,name=op,proto3" json:"op,omitempty"`
Order *ZkOrder `protobuf:"bytes,6,opt,name=order,proto3" json:"order,omitempty"`
// contains filtered or unexported fields
}
使用挂单摘单模式, 先挂单
func (*SpotNftOrder) Descriptor
deprecated
added in
v1.67.4
func (*SpotNftOrder) Descriptor() ([]byte, []int)
Deprecated: Use SpotNftOrder.ProtoReflect.Descriptor instead.
func (*SpotNftOrder) GetAmount ¶ added in v1.67.4
func (x *SpotNftOrder) GetAmount() int64
func (*SpotNftOrder) GetLeftAsset ¶ added in v1.67.4
func (x *SpotNftOrder) GetLeftAsset() uint64
func (*SpotNftOrder) GetOp ¶ added in v1.67.4
func (x *SpotNftOrder) GetOp() int32
func (*SpotNftOrder) GetOrder ¶ added in v1.67.4
func (x *SpotNftOrder) GetOrder() *ZkOrder
func (*SpotNftOrder) GetPrice ¶ added in v1.67.4
func (x *SpotNftOrder) GetPrice() int64
func (*SpotNftOrder) GetRightAsset ¶ added in v1.67.4
func (x *SpotNftOrder) GetRightAsset() uint64
func (*SpotNftOrder) ProtoMessage ¶ added in v1.67.4
func (*SpotNftOrder) ProtoMessage()
func (*SpotNftOrder) ProtoReflect ¶ added in v1.67.4
func (x *SpotNftOrder) ProtoReflect() protoreflect.Message
func (*SpotNftOrder) Reset ¶ added in v1.67.4
func (x *SpotNftOrder) Reset()
func (*SpotNftOrder) String ¶ added in v1.67.4
func (x *SpotNftOrder) String() string
type SpotNftTakerOrder ¶ added in v1.67.4
type SpotNftTakerOrder struct {
//交易对
OrderID int64 `protobuf:"varint,1,opt,name=orderID,proto3" json:"orderID,omitempty"`
Order *ZkOrder `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
// contains filtered or unexported fields
}
使用挂单摘单模式, 后摘单
func (*SpotNftTakerOrder) Descriptor
deprecated
added in
v1.67.4
func (*SpotNftTakerOrder) Descriptor() ([]byte, []int)
Deprecated: Use SpotNftTakerOrder.ProtoReflect.Descriptor instead.
func (*SpotNftTakerOrder) GetOrder ¶ added in v1.67.4
func (x *SpotNftTakerOrder) GetOrder() *ZkOrder
func (*SpotNftTakerOrder) GetOrderID ¶ added in v1.67.4
func (x *SpotNftTakerOrder) GetOrderID() int64
func (*SpotNftTakerOrder) ProtoMessage ¶ added in v1.67.4
func (*SpotNftTakerOrder) ProtoMessage()
func (*SpotNftTakerOrder) ProtoReflect ¶ added in v1.67.4
func (x *SpotNftTakerOrder) ProtoReflect() protoreflect.Message
func (*SpotNftTakerOrder) Reset ¶ added in v1.67.4
func (x *SpotNftTakerOrder) Reset()
func (*SpotNftTakerOrder) String ¶ added in v1.67.4
func (x *SpotNftTakerOrder) String() string
type SpotOrder ¶ added in v1.67.4
type SpotOrder struct {
OrderID int64 `protobuf:"varint,1,opt,name=orderID,proto3" json:"orderID,omitempty"`
// Types that are assignable to Value:
// *SpotOrder_LimitOrder
// *SpotOrder_MarketOrder
// *SpotOrder_NftOrder
// *SpotOrder_NftTakerOrder
// *SpotOrder_AssetLimitOrder
Value isSpotOrder_Value `protobuf_oneof:"value"`
//挂单类型
Ty int32 `protobuf:"varint,4,opt,name=ty,proto3" json:"ty,omitempty"`
//已经成交的数量
Executed int64 `protobuf:"varint,5,opt,name=executed,proto3" json:"executed,omitempty"`
//成交均价
AVGPrice int64 `protobuf:"varint,6,opt,name=AVG_price,json=AVGPrice,proto3" json:"AVG_price,omitempty"`
//余额
Balance int64 `protobuf:"varint,7,opt,name=balance,proto3" json:"balance,omitempty"`
//状态,0 挂单中ordered, 1 完成completed, 2撤回 revoked
Status int32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"`
//用户地址
Addr string `protobuf:"bytes,9,opt,name=addr,proto3" json:"addr,omitempty"`
//更新时间
UpdateTime int64 `protobuf:"varint,10,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
//索引
Index int64 `protobuf:"varint,11,opt,name=index,proto3" json:"index,omitempty"`
//手续费率 (挂单)
Rate int32 `protobuf:"varint,12,opt,name=rate,proto3" json:"rate,omitempty"`
//手续费
DigestedFee int64 `protobuf:"varint,13,opt,name=digestedFee,proto3" json:"digestedFee,omitempty"`
// 主动成交手续费
TakerRate int32 `protobuf:"varint,14,opt,name=takerRate,proto3" json:"takerRate,omitempty"`
//挂单hash
Hash string `protobuf:"bytes,15,opt,name=hash,proto3" json:"hash,omitempty"`
//撤单hash
RevokeHash string `protobuf:"bytes,16,opt,name=revokeHash,proto3" json:"revokeHash,omitempty"`
//创建时间
CreateTime int64 `protobuf:"varint,17,opt,name=createTime,proto3" json:"createTime,omitempty"`
//委托地址
EntrustAddr string `protobuf:"bytes,18,opt,name=entrustAddr,proto3" json:"entrustAddr,omitempty"`
// frozen fee
FeeBalance int64 `protobuf:"varint,19,opt,name=feeBalance,proto3" json:"feeBalance,omitempty"`
// contains filtered or unexported fields
}
订单信息
func (*SpotOrder) Descriptor
deprecated
added in
v1.67.4
func (*SpotOrder) GetAVGPrice ¶ added in v1.67.4
func (*SpotOrder) GetAssetLimitOrder ¶ added in v1.67.4
func (x *SpotOrder) GetAssetLimitOrder() *SpotAssetLimitOrder
func (*SpotOrder) GetBalance ¶ added in v1.67.4
func (*SpotOrder) GetCreateTime ¶ added in v1.67.4
func (*SpotOrder) GetDigestedFee ¶ added in v1.67.4
func (*SpotOrder) GetEntrustAddr ¶ added in v1.67.4
func (*SpotOrder) GetExecuted ¶ added in v1.67.4
func (*SpotOrder) GetFeeBalance ¶ added in v1.67.4
func (*SpotOrder) GetLimitOrder ¶ added in v1.67.4
func (x *SpotOrder) GetLimitOrder() *SpotLimitOrder
func (*SpotOrder) GetMarketOrder ¶ added in v1.67.4
func (x *SpotOrder) GetMarketOrder() *SpotMarketOrder
func (*SpotOrder) GetNftOrder ¶ added in v1.67.4
func (x *SpotOrder) GetNftOrder() *SpotNftOrder
func (*SpotOrder) GetNftTakerOrder ¶ added in v1.67.4
func (x *SpotOrder) GetNftTakerOrder() *SpotNftTakerOrder
func (*SpotOrder) GetOrderID ¶ added in v1.67.4
func (*SpotOrder) GetRevokeHash ¶ added in v1.67.4
func (*SpotOrder) GetTakerRate ¶ added in v1.67.4
func (*SpotOrder) GetUpdateTime ¶ added in v1.67.4
func (*SpotOrder) ProtoMessage ¶ added in v1.67.4
func (*SpotOrder) ProtoMessage()
func (*SpotOrder) ProtoReflect ¶ added in v1.67.4
func (x *SpotOrder) ProtoReflect() protoreflect.Message
type SpotOrderList ¶ added in v1.67.4
type SpotOrderList struct {
List []*SpotOrder `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
PrimaryKey string `protobuf:"bytes,2,opt,name=primaryKey,proto3" json:"primaryKey,omitempty"`
// contains filtered or unexported fields
}
订单列表
func (*SpotOrderList) Descriptor
deprecated
added in
v1.67.4
func (*SpotOrderList) Descriptor() ([]byte, []int)
Deprecated: Use SpotOrderList.ProtoReflect.Descriptor instead.
func (*SpotOrderList) GetList ¶ added in v1.67.4
func (x *SpotOrderList) GetList() []*SpotOrder
func (*SpotOrderList) GetPrimaryKey ¶ added in v1.67.4
func (x *SpotOrderList) GetPrimaryKey() string
func (*SpotOrderList) ProtoMessage ¶ added in v1.67.4
func (*SpotOrderList) ProtoMessage()
func (*SpotOrderList) ProtoReflect ¶ added in v1.67.4
func (x *SpotOrderList) ProtoReflect() protoreflect.Message
func (*SpotOrderList) Reset ¶ added in v1.67.4
func (x *SpotOrderList) Reset()
func (*SpotOrderList) String ¶ added in v1.67.4
func (x *SpotOrderList) String() string
type SpotOrder_AssetLimitOrder ¶ added in v1.67.4
type SpotOrder_AssetLimitOrder struct {
AssetLimitOrder *SpotAssetLimitOrder `protobuf:"bytes,22,opt,name=assetLimitOrder,proto3,oneof"`
}
type SpotOrder_LimitOrder ¶ added in v1.67.4
type SpotOrder_LimitOrder struct {
LimitOrder *SpotLimitOrder `protobuf:"bytes,2,opt,name=limitOrder,proto3,oneof"`
}
type SpotOrder_MarketOrder ¶ added in v1.67.4
type SpotOrder_MarketOrder struct {
MarketOrder *SpotMarketOrder `protobuf:"bytes,3,opt,name=marketOrder,proto3,oneof"`
}
type SpotOrder_NftOrder ¶ added in v1.67.4
type SpotOrder_NftOrder struct {
NftOrder *SpotNftOrder `protobuf:"bytes,20,opt,name=nftOrder,proto3,oneof"`
}
type SpotOrder_NftTakerOrder ¶ added in v1.67.4
type SpotOrder_NftTakerOrder struct {
NftTakerOrder *SpotNftTakerOrder `protobuf:"bytes,21,opt,name=nftTakerOrder,proto3,oneof"`
}
type SpotQueryHistoryOrderList ¶ added in v1.67.4
type SpotQueryHistoryOrderList struct {
//资产1
LeftAsset uint64 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
//资产2
RightAsset uint64 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
// 索引值
PrimaryKey string `protobuf:"bytes,3,opt,name=primaryKey,proto3" json:"primaryKey,omitempty"`
//单页返回多少条记录,默认返回10条,为了系统安全最多单次只能返回20条
Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
// 0降序,1升序,默认降序
Direction int32 `protobuf:"varint,5,opt,name=direction,proto3" json:"direction,omitempty"`
// contains filtered or unexported fields
}
查询最新得成交信息,外部接口
func (*SpotQueryHistoryOrderList) Descriptor
deprecated
added in
v1.67.4
func (*SpotQueryHistoryOrderList) Descriptor() ([]byte, []int)
Deprecated: Use SpotQueryHistoryOrderList.ProtoReflect.Descriptor instead.
func (*SpotQueryHistoryOrderList) GetCount ¶ added in v1.67.4
func (x *SpotQueryHistoryOrderList) GetCount() int32
func (*SpotQueryHistoryOrderList) GetDirection ¶ added in v1.67.4
func (x *SpotQueryHistoryOrderList) GetDirection() int32
func (*SpotQueryHistoryOrderList) GetLeftAsset ¶ added in v1.67.4
func (x *SpotQueryHistoryOrderList) GetLeftAsset() uint64
func (*SpotQueryHistoryOrderList) GetPrimaryKey ¶ added in v1.67.4
func (x *SpotQueryHistoryOrderList) GetPrimaryKey() string
func (*SpotQueryHistoryOrderList) GetRightAsset ¶ added in v1.67.4
func (x *SpotQueryHistoryOrderList) GetRightAsset() uint64
func (*SpotQueryHistoryOrderList) ProtoMessage ¶ added in v1.67.4
func (*SpotQueryHistoryOrderList) ProtoMessage()
func (*SpotQueryHistoryOrderList) ProtoReflect ¶ added in v1.67.4
func (x *SpotQueryHistoryOrderList) ProtoReflect() protoreflect.Message
func (*SpotQueryHistoryOrderList) Reset ¶ added in v1.67.4
func (x *SpotQueryHistoryOrderList) Reset()
func (*SpotQueryHistoryOrderList) String ¶ added in v1.67.4
func (x *SpotQueryHistoryOrderList) String() string
type SpotQueryMarketDepth ¶ added in v1.67.4
type SpotQueryMarketDepth struct {
//资产1
LeftAsset uint64 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
//资产2
RightAsset uint64 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
//操作, 1为买,2为卖
Op int32 `protobuf:"varint,3,opt,name=op,proto3" json:"op,omitempty"`
// 这里用价格作为索引值
PrimaryKey string `protobuf:"bytes,4,opt,name=primaryKey,proto3" json:"primaryKey,omitempty"`
//单页返回多少条记录,默认返回10条,为了系统安全最多单次只能返回20条
Count int32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
查询接口
func (*SpotQueryMarketDepth) Descriptor
deprecated
added in
v1.67.4
func (*SpotQueryMarketDepth) Descriptor() ([]byte, []int)
Deprecated: Use SpotQueryMarketDepth.ProtoReflect.Descriptor instead.
func (*SpotQueryMarketDepth) GetCount ¶ added in v1.67.4
func (x *SpotQueryMarketDepth) GetCount() int32
func (*SpotQueryMarketDepth) GetLeftAsset ¶ added in v1.67.4
func (x *SpotQueryMarketDepth) GetLeftAsset() uint64
func (*SpotQueryMarketDepth) GetOp ¶ added in v1.67.4
func (x *SpotQueryMarketDepth) GetOp() int32
func (*SpotQueryMarketDepth) GetPrimaryKey ¶ added in v1.67.4
func (x *SpotQueryMarketDepth) GetPrimaryKey() string
func (*SpotQueryMarketDepth) GetRightAsset ¶ added in v1.67.4
func (x *SpotQueryMarketDepth) GetRightAsset() uint64
func (*SpotQueryMarketDepth) ProtoMessage ¶ added in v1.67.4
func (*SpotQueryMarketDepth) ProtoMessage()
func (*SpotQueryMarketDepth) ProtoReflect ¶ added in v1.67.4
func (x *SpotQueryMarketDepth) ProtoReflect() protoreflect.Message
func (*SpotQueryMarketDepth) Reset ¶ added in v1.67.4
func (x *SpotQueryMarketDepth) Reset()
func (*SpotQueryMarketDepth) String ¶ added in v1.67.4
func (x *SpotQueryMarketDepth) String() string
type SpotQueryOrder ¶ added in v1.67.4
type SpotQueryOrder struct {
OrderID int64 `protobuf:"varint,1,opt,name=orderID,proto3" json:"orderID,omitempty"`
// contains filtered or unexported fields
}
根据orderID去查询订单信息
func (*SpotQueryOrder) Descriptor
deprecated
added in
v1.67.4
func (*SpotQueryOrder) Descriptor() ([]byte, []int)
Deprecated: Use SpotQueryOrder.ProtoReflect.Descriptor instead.
func (*SpotQueryOrder) GetOrderID ¶ added in v1.67.4
func (x *SpotQueryOrder) GetOrderID() int64
func (*SpotQueryOrder) ProtoMessage ¶ added in v1.67.4
func (*SpotQueryOrder) ProtoMessage()
func (*SpotQueryOrder) ProtoReflect ¶ added in v1.67.4
func (x *SpotQueryOrder) ProtoReflect() protoreflect.Message
func (*SpotQueryOrder) Reset ¶ added in v1.67.4
func (x *SpotQueryOrder) Reset()
func (*SpotQueryOrder) String ¶ added in v1.67.4
func (x *SpotQueryOrder) String() string
type SpotQueryOrderList ¶ added in v1.67.4
type SpotQueryOrderList struct {
//挂单状态必填(默认是0,只查询ordered挂单中的)
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
//用户地址信息,必填
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
// 主键索引
PrimaryKey string `protobuf:"bytes,3,opt,name=primaryKey,proto3" json:"primaryKey,omitempty"`
//单页返回多少条记录,默认返回10条,为了系统安全最多单次只能返回20条
Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
// 0降序,1升序,默认降序
Direction int32 `protobuf:"varint,5,opt,name=direction,proto3" json:"direction,omitempty"`
// contains filtered or unexported fields
}
根据地址,状态查询用户自己的挂单信息
func (*SpotQueryOrderList) Descriptor
deprecated
added in
v1.67.4
func (*SpotQueryOrderList) Descriptor() ([]byte, []int)
Deprecated: Use SpotQueryOrderList.ProtoReflect.Descriptor instead.
func (*SpotQueryOrderList) GetAddress ¶ added in v1.67.4
func (x *SpotQueryOrderList) GetAddress() string
func (*SpotQueryOrderList) GetCount ¶ added in v1.67.4
func (x *SpotQueryOrderList) GetCount() int32
func (*SpotQueryOrderList) GetDirection ¶ added in v1.67.4
func (x *SpotQueryOrderList) GetDirection() int32
func (*SpotQueryOrderList) GetPrimaryKey ¶ added in v1.67.4
func (x *SpotQueryOrderList) GetPrimaryKey() string
func (*SpotQueryOrderList) GetStatus ¶ added in v1.67.4
func (x *SpotQueryOrderList) GetStatus() int32
func (*SpotQueryOrderList) ProtoMessage ¶ added in v1.67.4
func (*SpotQueryOrderList) ProtoMessage()
func (*SpotQueryOrderList) ProtoReflect ¶ added in v1.67.4
func (x *SpotQueryOrderList) ProtoReflect() protoreflect.Message
func (*SpotQueryOrderList) Reset ¶ added in v1.67.4
func (x *SpotQueryOrderList) Reset()
func (*SpotQueryOrderList) String ¶ added in v1.67.4
func (x *SpotQueryOrderList) String() string
type SpotRevokeOrder ¶ added in v1.67.4
type SpotRevokeOrder struct {
//订单号
OrderID int64 `protobuf:"varint,1,opt,name=orderID,proto3" json:"orderID,omitempty"`
// contains filtered or unexported fields
}
撤回订单
func (*SpotRevokeOrder) Descriptor
deprecated
added in
v1.67.4
func (*SpotRevokeOrder) Descriptor() ([]byte, []int)
Deprecated: Use SpotRevokeOrder.ProtoReflect.Descriptor instead.
func (*SpotRevokeOrder) GetOrderID ¶ added in v1.67.4
func (x *SpotRevokeOrder) GetOrderID() int64
func (*SpotRevokeOrder) ProtoMessage ¶ added in v1.67.4
func (*SpotRevokeOrder) ProtoMessage()
func (*SpotRevokeOrder) ProtoReflect ¶ added in v1.67.4
func (x *SpotRevokeOrder) ProtoReflect() protoreflect.Message
func (*SpotRevokeOrder) Reset ¶ added in v1.67.4
func (x *SpotRevokeOrder) Reset()
func (*SpotRevokeOrder) String ¶ added in v1.67.4
func (x *SpotRevokeOrder) String() string
type SubTree ¶
type SubTree struct {
Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
RootHash []byte `protobuf:"bytes,2,opt,name=rootHash,proto3" json:"rootHash,omitempty"` //子树的根hash
// contains filtered or unexported fields
}
func (*SubTree) Descriptor
deprecated
func (*SubTree) GetRootHash ¶
func (*SubTree) ProtoMessage ¶
func (*SubTree) ProtoMessage()
func (*SubTree) ProtoReflect ¶
func (x *SubTree) ProtoReflect() protoreflect.Message
type TokenBalance ¶
type TokenBalance struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Balance string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
// contains filtered or unexported fields
}
某个token的余额
func (*TokenBalance) Descriptor
deprecated
func (*TokenBalance) Descriptor() ([]byte, []int)
Deprecated: Use TokenBalance.ProtoReflect.Descriptor instead.
func (*TokenBalance) GetBalance ¶
func (x *TokenBalance) GetBalance() string
func (*TokenBalance) GetTokenId ¶
func (x *TokenBalance) GetTokenId() uint64
func (*TokenBalance) ProtoMessage ¶
func (*TokenBalance) ProtoMessage()
func (*TokenBalance) ProtoReflect ¶
func (x *TokenBalance) ProtoReflect() protoreflect.Message
func (*TokenBalance) Reset ¶
func (x *TokenBalance) Reset()
func (*TokenBalance) String ¶
func (x *TokenBalance) String() string
type TokenWitness ¶
type TokenWitness struct {
ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` //eth contract define token ID
Balance string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` //eth balance u128
Sibling *SiblingPath `protobuf:"bytes,3,opt,name=sibling,proto3" json:"sibling,omitempty"`
// contains filtered or unexported fields
}
func (*TokenWitness) Descriptor
deprecated
func (*TokenWitness) Descriptor() ([]byte, []int)
Deprecated: Use TokenWitness.ProtoReflect.Descriptor instead.
func (*TokenWitness) GetBalance ¶
func (x *TokenWitness) GetBalance() string
func (*TokenWitness) GetID ¶
func (x *TokenWitness) GetID() uint64
func (*TokenWitness) GetSibling ¶
func (x *TokenWitness) GetSibling() *SiblingPath
func (*TokenWitness) ProtoMessage ¶
func (*TokenWitness) ProtoMessage()
func (*TokenWitness) ProtoReflect ¶
func (x *TokenWitness) ProtoReflect() protoreflect.Message
func (*TokenWitness) Reset ¶
func (x *TokenWitness) Reset()
func (*TokenWitness) String ¶
func (x *TokenWitness) String() string
type Trade ¶ added in v1.67.4
type Trade struct {
Symbol string
PriceDigits int32
AmountDigits int32
Taker int32
Maker int32
MinFee int64
}
交易对配置
func (*Trade) GetAmountDigits ¶ added in v1.67.4
func (*Trade) GetPriceDigits ¶ added in v1.67.4
type TradeAccounts ¶ added in v1.67.4
type TradeAccounts struct {
Taker *DexAccount `protobuf:"bytes,1,opt,name=taker,proto3" json:"taker,omitempty"`
Maker *DexAccount `protobuf:"bytes,2,opt,name=maker,proto3" json:"maker,omitempty"`
Fee *DexAccount `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"`
// contains filtered or unexported fields
}
func (*TradeAccounts) Descriptor
deprecated
added in
v1.67.4
func (*TradeAccounts) Descriptor() ([]byte, []int)
Deprecated: Use TradeAccounts.ProtoReflect.Descriptor instead.
func (*TradeAccounts) GetFee ¶ added in v1.67.4
func (x *TradeAccounts) GetFee() *DexAccount
func (*TradeAccounts) GetMaker ¶ added in v1.67.4
func (x *TradeAccounts) GetMaker() *DexAccount
func (*TradeAccounts) GetTaker ¶ added in v1.67.4
func (x *TradeAccounts) GetTaker() *DexAccount
func (*TradeAccounts) ProtoMessage ¶ added in v1.67.4
func (*TradeAccounts) ProtoMessage()
func (*TradeAccounts) ProtoReflect ¶ added in v1.67.4
func (x *TradeAccounts) ProtoReflect() protoreflect.Message
func (*TradeAccounts) Reset ¶ added in v1.67.4
func (x *TradeAccounts) Reset()
func (*TradeAccounts) String ¶ added in v1.67.4
func (x *TradeAccounts) String() string
type UnimplementedZkspotServer ¶ added in v1.67.4
type UnimplementedZkspotServer struct {
}
UnimplementedZkspotServer can be embedded to have forward compatible implementations.
type UnimplementedZksyncServer ¶
type UnimplementedZksyncServer struct {
}
UnimplementedZksyncServer can be embedded to have forward compatible implementations.
type ZkAccountTreeProof ¶ added in v1.67.4
type ZkAccountTreeProof struct {
Account *HistoryLeaf `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Proof *MerkleTreeProof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
// contains filtered or unexported fields
}
func (*ZkAccountTreeProof) Descriptor
deprecated
added in
v1.67.4
func (*ZkAccountTreeProof) Descriptor() ([]byte, []int)
Deprecated: Use ZkAccountTreeProof.ProtoReflect.Descriptor instead.
func (*ZkAccountTreeProof) GetAccount ¶ added in v1.67.4
func (x *ZkAccountTreeProof) GetAccount() *HistoryLeaf
func (*ZkAccountTreeProof) GetProof ¶ added in v1.67.4
func (x *ZkAccountTreeProof) GetProof() *MerkleTreeProof
func (*ZkAccountTreeProof) ProtoMessage ¶ added in v1.67.4
func (*ZkAccountTreeProof) ProtoMessage()
func (*ZkAccountTreeProof) ProtoReflect ¶ added in v1.67.4
func (x *ZkAccountTreeProof) ProtoReflect() protoreflect.Message
func (*ZkAccountTreeProof) Reset ¶ added in v1.67.4
func (x *ZkAccountTreeProof) Reset()
func (*ZkAccountTreeProof) String ¶ added in v1.67.4
func (x *ZkAccountTreeProof) String() string
type ZkAsset ¶ added in v1.67.4
type ZkAsset struct {
Ty AssetType `protobuf:"varint,1,opt,name=ty,proto3,enum=types.AssetType" json:"ty,omitempty"`
// Types that are assignable to Value:
// *ZkAsset_ZkAssetid
// *ZkAsset_TokenAsset
// *ZkAsset_EvmNftID
Value isZkAsset_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
func (*ZkAsset) Descriptor
deprecated
added in
v1.67.4
func (*ZkAsset) GetEvmNftID ¶ added in v1.67.4
func (*ZkAsset) GetTokenAsset ¶ added in v1.67.4
func (x *ZkAsset) GetTokenAsset() *AssetToken
func (*ZkAsset) GetZkAssetid ¶ added in v1.67.4
func (*ZkAsset) ProtoMessage ¶ added in v1.67.4
func (*ZkAsset) ProtoMessage()
func (*ZkAsset) ProtoReflect ¶ added in v1.67.4
func (x *ZkAsset) ProtoReflect() protoreflect.Message
type ZkAsset_EvmNftID ¶ added in v1.67.4
type ZkAsset_EvmNftID struct {
// nft kind
EvmNftID uint64 `protobuf:"varint,4,opt,name=evmNftID,proto3,oneof"`
}
type ZkAsset_TokenAsset ¶ added in v1.67.4
type ZkAsset_TokenAsset struct {
// Token
TokenAsset *AssetToken `protobuf:"bytes,3,opt,name=tokenAsset,proto3,oneof"`
}
type ZkAsset_ZkAssetid ¶ added in v1.67.4
type ZkAsset_ZkAssetid struct {
// L1Erc20, zkNft
ZkAssetid uint64 `protobuf:"varint,2,opt,name=zkAssetid,proto3,oneof"`
}
type ZkChainTitle ¶ added in v1.67.4
type ZkChainTitle struct {
ChainTitleId uint64 `protobuf:"varint,1,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
ChainTitle string `protobuf:"bytes,2,opt,name=chainTitle,proto3" json:"chainTitle,omitempty"`
// contains filtered or unexported fields
}
func (*ZkChainTitle) Descriptor
deprecated
added in
v1.67.4
func (*ZkChainTitle) Descriptor() ([]byte, []int)
Deprecated: Use ZkChainTitle.ProtoReflect.Descriptor instead.
func (*ZkChainTitle) GetChainTitle ¶ added in v1.67.4
func (x *ZkChainTitle) GetChainTitle() string
func (*ZkChainTitle) GetChainTitleId ¶ added in v1.67.4
func (x *ZkChainTitle) GetChainTitleId() uint64
func (*ZkChainTitle) ProtoMessage ¶ added in v1.67.4
func (*ZkChainTitle) ProtoMessage()
func (*ZkChainTitle) ProtoReflect ¶ added in v1.67.4
func (x *ZkChainTitle) ProtoReflect() protoreflect.Message
func (*ZkChainTitle) Reset ¶ added in v1.67.4
func (x *ZkChainTitle) Reset()
func (*ZkChainTitle) String ¶ added in v1.67.4
func (x *ZkChainTitle) String() string
type ZkChainTitleList ¶ added in v1.67.4
type ZkChainTitleList struct {
Chains []*ZkChainTitle `protobuf:"bytes,1,rep,name=chains,proto3" json:"chains,omitempty"`
// contains filtered or unexported fields
}
func (*ZkChainTitleList) Descriptor
deprecated
added in
v1.67.4
func (*ZkChainTitleList) Descriptor() ([]byte, []int)
Deprecated: Use ZkChainTitleList.ProtoReflect.Descriptor instead.
func (*ZkChainTitleList) GetChains ¶ added in v1.67.4
func (x *ZkChainTitleList) GetChains() []*ZkChainTitle
func (*ZkChainTitleList) ProtoMessage ¶ added in v1.67.4
func (*ZkChainTitleList) ProtoMessage()
func (*ZkChainTitleList) ProtoReflect ¶ added in v1.67.4
func (x *ZkChainTitleList) ProtoReflect() protoreflect.Message
func (*ZkChainTitleList) Reset ¶ added in v1.67.4
func (x *ZkChainTitleList) Reset()
func (*ZkChainTitleList) String ¶ added in v1.67.4
func (x *ZkChainTitleList) String() string
type ZkCommitProof ¶
type ZkCommitProof struct {
BlockStart uint64 `protobuf:"varint,1,opt,name=blockStart,proto3" json:"blockStart,omitempty"`
IndexStart uint64 `protobuf:"varint,2,opt,name=indexStart,proto3" json:"indexStart,omitempty"`
BlockEnd uint64 `protobuf:"varint,3,opt,name=blockEnd,proto3" json:"blockEnd,omitempty"`
IndexEnd uint64 `protobuf:"varint,4,opt,name=indexEnd,proto3" json:"indexEnd,omitempty"`
OpIndex uint32 `protobuf:"varint,5,opt,name=opIndex,proto3" json:"opIndex,omitempty"`
OldTreeRoot string `protobuf:"bytes,6,opt,name=oldTreeRoot,proto3" json:"oldTreeRoot,omitempty"`
NewTreeRoot string `protobuf:"bytes,7,opt,name=newTreeRoot,proto3" json:"newTreeRoot,omitempty"`
//proof serialized public input
PublicInput string `protobuf:"bytes,8,opt,name=publicInput,proto3" json:"publicInput,omitempty"`
Proof string `protobuf:"bytes,9,opt,name=proof,proto3" json:"proof,omitempty"`
//all tx pub datas
PubDatas []string `protobuf:"bytes,10,rep,name=pubDatas,proto3" json:"pubDatas,omitempty"`
OnChainPubDatas []string `protobuf:"bytes,11,rep,name=onChainPubDatas,proto3" json:"onChainPubDatas,omitempty"`
ProofId uint64 `protobuf:"varint,12,opt,name=proofId,proto3" json:"proofId,omitempty"`
//包含onChainPubdata的proof排序
OnChainProofId uint64 `protobuf:"varint,13,opt,name=onChainProofId,proto3" json:"onChainProofId,omitempty"`
//commit时候的blockHeight,localdb会填充
CommitBlockHeight int64 `protobuf:"varint,14,opt,name=commitBlockHeight,proto3" json:"commitBlockHeight,omitempty"`
//proof属于的链id和title, id唯一,和proof绑定,title可重复
ChainTitleId uint64 `protobuf:"varint,15,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
ChainTitle string `protobuf:"bytes,16,opt,name=chainTitle,proto3" json:"chainTitle,omitempty"`
CfgFeeAddrs *ZkFeeAddrs `protobuf:"bytes,17,opt,name=cfgFeeAddrs,proto3" json:"cfgFeeAddrs,omitempty"`
// contains filtered or unexported fields
}
commit proof tx data
func (*ZkCommitProof) Descriptor
deprecated
func (*ZkCommitProof) Descriptor() ([]byte, []int)
Deprecated: Use ZkCommitProof.ProtoReflect.Descriptor instead.
func (*ZkCommitProof) GetBlockEnd ¶
func (x *ZkCommitProof) GetBlockEnd() uint64
func (*ZkCommitProof) GetBlockStart ¶
func (x *ZkCommitProof) GetBlockStart() uint64
func (*ZkCommitProof) GetCfgFeeAddrs ¶ added in v1.67.4
func (x *ZkCommitProof) GetCfgFeeAddrs() *ZkFeeAddrs
func (*ZkCommitProof) GetChainTitle ¶ added in v1.67.4
func (x *ZkCommitProof) GetChainTitle() string
func (*ZkCommitProof) GetChainTitleId ¶ added in v1.67.4
func (x *ZkCommitProof) GetChainTitleId() uint64
func (*ZkCommitProof) GetCommitBlockHeight ¶ added in v1.67.4
func (x *ZkCommitProof) GetCommitBlockHeight() int64
func (*ZkCommitProof) GetIndexEnd ¶
func (x *ZkCommitProof) GetIndexEnd() uint64
func (*ZkCommitProof) GetIndexStart ¶
func (x *ZkCommitProof) GetIndexStart() uint64
func (*ZkCommitProof) GetNewTreeRoot ¶
func (x *ZkCommitProof) GetNewTreeRoot() string
func (*ZkCommitProof) GetOldTreeRoot ¶
func (x *ZkCommitProof) GetOldTreeRoot() string
func (*ZkCommitProof) GetOnChainProofId ¶ added in v1.67.4
func (x *ZkCommitProof) GetOnChainProofId() uint64
func (*ZkCommitProof) GetOnChainPubDatas ¶ added in v1.67.4
func (x *ZkCommitProof) GetOnChainPubDatas() []string
func (*ZkCommitProof) GetOpIndex ¶
func (x *ZkCommitProof) GetOpIndex() uint32
func (*ZkCommitProof) GetProof ¶
func (x *ZkCommitProof) GetProof() string
func (*ZkCommitProof) GetProofId ¶
func (x *ZkCommitProof) GetProofId() uint64
func (*ZkCommitProof) GetPubDatas ¶
func (x *ZkCommitProof) GetPubDatas() []string
func (*ZkCommitProof) GetPublicInput ¶
func (x *ZkCommitProof) GetPublicInput() string
func (*ZkCommitProof) ProtoMessage ¶
func (*ZkCommitProof) ProtoMessage()
func (*ZkCommitProof) ProtoReflect ¶
func (x *ZkCommitProof) ProtoReflect() protoreflect.Message
func (*ZkCommitProof) Reset ¶
func (x *ZkCommitProof) Reset()
func (*ZkCommitProof) String ¶
func (x *ZkCommitProof) String() string
type ZkContractToTree ¶
type ZkContractToTree struct {
TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
ToAccountId uint64 `protobuf:"varint,3,opt,name=toAccountId,proto3" json:"toAccountId,omitempty"`
ToEthAddr string `protobuf:"bytes,4,opt,name=toEthAddr,proto3" json:"toEthAddr,omitempty"`
ToLayer2Addr string `protobuf:"bytes,5,opt,name=toLayer2Addr,proto3" json:"toLayer2Addr,omitempty"`
Signature *ZkSignature `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
FromExec string `protobuf:"bytes,7,opt,name=fromExec,proto3" json:"fromExec,omitempty"`
// contains filtered or unexported fields
}
从chain33合约提款到二层
func (*ZkContractToTree) Descriptor
deprecated
func (*ZkContractToTree) Descriptor() ([]byte, []int)
Deprecated: Use ZkContractToTree.ProtoReflect.Descriptor instead.
func (*ZkContractToTree) GetAmount ¶
func (x *ZkContractToTree) GetAmount() string
func (*ZkContractToTree) GetFromExec ¶ added in v1.67.4
func (x *ZkContractToTree) GetFromExec() string
func (*ZkContractToTree) GetSignature ¶
func (x *ZkContractToTree) GetSignature() *ZkSignature
func (*ZkContractToTree) GetToAccountId ¶ added in v1.67.4
func (x *ZkContractToTree) GetToAccountId() uint64
func (*ZkContractToTree) GetToEthAddr ¶ added in v1.67.4
func (x *ZkContractToTree) GetToEthAddr() string
func (*ZkContractToTree) GetToLayer2Addr ¶ added in v1.67.4
func (x *ZkContractToTree) GetToLayer2Addr() string
func (*ZkContractToTree) GetTokenSymbol ¶ added in v1.67.4
func (x *ZkContractToTree) GetTokenSymbol() string
func (*ZkContractToTree) ProtoMessage ¶
func (*ZkContractToTree) ProtoMessage()
func (*ZkContractToTree) ProtoReflect ¶
func (x *ZkContractToTree) ProtoReflect() protoreflect.Message
func (*ZkContractToTree) Reset ¶
func (x *ZkContractToTree) Reset()
func (*ZkContractToTree) String ¶
func (x *ZkContractToTree) String() string
type ZkContractToTreeNewWitnessInfo ¶ added in v1.67.4
type ZkContractToTreeNewWitnessInfo struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
// uint64 fromAcctId = 3;
ToAccountId uint64 `protobuf:"varint,4,opt,name=toAccountId,proto3" json:"toAccountId,omitempty"`
EthAddress string `protobuf:"bytes,5,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
Layer2Addr string `protobuf:"bytes,6,opt,name=layer2Addr,proto3" json:"layer2Addr,omitempty"`
Signature *ZkSignature `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
Fee *ZkFee `protobuf:"bytes,8,opt,name=fee,proto3" json:"fee,omitempty"`
// contains filtered or unexported fields
}
直接产生新的tree地址
func (*ZkContractToTreeNewWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkContractToTreeNewWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkContractToTreeNewWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkContractToTreeNewWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkContractToTreeNewWitnessInfo) GetAmount() string
func (*ZkContractToTreeNewWitnessInfo) GetEthAddress ¶ added in v1.67.4
func (x *ZkContractToTreeNewWitnessInfo) GetEthAddress() string
func (*ZkContractToTreeNewWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkContractToTreeNewWitnessInfo) GetFee() *ZkFee
func (*ZkContractToTreeNewWitnessInfo) GetLayer2Addr ¶ added in v1.67.4
func (x *ZkContractToTreeNewWitnessInfo) GetLayer2Addr() string
func (*ZkContractToTreeNewWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkContractToTreeNewWitnessInfo) GetSignature() *ZkSignature
func (*ZkContractToTreeNewWitnessInfo) GetToAccountId ¶ added in v1.67.4
func (x *ZkContractToTreeNewWitnessInfo) GetToAccountId() uint64
func (*ZkContractToTreeNewWitnessInfo) GetTokenId ¶ added in v1.67.4
func (x *ZkContractToTreeNewWitnessInfo) GetTokenId() uint64
func (*ZkContractToTreeNewWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkContractToTreeNewWitnessInfo) ProtoMessage()
func (*ZkContractToTreeNewWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkContractToTreeNewWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkContractToTreeNewWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkContractToTreeNewWitnessInfo) Reset()
func (*ZkContractToTreeNewWitnessInfo) String ¶ added in v1.67.4
func (x *ZkContractToTreeNewWitnessInfo) String() string
type ZkContractToTreeWitnessInfo ¶ added in v1.67.4
type ZkContractToTreeWitnessInfo struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
AccountId uint64 `protobuf:"varint,3,opt,name=accountId,proto3" json:"accountId,omitempty"`
Signature *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
Fee *ZkFee `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"`
// contains filtered or unexported fields
}
func (*ZkContractToTreeWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkContractToTreeWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkContractToTreeWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkContractToTreeWitnessInfo) GetAccountId ¶ added in v1.67.4
func (x *ZkContractToTreeWitnessInfo) GetAccountId() uint64
func (*ZkContractToTreeWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkContractToTreeWitnessInfo) GetAmount() string
func (*ZkContractToTreeWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkContractToTreeWitnessInfo) GetFee() *ZkFee
func (*ZkContractToTreeWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkContractToTreeWitnessInfo) GetSignature() *ZkSignature
func (*ZkContractToTreeWitnessInfo) GetTokenId ¶ added in v1.67.4
func (x *ZkContractToTreeWitnessInfo) GetTokenId() uint64
func (*ZkContractToTreeWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkContractToTreeWitnessInfo) ProtoMessage()
func (*ZkContractToTreeWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkContractToTreeWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkContractToTreeWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkContractToTreeWitnessInfo) Reset()
func (*ZkContractToTreeWitnessInfo) String ¶ added in v1.67.4
func (x *ZkContractToTreeWitnessInfo) String() string
type ZkDeposit ¶
type ZkDeposit struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
EthAddress string `protobuf:"bytes,3,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
Chain33Addr string `protobuf:"bytes,4,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"`
EthPriorityQueueId int64 `protobuf:"varint,5,opt,name=ethPriorityQueueId,proto3" json:"ethPriorityQueueId,omitempty"` //需要在合约保证id连续
Signature *ZkSignature `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkDeposit) Descriptor
deprecated
func (*ZkDeposit) GetChain33Addr ¶
func (*ZkDeposit) GetEthAddress ¶
func (*ZkDeposit) GetEthPriorityQueueId ¶
func (*ZkDeposit) GetSignature ¶
func (x *ZkDeposit) GetSignature() *ZkSignature
func (*ZkDeposit) GetTokenId ¶
func (*ZkDeposit) ProtoMessage ¶
func (*ZkDeposit) ProtoMessage()
func (*ZkDeposit) ProtoReflect ¶
func (x *ZkDeposit) ProtoReflect() protoreflect.Message
type ZkDepositWitnessInfo ¶ added in v1.67.4
type ZkDepositWitnessInfo struct {
AccountId uint64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
TokenId uint64 `protobuf:"varint,3,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
EthAddress string `protobuf:"bytes,5,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
Layer2Addr string `protobuf:"bytes,6,opt,name=layer2Addr,proto3" json:"layer2Addr,omitempty"`
Signature *ZkSignature `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkDepositWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkDepositWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkDepositWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkDepositWitnessInfo) GetAccountId ¶ added in v1.67.4
func (x *ZkDepositWitnessInfo) GetAccountId() uint64
func (*ZkDepositWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkDepositWitnessInfo) GetAmount() string
func (*ZkDepositWitnessInfo) GetEthAddress ¶ added in v1.67.4
func (x *ZkDepositWitnessInfo) GetEthAddress() string
func (*ZkDepositWitnessInfo) GetLayer2Addr ¶ added in v1.67.4
func (x *ZkDepositWitnessInfo) GetLayer2Addr() string
func (*ZkDepositWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkDepositWitnessInfo) GetSignature() *ZkSignature
func (*ZkDepositWitnessInfo) GetTokenId ¶ added in v1.67.4
func (x *ZkDepositWitnessInfo) GetTokenId() uint64
func (*ZkDepositWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkDepositWitnessInfo) ProtoMessage()
func (*ZkDepositWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkDepositWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkDepositWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkDepositWitnessInfo) Reset()
func (*ZkDepositWitnessInfo) String ¶ added in v1.67.4
func (x *ZkDepositWitnessInfo) String() string
type ZkExodusBatchProofReq ¶ added in v1.67.4
type ZkExodusBatchProofReq struct {
StartAccountId uint64 `protobuf:"varint,1,opt,name=startAccountId,proto3" json:"startAccountId,omitempty"`
EndAccountId uint64 `protobuf:"varint,2,opt,name=endAccountId,proto3" json:"endAccountId,omitempty"`
TokenId uint64 `protobuf:"varint,3,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
RootHash string `protobuf:"bytes,4,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
ChainTitleId uint64 `protobuf:"varint,5,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
// contains filtered or unexported fields
}
func (*ZkExodusBatchProofReq) Descriptor
deprecated
added in
v1.67.4
func (*ZkExodusBatchProofReq) Descriptor() ([]byte, []int)
Deprecated: Use ZkExodusBatchProofReq.ProtoReflect.Descriptor instead.
func (*ZkExodusBatchProofReq) GetChainTitleId ¶ added in v1.67.4
func (x *ZkExodusBatchProofReq) GetChainTitleId() uint64
func (*ZkExodusBatchProofReq) GetEndAccountId ¶ added in v1.67.4
func (x *ZkExodusBatchProofReq) GetEndAccountId() uint64
func (*ZkExodusBatchProofReq) GetRootHash ¶ added in v1.67.4
func (x *ZkExodusBatchProofReq) GetRootHash() string
func (*ZkExodusBatchProofReq) GetStartAccountId ¶ added in v1.67.4
func (x *ZkExodusBatchProofReq) GetStartAccountId() uint64
func (*ZkExodusBatchProofReq) GetTokenId ¶ added in v1.67.4
func (x *ZkExodusBatchProofReq) GetTokenId() uint64
func (*ZkExodusBatchProofReq) ProtoMessage ¶ added in v1.67.4
func (*ZkExodusBatchProofReq) ProtoMessage()
func (*ZkExodusBatchProofReq) ProtoReflect ¶ added in v1.67.4
func (x *ZkExodusBatchProofReq) ProtoReflect() protoreflect.Message
func (*ZkExodusBatchProofReq) Reset ¶ added in v1.67.4
func (x *ZkExodusBatchProofReq) Reset()
func (*ZkExodusBatchProofReq) String ¶ added in v1.67.4
func (x *ZkExodusBatchProofReq) String() string
type ZkExodusMode ¶ added in v1.67.4
type ZkExodusMode struct {
Mode uint32 `protobuf:"varint,1,opt,name=mode,proto3" json:"mode,omitempty"`
// contains filtered or unexported fields
}
func (*ZkExodusMode) Descriptor
deprecated
added in
v1.67.4
func (*ZkExodusMode) Descriptor() ([]byte, []int)
Deprecated: Use ZkExodusMode.ProtoReflect.Descriptor instead.
func (*ZkExodusMode) GetMode ¶ added in v1.67.4
func (x *ZkExodusMode) GetMode() uint32
func (*ZkExodusMode) ProtoMessage ¶ added in v1.67.4
func (*ZkExodusMode) ProtoMessage()
func (*ZkExodusMode) ProtoReflect ¶ added in v1.67.4
func (x *ZkExodusMode) ProtoReflect() protoreflect.Message
func (*ZkExodusMode) Reset ¶ added in v1.67.4
func (x *ZkExodusMode) Reset()
func (*ZkExodusMode) String ¶ added in v1.67.4
func (x *ZkExodusMode) String() string
type ZkFee ¶ added in v1.67.4
type ZkFee struct {
FromFee string `protobuf:"bytes,1,opt,name=fromFee,proto3" json:"fromFee,omitempty"`
ToFee string `protobuf:"bytes,2,opt,name=toFee,proto3" json:"toFee,omitempty"` //一般都从from账户收Fee,可能特殊需求也收To的Fee,比如swap可能需要
TokenId uint64 `protobuf:"varint,3,opt,name=tokenId,proto3" json:"tokenId,omitempty"` //默认是操作的币种,如果不同,则在此设置,比如NFT的交换
// contains filtered or unexported fields
}
func (*ZkFee) Descriptor
deprecated
added in
v1.67.4
func (*ZkFee) GetFromFee ¶ added in v1.67.4
func (*ZkFee) GetTokenId ¶ added in v1.67.4
func (*ZkFee) ProtoMessage ¶ added in v1.67.4
func (*ZkFee) ProtoMessage()
func (*ZkFee) ProtoReflect ¶ added in v1.67.4
func (x *ZkFee) ProtoReflect() protoreflect.Message
type ZkFeeAddrs ¶ added in v1.67.4
type ZkFeeAddrs struct {
EthFeeAddr string `protobuf:"bytes,1,opt,name=ethFeeAddr,proto3" json:"ethFeeAddr,omitempty"`
L2FeeAddr string `protobuf:"bytes,2,opt,name=l2FeeAddr,proto3" json:"l2FeeAddr,omitempty"`
// contains filtered or unexported fields
}
func (*ZkFeeAddrs) Descriptor
deprecated
added in
v1.67.4
func (*ZkFeeAddrs) Descriptor() ([]byte, []int)
Deprecated: Use ZkFeeAddrs.ProtoReflect.Descriptor instead.
func (*ZkFeeAddrs) GetEthFeeAddr ¶ added in v1.67.4
func (x *ZkFeeAddrs) GetEthFeeAddr() string
func (*ZkFeeAddrs) GetL2FeeAddr ¶ added in v1.67.4
func (x *ZkFeeAddrs) GetL2FeeAddr() string
func (*ZkFeeAddrs) ProtoMessage ¶ added in v1.67.4
func (*ZkFeeAddrs) ProtoMessage()
func (*ZkFeeAddrs) ProtoReflect ¶ added in v1.67.4
func (x *ZkFeeAddrs) ProtoReflect() protoreflect.Message
func (*ZkFeeAddrs) Reset ¶ added in v1.67.4
func (x *ZkFeeAddrs) Reset()
func (*ZkFeeAddrs) String ¶ added in v1.67.4
func (x *ZkFeeAddrs) String() string
type ZkFeeWitnessInfo ¶ added in v1.67.4
type ZkFeeWitnessInfo struct {
AccountId uint64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
TokenId uint64 `protobuf:"varint,2,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
Signature *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkFeeWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkFeeWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkFeeWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkFeeWitnessInfo) GetAccountId ¶ added in v1.67.4
func (x *ZkFeeWitnessInfo) GetAccountId() uint64
func (*ZkFeeWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkFeeWitnessInfo) GetAmount() string
func (*ZkFeeWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkFeeWitnessInfo) GetSignature() *ZkSignature
func (*ZkFeeWitnessInfo) GetTokenId ¶ added in v1.67.4
func (x *ZkFeeWitnessInfo) GetTokenId() uint64
func (*ZkFeeWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkFeeWitnessInfo) ProtoMessage()
func (*ZkFeeWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkFeeWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkFeeWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkFeeWitnessInfo) Reset()
func (*ZkFeeWitnessInfo) String ¶ added in v1.67.4
func (x *ZkFeeWitnessInfo) String() string
type ZkFetchProofList ¶ added in v1.67.4
type ZkFetchProofList struct {
ProofId uint64 `protobuf:"varint,1,opt,name=proofId,proto3" json:"proofId,omitempty"`
OnChainProofId uint64 `protobuf:"varint,2,opt,name=onChainProofId,proto3" json:"onChainProofId,omitempty"`
ReqOnChainProof bool `protobuf:"varint,3,opt,name=reqOnChainProof,proto3" json:"reqOnChainProof,omitempty"` //
ReqLatestProof bool `protobuf:"varint,4,opt,name=reqLatestProof,proto3" json:"reqLatestProof,omitempty"` //请求截止高度之前的最新的proof,适用于获取最新proof场景
EndHeight uint64 `protobuf:"varint,5,opt,name=endHeight,proto3" json:"endHeight,omitempty"` //截止高度
ChainTitleId uint64 `protobuf:"varint,6,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
// contains filtered or unexported fields
}
query committed proof info
func (*ZkFetchProofList) Descriptor
deprecated
added in
v1.67.4
func (*ZkFetchProofList) Descriptor() ([]byte, []int)
Deprecated: Use ZkFetchProofList.ProtoReflect.Descriptor instead.
func (*ZkFetchProofList) GetChainTitleId ¶ added in v1.67.4
func (x *ZkFetchProofList) GetChainTitleId() uint64
func (*ZkFetchProofList) GetEndHeight ¶ added in v1.67.4
func (x *ZkFetchProofList) GetEndHeight() uint64
func (*ZkFetchProofList) GetOnChainProofId ¶ added in v1.67.4
func (x *ZkFetchProofList) GetOnChainProofId() uint64
func (*ZkFetchProofList) GetProofId ¶ added in v1.67.4
func (x *ZkFetchProofList) GetProofId() uint64
func (*ZkFetchProofList) GetReqLatestProof ¶ added in v1.67.4
func (x *ZkFetchProofList) GetReqLatestProof() bool
func (*ZkFetchProofList) GetReqOnChainProof ¶ added in v1.67.4
func (x *ZkFetchProofList) GetReqOnChainProof() bool
func (*ZkFetchProofList) ProtoMessage ¶ added in v1.67.4
func (*ZkFetchProofList) ProtoMessage()
func (*ZkFetchProofList) ProtoReflect ¶ added in v1.67.4
func (x *ZkFetchProofList) ProtoReflect() protoreflect.Message
func (*ZkFetchProofList) Reset ¶ added in v1.67.4
func (x *ZkFetchProofList) Reset()
func (*ZkFetchProofList) String ¶ added in v1.67.4
func (x *ZkFetchProofList) String() string
type ZkFullExit ¶
type ZkFullExit struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
AccountId uint64 `protobuf:"varint,2,opt,name=accountId,proto3" json:"accountId,omitempty"`
EthPriorityQueueId int64 `protobuf:"varint,3,opt,name=ethPriorityQueueId,proto3" json:"ethPriorityQueueId,omitempty"`
Signature *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkFullExit) Descriptor
deprecated
func (*ZkFullExit) Descriptor() ([]byte, []int)
Deprecated: Use ZkFullExit.ProtoReflect.Descriptor instead.
func (*ZkFullExit) GetAccountId ¶
func (x *ZkFullExit) GetAccountId() uint64
func (*ZkFullExit) GetEthPriorityQueueId ¶
func (x *ZkFullExit) GetEthPriorityQueueId() int64
func (*ZkFullExit) GetSignature ¶
func (x *ZkFullExit) GetSignature() *ZkSignature
func (*ZkFullExit) GetTokenId ¶
func (x *ZkFullExit) GetTokenId() uint64
func (*ZkFullExit) ProtoMessage ¶
func (*ZkFullExit) ProtoMessage()
func (*ZkFullExit) ProtoReflect ¶
func (x *ZkFullExit) ProtoReflect() protoreflect.Message
func (*ZkFullExit) Reset ¶
func (x *ZkFullExit) Reset()
func (*ZkFullExit) String ¶
func (x *ZkFullExit) String() string
type ZkFullExitWitnessInfo ¶ added in v1.67.4
type ZkFullExitWitnessInfo struct {
AccountId uint64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
TokenId uint64 `protobuf:"varint,2,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
EthAddress string `protobuf:"bytes,4,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
Signature *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
Fee *ZkFee `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"`
// contains filtered or unexported fields
}
func (*ZkFullExitWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkFullExitWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkFullExitWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkFullExitWitnessInfo) GetAccountId ¶ added in v1.67.4
func (x *ZkFullExitWitnessInfo) GetAccountId() uint64
func (*ZkFullExitWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkFullExitWitnessInfo) GetAmount() string
func (*ZkFullExitWitnessInfo) GetEthAddress ¶ added in v1.67.4
func (x *ZkFullExitWitnessInfo) GetEthAddress() string
func (*ZkFullExitWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkFullExitWitnessInfo) GetFee() *ZkFee
func (*ZkFullExitWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkFullExitWitnessInfo) GetSignature() *ZkSignature
func (*ZkFullExitWitnessInfo) GetTokenId ¶ added in v1.67.4
func (x *ZkFullExitWitnessInfo) GetTokenId() uint64
func (*ZkFullExitWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkFullExitWitnessInfo) ProtoMessage()
func (*ZkFullExitWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkFullExitWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkFullExitWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkFullExitWitnessInfo) Reset()
func (*ZkFullExitWitnessInfo) String ¶ added in v1.67.4
func (x *ZkFullExitWitnessInfo) String() string
type ZkMintNFT ¶ added in v1.67.4
type ZkMintNFT struct {
FromAccountId uint64 `protobuf:"varint,1,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
RecipientId uint64 `protobuf:"varint,2,opt,name=recipientId,proto3" json:"recipientId,omitempty"`
ContentHash string `protobuf:"bytes,3,opt,name=contentHash,proto3" json:"contentHash,omitempty"`
ErcProtocol uint64 `protobuf:"varint,4,opt,name=ercProtocol,proto3" json:"ercProtocol,omitempty"`
Amount uint64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"`
Signature *ZkSignature `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkMintNFT) Descriptor
deprecated
added in
v1.67.4
func (*ZkMintNFT) GetContentHash ¶ added in v1.67.4
func (*ZkMintNFT) GetErcProtocol ¶ added in v1.67.4
func (*ZkMintNFT) GetFromAccountId ¶ added in v1.67.4
func (*ZkMintNFT) GetRecipientId ¶ added in v1.67.4
func (*ZkMintNFT) GetSignature ¶ added in v1.67.4
func (x *ZkMintNFT) GetSignature() *ZkSignature
func (*ZkMintNFT) ProtoMessage ¶ added in v1.67.4
func (*ZkMintNFT) ProtoMessage()
func (*ZkMintNFT) ProtoReflect ¶ added in v1.67.4
func (x *ZkMintNFT) ProtoReflect() protoreflect.Message
type ZkMintNFTWitnessInfo ¶ added in v1.67.4
type ZkMintNFTWitnessInfo struct {
MintAcctId uint64 `protobuf:"varint,1,opt,name=mintAcctId,proto3" json:"mintAcctId,omitempty"`
RecipientId uint64 `protobuf:"varint,2,opt,name=recipientId,proto3" json:"recipientId,omitempty"`
ErcProtocol uint64 `protobuf:"varint,3,opt,name=ercProtocol,proto3" json:"ercProtocol,omitempty"`
ContentHash []string `protobuf:"bytes,4,rep,name=contentHash,proto3" json:"contentHash,omitempty"`
NewNFTTokenID uint64 `protobuf:"varint,5,opt,name=newNFTTokenID,proto3" json:"newNFTTokenID,omitempty"`
CreateSerialId uint64 `protobuf:"varint,6,opt,name=createSerialId,proto3" json:"createSerialId,omitempty"`
Amount string `protobuf:"bytes,7,opt,name=amount,proto3" json:"amount,omitempty"`
Signature *ZkSignature `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
Fee *ZkFee `protobuf:"bytes,9,opt,name=fee,proto3" json:"fee,omitempty"`
// contains filtered or unexported fields
}
func (*ZkMintNFTWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkMintNFTWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkMintNFTWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkMintNFTWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkMintNFTWitnessInfo) GetAmount() string
func (*ZkMintNFTWitnessInfo) GetContentHash ¶ added in v1.67.4
func (x *ZkMintNFTWitnessInfo) GetContentHash() []string
func (*ZkMintNFTWitnessInfo) GetCreateSerialId ¶ added in v1.67.4
func (x *ZkMintNFTWitnessInfo) GetCreateSerialId() uint64
func (*ZkMintNFTWitnessInfo) GetErcProtocol ¶ added in v1.67.4
func (x *ZkMintNFTWitnessInfo) GetErcProtocol() uint64
func (*ZkMintNFTWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkMintNFTWitnessInfo) GetFee() *ZkFee
func (*ZkMintNFTWitnessInfo) GetMintAcctId ¶ added in v1.67.4
func (x *ZkMintNFTWitnessInfo) GetMintAcctId() uint64
func (*ZkMintNFTWitnessInfo) GetNewNFTTokenID ¶ added in v1.67.4
func (x *ZkMintNFTWitnessInfo) GetNewNFTTokenID() uint64
func (*ZkMintNFTWitnessInfo) GetRecipientId ¶ added in v1.67.4
func (x *ZkMintNFTWitnessInfo) GetRecipientId() uint64
func (*ZkMintNFTWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkMintNFTWitnessInfo) GetSignature() *ZkSignature
func (*ZkMintNFTWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkMintNFTWitnessInfo) ProtoMessage()
func (*ZkMintNFTWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkMintNFTWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkMintNFTWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkMintNFTWitnessInfo) Reset()
func (*ZkMintNFTWitnessInfo) String ¶ added in v1.67.4
func (x *ZkMintNFTWitnessInfo) String() string
type ZkMsg ¶
type ZkMsg struct {
First string `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"`
Second string `protobuf:"bytes,2,opt,name=second,proto3" json:"second,omitempty"`
Third string `protobuf:"bytes,3,opt,name=third,proto3" json:"third,omitempty"`
// contains filtered or unexported fields
}
func (*ZkMsg) Descriptor
deprecated
func (*ZkMsg) ProtoMessage ¶
func (*ZkMsg) ProtoMessage()
func (*ZkMsg) ProtoReflect ¶
func (x *ZkMsg) ProtoReflect() protoreflect.Message
type ZkNFTTokenStatus ¶ added in v1.67.4
type ZkNFTTokenStatus struct {
Id uint64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
CreatorId uint64 `protobuf:"varint,2,opt,name=creatorId,proto3" json:"creatorId,omitempty"`
CreatorEthAddr string `protobuf:"bytes,3,opt,name=creatorEthAddr,proto3" json:"creatorEthAddr,omitempty"`
CreatorSerialId uint64 `protobuf:"varint,4,opt,name=creatorSerialId,proto3" json:"creatorSerialId,omitempty"`
ErcProtocol uint64 `protobuf:"varint,5,opt,name=ercProtocol,proto3" json:"ercProtocol,omitempty"`
MintAmount uint64 `protobuf:"varint,6,opt,name=mintAmount,proto3" json:"mintAmount,omitempty"`
ContentHash string `protobuf:"bytes,7,opt,name=contentHash,proto3" json:"contentHash,omitempty"`
BurnedAmount uint64 `protobuf:"varint,8,opt,name=burnedAmount,proto3" json:"burnedAmount,omitempty"` //是否提取到了L1
// contains filtered or unexported fields
}
func (*ZkNFTTokenStatus) Descriptor
deprecated
added in
v1.67.4
func (*ZkNFTTokenStatus) Descriptor() ([]byte, []int)
Deprecated: Use ZkNFTTokenStatus.ProtoReflect.Descriptor instead.
func (*ZkNFTTokenStatus) GetBurnedAmount ¶ added in v1.67.4
func (x *ZkNFTTokenStatus) GetBurnedAmount() uint64
func (*ZkNFTTokenStatus) GetContentHash ¶ added in v1.67.4
func (x *ZkNFTTokenStatus) GetContentHash() string
func (*ZkNFTTokenStatus) GetCreatorEthAddr ¶ added in v1.67.4
func (x *ZkNFTTokenStatus) GetCreatorEthAddr() string
func (*ZkNFTTokenStatus) GetCreatorId ¶ added in v1.67.4
func (x *ZkNFTTokenStatus) GetCreatorId() uint64
func (*ZkNFTTokenStatus) GetCreatorSerialId ¶ added in v1.67.4
func (x *ZkNFTTokenStatus) GetCreatorSerialId() uint64
func (*ZkNFTTokenStatus) GetErcProtocol ¶ added in v1.67.4
func (x *ZkNFTTokenStatus) GetErcProtocol() uint64
func (*ZkNFTTokenStatus) GetId ¶ added in v1.67.4
func (x *ZkNFTTokenStatus) GetId() uint64
func (*ZkNFTTokenStatus) GetMintAmount ¶ added in v1.67.4
func (x *ZkNFTTokenStatus) GetMintAmount() uint64
func (*ZkNFTTokenStatus) ProtoMessage ¶ added in v1.67.4
func (*ZkNFTTokenStatus) ProtoMessage()
func (*ZkNFTTokenStatus) ProtoReflect ¶ added in v1.67.4
func (x *ZkNFTTokenStatus) ProtoReflect() protoreflect.Message
func (*ZkNFTTokenStatus) Reset ¶ added in v1.67.4
func (x *ZkNFTTokenStatus) Reset()
func (*ZkNFTTokenStatus) String ¶ added in v1.67.4
func (x *ZkNFTTokenStatus) String() string
type ZkOperation ¶
type ZkOperation struct {
Ty int32 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
Op *OperationSpecialInfo `protobuf:"bytes,2,opt,name=op,proto3" json:"op,omitempty"`
// contains filtered or unexported fields
}
func (*ZkOperation) Descriptor
deprecated
func (*ZkOperation) Descriptor() ([]byte, []int)
Deprecated: Use ZkOperation.ProtoReflect.Descriptor instead.
func (*ZkOperation) GetOp ¶ added in v1.67.4
func (x *ZkOperation) GetOp() *OperationSpecialInfo
func (*ZkOperation) GetTy ¶
func (x *ZkOperation) GetTy() int32
func (*ZkOperation) ProtoMessage ¶
func (*ZkOperation) ProtoMessage()
func (*ZkOperation) ProtoReflect ¶
func (x *ZkOperation) ProtoReflect() protoreflect.Message
func (*ZkOperation) Reset ¶
func (x *ZkOperation) Reset()
func (*ZkOperation) String ¶
func (x *ZkOperation) String() string
type ZkOrder ¶ added in v1.67.4
type ZkOrder struct {
AccountID uint64 `protobuf:"varint,1,opt,name=accountID,proto3" json:"accountID,omitempty"`
EthAddress string `protobuf:"bytes,2,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
//uint64 nonce = 3;
TokenSell uint64 `protobuf:"varint,4,opt,name=tokenSell,proto3" json:"tokenSell,omitempty"`
TokenBuy uint64 `protobuf:"varint,5,opt,name=tokenBuy,proto3" json:"tokenBuy,omitempty"`
Amount string `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"`
Ratio1 string `protobuf:"bytes,7,opt,name=ratio1,proto3" json:"ratio1,omitempty"`
Ratio2 string `protobuf:"bytes,8,opt,name=ratio2,proto3" json:"ratio2,omitempty"`
//uint64 validFrom = 9;
//uint64 validUntil = 10;
SellAssetType AssetType `protobuf:"varint,11,opt,name=sellAssetType,proto3,enum=types.AssetType" json:"sellAssetType,omitempty"`
BuyAssetType AssetType `protobuf:"varint,12,opt,name=buyAssetType,proto3,enum=types.AssetType" json:"buyAssetType,omitempty"`
Signature *ZkSignature `protobuf:"bytes,20,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkOrder) Descriptor
deprecated
added in
v1.67.4
func (*ZkOrder) GetAccountID ¶ added in v1.67.4
func (*ZkOrder) GetBuyAssetType ¶ added in v1.67.4
func (*ZkOrder) GetEthAddress ¶ added in v1.67.4
func (*ZkOrder) GetSellAssetType ¶ added in v1.67.4
func (*ZkOrder) GetSignature ¶ added in v1.67.4
func (x *ZkOrder) GetSignature() *ZkSignature
func (*ZkOrder) GetTokenBuy ¶ added in v1.67.4
func (*ZkOrder) GetTokenSell ¶ added in v1.67.4
func (*ZkOrder) ProtoMessage ¶ added in v1.67.4
func (*ZkOrder) ProtoMessage()
func (*ZkOrder) ProtoReflect ¶ added in v1.67.4
func (x *ZkOrder) ProtoReflect() protoreflect.Message
type ZkProofWitness ¶ added in v1.67.4
type ZkProofWitness struct {
AccountWitness *AccountWitness `protobuf:"bytes,1,opt,name=accountWitness,proto3" json:"accountWitness,omitempty"`
TokenWitness *TokenWitness `protobuf:"bytes,2,opt,name=tokenWitness,proto3" json:"tokenWitness,omitempty"`
TreeRoot string `protobuf:"bytes,3,opt,name=treeRoot,proto3" json:"treeRoot,omitempty"`
// contains filtered or unexported fields
}
func (*ZkProofWitness) Descriptor
deprecated
added in
v1.67.4
func (*ZkProofWitness) Descriptor() ([]byte, []int)
Deprecated: Use ZkProofWitness.ProtoReflect.Descriptor instead.
func (*ZkProofWitness) GetAccountWitness ¶ added in v1.67.4
func (x *ZkProofWitness) GetAccountWitness() *AccountWitness
func (*ZkProofWitness) GetTokenWitness ¶ added in v1.67.4
func (x *ZkProofWitness) GetTokenWitness() *TokenWitness
func (*ZkProofWitness) GetTreeRoot ¶ added in v1.67.4
func (x *ZkProofWitness) GetTreeRoot() string
func (*ZkProofWitness) ProtoMessage ¶ added in v1.67.4
func (*ZkProofWitness) ProtoMessage()
func (*ZkProofWitness) ProtoReflect ¶ added in v1.67.4
func (x *ZkProofWitness) ProtoReflect() protoreflect.Message
func (*ZkProofWitness) Reset ¶ added in v1.67.4
func (x *ZkProofWitness) Reset()
func (*ZkProofWitness) String ¶ added in v1.67.4
func (x *ZkProofWitness) String() string
type ZkProxyExit ¶ added in v1.67.4
type ZkProxyExit struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
ProxyId uint64 `protobuf:"varint,2,opt,name=proxyId,proto3" json:"proxyId,omitempty"` //代理id,扣手续费
TargetId uint64 `protobuf:"varint,3,opt,name=targetId,proto3" json:"targetId,omitempty"` //目标id
Signature *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkProxyExit) Descriptor
deprecated
added in
v1.67.4
func (*ZkProxyExit) Descriptor() ([]byte, []int)
Deprecated: Use ZkProxyExit.ProtoReflect.Descriptor instead.
func (*ZkProxyExit) GetProxyId ¶ added in v1.67.4
func (x *ZkProxyExit) GetProxyId() uint64
func (*ZkProxyExit) GetSignature ¶ added in v1.67.4
func (x *ZkProxyExit) GetSignature() *ZkSignature
func (*ZkProxyExit) GetTargetId ¶ added in v1.67.4
func (x *ZkProxyExit) GetTargetId() uint64
func (*ZkProxyExit) GetTokenId ¶ added in v1.67.4
func (x *ZkProxyExit) GetTokenId() uint64
func (*ZkProxyExit) ProtoMessage ¶ added in v1.67.4
func (*ZkProxyExit) ProtoMessage()
func (*ZkProxyExit) ProtoReflect ¶ added in v1.67.4
func (x *ZkProxyExit) ProtoReflect() protoreflect.Message
func (*ZkProxyExit) Reset ¶ added in v1.67.4
func (x *ZkProxyExit) Reset()
func (*ZkProxyExit) String ¶ added in v1.67.4
func (x *ZkProxyExit) String() string
type ZkProxyExitWitnessInfo ¶ added in v1.67.4
type ZkProxyExitWitnessInfo struct {
ProxyID uint64 `protobuf:"varint,1,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
TargetId uint64 `protobuf:"varint,2,opt,name=targetId,proto3" json:"targetId,omitempty"`
TokenId uint64 `protobuf:"varint,3,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
Signature *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
Fee *ZkFee `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"`
EthAddress string `protobuf:"bytes,7,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
// contains filtered or unexported fields
}
func (*ZkProxyExitWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkProxyExitWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkProxyExitWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkProxyExitWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkProxyExitWitnessInfo) GetAmount() string
func (*ZkProxyExitWitnessInfo) GetEthAddress ¶ added in v1.67.4
func (x *ZkProxyExitWitnessInfo) GetEthAddress() string
func (*ZkProxyExitWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkProxyExitWitnessInfo) GetFee() *ZkFee
func (*ZkProxyExitWitnessInfo) GetProxyID ¶ added in v1.67.4
func (x *ZkProxyExitWitnessInfo) GetProxyID() uint64
func (*ZkProxyExitWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkProxyExitWitnessInfo) GetSignature() *ZkSignature
func (*ZkProxyExitWitnessInfo) GetTargetId ¶ added in v1.67.4
func (x *ZkProxyExitWitnessInfo) GetTargetId() uint64
func (*ZkProxyExitWitnessInfo) GetTokenId ¶ added in v1.67.4
func (x *ZkProxyExitWitnessInfo) GetTokenId() uint64
func (*ZkProxyExitWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkProxyExitWitnessInfo) ProtoMessage()
func (*ZkProxyExitWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkProxyExitWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkProxyExitWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkProxyExitWitnessInfo) Reset()
func (*ZkProxyExitWitnessInfo) String ¶ added in v1.67.4
func (x *ZkProxyExitWitnessInfo) String() string
type ZkPubKey ¶
type ZkPubKey struct {
X string `protobuf:"bytes,1,opt,name=x,proto3" json:"x,omitempty"`
Y string `protobuf:"bytes,2,opt,name=y,proto3" json:"y,omitempty"`
// contains filtered or unexported fields
}
func (*ZkPubKey) Descriptor
deprecated
func (*ZkPubKey) ProtoMessage ¶
func (*ZkPubKey) ProtoMessage()
func (*ZkPubKey) ProtoReflect ¶
func (x *ZkPubKey) ProtoReflect() protoreflect.Message
type ZkQueryProofReq ¶
type ZkQueryProofReq struct {
NeedDetail bool `protobuf:"varint,1,opt,name=needDetail,proto3" json:"needDetail,omitempty"`
StartBlockHeight uint64 `protobuf:"varint,2,opt,name=startBlockHeight,proto3" json:"startBlockHeight,omitempty"`
EndBlockHeight uint64 `protobuf:"varint,3,opt,name=endBlockHeight,proto3" json:"endBlockHeight,omitempty"`
StartIndex uint64 `protobuf:"varint,4,opt,name=startIndex,proto3" json:"startIndex,omitempty"`
OpIndex uint32 `protobuf:"varint,5,opt,name=opIndex,proto3" json:"opIndex,omitempty"`
// contains filtered or unexported fields
}
func (*ZkQueryProofReq) Descriptor
deprecated
func (*ZkQueryProofReq) Descriptor() ([]byte, []int)
Deprecated: Use ZkQueryProofReq.ProtoReflect.Descriptor instead.
func (*ZkQueryProofReq) GetEndBlockHeight ¶
func (x *ZkQueryProofReq) GetEndBlockHeight() uint64
func (*ZkQueryProofReq) GetNeedDetail ¶
func (x *ZkQueryProofReq) GetNeedDetail() bool
func (*ZkQueryProofReq) GetOpIndex ¶
func (x *ZkQueryProofReq) GetOpIndex() uint32
func (*ZkQueryProofReq) GetStartBlockHeight ¶
func (x *ZkQueryProofReq) GetStartBlockHeight() uint64
func (*ZkQueryProofReq) GetStartIndex ¶
func (x *ZkQueryProofReq) GetStartIndex() uint64
func (*ZkQueryProofReq) ProtoMessage ¶
func (*ZkQueryProofReq) ProtoMessage()
func (*ZkQueryProofReq) ProtoReflect ¶
func (x *ZkQueryProofReq) ProtoReflect() protoreflect.Message
func (*ZkQueryProofReq) Reset ¶
func (x *ZkQueryProofReq) Reset()
func (*ZkQueryProofReq) String ¶
func (x *ZkQueryProofReq) String() string
type ZkQueryProofResp ¶
type ZkQueryProofResp struct {
OperationInfos []*OperationInfo `protobuf:"bytes,1,rep,name=operationInfos,proto3" json:"operationInfos,omitempty"`
// contains filtered or unexported fields
}
func (*ZkQueryProofResp) Descriptor
deprecated
func (*ZkQueryProofResp) Descriptor() ([]byte, []int)
Deprecated: Use ZkQueryProofResp.ProtoReflect.Descriptor instead.
func (*ZkQueryProofResp) GetOperationInfos ¶
func (x *ZkQueryProofResp) GetOperationInfos() []*OperationInfo
func (*ZkQueryProofResp) ProtoMessage ¶
func (*ZkQueryProofResp) ProtoMessage()
func (*ZkQueryProofResp) ProtoReflect ¶
func (x *ZkQueryProofResp) ProtoReflect() protoreflect.Message
func (*ZkQueryProofResp) Reset ¶
func (x *ZkQueryProofResp) Reset()
func (*ZkQueryProofResp) String ¶
func (x *ZkQueryProofResp) String() string
type ZkQueryProofStatusResp ¶ added in v1.67.4
type ZkQueryProofStatusResp struct {
ProofId uint64 `protobuf:"varint,1,opt,name=proofId,proto3" json:"proofId,omitempty"`
TxHash string `protobuf:"bytes,2,opt,name=txHash,proto3" json:"txHash,omitempty"`
CommitProofState *CommitProofState `protobuf:"bytes,3,opt,name=commitProofState,proto3" json:"commitProofState,omitempty"`
LatestCommitProofState *CommitProofState `protobuf:"bytes,4,opt,name=LatestCommitProofState,proto3" json:"LatestCommitProofState,omitempty"`
MaxRecordId int64 `protobuf:"varint,5,opt,name=maxRecordId,proto3" json:"maxRecordId,omitempty"`
// contains filtered or unexported fields
}
func (*ZkQueryProofStatusResp) Descriptor
deprecated
added in
v1.67.4
func (*ZkQueryProofStatusResp) Descriptor() ([]byte, []int)
Deprecated: Use ZkQueryProofStatusResp.ProtoReflect.Descriptor instead.
func (*ZkQueryProofStatusResp) GetCommitProofState ¶ added in v1.67.4
func (x *ZkQueryProofStatusResp) GetCommitProofState() *CommitProofState
func (*ZkQueryProofStatusResp) GetLatestCommitProofState ¶ added in v1.67.4
func (x *ZkQueryProofStatusResp) GetLatestCommitProofState() *CommitProofState
func (*ZkQueryProofStatusResp) GetMaxRecordId ¶ added in v1.67.4
func (x *ZkQueryProofStatusResp) GetMaxRecordId() int64
func (*ZkQueryProofStatusResp) GetProofId ¶ added in v1.67.4
func (x *ZkQueryProofStatusResp) GetProofId() uint64
func (*ZkQueryProofStatusResp) GetTxHash ¶ added in v1.67.4
func (x *ZkQueryProofStatusResp) GetTxHash() string
func (*ZkQueryProofStatusResp) ProtoMessage ¶ added in v1.67.4
func (*ZkQueryProofStatusResp) ProtoMessage()
func (*ZkQueryProofStatusResp) ProtoReflect ¶ added in v1.67.4
func (x *ZkQueryProofStatusResp) ProtoReflect() protoreflect.Message
func (*ZkQueryProofStatusResp) Reset ¶ added in v1.67.4
func (x *ZkQueryProofStatusResp) Reset()
func (*ZkQueryProofStatusResp) String ¶ added in v1.67.4
func (x *ZkQueryProofStatusResp) String() string
type ZkQueryReq ¶
type ZkQueryReq struct {
AccountId uint64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
BlockHeight uint64 `protobuf:"varint,2,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
TxIndex uint32 `protobuf:"varint,3,opt,name=txIndex,proto3" json:"txIndex,omitempty"`
EthAddress string `protobuf:"bytes,4,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
Chain33Addr string `protobuf:"bytes,5,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"`
TokenSymbol string `protobuf:"bytes,6,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
Chain33WalletAddr string `protobuf:"bytes,7,opt,name=chain33WalletAddr,proto3" json:"chain33WalletAddr,omitempty"`
TokenId uint64 `protobuf:"varint,8,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
TxHash string `protobuf:"bytes,9,opt,name=txHash,proto3" json:"txHash,omitempty"`
ProofId uint64 `protobuf:"varint,10,opt,name=proofId,proto3" json:"proofId,omitempty"`
ChainTitleId uint64 `protobuf:"varint,11,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
OpType uint32 `protobuf:"varint,12,opt,name=opType,proto3" json:"opType,omitempty"`
// contains filtered or unexported fields
}
func (*ZkQueryReq) Descriptor
deprecated
func (*ZkQueryReq) Descriptor() ([]byte, []int)
Deprecated: Use ZkQueryReq.ProtoReflect.Descriptor instead.
func (*ZkQueryReq) GetAccountId ¶
func (x *ZkQueryReq) GetAccountId() uint64
func (*ZkQueryReq) GetBlockHeight ¶
func (x *ZkQueryReq) GetBlockHeight() uint64
func (*ZkQueryReq) GetChain33Addr ¶
func (x *ZkQueryReq) GetChain33Addr() string
func (*ZkQueryReq) GetChain33WalletAddr ¶
func (x *ZkQueryReq) GetChain33WalletAddr() string
func (*ZkQueryReq) GetChainTitleId ¶ added in v1.67.4
func (x *ZkQueryReq) GetChainTitleId() uint64
func (*ZkQueryReq) GetEthAddress ¶
func (x *ZkQueryReq) GetEthAddress() string
func (*ZkQueryReq) GetOpType ¶ added in v1.67.4
func (x *ZkQueryReq) GetOpType() uint32
func (*ZkQueryReq) GetProofId ¶
func (x *ZkQueryReq) GetProofId() uint64
func (*ZkQueryReq) GetTokenId ¶
func (x *ZkQueryReq) GetTokenId() uint64
func (*ZkQueryReq) GetTokenSymbol ¶
func (x *ZkQueryReq) GetTokenSymbol() string
func (*ZkQueryReq) GetTxHash ¶
func (x *ZkQueryReq) GetTxHash() string
func (*ZkQueryReq) GetTxIndex ¶
func (x *ZkQueryReq) GetTxIndex() uint32
func (*ZkQueryReq) ProtoMessage ¶
func (*ZkQueryReq) ProtoMessage()
func (*ZkQueryReq) ProtoReflect ¶
func (x *ZkQueryReq) ProtoReflect() protoreflect.Message
func (*ZkQueryReq) Reset ¶
func (x *ZkQueryReq) Reset()
func (*ZkQueryReq) String ¶
func (x *ZkQueryReq) String() string
type ZkQueryResp ¶
type ZkQueryResp struct {
OperationInfos []*OperationInfo `protobuf:"bytes,1,rep,name=operationInfos,proto3" json:"operationInfos,omitempty"`
Leaves []*Leaf `protobuf:"bytes,2,rep,name=leaves,proto3" json:"leaves,omitempty"`
TokenBalances []*TokenBalance `protobuf:"bytes,3,rep,name=tokenBalances,proto3" json:"tokenBalances,omitempty"`
// contains filtered or unexported fields
}
func (*ZkQueryResp) Descriptor
deprecated
func (*ZkQueryResp) Descriptor() ([]byte, []int)
Deprecated: Use ZkQueryResp.ProtoReflect.Descriptor instead.
func (*ZkQueryResp) GetLeaves ¶
func (x *ZkQueryResp) GetLeaves() []*Leaf
func (*ZkQueryResp) GetOperationInfos ¶
func (x *ZkQueryResp) GetOperationInfos() []*OperationInfo
func (*ZkQueryResp) GetTokenBalances ¶
func (x *ZkQueryResp) GetTokenBalances() []*TokenBalance
func (*ZkQueryResp) ProtoMessage ¶
func (*ZkQueryResp) ProtoMessage()
func (*ZkQueryResp) ProtoReflect ¶
func (x *ZkQueryResp) ProtoReflect() protoreflect.Message
func (*ZkQueryResp) Reset ¶
func (x *ZkQueryResp) Reset()
func (*ZkQueryResp) String ¶
func (x *ZkQueryResp) String() string
type ZkQueryTxOperationReq ¶ added in v1.67.4
type ZkQueryTxOperationReq struct {
StartBlockHeight uint64 `protobuf:"varint,1,opt,name=startBlockHeight,proto3" json:"startBlockHeight,omitempty"` //起始高度
StartIndex uint64 `protobuf:"varint,2,opt,name=startIndex,proto3" json:"startIndex,omitempty"` //块中交易的序号
OpIndex uint32 `protobuf:"varint,3,opt,name=opIndex,proto3" json:"opIndex,omitempty"` //交易操作快照片序号:目前是0,1。
Count uint32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` //获取交易操作数量:默认值是:100000 = types.MaxTxsPerBlock
BlockOffset uint32 `protobuf:"varint,5,opt,name=blockOffset,proto3" json:"blockOffset,omitempty"` //高度偏移:以块高度为偏移单位,计算错误时,最多是固定块的交易证明错误。块中的交易不变,proof数量不变,即proofID也不变。
Maturity uint32 `protobuf:"varint,6,opt,name=maturity,proto3" json:"maturity,omitempty"` //成熟度:最新高度-成熟度 = endBlockHeigh
// contains filtered or unexported fields
}
func (*ZkQueryTxOperationReq) Descriptor
deprecated
added in
v1.67.4
func (*ZkQueryTxOperationReq) Descriptor() ([]byte, []int)
Deprecated: Use ZkQueryTxOperationReq.ProtoReflect.Descriptor instead.
func (*ZkQueryTxOperationReq) GetBlockOffset ¶ added in v1.67.4
func (x *ZkQueryTxOperationReq) GetBlockOffset() uint32
func (*ZkQueryTxOperationReq) GetCount ¶ added in v1.67.4
func (x *ZkQueryTxOperationReq) GetCount() uint32
func (*ZkQueryTxOperationReq) GetMaturity ¶ added in v1.67.4
func (x *ZkQueryTxOperationReq) GetMaturity() uint32
func (*ZkQueryTxOperationReq) GetOpIndex ¶ added in v1.67.4
func (x *ZkQueryTxOperationReq) GetOpIndex() uint32
func (*ZkQueryTxOperationReq) GetStartBlockHeight ¶ added in v1.67.4
func (x *ZkQueryTxOperationReq) GetStartBlockHeight() uint64
func (*ZkQueryTxOperationReq) GetStartIndex ¶ added in v1.67.4
func (x *ZkQueryTxOperationReq) GetStartIndex() uint64
func (*ZkQueryTxOperationReq) ProtoMessage ¶ added in v1.67.4
func (*ZkQueryTxOperationReq) ProtoMessage()
func (*ZkQueryTxOperationReq) ProtoReflect ¶ added in v1.67.4
func (x *ZkQueryTxOperationReq) ProtoReflect() protoreflect.Message
func (*ZkQueryTxOperationReq) Reset ¶ added in v1.67.4
func (x *ZkQueryTxOperationReq) Reset()
func (*ZkQueryTxOperationReq) String ¶ added in v1.67.4
func (x *ZkQueryTxOperationReq) String() string
type ZkReceiptLeaf ¶
type ZkReceiptLeaf struct {
Leaf *Leaf `protobuf:"bytes,1,opt,name=leaf,proto3" json:"leaf,omitempty"`
Token *TokenBalance `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
TreeProof *MerkleTreeProof `protobuf:"bytes,3,opt,name=treeProof,proto3" json:"treeProof,omitempty"`
TokenProof *MerkleTreeProof `protobuf:"bytes,4,opt,name=tokenProof,proto3" json:"tokenProof,omitempty"`
// contains filtered or unexported fields
}
leaf merkle proof票据日志
func (*ZkReceiptLeaf) Descriptor
deprecated
func (*ZkReceiptLeaf) Descriptor() ([]byte, []int)
Deprecated: Use ZkReceiptLeaf.ProtoReflect.Descriptor instead.
func (*ZkReceiptLeaf) GetLeaf ¶
func (x *ZkReceiptLeaf) GetLeaf() *Leaf
func (*ZkReceiptLeaf) GetToken ¶
func (x *ZkReceiptLeaf) GetToken() *TokenBalance
func (*ZkReceiptLeaf) GetTokenProof ¶
func (x *ZkReceiptLeaf) GetTokenProof() *MerkleTreeProof
func (*ZkReceiptLeaf) GetTreeProof ¶
func (x *ZkReceiptLeaf) GetTreeProof() *MerkleTreeProof
func (*ZkReceiptLeaf) ProtoMessage ¶
func (*ZkReceiptLeaf) ProtoMessage()
func (*ZkReceiptLeaf) ProtoReflect ¶
func (x *ZkReceiptLeaf) ProtoReflect() protoreflect.Message
func (*ZkReceiptLeaf) Reset ¶
func (x *ZkReceiptLeaf) Reset()
func (*ZkReceiptLeaf) String ¶
func (x *ZkReceiptLeaf) String() string
type ZkReceiptLog ¶
type ZkReceiptLog struct {
OperationInfo *OperationInfo `protobuf:"bytes,1,opt,name=operationInfo,proto3" json:"operationInfo,omitempty"`
LocalKvs []*types.KeyValue `protobuf:"bytes,2,rep,name=localKvs,proto3" json:"localKvs,omitempty"`
// contains filtered or unexported fields
}
func (*ZkReceiptLog) Descriptor
deprecated
func (*ZkReceiptLog) Descriptor() ([]byte, []int)
Deprecated: Use ZkReceiptLog.ProtoReflect.Descriptor instead.
func (*ZkReceiptLog) GetLocalKvs ¶
func (x *ZkReceiptLog) GetLocalKvs() []*types.KeyValue
func (*ZkReceiptLog) GetOperationInfo ¶
func (x *ZkReceiptLog) GetOperationInfo() *OperationInfo
func (*ZkReceiptLog) ProtoMessage ¶
func (*ZkReceiptLog) ProtoMessage()
func (*ZkReceiptLog) ProtoReflect ¶
func (x *ZkReceiptLog) ProtoReflect() protoreflect.Message
func (*ZkReceiptLog) Reset ¶
func (x *ZkReceiptLog) Reset()
func (*ZkReceiptLog) String ¶
func (x *ZkReceiptLog) String() string
type ZkReqExistenceProof ¶ added in v1.67.4
type ZkReqExistenceProof struct {
AccountId uint64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
TokenId uint64 `protobuf:"varint,2,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
RootHash string `protobuf:"bytes,3,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
ChainTitleId uint64 `protobuf:"varint,4,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
// contains filtered or unexported fields
}
func (*ZkReqExistenceProof) Descriptor
deprecated
added in
v1.67.4
func (*ZkReqExistenceProof) Descriptor() ([]byte, []int)
Deprecated: Use ZkReqExistenceProof.ProtoReflect.Descriptor instead.
func (*ZkReqExistenceProof) GetAccountId ¶ added in v1.67.4
func (x *ZkReqExistenceProof) GetAccountId() uint64
func (*ZkReqExistenceProof) GetChainTitleId ¶ added in v1.67.4
func (x *ZkReqExistenceProof) GetChainTitleId() uint64
func (*ZkReqExistenceProof) GetRootHash ¶ added in v1.67.4
func (x *ZkReqExistenceProof) GetRootHash() string
func (*ZkReqExistenceProof) GetTokenId ¶ added in v1.67.4
func (x *ZkReqExistenceProof) GetTokenId() uint64
func (*ZkReqExistenceProof) ProtoMessage ¶ added in v1.67.4
func (*ZkReqExistenceProof) ProtoMessage()
func (*ZkReqExistenceProof) ProtoReflect ¶ added in v1.67.4
func (x *ZkReqExistenceProof) ProtoReflect() protoreflect.Message
func (*ZkReqExistenceProof) Reset ¶ added in v1.67.4
func (x *ZkReqExistenceProof) Reset()
func (*ZkReqExistenceProof) String ¶ added in v1.67.4
func (x *ZkReqExistenceProof) String() string
type ZkSetFee ¶
type ZkSetFee struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
ActionTy int32 `protobuf:"varint,3,opt,name=actionTy,proto3" json:"actionTy,omitempty"`
// contains filtered or unexported fields
}
func (*ZkSetFee) Descriptor
deprecated
func (*ZkSetFee) GetActionTy ¶
func (*ZkSetFee) GetTokenId ¶
func (*ZkSetFee) ProtoMessage ¶
func (*ZkSetFee) ProtoMessage()
func (*ZkSetFee) ProtoReflect ¶
func (x *ZkSetFee) ProtoReflect() protoreflect.Message
type ZkSetPubKey ¶
type ZkSetPubKey struct {
AccountId uint64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
PubKey *ZkPubKey `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
PubKeyTy uint64 `protobuf:"varint,3,opt,name=pubKeyTy,proto3" json:"pubKeyTy,omitempty"`
Signature *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkSetPubKey) Descriptor
deprecated
func (*ZkSetPubKey) Descriptor() ([]byte, []int)
Deprecated: Use ZkSetPubKey.ProtoReflect.Descriptor instead.
func (*ZkSetPubKey) GetAccountId ¶
func (x *ZkSetPubKey) GetAccountId() uint64
func (*ZkSetPubKey) GetPubKey ¶
func (x *ZkSetPubKey) GetPubKey() *ZkPubKey
func (*ZkSetPubKey) GetPubKeyTy ¶ added in v1.67.4
func (x *ZkSetPubKey) GetPubKeyTy() uint64
func (*ZkSetPubKey) GetSignature ¶
func (x *ZkSetPubKey) GetSignature() *ZkSignature
func (*ZkSetPubKey) ProtoMessage ¶
func (*ZkSetPubKey) ProtoMessage()
func (*ZkSetPubKey) ProtoReflect ¶
func (x *ZkSetPubKey) ProtoReflect() protoreflect.Message
func (*ZkSetPubKey) Reset ¶
func (x *ZkSetPubKey) Reset()
func (*ZkSetPubKey) String ¶
func (x *ZkSetPubKey) String() string
type ZkSetPubKeyWitnessInfo ¶ added in v1.67.4
type ZkSetPubKeyWitnessInfo struct {
AccountId uint64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
PubKey *ZkPubKey `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
PubKeyTy uint64 `protobuf:"varint,3,opt,name=pubKeyTy,proto3" json:"pubKeyTy,omitempty"`
Signature *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkSetPubKeyWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkSetPubKeyWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkSetPubKeyWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkSetPubKeyWitnessInfo) GetAccountId ¶ added in v1.67.4
func (x *ZkSetPubKeyWitnessInfo) GetAccountId() uint64
func (*ZkSetPubKeyWitnessInfo) GetPubKey ¶ added in v1.67.4
func (x *ZkSetPubKeyWitnessInfo) GetPubKey() *ZkPubKey
func (*ZkSetPubKeyWitnessInfo) GetPubKeyTy ¶ added in v1.67.4
func (x *ZkSetPubKeyWitnessInfo) GetPubKeyTy() uint64
func (*ZkSetPubKeyWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkSetPubKeyWitnessInfo) GetSignature() *ZkSignature
func (*ZkSetPubKeyWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkSetPubKeyWitnessInfo) ProtoMessage()
func (*ZkSetPubKeyWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkSetPubKeyWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkSetPubKeyWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkSetPubKeyWitnessInfo) Reset()
func (*ZkSetPubKeyWitnessInfo) String ¶ added in v1.67.4
func (x *ZkSetPubKeyWitnessInfo) String() string
type ZkSignature ¶
type ZkSignature struct {
PubKey *ZkPubKey `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
SignInfo string `protobuf:"bytes,2,opt,name=signInfo,proto3" json:"signInfo,omitempty"`
Msg *ZkMsg `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*ZkSignature) Descriptor
deprecated
func (*ZkSignature) Descriptor() ([]byte, []int)
Deprecated: Use ZkSignature.ProtoReflect.Descriptor instead.
func (*ZkSignature) GetMsg ¶
func (x *ZkSignature) GetMsg() *ZkMsg
func (*ZkSignature) GetPubKey ¶
func (x *ZkSignature) GetPubKey() *ZkPubKey
func (*ZkSignature) GetSignInfo ¶
func (x *ZkSignature) GetSignInfo() string
func (*ZkSignature) ProtoMessage ¶
func (*ZkSignature) ProtoMessage()
func (*ZkSignature) ProtoReflect ¶
func (x *ZkSignature) ProtoReflect() protoreflect.Message
func (*ZkSignature) Reset ¶
func (x *ZkSignature) Reset()
func (*ZkSignature) String ¶
func (x *ZkSignature) String() string
type ZkSwap ¶
type ZkSwap struct {
Signature *ZkSignature `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkSwap) Descriptor
deprecated
func (*ZkSwap) GetSignature ¶
func (x *ZkSwap) GetSignature() *ZkSignature
func (*ZkSwap) ProtoMessage ¶
func (*ZkSwap) ProtoMessage()
func (*ZkSwap) ProtoReflect ¶
func (x *ZkSwap) ProtoReflect() protoreflect.Message
type ZkSwapOrderInfo ¶ added in v1.67.4
type ZkSwapOrderInfo struct {
AccountId uint64 `protobuf:"varint,1,opt,name=AccountId,proto3" json:"AccountId,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
RatioSell string `protobuf:"bytes,3,opt,name=ratioSell,proto3" json:"ratioSell,omitempty"`
RatioBuy string `protobuf:"bytes,4,opt,name=ratioBuy,proto3" json:"ratioBuy,omitempty"`
Signature *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkSwapOrderInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkSwapOrderInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkSwapOrderInfo.ProtoReflect.Descriptor instead.
func (*ZkSwapOrderInfo) GetAccountId ¶ added in v1.67.4
func (x *ZkSwapOrderInfo) GetAccountId() uint64
func (*ZkSwapOrderInfo) GetAmount ¶ added in v1.67.4
func (x *ZkSwapOrderInfo) GetAmount() string
func (*ZkSwapOrderInfo) GetRatioBuy ¶ added in v1.67.4
func (x *ZkSwapOrderInfo) GetRatioBuy() string
func (*ZkSwapOrderInfo) GetRatioSell ¶ added in v1.67.4
func (x *ZkSwapOrderInfo) GetRatioSell() string
func (*ZkSwapOrderInfo) GetSignature ¶ added in v1.67.4
func (x *ZkSwapOrderInfo) GetSignature() *ZkSignature
func (*ZkSwapOrderInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkSwapOrderInfo) ProtoMessage()
func (*ZkSwapOrderInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkSwapOrderInfo) ProtoReflect() protoreflect.Message
func (*ZkSwapOrderInfo) Reset ¶ added in v1.67.4
func (x *ZkSwapOrderInfo) Reset()
func (*ZkSwapOrderInfo) String ¶ added in v1.67.4
func (x *ZkSwapOrderInfo) String() string
type ZkSwapWitnessInfo ¶ added in v1.67.4
type ZkSwapWitnessInfo struct {
LeftTokenId uint64 `protobuf:"varint,1,opt,name=leftTokenId,proto3" json:"leftTokenId,omitempty"` //BTY-USDT 对
RightTokenID uint64 `protobuf:"varint,2,opt,name=rightTokenID,proto3" json:"rightTokenID,omitempty"`
LeftDealAmount string `protobuf:"bytes,3,opt,name=leftDealAmount,proto3" json:"leftDealAmount,omitempty"`
RightDealAmount string `protobuf:"bytes,4,opt,name=rightDealAmount,proto3" json:"rightDealAmount,omitempty"`
Left *ZkSwapOrderInfo `protobuf:"bytes,5,opt,name=left,proto3" json:"left,omitempty"`
Right *ZkSwapOrderInfo `protobuf:"bytes,6,opt,name=right,proto3" json:"right,omitempty"`
Fee *ZkFee `protobuf:"bytes,10,opt,name=fee,proto3" json:"fee,omitempty"`
// contains filtered or unexported fields
}
func (*ZkSwapWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkSwapWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkSwapWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkSwapWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkSwapWitnessInfo) GetFee() *ZkFee
func (*ZkSwapWitnessInfo) GetLeft ¶ added in v1.67.4
func (x *ZkSwapWitnessInfo) GetLeft() *ZkSwapOrderInfo
func (*ZkSwapWitnessInfo) GetLeftDealAmount ¶ added in v1.67.4
func (x *ZkSwapWitnessInfo) GetLeftDealAmount() string
func (*ZkSwapWitnessInfo) GetLeftTokenId ¶ added in v1.67.4
func (x *ZkSwapWitnessInfo) GetLeftTokenId() uint64
func (*ZkSwapWitnessInfo) GetRight ¶ added in v1.67.4
func (x *ZkSwapWitnessInfo) GetRight() *ZkSwapOrderInfo
func (*ZkSwapWitnessInfo) GetRightDealAmount ¶ added in v1.67.4
func (x *ZkSwapWitnessInfo) GetRightDealAmount() string
func (*ZkSwapWitnessInfo) GetRightTokenID ¶ added in v1.67.4
func (x *ZkSwapWitnessInfo) GetRightTokenID() uint64
func (*ZkSwapWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkSwapWitnessInfo) ProtoMessage()
func (*ZkSwapWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkSwapWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkSwapWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkSwapWitnessInfo) Reset()
func (*ZkSwapWitnessInfo) String ¶ added in v1.67.4
func (x *ZkSwapWitnessInfo) String() string
type ZkTokenSymbol ¶ added in v1.67.4
type ZkTokenSymbol struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
Decimal uint32 `protobuf:"varint,3,opt,name=decimal,proto3" json:"decimal,omitempty"` //精度
// contains filtered or unexported fields
}
func (*ZkTokenSymbol) Descriptor
deprecated
added in
v1.67.4
func (*ZkTokenSymbol) Descriptor() ([]byte, []int)
Deprecated: Use ZkTokenSymbol.ProtoReflect.Descriptor instead.
func (*ZkTokenSymbol) GetDecimal ¶ added in v1.67.4
func (x *ZkTokenSymbol) GetDecimal() uint32
func (*ZkTokenSymbol) GetId ¶ added in v1.67.4
func (x *ZkTokenSymbol) GetId() string
func (*ZkTokenSymbol) GetSymbol ¶ added in v1.67.4
func (x *ZkTokenSymbol) GetSymbol() string
func (*ZkTokenSymbol) ProtoMessage ¶ added in v1.67.4
func (*ZkTokenSymbol) ProtoMessage()
func (*ZkTokenSymbol) ProtoReflect ¶ added in v1.67.4
func (x *ZkTokenSymbol) ProtoReflect() protoreflect.Message
func (*ZkTokenSymbol) Reset ¶ added in v1.67.4
func (x *ZkTokenSymbol) Reset()
func (*ZkTokenSymbol) String ¶ added in v1.67.4
func (x *ZkTokenSymbol) String() string
type ZkTokenTreeProof ¶ added in v1.67.4
type ZkTokenTreeProof struct {
Token *TokenBalance `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
Proof *MerkleTreeProof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
// contains filtered or unexported fields
}
func (*ZkTokenTreeProof) Descriptor
deprecated
added in
v1.67.4
func (*ZkTokenTreeProof) Descriptor() ([]byte, []int)
Deprecated: Use ZkTokenTreeProof.ProtoReflect.Descriptor instead.
func (*ZkTokenTreeProof) GetProof ¶ added in v1.67.4
func (x *ZkTokenTreeProof) GetProof() *MerkleTreeProof
func (*ZkTokenTreeProof) GetToken ¶ added in v1.67.4
func (x *ZkTokenTreeProof) GetToken() *TokenBalance
func (*ZkTokenTreeProof) ProtoMessage ¶ added in v1.67.4
func (*ZkTokenTreeProof) ProtoMessage()
func (*ZkTokenTreeProof) ProtoReflect ¶ added in v1.67.4
func (x *ZkTokenTreeProof) ProtoReflect() protoreflect.Message
func (*ZkTokenTreeProof) Reset ¶ added in v1.67.4
func (x *ZkTokenTreeProof) Reset()
func (*ZkTokenTreeProof) String ¶ added in v1.67.4
func (x *ZkTokenTreeProof) String() string
type ZkTransfer ¶
type ZkTransfer struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
FromAccountId uint64 `protobuf:"varint,3,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
ToAccountId uint64 `protobuf:"varint,4,opt,name=toAccountId,proto3" json:"toAccountId,omitempty"`
Signature *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkTransfer) Descriptor
deprecated
func (*ZkTransfer) Descriptor() ([]byte, []int)
Deprecated: Use ZkTransfer.ProtoReflect.Descriptor instead.
func (*ZkTransfer) GetAmount ¶
func (x *ZkTransfer) GetAmount() string
func (*ZkTransfer) GetFromAccountId ¶
func (x *ZkTransfer) GetFromAccountId() uint64
func (*ZkTransfer) GetSignature ¶
func (x *ZkTransfer) GetSignature() *ZkSignature
func (*ZkTransfer) GetToAccountId ¶
func (x *ZkTransfer) GetToAccountId() uint64
func (*ZkTransfer) GetTokenId ¶
func (x *ZkTransfer) GetTokenId() uint64
func (*ZkTransfer) ProtoMessage ¶
func (*ZkTransfer) ProtoMessage()
func (*ZkTransfer) ProtoReflect ¶
func (x *ZkTransfer) ProtoReflect() protoreflect.Message
func (*ZkTransfer) Reset ¶
func (x *ZkTransfer) Reset()
func (*ZkTransfer) String ¶
func (x *ZkTransfer) String() string
type ZkTransferNFT ¶ added in v1.67.4
type ZkTransferNFT struct {
FromAccountId uint64 `protobuf:"varint,1,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
RecipientId uint64 `protobuf:"varint,2,opt,name=recipientId,proto3" json:"recipientId,omitempty"`
NFTTokenId uint64 `protobuf:"varint,3,opt,name=NFTTokenId,proto3" json:"NFTTokenId,omitempty"`
Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
Signature *ZkSignature `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkTransferNFT) Descriptor
deprecated
added in
v1.67.4
func (*ZkTransferNFT) Descriptor() ([]byte, []int)
Deprecated: Use ZkTransferNFT.ProtoReflect.Descriptor instead.
func (*ZkTransferNFT) GetAmount ¶ added in v1.67.4
func (x *ZkTransferNFT) GetAmount() uint64
func (*ZkTransferNFT) GetFromAccountId ¶ added in v1.67.4
func (x *ZkTransferNFT) GetFromAccountId() uint64
func (*ZkTransferNFT) GetNFTTokenId ¶ added in v1.67.4
func (x *ZkTransferNFT) GetNFTTokenId() uint64
func (*ZkTransferNFT) GetRecipientId ¶ added in v1.67.4
func (x *ZkTransferNFT) GetRecipientId() uint64
func (*ZkTransferNFT) GetSignature ¶ added in v1.67.4
func (x *ZkTransferNFT) GetSignature() *ZkSignature
func (*ZkTransferNFT) ProtoMessage ¶ added in v1.67.4
func (*ZkTransferNFT) ProtoMessage()
func (*ZkTransferNFT) ProtoReflect ¶ added in v1.67.4
func (x *ZkTransferNFT) ProtoReflect() protoreflect.Message
func (*ZkTransferNFT) Reset ¶ added in v1.67.4
func (x *ZkTransferNFT) Reset()
func (*ZkTransferNFT) String ¶ added in v1.67.4
func (x *ZkTransferNFT) String() string
type ZkTransferNFTWitnessInfo ¶ added in v1.67.4
type ZkTransferNFTWitnessInfo struct {
FromAccountId uint64 `protobuf:"varint,1,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
RecipientId uint64 `protobuf:"varint,2,opt,name=recipientId,proto3" json:"recipientId,omitempty"`
NFTTokenId uint64 `protobuf:"varint,3,opt,name=NFTTokenId,proto3" json:"NFTTokenId,omitempty"`
Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
Signature *ZkSignature `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
Fee *ZkFee `protobuf:"bytes,7,opt,name=fee,proto3" json:"fee,omitempty"`
// contains filtered or unexported fields
}
func (*ZkTransferNFTWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkTransferNFTWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkTransferNFTWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkTransferNFTWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkTransferNFTWitnessInfo) GetAmount() string
func (*ZkTransferNFTWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkTransferNFTWitnessInfo) GetFee() *ZkFee
func (*ZkTransferNFTWitnessInfo) GetFromAccountId ¶ added in v1.67.4
func (x *ZkTransferNFTWitnessInfo) GetFromAccountId() uint64
func (*ZkTransferNFTWitnessInfo) GetNFTTokenId ¶ added in v1.67.4
func (x *ZkTransferNFTWitnessInfo) GetNFTTokenId() uint64
func (*ZkTransferNFTWitnessInfo) GetRecipientId ¶ added in v1.67.4
func (x *ZkTransferNFTWitnessInfo) GetRecipientId() uint64
func (*ZkTransferNFTWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkTransferNFTWitnessInfo) GetSignature() *ZkSignature
func (*ZkTransferNFTWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkTransferNFTWitnessInfo) ProtoMessage()
func (*ZkTransferNFTWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkTransferNFTWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkTransferNFTWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkTransferNFTWitnessInfo) Reset()
func (*ZkTransferNFTWitnessInfo) String ¶ added in v1.67.4
func (x *ZkTransferNFTWitnessInfo) String() string
type ZkTransferToNew ¶
type ZkTransferToNew struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
FromAccountId uint64 `protobuf:"varint,3,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
ToEthAddress string `protobuf:"bytes,4,opt,name=toEthAddress,proto3" json:"toEthAddress,omitempty"`
ToChain33Address string `protobuf:"bytes,5,opt,name=toChain33Address,proto3" json:"toChain33Address,omitempty"`
Signature *ZkSignature `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkTransferToNew) Descriptor
deprecated
func (*ZkTransferToNew) Descriptor() ([]byte, []int)
Deprecated: Use ZkTransferToNew.ProtoReflect.Descriptor instead.
func (*ZkTransferToNew) GetAmount ¶
func (x *ZkTransferToNew) GetAmount() string
func (*ZkTransferToNew) GetFromAccountId ¶
func (x *ZkTransferToNew) GetFromAccountId() uint64
func (*ZkTransferToNew) GetSignature ¶
func (x *ZkTransferToNew) GetSignature() *ZkSignature
func (*ZkTransferToNew) GetToChain33Address ¶
func (x *ZkTransferToNew) GetToChain33Address() string
func (*ZkTransferToNew) GetToEthAddress ¶
func (x *ZkTransferToNew) GetToEthAddress() string
func (*ZkTransferToNew) GetTokenId ¶
func (x *ZkTransferToNew) GetTokenId() uint64
func (*ZkTransferToNew) ProtoMessage ¶
func (*ZkTransferToNew) ProtoMessage()
func (*ZkTransferToNew) ProtoReflect ¶
func (x *ZkTransferToNew) ProtoReflect() protoreflect.Message
func (*ZkTransferToNew) Reset ¶
func (x *ZkTransferToNew) Reset()
func (*ZkTransferToNew) String ¶
func (x *ZkTransferToNew) String() string
type ZkTransferToNewWitnessInfo ¶ added in v1.67.4
type ZkTransferToNewWitnessInfo struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
FromAccountId uint64 `protobuf:"varint,3,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
ToAccountId uint64 `protobuf:"varint,4,opt,name=toAccountId,proto3" json:"toAccountId,omitempty"`
EthAddress string `protobuf:"bytes,5,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
Layer2Addr string `protobuf:"bytes,6,opt,name=layer2Addr,proto3" json:"layer2Addr,omitempty"`
Signature *ZkSignature `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
Fee *ZkFee `protobuf:"bytes,8,opt,name=fee,proto3" json:"fee,omitempty"`
// contains filtered or unexported fields
}
func (*ZkTransferToNewWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkTransferToNewWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkTransferToNewWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkTransferToNewWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkTransferToNewWitnessInfo) GetAmount() string
func (*ZkTransferToNewWitnessInfo) GetEthAddress ¶ added in v1.67.4
func (x *ZkTransferToNewWitnessInfo) GetEthAddress() string
func (*ZkTransferToNewWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkTransferToNewWitnessInfo) GetFee() *ZkFee
func (*ZkTransferToNewWitnessInfo) GetFromAccountId ¶ added in v1.67.4
func (x *ZkTransferToNewWitnessInfo) GetFromAccountId() uint64
func (*ZkTransferToNewWitnessInfo) GetLayer2Addr ¶ added in v1.67.4
func (x *ZkTransferToNewWitnessInfo) GetLayer2Addr() string
func (*ZkTransferToNewWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkTransferToNewWitnessInfo) GetSignature() *ZkSignature
func (*ZkTransferToNewWitnessInfo) GetToAccountId ¶ added in v1.67.4
func (x *ZkTransferToNewWitnessInfo) GetToAccountId() uint64
func (*ZkTransferToNewWitnessInfo) GetTokenId ¶ added in v1.67.4
func (x *ZkTransferToNewWitnessInfo) GetTokenId() uint64
func (*ZkTransferToNewWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkTransferToNewWitnessInfo) ProtoMessage()
func (*ZkTransferToNewWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkTransferToNewWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkTransferToNewWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkTransferToNewWitnessInfo) Reset()
func (*ZkTransferToNewWitnessInfo) String ¶ added in v1.67.4
func (x *ZkTransferToNewWitnessInfo) String() string
type ZkTransferWitnessInfo ¶ added in v1.67.4
type ZkTransferWitnessInfo struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
FromAccountId uint64 `protobuf:"varint,3,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
ToAccountId uint64 `protobuf:"varint,4,opt,name=toAccountId,proto3" json:"toAccountId,omitempty"`
Signature *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
Fee *ZkFee `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"`
// contains filtered or unexported fields
}
func (*ZkTransferWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkTransferWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkTransferWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkTransferWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkTransferWitnessInfo) GetAmount() string
func (*ZkTransferWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkTransferWitnessInfo) GetFee() *ZkFee
func (*ZkTransferWitnessInfo) GetFromAccountId ¶ added in v1.67.4
func (x *ZkTransferWitnessInfo) GetFromAccountId() uint64
func (*ZkTransferWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkTransferWitnessInfo) GetSignature() *ZkSignature
func (*ZkTransferWitnessInfo) GetToAccountId ¶ added in v1.67.4
func (x *ZkTransferWitnessInfo) GetToAccountId() uint64
func (*ZkTransferWitnessInfo) GetTokenId ¶ added in v1.67.4
func (x *ZkTransferWitnessInfo) GetTokenId() uint64
func (*ZkTransferWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkTransferWitnessInfo) ProtoMessage()
func (*ZkTransferWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkTransferWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkTransferWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkTransferWitnessInfo) Reset()
func (*ZkTransferWitnessInfo) String ¶ added in v1.67.4
func (x *ZkTransferWitnessInfo) String() string
type ZkTreeToContract ¶
type ZkTreeToContract struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
AccountId uint64 `protobuf:"varint,3,opt,name=accountId,proto3" json:"accountId,omitempty"`
ToAcctId uint64 `protobuf:"varint,4,opt,name=toAcctId,proto3" json:"toAcctId,omitempty"` //缺省的systemTree2ContractId, 这里设置是为了签名需要和电路验证,也防止重放
Signature *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
ToExec string `protobuf:"bytes,6,opt,name=toExec,proto3" json:"toExec,omitempty"`
// contains filtered or unexported fields
}
从二层铸造到chain33合约
func (*ZkTreeToContract) Descriptor
deprecated
func (*ZkTreeToContract) Descriptor() ([]byte, []int)
Deprecated: Use ZkTreeToContract.ProtoReflect.Descriptor instead.
func (*ZkTreeToContract) GetAccountId ¶
func (x *ZkTreeToContract) GetAccountId() uint64
func (*ZkTreeToContract) GetAmount ¶
func (x *ZkTreeToContract) GetAmount() string
func (*ZkTreeToContract) GetSignature ¶
func (x *ZkTreeToContract) GetSignature() *ZkSignature
func (*ZkTreeToContract) GetToAcctId ¶ added in v1.67.4
func (x *ZkTreeToContract) GetToAcctId() uint64
func (*ZkTreeToContract) GetToExec ¶ added in v1.67.4
func (x *ZkTreeToContract) GetToExec() string
func (*ZkTreeToContract) GetTokenId ¶
func (x *ZkTreeToContract) GetTokenId() uint64
func (*ZkTreeToContract) ProtoMessage ¶
func (*ZkTreeToContract) ProtoMessage()
func (*ZkTreeToContract) ProtoReflect ¶
func (x *ZkTreeToContract) ProtoReflect() protoreflect.Message
func (*ZkTreeToContract) Reset ¶
func (x *ZkTreeToContract) Reset()
func (*ZkTreeToContract) String ¶
func (x *ZkTreeToContract) String() string
type ZkTreeToContractWitnessInfo ¶ added in v1.67.4
type ZkTreeToContractWitnessInfo struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
AccountId uint64 `protobuf:"varint,3,opt,name=accountId,proto3" json:"accountId,omitempty"`
Signature *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
Fee *ZkFee `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"`
// contains filtered or unexported fields
}
func (*ZkTreeToContractWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkTreeToContractWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkTreeToContractWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkTreeToContractWitnessInfo) GetAccountId ¶ added in v1.67.4
func (x *ZkTreeToContractWitnessInfo) GetAccountId() uint64
func (*ZkTreeToContractWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkTreeToContractWitnessInfo) GetAmount() string
func (*ZkTreeToContractWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkTreeToContractWitnessInfo) GetFee() *ZkFee
func (*ZkTreeToContractWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkTreeToContractWitnessInfo) GetSignature() *ZkSignature
func (*ZkTreeToContractWitnessInfo) GetTokenId ¶ added in v1.67.4
func (x *ZkTreeToContractWitnessInfo) GetTokenId() uint64
func (*ZkTreeToContractWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkTreeToContractWitnessInfo) ProtoMessage()
func (*ZkTreeToContractWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkTreeToContractWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkTreeToContractWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkTreeToContractWitnessInfo) Reset()
func (*ZkTreeToContractWitnessInfo) String ¶ added in v1.67.4
func (x *ZkTreeToContractWitnessInfo) String() string
type ZkTxProofResp ¶ added in v1.67.4
type ZkTxProofResp struct {
BlockHeight uint64 `protobuf:"varint,1,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
TxIndex uint32 `protobuf:"varint,2,opt,name=txIndex,proto3" json:"txIndex,omitempty"`
OpIndex uint32 `protobuf:"varint,3,opt,name=opIndex,proto3" json:"opIndex,omitempty"`
TxType uint32 `protobuf:"varint,4,opt,name=txType,proto3" json:"txType,omitempty"`
TxHash string `protobuf:"bytes,5,opt,name=txHash,proto3" json:"txHash,omitempty"`
ProofId uint64 `protobuf:"varint,6,opt,name=proofId,proto3" json:"proofId,omitempty"`
ProofNewRoot string `protobuf:"bytes,7,opt,name=proofNewRoot,proto3" json:"proofNewRoot,omitempty"`
// contains filtered or unexported fields
}
func (*ZkTxProofResp) Descriptor
deprecated
added in
v1.67.4
func (*ZkTxProofResp) Descriptor() ([]byte, []int)
Deprecated: Use ZkTxProofResp.ProtoReflect.Descriptor instead.
func (*ZkTxProofResp) GetBlockHeight ¶ added in v1.67.4
func (x *ZkTxProofResp) GetBlockHeight() uint64
func (*ZkTxProofResp) GetOpIndex ¶ added in v1.67.4
func (x *ZkTxProofResp) GetOpIndex() uint32
func (*ZkTxProofResp) GetProofId ¶ added in v1.67.4
func (x *ZkTxProofResp) GetProofId() uint64
func (*ZkTxProofResp) GetProofNewRoot ¶ added in v1.67.4
func (x *ZkTxProofResp) GetProofNewRoot() string
func (*ZkTxProofResp) GetTxHash ¶ added in v1.67.4
func (x *ZkTxProofResp) GetTxHash() string
func (*ZkTxProofResp) GetTxIndex ¶ added in v1.67.4
func (x *ZkTxProofResp) GetTxIndex() uint32
func (*ZkTxProofResp) GetTxType ¶ added in v1.67.4
func (x *ZkTxProofResp) GetTxType() uint32
func (*ZkTxProofResp) ProtoMessage ¶ added in v1.67.4
func (*ZkTxProofResp) ProtoMessage()
func (*ZkTxProofResp) ProtoReflect ¶ added in v1.67.4
func (x *ZkTxProofResp) ProtoReflect() protoreflect.Message
func (*ZkTxProofResp) Reset ¶ added in v1.67.4
func (x *ZkTxProofResp) Reset()
func (*ZkTxProofResp) String ¶ added in v1.67.4
func (x *ZkTxProofResp) String() string
type ZkVerifier ¶
type ZkVerifier struct {
ChainTitleId uint64 `protobuf:"varint,1,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
Verifiers []string `protobuf:"bytes,2,rep,name=verifiers,proto3" json:"verifiers,omitempty"`
// contains filtered or unexported fields
}
电路验证者名单
func (*ZkVerifier) Descriptor
deprecated
func (*ZkVerifier) Descriptor() ([]byte, []int)
Deprecated: Use ZkVerifier.ProtoReflect.Descriptor instead.
func (*ZkVerifier) GetChainTitleId ¶ added in v1.67.4
func (x *ZkVerifier) GetChainTitleId() uint64
func (*ZkVerifier) GetVerifiers ¶
func (x *ZkVerifier) GetVerifiers() []string
func (*ZkVerifier) ProtoMessage ¶
func (*ZkVerifier) ProtoMessage()
func (*ZkVerifier) ProtoReflect ¶
func (x *ZkVerifier) ProtoReflect() protoreflect.Message
func (*ZkVerifier) Reset ¶
func (x *ZkVerifier) Reset()
func (*ZkVerifier) String ¶
func (x *ZkVerifier) String() string
type ZkVerifyKey ¶
type ZkVerifyKey struct {
ChainTitleId uint64 `protobuf:"varint,1,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
电路验证key
func (*ZkVerifyKey) Descriptor
deprecated
func (*ZkVerifyKey) Descriptor() ([]byte, []int)
Deprecated: Use ZkVerifyKey.ProtoReflect.Descriptor instead.
func (*ZkVerifyKey) GetChainTitleId ¶ added in v1.67.4
func (x *ZkVerifyKey) GetChainTitleId() uint64
func (*ZkVerifyKey) GetKey ¶
func (x *ZkVerifyKey) GetKey() string
func (*ZkVerifyKey) ProtoMessage ¶
func (*ZkVerifyKey) ProtoMessage()
func (*ZkVerifyKey) ProtoReflect ¶
func (x *ZkVerifyKey) ProtoReflect() protoreflect.Message
func (*ZkVerifyKey) Reset ¶
func (x *ZkVerifyKey) Reset()
func (*ZkVerifyKey) String ¶
func (x *ZkVerifyKey) String() string
type ZkWithdraw ¶
type ZkWithdraw struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
AccountId uint64 `protobuf:"varint,3,opt,name=accountId,proto3" json:"accountId,omitempty"`
Signature *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
从二层提款
func (*ZkWithdraw) Descriptor
deprecated
func (*ZkWithdraw) Descriptor() ([]byte, []int)
Deprecated: Use ZkWithdraw.ProtoReflect.Descriptor instead.
func (*ZkWithdraw) GetAccountId ¶
func (x *ZkWithdraw) GetAccountId() uint64
func (*ZkWithdraw) GetAmount ¶
func (x *ZkWithdraw) GetAmount() string
func (*ZkWithdraw) GetSignature ¶
func (x *ZkWithdraw) GetSignature() *ZkSignature
func (*ZkWithdraw) GetTokenId ¶
func (x *ZkWithdraw) GetTokenId() uint64
func (*ZkWithdraw) ProtoMessage ¶
func (*ZkWithdraw) ProtoMessage()
func (*ZkWithdraw) ProtoReflect ¶
func (x *ZkWithdraw) ProtoReflect() protoreflect.Message
func (*ZkWithdraw) Reset ¶
func (x *ZkWithdraw) Reset()
func (*ZkWithdraw) String ¶
func (x *ZkWithdraw) String() string
type ZkWithdrawNFT ¶ added in v1.67.4
type ZkWithdrawNFT struct {
FromAccountId uint64 `protobuf:"varint,1,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
NFTTokenId uint64 `protobuf:"varint,2,opt,name=NFTTokenId,proto3" json:"NFTTokenId,omitempty"`
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
Signature *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*ZkWithdrawNFT) Descriptor
deprecated
added in
v1.67.4
func (*ZkWithdrawNFT) Descriptor() ([]byte, []int)
Deprecated: Use ZkWithdrawNFT.ProtoReflect.Descriptor instead.
func (*ZkWithdrawNFT) GetAmount ¶ added in v1.67.4
func (x *ZkWithdrawNFT) GetAmount() uint64
func (*ZkWithdrawNFT) GetFromAccountId ¶ added in v1.67.4
func (x *ZkWithdrawNFT) GetFromAccountId() uint64
func (*ZkWithdrawNFT) GetNFTTokenId ¶ added in v1.67.4
func (x *ZkWithdrawNFT) GetNFTTokenId() uint64
func (*ZkWithdrawNFT) GetSignature ¶ added in v1.67.4
func (x *ZkWithdrawNFT) GetSignature() *ZkSignature
func (*ZkWithdrawNFT) ProtoMessage ¶ added in v1.67.4
func (*ZkWithdrawNFT) ProtoMessage()
func (*ZkWithdrawNFT) ProtoReflect ¶ added in v1.67.4
func (x *ZkWithdrawNFT) ProtoReflect() protoreflect.Message
func (*ZkWithdrawNFT) Reset ¶ added in v1.67.4
func (x *ZkWithdrawNFT) Reset()
func (*ZkWithdrawNFT) String ¶ added in v1.67.4
func (x *ZkWithdrawNFT) String() string
type ZkWithdrawNFTWitnessInfo ¶ added in v1.67.4
type ZkWithdrawNFTWitnessInfo struct {
FromAcctId uint64 `protobuf:"varint,1,opt,name=fromAcctId,proto3" json:"fromAcctId,omitempty"`
NFTTokenID uint64 `protobuf:"varint,2,opt,name=NFTTokenID,proto3" json:"NFTTokenID,omitempty"`
WithdrawAmount string `protobuf:"bytes,3,opt,name=withdrawAmount,proto3" json:"withdrawAmount,omitempty"`
CreatorAcctId uint64 `protobuf:"varint,4,opt,name=creatorAcctId,proto3" json:"creatorAcctId,omitempty"`
ErcProtocol uint64 `protobuf:"varint,5,opt,name=ercProtocol,proto3" json:"ercProtocol,omitempty"`
ContentHash []string `protobuf:"bytes,6,rep,name=contentHash,proto3" json:"contentHash,omitempty"`
CreatorSerialId uint64 `protobuf:"varint,7,opt,name=creatorSerialId,proto3" json:"creatorSerialId,omitempty"`
InitMintAmount string `protobuf:"bytes,8,opt,name=initMintAmount,proto3" json:"initMintAmount,omitempty"`
Signature *ZkSignature `protobuf:"bytes,9,opt,name=signature,proto3" json:"signature,omitempty"`
Fee *ZkFee `protobuf:"bytes,10,opt,name=fee,proto3" json:"fee,omitempty"`
EthAddress string `protobuf:"bytes,11,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
// contains filtered or unexported fields
}
func (*ZkWithdrawNFTWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkWithdrawNFTWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkWithdrawNFTWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkWithdrawNFTWitnessInfo) GetContentHash ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) GetContentHash() []string
func (*ZkWithdrawNFTWitnessInfo) GetCreatorAcctId ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) GetCreatorAcctId() uint64
func (*ZkWithdrawNFTWitnessInfo) GetCreatorSerialId ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) GetCreatorSerialId() uint64
func (*ZkWithdrawNFTWitnessInfo) GetErcProtocol ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) GetErcProtocol() uint64
func (*ZkWithdrawNFTWitnessInfo) GetEthAddress ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) GetEthAddress() string
func (*ZkWithdrawNFTWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) GetFee() *ZkFee
func (*ZkWithdrawNFTWitnessInfo) GetFromAcctId ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) GetFromAcctId() uint64
func (*ZkWithdrawNFTWitnessInfo) GetInitMintAmount ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) GetInitMintAmount() string
func (*ZkWithdrawNFTWitnessInfo) GetNFTTokenID ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) GetNFTTokenID() uint64
func (*ZkWithdrawNFTWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) GetSignature() *ZkSignature
func (*ZkWithdrawNFTWitnessInfo) GetWithdrawAmount ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) GetWithdrawAmount() string
func (*ZkWithdrawNFTWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkWithdrawNFTWitnessInfo) ProtoMessage()
func (*ZkWithdrawNFTWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkWithdrawNFTWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) Reset()
func (*ZkWithdrawNFTWitnessInfo) String ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) String() string
type ZkWithdrawWitnessInfo ¶ added in v1.67.4
type ZkWithdrawWitnessInfo struct {
TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
AccountId uint64 `protobuf:"varint,3,opt,name=accountId,proto3" json:"accountId,omitempty"`
EthAddress string `protobuf:"bytes,4,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
Signature *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
Fee *ZkFee `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"`
// contains filtered or unexported fields
}
func (*ZkWithdrawWitnessInfo) Descriptor
deprecated
added in
v1.67.4
func (*ZkWithdrawWitnessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkWithdrawWitnessInfo.ProtoReflect.Descriptor instead.
func (*ZkWithdrawWitnessInfo) GetAccountId ¶ added in v1.67.4
func (x *ZkWithdrawWitnessInfo) GetAccountId() uint64
func (*ZkWithdrawWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkWithdrawWitnessInfo) GetAmount() string
func (*ZkWithdrawWitnessInfo) GetEthAddress ¶ added in v1.67.4
func (x *ZkWithdrawWitnessInfo) GetEthAddress() string
func (*ZkWithdrawWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkWithdrawWitnessInfo) GetFee() *ZkFee
func (*ZkWithdrawWitnessInfo) GetSignature ¶ added in v1.67.4
func (x *ZkWithdrawWitnessInfo) GetSignature() *ZkSignature
func (*ZkWithdrawWitnessInfo) GetTokenId ¶ added in v1.67.4
func (x *ZkWithdrawWitnessInfo) GetTokenId() uint64
func (*ZkWithdrawWitnessInfo) ProtoMessage ¶ added in v1.67.4
func (*ZkWithdrawWitnessInfo) ProtoMessage()
func (*ZkWithdrawWitnessInfo) ProtoReflect ¶ added in v1.67.4
func (x *ZkWithdrawWitnessInfo) ProtoReflect() protoreflect.Message
func (*ZkWithdrawWitnessInfo) Reset ¶ added in v1.67.4
func (x *ZkWithdrawWitnessInfo) Reset()
func (*ZkWithdrawWitnessInfo) String ¶ added in v1.67.4
func (x *ZkWithdrawWitnessInfo) String() string
type ZkspotClient ¶ added in v1.67.4
type ZkspotClient interface {
}
ZkspotClient is the client API for Zkspot service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewZkspotClient ¶ added in v1.67.4
func NewZkspotClient(cc grpc.ClientConnInterface) ZkspotClient
type ZkspotServer ¶ added in v1.67.4
type ZkspotServer interface {
}
ZkspotServer is the server API for Zkspot service.
type ZksyncAction ¶
type ZksyncAction struct {
// Types that are assignable to Value:
// *ZksyncAction_Deposit
// *ZksyncAction_ZkWithdraw
// *ZksyncAction_ZkTransfer
// *ZksyncAction_TransferToNew
// *ZksyncAction_ProxyExit
// *ZksyncAction_SetPubKey
// *ZksyncAction_FullExit
// *ZksyncAction_Swap
// *ZksyncAction_ContractToTree
// *ZksyncAction_TreeToContract
// *ZksyncAction_MintNFT
// *ZksyncAction_WithdrawNFT
// *ZksyncAction_TransferNFT
// *ZksyncAction_SetVerifyKey
// *ZksyncAction_CommitProof
// *ZksyncAction_SetVerifier
// *ZksyncAction_SetFee
// *ZksyncAction_SetTokenSymbol
// *ZksyncAction_SetExodusMode
// *ZksyncAction_Transfer
// *ZksyncAction_Withdraw
// *ZksyncAction_TransferToExec
// *ZksyncAction_LimitOrder
// *ZksyncAction_NftOrder
// *ZksyncAction_NftTakerOrder
// *ZksyncAction_NftOrder2
// *ZksyncAction_NftTakerOrder2
// *ZksyncAction_AssetLimitOrder
// *ZksyncAction_RevokeOrder
Value isZksyncAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,15,opt,name=ty,proto3" json:"ty,omitempty"`
// contains filtered or unexported fields
}
func (*ZksyncAction) Descriptor
deprecated
func (*ZksyncAction) Descriptor() ([]byte, []int)
Deprecated: Use ZksyncAction.ProtoReflect.Descriptor instead.
func (*ZksyncAction) GetAssetLimitOrder ¶ added in v1.67.4
func (x *ZksyncAction) GetAssetLimitOrder() *SpotAssetLimitOrder
func (*ZksyncAction) GetCommitProof ¶
func (x *ZksyncAction) GetCommitProof() *ZkCommitProof
func (*ZksyncAction) GetContractToTree ¶
func (x *ZksyncAction) GetContractToTree() *ZkContractToTree
func (*ZksyncAction) GetDeposit ¶
func (x *ZksyncAction) GetDeposit() *ZkDeposit
func (*ZksyncAction) GetFullExit ¶
func (x *ZksyncAction) GetFullExit() *ZkFullExit
func (*ZksyncAction) GetLimitOrder ¶ added in v1.67.4
func (x *ZksyncAction) GetLimitOrder() *SpotLimitOrder
func (*ZksyncAction) GetMintNFT ¶ added in v1.67.4
func (x *ZksyncAction) GetMintNFT() *ZkMintNFT
func (*ZksyncAction) GetNftOrder ¶ added in v1.67.4
func (x *ZksyncAction) GetNftOrder() *SpotNftOrder
func (*ZksyncAction) GetNftOrder2 ¶ added in v1.67.4
func (x *ZksyncAction) GetNftOrder2() *SpotNftOrder
func (*ZksyncAction) GetNftTakerOrder ¶ added in v1.67.4
func (x *ZksyncAction) GetNftTakerOrder() *SpotNftTakerOrder
func (*ZksyncAction) GetNftTakerOrder2 ¶ added in v1.67.4
func (x *ZksyncAction) GetNftTakerOrder2() *SpotNftTakerOrder
func (*ZksyncAction) GetProxyExit ¶ added in v1.67.4
func (x *ZksyncAction) GetProxyExit() *ZkProxyExit
func (*ZksyncAction) GetRevokeOrder ¶ added in v1.67.4
func (x *ZksyncAction) GetRevokeOrder() *SpotRevokeOrder
func (*ZksyncAction) GetSetExodusMode ¶ added in v1.67.4
func (x *ZksyncAction) GetSetExodusMode() *ZkExodusMode
func (*ZksyncAction) GetSetFee ¶
func (x *ZksyncAction) GetSetFee() *ZkSetFee
func (*ZksyncAction) GetSetPubKey ¶
func (x *ZksyncAction) GetSetPubKey() *ZkSetPubKey
func (*ZksyncAction) GetSetTokenSymbol ¶ added in v1.67.4
func (x *ZksyncAction) GetSetTokenSymbol() *ZkTokenSymbol
func (*ZksyncAction) GetSetVerifier ¶
func (x *ZksyncAction) GetSetVerifier() *ZkVerifier
func (*ZksyncAction) GetSetVerifyKey ¶
func (x *ZksyncAction) GetSetVerifyKey() *ZkVerifyKey
func (*ZksyncAction) GetSwap ¶
func (x *ZksyncAction) GetSwap() *ZkSwap
func (*ZksyncAction) GetTransfer ¶
func (x *ZksyncAction) GetTransfer() *types.AssetsTransfer
func (*ZksyncAction) GetTransferNFT ¶ added in v1.67.4
func (x *ZksyncAction) GetTransferNFT() *ZkTransferNFT
func (*ZksyncAction) GetTransferToExec ¶ added in v1.67.4
func (x *ZksyncAction) GetTransferToExec() *types.AssetsTransferToExec
func (*ZksyncAction) GetTransferToNew ¶
func (x *ZksyncAction) GetTransferToNew() *ZkTransferToNew
func (*ZksyncAction) GetTreeToContract ¶
func (x *ZksyncAction) GetTreeToContract() *ZkTreeToContract
func (*ZksyncAction) GetTy ¶
func (x *ZksyncAction) GetTy() int32
func (*ZksyncAction) GetValue ¶
func (m *ZksyncAction) GetValue() isZksyncAction_Value
func (*ZksyncAction) GetWithdraw ¶
func (x *ZksyncAction) GetWithdraw() *types.AssetsWithdraw
func (*ZksyncAction) GetWithdrawNFT ¶ added in v1.67.4
func (x *ZksyncAction) GetWithdrawNFT() *ZkWithdrawNFT
func (*ZksyncAction) GetZkTransfer ¶ added in v1.67.4
func (x *ZksyncAction) GetZkTransfer() *ZkTransfer
func (*ZksyncAction) GetZkWithdraw ¶ added in v1.67.4
func (x *ZksyncAction) GetZkWithdraw() *ZkWithdraw
func (*ZksyncAction) ProtoMessage ¶
func (*ZksyncAction) ProtoMessage()
func (*ZksyncAction) ProtoReflect ¶
func (x *ZksyncAction) ProtoReflect() protoreflect.Message
func (*ZksyncAction) Reset ¶
func (x *ZksyncAction) Reset()
func (*ZksyncAction) String ¶
func (x *ZksyncAction) String() string
type ZksyncAction_AssetLimitOrder ¶ added in v1.67.4
type ZksyncAction_AssetLimitOrder struct {
AssetLimitOrder *SpotAssetLimitOrder `protobuf:"bytes,206,opt,name=assetLimitOrder,proto3,oneof"`
}
type ZksyncAction_CommitProof ¶
type ZksyncAction_CommitProof struct {
CommitProof *ZkCommitProof `protobuf:"bytes,32,opt,name=commitProof,proto3,oneof"`
}
type ZksyncAction_ContractToTree ¶
type ZksyncAction_ContractToTree struct {
ContractToTree *ZkContractToTree `protobuf:"bytes,9,opt,name=contractToTree,proto3,oneof"`
}
type ZksyncAction_Deposit ¶
type ZksyncAction_Deposit struct {
Deposit *ZkDeposit `protobuf:"bytes,1,opt,name=deposit,proto3,oneof"`
}
type ZksyncAction_FullExit ¶
type ZksyncAction_FullExit struct {
FullExit *ZkFullExit `protobuf:"bytes,7,opt,name=fullExit,proto3,oneof"`
}
type ZksyncAction_LimitOrder ¶ added in v1.67.4
type ZksyncAction_LimitOrder struct {
// spot
LimitOrder *SpotLimitOrder `protobuf:"bytes,201,opt,name=limitOrder,proto3,oneof"`
}
type ZksyncAction_MintNFT ¶ added in v1.67.4
type ZksyncAction_MintNFT struct {
MintNFT *ZkMintNFT `protobuf:"bytes,12,opt,name=mintNFT,proto3,oneof"`
}
type ZksyncAction_NftOrder ¶ added in v1.67.4
type ZksyncAction_NftOrder struct {
NftOrder *SpotNftOrder `protobuf:"bytes,202,opt,name=nftOrder,proto3,oneof"`
}
type ZksyncAction_NftOrder2 ¶ added in v1.67.4
type ZksyncAction_NftOrder2 struct {
NftOrder2 *SpotNftOrder `protobuf:"bytes,204,opt,name=nftOrder2,proto3,oneof"`
}
type ZksyncAction_NftTakerOrder ¶ added in v1.67.4
type ZksyncAction_NftTakerOrder struct {
NftTakerOrder *SpotNftTakerOrder `protobuf:"bytes,203,opt,name=nftTakerOrder,proto3,oneof"`
}
type ZksyncAction_NftTakerOrder2 ¶ added in v1.67.4
type ZksyncAction_NftTakerOrder2 struct {
NftTakerOrder2 *SpotNftTakerOrder `protobuf:"bytes,205,opt,name=nftTakerOrder2,proto3,oneof"`
}
type ZksyncAction_ProxyExit ¶ added in v1.67.4
type ZksyncAction_ProxyExit struct {
ProxyExit *ZkProxyExit `protobuf:"bytes,5,opt,name=proxyExit,proto3,oneof"`
}
type ZksyncAction_RevokeOrder ¶ added in v1.67.4
type ZksyncAction_RevokeOrder struct {
RevokeOrder *SpotRevokeOrder `protobuf:"bytes,207,opt,name=revokeOrder,proto3,oneof"`
}
type ZksyncAction_SetExodusMode ¶ added in v1.67.4
type ZksyncAction_SetExodusMode struct {
SetExodusMode *ZkExodusMode `protobuf:"bytes,36,opt,name=setExodusMode,proto3,oneof"`
}
type ZksyncAction_SetFee ¶
type ZksyncAction_SetFee struct {
SetFee *ZkSetFee `protobuf:"bytes,34,opt,name=setFee,proto3,oneof"`
}
type ZksyncAction_SetPubKey ¶
type ZksyncAction_SetPubKey struct {
SetPubKey *ZkSetPubKey `protobuf:"bytes,6,opt,name=setPubKey,proto3,oneof"`
}
type ZksyncAction_SetTokenSymbol ¶ added in v1.67.4
type ZksyncAction_SetTokenSymbol struct {
SetTokenSymbol *ZkTokenSymbol `protobuf:"bytes,35,opt,name=setTokenSymbol,proto3,oneof"`
}
type ZksyncAction_SetVerifier ¶
type ZksyncAction_SetVerifier struct {
SetVerifier *ZkVerifier `protobuf:"bytes,33,opt,name=setVerifier,proto3,oneof"`
}
type ZksyncAction_SetVerifyKey ¶
type ZksyncAction_SetVerifyKey struct {
SetVerifyKey *ZkVerifyKey `protobuf:"bytes,31,opt,name=setVerifyKey,proto3,oneof"`
}
type ZksyncAction_Swap ¶
type ZksyncAction_Swap struct {
Swap *ZkSwap `protobuf:"bytes,8,opt,name=swap,proto3,oneof"`
}
type ZksyncAction_Transfer ¶
type ZksyncAction_Transfer struct {
Transfer *types.AssetsTransfer `protobuf:"bytes,40,opt,name=transfer,proto3,oneof"`
}
type ZksyncAction_TransferNFT ¶ added in v1.67.4
type ZksyncAction_TransferNFT struct {
TransferNFT *ZkTransferNFT `protobuf:"bytes,14,opt,name=transferNFT,proto3,oneof"`
}
type ZksyncAction_TransferToExec ¶ added in v1.67.4
type ZksyncAction_TransferToExec struct {
TransferToExec *types.AssetsTransferToExec `protobuf:"bytes,42,opt,name=transferToExec,proto3,oneof"`
}
type ZksyncAction_TransferToNew ¶
type ZksyncAction_TransferToNew struct {
TransferToNew *ZkTransferToNew `protobuf:"bytes,4,opt,name=transferToNew,proto3,oneof"`
}
type ZksyncAction_TreeToContract ¶
type ZksyncAction_TreeToContract struct {
TreeToContract *ZkTreeToContract `protobuf:"bytes,10,opt,name=treeToContract,proto3,oneof"`
}
type ZksyncAction_Withdraw ¶
type ZksyncAction_Withdraw struct {
Withdraw *types.AssetsWithdraw `protobuf:"bytes,41,opt,name=withdraw,proto3,oneof"`
}
type ZksyncAction_WithdrawNFT ¶ added in v1.67.4
type ZksyncAction_WithdrawNFT struct {
WithdrawNFT *ZkWithdrawNFT `protobuf:"bytes,13,opt,name=withdrawNFT,proto3,oneof"`
}
type ZksyncAction_ZkTransfer ¶ added in v1.67.4
type ZksyncAction_ZkTransfer struct {
ZkTransfer *ZkTransfer `protobuf:"bytes,3,opt,name=zkTransfer,proto3,oneof"`
}
type ZksyncAction_ZkWithdraw ¶ added in v1.67.4
type ZksyncAction_ZkWithdraw struct {
ZkWithdraw *ZkWithdraw `protobuf:"bytes,2,opt,name=zkWithdraw,proto3,oneof"`
}
type ZksyncClient ¶
type ZksyncClient interface {
}
ZksyncClient is the client API for Zksync service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewZksyncClient ¶
func NewZksyncClient(cc grpc.ClientConnInterface) ZksyncClient
type ZksyncServer ¶
type ZksyncServer interface {
}
ZksyncServer is the server API for Zksync service.
type ZksyncType ¶
type ZksyncType struct {
types.ExecTypeBase
}
ZksyncType ...
func (*ZksyncType) CreateTx ¶ added in v1.67.4
func (e *ZksyncType) CreateTx(action string, msg json.RawMessage) (*types.Transaction, error)
CreateTx zksync 创建交易,系统构造缺省to地址为合约地址,对于transfer/transferToExec 的to地址需要特殊处理为paylaod的to地址,
func (*ZksyncType) GetLogMap ¶
func (e *ZksyncType) GetLogMap() map[int64]*types.LogInfo
GetLogMap 获取合约log相关信息
func (*ZksyncType) GetPayload ¶
func (e *ZksyncType) GetPayload() types.Message
GetPayload 获取合约action结构
func (*ZksyncType) GetTypeMap ¶
func (e *ZksyncType) GetTypeMap() map[string]int32
GetTypeMap 获取合约action的id和name信息