forked from Near-One/near-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the delayed upgrade (Near-One#44)
* Add support for the delayed upgrade * Reimplement the delayed upgrade functionality * Upgradable: Add update duration interface * Upgradable: revert chanegs of using base64 instead borsh * Fix commnets * Fix comment * Improve storage management for upgradable plugin * Improve upgradable plugin: * Remove `UpdateStagingDurationTimestamp` * Add helper functions * Improve naming * Fix staging timestamp validation * Add `update_delay_duration` tests * Minor improvment * Apply cargo fmt * Add setters & use borsh ser/de * Update readme * Revert changes of removing `StagingDurationTimestamp` * Fix type of `new_staging_duration_timestamp` * Fix `self` mutability * Remove `StagingTimestamp` on removing staged code
- Loading branch information
Showing
8 changed files
with
331 additions
and
26 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/target | ||
Cargo.lock | ||
near-plugins/tests/contracts/*/target | ||
examples/target | ||
|
||
# Ignore IDE data | ||
.vscode/ | ||
|
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
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
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.