@exagent/agent 0.3.5 → 0.3.7
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/dist/chunk-7UGLJO6W.js +6392 -0
- package/dist/chunk-EHAOPCTJ.js +6406 -0
- package/dist/chunk-FGMXTW5I.js +6540 -0
- package/dist/chunk-IVA2SCSN.js +6756 -0
- package/dist/chunk-JHXCSGPC.js +6352 -0
- package/dist/chunk-V6O4UXVN.js +6345 -0
- package/dist/chunk-ZRAOPQQW.js +6406 -0
- package/dist/cli.js +40 -98
- package/dist/index.d.ts +24 -2
- package/dist/index.js +1 -1
- package/package.json +17 -14
- package/.turbo/turbo-build.log +0 -17
- package/src/bridge/across.ts +0 -240
- package/src/bridge/bridge-manager.ts +0 -87
- package/src/bridge/index.ts +0 -9
- package/src/bridge/types.ts +0 -77
- package/src/chains.ts +0 -105
- package/src/cli.ts +0 -244
- package/src/config.ts +0 -499
- package/src/diagnostics.ts +0 -335
- package/src/index.ts +0 -98
- package/src/llm/anthropic.ts +0 -63
- package/src/llm/base.ts +0 -264
- package/src/llm/deepseek.ts +0 -48
- package/src/llm/google.ts +0 -63
- package/src/llm/groq.ts +0 -48
- package/src/llm/index.ts +0 -42
- package/src/llm/mistral.ts +0 -48
- package/src/llm/ollama.ts +0 -52
- package/src/llm/openai.ts +0 -51
- package/src/llm/together.ts +0 -48
- package/src/llm-providers.ts +0 -100
- package/src/logger.ts +0 -137
- package/src/paper/executor.ts +0 -201
- package/src/paper/index.ts +0 -1
- package/src/perp/client.ts +0 -200
- package/src/perp/index.ts +0 -12
- package/src/perp/msgpack.ts +0 -272
- package/src/perp/orders.ts +0 -234
- package/src/perp/positions.ts +0 -126
- package/src/perp/signer.ts +0 -277
- package/src/perp/types.ts +0 -192
- package/src/perp/websocket.ts +0 -274
- package/src/position-tracker.ts +0 -243
- package/src/prediction/client.ts +0 -281
- package/src/prediction/index.ts +0 -3
- package/src/prediction/order-manager.ts +0 -297
- package/src/prediction/types.ts +0 -151
- package/src/relay.ts +0 -254
- package/src/runtime.ts +0 -1755
- package/src/scrub-secrets.ts +0 -39
- package/src/setup.ts +0 -384
- package/src/signal.ts +0 -212
- package/src/spot/aerodrome.ts +0 -158
- package/src/spot/client.ts +0 -138
- package/src/spot/index.ts +0 -11
- package/src/spot/swap-manager.ts +0 -219
- package/src/spot/types.ts +0 -203
- package/src/spot/uniswap.ts +0 -150
- package/src/store.ts +0 -50
- package/src/strategy/index.ts +0 -2
- package/src/strategy/loader.ts +0 -191
- package/src/strategy/templates.ts +0 -125
- package/src/trading/index.ts +0 -2
- package/src/trading/market.ts +0 -120
- package/src/trading/risk.ts +0 -107
- package/src/ui.ts +0 -75
- package/test-bridge-arb-to-base.mjs +0 -223
- package/test-funded-check.mjs +0 -79
- package/test-funded-phase19.mjs +0 -933
- package/test-hl-deposit-recover.mjs +0 -281
- package/test-hl-withdraw.mjs +0 -372
- package/test-live-signing.mjs +0 -374
- package/test-phase7.mjs +0 -416
- package/test-recover-arb.mjs +0 -206
- package/test-spot-bridge.mjs +0 -248
- package/test-wallet-setup.mjs +0 -126
- package/tsconfig.json +0 -8
package/test-funded-check.mjs
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check deployer and test wallet balances before funded tests.
|
|
3
|
-
* Read-only — no transactions.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { createPublicClient, http, formatEther, formatUnits } from 'viem';
|
|
7
|
-
import { base, arbitrum, polygon } from 'viem/chains';
|
|
8
|
-
|
|
9
|
-
const DEPLOYER = '0x1374Ee64A05011877660fD53A0D757B65Cbc73ce';
|
|
10
|
-
const TEST_WALLET_1 = '0xf5C450448E531162141e69c70F9D8cfA637604F4';
|
|
11
|
-
|
|
12
|
-
const ERC20_ABI = [
|
|
13
|
-
{ type: 'function', name: 'balanceOf', inputs: [{ name: 'account', type: 'address' }], outputs: [{ type: 'uint256' }], stateMutability: 'view' },
|
|
14
|
-
{ type: 'function', name: 'decimals', inputs: [], outputs: [{ type: 'uint8' }], stateMutability: 'view' },
|
|
15
|
-
{ type: 'function', name: 'symbol', inputs: [], outputs: [{ type: 'string' }], stateMutability: 'view' },
|
|
16
|
-
];
|
|
17
|
-
|
|
18
|
-
const TOKENS = {
|
|
19
|
-
base: {
|
|
20
|
-
USDC: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
|
|
21
|
-
USDbC: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA',
|
|
22
|
-
},
|
|
23
|
-
arbitrum: {
|
|
24
|
-
USDC: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
|
|
25
|
-
'USDC.e': '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8',
|
|
26
|
-
},
|
|
27
|
-
polygon: {
|
|
28
|
-
USDC: '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359',
|
|
29
|
-
'USDC.e': '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174',
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const clients = {
|
|
34
|
-
base: createPublicClient({ chain: base, transport: http('https://mainnet.base.org') }),
|
|
35
|
-
arbitrum: createPublicClient({ chain: arbitrum, transport: http('https://arb1.arbitrum.io/rpc') }),
|
|
36
|
-
polygon: createPublicClient({ chain: polygon, transport: http('https://polygon-bor-rpc.publicnode.com') }),
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
async function checkWallet(name, address) {
|
|
40
|
-
console.log(`\n─── ${name}: ${address} ───`);
|
|
41
|
-
|
|
42
|
-
for (const [chainName, client] of Object.entries(clients)) {
|
|
43
|
-
try {
|
|
44
|
-
const ethBal = await client.getBalance({ address });
|
|
45
|
-
const ethStr = formatEther(ethBal);
|
|
46
|
-
const nativeName = chainName === 'polygon' ? 'POL' : 'ETH';
|
|
47
|
-
|
|
48
|
-
const tokens = TOKENS[chainName];
|
|
49
|
-
let tokenLine = '';
|
|
50
|
-
for (const [symbol, tokenAddr] of Object.entries(tokens)) {
|
|
51
|
-
try {
|
|
52
|
-
const bal = await client.readContract({ address: tokenAddr, abi: ERC20_ABI, functionName: 'balanceOf', args: [address] });
|
|
53
|
-
const decimals = await client.readContract({ address: tokenAddr, abi: ERC20_ABI, functionName: 'decimals' });
|
|
54
|
-
const formatted = formatUnits(bal, decimals);
|
|
55
|
-
if (parseFloat(formatted) > 0) {
|
|
56
|
-
tokenLine += ` | ${formatted} ${symbol}`;
|
|
57
|
-
}
|
|
58
|
-
} catch {
|
|
59
|
-
// token might not exist on chain
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (parseFloat(ethStr) > 0 || tokenLine) {
|
|
64
|
-
console.log(` ${chainName}: ${ethStr} ${nativeName}${tokenLine}`);
|
|
65
|
-
}
|
|
66
|
-
} catch (err) {
|
|
67
|
-
console.log(` ${chainName}: RPC error (${err.shortMessage || err.message})`);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
console.log('Wallet Balance Check');
|
|
73
|
-
console.log('====================');
|
|
74
|
-
|
|
75
|
-
await checkWallet('Deployer', DEPLOYER);
|
|
76
|
-
await checkWallet('Test Wallet 1 (Phase 7)', TEST_WALLET_1);
|
|
77
|
-
|
|
78
|
-
console.log('\n====================');
|
|
79
|
-
console.log('Done. Use these balances to plan funded tests.');
|