Documentation
¶
Index ¶
- type PlasmaContract
- func (pc *PlasmaContract) CommitMerkleRoot(ctx contractapi.TransactionContextInterface, blockNumber string, ...) error
- func (pc *PlasmaContract) InitLedger(ctx contractapi.TransactionContextInterface) error
- func (pc *PlasmaContract) QueryAllMerkleRoots(ctx contractapi.TransactionContextInterface) (string, error)
- func (pc *PlasmaContract) QueryMerkleRoot(ctx contractapi.TransactionContextInterface, blockNumber string) (string, error)
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 ¶
func (pc *PlasmaContract) InitLedger(ctx contractapi.TransactionContextInterface) error
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
Click to show internal directories.
Click to hide internal directories.