Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
milonite committed Dec 1, 2024
1 parent 08e2717 commit 4122f3f
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 86 deletions.
1 change: 0 additions & 1 deletion pages/concepts/_meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"routingOptions": "Routing Strategy Options",
"projects": "Projects",
"behind-the-hood": "Behind The Hood",
"tokens": "Tokens",
"tokenized-nontokenized": "Tokenized & NonTokenized",
Expand Down
9 changes: 0 additions & 9 deletions pages/concepts/projects.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion pages/metadata-api/api-reference/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"overview": "Overview",
"tokens": "Tokens ",
"wallet": "Wallet",
"projects": "Projects",
"protocols": "Protocols",
"standards": "Standards",
"actions": "Actions"
}
45 changes: 0 additions & 45 deletions pages/metadata-api/api-reference/projects.mdx

This file was deleted.

56 changes: 56 additions & 0 deletions pages/metadata-api/api-reference/protocols.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
## GET /v1/protocols

Get all the Enso supported protocols and their metadata

#### Response:

```json
[{
"slug": "uniswap-v3",
"url": "https://uniswap.org/",
"logosUri": [
"https://icons.llama.fi/uniswap-v3.png"
],
"description": "",
"name": "Uniswap v3",
"chains": [
{
"id": 1,
"name": "mainnet"
},
{
"id": 137,
"name": "polygon"
},
{
"id": 42161,
"name": "arbitrum"
},
{
"id": 10,
"name": "optimism"
},
{
"id": 56,
"name": "binance"
},
{
"id": 8453,
"name": "base"
}
]
},
.......
]
```

Example

```bash copy
curl -X 'GET' \
'https://api.enso.finance/api/v1/protocols' \
-H 'accept: application/json' \
-H 'Authorization: Bearer 1e02632d-6feb-4a75-a157-documentation'
```

👉 Try it on [swagger](https://api.enso.finance/api#/metadata/ProtocolsController_findAll)
56 changes: 26 additions & 30 deletions pages/metadata-api/api-reference/tokens.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,44 +32,40 @@ curl -X 'GET' \

```json
{
"meta": {
"total": 5850,
"lastPage": 6,
"currentPage": 1,
"perPage": 1000,
"prev": null,
"next": 2
},
"data": [
{
"chainId": 1,
"address": "0x3Ed3B47Dd13EC9a98b44e6204A523E766B225811",
"type": "defi",
"protocolSlug": "aave-v2",
"underlyingTokens": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
]
},
{
"chainId": 1,
"address": "0x9ff58f4fFB29fA2266Ab25e75e2A8b3503311656",
"type": "defi",
"protocolSlug": "aave-v2",
"underlyingTokens": [
"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"
]
},
{
"chainId": 1,
"address": "0x030bA81f1c18d280636F32af80b9AAd02Cf0854e",
"decimals": 18,
"type": "defi",
"protocolSlug": "aave-v2",
"underlyingTokens": [
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
]
}. . .

{
"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"chainId": 1,
"type": "base",
"decimals": 18
},
{
"address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"chainId": 1,
"type": "defi",
"decimals": 18
}
],
"primaryAddress": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9",
"apy": 0.23924
}
],
"meta": {
"total": 1,
"lastPage": 1,
"currentPage": 1,
"perPage": 1000,
"prev": null,
"next": null
}
}
```


0 comments on commit 4122f3f

Please sign in to comment.