@dhedge/trading-widget 3.3.0-alpha.0 → 3.3.0-alpha.2
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 +10 -0
- package/core-kit/abi/easy-swapper-v2.d.ts +4 -0
- package/core-kit/abi/pool-logic.d.ts +5 -692
- package/core-kit/hooks/pool/index.d.ts +1 -0
- package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +12 -691
- package/core-kit/hooks/pool/multicall/use-pools.dynamic.d.ts +413 -3161
- package/core-kit/hooks/pool/use-has-dhedge-vault-in-composition.d.ts +64 -0
- package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +4 -0
- package/core-kit/hooks/trading/use-is-transaction-loading.d.ts +2 -0
- package/core-kit/hooks/trading/withdraw-v2/init-step/index.d.ts +1 -1
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-fetch-init-withdraw-complex-asset-data.d.ts +2 -1
- package/core-kit/hooks/trading/withdraw-v2/init-step/{use-init-withdraw-transaction-arguments.d.ts → use-get-init-withdraw-transaction-arguments.d.ts} +2 -2
- package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-transaction.d.ts +5 -1
- package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +4 -0
- package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +4 -0
- package/core-kit/utils/transaction.d.ts +3 -3
- package/{index-a29190ba.js → index-1e6d4ed1.js} +8804 -9613
- package/index-d12c98d4.cjs +217 -0
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.js +89 -88
- package/package.json +1 -1
- package/{pyth-adapter-330946d6.js → pyth-adapter-962e1e47.js} +1 -1
- package/{pyth-adapter-a81f3e9c.cjs → pyth-adapter-ddee6a85.cjs} +1 -1
- package/style.css +1 -1
- package/trading-widget/components/deposit/button/trade-button/trade-button.hooks.d.ts +1 -0
- package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +1 -0
- package/trading-widget/components/widget/widget-buttons/approve-button/approve-button.hooks.d.ts +1 -0
- package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-deposit-swap-quote-button/reload-deposit-swap-quote-button.hooks.d.ts +0 -1
- package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-withdraw-swap-quote-button/reload-withdraw-swap-quote-button.hooks.d.ts +0 -1
- package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-overlay.hooks.d.ts +1 -0
- package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/vault-transaction-summary.d.ts +1 -7
- package/trading-widget/components/withdraw/complete-step/button/claim-button/claim-button.hooks.d.ts +1 -0
- package/trading-widget/components/withdraw/complete-step/button/swap-button/swap-button.hooks.d.ts +1 -0
- package/trading-widget/components/withdraw/init-step/button/init-withdraw-button/init-withdraw-button.hooks.d.ts +1 -0
- package/trading-widget/components/withdraw/init-step/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +1 -0
- package/trading-widget/providers/config-provider/config-provider.types.d.ts +1 -0
- package/trading-widget/providers/theme-provider/theme-provider.types.d.ts +5 -0
- package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +1 -0
- package/index-486e8b60.cjs +0 -217
- /package/core-kit/hooks/trading/withdraw-v2/init-step/{use-init-withdraw-aave-swap-data.d.ts → use-fetch-init-withdraw-aave-swap-data.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -129,6 +129,7 @@ UI configuration provider. Manages params to configure custom styling, component
|
|
|
129
129
|
> | `isAllAssetsWithdrawOptionDefault` | `boolean` | `false` | Sets "All Assets" withdraw option by default |
|
|
130
130
|
> | `chainConfig` | `Partial<Record<ChainId, { name: string; iconPath: string }>>` | `{}` | Sets map of chain `name` and `iconPath` |
|
|
131
131
|
> | `aaveOffchainWithdrawChainIds` | `ChainId[]` | `[]` | Offchain swap data will be used for Aave withdrawals for selected chains |
|
|
132
|
+
> | `aaveOffchainWithdrawMinValue` | `number` | `50` | Value in USD when off-chain Aave withdrawal is enabled |
|
|
132
133
|
|
|
133
134
|
##### actions
|
|
134
135
|
|
|
@@ -244,6 +245,14 @@ path: `global.style[name]`
|
|
|
244
245
|
|
|
245
246
|
##### component
|
|
246
247
|
|
|
248
|
+
###### notification
|
|
249
|
+
|
|
250
|
+
path: `component.notification[name]`
|
|
251
|
+
|
|
252
|
+
> | name | type | default value | description |
|
|
253
|
+
> | --------------- | ------ | ---------------------------------------------------- | --------------------- |
|
|
254
|
+
> | `color.colorBg` | string | `config?.global?.color?.colorBgSecondary ?? #2B313E` | Notification bg color |
|
|
255
|
+
|
|
247
256
|
###### popup
|
|
248
257
|
|
|
249
258
|
path: `component.popup[name]`
|
|
@@ -523,6 +532,7 @@ path: `component.meta[name]`
|
|
|
523
532
|
> | `showAll` | string | Show All | |
|
|
524
533
|
> | `hide` | string | Hide | |
|
|
525
534
|
> | `refreshSwapQuoteTooltip` | string | Refresh swap quote | |
|
|
535
|
+
> | `proceedWithNextStep` | string | Please proceed with the next step. | |
|
|
526
536
|
|
|
527
537
|
###### Source: `packages/trading-widget/src/trading-widget/providers/translation-provider/translation-provider.tsx`
|
|
528
538
|
|