-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes necessary to deploy icon-bsc because of bsh merge to bts
- Loading branch information
Manish
committed
Jul 10, 2022
1 parent
e324efe
commit 4f715fa
Showing
9 changed files
with
403 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const BTSCore = artifacts.require("BTSCore"); | ||
const address = require('./addresses.json'); | ||
module.exports = async function (callback) { | ||
try { | ||
var argv = require('minimist')(process.argv.slice(2), { string: ['addr'] }); | ||
const btsCore = await BTSCore.deployed(); | ||
switch (argv["method"]) { | ||
case "setFeeRatio": | ||
tx = await btsCore.setFeeRatio(argv.name, argv.feeNumerator, argv.fixedFee); | ||
console.log(tx); | ||
break; | ||
case "register": | ||
tx = await btsCore.register(argv.name, argv.symbol, argv.decimals, argv.feeNumerator, argv.fixedFee, argv.addr); | ||
console.log(tx); | ||
break; | ||
case "coinId": | ||
tx = await btsCore.coinId(argv.coinName); | ||
console.log(tx); | ||
break; | ||
default: | ||
console.error("Bad input for method, ", argv) | ||
} | ||
} | ||
catch (error) { | ||
console.log(error) | ||
} | ||
callback() | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.