types

package
v0.0.0-...-b770cea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EthAddrLen = 40
	BTYAddrLen = 64
)
View Source
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,这些常量可以自定义修改

View Source
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值

View Source
const (
	ListDESC = int32(0)
	ListASC  = int32(1)
	ListSeek = int32(2)

	Add = int32(0)
	Sub = int32(1)

	MaxDecimalAllow = 18
	MinDecimalAllow = 4
)
View Source
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宽度

View Source
const (
	//BN254Fp=254bit,254-2 bit
	MsgFirstWidth  = 252
	MsgSecondWidth = 252
	MsgThirdWidth  = 248
	MsgWidth       = 752 //94 byte

)
View Source
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数量

View Source
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,

)
View Source
const (
	ZKERC1155 = 1
	ZKERC721  = 2
)

ERC protocol

View Source
const (
	NormalProxyPubKey = 1
	SystemProxyPubKey = 2
	SuperProxyPubKey  = 3
)
View Source
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
)
View Source
const (
	ModeValNo  = 0 //
	ModeValYes = 1 //

)
View Source
const ZkCfgEthFeeAddr = "ethFeeAddr"

配置的系统收交易费账户

View Source
const ZkCfgLayer2FeeAddr = "layer2FeeAddr"
View Source
const ZkManagerKey = "manager"
View Source
const ZkMimcHashSeed = "seed"
View Source
const ZkVerifierKey = "verifier"
View Source
const Zksync = "zksync"

Zksync 执行器名称定义

Variables

View Source
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",
	}
)
View Source
var File_receipt4l2_proto protoreflect.FileDescriptor
View Source
var File_witness_proto protoreflect.FileDescriptor
View Source
var File_zksync_proto protoreflect.FileDescriptor

Functions

func Byte2Str

func Byte2Str(v []byte) string

func Byte2Uint64

func Byte2Uint64(v []byte) uint64

func DecimalAddr2Hex

func DecimalAddr2Hex(addr string, l int) (string, bool)

DecimalAddr2Hex 10进制地址转16进制 需要传入地址期望长度 目前有两种地址格式 一种长度为40 另一种长度为64

func DecodePacVal

func DecodePacVal(p []byte, expBitWidth int) string

DecodePacVal decode pac val with man+exp format

func FilterHexPrefix

func FilterHexPrefix(s string) string

func GetOpChunkNum

func GetOpChunkNum(opType uint32) (int, error)

func HexAddr2Decimal

func HexAddr2Decimal(addr string) (string, bool)

HexAddr2Decimal 16进制地址转10进制

func InitExecutor

func InitExecutor(cfg *types.ChainConfig)

InitExecutor defines register executor

func InitFork

func InitFork(cfg *types.ChainConfig)

InitFork defines register fork

func RegisterZksyncServer

func RegisterZksyncServer(s *grpc.Server, srv ZksyncServer)

func SplitNFTContent

func SplitNFTContent(contentHash string) (*big.Int, *big.Int, string, error)

func Str2Byte

func Str2Byte(v string) []byte

func ZkFindExponentPart

func ZkFindExponentPart(s string) int

ZkFindExponentPart 找到一个数的指数数量,最大31个0,也就是10^31,循环div 10, 找到最后一个余数非0

func ZkTransferManExpPart

func ZkTransferManExpPart(s string) (string, int)

ZkTransferManExpPart 获取s的man和exp部分,exp部分只统计0的个数,man部分为尾部去掉0部分

Types

type AccountProxyPubKeys

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

func (*AccountProxyPubKeys) Descriptor() ([]byte, []int)

Deprecated: Use AccountProxyPubKeys.ProtoReflect.Descriptor instead.

func (*AccountProxyPubKeys) GetNormal

func (x *AccountProxyPubKeys) GetNormal() *ZkPubKey

func (*AccountProxyPubKeys) GetSuper

func (x *AccountProxyPubKeys) GetSuper() *ZkPubKey

func (*AccountProxyPubKeys) GetSystem

func (x *AccountProxyPubKeys) GetSystem() *ZkPubKey

func (*AccountProxyPubKeys) ProtoMessage

func (*AccountProxyPubKeys) ProtoMessage()

func (*AccountProxyPubKeys) ProtoReflect

func (x *AccountProxyPubKeys) ProtoReflect() protoreflect.Message

func (*AccountProxyPubKeys) Reset

func (x *AccountProxyPubKeys) Reset()

func (*AccountProxyPubKeys) String

func (x *AccountProxyPubKeys) String() string

type AccountTokenBalanceReceipt

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"` //账户对应的以太坊地址
	ChainAddr     string `protobuf:"bytes,3,opt,name=chainAddr,proto3" json:"chainAddr,omitempty"`   //chain地址
	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

func (*AccountTokenBalanceReceipt) Descriptor() ([]byte, []int)

Deprecated: Use AccountTokenBalanceReceipt.ProtoReflect.Descriptor instead.

func (*AccountTokenBalanceReceipt) GetAccountId

func (x *AccountTokenBalanceReceipt) GetAccountId() uint64

func (*AccountTokenBalanceReceipt) GetBalanceAfter

func (x *AccountTokenBalanceReceipt) GetBalanceAfter() string

func (*AccountTokenBalanceReceipt) GetBalanceBefore

func (x *AccountTokenBalanceReceipt) GetBalanceBefore() string

func (*AccountTokenBalanceReceipt) GetChainAddr

func (x *AccountTokenBalanceReceipt) GetChainAddr() string

func (*AccountTokenBalanceReceipt) GetEthAddress

func (x *AccountTokenBalanceReceipt) GetEthAddress() string

func (*AccountTokenBalanceReceipt) GetTokenId

func (x *AccountTokenBalanceReceipt) GetTokenId() uint64

func (*AccountTokenBalanceReceipt) ProtoMessage

func (*AccountTokenBalanceReceipt) ProtoMessage()

func (*AccountTokenBalanceReceipt) ProtoReflect

func (*AccountTokenBalanceReceipt) Reset

func (x *AccountTokenBalanceReceipt) Reset()

func (*AccountTokenBalanceReceipt) String

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"`
	ChainAddr     string               `protobuf:"bytes,3,opt,name=chainAddr,proto3" json:"chainAddr,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) GetChainAddr

func (x *AccountWitness) GetChainAddr() string

func (*AccountWitness) GetEthAddr

func (x *AccountWitness) GetEthAddr() string

func (*AccountWitness) GetID

func (x *AccountWitness) GetID() uint64

func (*AccountWitness) GetProxyPubKeys

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

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

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

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

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

func (*HistoryAccountProofInfo) Descriptor() ([]byte, []int)

Deprecated: Use HistoryAccountProofInfo.ProtoReflect.Descriptor instead.

func (*HistoryAccountProofInfo) GetLeafHashes

func (x *HistoryAccountProofInfo) GetLeafHashes() [][]byte

func (*HistoryAccountProofInfo) GetLeaves

func (x *HistoryAccountProofInfo) GetLeaves() []*HistoryLeaf

func (*HistoryAccountProofInfo) GetRootHash

func (x *HistoryAccountProofInfo) GetRootHash() string

func (*HistoryAccountProofInfo) ProtoMessage

func (*HistoryAccountProofInfo) ProtoMessage()

func (*HistoryAccountProofInfo) ProtoReflect

func (x *HistoryAccountProofInfo) ProtoReflect() protoreflect.Message

func (*HistoryAccountProofInfo) Reset

func (x *HistoryAccountProofInfo) Reset()

func (*HistoryAccountProofInfo) String

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公钥,用于验证身份
	ChainAddr    string               `protobuf:"bytes,4,opt,name=chainAddr,proto3" json:"chainAddr,omitempty"`       //chain地址
	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) GetChainAddr

func (x *HistoryLeaf) GetChainAddr() string

func (*HistoryLeaf) GetEthAddress

func (x *HistoryLeaf) GetEthAddress() string

func (*HistoryLeaf) GetProofId

func (x *HistoryLeaf) GetProofId() uint64

func (*HistoryLeaf) GetProxyPubKeys

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

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

func (*L1PriorityID) Descriptor() ([]byte, []int)

Deprecated: Use L1PriorityID.ProtoReflect.Descriptor instead.

func (*L1PriorityID) GetID

func (x *L1PriorityID) GetID() string

func (*L1PriorityID) ProtoMessage

func (*L1PriorityID) ProtoMessage()

func (*L1PriorityID) ProtoReflect

func (x *L1PriorityID) ProtoReflect() protoreflect.Message

func (*L1PriorityID) Reset

func (x *L1PriorityID) Reset()

func (*L1PriorityID) String

func (x *L1PriorityID) String() string

type LastOnChainProof

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

func (*LastOnChainProof) Descriptor() ([]byte, []int)

Deprecated: Use LastOnChainProof.ProtoReflect.Descriptor instead.

func (*LastOnChainProof) GetOnChainProofId

func (x *LastOnChainProof) GetOnChainProofId() uint64

func (*LastOnChainProof) GetProofId

func (x *LastOnChainProof) GetProofId() uint64

func (*LastOnChainProof) ProtoMessage

func (*LastOnChainProof) ProtoMessage()

func (*LastOnChainProof) ProtoReflect

func (x *LastOnChainProof) ProtoReflect() protoreflect.Message

func (*LastOnChainProof) Reset

func (x *LastOnChainProof) Reset()

func (*LastOnChainProof) String

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公钥,用于验证身份
	ChainAddr    string               `protobuf:"bytes,4,opt,name=chainAddr,proto3" json:"chainAddr,omitempty"`       //chain地址
	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) Descriptor() ([]byte, []int)

Deprecated: Use Leaf.ProtoReflect.Descriptor instead.

func (*Leaf) GetAccountId

func (x *Leaf) GetAccountId() uint64

func (*Leaf) GetChainAddr

func (x *Leaf) GetChainAddr() string

func (*Leaf) GetEthAddress

func (x *Leaf) GetEthAddress() string

func (*Leaf) GetLeafHash

func (x *Leaf) GetLeafHash() []byte

func (*Leaf) GetProxyPubKeys

func (x *Leaf) GetProxyPubKeys() *AccountProxyPubKeys

func (*Leaf) GetPubKey

func (x *Leaf) GetPubKey() *ZkPubKey

func (*Leaf) GetTokenHash

func (x *Leaf) GetTokenHash() []byte

func (*Leaf) GetTokenIds

func (x *Leaf) GetTokenIds() []uint64

func (*Leaf) ProtoMessage

func (*Leaf) ProtoMessage()

func (*Leaf) ProtoReflect

func (x *Leaf) ProtoReflect() protoreflect.Message

func (*Leaf) Reset

func (x *Leaf) Reset()

func (*Leaf) String

func (x *Leaf) String() string

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

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

func (*OpBlockInfo) Descriptor() ([]byte, []int)

Deprecated: Use OpBlockInfo.ProtoReflect.Descriptor instead.

func (*OpBlockInfo) GetHeight

func (x *OpBlockInfo) GetHeight() int64

func (*OpBlockInfo) GetTxIndex

func (x *OpBlockInfo) GetTxIndex() int32

func (*OpBlockInfo) ProtoMessage

func (*OpBlockInfo) ProtoMessage()

func (*OpBlockInfo) ProtoReflect

func (x *OpBlockInfo) ProtoReflect() protoreflect.Message

func (*OpBlockInfo) Reset

func (x *OpBlockInfo) Reset()

func (*OpBlockInfo) String

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 (*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

func (x *OperationSpecialData) GetContentHash() []string

func (*OperationSpecialData) GetPricePair

func (x *OperationSpecialData) GetPricePair() []*OrderPricePair

func (*OperationSpecialData) GetPubKey

func (x *OperationSpecialData) GetPubKey() *ZkPubKey

func (*OperationSpecialData) GetPubKeyType

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

func (x *OperationSpecialInfo) GetContract2TreeNew() *ZkContractToTreeNewWitnessInfo

func (*OperationSpecialInfo) GetContractToTree

func (x *OperationSpecialInfo) GetContractToTree() *ZkContractToTreeWitnessInfo

func (*OperationSpecialInfo) GetDeposit

func (x *OperationSpecialInfo) GetDeposit() *ZkDepositWitnessInfo

func (*OperationSpecialInfo) GetFee

func (*OperationSpecialInfo) GetFullExit

func (x *OperationSpecialInfo) GetFullExit() *ZkFullExitWitnessInfo

func (*OperationSpecialInfo) GetMintNFT

func (x *OperationSpecialInfo) GetMintNFT() *ZkMintNFTWitnessInfo

func (*OperationSpecialInfo) GetProxyExit

func (x *OperationSpecialInfo) GetProxyExit() *ZkProxyExitWitnessInfo

func (*OperationSpecialInfo) GetSetPubKey

func (x *OperationSpecialInfo) GetSetPubKey() *ZkSetPubKeyWitnessInfo

func (*OperationSpecialInfo) GetSwap

func (*OperationSpecialInfo) GetTransfer

func (x *OperationSpecialInfo) GetTransfer() *ZkTransferWitnessInfo

func (*OperationSpecialInfo) GetTransferNFT

func (x *OperationSpecialInfo) GetTransferNFT() *ZkTransferNFTWitnessInfo

func (*OperationSpecialInfo) GetTransferToNew

func (x *OperationSpecialInfo) GetTransferToNew() *ZkTransferToNewWitnessInfo

func (*OperationSpecialInfo) GetTreeToContract

func (x *OperationSpecialInfo) GetTreeToContract() *ZkTreeToContractWitnessInfo

func (*OperationSpecialInfo) GetValue

func (m *OperationSpecialInfo) GetValue() isOperationSpecialInfo_Value

func (*OperationSpecialInfo) GetWithdraw

func (x *OperationSpecialInfo) GetWithdraw() *ZkWithdrawWitnessInfo

func (*OperationSpecialInfo) GetWithdrawNFT

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

type OperationSpecialInfo_Contract2TreeNew struct {
	Contract2TreeNew *ZkContractToTreeNewWitnessInfo `protobuf:"bytes,10,opt,name=contract2TreeNew,proto3,oneof"`
}

type OperationSpecialInfo_ContractToTree

type OperationSpecialInfo_ContractToTree struct {
	ContractToTree *ZkContractToTreeWitnessInfo `protobuf:"bytes,9,opt,name=contractToTree,proto3,oneof"`
}

type OperationSpecialInfo_Deposit

type OperationSpecialInfo_Deposit struct {
	Deposit *ZkDepositWitnessInfo `protobuf:"bytes,1,opt,name=deposit,proto3,oneof"`
}

type OperationSpecialInfo_Fee

type OperationSpecialInfo_Fee struct {
	Fee *ZkFeeWitnessInfo `protobuf:"bytes,12,opt,name=fee,proto3,oneof"` //fee action
}

type OperationSpecialInfo_FullExit

type OperationSpecialInfo_FullExit struct {
	FullExit *ZkFullExitWitnessInfo `protobuf:"bytes,7,opt,name=fullExit,proto3,oneof"`
}

type OperationSpecialInfo_MintNFT

type OperationSpecialInfo_MintNFT struct {
	MintNFT *ZkMintNFTWitnessInfo `protobuf:"bytes,13,opt,name=mintNFT,proto3,oneof"`
}

type OperationSpecialInfo_ProxyExit

type OperationSpecialInfo_ProxyExit struct {
	ProxyExit *ZkProxyExitWitnessInfo `protobuf:"bytes,5,opt,name=proxyExit,proto3,oneof"`
}

type OperationSpecialInfo_SetPubKey

type OperationSpecialInfo_SetPubKey struct {
	SetPubKey *ZkSetPubKeyWitnessInfo `protobuf:"bytes,6,opt,name=setPubKey,proto3,oneof"`
}

type OperationSpecialInfo_Swap

type OperationSpecialInfo_Swap struct {
	Swap *ZkSwapWitnessInfo `protobuf:"bytes,8,opt,name=swap,proto3,oneof"`
}

type OperationSpecialInfo_Transfer

type OperationSpecialInfo_Transfer struct {
	Transfer *ZkTransferWitnessInfo `protobuf:"bytes,3,opt,name=transfer,proto3,oneof"`
}

type OperationSpecialInfo_TransferNFT

type OperationSpecialInfo_TransferNFT struct {
	TransferNFT *ZkTransferNFTWitnessInfo `protobuf:"bytes,15,opt,name=transferNFT,proto3,oneof"`
}

type OperationSpecialInfo_TransferToNew

type OperationSpecialInfo_TransferToNew struct {
	TransferToNew *ZkTransferToNewWitnessInfo `protobuf:"bytes,4,opt,name=transferToNew,proto3,oneof"`
}

type OperationSpecialInfo_TreeToContract

type OperationSpecialInfo_TreeToContract struct {
	TreeToContract *ZkTreeToContractWitnessInfo `protobuf:"bytes,11,opt,name=treeToContract,proto3,oneof"`
}

type OperationSpecialInfo_Withdraw

type OperationSpecialInfo_Withdraw struct {
	Withdraw *ZkWithdrawWitnessInfo `protobuf:"bytes,2,opt,name=withdraw,proto3,oneof"`
}

type OperationSpecialInfo_WithdrawNFT

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

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

func (*Priority2QueueId) Descriptor() ([]byte, []int)

Deprecated: Use Priority2QueueId.ProtoReflect.Descriptor instead.

func (*Priority2QueueId) GetPriorityId

func (x *Priority2QueueId) GetPriorityId() int64

func (*Priority2QueueId) GetQueueId

func (x *Priority2QueueId) GetQueueId() int64

func (*Priority2QueueId) ProtoMessage

func (*Priority2QueueId) ProtoMessage()

func (*Priority2QueueId) ProtoReflect

func (x *Priority2QueueId) ProtoReflect() protoreflect.Message

func (*Priority2QueueId) Reset

func (x *Priority2QueueId) Reset()

func (*Priority2QueueId) String

func (x *Priority2QueueId) String() string

type ProofId2QueueIdData

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

func (*ProofId2QueueIdData) Descriptor() ([]byte, []int)

Deprecated: Use ProofId2QueueIdData.ProtoReflect.Descriptor instead.

func (*ProofId2QueueIdData) GetFirstQueueId

func (x *ProofId2QueueIdData) GetFirstQueueId() int64

func (*ProofId2QueueIdData) GetLastQueueId

func (x *ProofId2QueueIdData) GetLastQueueId() int64

func (*ProofId2QueueIdData) GetProofId

func (x *ProofId2QueueIdData) GetProofId() uint64

func (*ProofId2QueueIdData) ProtoMessage

func (*ProofId2QueueIdData) ProtoMessage()

func (*ProofId2QueueIdData) ProtoReflect

func (x *ProofId2QueueIdData) ProtoReflect() protoreflect.Message

func (*ProofId2QueueIdData) Reset

func (x *ProofId2QueueIdData) Reset()

func (*ProofId2QueueIdData) String

func (x *ProofId2QueueIdData) String() string

type QueryProofInfo

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

func (*QueryProofInfo) Descriptor() ([]byte, []int)

Deprecated: Use QueryProofInfo.ProtoReflect.Descriptor instead.

func (*QueryProofInfo) GetProof

func (x *QueryProofInfo) GetProof() *ZkCommitProof

func (*QueryProofInfo) GetQueues

func (x *QueryProofInfo) GetQueues() *ProofId2QueueIdData

func (*QueryProofInfo) ProtoMessage

func (*QueryProofInfo) ProtoMessage()

func (*QueryProofInfo) ProtoReflect

func (x *QueryProofInfo) ProtoReflect() protoreflect.Message

func (*QueryProofInfo) Reset

func (x *QueryProofInfo) Reset()

func (*QueryProofInfo) String

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

type ReceiptCommitProofRecord struct {
	Proof *CommitProofState `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptCommitProofRecord) Descriptor deprecated

func (*ReceiptCommitProofRecord) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptCommitProofRecord.ProtoReflect.Descriptor instead.

func (*ReceiptCommitProofRecord) GetProof

func (*ReceiptCommitProofRecord) ProtoMessage

func (*ReceiptCommitProofRecord) ProtoMessage()

func (*ReceiptCommitProofRecord) ProtoReflect

func (x *ReceiptCommitProofRecord) ProtoReflect() protoreflect.Message

func (*ReceiptCommitProofRecord) Reset

func (x *ReceiptCommitProofRecord) Reset()

func (*ReceiptCommitProofRecord) String

func (x *ReceiptCommitProofRecord) String() string

type ReceiptExodusMode

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

func (*ReceiptExodusMode) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptExodusMode.ProtoReflect.Descriptor instead.

func (*ReceiptExodusMode) GetCurrent

func (x *ReceiptExodusMode) GetCurrent() int64

func (*ReceiptExodusMode) GetPrev

func (x *ReceiptExodusMode) GetPrev() int64

func (*ReceiptExodusMode) ProtoMessage

func (*ReceiptExodusMode) ProtoMessage()

func (*ReceiptExodusMode) ProtoReflect

func (x *ReceiptExodusMode) ProtoReflect() protoreflect.Message

func (*ReceiptExodusMode) Reset

func (x *ReceiptExodusMode) Reset()

func (*ReceiptExodusMode) String

func (x *ReceiptExodusMode) String() string

type ReceiptL1PriorityID

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

func (*ReceiptL1PriorityID) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptL1PriorityID.ProtoReflect.Descriptor instead.

func (*ReceiptL1PriorityID) GetCurrent

func (x *ReceiptL1PriorityID) GetCurrent() int64

func (*ReceiptL1PriorityID) GetPrev

func (x *ReceiptL1PriorityID) GetPrev() int64

func (*ReceiptL1PriorityID) ProtoMessage

func (*ReceiptL1PriorityID) ProtoMessage()

func (*ReceiptL1PriorityID) ProtoReflect

func (x *ReceiptL1PriorityID) ProtoReflect() protoreflect.Message

func (*ReceiptL1PriorityID) Reset

func (x *ReceiptL1PriorityID) Reset()

func (*ReceiptL1PriorityID) String

func (x *ReceiptL1PriorityID) String() string

type ReceiptL2FirstQueueID

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

func (*ReceiptL2FirstQueueID) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptL2FirstQueueID.ProtoReflect.Descriptor instead.

func (*ReceiptL2FirstQueueID) GetCurrent

func (x *ReceiptL2FirstQueueID) GetCurrent() int64

func (*ReceiptL2FirstQueueID) GetPrev

func (x *ReceiptL2FirstQueueID) GetPrev() int64

func (*ReceiptL2FirstQueueID) ProtoMessage

func (*ReceiptL2FirstQueueID) ProtoMessage()

func (*ReceiptL2FirstQueueID) ProtoReflect

func (x *ReceiptL2FirstQueueID) ProtoReflect() protoreflect.Message

func (*ReceiptL2FirstQueueID) Reset

func (x *ReceiptL2FirstQueueID) Reset()

func (*ReceiptL2FirstQueueID) String

func (x *ReceiptL2FirstQueueID) String() string

type ReceiptL2LastQueueID

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

func (*ReceiptL2LastQueueID) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptL2LastQueueID.ProtoReflect.Descriptor instead.

func (*ReceiptL2LastQueueID) GetCurrent

func (x *ReceiptL2LastQueueID) GetCurrent() int64

func (*ReceiptL2LastQueueID) GetPrev

func (x *ReceiptL2LastQueueID) GetPrev() int64

func (*ReceiptL2LastQueueID) ProtoMessage

func (*ReceiptL2LastQueueID) ProtoMessage()

func (*ReceiptL2LastQueueID) ProtoReflect

func (x *ReceiptL2LastQueueID) ProtoReflect() protoreflect.Message

func (*ReceiptL2LastQueueID) Reset

func (x *ReceiptL2LastQueueID) Reset()

func (*ReceiptL2LastQueueID) String

func (x *ReceiptL2LastQueueID) String() string

type ReceiptL2QueueIDData

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

func (*ReceiptL2QueueIDData) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptL2QueueIDData.ProtoReflect.Descriptor instead.

func (*ReceiptL2QueueIDData) GetId

func (x *ReceiptL2QueueIDData) GetId() int64

func (*ReceiptL2QueueIDData) GetOp

func (x *ReceiptL2QueueIDData) GetOp() *ZkOperation

func (*ReceiptL2QueueIDData) ProtoMessage

func (*ReceiptL2QueueIDData) ProtoMessage()

func (*ReceiptL2QueueIDData) ProtoReflect

func (x *ReceiptL2QueueIDData) ProtoReflect() protoreflect.Message

func (*ReceiptL2QueueIDData) Reset

func (x *ReceiptL2QueueIDData) Reset()

func (*ReceiptL2QueueIDData) String

func (x *ReceiptL2QueueIDData) String() string

type ReceiptProofId2QueueIDData

type ReceiptProofId2QueueIDData struct {
	Data *ProofId2QueueIdData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptProofId2QueueIDData) Descriptor deprecated

func (*ReceiptProofId2QueueIDData) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptProofId2QueueIDData.ProtoReflect.Descriptor instead.

func (*ReceiptProofId2QueueIDData) GetData

func (*ReceiptProofId2QueueIDData) ProtoMessage

func (*ReceiptProofId2QueueIDData) ProtoMessage()

func (*ReceiptProofId2QueueIDData) ProtoReflect

func (*ReceiptProofId2QueueIDData) Reset

func (x *ReceiptProofId2QueueIDData) Reset()

func (*ReceiptProofId2QueueIDData) String

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

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

func (*ReceiptSetTokenSymbol) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptSetTokenSymbol.ProtoReflect.Descriptor instead.

func (*ReceiptSetTokenSymbol) GetCur

func (x *ReceiptSetTokenSymbol) GetCur() *ZkTokenSymbol

func (*ReceiptSetTokenSymbol) GetPre

func (x *ReceiptSetTokenSymbol) GetPre() *ZkTokenSymbol

func (*ReceiptSetTokenSymbol) ProtoMessage

func (*ReceiptSetTokenSymbol) ProtoMessage()

func (*ReceiptSetTokenSymbol) ProtoReflect

func (x *ReceiptSetTokenSymbol) ProtoReflect() protoreflect.Message

func (*ReceiptSetTokenSymbol) Reset

func (x *ReceiptSetTokenSymbol) Reset()

func (*ReceiptSetTokenSymbol) String

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) Descriptor() ([]byte, []int)

Deprecated: Use RootInfo.ProtoReflect.Descriptor instead.

func (*RootInfo) GetHeight

func (x *RootInfo) GetHeight() int32

func (*RootInfo) GetRootHash

func (x *RootInfo) GetRootHash() []byte

func (*RootInfo) GetStartIndex

func (x *RootInfo) GetStartIndex() uint64

func (*RootInfo) ProtoMessage

func (*RootInfo) ProtoMessage()

func (*RootInfo) ProtoReflect

func (x *RootInfo) ProtoReflect() protoreflect.Message

func (*RootInfo) Reset

func (x *RootInfo) Reset()

func (*RootInfo) String

func (x *RootInfo) String() string

type SetPubKeyReceipt

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

func (*SetPubKeyReceipt) Descriptor() ([]byte, []int)

Deprecated: Use SetPubKeyReceipt.ProtoReflect.Descriptor instead.

func (*SetPubKeyReceipt) GetAccountId

func (x *SetPubKeyReceipt) GetAccountId() uint64

func (*SetPubKeyReceipt) GetPubKey

func (x *SetPubKeyReceipt) GetPubKey() *ZkPubKey

func (*SetPubKeyReceipt) GetPubKeyTy

func (x *SetPubKeyReceipt) GetPubKeyTy() uint64

func (*SetPubKeyReceipt) ProtoMessage

func (*SetPubKeyReceipt) ProtoMessage()

func (*SetPubKeyReceipt) ProtoReflect

func (x *SetPubKeyReceipt) ProtoReflect() protoreflect.Message

func (*SetPubKeyReceipt) Reset

func (x *SetPubKeyReceipt) Reset()

func (*SetPubKeyReceipt) String

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) Descriptor() ([]byte, []int)

Deprecated: Use SubTree.ProtoReflect.Descriptor instead.

func (*SubTree) GetHeight

func (x *SubTree) GetHeight() int32

func (*SubTree) GetRootHash

func (x *SubTree) GetRootHash() []byte

func (*SubTree) ProtoMessage

func (*SubTree) ProtoMessage()

func (*SubTree) ProtoReflect

func (x *SubTree) ProtoReflect() protoreflect.Message

func (*SubTree) Reset

func (x *SubTree) Reset()

func (*SubTree) String

func (x *SubTree) String() string

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

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

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

func (*TransferReceipt4L2) Descriptor() ([]byte, []int)

Deprecated: Use TransferReceipt4L2.ProtoReflect.Descriptor instead.

func (*TransferReceipt4L2) GetFrom

func (*TransferReceipt4L2) GetTo

func (*TransferReceipt4L2) ProtoMessage

func (*TransferReceipt4L2) ProtoMessage()

func (*TransferReceipt4L2) ProtoReflect

func (x *TransferReceipt4L2) ProtoReflect() protoreflect.Message

func (*TransferReceipt4L2) Reset

func (x *TransferReceipt4L2) Reset()

func (*TransferReceipt4L2) String

func (x *TransferReceipt4L2) String() string

type UnimplementedZksyncServer

type UnimplementedZksyncServer struct {
}

UnimplementedZksyncServer can be embedded to have forward compatible implementations.

type ZkAcctRollbackInfo

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

func (*ZkAcctRollbackInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkAcctRollbackInfo.ProtoReflect.Descriptor instead.

func (*ZkAcctRollbackInfo) GetAccountId

func (x *ZkAcctRollbackInfo) GetAccountId() uint64

func (*ZkAcctRollbackInfo) GetBalance

func (x *ZkAcctRollbackInfo) GetBalance() string

func (*ZkAcctRollbackInfo) GetGap

func (x *ZkAcctRollbackInfo) GetGap() string

func (*ZkAcctRollbackInfo) GetNeedRollback

func (x *ZkAcctRollbackInfo) GetNeedRollback() string

func (*ZkAcctRollbackInfo) GetTokenId

func (x *ZkAcctRollbackInfo) GetTokenId() uint64

func (*ZkAcctRollbackInfo) ProtoMessage

func (*ZkAcctRollbackInfo) ProtoMessage()

func (*ZkAcctRollbackInfo) ProtoReflect

func (x *ZkAcctRollbackInfo) ProtoReflect() protoreflect.Message

func (*ZkAcctRollbackInfo) Reset

func (x *ZkAcctRollbackInfo) Reset()

func (*ZkAcctRollbackInfo) String

func (x *ZkAcctRollbackInfo) String() string

type ZkBatchOperation

type ZkBatchOperation struct {
	Ops []*ZkOperation `protobuf:"bytes,1,rep,name=ops,proto3" json:"ops,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkBatchOperation) Descriptor deprecated

func (*ZkBatchOperation) Descriptor() ([]byte, []int)

Deprecated: Use ZkBatchOperation.ProtoReflect.Descriptor instead.

func (*ZkBatchOperation) GetOps

func (x *ZkBatchOperation) GetOps() []*ZkOperation

func (*ZkBatchOperation) ProtoMessage

func (*ZkBatchOperation) ProtoMessage()

func (*ZkBatchOperation) ProtoReflect

func (x *ZkBatchOperation) ProtoReflect() protoreflect.Message

func (*ZkBatchOperation) Reset

func (x *ZkBatchOperation) Reset()

func (*ZkBatchOperation) String

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

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

func (x *ZkCommitProof) GetOnChainProofId() uint64

func (*ZkCommitProof) GetOnChainPubDatas

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

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

func (*ZkContentHash) Descriptor() ([]byte, []int)

Deprecated: Use ZkContentHash.ProtoReflect.Descriptor instead.

func (*ZkContentHash) GetPart1

func (x *ZkContentHash) GetPart1() string

func (*ZkContentHash) GetPart2

func (x *ZkContentHash) GetPart2() string

func (*ZkContentHash) ProtoMessage

func (*ZkContentHash) ProtoMessage()

func (*ZkContentHash) ProtoReflect

func (x *ZkContentHash) ProtoReflect() protoreflect.Message

func (*ZkContentHash) Reset

func (x *ZkContentHash) Reset()

func (*ZkContentHash) String

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
}

从chain合约提款到二层

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

func (x *ZkContractToTree) GetFromExec() string

func (*ZkContractToTree) GetSignature

func (x *ZkContractToTree) GetSignature() *ZkSignature

func (*ZkContractToTree) GetToAccountId

func (x *ZkContractToTree) GetToAccountId() uint64

func (*ZkContractToTree) GetToEthAddr

func (x *ZkContractToTree) GetToEthAddr() string

func (*ZkContractToTree) GetToLayer2Addr

func (x *ZkContractToTree) GetToLayer2Addr() string

func (*ZkContractToTree) GetTokenSymbol

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

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

func (*ZkContractToTreeNewWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkContractToTreeNewWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkContractToTreeNewWitnessInfo) GetAmount

func (x *ZkContractToTreeNewWitnessInfo) GetAmount() string

func (*ZkContractToTreeNewWitnessInfo) GetBlockInfo

func (x *ZkContractToTreeNewWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkContractToTreeNewWitnessInfo) GetEthAddress

func (x *ZkContractToTreeNewWitnessInfo) GetEthAddress() string

func (*ZkContractToTreeNewWitnessInfo) GetFee

func (*ZkContractToTreeNewWitnessInfo) GetLayer2Addr

func (x *ZkContractToTreeNewWitnessInfo) GetLayer2Addr() string

func (*ZkContractToTreeNewWitnessInfo) GetSignature

func (x *ZkContractToTreeNewWitnessInfo) GetSignature() *ZkSignature

func (*ZkContractToTreeNewWitnessInfo) GetToAccountID

func (x *ZkContractToTreeNewWitnessInfo) GetToAccountID() uint64

func (*ZkContractToTreeNewWitnessInfo) GetTokenID

func (x *ZkContractToTreeNewWitnessInfo) GetTokenID() uint64

func (*ZkContractToTreeNewWitnessInfo) ProtoMessage

func (*ZkContractToTreeNewWitnessInfo) ProtoMessage()

func (*ZkContractToTreeNewWitnessInfo) ProtoReflect

func (*ZkContractToTreeNewWitnessInfo) Reset

func (x *ZkContractToTreeNewWitnessInfo) Reset()

func (*ZkContractToTreeNewWitnessInfo) String

type ZkContractToTreeWitnessInfo

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

func (*ZkContractToTreeWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkContractToTreeWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkContractToTreeWitnessInfo) GetAccountID

func (x *ZkContractToTreeWitnessInfo) GetAccountID() uint64

func (*ZkContractToTreeWitnessInfo) GetAmount

func (x *ZkContractToTreeWitnessInfo) GetAmount() string

func (*ZkContractToTreeWitnessInfo) GetBlockInfo

func (x *ZkContractToTreeWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkContractToTreeWitnessInfo) GetFee

func (x *ZkContractToTreeWitnessInfo) GetFee() *ZkFee

func (*ZkContractToTreeWitnessInfo) GetSignature

func (x *ZkContractToTreeWitnessInfo) GetSignature() *ZkSignature

func (*ZkContractToTreeWitnessInfo) GetTokenID

func (x *ZkContractToTreeWitnessInfo) GetTokenID() uint64

func (*ZkContractToTreeWitnessInfo) ProtoMessage

func (*ZkContractToTreeWitnessInfo) ProtoMessage()

func (*ZkContractToTreeWitnessInfo) ProtoReflect

func (*ZkContractToTreeWitnessInfo) Reset

func (x *ZkContractToTreeWitnessInfo) Reset()

func (*ZkContractToTreeWitnessInfo) String

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"`
	ChainAddr    string       `protobuf:"bytes,4,opt,name=chainAddr,proto3" json:"chainAddr,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) Descriptor() ([]byte, []int)

Deprecated: Use ZkDeposit.ProtoReflect.Descriptor instead.

func (*ZkDeposit) GetAmount

func (x *ZkDeposit) GetAmount() string

func (*ZkDeposit) GetChainAddr

func (x *ZkDeposit) GetChainAddr() string

func (*ZkDeposit) GetEthAddress

func (x *ZkDeposit) GetEthAddress() string

func (*ZkDeposit) GetL1PriorityId

func (x *ZkDeposit) GetL1PriorityId() int64

func (*ZkDeposit) GetSignature

func (x *ZkDeposit) GetSignature() *ZkSignature

func (*ZkDeposit) GetTokenId

func (x *ZkDeposit) GetTokenId() uint64

func (*ZkDeposit) ProtoMessage

func (*ZkDeposit) ProtoMessage()

func (*ZkDeposit) ProtoReflect

func (x *ZkDeposit) ProtoReflect() protoreflect.Message

func (*ZkDeposit) Reset

func (x *ZkDeposit) Reset()

func (*ZkDeposit) String

func (x *ZkDeposit) String() string

type ZkDepositWitnessInfo

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

func (*ZkDepositWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkDepositWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkDepositWitnessInfo) GetAccountID

func (x *ZkDepositWitnessInfo) GetAccountID() uint64

func (*ZkDepositWitnessInfo) GetAmount

func (x *ZkDepositWitnessInfo) GetAmount() string

func (*ZkDepositWitnessInfo) GetBlockInfo

func (x *ZkDepositWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkDepositWitnessInfo) GetEthAddress

func (x *ZkDepositWitnessInfo) GetEthAddress() string

func (*ZkDepositWitnessInfo) GetL1PriorityID

func (x *ZkDepositWitnessInfo) GetL1PriorityID() int64

func (*ZkDepositWitnessInfo) GetLayer2Addr

func (x *ZkDepositWitnessInfo) GetLayer2Addr() string

func (*ZkDepositWitnessInfo) GetSignature

func (x *ZkDepositWitnessInfo) GetSignature() *ZkSignature

func (*ZkDepositWitnessInfo) GetTokenID

func (x *ZkDepositWitnessInfo) GetTokenID() uint64

func (*ZkDepositWitnessInfo) ProtoMessage

func (*ZkDepositWitnessInfo) ProtoMessage()

func (*ZkDepositWitnessInfo) ProtoReflect

func (x *ZkDepositWitnessInfo) ProtoReflect() protoreflect.Message

func (*ZkDepositWitnessInfo) Reset

func (x *ZkDepositWitnessInfo) Reset()

func (*ZkDepositWitnessInfo) String

func (x *ZkDepositWitnessInfo) String() string

type ZkExodusBatchProofReq

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

func (*ZkExodusBatchProofReq) Descriptor() ([]byte, []int)

Deprecated: Use ZkExodusBatchProofReq.ProtoReflect.Descriptor instead.

func (*ZkExodusBatchProofReq) GetEndAccountId

func (x *ZkExodusBatchProofReq) GetEndAccountId() uint64

func (*ZkExodusBatchProofReq) GetRootHash

func (x *ZkExodusBatchProofReq) GetRootHash() string

func (*ZkExodusBatchProofReq) GetStartAccountId

func (x *ZkExodusBatchProofReq) GetStartAccountId() uint64

func (*ZkExodusBatchProofReq) GetTokenId

func (x *ZkExodusBatchProofReq) GetTokenId() uint64

func (*ZkExodusBatchProofReq) ProtoMessage

func (*ZkExodusBatchProofReq) ProtoMessage()

func (*ZkExodusBatchProofReq) ProtoReflect

func (x *ZkExodusBatchProofReq) ProtoReflect() protoreflect.Message

func (*ZkExodusBatchProofReq) Reset

func (x *ZkExodusBatchProofReq) Reset()

func (*ZkExodusBatchProofReq) String

func (x *ZkExodusBatchProofReq) String() string

type ZkExodusMode

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

func (*ZkExodusMode) Descriptor() ([]byte, []int)

Deprecated: Use ZkExodusMode.ProtoReflect.Descriptor instead.

func (*ZkExodusMode) GetMode

func (x *ZkExodusMode) GetMode() uint32

func (*ZkExodusMode) GetRollback

func (x *ZkExodusMode) GetRollback() *ZkExodusRollbackModeParm

func (*ZkExodusMode) GetValue

func (m *ZkExodusMode) GetValue() isZkExodusMode_Value

func (*ZkExodusMode) ProtoMessage

func (*ZkExodusMode) ProtoMessage()

func (*ZkExodusMode) ProtoReflect

func (x *ZkExodusMode) ProtoReflect() protoreflect.Message

func (*ZkExodusMode) Reset

func (x *ZkExodusMode) Reset()

func (*ZkExodusMode) String

func (x *ZkExodusMode) String() string

type ZkExodusMode_Rollback

type ZkExodusMode_Rollback struct {
	Rollback *ZkExodusRollbackModeParm `protobuf:"bytes,2,opt,name=rollback,proto3,oneof"`
}

type ZkExodusRollbackModeParm

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

func (*ZkExodusRollbackModeParm) Descriptor() ([]byte, []int)

Deprecated: Use ZkExodusRollbackModeParm.ProtoReflect.Descriptor instead.

func (*ZkExodusRollbackModeParm) GetKnownBalanceGap

func (x *ZkExodusRollbackModeParm) GetKnownBalanceGap() uint32

func (*ZkExodusRollbackModeParm) GetLastSuccessProofId

func (x *ZkExodusRollbackModeParm) GetLastSuccessProofId() uint64

func (*ZkExodusRollbackModeParm) ProtoMessage

func (*ZkExodusRollbackModeParm) ProtoMessage()

func (*ZkExodusRollbackModeParm) ProtoReflect

func (x *ZkExodusRollbackModeParm) ProtoReflect() protoreflect.Message

func (*ZkExodusRollbackModeParm) Reset

func (x *ZkExodusRollbackModeParm) Reset()

func (*ZkExodusRollbackModeParm) String

func (x *ZkExodusRollbackModeParm) String() string

type ZkFee

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

func (*ZkFee) Descriptor() ([]byte, []int)

Deprecated: Use ZkFee.ProtoReflect.Descriptor instead.

func (*ZkFee) GetFee

func (x *ZkFee) GetFee() string

func (*ZkFee) GetTokenID

func (x *ZkFee) GetTokenID() uint64

func (*ZkFee) ProtoMessage

func (*ZkFee) ProtoMessage()

func (*ZkFee) ProtoReflect

func (x *ZkFee) ProtoReflect() protoreflect.Message

func (*ZkFee) Reset

func (x *ZkFee) Reset()

func (*ZkFee) String

func (x *ZkFee) String() string

type ZkFeeAddrs

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

func (*ZkFeeAddrs) Descriptor() ([]byte, []int)

Deprecated: Use ZkFeeAddrs.ProtoReflect.Descriptor instead.

func (*ZkFeeAddrs) GetEthFeeAddr

func (x *ZkFeeAddrs) GetEthFeeAddr() string

func (*ZkFeeAddrs) GetL2FeeAddr

func (x *ZkFeeAddrs) GetL2FeeAddr() string

func (*ZkFeeAddrs) ProtoMessage

func (*ZkFeeAddrs) ProtoMessage()

func (*ZkFeeAddrs) ProtoReflect

func (x *ZkFeeAddrs) ProtoReflect() protoreflect.Message

func (*ZkFeeAddrs) Reset

func (x *ZkFeeAddrs) Reset()

func (*ZkFeeAddrs) String

func (x *ZkFeeAddrs) String() string

type ZkFeeWitnessInfo

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

func (*ZkFeeWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkFeeWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkFeeWitnessInfo) GetAccountID

func (x *ZkFeeWitnessInfo) GetAccountID() uint64

func (*ZkFeeWitnessInfo) GetAmount

func (x *ZkFeeWitnessInfo) GetAmount() string

func (*ZkFeeWitnessInfo) GetSignature

func (x *ZkFeeWitnessInfo) GetSignature() *ZkSignature

func (*ZkFeeWitnessInfo) GetTokenID

func (x *ZkFeeWitnessInfo) GetTokenID() uint64

func (*ZkFeeWitnessInfo) ProtoMessage

func (*ZkFeeWitnessInfo) ProtoMessage()

func (*ZkFeeWitnessInfo) ProtoReflect

func (x *ZkFeeWitnessInfo) ProtoReflect() protoreflect.Message

func (*ZkFeeWitnessInfo) Reset

func (x *ZkFeeWitnessInfo) Reset()

func (*ZkFeeWitnessInfo) String

func (x *ZkFeeWitnessInfo) String() string

type ZkFetchProofList

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

func (*ZkFetchProofList) Descriptor() ([]byte, []int)

Deprecated: Use ZkFetchProofList.ProtoReflect.Descriptor instead.

func (*ZkFetchProofList) GetEndHeight

func (x *ZkFetchProofList) GetEndHeight() uint64

func (*ZkFetchProofList) GetOnChainProofId

func (x *ZkFetchProofList) GetOnChainProofId() uint64

func (*ZkFetchProofList) GetProofId

func (x *ZkFetchProofList) GetProofId() uint64

func (*ZkFetchProofList) GetReqLatestProof

func (x *ZkFetchProofList) GetReqLatestProof() bool

func (*ZkFetchProofList) GetReqOnChainProof

func (x *ZkFetchProofList) GetReqOnChainProof() bool

func (*ZkFetchProofList) ProtoMessage

func (*ZkFetchProofList) ProtoMessage()

func (*ZkFetchProofList) ProtoReflect

func (x *ZkFetchProofList) ProtoReflect() protoreflect.Message

func (*ZkFetchProofList) Reset

func (x *ZkFetchProofList) Reset()

func (*ZkFetchProofList) String

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

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

func (*ZkFullExitWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkFullExitWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkFullExitWitnessInfo) GetAccountID

func (x *ZkFullExitWitnessInfo) GetAccountID() uint64

func (*ZkFullExitWitnessInfo) GetAmount

func (x *ZkFullExitWitnessInfo) GetAmount() string

func (*ZkFullExitWitnessInfo) GetBlockInfo

func (x *ZkFullExitWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkFullExitWitnessInfo) GetEthAddress

func (x *ZkFullExitWitnessInfo) GetEthAddress() string

func (*ZkFullExitWitnessInfo) GetFee

func (x *ZkFullExitWitnessInfo) GetFee() *ZkFee

func (*ZkFullExitWitnessInfo) GetSignature

func (x *ZkFullExitWitnessInfo) GetSignature() *ZkSignature

func (*ZkFullExitWitnessInfo) GetTokenID

func (x *ZkFullExitWitnessInfo) GetTokenID() uint64

func (*ZkFullExitWitnessInfo) ProtoMessage

func (*ZkFullExitWitnessInfo) ProtoMessage()

func (*ZkFullExitWitnessInfo) ProtoReflect

func (x *ZkFullExitWitnessInfo) ProtoReflect() protoreflect.Message

func (*ZkFullExitWitnessInfo) Reset

func (x *ZkFullExitWitnessInfo) Reset()

func (*ZkFullExitWitnessInfo) String

func (x *ZkFullExitWitnessInfo) String() string

type ZkMintNFT

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

func (*ZkMintNFT) Descriptor() ([]byte, []int)

Deprecated: Use ZkMintNFT.ProtoReflect.Descriptor instead.

func (*ZkMintNFT) GetAmount

func (x *ZkMintNFT) GetAmount() uint64

func (*ZkMintNFT) GetContentHash

func (x *ZkMintNFT) GetContentHash() string

func (*ZkMintNFT) GetErcProtocol

func (x *ZkMintNFT) GetErcProtocol() uint64

func (*ZkMintNFT) GetFromAccountId

func (x *ZkMintNFT) GetFromAccountId() uint64

func (*ZkMintNFT) GetRecipientId

func (x *ZkMintNFT) GetRecipientId() uint64

func (*ZkMintNFT) GetSignature

func (x *ZkMintNFT) GetSignature() *ZkSignature

func (*ZkMintNFT) ProtoMessage

func (*ZkMintNFT) ProtoMessage()

func (*ZkMintNFT) ProtoReflect

func (x *ZkMintNFT) ProtoReflect() protoreflect.Message

func (*ZkMintNFT) Reset

func (x *ZkMintNFT) Reset()

func (*ZkMintNFT) String

func (x *ZkMintNFT) String() string

type ZkMintNFTWitnessInfo

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

func (*ZkMintNFTWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkMintNFTWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkMintNFTWitnessInfo) GetAmount

func (x *ZkMintNFTWitnessInfo) GetAmount() uint64

func (*ZkMintNFTWitnessInfo) GetBlockInfo

func (x *ZkMintNFTWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkMintNFTWitnessInfo) GetContentHash

func (x *ZkMintNFTWitnessInfo) GetContentHash() []string

func (*ZkMintNFTWitnessInfo) GetCreateSerialID

func (x *ZkMintNFTWitnessInfo) GetCreateSerialID() uint64

func (*ZkMintNFTWitnessInfo) GetErcProtocol

func (x *ZkMintNFTWitnessInfo) GetErcProtocol() uint64

func (*ZkMintNFTWitnessInfo) GetFee

func (x *ZkMintNFTWitnessInfo) GetFee() *ZkFee

func (*ZkMintNFTWitnessInfo) GetMintAcctID

func (x *ZkMintNFTWitnessInfo) GetMintAcctID() uint64

func (*ZkMintNFTWitnessInfo) GetNewNFTTokenID

func (x *ZkMintNFTWitnessInfo) GetNewNFTTokenID() uint64

func (*ZkMintNFTWitnessInfo) GetRecipientID

func (x *ZkMintNFTWitnessInfo) GetRecipientID() uint64

func (*ZkMintNFTWitnessInfo) GetSignature

func (x *ZkMintNFTWitnessInfo) GetSignature() *ZkSignature

func (*ZkMintNFTWitnessInfo) ProtoMessage

func (*ZkMintNFTWitnessInfo) ProtoMessage()

func (*ZkMintNFTWitnessInfo) ProtoReflect

func (x *ZkMintNFTWitnessInfo) ProtoReflect() protoreflect.Message

func (*ZkMintNFTWitnessInfo) Reset

func (x *ZkMintNFTWitnessInfo) Reset()

func (*ZkMintNFTWitnessInfo) String

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) Descriptor() ([]byte, []int)

Deprecated: Use ZkMsg.ProtoReflect.Descriptor instead.

func (*ZkMsg) GetFirst

func (x *ZkMsg) GetFirst() string

func (*ZkMsg) GetSecond

func (x *ZkMsg) GetSecond() string

func (*ZkMsg) GetThird

func (x *ZkMsg) GetThird() string

func (*ZkMsg) ProtoMessage

func (*ZkMsg) ProtoMessage()

func (*ZkMsg) ProtoReflect

func (x *ZkMsg) ProtoReflect() protoreflect.Message

func (*ZkMsg) Reset

func (x *ZkMsg) Reset()

func (*ZkMsg) String

func (x *ZkMsg) String() string

type ZkNFTTokenStatus

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

func (*ZkNFTTokenStatus) Descriptor() ([]byte, []int)

Deprecated: Use ZkNFTTokenStatus.ProtoReflect.Descriptor instead.

func (*ZkNFTTokenStatus) GetBurnedAmount

func (x *ZkNFTTokenStatus) GetBurnedAmount() uint64

func (*ZkNFTTokenStatus) GetContentHash

func (x *ZkNFTTokenStatus) GetContentHash() string

func (*ZkNFTTokenStatus) GetCreatorEthAddr

func (x *ZkNFTTokenStatus) GetCreatorEthAddr() string

func (*ZkNFTTokenStatus) GetCreatorId

func (x *ZkNFTTokenStatus) GetCreatorId() uint64

func (*ZkNFTTokenStatus) GetCreatorSerialId

func (x *ZkNFTTokenStatus) GetCreatorSerialId() uint64

func (*ZkNFTTokenStatus) GetErcProtocol

func (x *ZkNFTTokenStatus) GetErcProtocol() uint64

func (*ZkNFTTokenStatus) GetId

func (x *ZkNFTTokenStatus) GetId() uint64

func (*ZkNFTTokenStatus) GetMintAmount

func (x *ZkNFTTokenStatus) GetMintAmount() uint64

func (*ZkNFTTokenStatus) ProtoMessage

func (*ZkNFTTokenStatus) ProtoMessage()

func (*ZkNFTTokenStatus) ProtoReflect

func (x *ZkNFTTokenStatus) ProtoReflect() protoreflect.Message

func (*ZkNFTTokenStatus) Reset

func (x *ZkNFTTokenStatus) Reset()

func (*ZkNFTTokenStatus) String

func (x *ZkNFTTokenStatus) String() string

type ZkOpFeeData

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

func (*ZkOpFeeData) Descriptor() ([]byte, []int)

Deprecated: Use ZkOpFeeData.ProtoReflect.Descriptor instead.

func (*ZkOpFeeData) GetFee

func (x *ZkOpFeeData) GetFee() string

func (*ZkOpFeeData) GetTokenId

func (x *ZkOpFeeData) GetTokenId() uint64

func (*ZkOpFeeData) ProtoMessage

func (*ZkOpFeeData) ProtoMessage()

func (*ZkOpFeeData) ProtoReflect

func (x *ZkOpFeeData) ProtoReflect() protoreflect.Message

func (*ZkOpFeeData) Reset

func (x *ZkOpFeeData) Reset()

func (*ZkOpFeeData) String

func (x *ZkOpFeeData) String() string

type ZkOpNFTData

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

func (*ZkOpNFTData) Descriptor() ([]byte, []int)

Deprecated: Use ZkOpNFTData.ProtoReflect.Descriptor instead.

func (*ZkOpNFTData) GetAmount

func (x *ZkOpNFTData) GetAmount() string

func (*ZkOpNFTData) GetContent

func (x *ZkOpNFTData) GetContent() *ZkContentHash

func (*ZkOpNFTData) GetCreatorId

func (x *ZkOpNFTData) GetCreatorId() uint64

func (*ZkOpNFTData) GetCreatorSerialId

func (x *ZkOpNFTData) GetCreatorSerialId() uint64

func (*ZkOpNFTData) GetErcProtocol

func (x *ZkOpNFTData) GetErcProtocol() uint64

func (*ZkOpNFTData) GetMintAmount

func (x *ZkOpNFTData) GetMintAmount() string

func (*ZkOpNFTData) GetTokenId

func (x *ZkOpNFTData) GetTokenId() uint64

func (*ZkOpNFTData) ProtoMessage

func (*ZkOpNFTData) ProtoMessage()

func (*ZkOpNFTData) ProtoReflect

func (x *ZkOpNFTData) ProtoReflect() protoreflect.Message

func (*ZkOpNFTData) Reset

func (x *ZkOpNFTData) Reset()

func (*ZkOpNFTData) String

func (x *ZkOpNFTData) String() string

type ZkOpSwapData

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

func (*ZkOpSwapData) Descriptor() ([]byte, []int)

Deprecated: Use ZkOpSwapData.ProtoReflect.Descriptor instead.

func (*ZkOpSwapData) GetAmount

func (x *ZkOpSwapData) GetAmount() string

func (*ZkOpSwapData) GetFee

func (x *ZkOpSwapData) GetFee() string

func (*ZkOpSwapData) GetTokenId

func (x *ZkOpSwapData) GetTokenId() uint64

func (*ZkOpSwapData) ProtoMessage

func (*ZkOpSwapData) ProtoMessage()

func (*ZkOpSwapData) ProtoReflect

func (x *ZkOpSwapData) ProtoReflect() protoreflect.Message

func (*ZkOpSwapData) Reset

func (x *ZkOpSwapData) Reset()

func (*ZkOpSwapData) String

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

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

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

func (*ZkProofWitness) Descriptor() ([]byte, []int)

Deprecated: Use ZkProofWitness.ProtoReflect.Descriptor instead.

func (*ZkProofWitness) GetAccountWitness

func (x *ZkProofWitness) GetAccountWitness() *AccountWitness

func (*ZkProofWitness) GetTokenWitness

func (x *ZkProofWitness) GetTokenWitness() *TokenWitness

func (*ZkProofWitness) GetTreeRoot

func (x *ZkProofWitness) GetTreeRoot() string

func (*ZkProofWitness) ProtoMessage

func (*ZkProofWitness) ProtoMessage()

func (*ZkProofWitness) ProtoReflect

func (x *ZkProofWitness) ProtoReflect() protoreflect.Message

func (*ZkProofWitness) Reset

func (x *ZkProofWitness) Reset()

func (*ZkProofWitness) String

func (x *ZkProofWitness) String() string

type ZkProxyExit

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

func (*ZkProxyExit) Descriptor() ([]byte, []int)

Deprecated: Use ZkProxyExit.ProtoReflect.Descriptor instead.

func (*ZkProxyExit) GetFee

func (x *ZkProxyExit) GetFee() *ZkFee

func (*ZkProxyExit) GetProxyId

func (x *ZkProxyExit) GetProxyId() uint64

func (*ZkProxyExit) GetSignature

func (x *ZkProxyExit) GetSignature() *ZkSignature

func (*ZkProxyExit) GetTargetId

func (x *ZkProxyExit) GetTargetId() uint64

func (*ZkProxyExit) GetTokenId

func (x *ZkProxyExit) GetTokenId() uint64

func (*ZkProxyExit) ProtoMessage

func (*ZkProxyExit) ProtoMessage()

func (*ZkProxyExit) ProtoReflect

func (x *ZkProxyExit) ProtoReflect() protoreflect.Message

func (*ZkProxyExit) Reset

func (x *ZkProxyExit) Reset()

func (*ZkProxyExit) String

func (x *ZkProxyExit) String() string

type ZkProxyExitWitnessInfo

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

func (*ZkProxyExitWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkProxyExitWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkProxyExitWitnessInfo) GetAmount

func (x *ZkProxyExitWitnessInfo) GetAmount() string

func (*ZkProxyExitWitnessInfo) GetBlockInfo

func (x *ZkProxyExitWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkProxyExitWitnessInfo) GetEthAddress

func (x *ZkProxyExitWitnessInfo) GetEthAddress() string

func (*ZkProxyExitWitnessInfo) GetFee

func (x *ZkProxyExitWitnessInfo) GetFee() *ZkFee

func (*ZkProxyExitWitnessInfo) GetProxyID

func (x *ZkProxyExitWitnessInfo) GetProxyID() uint64

func (*ZkProxyExitWitnessInfo) GetSignature

func (x *ZkProxyExitWitnessInfo) GetSignature() *ZkSignature

func (*ZkProxyExitWitnessInfo) GetTargetID

func (x *ZkProxyExitWitnessInfo) GetTargetID() uint64

func (*ZkProxyExitWitnessInfo) GetTokenID

func (x *ZkProxyExitWitnessInfo) GetTokenID() uint64

func (*ZkProxyExitWitnessInfo) ProtoMessage

func (*ZkProxyExitWitnessInfo) ProtoMessage()

func (*ZkProxyExitWitnessInfo) ProtoReflect

func (x *ZkProxyExitWitnessInfo) ProtoReflect() protoreflect.Message

func (*ZkProxyExitWitnessInfo) Reset

func (x *ZkProxyExitWitnessInfo) Reset()

func (*ZkProxyExitWitnessInfo) String

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) Descriptor() ([]byte, []int)

Deprecated: Use ZkPubKey.ProtoReflect.Descriptor instead.

func (*ZkPubKey) GetX

func (x *ZkPubKey) GetX() string

func (*ZkPubKey) GetY

func (x *ZkPubKey) GetY() string

func (*ZkPubKey) ProtoMessage

func (*ZkPubKey) ProtoMessage()

func (*ZkPubKey) ProtoReflect

func (x *ZkPubKey) ProtoReflect() protoreflect.Message

func (*ZkPubKey) Reset

func (x *ZkPubKey) Reset()

func (*ZkPubKey) String

func (x *ZkPubKey) String() string

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"`
	ChainAddr       string `protobuf:"bytes,5,opt,name=chainAddr,proto3" json:"chainAddr,omitempty"`
	TokenSymbol     string `protobuf:"bytes,6,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	ChainWalletAddr string `protobuf:"bytes,7,opt,name=chainWalletAddr,proto3" json:"chainWalletAddr,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) GetChainAddr

func (x *ZkQueryReq) GetChainAddr() string

func (*ZkQueryReq) GetChainWalletAddr

func (x *ZkQueryReq) GetChainWalletAddr() string

func (*ZkQueryReq) GetDecimal

func (x *ZkQueryReq) GetDecimal() uint32

func (*ZkQueryReq) GetEthAddress

func (x *ZkQueryReq) GetEthAddress() string

func (*ZkQueryReq) GetOpType

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

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

func (*ZkQueryTxOperationReq) Descriptor() ([]byte, []int)

Deprecated: Use ZkQueryTxOperationReq.ProtoReflect.Descriptor instead.

func (*ZkQueryTxOperationReq) GetBlockOffset

func (x *ZkQueryTxOperationReq) GetBlockOffset() uint32

func (*ZkQueryTxOperationReq) GetCount

func (x *ZkQueryTxOperationReq) GetCount() uint32

func (*ZkQueryTxOperationReq) GetMaturity

func (x *ZkQueryTxOperationReq) GetMaturity() uint32

func (*ZkQueryTxOperationReq) GetOpIndex

func (x *ZkQueryTxOperationReq) GetOpIndex() uint32

func (*ZkQueryTxOperationReq) GetStartBlockHeight

func (x *ZkQueryTxOperationReq) GetStartBlockHeight() uint64

func (*ZkQueryTxOperationReq) GetStartIndex

func (x *ZkQueryTxOperationReq) GetStartIndex() uint64

func (*ZkQueryTxOperationReq) ProtoMessage

func (*ZkQueryTxOperationReq) ProtoMessage()

func (*ZkQueryTxOperationReq) ProtoReflect

func (x *ZkQueryTxOperationReq) ProtoReflect() protoreflect.Message

func (*ZkQueryTxOperationReq) Reset

func (x *ZkQueryTxOperationReq) Reset()

func (*ZkQueryTxOperationReq) String

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

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

func (*ZkReqExistenceProof) Descriptor() ([]byte, []int)

Deprecated: Use ZkReqExistenceProof.ProtoReflect.Descriptor instead.

func (*ZkReqExistenceProof) GetAccountId

func (x *ZkReqExistenceProof) GetAccountId() uint64

func (*ZkReqExistenceProof) GetRootHash

func (x *ZkReqExistenceProof) GetRootHash() string

func (*ZkReqExistenceProof) GetTokenId

func (x *ZkReqExistenceProof) GetTokenId() uint64

func (*ZkReqExistenceProof) ProtoMessage

func (*ZkReqExistenceProof) ProtoMessage()

func (*ZkReqExistenceProof) ProtoReflect

func (x *ZkReqExistenceProof) ProtoReflect() protoreflect.Message

func (*ZkReqExistenceProof) Reset

func (x *ZkReqExistenceProof) Reset()

func (*ZkReqExistenceProof) String

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) Descriptor() ([]byte, []int)

Deprecated: Use ZkSetFee.ProtoReflect.Descriptor instead.

func (*ZkSetFee) GetActionTy

func (x *ZkSetFee) GetActionTy() int32

func (*ZkSetFee) GetAmount

func (x *ZkSetFee) GetAmount() string

func (*ZkSetFee) GetTokenId

func (x *ZkSetFee) GetTokenId() uint64

func (*ZkSetFee) ProtoMessage

func (*ZkSetFee) ProtoMessage()

func (*ZkSetFee) ProtoReflect

func (x *ZkSetFee) ProtoReflect() protoreflect.Message

func (*ZkSetFee) Reset

func (x *ZkSetFee) Reset()

func (*ZkSetFee) String

func (x *ZkSetFee) String() string

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

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

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

func (*ZkSetPubKeyData) Descriptor() ([]byte, []int)

Deprecated: Use ZkSetPubKeyData.ProtoReflect.Descriptor instead.

func (*ZkSetPubKeyData) GetPubKey

func (x *ZkSetPubKeyData) GetPubKey() *ZkPubKey

func (*ZkSetPubKeyData) GetTy

func (x *ZkSetPubKeyData) GetTy() uint64

func (*ZkSetPubKeyData) ProtoMessage

func (*ZkSetPubKeyData) ProtoMessage()

func (*ZkSetPubKeyData) ProtoReflect

func (x *ZkSetPubKeyData) ProtoReflect() protoreflect.Message

func (*ZkSetPubKeyData) Reset

func (x *ZkSetPubKeyData) Reset()

func (*ZkSetPubKeyData) String

func (x *ZkSetPubKeyData) String() string

type ZkSetPubKeyWitnessInfo

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

func (*ZkSetPubKeyWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkSetPubKeyWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkSetPubKeyWitnessInfo) GetAccountID

func (x *ZkSetPubKeyWitnessInfo) GetAccountID() uint64

func (*ZkSetPubKeyWitnessInfo) GetBlockInfo

func (x *ZkSetPubKeyWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkSetPubKeyWitnessInfo) GetPubKey

func (x *ZkSetPubKeyWitnessInfo) GetPubKey() *ZkPubKey

func (*ZkSetPubKeyWitnessInfo) GetPubKeyTy

func (x *ZkSetPubKeyWitnessInfo) GetPubKeyTy() uint64

func (*ZkSetPubKeyWitnessInfo) GetSignature

func (x *ZkSetPubKeyWitnessInfo) GetSignature() *ZkSignature

func (*ZkSetPubKeyWitnessInfo) ProtoMessage

func (*ZkSetPubKeyWitnessInfo) ProtoMessage()

func (*ZkSetPubKeyWitnessInfo) ProtoReflect

func (x *ZkSetPubKeyWitnessInfo) ProtoReflect() protoreflect.Message

func (*ZkSetPubKeyWitnessInfo) Reset

func (x *ZkSetPubKeyWitnessInfo) Reset()

func (*ZkSetPubKeyWitnessInfo) String

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) Descriptor() ([]byte, []int)

Deprecated: Use ZkSwap.ProtoReflect.Descriptor instead.

func (*ZkSwap) GetSignature

func (x *ZkSwap) GetSignature() *ZkSignature

func (*ZkSwap) ProtoMessage

func (*ZkSwap) ProtoMessage()

func (*ZkSwap) ProtoReflect

func (x *ZkSwap) ProtoReflect() protoreflect.Message

func (*ZkSwap) Reset

func (x *ZkSwap) Reset()

func (*ZkSwap) String

func (x *ZkSwap) String() string

type ZkSwapOrderInfo

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

func (*ZkSwapOrderInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkSwapOrderInfo.ProtoReflect.Descriptor instead.

func (*ZkSwapOrderInfo) GetAccountID

func (x *ZkSwapOrderInfo) GetAccountID() uint64

func (*ZkSwapOrderInfo) GetAmount

func (x *ZkSwapOrderInfo) GetAmount() string

func (*ZkSwapOrderInfo) GetRatioBuy

func (x *ZkSwapOrderInfo) GetRatioBuy() string

func (*ZkSwapOrderInfo) GetRatioSell

func (x *ZkSwapOrderInfo) GetRatioSell() string

func (*ZkSwapOrderInfo) GetSignature

func (x *ZkSwapOrderInfo) GetSignature() *ZkSignature

func (*ZkSwapOrderInfo) ProtoMessage

func (*ZkSwapOrderInfo) ProtoMessage()

func (*ZkSwapOrderInfo) ProtoReflect

func (x *ZkSwapOrderInfo) ProtoReflect() protoreflect.Message

func (*ZkSwapOrderInfo) Reset

func (x *ZkSwapOrderInfo) Reset()

func (*ZkSwapOrderInfo) String

func (x *ZkSwapOrderInfo) String() string

type ZkSwapWitnessInfo

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

func (*ZkSwapWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkSwapWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkSwapWitnessInfo) GetBlockInfo

func (x *ZkSwapWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkSwapWitnessInfo) GetFee

func (x *ZkSwapWitnessInfo) GetFee() *ZkFee

func (*ZkSwapWitnessInfo) GetLeft

func (x *ZkSwapWitnessInfo) GetLeft() *ZkSwapOrderInfo

func (*ZkSwapWitnessInfo) GetLeftDealAmount

func (x *ZkSwapWitnessInfo) GetLeftDealAmount() string

func (*ZkSwapWitnessInfo) GetLeftTokenID

func (x *ZkSwapWitnessInfo) GetLeftTokenID() uint64

func (*ZkSwapWitnessInfo) GetRight

func (x *ZkSwapWitnessInfo) GetRight() *ZkSwapOrderInfo

func (*ZkSwapWitnessInfo) GetRightDealAmount

func (x *ZkSwapWitnessInfo) GetRightDealAmount() string

func (*ZkSwapWitnessInfo) GetRightTokenID

func (x *ZkSwapWitnessInfo) GetRightTokenID() uint64

func (*ZkSwapWitnessInfo) ProtoMessage

func (*ZkSwapWitnessInfo) ProtoMessage()

func (*ZkSwapWitnessInfo) ProtoReflect

func (x *ZkSwapWitnessInfo) ProtoReflect() protoreflect.Message

func (*ZkSwapWitnessInfo) Reset

func (x *ZkSwapWitnessInfo) Reset()

func (*ZkSwapWitnessInfo) String

func (x *ZkSwapWitnessInfo) String() string

type ZkTokenSymbol

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

func (*ZkTokenSymbol) Descriptor() ([]byte, []int)

Deprecated: Use ZkTokenSymbol.ProtoReflect.Descriptor instead.

func (*ZkTokenSymbol) GetDecimal

func (x *ZkTokenSymbol) GetDecimal() uint32

func (*ZkTokenSymbol) GetId

func (x *ZkTokenSymbol) GetId() string

func (*ZkTokenSymbol) GetSymbol

func (x *ZkTokenSymbol) GetSymbol() string

func (*ZkTokenSymbol) ProtoMessage

func (*ZkTokenSymbol) ProtoMessage()

func (*ZkTokenSymbol) ProtoReflect

func (x *ZkTokenSymbol) ProtoReflect() protoreflect.Message

func (*ZkTokenSymbol) Reset

func (x *ZkTokenSymbol) Reset()

func (*ZkTokenSymbol) String

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

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

func (*ZkTransferNFT) Descriptor() ([]byte, []int)

Deprecated: Use ZkTransferNFT.ProtoReflect.Descriptor instead.

func (*ZkTransferNFT) GetAmount

func (x *ZkTransferNFT) GetAmount() uint64

func (*ZkTransferNFT) GetFromAccountId

func (x *ZkTransferNFT) GetFromAccountId() uint64

func (*ZkTransferNFT) GetNFTTokenId

func (x *ZkTransferNFT) GetNFTTokenId() uint64

func (*ZkTransferNFT) GetRecipientId

func (x *ZkTransferNFT) GetRecipientId() uint64

func (*ZkTransferNFT) GetSignature

func (x *ZkTransferNFT) GetSignature() *ZkSignature

func (*ZkTransferNFT) ProtoMessage

func (*ZkTransferNFT) ProtoMessage()

func (*ZkTransferNFT) ProtoReflect

func (x *ZkTransferNFT) ProtoReflect() protoreflect.Message

func (*ZkTransferNFT) Reset

func (x *ZkTransferNFT) Reset()

func (*ZkTransferNFT) String

func (x *ZkTransferNFT) String() string

type ZkTransferNFTWitnessInfo

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

func (*ZkTransferNFTWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkTransferNFTWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkTransferNFTWitnessInfo) GetAmount

func (x *ZkTransferNFTWitnessInfo) GetAmount() uint64

func (*ZkTransferNFTWitnessInfo) GetBlockInfo

func (x *ZkTransferNFTWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkTransferNFTWitnessInfo) GetFee

func (x *ZkTransferNFTWitnessInfo) GetFee() *ZkFee

func (*ZkTransferNFTWitnessInfo) GetFromAccountID

func (x *ZkTransferNFTWitnessInfo) GetFromAccountID() uint64

func (*ZkTransferNFTWitnessInfo) GetNFTTokenID

func (x *ZkTransferNFTWitnessInfo) GetNFTTokenID() uint64

func (*ZkTransferNFTWitnessInfo) GetRecipientID

func (x *ZkTransferNFTWitnessInfo) GetRecipientID() uint64

func (*ZkTransferNFTWitnessInfo) GetSignature

func (x *ZkTransferNFTWitnessInfo) GetSignature() *ZkSignature

func (*ZkTransferNFTWitnessInfo) ProtoMessage

func (*ZkTransferNFTWitnessInfo) ProtoMessage()

func (*ZkTransferNFTWitnessInfo) ProtoReflect

func (x *ZkTransferNFTWitnessInfo) ProtoReflect() protoreflect.Message

func (*ZkTransferNFTWitnessInfo) Reset

func (x *ZkTransferNFTWitnessInfo) Reset()

func (*ZkTransferNFTWitnessInfo) String

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

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

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

func (*ZkTransferToNewWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkTransferToNewWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkTransferToNewWitnessInfo) GetAmount

func (x *ZkTransferToNewWitnessInfo) GetAmount() string

func (*ZkTransferToNewWitnessInfo) GetBlockInfo

func (x *ZkTransferToNewWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkTransferToNewWitnessInfo) GetEthAddress

func (x *ZkTransferToNewWitnessInfo) GetEthAddress() string

func (*ZkTransferToNewWitnessInfo) GetFee

func (x *ZkTransferToNewWitnessInfo) GetFee() *ZkFee

func (*ZkTransferToNewWitnessInfo) GetFromAccountID

func (x *ZkTransferToNewWitnessInfo) GetFromAccountID() uint64

func (*ZkTransferToNewWitnessInfo) GetLayer2Addr

func (x *ZkTransferToNewWitnessInfo) GetLayer2Addr() string

func (*ZkTransferToNewWitnessInfo) GetSignature

func (x *ZkTransferToNewWitnessInfo) GetSignature() *ZkSignature

func (*ZkTransferToNewWitnessInfo) GetToAccountID

func (x *ZkTransferToNewWitnessInfo) GetToAccountID() uint64

func (*ZkTransferToNewWitnessInfo) GetTokenID

func (x *ZkTransferToNewWitnessInfo) GetTokenID() uint64

func (*ZkTransferToNewWitnessInfo) ProtoMessage

func (*ZkTransferToNewWitnessInfo) ProtoMessage()

func (*ZkTransferToNewWitnessInfo) ProtoReflect

func (*ZkTransferToNewWitnessInfo) Reset

func (x *ZkTransferToNewWitnessInfo) Reset()

func (*ZkTransferToNewWitnessInfo) String

func (x *ZkTransferToNewWitnessInfo) String() string

type ZkTransferWitnessInfo

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

func (*ZkTransferWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkTransferWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkTransferWitnessInfo) GetAmount

func (x *ZkTransferWitnessInfo) GetAmount() string

func (*ZkTransferWitnessInfo) GetBlockInfo

func (x *ZkTransferWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkTransferWitnessInfo) GetFee

func (x *ZkTransferWitnessInfo) GetFee() *ZkFee

func (*ZkTransferWitnessInfo) GetFromAccountID

func (x *ZkTransferWitnessInfo) GetFromAccountID() uint64

func (*ZkTransferWitnessInfo) GetSignature

func (x *ZkTransferWitnessInfo) GetSignature() *ZkSignature

func (*ZkTransferWitnessInfo) GetToAccountID

func (x *ZkTransferWitnessInfo) GetToAccountID() uint64

func (*ZkTransferWitnessInfo) GetTokenID

func (x *ZkTransferWitnessInfo) GetTokenID() uint64

func (*ZkTransferWitnessInfo) ProtoMessage

func (*ZkTransferWitnessInfo) ProtoMessage()

func (*ZkTransferWitnessInfo) ProtoReflect

func (x *ZkTransferWitnessInfo) ProtoReflect() protoreflect.Message

func (*ZkTransferWitnessInfo) Reset

func (x *ZkTransferWitnessInfo) Reset()

func (*ZkTransferWitnessInfo) String

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
}

从二层铸造到chain合约

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

func (x *ZkTreeToContract) GetToAcctId() uint64

func (*ZkTreeToContract) GetToExec

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

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

func (*ZkTreeToContractWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkTreeToContractWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkTreeToContractWitnessInfo) GetAccountID

func (x *ZkTreeToContractWitnessInfo) GetAccountID() uint64

func (*ZkTreeToContractWitnessInfo) GetAmount

func (x *ZkTreeToContractWitnessInfo) GetAmount() string

func (*ZkTreeToContractWitnessInfo) GetBlockInfo

func (x *ZkTreeToContractWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkTreeToContractWitnessInfo) GetFee

func (x *ZkTreeToContractWitnessInfo) GetFee() *ZkFee

func (*ZkTreeToContractWitnessInfo) GetSignature

func (x *ZkTreeToContractWitnessInfo) GetSignature() *ZkSignature

func (*ZkTreeToContractWitnessInfo) GetTokenID

func (x *ZkTreeToContractWitnessInfo) GetTokenID() uint64

func (*ZkTreeToContractWitnessInfo) ProtoMessage

func (*ZkTreeToContractWitnessInfo) ProtoMessage()

func (*ZkTreeToContractWitnessInfo) ProtoReflect

func (*ZkTreeToContractWitnessInfo) Reset

func (x *ZkTreeToContractWitnessInfo) Reset()

func (*ZkTreeToContractWitnessInfo) String

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

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

func (*ZkWithdrawNFT) Descriptor() ([]byte, []int)

Deprecated: Use ZkWithdrawNFT.ProtoReflect.Descriptor instead.

func (*ZkWithdrawNFT) GetAmount

func (x *ZkWithdrawNFT) GetAmount() uint64

func (*ZkWithdrawNFT) GetFromAccountId

func (x *ZkWithdrawNFT) GetFromAccountId() uint64

func (*ZkWithdrawNFT) GetNFTTokenId

func (x *ZkWithdrawNFT) GetNFTTokenId() uint64

func (*ZkWithdrawNFT) GetSignature

func (x *ZkWithdrawNFT) GetSignature() *ZkSignature

func (*ZkWithdrawNFT) ProtoMessage

func (*ZkWithdrawNFT) ProtoMessage()

func (*ZkWithdrawNFT) ProtoReflect

func (x *ZkWithdrawNFT) ProtoReflect() protoreflect.Message

func (*ZkWithdrawNFT) Reset

func (x *ZkWithdrawNFT) Reset()

func (*ZkWithdrawNFT) String

func (x *ZkWithdrawNFT) String() string

type ZkWithdrawNFTWitnessInfo

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

func (*ZkWithdrawNFTWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkWithdrawNFTWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkWithdrawNFTWitnessInfo) GetBlockInfo

func (x *ZkWithdrawNFTWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkWithdrawNFTWitnessInfo) GetContentHash

func (x *ZkWithdrawNFTWitnessInfo) GetContentHash() []string

func (*ZkWithdrawNFTWitnessInfo) GetCreatorAcctID

func (x *ZkWithdrawNFTWitnessInfo) GetCreatorAcctID() uint64

func (*ZkWithdrawNFTWitnessInfo) GetCreatorSerialID

func (x *ZkWithdrawNFTWitnessInfo) GetCreatorSerialID() uint64

func (*ZkWithdrawNFTWitnessInfo) GetErcProtocol

func (x *ZkWithdrawNFTWitnessInfo) GetErcProtocol() uint64

func (*ZkWithdrawNFTWitnessInfo) GetEthAddress

func (x *ZkWithdrawNFTWitnessInfo) GetEthAddress() string

func (*ZkWithdrawNFTWitnessInfo) GetFee

func (x *ZkWithdrawNFTWitnessInfo) GetFee() *ZkFee

func (*ZkWithdrawNFTWitnessInfo) GetFromAcctID

func (x *ZkWithdrawNFTWitnessInfo) GetFromAcctID() uint64

func (*ZkWithdrawNFTWitnessInfo) GetInitMintAmount

func (x *ZkWithdrawNFTWitnessInfo) GetInitMintAmount() uint64

func (*ZkWithdrawNFTWitnessInfo) GetNFTTokenID

func (x *ZkWithdrawNFTWitnessInfo) GetNFTTokenID() uint64

func (*ZkWithdrawNFTWitnessInfo) GetSignature

func (x *ZkWithdrawNFTWitnessInfo) GetSignature() *ZkSignature

func (*ZkWithdrawNFTWitnessInfo) GetWithdrawAmount

func (x *ZkWithdrawNFTWitnessInfo) GetWithdrawAmount() uint64

func (*ZkWithdrawNFTWitnessInfo) ProtoMessage

func (*ZkWithdrawNFTWitnessInfo) ProtoMessage()

func (*ZkWithdrawNFTWitnessInfo) ProtoReflect

func (x *ZkWithdrawNFTWitnessInfo) ProtoReflect() protoreflect.Message

func (*ZkWithdrawNFTWitnessInfo) Reset

func (x *ZkWithdrawNFTWitnessInfo) Reset()

func (*ZkWithdrawNFTWitnessInfo) String

func (x *ZkWithdrawNFTWitnessInfo) String() string

type ZkWithdrawWitnessInfo

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

func (*ZkWithdrawWitnessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkWithdrawWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkWithdrawWitnessInfo) GetAccountID

func (x *ZkWithdrawWitnessInfo) GetAccountID() uint64

func (*ZkWithdrawWitnessInfo) GetAmount

func (x *ZkWithdrawWitnessInfo) GetAmount() string

func (*ZkWithdrawWitnessInfo) GetBlockInfo

func (x *ZkWithdrawWitnessInfo) GetBlockInfo() *OpBlockInfo

func (*ZkWithdrawWitnessInfo) GetEthAddress

func (x *ZkWithdrawWitnessInfo) GetEthAddress() string

func (*ZkWithdrawWitnessInfo) GetFee

func (x *ZkWithdrawWitnessInfo) GetFee() *ZkFee

func (*ZkWithdrawWitnessInfo) GetSignature

func (x *ZkWithdrawWitnessInfo) GetSignature() *ZkSignature

func (*ZkWithdrawWitnessInfo) GetTokenID

func (x *ZkWithdrawWitnessInfo) GetTokenID() uint64

func (*ZkWithdrawWitnessInfo) ProtoMessage

func (*ZkWithdrawWitnessInfo) ProtoMessage()

func (*ZkWithdrawWitnessInfo) ProtoReflect

func (x *ZkWithdrawWitnessInfo) ProtoReflect() protoreflect.Message

func (*ZkWithdrawWitnessInfo) Reset

func (x *ZkWithdrawWitnessInfo) Reset()

func (*ZkWithdrawWitnessInfo) String

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

func (x *ZksyncAction) GetMintNFT() *ZkMintNFT

func (*ZksyncAction) GetProxyExit

func (x *ZksyncAction) GetProxyExit() *ZkProxyExit

func (*ZksyncAction) GetSetExodusMode

func (x *ZksyncAction) GetSetExodusMode() *ZkExodusMode

func (*ZksyncAction) GetSetFee

func (x *ZksyncAction) GetSetFee() *ZkSetFee

func (*ZksyncAction) GetSetPubKey

func (x *ZksyncAction) GetSetPubKey() *ZkSetPubKey

func (*ZksyncAction) GetSetTokenSymbol

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

func (x *ZksyncAction) GetTransferNFT() *ZkTransferNFT

func (*ZksyncAction) GetTransferToExec

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

func (x *ZksyncAction) GetWithdrawNFT() *ZkWithdrawNFT

func (*ZksyncAction) GetZkTransfer

func (x *ZksyncAction) GetZkTransfer() *ZkTransfer

func (*ZksyncAction) GetZkWithdraw

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

type ZksyncAction_MintNFT struct {
	MintNFT *ZkMintNFT `protobuf:"bytes,12,opt,name=mintNFT,proto3,oneof"`
}

type ZksyncAction_ProxyExit

type ZksyncAction_ProxyExit struct {
	ProxyExit *ZkProxyExit `protobuf:"bytes,5,opt,name=proxyExit,proto3,oneof"`
}

type ZksyncAction_SetExodusMode

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

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

type ZksyncAction_TransferNFT struct {
	TransferNFT *ZkTransferNFT `protobuf:"bytes,14,opt,name=transferNFT,proto3,oneof"`
}

type ZksyncAction_TransferToExec

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

type ZksyncAction_WithdrawNFT struct {
	WithdrawNFT *ZkWithdrawNFT `protobuf:"bytes,13,opt,name=withdrawNFT,proto3,oneof"`
}

type ZksyncAction_ZkTransfer

type ZksyncAction_ZkTransfer struct {
	ZkTransfer *ZkTransfer `protobuf:"bytes,3,opt,name=zkTransfer,proto3,oneof"`
}

type ZksyncAction_ZkWithdraw

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 NewType

func NewType(cfg *types.ChainConfig) *ZksyncType

NewType ...

func (*ZksyncType) CreateTx

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信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL