Skip to content

Commit 501e030

Browse files
committed
fixed deployment on Kovan
1 parent 2cba4b3 commit 501e030

File tree

5 files changed

+25
-1120
lines changed

5 files changed

+25
-1120
lines changed

CLI/commands/helpers/contract_addresses.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function getPolymathRegistryAddress(networkId) {
1616
result = JSON.parse(require('fs').readFileSync('./build/contracts/PolymathRegistry.json').toString()).networks[networkId].address;
1717
break;
1818
case 42: // KOVAN
19-
result = "0xad09dc7939f09601674c69a07132bc642abeeb10";
19+
result = "0x5b215a7d39ee305ad28da29bf2f0425c6c2a00b3";
2020
break;
2121
}
2222

README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -175,28 +175,30 @@ node CLI/polymath-cli dividends_manager
175175
New Kovan PolyTokenFaucet: 0xb347b9f5b56b431b2cf4e1d90a5995f7519ca792
176176

177177
----------------------- Polymath Network Smart Contracts: -----------------------
178-
PolymathRegistry: 0x9903e7b5acfe5fa9713771a8d861eb1df8cd7046
179-
SecurityTokenRegistry (Proxy): 0xbefb81114d532bddddc724af20c3516fa75f0afb
180-
ModuleRegistry (Proxy): 0x0fac8d8cce224eead73c1187df96570aa80a568b
181-
FeatureRegistry: 0xa8f85006fdacb3d59ffae564c05433f0c949e911
178+
PolymathRegistry: 0x5b215a7d39ee305ad28da29bf2f0425c6c2a00b3
179+
SecurityTokenRegistry (Proxy): 0x91110c2f67e2881a8540417be9eadf5bc9f2f248
180+
ModuleRegistry (Proxy): 0xde6d19d7a68d453244227b6ccc5d8e6c2314627a
181+
FeatureRegistry: 0x8967a7cfc4b455398be2356cd05cd43b7a39697e
182182

183183
ETHOracle: 0xCE5551FC9d43E9D2CC255139169FC889352405C8
184184
POLYOracle: 0x461d98EF2A0c7Ac1416EF065840fF5d4C946206C
185185

186-
STFactory: 0x43b12219fbaf65fea59494a06ab29a4a3795c5f3
187-
GeneralTransferManagerFactory: 0xfe7e2bb6c200d5222c82d0f8fecca5f8fe4ab8ce
188-
GeneralPermissionManagerFactory: 0xde5eaa8d73f43fc5e7badb203f03ecae2b29bd92
186+
STFactory: 0x22f56100c6f18b656dbf1b156334206326fc672a
187+
GeneralTransferManagerFactory: 0x650e9507e983077d6f822472a7dcc37626d55c7f
188+
GeneralPermissionManagerFactory: 0xbf0bd6305b523ce055baa6dfaa9676d6b9e6090b
189189

190-
CappedSTOFactory: 0xe14d7dd044cc6cfe37548b6791416c59f19bfc0d
191-
USDTieredSTOFactory: 0xf9f0bb9f868d411dd9a9511a79d172449e3c15f5
192-
USDTieredSTOProxyFactory: 0xf4fcbdd22dc62d901ae67cba41173f3cd47e9bde
190+
CappedSTOFactory: 0xa4a24780b93a378eb25ec4bfbf93bc8e79d7eeeb
191+
USDTieredSTOFactory: 0x9106d7fbbd2996ef787913876341d0070cbdfc95
192+
USDTieredSTOProxyFactory: 0xb004ff6893b95dc8a19b9e09b2920a44a609bae3
193193

194-
CountTransferManagerFactory: 0x3c3c1f40ae2bdca82b90541b2cfbd41caa941c0e
195-
PercentageTransferManagerFactory: 0x8cd00c3914b2967a8b79815037f51c76874236b8
196-
ManualApprovalTransferManagerFactory: 0x19288e00a1f507b9c03570668854da533d398395
197-
EtherDividendCheckpointFactory: 0x2861425ba5abbf50089c473b28f6c40a8ea5262a
198-
ERC20DividendCheckpointFactory: 0xbf9495550417feaacc43f86d2244581b6d688431
194+
CountTransferManagerFactory: 0xc7cf0c1ddc85c18672951f9bfeb7163ecc8f0e2f
195+
PercentageTransferManagerFactory: 0xfea5fcb254bcb4ada0f86903ff822d6372325cb1
196+
ManualApprovalTransferManagerFactory: 0x8e96e7199b9ba096d666033f058ebb0050786baf
197+
EtherDividendCheckpointFactory: 0x18ae137fc6581e121f3d37ed85c423dbc3c9b964
198+
ERC20DividendCheckpointFactory: 0x8c724a1504643e02bb02b23cdd414da637872c80
199199
---------------------------------------------------------------------------------
200+
201+
200202

201203

202204
## Mainnet

migrations/2_deploy_contracts.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const STFactory = artifacts.require('./tokens/STFactory.sol')
1818
const DevPolyToken = artifacts.require('./helpers/PolyTokenFaucet.sol')
1919
const MockOracle = artifacts.require('./MockOracle.sol')
2020
const TokenLib = artifacts.require('./TokenLib.sol');
21+
const SecurityToken = artifacts.require('./tokens/SecurityToken.sol')
2122

2223
let BigNumber = require('bignumber.js');
2324
const cappedSTOSetupCost = new BigNumber(20000).times(new BigNumber(10).pow(18)); // 20K POLY fee
@@ -132,8 +133,8 @@ module.exports = function (deployer, network, accounts) {
132133
return deployer.deploy(TokenLib, {from: PolymathAccount});
133134
}).then(() => {
134135
// Link libraries
135-
return deployer.link(TokenLib, STFactory);
136-
}).then(() => {
136+
deployer.link(TokenLib, SecurityToken);
137+
deployer.link(TokenLib, STFactory);
137138
// A) Deploy the ModuleRegistry Contract (It contains the list of verified ModuleFactory)
138139
return deployer.deploy(ModuleRegistry, {from: PolymathAccount});
139140
}).then(() => {
@@ -290,6 +291,8 @@ module.exports = function (deployer, network, accounts) {
290291
return polymathRegistry.changeAddress("PolyUsdOracle", POLYOracle, {from: PolymathAccount});
291292
}).then(() => {
292293
return polymathRegistry.changeAddress("EthUsdOracle", ETHOracle, {from: PolymathAccount});
294+
}).then(() => {
295+
return deployer.deploy(SecurityToken, 'a', 'a', 18, 1, 'a', polymathRegistry.address, {from: PolymathAccount});
293296
}).then(() => {
294297
console.log('\n');
295298
console.log(`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"solidity-coverage": "^0.5.11",
9494
"solidity-docgen": "^0.1.0",
9595
"solium": "^1.1.6",
96-
"truffle": "^4.1.13",
96+
"truffle": "4.1.14",
9797
"truffle-wallet-provider": "0.0.5"
9898
},
9999
"greenkeeper": {

0 commit comments

Comments
 (0)