chain

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanAndPaddingByteByModulus

func CleanAndPaddingByteByModulus(buf []byte) []byte

func ComputeNewBalance

func ComputeNewBalance(assetType int64, balance string, balanceDelta string) (newBalance string, err error)

func ConstructStoredBlockInfo

func ConstructStoredBlockInfo(oBlock *block.Block) zkbnb.StorageStoredBlockInfo

func CreateBlockCommitment

func CreateBlockCommitment(
	currentBlockHeight int64,
	createdAt int64,
	oldStateRoot []byte,
	newStateRoot []byte,
	pubData []byte,
	onChainOpsCount int64,
) string

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.

Jump to

Keyboard shortcuts

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