@orbs-network/spot-react 1.1.30 → 1.1.32
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/dist/spot-react/package.json.d.ts +1 -1
- package/dist/spot-react/src/hooks/helper-hooks.d.ts +80 -0
- package/dist/spot-react/src/hooks/helper-hooks.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/order-hooks.d.ts +2 -1
- package/dist/spot-react/src/hooks/order-hooks.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-cancel-order.d.ts.map +1 -1
- package/dist/spot-react/src/spot-context.d.ts.map +1 -1
- package/dist/spot-react.js +1788 -1666
- package/dist/spot-react.umd.cjs +10 -10
- package/dist/spot-ui/src/lib/networks.d.ts +84 -0
- package/dist/spot-ui/src/lib/networks.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/orders/index.d.ts +2 -1
- package/dist/spot-ui/src/lib/orders/index.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/types.d.ts +2 -1
- package/dist/spot-ui/src/lib/types.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/utils.d.ts +80 -0
- package/dist/spot-ui/src/lib/utils.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -460,6 +460,86 @@ export declare const useNetwork: () => {
|
|
|
460
460
|
logoUrl: string;
|
|
461
461
|
explorer: string;
|
|
462
462
|
eip1559: boolean;
|
|
463
|
+
} | {
|
|
464
|
+
id: number;
|
|
465
|
+
name: string;
|
|
466
|
+
shortname: string;
|
|
467
|
+
native: {
|
|
468
|
+
address: string;
|
|
469
|
+
symbol: string;
|
|
470
|
+
decimals: number;
|
|
471
|
+
logoUrl: string;
|
|
472
|
+
};
|
|
473
|
+
wToken: {
|
|
474
|
+
symbol: string;
|
|
475
|
+
address: string;
|
|
476
|
+
decimals: number;
|
|
477
|
+
logoUrl: string;
|
|
478
|
+
};
|
|
479
|
+
publicRpcUrl: string;
|
|
480
|
+
logoUrl: string;
|
|
481
|
+
explorer: string;
|
|
482
|
+
eip1559: boolean;
|
|
483
|
+
} | {
|
|
484
|
+
id: number;
|
|
485
|
+
name: string;
|
|
486
|
+
shortname: string;
|
|
487
|
+
native: {
|
|
488
|
+
address: string;
|
|
489
|
+
symbol: string;
|
|
490
|
+
decimals: number;
|
|
491
|
+
logoUrl: string;
|
|
492
|
+
};
|
|
493
|
+
wToken: {
|
|
494
|
+
symbol: string;
|
|
495
|
+
address: string;
|
|
496
|
+
decimals: number;
|
|
497
|
+
logoUrl: string;
|
|
498
|
+
};
|
|
499
|
+
publicRpcUrl: string;
|
|
500
|
+
logoUrl: string;
|
|
501
|
+
explorer: string;
|
|
502
|
+
eip1559: boolean;
|
|
503
|
+
} | {
|
|
504
|
+
id: number;
|
|
505
|
+
name: string;
|
|
506
|
+
shortname: string;
|
|
507
|
+
native: {
|
|
508
|
+
address: string;
|
|
509
|
+
symbol: string;
|
|
510
|
+
decimals: number;
|
|
511
|
+
logoUrl: string;
|
|
512
|
+
};
|
|
513
|
+
wToken: {
|
|
514
|
+
symbol: string;
|
|
515
|
+
address: string;
|
|
516
|
+
decimals: number;
|
|
517
|
+
logoUrl: string;
|
|
518
|
+
};
|
|
519
|
+
publicRpcUrl: string;
|
|
520
|
+
logoUrl: string;
|
|
521
|
+
explorer: string;
|
|
522
|
+
eip1559: boolean;
|
|
523
|
+
} | {
|
|
524
|
+
id: number;
|
|
525
|
+
name: string;
|
|
526
|
+
shortname: string;
|
|
527
|
+
native: {
|
|
528
|
+
address: string;
|
|
529
|
+
symbol: string;
|
|
530
|
+
decimals: number;
|
|
531
|
+
logoUrl: string;
|
|
532
|
+
};
|
|
533
|
+
wToken: {
|
|
534
|
+
symbol: string;
|
|
535
|
+
address: string;
|
|
536
|
+
decimals: number;
|
|
537
|
+
logoUrl: string;
|
|
538
|
+
};
|
|
539
|
+
publicRpcUrl: string;
|
|
540
|
+
logoUrl: string;
|
|
541
|
+
explorer: string;
|
|
542
|
+
eip1559: boolean;
|
|
463
543
|
} | undefined;
|
|
464
544
|
export declare const useExplorerLink: (txHash?: string) => string | undefined;
|
|
465
545
|
export declare const useUsdAmount: (amount?: string, usd?: string | number) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper-hooks.d.ts","sourceRoot":"","sources":["../../../../src/hooks/helper-hooks.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,EAAE,QAAQ,MAAM,WAE5D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,EAAE,QAAQ,MAAM,WAE5D,CAAC;AAEF,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"helper-hooks.d.ts","sourceRoot":"","sources":["../../../../src/hooks/helper-hooks.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,EAAE,QAAQ,MAAM,WAE5D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,EAAE,QAAQ,MAAM,WAE5D,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAGtB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,uBAM9C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,EAAE,MAAM,MAAM,GAAG,MAAM,WAOlE,CAAC;AAEF,eAAO,MAAM,iBAAiB,eAM7B,CAAC;AAEF,eAAO,MAAM,eAAe,eAM3B,CAAC;AAEF,eAAO,MAAM,yBAAyB,eAKrC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Order, OrderType } from '../../../spot-ui/src/index.ts';
|
|
1
|
+
import { Order, OrderStatus, OrderType } from '../../../spot-ui/src/index.ts';
|
|
2
2
|
import { Token } from '../types';
|
|
3
3
|
export declare const useOrderType: () => OrderType;
|
|
4
4
|
export declare const useAddNewOrder: () => (order: Order) => void;
|
|
5
|
+
export declare const useUpdateCachedOrderStatus: () => (orderId: string, status: OrderStatus) => void;
|
|
5
6
|
export declare const useOrdersQuery: () => import('@tanstack/react-query').UseQueryResult<Order[], Error>;
|
|
6
7
|
export declare const useOrderLimitPrice: (srcToken?: Token, dstToken?: Token, order?: Order) => string | undefined;
|
|
7
8
|
export declare const useOrderTriggerPriceRate: (srcToken?: Token, dstToken?: Token, order?: Order) => string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-hooks.d.ts","sourceRoot":"","sources":["../../../../src/hooks/order-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,
|
|
1
|
+
{"version":3,"file":"order-hooks.d.ts","sourceRoot":"","sources":["../../../../src/hooks/order-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EACL,WAAW,EACX,SAAS,EAIV,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,eAAO,MAAM,YAAY,iBAoBxB,CAAC;AAiBF,eAAO,MAAM,cAAc,gBAKf,KAAK,SAShB,CAAC;AAEF,eAAO,MAAM,0BAA0B,kBAKzB,MAAM,UAAU,WAAW,SASxC,CAAC;AAqDF,eAAO,MAAM,cAAc,sEA4C1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,WAAW,KAAK,EAChB,WAAW,KAAK,EAChB,QAAQ,KAAK,uBAUd,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,WAAW,KAAK,EAChB,WAAW,KAAK,EAChB,QAAQ,KAAK,uBAMd,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,WAAW,KAAK,EAChB,WAAW,KAAK,EAChB,QAAQ,KAAK,uBAWd,CAAC;AAMF,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAwBhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-cancel-order.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-cancel-order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAa,KAAK,EAAuC,MAAM,uBAAuB,CAAC;AAU9F,eAAO,MAAM,sCAAsC,uFAwBlD,CAAC;AAuBF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,KAAK;;;;;;;
|
|
1
|
+
{"version":3,"file":"use-cancel-order.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-cancel-order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAa,KAAK,EAAuC,MAAM,uBAAuB,CAAC;AAU9F,eAAO,MAAM,sCAAsC,uFAwBlD,CAAC;AAuBF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,KAAK;;;;;;;CA8F3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spot-context.d.ts","sourceRoot":"","sources":["../../../src/spot-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAU7E,OAAO,EACL,SAAS,EACT,eAAe,EAEhB,MAAM,SAAS,CAAC;AAoCjB,eAAO,MAAM,WAAW,uCAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"spot-context.d.ts","sourceRoot":"","sources":["../../../src/spot-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAU7E,OAAO,EACL,SAAS,EACT,eAAe,EAEhB,MAAM,SAAS,CAAC;AAoCjB,eAAO,MAAM,WAAW,uCAA8C,CAAC;AAsLvE,eAAO,MAAM,YAAY,GAAI,OAAO,SAAS,4CAM5C,CAAC;AAEF,eAAO,MAAM,cAAc,uBAM1B,CAAC"}
|