-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove bnb address from configs
- Loading branch information
Showing
12 changed files
with
87 additions
and
183 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import configureFeeds from '@venusprotocol/oracle/dist/deploy/2-configure-feeds'; | ||
import configureFeeds from '@venusprotocol/oracle/dist/deploy/3-configure-feeds'; | ||
|
||
export default configureFeeds; |
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
133 changes: 0 additions & 133 deletions
133
patches/@venusprotocol+governance-contracts+1.4.0-dev.6.patch
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
patches/@venusprotocol+governance-contracts+1.4.0-dev.7.patch
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,30 @@ | ||
diff --git a/node_modules/@venusprotocol/governance-contracts/contracts/legacy/GovernorAlpha.sol b/node_modules/@venusprotocol/governance-contracts/contracts/legacy/GovernorAlpha.sol | ||
index fca5350..4713034 100644 | ||
--- a/node_modules/@venusprotocol/governance-contracts/contracts/legacy/GovernorAlpha.sol | ||
+++ b/node_modules/@venusprotocol/governance-contracts/contracts/legacy/GovernorAlpha.sol | ||
@@ -27,8 +27,8 @@ contract GovernorAlpha { | ||
|
||
/// @notice The duration of voting on a proposal, in blocks | ||
function votingPeriod() public pure returns (uint) { | ||
- return (60 * 60 * 24 * 3) / 3; | ||
- } // ~3 days in blocks (assuming 3s blocks) | ||
+ return 100; | ||
+ } // A reasonable amount of block suitable for testing | ||
|
||
/// @notice The address of the Venus Protocol Timelock | ||
TimelockInterface public timelock; | ||
diff --git a/node_modules/@venusprotocol/governance-contracts/contracts/legacy/GovernorAlpha2.sol b/node_modules/@venusprotocol/governance-contracts/contracts/legacy/GovernorAlpha2.sol | ||
index c009718..0e8e8ec 100644 | ||
--- a/node_modules/@venusprotocol/governance-contracts/contracts/legacy/GovernorAlpha2.sol | ||
+++ b/node_modules/@venusprotocol/governance-contracts/contracts/legacy/GovernorAlpha2.sol | ||
@@ -27,8 +27,8 @@ contract GovernorAlpha2 { | ||
|
||
/// @notice The duration of voting on a proposal, in blocks | ||
function votingPeriod() public pure returns (uint) { | ||
- return (60 * 60 * 24 * 3) / 3; | ||
- } // ~3 days in blocks (assuming 3s blocks) | ||
+ return 100; | ||
+ } // A reasonable amount of block suitable for testing | ||
|
||
/// @notice The address of the Venus Protocol Timelock | ||
TimelockInterface public timelock; |
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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
import { Address } from '@graphprotocol/graph-ts'; | ||
|
||
import { | ||
comptrollerAddress as comptrollerAddressString, | ||
vBnbAddress as vBnbAddressString, | ||
} from './config'; | ||
import { comptrollerAddress as comptrollerAddressString } from './config'; | ||
|
||
export const vBnbAddress = Address.fromString(vBnbAddressString); | ||
export const comptrollerAddress = Address.fromString(comptrollerAddressString); | ||
export const nullAddress = Address.fromString('0x0000000000000000000000000000000000000000'); |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// Use yarn prepare commands to generate config typescript file per env | ||
|
||
export const vBnbAddress = '{{ vBnbAddress }}'; | ||
export const comptrollerAddress = '{{ comptrollerAddress }}'; |
Oops, something went wrong.