neoneo-go/pkg/core/transaction
Anna Shaleva 65503aa9b4 core: add nonce field to transaction
1. Closes #840: added Nonce field to transaction.Transaction and
removed Nonce field from transaction.MinerTx

2. Added following methods to different tx types:
  - NewMinerTx()
  - NewMinerTxWithNonce(...)
  - NewEnrollmentTx(...)
  - NewIssueTx()
  - NewPublishTx(...)
  - NewRegisterTx(...)
  - NewStateTx(...)
in order to avoid code duplication when new transaction is created.

3. Commented out test cases where binary transaction/block are used.
These test cases marked with `TODO NEO3.0: Update binary` and need to be
updated.

4. Updated other tests

5. Added constant Nonce to GoveringTockenTx, UtilityTokenTx and genesis
block to avoid data variability. Also marked with TODO.
2020-04-14 16:19:41 +03:00
..
asset_type.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
attr_usage.go transaction: auto-generate stringer interface for AttrUsage 2019-08-30 17:44:36 +03:00
attribute.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
attrusage_string.go transaction: auto-generate stringer interface for AttrUsage 2019-08-30 17:44:36 +03:00
claim.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
contract.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
contract_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
enrollment.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
enrollment_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
helper_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
inout.go core/transaction: use new transaction.InOut for References 2020-02-27 12:00:03 +03:00
input.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
input_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
invocation.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
invocation_test.go testserdes: implement helpers for encode/decode routines 2020-03-27 10:27:46 +03:00
issue.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
miner.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
miner_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
output.go transaction: unmarshal Output properly 2020-03-04 20:01:26 +03:00
publish.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
register.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
register_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
result.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
state.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
state_descriptor.go rpc: fix marshalling of type-specific tx data 2020-03-30 15:48:50 +03:00
state_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
transaction.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
transaction_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
txer.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
type.go transaction: add unmarshaling for TXType 2019-12-25 01:44:37 +03:00
witness.go transaction: unmarshal Witness properly 2020-03-04 20:01:26 +03:00