@gardenfi/core 2.0.24 → 2.0.25-alpha.0

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,4 +1,4 @@
1
- import { Account } from 'starknet';
1
+ import { AccountInterface } from 'starknet';
2
2
  import { MatchedOrder } from '@gardenfi/orderbook';
3
3
  import { AsyncResult } from '@catalogfi/utils';
4
4
  import { Url } from '@gardenfi/utils';
@@ -8,7 +8,7 @@ export declare class StarknetRelay implements IStarknetHTLC {
8
8
  private url;
9
9
  private nodeUrl;
10
10
  private account;
11
- constructor(relayerUrl: string | Url, account: Account, nodeUrl?: string);
11
+ constructor(relayerUrl: string | Url, account: AccountInterface, nodeUrl?: string);
12
12
  get htlcActorAddress(): string;
13
13
  initiate(order: MatchedOrder): AsyncResult<string, string>;
14
14
  redeem(order: MatchedOrder, secret: string): AsyncResult<string, string>;
@@ -3,6 +3,7 @@ import { Chain, EvmChain } from '@gardenfi/orderbook';
3
3
  import { WalletClient } from 'viem';
4
4
  import { AsyncResult } from '@catalogfi/utils';
5
5
 
6
+ export declare const hyperliquidTestnet: viemChain;
6
7
  export declare const evmToViemChainMap: Record<EvmChain, viemChain>;
7
8
  /**
8
9
  * Switches or adds a network to the wallet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gardenfi/core",
3
- "version": "2.0.24",
3
+ "version": "2.0.25-alpha.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "vite build",
@@ -27,11 +27,10 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@catalogfi/wallets": "^0.2.59",
30
- "@gardenfi/orderbook": "^2.0.9",
31
- "@gardenfi/utils": "^2.0.6",
30
+ "@gardenfi/orderbook": "2.0.9-alpha.0",
31
+ "@gardenfi/utils": "2.0.6-alpha.0",
32
32
  "bignumber.js": "^9.1.2",
33
33
  "bitcoinjs-lib": "^6.1.6",
34
- "crypto-browserify": "^3.12.1",
35
34
  "starknet": "6.23.1",
36
35
  "tiny-secp256k1": "^2.2.3",
37
36
  "varuint-bitcoin": "^1.1.2",
@@ -1,11 +0,0 @@
1
- export declare class DigestKey {
2
- private _digestKey;
3
- private _userId;
4
- constructor(digestKey: string);
5
- static from(digestKey: string): import('@catalogfi/utils').Result<never, string> | import('@catalogfi/utils').Result<DigestKey, never>;
6
- static generateRandom(): import('@catalogfi/utils').Result<never, string> | import('@catalogfi/utils').Result<DigestKey, never>;
7
- private static isValidPrivateKey;
8
- private static generateRandomDigestKey;
9
- get digestKey(): string;
10
- get userId(): string;
11
- }