Documentation ¶
Index ¶
- Constants
- Variables
- func Byte2Str(v []byte) string
- func Byte2Uint64(v []byte) uint64
- func DecimalAddr2Hex(addr string, l int) (string, bool)
- func DecodePacVal(p []byte, expBitWidth int) string
- func FilterHexPrefix(s string) string
- func GetOpChunkNum(opType uint32) (int, error)
- func HexAddr2Decimal(addr string) (string, bool)
- func InitExecutor(cfg *types.Chain33Config)
- func InitFork(cfg *types.Chain33Config)
- func RegisterZksyncServer(s *grpc.Server, srv ZksyncServer)
- func SplitNFTContent(contentHash string) (*big.Int, *big.Int, string, error)
- func Str2Byte(v string) []byte
- func ZkFindExponentPart(s string) int
- func ZkTransferManExpPart(s string) (string, int)
- 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 AccountTokenBalanceReceipt
- func (*AccountTokenBalanceReceipt) Descriptor() ([]byte, []int)deprecated
- func (x *AccountTokenBalanceReceipt) GetAccountId() uint64
- func (x *AccountTokenBalanceReceipt) GetBalanceAfter() string
- func (x *AccountTokenBalanceReceipt) GetBalanceBefore() string
- func (x *AccountTokenBalanceReceipt) GetChain33Addr() string
- func (x *AccountTokenBalanceReceipt) GetEthAddress() string
- func (x *AccountTokenBalanceReceipt) GetTokenId() uint64
- func (*AccountTokenBalanceReceipt) ProtoMessage()
- func (x *AccountTokenBalanceReceipt) ProtoReflect() protoreflect.Message
- func (x *AccountTokenBalanceReceipt) Reset()
- func (x *AccountTokenBalanceReceipt) 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 CommitProofState
- func (*CommitProofState) Descriptor() ([]byte, []int)deprecated
- func (x *CommitProofState) GetBlockEnd() uint64
- func (x *CommitProofState) GetBlockStart() 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) GetProof() string
- func (x *CommitProofState) GetProofId() uint64
- func (x *CommitProofState) GetPubDatas() []string
- func (x *CommitProofState) GetPublicInput() string
- func (*CommitProofState) ProtoMessage()
- func (x *CommitProofState) ProtoReflect() protoreflect.Message
- func (x *CommitProofState) Reset()
- func (x *CommitProofState) String() string
- 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 L1PriorityID
- type LastOnChainProof
- func (*LastOnChainProof) Descriptor() ([]byte, []int)deprecated
- 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) GetLeafHash() []byte
- func (x *Leaf) GetProxyPubKeys() *AccountProxyPubKeys
- func (x *Leaf) GetPubKey() *ZkPubKey
- func (x *Leaf) GetTokenHash() []byte
- func (x *Leaf) GetTokenIds() []uint64
- func (*Leaf) ProtoMessage()
- func (x *Leaf) ProtoReflect() protoreflect.Message
- func (x *Leaf) Reset()
- func (x *Leaf) 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 OpBlockInfo
- func (*OpBlockInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OpBlockInfo) GetHeight() int64
- func (x *OpBlockInfo) GetTxIndex() int32
- func (*OpBlockInfo) ProtoMessage()
- func (x *OpBlockInfo) ProtoReflect() protoreflect.Message
- func (x *OpBlockInfo) Reset()
- func (x *OpBlockInfo) String() string
- type OperationInfo
- func (*OperationInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OperationInfo) GetBlockHeight() uint64
- 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 OperationSpecialData
- func (*OperationSpecialData) Descriptor() ([]byte, []int)deprecated
- func (x *OperationSpecialData) GetAccountID() uint64
- func (x *OperationSpecialData) GetAmount() []string
- func (x *OperationSpecialData) GetChainID() []uint32
- func (x *OperationSpecialData) GetContentHash() []string
- func (x *OperationSpecialData) GetPricePair() []*OrderPricePair
- func (x *OperationSpecialData) GetPubKey() *ZkPubKey
- func (x *OperationSpecialData) GetPubKeyType() uint64
- func (x *OperationSpecialData) GetRecipientAddr() string
- func (x *OperationSpecialData) GetRecipientID() uint64
- func (x *OperationSpecialData) GetSigData() *ZkSignature
- func (x *OperationSpecialData) GetTokenID() []uint64
- func (*OperationSpecialData) ProtoMessage()
- func (x *OperationSpecialData) ProtoReflect() protoreflect.Message
- func (x *OperationSpecialData) Reset()
- func (x *OperationSpecialData) 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 OrderPricePair
- func (*OrderPricePair) Descriptor() ([]byte, []int)deprecated
- func (x *OrderPricePair) GetBuy() string
- func (x *OrderPricePair) GetSell() string
- func (*OrderPricePair) ProtoMessage()
- func (x *OrderPricePair) ProtoReflect() protoreflect.Message
- func (x *OrderPricePair) Reset()
- func (x *OrderPricePair) String() string
- type Priority2QueueId
- func (*Priority2QueueId) Descriptor() ([]byte, []int)deprecated
- func (x *Priority2QueueId) GetPriorityId() int64
- func (x *Priority2QueueId) GetQueueId() int64
- func (*Priority2QueueId) ProtoMessage()
- func (x *Priority2QueueId) ProtoReflect() protoreflect.Message
- func (x *Priority2QueueId) Reset()
- func (x *Priority2QueueId) String() string
- type ProofId2QueueIdData
- func (*ProofId2QueueIdData) Descriptor() ([]byte, []int)deprecated
- func (x *ProofId2QueueIdData) GetFirstQueueId() int64
- func (x *ProofId2QueueIdData) GetLastQueueId() int64
- func (x *ProofId2QueueIdData) GetProofId() uint64
- func (*ProofId2QueueIdData) ProtoMessage()
- func (x *ProofId2QueueIdData) ProtoReflect() protoreflect.Message
- func (x *ProofId2QueueIdData) Reset()
- func (x *ProofId2QueueIdData) String() string
- type QueryProofInfo
- func (*QueryProofInfo) Descriptor() ([]byte, []int)deprecated
- func (x *QueryProofInfo) GetProof() *ZkCommitProof
- func (x *QueryProofInfo) GetQueues() *ProofId2QueueIdData
- func (*QueryProofInfo) ProtoMessage()
- func (x *QueryProofInfo) ProtoReflect() protoreflect.Message
- func (x *QueryProofInfo) Reset()
- func (x *QueryProofInfo) String() string
- 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 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 ReceiptL1PriorityID
- func (*ReceiptL1PriorityID) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptL1PriorityID) GetCurrent() int64
- func (x *ReceiptL1PriorityID) GetPrev() int64
- func (*ReceiptL1PriorityID) ProtoMessage()
- func (x *ReceiptL1PriorityID) ProtoReflect() protoreflect.Message
- func (x *ReceiptL1PriorityID) Reset()
- func (x *ReceiptL1PriorityID) String() string
- type ReceiptL2FirstQueueID
- func (*ReceiptL2FirstQueueID) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptL2FirstQueueID) GetCurrent() int64
- func (x *ReceiptL2FirstQueueID) GetPrev() int64
- func (*ReceiptL2FirstQueueID) ProtoMessage()
- func (x *ReceiptL2FirstQueueID) ProtoReflect() protoreflect.Message
- func (x *ReceiptL2FirstQueueID) Reset()
- func (x *ReceiptL2FirstQueueID) String() string
- type ReceiptL2LastQueueID
- func (*ReceiptL2LastQueueID) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptL2LastQueueID) GetCurrent() int64
- func (x *ReceiptL2LastQueueID) GetPrev() int64
- func (*ReceiptL2LastQueueID) ProtoMessage()
- func (x *ReceiptL2LastQueueID) ProtoReflect() protoreflect.Message
- func (x *ReceiptL2LastQueueID) Reset()
- func (x *ReceiptL2LastQueueID) String() string
- type ReceiptL2QueueIDData
- func (*ReceiptL2QueueIDData) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptL2QueueIDData) GetId() int64
- func (x *ReceiptL2QueueIDData) GetOp() *ZkOperation
- func (*ReceiptL2QueueIDData) ProtoMessage()
- func (x *ReceiptL2QueueIDData) ProtoReflect() protoreflect.Message
- func (x *ReceiptL2QueueIDData) Reset()
- func (x *ReceiptL2QueueIDData) String() string
- type ReceiptProofId2QueueIDData
- func (*ReceiptProofId2QueueIDData) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptProofId2QueueIDData) GetData() *ProofId2QueueIdData
- func (*ReceiptProofId2QueueIDData) ProtoMessage()
- func (x *ReceiptProofId2QueueIDData) ProtoReflect() protoreflect.Message
- func (x *ReceiptProofId2QueueIDData) Reset()
- func (x *ReceiptProofId2QueueIDData) 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 RelayerOperators
- type RootInfo
- func (*RootInfo) Descriptor() ([]byte, []int)deprecated
- func (x *RootInfo) GetHeight() int32
- func (x *RootInfo) GetRootHash() []byte
- func (x *RootInfo) GetStartIndex() uint64
- func (*RootInfo) ProtoMessage()
- func (x *RootInfo) ProtoReflect() protoreflect.Message
- func (x *RootInfo) Reset()
- func (x *RootInfo) String() string
- type SetPubKeyReceipt
- func (*SetPubKeyReceipt) Descriptor() ([]byte, []int)deprecated
- func (x *SetPubKeyReceipt) GetAccountId() uint64
- func (x *SetPubKeyReceipt) GetPubKey() *ZkPubKey
- func (x *SetPubKeyReceipt) GetPubKeyTy() uint64
- func (*SetPubKeyReceipt) ProtoMessage()
- func (x *SetPubKeyReceipt) ProtoReflect() protoreflect.Message
- func (x *SetPubKeyReceipt) Reset()
- func (x *SetPubKeyReceipt) 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 SubTree
- type TokenBalance
- func (*TokenBalance) Descriptor() ([]byte, []int)deprecated
- func (x *TokenBalance) GetBalance() string
- func (x *TokenBalance) GetTokenHash() []byte
- 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 TransferReceipt4L2
- func (*TransferReceipt4L2) Descriptor() ([]byte, []int)deprecated
- func (x *TransferReceipt4L2) GetFrom() *AccountTokenBalanceReceipt
- func (x *TransferReceipt4L2) GetTo() *AccountTokenBalanceReceipt
- func (*TransferReceipt4L2) ProtoMessage()
- func (x *TransferReceipt4L2) ProtoReflect() protoreflect.Message
- func (x *TransferReceipt4L2) Reset()
- func (x *TransferReceipt4L2) String() string
- type UnimplementedZksyncServer
- type ZkAcctRollbackInfo
- func (*ZkAcctRollbackInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkAcctRollbackInfo) GetAccountId() uint64
- func (x *ZkAcctRollbackInfo) GetBalance() string
- func (x *ZkAcctRollbackInfo) GetGap() string
- func (x *ZkAcctRollbackInfo) GetNeedRollback() string
- func (x *ZkAcctRollbackInfo) GetTokenId() uint64
- func (*ZkAcctRollbackInfo) ProtoMessage()
- func (x *ZkAcctRollbackInfo) ProtoReflect() protoreflect.Message
- func (x *ZkAcctRollbackInfo) Reset()
- func (x *ZkAcctRollbackInfo) String() string
- type ZkBatchOperation
- type ZkCommitProof
- func (*ZkCommitProof) Descriptor() ([]byte, []int)deprecated
- func (x *ZkCommitProof) GetBlockEnd() uint64
- func (x *ZkCommitProof) GetBlockStart() 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 ZkContentHash
- func (*ZkContentHash) Descriptor() ([]byte, []int)deprecated
- func (x *ZkContentHash) GetPart1() string
- func (x *ZkContentHash) GetPart2() string
- func (*ZkContentHash) ProtoMessage()
- func (x *ZkContentHash) ProtoReflect() protoreflect.Message
- func (x *ZkContentHash) Reset()
- func (x *ZkContentHash) 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) GetBlockInfo() *OpBlockInfo
- 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) GetBlockInfo() *OpBlockInfo
- 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) GetL1PriorityId() 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) GetBlockInfo() *OpBlockInfo
- func (x *ZkDepositWitnessInfo) GetEthAddress() string
- func (x *ZkDepositWitnessInfo) GetL1PriorityID() int64
- 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) 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
- func (*ZkExodusMode) Descriptor() ([]byte, []int)deprecated
- func (x *ZkExodusMode) GetMode() uint32
- func (x *ZkExodusMode) GetRollback() *ZkExodusRollbackModeParm
- func (m *ZkExodusMode) GetValue() isZkExodusMode_Value
- func (*ZkExodusMode) ProtoMessage()
- func (x *ZkExodusMode) ProtoReflect() protoreflect.Message
- func (x *ZkExodusMode) Reset()
- func (x *ZkExodusMode) String() string
- type ZkExodusMode_Rollback
- type ZkExodusRollbackModeParm
- func (*ZkExodusRollbackModeParm) Descriptor() ([]byte, []int)deprecated
- func (x *ZkExodusRollbackModeParm) GetKnownBalanceGap() uint32
- func (x *ZkExodusRollbackModeParm) GetLastSuccessProofId() uint64
- func (*ZkExodusRollbackModeParm) ProtoMessage()
- func (x *ZkExodusRollbackModeParm) ProtoReflect() protoreflect.Message
- func (x *ZkExodusRollbackModeParm) Reset()
- func (x *ZkExodusRollbackModeParm) String() string
- 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) 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 ZkForceExit
- func (*ZkForceExit) Descriptor() ([]byte, []int)deprecated
- func (x *ZkForceExit) GetAccountId() uint64
- func (x *ZkForceExit) GetSignature() *ZkSignature
- func (x *ZkForceExit) GetTokenId() uint64
- func (*ZkForceExit) ProtoMessage()
- func (x *ZkForceExit) ProtoReflect() protoreflect.Message
- func (x *ZkForceExit) Reset()
- func (x *ZkForceExit) 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) GetBlockInfo() *OpBlockInfo
- 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() uint64
- func (x *ZkMintNFTWitnessInfo) GetBlockInfo() *OpBlockInfo
- 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 ZkOpFeeData
- type ZkOpNFTData
- func (*ZkOpNFTData) Descriptor() ([]byte, []int)deprecated
- func (x *ZkOpNFTData) GetAmount() string
- func (x *ZkOpNFTData) GetContent() *ZkContentHash
- func (x *ZkOpNFTData) GetCreatorId() uint64
- func (x *ZkOpNFTData) GetCreatorSerialId() uint64
- func (x *ZkOpNFTData) GetErcProtocol() uint64
- func (x *ZkOpNFTData) GetMintAmount() string
- func (x *ZkOpNFTData) GetTokenId() uint64
- func (*ZkOpNFTData) ProtoMessage()
- func (x *ZkOpNFTData) ProtoReflect() protoreflect.Message
- func (x *ZkOpNFTData) Reset()
- func (x *ZkOpNFTData) String() string
- type ZkOpSwapData
- func (*ZkOpSwapData) Descriptor() ([]byte, []int)deprecated
- func (x *ZkOpSwapData) GetAmount() string
- func (x *ZkOpSwapData) GetFee() string
- func (x *ZkOpSwapData) GetTokenId() uint64
- func (*ZkOpSwapData) ProtoMessage()
- func (x *ZkOpSwapData) ProtoReflect() protoreflect.Message
- func (x *ZkOpSwapData) Reset()
- func (x *ZkOpSwapData) 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 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) GetFee() *ZkFee
- 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) GetBlockInfo() *OpBlockInfo
- 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 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) GetDecimal() uint32
- 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) 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 ZkSetPubKeyData
- func (*ZkSetPubKeyData) Descriptor() ([]byte, []int)deprecated
- func (x *ZkSetPubKeyData) GetPubKey() *ZkPubKey
- func (x *ZkSetPubKeyData) GetTy() uint64
- func (*ZkSetPubKeyData) ProtoMessage()
- func (x *ZkSetPubKeyData) ProtoReflect() protoreflect.Message
- func (x *ZkSetPubKeyData) Reset()
- func (x *ZkSetPubKeyData) String() string
- type ZkSetPubKeyWitnessInfo
- func (*ZkSetPubKeyWitnessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZkSetPubKeyWitnessInfo) GetAccountID() uint64
- func (x *ZkSetPubKeyWitnessInfo) GetBlockInfo() *OpBlockInfo
- 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) GetBlockInfo() *OpBlockInfo
- 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 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() uint64
- func (x *ZkTransferNFTWitnessInfo) GetBlockInfo() *OpBlockInfo
- 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) GetToEthAddress() string
- func (x *ZkTransferToNew) GetToLayer2Address() 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) GetBlockInfo() *OpBlockInfo
- 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) GetBlockInfo() *OpBlockInfo
- 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) GetBlockInfo() *OpBlockInfo
- 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 ZkVerifier
- type ZkVerifyKey
- 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) GetBlockInfo() *OpBlockInfo
- 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() uint64
- func (x *ZkWithdrawNFTWitnessInfo) GetNFTTokenID() uint64
- func (x *ZkWithdrawNFTWitnessInfo) GetSignature() *ZkSignature
- func (x *ZkWithdrawNFTWitnessInfo) GetWithdrawAmount() uint64
- 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) GetBlockInfo() *OpBlockInfo
- 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 ZksyncAction
- func (*ZksyncAction) Descriptor() ([]byte, []int)deprecated
- func (x *ZksyncAction) GetCommitProof() *ZkCommitProof
- func (x *ZksyncAction) GetContractToTree() *ZkContractToTree
- func (x *ZksyncAction) GetDeposit() *ZkDeposit
- func (x *ZksyncAction) GetFullExit() *ZkFullExit
- func (x *ZksyncAction) GetMintNFT() *ZkMintNFT
- func (x *ZksyncAction) GetProxyExit() *ZkProxyExit
- 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_CommitProof
- type ZksyncAction_ContractToTree
- type ZksyncAction_Deposit
- type ZksyncAction_FullExit
- type ZksyncAction_MintNFT
- type ZksyncAction_ProxyExit
- 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 ( EthAddrLen = 40 BTYAddrLen = 64 )
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 以方便在合约使用 TySetExodusModeAction = 107 //设置token的symbol 以方便在合约使用 TyAssetTransferAction = 120 //从tree转到zksync合约的资产账户之间转账 TyAssetTransferToExecAction = 121 //从tree转到zksync合约的资产转到执行器 TyAssetWithdrawAction = 122 //从执行器提款到zksync合约账户 NameNoopAction = "Noop" NameDepositAction = "Deposit" NameWithdrawAction = "ZkWithdraw" NameContractToTreeAction = "ContractToTree" NameTreeToContractAction = "TreeToContract" NameTransferAction = "ZkTransfer" NameTransferToNewAction = "TransferToNew" NameForceExitAction = "ProxyExit" NameSetPubKeyAction = "SetPubKey" NameFullExitAction = "FullExit" NameSwapAction = "Swap" NameFeeAction = "Fee" NameMintNFTAction = "MintNFT" NameWithdrawNFTACTION = "WithdrawNFT" NameTransferNFTAction = "TransferNFT" NameContractToTreeNewAction = "ContractToTreeNew" NameSetVerifyKeyAction = "SetVerifyKey" NameCommitProofAction = "CommitProof" NameSetVerifierAction = "SetVerifier" NameSetFeeAction = "SetFee" NameSetTokenSymbolAction = "SetTokenSymbol" NameSetExodusMode = "SetExodusMode" 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 TyMintNFT2SystemLog = 115 //向系统账户铸造NFT,且其token ID为全局nft token id,因为其余额设置为token hash,所以使用不同的log标志 TySetVerifyKeyLog = 202 //设置电路验证key TyCommitProofLog = 203 //提交zk proof TySetVerifierLog = 204 //设置验证者 TySetL1PriorityId = 205 //设置 l1 priority id; TySetFeeLog = 206 TyCommitProofRecordLog = 207 //提交zk proof TyLogContractAssetDeposit = 208 //tree资产存储到contract TyLogContractAssetWithdraw = 209 //contract 资产withdraw到tree TyLogSetTokenSymbol = 210 //设置电路验证key TyLogSetExodusMode = 211 //系统设置exodus mode TySetL2OpQueueIdLog = 212 //设置 L2 上的 operation 到queue TySetL2OpFirstQueueIdLog = 213 //设置 L2 上的 first queue id TySetL2OpLastQueueIdLog = 214 //设置 L2 上的 last queue id TySetProofId2QueueIdLog = 215 //设置 proofId的pubdata的最后一个op 对应的最后一个queue id TyDepositRollbackLog = 216 //deposit 回滚的log TyWithdrawRollbackLog = 217 //withdraw 回滚的log TyPriority2QueIdLog = 218 //priority id to queueId )
log类型id值
const ( ListDESC = int32(0) ListASC = int32(1) ListSeek = int32(2) Add = int32(0) Sub = int32(1) MaxDecimalAllow = 18 MinDecimalAllow = 4 )
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 ( InitMode = 0 NormalMode = 1 //从pause模式可以恢复为normal mode PauseMode = 2 //暂停模式,管理员在监测到存款异常后可以设置暂停模式,暂停所有操作,以防止错误的deposit转账,检查正常可以恢复 ExodusMode = 3 //逃生舱预备阶段,停止所有除contract2tree外的操作,不可以恢复到Normal ExodusFinalMode = 4 //逃生舱最终阶段 回滚last successed proof后的deposit和withdraw操作,统计balance gap信息,收敛最终treeRoot,保证尽快退出资产到L1 )
const ( ModeValNo = 0 // ModeValYes = 1 // )
const ZkCfgEthFeeAddr = "ethFeeAddr"
配置的系统收交易费账户
const ZkCfgLayer2FeeAddr = "layer2FeeAddr"
const ZkManagerKey = "manager"
const ZkMimcHashSeed = "seed"
const ZkVerifierKey = "verifier"
const Zksync = "zksync"
Zksync 执行器名称定义
Variables ¶
var ( FeeMap = map[int64]string{ TyWithdrawAction: "1000000", TyTransferAction: "100000", TyTransferToNewAction: "100000", TyProxyExitAction: "1000000", TyFullExitAction: "1000000", TySwapAction: "100000", TyContractToTreeAction: "10000", TyTreeToContractAction: "10000", TyMintNFTAction: "100", TyWithdrawNFTAction: "100", TyTransferNFTAction: "100", } )
var File_receipt4l2_proto protoreflect.FileDescriptor
var File_witness_proto protoreflect.FileDescriptor
var File_zksync_proto protoreflect.FileDescriptor
Functions ¶
func Byte2Uint64 ¶
func DecimalAddr2Hex ¶
DecimalAddr2Hex 10进制地址转16进制 需要传入地址期望长度 目前有两种地址格式 一种长度为40 另一种长度为64
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 RegisterZksyncServer ¶
func RegisterZksyncServer(s *grpc.Server, srv ZksyncServer)
func SplitNFTContent ¶ added in v1.67.4
func ZkFindExponentPart ¶ added in v1.67.4
ZkFindExponentPart 找到一个数的指数数量,最大31个0,也就是10^31,循环div 10, 找到最后一个余数非0
func ZkTransferManExpPart ¶ added in v1.67.4
ZkTransferManExpPart 获取s的man和exp部分,exp部分只统计0的个数,man部分为尾部去掉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 AccountTokenBalanceReceipt ¶ added in v1.67.5
type AccountTokenBalanceReceipt 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"` //账户对应的以太坊地址 Chain33Addr string `protobuf:"bytes,3,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"` //chain33地址 TokenId uint64 `protobuf:"varint,4,opt,name=tokenId,proto3" json:"tokenId,omitempty"` //叶子下拥有的tokenId BalanceBefore string `protobuf:"bytes,5,opt,name=balanceBefore,proto3" json:"balanceBefore,omitempty"` BalanceAfter string `protobuf:"bytes,6,opt,name=balanceAfter,proto3" json:"balanceAfter,omitempty"` // contains filtered or unexported fields }
func (*AccountTokenBalanceReceipt) Descriptor
deprecated
added in
v1.67.5
func (*AccountTokenBalanceReceipt) Descriptor() ([]byte, []int)
Deprecated: Use AccountTokenBalanceReceipt.ProtoReflect.Descriptor instead.
func (*AccountTokenBalanceReceipt) GetAccountId ¶ added in v1.67.5
func (x *AccountTokenBalanceReceipt) GetAccountId() uint64
func (*AccountTokenBalanceReceipt) GetBalanceAfter ¶ added in v1.67.5
func (x *AccountTokenBalanceReceipt) GetBalanceAfter() string
func (*AccountTokenBalanceReceipt) GetBalanceBefore ¶ added in v1.67.5
func (x *AccountTokenBalanceReceipt) GetBalanceBefore() string
func (*AccountTokenBalanceReceipt) GetChain33Addr ¶ added in v1.67.5
func (x *AccountTokenBalanceReceipt) GetChain33Addr() string
func (*AccountTokenBalanceReceipt) GetEthAddress ¶ added in v1.67.5
func (x *AccountTokenBalanceReceipt) GetEthAddress() string
func (*AccountTokenBalanceReceipt) GetTokenId ¶ added in v1.67.5
func (x *AccountTokenBalanceReceipt) GetTokenId() uint64
func (*AccountTokenBalanceReceipt) ProtoMessage ¶ added in v1.67.5
func (*AccountTokenBalanceReceipt) ProtoMessage()
func (*AccountTokenBalanceReceipt) ProtoReflect ¶ added in v1.67.5
func (x *AccountTokenBalanceReceipt) ProtoReflect() protoreflect.Message
func (*AccountTokenBalanceReceipt) Reset ¶ added in v1.67.5
func (x *AccountTokenBalanceReceipt) Reset()
func (*AccountTokenBalanceReceipt) String ¶ added in v1.67.5
func (x *AccountTokenBalanceReceipt) 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 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"` //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"` 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"` //all tx pub datas, record proof 的验证需要用到 PubDatas []string `protobuf:"bytes,14,rep,name=pubDatas,proto3" json:"pubDatas,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) 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) GetProof ¶
func (x *CommitProofState) GetProof() string
func (*CommitProofState) GetProofId ¶
func (x *CommitProofState) GetProofId() uint64
func (*CommitProofState) GetPubDatas ¶ added in v1.67.5
func (x *CommitProofState) GetPubDatas() []string
func (*CommitProofState) GetPublicInput ¶
func (x *CommitProofState) GetPublicInput() string
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 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 L1PriorityID ¶ added in v1.67.5
type L1PriorityID struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` //需要为string,不能为int64,因为db不支持ID=0的时候 // contains filtered or unexported fields }
func (*L1PriorityID) Descriptor
deprecated
added in
v1.67.5
func (*L1PriorityID) Descriptor() ([]byte, []int)
Deprecated: Use L1PriorityID.ProtoReflect.Descriptor instead.
func (*L1PriorityID) GetID ¶ added in v1.67.5
func (x *L1PriorityID) GetID() string
func (*L1PriorityID) ProtoMessage ¶ added in v1.67.5
func (*L1PriorityID) ProtoMessage()
func (*L1PriorityID) ProtoReflect ¶ added in v1.67.5
func (x *L1PriorityID) ProtoReflect() protoreflect.Message
func (*L1PriorityID) Reset ¶ added in v1.67.5
func (x *L1PriorityID) Reset()
func (*L1PriorityID) String ¶ added in v1.67.5
func (x *L1PriorityID) String() string
type LastOnChainProof ¶ added in v1.67.4
type LastOnChainProof 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"` // 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) 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 []byte `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代理公钥,用于验证代理者的身份 LeafHash []byte `protobuf:"bytes,8,opt,name=leafHash,proto3" json:"leafHash,omitempty"` // contains filtered or unexported fields }
func (*Leaf) Descriptor
deprecated
func (*Leaf) GetAccountId ¶
func (*Leaf) GetChain33Addr ¶
func (*Leaf) GetEthAddress ¶
func (*Leaf) GetLeafHash ¶ added in v1.67.5
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 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 OpBlockInfo ¶ added in v1.67.5
type OpBlockInfo struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` TxIndex int32 `protobuf:"varint,2,opt,name=txIndex,proto3" json:"txIndex,omitempty"` // contains filtered or unexported fields }
optional, 记录operation的queue对应的tx的block height和txIndex,方便定位
func (*OpBlockInfo) Descriptor
deprecated
added in
v1.67.5
func (*OpBlockInfo) Descriptor() ([]byte, []int)
Deprecated: Use OpBlockInfo.ProtoReflect.Descriptor instead.
func (*OpBlockInfo) GetHeight ¶ added in v1.67.5
func (x *OpBlockInfo) GetHeight() int64
func (*OpBlockInfo) GetTxIndex ¶ added in v1.67.5
func (x *OpBlockInfo) GetTxIndex() int32
func (*OpBlockInfo) ProtoMessage ¶ added in v1.67.5
func (*OpBlockInfo) ProtoMessage()
func (*OpBlockInfo) ProtoReflect ¶ added in v1.67.5
func (x *OpBlockInfo) ProtoReflect() protoreflect.Message
func (*OpBlockInfo) Reset ¶ added in v1.67.5
func (x *OpBlockInfo) Reset()
func (*OpBlockInfo) String ¶ added in v1.67.5
func (x *OpBlockInfo) 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,6,rep,name=roots,proto3" json:"roots,omitempty"` //每个操作后的root //每个operation data由一对 操作前后数据组成,不同操作可以有多个操作数据,deposit:1,transfer:2 OperationBranches []*OperationPairBranch `protobuf:"bytes,7,rep,name=operationBranches,proto3" json:"operationBranches,omitempty"` //操作特殊数据,像订单数据 SpecialInfo *OperationSpecialInfo `protobuf:"bytes,8,opt,name=specialInfo,proto3" json:"specialInfo,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) 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 OperationSpecialData ¶
type OperationSpecialData struct { AccountID uint64 `protobuf:"varint,1,opt,name=accountID,proto3" json:"accountID,omitempty"` RecipientID uint64 `protobuf:"varint,2,opt,name=recipientID,proto3" json:"recipientID,omitempty"` //accountID侧设置的recipientID RecipientAddr string `protobuf:"bytes,3,opt,name=recipientAddr,proto3" json:"recipientAddr,omitempty"` //accountID侧设置的recipientAddr Amount []string `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount,omitempty"` //accountID侧最初设置的amount ChainID []uint32 `protobuf:"varint,5,rep,packed,name=chainID,proto3" json:"chainID,omitempty"` TokenID []uint64 `protobuf:"varint,6,rep,packed,name=tokenID,proto3" json:"tokenID,omitempty"` PricePair []*OrderPricePair `protobuf:"bytes,7,rep,name=pricePair,proto3" json:"pricePair,omitempty"` SigData *ZkSignature `protobuf:"bytes,8,opt,name=sigData,proto3" json:"sigData,omitempty"` ContentHash []string `protobuf:"bytes,9,rep,name=contentHash,proto3" json:"contentHash,omitempty"` PubKeyType uint64 `protobuf:"varint,10,opt,name=pubKeyType,proto3" json:"pubKeyType,omitempty"` PubKey *ZkPubKey `protobuf:"bytes,11,opt,name=pubKey,proto3" json:"pubKey,omitempty"` // contains filtered or unexported fields }
func (*OperationSpecialData) Descriptor
deprecated
func (*OperationSpecialData) Descriptor() ([]byte, []int)
Deprecated: Use OperationSpecialData.ProtoReflect.Descriptor instead.
func (*OperationSpecialData) GetAccountID ¶
func (x *OperationSpecialData) GetAccountID() uint64
func (*OperationSpecialData) GetAmount ¶
func (x *OperationSpecialData) GetAmount() []string
func (*OperationSpecialData) GetChainID ¶
func (x *OperationSpecialData) GetChainID() []uint32
func (*OperationSpecialData) GetContentHash ¶ added in v1.67.5
func (x *OperationSpecialData) GetContentHash() []string
func (*OperationSpecialData) GetPricePair ¶
func (x *OperationSpecialData) GetPricePair() []*OrderPricePair
func (*OperationSpecialData) GetPubKey ¶ added in v1.67.5
func (x *OperationSpecialData) GetPubKey() *ZkPubKey
func (*OperationSpecialData) GetPubKeyType ¶ added in v1.67.5
func (x *OperationSpecialData) GetPubKeyType() uint64
func (*OperationSpecialData) GetRecipientAddr ¶
func (x *OperationSpecialData) GetRecipientAddr() string
func (*OperationSpecialData) GetRecipientID ¶
func (x *OperationSpecialData) GetRecipientID() uint64
func (*OperationSpecialData) GetSigData ¶
func (x *OperationSpecialData) GetSigData() *ZkSignature
func (*OperationSpecialData) GetTokenID ¶
func (x *OperationSpecialData) GetTokenID() []uint64
func (*OperationSpecialData) ProtoMessage ¶
func (*OperationSpecialData) ProtoMessage()
func (*OperationSpecialData) ProtoReflect ¶
func (x *OperationSpecialData) ProtoReflect() protoreflect.Message
func (*OperationSpecialData) Reset ¶
func (x *OperationSpecialData) Reset()
func (*OperationSpecialData) String ¶
func (x *OperationSpecialData) 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 OrderPricePair ¶
type OrderPricePair struct { Sell string `protobuf:"bytes,1,opt,name=sell,proto3" json:"sell,omitempty"` Buy string `protobuf:"bytes,2,opt,name=buy,proto3" json:"buy,omitempty"` // contains filtered or unexported fields }
func (*OrderPricePair) Descriptor
deprecated
func (*OrderPricePair) Descriptor() ([]byte, []int)
Deprecated: Use OrderPricePair.ProtoReflect.Descriptor instead.
func (*OrderPricePair) GetBuy ¶
func (x *OrderPricePair) GetBuy() string
func (*OrderPricePair) GetSell ¶
func (x *OrderPricePair) GetSell() string
func (*OrderPricePair) ProtoMessage ¶
func (*OrderPricePair) ProtoMessage()
func (*OrderPricePair) ProtoReflect ¶
func (x *OrderPricePair) ProtoReflect() protoreflect.Message
func (*OrderPricePair) Reset ¶
func (x *OrderPricePair) Reset()
func (*OrderPricePair) String ¶
func (x *OrderPricePair) String() string
type Priority2QueueId ¶ added in v1.67.5
type Priority2QueueId struct { PriorityId int64 `protobuf:"varint,1,opt,name=priorityId,proto3" json:"priorityId,omitempty"` QueueId int64 `protobuf:"varint,2,opt,name=queueId,proto3" json:"queueId,omitempty"` // contains filtered or unexported fields }
func (*Priority2QueueId) Descriptor
deprecated
added in
v1.67.5
func (*Priority2QueueId) Descriptor() ([]byte, []int)
Deprecated: Use Priority2QueueId.ProtoReflect.Descriptor instead.
func (*Priority2QueueId) GetPriorityId ¶ added in v1.67.5
func (x *Priority2QueueId) GetPriorityId() int64
func (*Priority2QueueId) GetQueueId ¶ added in v1.67.5
func (x *Priority2QueueId) GetQueueId() int64
func (*Priority2QueueId) ProtoMessage ¶ added in v1.67.5
func (*Priority2QueueId) ProtoMessage()
func (*Priority2QueueId) ProtoReflect ¶ added in v1.67.5
func (x *Priority2QueueId) ProtoReflect() protoreflect.Message
func (*Priority2QueueId) Reset ¶ added in v1.67.5
func (x *Priority2QueueId) Reset()
func (*Priority2QueueId) String ¶ added in v1.67.5
func (x *Priority2QueueId) String() string
type ProofId2QueueIdData ¶ added in v1.67.5
type ProofId2QueueIdData struct { ProofId uint64 `protobuf:"varint,1,opt,name=proofId,proto3" json:"proofId,omitempty"` FirstQueueId int64 `protobuf:"varint,2,opt,name=firstQueueId,proto3" json:"firstQueueId,omitempty"` LastQueueId int64 `protobuf:"varint,3,opt,name=lastQueueId,proto3" json:"lastQueueId,omitempty"` // contains filtered or unexported fields }
func (*ProofId2QueueIdData) Descriptor
deprecated
added in
v1.67.5
func (*ProofId2QueueIdData) Descriptor() ([]byte, []int)
Deprecated: Use ProofId2QueueIdData.ProtoReflect.Descriptor instead.
func (*ProofId2QueueIdData) GetFirstQueueId ¶ added in v1.67.5
func (x *ProofId2QueueIdData) GetFirstQueueId() int64
func (*ProofId2QueueIdData) GetLastQueueId ¶ added in v1.67.5
func (x *ProofId2QueueIdData) GetLastQueueId() int64
func (*ProofId2QueueIdData) GetProofId ¶ added in v1.67.5
func (x *ProofId2QueueIdData) GetProofId() uint64
func (*ProofId2QueueIdData) ProtoMessage ¶ added in v1.67.5
func (*ProofId2QueueIdData) ProtoMessage()
func (*ProofId2QueueIdData) ProtoReflect ¶ added in v1.67.5
func (x *ProofId2QueueIdData) ProtoReflect() protoreflect.Message
func (*ProofId2QueueIdData) Reset ¶ added in v1.67.5
func (x *ProofId2QueueIdData) Reset()
func (*ProofId2QueueIdData) String ¶ added in v1.67.5
func (x *ProofId2QueueIdData) String() string
type QueryProofInfo ¶ added in v1.67.5
type QueryProofInfo struct { Proof *ZkCommitProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` Queues *ProofId2QueueIdData `protobuf:"bytes,2,opt,name=queues,proto3" json:"queues,omitempty"` // contains filtered or unexported fields }
func (*QueryProofInfo) Descriptor
deprecated
added in
v1.67.5
func (*QueryProofInfo) Descriptor() ([]byte, []int)
Deprecated: Use QueryProofInfo.ProtoReflect.Descriptor instead.
func (*QueryProofInfo) GetProof ¶ added in v1.67.5
func (x *QueryProofInfo) GetProof() *ZkCommitProof
func (*QueryProofInfo) GetQueues ¶ added in v1.67.5
func (x *QueryProofInfo) GetQueues() *ProofId2QueueIdData
func (*QueryProofInfo) ProtoMessage ¶ added in v1.67.5
func (*QueryProofInfo) ProtoMessage()
func (*QueryProofInfo) ProtoReflect ¶ added in v1.67.5
func (x *QueryProofInfo) ProtoReflect() protoreflect.Message
func (*QueryProofInfo) Reset ¶ added in v1.67.5
func (x *QueryProofInfo) Reset()
func (*QueryProofInfo) String ¶ added in v1.67.5
func (x *QueryProofInfo) String() string
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 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 ReceiptL1PriorityID ¶ added in v1.67.5
type ReceiptL1PriorityID 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 (*ReceiptL1PriorityID) Descriptor
deprecated
added in
v1.67.5
func (*ReceiptL1PriorityID) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptL1PriorityID.ProtoReflect.Descriptor instead.
func (*ReceiptL1PriorityID) GetCurrent ¶ added in v1.67.5
func (x *ReceiptL1PriorityID) GetCurrent() int64
func (*ReceiptL1PriorityID) GetPrev ¶ added in v1.67.5
func (x *ReceiptL1PriorityID) GetPrev() int64
func (*ReceiptL1PriorityID) ProtoMessage ¶ added in v1.67.5
func (*ReceiptL1PriorityID) ProtoMessage()
func (*ReceiptL1PriorityID) ProtoReflect ¶ added in v1.67.5
func (x *ReceiptL1PriorityID) ProtoReflect() protoreflect.Message
func (*ReceiptL1PriorityID) Reset ¶ added in v1.67.5
func (x *ReceiptL1PriorityID) Reset()
func (*ReceiptL1PriorityID) String ¶ added in v1.67.5
func (x *ReceiptL1PriorityID) String() string
type ReceiptL2FirstQueueID ¶ added in v1.67.5
type ReceiptL2FirstQueueID 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 (*ReceiptL2FirstQueueID) Descriptor
deprecated
added in
v1.67.5
func (*ReceiptL2FirstQueueID) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptL2FirstQueueID.ProtoReflect.Descriptor instead.
func (*ReceiptL2FirstQueueID) GetCurrent ¶ added in v1.67.5
func (x *ReceiptL2FirstQueueID) GetCurrent() int64
func (*ReceiptL2FirstQueueID) GetPrev ¶ added in v1.67.5
func (x *ReceiptL2FirstQueueID) GetPrev() int64
func (*ReceiptL2FirstQueueID) ProtoMessage ¶ added in v1.67.5
func (*ReceiptL2FirstQueueID) ProtoMessage()
func (*ReceiptL2FirstQueueID) ProtoReflect ¶ added in v1.67.5
func (x *ReceiptL2FirstQueueID) ProtoReflect() protoreflect.Message
func (*ReceiptL2FirstQueueID) Reset ¶ added in v1.67.5
func (x *ReceiptL2FirstQueueID) Reset()
func (*ReceiptL2FirstQueueID) String ¶ added in v1.67.5
func (x *ReceiptL2FirstQueueID) String() string
type ReceiptL2LastQueueID ¶ added in v1.67.5
type ReceiptL2LastQueueID 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 }
记录L2 的所有operation 到queue,以和proof校验
func (*ReceiptL2LastQueueID) Descriptor
deprecated
added in
v1.67.5
func (*ReceiptL2LastQueueID) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptL2LastQueueID.ProtoReflect.Descriptor instead.
func (*ReceiptL2LastQueueID) GetCurrent ¶ added in v1.67.5
func (x *ReceiptL2LastQueueID) GetCurrent() int64
func (*ReceiptL2LastQueueID) GetPrev ¶ added in v1.67.5
func (x *ReceiptL2LastQueueID) GetPrev() int64
func (*ReceiptL2LastQueueID) ProtoMessage ¶ added in v1.67.5
func (*ReceiptL2LastQueueID) ProtoMessage()
func (*ReceiptL2LastQueueID) ProtoReflect ¶ added in v1.67.5
func (x *ReceiptL2LastQueueID) ProtoReflect() protoreflect.Message
func (*ReceiptL2LastQueueID) Reset ¶ added in v1.67.5
func (x *ReceiptL2LastQueueID) Reset()
func (*ReceiptL2LastQueueID) String ¶ added in v1.67.5
func (x *ReceiptL2LastQueueID) String() string
type ReceiptL2QueueIDData ¶ added in v1.67.5
type ReceiptL2QueueIDData struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Op *ZkOperation `protobuf:"bytes,2,opt,name=op,proto3" json:"op,omitempty"` // contains filtered or unexported fields }
func (*ReceiptL2QueueIDData) Descriptor
deprecated
added in
v1.67.5
func (*ReceiptL2QueueIDData) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptL2QueueIDData.ProtoReflect.Descriptor instead.
func (*ReceiptL2QueueIDData) GetId ¶ added in v1.67.5
func (x *ReceiptL2QueueIDData) GetId() int64
func (*ReceiptL2QueueIDData) GetOp ¶ added in v1.67.5
func (x *ReceiptL2QueueIDData) GetOp() *ZkOperation
func (*ReceiptL2QueueIDData) ProtoMessage ¶ added in v1.67.5
func (*ReceiptL2QueueIDData) ProtoMessage()
func (*ReceiptL2QueueIDData) ProtoReflect ¶ added in v1.67.5
func (x *ReceiptL2QueueIDData) ProtoReflect() protoreflect.Message
func (*ReceiptL2QueueIDData) Reset ¶ added in v1.67.5
func (x *ReceiptL2QueueIDData) Reset()
func (*ReceiptL2QueueIDData) String ¶ added in v1.67.5
func (x *ReceiptL2QueueIDData) String() string
type ReceiptProofId2QueueIDData ¶ added in v1.67.5
type ReceiptProofId2QueueIDData struct { Data *ProofId2QueueIdData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ReceiptProofId2QueueIDData) Descriptor
deprecated
added in
v1.67.5
func (*ReceiptProofId2QueueIDData) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptProofId2QueueIDData.ProtoReflect.Descriptor instead.
func (*ReceiptProofId2QueueIDData) GetData ¶ added in v1.67.5
func (x *ReceiptProofId2QueueIDData) GetData() *ProofId2QueueIdData
func (*ReceiptProofId2QueueIDData) ProtoMessage ¶ added in v1.67.5
func (*ReceiptProofId2QueueIDData) ProtoMessage()
func (*ReceiptProofId2QueueIDData) ProtoReflect ¶ added in v1.67.5
func (x *ReceiptProofId2QueueIDData) ProtoReflect() protoreflect.Message
func (*ReceiptProofId2QueueIDData) Reset ¶ added in v1.67.5
func (x *ReceiptProofId2QueueIDData) Reset()
func (*ReceiptProofId2QueueIDData) String ¶ added in v1.67.5
func (x *ReceiptProofId2QueueIDData) 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 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 []byte `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 SetPubKeyReceipt ¶ added in v1.67.5
type SetPubKeyReceipt 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"` // contains filtered or unexported fields }
func (*SetPubKeyReceipt) Descriptor
deprecated
added in
v1.67.5
func (*SetPubKeyReceipt) Descriptor() ([]byte, []int)
Deprecated: Use SetPubKeyReceipt.ProtoReflect.Descriptor instead.
func (*SetPubKeyReceipt) GetAccountId ¶ added in v1.67.5
func (x *SetPubKeyReceipt) GetAccountId() uint64
func (*SetPubKeyReceipt) GetPubKey ¶ added in v1.67.5
func (x *SetPubKeyReceipt) GetPubKey() *ZkPubKey
func (*SetPubKeyReceipt) GetPubKeyTy ¶ added in v1.67.5
func (x *SetPubKeyReceipt) GetPubKeyTy() uint64
func (*SetPubKeyReceipt) ProtoMessage ¶ added in v1.67.5
func (*SetPubKeyReceipt) ProtoMessage()
func (*SetPubKeyReceipt) ProtoReflect ¶ added in v1.67.5
func (x *SetPubKeyReceipt) ProtoReflect() protoreflect.Message
func (*SetPubKeyReceipt) Reset ¶ added in v1.67.5
func (x *SetPubKeyReceipt) Reset()
func (*SetPubKeyReceipt) String ¶ added in v1.67.5
func (x *SetPubKeyReceipt) String() string
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 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"` TokenHash []byte `protobuf:"bytes,3,opt,name=tokenHash,proto3" json:"tokenHash,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) GetTokenHash ¶ added in v1.67.5
func (x *TokenBalance) GetTokenHash() []byte
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 TransferReceipt4L2 ¶ added in v1.67.5
type TransferReceipt4L2 struct { From *AccountTokenBalanceReceipt `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` To *AccountTokenBalanceReceipt `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` // contains filtered or unexported fields }
func (*TransferReceipt4L2) Descriptor
deprecated
added in
v1.67.5
func (*TransferReceipt4L2) Descriptor() ([]byte, []int)
Deprecated: Use TransferReceipt4L2.ProtoReflect.Descriptor instead.
func (*TransferReceipt4L2) GetFrom ¶ added in v1.67.5
func (x *TransferReceipt4L2) GetFrom() *AccountTokenBalanceReceipt
func (*TransferReceipt4L2) GetTo ¶ added in v1.67.5
func (x *TransferReceipt4L2) GetTo() *AccountTokenBalanceReceipt
func (*TransferReceipt4L2) ProtoMessage ¶ added in v1.67.5
func (*TransferReceipt4L2) ProtoMessage()
func (*TransferReceipt4L2) ProtoReflect ¶ added in v1.67.5
func (x *TransferReceipt4L2) ProtoReflect() protoreflect.Message
func (*TransferReceipt4L2) Reset ¶ added in v1.67.5
func (x *TransferReceipt4L2) Reset()
func (*TransferReceipt4L2) String ¶ added in v1.67.5
func (x *TransferReceipt4L2) String() string
type UnimplementedZksyncServer ¶
type UnimplementedZksyncServer struct { }
UnimplementedZksyncServer can be embedded to have forward compatible implementations.
type ZkAcctRollbackInfo ¶ added in v1.67.5
type ZkAcctRollbackInfo 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"` Balance string `protobuf:"bytes,3,opt,name=balance,proto3" json:"balance,omitempty"` NeedRollback string `protobuf:"bytes,4,opt,name=needRollback,proto3" json:"needRollback,omitempty"` Gap string `protobuf:"bytes,5,opt,name=gap,proto3" json:"gap,omitempty"` //gap=needRollback-balance // contains filtered or unexported fields }
func (*ZkAcctRollbackInfo) Descriptor
deprecated
added in
v1.67.5
func (*ZkAcctRollbackInfo) Descriptor() ([]byte, []int)
Deprecated: Use ZkAcctRollbackInfo.ProtoReflect.Descriptor instead.
func (*ZkAcctRollbackInfo) GetAccountId ¶ added in v1.67.5
func (x *ZkAcctRollbackInfo) GetAccountId() uint64
func (*ZkAcctRollbackInfo) GetBalance ¶ added in v1.67.5
func (x *ZkAcctRollbackInfo) GetBalance() string
func (*ZkAcctRollbackInfo) GetGap ¶ added in v1.67.5
func (x *ZkAcctRollbackInfo) GetGap() string
func (*ZkAcctRollbackInfo) GetNeedRollback ¶ added in v1.67.5
func (x *ZkAcctRollbackInfo) GetNeedRollback() string
func (*ZkAcctRollbackInfo) GetTokenId ¶ added in v1.67.5
func (x *ZkAcctRollbackInfo) GetTokenId() uint64
func (*ZkAcctRollbackInfo) ProtoMessage ¶ added in v1.67.5
func (*ZkAcctRollbackInfo) ProtoMessage()
func (*ZkAcctRollbackInfo) ProtoReflect ¶ added in v1.67.5
func (x *ZkAcctRollbackInfo) ProtoReflect() protoreflect.Message
func (*ZkAcctRollbackInfo) Reset ¶ added in v1.67.5
func (x *ZkAcctRollbackInfo) Reset()
func (*ZkAcctRollbackInfo) String ¶ added in v1.67.5
func (x *ZkAcctRollbackInfo) String() string
type ZkBatchOperation ¶ added in v1.67.5
type ZkBatchOperation struct { Ops []*ZkOperation `protobuf:"bytes,1,rep,name=ops,proto3" json:"ops,omitempty"` // contains filtered or unexported fields }
func (*ZkBatchOperation) Descriptor
deprecated
added in
v1.67.5
func (*ZkBatchOperation) Descriptor() ([]byte, []int)
Deprecated: Use ZkBatchOperation.ProtoReflect.Descriptor instead.
func (*ZkBatchOperation) GetOps ¶ added in v1.67.5
func (x *ZkBatchOperation) GetOps() []*ZkOperation
func (*ZkBatchOperation) ProtoMessage ¶ added in v1.67.5
func (*ZkBatchOperation) ProtoMessage()
func (*ZkBatchOperation) ProtoReflect ¶ added in v1.67.5
func (x *ZkBatchOperation) ProtoReflect() protoreflect.Message
func (*ZkBatchOperation) Reset ¶ added in v1.67.5
func (x *ZkBatchOperation) Reset()
func (*ZkBatchOperation) String ¶ added in v1.67.5
func (x *ZkBatchOperation) 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"` // 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) 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 ZkContentHash ¶ added in v1.67.5
type ZkContentHash struct { Part1 string `protobuf:"bytes,1,opt,name=part1,proto3" json:"part1,omitempty"` Part2 string `protobuf:"bytes,2,opt,name=part2,proto3" json:"part2,omitempty"` // contains filtered or unexported fields }
NFT content hash切分成两部分
func (*ZkContentHash) Descriptor
deprecated
added in
v1.67.5
func (*ZkContentHash) Descriptor() ([]byte, []int)
Deprecated: Use ZkContentHash.ProtoReflect.Descriptor instead.
func (*ZkContentHash) GetPart1 ¶ added in v1.67.5
func (x *ZkContentHash) GetPart1() string
func (*ZkContentHash) GetPart2 ¶ added in v1.67.5
func (x *ZkContentHash) GetPart2() string
func (*ZkContentHash) ProtoMessage ¶ added in v1.67.5
func (*ZkContentHash) ProtoMessage()
func (*ZkContentHash) ProtoReflect ¶ added in v1.67.5
func (x *ZkContentHash) ProtoReflect() protoreflect.Message
func (*ZkContentHash) Reset ¶ added in v1.67.5
func (x *ZkContentHash) Reset()
func (*ZkContentHash) String ¶ added in v1.67.5
func (x *ZkContentHash) 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"` BlockInfo *OpBlockInfo `protobuf:"bytes,9,opt,name=blockInfo,proto3" json:"blockInfo,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) GetBlockInfo ¶ added in v1.67.5
func (x *ZkContractToTreeNewWitnessInfo) GetBlockInfo() *OpBlockInfo
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.5
func (x *ZkContractToTreeNewWitnessInfo) GetToAccountID() uint64
func (*ZkContractToTreeNewWitnessInfo) GetTokenID ¶ added in v1.67.5
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,6,opt,name=fee,proto3" json:"fee,omitempty"` BlockInfo *OpBlockInfo `protobuf:"bytes,9,opt,name=blockInfo,proto3" json:"blockInfo,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.5
func (x *ZkContractToTreeWitnessInfo) GetAccountID() uint64
func (*ZkContractToTreeWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkContractToTreeWitnessInfo) GetAmount() string
func (*ZkContractToTreeWitnessInfo) GetBlockInfo ¶ added in v1.67.5
func (x *ZkContractToTreeWitnessInfo) GetBlockInfo() *OpBlockInfo
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.5
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"` L1PriorityId int64 `protobuf:"varint,5,opt,name=l1PriorityId,proto3" json:"l1PriorityId,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) GetL1PriorityId ¶ added in v1.67.5
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"` //记录deposit或fullExit对应的eth priorityID,方便查询对应区块高度和证明ID L1PriorityID int64 `protobuf:"varint,8,opt,name=l1PriorityID,proto3" json:"l1PriorityID,omitempty"` BlockInfo *OpBlockInfo `protobuf:"bytes,9,opt,name=blockInfo,proto3" json:"blockInfo,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.5
func (x *ZkDepositWitnessInfo) GetAccountID() uint64
func (*ZkDepositWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkDepositWitnessInfo) GetAmount() string
func (*ZkDepositWitnessInfo) GetBlockInfo ¶ added in v1.67.5
func (x *ZkDepositWitnessInfo) GetBlockInfo() *OpBlockInfo
func (*ZkDepositWitnessInfo) GetEthAddress ¶ added in v1.67.4
func (x *ZkDepositWitnessInfo) GetEthAddress() string
func (*ZkDepositWitnessInfo) GetL1PriorityID ¶ added in v1.67.5
func (x *ZkDepositWitnessInfo) GetL1PriorityID() int64
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.5
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"` // 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) 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"` // Types that are assignable to Value: // *ZkExodusMode_Rollback Value isZkExodusMode_Value `protobuf_oneof:"value"` // 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) GetRollback ¶ added in v1.67.5
func (x *ZkExodusMode) GetRollback() *ZkExodusRollbackModeParm
func (*ZkExodusMode) GetValue ¶ added in v1.67.5
func (m *ZkExodusMode) GetValue() isZkExodusMode_Value
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 ZkExodusMode_Rollback ¶ added in v1.67.5
type ZkExodusMode_Rollback struct {
Rollback *ZkExodusRollbackModeParm `protobuf:"bytes,2,opt,name=rollback,proto3,oneof"`
}
type ZkExodusRollbackModeParm ¶ added in v1.67.5
type ZkExodusRollbackModeParm struct { LastSuccessProofId uint64 `protobuf:"varint,1,opt,name=lastSuccessProofId,proto3" json:"lastSuccessProofId,omitempty"` //在回滚模式时候,设置此在l1上最后success的proofId,系统根据此Id对应queueId回滚一些deposit,withdraw操作 //回滚lastSuccessProofId后的所有deposit的策略 //1. 如果某deposit已经转走交易,余额不够无法rollback扣减,则尝试从交易所交易费垫付扣除,保证L2和L1此token资产总额相等 //2. 如果交易所的交易费也不够扣减,则扣光后统计差额,差额需要管理员在L1存款补充被忽略掉的deposit资产金额,不然会导致最后从L1逃生舱执行不成功 KnownBalanceGap uint32 `protobuf:"varint,2,opt,name=knownBalanceGap,proto3" json:"knownBalanceGap,omitempty"` //是否已知晓差额统计的错误报告,缺省不忽略,如果不需要L1补充,则直接rollback成功,若需要L1补充,知晓差额后,设置为1完成回滚 // contains filtered or unexported fields }
func (*ZkExodusRollbackModeParm) Descriptor
deprecated
added in
v1.67.5
func (*ZkExodusRollbackModeParm) Descriptor() ([]byte, []int)
Deprecated: Use ZkExodusRollbackModeParm.ProtoReflect.Descriptor instead.
func (*ZkExodusRollbackModeParm) GetKnownBalanceGap ¶ added in v1.67.5
func (x *ZkExodusRollbackModeParm) GetKnownBalanceGap() uint32
func (*ZkExodusRollbackModeParm) GetLastSuccessProofId ¶ added in v1.67.5
func (x *ZkExodusRollbackModeParm) GetLastSuccessProofId() uint64
func (*ZkExodusRollbackModeParm) ProtoMessage ¶ added in v1.67.5
func (*ZkExodusRollbackModeParm) ProtoMessage()
func (*ZkExodusRollbackModeParm) ProtoReflect ¶ added in v1.67.5
func (x *ZkExodusRollbackModeParm) ProtoReflect() protoreflect.Message
func (*ZkExodusRollbackModeParm) Reset ¶ added in v1.67.5
func (x *ZkExodusRollbackModeParm) Reset()
func (*ZkExodusRollbackModeParm) String ¶ added in v1.67.5
func (x *ZkExodusRollbackModeParm) String() string
type ZkFee ¶ added in v1.67.4
type ZkFee struct { Fee string `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee,omitempty"` 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) GetTokenID ¶ added in v1.67.5
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.5
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.5
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"` //截止高度 // 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) 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 ZkForceExit ¶
type ZkForceExit 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"` Signature *ZkSignature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*ZkForceExit) Descriptor
deprecated
func (*ZkForceExit) Descriptor() ([]byte, []int)
Deprecated: Use ZkForceExit.ProtoReflect.Descriptor instead.
func (*ZkForceExit) GetAccountId ¶
func (x *ZkForceExit) GetAccountId() uint64
func (*ZkForceExit) GetSignature ¶
func (x *ZkForceExit) GetSignature() *ZkSignature
func (*ZkForceExit) GetTokenId ¶
func (x *ZkForceExit) GetTokenId() uint64
func (*ZkForceExit) ProtoMessage ¶
func (*ZkForceExit) ProtoMessage()
func (*ZkForceExit) ProtoReflect ¶
func (x *ZkForceExit) ProtoReflect() protoreflect.Message
func (*ZkForceExit) Reset ¶
func (x *ZkForceExit) Reset()
func (*ZkForceExit) String ¶
func (x *ZkForceExit) 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"` BlockInfo *OpBlockInfo `protobuf:"bytes,9,opt,name=blockInfo,proto3" json:"blockInfo,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.5
func (x *ZkFullExitWitnessInfo) GetAccountID() uint64
func (*ZkFullExitWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkFullExitWitnessInfo) GetAmount() string
func (*ZkFullExitWitnessInfo) GetBlockInfo ¶ added in v1.67.5
func (x *ZkFullExitWitnessInfo) GetBlockInfo() *OpBlockInfo
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.5
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 uint64 `protobuf:"varint,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"` BlockInfo *OpBlockInfo `protobuf:"bytes,10,opt,name=blockInfo,proto3" json:"blockInfo,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() uint64
func (*ZkMintNFTWitnessInfo) GetBlockInfo ¶ added in v1.67.5
func (x *ZkMintNFTWitnessInfo) GetBlockInfo() *OpBlockInfo
func (*ZkMintNFTWitnessInfo) GetContentHash ¶ added in v1.67.4
func (x *ZkMintNFTWitnessInfo) GetContentHash() []string
func (*ZkMintNFTWitnessInfo) GetCreateSerialID ¶ added in v1.67.5
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.5
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.5
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 ZkOpFeeData ¶ added in v1.67.5
type ZkOpFeeData struct { TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"` Fee string `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` // contains filtered or unexported fields }
func (*ZkOpFeeData) Descriptor
deprecated
added in
v1.67.5
func (*ZkOpFeeData) Descriptor() ([]byte, []int)
Deprecated: Use ZkOpFeeData.ProtoReflect.Descriptor instead.
func (*ZkOpFeeData) GetFee ¶ added in v1.67.5
func (x *ZkOpFeeData) GetFee() string
func (*ZkOpFeeData) GetTokenId ¶ added in v1.67.5
func (x *ZkOpFeeData) GetTokenId() uint64
func (*ZkOpFeeData) ProtoMessage ¶ added in v1.67.5
func (*ZkOpFeeData) ProtoMessage()
func (*ZkOpFeeData) ProtoReflect ¶ added in v1.67.5
func (x *ZkOpFeeData) ProtoReflect() protoreflect.Message
func (*ZkOpFeeData) Reset ¶ added in v1.67.5
func (x *ZkOpFeeData) Reset()
func (*ZkOpFeeData) String ¶ added in v1.67.5
func (x *ZkOpFeeData) String() string
type ZkOpNFTData ¶ added in v1.67.5
type ZkOpNFTData struct { TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"` CreatorId uint64 `protobuf:"varint,2,opt,name=creatorId,proto3" json:"creatorId,omitempty"` //for withdraw NFT CreatorSerialId uint64 `protobuf:"varint,3,opt,name=creatorSerialId,proto3" json:"creatorSerialId,omitempty"` //for withdraw NFT ErcProtocol uint64 `protobuf:"varint,4,opt,name=ercProtocol,proto3" json:"ercProtocol,omitempty"` MintAmount string `protobuf:"bytes,5,opt,name=mintAmount,proto3" json:"mintAmount,omitempty"` Amount string `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"` Content *ZkContentHash `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*ZkOpNFTData) Descriptor
deprecated
added in
v1.67.5
func (*ZkOpNFTData) Descriptor() ([]byte, []int)
Deprecated: Use ZkOpNFTData.ProtoReflect.Descriptor instead.
func (*ZkOpNFTData) GetAmount ¶ added in v1.67.5
func (x *ZkOpNFTData) GetAmount() string
func (*ZkOpNFTData) GetContent ¶ added in v1.67.5
func (x *ZkOpNFTData) GetContent() *ZkContentHash
func (*ZkOpNFTData) GetCreatorId ¶ added in v1.67.5
func (x *ZkOpNFTData) GetCreatorId() uint64
func (*ZkOpNFTData) GetCreatorSerialId ¶ added in v1.67.5
func (x *ZkOpNFTData) GetCreatorSerialId() uint64
func (*ZkOpNFTData) GetErcProtocol ¶ added in v1.67.5
func (x *ZkOpNFTData) GetErcProtocol() uint64
func (*ZkOpNFTData) GetMintAmount ¶ added in v1.67.5
func (x *ZkOpNFTData) GetMintAmount() string
func (*ZkOpNFTData) GetTokenId ¶ added in v1.67.5
func (x *ZkOpNFTData) GetTokenId() uint64
func (*ZkOpNFTData) ProtoMessage ¶ added in v1.67.5
func (*ZkOpNFTData) ProtoMessage()
func (*ZkOpNFTData) ProtoReflect ¶ added in v1.67.5
func (x *ZkOpNFTData) ProtoReflect() protoreflect.Message
func (*ZkOpNFTData) Reset ¶ added in v1.67.5
func (x *ZkOpNFTData) Reset()
func (*ZkOpNFTData) String ¶ added in v1.67.5
func (x *ZkOpNFTData) String() string
type ZkOpSwapData ¶ added in v1.67.5
type ZkOpSwapData 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"` Fee string `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` // contains filtered or unexported fields }
swapData: from maker pov
func (*ZkOpSwapData) Descriptor
deprecated
added in
v1.67.5
func (*ZkOpSwapData) Descriptor() ([]byte, []int)
Deprecated: Use ZkOpSwapData.ProtoReflect.Descriptor instead.
func (*ZkOpSwapData) GetAmount ¶ added in v1.67.5
func (x *ZkOpSwapData) GetAmount() string
func (*ZkOpSwapData) GetFee ¶ added in v1.67.5
func (x *ZkOpSwapData) GetFee() string
func (*ZkOpSwapData) GetTokenId ¶ added in v1.67.5
func (x *ZkOpSwapData) GetTokenId() uint64
func (*ZkOpSwapData) ProtoMessage ¶ added in v1.67.5
func (*ZkOpSwapData) ProtoMessage()
func (*ZkOpSwapData) ProtoReflect ¶ added in v1.67.5
func (x *ZkOpSwapData) ProtoReflect() protoreflect.Message
func (*ZkOpSwapData) Reset ¶ added in v1.67.5
func (x *ZkOpSwapData) Reset()
func (*ZkOpSwapData) String ¶ added in v1.67.5
func (x *ZkOpSwapData) 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 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"` Fee *ZkFee `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,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) GetFee ¶ added in v1.67.5
func (x *ZkProxyExit) GetFee() *ZkFee
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"` EthAddress string `protobuf:"bytes,7,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"` Fee *ZkFee `protobuf:"bytes,8,opt,name=fee,proto3" json:"fee,omitempty"` BlockInfo *OpBlockInfo `protobuf:"bytes,9,opt,name=blockInfo,proto3" json:"blockInfo,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) GetBlockInfo ¶ added in v1.67.5
func (x *ZkProxyExitWitnessInfo) GetBlockInfo() *OpBlockInfo
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.5
func (x *ZkProxyExitWitnessInfo) GetTargetID() uint64
func (*ZkProxyExitWitnessInfo) GetTokenID ¶ added in v1.67.5
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 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"` OpType uint32 `protobuf:"varint,11,opt,name=opType,proto3" json:"opType,omitempty"` Decimal uint32 `protobuf:"varint,12,opt,name=decimal,proto3" json:"decimal,omitempty"` //是否以decimal show // 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) GetDecimal ¶ added in v1.67.5
func (x *ZkQueryReq) GetDecimal() uint32
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"` // 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) 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 ZkSetPubKeyData ¶ added in v1.67.5
type ZkSetPubKeyData struct { Ty uint64 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"` //set type, self or proxy PubKey *ZkPubKey `protobuf:"bytes,7,opt,name=pubKey,proto3" json:"pubKey,omitempty"` //eddsa公钥,用于验证身份 // contains filtered or unexported fields }
func (*ZkSetPubKeyData) Descriptor
deprecated
added in
v1.67.5
func (*ZkSetPubKeyData) Descriptor() ([]byte, []int)
Deprecated: Use ZkSetPubKeyData.ProtoReflect.Descriptor instead.
func (*ZkSetPubKeyData) GetPubKey ¶ added in v1.67.5
func (x *ZkSetPubKeyData) GetPubKey() *ZkPubKey
func (*ZkSetPubKeyData) GetTy ¶ added in v1.67.5
func (x *ZkSetPubKeyData) GetTy() uint64
func (*ZkSetPubKeyData) ProtoMessage ¶ added in v1.67.5
func (*ZkSetPubKeyData) ProtoMessage()
func (*ZkSetPubKeyData) ProtoReflect ¶ added in v1.67.5
func (x *ZkSetPubKeyData) ProtoReflect() protoreflect.Message
func (*ZkSetPubKeyData) Reset ¶ added in v1.67.5
func (x *ZkSetPubKeyData) Reset()
func (*ZkSetPubKeyData) String ¶ added in v1.67.5
func (x *ZkSetPubKeyData) 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"` BlockInfo *OpBlockInfo `protobuf:"bytes,9,opt,name=blockInfo,proto3" json:"blockInfo,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.5
func (x *ZkSetPubKeyWitnessInfo) GetAccountID() uint64
func (*ZkSetPubKeyWitnessInfo) GetBlockInfo ¶ added in v1.67.5
func (x *ZkSetPubKeyWitnessInfo) GetBlockInfo() *OpBlockInfo
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.5
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,7,opt,name=fee,proto3" json:"fee,omitempty"` BlockInfo *OpBlockInfo `protobuf:"bytes,9,opt,name=blockInfo,proto3" json:"blockInfo,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) GetBlockInfo ¶ added in v1.67.5
func (x *ZkSwapWitnessInfo) GetBlockInfo() *OpBlockInfo
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.5
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 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 uint64 `protobuf:"varint,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"` BlockInfo *OpBlockInfo `protobuf:"bytes,9,opt,name=blockInfo,proto3" json:"blockInfo,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() uint64
func (*ZkTransferNFTWitnessInfo) GetBlockInfo ¶ added in v1.67.5
func (x *ZkTransferNFTWitnessInfo) GetBlockInfo() *OpBlockInfo
func (*ZkTransferNFTWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkTransferNFTWitnessInfo) GetFee() *ZkFee
func (*ZkTransferNFTWitnessInfo) GetFromAccountID ¶ added in v1.67.5
func (x *ZkTransferNFTWitnessInfo) GetFromAccountID() uint64
func (*ZkTransferNFTWitnessInfo) GetNFTTokenID ¶ added in v1.67.5
func (x *ZkTransferNFTWitnessInfo) GetNFTTokenID() uint64
func (*ZkTransferNFTWitnessInfo) GetRecipientID ¶ added in v1.67.5
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"` ToLayer2Address string `protobuf:"bytes,5,opt,name=toLayer2Address,proto3" json:"toLayer2Address,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) GetToEthAddress ¶
func (x *ZkTransferToNew) GetToEthAddress() string
func (*ZkTransferToNew) GetToLayer2Address ¶ added in v1.67.5
func (x *ZkTransferToNew) GetToLayer2Address() 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"` BlockInfo *OpBlockInfo `protobuf:"bytes,9,opt,name=blockInfo,proto3" json:"blockInfo,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) GetBlockInfo ¶ added in v1.67.5
func (x *ZkTransferToNewWitnessInfo) GetBlockInfo() *OpBlockInfo
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.5
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.5
func (x *ZkTransferToNewWitnessInfo) GetToAccountID() uint64
func (*ZkTransferToNewWitnessInfo) GetTokenID ¶ added in v1.67.5
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"` BlockInfo *OpBlockInfo `protobuf:"bytes,9,opt,name=blockInfo,proto3" json:"blockInfo,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) GetBlockInfo ¶ added in v1.67.5
func (x *ZkTransferWitnessInfo) GetBlockInfo() *OpBlockInfo
func (*ZkTransferWitnessInfo) GetFee ¶ added in v1.67.4
func (x *ZkTransferWitnessInfo) GetFee() *ZkFee
func (*ZkTransferWitnessInfo) GetFromAccountID ¶ added in v1.67.5
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.5
func (x *ZkTransferWitnessInfo) GetToAccountID() uint64
func (*ZkTransferWitnessInfo) GetTokenID ¶ added in v1.67.5
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"` BlockInfo *OpBlockInfo `protobuf:"bytes,9,opt,name=blockInfo,proto3" json:"blockInfo,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.5
func (x *ZkTreeToContractWitnessInfo) GetAccountID() uint64
func (*ZkTreeToContractWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkTreeToContractWitnessInfo) GetAmount() string
func (*ZkTreeToContractWitnessInfo) GetBlockInfo ¶ added in v1.67.5
func (x *ZkTreeToContractWitnessInfo) GetBlockInfo() *OpBlockInfo
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.5
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 ZkVerifier ¶
type ZkVerifier struct { Verifiers []string `protobuf:"bytes,1,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) 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 { Key string `protobuf:"bytes,1,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) 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 uint64 `protobuf:"varint,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 uint64 `protobuf:"varint,8,opt,name=initMintAmount,proto3" json:"initMintAmount,omitempty"` Signature *ZkSignature `protobuf:"bytes,9,opt,name=signature,proto3" json:"signature,omitempty"` EthAddress string `protobuf:"bytes,11,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"` Fee *ZkFee `protobuf:"bytes,12,opt,name=fee,proto3" json:"fee,omitempty"` BlockInfo *OpBlockInfo `protobuf:"bytes,15,opt,name=blockInfo,proto3" json:"blockInfo,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) GetBlockInfo ¶ added in v1.67.5
func (x *ZkWithdrawNFTWitnessInfo) GetBlockInfo() *OpBlockInfo
func (*ZkWithdrawNFTWitnessInfo) GetContentHash ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) GetContentHash() []string
func (*ZkWithdrawNFTWitnessInfo) GetCreatorAcctID ¶ added in v1.67.5
func (x *ZkWithdrawNFTWitnessInfo) GetCreatorAcctID() uint64
func (*ZkWithdrawNFTWitnessInfo) GetCreatorSerialID ¶ added in v1.67.5
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.5
func (x *ZkWithdrawNFTWitnessInfo) GetFromAcctID() uint64
func (*ZkWithdrawNFTWitnessInfo) GetInitMintAmount ¶ added in v1.67.4
func (x *ZkWithdrawNFTWitnessInfo) GetInitMintAmount() uint64
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() uint64
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"` BlockInfo *OpBlockInfo `protobuf:"bytes,9,opt,name=blockInfo,proto3" json:"blockInfo,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.5
func (x *ZkWithdrawWitnessInfo) GetAccountID() uint64
func (*ZkWithdrawWitnessInfo) GetAmount ¶ added in v1.67.4
func (x *ZkWithdrawWitnessInfo) GetAmount() string
func (*ZkWithdrawWitnessInfo) GetBlockInfo ¶ added in v1.67.5
func (x *ZkWithdrawWitnessInfo) GetBlockInfo() *OpBlockInfo
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.5
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 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 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) 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) GetMintNFT ¶ added in v1.67.4
func (x *ZksyncAction) GetMintNFT() *ZkMintNFT
func (*ZksyncAction) GetProxyExit ¶ added in v1.67.4
func (x *ZksyncAction) GetProxyExit() *ZkProxyExit
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_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_MintNFT ¶ added in v1.67.4
type ZksyncAction_MintNFT struct {
MintNFT *ZkMintNFT `protobuf:"bytes,12,opt,name=mintNFT,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_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信息