@dhedge/trading-widget 3.3.0-alpha.0 → 3.3.0-alpha.1

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.
Files changed (39) hide show
  1. package/README.md +9 -0
  2. package/core-kit/abi/easy-swapper-v2.d.ts +4 -0
  3. package/core-kit/abi/pool-logic.d.ts +5 -692
  4. package/core-kit/hooks/pool/index.d.ts +1 -0
  5. package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +12 -691
  6. package/core-kit/hooks/pool/multicall/use-pools.dynamic.d.ts +413 -3161
  7. package/core-kit/hooks/pool/use-has-dhedge-vault-in-composition.d.ts +64 -0
  8. package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +4 -0
  9. package/core-kit/hooks/trading/use-is-transaction-loading.d.ts +2 -0
  10. package/core-kit/hooks/trading/withdraw-v2/init-step/index.d.ts +1 -1
  11. 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
  12. package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-transaction.d.ts +5 -1
  13. package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +4 -0
  14. package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +4 -0
  15. package/core-kit/utils/transaction.d.ts +3 -3
  16. package/{index-a29190ba.js → index-5ba43d21.js} +8032 -8852
  17. package/index-addee486.cjs +217 -0
  18. package/index.cjs +1 -1
  19. package/index.d.ts +1 -1
  20. package/index.js +89 -88
  21. package/package.json +1 -1
  22. package/{pyth-adapter-a81f3e9c.cjs → pyth-adapter-557e7325.cjs} +1 -1
  23. package/{pyth-adapter-330946d6.js → pyth-adapter-ae35e010.js} +1 -1
  24. package/style.css +1 -1
  25. package/trading-widget/components/deposit/button/trade-button/trade-button.hooks.d.ts +1 -0
  26. package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +1 -0
  27. package/trading-widget/components/widget/widget-buttons/approve-button/approve-button.hooks.d.ts +1 -0
  28. 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
  29. 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
  30. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-overlay.hooks.d.ts +1 -0
  31. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/vault-transaction-summary.d.ts +1 -7
  32. package/trading-widget/components/withdraw/complete-step/button/claim-button/claim-button.hooks.d.ts +1 -0
  33. package/trading-widget/components/withdraw/complete-step/button/swap-button/swap-button.hooks.d.ts +1 -0
  34. package/trading-widget/components/withdraw/init-step/button/init-withdraw-button/init-withdraw-button.hooks.d.ts +1 -0
  35. package/trading-widget/components/withdraw/init-step/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +1 -0
  36. package/trading-widget/providers/theme-provider/theme-provider.types.d.ts +5 -0
  37. package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +1 -0
  38. package/index-486e8b60.cjs +0 -217
  39. /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
@@ -244,6 +244,14 @@ path: `global.style[name]`
244
244
 
245
245
  ##### component
246
246
 
247
+ ###### notification
248
+
249
+ path: `component.notification[name]`
250
+
251
+ > | name | type | default value | description |
252
+ > | --------------- | ------ | ---------------------------------------------------- | --------------------- |
253
+ > | `color.colorBg` | string | `config?.global?.color?.colorBgSecondary ?? #2B313E` | Notification bg color |
254
+
247
255
  ###### popup
248
256
 
249
257
  path: `component.popup[name]`
@@ -523,6 +531,7 @@ path: `component.meta[name]`
523
531
  > | `showAll` | string | Show All | |
524
532
  > | `hide` | string | Hide | |
525
533
  > | `refreshSwapQuoteTooltip` | string | Refresh swap quote | |
534
+ > | `proceedWithNextStep` | string | Please proceed with the next step. | |
526
535
 
527
536
  ###### Source: `packages/trading-widget/src/trading-widget/providers/translation-provider/translation-provider.tsx`
528
537
 
@@ -1,4 +1,8 @@
1
1
  export declare const EasySwapperV2Abi: readonly [{
2
+ readonly inputs: readonly [];
3
+ readonly name: "EmptyPayload";
4
+ readonly type: "error";
5
+ }, {
2
6
  readonly inputs: readonly [];
3
7
  readonly name: "FailedInnerCall";
4
8
  readonly type: "error";