-
-
Notifications
You must be signed in to change notification settings - Fork 947
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into zs/jsx-user-defined
- Loading branch information
Showing
11 changed files
with
203 additions
and
40 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,3 +1,27 @@ | ||
* @MetaMask/tech-writers | ||
# This is a codeowners file. The last matching pattern takes precedence, | ||
# so the listed codeowners apply only if there is no later match. | ||
|
||
# Default owner for all other files | ||
* @MetaMask/activation | ||
|
||
# Docusaurus configuration | ||
docusaurus.config.js @MetaMask/activation @MetaMask/tech-writers | ||
|
||
# Vercel configuration | ||
vercel.json @MetaMask/activation @MetaMask/tech-writers | ||
|
||
# Sidebar files | ||
*-sidebar.js @MetaMask/activation @MetaMask/tech-writers | ||
|
||
# All other Markdown files | ||
*.md @MetaMask/tech-writers | ||
*.mdx @MetaMask/tech-writers | ||
|
||
# Services documentation | ||
/services/ @MetaMask/tech-writers | ||
|
||
# Snaps documentation | ||
/snaps/ @MetaMask/tech-writers @MetaMask/snaps | ||
/wallet/ @MetaMask/tech-writers @MetaMask/dev-ex | ||
|
||
# Wallet and SDK documentation | ||
/wallet/ @MetaMask/tech-writers @MetaMask/wallet-api-platform-engineers @MetaMask/sdk-devs |
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
7 changes: 5 additions & 2 deletions
7
services/reference/_partials/trace-methods/_trace_callmany-parameters.mdx
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
- `block parameter`: _[Required]_ The hexadecimal block number, or the string `latest`, `earliest`, or `pending`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). | ||
- `options`: A list of tracing options. Tracing options are [`trace`](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) and [`stateDiff`](../../ethereum/json-rpc-methods/trace-methods/index.md#statediff). Specify both options or none. | ||
- `trace call parameters`: _[Required]_ Array of trace call parameters. | ||
Each trace call parameter itself is an array containing the following: | ||
- `transaction call object`: _[Required]_ Transaction call object containing the same data as in the [`trace_call`](../../ethereum/json-rpc-methods/trace-methods/trace_call.mdx#parameters) parameter. | ||
- `options`:_[Optional]_ An array of tracing options. Tracing options are [`trace`](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) and [`stateDiff`](../../ethereum/json-rpc-methods/trace-methods/index.md#statediff). Specify both options or none. | ||
- `block parameter`: _[Required]_ The hexadecimal block number, or the string `latest`, `earliest`, or `pending`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). The block parameter is applied uniformly to all trace calls in the `trace call parameters` array. |
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,21 @@ | ||
import * as path from "path"; | ||
|
||
const SentryPlugin = () => { | ||
return { | ||
name: "docusaurus-plugin-sentry", | ||
getClientModules() { | ||
return [path.resolve(__dirname, "./sentry")]; | ||
}, | ||
configureWebpack() { | ||
return { | ||
resolve: { | ||
alias: { | ||
"sentry-plugin": path.resolve(__dirname, "./sentry.ts"), | ||
}, | ||
}, | ||
}; | ||
}, | ||
}; | ||
}; | ||
|
||
export default SentryPlugin; |
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,16 @@ | ||
{ | ||
"name": "docusaurus-plugin-sentry", | ||
"version": "1.0.0", | ||
"description": "A Sentry plugin to initialize the Sentry SDK", | ||
"main": "index.ts", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [ | ||
"docusaurus-plugin", | ||
"sentry-plugin", | ||
"sentry" | ||
], | ||
"author": "Vlad Lo.", | ||
"license": "MIT" | ||
} |
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,28 @@ | ||
import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment"; | ||
import siteConfig from "@generated/docusaurus.config"; | ||
import * as Sentry from "@sentry/browser"; | ||
|
||
const isProd = process.env.NODE_ENV === "production"; | ||
|
||
export default (function () { | ||
if (!ExecutionEnvironment.canUseDOM) { | ||
return null; | ||
} | ||
|
||
const { SENTRY_KEY } = siteConfig.customFields; | ||
|
||
Sentry.init({ | ||
dsn: SENTRY_KEY as string, | ||
replaysOnErrorSampleRate: isProd ? 1.0 : 0, | ||
replaysSessionSampleRate: isProd ? 1.0 : 0, | ||
sampleRate: isProd ? 0.25 : 0, | ||
tracesSampleRate: 0, | ||
debug: !isProd, | ||
}); | ||
|
||
Sentry.replayIntegration({ | ||
maskAllText: false, | ||
}); | ||
|
||
return Sentry; | ||
})(); |
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