Skip to content

Commit d0380ef

Browse files
authored
Merge pull request #27 from open-rpc/fix/deploy
fix: correct build with proper components
2 parents 33838e8 + 301fa9c commit d0380ef

File tree

66 files changed

+66
-134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+66
-134
lines changed

packages/docusaurus-plugin/src/lib.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,7 @@ import {TwoColumnLayout, RequestExample, ResponseExample, TryNow} from '@open-rp
265265
</>
266266
}
267267
>
268-
<TryNowContainer>
269-
<TryNowDialog method={"${m.name}"} openrpcDocument={${JSON.stringify(m)}} show={showDialog} />
270-
<TryNow method={"${m.name}"} openrpcDocument={${JSON.stringify(m)}} onClick={()=>(<div>Hello</div>)} />
271-
</TryNowContainer>
268+
<TryNow />
272269
# ${m.name}
273270
274271
${desc ? `${desc}\n` : ""}

packages/example-site/docs/api-reference/methods/debug_getBadBlocks.mdx

Lines changed: 1 addition & 2 deletions
Large diffs are not rendered by default.

packages/example-site/docs/api-reference/methods/debug_getRawBlock.mdx

Lines changed: 1 addition & 2 deletions
Large diffs are not rendered by default.

packages/example-site/docs/api-reference/methods/debug_getRawHeader.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ import {TwoColumnLayout, RequestExample, ResponseExample, TryNow} from '@open-rp
3737
</>
3838
}
3939
>
40-
41-
<TryNow method={"debug_getRawHeader"} openrpcDocument={{"name":"debug_getRawHeader","summary":"Returns an RLP-encoded header.","params":[{"name":"Block","required":true,"schema":{"title":"Block number or tag","oneOf":[{"title":"Block number","type":"string","pattern":"^0x(0|[1-9a-f][0-9a-f]*)$"},{"title":"Block tag","type":"string","enum":["earliest","finalized","safe","latest","pending"],"description":"`earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `latest`: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; `pending`: A sample next block built by the client on top of `latest` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error"}]}}],"errors":[{"code":4444,"message":"Pruned history unavailable"}],"result":{"name":"Header RLP","schema":{"title":"hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]*$"}},"examples":[{"name":"debug_getRawHeader example","params":[{"name":"Block","value":"0x32026E"}],"result":{"name":"Header RLP","value":"0xf90236a09f73691f6dabca4f0a99b05d0a701995506aa311dcaa9ce9833d6f4ca474c162a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794c6e2459991bfe27cca6d86722f35da23a1e4cb97a078103ea8c47231886481d72ec1afae6eeb06c3773ce24a91323d5c9eed69d4cca0008992da2531db404f07b0871dd620a94ba346963e1b1c6dc7b00748e8593a1ea0b6c3890d9604434fc52f722848c84d1770add20cd75bbc28cdedff42940dbb56b90100200800000400000002000e0000000401000000440100000000c0400600000002000801000000040480020840048000000000400000000000000020004220000011002000000000000204000800000010010002000002000000000040a000000000000400020000010885000000000808000000008800001004002010020300005000000010002110410402000000000000000890000008000000000000000000020040000002000000000000810400000040006000004000004080020000000000000022001000000000000840400000000220250000000000080402000420000418000000000000000400040000004080040010200000000000108020020000808332026e8401c9c380833e3c3c846436f93899d883010b05846765746888676f312e32302e32856c696e7578a0112d8f15793e7df7f8dcdb21c891cff78c0d1839cb5b6dcd06116cdbb99536ae88000000000000000008a0cdb97712af6685bb9650d21d609525913293c48adda7c45990926daada335c9b"}}]}} onClick={()=>(<div>Hello</div>)} />
40+
<TryNow />
4241
# debug_getRawHeader
4342

4443

packages/example-site/docs/api-reference/methods/debug_getRawReceipts.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ import {TwoColumnLayout, RequestExample, ResponseExample, TryNow} from '@open-rp
3737
</>
3838
}
3939
>
40-
41-
<TryNow method={"debug_getRawReceipts"} openrpcDocument={{"name":"debug_getRawReceipts","summary":"Returns an array of EIP-2718 binary-encoded receipts.","params":[{"name":"Block","required":true,"schema":{"title":"Block number or tag","oneOf":[{"title":"Block number","type":"string","pattern":"^0x(0|[1-9a-f][0-9a-f]*)$"},{"title":"Block tag","type":"string","enum":["earliest","finalized","safe","latest","pending"],"description":"`earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `latest`: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; `pending`: A sample next block built by the client on top of `latest` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error"}]}}],"errors":[{"code":4444,"message":"Pruned history unavailable"}],"result":{"name":"Receipts","schema":{"title":"Receipt array","type":"array","items":{"title":"hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]*$"}}},"examples":[{"name":"debug_getRawReceipts example","params":[{"name":"Block","value":"0x32026E"}],"result":{"name":"Receipts","value":["0xf901a60182c70eb9010000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000002000000000000000000000008000000000000000000000000000000000040000000001000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000100000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000002000000000100000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000020000000000000000f89df89b947753cfad258efbc52a9a1452e42ffbce9be486cbf863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa00000000000000000000000000828d0386c1122e565f07dd28c7d1340ed5b3315a000000000000000000000000021849e99c31e3113a489d7eb0fd4d8c0edbe47afa00000000000000000000000000000000000000000000000000000000029b92700","0xf901a70183018e1cb9010000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000002000000000000000000000008000000000000000000000000000000000040000000001000000000000000000000000000000000000000000000000010000000000000000000000000000000008000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000002000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000020000000000000000f89df89b947753cfad258efbc52a9a1452e42ffbce9be486cbf863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa00000000000000000000000000828d0386c1122e565f07dd28c7d1340ed5b3315a000000000000000000000000069cda9d6cc6ce05982d0b4fdf9480f2991f39b5aa00000000000000000000000000000000000000000000000000000000029b92700"]}}]}} onClick={()=>(<div>Hello</div>)} />
40+
<TryNow />
4241
# debug_getRawReceipts
4342

4443

packages/example-site/docs/api-reference/methods/debug_getRawTransaction.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ import {TwoColumnLayout, RequestExample, ResponseExample, TryNow} from '@open-rp
3737
</>
3838
}
3939
>
40-
41-
<TryNow method={"debug_getRawTransaction"} openrpcDocument={{"name":"debug_getRawTransaction","summary":"Returns an array of EIP-2718 binary-encoded transactions.","params":[{"name":"Transaction hash","required":true,"schema":{"title":"32 byte hex value","type":"string","pattern":"^0x[0-9a-f]{64}$"}}],"errors":[{"code":4444,"message":"Pruned history unavailable"}],"result":{"name":"EIP-2718 binary-encoded transaction","schema":{"title":"hex encoded bytes","type":"string","pattern":"^0x[0-9a-f]*$"}},"examples":[{"name":"debug_getRawTransaction example","params":[{"name":"Transaction hash","value":"0x3a2fd1a5ea9ffee477f449be53a49398533d2c006a5815023920d1c397298df3"}],"result":{"name":"EIP-2718 binary-encoded transaction","value":"0xf8678084342770c182520894658bdf435d810c91414ec09147daa6db624063798203e880820a95a0af5fc351b9e457a31f37c84e5cd99dd3c5de60af3de33c6f4160177a2c786a60a0201da7a21046af55837330a2c52fc1543cd4d9ead00ddf178dd96935b607ff9b"}}]}} onClick={()=>(<div>Hello</div>)} />
40+
<TryNow />
4241
# debug_getRawTransaction
4342

4443

packages/example-site/docs/api-reference/methods/engine_exchangeCapabilities.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ import {TwoColumnLayout, RequestExample, ResponseExample, TryNow} from '@open-rp
3737
</>
3838
}
3939
>
40-
41-
<TryNow method={"engine_exchangeCapabilities"} openrpcDocument={{"name":"engine_exchangeCapabilities","summary":"Exchanges list of supported Engine API methods","externalDocs":{"description":"Method specification","url":"https://github.com/ethereum/execution-apis/blob/main/src/engine/common.md#engine_exchangecapabilities"},"params":[{"name":"Consensus client methods","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"result":{"name":"Execution client methods","schema":{"type":"array","items":{"type":"string"}}},"examples":[{"name":"engine_exchangeCapabilities example","params":[{"name":"Consensus client methods","value":["engine_exchangeTransitionConfigurationV1","engine_forkchoiceUpdatedV1","engine_getPayloadBodiesByHashV1","engine_getPayloadBodiesByRangeV1","engine_getPayloadV1","engine_newPayloadV1"]}],"result":{"name":"Execution client methods","value":["engine_getPayloadV1","engine_getPayloadV2","engine_executePayloadV1","engine_newPayloadV1","engine_newPayloadV2","engine_forkchoiceUpdatedV1","engine_forkchoiceUpdatedV2","engine_exchangeTransitionConfigurationV1","engine_getPayloadBodiesByHashV1","engine_getPayloadBodiesByRangeV1"]}}]}} onClick={()=>(<div>Hello</div>)} />
40+
<TryNow />
4241
# engine_exchangeCapabilities
4342

4443

packages/example-site/docs/api-reference/methods/engine_exchangeTransitionConfigurationV1.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ import {TwoColumnLayout, RequestExample, ResponseExample, TryNow} from '@open-rp
3737
</>
3838
}
3939
>
40-
41-
<TryNow method={"engine_exchangeTransitionConfigurationV1"} openrpcDocument={{"name":"engine_exchangeTransitionConfigurationV1","summary":"Exchanges transition configuration","externalDocs":{"description":"Method specification","url":"https://github.com/ethereum/execution-apis/blob/main/src/engine/paris.md#engine_exchangetransitionconfigurationv1"},"params":[{"name":"Consensus client configuration","required":true,"schema":{"title":"Transition configuration object","type":"object","required":["terminalTotalDifficulty","terminalBlockHash","terminalBlockNumber"],"properties":{"terminalTotalDifficulty":{"title":"Terminal total difficulty","type":"string","pattern":"^0x(0|[1-9a-f][0-9a-f]{0,63})$"},"terminalBlockHash":{"title":"Terminal block hash","type":"string","pattern":"^0x[0-9a-f]{64}$"},"terminalBlockNumber":{"title":"Terminal block number","type":"string","pattern":"^0x(0|[1-9a-f][0-9a-f]{0,15})$"}}}}],"result":{"name":"Execution client configuration","schema":{"title":"Transition configuration object","type":"object","required":["terminalTotalDifficulty","terminalBlockHash","terminalBlockNumber"],"properties":{"terminalTotalDifficulty":{"title":"Terminal total difficulty","type":"string","pattern":"^0x(0|[1-9a-f][0-9a-f]{0,63})$"},"terminalBlockHash":{"title":"Terminal block hash","type":"string","pattern":"^0x[0-9a-f]{64}$"},"terminalBlockNumber":{"title":"Terminal block number","type":"string","pattern":"^0x(0|[1-9a-f][0-9a-f]{0,15})$"}}}},"examples":[{"name":"engine_exchangeTransitionConfigurationV1 example","params":[{"name":"Consensus client configuration","value":{"terminalTotalDifficulty":0,"terminalBlockHash":"0x0000000000000000000000000000000000000000000000000000000000000000","terminalBlockNumber":"0x1"}}],"result":{"name":"Execution client configuration","value":{"terminalTotalDifficulty":0,"terminalBlockHash":"0x0000000000000000000000000000000000000000000000000000000000000000","terminalBlockNumber":"0x1"}}}]}} onClick={()=>(<div>Hello</div>)} />
40+
<TryNow />
4241
# engine_exchangeTransitionConfigurationV1
4342

4443

packages/example-site/docs/api-reference/methods/engine_forkchoiceUpdatedV1.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ import {TwoColumnLayout, RequestExample, ResponseExample, TryNow} from '@open-rp
3737
</>
3838
}
3939
>
40-
41-
<TryNow method={"engine_forkchoiceUpdatedV1"} openrpcDocument={{"name":"engine_forkchoiceUpdatedV1","summary":"Updates the forkchoice state","externalDocs":{"description":"Method specification","url":"https://github.com/ethereum/execution-apis/blob/main/src/engine/paris.md#engine_forkchoiceupdatedv1"},"params":[{"name":"Forkchoice state","required":true,"schema":{"title":"Forkchoice state object V1","type":"object","required":["headBlockHash","safeBlockHash","finalizedBlockHash"],"properties":{"headBlockHash":{"title":"Head block hash","type":"string","pattern":"^0x[0-9a-f]{64}$"},"safeBlockHash":{"title":"Safe block hash","type":"string","pattern":"^0x[0-9a-f]{64}$"},"finalizedBlockHash":{"title":"Finalized block hash","type":"string","pattern":"^0x[0-9a-f]{64}$"}}}},{"name":"Payload attributes","required":false,"schema":{"title":"Payload attributes object V1","type":"object","required":["timestamp","prevRandao","suggestedFeeRecipient"],"properties":{"timestamp":{"title":"Timestamp","type":"string","pattern":"^0x(0|[1-9a-f][0-9a-f]{0,15})$"},"prevRandao":{"title":"Previous randao value","type":"string","pattern":"^0x[0-9a-f]{64}$"},"suggestedFeeRecipient":{"title":"Suggested fee recipient","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}}}],"result":{"name":"Response object","schema":{"title":"Forkchoice updated response","type":"object","required":["payloadStatus"],"properties":{"payloadStatus":{"title":"Payload status","type":"object","required":["status"],"properties":{"status":{"title":"Payload validation status","type":"string","enum":["VALID","INVALID","SYNCING"],"description":"Set of possible values is restricted to VALID, INVALID, SYNCING"},"latestValidHash":{"title":"The hash of the most recent valid block","type":"string","pattern":"^0x[0-9a-f]{64}$"},"validationError":{"title":"Validation error message","type":"string"}}},"payloadId":{"title":"Payload id","type":"string","pattern":"^0x[0-9a-f]{16}$"}}}},"errors":[{"code":-38002,"message":"Invalid forkchoice state"},{"code":-38003,"message":"Invalid payload attributes"}],"examples":[{"name":"engine_forkchoiceUpdatedV1 example","params":[{"name":"Forkchoice state","value":{"headBlockHash":"0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858","safeBlockHash":"0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858","finalizedBlockHash":"0x3b8fb240d288781d4aac94d3fd16809ee413bc99294a085798a589dae51ddd4a"}},{"name":"Payload attributes","value":{"timestamp":"0x5","prevRandao":"0x0000000000000000000000000000000000000000000000000000000000000000","suggestedFeeRecipient":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"}}],"result":{"name":"Response object","value":{"payloadStatus":{"status":"VALID","latestValidHash":"0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858","validationError":null},"payloadId":"0x0000000021f32cc1"}}}]}} onClick={()=>(<div>Hello</div>)} />
40+
<TryNow />
4241
# engine_forkchoiceUpdatedV1
4342

4443

packages/example-site/docs/api-reference/methods/engine_forkchoiceUpdatedV2.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ import {TwoColumnLayout, RequestExample, ResponseExample, TryNow} from '@open-rp
3737
</>
3838
}
3939
>
40-
41-
<TryNow method={"engine_forkchoiceUpdatedV2"} openrpcDocument={{"name":"engine_forkchoiceUpdatedV2","summary":"Updates the forkchoice state","externalDocs":{"description":"Method specification","url":"https://github.com/ethereum/execution-apis/blob/main/src/engine/shanghai.md#engine_forkchoiceupdatedv2"},"params":[{"name":"Forkchoice state","required":true,"schema":{"title":"Forkchoice state object V1","type":"object","required":["headBlockHash","safeBlockHash","finalizedBlockHash"],"properties":{"headBlockHash":{"title":"Head block hash","type":"string","pattern":"^0x[0-9a-f]{64}$"},"safeBlockHash":{"title":"Safe block hash","type":"string","pattern":"^0x[0-9a-f]{64}$"},"finalizedBlockHash":{"title":"Finalized block hash","type":"string","pattern":"^0x[0-9a-f]{64}$"}}}},{"name":"Payload attributes","required":false,"schema":{"title":"Payload attributes object V2","type":"object","required":["timestamp","prevRandao","suggestedFeeRecipient","withdrawals"],"properties":{"timestamp":{"title":"Timestamp","type":"string","pattern":"^0x(0|[1-9a-f][0-9a-f]{0,15})$"},"prevRandao":{"title":"Previous randao value","type":"string","pattern":"^0x[0-9a-f]{64}$"},"suggestedFeeRecipient":{"title":"Suggested fee recipient","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"withdrawals":{"title":"Withdrawals","type":"array","items":{"title":"Withdrawal object V1","type":"object","required":["index","validatorIndex","address","amount"],"properties":{"index":{"title":"Withdrawal index","type":"string","pattern":"^0x(0|[1-9a-f][0-9a-f]{0,15})$"},"validatorIndex":{"title":"Validator index","type":"string","pattern":"^0x(0|[1-9a-f][0-9a-f]{0,15})$"},"address":{"title":"Withdrawal address","type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"amount":{"title":"Withdrawal amount","type":"string","pattern":"^0x(0|[1-9a-f][0-9a-f]{0,15})$"}}}}}}}],"result":{"name":"Response object","schema":{"title":"Forkchoice updated response","type":"object","required":["payloadStatus"],"properties":{"payloadStatus":{"title":"Payload status","type":"object","required":["status"],"properties":{"status":{"title":"Payload validation status","type":"string","enum":["VALID","INVALID","SYNCING"],"description":"Set of possible values is restricted to VALID, INVALID, SYNCING"},"latestValidHash":{"title":"The hash of the most recent valid block","type":"string","pattern":"^0x[0-9a-f]{64}$"},"validationError":{"title":"Validation error message","type":"string"}}},"payloadId":{"title":"Payload id","type":"string","pattern":"^0x[0-9a-f]{16}$"}}}},"errors":[{"code":-38002,"message":"Invalid forkchoice state"},{"code":-38003,"message":"Invalid payload attributes"}],"examples":[{"name":"engine_forkchoiceUpdatedV2 example","params":[{"name":"Forkchoice state","value":{"headBlockHash":"0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858","safeBlockHash":"0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858","finalizedBlockHash":"0x3b8fb240d288781d4aac94d3fd16809ee413bc99294a085798a589dae51ddd4a"}},{"name":"Payload attributes","value":{"timestamp":"0x64e7785b","prevRandao":"0xc130d5e63c61c935f6089e61140ca9136172677cf6aa5800dcc1cf0a02152a14","suggestedFeeRecipient":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b","withdrawals":[{"index":"0xf0","validatorIndex":"0xf0","address":"0x00000000000000000000000000000000000010f0","amount":"0x1"},{"index":"0xf1","validatorIndex":"0xf1","address":"0x00000000000000000000000000000000000010f1","amount":"0x1"}]}}],"result":{"name":"Response object","value":{"payloadStatus":{"status":"VALID","latestValidHash":"0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858","validationError":null},"payloadId":"0x0000000021f32cc1"}}}]}} onClick={()=>(<div>Hello</div>)} />
40+
<TryNow />
4241
# engine_forkchoiceUpdatedV2
4342

4443

0 commit comments

Comments
 (0)