-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'g-handle-decimals' into e2e-decimals
- Loading branch information
Showing
28 changed files
with
645 additions
and
13,340 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 |
---|---|---|
|
@@ -7,3 +7,4 @@ src/lib/abi/** | |
.nyc_output | ||
out/** | ||
lib/** | ||
src/mocks/MultiCallTest.sol |
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,32 @@ | ||
import { ethers } from 'hardhat' | ||
import '@nomiclabs/hardhat-ethers' | ||
import { deployAndSetCacheManager } from '../deploymentUtils' | ||
|
||
async function main() { | ||
/// read env vars needed for deployment | ||
let chainOwnerPrivKey = process.env.CHAIN_OWNER_PRIVKEY as string | ||
if (!chainOwnerPrivKey) { | ||
throw new Error('CHAIN_OWNER_PRIVKEY not set') | ||
} | ||
|
||
const childChainRpc = process.env.CHILD_CHAIN_RPC as string | ||
if (!childChainRpc) { | ||
throw new Error('CHILD_CHAIN_RPC not set') | ||
} | ||
|
||
const chainOwnerWallet = new ethers.Wallet( | ||
chainOwnerPrivKey, | ||
new ethers.providers.JsonRpcProvider(childChainRpc) | ||
) | ||
|
||
// deploy cache manager | ||
const cacheManager = await deployAndSetCacheManager(chainOwnerWallet, false) | ||
console.log('Cache manager deployed at:', cacheManager.address) | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch((error: 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
Oops, something went wrong.