File tree 4 files changed +18
-3
lines changed
devnet/docker/icon-bsc/scripts
4 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
- const BTSCore = artifacts . require ( "BTSCoreV3 " ) ;
1
+ const BTSCore = artifacts . require ( "BTSCore " ) ;
2
2
const BTSOwnerManager = artifacts . require ( "BTSOwnerManager" ) ;
3
3
module . exports = async function ( callback ) {
4
4
try {
@@ -29,12 +29,12 @@ module.exports = async function (callback) {
29
29
break ;
30
30
case "addOwner" :
31
31
console . log ( "Add bts owner " , argv . addr )
32
- tx = await btsCore . addOwner ( argv . addr )
32
+ tx = await btsOwnerManager . addOwner ( argv . addr )
33
33
console . log ( tx )
34
34
break ;
35
35
case "removeOwner" :
36
36
console . log ( "Remove bts owner " , argv . addr )
37
- tx = await btsCore . removeOwner ( argv . addr )
37
+ tx = await btsOwnerManager . removeOwner ( argv . addr )
38
38
console . log ( tx )
39
39
break ;
40
40
case "getOwners" :
Original file line number Diff line number Diff line change @@ -327,6 +327,8 @@ generate_metadata() {
327
327
wait_for_file $CONFIG_DIR /bsc.addr.btscore
328
328
jq -r ' .networks[] | .address' build/contracts/BTSPeriphery.json > $CONFIG_DIR /bsc.addr.btsperiphery
329
329
wait_for_file $CONFIG_DIR /bsc.addr.btsperiphery
330
+ jq -r ' .networks[] | .address' build/contracts/BTSOwnerManager.json > $CONFIG_DIR /bsc.addr.btsownermanager
331
+ wait_for_file $CONFIG_DIR /bsc.addr.btsownermanager
330
332
echo " DONE."
331
333
;;
332
334
* )
Original file line number Diff line number Diff line change 101
101
echo " " \" BMCManagement\" : \" $( cat $CONFIG_DIR /bsc.addr.bmcmanagement) \" ,
102
102
echo " " \" BMCPeriphery\" : \" $( cat $CONFIG_DIR /bsc.addr.bmcperiphery) \" ,
103
103
echo " " \" BTSCore\" : \" $( cat $CONFIG_DIR /bsc.addr.btscore) \" ,
104
+ echo " " \" BTSOwnerManager\" : \" $( cat $CONFIG_DIR /bsc.addr.btsownermanager) \" ,
104
105
echo " " \" BTSPeriphery\" : \" $( cat $CONFIG_DIR /bsc.addr.btsperiphery) \"
105
106
echo " }"
106
107
echo " }"
Original file line number Diff line number Diff line change 1
1
const BTSPeriphery = artifacts . require ( "BTSPeriphery" ) ;
2
2
const BTSCore = artifacts . require ( "BTSCore" ) ;
3
+ const BTSOwnerManager = artifacts . require ( "BTSOwnerManager" ) ;
3
4
const { deployProxy} = require ( "@openzeppelin/truffle-upgrades" ) ;
4
5
5
6
module . exports = async function ( deployer , network ) {
6
7
if ( network !== "development" ) {
8
+ console . log ( 'Start deploy Proxy BTSOwnerManager ' ) ;
9
+
10
+ await deployProxy (
11
+ BTSOwnerManager ,
12
+ { deployer }
13
+ ) ;
14
+
15
+ const btsOwnerManager = await BTSOwnerManager . deployed ( ) ;
16
+
7
17
console . log ( 'Start deploy Proxy BTSCore ' ) ;
8
18
9
19
await deployProxy (
@@ -12,6 +22,7 @@ module.exports = async function (deployer, network) {
12
22
process . env . BSH_COIN_NAME ,
13
23
process . env . BSH_COIN_FEE ,
14
24
process . env . BSH_FIXED_FEE ,
25
+ btsOwnerManager . address
15
26
] ,
16
27
{ deployer}
17
28
) ;
@@ -29,6 +40,7 @@ module.exports = async function (deployer, network) {
29
40
console . log ( 'Updating BTS periphery' ) ;
30
41
await btsCore . updateBTSPeriphery ( BTSPeriphery . address ) ;
31
42
43
+ console . log ( "BTS Owner Manager deployed, address: " + btsOwnerManager . address ) ;
32
44
console . log ( 'BTSCore: ' + btsCore . address ) ;
33
45
console . log ( 'BTSPeriphery: ' + BTSPeriphery . address ) ;
34
46
You can’t perform that action at this time.
0 commit comments