mirror of
https://github.com/getwax/bls-wallet.git
synced 2026-01-09 13:58:03 -05:00
Add Optimism Goerli deploy to README
Add Optimism Goerli network config to contracts deploy in main README. Add Optimism Goerli to extension networks. Remove or update rinkeby, kovan, and older arbitrum and optimism test networks.
This commit is contained in:
@@ -41,7 +41,7 @@ Prototype browser extension used to manage BLS Wallets and sign transactions.
|
||||
See [./contracts/networks](./contracts/networks/) for a list of all contract deployment (network) manifests. Have an L2/rollup testnet you'd like BLS Wallet deployed on? [Open an issue](https://github.com/web3well/bls-wallet/issues/new) or [Deploy it yourself](./docs/remote_development.md)
|
||||
|
||||
- [Arbitrum Goerli](./contracts/networks/arbitrum-goerli.json)
|
||||
- [Arbitrum Rinkby](./contracts/networks/arbitrum-testnet.json) (deprecated, outdated)
|
||||
- [Optimism Goerli](./contracts/networks/optimism-goerli.json)
|
||||
|
||||
## Ways to Contribute
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
} from 'bls-wallet-aggregator-proxy';
|
||||
|
||||
runAggregatorProxy(
|
||||
'https://arbitrum-testnet.blswallet.org',
|
||||
'https://arbitrum-goerli.blswallet.org',
|
||||
async bundle => {
|
||||
console.log('proxying bundle', JSON.stringify(bundle, null, 2));
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { runAggregatorProxy } from "../src";
|
||||
|
||||
runAggregatorProxy(
|
||||
'https://arbitrum-testnet.blswallet.org',
|
||||
'https://arbitrum-goerli.blswallet.org',
|
||||
async b => {
|
||||
console.log('proxying bundle', JSON.stringify(b, null, 2));
|
||||
return b;
|
||||
|
||||
@@ -23,7 +23,8 @@ you might have:
|
||||
|
||||
```
|
||||
.env.local
|
||||
.env.optimistic-kovan
|
||||
.env.arbitrum-goerli
|
||||
.env.optimism-goerli
|
||||
```
|
||||
|
||||
If you don't have a `.env`, you will need to append `--env <name>` to all
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
ETHERSCAN_API_KEY=
|
||||
|
||||
ROPSTEN_URL=fill_me_in
|
||||
RINKEBY_URL=fill_me_in
|
||||
ARBITRUM_TESTNET_URL=https://rinkeby.arbitrum.io/rpc
|
||||
ARBITRUM_TESTNET_URL=TODO_REMOVE
|
||||
ARBITRUM_GOERLI_URL=https://goerli-rollup.arbitrum.io/rpc
|
||||
ARBITRUM_URL=https://arb1.arbitrum.io/rpc
|
||||
OPTIMISM_LOCAL_URL=http://localhost:8545
|
||||
@@ -20,8 +18,6 @@ DEPLOYER_CONTRACT_ADDRESS=0x036d996D6855B83cd80142f2933d8C2617dA5617
|
||||
MAIN_MNEMONIC="test test test test test test test test test test test junk"
|
||||
|
||||
PRIVATE_KEY_AGG=0000000000000000000000000000000000000000000000000000000000000a99
|
||||
PRIVATE_KEY_AGG_OKOV=0000000000000000000000000000000000000000000000000000000000000001
|
||||
PRIVATE_KEY_AGG_RINKARBY=0000000000000000000000000000000000000000000000000000000000000001
|
||||
PRIVATE_KEY_AGG_ARB1=0000000000000000000000000000000000000000000000000000000000000001
|
||||
PRIVATE_KEY_002=0000000000000000000000000000000000000000000000000000000000000002
|
||||
PRIVATE_KEY_003=0000000000000000000000000000000000000000000000000000000000000003
|
||||
|
||||
@@ -107,7 +107,7 @@ To run integration tests:
|
||||
- L2 - http://localhost:8545 (chainId 420)
|
||||
|
||||
## Deploy scripts
|
||||
Specify network - `yarn hardhat run scripts/<#_script.ts> --network arbitrum-testnet`
|
||||
Specify network - `yarn hardhat run scripts/<#_script.ts> --network arbitrum-goerli`
|
||||
|
||||
# License
|
||||
MIT
|
||||
|
||||
@@ -132,16 +132,6 @@ const config: HardhatUserConfig = {
|
||||
url: `http://localhost:8545`,
|
||||
accounts,
|
||||
},
|
||||
ropsten: {
|
||||
url: process.env.ROPSTEN_URL || "",
|
||||
accounts,
|
||||
},
|
||||
arbitrum_testnet: {
|
||||
// chainId: 421611
|
||||
url: process.env.ARBITRUM_TESTNET_URL,
|
||||
accounts,
|
||||
gasPrice: 1408857682, // 287938372,
|
||||
},
|
||||
arbitrum_goerli: {
|
||||
// chainId: 421613
|
||||
url: process.env.ARBITRUM_GOERLI_URL,
|
||||
@@ -157,18 +147,6 @@ const config: HardhatUserConfig = {
|
||||
url: process.env.OPTIMISM_GOERLI_URL,
|
||||
accounts,
|
||||
},
|
||||
// optimistic_local: {
|
||||
// url: process.env.OPTIMISM_LOCAL_URL,
|
||||
// accounts,
|
||||
// gasPrice: 0,//15000000,
|
||||
// ovm: true
|
||||
// },
|
||||
// optimistic_testnet: {
|
||||
// url: process.env.OPTIMISM_TESTNET_URL,
|
||||
// accounts,
|
||||
// gasPrice: 15000000,
|
||||
// ovm: true // This sets the network as using the ovm and ensure contract will be compiled against that.
|
||||
// }
|
||||
},
|
||||
gasReporter: {
|
||||
enabled: process.env.REPORT_GAS !== undefined,
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"parameters": {},
|
||||
"addresses": {
|
||||
"create2Deployer": "0x036d996D6855B83cd80142f2933d8C2617dA5617",
|
||||
"precompileCostEstimator": "0x22E4a5251C1F02de8369Dd6f192033F6CB7531A4",
|
||||
"blsLibrary": "0x52ED3BAF9F4b60c67D2796e8ED5f35AfA3c4938a",
|
||||
"verificationGateway": "0xa15954659EFce154a3B45cE88D8158A02bE2049A",
|
||||
"blsExpander": "0x1a1C1285a5DB87264Ca8a67075e3a27b304d3fBD",
|
||||
"utilities": "0xeC098e366368fC2269140053cE899F307A2c9209",
|
||||
"testToken": "0xAfFFb6c8e061904C2cd69F372D6a8293Db7eC0A8"
|
||||
},
|
||||
"auxiliary": {
|
||||
"chainid": 421611,
|
||||
"domain": "0x0054159611832e24cdd64c6a133e71d373c5f8553dde6c762e6bffe707ad83cc",
|
||||
"genesisBlock": 14402717,
|
||||
"deployedBy": "0x6435e511f8908D5C733898C81831a4A3aFE31D07",
|
||||
"version": "45def922036c441aa1559419470a131de3ce8ae4"
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
const blsAddresses = {
|
||||
arb1: [],
|
||||
rinkarby: [
|
||||
"0x3f509901664E21e2dc3a189C9E67DDC2864848cC",
|
||||
"0x4AA467DA53E722E0C9aa516083aC5A0b40e5a0c8",
|
||||
"0xAA0E6088e0B8801c9D679A1C715EF836129458Cc",
|
||||
],
|
||||
optimistic: [
|
||||
"0x69A9c53e7000c8B7aF3f70212ba7a8E30fB30Cb4",
|
||||
"0xAeaDee30db4e75c64BC8ABE54f818b8fc9097f1b",
|
||||
"0x4FCa9CA9938Ee6b4E3200a295b1152c72d6df0b7",
|
||||
],
|
||||
optimisticKovan: [
|
||||
"0xEc76AE8adEFc6462986A673Feff40b2Cdd56B3BC",
|
||||
"0x808AeC84A987368B915a7Fd048cd1B20859FcbC9",
|
||||
"0x00478B7Ea27581f901D84a7ea2989f68416d3568",
|
||||
],
|
||||
};
|
||||
|
||||
export default function getBLSAddresses(networkName: string): string[] {
|
||||
const addresses = blsAddresses[networkName];
|
||||
if (!addresses) {
|
||||
throw new Error(`No configuration for: "${networkName}"`);
|
||||
}
|
||||
return addresses;
|
||||
}
|
||||
@@ -37,11 +37,7 @@ describe("WalletActions", async function () {
|
||||
|
||||
let fx: Fixture;
|
||||
beforeEach(async function () {
|
||||
if (network.name === "rinkarby") {
|
||||
fx = await Fixture.create(Fixture.DEFAULT_BLS_ACCOUNTS_LENGTH);
|
||||
} else {
|
||||
fx = await Fixture.create();
|
||||
}
|
||||
fx = await Fixture.create();
|
||||
});
|
||||
|
||||
it("should register new wallet", async function () {
|
||||
|
||||
@@ -103,7 +103,7 @@ Check the [`config.json` file](../extension//config.json) to see if your network
|
||||
|
||||
---
|
||||
|
||||
## Example: Arbitrum Testnet (Arbitrum Goerli Testnet)
|
||||
## Example: Arbitrum Goerli Testnet
|
||||
|
||||
You will need two ETH addresses with Abitrum Goerli ETH and their private keys (PRIVATE_KEY_AGG & PRIVATE_KEY_ADMIN) for running the aggregator. It is **NOT** recommended that you use any primary wallets with ETH Mainnet assets.
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"displayName": "Mainnet",
|
||||
"logo": "",
|
||||
"rpcTarget": "https://mainnet.infura.io/v3/d0f317090d6645b6b494ddc6f1cce5ad",
|
||||
"chainCurrencyName": "Ethereum",
|
||||
"chainCurrencyName": "Ether",
|
||||
"chainCurrency": "ETH",
|
||||
"aggregatorUrl": "https://mainnet.blswallet.org",
|
||||
"networkKey": "mainnet",
|
||||
@@ -19,29 +19,18 @@
|
||||
"displayName": "Local Network",
|
||||
"logo": "",
|
||||
"rpcTarget": "http://127.0.0.1:8545",
|
||||
"chainCurrencyName": "Ethereum",
|
||||
"chainCurrencyName": "Ether",
|
||||
"chainCurrency": "ETH",
|
||||
"aggregatorUrl": "http://localhost:3000",
|
||||
"networkKey": "local"
|
||||
},
|
||||
"arbitrum-testnet": {
|
||||
"blockExplorerUrl": "https://rinkeby-explorer.arbitrum.io",
|
||||
"chainId": "0x66eeb",
|
||||
"displayName": "Arbitrum Test Network",
|
||||
"logo": "",
|
||||
"rpcTarget": "https://rinkeby.arbitrum.io/rpc",
|
||||
"chainCurrencyName": "Arbitrum Ether",
|
||||
"chainCurrency": "ARETH",
|
||||
"aggregatorUrl": "https://arbitrum-testnet.blswallet.org",
|
||||
"networkKey": "arbitrum-testnet"
|
||||
},
|
||||
"arbitrum-goerli": {
|
||||
"blockExplorerUrl": "https://goerli-rollup-explorer.arbitrum.io",
|
||||
"chainId": "0x66EED",
|
||||
"displayName": "Arbitrum Goerli",
|
||||
"logo": "",
|
||||
"rpcTarget": "https://goerli-rollup.arbitrum.io/rpc",
|
||||
"chainCurrencyName": "Ethereum",
|
||||
"chainCurrencyName": "Ether",
|
||||
"chainCurrency": "ETH",
|
||||
"aggregatorUrl": "https://arbitrum-goerli.blswallet.org",
|
||||
"networkKey": "arbitrum-goerli"
|
||||
@@ -58,17 +47,16 @@
|
||||
"networkKey": "arbitrum",
|
||||
"hidden": true
|
||||
},
|
||||
"optimism-kovan": {
|
||||
"blockExplorerUrl": "https://kovan-optimistic.etherscan.io",
|
||||
"chainId": "0x45",
|
||||
"displayName": "Optimism Test Network",
|
||||
"optimism-goerli": {
|
||||
"blockExplorerUrl": "https://blockscout.com/optimism/goerli/",
|
||||
"chainId": "0x1a4",
|
||||
"displayName": "Optimism Goerli",
|
||||
"logo": "",
|
||||
"rpcTarget": "https://kovan.optimism.io",
|
||||
"chainCurrencyName": "Optimistic Kovan Ether",
|
||||
"chainCurrency": "KOR",
|
||||
"aggregatorUrl": "https://optimism-kovan.blswallet.org",
|
||||
"networkKey": "optimism-kovan",
|
||||
"hidden": true
|
||||
"rpcTarget": "https://goerli.optimism.io",
|
||||
"chainCurrencyName": "Ether",
|
||||
"chainCurrency": "ETH",
|
||||
"aggregatorUrl": "https://optimism-goerli.blswallet.org",
|
||||
"networkKey": "optimism-goerli"
|
||||
},
|
||||
"optimism": {
|
||||
"blockExplorerUrl": "https://optimistic.etherscan.io",
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"displayName": "Mainnet",
|
||||
"logo": "",
|
||||
"rpcTarget": "https://mainnet.infura.io/v3/d0f317090d6645b6b494ddc6f1cce5ad",
|
||||
"chainCurrencyName": "Ethereum",
|
||||
"chainCurrencyName": "Ether",
|
||||
"chainCurrency": "ETH",
|
||||
"aggregatorUrl": "https://mainnet.blswallet.org",
|
||||
"networkKey": "mainnet",
|
||||
@@ -19,29 +19,18 @@
|
||||
"displayName": "Local Network",
|
||||
"logo": "",
|
||||
"rpcTarget": "http://127.0.0.1:8545",
|
||||
"chainCurrencyName": "Ethereum",
|
||||
"chainCurrencyName": "Ether",
|
||||
"chainCurrency": "ETH",
|
||||
"aggregatorUrl": "http://localhost:3000",
|
||||
"networkKey": "local"
|
||||
},
|
||||
"arbitrum-testnet": {
|
||||
"blockExplorerUrl": "https://rinkeby-explorer.arbitrum.io",
|
||||
"chainId": "0x66eeb",
|
||||
"displayName": "Arbitrum Test Network",
|
||||
"logo": "",
|
||||
"rpcTarget": "https://rinkeby.arbitrum.io/rpc",
|
||||
"chainCurrencyName": "Arbitrum Ether",
|
||||
"chainCurrency": "ARETH",
|
||||
"aggregatorUrl": "https://arbitrum-testnet.blswallet.org",
|
||||
"networkKey": "arbitrum-testnet"
|
||||
},
|
||||
"arbitrum-goerli": {
|
||||
"blockExplorerUrl": "https://goerli-rollup-explorer.arbitrum.io",
|
||||
"chainId": "0x66EED",
|
||||
"displayName": "Arbitrum Goerli",
|
||||
"logo": "",
|
||||
"rpcTarget": "https://goerli-rollup.arbitrum.io/rpc",
|
||||
"chainCurrencyName": "Ethereum",
|
||||
"chainCurrencyName": "Ether",
|
||||
"chainCurrency": "ETH",
|
||||
"aggregatorUrl": "https://arbitrum-goerli.blswallet.org",
|
||||
"networkKey": "arbitrum-goerli"
|
||||
@@ -58,17 +47,16 @@
|
||||
"networkKey": "arbitrum",
|
||||
"hidden": true
|
||||
},
|
||||
"optimism-kovan": {
|
||||
"blockExplorerUrl": "https://kovan-optimistic.etherscan.io",
|
||||
"chainId": "0x45",
|
||||
"displayName": "Optimism Test Network",
|
||||
"optimism-goerli": {
|
||||
"blockExplorerUrl": "https://blockscout.com/optimism/goerli/",
|
||||
"chainId": "0x1a4",
|
||||
"displayName": "Optimism Goerli",
|
||||
"logo": "",
|
||||
"rpcTarget": "https://kovan.optimism.io",
|
||||
"chainCurrencyName": "Optimistic Kovan Ether",
|
||||
"chainCurrency": "KOR",
|
||||
"aggregatorUrl": "https://optimism-kovan.blswallet.org",
|
||||
"networkKey": "optimism-kovan",
|
||||
"hidden": true
|
||||
"rpcTarget": "https://goerli.optimism.io",
|
||||
"chainCurrencyName": "Ether",
|
||||
"chainCurrency": "ETH",
|
||||
"aggregatorUrl": "https://optimism-goerli.blswallet.org",
|
||||
"networkKey": "optimism-goerli"
|
||||
},
|
||||
"optimism": {
|
||||
"blockExplorerUrl": "https://optimistic.etherscan.io",
|
||||
|
||||
Reference in New Issue
Block a user