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.
Click to show internal directories.
Click to hide internal directories.