This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
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 #584 from web3well/bw-406-aggregator-compression
Use compression in aggregator
- Loading branch information
Showing
15 changed files
with
219 additions
and
96 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ethers } from "../../deps.ts"; | ||
|
||
export default async function receiptOf( | ||
responsePromise: Promise<ethers.providers.TransactionResponse>, | ||
): Promise<ethers.providers.TransactionReceipt> { | ||
const response = await responsePromise; | ||
const receipt = await response.wait(); | ||
|
||
return receipt; | ||
} |
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,34 @@ | ||
#!/usr/bin/env -S deno run --allow-net --allow-env --allow-read | ||
|
||
import { ContractsConnector, ethers } from "../deps.ts"; | ||
import * as env from "../src/env.ts"; | ||
import AdminWallet from "../src/chain/AdminWallet.ts"; | ||
import receiptOf from "./helpers/receiptOf.ts"; | ||
|
||
const provider = new ethers.providers.JsonRpcProvider(env.RPC_URL); | ||
|
||
const adminWallet = AdminWallet(provider); | ||
|
||
const connector = await ContractsConnector.create(adminWallet); | ||
|
||
const addressRegistry = await connector.AddressRegistry(); | ||
const blsPublicKeyRegistry = await connector.BLSPublicKeyRegistry(); | ||
|
||
await receiptOf( | ||
addressRegistry.register("0xCB1ca1e8DF1055636d7D07c3099c9de3c65CAAB4"), | ||
); | ||
|
||
await receiptOf( | ||
blsPublicKeyRegistry.register( | ||
// You can get this in Quill by running this in the console of the wallet | ||
// page (the page you get by clicking on the extension icon) | ||
// JSON.stringify(debug.wallets[0].blsWalletSigner.getPublicKey()) | ||
|
||
[ | ||
"0x0ad7e63a4bbfdad440beda1fe7fdfb77a59f2a6d991700c6cf4c3654a52389a9", | ||
"0x0adaa93bdfda0f6b259a80c1af7ccf3451c35c1e175483927a8052bdbf59f801", | ||
"0x1f56aa1bb1419c741f0a474e51f33da0ffc81ea870e2e2c440db72539a9efb9e", | ||
"0x2f1f7e5d586d6ca5de3c8c198c3be3b998a2b6df7ee8a367a1e58f8b36fd524d", | ||
], | ||
), | ||
); |
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
Oops, something went wrong.