@gardenfi/core 2.5.2-beta.1 → 2.5.2-beta.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/README.md +8 -10
- package/dist/{ccip-ClC_qFux.js → ccip-Bg3f6Dwh.js} +1 -1
- package/dist/{ccip-DXEnYAa-.cjs → ccip-DSGVoxhU.cjs} +1 -1
- package/dist/{index-ClypxCAG.js → index-D-NHDZrP.js} +5907 -5907
- package/dist/{index-BBGDpDtp.cjs → index-s2tkcnpk.cjs} +51 -51
- package/dist/index.cjs +1 -1
- package/dist/index.js +22 -24
- package/dist/src/index.d.ts +0 -1
- package/package.json +3 -3
- package/dist/src/lib/orderStatus/statusParser.d.ts +0 -16
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-s2tkcnpk.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-D-NHDZrP.js";
|
|
2
2
|
export {
|
|
3
3
|
e as API,
|
|
4
4
|
r as BitcoinNetwork,
|
|
@@ -8,36 +8,34 @@ export {
|
|
|
8
8
|
o as EvmRelay,
|
|
9
9
|
d as Garden,
|
|
10
10
|
l as OrderActions,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
c as OrderStatus,
|
|
12
|
+
S as ParseOrderStatus,
|
|
13
13
|
A as ParseSwapStatus,
|
|
14
14
|
p as Quote,
|
|
15
15
|
u as STARKNET_CONFIG,
|
|
16
16
|
k as SecretManager,
|
|
17
17
|
O as SolanaHTLC,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
h as SolanaRelay,
|
|
19
|
+
m as SolanaRelayerAddress,
|
|
20
|
+
w as StarknetHTLC,
|
|
21
21
|
y as StarknetRelay,
|
|
22
|
-
P as Status,
|
|
23
22
|
T as SwapStatus,
|
|
24
23
|
v as botanix,
|
|
25
24
|
C as checkStarknetAlloance,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
K as validateBTCAddress
|
|
25
|
+
P as checkStarknetAllowanceAndApprove,
|
|
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
|
|
43
41
|
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ 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
16
|
export { parseAction, ParseOrderStatus, ParseSwapStatus, isExpired, isOrderExpired, filterDeadlineExpiredOrders, parseActionFromStatus, } from './lib/orderStatus/orderStatusParser';
|
|
17
|
-
export { newOrderStatusParser, Status } from './lib/orderStatus/statusParser';
|
|
18
17
|
export { SecretManager } from './lib/secretManager/secretManager';
|
|
19
18
|
export type { ISecretManager, Secret, } from './lib/secretManager/secretManager.types';
|
|
20
19
|
export { checkAllowanceAndApprove as checkStarknetAllowanceAndApprove, isAllowanceSufficient as isStarknetAllowanceSufficient, checkAllowance as checkStarknetAlloance, } from './lib/starknet/checkAllowanceAndApprove';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gardenfi/core",
|
|
3
|
-
"version": "2.5.2-beta.
|
|
3
|
+
"version": "2.5.2-beta.2",
|
|
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.
|
|
32
|
-
"@gardenfi/utils": "2.5.
|
|
31
|
+
"@gardenfi/orderbook": "2.5.2-beta.1",
|
|
32
|
+
"@gardenfi/utils": "2.5.2",
|
|
33
33
|
"@mysten/signers": "^0.3.4",
|
|
34
34
|
"@mysten/sui": "^1.37.1",
|
|
35
35
|
"@mysten/wallet-standard": "^0.16.9",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MatchedOrder } from '@gardenfi/orderbook';
|
|
2
|
-
|
|
3
|
-
export declare const Status: {
|
|
4
|
-
Created: string;
|
|
5
|
-
InitiateDetected: string;
|
|
6
|
-
Initiated: string;
|
|
7
|
-
AwaitingRedeem: string;
|
|
8
|
-
RedeemDetected: string;
|
|
9
|
-
Redeemed: string;
|
|
10
|
-
AwaitingRefund: string;
|
|
11
|
-
RefundDetected: string;
|
|
12
|
-
Refunded: string;
|
|
13
|
-
Expired: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const newOrderStatusParser: (order: MatchedOrder) => string;
|
|
16
|
-
export declare const isDeadlinePassed: (deadline: number) => boolean;
|