@gardenfi/orderbook 2.5.3-beta.3 → 2.5.3-beta.6

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,5 +1,6 @@
1
1
  import { Network } from '@gardenfi/utils';
2
2
  import { Config } from './asset';
3
+ import { ChainAsset } from '../chainAsset/chainAsset';
3
4
 
4
5
  export declare enum BlockchainType {
5
6
  bitcoin = "bitcoin",
@@ -8,18 +9,23 @@ export declare enum BlockchainType {
8
9
  starknet = "starknet",
9
10
  sui = "sui"
10
11
  }
11
- export type AssetCommon = {
12
+ export type AddressSchema = {
13
+ address: string;
14
+ schema: string | null;
15
+ };
16
+ export type Asset = {
17
+ id: ChainAsset;
12
18
  name: string;
13
- decimals: number;
14
- symbol: string;
15
19
  chain: Chain;
16
- logo?: string;
17
- atomicSwapAddress: string;
18
- };
19
- export type AssetToken = AssetCommon & {
20
- tokenAddress: string;
20
+ symbol: string;
21
+ icon?: string;
22
+ htlc: AddressSchema | null;
23
+ token: AddressSchema | null;
24
+ decimals: number;
25
+ min_amount?: string;
26
+ max_amount?: string;
27
+ price?: number;
21
28
  };
22
- export type Asset = AssetToken;
23
29
  export type Chain = keyof typeof Config;
24
30
  export type ChainsByNetwork<T extends Network> = {
25
31
  [K in keyof typeof Config]: (typeof Config)[K]['network'] extends T ? K : never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gardenfi/orderbook",
3
- "version": "2.5.3-beta.3",
3
+ "version": "2.5.3-beta.6",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@coral-xyz/anchor": "^0.31.1",
31
- "@gardenfi/utils": "2.5.3-beta.2",
31
+ "@gardenfi/utils": "2.5.3-beta.3",
32
32
  "bufferutil": "^4.0.8",
33
33
  "siwe": "^2.1.4",
34
34
  "utf-8-validate": "^6.0.3",