Skip to content

Commit

Permalink
docs: update content for Mobile Wallet Integration section (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
HoangVD2 authored Mar 15, 2024
1 parent dcd9fa7 commit d0eeaeb
Show file tree
Hide file tree
Showing 25 changed files with 110 additions and 24 deletions.
5 changes: 3 additions & 2 deletions campaigns/campaigns-service-api.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
prev:
text: Libraries Integration
link: /developers/libraries-integration
text: Routing API
link: /routing/introduction
next: false
---

# Campaigns Service API
Expand Down
9 changes: 9 additions & 0 deletions developers/blockchains-integration.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
---
prev:
text: "Mobile Wallet Integration"
link: "./mobile-wallet"
next:
text: "Akash (AKT)"
link: "./akash"
---

# Blockchains Integration

### Native blockchains support
Expand Down
2 changes: 1 addition & 1 deletion developers/blocknative-xdefi-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ yarn add @web3-onboard/core @web3-onboard/injected-wallets ethers

Then initialize in your app:

```javascript
```js
import Onboard from "@web3-onboard/core";
import xdefiWalletModule from "@web3-onboard/xdefi";

Expand Down
2 changes: 1 addition & 1 deletion developers/cosmoskit-xdefi-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { wallets as xdefi } from "@cosmos-kit/xdefi";

### add to your provider

```javascript
```js
function MyCosmosApp({ Component, pageProps }: AppProps) {
return (
<ChainProvider
Expand Down
6 changes: 0 additions & 6 deletions developers/extension-cosmos.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
---
next:
text: "Mobile Wallet Integration"
link: "/developers/mobile-wallet"
---

# Extension Wallet Cosmos Integration

Develop Cosmos based chains dApps
Expand Down
3 changes: 3 additions & 0 deletions developers/extension-wallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
prev:
text: "Developers"
link: "/developers/introduction"
next:
text: "Detect XDEFI Providers"
link: "./extension-detect-xdefi-providers"
---

# Extension Wallet Integration
Expand Down
8 changes: 8 additions & 0 deletions developers/libraries-integration.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
prev:
text: "Mobile Wallet Integration"
link: "./mobile-wallet"
next:
text: "BlockNative"
link: "./blocknative-xdefi-integration"
---
# Libraries Integration

XDEFI Wallet is also integrated in a large panel of libraries to make it accessible to any developer's needs.
Expand Down
4 changes: 4 additions & 0 deletions developers/mobile-binance.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Binance Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
4 changes: 4 additions & 0 deletions developers/mobile-bitcoin-cash.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Bitcoin Cash Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
4 changes: 4 additions & 0 deletions developers/mobile-bitcoin.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Bitcoin Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
4 changes: 4 additions & 0 deletions developers/mobile-cosmos.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Cosmos Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
4 changes: 4 additions & 0 deletions developers/mobile-dogecoin.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Dogecoin Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
4 changes: 4 additions & 0 deletions developers/mobile-ethereum.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Ethereum Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
4 changes: 4 additions & 0 deletions developers/mobile-litecoin.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Litecoin Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
4 changes: 4 additions & 0 deletions developers/mobile-near.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Near Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
4 changes: 4 additions & 0 deletions developers/mobile-optimism.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Optimism Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
4 changes: 4 additions & 0 deletions developers/mobile-polygon.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Polygon Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
4 changes: 4 additions & 0 deletions developers/mobile-solana.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Solana Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
4 changes: 4 additions & 0 deletions developers/mobile-terra.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Terra Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
4 changes: 4 additions & 0 deletions developers/mobile-testnets.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Testnets Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
4 changes: 4 additions & 0 deletions developers/mobile-thorchain.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Thorchain Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
3 changes: 3 additions & 0 deletions developers/mobile-wallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
prev:
text: "Extension Wallet Integration"
link: "/developers/extension-wallet"
next:
text: "Binance"
link: "./mobile-binance"
---

# Mobile Wallet Integration
Expand Down
4 changes: 4 additions & 0 deletions developers/mobile-zetachain.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Mobile Wallet Zetachain Integration

<h3 align="center">
No mobile wallet integration available yet! It will be updated soon.
</h3>
28 changes: 14 additions & 14 deletions developers/solana-adapter-xdefi-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ npm install @solana/wallet-adapter-xdefi@latest

Once installed, you can add XDEFI Wallet by making adding this part of code:

```js:line-numbers {0}
```js
import { XDEFIWalletAdapter } from `@solana/wallet-adapter-xdefi`;
import { /* ... other adapters ... */ } from `@solana/wallet-adapter-wallets`;

const wallets = useMemo(
() => [
new XDEFIWalletAdapter(),
// ... other adapters ...
],
[]
() => [
new XDEFIWalletAdapter(),
// ... other adapters ...
],
[]
);

<WalletProvider autoConnect wallets={wallets}>
Expand All @@ -41,18 +41,18 @@ npm install @solana/wallet-adapter-wallets@latest

Once installed, you can add XDEFI Wallet by making 2 changes:

```js:line-numbers {0}
```js
import {
XDEFIWalletAdapter, // [!code ++]
/* ... other adapters ... */
XDEFIWalletAdapter, // [!code ++]
/* ... other adapters ... */
} from `@solana/wallet-adapter-wallets`;

const wallets = useMemo(
() => [
new XDEFIWalletAdapter(), // [!code ++]
// ... other adapters ...
],
[]
() => [
new XDEFIWalletAdapter(), // [!code ++]
// ... other adapters ...
],
[]
);

<WalletProvider autoConnect wallets={wallets}>
Expand Down
8 changes: 8 additions & 0 deletions routing/introduction.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
prev:
text: "XDEFI Wallet Integration"
link: "/developers/xdefi-wallet-integration"
next:
text: "Endpoints"
link: "./endpoints"
---
# Routing API

_Comprehensive description of the routing service and its endpoints_
Expand Down

0 comments on commit d0eeaeb

Please sign in to comment.