jaelis-node 1.5.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -0
- package/bin/jaelis-node.js +3 -3
- package/config/default.json +1 -3
- package/config/testnet.json +1 -3
- package/lib/JAELIS-VM/lib/unified/cross-chain-deploy.js +1678 -0
- package/lib/JAELIS-VM/lib/unified/index.js +79 -1
- package/lib/index.js +779 -37
- package/lib/settlement-server.js +999 -0
- package/package.json +12 -11
package/README.md
CHANGED
|
@@ -167,6 +167,54 @@ Options:
|
|
|
167
167
|
--reward-recipient <address> Wallet address for node rewards (ANY chain!)
|
|
168
168
|
```
|
|
169
169
|
|
|
170
|
+
## Block Sync & Node Status
|
|
171
|
+
|
|
172
|
+
Your node automatically syncs with the JAELIS network:
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
# Check sync status
|
|
176
|
+
curl -X POST http://localhost:8545 \
|
|
177
|
+
-H "Content-Type: application/json" \
|
|
178
|
+
-d '{"jsonrpc":"2.0","method":"jaelis_syncing","params":[],"id":1}'
|
|
179
|
+
|
|
180
|
+
# Response when syncing:
|
|
181
|
+
{
|
|
182
|
+
"currentBlock": "0x1a4",
|
|
183
|
+
"highestBlock": "0x2f8",
|
|
184
|
+
"syncedBlocks": 420,
|
|
185
|
+
"remainingBlocks": 340,
|
|
186
|
+
"percentComplete": "55.26%"
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
# Response when fully synced:
|
|
190
|
+
false
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Node Registry & Lifetime Tracking
|
|
194
|
+
|
|
195
|
+
When your node connects, it registers with the JAELIS network. Your contributions are tracked **forever** - even across restarts:
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
# See all connected nodes (run on main RPC)
|
|
199
|
+
curl -X POST https://rpc.jaelis.io \
|
|
200
|
+
-H "Content-Type: application/json" \
|
|
201
|
+
-d '{"jsonrpc":"2.0","method":"jaelis_node_getNodes","params":[],"id":1}'
|
|
202
|
+
|
|
203
|
+
# Get network-wide node stats
|
|
204
|
+
curl -X POST https://rpc.jaelis.io \
|
|
205
|
+
-H "Content-Type: application/json" \
|
|
206
|
+
-d '{"jsonrpc":"2.0","method":"jaelis_node_getStats","params":[],"id":1}'
|
|
207
|
+
|
|
208
|
+
# Response:
|
|
209
|
+
{
|
|
210
|
+
"lifetimeNodes": 142, # All nodes that EVER connected
|
|
211
|
+
"activeNodes": 23, # Currently online
|
|
212
|
+
"validators": 8, # Opted-in validators
|
|
213
|
+
"totalUptime": "45d 12h", # Cumulative network uptime
|
|
214
|
+
"byAddressType": { "evm": 89, "solana": 31, "bitcoin": 22 }
|
|
215
|
+
}
|
|
216
|
+
```
|
|
217
|
+
|
|
170
218
|
## RPC Methods
|
|
171
219
|
|
|
172
220
|
Your node exposes standard JSON-RPC plus JAELIS-specific methods:
|
|
@@ -392,6 +440,22 @@ JAELIS implements three patent-pending systems:
|
|
|
392
440
|
- Address poisoning detection
|
|
393
441
|
- No trusted setup for privacy features
|
|
394
442
|
|
|
443
|
+
## AI Integration (MCP)
|
|
444
|
+
|
|
445
|
+
JAELIS is AI-native. Claude Desktop users can interact with the blockchain through MCP (Model Context Protocol):
|
|
446
|
+
|
|
447
|
+
```json
|
|
448
|
+
{
|
|
449
|
+
"mcpServers": {
|
|
450
|
+
"jaelis": {
|
|
451
|
+
"url": "https://mcp.jaelis.io/sse"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
Add this to your Claude Desktop config and get 274+ JAELIS tools automatically - create wallets, send transactions, deploy contracts, query balances, and more.
|
|
458
|
+
|
|
395
459
|
## Links
|
|
396
460
|
|
|
397
461
|
- SDK: [npmjs.com/package/jaelis.js](https://www.npmjs.com/package/jaelis.js)
|
package/bin/jaelis-node.js
CHANGED
|
@@ -42,10 +42,10 @@ const NETWORKS = {
|
|
|
42
42
|
name: 'JAELIS Testnet',
|
|
43
43
|
symbol: 'tJAELIS',
|
|
44
44
|
rpcUrl: 'https://rpc.jaelis.io',
|
|
45
|
+
// Bootstrap via DNS - rpc.jaelis.io resolves to 73.116.51.60
|
|
46
|
+
// No peer ID needed - learned during libp2p handshake
|
|
45
47
|
bootstrapNodes: [
|
|
46
|
-
'/dns4/rpc.jaelis.io/tcp/
|
|
47
|
-
'/dns4/rpc.jaelis.io/tcp/30306/p2p/QmBootstrap2',
|
|
48
|
-
'/dns4/rpc.jaelis.io/tcp/30307/p2p/QmBootstrap3'
|
|
48
|
+
'/dns4/rpc.jaelis.io/tcp/30303'
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
mainnet: {
|
package/config/default.json
CHANGED
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
"name": "testnet",
|
|
9
9
|
"chainId": 4545,
|
|
10
10
|
"bootstrapNodes": [
|
|
11
|
-
"/dns4/rpc.jaelis.io/tcp/
|
|
12
|
-
"/dns4/rpc.jaelis.io/tcp/30306/p2p/QmBootstrap2",
|
|
13
|
-
"/dns4/rpc.jaelis.io/tcp/30307/p2p/QmBootstrap3"
|
|
11
|
+
"/dns4/rpc.jaelis.io/tcp/30303"
|
|
14
12
|
]
|
|
15
13
|
},
|
|
16
14
|
"rpc": {
|
package/config/testnet.json
CHANGED
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
"https://rpc.jaelis.io"
|
|
9
9
|
],
|
|
10
10
|
"bootstrapNodes": [
|
|
11
|
-
"/dns4/rpc.jaelis.io/tcp/
|
|
12
|
-
"/dns4/rpc.jaelis.io/tcp/30306/p2p/QmBootstrap2",
|
|
13
|
-
"/dns4/rpc.jaelis.io/tcp/30307/p2p/QmBootstrap3"
|
|
11
|
+
"/dns4/rpc.jaelis.io/tcp/30303"
|
|
14
12
|
],
|
|
15
13
|
"genesis": {
|
|
16
14
|
"timestamp": 1731398400000,
|