-
Notifications
You must be signed in to change notification settings - Fork 888
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
PARABRAHMAN0
committed
Mar 19, 2022
1 parent
1c76201
commit 570185d
Showing
2 changed files
with
61 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// libraries, functionality... | ||
import { ethers } from "hardhat"; | ||
|
||
// types | ||
import { RariFuseAllocator, RariFuseAllocator__factory } from "../../types"; | ||
import { | ||
fData, | ||
ProtocolSpecificData, | ||
FuseAllocatorInitData, | ||
} from "../../test/allocators/RariFuseAllocator.test.ts"; | ||
|
||
// data | ||
import { olympus } from "../../test/utils/olympus"; | ||
import { coins } from "../../test/utils/coins"; | ||
import { coins } from "../../test/utils/protocols"; | ||
|
||
async function main() { | ||
const AID: AllocatorInitData = { | ||
authority: olympus.authority, | ||
extender: olympus.extender, | ||
tokens: [], | ||
}; | ||
|
||
const PSD: ProtocolSpecificData = { | ||
treasury: olympus.treasury, | ||
rewards: protocols.rari.fuse.tribeRewards, | ||
}; | ||
|
||
const FAID: FuseAllocatorInitData = { | ||
base: AID, | ||
spec: PSD, | ||
}; | ||
|
||
const factory: RariFuseAllocator__factory = (await ethers.getContractFactory( | ||
"RariFuseAllocator" | ||
)) as RariFuseAllocator__factory; | ||
|
||
const allocator: RariFuseAllocator = (await factory.deploy(FAID)) as RariFuseAllocator; | ||
|
||
console.log("RariFuseAllocator deployed at:", allocator.address); | ||
} | ||
|
||
main() | ||
.then(() => process.exit()) | ||
.catch((error) => { | ||
console.error(error); | ||
process.exit(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