-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from hackdays-io/issue/115
deploy
- Loading branch information
Showing
9 changed files
with
129 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
·------------------------|----------------------------|-------------|-----------------------------· | ||
| Solc version: 0.8.24 · Optimizer enabled: false · Runs: 200 · Block limit: 30000000 gas │ | ||
·························|····························|·············|······························ | ||
| Methods │ | ||
··············|··········|··············|·············|·············|···············|·············· | ||
| Contract · Method · Min · Max · Avg · # calls · usd (avg) │ | ||
··············|··········|··············|·············|·············|···············|·············· | ||
| Deployments · · % of limit · │ | ||
·························|··············|·············|·············|···············|·············· | ||
| BigBang · - · - · 1089851 · 3.6 % · - │ | ||
·························|··············|·············|·············|···············|·············· | ||
| FractionToken · - · - · 2573797 · 8.6 % · - │ | ||
·························|··············|·············|·············|···············|·············· | ||
| Hats · - · - · 7032431 · 23.4 % · - │ | ||
·························|··············|·············|·············|···············|·············· | ||
| HatsModule · - · - · 754132 · 2.5 % · - │ | ||
·························|··············|·············|·············|···············|·············· | ||
| HatsModuleFactory · - · - · 1101122 · 3.7 % · - │ | ||
·························|··············|·············|·············|···············|·············· | ||
| HatsTimeFrameModule · - · - · 1115811 · 3.7 % · - │ | ||
·························|··············|·············|·············|···············|·············· | ||
| PullSplitFactory · 4535815 · 4535827 · 4535824 · 15.1 % · - │ | ||
·························|··············|·············|·············|···············|·············· | ||
| PushSplitFactory · 4483101 · 4483113 · 4483110 · 14.9 % · - │ | ||
·························|··············|·············|·············|···············|·············· | ||
| SplitsCreator · - · - · 1515444 · 5.1 % · - │ | ||
·························|··············|·············|·············|···············|·············· | ||
| SplitsCreatorFactory · - · - · 526836 · 1.8 % · - │ | ||
·························|··············|·············|·············|···············|·············· | ||
| SplitsWarehouse · - · - · 3934655 · 13.1 % · - │ | ||
·------------------------|--------------|-------------|-------------|---------------|-------------· |
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,46 @@ | ||
import { Address, zeroAddress } from "viem"; | ||
import { deployFractionToken } from "../../helpers/deploy/FractionToken"; | ||
import { deployHatsTimeFrameModule } from "../../helpers/deploy/Hats"; | ||
import { | ||
deploySplitsCreator, | ||
deploySplitsCreatorFactory, | ||
} from "../../helpers/deploy/Splits"; | ||
import { deployBigBang } from "../../helpers/deploy/BigBang"; | ||
|
||
const deployAll = async () => { | ||
const { HatsTimeFrameModule } = await deployHatsTimeFrameModule(); | ||
|
||
const { FractionToken } = await deployFractionToken( | ||
"", | ||
10000n, | ||
process.env.HATS_ADDRESS as Address, | ||
zeroAddress | ||
); | ||
|
||
const { SplitsCreator } = await deploySplitsCreator(); | ||
|
||
const { SplitsCreatorFactory } = await deploySplitsCreatorFactory( | ||
SplitsCreator.address | ||
); | ||
|
||
const { BigBang } = await deployBigBang({ | ||
trustedForwarder: zeroAddress, | ||
hatsContractAddress: process.env.HATS_ADDRESS as Address, | ||
hatsModuleFacotryAddress: process.env | ||
.HATS_MODULE_FACTORY_ADDRESS as Address, | ||
hatsTimeFrameModule_impl: HatsTimeFrameModule.address, | ||
splitsCreatorFactoryAddress: SplitsCreatorFactory.address, | ||
splitsFactoryV2Address: process.env.PULL_SPLITS_FACTORY_ADDRESS as Address, | ||
fractionTokenAddress: FractionToken.address, | ||
}); | ||
|
||
console.log("BigBang deployed at", BigBang.address); | ||
console.log("FractionToken deployed at", FractionToken.address); | ||
console.log("SplitsCreatorFactory deployed at", SplitsCreatorFactory.address); | ||
console.log("SplitsCreator deployed at", SplitsCreator.address); | ||
console.log("HatsTimeFrameModule deployed at", HatsTimeFrameModule.address); | ||
|
||
return; | ||
}; | ||
|
||
deployAll(); |
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 was deleted.
Oops, something went wrong.