<!--
## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):
## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.
## How to test
Unit tests, playground, etc.
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces a new `Bridge` module to the `thirdweb` SDK, enabling users to perform token buy and sell operations across chains, along with route discovery and transaction status checks.
### Detailed summary
- Added `Bridge` module for Universal Bridge operations.
- Implemented `Bridge.Buy` and `Bridge.Sell` for token transactions.
- Created `quote` and `prepare` functions for both buy and sell operations.
- Introduced `routes` function to discover available bridge routes.
- Added `status` function to check transaction statuses.
- Defined TypeScript types: `Route`, `Status`, `Quote`, `PreparedQuote`.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
133 lines
2.4 KiB
JSON
133 lines
2.4 KiB
JSON
{
|
|
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
|
|
"tagDefinitions": [
|
|
{
|
|
"tagName": "@example",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@contract",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@wallet",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@extension",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@rpc",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@transaction",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@connectWallet",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@theme",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@locale",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@component",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@walletConfig",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@walletConnection",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@walletUtils",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@buyCrypto",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@bridge",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@storage",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@auth",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@utils",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@chain",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@modules",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@social",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@client",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@nft",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@account",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@nebula",
|
|
"syntaxKind": "block"
|
|
}
|
|
],
|
|
"supportForTags": {
|
|
"@contract": true,
|
|
"@wallet": true,
|
|
"@extension": true,
|
|
"@rpc": true,
|
|
"@transaction": true,
|
|
"@connectWallet": true,
|
|
"@theme": true,
|
|
"@locale": true,
|
|
"@component": true,
|
|
"@walletConfig": true,
|
|
"@walletConnection": true,
|
|
"@walletUtils": true,
|
|
"@buyCrypto": true,
|
|
"@bridge": true,
|
|
"@storage": true,
|
|
"@auth": true,
|
|
"@utils": true,
|
|
"@chain": true,
|
|
"@modules": true,
|
|
"@social": true,
|
|
"@client": true,
|
|
"@nft": true,
|
|
"@account": true,
|
|
"@beta": true,
|
|
"@nebula": true
|
|
}
|
|
}
|