Skip to content

Commit

Permalink
gov package update
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-chain committed Jul 15, 2022
1 parent 92380ae commit dce3708
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 50 deletions.
2 changes: 1 addition & 1 deletion contracts/DebondToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pragma solidity ^0.8.0;
*/

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "debond-governance-contracts/utils/GovernanceOwnable.sol";
import "@debond-protocol/debond-governance-contracts/utils/GovernanceOwnable.sol";
import "./interfaces/IDebondToken.sol";

abstract contract DebondToken is IDebondToken, ERC20, GovernanceOwnable {
Expand Down
2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@debond-protocol/debond-token-contracts",
"version": "0.0.1",
"version": "0.0.2",
"description": "Debond Token Contracts for DGOV and DBIT Tokens.",
"main": "index.js",
"scripts": {
Expand Down
56 changes: 33 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "ISC",
"dependencies": {
"@openzeppelin/contracts": "^4.5.0",
"debond-governance-contracts": "^0.0.1",
"@debond-protocol/debond-governance-contracts": "0.0.1",
"dotenv": "^16.0.0"
},
"devDependencies": {
Expand All @@ -35,4 +35,4 @@
"typescript": "^4.4.4",
"web3": "^1.7.1"
}
}
}
27 changes: 4 additions & 23 deletions truffle-config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require("ts-node").register({files: true});
require("ts-node").register({ files: true });
const HDWalletProvider = require("truffle-hdwallet-provider");
require('dotenv').config();
const Web3 = require("web3");
Expand All @@ -12,20 +12,20 @@ module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
port: 7545,
network_id: "*",
gas: 3500000
},
rinkeby: {
provider: function() {
provider: function () {
return new HDWalletProvider(process.env.TESTNET_PRIVATE_KEY, `https://rinkeby.infura.io/v3/${process.env.INFURA_Access_Token}`);
},
network_id: 4,
// gas: 30000000, //from ganache-cli output
// gasPrice: web3.utils.toWei('1', 'gwei')
},
ropsten: {
provider: function() {
provider: function () {
return new HDWalletProvider(process.env.TESTNET_PRIVATE_KEY, `https://ropsten.infura.io/v3/${process.env.INFURA_Access_Token}`);
},
network_id: 3,
Expand All @@ -48,22 +48,3 @@ module.exports = {
}
}
};


/**
* TODO: add the following settings above when needed:
module.exports = {
compilers: {
external: {
command: "./compile-contracts",
targets: [{
path: "./path/to/preprocessed-artifacts/*.json",
command: "./process-artifact"
}]
}
}
}
*
*
*
*/

0 comments on commit dce3708

Please sign in to comment.