@gardenfi/core 2.4.6 → 2.5.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.
@@ -8,6 +8,7 @@ import { IEVMHTLC } from '../evm/htlc.types';
8
8
  import { IStarknetHTLC } from '../starknet/starknetHTLC.types';
9
9
  import { IBitcoinWallet } from '../bitcoin/wallet/wallet.interface';
10
10
  import { ISolanaHTLC } from '../solana/htlc/ISolanaHTLC';
11
+ import { ISuiHTLC } from '../sui/suiHTLC.types';
11
12
 
12
13
  export declare class Garden extends EventBroker<GardenEvents> implements IGardenJS {
13
14
  private environment;
@@ -22,6 +23,7 @@ export declare class Garden extends EventBroker<GardenEvents> implements IGarden
22
23
  private _evmHTLC;
23
24
  private _starknetHTLC;
24
25
  private _solanaHTLC;
26
+ private _suiHTLC;
25
27
  private _btcWallet;
26
28
  private bitcoinRedeemCache;
27
29
  private _digestKey;
@@ -33,6 +35,7 @@ export declare class Garden extends EventBroker<GardenEvents> implements IGarden
33
35
  get evmHTLC(): IEVMHTLC | undefined;
34
36
  get starknetHTLC(): IStarknetHTLC | undefined;
35
37
  get solanaHTLC(): ISolanaHTLC | undefined;
38
+ get suiHTLC(): ISuiHTLC | undefined;
36
39
  get quote(): IQuote;
37
40
  get btcWallet(): IBitcoinWallet | undefined;
38
41
  get orderbook(): IOrderbook;
@@ -53,6 +56,7 @@ export declare class Garden extends EventBroker<GardenEvents> implements IGarden
53
56
  private validateAmount;
54
57
  execute(interval?: number): Promise<() => void>;
55
58
  private solRedeem;
59
+ private suiRedeem;
56
60
  private evmRedeem;
57
61
  private starknetRedeem;
58
62
  private btcRedeem;
@@ -12,6 +12,8 @@ import { Api } from '../constants';
12
12
  import { IBitcoinWallet } from '../bitcoin/wallet/wallet.interface';
13
13
  import { ISolanaHTLC } from '../solana/htlc/ISolanaHTLC';
14
14
  import { AnchorProvider } from '@coral-xyz/anchor';
15
+ import { ISuiHTLC } from '../sui/suiHTLC.types';
16
+ import { WalletWithRequiredFeatures } from '@mysten/wallet-standard';
15
17
 
16
18
  export type SwapParams = {
17
19
  /**
@@ -101,6 +103,11 @@ export interface IGardenJS extends EventBroker<GardenEvents> {
101
103
  * @readonly
102
104
  */
103
105
  get solanaHTLC(): ISolanaHTLC | undefined;
106
+ /**
107
+ * The Sui relay.
108
+ * @readonly
109
+ */
110
+ get suiHTLC(): ISuiHTLC | undefined;
104
111
  /**
105
112
  * The current quote.
106
113
  * @readonly
@@ -159,13 +166,17 @@ export type GardenCoreConfig = {
159
166
  quote?: IQuote;
160
167
  blockNumberFetcher?: IBlockNumberFetcher;
161
168
  btcWallet?: IBitcoinWallet;
162
- solanaProgramAddress?: string;
169
+ solanaProgramAddress?: {
170
+ native?: string;
171
+ spl?: string;
172
+ };
163
173
  };
164
174
  export type GardenHTLCModules = {
165
175
  htlc: {
166
176
  evm?: IEVMHTLC;
167
177
  starknet?: IStarknetHTLC;
168
178
  solana?: ISolanaHTLC;
179
+ sui?: ISuiHTLC;
169
180
  };
170
181
  };
171
182
  export type GardenWalletModules = {
@@ -173,6 +184,7 @@ export type GardenWalletModules = {
173
184
  evm?: WalletClient;
174
185
  starknet?: AccountInterface;
175
186
  solana?: AnchorProvider;
187
+ sui?: WalletWithRequiredFeatures;
176
188
  };
177
189
  };
178
190
  export type GardenConfigWithWallets = GardenCoreConfig & GardenWalletModules;