Skip to content

Commit 9a177c2

Browse files
committed
address comments
1 parent 301ec74 commit 9a177c2

2 files changed

Lines changed: 17 additions & 18 deletions

File tree

deployment/cvm-deployment/user-config.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ image_reference = "nearone/mpc-node"
1616
# docs/running-an-mpc-node-in-tdx-external-guide.md#required-ports
1717
# (80 P2P, 8080 web/metrics, 8079 migration, 3030 debug, 24567 DSS).
1818
port_mappings = [
19-
{ host = 80, container = 80 }, # MPC P2P (port_override convention)
20-
{ host = 8080, container = 8080 }, # web_ui / metrics / /public_data
21-
{ host = 8079, container = 8079 }, # migration_web_ui
22-
{ host = 3030, container = 3030 }, # debug / telemetry
23-
{ host = 24567, container = 24567 }, # decentralized state sync
19+
{ host = 80, container = 80 }, # MPC P2P (port_override convention)
20+
{ host = 8080, container = 8080 }, # web_ui / metrics / /public_data
21+
{ host = 8079, container = 8079 }, # migration_web_ui
22+
{ host = 3030, container = 3030 }, # debug / telemetry
23+
{ host = 24567, container = 24567 }, # decentralized state sync
2424
]
2525

2626
[mpc_node_config]
@@ -54,7 +54,7 @@ format = "plain"
5454
filter = "info"
5555

5656
[mpc_node_config.near_init]
57-
chain_id = "testnet" # mainnet: "mainnet"
57+
chain_id = "testnet" # mainnet: "mainnet"
5858
# Testnet boot nodes. For mainnet, replace with the mainnet boot-nodes
5959
# string from https://near-nodes.io/ or the official nearcore mainnet
6060
# config.json (rpc.mainnet.near.org).
@@ -101,7 +101,7 @@ cores = 6
101101
validate_genesis = false
102102
sync_mode = "Latest"
103103
concurrency = 1
104-
mpc_contract_id = "v1.signer-prod.testnet" # mainnet: "v1.signer"
104+
mpc_contract_id = "v1.signer-prod.testnet" # mainnet: "v1.signer"
105105
finality = "optimistic"
106106
# MPC P2P convention is port 80. Forces it on every peer URL (listen +
107107
# dial) regardless of the URL's scheme/port.
@@ -169,7 +169,7 @@ token = { val = "YOUR_QUICKNODE_API_KEY" }
169169
[mpc_node_config.node.foreign_chains.starknet]
170170
timeout_sec = 30
171171
max_retries = 3
172-
expected_network_fingerprint = "0x534e5f5345504f4c4941" # SN_SEPOLIA
172+
expected_network_fingerprint = "0x534e5f5345504f4c4941" # SN_SEPOLIA
173173

174174
[mpc_node_config.node.foreign_chains.starknet.providers.publicnode]
175175
rpc_url = "https://starknet-sepolia-rpc.publicnode.com"
@@ -193,7 +193,7 @@ token = { val = "YOUR_QUICKNODE_API_KEY" }
193193
[mpc_node_config.node.foreign_chains.aptos]
194194
timeout_sec = 30
195195
max_retries = 3
196-
expected_network_fingerprint = "2" # Aptos ledger chain id
196+
expected_network_fingerprint = "2" # Aptos ledger chain id
197197

198198
[mpc_node_config.node.foreign_chains.aptos.providers.public]
199199
rpc_url = "https://fullnode.testnet.aptoslabs.com/v1"
@@ -247,7 +247,7 @@ scheme = "Bearer"
247247
token = { val = "YOUR_ALCHEMY_API_KEY" }
248248

249249
[mpc_node_config.node.foreign_chains.sui.providers.quicknode]
250-
rpc_url = "https://YOUR-SLUG.sui-testnet.quiknode.pro:9000"
250+
rpc_url = "https://YOUR-SLUG.sui-testnet.quiknode.pro"
251251

252252
[mpc_node_config.node.foreign_chains.sui.providers.quicknode.auth]
253253
kind = "header"
@@ -370,7 +370,7 @@ token = { val = "YOUR_QUICKNODE_API_KEY" }
370370
# token = { val = "YOUR_ALCHEMY_API_KEY" }
371371
#
372372
# [mpc_node_config.node.foreign_chains.sui.providers.quicknode]
373-
# rpc_url = "https://YOUR-SLUG.sui-mainnet.quiknode.pro:9000"
373+
# rpc_url = "https://YOUR-SLUG.sui-mainnet.quiknode.pro"
374374
#
375375
# [mpc_node_config.node.foreign_chains.sui.providers.quicknode.auth]
376376
# kind = "header"

docs/running-an-mpc-node-in-tdx-external-guide.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,6 @@ You need your own API keys:
838838
> **Important:**
839839
>
840840
> * The placeholder string in `rpc_url` must exactly match the `placeholder` value (case-sensitive). Do not embed an API key directly in `rpc_url` without `kind = "path"` — it will be logged in plain text on policy mismatch errors.
841-
> * **Sui is different from the other chains:** the node talks to Sui over gRPC, so API keys cannot go in the URL — only header auth (or none) works. Alchemy takes the key as an `Authorization: Bearer` header, QuickNode as an `x-token` header on port `9000`. Use the exact auth blocks below.
842841
> * Before deploying, verify your config with the [foreign-chain config tester](../crates/foreign-chain-config-tester/README.md): `cargo run -p foreign-chain-config-tester -- --config user-config.toml --network testnet` (or `--network mainnet`). It checks every provider with the same client code the node uses.
843842
844843
Replace the `YOUR_*` placeholders with your actual keys and `YOUR-SLUG` with your QuickNode endpoint name.
@@ -857,7 +856,7 @@ rpc_url = "https://bitcoin-testnet-rpc.publicnode.com"
857856
timeout_sec = 30
858857
max_retries = 3
859858
860-
[mpc_node_config.node.foreign_chains.abstract.providers.public]
859+
[mpc_node_config.node.foreign_chains.abstract.providers.abstract-testnet]
861860
rpc_url = "https://api.testnet.abs.xyz"
862861
863862
[mpc_node_config.node.foreign_chains.abstract.providers.alchemy]
@@ -878,7 +877,7 @@ token = { val = "YOUR_QUICKNODE_API_KEY" }
878877
timeout_sec = 30
879878
max_retries = 3
880879
881-
[mpc_node_config.node.foreign_chains.starknet.providers.public]
880+
[mpc_node_config.node.foreign_chains.starknet.providers.publicnode]
882881
rpc_url = "https://starknet-sepolia-rpc.publicnode.com"
883882
884883
[mpc_node_config.node.foreign_chains.starknet.providers.alchemy]
@@ -943,7 +942,7 @@ scheme = "Bearer"
943942
token = { val = "YOUR_ALCHEMY_API_KEY" }
944943
945944
[mpc_node_config.node.foreign_chains.sui.providers.quicknode]
946-
rpc_url = "https://YOUR-SLUG.sui-testnet.quiknode.pro:9000"
945+
rpc_url = "https://YOUR-SLUG.sui-testnet.quiknode.pro"
947946
[mpc_node_config.node.foreign_chains.sui.providers.quicknode.auth]
948947
kind = "header"
949948
name = "x-token"
@@ -964,7 +963,7 @@ rpc_url = "https://bitcoin-rpc.publicnode.com"
964963
timeout_sec = 30
965964
max_retries = 3
966965
967-
[mpc_node_config.node.foreign_chains.abstract.providers.public]
966+
[mpc_node_config.node.foreign_chains.abstract.providers.abstract-testnet]
968967
rpc_url = "https://api.mainnet.abs.xyz"
969968
970969
[mpc_node_config.node.foreign_chains.abstract.providers.alchemy]
@@ -985,7 +984,7 @@ token = { val = "YOUR_QUICKNODE_API_KEY" }
985984
timeout_sec = 30
986985
max_retries = 3
987986
988-
[mpc_node_config.node.foreign_chains.starknet.providers.public]
987+
[mpc_node_config.node.foreign_chains.starknet.providers.publicnode]
989988
rpc_url = "https://starknet-rpc.publicnode.com"
990989
991990
[mpc_node_config.node.foreign_chains.starknet.providers.alchemy]
@@ -1050,7 +1049,7 @@ scheme = "Bearer"
10501049
token = { val = "YOUR_ALCHEMY_API_KEY" }
10511050
10521051
[mpc_node_config.node.foreign_chains.sui.providers.quicknode]
1053-
rpc_url = "https://YOUR-SLUG.sui-mainnet.quiknode.pro:9000"
1052+
rpc_url = "https://YOUR-SLUG.sui-mainnet.quiknode.pro"
10541053
[mpc_node_config.node.foreign_chains.sui.providers.quicknode.auth]
10551054
kind = "header"
10561055
name = "x-token"

0 commit comments

Comments
 (0)