-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopenmatrix.config.json.example
More file actions
429 lines (429 loc) · 15.1 KB
/
Copy pathopenmatrix.config.json.example
File metadata and controls
429 lines (429 loc) · 15.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
{
"_readme": "Replace all YOUR_* values before the platform is functional. See contracts/DEPLOYMENT_GUIDE.md for instructions. Environment variables in .env override values here.",
"platform": "0pnMatrx",
"version": "1.0.0",
"workspace": ".",
"timezone": "America/Los_Angeles",
"max_steps": 10,
"database": {
"path": "data/0pnmatrx.db"
},
"model": {
"provider": "ollama",
"primary": "llama3.1",
"fallback": "mistral",
"routing_strategy": "intelligent",
"providers": {
"ollama": {
"base_url": "http://localhost:11434",
"model": "llama3.1:8b",
"fallback_model": "mistral"
},
"openai": {
"api_key": "YOUR_OPENAI_API_KEY",
"model": "gpt-4o"
},
"anthropic": {
"api_key": "YOUR_ANTHROPIC_API_KEY",
"model": "claude-sonnet-4-6",
"models": {
"fast": "claude-haiku-4-5-20251001",
"balanced": "claude-sonnet-4-6",
"best": "claude-opus-4-6"
}
},
"mythos": {
"api_key": "YOUR_ANTHROPIC_API_KEY",
"model": "claude-opus-4-6"
},
"nvidia": {
"api_key": "YOUR_NVIDIA_API_KEY",
"model": "meta/llama-3.3-70b-instruct"
},
"gemini": {
"api_key": "YOUR_GOOGLE_API_KEY",
"model": "gemini-pro"
}
}
},
"finetuning": {
"collect": false,
"min_rating_for_export": 4,
"export_path": "data/finetuning/"
},
"gateway": {
"port": 18790,
"host": "0.0.0.0",
"cors_origins": [],
"api_key": "",
"rate_limit_rpm": 60,
"rate_limit_burst": 15,
"rate_limit_rpm_authenticated": 120,
"rate_limit_burst_authenticated": 30,
"rate_limit_rpm_anonymous": 20,
"rate_limit_burst_anonymous": 5
},
"agents": {
"neo": {
"enabled": true,
"role": "execution"
},
"trinity": {
"enabled": true,
"role": "conversation"
},
"morpheus": {
"enabled": true,
"role": "guidance"
}
},
"blockchain": {
"network": "base-sepolia",
"rpc_url": "YOUR_BASE_RPC_URL",
"chain_id": 84532,
"eas_contract//": "EAS address is CHAIN-SPECIFIC — verify against https://docs.attest.org before trusting. For chain_id 84532 (Base Sepolia) and Base mainnet the OP-stack predeploys are EAS 0x4200...0021 / SchemaRegistry 0x4200...0020 (what the iOS client hardcodes). The previous example value 0xA1207F3BBa224E2c9c3c6D5aF63D0eb1582Ce587 is ETHEREUM Sepolia — pasting it with a Base chain_id attests against the wrong contract.",
"eas_contract": "0x4200000000000000000000000000000000000021",
"eas_schema": "YOUR_EAS_SCHEMA_UID",
"price_feeds": {
"//": "Chainlink AggregatorV3 feed addresses per chain — VERIFY against https://docs.chain.link/data-feeds/price-feeds/addresses before trusting. eth_usd example is Base Sepolia ETH/USD; empty -> the price route falls back to Coinbase, and if that is also unreachable returns 503 (never a stale number).",
"eth_usd": ""
},
"paymaster": {
"//": "P4 verifying-paymaster gas sponsorship. address = deployed OpenMatrixVerifyingPaymaster; signer_key = the platform signing key (env/secret, never user funds); policy.allowed_actions gates which action types get sponsored (omit = allow all). Unset signer/address -> /api/v1/paymaster/sign returns 503.",
"address": "0x0E393e90af2DAb65e60318F110270f045B125880",
"signer_key": "",
"bundler_url": "",
"entry_point": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"account_factory": "0x62a31367C97A5fB3E36839fbB64268F3De4fC943",
"policy": { "allowed_actions": ["transfer", "swap"], "daily_cap_usd": 50 }
},
"schemas": {
"//": "EAS schema UIDs are chain-specific keccak256 SchemaRegistry hashes (bytes32), NOT easscan display numbers like '348'. Register per chain with scripts/register_eas_schemas.py and paste the resulting UIDs here. Empty/malformed values fail closed (no attestation against a placeholder). 'primary' overrides blockchain.eas_schema for the core schema.",
"primary": "0x42e29fbfef86deaa4f27a5e364f818ee736badfbc40904bd261b508308372d0a",
"identity": "0x620c47f46c463bca27a27a89604509546f225960c99912fd9f10615a38047e0a",
"payments": "0xa8fa684437236a3c2311d59f7d235a56b8a15da3f44611eac09b32b9451b0aa6",
"governance": "0x638d35f0b6687e1c4a63c94c3492018ecf9b900a55b86665608990649876a7e2",
"ip_royalties": "0xcf3008f2e97c30a84004075d40c13a4a1dad5f5c9069578736fe4375bb3b5c24",
"disputes": "0x7dd4ad3c7daf66a30655782c1eeca7125ca04a5b2bd0a5c00eeab8d7efa72f8a",
"nfts": "0xaff53453f10eb19c00f8367545a5480e772602bce25c7c9e8aad80af3b45ceb0",
"defi": "0xf4c2e511d79c687b47ca5bcad59efe9c0333035c7766a0441b6da26d0743e1ab",
"staking": "0x6ba6c00f8a6e8ef34ce70c16e40b9da8366dbdc8b4f40c73b8adadbc8fbd1ea7",
"insurance": "0xf44d5e620facacaad805e7d018c6abfc1ca05906894b434b0c890dd984435c9d",
"gaming": "0xf509a99804ed95cfb043b2305b3dd50872313bb878514cfd9e6ef95547a95185",
"supply_chain": "0x33c91fdb1046fea83f007d29b635cd5ba3e968c26b7f501fb883d3864d92b55c",
"crossborder": "0x31f5ff10cc9e05fc3c8e378728b7642a5fa2e23a64f9b88b347d9b877600359c",
"securities": "0x597c91e758a243c4bfedc04eb1ad6ef1d70f391f58108b473e08e1246310336e",
"tokenization": "0xe55b0b5aa2b007f820dea3fe465d500c307508ba35ea4eb165b12802a6fad0f9",
"agent_identity": "0x8605f9454822fb13c967d3059ea043b4ef9744a551e584110f565fbd1713cef9",
"ban_record": "0xcd0ff0f31e8133334e45da8f475d58b5ae72e8784a86ef0c7d7eea72c31364f0",
"rights_reversion": "0x343089ed74a2146847d9d58ca5ca095266b4db5ea005debc972553c12888c774",
"emergency_freeze": "0x1fa9a51e1ca6da6f83d7878f538d69e7c354e35a7bf924ab7a8003237e007009"
},
"paymaster_address": "YOUR_PAYMASTER_ADDRESS",
"paymaster_private_key": "YOUR_PAYMASTER_PRIVATE_KEY",
"platform_wallet": "YOUR_PLATFORM_WALLET_ADDRESS",
"demo_wallet_private_key": "YOUR_DEMO_WALLET_PRIVATE_KEY",
"demo_wallet_address": "YOUR_DEMO_WALLET_ADDRESS"
},
"notifications": {
"telegram": {
"enabled": false,
"bot_token": "YOUR_TELEGRAM_BOT_TOKEN",
"chat_id": "YOUR_TELEGRAM_CHAT_ID",
"owner_id": "YOUR_TELEGRAM_USER_ID"
},
"discord": {
"enabled": false,
"webhook_url": "YOUR_DISCORD_WEBHOOK_URL",
"username": "0pnMatrx"
},
"slack": {
"enabled": false,
"webhook_url": "YOUR_SLACK_WEBHOOK_URL"
},
"email": {
"enabled": false,
"smtp_host": "smtp.gmail.com",
"smtp_port": 587,
"smtp_user": "YOUR_SMTP_USER",
"smtp_pass": "YOUR_SMTP_APP_PASSWORD",
"from": "YOUR_SMTP_USER",
"to": "YOUR_NOTIFICATION_EMAIL",
"use_ssl": false
},
"sms": {
"enabled": false,
"account_sid": "YOUR_TWILIO_ACCOUNT_SID",
"auth_token": "YOUR_TWILIO_AUTH_TOKEN",
"from_number": "+15551234567",
"to_number": "+15559876543"
},
"whatsapp": {
"enabled": false,
"account_sid": "YOUR_TWILIO_ACCOUNT_SID",
"auth_token": "YOUR_TWILIO_AUTH_TOKEN",
"from_number": "+14155238886",
"to_number": "+15551234567"
},
"web_chat": {
"enabled": true
},
"ios_push": {
"enabled": false,
"auth_key_p8": "",
"key_id": "YOUR_APNS_KEY_ID",
"team_id": "YOUR_APPLE_TEAM_ID",
"bundle_id": "com.opnmatrx.mtrx",
"sandbox": false,
"device_tokens": []
},
"webhook": {
"enabled": false,
"url": "YOUR_WEBHOOK_URL",
"bearer_token": ""
}
},
"auth": {
"apple": {
"//": "Sign in with Apple (P1-8). bundle_id is REQUIRED for /api/v1/auth/apple to verify the identity token's audience; without it the route fails closed (503). team_id/key_id/private_key_p8 are ONLY needed for token revocation on account deletion — App Review requires working deletion once server accounts are live.",
"bundle_id": "com.opnmatrx.mtrx",
"team_id": "",
"key_id": "",
"private_key_p8": ""
}
},
"services": {
"agent_identity": {
"enabled": true,
"did_method": "did:ethr",
"registry_contract": "YOUR_AGENT_IDENTITY_REGISTRY_ADDRESS"
},
"attestation": {
"enabled": true,
"eas_contract": "0xA1207F3BBa224E2c9c3c6D5aF63D0eb1582Ce587",
"batch_size": 50,
"flush_interval": 60
},
"brand_rewards": {
"enabled": true,
"contract_address": "YOUR_BRAND_REWARDS_CONTRACT_ADDRESS",
"min_cohort_size": 100,
"zkp_verifier_address": "YOUR_ZKP_VERIFIER_ADDRESS"
},
"cashback": {
"enabled": true,
"contract_address": "YOUR_CASHBACK_CONTRACT_ADDRESS",
"annual_threshold": 10000,
"reward_rate": 0.01
},
"contract_conversion": {
"enabled": true,
"template_registry": "YOUR_CONTRACT_TEMPLATE_REGISTRY_ADDRESS"
},
"cross_border": {
"enabled": true,
"contract_address": "YOUR_CROSS_BORDER_CONTRACT_ADDRESS",
"supported_fiat": ["USD", "EUR", "GBP", "JPY", "CAD", "AUD", "CHF", "CNY", "INR", "BRL"],
"fx_oracle_address": "YOUR_FX_ORACLE_ADDRESS"
},
"dao_management": {
"enabled": true,
"factory_contract": "YOUR_DAO_FACTORY_ADDRESS",
"governor_contract": "YOUR_GOVERNOR_CONTRACT_ADDRESS"
},
"dashboard": {
"enabled": true,
"cache_ttl_seconds": 300,
"max_history_days": 90
},
"defi": {
"enabled": true,
"router_address": "YOUR_DEFI_ROUTER_ADDRESS",
"max_slippage_bps": 100
},
"dex": {
"enabled": true,
"router_address": "YOUR_DEX_ROUTER_ADDRESS",
"factory_address": "YOUR_DEX_FACTORY_ADDRESS",
"max_slippage_bps": 50
},
"did_identity": {
"enabled": true,
"resolver_url": "YOUR_DID_RESOLVER_URL",
"registry_address": "YOUR_DID_REGISTRY_ADDRESS"
},
"dispute_resolution": {
"enabled": true,
"contract_address": "YOUR_DISPUTE_RESOLUTION_CONTRACT_ADDRESS",
"base_stake": 0.01,
"min_juror_stake": 0.1,
"minority_slash_ratio": 0.1,
"appeal_window_hours": 72
},
"fundraising": {
"enabled": true,
"contract_address": "YOUR_FUNDRAISING_CONTRACT_ADDRESS",
"milestone_verifier_address": "YOUR_MILESTONE_VERIFIER_ADDRESS",
"refund_window_days": 30
},
"gaming": {
"enabled": true,
"contract_address": "YOUR_GAMING_CONTRACT_ADDRESS",
"platform_fee_rate": 0.05,
"required_approvals": 2,
"vrf_coordinator": "YOUR_VRF_COORDINATOR_ADDRESS"
},
"governance": {
"enabled": true,
"contract_address": "YOUR_GOVERNANCE_CONTRACT_ADDRESS",
"quorum_thresholds": {
"standard": 0.04,
"critical": 0.10,
"emergency": 0.20
},
"voting_period_blocks": 50400,
"timelock_delay_seconds": 172800
},
"insurance": {
"enabled": true,
"contract_address": "YOUR_INSURANCE_CONTRACT_ADDRESS",
"min_reserve_ratio": 1.5,
"claims_oracle_address": "YOUR_CLAIMS_ORACLE_ADDRESS"
},
"ip_royalties": {
"enabled": true,
"contract_address": "YOUR_IP_ROYALTIES_CONTRACT_ADDRESS",
"royalty_registry_address": "YOUR_ROYALTY_REGISTRY_ADDRESS"
},
"loyalty": {
"enabled": true,
"contract_address": "YOUR_LOYALTY_CONTRACT_ADDRESS",
"points_to_token_ratio": 100
},
"marketplace": {
"enabled": true,
"contract_address": "YOUR_MARKETPLACE_CONTRACT_ADDRESS",
"platform_fee_bps": 500,
"platform_wallet": "YOUR_PLATFORM_WALLET_ADDRESS"
},
"nft_services": {
"enabled": true,
"collection_factory_address": "YOUR_NFT_FACTORY_ADDRESS",
"metadata_base_url": "YOUR_NFT_METADATA_BASE_URL"
},
"oracle_gateway": {
"enabled": true,
"chainlink_feeds": {
"eth_usd": "YOUR_ETH_USD_FEED_ADDRESS",
"btc_usd": "YOUR_BTC_USD_FEED_ADDRESS",
"link_usd": "YOUR_LINK_USD_FEED_ADDRESS"
},
"vrf_coordinator": "YOUR_VRF_COORDINATOR_ADDRESS",
"vrf_key_hash": "YOUR_VRF_KEY_HASH",
"vrf_subscription_id": "YOUR_VRF_SUBSCRIPTION_ID",
"weather_api_key": "YOUR_WEATHER_API_KEY"
},
"privacy": {
"enabled": true,
"zkp_prover_url": "YOUR_ZKP_PROVER_URL",
"encryption_scheme": "aes-256-gcm"
},
"rwa_tokenization": {
"enabled": true,
"contract_address": "YOUR_RWA_TOKEN_CONTRACT_ADDRESS",
"custodian_address": "YOUR_CUSTODIAN_ADDRESS",
"appraisal_oracle": "YOUR_APPRAISAL_ORACLE_ADDRESS"
},
"securities_exchange": {
"enabled": true,
"contract_address": "YOUR_SECURITIES_EXCHANGE_ADDRESS",
"holding_period_days": 365,
"accredited_verifier_address": "YOUR_ACCREDITED_VERIFIER_ADDRESS"
},
"social": {
"enabled": true,
"proof_registry_address": "YOUR_SOCIAL_PROOF_REGISTRY_ADDRESS",
"feed": {
"enabled": true,
"max_events": 10000,
"trending_window_hours": 24
}
},
"stablecoin": {
"enabled": true,
"contract_address": "YOUR_STABLECOIN_CONTRACT_ADDRESS",
"rate_limits": {
"daily": 50000,
"weekly": 200000,
"monthly": 500000
},
"collateral_oracle": "YOUR_COLLATERAL_ORACLE_ADDRESS"
},
"staking": {
"enabled": true,
"contract_address": "YOUR_STAKING_CONTRACT_ADDRESS",
"commission_rate": 0.05,
"min_stake": 1.0,
"unbonding_period_days": 14
},
"subscriptions": {
"enabled": true,
"contract_address": "YOUR_SUBSCRIPTIONS_CONTRACT_ADDRESS",
"platform_fee_rate": 0.10,
"grace_period_hours": 48
},
"supply_chain": {
"enabled": true,
"contract_address": "YOUR_SUPPLY_CHAIN_CONTRACT_ADDRESS",
"iot_oracle_address": "YOUR_IOT_ORACLE_ADDRESS"
},
"x402_payments": {
"enabled": true,
"contract_address": "YOUR_X402_PAYMENTS_CONTRACT_ADDRESS",
"supported_tokens": ["USDC", "ETH"]
},
"restaking": {"enabled": false},
"mpc": {"enabled": false},
"tba": {"enabled": false},
"auctions": {"enabled": false},
"nft_lending": {"enabled": false},
"compute": {"enabled": false},
"storage": {"enabled": false},
"ccip": {"enabled": false},
"creator_platforms": {"enabled": false},
"social_protocols": {"enabled": false},
"advanced_governance": {"enabled": false},
"oracles_plus": {"enabled": false},
"kyc": {"enabled": false},
"payment_channels": {"enabled": false}
},
"protocol_referrals": {
"enabled": true,
"neosafe_address": "0x46fF491D7054A6F500026B3E81f358190f8d8Ec5"
},
"badges": {
"enabled": true,
"annual_renewal_usd": 99.00
},
"certification": {
"enabled": true
},
"security": {
"audit_on_conversion": true,
"audit_on_deploy": true,
"block_on_critical": true,
"block_on_high": false
},
"social": {
"twitter": {
"api_key": "YOUR_TWITTER_API_KEY",
"api_secret": "YOUR_TWITTER_API_SECRET",
"access_token": "YOUR_TWITTER_ACCESS_TOKEN",
"access_secret": "YOUR_TWITTER_ACCESS_SECRET"
},
"discord": {
"webhook_url": "YOUR_DISCORD_WEBHOOK_URL",
"announcements_webhook": "YOUR_DISCORD_ANNOUNCEMENTS_WEBHOOK"
}
}
}