From fc3097dc4a926aa078aa8155b5ca70ec0754d707 Mon Sep 17 00:00:00 2001 From: omerlavanet Date: Sun, 1 Sep 2024 16:11:19 +0300 Subject: [PATCH 1/2] add nodekit bundler --- cookbook/specs/nodekit.json | 93 +++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 cookbook/specs/nodekit.json diff --git a/cookbook/specs/nodekit.json b/cookbook/specs/nodekit.json new file mode 100644 index 0000000000..3d0cf57bcc --- /dev/null +++ b/cookbook/specs/nodekit.json @@ -0,0 +1,93 @@ +{ + "proposal": { + "title": "Add Specs: NodeKit Javelin Sequencer", + "description": "Adding new specification support for NodeKit Javelin Sequencer", + "specs": [ + { + "index": "JAVELIN", + "name": "nodekit javelin sequencer", + "enabled": true, + "reliability_threshold": 268435455, + "data_reliability_enabled": false, + "block_distance_for_finalized_data": 0, + "blocks_in_finalization_proof": 1, + "average_block_time": 1000, + "allowed_block_lag_for_qos_sync": 1, + "shares": 1, + "min_stake_provider": { + "denom": "ulava", + "amount": "47500000000" + }, + "api_collections": [ + { + "enabled": true, + "collection_data": { + "api_interface": "jsonrpc", + "internal_path": "", + "type": "POST", + "add_on": "" + }, + "apis": [ + { + "name": "eth_sendBundleCrossRollup", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": false, + "local": false, + "subscription": false, + "stateful": 1 + } + }, + { + "name": "eth_callBundleCrossRollup", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": false, + "local": false, + "subscription": false, + "stateful": 1 + } + }, + { + "name": "eth_cancelBundleCrossRollup", + "block_parsing": { + "parser_arg": [ + "latest" + ], + "parser_func": "DEFAULT" + }, + "compute_units": 10, + "enabled": true, + "category": { + "deterministic": false, + "local": false, + "subscription": false, + "stateful": 1 + } + } + ], + "inheritance_apis": [], + "parse_directives": [], + "verifications": [ + ] + } + ] + } + ] + }, + "deposit": "10000000ulava" +} \ No newline at end of file From 6112a4d0ade59ec60273551697e1bd063d952bc9 Mon Sep 17 00:00:00 2001 From: omerlavanet Date: Sun, 1 Sep 2024 18:37:25 +0300 Subject: [PATCH 2/2] added x-chain-id header and configs --- config/consumer_examples/javelin_example.yml | 5 +++++ config/provider_examples/javelin_example.yml | 7 +++++++ cookbook/specs/nodekit.json | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 config/consumer_examples/javelin_example.yml create mode 100644 config/provider_examples/javelin_example.yml diff --git a/config/consumer_examples/javelin_example.yml b/config/consumer_examples/javelin_example.yml new file mode 100644 index 0000000000..624bf524b2 --- /dev/null +++ b/config/consumer_examples/javelin_example.yml @@ -0,0 +1,5 @@ +endpoints: + - chain-id: JAVELIN + api-interface: jsonrpc + network-address: 127.0.0.1:3333 +metrics-listen-address: ":7779" \ No newline at end of file diff --git a/config/provider_examples/javelin_example.yml b/config/provider_examples/javelin_example.yml new file mode 100644 index 0000000000..f52d69236b --- /dev/null +++ b/config/provider_examples/javelin_example.yml @@ -0,0 +1,7 @@ +endpoints: + - api-interface: jsonrpc + chain-id: JAVELIN + network-address: + address: "127.0.0.1:2221" + node-urls: + - url: http://devnet.nodekit.xyz/javelin/rpc diff --git a/cookbook/specs/nodekit.json b/cookbook/specs/nodekit.json index 3d0cf57bcc..2c59aa50e4 100644 --- a/cookbook/specs/nodekit.json +++ b/cookbook/specs/nodekit.json @@ -82,6 +82,12 @@ ], "inheritance_apis": [], "parse_directives": [], + "headers": [ + { + "name": "x-chain-id", + "kind": "pass_both" + } + ], "verifications": [ ] }