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 #186 from web3well/add-receipts
Add receipts
- Loading branch information
Showing
37 changed files
with
416 additions
and
423 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 |
---|---|---|
|
@@ -2,6 +2,7 @@ export { delay } from "https://deno.land/[email protected]/async/delay.ts"; | |
export { parse as parseArgs } from "https://deno.land/[email protected]/flags/mod.ts"; | ||
export { exists } from "https://deno.land/[email protected]/fs/mod.ts"; | ||
export { dirname } from "https://deno.land/[email protected]/path/mod.ts"; | ||
export { oakCors } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
import { config as dotEnvConfig } from "https://deno.land/x/[email protected]/mod.ts"; | ||
export { dotEnvConfig }; | ||
|
@@ -48,7 +49,7 @@ export type { | |
PublicKey, | ||
Signature, | ||
VerificationGateway, | ||
} from "https://esm.sh/bls-wallet-clients@0.5.4-f2bad77"; | ||
} from "https://esm.sh/bls-wallet-clients@0.6.0-6abef92"; | ||
|
||
export { | ||
Aggregator as AggregatorClient, | ||
|
@@ -58,10 +59,10 @@ export { | |
getConfig, | ||
MockERC20__factory, | ||
VerificationGateway__factory, | ||
} from "https://esm.sh/bls-wallet-clients@0.5.4-f2bad77"; | ||
} from "https://esm.sh/bls-wallet-clients@0.6.0-6abef92"; | ||
|
||
// Workaround for esbuild's export-star bug | ||
import blsWalletClients from "https://esm.sh/bls-wallet-clients@0.5.4-f2bad77"; | ||
import blsWalletClients from "https://esm.sh/bls-wallet-clients@0.6.0-6abef92"; | ||
const { | ||
bundleFromDto, | ||
bundleToDto, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env -S deno run --unstable --allow-net --allow-env --allow-read | ||
|
||
import { ethers } from "../deps.ts"; | ||
import * as env from "../src/env.ts"; | ||
import AdminWallet from "../src/chain/AdminWallet.ts"; | ||
|
||
const provider = new ethers.providers.JsonRpcProvider(env.RPC_URL); | ||
|
||
const adminWallet = AdminWallet(provider); | ||
const to = ethers.constants.AddressZero; | ||
|
||
console.log("sending 1 wei"); | ||
console.log(`${adminWallet.address} -> ${to}`); | ||
|
||
const txn = await adminWallet.sendTransaction({ | ||
value: "0x01", | ||
to, | ||
}); | ||
|
||
console.log(`txn hash ${txn.hash}`); | ||
console.log("waiting ..."); | ||
|
||
await txn.wait(); | ||
|
||
console.log("done"); |
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
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.