@gardenfi/core 2.4.3-beta.3 → 2.4.3-beta.5
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-DLdsllZU.cjs → ccip-Etc0FLIo.cjs} +1 -1
- package/dist/{ccip-DTJccX-3.js → ccip-pXCeAfmp.js} +1 -1
- package/dist/index-DFY2Tld-.js +25092 -0
- package/dist/index-DkssHOBr.cjs +99 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/src/lib/constants.d.ts +8 -7
- package/dist/src/lib/garden/garden.d.ts +0 -4
- package/dist/src/lib/garden/garden.types.d.ts +4 -10
- 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/package.json +3 -5
- package/dist/index-B7OvSSzK.js +0 -31140
- package/dist/index-DpnMUMIm.cjs +0 -105
- package/dist/src/lib/sui/htlc/suiHTLC.d.ts +0 -35
- package/dist/src/lib/sui/relay/suiRelay.d.ts +0 -18
- package/dist/src/lib/sui/suiHTLC.types.d.ts +0 -28
- /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
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DkssHOBr.cjs");exports.API=e.API;exports.BitcoinNetwork=e.BitcoinNetwork;exports.BitcoinProvider=e.BitcoinProvider;exports.BitcoinWallet=e.BitcoinWallet;exports.BlockNumberFetcher=e.BlockNumberFetcher;exports.EvmRelay=e.EvmRelay;exports.Garden=e.Garden;exports.OrderActions=e.OrderActions;exports.OrderStatus=e.OrderStatus;exports.ParseOrderStatus=e.ParseOrderStatus;exports.ParseSwapStatus=e.ParseSwapStatus;exports.Quote=e.Quote;exports.STARKNET_CONFIG=e.STARKNET_CONFIG;exports.SecretManager=e.SecretManager;exports.SolanaHTLC=e.SolanaHTLC;exports.SolanaRelay=e.SolanaRelay;exports.SolanaRelayerAddress=e.SolanaRelayerAddress;exports.StarknetHTLC=e.StarknetHTLC;exports.StarknetRelay=e.StarknetRelay;exports.SwapStatus=e.SwapStatus;exports.botanix=e.botanixMainnet;exports.checkStarknetAlloance=e.checkAllowance;exports.checkStarknetAllowanceAndApprove=e.checkAllowanceAndApprove;exports.constructOrderPair=e.constructOrderPair;exports.evmToViemChainMap=e.evmToViemChainMap;exports.filterDeadlineExpiredOrders=e.filterDeadlineExpiredOrders;exports.hyperliquid=e.hyperliquid;exports.hyperliquidTestnet=e.hyperliquidTestnet;exports.isExpired=e.isExpired;exports.isOrderExpired=e.isOrderExpired;exports.isStarknetAllowanceSufficient=e.isAllowanceSufficient;exports.parseAction=e.parseAction;exports.parseActionFromStatus=e.parseActionFromStatus;exports.resolveApiConfig=e.resolveApiConfig;exports.solanaProgramAddress=e.solanaProgramAddress;exports.switchOrAddNetwork=e.switchOrAddNetwork;exports.toXOnly=e.toXOnly;exports.validateBTCAddress=e.validateBTCAddress;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as e, N as r, R as t, T as i, m as n, E as o, G as d, O as l, n as c, P as S, q as A, Q as p, V as u, w as k, k as O, j as h, W as m, h as w, S as y, o as T, M as v, z as C, x as P, A as x, I as E, u as N, L as R, K as f, r as B, t as F, y as g, p as q, v as G, F as I, X as L, J as M, D as b, C as D } from "./index-
|
|
1
|
+
import { U as e, N as r, R as t, T as i, m as n, E as o, G as d, O as l, n as c, P as S, q as A, Q as p, V as u, w as k, k as O, j as h, W as m, h as w, S as y, o as T, M as v, z as C, x as P, A as x, I as E, u as N, L as R, K as f, r as B, t as F, y as g, p as q, v as G, F as I, X as L, J as M, D as b, C as D } from "./index-DFY2Tld-.js";
|
|
2
2
|
export {
|
|
3
3
|
e as API,
|
|
4
4
|
r as BitcoinNetwork,
|
|
@@ -8,7 +8,6 @@ export type Api = {
|
|
|
8
8
|
evmRelay: string;
|
|
9
9
|
starknetRelay: string;
|
|
10
10
|
solanaRelay: string;
|
|
11
|
-
suiRelay: string;
|
|
12
11
|
};
|
|
13
12
|
export declare const API: Record<Environment, Api>;
|
|
14
13
|
export declare const STARKNET_CONFIG: Record<Network, {
|
|
@@ -17,13 +16,15 @@ export declare const STARKNET_CONFIG: Record<Network, {
|
|
|
17
16
|
}>;
|
|
18
17
|
export declare const SolanaRelayerAddress: Record<Network, string>;
|
|
19
18
|
export declare const solanaProgramAddress: {
|
|
20
|
-
mainnet:
|
|
21
|
-
|
|
19
|
+
mainnet: {
|
|
20
|
+
native: string;
|
|
21
|
+
spl: string;
|
|
22
|
+
};
|
|
23
|
+
staging: {
|
|
24
|
+
native: string;
|
|
25
|
+
spl: string;
|
|
26
|
+
};
|
|
22
27
|
};
|
|
23
|
-
export declare const SUI_CONFIG: Record<Network, {
|
|
24
|
-
packageId: string;
|
|
25
|
-
moduleName: string;
|
|
26
|
-
}>;
|
|
27
28
|
export declare const DEFAULT_AFFILIATE_ASSET: {
|
|
28
29
|
chain: "base";
|
|
29
30
|
asset: "0xeae7721d779276eb0f5837e2fe260118724a2ba4";
|
|
@@ -8,7 +8,6 @@ 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';
|
|
12
11
|
|
|
13
12
|
export declare class Garden extends EventBroker<GardenEvents> implements IGardenJS {
|
|
14
13
|
private environment;
|
|
@@ -23,7 +22,6 @@ export declare class Garden extends EventBroker<GardenEvents> implements IGarden
|
|
|
23
22
|
private _evmHTLC;
|
|
24
23
|
private _starknetHTLC;
|
|
25
24
|
private _solanaHTLC;
|
|
26
|
-
private _suiHTLC;
|
|
27
25
|
private _btcWallet;
|
|
28
26
|
private bitcoinRedeemCache;
|
|
29
27
|
private _digestKey;
|
|
@@ -35,7 +33,6 @@ export declare class Garden extends EventBroker<GardenEvents> implements IGarden
|
|
|
35
33
|
get evmHTLC(): IEVMHTLC | undefined;
|
|
36
34
|
get starknetHTLC(): IStarknetHTLC | undefined;
|
|
37
35
|
get solanaHTLC(): ISolanaHTLC | undefined;
|
|
38
|
-
get suiHTLC(): ISuiHTLC | undefined;
|
|
39
36
|
get quote(): IQuote;
|
|
40
37
|
get btcWallet(): IBitcoinWallet | undefined;
|
|
41
38
|
get orderbook(): IOrderbook;
|
|
@@ -56,7 +53,6 @@ export declare class Garden extends EventBroker<GardenEvents> implements IGarden
|
|
|
56
53
|
private validateAmount;
|
|
57
54
|
execute(interval?: number): Promise<() => void>;
|
|
58
55
|
private solRedeem;
|
|
59
|
-
private suiRedeem;
|
|
60
56
|
private evmRedeem;
|
|
61
57
|
private starknetRedeem;
|
|
62
58
|
private btcRedeem;
|
|
@@ -12,8 +12,6 @@ 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';
|
|
17
15
|
|
|
18
16
|
export type SwapParams = {
|
|
19
17
|
/**
|
|
@@ -103,11 +101,6 @@ export interface IGardenJS extends EventBroker<GardenEvents> {
|
|
|
103
101
|
* @readonly
|
|
104
102
|
*/
|
|
105
103
|
get solanaHTLC(): ISolanaHTLC | undefined;
|
|
106
|
-
/**
|
|
107
|
-
* The Sui relay.
|
|
108
|
-
* @readonly
|
|
109
|
-
*/
|
|
110
|
-
get suiHTLC(): ISuiHTLC | undefined;
|
|
111
104
|
/**
|
|
112
105
|
* The current quote.
|
|
113
106
|
* @readonly
|
|
@@ -166,14 +159,16 @@ export type GardenCoreConfig = {
|
|
|
166
159
|
quote?: IQuote;
|
|
167
160
|
blockNumberFetcher?: IBlockNumberFetcher;
|
|
168
161
|
btcWallet?: IBitcoinWallet;
|
|
169
|
-
solanaProgramAddress?:
|
|
162
|
+
solanaProgramAddress?: {
|
|
163
|
+
native?: string;
|
|
164
|
+
spl?: string;
|
|
165
|
+
};
|
|
170
166
|
};
|
|
171
167
|
export type GardenHTLCModules = {
|
|
172
168
|
htlc: {
|
|
173
169
|
evm?: IEVMHTLC;
|
|
174
170
|
starknet?: IStarknetHTLC;
|
|
175
171
|
solana?: ISolanaHTLC;
|
|
176
|
-
sui?: ISuiHTLC;
|
|
177
172
|
};
|
|
178
173
|
};
|
|
179
174
|
export type GardenWalletModules = {
|
|
@@ -181,7 +176,6 @@ export type GardenWalletModules = {
|
|
|
181
176
|
evm?: WalletClient;
|
|
182
177
|
starknet?: AccountInterface;
|
|
183
178
|
solana?: AnchorProvider;
|
|
184
|
-
sui?: WalletWithRequiredFeatures;
|
|
185
179
|
};
|
|
186
180
|
};
|
|
187
181
|
export type GardenConfigWithWallets = GardenCoreConfig & GardenWalletModules;
|