Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ tools.registerTool(
```
atoma-agents/
├── apps/
├── client/
├── web/
├── packages/
├── sui-agent/
Expand All @@ -166,7 +167,8 @@ atoma-agents/
├── agents/ # AI agent implementation
├── config/ # Configuration files
├── prompts/ # AI prompt templates
├── tools/ # Tool registry
├── protocols/ # Protocol implementation
├── tests/ # Test files
├── transactions/ # Transaction handling
└── utils/ # Utility functions
```
Expand Down
26 changes: 3 additions & 23 deletions packages/sui-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ curl -X POST http://localhost:2512/query \
```bash
curl -X POST http://localhost:2512/query \
-H "Content-Type: application/json" \
-d '{"prompt": "show me information for pool 0x123..."}'
-d '{"prompt": "show me information for pool 0x123... on Cetus Protocol"}'
```

### Get Top Pools

```bash
curl -X POST http://localhost:2512/query \
-H "Content-Type: application/json" \
-d '{"prompt": "show me the top 5 pools by APR"}'
-d '{"prompt": "show me the top 5 pools on Aftermath Finance by APR"}'
```

### Deposit into Top Pools
Expand All @@ -124,7 +124,7 @@ curl -X POST http://localhost:2512/query \
# Deposit into top APR pools
curl -X POST http://localhost:2512/query \
-H "Content-Type: application/json" \
-d '{"prompt": "deposit 1 SUI into each of the top 5 pools by APR with 1% slippage from my wallet 0x123..."}'
-d '{"prompt": "deposit 1 SUI into each of the top 5 pools on Aftermath Finance by APR with 1% slippage from my wallet 0x123..."}'

# Deposit into top TVL pools
curl -X POST http://localhost:2512/query \
Expand Down Expand Up @@ -241,26 +241,6 @@ The agent uses a standardized error response format:
}
```

## Development

### Running Tests

```bash
npm test
```

### Building

```bash
npm run build
```

### Development Server

```bash
npm run dev
```

## Dependencies

- aftermath-ts-sdk: Aftermath Finance SDK
Expand Down
18 changes: 0 additions & 18 deletions packages/sui-agent/src/@types/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,6 @@ export const COIN_ADDRESSES = {
WSB: '0x4db126eac4fa99207e98db61d968477021fdeae153de3b244bcfbdc468ef0722::wsb::WSB',
} as const;

// Information about a liquidity pool
export interface PoolInfo {
id: string; // Unique identifier for the pool
tokens: string[]; // Array of tokens in the pool
reserves: bigint[]; // Array of token reserves in the pool
fee: number; // Daily fees in USD
tvl: number; // Total Value Locked in USD
apr: number; // Annual Percentage Rate
}

// Structure for token balance information
export interface TokenBalance {
token: string; // Token address or identifier
Expand Down Expand Up @@ -205,11 +195,3 @@ export const NETWORK_CONFIG: NetworkConfigs = {
faucet: 'https://faucet.testnet.sui.io/gas',
},
};

interface Liquidation {
user: string;
liquidation_sender: string;
[key: string]: unknown; // Uses unknown instead of any
}

export type { Liquidation };
Loading