Documentation ¶
Index ¶
Constants ¶
View Source
const ( VarNumRepeats = "numRepeats" VarCounter = "counter" VarName = "name" VarDescription = "dscr" )
Variables ¶
View Source
var ( FuncIncCounter = coreutil.Func("incCounter") FuncIncAndRepeatOnceAfter2s = coreutil.Func("incAndRepeatOnceAfter5s") FuncIncAndRepeatMany = coreutil.Func("incAndRepeatMany") FuncSpawn = coreutil.Func("spawn") ViewGetCounter = coreutil.ViewFunc("getCounter") )
View Source
var Contract = coreutil.NewContract("inccounter", "Increment counter, a PoC smart contract")
View Source
var Processor = Contract.Processor(initialize, FuncIncCounter.WithHandler(incCounter), FuncIncAndRepeatOnceAfter2s.WithHandler(incCounterAndRepeatOnce), FuncIncAndRepeatMany.WithHandler(incCounterAndRepeatMany), FuncSpawn.WithHandler(spawn), ViewGetCounter.WithHandler(getCounter), )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.