diff --git a/docs/developers/dapp-developer/native-bindings.md b/docs/developers/dapp-developer/native-bindings.md index 413c2db2f5..7a5a6168a5 100644 --- a/docs/developers/dapp-developer/native-bindings.md +++ b/docs/developers/dapp-developer/native-bindings.md @@ -153,7 +153,7 @@ type Storage struct { an Ethereum testnet and interact with it using the Go bindings. ### Deploying contracts to Ethereum {#deploying-contracts} - + In the previous section, the contract ABI was sufficient for generating the contract bindings from its ABI. However, deploying the contract requires some additional information in the form of the compiled bytecode. The bytecode is obtained by running the compiler again but this passing the `--bin` flag, e.g. diff --git a/docs/developers/evm-tracing/basic-traces.md b/docs/developers/evm-tracing/basic-traces.md index f66604605b..12271bb43c 100644 --- a/docs/developers/evm-tracing/basic-traces.md +++ b/docs/developers/evm-tracing/basic-traces.md @@ -3,16 +3,16 @@ title: Basic traces description: Introduction to basic EVM traces --- -The simplest type of transaction trace that Geth can generate are raw EVM opcode traces. For every VM instruction the transaction executes, a structured log entry is emitted, containing all contextual metadata deemed useful. This includes the *program counter*, *opcode name*, *opcode cost*, *remaining gas*, *execution depth* and any *occurred error*. The structured logs can optionally also contain the content of the *execution stack*, *execution memory* and *contract storage*. +The simplest type of transaction trace that Geth can generate are raw EVM opcode traces. For every VM instruction the transaction executes, a structured log entry is emitted, containing all contextual metadata deemed useful. This includes the _program counter_, _opcode name_, _opcode cost_, _remaining gas_, _execution depth_ and any _occurred error_. The structured logs can optionally also contain the content of the _execution stack_, _execution memory_ and _contract storage_. -The entire output of a raw EVM opcode trace is a JSON object having a few metadata fields: *consumed gas*, *failure status*, *return value*; and a list of *opcode entries*: +The entire output of a raw EVM opcode trace is a JSON object having a few metadata fields: _consumed gas_, _failure status_, _return value_; and a list of _opcode entries_: ```json { - "gas": 25523, - "failed": false, + "gas": 25523, + "failed": false, "returnValue": "", - "structLogs": [] + "structLogs": [] } ``` @@ -20,12 +20,12 @@ An example log for a single opcode entry has the following format: ```json { - "pc": 48, - "op": "DIV", + "pc": 48, + "op": "DIV", "gasCost": 5, - "gas": 64532, - "depth": 1, - "error": null, + "gas": 64532, + "depth": 1, + "error": null, "stack": [ "00000000000000000000000000000000000000000000000000000000ffffffff", "0000000100000000000000000000000000000000000000000000000000000000", @@ -36,8 +36,7 @@ An example log for a single opcode entry has the following format: "0000000000000000000000000000000000000000000000000000000000000000", "0000000000000000000000000000000000000000000000000000000000000060" ], - "storage": { - } + "storage": {} } ``` @@ -45,11 +44,11 @@ An example log for a single opcode entry has the following format: To generate a raw EVM opcode trace, Geth provides a few [RPC API endpoints](/docs/rpc/ns-debug). The most commonly used is [`debug_traceTransaction`](/docs/rpc/ns-debug#debug_tracetransaction). -In its simplest form, `traceTransaction` accepts a transaction hash as its only argument. It then traces the transaction, aggregates all the generated +In its simplest form, `traceTransaction` accepts a transaction hash as its only argument. It then traces the transaction, aggregates all the generated data and returns it as a **large** JSON object. A sample invocation from the Geth console would be: ```js -debug.traceTransaction("0xfc9359e49278b7ba99f59edac0e3de49956e46e530a53c15aa71226b7aa92c6f") +debug.traceTransaction('0xfc9359e49278b7ba99f59edac0e3de49956e46e530a53c15aa71226b7aa92c6f'); ``` The same call can also be invoked from outside the node too via HTTP RPC (e.g. using Curl). In this case, the HTTP endpoint must be enabled in Geth using the `--http` command and the `debug` API namespace must be exposed using `--http.api=debug`. @@ -60,7 +59,7 @@ $ curl -H "Content-Type: application/json" -d '{"id": 1, "method": "debug_traceT To follow along with this tutorial, transaction hashes can be found from a local Geth node (e.g. by attaching a [Javascript console](/docs/interface/javascript-console) and running `eth.getBlock('latest')` then passing a transaction hash from the returned block to `debug.traceTransaction()`) or from a block explorer (for [Mainnet](https://etherscan.io/) or a [testnet](https://goerli.etherscan.io/)). -It is also possible to configure the trace by passing Boolean (true/false) values for four parameters that tweak the verbosity of the trace. By default, the *EVM memory* and *Return data* are not reported but the *EVM stack* and *EVM storage* are. To report the maximum amount of data: +It is also possible to configure the trace by passing Boolean (true/false) values for four parameters that tweak the verbosity of the trace. By default, the _EVM memory_ and _Return data_ are not reported but the _EVM stack_ and _EVM storage_ are. To report the maximum amount of data: ```shell enableMemory: true @@ -72,12 +71,17 @@ enableReturnData: true An example call, made in the Geth Javascript console, configured to report the maximum amount of data looks as follows: ```js -debug.traceTransaction("0xfc9359e49278b7ba99f59edac0e3de49956e46e530a53c15aa71226b7aa92c6f",{enableMemory: true, disableStack: false, disableStorage: false, enableReturnData: true}) +debug.traceTransaction('0xfc9359e49278b7ba99f59edac0e3de49956e46e530a53c15aa71226b7aa92c6f', { + enableMemory: true, + disableStack: false, + disableStorage: false, + enableReturnData: true +}); ``` The above operation was run on the (now-deprecated) Rinkeby network (with a node retaining enough history), resulting in this [trace dump](https://gist.github.com/karalabe/c91f95ac57f5e57f8b950ec65ecc697f). -Alternatively, disabling *EVM Stack*, *EVM Memory*, *Storage* and *Return data* (as demonstrated in the Curl request below) results in the following, much shorter, [trace dump](https://gist.github.com/karalabe/d74a7cb33a70f2af75e7824fc772c5b4). +Alternatively, disabling _EVM Stack_, _EVM Memory_, _Storage_ and _Return data_ (as demonstrated in the Curl request below) results in the following, much shorter, [trace dump](https://gist.github.com/karalabe/d74a7cb33a70f2af75e7824fc772c5b4). ``` $ curl -H "Content-Type: application/json" -d '{"id": 1, "method": "debug_traceTransaction", "params": ["0xfc9359e49278b7ba99f59edac0e3de49956e46e530a53c15aa71226b7aa92c6f", {"disableStack": true, "disableStorage": true}]}' localhost:8545 @@ -85,14 +89,13 @@ $ curl -H "Content-Type: application/json" -d '{"id": 1, "method": "debug_traceT ### Limits of basic traces {#list-of-basic-traces} -Although the raw opcode traces generated above are useful, having an individual log entry for every single opcode is too low level for most use cases, +Although the raw opcode traces generated above are useful, having an individual log entry for every single opcode is too low level for most use cases, and will require developers to create additional tools to post-process the traces. Additionally, a full opcode trace can easily go into the hundreds of megabytes, making them very resource intensive to get out of the node and process externally. -To avoid those issues, Geth supports running custom JavaScript tracers *within* the Ethereum node, which have full access to the EVM stack, memory and contract storage. This means developers only have to gather the data they actually need, and do any processing at the source. - +To avoid those issues, Geth supports running custom JavaScript tracers _within_ the Ethereum node, which have full access to the EVM stack, memory and contract storage. This means developers only have to gather the data they actually need, and do any processing at the source. ## Summary {#summary} This page described how to do basic traces in Geth. Basic traces are very low level and can generate lots of data that might not all be useful. Therefore, it is also possible to use a set of built-in tracers or write custom ones in Javascript or Go. -Read more about [built-in](/docs/evm-tracing/builtin-tracers) and [custom](/docs/evm-tracing/custom-tracer) traces. \ No newline at end of file +Read more about [built-in](/docs/evm-tracing/builtin-tracers) and [custom](/docs/evm-tracing/custom-tracer) traces. diff --git a/docs/developers/evm-tracing/built-in-tracers.md b/docs/developers/evm-tracing/built-in-tracers.md index 9fdea51f41..ca12a13738 100644 --- a/docs/developers/evm-tracing/built-in-tracers.md +++ b/docs/developers/evm-tracing/built-in-tracers.md @@ -3,8 +3,7 @@ title: Built-in tracers description: Explanation of the tracers that come bundled in Geth as part of the tracing API. --- -Geth comes bundled with a choice of tracers that can be invoked via the [tracing API](/docs/rpc/ns-debug). Some of these built-in tracers are implemented natively in Go, and others in Javascript. The default tracer is the opcode logger (otherwise known as struct logger) which is the default tracer for all the methods. Other tracers have to be specified by passing their name to the `tracer` parameter in the API call. - +Geth comes bundled with a choice of tracers that can be invoked via the [tracing API](/docs/rpc/ns-debug). Some of these built-in tracers are implemented natively in Go, and others in Javascript. The default tracer is the opcode logger (otherwise known as struct logger) which is the default tracer for all the methods. Other tracers have to be specified by passing their name to the `tracer` parameter in the API call. ## Struct/opcode logger {#struct-opcode-logger} @@ -86,7 +85,7 @@ Return: } }, - ... + ... ``` @@ -94,10 +93,9 @@ Return: The following tracers are implement in Go. This means they are much more performant than other tracers that are written in Javascript. The tracers are selected by passing their name to the `tracer` parameter when invoking a tracing API method, e.g. `debug.traceTransaction(, { tracer: 'callTracer' })`. - ### 4byteTracer {#4byte-tracer} -Solidity contract functions are +Solidity contract functions are [addressed](https://docs.soliditylang.org/en/develop/abi-spec.html#function-selector) using the first four four byte of the Keccak-256 hash of their signature. Therefore when calling the function of a contract, the caller must send this function selector as well as the ABI-encoded arguments as call data. The `4byteTracer` collects the function selectors of every function executed in the lifetime of a transaction, along with the size of the supplied call data. The result is a `map[string]int` where the keys are `SELECTOR-CALLDATASIZE` and the values are number of occurances of this key. For example: @@ -138,7 +136,6 @@ The `callTracer` tracks all the call frames executed during a transaction, inclu | revertReason | string | Solidity revert reason, if any | | calls | []callframe | list of sub-calls | - Example Call: ```sh @@ -211,7 +208,15 @@ To run this tracer in `diff` mode, pass `tracerConfig: {diffMode: true}` in the Example: ```js -debug.traceCall({from: "0x35a9f94af726f07b5162df7e828cc9dc8439e7d0", to: "0xc8ba32cab1757528daf49033e3673fae77dcf05d", data: "0xd1a2eab2000000000000000000000000000000000000000000000000000000000024aea100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000204895cd480cc8412691a880028a25aec86786f1ed2aa5562bc400000000000000c6403c14f35be1da6f433eadbb6e9178a47fbc7c6c1d568d2f2b876e929089c8d8db646304fd001a187dc8a600000000000000000000000000000000"}, 'latest', {tracer: 'prestateTracer'}) +debug.traceCall( + { + from: '0x35a9f94af726f07b5162df7e828cc9dc8439e7d0', + to: '0xc8ba32cab1757528daf49033e3673fae77dcf05d', + data: '0xd1a2eab2000000000000000000000000000000000000000000000000000000000024aea100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000204895cd480cc8412691a880028a25aec86786f1ed2aa5562bc400000000000000c6403c14f35be1da6f433eadbb6e9178a47fbc7c6c1d568d2f2b876e929089c8d8db646304fd001a187dc8a600000000000000000000000000000000' + }, + 'latest', + { tracer: 'prestateTracer' } +); ``` Return: @@ -264,7 +269,6 @@ Return (same call with `{diffMode: True}`): This tracer is noop. It returns an empty object and is only meant for testing the setup. - ## Javascript tracers {#js-tracers} There are also a set of tracers written in Javascript. These are less performant than the Go native tracers because of overheads associated with interpreting the Javascript in Geth's Go environment. @@ -276,7 +280,15 @@ There are also a set of tracers written in Javascript. These are less performant Example: ```js -debug.traceCall({from: "0x35a9f94af726f07b5162df7e828cc9dc8439e7d0", to: "0xc8ba32cab1757528daf49033e3673fae77dcf05d", data: "0xd1a2eab2000000000000000000000000000000000000000000000000000000000024aea100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000204895cd480cc8412691a880028a25aec86786f1ed2aa5562bc400000000000000c6403c14f35be1da6f433eadbb6e9178a47fbc7c6c1d568d2f2b876e929089c8d8db646304fd001a187dc8a600000000000000000000000000000000"}, 'latest', {tracer: 'bigramTracer'}) +debug.traceCall( + { + from: '0x35a9f94af726f07b5162df7e828cc9dc8439e7d0', + to: '0xc8ba32cab1757528daf49033e3673fae77dcf05d', + data: '0xd1a2eab2000000000000000000000000000000000000000000000000000000000024aea100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000204895cd480cc8412691a880028a25aec86786f1ed2aa5562bc400000000000000c6403c14f35be1da6f433eadbb6e9178a47fbc7c6c1d568d2f2b876e929089c8d8db646304fd001a187dc8a600000000000000000000000000000000' + }, + 'latest', + { tracer: 'bigramTracer' } +); ``` Returns: @@ -370,7 +382,15 @@ Returns: Example: ```js -debug.traceCall({from: "0x35a9f94af726f07b5162df7e828cc9dc8439e7d0", to: "0xc8ba32cab1757528daf49033e3673fae77dcf05d", data: "0xd1a2eab2000000000000000000000000000000000000000000000000000000000024aea100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000204895cd480cc8412691a880028a25aec86786f1ed2aa5562bc400000000000000c6403c14f35be1da6f433eadbb6e9178a47fbc7c6c1d568d2f2b876e929089c8d8db646304fd001a187dc8a600000000000000000000000000000000"}, 'latest', {tracer: 'opcountTracer'}) +debug.traceCall( + { + from: '0x35a9f94af726f07b5162df7e828cc9dc8439e7d0', + to: '0xc8ba32cab1757528daf49033e3673fae77dcf05d', + data: '0xd1a2eab2000000000000000000000000000000000000000000000000000000000024aea100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000204895cd480cc8412691a880028a25aec86786f1ed2aa5562bc400000000000000c6403c14f35be1da6f433eadbb6e9178a47fbc7c6c1d568d2f2b876e929089c8d8db646304fd001a187dc8a600000000000000000000000000000000' + }, + 'latest', + { tracer: 'opcountTracer' } +); ``` Returns: @@ -386,10 +406,19 @@ Returns: Example: ```js -debug.traceCall({from: "0x35a9f94af726f07b5162df7e828cc9dc8439e7d0", to: "0xc8ba32cab1757528daf49033e3673fae77dcf05d", data: "0xd1a2eab2000000000000000000000000000000000000000000000000000000000024aea100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000204895cd480cc8412691a880028a25aec86786f1ed2aa5562bc400000000000000c6403c14f35be1da6f433eadbb6e9178a47fbc7c6c1d568d2f2b876e929089c8d8db646304fd001a187dc8a600000000000000000000000000000000"}, 'latest', {tracer: 'trigramTracer'}) +debug.traceCall( + { + from: '0x35a9f94af726f07b5162df7e828cc9dc8439e7d0', + to: '0xc8ba32cab1757528daf49033e3673fae77dcf05d', + data: '0xd1a2eab2000000000000000000000000000000000000000000000000000000000024aea100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000204895cd480cc8412691a880028a25aec86786f1ed2aa5562bc400000000000000c6403c14f35be1da6f433eadbb6e9178a47fbc7c6c1d568d2f2b876e929089c8d8db646304fd001a187dc8a600000000000000000000000000000000' + }, + 'latest', + { tracer: 'trigramTracer' } +); ``` Returns: + ```terminal { --PUSH1: 1, @@ -414,17 +443,18 @@ Returns: } ``` - ### unigram {#unigram} `unigramTracer` counts the frequency of occurrance of each opcode. Example: + ```js > debug.traceCall({from: "0x35a9f94af726f07b5162df7e828cc9dc8439e7d0", to: "0xc8ba32cab1757528daf49033e3673fae77dcf05d", data: "0xd1a2eab2000000000000000000000000000000000000000000000000000000000024aea100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000204895cd480cc8412691a880028a25aec86786f1ed2aa5562bc400000000000000c6403c14f35be1da6f433eadbb6e9178a47fbc7c6c1d568d2f2b876e929089c8d8db646304fd001a187dc8a600000000000000000000000000000000"}, 'latest', {tracer: 'unigramTracer'}) ``` Returns: + ```terminal { ADD: 36, @@ -447,9 +477,9 @@ Returns: ## State overrides {#state-overrides} -It is possible to give temporary state modifications to Geth in order to simulate the effects of `eth_call`. For example, some new byetcode could be deployed to some address *temporarily just for the duration of the execution* and then a transaction interacting with that address canm be traced. This can be used for scenario testing or determining the outcome of some hypothetical transaction before executing for real. +It is possible to give temporary state modifications to Geth in order to simulate the effects of `eth_call`. For example, some new byetcode could be deployed to some address _temporarily just for the duration of the execution_ and then a transaction interacting with that address canm be traced. This can be used for scenario testing or determining the outcome of some hypothetical transaction before executing for real. -To do this, the tracer is written as normal, but the parameter `stateOverrides` is passed an address and some bytecode. +To do this, the tracer is written as normal, but the parameter `stateOverrides` is passed an address and some bytecode. ```js var code = //contract bytecode @@ -459,4 +489,4 @@ debug.traceCall({from: , to: , input: }, 'latest', {stateOverrides: {'0x...': {c ## Summary {#summary} -This page showed how to use the tracers that come bundled with Geth. There are a set written in Go and a set written in Javascript. They are invoked by passing their names when calling an API method. State overrides can be used in combination with tracers to examine precisely what the EVM will do in some hypothetical scenarios. \ No newline at end of file +This page showed how to use the tracers that come bundled with Geth. There are a set written in Go and a set written in Javascript. They are invoked by passing their names when calling an API method. State overrides can be used in combination with tracers to examine precisely what the EVM will do in some hypothetical scenarios. diff --git a/docs/developers/evm-tracing/custom-tracer.md b/docs/developers/evm-tracing/custom-tracer.md index df47276b9e..b7768940cd 100644 --- a/docs/developers/evm-tracing/custom-tracer.md +++ b/docs/developers/evm-tracing/custom-tracer.md @@ -249,7 +249,7 @@ And these fields are only available for tracing mined transactions (i.e. not ava - `getGasUsed()` - returns amount of gas used throughout the frame as a Number - `getOutput()` - returns the output as a buffer -` -getError()` - returns an error if one occured during execution and `undefined` otherwise + ` -getError()` - returns an error if one occured during execution and `undefined` otherwise ### Usage @@ -258,18 +258,20 @@ Note that several values are Golang big.Int objects, not JavaScript numbers or J Usage example, returns the top element of the stack at each CALL opcode only: ```js -debug.traceTransaction(txhash, {tracer: '{data: [], fault: function(log) {}, step: function(log) { if(log.op.toString() == "CALL") this.data.push(log.stack.peek(0)); }, result: function() { return this.data; }}'}); +debug.traceTransaction(txhash, { + tracer: + '{data: [], fault: function(log) {}, step: function(log) { if(log.op.toString() == "CALL") this.data.push(log.stack.peek(0)); }, result: function() { return this.data; }}' +}); ``` ## Other traces -This tutorial has focused on `debug_traceTransaction()` which reports information -about individual transactions. There are also RPC endpoints that provide different -information, including tracing the EVM execution within a block, between two blocks, -for specific `eth_call`s or rejected blocks. The full list of trace functions can +This tutorial has focused on `debug_traceTransaction()` which reports information +about individual transactions. There are also RPC endpoints that provide different +information, including tracing the EVM execution within a block, between two blocks, +for specific `eth_call`s or rejected blocks. The full list of trace functions can be explored in the [reference documentation](/content/docs/interacting_with_geth/RPC/ns-debug.md). - ## Summary -This page described how to write custom tracers for Geth. Custom tracers can be written in Javascript or Go. \ No newline at end of file +This page described how to write custom tracers for Geth. Custom tracers can be written in Javascript or Go. diff --git a/docs/developers/evm-tracing/index.md b/docs/developers/evm-tracing/index.md index b41493624f..434e98e25f 100644 --- a/docs/developers/evm-tracing/index.md +++ b/docs/developers/evm-tracing/index.md @@ -11,13 +11,11 @@ Also see this [Devcon 2022 talk](https://www.youtube.com/watch?v=b8RdmGsilfU) on In its simplest form, tracing a transaction entails requesting the Ethereum node to reexecute the desired transaction with varying degrees of data collection and have it return an aggregated summary. In order for a Geth node to reexecute a transaction, all historical state accessed by the transaction must be available. This includes: -- Balance, nonce, bytecode and storage of both the recipient as well as all +- Balance, nonce, bytecode and storage of both the recipient as well as all internally invoked contracts. - -- Block metadata referenced during execution of both the outer as well as all +- Block metadata referenced during execution of both the outer as well as all internally created transactions. - -- Intermediate state generated by all preceding transactions contained in the +- Intermediate state generated by all preceding transactions contained in the same block as the one being traced. This means there are limits on the transactions that can be traced imposed by the synchronization and pruning configuration of a node: @@ -31,12 +29,12 @@ This means there are limits on the transactions that can be traced imposed by th - A **light synced** node retrieving data **on demand** can in theory trace transactions for which all required historical state is readily available in the network. This is because the data required to generate the trace is requested from an les-serving full node. In practice, data availability **cannot** be reasonably assumed. ![state pruning options](/public/images/docs/state-pruning.png) - -*This image shows the state stored by each sync-mode - red indicates stored state. The full width of each line represents origin to present head* + +_This image shows the state stored by each sync-mode - red indicates stored state. The full width of each line represents origin to present head_ More detailed information about syncing is available on the [sync modes page](/docs/interface/sync-modes). -When a trace of a specific transaction is executed, the state is prepared by fetching the state of the parent block from the database. If it is not available, Geth will crawl backwards in time to find the next available state but only up to a limit defined in the `reexec` parameter which defaults to 128 blocks. If no state is available within the `reexec` window then the trace fails with `Error: required historical state unavailable` and the `reexec` parameter must be increased. If a valid state *is* found in the `reexec` window, then Geth sequentially re-executes the transcations in each block between the last available state and the target block. The greater the value of `reexec` the longer the tracing will take because more blocks have to be re-executed to regenerate the target state. +When a trace of a specific transaction is executed, the state is prepared by fetching the state of the parent block from the database. If it is not available, Geth will crawl backwards in time to find the next available state but only up to a limit defined in the `reexec` parameter which defaults to 128 blocks. If no state is available within the `reexec` window then the trace fails with `Error: required historical state unavailable` and the `reexec` parameter must be increased. If a valid state _is_ found in the `reexec` window, then Geth sequentially re-executes the transcations in each block between the last available state and the target block. The greater the value of `reexec` the longer the tracing will take because more blocks have to be re-executed to regenerate the target state. The `debug_getAccessibleStates` endpoint is a useful tool for estimating a suitable value for `reexec`. Passing the number of the block that contains the target transaction and a search distance to this endpoint will return the number of blocks behind the current head where the most recent available state exists. This value can be passed to the tracer as `re-exec`. @@ -48,26 +46,23 @@ _There are exceptions to the above rules when running batch traces of entire blo ### Basic traces {#basic-traces} -The simplest type of transaction trace that Geth can generate are raw EVM opcode traces. For every EVM instruction the transaction executes, a structured log entry is emitted, containing all contextual metadata deemed useful. This includes the *program counter*, *opcode name*, *opcode cost*, *remaining gas*, *execution depth* and any *occurred error*. The structured logs can optionally also contain the content of the *execution stack*, *execution memory* and *contract storage*. +The simplest type of transaction trace that Geth can generate are raw EVM opcode traces. For every EVM instruction the transaction executes, a structured log entry is emitted, containing all contextual metadata deemed useful. This includes the _program counter_, _opcode name_, _opcode cost_, _remaining gas_, _execution depth_ and any _occurred error_. The structured logs can optionally also contain the content of the _execution stack_, _execution memory_ and _contract storage_. Read more about Geth's basic traces on the [basic traces page](/docs/evm-tracing/basic-traces). - ### Built-in tracers {#built-in-tracers} -The tracing API accepts an optional `tracer` parameter that defines how the data returned to the API call should be processed. If this parameter is ommitted the default tracer is used. The default is the struct (or 'opcode') logger. These raw opcode traces are sometimes useful, but the returned data is very low level and can be too extensive and awkward to read for many use-cases. A full opcode trace can easily go into the hundreds of megabytes, making them very resource intensive to get out of the node and process externally. For these reasons, there are a set of non-default built-in tracers that can be named in the API call to return different data from the method. Under the hood, these tracers are Go or Javascript +The tracing API accepts an optional `tracer` parameter that defines how the data returned to the API call should be processed. If this parameter is ommitted the default tracer is used. The default is the struct (or 'opcode') logger. These raw opcode traces are sometimes useful, but the returned data is very low level and can be too extensive and awkward to read for many use-cases. A full opcode trace can easily go into the hundreds of megabytes, making them very resource intensive to get out of the node and process externally. For these reasons, there are a set of non-default built-in tracers that can be named in the API call to return different data from the method. Under the hood, these tracers are Go or Javascript functions that do some specific preprocessing on the trace data before it is returned. More information about Geth's built-in tracers is available on the [built-in tracers](/docs/evm-tracing/builtin-tracers) page. - ### Custom tracers {#custom-tracers} In addition to built-in tracers, it is possible to provide custom code that hooks to events in the EVM to process and return data in a consumable format. Custom tracers can be written either in Javascript or Go. JS tracers are good for quick prototyping and experimentation as well as for less intensive applications. Go tracers are performant but require the tracer to be compiled together with the Geth source code. This means developers only have to gather the data they actually need, and do any processing at the source. More information about custom tracers is available on the [custom tracers](/docs/evm-tracing/custom-tracer) page. - ## Summary {#summary} -This page gave an introduction to the concept of tracing and explained issues around state availability. More detailed information on Geth's built-in and custom tracers can be found on their dedicated pages. \ No newline at end of file +This page gave an introduction to the concept of tracing and explained issues around state availability. More detailed information on Geth's built-in and custom tracers can be found on their dedicated pages. diff --git a/docs/developers/evm-tracing/javascript-tutorial.md b/docs/developers/evm-tracing/javascript-tutorial.md index b777b91bc9..7bfba83c53 100644 --- a/docs/developers/evm-tracing/javascript-tutorial.md +++ b/docs/developers/evm-tracing/javascript-tutorial.md @@ -13,15 +13,15 @@ Filters are Javascript functions that select information from the trace to persi ```js tracer = function (tx) { - return debug.traceTransaction(tx, { + return debug.traceTransaction(tx, { tracer: - '{' + - 'retVal: [],' + - 'step: function(log,db) {this.retVal.push(log.getPC() + ":" + log.op.toString())},' + - 'fault: function(log,db) {this.retVal.push("FAULT: " + JSON.stringify(log))},' + - 'result: function(ctx,db) {return this.retVal}' + - '}' - }); // return debug.traceTransaction ... + '{' + + 'retVal: [],' + + 'step: function(log,db) {this.retVal.push(log.getPC() + ":" + log.op.toString())},' + + 'fault: function(log,db) {this.retVal.push("FAULT: " + JSON.stringify(log))},' + + 'result: function(ctx,db) {return this.retVal}' + + '}' + }); // return debug.traceTransaction ... }; // tracer = function ... ``` @@ -71,7 +71,7 @@ This object has three member functions: - `step`, called for each opcode. - `fault`, called if there is a problem in the execution. -- `result`, called to produce the results that are returned by `debug.traceTransaction` +- `result`, called to produce the results that are returned by `debug.traceTransaction` - after the execution is done. In this case, `retVal` is used to store the list of strings to return in `result`. @@ -297,4 +297,4 @@ The output is similar to: " Result: b38558064d8dd9c883d2a8c80c604667ddb90a324bc70b1bac4e70d90b148ed4", "11041: SSTORE 22ff293e14f1ec3a09b137e9e06084afd63addf9:6 <- 0" ] -``` \ No newline at end of file +``` diff --git a/docs/fundamentals/peer-to-peer.md b/docs/fundamentals/peer-to-peer.md index 51287036c2..99ff141f2b 100644 --- a/docs/fundamentals/peer-to-peer.md +++ b/docs/fundamentals/peer-to-peer.md @@ -151,7 +151,7 @@ admin.addTrustedPeer( 'enode://f4642fa65af50cfdea8fa7414a5def7bb7991478b768e296f5e4a54e8b995de102e0ceae2e826f293c481b5325f89be6d207b003382e18a8ecba66fbaf6416c0@33.4.2.1:30303' ); ``` - + ## Summary {#summary} Geth connects to Ethereum Mainnet by default. However, this behaviour can be changed using combinations of command line flags and files. This page has described the various options available for connecting a Geth node to Ethereum, public testnets and private networks. Remember that to connect to a proof-of-stake network (e.g. Ethereum Mainnet, Goerli, Sepolia) a consensus client is also required. diff --git a/docs/fundamentals/sync-modes.md b/docs/fundamentals/sync-modes.md index c4321e8e00..898e243356 100644 --- a/docs/fundamentals/sync-modes.md +++ b/docs/fundamentals/sync-modes.md @@ -11,12 +11,12 @@ There are two types of full node that use different mechanisms to sync up to the ### Snap (default) {#snap-sync} -Snap sync starts froma relatively recent block and syncs from there to the head of the chain, keeping only the most recent 128 block states in memory. The block header to sync up to is provided by the consensus client. Between the initial sync block and the 128 most recent blocks, the node stores occasional snapshots that can be used to rebuild any intermediate state "on-the-fly". The difference between the snap-synced node and a full block-by-block synced node is that a snap synced node started from an initial checkpoint that was more recent than the genesis block. Snap sync is much faster than a full block-by-block sync from genesis. To start a node with snap sync pass `--syncmode snap` at startup. +Snap sync starts froma relatively recent block and syncs from there to the head of the chain, keeping only the most recent 128 block states in memory. The block header to sync up to is provided by the consensus client. Between the initial sync block and the 128 most recent blocks, the node stores occasional snapshots that can be used to rebuild any intermediate state "on-the-fly". The difference between the snap-synced node and a full block-by-block synced node is that a snap synced node started from an initial checkpoint that was more recent than the genesis block. Snap sync is much faster than a full block-by-block sync from genesis. To start a node with snap sync pass `--syncmode snap` at startup. ![state pruning options](/public/images/docs/state-pruning.png) _This image shows the state stored by each sync-mode - red indicates stored state. The full width of each line represents origin to present head_ -Snap sync works by first downloading the headers for a chunk of blocks. Once the headers have been verified, the block bodies and receipts for those blocks are downloaded. In parallel, Geth also sync begins state-sync. In state-sync, Geth first downloads the leaves of the state trie for each block without the intermediate nodes along with a range proof. The state trie is then regenerated locally. +Snap sync works by first downloading the headers for a chunk of blocks. Once the headers have been verified, the block bodies and receipts for those blocks are downloaded. In parallel, Geth also sync begins state-sync. In state-sync, Geth first downloads the leaves of the state trie for each block without the intermediate nodes along with a range proof. The state trie is then regenerated locally. The state download is the part of the snap-sync that takes the most time to complete and the progress can be monitored using the ETA values in the log messages. However, the blockchain is also progressing at the same time and invalidating some of the regenerated state data. This means it is also necessary to have a 'healing' phase where errors in the state are fixed. It is not possible to monitor the progress of the state heal because the extent of the errors cannot be known until the current state has already been regenerated. Geth regularly reports `Syncing, state heal in progress` during state healing - this informs the user that state heal has not finished. It is also possible to confirm this using `eth.syncing` - if this command returns `false` then the node is in sync. If it returns anything other than `false` then syncing is still in progress. diff --git a/docs/getting-started/index.md b/docs/getting-started/index.md index 7fd157227d..cd20231d5c 100644 --- a/docs/getting-started/index.md +++ b/docs/getting-started/index.md @@ -3,7 +3,7 @@ title: Getting started with Geth description: Guide to getting up and running with Geth using Clef. --- -This page explains how to set up Geth and execute some basic tasks using the command line tools. In order to use Geth, the software must first be installed. There are several ways Geth can be installed depending on the operating system and the user's choice of installation method, for example using a package manager, container or building from source. Instructions for installing Geth can be found on the ["Install and Build"](/docs/getting_started/Installing-Geth) pages. +This page explains how to set up Geth and execute some basic tasks using the command line tools. In order to use Geth, the software must first be installed. There are several ways Geth can be installed depending on the operating system and the user's choice of installation method, for example using a package manager, container or building from source. Instructions for installing Geth can be found on the ["Install and Build"](/docs/getting_started/Installing-Geth) pages. Geth also needs to be connected to a [consensus client](docs/getting-started/consensus-clients.md) in order to function as an Ethereum node. The tutorial on this page assumes Geth and a consensus client have been installed successfully and that a firewall has been configured to block external traffic to the JSON-RPC port `8545` see [Security](/docs/fundamentals/security). @@ -156,6 +156,7 @@ This message will be displayed periodically until state healing has finished: ``` INFO [10-20|20:20:09.510] State heal in progress accounts=313,309@17.95MiB slots=363,525@28.77MiB codes=7222@50.73MiB nodes=49,616,912@12.67GiB pending=29805 ``` + When state healing is finished, the node is in sync and ready to use. Sending an empty Curl request to the http server provides a quick way to confirm that this too has been started without any issues. In a third terminal, the following command can be run: @@ -166,7 +167,6 @@ curl http://localhost:8545 If there is no error message reported to the terminal, everything is OK. Geth must be running and synced in order for a user to interact with the Ethereum network. If the terminal running Geth is closed down then Geth must be restarted again in a new terminal. Geth can be started and stopped easily, but it must be running for any interaction with Ethereum to take place. To shut down Geth, simply press `CTRL+C` in the Geth terminal. To start it again, run the previous command `geth --datadir `. - ## Step 4: Get Testnet Ether {#get-test-eth} In order to make some transactions, the user must fund their account with ether. On Ethereum mainnet, ether can only be obtained in three ways: 1) by receiving it as a reward for mining/validating; 2) receiving it in a transfer from another Ethereum user or contract; 3) receiving it from an exchange, 3) having paid for it with fiat money. On Ethereum testnets, the ether has no real world value so it 4) can be made freely available via faucets. Faucets allow users to request a transfer of testnet ether to their account. diff --git a/docs/interacting-with-geth/rpc/ns-admin.md b/docs/interacting-with-geth/rpc/ns-admin.md index 7f6c46873e..a68612f023 100644 --- a/docs/interacting-with-geth/rpc/ns-admin.md +++ b/docs/interacting-with-geth/rpc/ns-admin.md @@ -178,7 +178,7 @@ Removes a remote node from the trusted peer set, but it does not disconnect it a | RPC | `{"method": "admin_removeTrustedPeer", "params": [string]}` | ## admin_startHTTP {#admin-starthttp} - + The `startHTTP` administrative method starts an HTTP based JSON-RPC [API](/docs/rpc/server) webserver to handle client requests. All the parameters are optional: - `host`: network interface to open the listener socket on (defaults to `"localhost"`) diff --git a/docs/interacting-with-geth/rpc/ns-debug.md b/docs/interacting-with-geth/rpc/ns-debug.md index 774e105c7d..3d574603f1 100644 --- a/docs/interacting-with-geth/rpc/ns-debug.md +++ b/docs/interacting-with-geth/rpc/ns-debug.md @@ -29,7 +29,7 @@ The location is specified as `:`. Example: -``` javascript +```javascript > debug.backtraceAt("server.go:443") ``` @@ -42,7 +42,6 @@ Turns on block profiling for the given duration and writes profile data to disk. | Console | `debug.blockProfile(file, seconds)` | | RPC | `{"method": "debug_blockProfile", "params": [string, number]}` | - ### debug_chaindbCompact Flattens the entire key-value database into a single level, removing all unused slots and merging all keys. @@ -52,7 +51,6 @@ Flattens the entire key-value database into a single level, removing all unused | Console | `debug.chaindbCompact()` | | RPC | `{"method": "debug_chaindbCompact", "params": []}` | - ### debug_chaindbProperty Returns leveldb properties of the key-value database. @@ -62,7 +60,6 @@ Returns leveldb properties of the key-value database. | Console | `debug.chaindbProperty(property string)` | | RPC | `{"method": "debug_chaindbProperty", "params": [property]}` | - ### debug_cpuProfile Turns on CPU profiling for the given duration and writes profile data to disk. @@ -72,7 +69,6 @@ Turns on CPU profiling for the given duration and writes profile data to disk. | Console | `debug.cpuProfile(file, seconds)` | | RPC | `{"method": "debug_cpuProfile", "params": [string, number]}` | - ### debug_dbAncient Retrieves an ancient binary blob from the freezer. The freezer is a collection of append-only immutable files. The first argument `kind` specifies which table to look up data from. The list of all table kinds are as follows: @@ -106,8 +102,6 @@ Returns the raw value of a key stored in the database. | Console | `debug.dbGet(key string)` | | RPC | `{"method": "debug_dbGet", "params": [key]}` | - - ### debug_dumpBlock Retrieves the state that corresponds to the block number and returns a list of accounts (including storage and code). @@ -154,8 +148,6 @@ Forces garbage collection | Console | `debug.freeOSMemory()` | | RPC | `{"method": "debug_freeOSMemory", "params": []}` | - - ### debug_freezeClient Forces a temporary client freeze, normally when the server is overloaded. Available as part of LES light server. @@ -165,8 +157,6 @@ Forces a temporary client freeze, normally when the server is overloaded. Availa | Console | `debug.freezeClient(node string)` | | RPC | `{"method": "debug_freezeClient", "params": [node]}` | - - ### debug_gcStats Returns garbage collection statistics. @@ -178,10 +168,9 @@ See https://golang.org/pkg/runtime/debug/#GCStats for information about the fiel | Console | `debug.gcStats()` | | RPC | `{"method": "debug_gcStats", "params": []}` | - ### debug_getAccessibleState -Returns the first number where the node has accessible state on disk. This is the post-state of that block and the pre-state of the next +Returns the first number where the node has accessible state on disk. This is the post-state of that block and the pre-state of the next block. The (from, to) parameters are the sequence of blocks to search, which can go either forwards or backwards. Note: to get the last state pass in the range of blocks in reverse, i.e. (last, first). @@ -191,7 +180,6 @@ Note: to get the last state pass in the range of blocks in reverse, i.e. (last, | Console | `debug.getAccessibleState(from, to rpc.BlockNumber)` | | RPC | `{"method": "debug_getAccessibleState", "params": [from, to]}` | - ### debug_getBadBlocks Returns a list of the last 'bad blocks' that the client has seen on the network and returns them as a JSON list of block-hashes. @@ -201,7 +189,6 @@ Returns a list of the last 'bad blocks' that the client has seen on the network | Console | `debug.getBadBlocks()` | | RPC | `{"method": "debug_getBadBlocks", "params": []}` | - ### debug_getBlockRlp Retrieves and returns the RLP encoded block by number. @@ -234,7 +221,7 @@ Returns all accounts that have changed between the two blocks specified. A chang ### debug_getModifiedAccountsByNumber -Returns all accounts that have changed between the two blocks specified. A change is defined as a difference in nonce, balance, code hash or +Returns all accounts that have changed between the two blocks specified. A change is defined as a difference in nonce, balance, code hash or storage hash. | Client | Method invocation | @@ -298,7 +285,6 @@ Returns the preimage for a sha3 hash, if known. | Console | `debug.preimage(hash)` | | RPC | `{"method": "debug_preimage", "params": [hash]}` | - ### debug_printBlock Retrieves a block and returns its pretty printed form. @@ -308,7 +294,6 @@ Retrieves a block and returns its pretty printed form. | Console | `debug.printBlock(number uint64)` | | RPC | `{"method": "debug_printBlock", "params": [number]}` | - ### debug_seedHash Fetches and retrieves the seed hash of the block by number @@ -338,10 +323,9 @@ Sets the garbage collection target percentage. A negative value disables garbage | Console | `debug.setGCPercent(v)` | | RPC | `{"method": "debug_setGCPercent", "params": [v]}` | - ### debug_setHead -Sets the current head of the local chain by block number. **Note**, this is a destructive action and may severely damage your chain. Use with *extreme* caution. +Sets the current head of the local chain by block number. **Note**, this is a destructive action and may severely damage your chain. Use with _extreme_ caution. | Client | Method invocation | | :------ | ------------------------------------------------- | @@ -370,7 +354,6 @@ Returns a printed representation of the stacks of all goroutines. Note that the | Console | `debug.stacks()` | | RPC | `{"method": "debug_stacks", "params": []}` | - ### debug_standardTraceBlockToFile When JS-based tracing (see below) was first implemented, the intended usecase was to enable long-running tracers that could stream results back via a subscription channel. This method works a bit differently. (For full details, see [PR](https://github.com/ethereum/go-ethereum/pull/17914)) @@ -378,23 +361,27 @@ When JS-based tracing (see below) was first implemented, the intended usecase wa - It streams output to disk during the execution, to not blow up the memory usage on the node - It uses `jsonl` as output format (to allow streaming) - Uses a cross-client standardized output, so called 'standard json' - * Uses `op` for string-representation of opcode, instead of `op`/`opName` for numeric/string, and other simlar small differences. - * has `refund` - * Represents memory as a contiguous chunk of data, as opposed to a list of `32`-byte segments like `debug_traceTransaction` + - Uses `op` for string-representation of opcode, instead of `op`/`opName` for numeric/string, and other simlar small differences. + - has `refund` + - Represents memory as a contiguous chunk of data, as opposed to a list of `32`-byte segments like `debug_traceTransaction` This means that this method is only 'useful' for callers who control the node -- at least sufficiently to be able to read the artefacts from the filesystem after the fact. The method can be used to dump a certain transaction out of a given block: + ``` > debug.standardTraceBlockToFile("0x0bbe9f1484668a2bf159c63f0cf556ed8c8282f99e3ffdb03ad2175a863bca63", {txHash:"0x4049f61ffbb0747bb88dc1c85dd6686ebf225a3c10c282c45a8e0c644739f7e9", disableMemory:true}) ["/tmp/block_0x0bbe9f14-14-0x4049f61f-099048234"] ``` + Or all txs from a block: + ``` > debug.standardTraceBlockToFile("0x0bbe9f1484668a2bf159c63f0cf556ed8c8282f99e3ffdb03ad2175a863bca63", {disableMemory:true}) ["/tmp/block_0x0bbe9f14-0-0xb4502ea7-409046657", "/tmp/block_0x0bbe9f14-1-0xe839be8f-954614764", "/tmp/block_0x0bbe9f14-2-0xc6e2052f-542255195", "/tmp/block_0x0bbe9f14-3-0x01b7f3fe-209673214", "/tmp/block_0x0bbe9f14-4-0x0f290422-320999749", "/tmp/block_0x0bbe9f14-5-0x2dc0fb80-844117472", "/tmp/block_0x0bbe9f14-6-0x35542da1-256306111", "/tmp/block_0x0bbe9f14-7-0x3e199a08-086370834", "/tmp/block_0x0bbe9f14-8-0x87778b88-194603593", "/tmp/block_0x0bbe9f14-9-0xbcb081ba-629580052", "/tmp/block_0x0bbe9f14-10-0xc254381a-578605923", "/tmp/block_0x0bbe9f14-11-0xcc434d58-405931366", "/tmp/block_0x0bbe9f14-12-0xce61967d-874423181", "/tmp/block_0x0bbe9f14-13-0x05a20b35-267153288", "/tmp/block_0x0bbe9f14-14-0x4049f61f-606653767", "/tmp/block_0x0bbe9f14-15-0x46d473d2-614457338", "/tmp/block_0x0bbe9f14-16-0x35cf5500-411906321", "/tmp/block_0x0bbe9f14-17-0x79222961-278569788", "/tmp/block_0x0bbe9f14-18-0xad84e7b1-095032683", "/tmp/block_0x0bbe9f14-19-0x4bd48260-019097038", "/tmp/block_0x0bbe9f14-20-0x1517411d-292624085", "/tmp/block_0x0bbe9f14-21-0x6857e350-971385904", "/tmp/block_0x0bbe9f14-22-0xbe3ae2ca-236639695"] ``` + Files are created in a temp-location, with the naming standard `block_---`. Each opcode immediately streams to file, with no in-geth buffering aside from whatever buffering the os normally does. On the server side, it also adds some more info when regenerating historical state, namely, the reexec-number if `required historical state is not avaiable` is encountered, so a user can experiment with increasing that setting. It also prints out the remaining block until it reaches target: @@ -409,6 +396,7 @@ INFO [10-15|13:48:34.421] Wrote trace file=/tmp/block_0x14490c57-2-0x3f4263fe-05 ``` The `options` is as follows: + ``` type StdTraceConfig struct { *vm.LogConfig @@ -421,7 +409,6 @@ type StdTraceConfig struct { This method is similar to `debug_standardTraceBlockToFile`, but can be used to obtain info about a block which has been _rejected_ as invalid (for some reason). - ### debug_startCPUProfile Turns on CPU profiling indefinitely, writing to the given file. @@ -552,7 +539,6 @@ Similar to [debug_traceBlock](#debug_traceblock), `traceBlockByHash` accepts a b References: [RLP](https://github.com/ethereum/wiki/wiki/RLP) - ### debug_traceBlockFromFile Similar to [debug_traceBlock](#debug_traceblock), `traceBlockFromFile` accepts a file containing the RLP of the block. For the second parameter see [TraceConfig](#traceconfig) reference. @@ -589,6 +575,7 @@ No specific call options: structLogs: [] } ``` + Tracing a call with a destination and specific sender, disabling the storage and memory output (less data returned over RPC) ```sh @@ -601,16 +588,16 @@ debug.traceCall({ "latest", {"disableStorage": true, "disableMemory": true}) ``` -It is possible to supply 'overrides' for both state-data (accounts/storage) and block data (number, timestamp etc). In the example below, a call which executes `NUMBER` is performed, and the overridden number is placed on the stack: +It is possible to supply 'overrides' for both state-data (accounts/storage) and block data (number, timestamp etc). In the example below, a call which executes `NUMBER` is performed, and the overridden number is placed on the stack: ```sh > debug.traceCall({ - from: eth.accounts[0], + from: eth.accounts[0], value:"0x1", - gasPrice: "0xffffffff", - gas: "0xffff", + gasPrice: "0xffffffff", + gas: "0xffff", input: "0x43"}, - "latest", + "latest", {"blockoverrides": {"number": "0x50"} }) @@ -636,7 +623,7 @@ It is possible to supply 'overrides' for both state-data (accounts/storage) and } ``` -Curl example: +Curl example: ```sh > curl -H "Content-Type: application/json" -X POST localhost:8545 --data '{"jsonrpc":"2.0","method":"debug_traceCall","params":[null, "pending"],"id":1}' @@ -653,7 +640,6 @@ const res = provider.send('debug_subscribe', ['traceChain', '0x3f3a2a', '0x3f3a2 please refer to the [subscription page](https://geth.ethereum.org/docs/rpc/pubsub) for more details. - ### debug_traceTransaction **OBS** In most scenarios, `debug.standardTraceBlockToFile` is better suited for tracing! @@ -667,22 +653,21 @@ hash. | Console | `debug.traceTransaction(txHash, [options])` | | RPC | `{"method": "debug_traceTransaction", "params": [txHash, {}]}` | - #### TraceConfig -In addition to the hash of the transaction you may give it a secondary *optional* argument, which specifies the options for this specific call. The possible options are: +In addition to the hash of the transaction you may give it a secondary _optional_ argument, which specifies the options for this specific call. The possible options are: + +- `disableStorage`: `BOOL`. Setting this to true will disable storage capture (default = false). +- `disableStack`: `BOOL`. Setting this to true will disable stack capture (default = false). +- `enableMemory`: `BOOL`. Setting this to true will enable memory capture (default = false). +- `enableReturnData`: `BOOL`. Setting this to true will enable return data capture (default = false). +- `tracer`: `STRING`. Name for built-in tracer or Javascript expression. See below for more details. -* `disableStorage`: `BOOL`. Setting this to true will disable storage capture (default = false). -* `disableStack`: `BOOL`. Setting this to true will disable stack capture (default = false). -* `enableMemory`: `BOOL`. Setting this to true will enable memory capture (default = false). -* `enableReturnData`: `BOOL`. Setting this to true will enable return data capture (default = false). -* `tracer`: `STRING`. Name for built-in tracer or Javascript expression. See below for more details. - If set, the previous four arguments will be ignored. -* `timeout`: `STRING`. Overrides the default timeout of 5 seconds for JavaScript-based tracing calls. +- `timeout`: `STRING`. Overrides the default timeout of 5 seconds for JavaScript-based tracing calls. Valid values are described [here](https://golang.org/pkg/time/#ParseDuration). -* `tracerConfig`: Config for the specified `tracer`. For example see callTracer's [config](/docs/evm-tracing/builtin-tracers#config). +- `tracerConfig`: Config for the specified `tracer`. For example see callTracer's [config](/docs/evm-tracing/builtin-tracers#config). Geth comes with a bundle of [built-in tracers](/docs/evm-tracing/builtin-tracers), each providing various data about a transaction. This method defaults to the [struct logger](/docs/evm-tracing/builtin-tracers#structopcode-logger). The `tracer` field of the second parameter can be set to use any of the other tracers. Alternatively a [custom tracer](/docs/evm-tracing/custom-tracer) can be implemented in either Go or Javascript. @@ -742,31 +727,30 @@ Sets the logging verbosity pattern. | Console | `debug.vmodule(string)` | | RPC | `{"method": "debug_vmodule", "params": [string]}` | - #### Examples If you want to see messages from a particular Go package (directory) and all subdirectories, use: -``` javascript +```javascript > debug.vmodule("eth/*=6") ``` If you want to restrict messages to a particular package (e.g. p2p) but exclude subdirectories, use: -``` javascript +```javascript > debug.vmodule("p2p=6") ``` If you want to see log messages from a particular source file, use -``` javascript +```javascript > debug.vmodule("server.go=6") ``` You can compose these basic patterns. If you want to see all output from peer.go in a package below eth (eth/peer.go, eth/downloader/peer.go) as well as output from package p2p at level <= 5, use: -``` javascript -debug.vmodule("eth/*/peer.go=6,p2p=5") +```javascript +debug.vmodule('eth/*/peer.go=6,p2p=5'); ``` ### debug_writeBlockProfile @@ -794,4 +778,4 @@ Writes a goroutine blocking profile to the given file. | Client | Method invocation | | :------ | --------------------------------------------------------- | | Console | `debug.writeMutexProfile(file)` | -| RPC | `{"method": "debug_writeMutexProfile", "params": [file]}` | \ No newline at end of file +| RPC | `{"method": "debug_writeMutexProfile", "params": [file]}` | diff --git a/docs/interacting-with-geth/rpc/ns_personal_deprecation.md b/docs/interacting-with-geth/rpc/ns_personal_deprecation.md index 5691dbf133..a4e4ae880b 100644 --- a/docs/interacting-with-geth/rpc/ns_personal_deprecation.md +++ b/docs/interacting-with-geth/rpc/ns_personal_deprecation.md @@ -9,7 +9,7 @@ The JSON-RPC API's `personal` namespace has historically been used to manage acc ### personal_unlockAccount -There is no need for a direct replacement for `personal_unlockAccount`. Using Clef to manually approve actions or to attest custom rulesets is a much more secure way to interact with accounts without needing to indiscriminately unlock accounts. +There is no need for a direct replacement for `personal_unlockAccount`. Using Clef to manually approve actions or to attest custom rulesets is a much more secure way to interact with accounts without needing to indiscriminately unlock accounts. ### personal_lockAccount @@ -38,7 +38,7 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1 ```js // eth_accounts in Geth's JS console -eth.accounts +eth.accounts; ``` ```sh @@ -68,8 +68,8 @@ curl --data '{"id": 4, "jsonrpc": "2.0", "method": "account_ecRecover","params": clef importraw ``` - ### personal_listWallets + As opposed to `listAccounts`, this method lists full details, including usb path or keystore-file paths. The equivalent method is `clef_listWallets`. This method can be called from the terminal using: ```sh @@ -100,18 +100,19 @@ Both require manual approval in Clef unless a custom ruleset is in place. ### personal_sendTransaction -`personal_sendTransaction` ws used to sign and submit a transaction. This can be done using `eth_sendTransaction`, requiring manual approval in Clef. +`personal_sendTransaction` ws used to sign and submit a transaction. This can be done using `eth_sendTransaction`, requiring manual approval in Clef. Example call (Javascript console): ```js // this command requires 2x approval in Clef because it loads account data via eth.accounts[0] // and eth.accounts[1] -var tx = {from: eth.accounts[0], to: eth.accounts[1], value: web3.toWei(0.1, "ether")} +var tx = { from: eth.accounts[0], to: eth.accounts[1], value: web3.toWei(0.1, 'ether') }; // then send the transaction -eth.sendTransaction(tx) +eth.sendTransaction(tx); ``` + Example call (terminal) ```sh @@ -218,4 +219,3 @@ Example call (terminal): ```sh curl --data '{"id": 2, "jsonrpc": "2.0", "method": "account_signTransaction", "params": [{"from": "0x1923f626bb8dc025849e00f99c25fe2b2f7fb0db", "gas": "0x55555","gasPrice": "0x1234", "input": "0xabcd", "nonce": "0x0", "to": "0x07a565b7ed7d7a678680a4c162885bedbb695fe0", "value": "0x1234"}]}' -X POST -H "Content-Type: application/json" localhost:8550 ``` - diff --git a/docs/monitoring/dashboards.md b/docs/monitoring/dashboards.md index 27f64dc6d6..4113776284 100644 --- a/docs/monitoring/dashboards.md +++ b/docs/monitoring/dashboards.md @@ -71,7 +71,7 @@ InfluxDB is running and configured to store metrics from Geth. ## Preparing Geth {#preparing-geth} -After setting up database, metrics need to be enabled in Geth. Various options are available, as documented in the `METRICS AND STATS OPTIONS` +After setting up database, metrics need to be enabled in Geth. Various options are available, as documented in the `METRICS AND STATS OPTIONS` in `geth --help` and in our [metrics page](/docs/monitoring/metrics). In this case Geth will be configured to push data into InfluxDB. Basic setup specifies the endpoint where InfluxDB is reachable and authenticates the database. ```sh @@ -132,10 +132,9 @@ For a Geth monitoring dashboard, copy the URL of [this dashboard](https://grafan ![Grafana 1](/public/images/docs/grafana.png) - ## Customization {#customization} -The dashboards can be customized further. Each panel can be edited, moved, removed or added. To learn more about how dashboards work, refer to +The dashboards can be customized further. Each panel can be edited, moved, removed or added. To learn more about how dashboards work, refer to [Grafana's documentation](https://grafana.com/docs/grafana/latest/dashboards/). Some users might also be interested in automatic [alerting](https://grafana.com/docs/grafana/latest/alerting/), which sets up alert notifications that are sent automatically when metrics reach certain values. Various communication channels are supported. @@ -144,4 +143,4 @@ Some users might also be interested in automatic [alerting](https://grafana.com/ This page has outlined how to set up a simple node monitoring dashboard using Grafana. -***NB: this page was adapted from a tutorial on ethereum.org written by Mario Havel*** \ No newline at end of file +**_NB: this page was adapted from a tutorial on ethereum.org written by Mario Havel_** diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000000..25601165c3 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,4 @@ +# https://docs.netlify.com/integrations/frameworks/next-js/incremental-static-regeneration/ + +[functions] + included_files = ["src/**"] diff --git a/package.json b/package.json index 3a34a00742..80854be9b8 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@mdx-js/react": "^2.1.3", "@next/mdx": "^12.3.0", "chakra-ui-markdown-renderer": "^4.1.0", + "fast-xml-parser": "^4.0.12", "focus-visible": "^5.2.0", "framer-motion": "^7.3.2", "gray-matter": "^4.0.3", diff --git a/src/components/MDXComponents.tsx b/src/components/MDXComponents.tsx index c8296ccc62..64c3215a21 100644 --- a/src/components/MDXComponents.tsx +++ b/src/components/MDXComponents.tsx @@ -92,14 +92,22 @@ const MDXComponents = { // code code: ({ children, ...props }: any) => {children}, // list - ul: ({children}: any) => { - return {children} + ul: ({ children }: any) => { + return ( + + {children} + + ); }, - ol: ({children}: any) => { - return {children} + ol: ({ children }: any) => { + return ( + + {children} + + ); }, li: ({ children }: any) => { - return {children} + return {children}; } }; diff --git a/src/components/UI/ButtonLinkSecondary.tsx b/src/components/UI/ButtonLinkSecondary.tsx index 882a8a4a2d..94ff6ff629 100644 --- a/src/components/UI/ButtonLinkSecondary.tsx +++ b/src/components/UI/ButtonLinkSecondary.tsx @@ -1,15 +1,15 @@ import { Link, Stack, Text } from '@chakra-ui/react'; import NextLink, { LinkProps } from 'next/link'; -import { Link as LinkTheme } from "../../theme/components" +import { Link as LinkTheme } from '../../theme/components'; interface Props extends LinkProps { children: React.ReactNode; } -export const ButtonLinkSecondary: React.FC = ({ href, children, ...restProps}) => { +export const ButtonLinkSecondary: React.FC = ({ href, children, ...restProps }) => { const isExternal: boolean = href.toString().startsWith('http'); - const variant = LinkTheme.variants["button-link-secondary"] + const variant = LinkTheme.variants['button-link-secondary']; return ( diff --git a/src/components/UI/DataTable.tsx b/src/components/UI/DataTable.tsx index 12fe2f9af6..915f597bae 100644 --- a/src/components/UI/DataTable.tsx +++ b/src/components/UI/DataTable.tsx @@ -1,8 +1,11 @@ -import { Table, Thead, Tr, Th, TableContainer, Text, Tbody, Td } from '@chakra-ui/react'; +import { Link, Table, Thead, Tr, Th, TableContainer, Text, Tbody, Td } from '@chakra-ui/react'; import { FC } from 'react'; +import { ReleaseData } from '../../types'; +import { getParsedDate } from '../../utils'; interface Props { columnHeaders: string[]; + // TODO: update data type data: any; } @@ -41,20 +44,44 @@ export const DataTable: FC = ({ columnHeaders, data }) => { })} + - {data.map((item: any, idx: number) => { + {data.map((r: ReleaseData, idx: number) => { return ( - {columnHeaders.map((columnHeader, idx) => { - // TODO: Make the font size smaller (refer to design system) + {Object.entries(r).map((item, idx) => { + const objectItems = ['release', 'commit', 'signature']; + + if (objectItems.includes(item[0])) { + const label = item[1].label; + const url = item[1].url; + + return ( + + + + {item[0] === 'commit' ? `${label}...` : label} + + + + ); + } + + if (item[0] === 'published') { + return ( + + {getParsedDate(item[1])} + + ); + } + return ( - - {item[columnHeader.toLowerCase()]} + + {item[1]} ); })} diff --git a/src/components/UI/Header.tsx b/src/components/UI/Header.tsx index e87a2edcf1..7ad993fd0e 100644 --- a/src/components/UI/Header.tsx +++ b/src/components/UI/Header.tsx @@ -36,14 +36,12 @@ export const Header: FC = () => { {/* HEADER BUTTONS */} - + {/* SEARCH */} - + @@ -65,7 +63,6 @@ export const Header: FC = () => { {/* MOBILE MENU */} - ); }; diff --git a/src/components/UI/docs/index.tsx b/src/components/UI/docs/index.tsx index 823cfaea66..c3aa9443d1 100644 --- a/src/components/UI/docs/index.tsx +++ b/src/components/UI/docs/index.tsx @@ -1 +1 @@ -export * from './Code'; \ No newline at end of file +export * from './Code'; diff --git a/src/components/UI/downloads/DownloadsTable.tsx b/src/components/UI/downloads/DownloadsTable.tsx index a8b69925d2..d77789f73f 100644 --- a/src/components/UI/downloads/DownloadsTable.tsx +++ b/src/components/UI/downloads/DownloadsTable.tsx @@ -1,20 +1,43 @@ import { Stack, Tabs, TabList, Tab, Text, TabPanel, TabPanels } from '@chakra-ui/react'; import { FC } from 'react'; -import { DOWNLOAD_TABS, DOWNLOAD_TAB_COLUMN_HEADERS } from '../../../constants'; - import { DataTable } from '../../UI'; +import { DOWNLOADS_TABLE_TABS, DOWNLOADS_TABLE_TAB_COLUMN_HEADERS } from '../../../constants'; +import { ReleaseData } from '../../../types'; + interface Props { - data: any; + linuxData: ReleaseData[]; + macOSData: ReleaseData[]; + windowsData: ReleaseData[]; + iOSData: ReleaseData[]; + androidData: ReleaseData[]; + amountOfReleasesToShow: number; + setTotalReleases: (idx: number) => void; } -export const DownloadsTable: FC = ({ data }) => { +export const DownloadsTable: FC = ({ + linuxData, + macOSData, + windowsData, + iOSData, + androidData, + amountOfReleasesToShow, + setTotalReleases +}) => { + const totalReleases = [ + linuxData.length, + macOSData.length, + windowsData.length, + iOSData.length, + androidData.length + ]; + return ( - + setTotalReleases(totalReleases[idx])}> - {DOWNLOAD_TABS.map((tab, idx) => { + {DOWNLOADS_TABLE_TABS.map((tab, idx) => { return ( = ({ data }) => { color: 'bg' }} borderBottom='2px solid' - borderRight={idx === DOWNLOAD_TABS.length - 1 ? 'none' : '2px solid'} + borderRight={idx === DOWNLOADS_TABLE_TABS.length - 1 ? 'none' : '2px solid'} borderColor='primary' > {tab} @@ -33,21 +56,37 @@ export const DownloadsTable: FC = ({ data }) => { ); })} + - + - + - + - + - + diff --git a/src/components/UI/homepage/QuickLinks.tsx b/src/components/UI/homepage/QuickLinks.tsx index 28e6d5e895..34307c5ff2 100644 --- a/src/components/UI/homepage/QuickLinks.tsx +++ b/src/components/UI/homepage/QuickLinks.tsx @@ -18,11 +18,7 @@ export const QuickLinks: FC = () => { sx={{ mt: '0 !important' }} > {/* get started */} - + Don't know where to start? @@ -60,11 +56,7 @@ export const QuickLinks: FC = () => { {/* faq */} - + Have doubts? diff --git a/src/components/UI/homepage/WhyRunANode.tsx b/src/components/UI/homepage/WhyRunANode.tsx index bed89b8eec..cacbabe2ea 100644 --- a/src/components/UI/homepage/WhyRunANode.tsx +++ b/src/components/UI/homepage/WhyRunANode.tsx @@ -1,7 +1,7 @@ import { Box, Grid, GridItem, Stack } from '@chakra-ui/react'; import { FC } from 'react'; -import { ButtonLinkSecondary } from '..' +import { ButtonLinkSecondary } from '..'; import { GopherHomeNodes } from '../svgs/GopherHomeNodes'; import { ETHEREUM_ORG_RUN_A_NODE_URL } from '../../../constants'; diff --git a/src/components/UI/icons/DiscordIcon.tsx b/src/components/UI/icons/DiscordIcon.tsx index 5fc6c33c78..dd068036b5 100644 --- a/src/components/UI/icons/DiscordIcon.tsx +++ b/src/components/UI/icons/DiscordIcon.tsx @@ -4,8 +4,11 @@ export const DiscordIcon = createIcon({ displayName: 'DiscordIcon', viewBox: '0 0 32 24', path: ( - - + + ) }); diff --git a/src/components/UI/icons/GitHubIcon.tsx b/src/components/UI/icons/GitHubIcon.tsx index f1e04499c5..a7954f782a 100644 --- a/src/components/UI/icons/GitHubIcon.tsx +++ b/src/components/UI/icons/GitHubIcon.tsx @@ -4,8 +4,11 @@ export const GitHubIcon = createIcon({ displayName: 'GitHubIcon', viewBox: '0 0 26 24', path: ( - - + + ) }); diff --git a/src/components/UI/icons/SunIcon.tsx b/src/components/UI/icons/SunIcon.tsx index d866d86daf..4a69f77fa5 100644 --- a/src/components/UI/icons/SunIcon.tsx +++ b/src/components/UI/icons/SunIcon.tsx @@ -4,16 +4,31 @@ export const SunIcon = createIcon({ displayName: 'SunIcon', viewBox: '0 0 44 44', path: ( - - - - - - - - - - + + + + + + + + + + ) }); diff --git a/src/components/UI/search/Search.tsx b/src/components/UI/search/Search.tsx index e6e14c5d33..27913e5e51 100644 --- a/src/components/UI/search/Search.tsx +++ b/src/components/UI/search/Search.tsx @@ -1,7 +1,7 @@ import { FC } from 'react'; -import { Input, InputGroup, Stack } from '@chakra-ui/react' +import { Input, InputGroup, Stack } from '@chakra-ui/react'; -import { BORDER_WIDTH } from '../../../constants' +import { BORDER_WIDTH } from '../../../constants'; import { LensIcon } from '../icons'; export const Search: FC = () => { @@ -12,14 +12,14 @@ export const Search: FC = () => { borderColor={{ base: 'bg', md: 'primary' }} px={4} py={{ base: 8, md: 4 }} - _hover={{ base: {bg: 'primary'}, md: {bg: 'none'}}} + _hover={{ base: { bg: 'primary' }, md: { bg: 'none' } }} > @@ -27,4 +27,4 @@ export const Search: FC = () => { ); -}; \ No newline at end of file +}; diff --git a/src/components/UI/search/index.ts b/src/components/UI/search/index.ts index 14c382eab6..addd53308b 100644 --- a/src/components/UI/search/index.ts +++ b/src/components/UI/search/index.ts @@ -1 +1 @@ -export * from './Search'; \ No newline at end of file +export * from './Search'; diff --git a/src/components/UI/svgs/GlyphHome.tsx b/src/components/UI/svgs/GlyphHome.tsx index 6abf1fbe1f..4e25ad08b0 100644 --- a/src/components/UI/svgs/GlyphHome.tsx +++ b/src/components/UI/svgs/GlyphHome.tsx @@ -7,15 +7,47 @@ const Icon = createIcon({ displayName: 'GlyphHome', viewBox: `0 0 ${w} ${h}`, path: ( - - - - - - - + + + + + + + ) }); -export const GlyphHome: React.FC = (props) => ; +export const GlyphHome: React.FC = props => ( + +); diff --git a/src/components/UI/svgs/GopherDownloads.tsx b/src/components/UI/svgs/GopherDownloads.tsx index 56a86936db..df438c2dd9 100644 --- a/src/components/UI/svgs/GopherDownloads.tsx +++ b/src/components/UI/svgs/GopherDownloads.tsx @@ -7,497 +7,2939 @@ const Icon = createIcon({ displayName: 'GopherDownloads', viewBox: `0 0 ${w} ${h}`, path: ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) }); -export const GopherDownloads: React.FC = (props) => ; +export const GopherDownloads: React.FC = props => ( + +); diff --git a/src/components/UI/svgs/GopherHomeFront.tsx b/src/components/UI/svgs/GopherHomeFront.tsx index 6695320581..c27023c3ce 100644 --- a/src/components/UI/svgs/GopherHomeFront.tsx +++ b/src/components/UI/svgs/GopherHomeFront.tsx @@ -7,460 +7,2717 @@ const Icon = createIcon({ displayName: 'GopherHomeFront', viewBox: `0 0 ${w} ${h}`, path: ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) }); -export const GopherHomeFront: React.FC = (props) => ; +export const GopherHomeFront: React.FC = props => ( + +); diff --git a/src/components/UI/svgs/GopherHomeLinks.tsx b/src/components/UI/svgs/GopherHomeLinks.tsx index 0660ea53b2..abc8883c2d 100644 --- a/src/components/UI/svgs/GopherHomeLinks.tsx +++ b/src/components/UI/svgs/GopherHomeLinks.tsx @@ -7,424 +7,2501 @@ const Icon = createIcon({ displayName: 'GopherHomeLinks', viewBox: `0 0 ${w} ${h}`, path: ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) }); -export const GopherHomeLinks: React.FC = (props) => ; \ No newline at end of file +export const GopherHomeLinks: React.FC = props => ( + +); diff --git a/src/components/UI/svgs/GopherHomeNodes.tsx b/src/components/UI/svgs/GopherHomeNodes.tsx index 17f798a13b..f80517c2c7 100644 --- a/src/components/UI/svgs/GopherHomeNodes.tsx +++ b/src/components/UI/svgs/GopherHomeNodes.tsx @@ -7,305 +7,1787 @@ const Icon = createIcon({ displayName: 'GopherHomeNodes', viewBox: `0 0 ${w} ${h}`, path: ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) }); -export const GopherHomeNodes: React.FC = (props) => ; \ No newline at end of file +export const GopherHomeNodes: React.FC = props => ( + +); diff --git a/src/components/docs/index.ts b/src/components/docs/index.ts index 381317adf2..ce977548b1 100644 --- a/src/components/docs/index.ts +++ b/src/components/docs/index.ts @@ -1 +1 @@ -export * from './Breadcrumbs' \ No newline at end of file +export * from './Breadcrumbs'; diff --git a/src/constants.ts b/src/constants.ts index c083f48c6b..51e4822e0c 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -54,8 +54,8 @@ export const DOWNLOAD_HEADER_BUTTONS: { buildURL: '' } }; -export const DOWNLOAD_TABS = ['Linux', 'macOS', 'Windows', 'iOS', 'Android']; -export const DOWNLOAD_TAB_COLUMN_HEADERS = [ +export const DOWNLOADS_TABLE_TABS = ['Linux', 'macOS', 'Windows', 'iOS', 'Android']; +export const DOWNLOADS_TABLE_TAB_COLUMN_HEADERS = [ 'Release', 'Commit', 'Kind', @@ -65,13 +65,13 @@ export const DOWNLOAD_TAB_COLUMN_HEADERS = [ 'Signature', 'Checksum (MD5)' ]; -export const DOWNLOAD_OPENPGP_BUILD_HEADERS = [ +export const DOWNLOADS_OPENPGP_BUILD_HEADERS = [ 'Build Server', 'Unique ID', 'OpenPGP Key', 'Fingerprint' ]; -export const DOWNLOAD_OPENPGP_DEVELOPER_HEADERS = [ +export const DOWNLOADS_OPENPGP_DEVELOPER_HEADERS = [ 'Developer', 'Unique ID', 'OpenPGP Key', @@ -92,9 +92,11 @@ export const METADATA = { // GitHub urls export const LATEST_GETH_RELEASE_URL = 'https://api.github.com/repos/ethereum/go-ethereum/releases/latest'; -export const ALL_GETH_RELEASES_URL = 'https://api.github.com/repos/ethereum/go-ethereum/releases'; export const ALL_GETH_COMMITS_URL = 'https://api.github.com/repos/ethereum/go-ethereum/commits/'; +export const RELEASE_COMMIT_BASE_URL = 'https://github.com/ethereum/go-ethereum/tree/'; +// Binaries urls +export const BINARIES_BASE_URL = 'https://gethstore.blob.core.windows.net/builds/'; export const LINUX_BINARY_BASE_URL = 'https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-'; export const MACOS_BINARY_BASE_URL = @@ -102,7 +104,37 @@ export const MACOS_BINARY_BASE_URL = export const WINDOWS_BINARY_BASE_URL = 'https://gethstore.blob.core.windows.net/builds/geth-windows-amd64-'; +// Blobs urls +// linux +export const ALL_LINUX_GETH_RELEASES_URL = + 'https://gethstore.blob.core.windows.net/builds?restype=container&comp=list&prefix=geth-linux'; +export const ALL_LINUX_ALLTOOLS_GETH_RELEASES_URL = + 'https://gethstore.blob.core.windows.net/builds?restype=container&comp=list&prefix=geth-alltools-linux'; + +// macOS +export const ALL_MACOS_GETH_RELEASES_URL = + 'https://gethstore.blob.core.windows.net/builds?restype=container&comp=list&prefix=geth-darwin'; +export const ALL_MACOS_ALLTOOLS_GETH_RELEASES_URL = + 'https://gethstore.blob.core.windows.net/builds?restype=container&comp=list&prefix=geth-alltools-darwin'; + +// windows +export const ALL_WINDOWS_GETH_RELEASES_URL = + 'https://gethstore.blob.core.windows.net/builds?restype=container&comp=list&prefix=geth-windows'; +export const ALL_WINDOWS_ALLTOOLS_GETH_RELEASES_URL = + 'https://gethstore.blob.core.windows.net/builds?restype=container&comp=list&prefix=geth-alltools-windows'; + +// android +export const ALL_ANDROID_GETH_RELEASES_URL = + 'https://gethstore.blob.core.windows.net/builds?restype=container&comp=list&prefix=geth-android-all'; + +// iOS +export const ALL_IOS_GETH_RELEASES_URL = + 'https://gethstore.blob.core.windows.net/builds?restype=container&comp=list&prefix=geth-ios-all'; + +// Sources urls export const LATEST_SOURCES_BASE_URL = 'https://github.com/ethereum/go-ethereum/archive/'; + +// Release notes urls export const RELEASE_NOTES_BASE_URL = 'https://github.com/ethereum/go-ethereum/releases/tag/'; // Code snippet class constants diff --git a/src/data/test/download-testdata.ts b/src/data/test/download-testdata.ts deleted file mode 100644 index 7dff5e4753..0000000000 --- a/src/data/test/download-testdata.ts +++ /dev/null @@ -1,122 +0,0 @@ -export const testDownloadData = [ - { - release: 'Geth 1.10.23', - commit: 'd901d853…', - kind: 'archive', - arch: '64-bit', - size: '11.71 MB', - published: 'Last Wednesday at 11:11 AM', - signature: 'Signature', - 'checksum (md5)': 'c93b0339413a8f2b95aa4b23b32d64af' - }, - { - release: 'Geth 1.10.23', - commit: 'd901d853…', - kind: 'archive', - arch: '64-bit', - size: '11.71 MB', - published: 'Last Wednesday at 11:11 AM', - signature: 'Signature', - 'checksum (md5)': 'c93b0339413a8f2b95aa4b23b32d64af' - }, - { - release: 'Geth 1.10.23', - commit: 'd901d853…', - kind: 'archive', - arch: '64-bit', - size: '11.71 MB', - published: 'Last Wednesday at 11:11 AM', - signature: 'Signature', - 'checksum (md5)': 'c93b0339413a8f2b95aa4b23b32d64af' - }, - { - release: 'Geth 1.10.23', - commit: 'd901d853…', - kind: 'archive', - arch: '64-bit', - size: '11.71 MB', - published: 'Last Wednesday at 11:11 AM', - signature: 'Signature', - 'checksum (md5)': 'c93b0339413a8f2b95aa4b23b32d64af' - }, - { - release: 'Geth 1.10.23', - commit: 'd901d853…', - kind: 'archive', - arch: '64-bit', - size: '11.71 MB', - published: 'Last Wednesday at 11:11 AM', - signature: 'Signature', - 'checksum (md5)': 'c93b0339413a8f2b95aa4b23b32d64af' - }, - { - release: 'Geth 1.10.23', - commit: 'd901d853…', - kind: 'archive', - arch: '64-bit', - size: '11.71 MB', - published: 'Last Wednesday at 11:11 AM', - signature: 'Signature', - 'checksum (md5)': 'c93b0339413a8f2b95aa4b23b32d64af' - }, - { - release: 'Geth 1.10.23', - commit: 'd901d853…', - kind: 'archive', - arch: '64-bit', - size: '11.71 MB', - published: 'Last Wednesday at 11:11 AM', - signature: 'Signature', - 'checksum (md5)': 'c93b0339413a8f2b95aa4b23b32d64af' - }, - { - release: 'Geth 1.10.23', - commit: 'd901d853…', - kind: 'archive', - arch: '64-bit', - size: '11.71 MB', - published: 'Last Wednesday at 11:11 AM', - signature: 'Signature', - 'checksum (md5)': 'c93b0339413a8f2b95aa4b23b32d64af' - }, - { - release: 'Geth 1.10.23', - commit: 'd901d853…', - kind: 'archive', - arch: '64-bit', - size: '11.71 MB', - published: 'Last Wednesday at 11:11 AM', - signature: 'Signature', - 'checksum (md5)': 'c93b0339413a8f2b95aa4b23b32d64af' - }, - { - release: 'Geth 1.10.23', - commit: 'd901d853…', - kind: 'archive', - arch: '64-bit', - size: '11.71 MB', - published: 'Last Wednesday at 11:11 AM', - signature: 'Signature', - 'checksum (md5)': 'c93b0339413a8f2b95aa4b23b32d64af' - }, - { - release: 'Geth 1.10.23', - commit: 'd901d853…', - kind: 'archive', - arch: '64-bit', - size: '11.71 MB', - published: 'Last Wednesday at 11:11 AM', - signature: 'Signature', - 'checksum (md5)': 'c93b0339413a8f2b95aa4b23b32d64af' - }, - { - release: 'Geth 1.10.23', - commit: 'd901d853…', - kind: 'archive', - arch: '64-bit', - size: '11.71 MB', - published: 'Last Wednesday at 11:11 AM', - signature: 'Signature', - 'checksum (md5)': 'c93b0339413a8f2b95aa4b23b32d64af' - } -]; diff --git a/src/pages/downloads.tsx b/src/pages/downloads.tsx index 5222cd34e3..8f119d926c 100644 --- a/src/pages/downloads.tsx +++ b/src/pages/downloads.tsx @@ -1,6 +1,7 @@ import { Center, Code, Flex, Link, ListItem, Stack, Text, UnorderedList } from '@chakra-ui/react'; -import type { GetServerSideProps, NextPage } from 'next'; +import type { GetStaticProps, NextPage } from 'next'; import { useState } from 'react'; +import { XMLParser } from 'fast-xml-parser'; import { DownloadsHero, @@ -11,49 +12,43 @@ import { import { DataTable, PageMetadata } from '../components/UI'; import { - ALL_GETH_COMMITS_URL, DEFAULT_BUILD_AMOUNT_TO_SHOW, - DOWNLOAD_OPENPGP_BUILD_HEADERS, - DOWNLOAD_OPENPGP_DEVELOPER_HEADERS, + DOWNLOADS_OPENPGP_BUILD_HEADERS, + DOWNLOADS_OPENPGP_DEVELOPER_HEADERS, GETH_REPO_URL, METADATA, - LATEST_GETH_RELEASE_URL, LATEST_SOURCES_BASE_URL, - LINUX_BINARY_BASE_URL, - MACOS_BINARY_BASE_URL, - RELEASE_NOTES_BASE_URL, - WINDOWS_BINARY_BASE_URL + RELEASE_NOTES_BASE_URL } from '../constants'; -import { testDownloadData } from '../data/test/download-testdata'; import { pgpBuildTestData } from '../data/test/pgpbuild-testdata'; import { pgpDeveloperTestData } from '../data/test/pgpdeveloper-testdata'; -export const getServerSideProps: GetServerSideProps = async () => { - // Latest release name & version number - const { versionNumber, releaseName } = await fetch(LATEST_GETH_RELEASE_URL) - .then(response => response.json()) - .then(release => { - return { - versionNumber: release.tag_name, - releaseName: release.name - }; - }); +import { + fetchLatestReleaseCommit, + fetchLatestReleaseVersionAndName, + fetchXMLData, + getLatestBinaryURL, + getSortedReleases, + mapReleasesData +} from '../utils'; +import { LatestReleasesData, ReleaseData } from '../types'; + +// This function gets called at build time on server-side. +// It'll be called again if a new request comes in after 1hr, so data is refreshed periodically +// More info: https://nextjs.org/docs/basic-features/data-fetching/incremental-static-regeneration +export const getStaticProps: GetStaticProps = async () => { + // ==== LATEST RELEASES DATA ==== + + // Latest version number & release name + const { versionNumber, releaseName } = await fetchLatestReleaseVersionAndName(); // Latest release commit hash - const commit = await fetch(`${ALL_GETH_COMMITS_URL}/${versionNumber}`) - .then(response => response.json()) - .then(commit => commit.sha.slice(0, 8)); + const commit = await fetchLatestReleaseCommit(versionNumber); // Latest binaries urls - const LATEST_LINUX_BINARY_URL = `${LINUX_BINARY_BASE_URL}${versionNumber.slice( - 1 - )}-${commit}.tar.gz`; - const LATEST_MACOS_BINARY_URL = `${MACOS_BINARY_BASE_URL}${versionNumber.slice( - 1 - )}-${commit}.tar.gz`; - const LATEST_WINDOWS_BINARY_URL = `${WINDOWS_BINARY_BASE_URL}${versionNumber.slice( - 1 - )}-${commit}.exe`; + const LATEST_LINUX_BINARY_URL = getLatestBinaryURL('linux', versionNumber, commit); + const LATEST_MACOS_BINARY_URL = getLatestBinaryURL('darwin', versionNumber, commit); + const LATEST_WINDOWS_BINARY_URL = getLatestBinaryURL('windows', versionNumber, commit); // Sources urls const LATEST_SOURCES_URL = `${LATEST_SOURCES_BASE_URL}${versionNumber}.tar.gz`; @@ -71,63 +66,249 @@ export const getServerSideProps: GetServerSideProps = async () => { } }; - return { - props: { - data: { LATEST_RELEASES_DATA } - } - }; + // ==== ALL RELEASES DATA ==== + + // 1) fetch XML data + try { + const [ + ALL_LINUX_RELEASES_XML_DATA, + ALL_LINUX_ALL_TOOLS_RELEASES_XML_DATA, + ALL_MACOS_RELEASES_XML_DATA, + ALL_MACOS_ALL_TOOLS_RELEASES_XML_DATA, + ALL_WINDOWS_RELEASES_XML_DATA, + ALL_WINDOWS_ALL_TOOLS_RELEASES_XML_DATA, + ALL_ANDROID_RELEASES_XML_DATA, + ALL_IOS_RELEASES_XML_DATA + ] = await fetchXMLData(); + + // 2) XML data parsing + const parser = new XMLParser(); + + // linux + const linuxJson = parser.parse(ALL_LINUX_RELEASES_XML_DATA); + const ALL_LINUX_BLOBS_JSON_DATA = linuxJson.EnumerationResults.Blobs.Blob; + + const linuxAllToolsJson = parser.parse(ALL_LINUX_ALL_TOOLS_RELEASES_XML_DATA); + const ALL_LINUX_ALL_TOOLS_BLOBS_JSON_DATA = linuxAllToolsJson.EnumerationResults.Blobs.Blob; + + // macOS + const macOSJson = parser.parse(ALL_MACOS_RELEASES_XML_DATA); + const ALL_MACOS_BLOBS_JSON_DATA = macOSJson.EnumerationResults.Blobs.Blob; + + const macOSAllToolsJson = parser.parse(ALL_MACOS_ALL_TOOLS_RELEASES_XML_DATA); + const ALL_MACOS_ALL_TOOLS_BLOBS_JSON_DATA = macOSAllToolsJson.EnumerationResults.Blobs.Blob; + + // windows + const windowsJson = parser.parse(ALL_WINDOWS_RELEASES_XML_DATA); + const ALL_WINDOWS_BLOBS_JSON_DATA = windowsJson.EnumerationResults.Blobs.Blob; + + const windowsAllToolsJson = parser.parse(ALL_WINDOWS_ALL_TOOLS_RELEASES_XML_DATA); + const ALL_WINDOWS_ALL_TOOLS_BLOBS_JSON_DATA = windowsAllToolsJson.EnumerationResults.Blobs.Blob; + + // android + const androidJson = parser.parse(ALL_ANDROID_RELEASES_XML_DATA); + const ALL_ANDROID_BLOBS_JSON_DATA = androidJson.EnumerationResults.Blobs.Blob; + + // iOS + const iOSJson = parser.parse(ALL_IOS_RELEASES_XML_DATA); + const ALL_IOS_BLOBS_JSON_DATA = iOSJson.EnumerationResults.Blobs.Blob; + + // 3) get blobs + // linux + const LINUX_STABLE_RELEASES_DATA = mapReleasesData({ + blobsList: ALL_LINUX_BLOBS_JSON_DATA, + isStableRelease: true + }); + const LINUX_ALLTOOLS_STABLE_RELEASES_DATA = mapReleasesData({ + blobsList: ALL_LINUX_ALL_TOOLS_BLOBS_JSON_DATA, + isStableRelease: true + }); + const LINUX_DEV_BUILDS_DATA = mapReleasesData({ + blobsList: ALL_LINUX_BLOBS_JSON_DATA, + isStableRelease: false + }); + const LINUX_ALLTOOLS_DEV_BUILDS_DATA = mapReleasesData({ + blobsList: ALL_LINUX_ALL_TOOLS_BLOBS_JSON_DATA, + isStableRelease: false + }); + + // macOS + const MACOS_STABLE_RELEASES_DATA = mapReleasesData({ + blobsList: ALL_MACOS_BLOBS_JSON_DATA, + isStableRelease: true + }); + const MACOS_ALLTOOLS_STABLE_RELEASES_DATA = mapReleasesData({ + blobsList: ALL_MACOS_ALL_TOOLS_BLOBS_JSON_DATA, + isStableRelease: true + }); + const MACOS_DEV_BUILDS_DATA = mapReleasesData({ + blobsList: ALL_MACOS_BLOBS_JSON_DATA, + isStableRelease: false + }); + const MACOS_ALLTOOLS_DEV_BUILDS_DATA = mapReleasesData({ + blobsList: ALL_MACOS_ALL_TOOLS_BLOBS_JSON_DATA, + isStableRelease: false + }); + + // windows + const WINDOWS_STABLE_RELEASES_DATA = mapReleasesData({ + blobsList: ALL_WINDOWS_BLOBS_JSON_DATA, + isStableRelease: true + }); + const WINDOWS_ALLTOOLS_STABLE_RELEASES_DATA = mapReleasesData({ + blobsList: ALL_WINDOWS_ALL_TOOLS_BLOBS_JSON_DATA, + isStableRelease: true + }); + const WINDOWS_DEV_BUILDS_DATA = mapReleasesData({ + blobsList: ALL_WINDOWS_BLOBS_JSON_DATA, + isStableRelease: false + }); + const WINDOWS_ALLTOOLS_DEV_BUILDS_DATA = mapReleasesData({ + blobsList: ALL_WINDOWS_ALL_TOOLS_BLOBS_JSON_DATA, + isStableRelease: false + }); + + // android + const ANDROID_STABLE_RELEASES_DATA = mapReleasesData({ + blobsList: ALL_ANDROID_BLOBS_JSON_DATA, + isStableRelease: true + }); + const ANDROID_DEV_BUILDS_DATA = mapReleasesData({ + blobsList: ALL_ANDROID_BLOBS_JSON_DATA, + isStableRelease: false + }); + + // iOS + const IOS_STABLE_RELEASES_DATA = mapReleasesData({ + blobsList: ALL_IOS_BLOBS_JSON_DATA, + isStableRelease: true + }); + const IOS_DEV_BUILDS_DATA = mapReleasesData({ + blobsList: ALL_IOS_BLOBS_JSON_DATA, + isStableRelease: false + }); + + return { + props: { + data: { + // latest + LATEST_RELEASES_DATA, + // linux + ALL_LINUX_STABLE_RELEASES: getSortedReleases( + LINUX_STABLE_RELEASES_DATA, + LINUX_ALLTOOLS_STABLE_RELEASES_DATA + ), + ALL_LINUX_DEV_BUILDS: getSortedReleases( + LINUX_DEV_BUILDS_DATA, + LINUX_ALLTOOLS_DEV_BUILDS_DATA + ), + // macOS + ALL_MACOS_STABLE_RELEASES: getSortedReleases( + MACOS_STABLE_RELEASES_DATA, + MACOS_ALLTOOLS_STABLE_RELEASES_DATA + ), + ALL_MACOS_DEV_BUILDS: getSortedReleases( + MACOS_DEV_BUILDS_DATA, + MACOS_ALLTOOLS_DEV_BUILDS_DATA + ), + // windows + ALL_WINDOWS_STABLE_RELEASES: getSortedReleases( + WINDOWS_STABLE_RELEASES_DATA, + WINDOWS_ALLTOOLS_STABLE_RELEASES_DATA + ), + ALL_WINDOWS_DEV_BUILDS: getSortedReleases( + WINDOWS_DEV_BUILDS_DATA, + WINDOWS_ALLTOOLS_DEV_BUILDS_DATA + ), + // android + ALL_ANDROID_STABLE_RELEASES: getSortedReleases(ANDROID_STABLE_RELEASES_DATA), + ALL_ANDROID_DEV_BUILDS: getSortedReleases(ANDROID_DEV_BUILDS_DATA), + // iOS + ALL_IOS_STABLE_RELEASES: getSortedReleases(IOS_STABLE_RELEASES_DATA), + ALL_IOS_DEV_BUILDS: getSortedReleases(IOS_DEV_BUILDS_DATA) + } + }, + // using ISR here (https://nextjs.org/docs/basic-features/data-fetching/incremental-static-regeneration) + revalidate: 3600 // 1hr in seconds + }; + } catch (error) { + console.error(error); + + return { notFound: true }; + } }; interface Props { data: { - // TODO: define interfaces after adding the rest of the logic - LATEST_RELEASES_DATA: { - versionNumber: string; - releaseName: string; - urls: { - LATEST_LINUX_BINARY_URL: string; - LATEST_MACOS_BINARY_URL: string; - LATEST_WINDOWS_BINARY_URL: string; - LATEST_SOURCES_URL: string; - RELEASE_NOTES_URL: string; - }; - }; + // latest + LATEST_RELEASES_DATA: LatestReleasesData; + // linux + ALL_LINUX_STABLE_RELEASES: ReleaseData[]; + ALL_LINUX_DEV_BUILDS: ReleaseData[]; + // macOS + ALL_MACOS_STABLE_RELEASES: ReleaseData[]; + ALL_MACOS_DEV_BUILDS: ReleaseData[]; + // windows + ALL_WINDOWS_STABLE_RELEASES: ReleaseData[]; + ALL_WINDOWS_DEV_BUILDS: ReleaseData[]; + // android + ALL_ANDROID_STABLE_RELEASES: ReleaseData[]; + ALL_ANDROID_DEV_BUILDS: ReleaseData[]; + // iOS + ALL_IOS_STABLE_RELEASES: ReleaseData[]; + ALL_IOS_DEV_BUILDS: ReleaseData[]; }; } const DownloadsPage: NextPage = ({ data }) => { - const [amountStableReleases, updateAmountStables] = useState(DEFAULT_BUILD_AMOUNT_TO_SHOW); - const [amountDevelopBuilds, updateAmountDevelopBuilds] = useState(DEFAULT_BUILD_AMOUNT_TO_SHOW); + const { + // latest + LATEST_RELEASES_DATA, + // linux + ALL_LINUX_STABLE_RELEASES, + ALL_LINUX_DEV_BUILDS, + // macOS + ALL_MACOS_STABLE_RELEASES, + ALL_MACOS_DEV_BUILDS, + // windows + ALL_WINDOWS_STABLE_RELEASES, + ALL_WINDOWS_DEV_BUILDS, + // android + ALL_ANDROID_STABLE_RELEASES, + ALL_ANDROID_DEV_BUILDS, + // iOS + ALL_IOS_STABLE_RELEASES, + ALL_IOS_DEV_BUILDS + } = data; + + const [amountStableReleases, setAmountStableReleases] = useState(DEFAULT_BUILD_AMOUNT_TO_SHOW); + const [amountDevBuilds, setAmountDevBuilds] = useState(DEFAULT_BUILD_AMOUNT_TO_SHOW); + + const [totalStableReleases, setTotalStableReleases] = useState(ALL_LINUX_STABLE_RELEASES.length); + const [totalDevBuilds, setTotalDevBuilds] = useState(ALL_LINUX_DEV_BUILDS.length); const showMoreStableReleases = () => { - updateAmountStables(amountStableReleases + 10); + setAmountStableReleases(amountStableReleases + 10); }; - const showMoreDevelopBuilds = () => { - updateAmountDevelopBuilds(amountDevelopBuilds + 10); + const showMoreDevBuilds = () => { + setAmountDevBuilds(amountDevBuilds + 10); }; - const { - LATEST_RELEASES_DATA: { releaseName, versionNumber, urls } - } = data; - return ( <> - +
@@ -168,6 +349,7 @@ const DownloadsPage: NextPage = ({ data }) => { + {/* STABLE RELEASES */} = ({ data }) => { } sectionTitle='Stable releases' > - {/* TODO: swap test data for real data */} - - + - -
- {/* TODO: swap testDownloadData with actual data */} - - Showing {amountStableReleases} latest releases of a total{' '} - {testDownloadData.length} releases - -
+ + + {totalStableReleases > 0 + ? `Showing ${Math.min( + amountStableReleases, + totalStableReleases + )} latest releases of + a total ${totalStableReleases} releases` + : `No releases`} + - - - amountStableReleases && ( + + - Show older releases - - - + + Show older releases + + +
+ )} + {/* DEV BUILDS */} = ({ data }) => { } sectionTitle='Develop builds' > - {/* TODO: swap for real data */} - - + - -
- {/* TODO: swap testDownloadData with actual data */} - - Showing {amountDevelopBuilds} latest releases of a total{' '} - {testDownloadData.length} releases - -
-
- - - - Show older releases - - + + + {totalDevBuilds > 0 + ? `Showing ${Math.min(amountDevBuilds, totalDevBuilds)} latest releases of + a total ${totalDevBuilds} releases` + : `No releases`} + + + {totalDevBuilds > amountDevBuilds && ( + + + + Show older releases + + + + )}
@@ -277,13 +485,13 @@ const DownloadsPage: NextPage = ({ data }) => { > {/* TODO: swap for real data */} - + {/* TODO: swap for real data */} diff --git a/src/types.ts b/src/types.ts new file mode 100644 index 0000000000..0a262c01dd --- /dev/null +++ b/src/types.ts @@ -0,0 +1,36 @@ +export interface LatestReleasesData { + versionNumber: string; + releaseName: string; + urls: { + LATEST_LINUX_BINARY_URL: string; + LATEST_MACOS_BINARY_URL: string; + LATEST_WINDOWS_BINARY_URL: string; + LATEST_SOURCES_URL: string; + RELEASE_NOTES_URL: string; + }; +} + +export interface ReleaseData { + release: { + label: string; + url: string; + }; + commit: { + label: string; + url: string; + }; + kind: string; + arch: string; + size: string; + published: string; + signature: { + label: string; + url: string; + }; + checksum: string; +} + +export interface ReleaseParams { + blobsList: string[]; + isStableRelease: boolean; +} diff --git a/src/utils/compareReleasesFn.ts b/src/utils/compareReleasesFn.ts new file mode 100644 index 0000000000..fa2f2b02ef --- /dev/null +++ b/src/utils/compareReleasesFn.ts @@ -0,0 +1,13 @@ +import { ReleaseData } from '../types'; + +export const compareReleasesFn = (a: ReleaseData, b: ReleaseData) => { + if (new Date(a.published) > new Date(b.published)) { + return -1; + } + + if (new Date(a.published) < new Date(b.published)) { + return 1; + } + + return 0; +}; diff --git a/src/utils/fetchLatestReleaseCommit.ts b/src/utils/fetchLatestReleaseCommit.ts new file mode 100644 index 0000000000..005abcbb33 --- /dev/null +++ b/src/utils/fetchLatestReleaseCommit.ts @@ -0,0 +1,7 @@ +import { ALL_GETH_COMMITS_URL } from '../constants'; + +export const fetchLatestReleaseCommit = (versionNumber: string) => { + return fetch(`${ALL_GETH_COMMITS_URL}/${versionNumber}`) + .then(response => response.json()) + .then(commit => commit.sha.slice(0, 8)); +}; diff --git a/src/utils/fetchLatestReleaseVersionAndName.ts b/src/utils/fetchLatestReleaseVersionAndName.ts new file mode 100644 index 0000000000..e022766067 --- /dev/null +++ b/src/utils/fetchLatestReleaseVersionAndName.ts @@ -0,0 +1,12 @@ +import { LATEST_GETH_RELEASE_URL } from '../constants'; + +export const fetchLatestReleaseVersionAndName = () => { + return fetch(LATEST_GETH_RELEASE_URL) + .then(response => response.json()) + .then(release => { + return { + versionNumber: release.tag_name as string, + releaseName: release.name as string + }; + }); +}; diff --git a/src/utils/fetchXMLData.ts b/src/utils/fetchXMLData.ts new file mode 100644 index 0000000000..a379608340 --- /dev/null +++ b/src/utils/fetchXMLData.ts @@ -0,0 +1,25 @@ +import { + ALL_ANDROID_GETH_RELEASES_URL, + ALL_IOS_GETH_RELEASES_URL, + ALL_LINUX_ALLTOOLS_GETH_RELEASES_URL, + ALL_LINUX_GETH_RELEASES_URL, + ALL_MACOS_ALLTOOLS_GETH_RELEASES_URL, + ALL_MACOS_GETH_RELEASES_URL, + ALL_WINDOWS_ALLTOOLS_GETH_RELEASES_URL, + ALL_WINDOWS_GETH_RELEASES_URL +} from '../constants'; + +export const fetchXMLData = () => { + const urls = [ + ALL_LINUX_GETH_RELEASES_URL, + ALL_LINUX_ALLTOOLS_GETH_RELEASES_URL, + ALL_MACOS_GETH_RELEASES_URL, + ALL_MACOS_ALLTOOLS_GETH_RELEASES_URL, + ALL_WINDOWS_GETH_RELEASES_URL, + ALL_WINDOWS_ALLTOOLS_GETH_RELEASES_URL, + ALL_ANDROID_GETH_RELEASES_URL, + ALL_IOS_GETH_RELEASES_URL + ]; + + return Promise.all(urls.map(url => fetch(url).then(response => response.text()))); +}; diff --git a/src/utils/getChecksum.ts b/src/utils/getChecksum.ts new file mode 100644 index 0000000000..8c7c3a34ef --- /dev/null +++ b/src/utils/getChecksum.ts @@ -0,0 +1,10 @@ +export const getChecksum = (contentMD5: string) => { + // based on https://github.com/ethereum/go-ethereum/blob/7519505d6fbd1fd29a8595aafbf880a04fb3e7e1/downloads.html#L318 + return Buffer.from(contentMD5, 'base64') + .toString('binary') + .split('') + .map(function (char) { + return ('0' + char.charCodeAt(0).toString(16)).slice(-2); + }) + .join(''); +}; diff --git a/src/utils/getLatestBinaryURL.ts b/src/utils/getLatestBinaryURL.ts new file mode 100644 index 0000000000..d9b3ec0952 --- /dev/null +++ b/src/utils/getLatestBinaryURL.ts @@ -0,0 +1,13 @@ +import { + LINUX_BINARY_BASE_URL, + MACOS_BINARY_BASE_URL, + WINDOWS_BINARY_BASE_URL +} from '../constants'; + +export const getLatestBinaryURL = (os: string, versionNumber: string, commit: string) => { + if (os === 'linux') return `${LINUX_BINARY_BASE_URL}${versionNumber.slice(1)}-${commit}.tar.gz`; + + if (os === 'darwin') return `${MACOS_BINARY_BASE_URL}${versionNumber.slice(1)}-${commit}.tar.gz`; + + return `${WINDOWS_BINARY_BASE_URL}${versionNumber.slice(1)}-${commit}.exe`; +}; diff --git a/src/utils/getParsedDate.ts b/src/utils/getParsedDate.ts new file mode 100644 index 0000000000..5c87738c12 --- /dev/null +++ b/src/utils/getParsedDate.ts @@ -0,0 +1,12 @@ +export const getParsedDate = (date: string) => { + const dateOptions = { + year: 'numeric', + month: 'long', + day: 'numeric', + hour: '2-digit', + minute: '2-digit', + timeZone: 'UTC' + } as const; + + return new Date(date).toLocaleDateString('en', dateOptions); +}; diff --git a/src/utils/getReleaseArch.ts b/src/utils/getReleaseArch.ts new file mode 100644 index 0000000000..a2633bed0a --- /dev/null +++ b/src/utils/getReleaseArch.ts @@ -0,0 +1,28 @@ +export const getReleaseArch = (filename: string) => { + const arch = filename.includes('alltools') ? filename.split('-')[3] : filename.split('-')[2]; + + switch (arch) { + case '386': + return '32-bit'; + case 'amd64': + return '64-bit'; + case 'arm5': + return 'ARMv5'; + case 'arm6': + return 'ARMv6'; + case 'arm7': + return 'ARMv7'; + case 'arm64': + return 'ARM64'; + case 'mips': + return 'MIPS32'; + case 'mipsle': + return 'MIPS32(le)'; + case 'mips64': + return 'MIPS64'; + case 'MIPS64(le)': + return 'MIPS64(le)'; + default: + return 'all'; + } +}; diff --git a/src/utils/getReleaseCommitHash.ts b/src/utils/getReleaseCommitHash.ts new file mode 100644 index 0000000000..4a769d01ce --- /dev/null +++ b/src/utils/getReleaseCommitHash.ts @@ -0,0 +1,3 @@ +export const getReleaseCommitHash = (filename: string) => { + return filename.split('-').reverse()[0].split('.')[0]; +}; diff --git a/src/utils/getReleaseCommitURL.ts b/src/utils/getReleaseCommitURL.ts new file mode 100644 index 0000000000..6560be48e5 --- /dev/null +++ b/src/utils/getReleaseCommitURL.ts @@ -0,0 +1,3 @@ +import { RELEASE_COMMIT_BASE_URL } from '../constants'; + +export const getReleaseCommitURL = (hash: string) => `${RELEASE_COMMIT_BASE_URL}${hash}`; diff --git a/src/utils/getReleaseKind.ts b/src/utils/getReleaseKind.ts new file mode 100644 index 0000000000..5b0f5d036a --- /dev/null +++ b/src/utils/getReleaseKind.ts @@ -0,0 +1,17 @@ +export const getReleaseKind = (filename: string) => { + const os = filename.includes('alltools') ? filename.split('-')[2] : filename.split('-')[1]; + + if (os == 'android' || os == 'ios') { + return 'Library'; + } + + if (os == 'windows') { + if (filename.endsWith('.exe')) { + return 'Installer'; + } else { + return 'Library'; + } + } + + return 'Archive'; +}; diff --git a/src/utils/getReleaseName.ts b/src/utils/getReleaseName.ts new file mode 100644 index 0000000000..6b40eef568 --- /dev/null +++ b/src/utils/getReleaseName.ts @@ -0,0 +1,5 @@ +export const getReleaseName = (filename: string) => { + return filename.includes('alltools') + ? `Geth & Tools ${filename.split('-')[4]}` + : `Geth ${filename.split('-')[3]}`; +}; diff --git a/src/utils/getReleaseSize.ts b/src/utils/getReleaseSize.ts new file mode 100644 index 0000000000..77153ebab8 --- /dev/null +++ b/src/utils/getReleaseSize.ts @@ -0,0 +1,8 @@ +export const getReleaseSize = (bytes: number) => { + const k = 1024; + const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; + + const i = Math.floor(Math.log(bytes) / Math.log(k)); + + return `${parseFloat((bytes / Math.pow(k, i)).toFixed(2))} ${sizes[i]}`; +}; diff --git a/src/utils/getReleaseURL.ts b/src/utils/getReleaseURL.ts new file mode 100644 index 0000000000..bd083a3fa8 --- /dev/null +++ b/src/utils/getReleaseURL.ts @@ -0,0 +1,3 @@ +import { BINARIES_BASE_URL } from '../constants'; + +export const getReleaseURL = (filename: string) => `${BINARIES_BASE_URL}${filename}`; diff --git a/src/utils/getSignatureURL.ts b/src/utils/getSignatureURL.ts new file mode 100644 index 0000000000..d5107c6d89 --- /dev/null +++ b/src/utils/getSignatureURL.ts @@ -0,0 +1,4 @@ +import { BINARIES_BASE_URL } from '../constants'; + +// only .sc files are being considered for signatures (https://github.com/ethereum/go-ethereum/blob/7519505d6fbd1fd29a8595aafbf880a04fb3e7e1/downloads.html#L299) +export const getSignatureURL = (filename: string) => `${BINARIES_BASE_URL}${filename}.asc`; diff --git a/src/utils/getSortedReleases.ts b/src/utils/getSortedReleases.ts new file mode 100644 index 0000000000..830c406852 --- /dev/null +++ b/src/utils/getSortedReleases.ts @@ -0,0 +1,6 @@ +import { ReleaseData } from './../types'; +import { compareReleasesFn } from './compareReleasesFn'; + +export const getSortedReleases = (releases: ReleaseData[], moreReleases: ReleaseData[] = []) => { + return releases.concat(moreReleases).sort(compareReleasesFn); +}; diff --git a/src/utils/index.ts b/src/utils/index.ts index e3d2a70842..dcc6c5caa4 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1 +1,18 @@ -export * from './getProgrammingLanguageName'; +export { compareReleasesFn } from './compareReleasesFn'; +export { fetchLatestReleaseCommit } from './fetchLatestReleaseCommit'; +export { fetchLatestReleaseVersionAndName } from './fetchLatestReleaseVersionAndName'; +export { fetchXMLData } from './fetchXMLData'; +export { getLatestBinaryURL } from './getLatestBinaryURL'; +export { getChecksum } from './getChecksum'; +export { getParsedDate } from './getParsedDate'; +export { getProgrammingLanguageName } from './getProgrammingLanguageName'; +export { getReleaseArch } from './getReleaseArch'; +export { getReleaseCommitHash } from './getReleaseCommitHash'; +export { getReleaseCommitURL } from './getReleaseCommitURL'; +export { getReleaseKind } from './getReleaseKind'; +export { getReleaseName } from './getReleaseName'; +export { getReleaseSize } from './getReleaseSize'; +export { getReleaseURL } from './getReleaseURL'; +export { getSignatureURL } from './getSignatureURL'; +export { getSortedReleases } from './getSortedReleases'; +export { mapReleasesData } from './mapReleasesData'; diff --git a/src/utils/mapReleasesData.ts b/src/utils/mapReleasesData.ts new file mode 100644 index 0000000000..96db513945 --- /dev/null +++ b/src/utils/mapReleasesData.ts @@ -0,0 +1,45 @@ +import { + getChecksum, + getReleaseArch, + getReleaseCommitHash, + getReleaseCommitURL, + getReleaseKind, + getReleaseName, + getReleaseSize, + getReleaseURL, + getSignatureURL +} from '.'; + +import { ReleaseData, ReleaseParams } from '../types'; + +export const mapReleasesData = ({ blobsList, isStableRelease }: ReleaseParams): ReleaseData[] => { + return blobsList + .filter(({ Name }: any) => !Name.endsWith('.asc') && !Name.endsWith('.sig')) // skip blobs we don't need to list + .filter(({ Name }: any) => + isStableRelease ? !Name.includes('unstable') : Name.includes('unstable') + ) // filter by stable/dev builds + .map(({ Name, Properties }: any) => { + const commitHash = getReleaseCommitHash(Name); + + return { + release: { + label: getReleaseName(Name), + url: getReleaseURL(Name) + }, + commit: { + label: commitHash, + url: getReleaseCommitURL(commitHash) + }, + kind: getReleaseKind(Name), + arch: getReleaseArch(Name), + size: getReleaseSize(Properties['Content-Length']), + // date is formatted later on the table, we use the raw value here for comparison + published: Properties['Last-Modified'], + signature: { + label: 'Signature', + url: getSignatureURL(Name) + }, + checksum: getChecksum(Properties['Content-MD5']) + }; + }); +}; diff --git a/yarn.lock b/yarn.lock index b4a8d58fea..9cee803ca5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -73,7 +73,7 @@ "@chakra-ui/accordion@2.0.12": version "2.0.12" - resolved "https://registry.npmjs.org/@chakra-ui/accordion/-/accordion-2.0.12.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/accordion/-/accordion-2.0.12.tgz#dd260fbecb639748314f440c89052ed45006c585" integrity sha512-O3qq8mILo1QODjCGr2xwxC5LNFakBoMzTjEgpvpIMynxWc/1RKfGuFLis3IDfpHIicXmBTK6sNiZXewmna88CQ== dependencies: "@chakra-ui/descendant" "3.0.9" @@ -85,7 +85,7 @@ "@chakra-ui/alert@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/alert/-/alert-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/alert/-/alert-2.0.9.tgz#25e88c105e095def374c9fe1e3c8a3f6fab08f6c" integrity sha512-hFRIh6ZzQJ0sAESRym15mW/mcZE/yu4z6lFtdToBhpfSlhZLuE7gDdOTxqGkg417hY//48NiNXOCoQ2dUUuHKw== dependencies: "@chakra-ui/icon" "3.0.9" @@ -94,12 +94,12 @@ "@chakra-ui/anatomy@2.0.6": version "2.0.6" - resolved "https://registry.npmjs.org/@chakra-ui/anatomy/-/anatomy-2.0.6.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/anatomy/-/anatomy-2.0.6.tgz#83164841d27eaa271ffa747534519bcd323c312f" integrity sha512-Vgop2FFdhVtX7BydjZdJWZAWy+DdXBU1IMaBppz6COaH+/7OXxoI2ec2bs17ehJyBO0M+ud3OLj5UCFQ79YsoQ== "@chakra-ui/avatar@2.1.0": version "2.1.0" - resolved "https://registry.npmjs.org/@chakra-ui/avatar/-/avatar-2.1.0.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/avatar/-/avatar-2.1.0.tgz#009b4e126c58ef0183618cfbfb29f8e7e3357ee9" integrity sha512-SRQeH6NNvIBgUc4OsO14ypvcn8I66ndw7r4piIkm+R2zqbYnrzpp1d2zNPNHkChc4xQY71/GenenYO5Fhsi2DA== dependencies: "@chakra-ui/image" "2.0.10" @@ -108,7 +108,7 @@ "@chakra-ui/breadcrumb@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/breadcrumb/-/breadcrumb-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/breadcrumb/-/breadcrumb-2.0.9.tgz#357e4e2a50cdad87c0b3b59656aafa85671e6142" integrity sha512-cc3WbxrJNRUph4v45qCdcIKJI0xECeV9VikQNIactBB+iexN4d+5P66xZABAkD8wWGmyH5KuSZcd9sFYNmC13w== dependencies: "@chakra-ui/react-children-utils" "2.0.1" @@ -116,12 +116,12 @@ "@chakra-ui/breakpoint-utils@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/breakpoint-utils/-/breakpoint-utils-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/breakpoint-utils/-/breakpoint-utils-2.0.3.tgz#af7f7603f31a7d8d0166307a47e88cf5902401b4" integrity sha512-smi41ZtaiPw4mXaCgicyAh5M45Drt20wypThP+qQUT2CQ51UFZhYlItRA2lCXKQ9QB83POcHPC/oAwIsNOAfTg== "@chakra-ui/button@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/button/-/button-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/button/-/button-2.0.9.tgz#f005f98bb5f1d5673a244957e6b3e2396acdf395" integrity sha512-4BuDBiBlChHW1rQ9iod9MKs87AY3IyvZQwjV3DZTU4IG0KcDDfLQf++jj4dkg9Ttu+pIWhwF42pzA40JxW1oNg== dependencies: "@chakra-ui/react-context" "2.0.3" @@ -130,7 +130,7 @@ "@chakra-ui/checkbox@2.1.8": version "2.1.8" - resolved "https://registry.npmjs.org/@chakra-ui/checkbox/-/checkbox-2.1.8.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/checkbox/-/checkbox-2.1.8.tgz#d04a9a65494cf22e8bcfafa161bb7185d92dc13b" integrity sha512-HhRs3nwTFoIE/UpX4N2AZxxW39Xm/Vw01HjwP/59X60kdKs3RBXlm52cODkfUDfveyT9o5ezLhU/jRf0qA909Q== dependencies: "@chakra-ui/form-control" "2.0.9" @@ -146,33 +146,33 @@ "@chakra-ui/clickable@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/clickable/-/clickable-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/clickable/-/clickable-2.0.9.tgz#c06486d36f4a4cb517ea75176e05021dfde117cd" integrity sha512-tGXYM6M6I954fif98QkNu5M76oBZmksCTj2mILOan9/BSimpFpu06aPGX3ZIkNsz300nIObn0FdtMvKpIEQueA== dependencies: "@chakra-ui/react-use-merge-refs" "2.0.3" "@chakra-ui/close-button@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/close-button/-/close-button-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/close-button/-/close-button-2.0.9.tgz#dab2d66c7a240c4d3d150e370980709336a4a266" integrity sha512-0RI/zLR+/mycGbYCCwDAc9hAVG7IIVmdikmo1ET7+rYip4TN94aWR0hA4dYtWqqghG1oW/pYQ9Yja6fEY90V5w== dependencies: "@chakra-ui/icon" "3.0.9" "@chakra-ui/color-mode@2.1.7": version "2.1.7" - resolved "https://registry.npmjs.org/@chakra-ui/color-mode/-/color-mode-2.1.7.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/color-mode/-/color-mode-2.1.7.tgz#91c02e82e551c5448081e4934efeddb10bb732c5" integrity sha512-GAoKJzVRQeuEfCa2i0BZdMwxuOoaGknU3+5wgvLuaSpwlov4OyqpjKMRdSdpjr4IFiqqHK47dsr3H4LQsbO+9w== dependencies: "@chakra-ui/react-use-safe-layout-effect" "2.0.1" "@chakra-ui/control-box@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/control-box/-/control-box-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/control-box/-/control-box-2.0.9.tgz#b3cd98ceb1ce683c00445ab7469e65ba3d90c3cc" integrity sha512-/viS9OBah1wCLNZbgfwkoQOnVRUYgp8Gypjqk9QNQwnNdFUTEgWc1RWN+1RYO85esJzHLkA2hZFIrYu1TZeZ6g== "@chakra-ui/counter@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/counter/-/counter-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/counter/-/counter-2.0.9.tgz#b1b7c74c4e5d1ac506d699d93da57d535370a702" integrity sha512-LuqtpyxCOZM19gAmV0vtVeaFd9ccPmEjoGJQ0NoO8CFheltgLC/7m/8YpDbgWiG4+BAkTUfIG+5nLg5hwvvQxw== dependencies: "@chakra-ui/number-utils" "2.0.3" @@ -180,12 +180,12 @@ "@chakra-ui/css-reset@2.0.7": version "2.0.7" - resolved "https://registry.npmjs.org/@chakra-ui/css-reset/-/css-reset-2.0.7.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/css-reset/-/css-reset-2.0.7.tgz#28f4284c36230e30892dc3f2de2464aaacc4f623" integrity sha512-ztGdFQ6U1hX2k6a3HZ8D3A/dZWVxlGe2F5mvUrRU554mFWBYmsq0ydZ7UBEPlykv9NoCz4nN8VCkIxcKJ3p29Q== "@chakra-ui/descendant@3.0.9": version "3.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/descendant/-/descendant-3.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/descendant/-/descendant-3.0.9.tgz#6574a1ce00067c49a070c5b005f8f1ca399006ea" integrity sha512-30E5yMWvxgBx43PoI/67r9h9OhbpDfLb/MLOCjtEwebSbD0V5+fmnmCoUELScQbhozQVjA9t195X6UP0VQWj8w== dependencies: "@chakra-ui/react-context" "2.0.3" @@ -193,12 +193,12 @@ "@chakra-ui/dom-utils@2.0.1": version "2.0.1" - resolved "https://registry.npmjs.org/@chakra-ui/dom-utils/-/dom-utils-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/dom-utils/-/dom-utils-2.0.1.tgz#3061819ac365f5947423d63a5fcc26a281bbb5c2" integrity sha512-sbob9AHQq1+KIQ3XKslafislwtC8pYcpwM0S1SLzgyZumHRwhDimKwdi4MtRQfOCenub0E3diRjp4RpGRL0JuQ== "@chakra-ui/editable@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/editable/-/editable-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/editable/-/editable-2.0.9.tgz#a31d2e1c176c0817574e98a8567314c1a74444ab" integrity sha512-s5F3UMR09s6ga3eVhw0UBMGmegtxg6jCp29VLqaEwP5BuWIEOjcJz358gTlnFr3dhvb31e3rcr+B1XiYv4wxqg== dependencies: "@chakra-ui/react-context" "2.0.3" @@ -212,12 +212,12 @@ "@chakra-ui/event-utils@2.0.4": version "2.0.4" - resolved "https://registry.npmjs.org/@chakra-ui/event-utils/-/event-utils-2.0.4.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/event-utils/-/event-utils-2.0.4.tgz#eeb3eb4f37c3828955dbbc182ea43a8a3238a599" integrity sha512-J2YgAM5Dw9hMkwfMsWhsiAG848GfTMxNclUIUcgV9RQhLEs0eTFhelzNiKVOMA3vBxlT6lOARuRun/ESiFZgGg== "@chakra-ui/focus-lock@2.0.10": version "2.0.10" - resolved "https://registry.npmjs.org/@chakra-ui/focus-lock/-/focus-lock-2.0.10.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/focus-lock/-/focus-lock-2.0.10.tgz#8f17d212786bd2977afc07f72b520aeae30b9434" integrity sha512-LeRZYzwfJp0eq84oO8e1pC2qC8v8fJw/P4nYDrCDjuJU753DV6nVjp5MKMRqbkp+6IAElPc+ojy/sp2a9GCocw== dependencies: "@chakra-ui/dom-utils" "2.0.1" @@ -225,7 +225,7 @@ "@chakra-ui/form-control@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/form-control/-/form-control-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/form-control/-/form-control-2.0.9.tgz#10678857e6586e7d1be0a34c8d045c6484c1180b" integrity sha512-P8Tr45z/XSAa1m6uAma0eKf1h7Ltg2sLj2jK5YhaXJER9VUUY18iGe96D4JrAXlgEWDhTyWMb63nB+eYO1tKtw== dependencies: "@chakra-ui/icon" "3.0.9" @@ -235,7 +235,7 @@ "@chakra-ui/hooks@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/hooks/-/hooks-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/hooks/-/hooks-2.0.9.tgz#1f6d6157968a60dd9678112763d8f5fd3bdeffad" integrity sha512-0JRgEPtsBaXr9nQW1xEKlWGA7WwFbLNqac7fQXp9zQvoHOWTfNJkK/NJaVBvyFPgfTLxy37WKHooVSwNG/Lwmg== dependencies: "@chakra-ui/react-utils" "2.0.6" @@ -245,14 +245,14 @@ "@chakra-ui/icon@3.0.11": version "3.0.11" - resolved "https://registry.npmjs.org/@chakra-ui/icon/-/icon-3.0.11.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/icon/-/icon-3.0.11.tgz#a51dda24bed2f2ed77b4136ada8f22d3249c9870" integrity sha512-RG4jf/XmBdaxOYI5J5QstEtTCPoVlmrQ/XiWhvN0LTgAnmZIqVwFl3Uw+satArdStHAs0GmJZg/E/soFTWuFmw== dependencies: "@chakra-ui/shared-utils" "2.0.2" "@chakra-ui/icon@3.0.9": version "3.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/icon/-/icon-3.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/icon/-/icon-3.0.9.tgz#ba127d9eefd727f62e9bce07a23eca39ae506744" integrity sha512-P2Pwm/za6m1W1oqL2kGHH6XrrymsBjqYAFwOW2lB5Q6mI1e+RYe/iMxDoPSLHMYhqdfH7vyib/ffE3Vv3a5oTA== dependencies: "@chakra-ui/shared-utils" "2.0.1" @@ -266,14 +266,14 @@ "@chakra-ui/image@2.0.10": version "2.0.10" - resolved "https://registry.npmjs.org/@chakra-ui/image/-/image-2.0.10.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/image/-/image-2.0.10.tgz#712c0e1c579d959225bd8316d8d8f66cbeb95bb8" integrity sha512-Atc1bdog4V5xv7IbpF2F2UkKWfgG/TD74cIac09JuSpQcYyh7lrJ7iVvhTkeP+LDdCs+QCD7SnTUM4Y0ZlaHbA== dependencies: "@chakra-ui/react-use-safe-layout-effect" "2.0.1" "@chakra-ui/input@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/input/-/input-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/input/-/input-2.0.9.tgz#905b82ed647a20080a25a6a7e6740e3bb65586c1" integrity sha512-6MKydxTyF7JV7PtQHircQ5HBTd6Ik9Vn7p8fCLeAieT0TK8UQTxMWZVPminS7TRWMutrq8W99DcQOBlMz0cKrw== dependencies: "@chakra-ui/form-control" "2.0.9" @@ -284,7 +284,7 @@ "@chakra-ui/layout@2.1.6": version "2.1.6" - resolved "https://registry.npmjs.org/@chakra-ui/layout/-/layout-2.1.6.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/layout/-/layout-2.1.6.tgz#3dfdd8b3f08d9ff34fc923d44ebe4bc86291b889" integrity sha512-QDNaVu44UI46c+YlSF1KrzJkiwua0UtRXNTnR3jBE1uzcuqRow7xgr3E60dLphY2cPFqAljfQZUNlP3sgvCLww== dependencies: "@chakra-ui/breakpoint-utils" "2.0.3" @@ -296,17 +296,17 @@ "@chakra-ui/lazy-utils@2.0.1": version "2.0.1" - resolved "https://registry.npmjs.org/@chakra-ui/lazy-utils/-/lazy-utils-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/lazy-utils/-/lazy-utils-2.0.1.tgz#6814836552028fa0823563ce3d39d22bccb203e1" integrity sha512-986YjYq+hEzHDLZiqYlYbdqfiKdC3h2g896Eoe5K2UXtAVxqZI3UOnMH781X6N1R7rGJWquskzG681qFigW/BA== "@chakra-ui/live-region@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/live-region/-/live-region-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/live-region/-/live-region-2.0.9.tgz#f26cf1b96df51515cd3a0897f9516f8b5f6bbfec" integrity sha512-ilbo/C5wcUoSHDU5owFPQP3KsabPYGzDEbwV+Z76BlyNdFN2PD0j13RGEH+sBNNZ3HzLyyuuc1YmkVcJi7ycQg== "@chakra-ui/media-query@3.2.5": version "3.2.5" - resolved "https://registry.npmjs.org/@chakra-ui/media-query/-/media-query-3.2.5.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/media-query/-/media-query-3.2.5.tgz#c0b9dc4bc6245d9abddcbe17693e40bf5dfe34f8" integrity sha512-V+Dngi/r7u/uj7JhsZerM1RI597Oo4wED2ojNfclnnEVb/IoqktiuFy6RQgbo3HmE7M/E5B1i4yYzt7tQJhXlg== dependencies: "@chakra-ui/breakpoint-utils" "2.0.3" @@ -314,7 +314,7 @@ "@chakra-ui/menu@2.0.13": version "2.0.13" - resolved "https://registry.npmjs.org/@chakra-ui/menu/-/menu-2.0.13.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/menu/-/menu-2.0.13.tgz#3ac5f448efc894045769c606ebe1376051556be9" integrity sha512-XZYoq9k/txAELUgn5OokyxfXEpVZwBueVYXiT9ji0XvMuzXVxeHd40klJEkiJUctNsOahZf10t5yxlT4B00pwA== dependencies: "@chakra-ui/clickable" "2.0.9" @@ -334,7 +334,7 @@ "@chakra-ui/modal@2.1.7": version "2.1.7" - resolved "https://registry.npmjs.org/@chakra-ui/modal/-/modal-2.1.7.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/modal/-/modal-2.1.7.tgz#dba55bddd407689f4c2bba886b03a5355578a20d" integrity sha512-A+CbvhQYpmLH3SrqJ1wJysUCGm0mNoSDxRjP4wX98j56nMTDAsMYlzttpuLmKaSzvbJ7uEQDLtQV8lZjB0gUuw== dependencies: "@chakra-ui/close-button" "2.0.9" @@ -349,7 +349,7 @@ "@chakra-ui/number-input@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/number-input/-/number-input-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/number-input/-/number-input-2.0.9.tgz#c5ebfa0311f7586fb4c1e5f4284355b1d1f04383" integrity sha512-RsDzoNvSBZMgyXjN543AtQ2v99U1p/0xnGWZy4NCkgCDWMBn3kIXqSzQq5CB9Ot0MD8nnKF5VYdVdXWguXExEQ== dependencies: "@chakra-ui/counter" "2.0.9" @@ -366,17 +366,17 @@ "@chakra-ui/number-utils@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/number-utils/-/number-utils-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/number-utils/-/number-utils-2.0.3.tgz#2cf1190647ac5a17c90baaf8176226a98eb3bfff" integrity sha512-oN03kYAUCCp/FNtpLr5mh+cvd/sRTzZWTBoFydmxc955psXq/X950gzs6o5kzoeFCpgXaxMmHAXQm3ReEK2NsQ== "@chakra-ui/object-utils@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/object-utils/-/object-utils-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/object-utils/-/object-utils-2.0.3.tgz#0bc8d1c7c452fe1ce8fcda439336e0392e867d7e" integrity sha512-36prckrqTynVD/JTzyCr8OCWVOrMs/awZo3djVbIiNxRIcJ5iEwUVy26h3MWN4ENSopipBtxNfAwPNTLU5Si/g== "@chakra-ui/pin-input@2.0.12": version "2.0.12" - resolved "https://registry.npmjs.org/@chakra-ui/pin-input/-/pin-input-2.0.12.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/pin-input/-/pin-input-2.0.12.tgz#1ff927fdc61433a7b9b4421ceafad5674299e91a" integrity sha512-gaMRp5AFW+qAJCUj93V1WluuYBBZ/5A3Wy5q796g8Auvw7vufgkVtl6EBznwvtynZN8gJwbRFpMtJxQyXCkUiw== dependencies: "@chakra-ui/descendant" "3.0.9" @@ -387,7 +387,7 @@ "@chakra-ui/popover@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/popover/-/popover-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/popover/-/popover-2.0.9.tgz#7f2df4cbbc3eee7440c311750e18ba00150f973f" integrity sha512-+7tH4RVuheFQOyAZ5KT9x+qsLvz7rGuKaHtb0427+5bhUzLaSAghtr/afzOKHDwUVBwF2tTUNanR23ipW1fXDg== dependencies: "@chakra-ui/close-button" "2.0.9" @@ -401,7 +401,7 @@ "@chakra-ui/popper@3.0.7": version "3.0.7" - resolved "https://registry.npmjs.org/@chakra-ui/popper/-/popper-3.0.7.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/popper/-/popper-3.0.7.tgz#af3428bf5d64ad9372210a70181f69a9d79eefb2" integrity sha512-xLYhuNsk1gOjymtek1ZdZlG21hmg2a7Iu2KsD9Hi7+aUxc2K5/XxX+/vyjjz8u4s0gmj83pTqnauQRynb/TCXA== dependencies: "@chakra-ui/react-types" "2.0.3" @@ -410,7 +410,7 @@ "@chakra-ui/portal@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/portal/-/portal-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/portal/-/portal-2.0.9.tgz#b427c383a9d602c5b52b21312b4b1c0ffecaf583" integrity sha512-9e9S0MLbkpofPGlyYA12jNYSdndugy6ylPi5pC9nr3/VqG2Kn+8VcBChAeXW8K4ms7WFc74rNX1pBY/UVwr4qg== dependencies: "@chakra-ui/react-context" "2.0.3" @@ -418,14 +418,14 @@ "@chakra-ui/progress@2.0.10": version "2.0.10" - resolved "https://registry.npmjs.org/@chakra-ui/progress/-/progress-2.0.10.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/progress/-/progress-2.0.10.tgz#9191ae9061ef08066d37c5cb8341fedc10214a29" integrity sha512-my0Pi3NG1PYhlvCav4fybg3gL5HBNe+7lO4PVdri4QHEyfJlrDeBWID+1GgqlpUWdTj3sOf7ysku+FEgkeOeSA== dependencies: "@chakra-ui/react-context" "2.0.3" "@chakra-ui/provider@2.0.16": version "2.0.16" - resolved "https://registry.npmjs.org/@chakra-ui/provider/-/provider-2.0.16.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/provider/-/provider-2.0.16.tgz#a4afdb4c8f2050beb5d2b61db8971a145481c6f2" integrity sha512-4t/PmjJ7WXPPaPfoYgw8F1/rVtorZuvknugHfOZcOtAPGQmOPotSv28qjKpu/mCvc1GMGV0swMsvCeInYz7g0w== dependencies: "@chakra-ui/css-reset" "2.0.7" @@ -436,7 +436,7 @@ "@chakra-ui/radio@2.0.10": version "2.0.10" - resolved "https://registry.npmjs.org/@chakra-ui/radio/-/radio-2.0.10.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/radio/-/radio-2.0.10.tgz#82eb02313efafc460da3030d011bfd434b1ecabc" integrity sha512-LhAWsY22cmb+M/iyhFgkzf2+V9TJmAC77Cd+GbP3M3sxDSEUDtq08KOc3JjoYc3GzeZml3JL1yssbxh+liY3xA== dependencies: "@chakra-ui/form-control" "2.0.9" @@ -447,27 +447,27 @@ "@chakra-ui/react-children-utils@2.0.1": version "2.0.1" - resolved "https://registry.npmjs.org/@chakra-ui/react-children-utils/-/react-children-utils-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-children-utils/-/react-children-utils-2.0.1.tgz#321ac05362ade1495a34ea74052d3c7da3d9e923" integrity sha512-sEgpuh/vWSt2+W0F49EGYXXUyjmg0lbosjVg6qUKHv9sAyx5tbrOrZ6df/TaMUSAe9m3AUOMGqUIPLpxno0DjA== "@chakra-ui/react-context@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/react-context/-/react-context-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-context/-/react-context-2.0.3.tgz#e988be62f5f5fe29d6a8496c79cbf934f840fa5a" integrity sha512-KmPq6sb1y05WsOUqXZtBBC4LsNKZIFrp2thTsLBwcuH7lkXZwPMHmJGKa9K980P+SWEgfH2s2PY2z+QrIuqWGg== "@chakra-ui/react-env@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/react-env/-/react-env-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-env/-/react-env-2.0.9.tgz#d51efc31d77197a3526e2c4b2f2fde557396bb3c" integrity sha512-4AJHNUGBR19hzVyOILYpZZgq8jGrpEcbhvR++CppbvPH7vfPZpoz6L/cBtHxS07YwDtUeBL8yCNiLlTxctV//Q== "@chakra-ui/react-types@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/react-types/-/react-types-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-types/-/react-types-2.0.3.tgz#dc454c4703b4de585e6461fd607304ede06fe595" integrity sha512-1mJYOQldFTALE0Wr3j6tk/MYvgQIp6CKkJulNzZrI8QN+ox/bJOh8OVP4vhwqvfigdLTui0g0k8M9h+j2ub/Mw== "@chakra-ui/react-use-animation-state@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-animation-state/-/react-use-animation-state-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-animation-state/-/react-use-animation-state-2.0.3.tgz#c10e575de76e907a84358595884a819039b24200" integrity sha512-sjGgzMMmxurwKDSFhDLpLNn3SWUERI5iAZOOa0pYnyOLGVXMowgIjK6jpZxre1vc3A+unjJk5P4qeiyY+C4uwQ== dependencies: "@chakra-ui/dom-utils" "2.0.1" @@ -475,33 +475,33 @@ "@chakra-ui/react-use-callback-ref@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-callback-ref/-/react-use-callback-ref-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-callback-ref/-/react-use-callback-ref-2.0.3.tgz#532f993ae0dda27b2638d41e98f42c83751cd3b6" integrity sha512-kdYlhgnQKWWLNwl3WSv/Oq3+mlnu2p3y4Xc1AqKVHVcBOdQE9lpW3d7ZaOoK2aIXXWq1rocscOiXBUtM0Vqd2A== "@chakra-ui/react-use-controllable-state@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-controllable-state/-/react-use-controllable-state-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-controllable-state/-/react-use-controllable-state-2.0.3.tgz#7aa3f9c038513763332f6754e69ece90aed55a9c" integrity sha512-su8efwCWWnY2LQUU6PEnYwSGJX8kvPSO2KyUKuymx8q3fNWuyhzAZriG/TbeeCxESLp70+wuniUlSGRa4vxylQ== dependencies: "@chakra-ui/react-use-callback-ref" "2.0.3" "@chakra-ui/react-use-disclosure@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-disclosure/-/react-use-disclosure-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-disclosure/-/react-use-disclosure-2.0.3.tgz#c27bfc7e3af0728423b9e2def1e1665d0ba941bb" integrity sha512-3IdrzvQZcgjqSx5wTVffInOyhMU+d3ZlIE26JmqejMyN/B+qAs932iKfm0A1mTMPTz38ZnNtuaKazmzyfR1ePg== dependencies: "@chakra-ui/react-use-callback-ref" "2.0.3" "@chakra-ui/react-use-event-listener@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-event-listener/-/react-use-event-listener-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-event-listener/-/react-use-event-listener-2.0.3.tgz#11b5409c4442888e7981d5288c9e781acdacd685" integrity sha512-m3ZdJjo3QQ1HcQGnehlBTgHaCVewz5fwIRTXVzbZTraVJr4k589Zf87eagW57tT4dyv656lSmdhaFGZ8p5Snww== dependencies: "@chakra-ui/react-use-callback-ref" "2.0.3" "@chakra-ui/react-use-focus-effect@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-focus-effect/-/react-use-focus-effect-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-focus-effect/-/react-use-focus-effect-2.0.3.tgz#3e221a5e9b06a7b832a6fca1f883e6335fd69f19" integrity sha512-N0rho7P+rH5cn13dbS8GUOye+6RYXAmXhmlS+WW/3lWidGH3HAbMoOVf56UiuSnE1+2or8/U7qRshUryj2H1nA== dependencies: "@chakra-ui/dom-utils" "2.0.1" @@ -510,33 +510,33 @@ "@chakra-ui/react-use-focus-on-pointer-down@2.0.1": version "2.0.1" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-focus-on-pointer-down/-/react-use-focus-on-pointer-down-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-focus-on-pointer-down/-/react-use-focus-on-pointer-down-2.0.1.tgz#be0668ff844dec8bbfe978d6eaff50534f290c48" integrity sha512-f0qL2iWvajUo+0jwDZyJpUMJ6J6BH3WjDZE2Rp6cns4pgI6uYuv2gj+FqQ5jnoYdXkeER6lBI56a+aIW/1RYiA== dependencies: "@chakra-ui/react-use-event-listener" "2.0.3" "@chakra-ui/react-use-interval@2.0.1": version "2.0.1" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-interval/-/react-use-interval-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-interval/-/react-use-interval-2.0.1.tgz#a8f5dbf83607f5dc53022aa2a766fdcb09d8a081" integrity sha512-6ZLzKA7Ga894UZcXO3bbGYThlhviiau1oxZ1UcJG5pUXNM9Up7O/4Joq31sL+KcpteCN45vd1etomilsv/blxw== dependencies: "@chakra-ui/react-use-callback-ref" "2.0.3" "@chakra-ui/react-use-merge-refs@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-merge-refs/-/react-use-merge-refs-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-merge-refs/-/react-use-merge-refs-2.0.3.tgz#cd8dac79c62dd45daaf4acc4507721d23dc5dc51" integrity sha512-n35BmVbasy5Esa6qxznWmiV3NaRxGpqMpZH0n+X7aXt8VkGAJzRpAVjUmKCLNYyCLpqsQceCmAEK8a5SR6vxqw== "@chakra-ui/react-use-outside-click@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-outside-click/-/react-use-outside-click-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-outside-click/-/react-use-outside-click-2.0.3.tgz#d0136d1c2fb45d86361224e98e3a50648bf9b85f" integrity sha512-r5OohM8lOuZTz6e3vVHvfm/3sEkd06nUPBNU+r3rWh1I7bR9z5Gia/BOQD6GE4jUTanDkHcH76Pf9qJ45kpibQ== dependencies: "@chakra-ui/react-use-callback-ref" "2.0.3" "@chakra-ui/react-use-pan-event@2.0.4": version "2.0.4" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-pan-event/-/react-use-pan-event-2.0.4.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-pan-event/-/react-use-pan-event-2.0.4.tgz#bfc2c1a2a44b2996951a729182566f02c7dc05e4" integrity sha512-lcEjngfCgIjE5qZeJiaDx+aJzZPLjbjUmbWumi8pIgWOnDL8Ffjh7AMKW4CddP5OgcRnDDb+7aqJbb55wraboA== dependencies: "@chakra-ui/event-utils" "2.0.4" @@ -544,36 +544,36 @@ "@chakra-ui/react-use-previous@2.0.1": version "2.0.1" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-previous/-/react-use-previous-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-previous/-/react-use-previous-2.0.1.tgz#e19f6b363271f62c36c9f3bd91dc60caa4c4e340" integrity sha512-ROi+/puVd8D1QaxBSOcGlJNqV2x02ppSgmXzZZJhM8ryFLZjY9ojV3HhamB2IJ/7SIb1rMSSV1GPedFw7YMCwA== "@chakra-ui/react-use-safe-layout-effect@2.0.1": version "2.0.1" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-safe-layout-effect/-/react-use-safe-layout-effect-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-safe-layout-effect/-/react-use-safe-layout-effect-2.0.1.tgz#76f8882abaf17078c3b6eb93e1bb26f8c319f3f7" integrity sha512-H+ZOjkPqv3KBPEoP68JKpQBNdLOI0mwzEiTT397UdvBVCCJ+1/ijWVUT+Ub/pYic60O6xUghy5ORaWqJHhnKDA== "@chakra-ui/react-use-size@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-size/-/react-use-size-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-size/-/react-use-size-2.0.3.tgz#ae3bd683eb87a40208cf0dd467a5dafb68d87b3e" integrity sha512-hr4hKepPUmM2paXseSZiOTK2y+ZqnSzYNusDEB01f+cDerFjdN1jSfNJKXpiKF0+hNESXfOPQb3Zt0eDusRdoA== dependencies: "@zag-js/element-size" "0.1.0" "@chakra-ui/react-use-timeout@2.0.1": version "2.0.1" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-timeout/-/react-use-timeout-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-timeout/-/react-use-timeout-2.0.1.tgz#acacadfb7c1443aacf634ddce710b1cd7cf3b6ec" integrity sha512-zXh9RH+GciKr8hvaOADHOoHP72B7UZUEymA8CWCV4WEs/9s/PfQJH7X1bwvaj43CcOmfVQg4oODWqCYQM1lSsg== dependencies: "@chakra-ui/react-use-callback-ref" "2.0.3" "@chakra-ui/react-use-update-effect@2.0.3": version "2.0.3" - resolved "https://registry.npmjs.org/@chakra-ui/react-use-update-effect/-/react-use-update-effect-2.0.3.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-use-update-effect/-/react-use-update-effect-2.0.3.tgz#5b0128fe1325b5b1413690db6bc8dd0712d01e29" integrity sha512-8hkP1o/UUUA49w/R+XyAlPiCjxXTCWCNsHWUOEhAitjJfoCNUjgaNKOD52hT07kc5ACJEcJQHA5327LnwtiIlg== "@chakra-ui/react-utils@2.0.6": version "2.0.6" - resolved "https://registry.npmjs.org/@chakra-ui/react-utils/-/react-utils-2.0.6.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/react-utils/-/react-utils-2.0.6.tgz#bb471ce2bff724b99563685962145a2cc56bf61d" integrity sha512-ZL0FPaolovXOxMzYRSLHgBYtvxIkA/c5GTSYpXL8DcC+TBLZnAmQ8BPTS2b6xys6xvwdQjkZRUeQ0cBNFaryJg== dependencies: "@chakra-ui/utils" "2.0.9" @@ -633,24 +633,24 @@ "@chakra-ui/select@2.0.10": version "2.0.10" - resolved "https://registry.npmjs.org/@chakra-ui/select/-/select-2.0.10.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/select/-/select-2.0.10.tgz#827028484769a32205f99baed3098a115da292b3" integrity sha512-7AslBWwI/JyczjMMGtPuN34M/C38koVd+N/pb6swHoIP9TRkkdvDlonIakcmtO1oLEzlNIFKmt4FQ7bUp9ea5Q== dependencies: "@chakra-ui/form-control" "2.0.9" "@chakra-ui/shared-utils@2.0.1": version "2.0.1" - resolved "https://registry.npmjs.org/@chakra-ui/shared-utils/-/shared-utils-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/shared-utils/-/shared-utils-2.0.1.tgz#41e314e42c96039e8ffb265e73145cf755813ab4" integrity sha512-NXDBl/u4wrSNp0ON5R3r3evkRurrAz2yuO7neooaG+O5HEenVouGqm4CsXd6lUAPmjwiGzA0LQFNCt0Hj92dXg== "@chakra-ui/shared-utils@2.0.2": version "2.0.2" - resolved "https://registry.npmjs.org/@chakra-ui/shared-utils/-/shared-utils-2.0.2.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/shared-utils/-/shared-utils-2.0.2.tgz#1df08133194c12ac4df9302604ec37784c2bb026" integrity sha512-wC58Fh6wCnFFQyiebVZ0NI7PFW9+Vch0QE6qN7iR+bLseOzQY9miYuzPJ1kMYiFd6QTOmPJkI39M3wHqrPYiOg== "@chakra-ui/skeleton@2.0.15": version "2.0.15" - resolved "https://registry.npmjs.org/@chakra-ui/skeleton/-/skeleton-2.0.15.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/skeleton/-/skeleton-2.0.15.tgz#fd41383bf84319e47c6ea1f4f3138f5f5e0dabca" integrity sha512-QVMkXwrH9jLfim8uJTZcjHeGjzoquNcHGXD5wapd7eDqp9BygvmMXAHBxFm8eEJLHuvIqLX94P6DLeiieYwX7Q== dependencies: "@chakra-ui/media-query" "3.2.5" @@ -658,7 +658,7 @@ "@chakra-ui/slider@2.0.10": version "2.0.10" - resolved "https://registry.npmjs.org/@chakra-ui/slider/-/slider-2.0.10.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/slider/-/slider-2.0.10.tgz#ffd7376d4a7fd9aa02e72b148e3ad4739c880498" integrity sha512-F0RGl2ruADbXO/GnoBUiTEl+przxhZo2e0tfw9VTtS+RsJZ22uHrTNVvVJHNmjK7/E3++kBfaLCacoJFz/io+g== dependencies: "@chakra-ui/number-utils" "2.0.3" @@ -673,12 +673,12 @@ "@chakra-ui/spinner@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/spinner/-/spinner-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/spinner/-/spinner-2.0.9.tgz#1d8544cc136699a590c3f5c518ae2c14abb459cf" integrity sha512-9ALl51fiVWptDu2J2xcv0TSfGf4buumpHrEXHvV2Qy+HZ6rYnUmSThBSb/VgoQS+rASG8bAbLUPlQTQ+v9ibFg== "@chakra-ui/stat@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/stat/-/stat-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/stat/-/stat-2.0.9.tgz#cecf35a4392a88227c3b85e80a45f0f5ac5f298d" integrity sha512-C9cytqegWSGJ/hh3/qwsgGlerXLYHrU0iQcJQ+pKSRFJhshXsv3go5IR6kVL72Yf2s4Gs5c3GsMZrLM22ePpDg== dependencies: "@chakra-ui/icon" "3.0.9" @@ -686,7 +686,7 @@ "@chakra-ui/styled-system@2.3.1": version "2.3.1" - resolved "https://registry.npmjs.org/@chakra-ui/styled-system/-/styled-system-2.3.1.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/styled-system/-/styled-system-2.3.1.tgz#abf7c4e1638aaa9d92e7cf9acde17785703d166e" integrity sha512-jyR9s2yk5TEyq4HUfjrgUeaOzd9ZTZrbjK96UjtiTCZGO/q4j2RXtYvfheUjUyW1UnzI2A1ffHOJca8tBMDjpA== dependencies: csstype "^3.0.11" @@ -694,14 +694,14 @@ "@chakra-ui/switch@2.0.11": version "2.0.11" - resolved "https://registry.npmjs.org/@chakra-ui/switch/-/switch-2.0.11.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/switch/-/switch-2.0.11.tgz#57117417d1bb072f506c8c30e1a961ee7f78496b" integrity sha512-gY8OGBnoPosZpq7dDNVf432t67pTc/cz5VkGhbtER7bbjXSoXe0DAiAYL+HT2kD7mbTJQzzHK/y0St0WimR1Mw== dependencies: "@chakra-ui/checkbox" "2.1.8" "@chakra-ui/system@2.2.9": version "2.2.9" - resolved "https://registry.npmjs.org/@chakra-ui/system/-/system-2.2.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/system/-/system-2.2.9.tgz#d6e7dfb9a954b8ab03c28e14c69aad56a9fcffbd" integrity sha512-SyTeIGm+goyYK8vqX4dU6oeLhxUAeGI3Cl+mxA+aiKIX01YTALhTWhpbrsuMYBevV+l9EGK12egPUQE+Mo3WlQ== dependencies: "@chakra-ui/color-mode" "2.1.7" @@ -712,14 +712,14 @@ "@chakra-ui/table@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/table/-/table-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/table/-/table-2.0.9.tgz#2ddb0202e8146e517bf602e62195d13fee8f1b0a" integrity sha512-XRz6+x4dMeQX3xyViyG2H/P1STI/2vwvgU2cjzzwS+5fZ2JdGaTgYzBb+IZoH9agEq1Ma3rlKMUPDrRCFb7kLQ== dependencies: "@chakra-ui/react-context" "2.0.3" "@chakra-ui/tabs@2.1.1": version "2.1.1" - resolved "https://registry.npmjs.org/@chakra-ui/tabs/-/tabs-2.1.1.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/tabs/-/tabs-2.1.1.tgz#0fb540782c2e4122b63a203fc1f04eff850f2c0e" integrity sha512-xA+vwqpAHb0nBLrkiO5Lea2UDGROyAIBqsyp/8XXXEr6eKxtNe1I6WJPbDQy0aazB2ToAA0R6fT34HjLaXP8MQ== dependencies: "@chakra-ui/clickable" "2.0.9" @@ -733,7 +733,7 @@ "@chakra-ui/tag@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/tag/-/tag-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/tag/-/tag-2.0.9.tgz#bf8530aa766bd6b9196d374ff75b0b1ce62cd0d3" integrity sha512-NKARwhsZ04t2vkrdRhNcakEiVtg1q44yUUsDw2Jwdu4idAWQupZGGochQI2Ac4T2MI1b66zQUkaGnm3l1mhTtg== dependencies: "@chakra-ui/icon" "3.0.9" @@ -741,14 +741,14 @@ "@chakra-ui/textarea@2.0.10": version "2.0.10" - resolved "https://registry.npmjs.org/@chakra-ui/textarea/-/textarea-2.0.10.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/textarea/-/textarea-2.0.10.tgz#dbbc8df8adddb488d0ee97164917e7be33d6b247" integrity sha512-HSo0EPsY8XKGA+Af6jTob1oe1T6NKZwgjLmX0binK3MMM9pDTXsUTw8GD0g971lxw9oktVMLK/O9QVAgVAm5mw== dependencies: "@chakra-ui/form-control" "2.0.9" "@chakra-ui/theme-tools@2.0.11": version "2.0.11" - resolved "https://registry.npmjs.org/@chakra-ui/theme-tools/-/theme-tools-2.0.11.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/theme-tools/-/theme-tools-2.0.11.tgz#de97b422799627b5a514ae424ca08c1d348bc2a5" integrity sha512-0Juf98bAyOgnBeQ39nMKWqRsOxZDw75BbAB8o0oVyjhYVS1wJh7tFX1ZRV8N/+AN6fuRXEznZPpyUh3J+ZTiRg== dependencies: "@chakra-ui/anatomy" "2.0.6" @@ -756,7 +756,7 @@ "@chakra-ui/theme@2.1.11": version "2.1.11" - resolved "https://registry.npmjs.org/@chakra-ui/theme/-/theme-2.1.11.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/theme/-/theme-2.1.11.tgz#cdfca3e84fc6913c5bb1a06e24b7cbb1246e127e" integrity sha512-gI0NLU6wO/5cRq8gbDHuy24Y/ZhJxN4D/2uucNN9is3h+d58/En5jV3fwzZW8PLiLKW/T2CmbYWEZWV2YkcUVA== dependencies: "@chakra-ui/anatomy" "2.0.6" @@ -764,7 +764,7 @@ "@chakra-ui/toast@3.0.10": version "3.0.10" - resolved "https://registry.npmjs.org/@chakra-ui/toast/-/toast-3.0.10.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/toast/-/toast-3.0.10.tgz#5918beb208ca592f72a9e24923254341fa38df58" integrity sha512-i/oEtzmarO0hM6fxa55OmA8ZGkZv9b+vIC2xs5kQ/C0rJaC0ycibok8srq2Stjq9309fZNezyzThQp6e9acUYQ== dependencies: "@chakra-ui/alert" "2.0.9" @@ -776,7 +776,7 @@ "@chakra-ui/tooltip@2.0.10": version "2.0.10" - resolved "https://registry.npmjs.org/@chakra-ui/tooltip/-/tooltip-2.0.10.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/tooltip/-/tooltip-2.0.10.tgz#2166753f9f246dd217d3170fd85f95a86392d9b6" integrity sha512-pBILBdZoux2K3EW9V6JuyZYUWz2/Y7oYCVO6AwNOesiEBGAONyzoDwFV728EzPEHe9e+YBcKOSZ9tEpDdrzHMA== dependencies: "@chakra-ui/popper" "3.0.7" @@ -788,12 +788,12 @@ "@chakra-ui/transition@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/transition/-/transition-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/transition/-/transition-2.0.9.tgz#1967fd77f44b57681a9efe4e87561c82420cd2a2" integrity sha512-cVfKdZl128AEj0LDS8M9dzXao4wmTVj3gRJBnm91Qcg243Pm8OlgIBNbHEwsq/Fps+PsN431BtEGfL4w79wQEA== "@chakra-ui/utils@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/utils/-/utils-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/utils/-/utils-2.0.9.tgz#1af3882b31fb46e0a411998d8e3607656f8d5043" integrity sha512-7ct5562Jw6pZdtj63XfUkEUXXsCCVqdqIXyLtQ9VgOKtRQWwDxzc8uPI5Zjdw9AleEITZFUH8TNKWn75nm54kQ== dependencies: "@types/lodash.mergewith" "4.6.6" @@ -803,7 +803,7 @@ "@chakra-ui/visually-hidden@2.0.9": version "2.0.9" - resolved "https://registry.npmjs.org/@chakra-ui/visually-hidden/-/visually-hidden-2.0.9.tgz" + resolved "https://registry.yarnpkg.com/@chakra-ui/visually-hidden/-/visually-hidden-2.0.9.tgz#b43a3dd0bc1108954ad0eeb50d0261887ab5e31c" integrity sha512-PkNxrRGp9H3bdqEaoo8XGt/AL9UuGRTom0/9XJa+G/Dj8Cy1sDuamOWk3pN/ZQs46RokfK9Uh5LqPY5dwSDweg== "@ctrl/tinycolor@^3.4.0": @@ -812,33 +812,33 @@ integrity sha512-ej5oVy6lykXsvieQtqZxCOaLT+xD4+QNarq78cIYISHmZXshCvROLudpQN3lfL8G0NL7plMSSK+zlyvCaIJ4Iw== "@emotion/babel-plugin@^11.10.0": - version "11.10.2" - resolved "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.10.2.tgz" - integrity sha512-xNQ57njWTFVfPAc3cjfuaPdsgLp5QOSuRsj9MA6ndEhH/AzuZM86qIQzt6rq+aGBwj3n5/TkLmU5lhAfdRmogA== + version "11.10.5" + resolved "https://registry.yarnpkg.com/@emotion/babel-plugin/-/babel-plugin-11.10.5.tgz#65fa6e1790ddc9e23cc22658a4c5dea423c55c3c" + integrity sha512-xE7/hyLHJac7D2Ve9dKroBBZqBT7WuPQmWcq7HSGb84sUuP4mlOWoB8dvVfD9yk5DHkU1m6RW7xSoDtnQHNQeA== dependencies: "@babel/helper-module-imports" "^7.16.7" "@babel/plugin-syntax-jsx" "^7.17.12" "@babel/runtime" "^7.18.3" "@emotion/hash" "^0.9.0" "@emotion/memoize" "^0.8.0" - "@emotion/serialize" "^1.1.0" + "@emotion/serialize" "^1.1.1" babel-plugin-macros "^3.1.0" convert-source-map "^1.5.0" escape-string-regexp "^4.0.0" find-root "^1.1.0" source-map "^0.5.7" - stylis "4.0.13" + stylis "4.1.3" "@emotion/cache@^11.10.0": - version "11.10.3" - resolved "https://registry.npmjs.org/@emotion/cache/-/cache-11.10.3.tgz" - integrity sha512-Psmp/7ovAa8appWh3g51goxu/z3iVms7JXOreq136D8Bbn6dYraPnmL6mdM8GThEx9vwSn92Fz+mGSjBzN8UPQ== + version "11.10.5" + resolved "https://registry.yarnpkg.com/@emotion/cache/-/cache-11.10.5.tgz#c142da9351f94e47527ed458f7bbbbe40bb13c12" + integrity sha512-dGYHWyzTdmK+f2+EnIGBpkz1lKc4Zbj2KHd4cX3Wi8/OWr5pKslNjc3yABKH4adRGCvSX4VDC0i04mrrq0aiRA== dependencies: "@emotion/memoize" "^0.8.0" - "@emotion/sheet" "^1.2.0" + "@emotion/sheet" "^1.2.1" "@emotion/utils" "^1.2.0" "@emotion/weak-memoize" "^0.3.0" - stylis "4.0.13" + stylis "4.1.3" "@emotion/hash@^0.9.0": version "0.9.0" @@ -883,10 +883,10 @@ "@emotion/weak-memoize" "^0.3.0" hoist-non-react-statics "^3.3.1" -"@emotion/serialize@^1.1.0": - version "1.1.0" - resolved "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.1.0.tgz" - integrity sha512-F1ZZZW51T/fx+wKbVlwsfchr5q97iW8brAnXmsskz4d0hVB4O3M/SiA3SaeH06x02lSNzkkQv+n3AX3kCXKSFA== +"@emotion/serialize@^1.1.0", "@emotion/serialize@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@emotion/serialize/-/serialize-1.1.1.tgz#0595701b1902feded8a96d293b26be3f5c1a5cf0" + integrity sha512-Zl/0LFggN7+L1liljxXdsVSVlg6E/Z/olVWpfxUTxOAmi8NU7YoeWeLfi1RmnB2TATHoaWwIBRoL+FvAJiTUQA== dependencies: "@emotion/hash" "^0.9.0" "@emotion/memoize" "^0.8.0" @@ -894,10 +894,10 @@ "@emotion/utils" "^1.2.0" csstype "^3.0.2" -"@emotion/sheet@^1.2.0": - version "1.2.0" - resolved "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.2.0.tgz" - integrity sha512-OiTkRgpxescko+M51tZsMq7Puu/KP55wMT8BgpcXVG2hqXc0Vo0mfymJ/Uj24Hp0i083ji/o0aLddh08UEjq8w== +"@emotion/sheet@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@emotion/sheet/-/sheet-1.2.1.tgz#0767e0305230e894897cadb6c8df2c51e61a6c2c" + integrity sha512-zxRBwl93sHMsOj4zs+OslQKg/uhF38MB+OMKoCrVuS0nyTkqnau+BM3WGEoOptg9Oz45T/aIGs1qbVAsEFo3nA== "@emotion/styled@^11.10.4": version "11.10.4" @@ -1064,7 +1064,7 @@ "@next/env@13.0.2": version "13.0.2" - resolved "https://registry.npmjs.org/@next/env/-/env-13.0.2.tgz" + resolved "https://registry.yarnpkg.com/@next/env/-/env-13.0.2.tgz#5fbd7b4146175ae406edfb4a38b62de8c880c09d" integrity sha512-Qb6WPuRriGIQ19qd6NBxpcrFOfj8ziN7l9eZUfwff5gl4zLXluqtuZPddYZM/oWjN53ZYcuRXzL+oowKyJeYtA== "@next/eslint-plugin-next@12.2.5": @@ -1091,7 +1091,7 @@ "@next/swc-darwin-arm64@13.0.2": version "13.0.2" - resolved "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.0.2.tgz" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.0.2.tgz#d7e01a33393e83456dbfdc41446bb8a923968ff7" integrity sha512-1zGIOkInkOLRv0QQGZ+3wffYsyKI4vIy62LYTvDWUn7TAYqnmXwougp9NSLqDeagLwgsv2URrykyAFixA/YqxA== "@next/swc-darwin-x64@13.0.2": @@ -2156,6 +2156,13 @@ fast-levenshtein@^2.0.6: resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== +fast-xml-parser@^4.0.12: + version "4.0.12" + resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.0.12.tgz#9e3117d76523d20dfbd30482c1621fb9b03a7817" + integrity sha512-/Nmo3823Rfx7UTJosQNz6hBVbszfv1Unb7A4iNJZhvCGCgtIHv/uODmrYIH8vc05+XKZ4hNIOv6SlBejvJgATw== + dependencies: + strnum "^1.0.5" + fastq@^1.6.0: version "1.13.0" resolved "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz" @@ -4096,6 +4103,11 @@ strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== +strnum@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.0.5.tgz#5c4e829fe15ad4ff0d20c3db5ac97b73c9b072db" + integrity sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA== + style-to-object@^0.3.0: version "0.3.0" resolved "https://registry.npmjs.org/style-to-object/-/style-to-object-0.3.0.tgz" @@ -4118,10 +4130,10 @@ styled-jsx@5.1.0: dependencies: client-only "0.0.1" -stylis@4.0.13: - version "4.0.13" - resolved "https://registry.npmjs.org/stylis/-/stylis-4.0.13.tgz" - integrity sha512-xGPXiFVl4YED9Jh7Euv2V220mriG9u4B2TA6Ybjc1catrstKD2PpIdU3U0RKpkVBC2EhmL/F0sPCr9vrFTNRag== +stylis@4.1.3: + version "4.1.3" + resolved "https://registry.yarnpkg.com/stylis/-/stylis-4.1.3.tgz#fd2fbe79f5fed17c55269e16ed8da14c84d069f7" + integrity sha512-GP6WDNWf+o403jrEp9c5jibKavrtLW+/qYGhFxFrG8maXhwTBI7gLLhiBb0o7uFccWN+EOS9aMO6cGHWAO07OA== supports-color@^5.3.0: version "5.5.0"