forked from TrueCloudLab/neoneo-go
30836ca69b
The notion of NativeContractState shouldn't ever existed, native contract is a contract and its state is saved as regular contract state which is critical because we'll have MPT calculations over this state soon. Initial minting should be done in Neo.Native.Deploy because it generates notification that should have proper transaction context. RegisterNative() shouldn't exist as a public method, native contracts are only registered at block 0 and they can do it internally, no outside user should be able to mess with it. Move some structures from `native` package to `interop` also to avoid circular references as interop.Context has to have a list of native contracts (exposing them via Blockchainer is again too dangerous, it's too powerful tool). |
||
---|---|---|
.. | ||
block | ||
blockchainer | ||
dao | ||
interop | ||
mempool | ||
native | ||
state | ||
storage | ||
test_data | ||
transaction | ||
blockchain.go | ||
blockchain_test.go | ||
gas_price.go | ||
gas_price_test.go | ||
header_hash_list.go | ||
helper_test.go | ||
interop_neo.go | ||
interop_neo_test.go | ||
interop_system.go | ||
interops.go | ||
interops_test.go | ||
native_contract_test.go | ||
prometheus.go | ||
spent_coin.go | ||
util.go | ||
util_test.go |