on master help sign in
add residents deploy script
61a92fbLiam Fitzgerald
migrations/1_migration.js+12
@@ -130,6 +130,18 @@ module.exports = async function(deployer) {
130 await ecliptic.spawn(131328, own);
130 await ecliptic.spawn(131328, own);
131 await ecliptic.spawn(512, own);
131 await ecliptic.spawn(512, own);
132 await sending.setPoolSize(256, 65792, 1000);
132 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+
133 default:
145 default:
134 return;
146 return;
135 }
147 }
package.json+1
@@ -87,6 +87,7 @@
87 "pilot": "HTTPS=true npm-run-all pilot:setup start pilot:cleanup --continue-on-error",
87 "pilot": "HTTPS=true npm-run-all pilot:setup start pilot:cleanup --continue-on-error",
88 "pilot-invites": "WITH_TEST_STATE=INVITES npm run pilot",
88 "pilot-invites": "WITH_TEST_STATE=INVITES npm run pilot",
89 "pilot-release": "WITH_TEST_STATE=STAR_RELEASE npm run pilot",
89 "pilot-release": "WITH_TEST_STATE=STAR_RELEASE npm run pilot",
90+ "pilot-residents": "WITH_TEST_STATE=RESIDENTS npm run pilot",
90 "pilot:cleanup": "pkill -f ganache-cli",
91 "pilot:cleanup": "pkill -f ganache-cli",
91 "lint:check": "eslint 'src/**/*.js'",
92 "lint:check": "eslint 'src/**/*.js'",
92 "lint:fix": "eslint --fix 'src/**/*.js'",
93 "lint:fix": "eslint --fix 'src/**/*.js'",