@gardenfi/core 2.5.3-beta.2 → 2.5.3-beta.3
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-BE4ehdw2.js → ccip-BsQtD5CP.js} +1 -1
- package/dist/{ccip-CWyEeg1d.cjs → ccip-p2JXyi8a.cjs} +1 -1
- package/dist/{index-Cnz5kiIK.cjs → index-DA_3GuuU.cjs} +36 -36
- package/dist/{index-3Y2kQfE0.js → index-LmAfXTaz.js} +4802 -4780
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/src/lib/garden/garden.d.ts +2 -1
- package/dist/src/lib/garden/garden.types.d.ts +2 -2
- package/dist/src/lib/utils.d.ts +1 -2
- package/package.json +3 -3
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-DA_3GuuU.cjs");exports.API=e.API;exports.BitcoinNetwork=e.BitcoinNetwork;exports.BitcoinProvider=e.BitcoinProvider;exports.BitcoinWallet=e.BitcoinWallet;exports.DEFAULT_AFFILIATE_ASSET=e.DEFAULT_AFFILIATE_ASSET;exports.EvmRelay=e.EvmRelay;exports.Garden=e.Garden;exports.Quote=e.Quote;exports.RouteValidator=e.RouteValidator;exports.STARKNET_CONFIG=e.STARKNET_CONFIG;exports.SUI_CONFIG=e.SUI_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.botanixMainnet=e.botanixMainnet;exports.buildRouteMatrix=e.buildRouteMatrix;exports.checkStarknetAlloance=e.checkAllowance;exports.checkStarknetAllowanceAndApprove=e.checkAllowanceAndApprove;exports.constructOrderPair=e.constructOrderPair;exports.evmToViemChainMap=e.evmToViemChainMap;exports.getChainNameFromChainId=e.getChainNameFromChainId;exports.hyperliquid=e.hyperliquid;exports.hyperliquidTestnet=e.hyperliquidTestnet;exports.isStarknetAllowanceSufficient=e.isAllowanceSufficient;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 { J as s, C as t, D as r, F as n, I as o, E as i, G as l, Q as d, R as A, K as c, L as S, m as k, k as C, j as T, M as h, h as u, S as m, u as p, O as y, p as I, n as R, q as v, w as F, x as N, y as w, z as E, o as O, r as L, N as M, A as f, t as g, v as x } from "./index-
|
|
1
|
+
import { J as s, C as t, D as r, F as n, I as o, E as i, G as l, Q as d, R as A, K as c, L as S, m as k, k as C, j as T, M as h, h as u, S as m, u as p, O as y, p as I, n as R, q as v, w as F, x as N, y as w, z as E, o as O, r as L, N as M, A as f, t as g, v as x } from "./index-LmAfXTaz.js";
|
|
2
2
|
export {
|
|
3
3
|
s as API,
|
|
4
4
|
t as BitcoinNetwork,
|
|
@@ -49,9 +49,10 @@ export declare class Garden extends Orderbook implements IGardenJS {
|
|
|
49
49
|
* @param params SwapParams
|
|
50
50
|
* @returns AsyncResult<Order, string>
|
|
51
51
|
*/
|
|
52
|
-
createSwap(params: SwapParams): AsyncResult<string, string>;
|
|
52
|
+
createSwap(params: SwapParams): AsyncResult<CreateOrderResponse | string, string>;
|
|
53
53
|
createOrder<T extends BlockchainType>(arg: CreateOrderRequest | SwapParams): AsyncResult<CreateOrderResponse<T>, string>;
|
|
54
54
|
private validateAndFillParams;
|
|
55
|
+
private _getAddresses;
|
|
55
56
|
on<K extends keyof GardenEvents>(event: K, listener: GardenEvents[K]): this;
|
|
56
57
|
off<K extends keyof GardenEvents>(event: K, listener: GardenEvents[K]): this;
|
|
57
58
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AffiliateFee, AssetLike, BitcoinOrderResponse, BlockchainType, EvmOrderResponse, IOrderbook, Order, OrderAction, OrderStatus, SolanaOrderResponse, StarknetOrderResponse, SuiOrderResponse } from '@gardenfi/orderbook';
|
|
1
|
+
import { AffiliateFee, AssetLike, BitcoinOrderResponse, BlockchainType, EvmOrderResponse, IOrderbook, Order, OrderAction, OrderStatus, SolanaOrderResponse, StarknetOrderResponse, SuiOrderResponse, CreateOrderResponse } from '@gardenfi/orderbook';
|
|
2
2
|
import { ApiKey, AsyncResult, IAuth, Network, DigestKey } from '@gardenfi/utils';
|
|
3
3
|
import { ISecretManager } from '../secretManager/secretManager.types';
|
|
4
4
|
import { IQuote } from '../quote/quote.types';
|
|
@@ -68,7 +68,7 @@ export interface IGardenJS extends IOrderbook {
|
|
|
68
68
|
* @param {SwapParams} params - The parameters for creating the order.
|
|
69
69
|
* @returns {AsyncResult<string, string>} The result of the swap operation.
|
|
70
70
|
*/
|
|
71
|
-
createSwap(params: SwapParams): AsyncResult<string, string>;
|
|
71
|
+
createSwap(params: SwapParams): AsyncResult<CreateOrderResponse | string, string>;
|
|
72
72
|
/**
|
|
73
73
|
* The current quote.
|
|
74
74
|
* @readonly
|
package/dist/src/lib/utils.d.ts
CHANGED
|
@@ -52,10 +52,9 @@ export declare const withDefaultAffiliateFees: (list: AffiliateFee[] | undefined
|
|
|
52
52
|
*
|
|
53
53
|
* @param blockchainType
|
|
54
54
|
* @param htlcs
|
|
55
|
-
* @param addresses
|
|
56
55
|
* @returns
|
|
57
56
|
*/
|
|
58
|
-
export declare const getAddresses: (blockchainType: BlockchainType, htlcs: GardenHTLCModules
|
|
57
|
+
export declare const getAddresses: (blockchainType: BlockchainType, htlcs: GardenHTLCModules) => Promise<Err<string> | Ok<string>>;
|
|
59
58
|
/**
|
|
60
59
|
* Validates that HTLCs are available for the required blockchain types for swap initiation
|
|
61
60
|
* @param blockchainType The blockchain type to check
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gardenfi/core",
|
|
3
|
-
"version": "2.5.3-beta.
|
|
3
|
+
"version": "2.5.3-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "vite build",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@coral-xyz/anchor": "^0.31.1",
|
|
31
|
-
"@gardenfi/orderbook": "2.5.3-beta.
|
|
32
|
-
"@gardenfi/utils": "2.5.3-beta.
|
|
31
|
+
"@gardenfi/orderbook": "2.5.3-beta.4",
|
|
32
|
+
"@gardenfi/utils": "2.5.3-beta.3",
|
|
33
33
|
"@mysten/signers": "^0.3.4",
|
|
34
34
|
"@mysten/sui": "^1.37.1",
|
|
35
35
|
"@mysten/wallet-standard": "^0.16.9",
|