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

Add only asset same network mode documentation #78

Merged
merged 1 commit into from
Jan 17, 2025
Merged
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: 25 additions & 1 deletion docs/flows/crypto-onramp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ We recommend that you use `XRP` for testing purposes when integrating Topper sin
<Tabs>
<TabItem label="Not editable" value="not-editable" default>

When `recipientEditMode` is `not-editable`, the user can can't change `asset`, `network`, `address` or `tag` on the widget. This means that these fields are all required on the bootstrap token.
When `recipientEditMode` is `not-editable`, the user can't change `asset`, `network`, `address` or `tag` on the widget. This means that these fields are all required on the bootstrap token.

```js
{
Expand Down Expand Up @@ -164,6 +164,30 @@ When `recipientEditMode` is `all-editable`, the user can change `asset`, `networ
}
// highlight-end
}
```

</TabItem>

<TabItem label="Only asset same network" value="only-asset-same-network" default>

When `recipientEditMode` is `only-asset-same-network`, the user can't change `network`, `address` or `tag` on the widget. This means that these fields are all required on the bootstrap token.

```js
{
"iat": 1679538023,
"jti": "4b552af1-1592-42f8-bbc9-dac28e2b4000",
"sub": "b9fe022b-f436-49e1-bb89-6f2e8eabf336",
// highlight-start
"target": {
"address": "0xb794f5ea0ba39494ce839613fffba74279579268",
"allowedAssets": ["ETH", "RLUSD"],
"asset": "ETH",
"label": "My wallet",
"network": "ethereum",
"recipientEditMode": "only-asset-same-network"
}
// highlight-end
}
```

</TabItem>
Expand Down
Loading