on master help sign in
add residents deploy script
commit61a92fb75f0aab6f56f6a042aad9b12c00364e55 authorLiam Fitzgerald <liam@urizen.co> dateThu 26 Mar 2020, 09:51 (7 years ago) parent1edc9ff
2 files changed+13
migrations/1_migration.js+12 package.json+1
migrations/1_migration.js+12
@@ -130,6 +130,18 @@ module.exports = async function(deployer) {
130130 await ecliptic.spawn(131328, own);
131131 await ecliptic.spawn(512, own);
132132 await sending.setPoolSize(256, 65792, 1000);
133+ case 'RESIDENTS':
134+ await ecliptic.createGalaxy(0, own);
135+ await ecliptic.configureKeys(0, '0x123', '0x456', 1, false);
136+ await ecliptic.spawn(256, own);
137+ await ecliptic.configureKeys(256, '0x456', '0x789', 1, false);
138+ for (let i = 2; i < 30; i++) {
139+ // await ecliptic.spawn(256 * i, user1);
140+ const offset = 65536 * i;
141+ await ecliptic.spawn(offset + 256, own);
142+ await ecliptic.transferPoint(offset + 256, user1, false);
143+ }
144+
133145 default:
134146 return;
135147 }
package.json+1
@@ -87,6 +87,7 @@
8787 "pilot": "HTTPS=true npm-run-all pilot:setup start pilot:cleanup --continue-on-error",
8888 "pilot-invites": "WITH_TEST_STATE=INVITES npm run pilot",
8989 "pilot-release": "WITH_TEST_STATE=STAR_RELEASE npm run pilot",
90+ "pilot-residents": "WITH_TEST_STATE=RESIDENTS npm run pilot",
9091 "pilot:cleanup": "pkill -f ganache-cli",
9192 "lint:check": "eslint 'src/**/*.js'",
9293 "lint:fix": "eslint --fix 'src/**/*.js'",