From 26c495f158b46cc957a78a3f79a6e6621ad1e00a Mon Sep 17 00:00:00 2001 From: 0xSpaceShard <0xSpaceShard@users.noreply.github.com> Date: Mon, 22 Jul 2024 12:18:30 +0000 Subject: [PATCH] Deploy website - based on 12a76833f4d8f589cd1d5f94faede79c6c74db3a --- 404.html | 2 +- assets/js/bca784a7.0edf2fc8.js | 1 - assets/js/bca784a7.31e0bae6.js | 1 + ...in.928f3fc4.js => runtime~main.76663645.js} | 2 +- docs/0.0.6/account-impersonation/index.html | 2 +- docs/0.0.6/api/index.html | 2 +- docs/0.0.6/balance/index.html | 2 +- docs/0.0.6/blocks/index.html | 2 +- docs/0.0.6/category/running/index.html | 2 +- docs/0.0.6/dump-load-restart/index.html | 2 +- docs/0.0.6/forking/index.html | 2 +- docs/0.0.6/historic-state/index.html | 2 +- docs/0.0.6/intro/index.html | 2 +- docs/0.0.6/lite/index.html | 2 +- docs/0.0.6/postman/index.html | 2 +- docs/0.0.6/predeployed/index.html | 2 +- docs/0.0.6/running/cli/index.html | 2 +- docs/0.0.6/running/docker/index.html | 2 +- docs/0.0.6/running/install/index.html | 2 +- docs/0.0.6/server-config/index.html | 2 +- docs/0.0.6/starknet-time/index.html | 2 +- docs/0.0.7/account-impersonation/index.html | 2 +- docs/0.0.7/api/index.html | 2 +- docs/0.0.7/balance/index.html | 2 +- docs/0.0.7/blocks/index.html | 2 +- docs/0.0.7/category/running/index.html | 2 +- docs/0.0.7/dump-load-restart/index.html | 2 +- docs/0.0.7/forking/index.html | 2 +- docs/0.0.7/historic-state/index.html | 2 +- docs/0.0.7/intro/index.html | 2 +- docs/0.0.7/lite/index.html | 2 +- docs/0.0.7/postman/index.html | 2 +- docs/0.0.7/predeployed/index.html | 2 +- docs/0.0.7/running/cli/index.html | 2 +- docs/0.0.7/running/docker/index.html | 2 +- docs/0.0.7/running/install/index.html | 2 +- docs/0.0.7/server-config/index.html | 2 +- docs/0.0.7/starknet-time/index.html | 2 +- docs/0.1.1/account-impersonation/index.html | 2 +- docs/0.1.1/api/index.html | 2 +- docs/0.1.1/balance/index.html | 2 +- docs/0.1.1/blocks/index.html | 2 +- docs/0.1.1/category/running/index.html | 2 +- docs/0.1.1/dump-load-restart/index.html | 2 +- docs/0.1.1/forking/index.html | 2 +- docs/0.1.1/historic-state/index.html | 2 +- docs/0.1.1/intro/index.html | 2 +- docs/0.1.1/lite/index.html | 2 +- docs/0.1.1/postman/index.html | 2 +- docs/0.1.1/predeployed/index.html | 2 +- docs/0.1.1/running/cli/index.html | 2 +- docs/0.1.1/running/docker/index.html | 2 +- docs/0.1.1/running/install/index.html | 2 +- docs/0.1.1/server-config/index.html | 2 +- docs/0.1.1/starknet-time/index.html | 2 +- docs/account-impersonation/index.html | 2 +- docs/api/index.html | 2 +- docs/balance/index.html | 2 +- docs/blocks/index.html | 2 +- docs/category/running/index.html | 2 +- docs/dump-load-restart/index.html | 2 +- docs/forking/index.html | 2 +- docs/historic-state/index.html | 2 +- docs/intro/index.html | 2 +- docs/lite/index.html | 2 +- docs/next/account-impersonation/index.html | 2 +- docs/next/api/index.html | 2 +- docs/next/balance/index.html | 2 +- docs/next/blocks/index.html | 2 +- docs/next/category/running/index.html | 2 +- docs/next/dump-load-restart/index.html | 2 +- docs/next/forking/index.html | 2 +- docs/next/historic-state/index.html | 2 +- docs/next/intro/index.html | 2 +- docs/next/lite/index.html | 2 +- docs/next/postman/index.html | 18 +++++++++--------- docs/next/predeployed/index.html | 2 +- docs/next/running/cli/index.html | 2 +- docs/next/running/docker/index.html | 2 +- docs/next/running/install/index.html | 2 +- docs/next/server-config/index.html | 2 +- docs/next/starknet-time/index.html | 2 +- docs/postman/index.html | 2 +- docs/predeployed/index.html | 2 +- docs/running/cli/index.html | 2 +- docs/running/docker/index.html | 2 +- docs/running/install/index.html | 2 +- docs/server-config/index.html | 2 +- docs/starknet-time/index.html | 2 +- index.html | 2 +- markdown-page/index.html | 2 +- 91 files changed, 98 insertions(+), 98 deletions(-) delete mode 100644 assets/js/bca784a7.0edf2fc8.js create mode 100644 assets/js/bca784a7.31e0bae6.js rename assets/js/{runtime~main.928f3fc4.js => runtime~main.76663645.js} (99%) diff --git a/404.html b/404.html index 25d7be6e9..d7c05d90a 100644 --- a/404.html +++ b/404.html @@ -4,7 +4,7 @@
Postman is a Starknet utility that allows testing L1-L2 interaction. Ensure you have an L1 node and a Devnet (L2 node) running, load a messaging contract, and flush the queue when needed. You can use starknet-devnet-js
to perform these actions, as witnessed in this example, or directly send requests to the endpoints specified below.
POST /postman/load_l1_messaging_contract
{
"networkUrl": "http://localhost:8545",
"address": "0x123...def"
}
JSON-RPC
{
"jsonrpc": "2.0",
"id": "1",
"method": "devnet_postmanLoad",
"params": {
"networkUrl": "http://localhost:8545",
"address": "0x123...def"
}
}
{
"network_url": "http://localhost:8545",
"address": "0x123...def"
}
JSON-RPC
{
"jsonrpc": "2.0",
"id": "1",
"method": "devnet_postmanLoad",
"params": {
"network_url": "http://localhost:8545",
"address": "0x123...def"
}
}
Loads a MockStarknetMessaging
contract. The address
parameter is optional; if provided, the MockStarknetMessaging
contract will be fetched from that address, otherwise a new one will be deployed.
networkUrl
is the URL of the JSON-RPC API of the L1 node you've run locally or that already exists; possibilities include, and are not limited to:
network_url
is the URL of the JSON-RPC API of the L1 node you've run locally or that already exists; possibilities include, and are not limited to:
POST /postman/send_message_to_l2
Request:
-{
"l2_contract_address": "0x00285ddb7e5c777b310d806b9b2a0f7c7ba0a41f12b420219209d97a3b7f25b2",
"entry_point_selector": "0xC73F681176FC7B3F9693986FD7B14581E8D540519E27400E88B8713932BE01",
"l1_contract_address": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
"payload": [
"0x1",
"0x2"
],
"paid_fee_on_l1": "0x123456abcdef"
"nonce":"0x0"
}
JSON-RPC
{
"jsonrpc": "2.0",
"id": "1",
"method": "devnet_postmanSendMessageToL2",
"params": {
"l2_contract_address": "0x00285ddb7e5c777b310d806b9b2a0f7c7ba0a41f12b420219209d97a3b7f25b2",
"entry_point_selector": "0xC73F681176FC7B3F9693986FD7B14581E8D540519E27400E88B8713932BE01",
"l1_contract_address": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
"payload": [
"0x1",
"0x2"
],
"paid_fee_on_l1": "0x123456abcdef"
"nonce":"0x0"
}
}
{
"l2_contract_address": "0x00285ddb7e5c777b310d806b9b2a0f7c7ba0a41f12b420219209d97a3b7f25b2",
"entry_point_selector": "0xC73F681176FC7B3F9693986FD7B14581E8D540519E27400E88B8713932BE01",
"l1_contract_address": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
"payload": [
"0x1",
"0x2"
],
"paid_fee_on_l1": "0x123456abcdef",
"nonce":"0x0"
}
JSON-RPC
{
"jsonrpc": "2.0",
"id": "1",
"method": "devnet_postmanSendMessageToL2",
"params": {
"l2_contract_address": "0x00285ddb7e5c777b310d806b9b2a0f7c7ba0a41f12b420219209d97a3b7f25b2",
"entry_point_selector": "0xC73F681176FC7B3F9693986FD7B14581E8D540519E27400E88B8713932BE01",
"l1_contract_address": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
"payload": [
"0x1",
"0x2"
],
"paid_fee_on_l1": "0x123456abcdef",
"nonce":"0x0"
}
}
Response:
{ "transaction_hash": "0x0548c761a9fd5512782998b2da6f44c42bf78fb88c3794eea330a91c9abb10bb" }
Sending mock transactions from L2 to L1.
-Deployed L2 contract address l2_contract_address
and l1_contract_address
must be valid.
from_address
and to_address
must be valid.
A running L1 node is required for this operation.
POST /postman/consume_message_from_l2
Request:
-{
"l2_contract_address": "0x00285ddb7e5c777b310d806b9b2a0f7c7ba0a41f12b420219209d97a3b7f25b2",
"l1_contract_address": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
"payload": ["0x0", "0x1", "0x3e8"],
}
JSON-RPC
{
"jsonrpc": "2.0",
"id": "1",
"method": "devnet_postmanConsumeMessageFromL2",
"params": {
"l2_contract_address": "0x00285ddb7e5c777b310d806b9b2a0f7c7ba0a41f12b420219209d97a3b7f25b2",
"l1_contract_address": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
"payload": ["0x0", "0x1", "0x3e8"],
}
}
{
"from_address": "0x00285ddb7e5c777b310d806b9b2a0f7c7ba0a41f12b420219209d97a3b7f25b2",
"to_address": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
"payload": ["0x0", "0x1", "0x3e8"],
}
JSON-RPC
{
"jsonrpc": "2.0",
"id": "1",
"method": "devnet_postmanConsumeMessageFromL2",
"params": {
"from_address": "0x00285ddb7e5c777b310d806b9b2a0f7c7ba0a41f12b420219209d97a3b7f25b2",
"to_address": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
"payload": ["0x0", "0x1", "0x3e8"],
}
}
Response:
{"message_hash": "0xae14f241131b524ac8d043d9cb4934253ac5c5589afef19f0d761816a9c7e26d"}