Documentation ¶
Index ¶
- func CleanAndPaddingByteByModulus(buf []byte) []byte
- func ComputeNewBalance(assetType int64, balance string, balanceDelta string) (newBalance string, err error)
- func ConstructStoredBlockInfo(oBlock *block.Block) zkbnb.StorageStoredBlockInfo
- func CreateBlockCommitment(currentBlockHeight int64, createdAt int64, oldStateRoot []byte, ...) string
- func FromFormatAccountInfo(formatAccountInfo *types.AccountInfo) (accountInfo *account.Account, err error)
- func ParseDepositNftPubData(pubData []byte) (tx *txtypes.DepositNftTxInfo, err error)
- func ParseDepositPubData(pubData []byte) (tx *txtypes.DepositTxInfo, err error)
- func ParseFullExitNftPubData(pubData []byte) (tx *txtypes.FullExitNftTxInfo, err error)
- func ParseFullExitPubData(pubData []byte) (tx *txtypes.FullExitTxInfo, err error)
- func ParseRegisterZnsPubData(pubData []byte) (tx *txtypes.RegisterZnsTxInfo, err error)
- func ToFormatAccountInfo(accountInfo *account.Account) (formatAccountInfo *types.AccountInfo, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeNewBalance ¶
func ConstructStoredBlockInfo ¶
func ConstructStoredBlockInfo(oBlock *block.Block) zkbnb.StorageStoredBlockInfo
func CreateBlockCommitment ¶
func FromFormatAccountInfo ¶
func FromFormatAccountInfo(formatAccountInfo *types.AccountInfo) (accountInfo *account.Account, err error)
func ParseDepositNftPubData ¶
func ParseDepositNftPubData(pubData []byte) (tx *txtypes.DepositNftTxInfo, err error)
func ParseDepositPubData ¶
func ParseDepositPubData(pubData []byte) (tx *txtypes.DepositTxInfo, err error)
func ParseFullExitNftPubData ¶
func ParseFullExitNftPubData(pubData []byte) (tx *txtypes.FullExitNftTxInfo, err error)
func ParseFullExitPubData ¶
func ParseFullExitPubData(pubData []byte) (tx *txtypes.FullExitTxInfo, err error)
func ParseRegisterZnsPubData ¶
func ParseRegisterZnsPubData(pubData []byte) (tx *txtypes.RegisterZnsTxInfo, err error)
func ToFormatAccountInfo ¶
func ToFormatAccountInfo(accountInfo *account.Account) (formatAccountInfo *types.AccountInfo, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.