-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sidechain/deploy: Auto-update on-chain NeoFS NNS smart contract
There is a need to automatically update on-chain NNS contract to new code embedded into application importing `contracts` package. Sidechain deployment procedure fits well for this purpose. It already initializes Notary service for the committee members, and the update procedure (`update` method of each system contract) just requires a committee witness. Add new stage (currently last one) to Sidechain deployment procedure that updates on-chain NNS contract. Since 'update' methods require committee witness, also run background routine which signs incoming Notary requests on behalf of the local account. The routine will be useful for deployment/update of other NeoFS contracts (to be implemented in the future). Signed-off-by: Leonard Lyubich <[email protected]>
- Loading branch information
1 parent
52c6ef0
commit 8fa29f0
Showing
5 changed files
with
642 additions
and
8 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package deploy | ||
|
||
// various common methods of the NeoFS contracts. | ||
const ( | ||
methodUpdate = "update" | ||
methodVersion = "version" | ||
) |
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
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
Oops, something went wrong.