MCPcopy Create free account
hub / github.com/DEROFDN/Engram / dvmInitFuncExample

Function dvmInitFuncExample

functions.go:2074–2084  ·  view source on GitHub ↗

DVM starter InitializePrivate() example for smart contract builder

()

Source from the content-addressed store, hash-verified

2072
2073// DVM starter InitializePrivate() example for smart contract builder
2074func dvmInitFuncExample() string {
2075 return `Function InitializePrivate() Uint64
207610 IF EXISTS("owner") == 0 THEN GOTO 30
207720 RETURN 1
207830 STORE("owner", SIGNER())
207931 STORE("var_header_name", "")
208032 STORE("var_header_description", "")
208133 STORE("var_header_icon", "")
208240 RETURN 0
2083End Function`
2084}
2085
2086// DVM starter function for smart contract builder
2087func dvmFuncExample(increment int) string {

Callers 1

layoutContractEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected