@gardenfi/core 2.3.1 → 2.3.2
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-Cy70vKVw.js → ccip-BEaoEhEE.js} +1 -1
- package/dist/{ccip-Y_aa4Yz4.cjs → ccip-PvTvY3At.cjs} +1 -1
- package/dist/{index-BpYbimBc.js → index-CIaJFDz8.js} +2719 -2746
- package/dist/{index-CxMHDFhJ.cjs → index-Cl50Tn-z.cjs} +30 -30
- package/dist/index.cjs +1 -1
- package/dist/index.js +18 -17
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/bitcoin/htlc.d.ts +2 -7
- package/dist/src/lib/garden/garden.d.ts +1 -1
- package/dist/src/lib/quote/quote.types.d.ts +2 -0
- 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-Cl50Tn-z.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 {
|
|
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-CIaJFDz8.js";
|
|
2
2
|
export {
|
|
3
3
|
e as API,
|
|
4
4
|
r as BitcoinNetwork,
|
|
@@ -6,8 +6,8 @@ export {
|
|
|
6
6
|
i as BitcoinWallet,
|
|
7
7
|
n as BlockNumberFetcher,
|
|
8
8
|
o as EvmRelay,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
d as Garden,
|
|
10
|
+
l as OrderActions,
|
|
11
11
|
c as OrderStatus,
|
|
12
12
|
S as ParseOrderStatus,
|
|
13
13
|
A as ParseSwapStatus,
|
|
@@ -23,18 +23,19 @@ export {
|
|
|
23
23
|
v as botanix,
|
|
24
24
|
C as checkStarknetAlloance,
|
|
25
25
|
P as checkStarknetAllowanceAndApprove,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
F as
|
|
33
|
-
g as
|
|
34
|
-
q as
|
|
35
|
-
G as
|
|
36
|
-
I as
|
|
37
|
-
L as
|
|
38
|
-
M as
|
|
39
|
-
b as
|
|
26
|
+
x as constructOrderPair,
|
|
27
|
+
E as evmToViemChainMap,
|
|
28
|
+
N as filterDeadlineExpiredOrders,
|
|
29
|
+
R as hyperliquid,
|
|
30
|
+
f as hyperliquidTestnet,
|
|
31
|
+
B as isExpired,
|
|
32
|
+
F as isOrderExpired,
|
|
33
|
+
g as isStarknetAllowanceSufficient,
|
|
34
|
+
q as parseAction,
|
|
35
|
+
G as parseActionFromStatus,
|
|
36
|
+
I as resolveApiConfig,
|
|
37
|
+
L as solanaProgramAddress,
|
|
38
|
+
M as switchOrAddNetwork,
|
|
39
|
+
b as toXOnly,
|
|
40
|
+
D as validateBTCAddress
|
|
40
41
|
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { SolanaHTLC } from './lib/solana/htlc/solanaHTLC';
|
|
|
13
13
|
export { BlockNumberFetcher } from './lib/blockNumberFetcher/blockNumber';
|
|
14
14
|
export type { IBlockNumberFetcher } from './lib/blockNumberFetcher/blockNumber';
|
|
15
15
|
export { OrderStatus, SwapStatus } from './lib/orderStatus/status';
|
|
16
|
-
export { parseAction, ParseOrderStatus, ParseSwapStatus, isExpired, filterDeadlineExpiredOrders, parseActionFromStatus, } from './lib/orderStatus/orderStatusParser';
|
|
16
|
+
export { parseAction, ParseOrderStatus, ParseSwapStatus, isExpired, isOrderExpired, filterDeadlineExpiredOrders, parseActionFromStatus, } from './lib/orderStatus/orderStatusParser';
|
|
17
17
|
export { SecretManager } from './lib/secretManager/secretManager';
|
|
18
18
|
export type { ISecretManager, Secret, } from './lib/secretManager/secretManager.types';
|
|
19
19
|
export { checkAllowanceAndApprove as checkStarknetAllowanceAndApprove, isAllowanceSufficient as isStarknetAllowanceSufficient, checkAllowance as checkStarknetAlloance, } from './lib/starknet/checkAllowanceAndApprove';
|
|
@@ -55,19 +55,14 @@ export declare class GardenHTLC implements IHTLCWallet {
|
|
|
55
55
|
*/
|
|
56
56
|
id(): string;
|
|
57
57
|
private _buildRawTx;
|
|
58
|
-
private _tempBuildRawTx;
|
|
59
|
-
/**
|
|
60
|
-
* Builds a raw unsigned transaction with utxos from gardenHTLC address
|
|
61
|
-
* and uses signer's address as the output address
|
|
62
|
-
*/
|
|
63
|
-
private buildRawTx;
|
|
64
58
|
/**
|
|
65
59
|
* prevout script for the gardenHTLC address
|
|
66
60
|
*/
|
|
67
61
|
private getOutputScript;
|
|
68
62
|
init(fee?: number): Promise<string>;
|
|
69
63
|
generateRedeemSACP(secret: string, receiver: string, fee?: number): Promise<string>;
|
|
70
|
-
generateInstantRefundSACP(receiver: string
|
|
64
|
+
generateInstantRefundSACP(receiver: string): Promise<string>;
|
|
65
|
+
generateInstantRefundSACPWithHash(hash: string[]): Promise<string[]>;
|
|
71
66
|
/**
|
|
72
67
|
* Instantly refunds the funds to the initiator given the counterparty's signatures and pubkey
|
|
73
68
|
*
|
|
@@ -65,6 +65,7 @@ export type Strategies = Record<string, {
|
|
|
65
65
|
minAmount: string;
|
|
66
66
|
maxAmount: string;
|
|
67
67
|
fee: number;
|
|
68
|
+
fixed_fee: number;
|
|
68
69
|
}>;
|
|
69
70
|
export type StrategiesResponse = APIResponse<{
|
|
70
71
|
[strategy: string]: {
|
|
@@ -74,6 +75,7 @@ export type StrategiesResponse = APIResponse<{
|
|
|
74
75
|
fee: number;
|
|
75
76
|
source_chain: Chain;
|
|
76
77
|
dest_chain: Chain;
|
|
78
|
+
fixed_fee: string;
|
|
77
79
|
source_asset: {
|
|
78
80
|
asset: string;
|
|
79
81
|
token_id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gardenfi/core",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "vite build",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@coral-xyz/anchor": "^0.30.1",
|
|
30
|
-
"@gardenfi/orderbook": "2.3.
|
|
31
|
-
"@gardenfi/utils": "2.3.
|
|
30
|
+
"@gardenfi/orderbook": "2.3.2",
|
|
31
|
+
"@gardenfi/utils": "2.3.2",
|
|
32
32
|
"bignumber.js": "^9.1.2",
|
|
33
33
|
"bip32": "^4.0.0",
|
|
34
34
|
"bip39": "^3.1.0",
|