Skip to content

Commit c0c2361

Browse files
committed
docs: add sample intent request and response files
Added 'intent-request.json' and 'intent-response.json' to document the expected order payload and output simulation formats.
1 parent d905640 commit c0c2361

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

intent-request.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"buyAmount": "1049892070",
3+
"buyToken": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
4+
"class": "limit",
5+
"feeAmount": "0",
6+
"kind": "sell",
7+
"partiallyFillable": false,
8+
"sellAmount": "279000000000000000000",
9+
"sellToken": "0x767fe9edc9e0df98e07454847909b5e959d7ca0e",
10+
"uid": "0xfc144a5afe55c3d1184ffd48c2fd5613d19f7b7c96f32f0dc75e0b601680233f02153f461c28ac0429075e3515100afdd0f2fd1269cfcbe3",
11+
"validTo": "1775225827"
12+
}

intent-response.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[
2+
{
3+
"amountIn": "279000000000000000000",
4+
"amountOut": "514806545273921627",
5+
"percentage": "10000",
6+
"poolAddress": "0x6a091a3406e0073c3cd6340122143009adac0eda",
7+
"poolName": "sushiswap_v2::ILV/WETH",
8+
"slippage": "9"
9+
},
10+
{
11+
"amountIn": "25740327263696081",
12+
"amountOut": "52663467",
13+
"percentage": "499",
14+
"poolAddress": "0x1445f32d1a74872ba41f3d8cf4022e9996120b31",
15+
"poolName": "pancakeswap_v3::USDC/WETH",
16+
"slippage": "2"
17+
},
18+
{
19+
"amountIn": "25740327263696081",
20+
"amountOut": "52663367",
21+
"percentage": "499",
22+
"poolAddress": "0x4f88f7c99022eace4740c6898f59ce6a2e798a1e64ce54589720b7153eb224a7",
23+
"poolName": "uniswap_v4::USDC/WETH",
24+
"slippage": "3"
25+
},
26+
{
27+
"amountIn": "463325890746529464",
28+
"amountOut": "948091615",
29+
"percentage": "9000",
30+
"poolAddress": "0xe0554a476a092703abdb3ef35c80e0d76d32939f",
31+
"poolName": "uniswap_v3::USDC/WETH",
32+
"slippage": "2"
33+
}
34+
]
35+
}
36+
],
37+
"trades": [
38+
{
39+
"executedAmount": "279000000000000000000",
40+
"fee": "0",
41+
"kind": "fulfillment",
42+
"order": "0xfc144a5afe55c3d1184ffd48c2fd5613d19f7b7c96f32f0dc75e0b601680233f02153f461c28ac0429075e3515100afdd0f2fd1269cfcbe3"
43+
}
44+
]

0 commit comments

Comments
 (0)