@sodax/dapp-kit 1.0.0-rc.4 → 1.0.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -289,40 +289,40 @@ function BridgeComponent() {
|
|
|
289
289
|
|
|
290
290
|
### Components
|
|
291
291
|
|
|
292
|
-
- [`SodaxProvider`](
|
|
292
|
+
- [`SodaxProvider`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/providers/SodaxProvider.tsx) - Main provider component for Sodax ecosystem integration
|
|
293
293
|
|
|
294
294
|
### Hooks
|
|
295
295
|
|
|
296
296
|
#### Money Market Hooks
|
|
297
|
-
- [`useBorrow()`](
|
|
298
|
-
- [`useRepay()`](
|
|
299
|
-
- [`useSupply()`](
|
|
300
|
-
- [`useWithdraw()`](
|
|
301
|
-
- [`useUserReservesData()`](
|
|
302
|
-
- [`useReservesData()`](
|
|
303
|
-
- [`useMMAllowance()`](
|
|
304
|
-
- [`useMMApprove()`](
|
|
305
|
-
- [`useAToken()`](
|
|
297
|
+
- [`useBorrow()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/mm/useBorrow.ts) - Borrow tokens from the money market
|
|
298
|
+
- [`useRepay()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/mm/useRepay.ts) - Repay borrowed tokens
|
|
299
|
+
- [`useSupply()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/mm/useSupply.ts) - Supply tokens to the money market
|
|
300
|
+
- [`useWithdraw()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/mm/useWithdraw.ts) - Withdraw supplied tokens
|
|
301
|
+
- [`useUserReservesData()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/mm/useUserReservesData.ts) - Get user's reserves data(supplied asset and debt)
|
|
302
|
+
- [`useReservesData()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/mm/useReservesData.ts) - Get reserves data
|
|
303
|
+
- [`useMMAllowance()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/mm/useMMAllowance.ts) - Check token allowance for a specific amount
|
|
304
|
+
- [`useMMApprove()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/mm/useMMApprove.ts) - Approve token spending
|
|
305
|
+
- [`useAToken()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/mm/useAToken.ts) - Fetch aToken token data
|
|
306
306
|
|
|
307
307
|
#### Swap Hooks
|
|
308
|
-
- [`useQuote()`](
|
|
309
|
-
- [`useSwap()`](
|
|
310
|
-
- [`useStatus()`](
|
|
311
|
-
- [`useSwapAllowance()`](
|
|
312
|
-
- [`useSwapApprove()`](
|
|
313
|
-
- [`useCancelSwap()`](
|
|
308
|
+
- [`useQuote()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/swap/useQuote.ts) - Get quote for an intent order
|
|
309
|
+
- [`useSwap()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/swap/useSwap.ts) - Create and submit an intent order
|
|
310
|
+
- [`useStatus()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/swap/useStatus.ts) - Get status of an intent order
|
|
311
|
+
- [`useSwapAllowance()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/swap/useSwapAllowance.ts) - Check token allowance for an intent order
|
|
312
|
+
- [`useSwapApprove()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/swap/useSwapApprove.ts) - Approve token spending
|
|
313
|
+
- [`useCancelSwap()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/swap/useCancelSwap.ts) - Cancel a swap intent order
|
|
314
314
|
|
|
315
315
|
#### Shared Hooks
|
|
316
|
-
- [`useSodaxContext()`](
|
|
317
|
-
- [`useEstimateGas()`](
|
|
318
|
-
- [`useDeriveUserWalletAddress()`](
|
|
316
|
+
- [`useSodaxContext()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/shared/useSodaxContext.ts) - Access Sodax context and configuration
|
|
317
|
+
- [`useEstimateGas()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/shared/useEstimateGas.ts) - Estimate gas costs for transactions
|
|
318
|
+
- [`useDeriveUserWalletAddress()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/shared/useDeriveUserWalletAddress.ts) - Derive user wallet address for hub abstraction
|
|
319
319
|
|
|
320
320
|
#### Bridge Hooks
|
|
321
|
-
- [`useBridge()`](
|
|
322
|
-
- [`useBridgeAllowance()`](
|
|
323
|
-
- [`useBridgeApprove()`](
|
|
324
|
-
- [`useGetBridgeableAmount()`](
|
|
325
|
-
- [`useGetBridgeableTokens()`](
|
|
321
|
+
- [`useBridge()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/bridge/useBridge.ts) - Execute bridge transactions to transfer tokens between chains
|
|
322
|
+
- [`useBridgeAllowance()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/bridge/useBridgeAllowance.ts) - Check token allowance for bridge operations
|
|
323
|
+
- [`useBridgeApprove()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/bridge/useBridgeApprove.ts) - Approve token spending for bridge actions
|
|
324
|
+
- [`useGetBridgeableAmount()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/bridge/useGetBridgeableAmount.ts) - Get maximum amount available to be bridged
|
|
325
|
+
- [`useGetBridgeableTokens()`](https://github.com/icon-project/sodax-frontend/tree/main/packages/dapp-kit/src/hooks/bridge/useGetBridgeableTokens.ts) - Get available destination tokens for bridging
|
|
326
326
|
|
|
327
327
|
## Contributing
|
|
328
328
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sodax/dapp-kit",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.6",
|
|
5
5
|
"description": "dapp-kit of New World",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"viem": "2.29.2",
|
|
19
|
-
"@sodax/sdk": "1.0.0-rc.
|
|
20
|
-
"@sodax/types": "1.0.0-rc.
|
|
19
|
+
"@sodax/sdk": "1.0.0-rc.6",
|
|
20
|
+
"@sodax/types": "1.0.0-rc.6"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/react": "18.3.1",
|