jaelis-node 1.3.0 → 1.3.1

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.
Files changed (2) hide show
  1. package/README.md +185 -82
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,65 +1,84 @@
1
- # @jaelis/node
1
+ # jaelis-node
2
2
 
3
- Official node software for the **JAELIS Blockchain** - run a full node, validator, or bootstrap node on the JAELIS network.
3
+ Official node software for the **JAELIS Blockchain** - the first unified multi-language smart contract platform with cross-chain settlement.
4
4
 
5
- [![npm version](https://badge.fury.io/js/@jaelis%2Fnode.svg)](https://www.npmjs.com/package/@jaelis/node)
5
+ [![npm version](https://badge.fury.io/js/jaelis-node.svg)](https://www.npmjs.com/package/jaelis-node)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
7
 
8
- ## Features
8
+ ## What is JAELIS?
9
9
 
10
- - **Full Node** - Sync and validate the entire JAELIS blockchain
11
- - **Validator Node** - Participate in PoEC consensus and earn rewards
12
- - **Bootstrap Node** - Help with peer discovery on the network
13
- - **Zero Gas Fees** - LODE-based computational metering
14
- - **Multi-VM Support** - EVM, Solana, WASM, Bitcoin, Move, TON
15
- - **AI-Native** - Built-in MCP server and x402 payment protocol
16
- - **LevelDB Storage** - Fast, persistent blockchain storage
10
+ JAELIS is a next-generation blockchain with a **Universal Virtual Machine** that natively executes smart contracts written in 6 different languages - all on the same chain, with direct cross-contract calls between them. No bridges. No wrapped tokens. No translation layers.
17
11
 
18
- ## Installation
12
+ **One chain. Six languages. Direct interoperability.**
19
13
 
20
- ### Global Installation (Recommended)
14
+ ## Universal VM - Core Innovation
21
15
 
22
- ```bash
23
- npm install -g @jaelis/node
24
- ```
16
+ The JAELIS Universal VM executes contracts from multiple ecosystems natively:
25
17
 
26
- ### Local Installation
18
+ | Language | Ecosystem | Status |
19
+ |----------|-----------|--------|
20
+ | **Solidity** | Ethereum, Polygon, Arbitrum, Base, etc. | Production |
21
+ | **Rust** | Solana, NEAR, Polkadot | Production |
22
+ | **Move** | Aptos, Sui, Movement | Production |
23
+ | **FunC** | TON (Telegram's 900M+ users) | Production |
24
+ | **Cairo** | StarkNet | Production |
25
+ | **Vyper** | Ethereum (Python-like) | Production |
27
26
 
28
- ```bash
29
- npm install @jaelis/node
30
- ```
27
+ ### Cross-Language Contract Calls
31
28
 
32
- ## Quick Start
29
+ A Solidity contract can call a Rust contract. A Move module can interact with FunC. All native, all on-chain:
33
30
 
34
- ### Start a Full Node
31
+ ```javascript
32
+ // Solidity contract calling a Rust program
33
+ await jaelis.crossContractCall({
34
+ from: solidityContract,
35
+ to: rustProgram,
36
+ method: 'process_payment',
37
+ args: [amount, recipient]
38
+ });
39
+ ```
35
40
 
36
- ```bash
37
- # Start on testnet (default)
38
- jaelis-node start
41
+ ## Cross-Chain Settlement (30+ Chains)
39
42
 
40
- # Start on testnet with custom ports
41
- jaelis-node start --rpc-port 8545 --p2p-port 30303
43
+ JAELIS nodes run light clients for 30+ external blockchains, enabling trustless state verification:
42
44
 
43
- # Start on mainnet (when available)
44
- jaelis-node start --network mainnet
45
- ```
45
+ - **EVM Chains**: Ethereum, Polygon, Arbitrum, Optimism, Base, BSC, Avalanche, Fantom
46
+ - **Non-EVM**: Solana, Cosmos, NEAR, Polkadot, Cardano, Algorand
47
+ - **Bitcoin L2**: Lightning, Liquid, Stacks
48
+ - **Emerging**: Aptos, Sui, TON, StarkNet, zkSync
46
49
 
47
- ### Check Node Status
50
+ Read external chain state directly in your JAELIS contracts - no oracles needed.
48
51
 
49
- ```bash
50
- jaelis-node status
51
- ```
52
+ ## Features
52
53
 
53
- ### View Connected Peers
54
+ - **Universal VM** - 6 languages, one chain, direct interop
55
+ - **Cross-Chain Settlement** - Read state from 30+ chains trustlessly
56
+ - **Zero Gas Fees** - LODE-based computational metering (users pay $0)
57
+ - **Multi-Chain Wallets** - Receive rewards to ANY chain address
58
+ - **No Staking Required** - JAELIS never holds your funds
59
+ - **AI-Native** - Built-in MCP server and x402 payment protocol
60
+ - **ERC-5792** - Atomic batch transactions
61
+ - **EIP-7702** - Account abstraction (EOA → Smart Account)
62
+ - **Address Safety** - Anti-phishing and poisoning protection
63
+ - **Real P2P** - libp2p networking (same as Ethereum 2.0, IPFS)
64
+ - **Lifetime Node Tracking** - Your contributions are recorded forever
65
+
66
+ ## Installation
54
67
 
55
68
  ```bash
56
- jaelis-node peers
69
+ npm install -g jaelis-node
57
70
  ```
58
71
 
59
- ### Display Node Info
72
+ ## Quick Start
60
73
 
61
74
  ```bash
62
- jaelis-node info
75
+ # Start a node (zero config - auto-connects to testnet)
76
+ jaelis-node start
77
+
78
+ # Start with your reward wallet (use ANY chain address!)
79
+ jaelis-node start --reward-recipient 0xYourEthAddress
80
+ jaelis-node start --reward-recipient 9WzDX...YourSolanaAddress
81
+ jaelis-node start --reward-recipient bc1q...YourBitcoinAddress
63
82
  ```
64
83
 
65
84
  ## Commands
@@ -67,11 +86,39 @@ jaelis-node info
67
86
  | Command | Description |
68
87
  |---------|-------------|
69
88
  | `start` | Start a full JAELIS node |
70
- | `validator` | Run as a validator node (PoEC) |
89
+ | `validator` | Run as a validator node (bonus rewards) |
71
90
  | `bootstrap` | Run as a bootstrap/seed node |
72
91
  | `status` | Check local node status |
73
92
  | `peers` | List connected peers |
74
- | `info` | Display node information |
93
+ | `info` | Display node and network information |
94
+
95
+ ## Wallet Commands
96
+
97
+ JAELIS supports **any chain address** for receiving rewards. No staking. No lockups. Your keys, your wallet.
98
+
99
+ ```bash
100
+ # Set your reward wallet (accepts ANY chain format)
101
+ jaelis-node wallet:set-recipient 0x742d35cc6634C0532925a3b844Bc454e4438f44e # EVM
102
+ jaelis-node wallet:set-recipient 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM # Solana
103
+ jaelis-node wallet:set-recipient bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh # Bitcoin
104
+ jaelis-node wallet:set-recipient EQDrLq-X6jKZNHAScgghh0h1iog3StK71zn8dcmrOj0n # TON
105
+
106
+ # List configured wallets
107
+ jaelis-node wallet:list
108
+
109
+ # Add additional wallets
110
+ jaelis-node wallet:add "trading" 0x456...
111
+
112
+ # View node identity
113
+ jaelis-node wallet:identity
114
+ ```
115
+
116
+ **Supported Address Formats:**
117
+ - EVM (Ethereum, Polygon, Arbitrum, Base, Optimism, etc.)
118
+ - Solana (base58)
119
+ - Bitcoin (Legacy: 1..., SegWit: 3..., Native SegWit: bc1...)
120
+ - TON (base64url)
121
+ - Move (Aptos/Sui: 0x + 64 hex chars)
75
122
 
76
123
  ## Start Options
77
124
 
@@ -79,64 +126,114 @@ jaelis-node info
79
126
  jaelis-node start [options]
80
127
 
81
128
  Options:
82
- -n, --network <network> Network: testnet or mainnet (default: testnet)
83
- -r, --rpc-port <port> RPC server port (default: 8545)
84
- -p, --p2p-port <port> P2P network port (default: 30303)
85
- -d, --data-dir <path> Data directory (default: ./jaelis-data)
86
- --rpc-host <host> RPC host (default: 0.0.0.0)
87
- --no-rpc Disable RPC server
88
- --sync-mode <mode> Sync mode: full, light, archive (default: full)
129
+ -n, --network <network> Network: testnet or mainnet (default: testnet)
130
+ -r, --rpc-port <port> RPC server port (default: 8545)
131
+ -p, --p2p-port <port> P2P network port (default: 30303)
132
+ -d, --data-dir <path> Data directory (default: ./jaelis-data)
133
+ --rpc-host <host> RPC host (default: 0.0.0.0)
134
+ --no-rpc Disable RPC server
135
+ --sync-mode <mode> Sync mode: full, light, archive (default: full)
136
+ --reward-recipient <address> Wallet address for node rewards (ANY chain!)
89
137
  ```
90
138
 
139
+ ## RPC Methods
140
+
141
+ Your node exposes standard JSON-RPC plus JAELIS-specific methods:
142
+
143
+ ### Universal VM Methods
144
+ | Method | Description |
145
+ |--------|-------------|
146
+ | `jaelis_getSupportedLanguages` | Returns: `['solidity', 'rust', 'move', 'func', 'cairo', 'vyper']` |
147
+ | `jaelis_deployContract` | Deploy contract in any supported language |
148
+ | `jaelis_executeContract` | Execute contract method |
149
+ | `jaelis_crossContractCall` | Call between contracts of different languages |
150
+
151
+ ### Cross-Chain Settlement Methods
152
+ | Method | Description |
153
+ |--------|-------------|
154
+ | `jaelis_crossChain_getChains` | List all 30+ registered chains |
155
+ | `jaelis_crossChain_getChainInfo` | Get chain metadata (name, RPC, block time) |
156
+ | `jaelis_crossChain_readState` | Read settled external chain state |
157
+ | `jaelis_crossChain_settleState` | Submit proof and settle state |
158
+ | `jaelis_crossChain_getStateDiff` | Compare state across chains |
159
+ | `jaelis_crossChain_getLightClientStatus` | Check light client sync status |
160
+
161
+ ### Wallet Standard Methods (ERC-5792, EIP-7702)
162
+ | Method | Description |
163
+ |--------|-------------|
164
+ | `jaelis_wallet_getCapabilities` | Get wallet capabilities |
165
+ | `jaelis_wallet_sendCalls` | Atomic batch transactions |
166
+ | `jaelis_wallet_getCallsStatus` | Check batch status |
167
+ | `jaelis_wallet_grantPermissions` | Grant session permissions |
168
+ | `jaelis_validateAddressSafety` | Anti-phishing check |
169
+ | `jaelis_checkDustAttacks` | Detect address poisoning |
170
+
171
+ ### Standard Ethereum-Compatible Methods
172
+ | Method | Description |
173
+ |--------|-------------|
174
+ | `eth_blockNumber` | Get latest block number |
175
+ | `eth_getBalance` | Get account balance |
176
+ | `eth_sendTransaction` | Send transaction |
177
+ | `eth_call` | Call contract (read-only) |
178
+ | `eth_getTransactionReceipt` | Get transaction receipt |
179
+
91
180
  ## Programmatic Usage
92
181
 
93
182
  ```javascript
94
- const { JaelisNode, BootstrapNode } = require('@jaelis/node');
183
+ const { JaelisNode, BootstrapNode } = require('jaelis-node');
95
184
 
96
- // Create and start a full node
185
+ // Create and start a node
97
186
  const node = new JaelisNode({
98
187
  network: 'testnet',
99
188
  rpcPort: 8545,
100
189
  p2pPort: 30303,
101
- dataDir: './my-node-data'
190
+ dataDir: './my-node-data',
191
+ rewardRecipient: '0xYourAddress' // Any chain address
102
192
  });
103
193
 
104
194
  await node.start();
105
195
 
106
196
  // Get node status
107
197
  const status = node.getStatus();
108
- console.log(status);
198
+ console.log('Chain ID:', status.chainId); // 4545 (testnet) or 4547 (mainnet)
199
+ console.log('Peers:', status.peerCount);
200
+ console.log('Block:', status.blockNumber);
109
201
 
110
202
  // Listen for events
111
203
  node.on('peer:connect', (peerCount) => {
112
- console.log(`Peers connected: ${peerCount}`);
204
+ console.log(`Connected peers: ${peerCount}`);
113
205
  });
114
206
 
115
- // Stop the node
116
- await node.stop();
117
- ```
118
-
119
- ### Bootstrap Node
120
-
121
- ```javascript
122
- const { BootstrapNode } = require('@jaelis/node');
123
-
124
- const bootstrap = new BootstrapNode({
125
- port: 30305,
126
- network: 'testnet'
207
+ node.on('block:new', (block) => {
208
+ console.log(`New block: ${block.number}`);
127
209
  });
128
210
 
129
- await bootstrap.start();
130
- console.log(`Bootstrap node running, ${bootstrap.getPeerCount()} peers`);
211
+ // Stop the node
212
+ await node.stop();
131
213
  ```
132
214
 
133
215
  ## Network Configuration
134
216
 
135
217
  | Network | Chain ID | RPC URL | Status |
136
218
  |---------|----------|---------|--------|
137
- | Testnet | 4545 | https://rpc.jaelis.io | Active |
219
+ | Testnet | 4545 | https://rpc.jaelis.io | **Active** |
138
220
  | Mainnet | 4547 | https://mainnet.jaelis.io | Coming Soon |
139
221
 
222
+ ## Node Rewards
223
+
224
+ JAELIS rewards node operators based on:
225
+ - **Uptime** - Keep your node running
226
+ - **Transactions Processed** - Help validate transactions
227
+ - **Bandwidth Provided** - Serve data to the network
228
+ - **Validator Mode** - Opt-in for bonus rewards
229
+
230
+ **No staking required.** JAELIS never holds your funds. Use any wallet from any chain.
231
+
232
+ ```bash
233
+ # Check your node's contribution stats
234
+ jaelis-node status
235
+ ```
236
+
140
237
  ## System Requirements
141
238
 
142
239
  | Requirement | Minimum | Recommended |
@@ -151,11 +248,11 @@ console.log(`Bootstrap node running, ${bootstrap.getPeerCount()} peers`);
151
248
 
152
249
  ```
153
250
  jaelis-data/
154
- ├── blockchain/ # Block and state data
155
- ├── blocks/ # Block storage (LevelDB)
156
- │ └── state/ # State trie (LevelDB)
251
+ ├── blockchain/ # Block and state data (LevelDB)
252
+ ├── node-registry/ # Node tracking and statistics
253
+ ├── wallet-config/ # Wallet configuration
157
254
  ├── peers/ # Peer database
158
- ├── keys/ # Node keys (if validator)
255
+ ├── keys/ # Node identity keys
159
256
  └── logs/ # Node logs
160
257
  ```
161
258
 
@@ -163,38 +260,44 @@ jaelis-data/
163
260
 
164
261
  | Variable | Description | Default |
165
262
  |----------|-------------|---------|
166
- | `JAELIS_CORE_PATH` | Path to JAELIS core | Auto-detected |
167
- | `JAELIS_DATA_DIR` | Data directory | `./jaelis-data` |
168
263
  | `JAELIS_NETWORK` | Network (testnet/mainnet) | `testnet` |
264
+ | `JAELIS_DATA_DIR` | Data directory | `./jaelis-data` |
169
265
  | `JAELIS_RPC_PORT` | RPC port | `8545` |
170
266
  | `JAELIS_P2P_PORT` | P2P port | `30303` |
267
+ | `JAELIS_REWARD_ADDRESS` | Reward wallet address | - |
171
268
 
172
269
  ## Docker
173
270
 
174
271
  ```bash
175
- # Pull the image
176
- docker pull jaelis/node
177
-
178
272
  # Run a full node
179
273
  docker run -d \
180
274
  --name jaelis-node \
181
275
  -p 8545:8545 \
182
276
  -p 30303:30303 \
183
277
  -v jaelis-data:/data \
278
+ -e JAELIS_REWARD_ADDRESS=0xYourAddress \
184
279
  jaelis/node start --network testnet
185
-
186
- # Check logs
187
- docker logs -f jaelis-node
188
280
  ```
189
281
 
190
- ## Contributing
282
+ ## Technical Highlights
283
+
284
+ ### Patent-Pending Technology
285
+ JAELIS implements three patent-pending systems:
286
+ 1. **Universal VM Architecture** - Multi-language contract execution
287
+ 2. **Cross-Chain Light Client Protocol** - Trustless external state verification
288
+ 3. **LODE Computation Model** - Zero-fee transaction processing
191
289
 
192
- Contributions are welcome! Please see our contributing guidelines.
290
+ ### Security
291
+ - Real libp2p P2P networking (same protocol as Ethereum 2.0, Filecoin, IPFS)
292
+ - Automatic peer discovery and DHT routing
293
+ - Built-in MEV protection
294
+ - Address poisoning detection
295
+ - No trusted setup for privacy features
193
296
 
194
297
  ## Links
195
298
 
299
+ - SDK: [npmjs.com/package/jaelis.js](https://www.npmjs.com/package/jaelis.js)
196
300
  - Website: [jaelis.io](https://jaelis.io)
197
- - SDK: [npm/jaelis.js](https://www.npmjs.com/package/jaelis.js)
198
301
  - Documentation: [docs.jaelis.io](https://docs.jaelis.io)
199
302
  - GitHub: [github.com/jaelis-foundation](https://github.com/jaelis-foundation)
200
303
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jaelis-node",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Official JAELIS Blockchain Node - Run a full node, validator, or bootstrap node with Cross-Chain Settlement (30+ chains!), ERC-5792 wallet capabilities, EIP-7702 account abstraction",
5
5
  "main": "lib/index.js",
6
6
  "bin": {