Skip to content

Commit 5224c64

Browse files
committed
Updated implementation
1 parent 996de58 commit 5224c64

File tree

27 files changed

+1158
-187
lines changed

27 files changed

+1158
-187
lines changed

Cargo.lock

Lines changed: 183 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
22
exclude = []
3-
members = ["mantis-sdk", "mantis-cli", "auction-sdk"]
3+
members = ["mantis-sdk", "mantis-cli"]
44
resolver = "2"
55

66
[workspace.package]
@@ -32,6 +32,9 @@ anyhow = "1.0.96"
3232
base64 = "0.22.1"
3333
chrono = "0.4.40"
3434
clap = { version = "4.5.32", features = ["derive"] }
35+
dotenv = "0.15.0"
36+
env_logger = { version = "0.11.8" }
37+
log = { version = "0.4.27" }
3538
num = "0.4.3"
3639
rand = "0.8.0"
3740
tokio = { version = "1.43.0", features = ["full"] }

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,35 @@ cargo install --path=mantis-cli
99
To perform a swap from USDC to USDT on Solana with 5 min timeout:
1010

1111
```sh
12-
mantis-cli swap --src_chain=solana --dst_chain=solana --token_in=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v --token_out=Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB --amount_in=10000000 --amount_out=1 --timeout=300
12+
mantis-cli swap --src_chain=solana --dst_chain=solana --dst_user=4SsL3qQCbE4ff2PnZmAExLye85GETnsVZgouapAL7fGn --token_in=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v --token_out=Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB --amount_in=10000000 --amount_out=1 --timeout=300
13+
```
14+
15+
To perform a cross-chain swap from ETH on Ethereum to SOL on Solana with 10 min timeout:
16+
17+
```sh
18+
mantis-cli swap --src_chain=ethereum --dst_chain=solana --dst_user=4SsL3qQCbE4ff2PnZmAExLye85GETnsVZgouapAL7fGn --token_in=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE --token_out=11111111111111111111111111111111 --amount_in=10000000000000000 --amount_out=1 --timeout=600
19+
```
20+
21+
To cancel an existing intent on Solana:
22+
23+
```sh
24+
mantis-cli cancel --src_chain=solana --intent_id=123456789000
1325
```
1426

1527
# Mantis SDK 🦀
1628

1729
A Rust SDK library to interact with the Mantis smart contracts.
1830

19-
# Auction SDK 🦀
31+
The `mantis_sdk::ethereum` module abstracts the Ethereum smart contract interactions and provides various utility functions.
32+
33+
The `mantis_sdk::solana` module abstracts the Solana Anchor program interactions and provides various utility functions.
2034

21-
A Rust SDK library for solvers to integrate with the auction process.
35+
The `mantis_sdk::auction` module provides a way for solvers to integrate with the intent auction process by communicating with the auctioneer API.
2236

2337
# Mantis SDK 🔷
2438

2539
A TypeScript SDK library to interact with the Mantis smart contracts.
40+
41+
The `ethereum.ts` module abstracts the Ethereum smart contract interactions and provides various utility functions.
42+
43+
The `solana.ts` module abstracts the Solana Anchor program interactions and provides various utility functions.

auction-sdk/Cargo.toml

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)