Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add content for Staking API Section #29

Merged
merged 6 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 5 additions & 0 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,11 @@ function sidebarHome() {
link: "/indexers/indexers-api",
items: [],
},
{
text: "Staking API",
link: "/staking/staking-api",
items: [],
},
{
text: "Community",
collapsed: true,
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,18 @@ making a pull request.
## Directory Structure

- /.vitepress: Configuration files for the VitePress site.
- /public: Static assets like images, diagrams, and other media files.
- /assets: Images, diagrams, and other media files used in the documentation.
- /components: Custom React components integrated into the documentation.
- /about: A category for learning more about XDEFI Technologies and $XDEFI token.
- /campaigns: A category for Campaigns Service API
- /assets-service: A category for Assets Service API
- /developers: A category with tutorials and guides for deploying
dApps and connect with XDEFI Wallet.
- /routing: Technical reference materials for integrating our Routing aggregator API.
- /public: Static assets like images, diagrams, and other media files.
- /components: Custom React components integrated into the documentation.
- /assets-service: A category for Assets Service API
dApps and connect with XDEFI Wallet.
- /indexers: A category for Indexers API
- /gas-tank: A category for Gas Tank API
- /staking: A category for Staking API

## Feedback & Suggestions

Expand Down
2 changes: 1 addition & 1 deletion assets-services/assets-and-prices-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The Assets and Prices API is a free API that provides real-time and historical d

The API is available for a wide range of blockchains, including Ethereum, Binance Smart Chain, and Solana, and supports a variety of assets, such as tokens, coins, and NFTs.

The base URL for all API endpoints is: `https://gql-router.xdefiservices.com/graphql`.
The base URL for all API endpoints is: https://gql-router.xdefiservices.com/graphql

## Get Assets Tokens

Expand Down
2 changes: 1 addition & 1 deletion campaigns/campaigns-service-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Welcome to the XDEFI Campaigns Service API documentation. This API allows third-

### Base URL

The base URL for all API endpoints is: `https://compaign-ts.xdefi.services/api`
The base URL for all API endpoints is: https://compaign-ts.xdefi.services/api
HoangVD2 marked this conversation as resolved.
Show resolved Hide resolved

### Workflow

Expand Down
69 changes: 69 additions & 0 deletions components/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,72 @@ export const chainsSupported = [
exampleAddress: "TPtBq2DHJifyyn2suCu5Mj5xudfNtfxD4f",
},
];
export const cosmosSupportedAssets = [
{
key: "ATOM",
label: "ATOM",
},
{
key: "OSMO",
label: "OSMO",
},
{
key: "JUNO",
label: "JUNO",
},
{
key: "STARS",
label: "STARS",
},
{
key: "LUNA",
label: "LUNA",
},
{
key: "SEI",
label: "SEI",
},
{
key: "AXL",
label: "AXL",
},
{
key: "KAVA",
label: "KAVA",
},
{
key: "AKASH",
label: "AKASH",
},
{
key: "STRD",
label: "STRD",
},
{
key: "KUJI",
label: "KUJI",
},
{
key: "CRE",
label: "CRE",
},
];

export const otherSupportedAssets = [
{
key: "ETH",
label: "ETH",
},
{
key: "MATIC_ERC20",
label: "MATIC_ERC20",
},
{
key: "AVAX",
label: "AVAX",
},
{
key: "SOL",
label: "SOL",
},
];
Loading
Loading