-
Notifications
You must be signed in to change notification settings - Fork 100
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
trigger type for getapplicationlog #380
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
4b18582
Merge pull request #4 from neo-project/master
330b158
Merge pull request #5 from neo-project/master
120f52c
Merge pull request #6 from neo-project/master
c7997a9
fixed-bug-1021
7c9f02b
Update src/RpcServer/RpcServer.SmartContract.cs
shargon 1079aa3
😂
aa8e120
Keeping up to date with neo
928f3f4
Keeping up to date with neo
2c8cf6e
Revert "Keeping up to date with neo"
0b5473a
Prevent create key if not null
shargon cd4645e
dotnet format
shargon 7d93776
Query application log via blockhash
319328d
Merge branch 'TriggerType' of https://github.com/chenzhitong/neo-modu…
dbc0f5a
Merge branch 'master' into TriggerType
1bdeb72
update
3fdc740
Merge branch 'TriggerType' of https://github.com/chenzhitong/neo-modu…
88554dd
Merge branch 'master' into TriggerType
582a785
Modifying the Json storage structure
43d0814
Merge branch 'TriggerType' of https://github.com/chenzhitong/neo-modu…
2e194b2
Modifying the JSON storage structure 2
745196d
Additional optional "trigger" parameter to getapplicationlog for clie…
6bf5a8d
Re-run checks
4e8b86e
Merge branch 'master' into TriggerType
2b58d37
Merge branch 'master' into TriggerType
24744d1
Merge branch 'master' into TriggerType
edf8e5b
StrictUTF8
934dd90
Merge branch 'TriggerType' of https://github.com/chenzhitong/neo-modu…
7a232fc
Update src/ApplicationLogs/LogReader.cs
shargon 823c0f2
Merge branch 'master' into TriggerType
vncoelho ff729ec
Merge branch 'master' into TriggerType
superboyiii 2b303d1
Optimize
shargon 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 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
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.
Does not support
All
?https://github.com/neo-project/neo/blob/1d4db2cd4176390d18deeffc2aacc230a55950b0/src/neo/SmartContract/TriggerType.cs#L28
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 think it supports. If want to query
All
, just do not set thetrigger
parameter.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 think the user may not know it, they're more likely to think that
TriggerType.All
is all 😅.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 think that we should not allow
All
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.
But why? It's the default anyway and I don't see any problem with specifying
All
.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.
Because neo never execute the contract with
All
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.
Actually, given the way triggers are defined I was expecting something more like
here (which is what we did in neo-go, for us specifying
All
is like not specifying anything). But I see now that ApplicationLogs plugin saves data using JSON in the DB and this doesn't allow for this trick (at least not that easy).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.
Trigger it's a flag because it can be used for filters (Interops) but we always execute the contract as 'non flag'.