Skip to content

Commit

Permalink
Cookbook integration branch (#7178)
Browse files Browse the repository at this point in the history
* feat: Ask Cookbook integration

comments for ask cookbook

* updated yarn lock

* fixed broken link

---------

Co-authored-by: Anton Dosta <[email protected]>
  • Loading branch information
Santiago Trujillo Zuluaga and ClockRide authored Jul 30, 2024
1 parent cbbbd84 commit dee14ec
Show file tree
Hide file tree
Showing 4 changed files with 3,752 additions and 2,079 deletions.
2 changes: 1 addition & 1 deletion docs/docs/guides/web3_eth/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ The [sendTransaction](/api/web3-eth/function/sendTransaction) method is used to
:::important
Please be cautious when sending transactions, especially when dealing with smart contracts, as they may execute specific functions that can have irreversible effects. Always ensure that the details in your transaction object are accurate and intended.

[Here](guides/wallet/transactions) you can find more examples how to send transaction.
[Here](/guides/wallet/transactions) you can find more examples how to send transaction.
:::

## sign
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@cookbookdev/docsbot": "^4.21.1",
"@docusaurus/core": "^3.0.1",
"@docusaurus/preset-classic": "^3.0.1",
"@docusaurus/theme-live-codeblock": "^3.0.1",
Expand Down
17 changes: 17 additions & 0 deletions docs/src/theme/SearchBar/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import SearchBar from '@theme-original/SearchBar';
import AskCookbook from '@cookbookdev/docsbot/react';

// This is a public key, so it's safe to hardcode it.
// To get a new one or request access to the internal portal (If you work for the Web3JS), contact the cookbook.dev team at [email protected].
const ASK_COOKBOOK_PUBLIC_KEY =
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NjdjNzc3YzNmOGY3Mzk2MGYzZGNiOGYiLCJpYXQiOjE3MTk0MzMwODQsImV4cCI6MjAzNTAwOTA4NH0.OXWVNJMxMuEGG1oWetW_a9005r8hmQ6RbF19wbrpTlk';

export default function SearchBarWrapper(props) {
return (
<>
<SearchBar {...props} />
<AskCookbook apiKey={ASK_COOKBOOK_PUBLIC_KEY} />
</>
);
}
Loading

1 comment on commit dee14ec

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: dee14ec Previous: cbbbd84 Ratio
processingTx 8716 ops/sec (±3.97%) 9422 ops/sec (±3.54%) 1.08
processingContractDeploy 36497 ops/sec (±7.62%) 40005 ops/sec (±6.29%) 1.10
processingContractMethodSend 15013 ops/sec (±8.57%) 15941 ops/sec (±7.57%) 1.06
processingContractMethodCall 26237 ops/sec (±8.16%) 27197 ops/sec (±8.39%) 1.04
abiEncode 40303 ops/sec (±7.72%) 45246 ops/sec (±6.54%) 1.12
abiDecode 29321 ops/sec (±6.40%) 30727 ops/sec (±7.98%) 1.05
sign 1505 ops/sec (±3.42%) 1542 ops/sec (±2.93%) 1.02
verify 359 ops/sec (±0.51%) 374 ops/sec (±0.56%) 1.04

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.