-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from aptos-labs/angie/bulk_migrate_script
[ans] bulk migrate script
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 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,9 @@ | ||
[package] | ||
name = 'aptos_names_bulk_migrate' | ||
version = '1.0.0' | ||
|
||
[addresses] | ||
repository = "_" | ||
|
||
[dependencies.bulk] | ||
local = "../bulk" |
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,11 @@ | ||
This script helps with bulk name renewal as an admin. It will overrule the renewal window and the max renewal period. | ||
|
||
Preparation: | ||
1. Update `Move.toml` with the correct `repository` account. | ||
2. Use the owner account to run the script. | ||
|
||
Each iteration: | ||
1. Update the script with the appropriate names to renew | ||
2. Update the time period to renew the names for | ||
3. Compile the script: `aptos move compile` | ||
4. Run the script: `aptos move run-script --compiled-script-path bulk_migrate/build/aptos_names_bulk_migrate/bytecode_scripts/main.mv --profile name_owner` |
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,12 @@ | ||
script { | ||
use std::string::utf8; | ||
|
||
fun main(user: &signer) { | ||
let names = vector [ | ||
utf8(b"name01"), | ||
utf8(b"name02"), | ||
]; | ||
|
||
bulk::bulk::bulk_migrate_domain(user, names); | ||
} | ||
} |