MCPcopy Create free account
hub / github.com/DNAProject/DNA / SmartContract

Struct SmartContract

smartcontract/smart_contract.go:46–57  ·  view source on GitHub ↗

SmartContract describe smart contract execute engine

Source from the content-addressed store, hash-verified

44
45// SmartContract describe smart contract execute engine
46type SmartContract struct {
47 Contexts []*context.Context // all execute smart contract context
48 CacheDB *storage.CacheDB // state cache
49 Store store.LedgerStore // ledger store
50 Config *Config
51 Notifications []*event.NotifyEventInfo // all execute smart contract event notify info
52 GasTable map[string]uint64
53 Gas uint64
54 ExecStep int
55 WasmExecStep uint64
56 PreExec bool
57}
58
59// Config describe smart contract need parameters configuration
60type Config struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected