Skip to content

Commit

Permalink
Merge pull request #29 from safe-global/add_meter_verse
Browse files Browse the repository at this point in the history
Closes #26: Add meter network; Closes #27: Add verse network
  • Loading branch information
rmeissner authored May 13, 2022
2 parents c0924ed + 4b50f12 commit d22e939
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
7 changes: 7 additions & 0 deletions artifacts/72/deployment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"gasPrice": 1000000000000,
"gasLimit": 100000,
"signerAddress": "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37",
"transaction": "0xf8a68085e8d4a51000830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf381b4a08eb29ce8f78c551ff99f258578d7d9bcff0e77d51877c17feb1e9f2585a36c57a062efdcd3befb6d5d02a9fb590cc03031d0bc447738f6503671438a4a21b4e195",
"address": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7"
}
7 changes: 7 additions & 0 deletions artifacts/82/deployment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"gasPrice": 1000000000000,
"gasLimit": 100000,
"signerAddress": "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37",
"transaction": "0xf8a68085e8d4a51000830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf381c8a0bcd675c83021a2c62f9cab890dacfacb8d660065c2c9b94ea7bea5b84c7d7dcea0059e3de692bc0647e5e0c44ae1812d54bf827ad18f0329fef571d45bc0316a4c",
"address": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7"
}
7 changes: 7 additions & 0 deletions artifacts/83/deployment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"gasPrice": 1000000000000,
"gasLimit": 100000,
"signerAddress": "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37",
"transaction": "0xf8a68085e8d4a51000830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf381c9a0441a601284508145132f4ccdb5895e4b7862e5424ccaafb8c16435037b42ed2ea06e6c977dc8bad30634375278785cc83df9b9b58c510aa72b99d28f7bb17f368c",
"address": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
26 changes: 26 additions & 0 deletions scripts/status.ts
Original file line number Diff line number Diff line change
@@ -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)
})

0 comments on commit d22e939

Please sign in to comment.