alpha deployment

This commit is contained in:
Tim Olson
2023-11-16 17:36:43 -04:00
parent 49abeabe64
commit daaa7ca46a
6 changed files with 23 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ import {mockErc20Abi} from "./abi.js";
export async function faucet( chainId, owner, vault=null ) {
if( chainId === 31337 ) {
if( chainId === 31337 || chainId === 53261 ) {
if( vault === null )
vault = vaultAddress(chainId, owner)
const provider = getProvider(chainId);
@@ -18,7 +18,7 @@ export async function faucet( chainId, owner, vault=null ) {
let nonce = await provider.getTransactionCount(faucet.address, 'pending')
faucet = new ethers.NonceManager(faucet)
await faucet.sendTransaction({to:owner, value:1n *10n**18n, nonce: nonce++})
const info = chainInfo[31337]
const info = chainInfo[chainId]
if( info.mockCoins ) {
const [coinAddr, usdAddr] = info.mockCoins
const signer = await provider.getSigner()