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
26 changes: 5 additions & 21 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
description: 'One Wallet for all your assets.',
lastUpdated: true,
cleanUrls: true,
ignoreDeadLinks: true,
ignoreDeadLinks: false,
base: base,
markdown: {
math: true,
Expand Down Expand Up @@ -358,18 +358,10 @@ export default {
text: 'Litecoin',
link: '/developers/extension-litecoin',
},
{
text: 'NEAR',
link: '/developers/extension-near',
},
{
text: 'Solana',
link: '/developers/extension-solana',
},
{
text: 'Terra',
link: '/developers/extension-terra',
},
{
text: 'Thorchain',
link: '/developers/extension-thorchain',
Expand All @@ -393,10 +385,6 @@ export default {
text: 'Bitcoin',
link: '/developers/mobile-bitcoin',
},
{
text: 'Bitcoin Cash',
link: '/developers/mobile-bitcoin-cash',
},
{
text: 'Cardano',
link: '/developers/mobile-cardano',
Expand Down Expand Up @@ -585,6 +573,10 @@ export default {
text: 'BNB Beacon Chain (BNB)',
link: '/developers/bnb-beacon-chain',
},
{
text: 'Cardano (ADA)',
link: '/developers/cardano',
},
{
text: 'Dogecoin (DOGE)',
link: '/developers/dogecoin',
Expand All @@ -597,18 +589,10 @@ export default {
text: 'Maya Protocol (MAYA)',
link: '/developers/maya',
},
{
text: 'NEAR (NEAR)',
link: '/developers/near',
},
{
text: 'Solana (SOL)',
link: '/developers/solana',
},
{
text: 'Terra (LUNA)',
link: '/developers/terra',
},
{
text: 'Thorchain (RUNE)',
link: '/developers/thorchain',
Expand Down
5 changes: 5 additions & 0 deletions about/xdefi-technologies/how-to.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# How to tutorials

## Summary

## Introduction
2 changes: 1 addition & 1 deletion about/xdefi-technologies/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ The documentation will separate different subjects handled by Ctrl (fka XDEFI) t

## Ctrl Wallet

Ctrl Wallet is a multichain Wallet that allow users to interact with the [supported blockchains](./blockchains.md), manage their assets and [NFT's](./supported-nfts) and access dApps.
Ctrl Wallet is a multichain Wallet that allow users to interact with the [supported blockchains](./supported-blockchains.md), manage their assets and [NFT's](./supported-nfts) and access dApps.
7 changes: 0 additions & 7 deletions about/xdefi-technologies/native-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- [UTXO's](#utxo-s)
- [EVM's](#evm-s)
- [Cosmos chains](#cosmos-chains)
- [Near](#near)
- [Solana](#solana)

## UTXO's
Expand Down Expand Up @@ -67,12 +66,6 @@ You can request a Cosmos native integration by sending us an [email](mailto:inte

_(Note that native integration requiere an upfront payment to start implementing it)_

## Near

- Near Protocol (NEAR)

See more on [Building a Near dApp](/developers/near) with XDEFI documentation.

## Solana

- Solana (SOL)
Expand Down
5 changes: 5 additions & 0 deletions about/xdefi-technologies/products.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Products

## Summary

## Introduction
5 changes: 5 additions & 0 deletions about/xdefi-technologies/security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Security

## Summary

## Introduction
2 changes: 1 addition & 1 deletion about/xdefi-token/buy-xdefi.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- [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](/routing/widget) to implement it on any platform in few lines of code.
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
10 changes: 5 additions & 5 deletions components/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ export const chainsSupported = [
baseChain: "EVM",
exampleAddress: "0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5",
},
{
key: "cardano",
label: "Cardano",
exampleAddress: "addr1z84q0denmyep98ph3tmzwsmw0j7zau9ljmsqx6a4rvaau66j2c79gy9l76sdg0xwhd7r0c0kna0tycz4y5s6mlenh8pq777e2a",
},
{
key: "cosmos",
label: "Cosmos Hub",
Expand Down Expand Up @@ -123,11 +128,6 @@ export const chainsSupported = [
label: "Maya Protocol",
exampleAddress: "maya1800h9r7yuhme285agzt7uyntfyva9n42azpcwy",
},
{
key: "near",
label: "NEAR",
exampleAddress: "relay.tg",
},
{
key: "optimism",
label: "Optimism",
Expand Down
3 changes: 1 addition & 2 deletions developers/blockchains-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ Ctrl (fka XDEFI) is the largest multichain wallet that provides hundreds of bloc
- [BNB Beacon Chain (BNB)](./bnb-beacon-chain)
- [Bitcoin (BTC)](./bitcoin)
- [Bitcoin Cash (BCH)](./bitcoin-cash)
- [Cardano (ADA)](./cardano)
- [Cosmos (ATOM)](./cosmos)
- [Dogecoin (DOGE)](./dogecoin)
- [Litecoin (LTC)](./litecoin)
- [Maya Protocol (MAYA)](./maya)
- [NEAR Protocol (NEAR)](./near)
- [Solana (SOL)](./solana)
- [Terra (LUNA)](./terra)
- [THORChain (RUNE)](./thorchain)
- [Tron (TRX)](./tron)
- More coming ...
6 changes: 3 additions & 3 deletions developers/near.md → developers/cardano.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NEAR (NEAR)
# Cardano (ADA)

<!--@include: ./_xfi.md{,12}--> And `near` is the `chainId` for NEAR Protocol.
<!--@include: ./_xfi.md{,12}--> And `cardano` is the `chainId` for Cardano.

<div ref="refDetectWallet"/>

Expand All @@ -18,7 +18,7 @@ const refConnectWallet = ref()
onMounted(() => {
const rootDetectWallet = createRoot(refDetectWallet.value)
rootDetectWallet.render(createElement(DetectWallet, {
chainId: 'near',
chainId: 'cardano',
}, null))
})
</script>
21 changes: 8 additions & 13 deletions developers/extension-cardano.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ It injects a CIP-30 compatible provider in `window.cardano.ctrl` and follows the

- [CIP-30: Cardano dApp-Wallet Web Bridge documentation](https://cips.cardano.org/cip/CIP-30)

### Example dApp

- [Cardano Web3 example](https://github.com/XDeFi-tech/examples-dapps-sdk/tree/main/cardano)

### How to detect XDEFI's Cardano provider

As the official [CIP-30 guide](https://cips.cardano.org/cip/CIP-30) mentioned:
Expand All @@ -30,11 +26,11 @@ window.onload = async () => {

// You can get the balance using getBalance method
const balance = await api.getBalance();

// Get all used addresses
const usedAddresses = await api.getUsedAddresses();
console.log('Wallet connected successfully');

console.log("Wallet connected successfully");
}
};
```
Expand All @@ -57,21 +53,20 @@ You can use it with regular Cardano libraries such as cardano-serialization-lib.
// Check if Ctrl (fka XDEFI) is available
if (window.cardano && window.cardano.ctrl) {
const cardanoWallet = window.cardano.ctrl;

// Enable the wallet (request connection)
try {
const api = await cardanoWallet.enable();
console.log('Connected to Ctrl wallet');
console.log("Connected to Ctrl wallet");

// Now you can use the API methods
const balance = await api.getBalance();
const addresses = await api.getUsedAddresses();

} catch (error) {
console.error('Failed to connect:', error);
console.error("Failed to connect:", error);
}
} else {
console.log('Ctrl (fka XDEFI) is not installed');
console.log("Ctrl (fka XDEFI) is not installed");
}
```

Expand Down
4 changes: 0 additions & 4 deletions developers/extension-evms.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ Develop EVM based dApps
- [web3.js introduction](https://web3js.readthedocs.io/en/v1.3.4/getting-started.html)
- [ether.js introduction](https://docs.ethers.io/v5/getting-started/)

### Example dApp

- [web3 vue example](https://github.com/XDeFi-tech/examples-dapps-sdk/tree/main/ethereum/web3/web3-example-vue)

### Integrate Ethereum dApps with Ctrl (fka XDEFI)

#### `window.xfi.ethereum`
Expand Down
110 changes: 0 additions & 110 deletions developers/extension-near.md

This file was deleted.

3 changes: 0 additions & 3 deletions developers/extension-terra.md

This file was deleted.

4 changes: 2 additions & 2 deletions developers/extension-thorchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Develop Thorchain dApps

### Transfer request

- [Transfer request](/extension-detect-xdefi-providers#request-parameters-description)
<!-- - [Transfer request](/extension-detect-xdefi-providers#request-parameters-description) -->

```javascript
const { asset, from, recipient, amount, memo, gasLimit } = {
Expand Down Expand Up @@ -45,7 +45,7 @@ window.xfi.thorchain.request(

### Deposit request

- [Parameters description](./extension-detect-xdefi-providers#request-parameters-description)
<!-- - [Parameters description](./extension-detect-xdefi-providers#request-parameters-description) -->
​​

```javascript
Expand Down
2 changes: 0 additions & 2 deletions developers/extension-wallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ Ctrl Wallet injects into the window object to dapps multiple wallet providers to
- window.xfi.bitcoincash : [Bitcoin Cash provider](./extension-bitcoin-cash)
- window.xfi.dogecoin: [Dogecoin provider](./extension-dogecoin)
- window.xfi.litecoin : [Litecoin provider](./extension-litecoin)
- window.xfi.near : [NEAR provider](./extension-near)
- window.xfi.solana : [Solana provider](./extension-solana)
- window.xfi.terra : [Terra provider](./extension-terra)
- window.xfi.thorchain: [Thorchain provider](./extension-thorchain)
- window.xfi.tron: [Tron provider](./extension-tron)
- window.ethereum : [Ethereum provider](./extension-evms)
Expand Down
Loading