-
Notifications
You must be signed in to change notification settings - Fork 1k
NEP-25 #4043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
NEP-25 #4043
Changes from 84 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
b5b0a26
NEP-25
shargon 9fa095d
Clean
shargon ddba39e
Merge branch 'dev' into nep-25
46ea96f
Update src/Neo/SmartContract/Manifest/ExtendedType.cs
shargon 18a250c
Update src/Neo/SmartContract/Manifest/ExtendedType.cs
shargon 368cfdc
Use also param
shargon 418a8ab
Merge branch 'dev' into nep-25
shargon d0f8d21
Rename var
shargon d392f50
Use the same type
shargon 55ec5e8
Revert "Use the same type"
shargon 7ab0c64
Add value
shargon b36370a
Fields
shargon 2e0152f
Merge branch 'dev' into nep-25
shargon 5e47abc
Merge branch 'dev' into nep-25
shargon 8929079
Merge branch 'dev' into nep-25
shargon 1f8d488
Merge branch 'dev' into nep-25
Jim8y d21d906
docs: add NEP-25 implementation documentation
Jim8y 7c073f2
test: fix ExtendedType tests for 8-field StackItem structure
Jim8y a1248b2
Merge branch 'dev' into nep-25
cschuchardt88 b0cd9b1
Merge branch 'dev' into nep-25
shargon d3c8564
Move to ContractParameterDefinition
shargon 0e85e4a
Use ContractParameterType for Key
shargon 65f27ec
Merge branch 'dev' into nep-25
shargon cfd07b4
Fix UT
shargon f6aa6aa
Merge branch 'dev' into nep-25
shargon 890dcd4
remove md
shargon 5ffeb94
Anna's review
shargon de230cc
Merge branch 'dev' into nep-25
shargon a7967e5
namedtypes
shargon c3759a8
Merge branch 'nep-25' of https://github.com/neo-project/neo into nep-25
shargon 8c6aa4b
allow null
shargon 3b20380
clean
shargon d093162
clean
shargon 2fa6247
Merge branch 'dev' into nep-25
shargon 761ca46
fix build
shargon 2ac2da1
Merge branch 'dev' into nep-25
ajara87 d2e9871
Merge branch 'dev' into nep-25
shargon 14a9176
Merge branch 'dev' into nep-25
ajara87 7cd74e6
Merge branch 'dev' into nep-25
Jim8y 35229d4
Merge branch 'dev' into nep-25
shargon 8718ed4
Fix Serialize with null item
shargon 3b56be4
Ensure the right type or null
shargon e2ac006
use map for serialize
shargon ac21144
Fix map
shargon 242dbb5
Merge branch 'dev' into nep-25
shargon 7c3a377
Merge branch 'dev' into nep-25
shargon 3fb806a
Enforce NEP-25 extended type validation (#4187)
Jim8y 20965c4
Apply suggestions from code review
shargon b9cfdb6
Update src/Neo/SmartContract/Manifest/ContractAbi.cs
shargon c0fd6f2
Update src/Neo/SmartContract/Manifest/ContractEventDescriptor.cs
shargon b6a80d1
Update src/Neo/SmartContract/Manifest/ContractMethodDescriptor.cs
shargon c45eecf
Update src/Neo/SmartContract/Manifest/ContractParameterDefinition.cs
shargon 51adba8
Update src/Neo/SmartContract/Manifest/ContractMethodDescriptor.cs
shargon 3b0ab01
Update src/Neo/SmartContract/Manifest/ContractMethodDescriptor.cs
shargon 4ca1f65
Update src/Neo/SmartContract/Manifest/ContractParameterDefinition.cs
shargon 0118b4c
Apply suggestions from code review
shargon 09c4839
Update tests/Neo.UnitTests/SmartContract/Manifest/UT_ExtendedType.cs
shargon 41782d5
Merge branch 'dev' into nep-25
ajara87 afa0632
Update tests/Neo.UnitTests/SmartContract/Manifest/UT_ExtendedType.cs
shargon d327be8
Update src/Neo/SmartContract/Manifest/ExtendedType.cs
shargon a8408f4
Merge branch 'dev' into nep-25
shargon 169ea7b
@ajara87 suggestion
shargon 60eac04
Merge branch 'dev' into nep-25
ajara87 c4bf05a
fix wrong review of @cschuchardt88
shargon ad1ffde
Add Ut without the key
shargon c49499d
Clean code
shargon 4e1efa0
Remove void restriction
shargon 054e5de
Clean enum
shargon aca22c0
Merge branch 'dev' into nep-25
ajara87 81b7b5a
Merge branch 'dev' into nep-25
NGDAdmin 7be35bd
Merge branch 'dev' into nep-25
shargon a4a3d3d
Merge branch 'dev' into nep-25
shargon a23ee2d
- Styling
shargon c719313
Roman's review: Ensure no circular named type
shargon 56ea443
Merge branch 'dev' into nep-25
ajara87 533d472
Merge branch 'dev' into nep-25
shargon fefdb95
Merge branch 'dev' into nep-25
ajara87 f9e1526
Merge branch 'dev' into nep-25
shargon 88b861b
Circular reference change
shargon a799ca6
Merge branch 'nep-25' of https://github.com/neo-project/neo into nep-25
shargon c575449
Merge branch 'dev' into nep-25
ajara87 9b4cccc
UT for circular reference (#4251)
ajara87 2d3e1fe
Merge branch 'dev' into nep-25
ajara87 20aa730
Merge branch 'dev' into nep-25
ajara87 0c5d4c6
[NEP25] - Validate circular reference (#4258)
ajara87 ba009ea
Allow Fields with 0 length
shargon 3fd4f14
Merge branch 'dev' into nep-25
ajara87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a concern: manifest serialization format doesn't depend on hardforks, and we don't change native Management in any way. It means that there's a tiny possibility of a statediff during an update to this version: if someone deploys contract with extended types, then deployment transaction will fail on old nodes and will succeed on updated nodes.
This fact may probably be ignored, but at least we should know about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they don't update the node, the state difference will come later, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At Faun height, due to other Faun-specific updates, right. But my concern is that with the current implementation state difference may happen even before Faun if someone submits extended manifest to the chain on contract deploy/update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was resolved in #4283