@dhedge/trading-widget 4.0.3-canary.2 → 4.0.3

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.
@@ -1,3 +1,2 @@
1
1
  export { LimitOrderModal } from './component/limit-order-modal';
2
2
  export { useUserLimitOrder } from './hooks/use-user-limit-order';
3
- export { XRP_ORACLE_ARBITRUM, DOGE_ORACLE_ARBITRUM, BNB_ORACLE_ARBITRUM, HYPE_ORACLE_ARBITRUM, CRV_ORACLE_ARBITRUM, } from './constants/chainlink-oracles';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhedge/trading-widget",
3
- "version": "4.0.3-canary.2",
3
+ "version": "4.0.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./index.cjs",
@@ -18,7 +18,7 @@
18
18
  "./style.css"
19
19
  ],
20
20
  "engines": {
21
- "pnpm": ">=9.0.0"
21
+ "pnpm": "^9.0.0"
22
22
  },
23
23
  "prepublishOnly": "pnpm run lint && pnpm run test && pnpm run build",
24
24
  "peerDependencies": {
@@ -1,21 +0,0 @@
1
- export declare const ChainlinkOracleAbi: readonly [{
2
- readonly inputs: readonly [];
3
- readonly name: "decimals";
4
- readonly outputs: readonly [{
5
- readonly internalType: "uint8";
6
- readonly name: "";
7
- readonly type: "uint8";
8
- }];
9
- readonly stateMutability: "view";
10
- readonly type: "function";
11
- }, {
12
- readonly inputs: readonly [];
13
- readonly name: "latestAnswer";
14
- readonly outputs: readonly [{
15
- readonly internalType: "int256";
16
- readonly name: "";
17
- readonly type: "int256";
18
- }];
19
- readonly stateMutability: "view";
20
- readonly type: "function";
21
- }];
@@ -1,7 +0,0 @@
1
- import type { Address } from 'viem';
2
- export declare const XRP_ORACLE_ARBITRUM: Address;
3
- export declare const DOGE_ORACLE_ARBITRUM: Address;
4
- export declare const BNB_ORACLE_ARBITRUM: Address;
5
- export declare const HYPE_ORACLE_ARBITRUM: Address;
6
- export declare const CRV_ORACLE_ARBITRUM: Address;
7
- export declare const isChainlinkOracleAddress: (address: Address) => boolean;
@@ -1,58 +0,0 @@
1
- import type { Address } from 'viem';
2
- import type { ChainId } from '../../core-kit/types';
3
- interface UseChainlinkAssetPriceParams {
4
- address: Address;
5
- chainId: ChainId;
6
- }
7
- export declare const useChainlinkAssetPrice: ({ address, chainId, }: UseChainlinkAssetPriceParams) => import("wagmi").UseReadContractsReturnType<[{
8
- address: `0x${string}`;
9
- chainId: number;
10
- abi: readonly [{
11
- readonly inputs: readonly [];
12
- readonly name: "decimals";
13
- readonly outputs: readonly [{
14
- readonly internalType: "uint8";
15
- readonly name: "";
16
- readonly type: "uint8";
17
- }];
18
- readonly stateMutability: "view";
19
- readonly type: "function";
20
- }, {
21
- readonly inputs: readonly [];
22
- readonly name: "latestAnswer";
23
- readonly outputs: readonly [{
24
- readonly internalType: "int256";
25
- readonly name: "";
26
- readonly type: "int256";
27
- }];
28
- readonly stateMutability: "view";
29
- readonly type: "function";
30
- }];
31
- functionName: "decimals";
32
- }, {
33
- address: `0x${string}`;
34
- chainId: number;
35
- abi: readonly [{
36
- readonly inputs: readonly [];
37
- readonly name: "decimals";
38
- readonly outputs: readonly [{
39
- readonly internalType: "uint8";
40
- readonly name: "";
41
- readonly type: "uint8";
42
- }];
43
- readonly stateMutability: "view";
44
- readonly type: "function";
45
- }, {
46
- readonly inputs: readonly [];
47
- readonly name: "latestAnswer";
48
- readonly outputs: readonly [{
49
- readonly internalType: "int256";
50
- readonly name: "";
51
- readonly type: "int256";
52
- }];
53
- readonly stateMutability: "view";
54
- readonly type: "function";
55
- }];
56
- functionName: "latestAnswer";
57
- }], true, string>;
58
- export {};