generated from amanusk/hardhat-template
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(week-5-deployment): deploys the March version of the protcol, rc-3
- Loading branch information
1 parent
d965cd9
commit ae6c200
Showing
10 changed files
with
171 additions
and
51 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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"chainId": 5, | ||
"version": "0130d5c293a17ae380b71ff57c4a16d516f8757b", | ||
"deploymentDate": 1643598288194, | ||
"version": "d965cd9497ed3b9ab42ed42d0455d7417312cdb6", | ||
"deploymentDate": 1646268922032, | ||
"_isDev": false, | ||
"startBlock": 6294759, | ||
"startBlock": 6469455, | ||
"addresses": { | ||
"primitiveFactory": "0xae0154F356b4Aa58A39756577bDCcBFd7267d5Fe", | ||
"positionRenderer": "0x6e6C7EC3A74E5f007ac8Ad4648757f2Ef72Fa8ea", | ||
"positionDescriptor": "0x1D32EF9bA7292D35793E6935CC14613f200f8782", | ||
"primitiveManager": "0xF48EB8f36A01B7736fd4aa47543C14757C2beF93", | ||
"positionRendererProxyAdmin": "", | ||
"positionRendererTransparentUpgradeableProxy": "" | ||
"primitiveFactory": "0xd4594213a5ad853147c130a945C2A1FdEa64798D", | ||
"positionRenderer": "0x88B9468E503eF1B18699dd6f9423810328f7497B", | ||
"positionDescriptor": "0x196dF0E486df422E400865Fc1d399227b710B2b4", | ||
"primitiveManager": "0xcF2E24E9574654Ec05238359d160FDCDb6bA517f", | ||
"positionRendererProxyAdmin": "0xF59e56e40bEff6F28c93Af1a2947A6e8f1d135DB", | ||
"positionRendererTransparentUpgradeableProxy": "0x05c9bDB5b8E0d91b17628e5a2C339189377FF735" | ||
} | ||
} | ||
} |
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,15 +1,15 @@ | ||
{ | ||
"chainId": 42, | ||
"version": "0130d5c293a17ae380b71ff57c4a16d516f8757b", | ||
"deploymentDate": 1643598250229, | ||
"version": "d965cd9497ed3b9ab42ed42d0455d7417312cdb6", | ||
"deploymentDate": 1646268862272, | ||
"_isDev": false, | ||
"startBlock": 29567177, | ||
"startBlock": 30147620, | ||
"addresses": { | ||
"primitiveFactory": "0xc2150C4BB6d78642B8750D5Cf6fCd76E15838C2C", | ||
"positionRenderer": "0x40d9017D6aBD06e6fD6df7cB36D7AF05aCE833DD", | ||
"positionDescriptor": "0x8AD914f2682d1956fC06Bf5657e9512C2e2C2e4d", | ||
"primitiveManager": "0xdf0fc20e001CEbC4Bb32FeCe7ceBa260F64F2D28", | ||
"positionRendererProxyAdmin": "", | ||
"positionRendererTransparentUpgradeableProxy": "" | ||
"primitiveFactory": "0x17C74913b07496C0806c009A7f9B127B89B8a66D", | ||
"positionRenderer": "0xC17880e89bCcF2954792983113577E7E8729Cb49", | ||
"positionDescriptor": "0x76a0578038CBA1991882961d5FB502F5DA73A3D7", | ||
"primitiveManager": "0x3F6C2A259Ad0E261F5251423315b74049086Ab09", | ||
"positionRendererProxyAdmin": "0xDb16F11935D05379D4f304B2199D1bFf8748A251", | ||
"positionRendererTransparentUpgradeableProxy": "0xe57ac68EF5770c1EcEDF9a08fc9989569d5C045f" | ||
} | ||
} | ||
} |
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,15 +1,15 @@ | ||
{ | ||
"chainId": 4, | ||
"version": "5ff972053bf204575dc2c5d63017da90a666d506", | ||
"deploymentDate": 1643846132237, | ||
"version": "d965cd9497ed3b9ab42ed42d0455d7417312cdb6", | ||
"deploymentDate": 1646268758062, | ||
"_isDev": false, | ||
"startBlock": 10101597, | ||
"startBlock": 10261394, | ||
"addresses": { | ||
"primitiveFactory": "0xBCB72cC1b2Afd9462722eA7f698Bf66e0A78c534", | ||
"positionRenderer": "0xF0b3b8Cba38Cc4628ddcfac98FFE2249575d459e", | ||
"positionDescriptor": "0x1e2CD4F4a2B156e1cB5a0869B812D116aBc9d7A0", | ||
"primitiveManager": "0x3662c4eCb5b3b0805C8Af689D664796Dc74fAB94", | ||
"positionRendererProxyAdmin": "0x9315BCD544f4768EF3bC922494CD6b4e0e57742e", | ||
"positionRendererTransparentUpgradeableProxy": "0x2dCfd996a459AA0e699522c9F49f6d33a8066e1e" | ||
"primitiveFactory": "0xAa45eD811cdb3BCde65D112A9B35306F4eAD973E", | ||
"positionRenderer": "0x54cE2cB3B8c15F697d1558D36Bf1e411bc2dFc6B", | ||
"positionDescriptor": "0xD899BA6395D0b3BA36ece51523Ed9B134Eb7e51B", | ||
"primitiveManager": "0xaF89207127C6a9CB7206618eE1963fC15022dAbb", | ||
"positionRendererProxyAdmin": "0xae355C24fbAda2bCF5d8f8D7350a9705497df4A5", | ||
"positionRendererTransparentUpgradeableProxy": "0x3C5d6Aa169DA5aCA7931B240084Ba2112567C946" | ||
} | ||
} |
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,37 @@ | ||
import hre from 'hardhat' | ||
import { Signer } from '@ethersproject/abstract-signer' | ||
import { DefenderRelaySigner } from 'defender-relay-client/lib/ethers' | ||
|
||
import { log, setSilent } from '../utils/deploy' | ||
import { deployEngine } from '../utils/deployEngine' | ||
|
||
type Signers = Signer | DefenderRelaySigner | ||
|
||
export async function main() { | ||
setSilent(false) | ||
|
||
const signer: Signers = await hre.run('useSigner') | ||
const from = await signer.getAddress() | ||
log(`Using signer: ${from}`) | ||
|
||
const rmm = await hre.connect(signer) | ||
|
||
log(`Connected to RMM: `, rmm.connection.addresses) | ||
|
||
const chainId = rmm.connection.chainId | ||
log(`Using chainId: ${chainId}`) | ||
|
||
if (chainId === 1) throw new Error('Do not use this in prod!') | ||
|
||
const risky = '0xc778417E063141139Fce010982780140Aa0cD5Ab' // rinkeby:WETH: FIX | ||
const stable = '0x522064c1EafFEd8617BE64137f66A71D6C5c9aA3' // rinkeby:USDC: FIX | ||
|
||
await deployEngine(rmm, risky, stable) | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.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
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,18 @@ | ||
import hre from 'hardhat' | ||
|
||
import { log, setSilent } from '../utils/deploy' | ||
import { TASK_GET_ENGINE, USDC_RINKEBY, WETH_RINKEBY } from '../tasks/constants' | ||
|
||
export async function main() { | ||
setSilent(false) | ||
const engine = await hre.run(TASK_GET_ENGINE, { risky: WETH_RINKEBY, stable: USDC_RINKEBY }) | ||
|
||
log(`Got the engine for WETH`, engine.address) | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.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
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