Evgenii Stratonikov
|
7483e3b054
|
compiler: support delete() builtin
|
2020-09-06 15:49:41 +03:00 |
|
Evgenii Stratonikov
|
18369c489e
|
compiler: do not allocate slotes for unused "_" vars
|
2020-09-06 15:27:46 +03:00 |
|
Evgenii Stratonikov
|
0b44a43043
|
compiler: do not allocate static slot for constants
Their value is known at compile time.
|
2020-09-06 15:20:17 +03:00 |
|
Roman Khimov
|
18204ec21a
|
Merge pull request #1383 from nspcc-dev/compiler/switchtag
compiler: fix a bug with type conversion in switch
|
2020-09-03 14:40:17 +03:00 |
|
Roman Khimov
|
cf15ca30f5
|
Merge pull request #1382 from nspcc-dev/compiler/manifest_methods_fix
compiler: do not convert methods to manifest methods
|
2020-09-03 14:39:51 +03:00 |
|
Anna Shaleva
|
70a58b6522
|
compiler: do not convert methods to manifest methods
Close #1381
|
2020-09-02 22:41:54 +03:00 |
|
Anna Shaleva
|
058da7c2bd
|
compiler: getFuncNameFromDecl for methods on pointers
Declaration has *ast.StarExpr type in case of method on pointer.
|
2020-09-02 22:41:54 +03:00 |
|
Evgenii Stratonikov
|
98ca17aab8
|
network: restrict block queue size
Close #1374.
|
2020-09-02 17:04:49 +03:00 |
|
Evgenii Stratonikov
|
74dda0ac66
|
compiler: allow to use type conversion in range
|
2020-09-02 15:35:20 +03:00 |
|
Evgenii Stratonikov
|
3af7ce8c6b
|
compiler: allow to use copy() return value
|
2020-09-02 15:29:59 +03:00 |
|
Evgenii Stratonikov
|
3d8c7af66c
|
compiler: handle void call to recover()
Other builtins such as `len` and `make` can be ignored,
because not-assigning `make` result is catched by parser.
|
2020-09-02 15:20:43 +03:00 |
|
Evgenii Stratonikov
|
7d61a567d5
|
compiler: fix a bug with type conversion in switch
It was incorrectly parsed as void call.
|
2020-09-02 14:48:19 +03:00 |
|
Evgenii Stratonikov
|
1788cf02a1
|
core: fix VerifyTX test
HighPriority attribute was lost during intermediate code changes.
|
2020-08-27 18:40:37 +03:00 |
|
Evgenii Stratonikov
|
dce456f77f
|
native: fix a bug in GetCommitteeMembers
Return standby committee instead of validators.
|
2020-08-27 18:40:37 +03:00 |
|
Evgenii Stratonikov
|
b0c051b817
|
internal: extend committee for unit tests
Committee should differ from the set of validators, to catch
possible bugs during testing.
|
2020-08-27 18:40:36 +03:00 |
|
Roman Khimov
|
3468f97836
|
Merge pull request #1343 from nspcc-dev/compiler/recover
Support `defer` statement
|
2020-08-27 17:33:12 +03:00 |
|
Roman Khimov
|
5d306297e9
|
Merge pull request #1367 from nspcc-dev/rpc/array_func_params
rpc: allow to use arrays in expandArrayIntoScript
|
2020-08-27 17:31:07 +03:00 |
|
Roman Khimov
|
9e0c13b69d
|
Merge pull request #1362 from nspcc-dev/feature/verification
Allow to use account with contracts on client
|
2020-08-27 17:30:29 +03:00 |
|
Anna Shaleva
|
5e8ce45a84
|
rpc: allow to use arrays in expandArrayIntoScript
Should be done together with #1363. Also removed
CreateInvocationScript function as we don't have `Invoke` RPC-call
anymore.
|
2020-08-27 16:38:45 +03:00 |
|
Roman Khimov
|
96f6ff9c8a
|
Merge pull request #1368 from nspcc-dev/fix/getapplog
rpc: support 0x form of Uint256 in requests
|
2020-08-27 13:35:38 +03:00 |
|
Evgenii Stratonikov
|
db4eecf4dc
|
rpc: support 0x form of Uint256 in requests
|
2020-08-27 12:36:33 +03:00 |
|
Anna Shaleva
|
e1a266ab86
|
smartcontract: increase MaxManifestSize
|
2020-08-27 11:50:09 +03:00 |
|
Evgenii Stratonikov
|
9c7168e4e8
|
rpc/client: allow to use contract accounts in AddNetworkFee
|
2020-08-27 11:32:55 +03:00 |
|
Evgenii Stratonikov
|
f6319f80e8
|
interop: allow to call CheckWitness without AllowStates
State access is needed only in specific circumstances.
|
2020-08-27 10:29:29 +03:00 |
|
Evgenii Stratonikov
|
5d82b82efb
|
compiler: support recover()
|
2020-08-27 10:28:50 +03:00 |
|
Evgenii Stratonikov
|
14ea3c2228
|
compiler: do not log panic message
In NEO3 THROW accepts an argument and exceptions can be handled, so
there is no need to log it.
|
2020-08-27 10:28:50 +03:00 |
|
Evgenii Stratonikov
|
04f5fdefa0
|
vm: properly unload context on exception
Do not copy exception context on CALL*.
|
2020-08-27 10:28:50 +03:00 |
|
Evgenii Stratonikov
|
fa1d1a8b00
|
compiler: support defer statement
Compile `defer` statement to a TRY/ENDFINALLY opcode pair.
|
2020-08-27 10:28:50 +03:00 |
|
Evgenii Stratonikov
|
b18a7f200c
|
compiler: calculate local variables properly
In case when right-hand side of an assignment is a function,
left-hand side should be used.
|
2020-08-27 10:28:50 +03:00 |
|
Evgenii Stratonikov
|
84c36326f5
|
compiler: allow init statement in if
|
2020-08-27 10:28:50 +03:00 |
|
Evgenii Stratonikov
|
d73f3cd24c
|
compiler: support calling function literals
|
2020-08-27 10:28:50 +03:00 |
|
Roman Khimov
|
5b30389d33
|
Merge pull request #1356 from nspcc-dev/cli/tests
cli: add non-integrational tests for cli packages
|
2020-08-26 13:03:50 +03:00 |
|
Roman Khimov
|
b4bcd23c0f
|
Merge pull request #1358 from nspcc-dev/fix/1354
rpc/client: provide sender in `CreateNEP5MultiTransferTx`
|
2020-08-25 19:02:23 +03:00 |
|
Anna Shaleva
|
fdf73597af
|
core: return error for unknown storage configuration
|
2020-08-25 16:11:44 +03:00 |
|
Roman Khimov
|
962f45f35e
|
Merge pull request #1361 from nspcc-dev/feature/iota
compiler: support `iota`
|
2020-08-25 15:50:20 +03:00 |
|
Evgenii Stratonikov
|
05ef951055
|
compiler: support iota
|
2020-08-25 10:22:58 +03:00 |
|
Roman Khimov
|
a1fbe51bca
|
Merge pull request #1352 from nspcc-dev/compiler/make
Fix MEMCPY, support `copy` and `make` in compiler
|
2020-08-25 09:33:16 +03:00 |
|
Evgenii Stratonikov
|
72ca8b79c3
|
rpc/client: provide sender in CreateNEP5MultiTransferTx
Specify scope explicitly.
Fix #1354.
|
2020-08-25 09:21:06 +03:00 |
|
Evgenii Stratonikov
|
69989e1227
|
compiler: support copy()
|
2020-08-25 08:53:29 +03:00 |
|
Evgenii Stratonikov
|
ab4cd8a990
|
vm: fix typo in MEMCPY handling
|
2020-08-25 08:53:29 +03:00 |
|
Evgenii Stratonikov
|
931dc6c64f
|
compiler: remove debug PrintOps() from tests
|
2020-08-25 08:53:29 +03:00 |
|
Evgenii Stratonikov
|
0f11116040
|
compiler: support make()
|
2020-08-25 08:53:28 +03:00 |
|
Evgenii Stratonikov
|
354645fbe3
|
compiler: allow to use switch without tag
|
2020-08-24 19:35:25 +03:00 |
|
Evgenii Stratonikov
|
e58616b975
|
compiler: drop unused call results
Close #683.
|
2020-08-24 19:34:51 +03:00 |
|
Evgenii Stratonikov
|
f70cb4f34a
|
compiler: do not use voidCalls when calculating stack size
This was probably a part of some earlier logic.
|
2020-08-24 19:34:51 +03:00 |
|
Roman Khimov
|
d8badd9a8d
|
Merge pull request #1351 from nspcc-dev/compiler/jmps
Make use of extended JMP* opcodes
|
2020-08-24 19:22:24 +03:00 |
|
Evgenii Stratonikov
|
4782a94200
|
native: do not rewrite NextValidators in (*NEO).OnPersist()
There is no need in writing the same value again and again.
Closes #1337.
|
2020-08-24 16:45:09 +03:00 |
|
Roman Khimov
|
1809076dc6
|
Merge pull request #1347 from nspcc-dev/vm-updates
Post-preview3 VM updates
|
2020-08-24 16:37:12 +03:00 |
|
Roman Khimov
|
6c27c2c13a
|
Merge pull request #1350 from nspcc-dev/some-post-preview3-core-changes
Some post-preview3 core changes
|
2020-08-24 16:26:12 +03:00 |
|
Roman Khimov
|
681ae4d5d6
|
vm: fix TRY offsets check
TRY can have an offset != 0 and still it can't have both parameters set to
zero.
|
2020-08-24 16:20:57 +03:00 |
|