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
|
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 |
|
Roman Khimov
|
32112249d5
|
vm: limit maximum nesting of exception contexts
Follow neo-project/neo#365. neo-vm submodule is updated just to show the
relevant latest commit, nothing really changed there.
|
2020-08-24 15:37:39 +03:00 |
|
Evgenii Stratonikov
|
9dc3edf351
|
compiler: make use of extended JMP* opcodes
|
2020-08-24 11:19:54 +03:00 |
|
Evgenii Stratonikov
|
51f3baf68e
|
compiler: refactor BinaryExpr handling
Reuse code between if conditions and expression context.
|
2020-08-24 09:46:11 +03:00 |
|
Evgenii Stratonikov
|
4d04c56efb
|
compiler: make toShortForm accept an opcode
|
2020-08-24 09:44:44 +03:00 |
|
Evgenii Stratonikov
|
1be1b8de9e
|
compiler: merge && and || processing
|
2020-08-24 09:44:44 +03:00 |
|
Evgenii Stratonikov
|
59367c96d1
|
compiler: allow to use += on strings
|
2020-08-24 09:44:44 +03:00 |
|
Evgenii Stratonikov
|
fd7af77895
|
compiler: refactor convertToken func
Move `getEqualityOpcode` into `convertToken`.
`convertToken` does not need codegen.
|
2020-08-24 09:44:44 +03:00 |
|
Evgenii Stratonikov
|
ae88c77a8a
|
compiler: process nil comparisons separately
|
2020-08-24 09:44:16 +03:00 |
|
Roman Khimov
|
9c72ea1d64
|
core/interop: add base58 encoding/decoding syscalls
Follow neo-project/neo#1833.
|
2020-08-23 17:19:56 +03:00 |
|
Roman Khimov
|
562e7e371f
|
consensus: switch to uint8 for validator index
Follow neo-project/neo#1837. Tests will need to be updated with real messages.
|
2020-08-23 16:44:56 +03:00 |
|