diff --git a/artifacts/72/deployment.json b/artifacts/72/deployment.json new file mode 100644 index 00000000..6825283b --- /dev/null +++ b/artifacts/72/deployment.json @@ -0,0 +1,7 @@ +{ + "gasPrice": 1000000000000, + "gasLimit": 100000, + "signerAddress": "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37", + "transaction": "0xf8a68085e8d4a51000830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf381b4a08eb29ce8f78c551ff99f258578d7d9bcff0e77d51877c17feb1e9f2585a36c57a062efdcd3befb6d5d02a9fb590cc03031d0bc447738f6503671438a4a21b4e195", + "address": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7" +} diff --git a/artifacts/82/deployment.json b/artifacts/82/deployment.json new file mode 100644 index 00000000..ac27dfd4 --- /dev/null +++ b/artifacts/82/deployment.json @@ -0,0 +1,7 @@ +{ + "gasPrice": 1000000000000, + "gasLimit": 100000, + "signerAddress": "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37", + "transaction": "0xf8a68085e8d4a51000830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf381c8a0bcd675c83021a2c62f9cab890dacfacb8d660065c2c9b94ea7bea5b84c7d7dcea0059e3de692bc0647e5e0c44ae1812d54bf827ad18f0329fef571d45bc0316a4c", + "address": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7" +} diff --git a/artifacts/83/deployment.json b/artifacts/83/deployment.json new file mode 100644 index 00000000..d1bfdd2d --- /dev/null +++ b/artifacts/83/deployment.json @@ -0,0 +1,7 @@ +{ + "gasPrice": 1000000000000, + "gasLimit": 100000, + "signerAddress": "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37", + "transaction": "0xf8a68085e8d4a51000830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf381c9a0441a601284508145132f4ccdb5895e4b7862e5424ccaafb8c16435037b42ed2ea06e6c977dc8bad30634375278785cc83df9b9b58c510aa72b99d28f7bb17f368c", + "address": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7" +} diff --git a/package.json b/package.json index 050a6b6a..d566c874 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ ], "scripts": { "compile": "ts-node scripts/compile.ts", + "status": "ts-node scripts/status.ts", "estimate": "ts-node scripts/estimate.ts", "build": "yarn rimraf dist && tsc", "prepublish": "yarn build" diff --git a/scripts/status.ts b/scripts/status.ts new file mode 100644 index 00000000..95df4a5c --- /dev/null +++ b/scripts/status.ts @@ -0,0 +1,26 @@ +import { promises as filesystem } from 'fs' +import * as path from 'path' +import { ethers } from 'ethers' +import dotenv from "dotenv"; + +dotenv.config() + +async function doStuff() { + const rpcUrl = process.env.RPC + const provider = new ethers.providers.JsonRpcProvider(rpcUrl) + const chainId = (await provider.getNetwork()).chainId + console.log({chainId}) + const filePath = path.join(__dirname, "..", "artifacts", `${chainId}`, "deployment.json") + const deployment = JSON.parse((await filesystem.readFile(filePath)).toString()) + const address = deployment.address + console.log({address}) + const code = await provider.getCode(address) + console.log({code}) +} + +doStuff().then(() => { + process.exit(0) +}).catch(error => { + console.error(error) + process.exit(1) +})