Skip to content

Commit fe2085d

Browse files
committed
2 parents a64ac50 + b32dc13 commit fe2085d

File tree

7 files changed

+25312
-17583
lines changed

7 files changed

+25312
-17583
lines changed

ask-cookbook.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Solves the following error: "Cannot find module ... or its corresponding type declarations. There are types at ..., but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'. [2307]"
2+
declare module "@cookbookdev/docsbot/react" {
3+
export { default } from "@cookbookdev/docsbot/dist/react/index.d.ts";
4+
}

components/AskCookbook.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import dynamic from "next/dynamic";
2+
const BaseAskCookbook = dynamic(() => import("@cookbookdev/docsbot/react"), {
3+
ssr: false,
4+
});
5+
6+
/** It's going to be exposed in HTTP requests anyway so it's fine to just hardcode it here */
7+
const COOKBOOK_PUBLIC_API_KEY =
8+
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NmE5YTdhZmNhMjA3NDg1NDU1YTIyMDYiLCJpYXQiOjE3MjIzOTQ1NDMsImV4cCI6MjAzNzk3MDU0M30.9gU7TfUlrFJcruL89tm4YPauUmxB6iRJ27mhaNW8fdc";
9+
10+
export const AskCookbook = () => {
11+
return <BaseAskCookbook apiKey={COOKBOOK_PUBLIC_API_KEY} />;
12+
};

components/EntropyDeployments.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,12 @@ export const EntropyDeployments: Record<string, EntropyDeployment> = {
280280
network: "testnet",
281281
rpc: "https://sepolia.b3.fun/http/",
282282
},
283+
"b3-mainnet": {
284+
address: "0x5744Cbf430D99456a0A8771208b674F27f8EF0Fb",
285+
explorer: "https://explorer.b3.fun/address/$ADDRESS",
286+
delay: "1 block",
287+
gasLimit: "500K",
288+
network: "mainnet",
289+
rpc: "https://mainnet-rpc.b3.fun/http",
290+
},
283291
};

0 commit comments

Comments
 (0)