-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from safe-global/add_meter_verse
- Loading branch information
Showing
5 changed files
with
48 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"gasPrice": 1000000000000, | ||
"gasLimit": 100000, | ||
"signerAddress": "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37", | ||
"transaction": "0xf8a68085e8d4a51000830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf381b4a08eb29ce8f78c551ff99f258578d7d9bcff0e77d51877c17feb1e9f2585a36c57a062efdcd3befb6d5d02a9fb590cc03031d0bc447738f6503671438a4a21b4e195", | ||
"address": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7" | ||
} |
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,7 @@ | ||
{ | ||
"gasPrice": 1000000000000, | ||
"gasLimit": 100000, | ||
"signerAddress": "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37", | ||
"transaction": "0xf8a68085e8d4a51000830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf381c8a0bcd675c83021a2c62f9cab890dacfacb8d660065c2c9b94ea7bea5b84c7d7dcea0059e3de692bc0647e5e0c44ae1812d54bf827ad18f0329fef571d45bc0316a4c", | ||
"address": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7" | ||
} |
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,7 @@ | ||
{ | ||
"gasPrice": 1000000000000, | ||
"gasLimit": 100000, | ||
"signerAddress": "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37", | ||
"transaction": "0xf8a68085e8d4a51000830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf381c9a0441a601284508145132f4ccdb5895e4b7862e5424ccaafb8c16435037b42ed2ea06e6c977dc8bad30634375278785cc83df9b9b58c510aa72b99d28f7bb17f368c", | ||
"address": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7" | ||
} |
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,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) | ||
}) |