types

package
v1.67.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TyNoopAction           = 0
	TyDepositAction        = 1  //eth存款
	TyWithdrawAction       = 2  //eth取款
	TyTransferAction       = 3  //转账
	TyTransferToNewAction  = 4  //向新地址转账
	TyForceExitAction      = 5  //强制退出
	TySetPubKeyAction      = 6  //设置公钥
	TyFullExitAction       = 7  //从L1完全退出
	TySwapAction           = 8  //交换
	TyContractToTreeAction = 9  //合约账户转入叶子
	TyTreeToContractAction = 10 //叶子账户转入合约
	TyFeeAction            = 11 //手续费

	//非电路action
	TySetVerifyKeyAction = 102 //设置电路验证key
	TyCommitProofAction  = 103 //提交zk proof
	TySetVerifierAction  = 104 //设置验证者
	TySetFeeAction       = 105 //设置手续费

	NameNoopAction           = "Noop"
	NameDepositAction        = "Deposit"
	NameWithdrawAction       = "Withdraw"
	NameContractToTreeAction = "ContractToTree"
	NameTreeToContractAction = "TreeToContract"
	NameTransferAction       = "Transfer"
	NameTransferToNewAction  = "TransferToNew"
	NameForceExitAction      = "ForceExit"
	NameSetPubKeyAction      = "SetPubKey"
	NameFullExitAction       = "FullExit"
	NameSwapAction           = "Swap"
	NameFeeAction            = "Fee"

	NameSetVerifyKeyAction = "SetVerifyKey"
	NameCommitProofAction  = "CommitProof"
	NameSetVerifierAction  = "SetVerifier"
	NameSetFeeAction       = "SetFee"
)

action类型id和name,这些常量可以自定义修改

View Source
const (
	TyNoopLog           = 100
	TyDepositLog        = 101 //存款
	TyWithdrawLog       = 102 //取款
	TyTransferLog       = 103 //转账
	TyTransferToNewLog  = 104 //向新地址转账
	TyForceExitLog      = 105 //强制退出
	TySetPubKeyLog      = 106 //设置公钥
	TyFullExitLog       = 107 //从L1完全退出
	TySwapLog           = 108 //交换
	TyContractToTreeLog = 109 //合约账户转入叶子
	TyTreeToContractLog = 110 //叶子账户转入合约
	TyFeeLog            = 111 //手续费

	TySetVerifyKeyLog       = 202 //设置电路验证key
	TyCommitProofLog        = 203 //提交zk proof
	TySetVerifierLog        = 204 //设置验证者
	TySetEthPriorityQueueId = 205 //设置 eth上 priority queue id;
	TySetFeeLog             = 206
)

log类型id值

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

	Add = int32(0)
	Sub = int32(1)
)
View Source
const (
	TxTypeBitWidth      = 8   //1byte
	AccountBitWidth     = 32  //4byte
	TokenBitWidth       = 16  //2byte
	AmountBitWidth      = 128 //16byte
	AddrBitWidth        = 160 //20byte
	Chain33AddrBitWidth = 256 //20byte
	PubKeyBitWidth      = 256 //32byte
	FeeAmountBitWidth   = 72  //fee op凑满one chunk=128bit,最大10byte

	PacAmountManBitWidth = 35 //amount mantissa part, 比如12340000,只取1234部分,0000用exponent表示
	PacAmountExpBitWidth = 5  //amount exponent part
	PacFeeManBitWidth    = 11 //fee mantissa part
	PacFeeExpBitWidth    = 5  //fee exponent part
	MaxExponentVal       = 32 // 2**5 by exp bit width

	ChunkBitWidth = 128               //one chunk 16 bytes
	ChunkBytes    = ChunkBitWidth / 8 //16 bytes
)

msg宽度

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

)
View Source
const (
	DepositChunks       = 5
	Contract2TreeChunks = 3
	Tree2ContractChunks = 3
	TransferChunks      = 2
	Transfer2NewChunks  = 5
	WithdrawChunks      = 3
	ForceExitChunks     = 3
	FullExitChunks      = 3
	SwapChunks          = 4
	NoopChunks          = 1
	ChangePubKeyChunks  = 5
	FeeChunks           = 1
)

不同type chunk数量

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",
		TyForceExitAction:     "1000000",
		TyFullExitAction:      "1000000",
		TySwapAction:          "100000",
	}
)
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) string

DecimalAddr2Hex 10进制地址转16进制

func HexAddr2Decimal

func HexAddr2Decimal(addr string) string

HexAddr2Decimal 16进制地址转10进制

func InitExecutor

func InitExecutor(cfg *types.Chain33Config)

InitExecutor defines register executor

func InitFork

func InitFork(cfg *types.Chain33Config)

InitFork defines register fork

func RegisterZksyncServer

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

func Str2Byte

func Str2Byte(v string) []byte

Types

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,8,rep,name=subTrees,proto3" json:"subTrees,omitempty"`                //当前未归档的子树
	// contains filtered or unexported fields
}

func (*AccountTree) Descriptor deprecated

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

Deprecated: Use AccountTree.ProtoReflect.Descriptor instead.

func (*AccountTree) GetIndex

func (x *AccountTree) GetIndex() uint64

func (*AccountTree) GetMaxCurrentIndex

func (x *AccountTree) GetMaxCurrentIndex() uint64

func (*AccountTree) GetSubTrees

func (x *AccountTree) GetSubTrees() []*SubTree

func (*AccountTree) GetTotalIndex

func (x *AccountTree) GetTotalIndex() uint64

func (*AccountTree) ProtoMessage

func (*AccountTree) ProtoMessage()

func (*AccountTree) ProtoReflect

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

func (*AccountTree) Reset

func (x *AccountTree) Reset()

func (*AccountTree) String

func (x *AccountTree) String() string

type AccountWitness

type AccountWitness struct {
	ID            uint64       `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	EthAddr       string       `protobuf:"bytes,2,opt,name=ethAddr,proto3" json:"ethAddr,omitempty"`
	Chain33Addr   string       `protobuf:"bytes,3,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"`
	TokenTreeRoot string       `protobuf:"bytes,4,opt,name=tokenTreeRoot,proto3" json:"tokenTreeRoot,omitempty"` //sub chain token tree root
	PubKey        *ZkPubKey    `protobuf:"bytes,5,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
	Sibling       *SiblingPath `protobuf:"bytes,6,opt,name=sibling,proto3" json:"sibling,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountWitness) Descriptor deprecated

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

Deprecated: Use AccountWitness.ProtoReflect.Descriptor instead.

func (*AccountWitness) GetChain33Addr

func (x *AccountWitness) GetChain33Addr() string

func (*AccountWitness) GetEthAddr

func (x *AccountWitness) GetEthAddr() string

func (*AccountWitness) GetID

func (x *AccountWitness) GetID() uint64

func (*AccountWitness) 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"`
	// 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) 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) GetOpIndex

func (x *CommitProofState) GetOpIndex() uint32

func (*CommitProofState) GetProof

func (x *CommitProofState) GetProof() string

func (*CommitProofState) GetProofId

func (x *CommitProofState) GetProofId() uint64

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 EthPriorityQueueID

type EthPriorityQueueID struct {
	ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*EthPriorityQueueID) Descriptor deprecated

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

Deprecated: Use EthPriorityQueueID.ProtoReflect.Descriptor instead.

func (*EthPriorityQueueID) GetID

func (x *EthPriorityQueueID) GetID() string

func (*EthPriorityQueueID) ProtoMessage

func (*EthPriorityQueueID) ProtoMessage()

func (*EthPriorityQueueID) ProtoReflect

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

func (*EthPriorityQueueID) Reset

func (x *EthPriorityQueueID) Reset()

func (*EthPriorityQueueID) String

func (x *EthPriorityQueueID) String() string

type HistoryLeaf

type HistoryLeaf struct {
	AccountId   uint64          `protobuf:"varint,2,opt,name=accountId,proto3" json:"accountId,omitempty"`    //accountId其实就是叶子的totalIndex
	EthAddress  string          `protobuf:"bytes,5,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`   //账户对应的以太坊地址
	PubKey      *ZkPubKey       `protobuf:"bytes,6,opt,name=pubKey,proto3" json:"pubKey,omitempty"`           //eddsa公钥,用于验证身份
	Chain33Addr string          `protobuf:"bytes,7,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"` //chain33地址
	TokenHash   string          `protobuf:"bytes,8,opt,name=tokenHash,proto3" json:"tokenHash,omitempty"`     //叶子下token的hash
	Tokens      []*TokenBalance `protobuf:"bytes,9,rep,name=tokens,proto3" json:"tokens,omitempty"`           //叶子下拥有的token
	ProofId     uint64          `protobuf:"varint,10,opt,name=proofId,proto3" json:"proofId,omitempty"`       //账户状态所在的proofId
	// contains filtered or unexported fields
}

func (*HistoryLeaf) Descriptor deprecated

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

Deprecated: Use HistoryLeaf.ProtoReflect.Descriptor instead.

func (*HistoryLeaf) GetAccountId

func (x *HistoryLeaf) GetAccountId() uint64

func (*HistoryLeaf) GetChain33Addr

func (x *HistoryLeaf) GetChain33Addr() string

func (*HistoryLeaf) GetEthAddress

func (x *HistoryLeaf) GetEthAddress() string

func (*HistoryLeaf) GetProofId

func (x *HistoryLeaf) GetProofId() uint64

func (*HistoryLeaf) 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 Leaf

type Leaf struct {
	AccountId   uint64    `protobuf:"varint,2,opt,name=accountId,proto3" json:"accountId,omitempty"`      //accountId其实就是叶子的totalIndex
	EthAddress  string    `protobuf:"bytes,5,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`     //账户对应的以太坊地址
	PubKey      *ZkPubKey `protobuf:"bytes,6,opt,name=pubKey,proto3" json:"pubKey,omitempty"`             //eddsa公钥,用于验证身份
	Chain33Addr string    `protobuf:"bytes,7,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"`   //chain33地址
	TokenHash   string    `protobuf:"bytes,8,opt,name=tokenHash,proto3" json:"tokenHash,omitempty"`       //叶子下token的hash
	TokenIds    []uint64  `protobuf:"varint,9,rep,packed,name=tokenIds,proto3" json:"tokenIds,omitempty"` //叶子下拥有的tokenId
	// 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) GetChain33Addr

func (x *Leaf) GetChain33Addr() string

func (*Leaf) GetEthAddress

func (x *Leaf) GetEthAddress() string

func (*Leaf) GetPubKey

func (x *Leaf) GetPubKey() *ZkPubKey

func (*Leaf) GetTokenHash

func (x *Leaf) GetTokenHash() string

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 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"`
	AccountID   uint64       `protobuf:"varint,6,opt,name=accountID,proto3" json:"accountID,omitempty"`
	TokenID     uint64       `protobuf:"varint,7,opt,name=tokenID,proto3" json:"tokenID,omitempty"`
	Amount      string       `protobuf:"bytes,8,opt,name=amount,proto3" json:"amount,omitempty"`
	FeeAmount   string       `protobuf:"bytes,9,opt,name=feeAmount,proto3" json:"feeAmount,omitempty"`
	SigData     *ZkSignature `protobuf:"bytes,10,opt,name=sigData,proto3" json:"sigData,omitempty"`
	Roots       []string     `protobuf:"bytes,11,rep,name=roots,proto3" json:"roots,omitempty"` //每个操作后的root
	//每个operation data由一对 操作前后数据组成,不同操作可以有多个操作数据,deposit:1,transfer:2
	OperationBranches []*OperationPairBranch `protobuf:"bytes,12,rep,name=operationBranches,proto3" json:"operationBranches,omitempty"`
	//操作特殊数据,像订单数据
	SpecialInfo *OperationSpecialInfo `protobuf:"bytes,13,opt,name=specialInfo,proto3" json:"specialInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationInfo) Descriptor deprecated

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

Deprecated: Use OperationInfo.ProtoReflect.Descriptor instead.

func (*OperationInfo) GetAccountID

func (x *OperationInfo) GetAccountID() uint64

func (*OperationInfo) GetAmount

func (x *OperationInfo) GetAmount() string

func (*OperationInfo) GetBlockHeight

func (x *OperationInfo) GetBlockHeight() uint64

func (*OperationInfo) GetFeeAmount

func (x *OperationInfo) GetFeeAmount() string

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) GetSigData

func (x *OperationInfo) GetSigData() *ZkSignature

func (*OperationInfo) GetSpecialInfo

func (x *OperationInfo) GetSpecialInfo() *OperationSpecialInfo

func (*OperationInfo) GetTokenID

func (x *OperationInfo) GetTokenID() uint64

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"`
	// 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) GetPricePair

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

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 {
	SpecialDatas []*OperationSpecialData `protobuf:"bytes,1,rep,name=specialDatas,proto3" json:"specialDatas,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationSpecialInfo) Descriptor deprecated

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

Deprecated: Use OperationSpecialInfo.ProtoReflect.Descriptor instead.

func (*OperationSpecialInfo) GetSpecialDatas

func (x *OperationSpecialInfo) GetSpecialDatas() []*OperationSpecialData

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 OrderPricePair

type OrderPricePair struct {
	Sell uint64 `protobuf:"varint,1,opt,name=sell,proto3" json:"sell,omitempty"`
	Buy  uint64 `protobuf:"varint,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() uint64

func (*OrderPricePair) GetSell

func (x *OrderPricePair) GetSell() uint64

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 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 ReceiptEthPriorityQueueID

type ReceiptEthPriorityQueueID struct {
	Prev    int64 `protobuf:"varint,1,opt,name=prev,proto3" json:"prev,omitempty"`
	Current int64 `protobuf:"varint,2,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptEthPriorityQueueID) Descriptor deprecated

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

Deprecated: Use ReceiptEthPriorityQueueID.ProtoReflect.Descriptor instead.

func (*ReceiptEthPriorityQueueID) GetCurrent

func (x *ReceiptEthPriorityQueueID) GetCurrent() int64

func (*ReceiptEthPriorityQueueID) GetPrev

func (x *ReceiptEthPriorityQueueID) GetPrev() int64

func (*ReceiptEthPriorityQueueID) ProtoMessage

func (*ReceiptEthPriorityQueueID) ProtoMessage()

func (*ReceiptEthPriorityQueueID) ProtoReflect

func (*ReceiptEthPriorityQueueID) Reset

func (x *ReceiptEthPriorityQueueID) Reset()

func (*ReceiptEthPriorityQueueID) String

func (x *ReceiptEthPriorityQueueID) 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 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   string `protobuf:"bytes,1,opt,name=rootHash,proto3" json:"rootHash,omitempty"`      //归档Merkle Tree的根hash
	Height     int32  `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`         //归档的高度
	StartIndex uint64 `protobuf:"varint,3,opt,name=startIndex,proto3" json:"startIndex,omitempty"` //开始的全局index
	// contains filtered or unexported fields
}

func (*RootInfo) Descriptor deprecated

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

Deprecated: Use RootInfo.ProtoReflect.Descriptor instead.

func (*RootInfo) GetHeight

func (x *RootInfo) GetHeight() int32

func (*RootInfo) GetRootHash

func (x *RootInfo) GetRootHash() string

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 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"`
	// contains filtered or unexported fields
}

某个token的余额

func (*TokenBalance) Descriptor deprecated

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

Deprecated: Use TokenBalance.ProtoReflect.Descriptor instead.

func (*TokenBalance) GetBalance

func (x *TokenBalance) GetBalance() string

func (*TokenBalance) GetTokenId

func (x *TokenBalance) GetTokenId() uint64

func (*TokenBalance) ProtoMessage

func (*TokenBalance) ProtoMessage()

func (*TokenBalance) ProtoReflect

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

func (*TokenBalance) Reset

func (x *TokenBalance) Reset()

func (*TokenBalance) String

func (x *TokenBalance) String() string

type TokenWitness

type TokenWitness struct {
	ID      uint64       `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`          //eth contract define token ID
	Balance string       `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` //eth balance u128
	Sibling *SiblingPath `protobuf:"bytes,3,opt,name=sibling,proto3" json:"sibling,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenWitness) Descriptor deprecated

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

Deprecated: Use TokenWitness.ProtoReflect.Descriptor instead.

func (*TokenWitness) GetBalance

func (x *TokenWitness) GetBalance() string

func (*TokenWitness) GetID

func (x *TokenWitness) GetID() uint64

func (*TokenWitness) GetSibling

func (x *TokenWitness) GetSibling() *SiblingPath

func (*TokenWitness) ProtoMessage

func (*TokenWitness) ProtoMessage()

func (*TokenWitness) ProtoReflect

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

func (*TokenWitness) Reset

func (x *TokenWitness) Reset()

func (*TokenWitness) String

func (x *TokenWitness) String() string

type UnimplementedZksyncServer

type UnimplementedZksyncServer struct {
}

UnimplementedZksyncServer can be embedded to have forward compatible implementations.

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"`
	PriorityPubDatas []string `protobuf:"bytes,11,rep,name=priorityPubDatas,proto3" json:"priorityPubDatas,omitempty"`
	ProofId          uint64   `protobuf:"varint,12,opt,name=proofId,proto3" json:"proofId,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) 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) GetOpIndex

func (x *ZkCommitProof) GetOpIndex() uint32

func (*ZkCommitProof) GetPriorityPubDatas

func (x *ZkCommitProof) GetPriorityPubDatas() []string

func (*ZkCommitProof) GetProof

func (x *ZkCommitProof) GetProof() string

func (*ZkCommitProof) GetProofId

func (x *ZkCommitProof) GetProofId() uint64

func (*ZkCommitProof) GetPubDatas

func (x *ZkCommitProof) GetPubDatas() []string

func (*ZkCommitProof) GetPublicInput

func (x *ZkCommitProof) GetPublicInput() string

func (*ZkCommitProof) ProtoMessage

func (*ZkCommitProof) ProtoMessage()

func (*ZkCommitProof) ProtoReflect

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

func (*ZkCommitProof) Reset

func (x *ZkCommitProof) Reset()

func (*ZkCommitProof) String

func (x *ZkCommitProof) String() string

type ZkContractToTree

type ZkContractToTree struct {
	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,6,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkContractToTree) Descriptor deprecated

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

Deprecated: Use ZkContractToTree.ProtoReflect.Descriptor instead.

func (*ZkContractToTree) GetAccountId

func (x *ZkContractToTree) GetAccountId() uint64

func (*ZkContractToTree) GetAmount

func (x *ZkContractToTree) GetAmount() string

func (*ZkContractToTree) GetSignature

func (x *ZkContractToTree) GetSignature() *ZkSignature

func (*ZkContractToTree) GetTokenId

func (x *ZkContractToTree) GetTokenId() uint64

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 ZkDeposit

type ZkDeposit struct {
	TokenId            uint64       `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount             string       `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	EthAddress         string       `protobuf:"bytes,3,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
	Chain33Addr        string       `protobuf:"bytes,4,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"`
	EthPriorityQueueId int64        `protobuf:"varint,5,opt,name=ethPriorityQueueId,proto3" json:"ethPriorityQueueId,omitempty"` //需要在合约保证id连续
	Signature          *ZkSignature `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkDeposit) Descriptor deprecated

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

Deprecated: Use ZkDeposit.ProtoReflect.Descriptor instead.

func (*ZkDeposit) GetAmount

func (x *ZkDeposit) GetAmount() string

func (*ZkDeposit) GetChain33Addr

func (x *ZkDeposit) GetChain33Addr() string

func (*ZkDeposit) GetEthAddress

func (x *ZkDeposit) GetEthAddress() string

func (*ZkDeposit) GetEthPriorityQueueId

func (x *ZkDeposit) GetEthPriorityQueueId() 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 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 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 ZkOperation

type ZkOperation struct {
	AccountId   uint64    `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"` //accountId其实就是叶子的totalIndex
	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,5,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`   //账户对应的以太坊地址
	PubKey      *ZkPubKey `protobuf:"bytes,6,opt,name=pubKey,proto3" json:"pubKey,omitempty"`           //eddsa公钥,用于验证身份
	Chain33Addr string    `protobuf:"bytes,7,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"` //chain33地址
	ToAccountId uint64    `protobuf:"varint,4,opt,name=toAccountId,proto3" json:"toAccountId,omitempty"`
	Ty          int32     `protobuf:"varint,8,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkOperation) Descriptor deprecated

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

Deprecated: Use ZkOperation.ProtoReflect.Descriptor instead.

func (*ZkOperation) GetAccountId

func (x *ZkOperation) GetAccountId() uint64

func (*ZkOperation) GetAmount

func (x *ZkOperation) GetAmount() string

func (*ZkOperation) GetChain33Addr

func (x *ZkOperation) GetChain33Addr() string

func (*ZkOperation) GetEthAddress

func (x *ZkOperation) GetEthAddress() string

func (*ZkOperation) GetPubKey

func (x *ZkOperation) GetPubKey() *ZkPubKey

func (*ZkOperation) GetToAccountId

func (x *ZkOperation) GetToAccountId() uint64

func (*ZkOperation) GetTokenId

func (x *ZkOperation) GetTokenId() uint64

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 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"`
	Chain33Addr       string `protobuf:"bytes,5,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"`
	TokenSymbol       string `protobuf:"bytes,6,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	Chain33WalletAddr string `protobuf:"bytes,7,opt,name=chain33WalletAddr,proto3" json:"chain33WalletAddr,omitempty"`
	TokenId           uint64 `protobuf:"varint,8,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	TxHash            string `protobuf:"bytes,9,opt,name=txHash,proto3" json:"txHash,omitempty"`
	ProofId           uint64 `protobuf:"varint,10,opt,name=proofId,proto3" json:"proofId,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkQueryReq) Descriptor deprecated

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

Deprecated: Use ZkQueryReq.ProtoReflect.Descriptor instead.

func (*ZkQueryReq) GetAccountId

func (x *ZkQueryReq) GetAccountId() uint64

func (*ZkQueryReq) GetBlockHeight

func (x *ZkQueryReq) GetBlockHeight() uint64

func (*ZkQueryReq) GetChain33Addr

func (x *ZkQueryReq) GetChain33Addr() string

func (*ZkQueryReq) GetChain33WalletAddr

func (x *ZkQueryReq) GetChain33WalletAddr() string

func (*ZkQueryReq) GetEthAddress

func (x *ZkQueryReq) GetEthAddress() string

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 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 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"`
	Signature *ZkSignature `protobuf:"bytes,3,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) 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 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 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 ZkTransferToNew

type ZkTransferToNew struct {
	TokenId          uint64       `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount           string       `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	FromAccountId    uint64       `protobuf:"varint,3,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
	ToEthAddress     string       `protobuf:"bytes,4,opt,name=toEthAddress,proto3" json:"toEthAddress,omitempty"`
	ToChain33Address string       `protobuf:"bytes,5,opt,name=toChain33Address,proto3" json:"toChain33Address,omitempty"`
	Signature        *ZkSignature `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkTransferToNew) Descriptor deprecated

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

Deprecated: Use ZkTransferToNew.ProtoReflect.Descriptor instead.

func (*ZkTransferToNew) GetAmount

func (x *ZkTransferToNew) GetAmount() string

func (*ZkTransferToNew) GetFromAccountId

func (x *ZkTransferToNew) GetFromAccountId() uint64

func (*ZkTransferToNew) GetSignature

func (x *ZkTransferToNew) GetSignature() *ZkSignature

func (*ZkTransferToNew) GetToChain33Address

func (x *ZkTransferToNew) GetToChain33Address() string

func (*ZkTransferToNew) GetToEthAddress

func (x *ZkTransferToNew) GetToEthAddress() string

func (*ZkTransferToNew) GetTokenId

func (x *ZkTransferToNew) GetTokenId() uint64

func (*ZkTransferToNew) ProtoMessage

func (*ZkTransferToNew) ProtoMessage()

func (*ZkTransferToNew) ProtoReflect

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

func (*ZkTransferToNew) Reset

func (x *ZkTransferToNew) Reset()

func (*ZkTransferToNew) String

func (x *ZkTransferToNew) String() string

type 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"`
	Signature *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

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) 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 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 ZksyncAction

type ZksyncAction struct {

	// Types that are assignable to Value:
	//	*ZksyncAction_Deposit
	//	*ZksyncAction_Withdraw
	//	*ZksyncAction_ContractToTree
	//	*ZksyncAction_TreeToContract
	//	*ZksyncAction_Transfer
	//	*ZksyncAction_TransferToNew
	//	*ZksyncAction_ForceExit
	//	*ZksyncAction_SetPubKey
	//	*ZksyncAction_FullExit
	//	*ZksyncAction_Swap
	//	*ZksyncAction_SetVerifyKey
	//	*ZksyncAction_CommitProof
	//	*ZksyncAction_SetVerifier
	//	*ZksyncAction_SetFee
	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) GetForceExit

func (x *ZksyncAction) GetForceExit() *ZkForceExit

func (*ZksyncAction) GetFullExit

func (x *ZksyncAction) GetFullExit() *ZkFullExit

func (*ZksyncAction) GetSetFee

func (x *ZksyncAction) GetSetFee() *ZkSetFee

func (*ZksyncAction) GetSetPubKey

func (x *ZksyncAction) GetSetPubKey() *ZkSetPubKey

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

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() *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,12,opt,name=commitProof,proto3,oneof"`
}

type ZksyncAction_ContractToTree

type ZksyncAction_ContractToTree struct {
	ContractToTree *ZkContractToTree `protobuf:"bytes,3,opt,name=contractToTree,proto3,oneof"`
}

type ZksyncAction_Deposit

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

type ZksyncAction_ForceExit

type ZksyncAction_ForceExit struct {
	ForceExit *ZkForceExit `protobuf:"bytes,7,opt,name=forceExit,proto3,oneof"`
}

type ZksyncAction_FullExit

type ZksyncAction_FullExit struct {
	FullExit *ZkFullExit `protobuf:"bytes,9,opt,name=fullExit,proto3,oneof"`
}

type ZksyncAction_SetFee

type ZksyncAction_SetFee struct {
	SetFee *ZkSetFee `protobuf:"bytes,14,opt,name=setFee,proto3,oneof"`
}

type ZksyncAction_SetPubKey

type ZksyncAction_SetPubKey struct {
	SetPubKey *ZkSetPubKey `protobuf:"bytes,8,opt,name=setPubKey,proto3,oneof"`
}

type ZksyncAction_SetVerifier

type ZksyncAction_SetVerifier struct {
	SetVerifier *ZkVerifier `protobuf:"bytes,13,opt,name=setVerifier,proto3,oneof"`
}

type ZksyncAction_SetVerifyKey

type ZksyncAction_SetVerifyKey struct {
	SetVerifyKey *ZkVerifyKey `protobuf:"bytes,11,opt,name=setVerifyKey,proto3,oneof"`
}

type ZksyncAction_Swap

type ZksyncAction_Swap struct {
	Swap *ZkSwap `protobuf:"bytes,10,opt,name=swap,proto3,oneof"`
}

type ZksyncAction_Transfer

type ZksyncAction_Transfer struct {
	Transfer *ZkTransfer `protobuf:"bytes,5,opt,name=transfer,proto3,oneof"`
}

type ZksyncAction_TransferToNew

type ZksyncAction_TransferToNew struct {
	TransferToNew *ZkTransferToNew `protobuf:"bytes,6,opt,name=transferToNew,proto3,oneof"`
}

type ZksyncAction_TreeToContract

type ZksyncAction_TreeToContract struct {
	TreeToContract *ZkTreeToContract `protobuf:"bytes,4,opt,name=treeToContract,proto3,oneof"`
}

type ZksyncAction_Withdraw

type ZksyncAction_Withdraw struct {
	Withdraw *ZkWithdraw `protobuf:"bytes,2,opt,name=withdraw,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.Chain33Config) *ZksyncType

NewType ...

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