Skip to content

Commit

Permalink
private rpc for scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
killroy192 committed Jul 19, 2024
1 parent c37a03a commit 2e7e6c1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ make
},
"randommer": {
"keyᵻ": "xxxxxxx"
}
},
"qnode": {
"keyᵻ": "xxxxxxx"
};
}
```

Expand Down
3 changes: 1 addition & 2 deletions src/core/scroll/canvas/canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ const filterNotEligible = (

const getAccountToMint = async (wallets: EVMWallet[]) => {
const expenses = await getExpenses();
const z = [wallets[0]];
const eligibleAccounts = await Promise.all(z.map(prepare(expenses))).then(filterNotEligible);
const eligibleAccounts = await Promise.all(wallets.map(prepare(expenses))).then(filterNotEligible);
logger.info(`mint canvas nft for ${eligibleAccounts.length}`, { label: "canvas" });
return eligibleAccounts[0];
};
Expand Down
3 changes: 2 additions & 1 deletion src/libs/clients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const getRpcUrl = async (chain: chains.Chain) => {
switch (chain.id) {
case chains.scroll.id:
// return chains.scroll.rpcUrls.default.http[0];
return "https://scroll.drpc.org";
// return "https://scroll.drpc.org";
return `https://blue-greatest-knowledge.scroll-mainnet.quiknode.pro/${conf.rpc.qnode.keyᵻ}`;
default:
return `https://${chainIdToAlchemyNetworksMap[chain.id]}.g.alchemy.com/v2/${conf.rpc.alchemy.keyᵻ}`;
}
Expand Down
3 changes: 3 additions & 0 deletions src/types/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export type AppConfig = {
alchemy: {
keyᵻ: string;
};
qnode: {
keyᵻ: string;
};
};
okx: {
keyᵻ: string;
Expand Down

0 comments on commit 2e7e6c1

Please sign in to comment.