imvvm

package
v0.0.0-...-4f0ab6e Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployInitializer

type DeployInitializer interface {
	// Initialize is called when a smart contract is deployed and initialized.
	Initialize(shard shard.Index) []byte
}

DeployInitializer will initialize the initial data of each shard when a smart contract is deployed.

type SmartContractMvvmExecutor

type SmartContractMvvmExecutor interface {
	// Execute is called when a smart contract is applied and executed.
	Execute(tx *wire.MsgTx, shardState *wire.OutState) (*wire.OutState, []*wire.OutState, []*wire.ReduceAction, error)
}

SmartContractMvvmExecutor will execute the given code when the smart contract is applied, and return a bunch of OutState and Action to change the status of each shard.

Jump to

Keyboard shortcuts

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