plasma

package
v0.0.0-...-009c8ec Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlasmaContract

type PlasmaContract struct {
	contractapi.Contract
}

PlasmaContract for handling Plasma chain data

func (*PlasmaContract) CommitMerkleRoot

func (pc *PlasmaContract) CommitMerkleRoot(ctx contractapi.TransactionContextInterface, blockNumber string, merkleRoot string) error

CommitMerkleRoot commits the Merkle root of a Plasma block to the root chain

func (*PlasmaContract) InitLedger

PlasmaInitLedger initializes the ledger with an example block

func (*PlasmaContract) QueryAllMerkleRoots

func (pc *PlasmaContract) QueryAllMerkleRoots(ctx contractapi.TransactionContextInterface) (string, error)

QueryAllMerkleRoots retrieves all Merkle roots committed to the root chain

func (*PlasmaContract) QueryMerkleRoot

func (pc *PlasmaContract) QueryMerkleRoot(ctx contractapi.TransactionContextInterface, blockNumber string) (string, error)

QueryMerkleRoot retrieves the Merkle root for a given Plasma block number

Jump to

Keyboard shortcuts

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