neoneo-go/pkg/core/native
Anna Shaleva 2fee69f26f core: add missing onPersist and postPersist methods to natives
Although not every contract is persisted (see
https://github.com/neo-project/neo/blob/master/src/neo/Ledger/Blockchain.cs#L94)
we have to add `onPersist` and `postPersist` methods to every
native contract in order to display them in manifest for users and
follow C# behaviour. In C# there are `onPersist` and `postPersist`
methods in base native contract class, see
https://github.com/neo-project/neo/blob/master/src/neo/SmartContract/Native/NativeContract.cs#L141
and
https://github.com/neo-project/neo/blob/master/src/neo/SmartContract/Native/NativeContract.cs#L148
2020-11-25 18:37:29 +03:00
..
contract.go core: add missing onPersist and postPersist methods to natives 2020-11-25 18:37:29 +03:00
designate.go core: add missing onPersist and postPersist methods to natives 2020-11-25 18:37:29 +03:00
interop.go native: use proper stack for result 2020-11-24 12:17:28 +03:00
native_gas.go core: add missing onPersist and postPersist methods to natives 2020-11-25 18:37:29 +03:00
native_neo.go core: add missing onPersist and postPersist methods to natives 2020-11-25 18:37:29 +03:00
native_neo_candidate.go stackitem: change Bool() to TryBool(), prepare for its failures 2020-08-21 20:55:20 +03:00
native_neo_test.go native: implement delegated voting 2020-08-06 20:39:13 +03:00
native_nep17.go core: add missing onPersist and postPersist methods to natives 2020-11-25 18:37:29 +03:00
neo_types.go native: cache committee together with votes 2020-11-10 15:23:06 +03:00
oracle.go core: add missing onPersist and postPersist methods to natives 2020-11-25 18:37:29 +03:00
oracle_types.go native: move OracleRequest to state package 2020-10-08 13:48:14 +03:00
oracle_types_test.go pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
policy.go smartcontract: remove contract features 2020-11-13 21:26:23 +03:00
util.go native: provide name method for all contracts 2020-10-09 15:06:28 +03:00