@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.
- package/dist/{ccip-zRBTY1vL.cjs → ccip-D9S6QM7J.cjs} +1 -1
- package/dist/{ccip-ZkIgcVu1.js → ccip-DW9K4PmQ.js} +1 -1
- package/dist/index-9VBMeQEM.cjs +105 -0
- package/dist/index-BsWv07Gh.js +31911 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/src/lib/constants.d.ts +13 -2
- package/dist/src/lib/evm/htlc/evmHTLC.d.ts +1567 -3804
- package/dist/src/lib/garden/garden.d.ts +4 -0
- package/dist/src/lib/garden/garden.types.d.ts +13 -1
- package/dist/src/lib/solana/idl/spl/solana_spl_swaps.d.ts +637 -0
- package/dist/src/lib/solana/idl/spl/solana_spl_swaps.json.d.ts +633 -0
- package/dist/src/lib/solana/relayer/solanaRelay.d.ts +59 -10
- package/dist/src/lib/sui/htlc/suiHTLC.d.ts +34 -0
- package/dist/src/lib/sui/relay/suiRelay.d.ts +17 -0
- package/dist/src/lib/sui/suiHTLC.types.d.ts +28 -0
- package/package.json +10 -5
- package/dist/index-BcHwWFv2.js +0 -24364
- package/dist/index-DpRp0W1D.cjs +0 -99
- /package/dist/src/lib/solana/idl/{solana_native_swaps.d.ts → native/solana_native_swaps.d.ts} +0 -0
- /package/dist/src/lib/solana/idl/{solana_native_swaps.json.d.ts → native/solana_native_swaps.json.d.ts} +0 -0
|
@@ -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?:
|
|
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;
|