Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Commit ddee743

Browse files
committed
Add PolyToken deployed addresses. Change prepublishOnly script to prepack. Preserve build/js when updating contracts. Remove PolyToken.sol for now.
1 parent 11879d3 commit ddee743

File tree

5 files changed

+14
-171
lines changed

5 files changed

+14
-171
lines changed

contracts/PolyToken.sol

Lines changed: 0 additions & 166 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"documentation-serve": "documentation serve --watch src/contract_wrappers --config documentation.yml --theme lib/src/theme_polymath",
2020
"lint": "eslint --fix src test",
2121
"migrate-testrpc": "truffle migrate --network=testrpc",
22-
"prepublishOnly": "npm run build",
22+
"prepack": "npm run build",
2323
"serve-poly-docs": "run-s documentation-copy-babel-ignored documentation-serve",
2424
"start": "run-p babel:watchsrc babel:watchtest",
2525
"test": "mocha lib/test/**/*_test.js --timeout 20000 --bail --exit",

scripts/updateContracts.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ echo "Currently in " $PWD
44
cp -r ../polymath-core/contracts . &&
55
echo "Copied polymath-core contracts into polymath.js"
66

7-
rm -rf build
8-
echo "Removed build directory"
7+
rm -rf build/contracts
8+
echo "Removed build/contracts directory"

src/artifacts/PolyTokenMock.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,16 @@
241241
}
242242
],
243243
"networks": {
244+
"1": {
245+
"events": {},
246+
"links": {},
247+
"address": "0x9992ec3cf6a55b00978cddf2b27bc6882d88d1ec"
248+
},
249+
"3": {
250+
"events": {},
251+
"links": {},
252+
"address": "0x96a62428509002a7ae5f6ad29e4750d852a3f3d7"
253+
},
244254
"50": {
245255
"events": {},
246256
"links": {},

src/cli/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,13 @@ async function copyArtifact(filePath) {
6060

6161
async function copyArtifacts(/* argv */) {
6262
const toCopy = [
63-
'PolyTokenMock',
6463
'Customers',
6564
'Compliance',
65+
'PolyTokenMock',
6666
'SecurityToken',
6767
'SecurityTokenRegistrar',
6868
'STOContract',
6969
'Template',
70-
'PolyToken',
7170
];
7271

7372
for (let i = 0; i < toCopy.length; i++) {

0 commit comments

Comments
 (0)