-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:originalworks/protocol
- Loading branch information
Showing
17 changed files
with
404 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { deployDdexSequencer } from "../actions/contract-deployment/DdexSequencer/DdexSequencer.deploy"; | ||
import { deployOwnToken } from "../actions/contract-deployment/OwnToken/OwnToken.deploy"; | ||
import { deployStakeVault } from "../actions/contract-deployment/StakeVault/StakeVault.deploy"; | ||
import { deployWhitelist } from "../actions/contract-deployment/Whitelist/Whitelist.deploy"; | ||
import { ethers } from "hardhat"; | ||
import { getKurtosisEthersWallets } from "../fixture/fixture.deploy"; | ||
|
||
const SLASH_RATE = 1000; | ||
|
||
async function main() { | ||
const [signer, validator, validator2, dataProvider, dataProvider2] = | ||
getKurtosisEthersWallets(); | ||
|
||
const dataProvidersWhitelist = await deployWhitelist(signer, [ | ||
dataProvider.address, | ||
dataProvider2.address, | ||
]); | ||
const validatorsWhitelist = await deployWhitelist(signer, [ | ||
validator.address, | ||
validator2.address, | ||
]); | ||
const ownToken = await deployOwnToken(); | ||
const stakeVault = await deployStakeVault({ | ||
stakeTokenAddress: await ownToken.getAddress(), | ||
_slashRate: SLASH_RATE, | ||
}); | ||
const ddexSequencer = await deployDdexSequencer({ | ||
dataProvidersWhitelist: await dataProvidersWhitelist.getAddress(), | ||
validatorsWhitelist: await validatorsWhitelist.getAddress(), | ||
stakeVaultAddress: await stakeVault.getAddress(), | ||
}); | ||
|
||
console.log({ | ||
token: await ownToken.getAddress(), | ||
deployer: await signer.getAddress(), | ||
validator: validator.address, | ||
validator2: validator2.address, | ||
dataProvider: dataProvider.address, | ||
dataProvider2: dataProvider2.address, | ||
ddexSequencer: await ddexSequencer.getAddress(), | ||
ownToken: await ownToken.getAddress(), | ||
dataProvidersWhitelist: await dataProvidersWhitelist.getAddress(), | ||
validatorsWhitelist: await validatorsWhitelist.getAddress(), | ||
}); | ||
} | ||
|
||
main(); |
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 @@ | ||
use alloy::primitives::{address, Address}; | ||
|
||
pub const DDEX_SEQUENCER_ADDRESS: Address = address!("00c042C4D5D913277CE16611a2ce6e9003554aD5"); | ||
pub const DDEX_SEQUENCER_ADDRESS: Address = address!("B965D10739e19a9158e7f713720B0145D996E370"); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.