-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make use of useChainIdOfForkedNetwork for forks indexing
- Loading branch information
Showing
18 changed files
with
54 additions
and
129 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
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
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
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,23 +1,20 @@ | ||
import {Deployment, loadEnvironment} from 'rocketh'; | ||
import {Deployment} from 'rocketh'; | ||
import {context} from '../deploy/_context'; | ||
import hre from 'hardhat'; | ||
import {fetchContract} from '../utils/connection'; | ||
import {loadEnvironmentFromHardhat} from 'hardhat-rocketh/helpers'; | ||
import artifacts from 'solidity-kit/generated/artifacts'; | ||
|
||
async function main() { | ||
const env = await loadEnvironment( | ||
{ | ||
provider: hre.network.provider, | ||
network: hre.network.name, | ||
}, | ||
context, | ||
); | ||
const env = await loadEnvironmentFromHardhat({hre, context}); | ||
|
||
const args = process.argv.slice(2); | ||
const account = (args[0] || process.env.ACCOUNT) as `0x${string}`; | ||
const Stratagems = env.deployments.Stratagems as Deployment<typeof context.artifacts.IStratagemsDebug.abi>; | ||
const StratagemsContract = await fetchContract(Stratagems); | ||
const timestamp = await StratagemsContract.read.timestamp(); | ||
const Time = env.deployments.Stratagems as Deployment<typeof artifacts.Time.abi>; | ||
const timestamp = await env.read(Time, { | ||
functionName: 'timestamp', | ||
args: [], | ||
}); | ||
|
||
console.log({account, timeContract: StratagemsContract.address, timestamp: timestamp.toString()}); | ||
console.log({account, timeContract: Time.address, timestamp: timestamp.toString()}); | ||
} | ||
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
Oops, something went wrong.