types

package
v1.67.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TySpotNilAction = iota + 1000
	TyLimitOrderAction
	TyMarketOrderAction
	TyRevokeOrderAction
	TyExchangeBindAction
	TyEntrustOrderAction
	TyEntrustRevokeOrderAction
	TyNftOrderAction
	TyNftTakerOrderAction
	// evmxgo nft order
	TyNftOrder2Action
	TyNftTakerOrder2Action
	TyAssetLimitOrderAction

	NameLimitOrderAction         = "LimitOrder"
	NameMarketOrderAction        = "MarketOrder"
	NameRevokeOrderAction        = "RevokeOrder"
	NameExchangeBindAction       = "ExchangeBind"
	NameEntrustOrderAction       = "EntrustOrder"
	NameEntrustRevokeOrderAction = "EntrustRevokeOrder"
	NameNftOrderAction           = "NftOrder"
	NameNftTakerOrderAction      = "NftTakerOrder"
	NameNftOrder2Action          = "NftOrder2"
	NameNftTakerOrder2Action     = "NftTakerOrder2"
	NameAssetLimitOrderAction    = "AssetLimitOrder"

	FuncNameQueryMarketDepth      = "QueryMarketDepth"
	FuncNameQueryHistoryOrderList = "QueryHistoryOrderList"
	FuncNameQueryOrder            = "QueryOrder"
	FuncNameQueryOrderList        = "QueryOrderList"
)

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

View Source
const (
	TySpotUnknowLog = iota + 1000
	TyLimitOrderLog
	TyMarketOrderLog
	TyRevokeOrderLog
	TyNftOrderLog
	TyNftTakerOrderLog
	TyExchangeBindLog
	TySpotTradeLog

	// account logs
	TyDexAccountFrozen = iota + 1100
	TyDexAccountActive
	TyDexAccountBurn
	TyDexAccountMint
	TyDexAccountTransfer
	TyDexAccountTransferFrozen
)

log类型id值

View Source
const (
	OpBuy = iota + 1
	OpSell
)

OP

View Source
const (
	Ordered = iota
	Completed
	Revoked
)

order status

View Source
const (
	//Count 单次list还回条数
	Count = int32(10)
	//MaxMatchCount 系统最大撮合深度
	MaxMatchCount = 100

	QeuryCountLmit = 20
	PriceLimit     = 1e16
)
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 以方便在合约使用
	TyAssetTransferAction       = 107 //从tree转到zksync合约的资产账户之间转账
	TyAssetTransferToExecAction = 108 //从tree转到zksync合约的资产转到执行器
	TyAssetWithdrawAction       = 109 //从执行器提款到zksync合约账户

	NameNoopAction           = "Noop"
	NameDepositAction        = "Deposit"
	NameWithdrawAction       = "ZkWithdraw"
	NameContractToTreeAction = "ContractToTree"
	NameTreeToContractAction = "TreeToContract"
	NameTransferAction       = "ZkTransfer"
	NameTransferToNewAction  = "TransferToNew"
	NameProxyExitAction      = "ProxyExit"
	NameSetPubKeyAction      = "SetPubKey"
	NameFullExitAction       = "FullExit"
	NameSwapAction           = "Swap"
	NameFeeAction            = "Fee"
	NameMintNFTAction        = "MintNFT"
	NameWithdrawNFTACTION    = "WithdrawNFT"
	NameTransferNFTAction    = "TransferNFT"

	NameSetVerifyKeyAction   = "SetVerifyKey"
	NameCommitProofAction    = "CommitProof"
	NameSetVerifierAction    = "SetVerifier"
	NameSetFeeAction         = "SetFee"
	NameSetTokenSymbolAction = "SetTokenSymbol"
	NameAssetTransfer        = "Transfer"
	NameAssetTransfer2Exec   = "TransferToExec"
	NameAssetWithdraw        = "Withdraw"
)

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

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

	/////非电路类型
	TySetVerifyKeyLog       = 202 //设置电路验证key
	TyCommitProofLog        = 203 //提交zk proof
	TySetVerifierLog        = 204 //设置验证者
	TySetEthPriorityQueueId = 205 //设置 eth上 priority queue id;
	TySetFeeLog             = 206
	TyCommitProofRecordLog  = 207 //提交zk proof
	TyLogSetTokenSymbol     = 210 //设置电路验证key
	TyLogSetExodusMode      = 211 //系统设置exodus mode

)

log类型id值

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

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

	//tree最大归档数目
	MaxTreeArchiveLevel = 5
	MaxLeafArchiveSum   = 32 // =2^MaxTreeArchiveLevel
)
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 (
	ExodusPrepareMode = 1 //逃生舱预备阶段  所有和L1相关的 onChain tx都不执行(deposit,withdraw,proxyexit)
	ExodusClearMode   = 2 //逃生舱清算阶段 除contract2tree外,所有L2相关的tx都不允许执行,收敛最终treeRoot,保证尽快退出资产到L1
)
View Source
const ExecName = Zksync
View Source
const ZkCfgEthFeeAddr = "ethFeeAddr"

配置的系统收交易费账户

View Source
const ZkCfgInvalidProof = "invalidProofRootHash"
View Source
const ZkCfgInvalidTx = "invalidTxHash"

配置的无效交易和无效证明,用于平行链zksync交易的回滚(假设proof和eth不一致,无法fix时候)

View Source
const ZkCfgLayer2FeeAddr = "layer2FeeAddr"
View Source
const ZkManagerKey = "manager"
View Source
const ZkMimcHashSeed = "seed"
View Source
const ZkParaChainInnerTitleId = "1"

ZkParaChainInnerTitleId 平行链内部只有一个titleId,缺省为1,在主链上不同平行链有自己的titleId

View Source
const ZkVerifierKey = "verifier"
View Source
const Zksync = "zksync"

Zksync 执行器名称定义

Variables

View Source
var (
	ErrAssetAmount  = fmt.Errorf("%s", "The asset amount is not valid!")
	ErrAssetPrice   = fmt.Errorf("%s", "The asset price is not valid!")
	ErrAssetOp      = fmt.Errorf("%s", "The asset op is not define!")
	ErrAssetBalance = fmt.Errorf("%s", "Insufficient balance!")
	ErrOrderSatus   = fmt.Errorf("%s", "The order status is reovked or completed!")
	ErrAddr         = fmt.Errorf("%s", "Wrong Addr!")
	ErrAsset        = fmt.Errorf("%s", "The asset's execer or symbol can't be nil,The same assets cannot be exchanged!")
	ErrCount        = fmt.Errorf("%s", "The param count can't large  20")
	ErrDirection    = fmt.Errorf("%s", "The direction only 0 or 1!")
	ErrStatus       = fmt.Errorf("%s", "The status only in  0 , 1, 2!")
	ErrOrderID      = fmt.Errorf("%s", "Wrong OrderID!")

	ErrCfgFmt   = fmt.Errorf("%s", "ErrCfgFmt")
	ErrBindAddr = fmt.Errorf("%s", "The address is not bound")

	// 资产处理
	ErrDexNotEnough  = fmt.Errorf("%s", "token balance not enough")
	ErrSpotFeeConfig = fmt.Errorf("%s", "spot fee config")
)
View Source
var (
	AssetType_name = map[int32]string{
		0: "Unknow",
		1: "L1Erc20",
		2: "TokenType",
		3: "ZkNft",
		4: "EvmNft",
	}
	AssetType_value = map[string]int32{
		"Unknow":    0,
		"L1Erc20":   1,
		"TokenType": 2,
		"ZkNft":     3,
		"EvmNft":    4,
	}
)

Enum value maps for AssetType.

View Source
var File_witness_proto protoreflect.FileDescriptor
View Source
var File_zksync_proto protoreflect.FileDescriptor
View Source
var (
	//定义log的id和具体log类型及名称,填入具体自定义log类型
	//ForkFix Forks
	ForkParamV1 = "ForkParamV1"
)
View Source
var MverPrefix = "mver.exec.sub." + ExecName // [mver.exec.sub.zkspot]

config part

Functions

func AmountFromZksync added in v1.67.4

func AmountFromZksync(s string) (uint64, error)

func AmountToZksync added in v1.67.4

func AmountToZksync(a uint64) string

func Byte2Str

func Byte2Str(v []byte) string

func Byte2Uint64

func Byte2Uint64(v []byte) uint64

func CheckAmount added in v1.67.4

func CheckAmount(amount, coinPrecision int64) bool

CheckAmount 最小交易 1coin

func CheckAssetLimitOrder added in v1.67.4

func CheckAssetLimitOrder(cfg *types.Chain33Config, order *SpotAssetLimitOrder) error

func CheckCount added in v1.67.4

func CheckCount(count int32) bool

CheckCount ...

func CheckDirection added in v1.67.4

func CheckDirection(direction int32) bool

CheckDirection ...

func CheckExchangeAsset added in v1.67.4

func CheckExchangeAsset(coinExec string, left, right uint64) bool

CheckExchangeAsset

func CheckIsNFTToken added in v1.67.4

func CheckIsNFTToken(id uint64) bool

func CheckIsNormalToken added in v1.67.4

func CheckIsNormalToken(id uint64) bool

func CheckLimitOrder added in v1.67.4

func CheckLimitOrder(cfg *types.Chain33Config, limitOrder *SpotLimitOrder) error

func CheckNftOrder added in v1.67.4

func CheckNftOrder(cfg *types.Chain33Config, limitOrder *SpotNftOrder) error

func CheckNftOrder2 added in v1.67.4

func CheckNftOrder2(cfg *types.Chain33Config, limitOrder *SpotNftOrder) error

func CheckOp added in v1.67.4

func CheckOp(op int32) bool

CheckOp ...

func CheckPrice added in v1.67.4

func CheckPrice(price int64) bool

CheckPrice price 1<=price<=1e16

func CheckStatus added in v1.67.4

func CheckStatus(status int32) bool

CheckStatus ...

func DecimalAddr2Hex

func DecimalAddr2Hex(addr string) (string, bool)

DecimalAddr2Hex 10进制地址转16进制

func DecodePacVal added in v1.67.4

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

DecodePacVal decode pac val with man+exp format

func FilterHexPrefix added in v1.67.4

func FilterHexPrefix(s string) string

func GetOpChunkNum added in v1.67.4

func GetOpChunkNum(opType uint32) (int, error)

func GetStack added in v1.67.4

func GetStack() string

func HexAddr2Decimal

func HexAddr2Decimal(addr string) (string, bool)

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 MergeReceipt added in v1.67.4

func MergeReceipt(receipt1, receipt2 *types.Receipt) *types.Receipt

func NftAmountFromZksync added in v1.67.4

func NftAmountFromZksync(s string) (uint64, error)

func NftAmountToZksync added in v1.67.4

func NftAmountToZksync(a uint64) string

func RegisterZkspotServer added in v1.67.4

func RegisterZkspotServer(s *grpc.Server, srv ZkspotServer)

func RegisterZksyncServer

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

func SplitNFTContent added in v1.67.4

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

func SpotInitFork added in v1.67.4

func SpotInitFork(cfg *types.Chain33Config)

SpotInitFork defines register fork

func Str2Byte

func Str2Byte(v string) []byte

func ZkFindExponentPart added in v1.67.4

func ZkFindExponentPart(s string) (int, error)

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

func ZkTransferManExpPart added in v1.67.4

func ZkTransferManExpPart(s string) (string, int, error)

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

Types

type AccountProxyPubKeys added in v1.67.4

type AccountProxyPubKeys struct {

	//代理地址都由用户自己指定,不能由代理地址指定,代理地址只能处理有限指定的操作
	Normal *ZkPubKey `protobuf:"bytes,1,opt,name=normal,proto3" json:"normal,omitempty"`
	System *ZkPubKey `protobuf:"bytes,2,opt,name=system,proto3" json:"system,omitempty"`
	Super  *ZkPubKey `protobuf:"bytes,3,opt,name=super,proto3" json:"super,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountProxyPubKeys) Descriptor deprecated added in v1.67.4

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

Deprecated: Use AccountProxyPubKeys.ProtoReflect.Descriptor instead.

func (*AccountProxyPubKeys) GetNormal added in v1.67.4

func (x *AccountProxyPubKeys) GetNormal() *ZkPubKey

func (*AccountProxyPubKeys) GetSuper added in v1.67.4

func (x *AccountProxyPubKeys) GetSuper() *ZkPubKey

func (*AccountProxyPubKeys) GetSystem added in v1.67.4

func (x *AccountProxyPubKeys) GetSystem() *ZkPubKey

func (*AccountProxyPubKeys) ProtoMessage added in v1.67.4

func (*AccountProxyPubKeys) ProtoMessage()

func (*AccountProxyPubKeys) ProtoReflect added in v1.67.4

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

func (*AccountProxyPubKeys) Reset added in v1.67.4

func (x *AccountProxyPubKeys) Reset()

func (*AccountProxyPubKeys) String added in v1.67.4

func (x *AccountProxyPubKeys) String() string

type AccountTree

type AccountTree struct {
	Index           uint64     `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`                     //当前的叶子索引
	TotalIndex      uint64     `protobuf:"varint,2,opt,name=totalIndex,proto3" json:"totalIndex,omitempty"`           //总计叶子索引
	MaxCurrentIndex uint64     `protobuf:"varint,3,opt,name=maxCurrentIndex,proto3" json:"maxCurrentIndex,omitempty"` //当前索引最大值,超过最大值会进行归档
	SubTrees        []*SubTree `protobuf:"bytes,4,rep,name=subTrees,proto3" json:"subTrees,omitempty"`                //当前未归档的子树
	// contains filtered or unexported fields
}

func (*AccountTree) Descriptor deprecated

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

Deprecated: Use AccountTree.ProtoReflect.Descriptor instead.

func (*AccountTree) GetIndex

func (x *AccountTree) GetIndex() uint64

func (*AccountTree) GetMaxCurrentIndex

func (x *AccountTree) GetMaxCurrentIndex() uint64

func (*AccountTree) GetSubTrees

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

func (*AccountTree) GetTotalIndex

func (x *AccountTree) GetTotalIndex() uint64

func (*AccountTree) ProtoMessage

func (*AccountTree) ProtoMessage()

func (*AccountTree) ProtoReflect

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

func (*AccountTree) Reset

func (x *AccountTree) Reset()

func (*AccountTree) String

func (x *AccountTree) String() string

type AccountWitness

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

func (*AccountWitness) Descriptor deprecated

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

Deprecated: Use AccountWitness.ProtoReflect.Descriptor instead.

func (*AccountWitness) GetChain33Addr

func (x *AccountWitness) GetChain33Addr() string

func (*AccountWitness) GetEthAddr

func (x *AccountWitness) GetEthAddr() string

func (*AccountWitness) GetID

func (x *AccountWitness) GetID() uint64

func (*AccountWitness) GetProxyPubKeys added in v1.67.4

func (x *AccountWitness) GetProxyPubKeys() *AccountProxyPubKeys

func (*AccountWitness) GetPubKey

func (x *AccountWitness) GetPubKey() *ZkPubKey

func (*AccountWitness) GetSibling

func (x *AccountWitness) GetSibling() *SiblingPath

func (*AccountWitness) GetTokenTreeRoot

func (x *AccountWitness) GetTokenTreeRoot() string

func (*AccountWitness) ProtoMessage

func (*AccountWitness) ProtoMessage()

func (*AccountWitness) ProtoReflect

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

func (*AccountWitness) Reset

func (x *AccountWitness) Reset()

func (*AccountWitness) String

func (x *AccountWitness) String() string

type AssetToken added in v1.67.4

type AssetToken struct {
	Execer string `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
	Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetToken) Descriptor deprecated added in v1.67.4

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

Deprecated: Use AssetToken.ProtoReflect.Descriptor instead.

func (*AssetToken) GetExecer added in v1.67.4

func (x *AssetToken) GetExecer() string

func (*AssetToken) GetSymbol added in v1.67.4

func (x *AssetToken) GetSymbol() string

func (*AssetToken) ProtoMessage added in v1.67.4

func (*AssetToken) ProtoMessage()

func (*AssetToken) ProtoReflect added in v1.67.4

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

func (*AssetToken) Reset added in v1.67.4

func (x *AssetToken) Reset()

func (*AssetToken) String added in v1.67.4

func (x *AssetToken) String() string

type AssetType added in v1.67.4

type AssetType int32

Asset may come from L1 ERC20, other contract Token, zksync gened NFT, evm-solidity-NFT

const (
	AssetType_Unknow    AssetType = 0
	AssetType_L1Erc20   AssetType = 1
	AssetType_TokenType AssetType = 2
	AssetType_ZkNft     AssetType = 3
	AssetType_EvmNft    AssetType = 4
)

func (AssetType) Descriptor added in v1.67.4

func (AssetType) Descriptor() protoreflect.EnumDescriptor

func (AssetType) Enum added in v1.67.4

func (x AssetType) Enum() *AssetType

func (AssetType) EnumDescriptor deprecated added in v1.67.4

func (AssetType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AssetType.Descriptor instead.

func (AssetType) Number added in v1.67.4

func (x AssetType) Number() protoreflect.EnumNumber

func (AssetType) String added in v1.67.4

func (x AssetType) String() string

func (AssetType) Type added in v1.67.4

type CoinCfg added in v1.67.4

type CoinCfg struct {
	Coin   string
	Execer string
	Name   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"`
	ProofId        uint64 `protobuf:"varint,10,opt,name=proofId,proto3" json:"proofId,omitempty"`
	OnChainProofId uint64 `protobuf:"varint,11,opt,name=onChainProofId,proto3" json:"onChainProofId,omitempty"`
	//commit时候的blockHeight
	CommitBlockHeight int64  `protobuf:"varint,12,opt,name=commitBlockHeight,proto3" json:"commitBlockHeight,omitempty"`
	ChainTitleId      uint64 `protobuf:"varint,13,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
	// contains filtered or unexported fields
}

commit proof stat, pubdata保存到localdb

func (*CommitProofState) Descriptor deprecated

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

Deprecated: Use CommitProofState.ProtoReflect.Descriptor instead.

func (*CommitProofState) GetBlockEnd

func (x *CommitProofState) GetBlockEnd() uint64

func (*CommitProofState) GetBlockStart

func (x *CommitProofState) GetBlockStart() uint64

func (*CommitProofState) GetChainTitleId added in v1.67.4

func (x *CommitProofState) GetChainTitleId() uint64

func (*CommitProofState) GetCommitBlockHeight added in v1.67.4

func (x *CommitProofState) GetCommitBlockHeight() int64

func (*CommitProofState) GetIndexEnd

func (x *CommitProofState) GetIndexEnd() uint64

func (*CommitProofState) GetIndexStart

func (x *CommitProofState) GetIndexStart() uint64

func (*CommitProofState) GetNewTreeRoot

func (x *CommitProofState) GetNewTreeRoot() string

func (*CommitProofState) GetOldTreeRoot

func (x *CommitProofState) GetOldTreeRoot() string

func (*CommitProofState) GetOnChainProofId added in v1.67.4

func (x *CommitProofState) GetOnChainProofId() uint64

func (*CommitProofState) GetOpIndex

func (x *CommitProofState) GetOpIndex() uint32

func (*CommitProofState) GetProofId

func (x *CommitProofState) GetProofId() uint64

func (*CommitProofState) ProtoMessage

func (*CommitProofState) ProtoMessage()

func (*CommitProofState) ProtoReflect

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

func (*CommitProofState) Reset

func (x *CommitProofState) Reset()

func (*CommitProofState) String

func (x *CommitProofState) String() string

type DBprefix added in v1.67.4

type DBprefix interface {
	GetLocaldbPrefix() string
	GetStatedbPrefix() string
}

type DexAccount added in v1.67.4

type DexAccount struct {
	Id      uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Addr    string               `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Balance []*DexAccountBalance `protobuf:"bytes,3,rep,name=balance,proto3" json:"balance,omitempty"`
	DexName string               `protobuf:"bytes,4,opt,name=dexName,proto3" json:"dexName,omitempty"`
	// contains filtered or unexported fields
}

用户代币的数量

func (*DexAccount) Descriptor deprecated added in v1.67.4

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

Deprecated: Use DexAccount.ProtoReflect.Descriptor instead.

func (*DexAccount) GetAddr added in v1.67.4

func (x *DexAccount) GetAddr() string

func (*DexAccount) GetBalance added in v1.67.4

func (x *DexAccount) GetBalance() []*DexAccountBalance

func (*DexAccount) GetDexName added in v1.67.4

func (x *DexAccount) GetDexName() string

func (*DexAccount) GetId added in v1.67.4

func (x *DexAccount) GetId() uint64

func (*DexAccount) ProtoMessage added in v1.67.4

func (*DexAccount) ProtoMessage()

func (*DexAccount) ProtoReflect added in v1.67.4

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

func (*DexAccount) Reset added in v1.67.4

func (x *DexAccount) Reset()

func (*DexAccount) String added in v1.67.4

func (x *DexAccount) String() string

type DexAccountBalance added in v1.67.4

type DexAccountBalance struct {

	// token id
	Id      uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
	Frozen  uint64 `protobuf:"varint,3,opt,name=frozen,proto3" json:"frozen,omitempty"`
	// contains filtered or unexported fields
}

每种代币的数量

func (*DexAccountBalance) Descriptor deprecated added in v1.67.4

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

Deprecated: Use DexAccountBalance.ProtoReflect.Descriptor instead.

func (*DexAccountBalance) GetBalance added in v1.67.4

func (x *DexAccountBalance) GetBalance() uint64

func (*DexAccountBalance) GetFrozen added in v1.67.4

func (x *DexAccountBalance) GetFrozen() uint64

func (*DexAccountBalance) GetId added in v1.67.4

func (x *DexAccountBalance) GetId() uint64

func (*DexAccountBalance) ProtoMessage added in v1.67.4

func (*DexAccountBalance) ProtoMessage()

func (*DexAccountBalance) ProtoReflect added in v1.67.4

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

func (*DexAccountBalance) Reset added in v1.67.4

func (x *DexAccountBalance) Reset()

func (*DexAccountBalance) String added in v1.67.4

func (x *DexAccountBalance) String() string

type Econfig added in v1.67.4

type Econfig struct {
	Banks     []string
	Coins     []CoinCfg
	Exchanges map[string]*Trade // 现货交易、杠杠交易
}

func (*Econfig) GetFeeAddr added in v1.67.4

func (f *Econfig) GetFeeAddr() string

func (*Econfig) GetFeeAddrID added in v1.67.4

func (f *Econfig) GetFeeAddrID() uint64

func (*Econfig) GetSymbol added in v1.67.4

func (f *Econfig) GetSymbol(left, right string) string

TODO

func (*Econfig) GetTrade added in v1.67.4

func (f *Econfig) GetTrade(left, right string) *Trade

type EthPriorityQueueID

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

func (*EthPriorityQueueID) Descriptor deprecated

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

Deprecated: Use EthPriorityQueueID.ProtoReflect.Descriptor instead.

func (*EthPriorityQueueID) GetID

func (x *EthPriorityQueueID) GetID() string

func (*EthPriorityQueueID) ProtoMessage

func (*EthPriorityQueueID) ProtoMessage()

func (*EthPriorityQueueID) ProtoReflect

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

func (*EthPriorityQueueID) Reset

func (x *EthPriorityQueueID) Reset()

func (*EthPriorityQueueID) String

func (x *EthPriorityQueueID) String() string

type HistoryAccountProofInfo added in v1.67.4

type HistoryAccountProofInfo struct {
	RootHash   string         `protobuf:"bytes,1,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
	Leaves     []*HistoryLeaf `protobuf:"bytes,2,rep,name=leaves,proto3" json:"leaves,omitempty"`
	LeafHashes [][]byte       `protobuf:"bytes,3,rep,name=leafHashes,proto3" json:"leafHashes,omitempty"`
	// contains filtered or unexported fields
}

func (*HistoryAccountProofInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use HistoryAccountProofInfo.ProtoReflect.Descriptor instead.

func (*HistoryAccountProofInfo) GetLeafHashes added in v1.67.4

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

func (*HistoryAccountProofInfo) GetLeaves added in v1.67.4

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

func (*HistoryAccountProofInfo) GetRootHash added in v1.67.4

func (x *HistoryAccountProofInfo) GetRootHash() string

func (*HistoryAccountProofInfo) ProtoMessage added in v1.67.4

func (*HistoryAccountProofInfo) ProtoMessage()

func (*HistoryAccountProofInfo) ProtoReflect added in v1.67.4

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

func (*HistoryAccountProofInfo) Reset added in v1.67.4

func (x *HistoryAccountProofInfo) Reset()

func (*HistoryAccountProofInfo) String added in v1.67.4

func (x *HistoryAccountProofInfo) String() string

type HistoryLeaf

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

func (*HistoryLeaf) Descriptor deprecated

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

Deprecated: Use HistoryLeaf.ProtoReflect.Descriptor instead.

func (*HistoryLeaf) GetAccountId

func (x *HistoryLeaf) GetAccountId() uint64

func (*HistoryLeaf) GetChain33Addr

func (x *HistoryLeaf) GetChain33Addr() string

func (*HistoryLeaf) GetEthAddress

func (x *HistoryLeaf) GetEthAddress() string

func (*HistoryLeaf) GetProofId

func (x *HistoryLeaf) GetProofId() uint64

func (*HistoryLeaf) GetProxyPubKeys added in v1.67.4

func (x *HistoryLeaf) GetProxyPubKeys() *AccountProxyPubKeys

func (*HistoryLeaf) GetPubKey

func (x *HistoryLeaf) GetPubKey() *ZkPubKey

func (*HistoryLeaf) GetTokenHash

func (x *HistoryLeaf) GetTokenHash() string

func (*HistoryLeaf) GetTokens

func (x *HistoryLeaf) GetTokens() []*TokenBalance

func (*HistoryLeaf) ProtoMessage

func (*HistoryLeaf) ProtoMessage()

func (*HistoryLeaf) ProtoReflect

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

func (*HistoryLeaf) Reset

func (x *HistoryLeaf) Reset()

func (*HistoryLeaf) String

func (x *HistoryLeaf) String() string

type LastOnChainProof added in v1.67.4

type LastOnChainProof struct {
	ChainTitleId   uint64 `protobuf:"varint,1,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
	ProofId        uint64 `protobuf:"varint,2,opt,name=proofId,proto3" json:"proofId,omitempty"`
	OnChainProofId uint64 `protobuf:"varint,3,opt,name=onChainProofId,proto3" json:"onChainProofId,omitempty"`
	// contains filtered or unexported fields
}

func (*LastOnChainProof) Descriptor deprecated added in v1.67.4

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

Deprecated: Use LastOnChainProof.ProtoReflect.Descriptor instead.

func (*LastOnChainProof) GetChainTitleId added in v1.67.4

func (x *LastOnChainProof) GetChainTitleId() uint64

func (*LastOnChainProof) GetOnChainProofId added in v1.67.4

func (x *LastOnChainProof) GetOnChainProofId() uint64

func (*LastOnChainProof) GetProofId added in v1.67.4

func (x *LastOnChainProof) GetProofId() uint64

func (*LastOnChainProof) ProtoMessage added in v1.67.4

func (*LastOnChainProof) ProtoMessage()

func (*LastOnChainProof) ProtoReflect added in v1.67.4

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

func (*LastOnChainProof) Reset added in v1.67.4

func (x *LastOnChainProof) Reset()

func (*LastOnChainProof) String added in v1.67.4

func (x *LastOnChainProof) String() string

type Leaf

type Leaf struct {
	AccountId    uint64               `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`      //accountId其实就是叶子的totalIndex
	EthAddress   string               `protobuf:"bytes,2,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`     //账户对应的以太坊地址
	PubKey       *ZkPubKey            `protobuf:"bytes,3,opt,name=pubKey,proto3" json:"pubKey,omitempty"`             //eddsa公钥,用于验证身份
	Chain33Addr  string               `protobuf:"bytes,4,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"`   //chain33地址
	TokenHash    string               `protobuf:"bytes,5,opt,name=tokenHash,proto3" json:"tokenHash,omitempty"`       //叶子下token的hash
	TokenIds     []uint64             `protobuf:"varint,6,rep,packed,name=tokenIds,proto3" json:"tokenIds,omitempty"` //叶子下拥有的tokenId
	ProxyPubKeys *AccountProxyPubKeys `protobuf:"bytes,7,opt,name=proxyPubKeys,proto3" json:"proxyPubKeys,omitempty"` //eddsa代理公钥,用于验证代理者的身份
	// contains filtered or unexported fields
}

func (*Leaf) Descriptor deprecated

func (*Leaf) 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) GetProxyPubKeys added in v1.67.4

func (x *Leaf) GetProxyPubKeys() *AccountProxyPubKeys

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 MatchInfo added in v1.67.4

type MatchInfo struct {

	// trade match balance
	Matched     int64 `protobuf:"varint,1,opt,name=matched,proto3" json:"matched,omitempty"`
	LeftBalance int64 `protobuf:"varint,2,opt,name=leftBalance,proto3" json:"leftBalance,omitempty"`
	// = matched * price
	RightBalance int64 `protobuf:"varint,3,opt,name=rightBalance,proto3" json:"rightBalance,omitempty"`
	// fee use right token
	FeeTaker int64 `protobuf:"varint,4,opt,name=feeTaker,proto3" json:"feeTaker,omitempty"`
	FeeMaker int64 `protobuf:"varint,5,opt,name=feeMaker,proto3" json:"feeMaker,omitempty"`
	Price    int64 `protobuf:"varint,6,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func (*MatchInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use MatchInfo.ProtoReflect.Descriptor instead.

func (*MatchInfo) GetFeeMaker added in v1.67.4

func (x *MatchInfo) GetFeeMaker() int64

func (*MatchInfo) GetFeeTaker added in v1.67.4

func (x *MatchInfo) GetFeeTaker() int64

func (*MatchInfo) GetLeftBalance added in v1.67.4

func (x *MatchInfo) GetLeftBalance() int64

func (*MatchInfo) GetMatched added in v1.67.4

func (x *MatchInfo) GetMatched() int64

func (*MatchInfo) GetPrice added in v1.67.4

func (x *MatchInfo) GetPrice() int64

func (*MatchInfo) GetRightBalance added in v1.67.4

func (x *MatchInfo) GetRightBalance() int64

func (*MatchInfo) ProtoMessage added in v1.67.4

func (*MatchInfo) ProtoMessage()

func (*MatchInfo) ProtoReflect added in v1.67.4

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

func (*MatchInfo) Reset added in v1.67.4

func (x *MatchInfo) Reset()

func (*MatchInfo) String added in v1.67.4

func (x *MatchInfo) 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"`
	Roots       []string `protobuf:"bytes,11,rep,name=roots,proto3" json:"roots,omitempty"` //每个操作后的root
	//每个operation data由一对 操作前后数据组成,不同操作可以有多个操作数据,deposit:1,transfer:2
	OperationBranches []*OperationPairBranch `protobuf:"bytes,12,rep,name=operationBranches,proto3" json:"operationBranches,omitempty"`
	//操作特殊数据,像订单数据
	SpecialInfo *OperationSpecialInfo `protobuf:"bytes,13,opt,name=specialInfo,proto3" json:"specialInfo,omitempty"`
	//记录deposit或fullExit对应的eth priorityId,方便查询对应区块高度和证明Id
	EthPriorityId int64 `protobuf:"varint,14,opt,name=ethPriorityId,proto3" json:"ethPriorityId,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationInfo) Descriptor deprecated

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

Deprecated: Use OperationInfo.ProtoReflect.Descriptor instead.

func (*OperationInfo) GetBlockHeight

func (x *OperationInfo) GetBlockHeight() uint64

func (*OperationInfo) GetEthPriorityId added in v1.67.4

func (x *OperationInfo) GetEthPriorityId() int64

func (*OperationInfo) GetOpIndex

func (x *OperationInfo) GetOpIndex() uint32

func (*OperationInfo) GetOperationBranches

func (x *OperationInfo) GetOperationBranches() []*OperationPairBranch

func (*OperationInfo) GetRoots

func (x *OperationInfo) GetRoots() []string

func (*OperationInfo) GetSpecialInfo

func (x *OperationInfo) GetSpecialInfo() *OperationSpecialInfo

func (*OperationInfo) GetTxHash

func (x *OperationInfo) GetTxHash() string

func (*OperationInfo) GetTxIndex

func (x *OperationInfo) GetTxIndex() uint32

func (*OperationInfo) GetTxType

func (x *OperationInfo) GetTxType() uint32

func (*OperationInfo) ProtoMessage

func (*OperationInfo) ProtoMessage()

func (*OperationInfo) ProtoReflect

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

func (*OperationInfo) Reset

func (x *OperationInfo) Reset()

func (*OperationInfo) String

func (x *OperationInfo) String() string

type OperationMetaBranch

type OperationMetaBranch struct {
	AccountWitness *AccountWitness `protobuf:"bytes,1,opt,name=accountWitness,proto3" json:"accountWitness,omitempty"`
	TokenWitness   *TokenWitness   `protobuf:"bytes,2,opt,name=tokenWitness,proto3" json:"tokenWitness,omitempty"`
	// contains filtered or unexported fields
}

one operation branch

func (*OperationMetaBranch) Descriptor deprecated

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

Deprecated: Use OperationMetaBranch.ProtoReflect.Descriptor instead.

func (*OperationMetaBranch) GetAccountWitness

func (x *OperationMetaBranch) GetAccountWitness() *AccountWitness

func (*OperationMetaBranch) GetTokenWitness

func (x *OperationMetaBranch) GetTokenWitness() *TokenWitness

func (*OperationMetaBranch) ProtoMessage

func (*OperationMetaBranch) ProtoMessage()

func (*OperationMetaBranch) ProtoReflect

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

func (*OperationMetaBranch) Reset

func (x *OperationMetaBranch) Reset()

func (*OperationMetaBranch) String

func (x *OperationMetaBranch) String() string

type OperationPairBranch

type OperationPairBranch struct {
	Before *OperationMetaBranch `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"`
	After  *OperationMetaBranch `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"`
	// contains filtered or unexported fields
}

before and after operation data

func (*OperationPairBranch) Descriptor deprecated

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

Deprecated: Use OperationPairBranch.ProtoReflect.Descriptor instead.

func (*OperationPairBranch) GetAfter

func (*OperationPairBranch) GetBefore

func (x *OperationPairBranch) GetBefore() *OperationMetaBranch

func (*OperationPairBranch) ProtoMessage

func (*OperationPairBranch) ProtoMessage()

func (*OperationPairBranch) ProtoReflect

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

func (*OperationPairBranch) Reset

func (x *OperationPairBranch) Reset()

func (*OperationPairBranch) String

func (x *OperationPairBranch) String() string

type OperationSpecialInfo

type OperationSpecialInfo struct {

	//  repeated OperationSpecialData specialDatas = 111;
	//
	// Types that are assignable to Value:
	//	*OperationSpecialInfo_Deposit
	//	*OperationSpecialInfo_Withdraw
	//	*OperationSpecialInfo_Transfer
	//	*OperationSpecialInfo_TransferToNew
	//	*OperationSpecialInfo_ProxyExit
	//	*OperationSpecialInfo_SetPubKey
	//	*OperationSpecialInfo_FullExit
	//	*OperationSpecialInfo_Swap
	//	*OperationSpecialInfo_ContractToTree
	//	*OperationSpecialInfo_Contract2TreeNew
	//	*OperationSpecialInfo_TreeToContract
	//	*OperationSpecialInfo_Fee
	//	*OperationSpecialInfo_MintNFT
	//	*OperationSpecialInfo_WithdrawNFT
	//	*OperationSpecialInfo_TransferNFT
	Value isOperationSpecialInfo_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*OperationSpecialInfo) Descriptor deprecated

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

Deprecated: Use OperationSpecialInfo.ProtoReflect.Descriptor instead.

func (*OperationSpecialInfo) GetContract2TreeNew added in v1.67.4

func (x *OperationSpecialInfo) GetContract2TreeNew() *ZkContractToTreeNewWitnessInfo

func (*OperationSpecialInfo) GetContractToTree added in v1.67.4

func (x *OperationSpecialInfo) GetContractToTree() *ZkContractToTreeWitnessInfo

func (*OperationSpecialInfo) GetDeposit added in v1.67.4

func (x *OperationSpecialInfo) GetDeposit() *ZkDepositWitnessInfo

func (*OperationSpecialInfo) GetFee added in v1.67.4

func (*OperationSpecialInfo) GetFullExit added in v1.67.4

func (x *OperationSpecialInfo) GetFullExit() *ZkFullExitWitnessInfo

func (*OperationSpecialInfo) GetMintNFT added in v1.67.4

func (x *OperationSpecialInfo) GetMintNFT() *ZkMintNFTWitnessInfo

func (*OperationSpecialInfo) GetProxyExit added in v1.67.4

func (x *OperationSpecialInfo) GetProxyExit() *ZkProxyExitWitnessInfo

func (*OperationSpecialInfo) GetSetPubKey added in v1.67.4

func (x *OperationSpecialInfo) GetSetPubKey() *ZkSetPubKeyWitnessInfo

func (*OperationSpecialInfo) GetSwap added in v1.67.4

func (*OperationSpecialInfo) GetTransfer added in v1.67.4

func (x *OperationSpecialInfo) GetTransfer() *ZkTransferWitnessInfo

func (*OperationSpecialInfo) GetTransferNFT added in v1.67.4

func (x *OperationSpecialInfo) GetTransferNFT() *ZkTransferNFTWitnessInfo

func (*OperationSpecialInfo) GetTransferToNew added in v1.67.4

func (x *OperationSpecialInfo) GetTransferToNew() *ZkTransferToNewWitnessInfo

func (*OperationSpecialInfo) GetTreeToContract added in v1.67.4

func (x *OperationSpecialInfo) GetTreeToContract() *ZkTreeToContractWitnessInfo

func (*OperationSpecialInfo) GetValue added in v1.67.4

func (m *OperationSpecialInfo) GetValue() isOperationSpecialInfo_Value

func (*OperationSpecialInfo) GetWithdraw added in v1.67.4

func (x *OperationSpecialInfo) GetWithdraw() *ZkWithdrawWitnessInfo

func (*OperationSpecialInfo) GetWithdrawNFT added in v1.67.4

func (x *OperationSpecialInfo) GetWithdrawNFT() *ZkWithdrawNFTWitnessInfo

func (*OperationSpecialInfo) ProtoMessage

func (*OperationSpecialInfo) ProtoMessage()

func (*OperationSpecialInfo) ProtoReflect

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

func (*OperationSpecialInfo) Reset

func (x *OperationSpecialInfo) Reset()

func (*OperationSpecialInfo) String

func (x *OperationSpecialInfo) String() string

type OperationSpecialInfo_Contract2TreeNew added in v1.67.4

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

type OperationSpecialInfo_ContractToTree added in v1.67.4

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

type OperationSpecialInfo_Deposit added in v1.67.4

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

type OperationSpecialInfo_Fee added in v1.67.4

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

type OperationSpecialInfo_FullExit added in v1.67.4

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

type OperationSpecialInfo_MintNFT added in v1.67.4

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

type OperationSpecialInfo_ProxyExit added in v1.67.4

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

type OperationSpecialInfo_SetPubKey added in v1.67.4

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

type OperationSpecialInfo_Swap added in v1.67.4

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

type OperationSpecialInfo_Transfer added in v1.67.4

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

type OperationSpecialInfo_TransferNFT added in v1.67.4

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

type OperationSpecialInfo_TransferToNew added in v1.67.4

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

type OperationSpecialInfo_TreeToContract added in v1.67.4

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

type OperationSpecialInfo_Withdraw added in v1.67.4

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

type OperationSpecialInfo_WithdrawNFT added in v1.67.4

type OperationSpecialInfo_WithdrawNFT struct {
	WithdrawNFT *ZkWithdrawNFTWitnessInfo `protobuf:"bytes,14,opt,name=withdrawNFT,proto3,oneof"`
}

type ReceiptCommitProof

type ReceiptCommitProof struct {
	Prev    *CommitProofState `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	Current *CommitProofState `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptCommitProof) Descriptor deprecated

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

Deprecated: Use ReceiptCommitProof.ProtoReflect.Descriptor instead.

func (*ReceiptCommitProof) GetCurrent

func (x *ReceiptCommitProof) GetCurrent() *CommitProofState

func (*ReceiptCommitProof) GetPrev

func (x *ReceiptCommitProof) GetPrev() *CommitProofState

func (*ReceiptCommitProof) ProtoMessage

func (*ReceiptCommitProof) ProtoMessage()

func (*ReceiptCommitProof) ProtoReflect

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

func (*ReceiptCommitProof) Reset

func (x *ReceiptCommitProof) Reset()

func (*ReceiptCommitProof) String

func (x *ReceiptCommitProof) String() string

type ReceiptCommitProofRecord added in v1.67.4

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

func (*ReceiptCommitProofRecord) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ReceiptCommitProofRecord.ProtoReflect.Descriptor instead.

func (*ReceiptCommitProofRecord) GetProof added in v1.67.4

func (*ReceiptCommitProofRecord) ProtoMessage added in v1.67.4

func (*ReceiptCommitProofRecord) ProtoMessage()

func (*ReceiptCommitProofRecord) ProtoReflect added in v1.67.4

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

func (*ReceiptCommitProofRecord) Reset added in v1.67.4

func (x *ReceiptCommitProofRecord) Reset()

func (*ReceiptCommitProofRecord) String added in v1.67.4

func (x *ReceiptCommitProofRecord) String() string

type ReceiptDexAccount added in v1.67.4

type ReceiptDexAccount struct {
	Prev    *DexAccount `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	Current *DexAccount `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptDexAccount) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ReceiptDexAccount.ProtoReflect.Descriptor instead.

func (*ReceiptDexAccount) GetCurrent added in v1.67.4

func (x *ReceiptDexAccount) GetCurrent() *DexAccount

func (*ReceiptDexAccount) GetPrev added in v1.67.4

func (x *ReceiptDexAccount) GetPrev() *DexAccount

func (*ReceiptDexAccount) ProtoMessage added in v1.67.4

func (*ReceiptDexAccount) ProtoMessage()

func (*ReceiptDexAccount) ProtoReflect added in v1.67.4

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

func (*ReceiptDexAccount) Reset added in v1.67.4

func (x *ReceiptDexAccount) Reset()

func (*ReceiptDexAccount) String added in v1.67.4

func (x *ReceiptDexAccount) String() string

type ReceiptDexBind added in v1.67.4

type ReceiptDexBind struct {

	//交易地址
	ExchangeAddress string `protobuf:"bytes,1,opt,name=exchangeAddress,proto3" json:"exchangeAddress,omitempty"`
	//委托地址
	NewEntrustAddress string `protobuf:"bytes,2,opt,name=newEntrustAddress,proto3" json:"newEntrustAddress,omitempty"`
	//委托地址
	OldEntrustAddress string `protobuf:"bytes,3,opt,name=oldEntrustAddress,proto3" json:"oldEntrustAddress,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptDexBind) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ReceiptDexBind.ProtoReflect.Descriptor instead.

func (*ReceiptDexBind) GetExchangeAddress added in v1.67.4

func (x *ReceiptDexBind) GetExchangeAddress() string

func (*ReceiptDexBind) GetNewEntrustAddress added in v1.67.4

func (x *ReceiptDexBind) GetNewEntrustAddress() string

func (*ReceiptDexBind) GetOldEntrustAddress added in v1.67.4

func (x *ReceiptDexBind) GetOldEntrustAddress() string

func (*ReceiptDexBind) ProtoMessage added in v1.67.4

func (*ReceiptDexBind) ProtoMessage()

func (*ReceiptDexBind) ProtoReflect added in v1.67.4

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

func (*ReceiptDexBind) Reset added in v1.67.4

func (x *ReceiptDexBind) Reset()

func (*ReceiptDexBind) String added in v1.67.4

func (x *ReceiptDexBind) String() string

type ReceiptEthPriorityQueueID

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

func (*ReceiptEthPriorityQueueID) Descriptor deprecated

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

Deprecated: Use ReceiptEthPriorityQueueID.ProtoReflect.Descriptor instead.

func (*ReceiptEthPriorityQueueID) GetCurrent

func (x *ReceiptEthPriorityQueueID) GetCurrent() int64

func (*ReceiptEthPriorityQueueID) GetPrev

func (x *ReceiptEthPriorityQueueID) GetPrev() int64

func (*ReceiptEthPriorityQueueID) ProtoMessage

func (*ReceiptEthPriorityQueueID) ProtoMessage()

func (*ReceiptEthPriorityQueueID) ProtoReflect

func (*ReceiptEthPriorityQueueID) Reset

func (x *ReceiptEthPriorityQueueID) Reset()

func (*ReceiptEthPriorityQueueID) String

func (x *ReceiptEthPriorityQueueID) String() string

type ReceiptExodusMode added in v1.67.4

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

func (*ReceiptExodusMode) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ReceiptExodusMode.ProtoReflect.Descriptor instead.

func (*ReceiptExodusMode) GetCurrent added in v1.67.4

func (x *ReceiptExodusMode) GetCurrent() int64

func (*ReceiptExodusMode) GetPrev added in v1.67.4

func (x *ReceiptExodusMode) GetPrev() int64

func (*ReceiptExodusMode) ProtoMessage added in v1.67.4

func (*ReceiptExodusMode) ProtoMessage()

func (*ReceiptExodusMode) ProtoReflect added in v1.67.4

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

func (*ReceiptExodusMode) Reset added in v1.67.4

func (x *ReceiptExodusMode) Reset()

func (*ReceiptExodusMode) String added in v1.67.4

func (x *ReceiptExodusMode) String() string

type ReceiptSetFee

type ReceiptSetFee struct {
	TokenId       uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	ActionTy      int32  `protobuf:"varint,2,opt,name=actionTy,proto3" json:"actionTy,omitempty"`
	PrevAmount    string `protobuf:"bytes,3,opt,name=prevAmount,proto3" json:"prevAmount,omitempty"`
	CurrentAmount string `protobuf:"bytes,4,opt,name=currentAmount,proto3" json:"currentAmount,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptSetFee) Descriptor deprecated

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

Deprecated: Use ReceiptSetFee.ProtoReflect.Descriptor instead.

func (*ReceiptSetFee) GetActionTy

func (x *ReceiptSetFee) GetActionTy() int32

func (*ReceiptSetFee) GetCurrentAmount

func (x *ReceiptSetFee) GetCurrentAmount() string

func (*ReceiptSetFee) GetPrevAmount

func (x *ReceiptSetFee) GetPrevAmount() string

func (*ReceiptSetFee) GetTokenId

func (x *ReceiptSetFee) GetTokenId() uint64

func (*ReceiptSetFee) ProtoMessage

func (*ReceiptSetFee) ProtoMessage()

func (*ReceiptSetFee) ProtoReflect

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

func (*ReceiptSetFee) Reset

func (x *ReceiptSetFee) Reset()

func (*ReceiptSetFee) String

func (x *ReceiptSetFee) String() string

type ReceiptSetTokenSymbol added in v1.67.4

type ReceiptSetTokenSymbol struct {
	Pre *ZkTokenSymbol `protobuf:"bytes,1,opt,name=pre,proto3" json:"pre,omitempty"`
	Cur *ZkTokenSymbol `protobuf:"bytes,2,opt,name=cur,proto3" json:"cur,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptSetTokenSymbol) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ReceiptSetTokenSymbol.ProtoReflect.Descriptor instead.

func (*ReceiptSetTokenSymbol) GetCur added in v1.67.4

func (x *ReceiptSetTokenSymbol) GetCur() *ZkTokenSymbol

func (*ReceiptSetTokenSymbol) GetPre added in v1.67.4

func (x *ReceiptSetTokenSymbol) GetPre() *ZkTokenSymbol

func (*ReceiptSetTokenSymbol) ProtoMessage added in v1.67.4

func (*ReceiptSetTokenSymbol) ProtoMessage()

func (*ReceiptSetTokenSymbol) ProtoReflect added in v1.67.4

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

func (*ReceiptSetTokenSymbol) Reset added in v1.67.4

func (x *ReceiptSetTokenSymbol) Reset()

func (*ReceiptSetTokenSymbol) String added in v1.67.4

func (x *ReceiptSetTokenSymbol) String() string

type ReceiptSetVerifier

type ReceiptSetVerifier struct {
	Prev    *ZkVerifier `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	Current *ZkVerifier `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptSetVerifier) Descriptor deprecated

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

Deprecated: Use ReceiptSetVerifier.ProtoReflect.Descriptor instead.

func (*ReceiptSetVerifier) GetCurrent

func (x *ReceiptSetVerifier) GetCurrent() *ZkVerifier

func (*ReceiptSetVerifier) GetPrev

func (x *ReceiptSetVerifier) GetPrev() *ZkVerifier

func (*ReceiptSetVerifier) ProtoMessage

func (*ReceiptSetVerifier) ProtoMessage()

func (*ReceiptSetVerifier) ProtoReflect

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

func (*ReceiptSetVerifier) Reset

func (x *ReceiptSetVerifier) Reset()

func (*ReceiptSetVerifier) String

func (x *ReceiptSetVerifier) String() string

type ReceiptSetVerifyKey

type ReceiptSetVerifyKey struct {
	Prev    *ZkVerifyKey `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	Current *ZkVerifyKey `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptSetVerifyKey) Descriptor deprecated

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

Deprecated: Use ReceiptSetVerifyKey.ProtoReflect.Descriptor instead.

func (*ReceiptSetVerifyKey) GetCurrent

func (x *ReceiptSetVerifyKey) GetCurrent() *ZkVerifyKey

func (*ReceiptSetVerifyKey) GetPrev

func (x *ReceiptSetVerifyKey) GetPrev() *ZkVerifyKey

func (*ReceiptSetVerifyKey) ProtoMessage

func (*ReceiptSetVerifyKey) ProtoMessage()

func (*ReceiptSetVerifyKey) ProtoReflect

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

func (*ReceiptSetVerifyKey) Reset

func (x *ReceiptSetVerifyKey) Reset()

func (*ReceiptSetVerifyKey) String

func (x *ReceiptSetVerifyKey) String() string

type ReceiptSpotMatch added in v1.67.4

type ReceiptSpotMatch struct {
	Order       *SpotOrder   `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	MatchOrders []*SpotOrder `protobuf:"bytes,2,rep,name=matchOrders,proto3" json:"matchOrders,omitempty"`
	Index       int64        `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

exchange执行票据日志

func (*ReceiptSpotMatch) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ReceiptSpotMatch.ProtoReflect.Descriptor instead.

func (*ReceiptSpotMatch) GetIndex added in v1.67.4

func (x *ReceiptSpotMatch) GetIndex() int64

func (*ReceiptSpotMatch) GetMatchOrders added in v1.67.4

func (x *ReceiptSpotMatch) GetMatchOrders() []*SpotOrder

func (*ReceiptSpotMatch) GetOrder added in v1.67.4

func (x *ReceiptSpotMatch) GetOrder() *SpotOrder

func (*ReceiptSpotMatch) ProtoMessage added in v1.67.4

func (*ReceiptSpotMatch) ProtoMessage()

func (*ReceiptSpotMatch) ProtoReflect added in v1.67.4

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

func (*ReceiptSpotMatch) Reset added in v1.67.4

func (x *ReceiptSpotMatch) Reset()

func (*ReceiptSpotMatch) String added in v1.67.4

func (x *ReceiptSpotMatch) String() string

type ReceiptSpotTrade added in v1.67.4

type ReceiptSpotTrade struct {
	Match   *MatchInfo     `protobuf:"bytes,1,opt,name=Match,proto3" json:"Match,omitempty"`
	Prev    *TradeAccounts `protobuf:"bytes,2,opt,name=prev,proto3" json:"prev,omitempty"`
	Current *TradeAccounts `protobuf:"bytes,3,opt,name=current,proto3" json:"current,omitempty"`
	// 加入zk order, 在电路验证需要
	MakerOrder *ZkOrder `protobuf:"bytes,4,opt,name=makerOrder,proto3" json:"makerOrder,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptSpotTrade) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ReceiptSpotTrade.ProtoReflect.Descriptor instead.

func (*ReceiptSpotTrade) GetCurrent added in v1.67.4

func (x *ReceiptSpotTrade) GetCurrent() *TradeAccounts

func (*ReceiptSpotTrade) GetMakerOrder added in v1.67.4

func (x *ReceiptSpotTrade) GetMakerOrder() *ZkOrder

func (*ReceiptSpotTrade) GetMatch added in v1.67.4

func (x *ReceiptSpotTrade) GetMatch() *MatchInfo

func (*ReceiptSpotTrade) GetPrev added in v1.67.4

func (x *ReceiptSpotTrade) GetPrev() *TradeAccounts

func (*ReceiptSpotTrade) ProtoMessage added in v1.67.4

func (*ReceiptSpotTrade) ProtoMessage()

func (*ReceiptSpotTrade) ProtoReflect added in v1.67.4

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

func (*ReceiptSpotTrade) Reset added in v1.67.4

func (x *ReceiptSpotTrade) Reset()

func (*ReceiptSpotTrade) String added in v1.67.4

func (x *ReceiptSpotTrade) String() string

type RelayerOperators

type RelayerOperators struct {
	Operators []string `protobuf:"bytes,1,rep,name=operators,proto3" json:"operators,omitempty"`
	// contains filtered or unexported fields
}

zk relayer operators

func (*RelayerOperators) Descriptor deprecated

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

Deprecated: Use RelayerOperators.ProtoReflect.Descriptor instead.

func (*RelayerOperators) GetOperators

func (x *RelayerOperators) GetOperators() []string

func (*RelayerOperators) ProtoMessage

func (*RelayerOperators) ProtoMessage()

func (*RelayerOperators) ProtoReflect

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

func (*RelayerOperators) Reset

func (x *RelayerOperators) Reset()

func (*RelayerOperators) String

func (x *RelayerOperators) String() string

type RootInfo

type RootInfo struct {
	RootHash   string `protobuf:"bytes,1,opt,name=rootHash,proto3" json:"rootHash,omitempty"`      //归档Merkle Tree的根hash
	Height     int32  `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`         //归档的高度
	StartIndex uint64 `protobuf:"varint,3,opt,name=startIndex,proto3" json:"startIndex,omitempty"` //开始的全局index
	// contains filtered or unexported fields
}

func (*RootInfo) Descriptor deprecated

func (*RootInfo) 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 SpotAction added in v1.67.4

type SpotAction struct {

	// Types that are assignable to Value:
	//	*SpotAction_LimitOrder
	//	*SpotAction_MarketOrder
	//	*SpotAction_RevokeOrder
	//	*SpotAction_ExchangeBind
	//	*SpotAction_EntrustOrder
	//	*SpotAction_EntrustRevokeOrder
	Value isSpotAction_Value `protobuf_oneof:"value"`
	Ty    int32              `protobuf:"varint,6,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

func (*SpotAction) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotAction.ProtoReflect.Descriptor instead.

func (*SpotAction) GetEntrustOrder added in v1.67.4

func (x *SpotAction) GetEntrustOrder() *SpotEntrustOrder

func (*SpotAction) GetEntrustRevokeOrder added in v1.67.4

func (x *SpotAction) GetEntrustRevokeOrder() *SpotEntrustRevokeOrder

func (*SpotAction) GetExchangeBind added in v1.67.4

func (x *SpotAction) GetExchangeBind() *SpotExchangeBind

func (*SpotAction) GetLimitOrder added in v1.67.4

func (x *SpotAction) GetLimitOrder() *SpotLimitOrder

func (*SpotAction) GetMarketOrder added in v1.67.4

func (x *SpotAction) GetMarketOrder() *SpotMarketOrder

func (*SpotAction) GetRevokeOrder added in v1.67.4

func (x *SpotAction) GetRevokeOrder() *SpotRevokeOrder

func (*SpotAction) GetTy added in v1.67.4

func (x *SpotAction) GetTy() int32

func (*SpotAction) GetValue added in v1.67.4

func (m *SpotAction) GetValue() isSpotAction_Value

func (*SpotAction) ProtoMessage added in v1.67.4

func (*SpotAction) ProtoMessage()

func (*SpotAction) ProtoReflect added in v1.67.4

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

func (*SpotAction) Reset added in v1.67.4

func (x *SpotAction) Reset()

func (*SpotAction) String added in v1.67.4

func (x *SpotAction) String() string

type SpotAction_EntrustOrder added in v1.67.4

type SpotAction_EntrustOrder struct {
	EntrustOrder *SpotEntrustOrder `protobuf:"bytes,5,opt,name=entrustOrder,proto3,oneof"`
}

type SpotAction_EntrustRevokeOrder added in v1.67.4

type SpotAction_EntrustRevokeOrder struct {
	EntrustRevokeOrder *SpotEntrustRevokeOrder `protobuf:"bytes,7,opt,name=entrustRevokeOrder,proto3,oneof"`
}

type SpotAction_ExchangeBind added in v1.67.4

type SpotAction_ExchangeBind struct {
	ExchangeBind *SpotExchangeBind `protobuf:"bytes,4,opt,name=exchangeBind,proto3,oneof"`
}

type SpotAction_LimitOrder added in v1.67.4

type SpotAction_LimitOrder struct {
	LimitOrder *SpotLimitOrder `protobuf:"bytes,1,opt,name=limitOrder,proto3,oneof"`
}

type SpotAction_MarketOrder added in v1.67.4

type SpotAction_MarketOrder struct {
	MarketOrder *SpotMarketOrder `protobuf:"bytes,2,opt,name=marketOrder,proto3,oneof"`
}

type SpotAction_RevokeOrder added in v1.67.4

type SpotAction_RevokeOrder struct {
	RevokeOrder *SpotRevokeOrder `protobuf:"bytes,3,opt,name=revokeOrder,proto3,oneof"`
}

type SpotAssetLimitOrder added in v1.67.4

type SpotAssetLimitOrder struct {

	//交易对
	LeftAsset *ZkAsset `protobuf:"bytes,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
	//交易对
	RightAsset *ZkAsset `protobuf:"bytes,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
	//价格
	Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
	//总量
	Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	//操作, 1为买,2为卖
	Op    int32    `protobuf:"varint,5,opt,name=op,proto3" json:"op,omitempty"`
	Order *ZkOrder `protobuf:"bytes,6,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

限价订单

func (*SpotAssetLimitOrder) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotAssetLimitOrder.ProtoReflect.Descriptor instead.

func (*SpotAssetLimitOrder) GetAmount added in v1.67.4

func (x *SpotAssetLimitOrder) GetAmount() int64

func (*SpotAssetLimitOrder) GetLeftAsset added in v1.67.4

func (x *SpotAssetLimitOrder) GetLeftAsset() *ZkAsset

func (*SpotAssetLimitOrder) GetOp added in v1.67.4

func (x *SpotAssetLimitOrder) GetOp() int32

func (*SpotAssetLimitOrder) GetOrder added in v1.67.4

func (x *SpotAssetLimitOrder) GetOrder() *ZkOrder

func (*SpotAssetLimitOrder) GetPrice added in v1.67.4

func (x *SpotAssetLimitOrder) GetPrice() int64

func (*SpotAssetLimitOrder) GetRightAsset added in v1.67.4

func (x *SpotAssetLimitOrder) GetRightAsset() *ZkAsset

func (*SpotAssetLimitOrder) ProtoMessage added in v1.67.4

func (*SpotAssetLimitOrder) ProtoMessage()

func (*SpotAssetLimitOrder) ProtoReflect added in v1.67.4

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

func (*SpotAssetLimitOrder) Reset added in v1.67.4

func (x *SpotAssetLimitOrder) Reset()

func (*SpotAssetLimitOrder) String added in v1.67.4

func (x *SpotAssetLimitOrder) String() string

type SpotEntrustOrder added in v1.67.4

type SpotEntrustOrder struct {

	//交易对
	LeftAsset uint64 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
	//交易对
	RightAsset uint64 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
	//价格
	Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
	//总量
	Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	//操作, 1为买,2为卖
	Op int32 `protobuf:"varint,5,opt,name=op,proto3" json:"op,omitempty"`
	//交易地址
	Addr  string   `protobuf:"bytes,6,opt,name=addr,proto3" json:"addr,omitempty"`
	Order *ZkOrder `protobuf:"bytes,7,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

委托限价订单

func (*SpotEntrustOrder) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotEntrustOrder.ProtoReflect.Descriptor instead.

func (*SpotEntrustOrder) GetAddr added in v1.67.4

func (x *SpotEntrustOrder) GetAddr() string

func (*SpotEntrustOrder) GetAmount added in v1.67.4

func (x *SpotEntrustOrder) GetAmount() int64

func (*SpotEntrustOrder) GetLeftAsset added in v1.67.4

func (x *SpotEntrustOrder) GetLeftAsset() uint64

func (*SpotEntrustOrder) GetOp added in v1.67.4

func (x *SpotEntrustOrder) GetOp() int32

func (*SpotEntrustOrder) GetOrder added in v1.67.4

func (x *SpotEntrustOrder) GetOrder() *ZkOrder

func (*SpotEntrustOrder) GetPrice added in v1.67.4

func (x *SpotEntrustOrder) GetPrice() int64

func (*SpotEntrustOrder) GetRightAsset added in v1.67.4

func (x *SpotEntrustOrder) GetRightAsset() uint64

func (*SpotEntrustOrder) ProtoMessage added in v1.67.4

func (*SpotEntrustOrder) ProtoMessage()

func (*SpotEntrustOrder) ProtoReflect added in v1.67.4

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

func (*SpotEntrustOrder) Reset added in v1.67.4

func (x *SpotEntrustOrder) Reset()

func (*SpotEntrustOrder) String added in v1.67.4

func (x *SpotEntrustOrder) String() string

type SpotEntrustRevokeOrder added in v1.67.4

type SpotEntrustRevokeOrder struct {

	//订单号
	OrderID int64 `protobuf:"varint,1,opt,name=orderID,proto3" json:"orderID,omitempty"`
	//交易地址
	Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

委托撤回订单

func (*SpotEntrustRevokeOrder) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotEntrustRevokeOrder.ProtoReflect.Descriptor instead.

func (*SpotEntrustRevokeOrder) GetAddr added in v1.67.4

func (x *SpotEntrustRevokeOrder) GetAddr() string

func (*SpotEntrustRevokeOrder) GetOrderID added in v1.67.4

func (x *SpotEntrustRevokeOrder) GetOrderID() int64

func (*SpotEntrustRevokeOrder) ProtoMessage added in v1.67.4

func (*SpotEntrustRevokeOrder) ProtoMessage()

func (*SpotEntrustRevokeOrder) ProtoReflect added in v1.67.4

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

func (*SpotEntrustRevokeOrder) Reset added in v1.67.4

func (x *SpotEntrustRevokeOrder) Reset()

func (*SpotEntrustRevokeOrder) String added in v1.67.4

func (x *SpotEntrustRevokeOrder) String() string

type SpotExchangeBind added in v1.67.4

type SpotExchangeBind struct {

	//交易地址
	ExchangeAddress string `protobuf:"bytes,1,opt,name=exchangeAddress,proto3" json:"exchangeAddress,omitempty"`
	//委托地址
	EntrustAddress string `protobuf:"bytes,2,opt,name=entrustAddress,proto3" json:"entrustAddress,omitempty"`
	// contains filtered or unexported fields
}

func (*SpotExchangeBind) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotExchangeBind.ProtoReflect.Descriptor instead.

func (*SpotExchangeBind) GetEntrustAddress added in v1.67.4

func (x *SpotExchangeBind) GetEntrustAddress() string

func (*SpotExchangeBind) GetExchangeAddress added in v1.67.4

func (x *SpotExchangeBind) GetExchangeAddress() string

func (*SpotExchangeBind) ProtoMessage added in v1.67.4

func (*SpotExchangeBind) ProtoMessage()

func (*SpotExchangeBind) ProtoReflect added in v1.67.4

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

func (*SpotExchangeBind) Reset added in v1.67.4

func (x *SpotExchangeBind) Reset()

func (*SpotExchangeBind) String added in v1.67.4

func (x *SpotExchangeBind) String() string

type SpotLimitOrder added in v1.67.4

type SpotLimitOrder struct {

	//交易对
	LeftAsset uint64 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
	//交易对
	RightAsset uint64 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
	//价格
	Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
	//总量
	Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	//操作, 1为买,2为卖
	Op    int32    `protobuf:"varint,5,opt,name=op,proto3" json:"op,omitempty"`
	Order *ZkOrder `protobuf:"bytes,6,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

限价订单

func (*SpotLimitOrder) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotLimitOrder.ProtoReflect.Descriptor instead.

func (*SpotLimitOrder) GetAmount added in v1.67.4

func (x *SpotLimitOrder) GetAmount() int64

func (*SpotLimitOrder) GetLeftAsset added in v1.67.4

func (x *SpotLimitOrder) GetLeftAsset() uint64

func (*SpotLimitOrder) GetOp added in v1.67.4

func (x *SpotLimitOrder) GetOp() int32

func (*SpotLimitOrder) GetOrder added in v1.67.4

func (x *SpotLimitOrder) GetOrder() *ZkOrder

func (*SpotLimitOrder) GetPrice added in v1.67.4

func (x *SpotLimitOrder) GetPrice() int64

func (*SpotLimitOrder) GetRightAsset added in v1.67.4

func (x *SpotLimitOrder) GetRightAsset() uint64

func (*SpotLimitOrder) ProtoMessage added in v1.67.4

func (*SpotLimitOrder) ProtoMessage()

func (*SpotLimitOrder) ProtoReflect added in v1.67.4

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

func (*SpotLimitOrder) Reset added in v1.67.4

func (x *SpotLimitOrder) Reset()

func (*SpotLimitOrder) String added in v1.67.4

func (x *SpotLimitOrder) String() string

type SpotMarketDepth added in v1.67.4

type SpotMarketDepth struct {

	//资产1
	LeftAsset uint64 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
	//资产2
	RightAsset uint64 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
	//价格
	Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
	//总量
	Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	//操作, 1为买,2为卖
	Op int32 `protobuf:"varint,5,opt,name=op,proto3" json:"op,omitempty"`
	// contains filtered or unexported fields
}

市场深度

func (*SpotMarketDepth) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotMarketDepth.ProtoReflect.Descriptor instead.

func (*SpotMarketDepth) GetAmount added in v1.67.4

func (x *SpotMarketDepth) GetAmount() int64

func (*SpotMarketDepth) GetLeftAsset added in v1.67.4

func (x *SpotMarketDepth) GetLeftAsset() uint64

func (*SpotMarketDepth) GetOp added in v1.67.4

func (x *SpotMarketDepth) GetOp() int32

func (*SpotMarketDepth) GetPrice added in v1.67.4

func (x *SpotMarketDepth) GetPrice() int64

func (*SpotMarketDepth) GetRightAsset added in v1.67.4

func (x *SpotMarketDepth) GetRightAsset() uint64

func (*SpotMarketDepth) ProtoMessage added in v1.67.4

func (*SpotMarketDepth) ProtoMessage()

func (*SpotMarketDepth) ProtoReflect added in v1.67.4

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

func (*SpotMarketDepth) Reset added in v1.67.4

func (x *SpotMarketDepth) Reset()

func (*SpotMarketDepth) String added in v1.67.4

func (x *SpotMarketDepth) String() string

type SpotMarketDepthList added in v1.67.4

type SpotMarketDepthList struct {
	List       []*SpotMarketDepth `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	PrimaryKey string             `protobuf:"bytes,2,opt,name=primaryKey,proto3" json:"primaryKey,omitempty"`
	// contains filtered or unexported fields
}

查询接口返回的市场深度列表

func (*SpotMarketDepthList) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotMarketDepthList.ProtoReflect.Descriptor instead.

func (*SpotMarketDepthList) GetList added in v1.67.4

func (x *SpotMarketDepthList) GetList() []*SpotMarketDepth

func (*SpotMarketDepthList) GetPrimaryKey added in v1.67.4

func (x *SpotMarketDepthList) GetPrimaryKey() string

func (*SpotMarketDepthList) ProtoMessage added in v1.67.4

func (*SpotMarketDepthList) ProtoMessage()

func (*SpotMarketDepthList) ProtoReflect added in v1.67.4

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

func (*SpotMarketDepthList) Reset added in v1.67.4

func (x *SpotMarketDepthList) Reset()

func (*SpotMarketDepthList) String added in v1.67.4

func (x *SpotMarketDepthList) String() string

type SpotMarketOrder added in v1.67.4

type SpotMarketOrder struct {

	//资产1
	LeftAsset uint32 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
	//资产2
	RightAsset uint32 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
	//总量
	Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	//操作, 1为买,2为卖
	Op int32 `protobuf:"varint,4,opt,name=op,proto3" json:"op,omitempty"`
	// contains filtered or unexported fields
}

市价委托

func (*SpotMarketOrder) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotMarketOrder.ProtoReflect.Descriptor instead.

func (*SpotMarketOrder) GetAmount added in v1.67.4

func (x *SpotMarketOrder) GetAmount() int64

func (*SpotMarketOrder) GetLeftAsset added in v1.67.4

func (x *SpotMarketOrder) GetLeftAsset() uint32

func (*SpotMarketOrder) GetOp added in v1.67.4

func (x *SpotMarketOrder) GetOp() int32

func (*SpotMarketOrder) GetRightAsset added in v1.67.4

func (x *SpotMarketOrder) GetRightAsset() uint32

func (*SpotMarketOrder) ProtoMessage added in v1.67.4

func (*SpotMarketOrder) ProtoMessage()

func (*SpotMarketOrder) ProtoReflect added in v1.67.4

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

func (*SpotMarketOrder) Reset added in v1.67.4

func (x *SpotMarketOrder) Reset()

func (*SpotMarketOrder) String added in v1.67.4

func (x *SpotMarketOrder) String() string

type SpotNftOrder added in v1.67.4

type SpotNftOrder struct {

	//交易对
	LeftAsset uint64 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
	//交易对
	RightAsset uint64 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
	//价格
	Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
	//总量
	Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	//操作, 1为买,2为卖
	Op    int32    `protobuf:"varint,5,opt,name=op,proto3" json:"op,omitempty"`
	Order *ZkOrder `protobuf:"bytes,6,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

使用挂单摘单模式, 先挂单

func (*SpotNftOrder) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotNftOrder.ProtoReflect.Descriptor instead.

func (*SpotNftOrder) GetAmount added in v1.67.4

func (x *SpotNftOrder) GetAmount() int64

func (*SpotNftOrder) GetLeftAsset added in v1.67.4

func (x *SpotNftOrder) GetLeftAsset() uint64

func (*SpotNftOrder) GetOp added in v1.67.4

func (x *SpotNftOrder) GetOp() int32

func (*SpotNftOrder) GetOrder added in v1.67.4

func (x *SpotNftOrder) GetOrder() *ZkOrder

func (*SpotNftOrder) GetPrice added in v1.67.4

func (x *SpotNftOrder) GetPrice() int64

func (*SpotNftOrder) GetRightAsset added in v1.67.4

func (x *SpotNftOrder) GetRightAsset() uint64

func (*SpotNftOrder) ProtoMessage added in v1.67.4

func (*SpotNftOrder) ProtoMessage()

func (*SpotNftOrder) ProtoReflect added in v1.67.4

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

func (*SpotNftOrder) Reset added in v1.67.4

func (x *SpotNftOrder) Reset()

func (*SpotNftOrder) String added in v1.67.4

func (x *SpotNftOrder) String() string

type SpotNftTakerOrder added in v1.67.4

type SpotNftTakerOrder struct {

	//交易对
	OrderID int64    `protobuf:"varint,1,opt,name=orderID,proto3" json:"orderID,omitempty"`
	Order   *ZkOrder `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

使用挂单摘单模式, 后摘单

func (*SpotNftTakerOrder) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotNftTakerOrder.ProtoReflect.Descriptor instead.

func (*SpotNftTakerOrder) GetOrder added in v1.67.4

func (x *SpotNftTakerOrder) GetOrder() *ZkOrder

func (*SpotNftTakerOrder) GetOrderID added in v1.67.4

func (x *SpotNftTakerOrder) GetOrderID() int64

func (*SpotNftTakerOrder) ProtoMessage added in v1.67.4

func (*SpotNftTakerOrder) ProtoMessage()

func (*SpotNftTakerOrder) ProtoReflect added in v1.67.4

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

func (*SpotNftTakerOrder) Reset added in v1.67.4

func (x *SpotNftTakerOrder) Reset()

func (*SpotNftTakerOrder) String added in v1.67.4

func (x *SpotNftTakerOrder) String() string

type SpotOrder added in v1.67.4

type SpotOrder struct {
	OrderID int64 `protobuf:"varint,1,opt,name=orderID,proto3" json:"orderID,omitempty"`
	// Types that are assignable to Value:
	//	*SpotOrder_LimitOrder
	//	*SpotOrder_MarketOrder
	//	*SpotOrder_NftOrder
	//	*SpotOrder_NftTakerOrder
	//	*SpotOrder_AssetLimitOrder
	Value isSpotOrder_Value `protobuf_oneof:"value"`
	//挂单类型
	Ty int32 `protobuf:"varint,4,opt,name=ty,proto3" json:"ty,omitempty"`
	//已经成交的数量
	Executed int64 `protobuf:"varint,5,opt,name=executed,proto3" json:"executed,omitempty"`
	//成交均价
	AVGPrice int64 `protobuf:"varint,6,opt,name=AVG_price,json=AVGPrice,proto3" json:"AVG_price,omitempty"`
	//余额
	Balance int64 `protobuf:"varint,7,opt,name=balance,proto3" json:"balance,omitempty"`
	//状态,0 挂单中ordered, 1 完成completed, 2撤回 revoked
	Status int32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"`
	//用户地址
	Addr string `protobuf:"bytes,9,opt,name=addr,proto3" json:"addr,omitempty"`
	//更新时间
	UpdateTime int64 `protobuf:"varint,10,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
	//索引
	Index int64 `protobuf:"varint,11,opt,name=index,proto3" json:"index,omitempty"`
	//手续费率 (挂单)
	Rate int32 `protobuf:"varint,12,opt,name=rate,proto3" json:"rate,omitempty"`
	//手续费
	DigestedFee int64 `protobuf:"varint,13,opt,name=digestedFee,proto3" json:"digestedFee,omitempty"`
	// 主动成交手续费
	TakerRate int32 `protobuf:"varint,14,opt,name=takerRate,proto3" json:"takerRate,omitempty"`
	//挂单hash
	Hash string `protobuf:"bytes,15,opt,name=hash,proto3" json:"hash,omitempty"`
	//撤单hash
	RevokeHash string `protobuf:"bytes,16,opt,name=revokeHash,proto3" json:"revokeHash,omitempty"`
	//创建时间
	CreateTime int64 `protobuf:"varint,17,opt,name=createTime,proto3" json:"createTime,omitempty"`
	//委托地址
	EntrustAddr string `protobuf:"bytes,18,opt,name=entrustAddr,proto3" json:"entrustAddr,omitempty"`
	// frozen fee
	FeeBalance int64 `protobuf:"varint,19,opt,name=feeBalance,proto3" json:"feeBalance,omitempty"`
	// contains filtered or unexported fields
}

订单信息

func (*SpotOrder) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotOrder.ProtoReflect.Descriptor instead.

func (*SpotOrder) GetAVGPrice added in v1.67.4

func (x *SpotOrder) GetAVGPrice() int64

func (*SpotOrder) GetAddr added in v1.67.4

func (x *SpotOrder) GetAddr() string

func (*SpotOrder) GetAssetLimitOrder added in v1.67.4

func (x *SpotOrder) GetAssetLimitOrder() *SpotAssetLimitOrder

func (*SpotOrder) GetBalance added in v1.67.4

func (x *SpotOrder) GetBalance() int64

func (*SpotOrder) GetCreateTime added in v1.67.4

func (x *SpotOrder) GetCreateTime() int64

func (*SpotOrder) GetDigestedFee added in v1.67.4

func (x *SpotOrder) GetDigestedFee() int64

func (*SpotOrder) GetEntrustAddr added in v1.67.4

func (x *SpotOrder) GetEntrustAddr() string

func (*SpotOrder) GetExecuted added in v1.67.4

func (x *SpotOrder) GetExecuted() int64

func (*SpotOrder) GetFeeBalance added in v1.67.4

func (x *SpotOrder) GetFeeBalance() int64

func (*SpotOrder) GetHash added in v1.67.4

func (x *SpotOrder) GetHash() string

func (*SpotOrder) GetIndex added in v1.67.4

func (x *SpotOrder) GetIndex() int64

func (*SpotOrder) GetLimitOrder added in v1.67.4

func (x *SpotOrder) GetLimitOrder() *SpotLimitOrder

func (*SpotOrder) GetMarketOrder added in v1.67.4

func (x *SpotOrder) GetMarketOrder() *SpotMarketOrder

func (*SpotOrder) GetNftOrder added in v1.67.4

func (x *SpotOrder) GetNftOrder() *SpotNftOrder

func (*SpotOrder) GetNftTakerOrder added in v1.67.4

func (x *SpotOrder) GetNftTakerOrder() *SpotNftTakerOrder

func (*SpotOrder) GetOrderID added in v1.67.4

func (x *SpotOrder) GetOrderID() int64

func (*SpotOrder) GetRate added in v1.67.4

func (x *SpotOrder) GetRate() int32

func (*SpotOrder) GetRevokeHash added in v1.67.4

func (x *SpotOrder) GetRevokeHash() string

func (*SpotOrder) GetStatus added in v1.67.4

func (x *SpotOrder) GetStatus() int32

func (*SpotOrder) GetTakerRate added in v1.67.4

func (x *SpotOrder) GetTakerRate() int32

func (*SpotOrder) GetTy added in v1.67.4

func (x *SpotOrder) GetTy() int32

func (*SpotOrder) GetUpdateTime added in v1.67.4

func (x *SpotOrder) GetUpdateTime() int64

func (*SpotOrder) GetValue added in v1.67.4

func (m *SpotOrder) GetValue() isSpotOrder_Value

func (*SpotOrder) ProtoMessage added in v1.67.4

func (*SpotOrder) ProtoMessage()

func (*SpotOrder) ProtoReflect added in v1.67.4

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

func (*SpotOrder) Reset added in v1.67.4

func (x *SpotOrder) Reset()

func (*SpotOrder) String added in v1.67.4

func (x *SpotOrder) String() string

type SpotOrderList added in v1.67.4

type SpotOrderList struct {
	List       []*SpotOrder `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	PrimaryKey string       `protobuf:"bytes,2,opt,name=primaryKey,proto3" json:"primaryKey,omitempty"`
	// contains filtered or unexported fields
}

订单列表

func (*SpotOrderList) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotOrderList.ProtoReflect.Descriptor instead.

func (*SpotOrderList) GetList added in v1.67.4

func (x *SpotOrderList) GetList() []*SpotOrder

func (*SpotOrderList) GetPrimaryKey added in v1.67.4

func (x *SpotOrderList) GetPrimaryKey() string

func (*SpotOrderList) ProtoMessage added in v1.67.4

func (*SpotOrderList) ProtoMessage()

func (*SpotOrderList) ProtoReflect added in v1.67.4

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

func (*SpotOrderList) Reset added in v1.67.4

func (x *SpotOrderList) Reset()

func (*SpotOrderList) String added in v1.67.4

func (x *SpotOrderList) String() string

type SpotOrder_AssetLimitOrder added in v1.67.4

type SpotOrder_AssetLimitOrder struct {
	AssetLimitOrder *SpotAssetLimitOrder `protobuf:"bytes,22,opt,name=assetLimitOrder,proto3,oneof"`
}

type SpotOrder_LimitOrder added in v1.67.4

type SpotOrder_LimitOrder struct {
	LimitOrder *SpotLimitOrder `protobuf:"bytes,2,opt,name=limitOrder,proto3,oneof"`
}

type SpotOrder_MarketOrder added in v1.67.4

type SpotOrder_MarketOrder struct {
	MarketOrder *SpotMarketOrder `protobuf:"bytes,3,opt,name=marketOrder,proto3,oneof"`
}

type SpotOrder_NftOrder added in v1.67.4

type SpotOrder_NftOrder struct {
	NftOrder *SpotNftOrder `protobuf:"bytes,20,opt,name=nftOrder,proto3,oneof"`
}

type SpotOrder_NftTakerOrder added in v1.67.4

type SpotOrder_NftTakerOrder struct {
	NftTakerOrder *SpotNftTakerOrder `protobuf:"bytes,21,opt,name=nftTakerOrder,proto3,oneof"`
}

type SpotQueryHistoryOrderList added in v1.67.4

type SpotQueryHistoryOrderList struct {

	//资产1
	LeftAsset uint64 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
	//资产2
	RightAsset uint64 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
	// 索引值
	PrimaryKey string `protobuf:"bytes,3,opt,name=primaryKey,proto3" json:"primaryKey,omitempty"`
	//单页返回多少条记录,默认返回10条,为了系统安全最多单次只能返回20条
	Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	// 0降序,1升序,默认降序
	Direction int32 `protobuf:"varint,5,opt,name=direction,proto3" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

查询最新得成交信息,外部接口

func (*SpotQueryHistoryOrderList) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotQueryHistoryOrderList.ProtoReflect.Descriptor instead.

func (*SpotQueryHistoryOrderList) GetCount added in v1.67.4

func (x *SpotQueryHistoryOrderList) GetCount() int32

func (*SpotQueryHistoryOrderList) GetDirection added in v1.67.4

func (x *SpotQueryHistoryOrderList) GetDirection() int32

func (*SpotQueryHistoryOrderList) GetLeftAsset added in v1.67.4

func (x *SpotQueryHistoryOrderList) GetLeftAsset() uint64

func (*SpotQueryHistoryOrderList) GetPrimaryKey added in v1.67.4

func (x *SpotQueryHistoryOrderList) GetPrimaryKey() string

func (*SpotQueryHistoryOrderList) GetRightAsset added in v1.67.4

func (x *SpotQueryHistoryOrderList) GetRightAsset() uint64

func (*SpotQueryHistoryOrderList) ProtoMessage added in v1.67.4

func (*SpotQueryHistoryOrderList) ProtoMessage()

func (*SpotQueryHistoryOrderList) ProtoReflect added in v1.67.4

func (*SpotQueryHistoryOrderList) Reset added in v1.67.4

func (x *SpotQueryHistoryOrderList) Reset()

func (*SpotQueryHistoryOrderList) String added in v1.67.4

func (x *SpotQueryHistoryOrderList) String() string

type SpotQueryMarketDepth added in v1.67.4

type SpotQueryMarketDepth struct {

	//资产1
	LeftAsset uint64 `protobuf:"varint,1,opt,name=leftAsset,proto3" json:"leftAsset,omitempty"`
	//资产2
	RightAsset uint64 `protobuf:"varint,2,opt,name=rightAsset,proto3" json:"rightAsset,omitempty"`
	//操作, 1为买,2为卖
	Op int32 `protobuf:"varint,3,opt,name=op,proto3" json:"op,omitempty"`
	// 这里用价格作为索引值
	PrimaryKey string `protobuf:"bytes,4,opt,name=primaryKey,proto3" json:"primaryKey,omitempty"`
	//单页返回多少条记录,默认返回10条,为了系统安全最多单次只能返回20条
	Count int32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

查询接口

func (*SpotQueryMarketDepth) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotQueryMarketDepth.ProtoReflect.Descriptor instead.

func (*SpotQueryMarketDepth) GetCount added in v1.67.4

func (x *SpotQueryMarketDepth) GetCount() int32

func (*SpotQueryMarketDepth) GetLeftAsset added in v1.67.4

func (x *SpotQueryMarketDepth) GetLeftAsset() uint64

func (*SpotQueryMarketDepth) GetOp added in v1.67.4

func (x *SpotQueryMarketDepth) GetOp() int32

func (*SpotQueryMarketDepth) GetPrimaryKey added in v1.67.4

func (x *SpotQueryMarketDepth) GetPrimaryKey() string

func (*SpotQueryMarketDepth) GetRightAsset added in v1.67.4

func (x *SpotQueryMarketDepth) GetRightAsset() uint64

func (*SpotQueryMarketDepth) ProtoMessage added in v1.67.4

func (*SpotQueryMarketDepth) ProtoMessage()

func (*SpotQueryMarketDepth) ProtoReflect added in v1.67.4

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

func (*SpotQueryMarketDepth) Reset added in v1.67.4

func (x *SpotQueryMarketDepth) Reset()

func (*SpotQueryMarketDepth) String added in v1.67.4

func (x *SpotQueryMarketDepth) String() string

type SpotQueryOrder added in v1.67.4

type SpotQueryOrder struct {
	OrderID int64 `protobuf:"varint,1,opt,name=orderID,proto3" json:"orderID,omitempty"`
	// contains filtered or unexported fields
}

根据orderID去查询订单信息

func (*SpotQueryOrder) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotQueryOrder.ProtoReflect.Descriptor instead.

func (*SpotQueryOrder) GetOrderID added in v1.67.4

func (x *SpotQueryOrder) GetOrderID() int64

func (*SpotQueryOrder) ProtoMessage added in v1.67.4

func (*SpotQueryOrder) ProtoMessage()

func (*SpotQueryOrder) ProtoReflect added in v1.67.4

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

func (*SpotQueryOrder) Reset added in v1.67.4

func (x *SpotQueryOrder) Reset()

func (*SpotQueryOrder) String added in v1.67.4

func (x *SpotQueryOrder) String() string

type SpotQueryOrderList added in v1.67.4

type SpotQueryOrderList struct {

	//挂单状态必填(默认是0,只查询ordered挂单中的)
	Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	//用户地址信息,必填
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// 主键索引
	PrimaryKey string `protobuf:"bytes,3,opt,name=primaryKey,proto3" json:"primaryKey,omitempty"`
	//单页返回多少条记录,默认返回10条,为了系统安全最多单次只能返回20条
	Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	// 0降序,1升序,默认降序
	Direction int32 `protobuf:"varint,5,opt,name=direction,proto3" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

根据地址,状态查询用户自己的挂单信息

func (*SpotQueryOrderList) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotQueryOrderList.ProtoReflect.Descriptor instead.

func (*SpotQueryOrderList) GetAddress added in v1.67.4

func (x *SpotQueryOrderList) GetAddress() string

func (*SpotQueryOrderList) GetCount added in v1.67.4

func (x *SpotQueryOrderList) GetCount() int32

func (*SpotQueryOrderList) GetDirection added in v1.67.4

func (x *SpotQueryOrderList) GetDirection() int32

func (*SpotQueryOrderList) GetPrimaryKey added in v1.67.4

func (x *SpotQueryOrderList) GetPrimaryKey() string

func (*SpotQueryOrderList) GetStatus added in v1.67.4

func (x *SpotQueryOrderList) GetStatus() int32

func (*SpotQueryOrderList) ProtoMessage added in v1.67.4

func (*SpotQueryOrderList) ProtoMessage()

func (*SpotQueryOrderList) ProtoReflect added in v1.67.4

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

func (*SpotQueryOrderList) Reset added in v1.67.4

func (x *SpotQueryOrderList) Reset()

func (*SpotQueryOrderList) String added in v1.67.4

func (x *SpotQueryOrderList) String() string

type SpotRevokeOrder added in v1.67.4

type SpotRevokeOrder struct {

	//订单号
	OrderID int64 `protobuf:"varint,1,opt,name=orderID,proto3" json:"orderID,omitempty"`
	// contains filtered or unexported fields
}

撤回订单

func (*SpotRevokeOrder) Descriptor deprecated added in v1.67.4

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

Deprecated: Use SpotRevokeOrder.ProtoReflect.Descriptor instead.

func (*SpotRevokeOrder) GetOrderID added in v1.67.4

func (x *SpotRevokeOrder) GetOrderID() int64

func (*SpotRevokeOrder) ProtoMessage added in v1.67.4

func (*SpotRevokeOrder) ProtoMessage()

func (*SpotRevokeOrder) ProtoReflect added in v1.67.4

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

func (*SpotRevokeOrder) Reset added in v1.67.4

func (x *SpotRevokeOrder) Reset()

func (*SpotRevokeOrder) String added in v1.67.4

func (x *SpotRevokeOrder) String() string

type SubTree

type SubTree struct {
	Height   int32  `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	RootHash []byte `protobuf:"bytes,2,opt,name=rootHash,proto3" json:"rootHash,omitempty"` //子树的根hash
	// contains filtered or unexported fields
}

func (*SubTree) Descriptor deprecated

func (*SubTree) 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 Trade added in v1.67.4

type Trade struct {
	Symbol       string
	PriceDigits  int32
	AmountDigits int32
	Taker        int32
	Maker        int32
	MinFee       int64
}

交易对配置

func (*Trade) GetAmountDigits added in v1.67.4

func (t *Trade) GetAmountDigits() int32

func (*Trade) GetMaker added in v1.67.4

func (t *Trade) GetMaker() int32

func (*Trade) GetMinFee added in v1.67.4

func (t *Trade) GetMinFee() int64

func (*Trade) GetPriceDigits added in v1.67.4

func (t *Trade) GetPriceDigits() int32

func (*Trade) GetTaker added in v1.67.4

func (t *Trade) GetTaker() int32

type TradeAccounts added in v1.67.4

type TradeAccounts struct {
	Taker *DexAccount `protobuf:"bytes,1,opt,name=taker,proto3" json:"taker,omitempty"`
	Maker *DexAccount `protobuf:"bytes,2,opt,name=maker,proto3" json:"maker,omitempty"`
	Fee   *DexAccount `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

func (*TradeAccounts) Descriptor deprecated added in v1.67.4

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

Deprecated: Use TradeAccounts.ProtoReflect.Descriptor instead.

func (*TradeAccounts) GetFee added in v1.67.4

func (x *TradeAccounts) GetFee() *DexAccount

func (*TradeAccounts) GetMaker added in v1.67.4

func (x *TradeAccounts) GetMaker() *DexAccount

func (*TradeAccounts) GetTaker added in v1.67.4

func (x *TradeAccounts) GetTaker() *DexAccount

func (*TradeAccounts) ProtoMessage added in v1.67.4

func (*TradeAccounts) ProtoMessage()

func (*TradeAccounts) ProtoReflect added in v1.67.4

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

func (*TradeAccounts) Reset added in v1.67.4

func (x *TradeAccounts) Reset()

func (*TradeAccounts) String added in v1.67.4

func (x *TradeAccounts) String() string

type TxInfo added in v1.67.4

type TxInfo struct {
	Index    int
	Hash     []byte
	From     string
	To       string
	ExecAddr string
	Tx       *types.Transaction
}

type UnimplementedZkspotServer added in v1.67.4

type UnimplementedZkspotServer struct {
}

UnimplementedZkspotServer can be embedded to have forward compatible implementations.

type UnimplementedZksyncServer

type UnimplementedZksyncServer struct {
}

UnimplementedZksyncServer can be embedded to have forward compatible implementations.

type ZkAccountTreeProof added in v1.67.4

type ZkAccountTreeProof struct {
	Account *HistoryLeaf     `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Proof   *MerkleTreeProof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkAccountTreeProof) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkAccountTreeProof.ProtoReflect.Descriptor instead.

func (*ZkAccountTreeProof) GetAccount added in v1.67.4

func (x *ZkAccountTreeProof) GetAccount() *HistoryLeaf

func (*ZkAccountTreeProof) GetProof added in v1.67.4

func (x *ZkAccountTreeProof) GetProof() *MerkleTreeProof

func (*ZkAccountTreeProof) ProtoMessage added in v1.67.4

func (*ZkAccountTreeProof) ProtoMessage()

func (*ZkAccountTreeProof) ProtoReflect added in v1.67.4

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

func (*ZkAccountTreeProof) Reset added in v1.67.4

func (x *ZkAccountTreeProof) Reset()

func (*ZkAccountTreeProof) String added in v1.67.4

func (x *ZkAccountTreeProof) String() string

type ZkAsset added in v1.67.4

type ZkAsset struct {
	Ty AssetType `protobuf:"varint,1,opt,name=ty,proto3,enum=types.AssetType" json:"ty,omitempty"`
	// Types that are assignable to Value:
	//	*ZkAsset_ZkAssetid
	//	*ZkAsset_TokenAsset
	//	*ZkAsset_EvmNftID
	Value isZkAsset_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*ZkAsset) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkAsset.ProtoReflect.Descriptor instead.

func (*ZkAsset) GetEvmNftID added in v1.67.4

func (x *ZkAsset) GetEvmNftID() uint64

func (*ZkAsset) GetTokenAsset added in v1.67.4

func (x *ZkAsset) GetTokenAsset() *AssetToken

func (*ZkAsset) GetTy added in v1.67.4

func (x *ZkAsset) GetTy() AssetType

func (*ZkAsset) GetValue added in v1.67.4

func (m *ZkAsset) GetValue() isZkAsset_Value

func (*ZkAsset) GetZkAssetid added in v1.67.4

func (x *ZkAsset) GetZkAssetid() uint64

func (*ZkAsset) ProtoMessage added in v1.67.4

func (*ZkAsset) ProtoMessage()

func (*ZkAsset) ProtoReflect added in v1.67.4

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

func (*ZkAsset) Reset added in v1.67.4

func (x *ZkAsset) Reset()

func (*ZkAsset) String added in v1.67.4

func (x *ZkAsset) String() string

type ZkAsset_EvmNftID added in v1.67.4

type ZkAsset_EvmNftID struct {
	// nft kind
	EvmNftID uint64 `protobuf:"varint,4,opt,name=evmNftID,proto3,oneof"`
}

type ZkAsset_TokenAsset added in v1.67.4

type ZkAsset_TokenAsset struct {
	// Token
	TokenAsset *AssetToken `protobuf:"bytes,3,opt,name=tokenAsset,proto3,oneof"`
}

type ZkAsset_ZkAssetid added in v1.67.4

type ZkAsset_ZkAssetid struct {
	// L1Erc20, zkNft
	ZkAssetid uint64 `protobuf:"varint,2,opt,name=zkAssetid,proto3,oneof"`
}

type ZkChainTitle added in v1.67.4

type ZkChainTitle struct {
	ChainTitleId uint64 `protobuf:"varint,1,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
	ChainTitle   string `protobuf:"bytes,2,opt,name=chainTitle,proto3" json:"chainTitle,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkChainTitle) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkChainTitle.ProtoReflect.Descriptor instead.

func (*ZkChainTitle) GetChainTitle added in v1.67.4

func (x *ZkChainTitle) GetChainTitle() string

func (*ZkChainTitle) GetChainTitleId added in v1.67.4

func (x *ZkChainTitle) GetChainTitleId() uint64

func (*ZkChainTitle) ProtoMessage added in v1.67.4

func (*ZkChainTitle) ProtoMessage()

func (*ZkChainTitle) ProtoReflect added in v1.67.4

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

func (*ZkChainTitle) Reset added in v1.67.4

func (x *ZkChainTitle) Reset()

func (*ZkChainTitle) String added in v1.67.4

func (x *ZkChainTitle) String() string

type ZkChainTitleList added in v1.67.4

type ZkChainTitleList struct {
	Chains []*ZkChainTitle `protobuf:"bytes,1,rep,name=chains,proto3" json:"chains,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkChainTitleList) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkChainTitleList.ProtoReflect.Descriptor instead.

func (*ZkChainTitleList) GetChains added in v1.67.4

func (x *ZkChainTitleList) GetChains() []*ZkChainTitle

func (*ZkChainTitleList) ProtoMessage added in v1.67.4

func (*ZkChainTitleList) ProtoMessage()

func (*ZkChainTitleList) ProtoReflect added in v1.67.4

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

func (*ZkChainTitleList) Reset added in v1.67.4

func (x *ZkChainTitleList) Reset()

func (*ZkChainTitleList) String added in v1.67.4

func (x *ZkChainTitleList) String() string

type ZkCommitProof

type ZkCommitProof struct {
	BlockStart  uint64 `protobuf:"varint,1,opt,name=blockStart,proto3" json:"blockStart,omitempty"`
	IndexStart  uint64 `protobuf:"varint,2,opt,name=indexStart,proto3" json:"indexStart,omitempty"`
	BlockEnd    uint64 `protobuf:"varint,3,opt,name=blockEnd,proto3" json:"blockEnd,omitempty"`
	IndexEnd    uint64 `protobuf:"varint,4,opt,name=indexEnd,proto3" json:"indexEnd,omitempty"`
	OpIndex     uint32 `protobuf:"varint,5,opt,name=opIndex,proto3" json:"opIndex,omitempty"`
	OldTreeRoot string `protobuf:"bytes,6,opt,name=oldTreeRoot,proto3" json:"oldTreeRoot,omitempty"`
	NewTreeRoot string `protobuf:"bytes,7,opt,name=newTreeRoot,proto3" json:"newTreeRoot,omitempty"`
	//proof serialized public input
	PublicInput string `protobuf:"bytes,8,opt,name=publicInput,proto3" json:"publicInput,omitempty"`
	Proof       string `protobuf:"bytes,9,opt,name=proof,proto3" json:"proof,omitempty"`
	//all tx pub datas
	PubDatas        []string `protobuf:"bytes,10,rep,name=pubDatas,proto3" json:"pubDatas,omitempty"`
	OnChainPubDatas []string `protobuf:"bytes,11,rep,name=onChainPubDatas,proto3" json:"onChainPubDatas,omitempty"`
	ProofId         uint64   `protobuf:"varint,12,opt,name=proofId,proto3" json:"proofId,omitempty"`
	//包含onChainPubdata的proof排序
	OnChainProofId uint64 `protobuf:"varint,13,opt,name=onChainProofId,proto3" json:"onChainProofId,omitempty"`
	//commit时候的blockHeight,localdb会填充
	CommitBlockHeight int64 `protobuf:"varint,14,opt,name=commitBlockHeight,proto3" json:"commitBlockHeight,omitempty"`
	//proof属于的链id和title, id唯一,和proof绑定,title可重复
	ChainTitleId uint64      `protobuf:"varint,15,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
	ChainTitle   string      `protobuf:"bytes,16,opt,name=chainTitle,proto3" json:"chainTitle,omitempty"`
	CfgFeeAddrs  *ZkFeeAddrs `protobuf:"bytes,17,opt,name=cfgFeeAddrs,proto3" json:"cfgFeeAddrs,omitempty"`
	// contains filtered or unexported fields
}

commit proof tx data

func (*ZkCommitProof) Descriptor deprecated

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

Deprecated: Use ZkCommitProof.ProtoReflect.Descriptor instead.

func (*ZkCommitProof) GetBlockEnd

func (x *ZkCommitProof) GetBlockEnd() uint64

func (*ZkCommitProof) GetBlockStart

func (x *ZkCommitProof) GetBlockStart() uint64

func (*ZkCommitProof) GetCfgFeeAddrs added in v1.67.4

func (x *ZkCommitProof) GetCfgFeeAddrs() *ZkFeeAddrs

func (*ZkCommitProof) GetChainTitle added in v1.67.4

func (x *ZkCommitProof) GetChainTitle() string

func (*ZkCommitProof) GetChainTitleId added in v1.67.4

func (x *ZkCommitProof) GetChainTitleId() uint64

func (*ZkCommitProof) GetCommitBlockHeight added in v1.67.4

func (x *ZkCommitProof) GetCommitBlockHeight() int64

func (*ZkCommitProof) GetIndexEnd

func (x *ZkCommitProof) GetIndexEnd() uint64

func (*ZkCommitProof) GetIndexStart

func (x *ZkCommitProof) GetIndexStart() uint64

func (*ZkCommitProof) GetNewTreeRoot

func (x *ZkCommitProof) GetNewTreeRoot() string

func (*ZkCommitProof) GetOldTreeRoot

func (x *ZkCommitProof) GetOldTreeRoot() string

func (*ZkCommitProof) GetOnChainProofId added in v1.67.4

func (x *ZkCommitProof) GetOnChainProofId() uint64

func (*ZkCommitProof) GetOnChainPubDatas added in v1.67.4

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

func (*ZkCommitProof) GetOpIndex

func (x *ZkCommitProof) GetOpIndex() uint32

func (*ZkCommitProof) GetProof

func (x *ZkCommitProof) GetProof() string

func (*ZkCommitProof) GetProofId

func (x *ZkCommitProof) GetProofId() uint64

func (*ZkCommitProof) GetPubDatas

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

func (*ZkCommitProof) GetPublicInput

func (x *ZkCommitProof) GetPublicInput() string

func (*ZkCommitProof) ProtoMessage

func (*ZkCommitProof) ProtoMessage()

func (*ZkCommitProof) ProtoReflect

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

func (*ZkCommitProof) Reset

func (x *ZkCommitProof) Reset()

func (*ZkCommitProof) String

func (x *ZkCommitProof) String() string

type ZkContractToTree

type ZkContractToTree struct {
	TokenSymbol  string       `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	Amount       string       `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	ToAccountId  uint64       `protobuf:"varint,3,opt,name=toAccountId,proto3" json:"toAccountId,omitempty"`
	ToEthAddr    string       `protobuf:"bytes,4,opt,name=toEthAddr,proto3" json:"toEthAddr,omitempty"`
	ToLayer2Addr string       `protobuf:"bytes,5,opt,name=toLayer2Addr,proto3" json:"toLayer2Addr,omitempty"`
	Signature    *ZkSignature `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
	FromExec     string       `protobuf:"bytes,7,opt,name=fromExec,proto3" json:"fromExec,omitempty"`
	// contains filtered or unexported fields
}

从chain33合约提款到二层

func (*ZkContractToTree) Descriptor deprecated

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

Deprecated: Use ZkContractToTree.ProtoReflect.Descriptor instead.

func (*ZkContractToTree) GetAmount

func (x *ZkContractToTree) GetAmount() string

func (*ZkContractToTree) GetFromExec added in v1.67.4

func (x *ZkContractToTree) GetFromExec() string

func (*ZkContractToTree) GetSignature

func (x *ZkContractToTree) GetSignature() *ZkSignature

func (*ZkContractToTree) GetToAccountId added in v1.67.4

func (x *ZkContractToTree) GetToAccountId() uint64

func (*ZkContractToTree) GetToEthAddr added in v1.67.4

func (x *ZkContractToTree) GetToEthAddr() string

func (*ZkContractToTree) GetToLayer2Addr added in v1.67.4

func (x *ZkContractToTree) GetToLayer2Addr() string

func (*ZkContractToTree) GetTokenSymbol added in v1.67.4

func (x *ZkContractToTree) GetTokenSymbol() string

func (*ZkContractToTree) ProtoMessage

func (*ZkContractToTree) ProtoMessage()

func (*ZkContractToTree) ProtoReflect

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

func (*ZkContractToTree) Reset

func (x *ZkContractToTree) Reset()

func (*ZkContractToTree) String

func (x *ZkContractToTree) String() string

type ZkContractToTreeNewWitnessInfo added in v1.67.4

type ZkContractToTreeNewWitnessInfo struct {
	TokenId uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount  string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	//  uint64 fromAcctId = 3;
	ToAccountId uint64       `protobuf:"varint,4,opt,name=toAccountId,proto3" json:"toAccountId,omitempty"`
	EthAddress  string       `protobuf:"bytes,5,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
	Layer2Addr  string       `protobuf:"bytes,6,opt,name=layer2Addr,proto3" json:"layer2Addr,omitempty"`
	Signature   *ZkSignature `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
	Fee         *ZkFee       `protobuf:"bytes,8,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

直接产生新的tree地址

func (*ZkContractToTreeNewWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkContractToTreeNewWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkContractToTreeNewWitnessInfo) GetAmount added in v1.67.4

func (x *ZkContractToTreeNewWitnessInfo) GetAmount() string

func (*ZkContractToTreeNewWitnessInfo) GetEthAddress added in v1.67.4

func (x *ZkContractToTreeNewWitnessInfo) GetEthAddress() string

func (*ZkContractToTreeNewWitnessInfo) GetFee added in v1.67.4

func (*ZkContractToTreeNewWitnessInfo) GetLayer2Addr added in v1.67.4

func (x *ZkContractToTreeNewWitnessInfo) GetLayer2Addr() string

func (*ZkContractToTreeNewWitnessInfo) GetSignature added in v1.67.4

func (x *ZkContractToTreeNewWitnessInfo) GetSignature() *ZkSignature

func (*ZkContractToTreeNewWitnessInfo) GetToAccountId added in v1.67.4

func (x *ZkContractToTreeNewWitnessInfo) GetToAccountId() uint64

func (*ZkContractToTreeNewWitnessInfo) GetTokenId added in v1.67.4

func (x *ZkContractToTreeNewWitnessInfo) GetTokenId() uint64

func (*ZkContractToTreeNewWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkContractToTreeNewWitnessInfo) ProtoMessage()

func (*ZkContractToTreeNewWitnessInfo) ProtoReflect added in v1.67.4

func (*ZkContractToTreeNewWitnessInfo) Reset added in v1.67.4

func (x *ZkContractToTreeNewWitnessInfo) Reset()

func (*ZkContractToTreeNewWitnessInfo) String added in v1.67.4

type ZkContractToTreeWitnessInfo added in v1.67.4

type ZkContractToTreeWitnessInfo struct {
	TokenId   uint64       `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount    string       `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	AccountId uint64       `protobuf:"varint,3,opt,name=accountId,proto3" json:"accountId,omitempty"`
	Signature *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	Fee       *ZkFee       `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkContractToTreeWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkContractToTreeWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkContractToTreeWitnessInfo) GetAccountId added in v1.67.4

func (x *ZkContractToTreeWitnessInfo) GetAccountId() uint64

func (*ZkContractToTreeWitnessInfo) GetAmount added in v1.67.4

func (x *ZkContractToTreeWitnessInfo) GetAmount() string

func (*ZkContractToTreeWitnessInfo) GetFee added in v1.67.4

func (x *ZkContractToTreeWitnessInfo) GetFee() *ZkFee

func (*ZkContractToTreeWitnessInfo) GetSignature added in v1.67.4

func (x *ZkContractToTreeWitnessInfo) GetSignature() *ZkSignature

func (*ZkContractToTreeWitnessInfo) GetTokenId added in v1.67.4

func (x *ZkContractToTreeWitnessInfo) GetTokenId() uint64

func (*ZkContractToTreeWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkContractToTreeWitnessInfo) ProtoMessage()

func (*ZkContractToTreeWitnessInfo) ProtoReflect added in v1.67.4

func (*ZkContractToTreeWitnessInfo) Reset added in v1.67.4

func (x *ZkContractToTreeWitnessInfo) Reset()

func (*ZkContractToTreeWitnessInfo) String added in v1.67.4

func (x *ZkContractToTreeWitnessInfo) String() string

type ZkDeposit

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

func (*ZkDeposit) Descriptor deprecated

func (*ZkDeposit) 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 ZkDepositWitnessInfo added in v1.67.4

type ZkDepositWitnessInfo struct {
	AccountId  uint64       `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
	TokenId    uint64       `protobuf:"varint,3,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount     string       `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	EthAddress string       `protobuf:"bytes,5,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
	Layer2Addr string       `protobuf:"bytes,6,opt,name=layer2Addr,proto3" json:"layer2Addr,omitempty"`
	Signature  *ZkSignature `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkDepositWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkDepositWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkDepositWitnessInfo) GetAccountId added in v1.67.4

func (x *ZkDepositWitnessInfo) GetAccountId() uint64

func (*ZkDepositWitnessInfo) GetAmount added in v1.67.4

func (x *ZkDepositWitnessInfo) GetAmount() string

func (*ZkDepositWitnessInfo) GetEthAddress added in v1.67.4

func (x *ZkDepositWitnessInfo) GetEthAddress() string

func (*ZkDepositWitnessInfo) GetLayer2Addr added in v1.67.4

func (x *ZkDepositWitnessInfo) GetLayer2Addr() string

func (*ZkDepositWitnessInfo) GetSignature added in v1.67.4

func (x *ZkDepositWitnessInfo) GetSignature() *ZkSignature

func (*ZkDepositWitnessInfo) GetTokenId added in v1.67.4

func (x *ZkDepositWitnessInfo) GetTokenId() uint64

func (*ZkDepositWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkDepositWitnessInfo) ProtoMessage()

func (*ZkDepositWitnessInfo) ProtoReflect added in v1.67.4

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

func (*ZkDepositWitnessInfo) Reset added in v1.67.4

func (x *ZkDepositWitnessInfo) Reset()

func (*ZkDepositWitnessInfo) String added in v1.67.4

func (x *ZkDepositWitnessInfo) String() string

type ZkExodusBatchProofReq added in v1.67.4

type ZkExodusBatchProofReq struct {
	StartAccountId uint64 `protobuf:"varint,1,opt,name=startAccountId,proto3" json:"startAccountId,omitempty"`
	EndAccountId   uint64 `protobuf:"varint,2,opt,name=endAccountId,proto3" json:"endAccountId,omitempty"`
	TokenId        uint64 `protobuf:"varint,3,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	RootHash       string `protobuf:"bytes,4,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
	ChainTitleId   uint64 `protobuf:"varint,5,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkExodusBatchProofReq) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkExodusBatchProofReq.ProtoReflect.Descriptor instead.

func (*ZkExodusBatchProofReq) GetChainTitleId added in v1.67.4

func (x *ZkExodusBatchProofReq) GetChainTitleId() uint64

func (*ZkExodusBatchProofReq) GetEndAccountId added in v1.67.4

func (x *ZkExodusBatchProofReq) GetEndAccountId() uint64

func (*ZkExodusBatchProofReq) GetRootHash added in v1.67.4

func (x *ZkExodusBatchProofReq) GetRootHash() string

func (*ZkExodusBatchProofReq) GetStartAccountId added in v1.67.4

func (x *ZkExodusBatchProofReq) GetStartAccountId() uint64

func (*ZkExodusBatchProofReq) GetTokenId added in v1.67.4

func (x *ZkExodusBatchProofReq) GetTokenId() uint64

func (*ZkExodusBatchProofReq) ProtoMessage added in v1.67.4

func (*ZkExodusBatchProofReq) ProtoMessage()

func (*ZkExodusBatchProofReq) ProtoReflect added in v1.67.4

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

func (*ZkExodusBatchProofReq) Reset added in v1.67.4

func (x *ZkExodusBatchProofReq) Reset()

func (*ZkExodusBatchProofReq) String added in v1.67.4

func (x *ZkExodusBatchProofReq) String() string

type ZkExodusMode added in v1.67.4

type ZkExodusMode struct {
	Mode uint32 `protobuf:"varint,1,opt,name=mode,proto3" json:"mode,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkExodusMode) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkExodusMode.ProtoReflect.Descriptor instead.

func (*ZkExodusMode) GetMode added in v1.67.4

func (x *ZkExodusMode) GetMode() uint32

func (*ZkExodusMode) ProtoMessage added in v1.67.4

func (*ZkExodusMode) ProtoMessage()

func (*ZkExodusMode) ProtoReflect added in v1.67.4

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

func (*ZkExodusMode) Reset added in v1.67.4

func (x *ZkExodusMode) Reset()

func (*ZkExodusMode) String added in v1.67.4

func (x *ZkExodusMode) String() string

type ZkFee added in v1.67.4

type ZkFee struct {
	FromFee string `protobuf:"bytes,1,opt,name=fromFee,proto3" json:"fromFee,omitempty"`
	ToFee   string `protobuf:"bytes,2,opt,name=toFee,proto3" json:"toFee,omitempty"`      //一般都从from账户收Fee,可能特殊需求也收To的Fee,比如swap可能需要
	TokenId uint64 `protobuf:"varint,3,opt,name=tokenId,proto3" json:"tokenId,omitempty"` //默认是操作的币种,如果不同,则在此设置,比如NFT的交换
	// contains filtered or unexported fields
}

func (*ZkFee) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkFee.ProtoReflect.Descriptor instead.

func (*ZkFee) GetFromFee added in v1.67.4

func (x *ZkFee) GetFromFee() string

func (*ZkFee) GetToFee added in v1.67.4

func (x *ZkFee) GetToFee() string

func (*ZkFee) GetTokenId added in v1.67.4

func (x *ZkFee) GetTokenId() uint64

func (*ZkFee) ProtoMessage added in v1.67.4

func (*ZkFee) ProtoMessage()

func (*ZkFee) ProtoReflect added in v1.67.4

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

func (*ZkFee) Reset added in v1.67.4

func (x *ZkFee) Reset()

func (*ZkFee) String added in v1.67.4

func (x *ZkFee) String() string

type ZkFeeAddrs added in v1.67.4

type ZkFeeAddrs struct {
	EthFeeAddr string `protobuf:"bytes,1,opt,name=ethFeeAddr,proto3" json:"ethFeeAddr,omitempty"`
	L2FeeAddr  string `protobuf:"bytes,2,opt,name=l2FeeAddr,proto3" json:"l2FeeAddr,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkFeeAddrs) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkFeeAddrs.ProtoReflect.Descriptor instead.

func (*ZkFeeAddrs) GetEthFeeAddr added in v1.67.4

func (x *ZkFeeAddrs) GetEthFeeAddr() string

func (*ZkFeeAddrs) GetL2FeeAddr added in v1.67.4

func (x *ZkFeeAddrs) GetL2FeeAddr() string

func (*ZkFeeAddrs) ProtoMessage added in v1.67.4

func (*ZkFeeAddrs) ProtoMessage()

func (*ZkFeeAddrs) ProtoReflect added in v1.67.4

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

func (*ZkFeeAddrs) Reset added in v1.67.4

func (x *ZkFeeAddrs) Reset()

func (*ZkFeeAddrs) String added in v1.67.4

func (x *ZkFeeAddrs) String() string

type ZkFeeWitnessInfo added in v1.67.4

type ZkFeeWitnessInfo struct {
	AccountId uint64       `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
	TokenId   uint64       `protobuf:"varint,2,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount    string       `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Signature *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkFeeWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkFeeWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkFeeWitnessInfo) GetAccountId added in v1.67.4

func (x *ZkFeeWitnessInfo) GetAccountId() uint64

func (*ZkFeeWitnessInfo) GetAmount added in v1.67.4

func (x *ZkFeeWitnessInfo) GetAmount() string

func (*ZkFeeWitnessInfo) GetSignature added in v1.67.4

func (x *ZkFeeWitnessInfo) GetSignature() *ZkSignature

func (*ZkFeeWitnessInfo) GetTokenId added in v1.67.4

func (x *ZkFeeWitnessInfo) GetTokenId() uint64

func (*ZkFeeWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkFeeWitnessInfo) ProtoMessage()

func (*ZkFeeWitnessInfo) ProtoReflect added in v1.67.4

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

func (*ZkFeeWitnessInfo) Reset added in v1.67.4

func (x *ZkFeeWitnessInfo) Reset()

func (*ZkFeeWitnessInfo) String added in v1.67.4

func (x *ZkFeeWitnessInfo) String() string

type ZkFetchProofList added in v1.67.4

type ZkFetchProofList struct {
	ProofId         uint64 `protobuf:"varint,1,opt,name=proofId,proto3" json:"proofId,omitempty"`
	OnChainProofId  uint64 `protobuf:"varint,2,opt,name=onChainProofId,proto3" json:"onChainProofId,omitempty"`
	ReqOnChainProof bool   `protobuf:"varint,3,opt,name=reqOnChainProof,proto3" json:"reqOnChainProof,omitempty"` //
	ReqLatestProof  bool   `protobuf:"varint,4,opt,name=reqLatestProof,proto3" json:"reqLatestProof,omitempty"`   //请求截止高度之前的最新的proof,适用于获取最新proof场景
	EndHeight       uint64 `protobuf:"varint,5,opt,name=endHeight,proto3" json:"endHeight,omitempty"`             //截止高度
	ChainTitleId    uint64 `protobuf:"varint,6,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
	// contains filtered or unexported fields
}

query committed proof info

func (*ZkFetchProofList) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkFetchProofList.ProtoReflect.Descriptor instead.

func (*ZkFetchProofList) GetChainTitleId added in v1.67.4

func (x *ZkFetchProofList) GetChainTitleId() uint64

func (*ZkFetchProofList) GetEndHeight added in v1.67.4

func (x *ZkFetchProofList) GetEndHeight() uint64

func (*ZkFetchProofList) GetOnChainProofId added in v1.67.4

func (x *ZkFetchProofList) GetOnChainProofId() uint64

func (*ZkFetchProofList) GetProofId added in v1.67.4

func (x *ZkFetchProofList) GetProofId() uint64

func (*ZkFetchProofList) GetReqLatestProof added in v1.67.4

func (x *ZkFetchProofList) GetReqLatestProof() bool

func (*ZkFetchProofList) GetReqOnChainProof added in v1.67.4

func (x *ZkFetchProofList) GetReqOnChainProof() bool

func (*ZkFetchProofList) ProtoMessage added in v1.67.4

func (*ZkFetchProofList) ProtoMessage()

func (*ZkFetchProofList) ProtoReflect added in v1.67.4

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

func (*ZkFetchProofList) Reset added in v1.67.4

func (x *ZkFetchProofList) Reset()

func (*ZkFetchProofList) String added in v1.67.4

func (x *ZkFetchProofList) String() string

type ZkFullExit

type ZkFullExit struct {
	TokenId            uint64       `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	AccountId          uint64       `protobuf:"varint,2,opt,name=accountId,proto3" json:"accountId,omitempty"`
	EthPriorityQueueId int64        `protobuf:"varint,3,opt,name=ethPriorityQueueId,proto3" json:"ethPriorityQueueId,omitempty"`
	Signature          *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkFullExit) Descriptor deprecated

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

Deprecated: Use ZkFullExit.ProtoReflect.Descriptor instead.

func (*ZkFullExit) GetAccountId

func (x *ZkFullExit) GetAccountId() uint64

func (*ZkFullExit) GetEthPriorityQueueId

func (x *ZkFullExit) GetEthPriorityQueueId() int64

func (*ZkFullExit) GetSignature

func (x *ZkFullExit) GetSignature() *ZkSignature

func (*ZkFullExit) GetTokenId

func (x *ZkFullExit) GetTokenId() uint64

func (*ZkFullExit) ProtoMessage

func (*ZkFullExit) ProtoMessage()

func (*ZkFullExit) ProtoReflect

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

func (*ZkFullExit) Reset

func (x *ZkFullExit) Reset()

func (*ZkFullExit) String

func (x *ZkFullExit) String() string

type ZkFullExitWitnessInfo added in v1.67.4

type ZkFullExitWitnessInfo struct {
	AccountId  uint64       `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
	TokenId    uint64       `protobuf:"varint,2,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount     string       `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	EthAddress string       `protobuf:"bytes,4,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
	Signature  *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	Fee        *ZkFee       `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkFullExitWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkFullExitWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkFullExitWitnessInfo) GetAccountId added in v1.67.4

func (x *ZkFullExitWitnessInfo) GetAccountId() uint64

func (*ZkFullExitWitnessInfo) GetAmount added in v1.67.4

func (x *ZkFullExitWitnessInfo) GetAmount() string

func (*ZkFullExitWitnessInfo) GetEthAddress added in v1.67.4

func (x *ZkFullExitWitnessInfo) GetEthAddress() string

func (*ZkFullExitWitnessInfo) GetFee added in v1.67.4

func (x *ZkFullExitWitnessInfo) GetFee() *ZkFee

func (*ZkFullExitWitnessInfo) GetSignature added in v1.67.4

func (x *ZkFullExitWitnessInfo) GetSignature() *ZkSignature

func (*ZkFullExitWitnessInfo) GetTokenId added in v1.67.4

func (x *ZkFullExitWitnessInfo) GetTokenId() uint64

func (*ZkFullExitWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkFullExitWitnessInfo) ProtoMessage()

func (*ZkFullExitWitnessInfo) ProtoReflect added in v1.67.4

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

func (*ZkFullExitWitnessInfo) Reset added in v1.67.4

func (x *ZkFullExitWitnessInfo) Reset()

func (*ZkFullExitWitnessInfo) String added in v1.67.4

func (x *ZkFullExitWitnessInfo) String() string

type ZkMintNFT added in v1.67.4

type ZkMintNFT struct {
	FromAccountId uint64       `protobuf:"varint,1,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
	RecipientId   uint64       `protobuf:"varint,2,opt,name=recipientId,proto3" json:"recipientId,omitempty"`
	ContentHash   string       `protobuf:"bytes,3,opt,name=contentHash,proto3" json:"contentHash,omitempty"`
	ErcProtocol   uint64       `protobuf:"varint,4,opt,name=ercProtocol,proto3" json:"ercProtocol,omitempty"`
	Amount        uint64       `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"`
	Signature     *ZkSignature `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkMintNFT) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkMintNFT.ProtoReflect.Descriptor instead.

func (*ZkMintNFT) GetAmount added in v1.67.4

func (x *ZkMintNFT) GetAmount() uint64

func (*ZkMintNFT) GetContentHash added in v1.67.4

func (x *ZkMintNFT) GetContentHash() string

func (*ZkMintNFT) GetErcProtocol added in v1.67.4

func (x *ZkMintNFT) GetErcProtocol() uint64

func (*ZkMintNFT) GetFromAccountId added in v1.67.4

func (x *ZkMintNFT) GetFromAccountId() uint64

func (*ZkMintNFT) GetRecipientId added in v1.67.4

func (x *ZkMintNFT) GetRecipientId() uint64

func (*ZkMintNFT) GetSignature added in v1.67.4

func (x *ZkMintNFT) GetSignature() *ZkSignature

func (*ZkMintNFT) ProtoMessage added in v1.67.4

func (*ZkMintNFT) ProtoMessage()

func (*ZkMintNFT) ProtoReflect added in v1.67.4

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

func (*ZkMintNFT) Reset added in v1.67.4

func (x *ZkMintNFT) Reset()

func (*ZkMintNFT) String added in v1.67.4

func (x *ZkMintNFT) String() string

type ZkMintNFTWitnessInfo added in v1.67.4

type ZkMintNFTWitnessInfo struct {
	MintAcctId     uint64       `protobuf:"varint,1,opt,name=mintAcctId,proto3" json:"mintAcctId,omitempty"`
	RecipientId    uint64       `protobuf:"varint,2,opt,name=recipientId,proto3" json:"recipientId,omitempty"`
	ErcProtocol    uint64       `protobuf:"varint,3,opt,name=ercProtocol,proto3" json:"ercProtocol,omitempty"`
	ContentHash    []string     `protobuf:"bytes,4,rep,name=contentHash,proto3" json:"contentHash,omitempty"`
	NewNFTTokenID  uint64       `protobuf:"varint,5,opt,name=newNFTTokenID,proto3" json:"newNFTTokenID,omitempty"`
	CreateSerialId uint64       `protobuf:"varint,6,opt,name=createSerialId,proto3" json:"createSerialId,omitempty"`
	Amount         string       `protobuf:"bytes,7,opt,name=amount,proto3" json:"amount,omitempty"`
	Signature      *ZkSignature `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
	Fee            *ZkFee       `protobuf:"bytes,9,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkMintNFTWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkMintNFTWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkMintNFTWitnessInfo) GetAmount added in v1.67.4

func (x *ZkMintNFTWitnessInfo) GetAmount() string

func (*ZkMintNFTWitnessInfo) GetContentHash added in v1.67.4

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

func (*ZkMintNFTWitnessInfo) GetCreateSerialId added in v1.67.4

func (x *ZkMintNFTWitnessInfo) GetCreateSerialId() uint64

func (*ZkMintNFTWitnessInfo) GetErcProtocol added in v1.67.4

func (x *ZkMintNFTWitnessInfo) GetErcProtocol() uint64

func (*ZkMintNFTWitnessInfo) GetFee added in v1.67.4

func (x *ZkMintNFTWitnessInfo) GetFee() *ZkFee

func (*ZkMintNFTWitnessInfo) GetMintAcctId added in v1.67.4

func (x *ZkMintNFTWitnessInfo) GetMintAcctId() uint64

func (*ZkMintNFTWitnessInfo) GetNewNFTTokenID added in v1.67.4

func (x *ZkMintNFTWitnessInfo) GetNewNFTTokenID() uint64

func (*ZkMintNFTWitnessInfo) GetRecipientId added in v1.67.4

func (x *ZkMintNFTWitnessInfo) GetRecipientId() uint64

func (*ZkMintNFTWitnessInfo) GetSignature added in v1.67.4

func (x *ZkMintNFTWitnessInfo) GetSignature() *ZkSignature

func (*ZkMintNFTWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkMintNFTWitnessInfo) ProtoMessage()

func (*ZkMintNFTWitnessInfo) ProtoReflect added in v1.67.4

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

func (*ZkMintNFTWitnessInfo) Reset added in v1.67.4

func (x *ZkMintNFTWitnessInfo) Reset()

func (*ZkMintNFTWitnessInfo) String added in v1.67.4

func (x *ZkMintNFTWitnessInfo) String() string

type ZkMsg

type ZkMsg struct {
	First  string `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"`
	Second string `protobuf:"bytes,2,opt,name=second,proto3" json:"second,omitempty"`
	Third  string `protobuf:"bytes,3,opt,name=third,proto3" json:"third,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkMsg) Descriptor deprecated

func (*ZkMsg) 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 added in v1.67.4

type ZkNFTTokenStatus struct {
	Id              uint64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	CreatorId       uint64 `protobuf:"varint,2,opt,name=creatorId,proto3" json:"creatorId,omitempty"`
	CreatorEthAddr  string `protobuf:"bytes,3,opt,name=creatorEthAddr,proto3" json:"creatorEthAddr,omitempty"`
	CreatorSerialId uint64 `protobuf:"varint,4,opt,name=creatorSerialId,proto3" json:"creatorSerialId,omitempty"`
	ErcProtocol     uint64 `protobuf:"varint,5,opt,name=ercProtocol,proto3" json:"ercProtocol,omitempty"`
	MintAmount      uint64 `protobuf:"varint,6,opt,name=mintAmount,proto3" json:"mintAmount,omitempty"`
	ContentHash     string `protobuf:"bytes,7,opt,name=contentHash,proto3" json:"contentHash,omitempty"`
	BurnedAmount    uint64 `protobuf:"varint,8,opt,name=burnedAmount,proto3" json:"burnedAmount,omitempty"` //是否提取到了L1
	// contains filtered or unexported fields
}

func (*ZkNFTTokenStatus) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkNFTTokenStatus.ProtoReflect.Descriptor instead.

func (*ZkNFTTokenStatus) GetBurnedAmount added in v1.67.4

func (x *ZkNFTTokenStatus) GetBurnedAmount() uint64

func (*ZkNFTTokenStatus) GetContentHash added in v1.67.4

func (x *ZkNFTTokenStatus) GetContentHash() string

func (*ZkNFTTokenStatus) GetCreatorEthAddr added in v1.67.4

func (x *ZkNFTTokenStatus) GetCreatorEthAddr() string

func (*ZkNFTTokenStatus) GetCreatorId added in v1.67.4

func (x *ZkNFTTokenStatus) GetCreatorId() uint64

func (*ZkNFTTokenStatus) GetCreatorSerialId added in v1.67.4

func (x *ZkNFTTokenStatus) GetCreatorSerialId() uint64

func (*ZkNFTTokenStatus) GetErcProtocol added in v1.67.4

func (x *ZkNFTTokenStatus) GetErcProtocol() uint64

func (*ZkNFTTokenStatus) GetId added in v1.67.4

func (x *ZkNFTTokenStatus) GetId() uint64

func (*ZkNFTTokenStatus) GetMintAmount added in v1.67.4

func (x *ZkNFTTokenStatus) GetMintAmount() uint64

func (*ZkNFTTokenStatus) ProtoMessage added in v1.67.4

func (*ZkNFTTokenStatus) ProtoMessage()

func (*ZkNFTTokenStatus) ProtoReflect added in v1.67.4

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

func (*ZkNFTTokenStatus) Reset added in v1.67.4

func (x *ZkNFTTokenStatus) Reset()

func (*ZkNFTTokenStatus) String added in v1.67.4

func (x *ZkNFTTokenStatus) String() string

type ZkOperation

type ZkOperation struct {
	Ty int32                 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	Op *OperationSpecialInfo `protobuf:"bytes,2,opt,name=op,proto3" json:"op,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkOperation) Descriptor deprecated

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

Deprecated: Use ZkOperation.ProtoReflect.Descriptor instead.

func (*ZkOperation) GetOp added in v1.67.4

func (x *ZkOperation) GetOp() *OperationSpecialInfo

func (*ZkOperation) GetTy

func (x *ZkOperation) GetTy() int32

func (*ZkOperation) ProtoMessage

func (*ZkOperation) ProtoMessage()

func (*ZkOperation) ProtoReflect

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

func (*ZkOperation) Reset

func (x *ZkOperation) Reset()

func (*ZkOperation) String

func (x *ZkOperation) String() string

type ZkOrder added in v1.67.4

type ZkOrder struct {
	AccountID  uint64 `protobuf:"varint,1,opt,name=accountID,proto3" json:"accountID,omitempty"`
	EthAddress string `protobuf:"bytes,2,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
	//uint64 nonce = 3;
	TokenSell uint64 `protobuf:"varint,4,opt,name=tokenSell,proto3" json:"tokenSell,omitempty"`
	TokenBuy  uint64 `protobuf:"varint,5,opt,name=tokenBuy,proto3" json:"tokenBuy,omitempty"`
	Amount    string `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"`
	Ratio1    string `protobuf:"bytes,7,opt,name=ratio1,proto3" json:"ratio1,omitempty"`
	Ratio2    string `protobuf:"bytes,8,opt,name=ratio2,proto3" json:"ratio2,omitempty"`
	//uint64 validFrom = 9;
	//uint64 validUntil = 10;
	SellAssetType AssetType    `protobuf:"varint,11,opt,name=sellAssetType,proto3,enum=types.AssetType" json:"sellAssetType,omitempty"`
	BuyAssetType  AssetType    `protobuf:"varint,12,opt,name=buyAssetType,proto3,enum=types.AssetType" json:"buyAssetType,omitempty"`
	Signature     *ZkSignature `protobuf:"bytes,20,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkOrder) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkOrder.ProtoReflect.Descriptor instead.

func (*ZkOrder) GetAccountID added in v1.67.4

func (x *ZkOrder) GetAccountID() uint64

func (*ZkOrder) GetAmount added in v1.67.4

func (x *ZkOrder) GetAmount() string

func (*ZkOrder) GetBuyAssetType added in v1.67.4

func (x *ZkOrder) GetBuyAssetType() AssetType

func (*ZkOrder) GetEthAddress added in v1.67.4

func (x *ZkOrder) GetEthAddress() string

func (*ZkOrder) GetRatio1 added in v1.67.4

func (x *ZkOrder) GetRatio1() string

func (*ZkOrder) GetRatio2 added in v1.67.4

func (x *ZkOrder) GetRatio2() string

func (*ZkOrder) GetSellAssetType added in v1.67.4

func (x *ZkOrder) GetSellAssetType() AssetType

func (*ZkOrder) GetSignature added in v1.67.4

func (x *ZkOrder) GetSignature() *ZkSignature

func (*ZkOrder) GetTokenBuy added in v1.67.4

func (x *ZkOrder) GetTokenBuy() uint64

func (*ZkOrder) GetTokenSell added in v1.67.4

func (x *ZkOrder) GetTokenSell() uint64

func (*ZkOrder) ProtoMessage added in v1.67.4

func (*ZkOrder) ProtoMessage()

func (*ZkOrder) ProtoReflect added in v1.67.4

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

func (*ZkOrder) Reset added in v1.67.4

func (x *ZkOrder) Reset()

func (*ZkOrder) String added in v1.67.4

func (x *ZkOrder) String() string

type ZkProofWitness added in v1.67.4

type ZkProofWitness struct {
	AccountWitness *AccountWitness `protobuf:"bytes,1,opt,name=accountWitness,proto3" json:"accountWitness,omitempty"`
	TokenWitness   *TokenWitness   `protobuf:"bytes,2,opt,name=tokenWitness,proto3" json:"tokenWitness,omitempty"`
	TreeRoot       string          `protobuf:"bytes,3,opt,name=treeRoot,proto3" json:"treeRoot,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkProofWitness) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkProofWitness.ProtoReflect.Descriptor instead.

func (*ZkProofWitness) GetAccountWitness added in v1.67.4

func (x *ZkProofWitness) GetAccountWitness() *AccountWitness

func (*ZkProofWitness) GetTokenWitness added in v1.67.4

func (x *ZkProofWitness) GetTokenWitness() *TokenWitness

func (*ZkProofWitness) GetTreeRoot added in v1.67.4

func (x *ZkProofWitness) GetTreeRoot() string

func (*ZkProofWitness) ProtoMessage added in v1.67.4

func (*ZkProofWitness) ProtoMessage()

func (*ZkProofWitness) ProtoReflect added in v1.67.4

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

func (*ZkProofWitness) Reset added in v1.67.4

func (x *ZkProofWitness) Reset()

func (*ZkProofWitness) String added in v1.67.4

func (x *ZkProofWitness) String() string

type ZkProxyExit added in v1.67.4

type ZkProxyExit struct {
	TokenId   uint64       `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	ProxyId   uint64       `protobuf:"varint,2,opt,name=proxyId,proto3" json:"proxyId,omitempty"`   //代理id,扣手续费
	TargetId  uint64       `protobuf:"varint,3,opt,name=targetId,proto3" json:"targetId,omitempty"` //目标id
	Signature *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkProxyExit) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkProxyExit.ProtoReflect.Descriptor instead.

func (*ZkProxyExit) GetProxyId added in v1.67.4

func (x *ZkProxyExit) GetProxyId() uint64

func (*ZkProxyExit) GetSignature added in v1.67.4

func (x *ZkProxyExit) GetSignature() *ZkSignature

func (*ZkProxyExit) GetTargetId added in v1.67.4

func (x *ZkProxyExit) GetTargetId() uint64

func (*ZkProxyExit) GetTokenId added in v1.67.4

func (x *ZkProxyExit) GetTokenId() uint64

func (*ZkProxyExit) ProtoMessage added in v1.67.4

func (*ZkProxyExit) ProtoMessage()

func (*ZkProxyExit) ProtoReflect added in v1.67.4

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

func (*ZkProxyExit) Reset added in v1.67.4

func (x *ZkProxyExit) Reset()

func (*ZkProxyExit) String added in v1.67.4

func (x *ZkProxyExit) String() string

type ZkProxyExitWitnessInfo added in v1.67.4

type ZkProxyExitWitnessInfo struct {
	ProxyID    uint64       `protobuf:"varint,1,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
	TargetId   uint64       `protobuf:"varint,2,opt,name=targetId,proto3" json:"targetId,omitempty"`
	TokenId    uint64       `protobuf:"varint,3,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount     string       `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	Signature  *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	Fee        *ZkFee       `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"`
	EthAddress string       `protobuf:"bytes,7,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkProxyExitWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkProxyExitWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkProxyExitWitnessInfo) GetAmount added in v1.67.4

func (x *ZkProxyExitWitnessInfo) GetAmount() string

func (*ZkProxyExitWitnessInfo) GetEthAddress added in v1.67.4

func (x *ZkProxyExitWitnessInfo) GetEthAddress() string

func (*ZkProxyExitWitnessInfo) GetFee added in v1.67.4

func (x *ZkProxyExitWitnessInfo) GetFee() *ZkFee

func (*ZkProxyExitWitnessInfo) GetProxyID added in v1.67.4

func (x *ZkProxyExitWitnessInfo) GetProxyID() uint64

func (*ZkProxyExitWitnessInfo) GetSignature added in v1.67.4

func (x *ZkProxyExitWitnessInfo) GetSignature() *ZkSignature

func (*ZkProxyExitWitnessInfo) GetTargetId added in v1.67.4

func (x *ZkProxyExitWitnessInfo) GetTargetId() uint64

func (*ZkProxyExitWitnessInfo) GetTokenId added in v1.67.4

func (x *ZkProxyExitWitnessInfo) GetTokenId() uint64

func (*ZkProxyExitWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkProxyExitWitnessInfo) ProtoMessage()

func (*ZkProxyExitWitnessInfo) ProtoReflect added in v1.67.4

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

func (*ZkProxyExitWitnessInfo) Reset added in v1.67.4

func (x *ZkProxyExitWitnessInfo) Reset()

func (*ZkProxyExitWitnessInfo) String added in v1.67.4

func (x *ZkProxyExitWitnessInfo) String() string

type ZkPubKey

type ZkPubKey struct {
	X string `protobuf:"bytes,1,opt,name=x,proto3" json:"x,omitempty"`
	Y string `protobuf:"bytes,2,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkPubKey) Descriptor deprecated

func (*ZkPubKey) 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 ZkQueryProofStatusResp added in v1.67.4

type ZkQueryProofStatusResp struct {
	ProofId                uint64            `protobuf:"varint,1,opt,name=proofId,proto3" json:"proofId,omitempty"`
	TxHash                 string            `protobuf:"bytes,2,opt,name=txHash,proto3" json:"txHash,omitempty"`
	CommitProofState       *CommitProofState `protobuf:"bytes,3,opt,name=commitProofState,proto3" json:"commitProofState,omitempty"`
	LatestCommitProofState *CommitProofState `protobuf:"bytes,4,opt,name=LatestCommitProofState,proto3" json:"LatestCommitProofState,omitempty"`
	MaxRecordId            int64             `protobuf:"varint,5,opt,name=maxRecordId,proto3" json:"maxRecordId,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkQueryProofStatusResp) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkQueryProofStatusResp.ProtoReflect.Descriptor instead.

func (*ZkQueryProofStatusResp) GetCommitProofState added in v1.67.4

func (x *ZkQueryProofStatusResp) GetCommitProofState() *CommitProofState

func (*ZkQueryProofStatusResp) GetLatestCommitProofState added in v1.67.4

func (x *ZkQueryProofStatusResp) GetLatestCommitProofState() *CommitProofState

func (*ZkQueryProofStatusResp) GetMaxRecordId added in v1.67.4

func (x *ZkQueryProofStatusResp) GetMaxRecordId() int64

func (*ZkQueryProofStatusResp) GetProofId added in v1.67.4

func (x *ZkQueryProofStatusResp) GetProofId() uint64

func (*ZkQueryProofStatusResp) GetTxHash added in v1.67.4

func (x *ZkQueryProofStatusResp) GetTxHash() string

func (*ZkQueryProofStatusResp) ProtoMessage added in v1.67.4

func (*ZkQueryProofStatusResp) ProtoMessage()

func (*ZkQueryProofStatusResp) ProtoReflect added in v1.67.4

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

func (*ZkQueryProofStatusResp) Reset added in v1.67.4

func (x *ZkQueryProofStatusResp) Reset()

func (*ZkQueryProofStatusResp) String added in v1.67.4

func (x *ZkQueryProofStatusResp) String() string

type ZkQueryReq

type ZkQueryReq struct {
	AccountId         uint64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
	BlockHeight       uint64 `protobuf:"varint,2,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
	TxIndex           uint32 `protobuf:"varint,3,opt,name=txIndex,proto3" json:"txIndex,omitempty"`
	EthAddress        string `protobuf:"bytes,4,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
	Chain33Addr       string `protobuf:"bytes,5,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"`
	TokenSymbol       string `protobuf:"bytes,6,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	Chain33WalletAddr string `protobuf:"bytes,7,opt,name=chain33WalletAddr,proto3" json:"chain33WalletAddr,omitempty"`
	TokenId           uint64 `protobuf:"varint,8,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	TxHash            string `protobuf:"bytes,9,opt,name=txHash,proto3" json:"txHash,omitempty"`
	ProofId           uint64 `protobuf:"varint,10,opt,name=proofId,proto3" json:"proofId,omitempty"`
	ChainTitleId      uint64 `protobuf:"varint,11,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
	OpType            uint32 `protobuf:"varint,12,opt,name=opType,proto3" json:"opType,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkQueryReq) Descriptor deprecated

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

Deprecated: Use ZkQueryReq.ProtoReflect.Descriptor instead.

func (*ZkQueryReq) GetAccountId

func (x *ZkQueryReq) GetAccountId() uint64

func (*ZkQueryReq) GetBlockHeight

func (x *ZkQueryReq) GetBlockHeight() uint64

func (*ZkQueryReq) GetChain33Addr

func (x *ZkQueryReq) GetChain33Addr() string

func (*ZkQueryReq) GetChain33WalletAddr

func (x *ZkQueryReq) GetChain33WalletAddr() string

func (*ZkQueryReq) GetChainTitleId added in v1.67.4

func (x *ZkQueryReq) GetChainTitleId() uint64

func (*ZkQueryReq) GetEthAddress

func (x *ZkQueryReq) GetEthAddress() string

func (*ZkQueryReq) GetOpType added in v1.67.4

func (x *ZkQueryReq) GetOpType() uint32

func (*ZkQueryReq) GetProofId

func (x *ZkQueryReq) GetProofId() uint64

func (*ZkQueryReq) GetTokenId

func (x *ZkQueryReq) GetTokenId() uint64

func (*ZkQueryReq) GetTokenSymbol

func (x *ZkQueryReq) GetTokenSymbol() string

func (*ZkQueryReq) GetTxHash

func (x *ZkQueryReq) GetTxHash() string

func (*ZkQueryReq) GetTxIndex

func (x *ZkQueryReq) GetTxIndex() uint32

func (*ZkQueryReq) ProtoMessage

func (*ZkQueryReq) ProtoMessage()

func (*ZkQueryReq) ProtoReflect

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

func (*ZkQueryReq) Reset

func (x *ZkQueryReq) Reset()

func (*ZkQueryReq) String

func (x *ZkQueryReq) String() string

type ZkQueryResp

type ZkQueryResp struct {
	OperationInfos []*OperationInfo `protobuf:"bytes,1,rep,name=operationInfos,proto3" json:"operationInfos,omitempty"`
	Leaves         []*Leaf          `protobuf:"bytes,2,rep,name=leaves,proto3" json:"leaves,omitempty"`
	TokenBalances  []*TokenBalance  `protobuf:"bytes,3,rep,name=tokenBalances,proto3" json:"tokenBalances,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkQueryResp) Descriptor deprecated

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

Deprecated: Use ZkQueryResp.ProtoReflect.Descriptor instead.

func (*ZkQueryResp) GetLeaves

func (x *ZkQueryResp) GetLeaves() []*Leaf

func (*ZkQueryResp) GetOperationInfos

func (x *ZkQueryResp) GetOperationInfos() []*OperationInfo

func (*ZkQueryResp) GetTokenBalances

func (x *ZkQueryResp) GetTokenBalances() []*TokenBalance

func (*ZkQueryResp) ProtoMessage

func (*ZkQueryResp) ProtoMessage()

func (*ZkQueryResp) ProtoReflect

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

func (*ZkQueryResp) Reset

func (x *ZkQueryResp) Reset()

func (*ZkQueryResp) String

func (x *ZkQueryResp) String() string

type ZkQueryTxOperationReq added in v1.67.4

type ZkQueryTxOperationReq struct {
	StartBlockHeight uint64 `protobuf:"varint,1,opt,name=startBlockHeight,proto3" json:"startBlockHeight,omitempty"` //起始高度
	StartIndex       uint64 `protobuf:"varint,2,opt,name=startIndex,proto3" json:"startIndex,omitempty"`             //块中交易的序号
	OpIndex          uint32 `protobuf:"varint,3,opt,name=opIndex,proto3" json:"opIndex,omitempty"`                   //交易操作快照片序号:目前是0,1。
	Count            uint32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`                       //获取交易操作数量:默认值是:100000 = types.MaxTxsPerBlock
	BlockOffset      uint32 `protobuf:"varint,5,opt,name=blockOffset,proto3" json:"blockOffset,omitempty"`           //高度偏移:以块高度为偏移单位,计算错误时,最多是固定块的交易证明错误。块中的交易不变,proof数量不变,即proofID也不变。
	Maturity         uint32 `protobuf:"varint,6,opt,name=maturity,proto3" json:"maturity,omitempty"`                 //成熟度:最新高度-成熟度 = endBlockHeigh
	// contains filtered or unexported fields
}

func (*ZkQueryTxOperationReq) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkQueryTxOperationReq.ProtoReflect.Descriptor instead.

func (*ZkQueryTxOperationReq) GetBlockOffset added in v1.67.4

func (x *ZkQueryTxOperationReq) GetBlockOffset() uint32

func (*ZkQueryTxOperationReq) GetCount added in v1.67.4

func (x *ZkQueryTxOperationReq) GetCount() uint32

func (*ZkQueryTxOperationReq) GetMaturity added in v1.67.4

func (x *ZkQueryTxOperationReq) GetMaturity() uint32

func (*ZkQueryTxOperationReq) GetOpIndex added in v1.67.4

func (x *ZkQueryTxOperationReq) GetOpIndex() uint32

func (*ZkQueryTxOperationReq) GetStartBlockHeight added in v1.67.4

func (x *ZkQueryTxOperationReq) GetStartBlockHeight() uint64

func (*ZkQueryTxOperationReq) GetStartIndex added in v1.67.4

func (x *ZkQueryTxOperationReq) GetStartIndex() uint64

func (*ZkQueryTxOperationReq) ProtoMessage added in v1.67.4

func (*ZkQueryTxOperationReq) ProtoMessage()

func (*ZkQueryTxOperationReq) ProtoReflect added in v1.67.4

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

func (*ZkQueryTxOperationReq) Reset added in v1.67.4

func (x *ZkQueryTxOperationReq) Reset()

func (*ZkQueryTxOperationReq) String added in v1.67.4

func (x *ZkQueryTxOperationReq) String() string

type ZkReceiptLeaf

type ZkReceiptLeaf struct {
	Leaf       *Leaf            `protobuf:"bytes,1,opt,name=leaf,proto3" json:"leaf,omitempty"`
	Token      *TokenBalance    `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	TreeProof  *MerkleTreeProof `protobuf:"bytes,3,opt,name=treeProof,proto3" json:"treeProof,omitempty"`
	TokenProof *MerkleTreeProof `protobuf:"bytes,4,opt,name=tokenProof,proto3" json:"tokenProof,omitempty"`
	// contains filtered or unexported fields
}

leaf merkle proof票据日志

func (*ZkReceiptLeaf) Descriptor deprecated

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

Deprecated: Use ZkReceiptLeaf.ProtoReflect.Descriptor instead.

func (*ZkReceiptLeaf) GetLeaf

func (x *ZkReceiptLeaf) GetLeaf() *Leaf

func (*ZkReceiptLeaf) GetToken

func (x *ZkReceiptLeaf) GetToken() *TokenBalance

func (*ZkReceiptLeaf) GetTokenProof

func (x *ZkReceiptLeaf) GetTokenProof() *MerkleTreeProof

func (*ZkReceiptLeaf) GetTreeProof

func (x *ZkReceiptLeaf) GetTreeProof() *MerkleTreeProof

func (*ZkReceiptLeaf) ProtoMessage

func (*ZkReceiptLeaf) ProtoMessage()

func (*ZkReceiptLeaf) ProtoReflect

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

func (*ZkReceiptLeaf) Reset

func (x *ZkReceiptLeaf) Reset()

func (*ZkReceiptLeaf) String

func (x *ZkReceiptLeaf) String() string

type ZkReceiptLog

type ZkReceiptLog struct {
	OperationInfo *OperationInfo    `protobuf:"bytes,1,opt,name=operationInfo,proto3" json:"operationInfo,omitempty"`
	LocalKvs      []*types.KeyValue `protobuf:"bytes,2,rep,name=localKvs,proto3" json:"localKvs,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkReceiptLog) Descriptor deprecated

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

Deprecated: Use ZkReceiptLog.ProtoReflect.Descriptor instead.

func (*ZkReceiptLog) GetLocalKvs

func (x *ZkReceiptLog) GetLocalKvs() []*types.KeyValue

func (*ZkReceiptLog) GetOperationInfo

func (x *ZkReceiptLog) GetOperationInfo() *OperationInfo

func (*ZkReceiptLog) ProtoMessage

func (*ZkReceiptLog) ProtoMessage()

func (*ZkReceiptLog) ProtoReflect

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

func (*ZkReceiptLog) Reset

func (x *ZkReceiptLog) Reset()

func (*ZkReceiptLog) String

func (x *ZkReceiptLog) String() string

type ZkReqExistenceProof added in v1.67.4

type ZkReqExistenceProof struct {
	AccountId    uint64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
	TokenId      uint64 `protobuf:"varint,2,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	RootHash     string `protobuf:"bytes,3,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
	ChainTitleId uint64 `protobuf:"varint,4,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkReqExistenceProof) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkReqExistenceProof.ProtoReflect.Descriptor instead.

func (*ZkReqExistenceProof) GetAccountId added in v1.67.4

func (x *ZkReqExistenceProof) GetAccountId() uint64

func (*ZkReqExistenceProof) GetChainTitleId added in v1.67.4

func (x *ZkReqExistenceProof) GetChainTitleId() uint64

func (*ZkReqExistenceProof) GetRootHash added in v1.67.4

func (x *ZkReqExistenceProof) GetRootHash() string

func (*ZkReqExistenceProof) GetTokenId added in v1.67.4

func (x *ZkReqExistenceProof) GetTokenId() uint64

func (*ZkReqExistenceProof) ProtoMessage added in v1.67.4

func (*ZkReqExistenceProof) ProtoMessage()

func (*ZkReqExistenceProof) ProtoReflect added in v1.67.4

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

func (*ZkReqExistenceProof) Reset added in v1.67.4

func (x *ZkReqExistenceProof) Reset()

func (*ZkReqExistenceProof) String added in v1.67.4

func (x *ZkReqExistenceProof) String() string

type ZkSetFee

type ZkSetFee struct {
	TokenId  uint64 `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount   string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	ActionTy int32  `protobuf:"varint,3,opt,name=actionTy,proto3" json:"actionTy,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkSetFee) Descriptor deprecated

func (*ZkSetFee) 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 added in v1.67.4

func (x *ZkSetPubKey) GetPubKeyTy() uint64

func (*ZkSetPubKey) GetSignature

func (x *ZkSetPubKey) GetSignature() *ZkSignature

func (*ZkSetPubKey) ProtoMessage

func (*ZkSetPubKey) ProtoMessage()

func (*ZkSetPubKey) ProtoReflect

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

func (*ZkSetPubKey) Reset

func (x *ZkSetPubKey) Reset()

func (*ZkSetPubKey) String

func (x *ZkSetPubKey) String() string

type ZkSetPubKeyWitnessInfo added in v1.67.4

type ZkSetPubKeyWitnessInfo struct {
	AccountId uint64       `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
	PubKey    *ZkPubKey    `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
	PubKeyTy  uint64       `protobuf:"varint,3,opt,name=pubKeyTy,proto3" json:"pubKeyTy,omitempty"`
	Signature *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkSetPubKeyWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkSetPubKeyWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkSetPubKeyWitnessInfo) GetAccountId added in v1.67.4

func (x *ZkSetPubKeyWitnessInfo) GetAccountId() uint64

func (*ZkSetPubKeyWitnessInfo) GetPubKey added in v1.67.4

func (x *ZkSetPubKeyWitnessInfo) GetPubKey() *ZkPubKey

func (*ZkSetPubKeyWitnessInfo) GetPubKeyTy added in v1.67.4

func (x *ZkSetPubKeyWitnessInfo) GetPubKeyTy() uint64

func (*ZkSetPubKeyWitnessInfo) GetSignature added in v1.67.4

func (x *ZkSetPubKeyWitnessInfo) GetSignature() *ZkSignature

func (*ZkSetPubKeyWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkSetPubKeyWitnessInfo) ProtoMessage()

func (*ZkSetPubKeyWitnessInfo) ProtoReflect added in v1.67.4

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

func (*ZkSetPubKeyWitnessInfo) Reset added in v1.67.4

func (x *ZkSetPubKeyWitnessInfo) Reset()

func (*ZkSetPubKeyWitnessInfo) String added in v1.67.4

func (x *ZkSetPubKeyWitnessInfo) String() string

type ZkSignature

type ZkSignature struct {
	PubKey   *ZkPubKey `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
	SignInfo string    `protobuf:"bytes,2,opt,name=signInfo,proto3" json:"signInfo,omitempty"`
	Msg      *ZkMsg    `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkSignature) Descriptor deprecated

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

Deprecated: Use ZkSignature.ProtoReflect.Descriptor instead.

func (*ZkSignature) GetMsg

func (x *ZkSignature) GetMsg() *ZkMsg

func (*ZkSignature) GetPubKey

func (x *ZkSignature) GetPubKey() *ZkPubKey

func (*ZkSignature) GetSignInfo

func (x *ZkSignature) GetSignInfo() string

func (*ZkSignature) ProtoMessage

func (*ZkSignature) ProtoMessage()

func (*ZkSignature) ProtoReflect

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

func (*ZkSignature) Reset

func (x *ZkSignature) Reset()

func (*ZkSignature) String

func (x *ZkSignature) String() string

type ZkSwap

type ZkSwap struct {
	Signature *ZkSignature `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkSwap) Descriptor deprecated

func (*ZkSwap) 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 added in v1.67.4

type ZkSwapOrderInfo struct {
	AccountId uint64       `protobuf:"varint,1,opt,name=AccountId,proto3" json:"AccountId,omitempty"`
	Amount    string       `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	RatioSell string       `protobuf:"bytes,3,opt,name=ratioSell,proto3" json:"ratioSell,omitempty"`
	RatioBuy  string       `protobuf:"bytes,4,opt,name=ratioBuy,proto3" json:"ratioBuy,omitempty"`
	Signature *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkSwapOrderInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkSwapOrderInfo.ProtoReflect.Descriptor instead.

func (*ZkSwapOrderInfo) GetAccountId added in v1.67.4

func (x *ZkSwapOrderInfo) GetAccountId() uint64

func (*ZkSwapOrderInfo) GetAmount added in v1.67.4

func (x *ZkSwapOrderInfo) GetAmount() string

func (*ZkSwapOrderInfo) GetRatioBuy added in v1.67.4

func (x *ZkSwapOrderInfo) GetRatioBuy() string

func (*ZkSwapOrderInfo) GetRatioSell added in v1.67.4

func (x *ZkSwapOrderInfo) GetRatioSell() string

func (*ZkSwapOrderInfo) GetSignature added in v1.67.4

func (x *ZkSwapOrderInfo) GetSignature() *ZkSignature

func (*ZkSwapOrderInfo) ProtoMessage added in v1.67.4

func (*ZkSwapOrderInfo) ProtoMessage()

func (*ZkSwapOrderInfo) ProtoReflect added in v1.67.4

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

func (*ZkSwapOrderInfo) Reset added in v1.67.4

func (x *ZkSwapOrderInfo) Reset()

func (*ZkSwapOrderInfo) String added in v1.67.4

func (x *ZkSwapOrderInfo) String() string

type ZkSwapWitnessInfo added in v1.67.4

type ZkSwapWitnessInfo struct {
	LeftTokenId     uint64           `protobuf:"varint,1,opt,name=leftTokenId,proto3" json:"leftTokenId,omitempty"` //BTY-USDT 对
	RightTokenID    uint64           `protobuf:"varint,2,opt,name=rightTokenID,proto3" json:"rightTokenID,omitempty"`
	LeftDealAmount  string           `protobuf:"bytes,3,opt,name=leftDealAmount,proto3" json:"leftDealAmount,omitempty"`
	RightDealAmount string           `protobuf:"bytes,4,opt,name=rightDealAmount,proto3" json:"rightDealAmount,omitempty"`
	Left            *ZkSwapOrderInfo `protobuf:"bytes,5,opt,name=left,proto3" json:"left,omitempty"`
	Right           *ZkSwapOrderInfo `protobuf:"bytes,6,opt,name=right,proto3" json:"right,omitempty"`
	Fee             *ZkFee           `protobuf:"bytes,10,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkSwapWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkSwapWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkSwapWitnessInfo) GetFee added in v1.67.4

func (x *ZkSwapWitnessInfo) GetFee() *ZkFee

func (*ZkSwapWitnessInfo) GetLeft added in v1.67.4

func (x *ZkSwapWitnessInfo) GetLeft() *ZkSwapOrderInfo

func (*ZkSwapWitnessInfo) GetLeftDealAmount added in v1.67.4

func (x *ZkSwapWitnessInfo) GetLeftDealAmount() string

func (*ZkSwapWitnessInfo) GetLeftTokenId added in v1.67.4

func (x *ZkSwapWitnessInfo) GetLeftTokenId() uint64

func (*ZkSwapWitnessInfo) GetRight added in v1.67.4

func (x *ZkSwapWitnessInfo) GetRight() *ZkSwapOrderInfo

func (*ZkSwapWitnessInfo) GetRightDealAmount added in v1.67.4

func (x *ZkSwapWitnessInfo) GetRightDealAmount() string

func (*ZkSwapWitnessInfo) GetRightTokenID added in v1.67.4

func (x *ZkSwapWitnessInfo) GetRightTokenID() uint64

func (*ZkSwapWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkSwapWitnessInfo) ProtoMessage()

func (*ZkSwapWitnessInfo) ProtoReflect added in v1.67.4

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

func (*ZkSwapWitnessInfo) Reset added in v1.67.4

func (x *ZkSwapWitnessInfo) Reset()

func (*ZkSwapWitnessInfo) String added in v1.67.4

func (x *ZkSwapWitnessInfo) String() string

type ZkTokenSymbol added in v1.67.4

type ZkTokenSymbol struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Symbol  string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Decimal uint32 `protobuf:"varint,3,opt,name=decimal,proto3" json:"decimal,omitempty"` //精度
	// contains filtered or unexported fields
}

func (*ZkTokenSymbol) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkTokenSymbol.ProtoReflect.Descriptor instead.

func (*ZkTokenSymbol) GetDecimal added in v1.67.4

func (x *ZkTokenSymbol) GetDecimal() uint32

func (*ZkTokenSymbol) GetId added in v1.67.4

func (x *ZkTokenSymbol) GetId() string

func (*ZkTokenSymbol) GetSymbol added in v1.67.4

func (x *ZkTokenSymbol) GetSymbol() string

func (*ZkTokenSymbol) ProtoMessage added in v1.67.4

func (*ZkTokenSymbol) ProtoMessage()

func (*ZkTokenSymbol) ProtoReflect added in v1.67.4

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

func (*ZkTokenSymbol) Reset added in v1.67.4

func (x *ZkTokenSymbol) Reset()

func (*ZkTokenSymbol) String added in v1.67.4

func (x *ZkTokenSymbol) String() string

type ZkTokenTreeProof added in v1.67.4

type ZkTokenTreeProof struct {
	Token *TokenBalance    `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Proof *MerkleTreeProof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkTokenTreeProof) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkTokenTreeProof.ProtoReflect.Descriptor instead.

func (*ZkTokenTreeProof) GetProof added in v1.67.4

func (x *ZkTokenTreeProof) GetProof() *MerkleTreeProof

func (*ZkTokenTreeProof) GetToken added in v1.67.4

func (x *ZkTokenTreeProof) GetToken() *TokenBalance

func (*ZkTokenTreeProof) ProtoMessage added in v1.67.4

func (*ZkTokenTreeProof) ProtoMessage()

func (*ZkTokenTreeProof) ProtoReflect added in v1.67.4

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

func (*ZkTokenTreeProof) Reset added in v1.67.4

func (x *ZkTokenTreeProof) Reset()

func (*ZkTokenTreeProof) String added in v1.67.4

func (x *ZkTokenTreeProof) String() string

type ZkTransfer

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

func (*ZkTransfer) Descriptor deprecated

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

Deprecated: Use ZkTransfer.ProtoReflect.Descriptor instead.

func (*ZkTransfer) GetAmount

func (x *ZkTransfer) GetAmount() string

func (*ZkTransfer) GetFromAccountId

func (x *ZkTransfer) GetFromAccountId() uint64

func (*ZkTransfer) GetSignature

func (x *ZkTransfer) GetSignature() *ZkSignature

func (*ZkTransfer) GetToAccountId

func (x *ZkTransfer) GetToAccountId() uint64

func (*ZkTransfer) GetTokenId

func (x *ZkTransfer) GetTokenId() uint64

func (*ZkTransfer) ProtoMessage

func (*ZkTransfer) ProtoMessage()

func (*ZkTransfer) ProtoReflect

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

func (*ZkTransfer) Reset

func (x *ZkTransfer) Reset()

func (*ZkTransfer) String

func (x *ZkTransfer) String() string

type ZkTransferNFT added in v1.67.4

type ZkTransferNFT struct {
	FromAccountId uint64       `protobuf:"varint,1,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
	RecipientId   uint64       `protobuf:"varint,2,opt,name=recipientId,proto3" json:"recipientId,omitempty"`
	NFTTokenId    uint64       `protobuf:"varint,3,opt,name=NFTTokenId,proto3" json:"NFTTokenId,omitempty"`
	Amount        uint64       `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	Signature     *ZkSignature `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkTransferNFT) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkTransferNFT.ProtoReflect.Descriptor instead.

func (*ZkTransferNFT) GetAmount added in v1.67.4

func (x *ZkTransferNFT) GetAmount() uint64

func (*ZkTransferNFT) GetFromAccountId added in v1.67.4

func (x *ZkTransferNFT) GetFromAccountId() uint64

func (*ZkTransferNFT) GetNFTTokenId added in v1.67.4

func (x *ZkTransferNFT) GetNFTTokenId() uint64

func (*ZkTransferNFT) GetRecipientId added in v1.67.4

func (x *ZkTransferNFT) GetRecipientId() uint64

func (*ZkTransferNFT) GetSignature added in v1.67.4

func (x *ZkTransferNFT) GetSignature() *ZkSignature

func (*ZkTransferNFT) ProtoMessage added in v1.67.4

func (*ZkTransferNFT) ProtoMessage()

func (*ZkTransferNFT) ProtoReflect added in v1.67.4

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

func (*ZkTransferNFT) Reset added in v1.67.4

func (x *ZkTransferNFT) Reset()

func (*ZkTransferNFT) String added in v1.67.4

func (x *ZkTransferNFT) String() string

type ZkTransferNFTWitnessInfo added in v1.67.4

type ZkTransferNFTWitnessInfo struct {
	FromAccountId uint64       `protobuf:"varint,1,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
	RecipientId   uint64       `protobuf:"varint,2,opt,name=recipientId,proto3" json:"recipientId,omitempty"`
	NFTTokenId    uint64       `protobuf:"varint,3,opt,name=NFTTokenId,proto3" json:"NFTTokenId,omitempty"`
	Amount        string       `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	Signature     *ZkSignature `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
	Fee           *ZkFee       `protobuf:"bytes,7,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkTransferNFTWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkTransferNFTWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkTransferNFTWitnessInfo) GetAmount added in v1.67.4

func (x *ZkTransferNFTWitnessInfo) GetAmount() string

func (*ZkTransferNFTWitnessInfo) GetFee added in v1.67.4

func (x *ZkTransferNFTWitnessInfo) GetFee() *ZkFee

func (*ZkTransferNFTWitnessInfo) GetFromAccountId added in v1.67.4

func (x *ZkTransferNFTWitnessInfo) GetFromAccountId() uint64

func (*ZkTransferNFTWitnessInfo) GetNFTTokenId added in v1.67.4

func (x *ZkTransferNFTWitnessInfo) GetNFTTokenId() uint64

func (*ZkTransferNFTWitnessInfo) GetRecipientId added in v1.67.4

func (x *ZkTransferNFTWitnessInfo) GetRecipientId() uint64

func (*ZkTransferNFTWitnessInfo) GetSignature added in v1.67.4

func (x *ZkTransferNFTWitnessInfo) GetSignature() *ZkSignature

func (*ZkTransferNFTWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkTransferNFTWitnessInfo) ProtoMessage()

func (*ZkTransferNFTWitnessInfo) ProtoReflect added in v1.67.4

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

func (*ZkTransferNFTWitnessInfo) Reset added in v1.67.4

func (x *ZkTransferNFTWitnessInfo) Reset()

func (*ZkTransferNFTWitnessInfo) String added in v1.67.4

func (x *ZkTransferNFTWitnessInfo) String() string

type ZkTransferToNew

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

func (*ZkTransferToNew) Descriptor deprecated

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

Deprecated: Use ZkTransferToNew.ProtoReflect.Descriptor instead.

func (*ZkTransferToNew) GetAmount

func (x *ZkTransferToNew) GetAmount() string

func (*ZkTransferToNew) GetFromAccountId

func (x *ZkTransferToNew) GetFromAccountId() uint64

func (*ZkTransferToNew) GetSignature

func (x *ZkTransferToNew) GetSignature() *ZkSignature

func (*ZkTransferToNew) GetToChain33Address

func (x *ZkTransferToNew) GetToChain33Address() string

func (*ZkTransferToNew) GetToEthAddress

func (x *ZkTransferToNew) GetToEthAddress() string

func (*ZkTransferToNew) GetTokenId

func (x *ZkTransferToNew) GetTokenId() uint64

func (*ZkTransferToNew) ProtoMessage

func (*ZkTransferToNew) ProtoMessage()

func (*ZkTransferToNew) ProtoReflect

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

func (*ZkTransferToNew) Reset

func (x *ZkTransferToNew) Reset()

func (*ZkTransferToNew) String

func (x *ZkTransferToNew) String() string

type ZkTransferToNewWitnessInfo added in v1.67.4

type ZkTransferToNewWitnessInfo struct {
	TokenId       uint64       `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount        string       `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	FromAccountId uint64       `protobuf:"varint,3,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
	ToAccountId   uint64       `protobuf:"varint,4,opt,name=toAccountId,proto3" json:"toAccountId,omitempty"`
	EthAddress    string       `protobuf:"bytes,5,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
	Layer2Addr    string       `protobuf:"bytes,6,opt,name=layer2Addr,proto3" json:"layer2Addr,omitempty"`
	Signature     *ZkSignature `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
	Fee           *ZkFee       `protobuf:"bytes,8,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkTransferToNewWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkTransferToNewWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkTransferToNewWitnessInfo) GetAmount added in v1.67.4

func (x *ZkTransferToNewWitnessInfo) GetAmount() string

func (*ZkTransferToNewWitnessInfo) GetEthAddress added in v1.67.4

func (x *ZkTransferToNewWitnessInfo) GetEthAddress() string

func (*ZkTransferToNewWitnessInfo) GetFee added in v1.67.4

func (x *ZkTransferToNewWitnessInfo) GetFee() *ZkFee

func (*ZkTransferToNewWitnessInfo) GetFromAccountId added in v1.67.4

func (x *ZkTransferToNewWitnessInfo) GetFromAccountId() uint64

func (*ZkTransferToNewWitnessInfo) GetLayer2Addr added in v1.67.4

func (x *ZkTransferToNewWitnessInfo) GetLayer2Addr() string

func (*ZkTransferToNewWitnessInfo) GetSignature added in v1.67.4

func (x *ZkTransferToNewWitnessInfo) GetSignature() *ZkSignature

func (*ZkTransferToNewWitnessInfo) GetToAccountId added in v1.67.4

func (x *ZkTransferToNewWitnessInfo) GetToAccountId() uint64

func (*ZkTransferToNewWitnessInfo) GetTokenId added in v1.67.4

func (x *ZkTransferToNewWitnessInfo) GetTokenId() uint64

func (*ZkTransferToNewWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkTransferToNewWitnessInfo) ProtoMessage()

func (*ZkTransferToNewWitnessInfo) ProtoReflect added in v1.67.4

func (*ZkTransferToNewWitnessInfo) Reset added in v1.67.4

func (x *ZkTransferToNewWitnessInfo) Reset()

func (*ZkTransferToNewWitnessInfo) String added in v1.67.4

func (x *ZkTransferToNewWitnessInfo) String() string

type ZkTransferWitnessInfo added in v1.67.4

type ZkTransferWitnessInfo struct {
	TokenId       uint64       `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount        string       `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	FromAccountId uint64       `protobuf:"varint,3,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
	ToAccountId   uint64       `protobuf:"varint,4,opt,name=toAccountId,proto3" json:"toAccountId,omitempty"`
	Signature     *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	Fee           *ZkFee       `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkTransferWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkTransferWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkTransferWitnessInfo) GetAmount added in v1.67.4

func (x *ZkTransferWitnessInfo) GetAmount() string

func (*ZkTransferWitnessInfo) GetFee added in v1.67.4

func (x *ZkTransferWitnessInfo) GetFee() *ZkFee

func (*ZkTransferWitnessInfo) GetFromAccountId added in v1.67.4

func (x *ZkTransferWitnessInfo) GetFromAccountId() uint64

func (*ZkTransferWitnessInfo) GetSignature added in v1.67.4

func (x *ZkTransferWitnessInfo) GetSignature() *ZkSignature

func (*ZkTransferWitnessInfo) GetToAccountId added in v1.67.4

func (x *ZkTransferWitnessInfo) GetToAccountId() uint64

func (*ZkTransferWitnessInfo) GetTokenId added in v1.67.4

func (x *ZkTransferWitnessInfo) GetTokenId() uint64

func (*ZkTransferWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkTransferWitnessInfo) ProtoMessage()

func (*ZkTransferWitnessInfo) ProtoReflect added in v1.67.4

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

func (*ZkTransferWitnessInfo) Reset added in v1.67.4

func (x *ZkTransferWitnessInfo) Reset()

func (*ZkTransferWitnessInfo) String added in v1.67.4

func (x *ZkTransferWitnessInfo) String() string

type ZkTreeToContract

type ZkTreeToContract struct {
	TokenId   uint64       `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount    string       `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	AccountId uint64       `protobuf:"varint,3,opt,name=accountId,proto3" json:"accountId,omitempty"`
	ToAcctId  uint64       `protobuf:"varint,4,opt,name=toAcctId,proto3" json:"toAcctId,omitempty"` //缺省的systemTree2ContractId, 这里设置是为了签名需要和电路验证,也防止重放
	Signature *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	ToExec    string       `protobuf:"bytes,6,opt,name=toExec,proto3" json:"toExec,omitempty"`
	// contains filtered or unexported fields
}

从二层铸造到chain33合约

func (*ZkTreeToContract) Descriptor deprecated

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

Deprecated: Use ZkTreeToContract.ProtoReflect.Descriptor instead.

func (*ZkTreeToContract) GetAccountId

func (x *ZkTreeToContract) GetAccountId() uint64

func (*ZkTreeToContract) GetAmount

func (x *ZkTreeToContract) GetAmount() string

func (*ZkTreeToContract) GetSignature

func (x *ZkTreeToContract) GetSignature() *ZkSignature

func (*ZkTreeToContract) GetToAcctId added in v1.67.4

func (x *ZkTreeToContract) GetToAcctId() uint64

func (*ZkTreeToContract) GetToExec added in v1.67.4

func (x *ZkTreeToContract) GetToExec() string

func (*ZkTreeToContract) GetTokenId

func (x *ZkTreeToContract) GetTokenId() uint64

func (*ZkTreeToContract) ProtoMessage

func (*ZkTreeToContract) ProtoMessage()

func (*ZkTreeToContract) ProtoReflect

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

func (*ZkTreeToContract) Reset

func (x *ZkTreeToContract) Reset()

func (*ZkTreeToContract) String

func (x *ZkTreeToContract) String() string

type ZkTreeToContractWitnessInfo added in v1.67.4

type ZkTreeToContractWitnessInfo struct {
	TokenId   uint64       `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount    string       `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	AccountId uint64       `protobuf:"varint,3,opt,name=accountId,proto3" json:"accountId,omitempty"`
	Signature *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	Fee       *ZkFee       `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkTreeToContractWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkTreeToContractWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkTreeToContractWitnessInfo) GetAccountId added in v1.67.4

func (x *ZkTreeToContractWitnessInfo) GetAccountId() uint64

func (*ZkTreeToContractWitnessInfo) GetAmount added in v1.67.4

func (x *ZkTreeToContractWitnessInfo) GetAmount() string

func (*ZkTreeToContractWitnessInfo) GetFee added in v1.67.4

func (x *ZkTreeToContractWitnessInfo) GetFee() *ZkFee

func (*ZkTreeToContractWitnessInfo) GetSignature added in v1.67.4

func (x *ZkTreeToContractWitnessInfo) GetSignature() *ZkSignature

func (*ZkTreeToContractWitnessInfo) GetTokenId added in v1.67.4

func (x *ZkTreeToContractWitnessInfo) GetTokenId() uint64

func (*ZkTreeToContractWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkTreeToContractWitnessInfo) ProtoMessage()

func (*ZkTreeToContractWitnessInfo) ProtoReflect added in v1.67.4

func (*ZkTreeToContractWitnessInfo) Reset added in v1.67.4

func (x *ZkTreeToContractWitnessInfo) Reset()

func (*ZkTreeToContractWitnessInfo) String added in v1.67.4

func (x *ZkTreeToContractWitnessInfo) String() string

type ZkTxProofResp added in v1.67.4

type ZkTxProofResp struct {
	BlockHeight  uint64 `protobuf:"varint,1,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
	TxIndex      uint32 `protobuf:"varint,2,opt,name=txIndex,proto3" json:"txIndex,omitempty"`
	OpIndex      uint32 `protobuf:"varint,3,opt,name=opIndex,proto3" json:"opIndex,omitempty"`
	TxType       uint32 `protobuf:"varint,4,opt,name=txType,proto3" json:"txType,omitempty"`
	TxHash       string `protobuf:"bytes,5,opt,name=txHash,proto3" json:"txHash,omitempty"`
	ProofId      uint64 `protobuf:"varint,6,opt,name=proofId,proto3" json:"proofId,omitempty"`
	ProofNewRoot string `protobuf:"bytes,7,opt,name=proofNewRoot,proto3" json:"proofNewRoot,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkTxProofResp) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkTxProofResp.ProtoReflect.Descriptor instead.

func (*ZkTxProofResp) GetBlockHeight added in v1.67.4

func (x *ZkTxProofResp) GetBlockHeight() uint64

func (*ZkTxProofResp) GetOpIndex added in v1.67.4

func (x *ZkTxProofResp) GetOpIndex() uint32

func (*ZkTxProofResp) GetProofId added in v1.67.4

func (x *ZkTxProofResp) GetProofId() uint64

func (*ZkTxProofResp) GetProofNewRoot added in v1.67.4

func (x *ZkTxProofResp) GetProofNewRoot() string

func (*ZkTxProofResp) GetTxHash added in v1.67.4

func (x *ZkTxProofResp) GetTxHash() string

func (*ZkTxProofResp) GetTxIndex added in v1.67.4

func (x *ZkTxProofResp) GetTxIndex() uint32

func (*ZkTxProofResp) GetTxType added in v1.67.4

func (x *ZkTxProofResp) GetTxType() uint32

func (*ZkTxProofResp) ProtoMessage added in v1.67.4

func (*ZkTxProofResp) ProtoMessage()

func (*ZkTxProofResp) ProtoReflect added in v1.67.4

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

func (*ZkTxProofResp) Reset added in v1.67.4

func (x *ZkTxProofResp) Reset()

func (*ZkTxProofResp) String added in v1.67.4

func (x *ZkTxProofResp) String() string

type ZkVerifier

type ZkVerifier struct {
	ChainTitleId uint64   `protobuf:"varint,1,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
	Verifiers    []string `protobuf:"bytes,2,rep,name=verifiers,proto3" json:"verifiers,omitempty"`
	// contains filtered or unexported fields
}

电路验证者名单

func (*ZkVerifier) Descriptor deprecated

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

Deprecated: Use ZkVerifier.ProtoReflect.Descriptor instead.

func (*ZkVerifier) GetChainTitleId added in v1.67.4

func (x *ZkVerifier) GetChainTitleId() uint64

func (*ZkVerifier) GetVerifiers

func (x *ZkVerifier) GetVerifiers() []string

func (*ZkVerifier) ProtoMessage

func (*ZkVerifier) ProtoMessage()

func (*ZkVerifier) ProtoReflect

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

func (*ZkVerifier) Reset

func (x *ZkVerifier) Reset()

func (*ZkVerifier) String

func (x *ZkVerifier) String() string

type ZkVerifyKey

type ZkVerifyKey struct {
	ChainTitleId uint64 `protobuf:"varint,1,opt,name=chainTitleId,proto3" json:"chainTitleId,omitempty"`
	Key          string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

电路验证key

func (*ZkVerifyKey) Descriptor deprecated

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

Deprecated: Use ZkVerifyKey.ProtoReflect.Descriptor instead.

func (*ZkVerifyKey) GetChainTitleId added in v1.67.4

func (x *ZkVerifyKey) GetChainTitleId() uint64

func (*ZkVerifyKey) GetKey

func (x *ZkVerifyKey) GetKey() string

func (*ZkVerifyKey) ProtoMessage

func (*ZkVerifyKey) ProtoMessage()

func (*ZkVerifyKey) ProtoReflect

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

func (*ZkVerifyKey) Reset

func (x *ZkVerifyKey) Reset()

func (*ZkVerifyKey) String

func (x *ZkVerifyKey) String() string

type ZkWithdraw

type ZkWithdraw struct {
	TokenId   uint64       `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount    string       `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	AccountId uint64       `protobuf:"varint,3,opt,name=accountId,proto3" json:"accountId,omitempty"`
	Signature *ZkSignature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

从二层提款

func (*ZkWithdraw) Descriptor deprecated

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

Deprecated: Use ZkWithdraw.ProtoReflect.Descriptor instead.

func (*ZkWithdraw) GetAccountId

func (x *ZkWithdraw) GetAccountId() uint64

func (*ZkWithdraw) GetAmount

func (x *ZkWithdraw) GetAmount() string

func (*ZkWithdraw) GetSignature

func (x *ZkWithdraw) GetSignature() *ZkSignature

func (*ZkWithdraw) GetTokenId

func (x *ZkWithdraw) GetTokenId() uint64

func (*ZkWithdraw) ProtoMessage

func (*ZkWithdraw) ProtoMessage()

func (*ZkWithdraw) ProtoReflect

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

func (*ZkWithdraw) Reset

func (x *ZkWithdraw) Reset()

func (*ZkWithdraw) String

func (x *ZkWithdraw) String() string

type ZkWithdrawNFT added in v1.67.4

type ZkWithdrawNFT struct {
	FromAccountId uint64       `protobuf:"varint,1,opt,name=fromAccountId,proto3" json:"fromAccountId,omitempty"`
	NFTTokenId    uint64       `protobuf:"varint,2,opt,name=NFTTokenId,proto3" json:"NFTTokenId,omitempty"`
	Amount        uint64       `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Signature     *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkWithdrawNFT) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkWithdrawNFT.ProtoReflect.Descriptor instead.

func (*ZkWithdrawNFT) GetAmount added in v1.67.4

func (x *ZkWithdrawNFT) GetAmount() uint64

func (*ZkWithdrawNFT) GetFromAccountId added in v1.67.4

func (x *ZkWithdrawNFT) GetFromAccountId() uint64

func (*ZkWithdrawNFT) GetNFTTokenId added in v1.67.4

func (x *ZkWithdrawNFT) GetNFTTokenId() uint64

func (*ZkWithdrawNFT) GetSignature added in v1.67.4

func (x *ZkWithdrawNFT) GetSignature() *ZkSignature

func (*ZkWithdrawNFT) ProtoMessage added in v1.67.4

func (*ZkWithdrawNFT) ProtoMessage()

func (*ZkWithdrawNFT) ProtoReflect added in v1.67.4

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

func (*ZkWithdrawNFT) Reset added in v1.67.4

func (x *ZkWithdrawNFT) Reset()

func (*ZkWithdrawNFT) String added in v1.67.4

func (x *ZkWithdrawNFT) String() string

type ZkWithdrawNFTWitnessInfo added in v1.67.4

type ZkWithdrawNFTWitnessInfo struct {
	FromAcctId      uint64       `protobuf:"varint,1,opt,name=fromAcctId,proto3" json:"fromAcctId,omitempty"`
	NFTTokenID      uint64       `protobuf:"varint,2,opt,name=NFTTokenID,proto3" json:"NFTTokenID,omitempty"`
	WithdrawAmount  string       `protobuf:"bytes,3,opt,name=withdrawAmount,proto3" json:"withdrawAmount,omitempty"`
	CreatorAcctId   uint64       `protobuf:"varint,4,opt,name=creatorAcctId,proto3" json:"creatorAcctId,omitempty"`
	ErcProtocol     uint64       `protobuf:"varint,5,opt,name=ercProtocol,proto3" json:"ercProtocol,omitempty"`
	ContentHash     []string     `protobuf:"bytes,6,rep,name=contentHash,proto3" json:"contentHash,omitempty"`
	CreatorSerialId uint64       `protobuf:"varint,7,opt,name=creatorSerialId,proto3" json:"creatorSerialId,omitempty"`
	InitMintAmount  string       `protobuf:"bytes,8,opt,name=initMintAmount,proto3" json:"initMintAmount,omitempty"`
	Signature       *ZkSignature `protobuf:"bytes,9,opt,name=signature,proto3" json:"signature,omitempty"`
	Fee             *ZkFee       `protobuf:"bytes,10,opt,name=fee,proto3" json:"fee,omitempty"`
	EthAddress      string       `protobuf:"bytes,11,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkWithdrawNFTWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkWithdrawNFTWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkWithdrawNFTWitnessInfo) GetContentHash added in v1.67.4

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

func (*ZkWithdrawNFTWitnessInfo) GetCreatorAcctId added in v1.67.4

func (x *ZkWithdrawNFTWitnessInfo) GetCreatorAcctId() uint64

func (*ZkWithdrawNFTWitnessInfo) GetCreatorSerialId added in v1.67.4

func (x *ZkWithdrawNFTWitnessInfo) GetCreatorSerialId() uint64

func (*ZkWithdrawNFTWitnessInfo) GetErcProtocol added in v1.67.4

func (x *ZkWithdrawNFTWitnessInfo) GetErcProtocol() uint64

func (*ZkWithdrawNFTWitnessInfo) GetEthAddress added in v1.67.4

func (x *ZkWithdrawNFTWitnessInfo) GetEthAddress() string

func (*ZkWithdrawNFTWitnessInfo) GetFee added in v1.67.4

func (x *ZkWithdrawNFTWitnessInfo) GetFee() *ZkFee

func (*ZkWithdrawNFTWitnessInfo) GetFromAcctId added in v1.67.4

func (x *ZkWithdrawNFTWitnessInfo) GetFromAcctId() uint64

func (*ZkWithdrawNFTWitnessInfo) GetInitMintAmount added in v1.67.4

func (x *ZkWithdrawNFTWitnessInfo) GetInitMintAmount() string

func (*ZkWithdrawNFTWitnessInfo) GetNFTTokenID added in v1.67.4

func (x *ZkWithdrawNFTWitnessInfo) GetNFTTokenID() uint64

func (*ZkWithdrawNFTWitnessInfo) GetSignature added in v1.67.4

func (x *ZkWithdrawNFTWitnessInfo) GetSignature() *ZkSignature

func (*ZkWithdrawNFTWitnessInfo) GetWithdrawAmount added in v1.67.4

func (x *ZkWithdrawNFTWitnessInfo) GetWithdrawAmount() string

func (*ZkWithdrawNFTWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkWithdrawNFTWitnessInfo) ProtoMessage()

func (*ZkWithdrawNFTWitnessInfo) ProtoReflect added in v1.67.4

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

func (*ZkWithdrawNFTWitnessInfo) Reset added in v1.67.4

func (x *ZkWithdrawNFTWitnessInfo) Reset()

func (*ZkWithdrawNFTWitnessInfo) String added in v1.67.4

func (x *ZkWithdrawNFTWitnessInfo) String() string

type ZkWithdrawWitnessInfo added in v1.67.4

type ZkWithdrawWitnessInfo struct {
	TokenId    uint64       `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	Amount     string       `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	AccountId  uint64       `protobuf:"varint,3,opt,name=accountId,proto3" json:"accountId,omitempty"`
	EthAddress string       `protobuf:"bytes,4,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
	Signature  *ZkSignature `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	Fee        *ZkFee       `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkWithdrawWitnessInfo) Descriptor deprecated added in v1.67.4

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

Deprecated: Use ZkWithdrawWitnessInfo.ProtoReflect.Descriptor instead.

func (*ZkWithdrawWitnessInfo) GetAccountId added in v1.67.4

func (x *ZkWithdrawWitnessInfo) GetAccountId() uint64

func (*ZkWithdrawWitnessInfo) GetAmount added in v1.67.4

func (x *ZkWithdrawWitnessInfo) GetAmount() string

func (*ZkWithdrawWitnessInfo) GetEthAddress added in v1.67.4

func (x *ZkWithdrawWitnessInfo) GetEthAddress() string

func (*ZkWithdrawWitnessInfo) GetFee added in v1.67.4

func (x *ZkWithdrawWitnessInfo) GetFee() *ZkFee

func (*ZkWithdrawWitnessInfo) GetSignature added in v1.67.4

func (x *ZkWithdrawWitnessInfo) GetSignature() *ZkSignature

func (*ZkWithdrawWitnessInfo) GetTokenId added in v1.67.4

func (x *ZkWithdrawWitnessInfo) GetTokenId() uint64

func (*ZkWithdrawWitnessInfo) ProtoMessage added in v1.67.4

func (*ZkWithdrawWitnessInfo) ProtoMessage()

func (*ZkWithdrawWitnessInfo) ProtoReflect added in v1.67.4

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

func (*ZkWithdrawWitnessInfo) Reset added in v1.67.4

func (x *ZkWithdrawWitnessInfo) Reset()

func (*ZkWithdrawWitnessInfo) String added in v1.67.4

func (x *ZkWithdrawWitnessInfo) String() string

type ZkspotClient added in v1.67.4

type ZkspotClient interface {
}

ZkspotClient is the client API for Zkspot service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewZkspotClient added in v1.67.4

func NewZkspotClient(cc grpc.ClientConnInterface) ZkspotClient

type ZkspotServer added in v1.67.4

type ZkspotServer interface {
}

ZkspotServer is the server API for Zkspot service.

type ZksyncAction

type ZksyncAction struct {

	// Types that are assignable to Value:
	//	*ZksyncAction_Deposit
	//	*ZksyncAction_ZkWithdraw
	//	*ZksyncAction_ZkTransfer
	//	*ZksyncAction_TransferToNew
	//	*ZksyncAction_ProxyExit
	//	*ZksyncAction_SetPubKey
	//	*ZksyncAction_FullExit
	//	*ZksyncAction_Swap
	//	*ZksyncAction_ContractToTree
	//	*ZksyncAction_TreeToContract
	//	*ZksyncAction_MintNFT
	//	*ZksyncAction_WithdrawNFT
	//	*ZksyncAction_TransferNFT
	//	*ZksyncAction_SetVerifyKey
	//	*ZksyncAction_CommitProof
	//	*ZksyncAction_SetVerifier
	//	*ZksyncAction_SetFee
	//	*ZksyncAction_SetTokenSymbol
	//	*ZksyncAction_SetExodusMode
	//	*ZksyncAction_Transfer
	//	*ZksyncAction_Withdraw
	//	*ZksyncAction_TransferToExec
	//	*ZksyncAction_LimitOrder
	//	*ZksyncAction_NftOrder
	//	*ZksyncAction_NftTakerOrder
	//	*ZksyncAction_NftOrder2
	//	*ZksyncAction_NftTakerOrder2
	//	*ZksyncAction_AssetLimitOrder
	//	*ZksyncAction_RevokeOrder
	Value isZksyncAction_Value `protobuf_oneof:"value"`
	Ty    int32                `protobuf:"varint,15,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

func (*ZksyncAction) Descriptor deprecated

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

Deprecated: Use ZksyncAction.ProtoReflect.Descriptor instead.

func (*ZksyncAction) GetAssetLimitOrder added in v1.67.4

func (x *ZksyncAction) GetAssetLimitOrder() *SpotAssetLimitOrder

func (*ZksyncAction) GetCommitProof

func (x *ZksyncAction) GetCommitProof() *ZkCommitProof

func (*ZksyncAction) GetContractToTree

func (x *ZksyncAction) GetContractToTree() *ZkContractToTree

func (*ZksyncAction) GetDeposit

func (x *ZksyncAction) GetDeposit() *ZkDeposit

func (*ZksyncAction) GetFullExit

func (x *ZksyncAction) GetFullExit() *ZkFullExit

func (*ZksyncAction) GetLimitOrder added in v1.67.4

func (x *ZksyncAction) GetLimitOrder() *SpotLimitOrder

func (*ZksyncAction) GetMintNFT added in v1.67.4

func (x *ZksyncAction) GetMintNFT() *ZkMintNFT

func (*ZksyncAction) GetNftOrder added in v1.67.4

func (x *ZksyncAction) GetNftOrder() *SpotNftOrder

func (*ZksyncAction) GetNftOrder2 added in v1.67.4

func (x *ZksyncAction) GetNftOrder2() *SpotNftOrder

func (*ZksyncAction) GetNftTakerOrder added in v1.67.4

func (x *ZksyncAction) GetNftTakerOrder() *SpotNftTakerOrder

func (*ZksyncAction) GetNftTakerOrder2 added in v1.67.4

func (x *ZksyncAction) GetNftTakerOrder2() *SpotNftTakerOrder

func (*ZksyncAction) GetProxyExit added in v1.67.4

func (x *ZksyncAction) GetProxyExit() *ZkProxyExit

func (*ZksyncAction) GetRevokeOrder added in v1.67.4

func (x *ZksyncAction) GetRevokeOrder() *SpotRevokeOrder

func (*ZksyncAction) GetSetExodusMode added in v1.67.4

func (x *ZksyncAction) GetSetExodusMode() *ZkExodusMode

func (*ZksyncAction) GetSetFee

func (x *ZksyncAction) GetSetFee() *ZkSetFee

func (*ZksyncAction) GetSetPubKey

func (x *ZksyncAction) GetSetPubKey() *ZkSetPubKey

func (*ZksyncAction) GetSetTokenSymbol added in v1.67.4

func (x *ZksyncAction) GetSetTokenSymbol() *ZkTokenSymbol

func (*ZksyncAction) GetSetVerifier

func (x *ZksyncAction) GetSetVerifier() *ZkVerifier

func (*ZksyncAction) GetSetVerifyKey

func (x *ZksyncAction) GetSetVerifyKey() *ZkVerifyKey

func (*ZksyncAction) GetSwap

func (x *ZksyncAction) GetSwap() *ZkSwap

func (*ZksyncAction) GetTransfer

func (x *ZksyncAction) GetTransfer() *types.AssetsTransfer

func (*ZksyncAction) GetTransferNFT added in v1.67.4

func (x *ZksyncAction) GetTransferNFT() *ZkTransferNFT

func (*ZksyncAction) GetTransferToExec added in v1.67.4

func (x *ZksyncAction) GetTransferToExec() *types.AssetsTransferToExec

func (*ZksyncAction) GetTransferToNew

func (x *ZksyncAction) GetTransferToNew() *ZkTransferToNew

func (*ZksyncAction) GetTreeToContract

func (x *ZksyncAction) GetTreeToContract() *ZkTreeToContract

func (*ZksyncAction) GetTy

func (x *ZksyncAction) GetTy() int32

func (*ZksyncAction) GetValue

func (m *ZksyncAction) GetValue() isZksyncAction_Value

func (*ZksyncAction) GetWithdraw

func (x *ZksyncAction) GetWithdraw() *types.AssetsWithdraw

func (*ZksyncAction) GetWithdrawNFT added in v1.67.4

func (x *ZksyncAction) GetWithdrawNFT() *ZkWithdrawNFT

func (*ZksyncAction) GetZkTransfer added in v1.67.4

func (x *ZksyncAction) GetZkTransfer() *ZkTransfer

func (*ZksyncAction) GetZkWithdraw added in v1.67.4

func (x *ZksyncAction) GetZkWithdraw() *ZkWithdraw

func (*ZksyncAction) ProtoMessage

func (*ZksyncAction) ProtoMessage()

func (*ZksyncAction) ProtoReflect

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

func (*ZksyncAction) Reset

func (x *ZksyncAction) Reset()

func (*ZksyncAction) String

func (x *ZksyncAction) String() string

type ZksyncAction_AssetLimitOrder added in v1.67.4

type ZksyncAction_AssetLimitOrder struct {
	AssetLimitOrder *SpotAssetLimitOrder `protobuf:"bytes,206,opt,name=assetLimitOrder,proto3,oneof"`
}

type ZksyncAction_CommitProof

type ZksyncAction_CommitProof struct {
	CommitProof *ZkCommitProof `protobuf:"bytes,32,opt,name=commitProof,proto3,oneof"`
}

type ZksyncAction_ContractToTree

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

type ZksyncAction_Deposit

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

type ZksyncAction_FullExit

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

type ZksyncAction_LimitOrder added in v1.67.4

type ZksyncAction_LimitOrder struct {
	// spot
	LimitOrder *SpotLimitOrder `protobuf:"bytes,201,opt,name=limitOrder,proto3,oneof"`
}

type ZksyncAction_MintNFT added in v1.67.4

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

type ZksyncAction_NftOrder added in v1.67.4

type ZksyncAction_NftOrder struct {
	NftOrder *SpotNftOrder `protobuf:"bytes,202,opt,name=nftOrder,proto3,oneof"`
}

type ZksyncAction_NftOrder2 added in v1.67.4

type ZksyncAction_NftOrder2 struct {
	NftOrder2 *SpotNftOrder `protobuf:"bytes,204,opt,name=nftOrder2,proto3,oneof"`
}

type ZksyncAction_NftTakerOrder added in v1.67.4

type ZksyncAction_NftTakerOrder struct {
	NftTakerOrder *SpotNftTakerOrder `protobuf:"bytes,203,opt,name=nftTakerOrder,proto3,oneof"`
}

type ZksyncAction_NftTakerOrder2 added in v1.67.4

type ZksyncAction_NftTakerOrder2 struct {
	NftTakerOrder2 *SpotNftTakerOrder `protobuf:"bytes,205,opt,name=nftTakerOrder2,proto3,oneof"`
}

type ZksyncAction_ProxyExit added in v1.67.4

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

type ZksyncAction_RevokeOrder added in v1.67.4

type ZksyncAction_RevokeOrder struct {
	RevokeOrder *SpotRevokeOrder `protobuf:"bytes,207,opt,name=revokeOrder,proto3,oneof"`
}

type ZksyncAction_SetExodusMode added in v1.67.4

type ZksyncAction_SetExodusMode struct {
	SetExodusMode *ZkExodusMode `protobuf:"bytes,36,opt,name=setExodusMode,proto3,oneof"`
}

type ZksyncAction_SetFee

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

type ZksyncAction_SetPubKey

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

type ZksyncAction_SetTokenSymbol added in v1.67.4

type ZksyncAction_SetTokenSymbol struct {
	SetTokenSymbol *ZkTokenSymbol `protobuf:"bytes,35,opt,name=setTokenSymbol,proto3,oneof"`
}

type ZksyncAction_SetVerifier

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

type ZksyncAction_SetVerifyKey

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

type ZksyncAction_Swap

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

type ZksyncAction_Transfer

type ZksyncAction_Transfer struct {
	Transfer *types.AssetsTransfer `protobuf:"bytes,40,opt,name=transfer,proto3,oneof"`
}

type ZksyncAction_TransferNFT added in v1.67.4

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

type ZksyncAction_TransferToExec added in v1.67.4

type ZksyncAction_TransferToExec struct {
	TransferToExec *types.AssetsTransferToExec `protobuf:"bytes,42,opt,name=transferToExec,proto3,oneof"`
}

type ZksyncAction_TransferToNew

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

type ZksyncAction_TreeToContract

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

type ZksyncAction_Withdraw

type ZksyncAction_Withdraw struct {
	Withdraw *types.AssetsWithdraw `protobuf:"bytes,41,opt,name=withdraw,proto3,oneof"`
}

type ZksyncAction_WithdrawNFT added in v1.67.4

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

type ZksyncAction_ZkTransfer added in v1.67.4

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

type ZksyncAction_ZkWithdraw added in v1.67.4

type ZksyncAction_ZkWithdraw struct {
	ZkWithdraw *ZkWithdraw `protobuf:"bytes,2,opt,name=zkWithdraw,proto3,oneof"`
}

type ZksyncClient

type ZksyncClient interface {
}

ZksyncClient is the client API for Zksync service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewZksyncClient

func NewZksyncClient(cc grpc.ClientConnInterface) ZksyncClient

type ZksyncServer

type ZksyncServer interface {
}

ZksyncServer is the server API for Zksync service.

type ZksyncType

type ZksyncType struct {
	types.ExecTypeBase
}

ZksyncType ...

func NewType

func NewType(cfg *types.Chain33Config) *ZksyncType

NewType ...

func (*ZksyncType) CreateTx added in v1.67.4

func (e *ZksyncType) CreateTx(action string, msg json.RawMessage) (*types.Transaction, error)

CreateTx zksync 创建交易,系统构造缺省to地址为合约地址,对于transfer/transferToExec 的to地址需要特殊处理为paylaod的to地址,

func (*ZksyncType) GetLogMap

func (e *ZksyncType) GetLogMap() map[int64]*types.LogInfo

GetLogMap 获取合约log相关信息

func (*ZksyncType) GetPayload

func (e *ZksyncType) GetPayload() types.Message

GetPayload 获取合约action结构

func (*ZksyncType) GetTypeMap

func (e *ZksyncType) GetTypeMap() map[string]int32

GetTypeMap 获取合约action的id和name信息

Jump to

Keyboard shortcuts

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