@dhedge/trading-widget 3.2.0 → 3.2.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.
Files changed (29) hide show
  1. package/README.md +9 -0
  2. package/core-kit/abi/easy-swapper-v2.d.ts +4 -0
  3. package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +8 -0
  4. package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +4 -0
  5. package/core-kit/hooks/trading/use-is-transaction-loading.d.ts +2 -0
  6. package/core-kit/hooks/trading/withdraw-v2/init-step/use-init-withdraw-transaction.d.ts +5 -1
  7. package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +4 -0
  8. package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +4 -0
  9. package/{index-d62956b7.js → index-355fbbdd.js} +6871 -6831
  10. package/{index-8d920656.cjs → index-a789033d.cjs} +42 -42
  11. package/index.cjs +1 -1
  12. package/index.js +1 -1
  13. package/package.json +1 -1
  14. package/{pyth-adapter-e278f630.js → pyth-adapter-24134bf7.js} +1 -1
  15. package/{pyth-adapter-c8d76d79.cjs → pyth-adapter-3e579058.cjs} +1 -1
  16. package/style.css +1 -1
  17. package/trading-widget/components/deposit/button/trade-button/trade-button.hooks.d.ts +1 -0
  18. package/trading-widget/components/deposit/button/valid-deposit-button/valid-deposit-button.hooks.d.ts +1 -0
  19. package/trading-widget/components/widget/widget-buttons/approve-button/approve-button.hooks.d.ts +1 -0
  20. 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
  21. 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
  22. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-overlay.hooks.d.ts +1 -0
  23. package/trading-widget/components/widget/widget-overlay/trading-overlay/trading-summary/vault-transaction-summary.d.ts +1 -7
  24. package/trading-widget/components/withdraw/complete-step/button/claim-button/claim-button.hooks.d.ts +1 -0
  25. package/trading-widget/components/withdraw/complete-step/button/swap-button/swap-button.hooks.d.ts +1 -0
  26. package/trading-widget/components/withdraw/init-step/button/init-withdraw-button/init-withdraw-button.hooks.d.ts +1 -0
  27. package/trading-widget/components/withdraw/init-step/meta/transaction-disclosure/transaction-disclosure.hooks.d.ts +1 -0
  28. package/trading-widget/providers/theme-provider/theme-provider.types.d.ts +5 -0
  29. package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +1 -0
package/README.md CHANGED
@@ -243,6 +243,14 @@ path: `global.style[name]`
243
243
 
244
244
  ##### component
245
245
 
246
+ ###### notification
247
+
248
+ path: `component.notification[name]`
249
+
250
+ > | name | type | default value | description |
251
+ > | --------------- | ------ | ---------------------------------------------------- | --------------------- |
252
+ > | `color.colorBg` | string | `config?.global?.color?.colorBgSecondary ?? #2B313E` | Notification bg color |
253
+
246
254
  ###### popup
247
255
 
248
256
  path: `component.popup[name]`
@@ -522,6 +530,7 @@ path: `component.meta[name]`
522
530
  > | `showAll` | string | Show All | |
523
531
  > | `hide` | string | Hide | |
524
532
  > | `refreshSwapQuoteTooltip` | string | Refresh swap quote | |
533
+ > | `proceedWithNextStep` | string | Please proceed with the next step. | |
525
534
 
526
535
  ###### Source: `packages/trading-widget/src/trading-widget/providers/translation-provider/translation-provider.tsx`
527
536
 
@@ -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";
@@ -246,6 +246,10 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
246
246
  }, {
247
247
  readonly address: `0x${string}`;
248
248
  readonly abi: readonly [{
249
+ readonly inputs: readonly [];
250
+ readonly name: "EmptyPayload";
251
+ readonly type: "error";
252
+ }, {
249
253
  readonly inputs: readonly [];
250
254
  readonly name: "FailedInnerCall";
251
255
  readonly type: "error";
@@ -1197,6 +1201,10 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
1197
1201
  }, {
1198
1202
  readonly address: `0x${string}`;
1199
1203
  readonly abi: readonly [{
1204
+ readonly inputs: readonly [];
1205
+ readonly name: "EmptyPayload";
1206
+ readonly type: "error";
1207
+ }, {
1200
1208
  readonly inputs: readonly [];
1201
1209
  readonly name: "FailedInnerCall";
1202
1210
  readonly type: "error";
@@ -1,5 +1,9 @@
1
1
  import type { PoolConfig } from 'core-kit/types/config.types';
2
2
  export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<PoolConfig, 'address' | 'chainId'>) => import("wagmi").UseReadContractReturnType<readonly [{
3
+ readonly inputs: readonly [];
4
+ readonly name: "EmptyPayload";
5
+ readonly type: "error";
6
+ }, {
3
7
  readonly inputs: readonly [];
4
8
  readonly name: "FailedInnerCall";
5
9
  readonly type: "error";
@@ -0,0 +1,2 @@
1
+ import type { TransactionAction } from 'core-kit/types';
2
+ export declare const useIsTransactionLoading: (transaction: TransactionAction) => boolean;
@@ -1,2 +1,6 @@
1
+ import type { TransactionAction } from 'core-kit/types';
1
2
  import type { ContractActionFunc } from 'core-kit/types/web3.types';
2
- export declare const useInitWithdrawTransaction: () => ContractActionFunc;
3
+ export declare const useInitWithdrawTransaction: () => {
4
+ withdraw: ContractActionFunc;
5
+ action: TransactionAction;
6
+ };
@@ -1,4 +1,8 @@
1
1
  export declare const useWithdrawalVaultAddress: () => import("wagmi").UseReadContractReturnType<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";
@@ -64,6 +64,10 @@ export declare const useUserMulticall: ({ address, chainId, }: PoolContractCallP
64
64
  }, {
65
65
  readonly address: `0x${string}`;
66
66
  readonly abi: readonly [{
67
+ readonly inputs: readonly [];
68
+ readonly name: "EmptyPayload";
69
+ readonly type: "error";
70
+ }, {
67
71
  readonly inputs: readonly [];
68
72
  readonly name: "FailedInnerCall";
69
73
  readonly type: "error";