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
5 changes: 0 additions & 5 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,11 +652,6 @@ export default {
text: '🔹 Query and Mutation details',
link: '/routing/query-mutation-details',
},
{ text: '🔹 Swap example', link: '/routing/swap-example' },
{
text: '🔹 Swap Widget',
link: '/swap-widget/widget-integration',
},
],
},
{
Expand Down
3 changes: 0 additions & 3 deletions about/xdefi-token/buy-xdefi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

- [Ctrl Wallet](https://chrome.google.com/webstore/detail/xdefi-wallet/hmeobnfnfcmdkdcmlblgagmfpfboieaf)
- [Ctrl Web App](https://ctrl.xyz/)
::: info
You can implement our Routing API to easy swap any asset into **$XDEFI**. Follow [our documentation](/swap-widget/widget-integration) to implement it on any platform in few lines of code.
:::

## DEX

Expand Down
1 change: 0 additions & 1 deletion routing/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ _Comprehensive description of the routing service and its endpoints_
- [Endpoints](./endpoints)
- [Routing Graph QL API](./routing-graph-ql-api)
- [Query and Mutation details](./query-mutation-details)
- [Step by step Swap example](./swap-example)

## Introduction

Expand Down
29 changes: 14 additions & 15 deletions routing/query-mutation-details.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ _Deep-dive into our Graph QL schema_
In the [previous section](./routing-graph-ql-api), we saw an overview of queries and mutations publicly available.

Here we'll zoom into each one of them and present their inputs and outputs and also show some usage examples.
A step-by-step full example of how routing works is available in the [next section](./swap-example).

### chainsV2 & chainV2

Expand All @@ -20,8 +19,8 @@ const ENDPOINT = "https://routingapi.xdefiservices.com/";

const fetchChainsV2 = async () => {
fetch(ENDPOINT + "chains")
.then((response) => response.json())
.then((result) => {
.then(response => response.json())
.then(result => {
console.log(result);
});
};
Expand Down Expand Up @@ -101,8 +100,8 @@ const fetchTokenV2 = async () => {
variables: vars,
}),
})
.then((response) => response.json())
.then((result) => {
.then(response => response.json())
.then(result => {
console.log(result);
});
};
Expand Down Expand Up @@ -153,8 +152,8 @@ const fetchTokensV2 = async () => {
variables: vars,
}),
})
.then((response) => response.json())
.then((result) => {
.then(response => response.json())
.then(result => {
console.log(result);
});
};
Expand Down Expand Up @@ -360,8 +359,8 @@ const fetchAddressCheckV2 = async () => {
variables: vars,
}),
})
.then((response) => response.json())
.then((result) => {
.then(response => response.json())
.then(result => {
console.log(result);
});
};
Expand Down Expand Up @@ -425,8 +424,8 @@ const fetchReferrerSummary = async () => {
query: query,
}),
})
.then((response) => response.json())
.then((result) => {
.then(response => response.json())
.then(result => {
console.log(result);
});
};
Expand Down Expand Up @@ -483,8 +482,8 @@ const fetchDailyVolume = async () => {
variables: vars,
}),
})
.then((response) => response.json())
.then((result) => {
.then(response => response.json())
.then(result => {
console.log(result);
});
};
Expand Down Expand Up @@ -616,8 +615,8 @@ const fetchClaimFees = async () => {
query: query,
}),
})
.then((response) => response.json())
.then((result) => {
.then(response => response.json())
.then(result => {
console.log(result);
});
};
Expand Down
266 changes: 0 additions & 266 deletions routing/swap-example.md

This file was deleted.

Loading