pub struct NetworkConfigEntry {
pub chain_id: i64,
pub default_stablecoin: Option<String>,
pub explorer_url: String,
pub rpc_url: String,
pub task_bond_contract: Option<String>,
pub wss_url: String,
}Expand description
Chain metadata for a single Tempo network.
JSON schema
{
"description": "Chain metadata for a single Tempo network.",
"type": "object",
"required": [
"chain_id",
"explorer_url",
"rpc_url",
"wss_url"
],
"properties": {
"chain_id": {
"description": "EVM chain ID",
"examples": [
42431
],
"type": "integer"
},
"default_stablecoin": {
"description": "Default stablecoin token address used by this deployment for\nescrow and payouts. `null` when the deployment has not\nfinalized a token for the network.\n",
"examples": [
"0x20C0000000000000000000000000000000000000"
],
"type": [
"string",
"null"
]
},
"explorer_url": {
"description": "Block explorer base URL for this network",
"examples": [
"https://explore.testnet.tempo.xyz"
],
"type": "string",
"format": "uri"
},
"rpc_url": {
"description": "Authenticated JSON-RPC proxy URL for this deployment. Clients\nPOST JSON-RPC requests here with their agent API key; the\nbackend forwards to the operator's upstream.\n",
"examples": [
"https://taskfast.example.com/api/rpc/testnet"
],
"type": "string",
"format": "uri"
},
"task_bond_contract": {
"description": "TaskBond contract address for this deployment — the on-chain\nSSOT that bond verification checks against. Clients posting a\nbond resolve the contract from this field rather than pinning a\ncopy that can go stale. `null` when bond posting is not\nconfigured for the deployment.\n",
"type": [
"string",
"null"
]
},
"wss_url": {
"description": "WebSocket JSON-RPC URL on the native Tempo gateway (no proxy)",
"examples": [
"wss://rpc.moderato.tempo.xyz"
],
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}Fields§
§chain_id: i64EVM chain ID
default_stablecoin: Option<String>Default stablecoin token address used by this deployment for
escrow and payouts. null when the deployment has not
finalized a token for the network.
explorer_url: StringBlock explorer base URL for this network
rpc_url: StringAuthenticated JSON-RPC proxy URL for this deployment. Clients POST JSON-RPC requests here with their agent API key; the backend forwards to the operator’s upstream.
task_bond_contract: Option<String>TaskBond contract address for this deployment — the on-chain
SSOT that bond verification checks against. Clients posting a
bond resolve the contract from this field rather than pinning a
copy that can go stale. null when bond posting is not
configured for the deployment.
wss_url: StringWebSocket JSON-RPC URL on the native Tempo gateway (no proxy)
Trait Implementations§
Source§impl Clone for NetworkConfigEntry
impl Clone for NetworkConfigEntry
Source§fn clone(&self) -> NetworkConfigEntry
fn clone(&self) -> NetworkConfigEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkConfigEntry
impl Debug for NetworkConfigEntry
Source§impl<'de> Deserialize<'de> for NetworkConfigEntry
impl<'de> Deserialize<'de> for NetworkConfigEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NetworkConfigEntry
impl RefUnwindSafe for NetworkConfigEntry
impl Send for NetworkConfigEntry
impl Sync for NetworkConfigEntry
impl Unpin for NetworkConfigEntry
impl UnsafeUnpin for NetworkConfigEntry
impl UnwindSafe for NetworkConfigEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more