Skip to content
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

NEP 22: Contract Update Standard #154

Merged
merged 30 commits into from
Dec 24, 2024

Conversation

superboyiii
Copy link
Member

Close: #135

nep-xx.mediawiki Outdated Show resolved Hide resolved
nep-xx.mediawiki Outdated Show resolved Hide resolved
nep-xx.mediawiki Outdated Show resolved Hide resolved
ixje
ixje previously approved these changes Aug 31, 2022
Copy link
Contributor

@ixje ixje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be nice to have this, I'd change our examples to use this standard interface.

nep-xx.mediawiki Outdated Show resolved Hide resolved
nep-xx.mediawiki Outdated Show resolved Hide resolved
nep-xx.mediawiki Outdated Show resolved Hide resolved
nep-xx.mediawiki Outdated Show resolved Hide resolved
nep-xx.mediawiki Outdated Show resolved Hide resolved
nep-xx.mediawiki Outdated Show resolved Hide resolved
roman-khimov
roman-khimov previously approved these changes Sep 14, 2022
nep-xx.mediawiki Outdated Show resolved Hide resolved
@erikzhang
Copy link
Member

Add _initialize?

@roman-khimov
Copy link
Contributor

_initialize is something different to me, not directly related to deploy/update. Maybe it's in some other document (but I wasn't able to find it on https://docs.neo.org/) or other NEP.

@superboyiii
Copy link
Member Author

@roman-khimov @erikzhang Added. Please review again.

@roman-khimov
Copy link
Contributor

NEP-22:

provide systems with a generalized interaction mechanism for smart contract initial deploy, update and destroy.

I don't see _initialize being a part of this NEP.

@erikzhang
Copy link
Member

I don't see _initialize being a part of this NEP.

I'm not sure if it should be part of this PR, but obviously it should be included in a document.

Also, don't forget the verify method.

@superboyiii
Copy link
Member Author

I don't see _initialize being a part of this NEP.

I'm not sure if it should be part of this PR, but obviously it should be included in a document.

Also, don't forget the verify method.

Added.

@superboyiii
Copy link
Member Author

@erikzhang @roman-khimov Is it OK?

@roman-khimov
Copy link
Contributor

It's a method soup now to me. I'd rather have separate NEPs for _initialize, _deploy and verify (three NEPs, seems to be perfectly fine to me, they are different unrelated things) and one for update/destroy. I want to be able to specify "NEP-XYZ" in SupportedStandards and expect all the tooling around to understand that this contract has standardized update/destroy method pair that can be interacted with. "NEP-22" doesn't give this meaning right now.

@ixje
Copy link
Contributor

ixje commented May 8, 2023

_initialize is something different to me, not directly related to deploy/update. Maybe it's in some other document (but I wasn't able to find it on https://docs.neo.org/) or other NEP.

I can kind of see the relationship. update can call _deploy which in turn can call _initialize again. Ideally there would be a flow diagram included to make it clear. verify on the other hand seems totally unrelated and worthy of a separate document if we're splitting anyway

@roman-khimov
Copy link
Contributor

I can kind of see the relationship

Is it related? Probably so. Can be it be used without all the other things? Sure it is. Can all the other things in this proposal be used without _initialize? Sure they are. We can have as many standards as we need and they can be related, but different standards for different things. NEP-XYZ in SupportedStandards should have some specific meaning. And SupportedStandards can have as many NEP-X, NEP-Y, NEP-Z as needed.

@EdgeDLT
Copy link

EdgeDLT commented May 8, 2023

And SupportedStandards can have as many NEP-X, NEP-Y, NEP-Z as needed.

I agree in principle with the idea of having independent standards. But I suspect there are many others like myself who also have a mental block at the future thought of these long lists of numbers with no meaning. Maybe we could package them together under a standard group, but at that point, is it that much different from what we have now?

nep-22.mediawiki Outdated Show resolved Hide resolved
nep-22.mediawiki Outdated Show resolved Hide resolved
nep-22.mediawiki Outdated Show resolved Hide resolved
nep-22.mediawiki Outdated Show resolved Hide resolved
vncoelho
vncoelho previously approved these changes Nov 29, 2024
nep-22.mediawiki Outdated Show resolved Hide resolved
nep-22.mediawiki Outdated Show resolved Hide resolved
nep-22.mediawiki Outdated Show resolved Hide resolved
@superboyiii
Copy link
Member Author

@roman-khimov Done

Copy link
Contributor

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Editorial nitpicks, but OK otherwise.

nep-22.mediawiki Outdated Show resolved Hide resolved
nep-22.mediawiki Show resolved Hide resolved
nep-22.mediawiki Outdated Show resolved Hide resolved
nep-22.mediawiki Outdated Show resolved Hide resolved
@superboyiii
Copy link
Member Author

@roman-khimov Done

nep-22.mediawiki Outdated Show resolved Hide resolved
nep-22.mediawiki Outdated Show resolved Hide resolved
nep-22.mediawiki Outdated Show resolved Hide resolved
roman-khimov
roman-khimov previously approved these changes Dec 19, 2024
Jim8y
Jim8y previously approved these changes Dec 20, 2024
@Jim8y Jim8y requested review from nan01ab and vncoelho December 20, 2024 01:06
AnnaShaleva
AnnaShaleva previously approved these changes Dec 20, 2024
nep-22.mediawiki Show resolved Hide resolved
nep-22.mediawiki Outdated Show resolved Hide resolved
@AnnaShaleva AnnaShaleva dismissed stale reviews from Jim8y, roman-khimov, and themself via 368ab8c December 20, 2024 10:14
Copy link
Member

@AnnaShaleva AnnaShaleva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for this minor fix, I couldn't resist, and now all previous approvals are gone. @Jim8y, @roman-khimov, need your approvals one more time.

@Jim8y
Copy link
Contributor

Jim8y commented Dec 20, 2024

Sorry for this minor fix, I couldn't resist, and now all previous approvals are gone. @Jim8y, @roman-khimov, need your approvals one more time.

@AnnaShaleva That is totally ok to comment on minor fixes, you are the strongest sheld we have to ensure eveything works properly, your concern definately will be addressed after the merge. Just approve an NEP takes too long while fixing minor issues can be in another track, along with file name/nep number/readme.

@NGDAdmin NGDAdmin merged commit b8966af into neo-project:master Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need a proposal for upgrade method in contract to unify the style