@gardenfi/core 3.1.3-beta.10 → 3.1.3-beta.12
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-BlFOttA4.js → ccip-BWn0XTSk.js} +1 -1
- package/dist/{ccip-DbPF0sar.cjs → ccip-nA35Qoqq.cjs} +1 -1
- package/dist/{index-S979upkn.cjs → index-KYoyd7o6.cjs} +36 -36
- package/dist/{index-Cj-02_XM.js → index-eQAvhrQk.js} +1157 -1096
- package/dist/index.cjs +1 -1
- package/dist/index.js +22 -21
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/evm/abi/coreWriter.d.ts +24 -0
- package/dist/src/lib/evm/relay/coreWrite.d.ts +9 -0
- package/dist/src/lib/evm/relay/evmRelay.d.ts +2 -2
- package/dist/src/lib/switchOrAddNetwork.d.ts +2 -1
- 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-KYoyd7o6.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.OrderCreationStatus=e.OrderCreationStatus;exports.Quote=e.Quote;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.TRON_CONFIG=e.TRON_CONFIG;exports.XRPL_CONFIG=e.XRPL_CONFIG;exports.XrplRelay=e.XrplRelay;exports.alpenTestnet=e.alpenTestnet;exports.arcTestnet=e.arcTestnet;exports.botanixMainnet=e.botanixMainnet;exports.checkStarknetAlloance=e.checkAllowance;exports.checkStarknetAllowanceAndApprove=e.checkAllowanceAndApprove;exports.evmToViemChainMap=e.evmToViemChainMap;exports.getChainNameFromChainId=e.getChainNameFromChainId;exports.hyperevm=e.hyperevm;exports.hyperliquidTestnet=e.hyperliquidTestnet;exports.isStarknetAllowanceSufficient=e.isAllowanceSufficient;exports.megaethMainnet=e.megaethMainnet;exports.resolveApiConfig=e.resolveApiConfig;exports.solanaProgramAddress=e.solanaProgramAddress;exports.switchOrAddNetwork=e.switchOrAddNetwork;exports.toXOnly=e.toXOnly;exports.validateBTCAddress=e.validateBTCAddress;exports.validateLTCAddress=e.validateLTCAddress;exports.validateLightningAddress=e.validateLightningAddress;exports.validateSparkAddress=e.validateSparkAddress;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as s, K as t, L as n, M as r, N as i, E as l, G as o, Y as d, Q as A, P as S, R as T, m as c, k as C, j as h, V as k, h as p, S as v, T as m, U as I, X as N, D as y, I as F, x as O, p as R, n as L, y as g, z as w, A as E, C as G, o as _, F as u, r as M, W as P, J as f, t as B, v as X, q as x, w as U, u as q } from "./index-eQAvhrQk.js";
|
|
2
2
|
export {
|
|
3
3
|
s as API,
|
|
4
4
|
t as BitcoinNetwork,
|
|
@@ -10,9 +10,9 @@ export {
|
|
|
10
10
|
d as OrderCreationStatus,
|
|
11
11
|
A as Quote,
|
|
12
12
|
S as STARKNET_CONFIG,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
T as SUI_CONFIG,
|
|
14
|
+
c as SecretManager,
|
|
15
|
+
C as SolanaHTLC,
|
|
16
16
|
h as SolanaRelay,
|
|
17
17
|
k as SolanaRelayerAddress,
|
|
18
18
|
p as StarknetHTLC,
|
|
@@ -21,21 +21,22 @@ export {
|
|
|
21
21
|
I as XRPL_CONFIG,
|
|
22
22
|
N as XrplRelay,
|
|
23
23
|
y as alpenTestnet,
|
|
24
|
-
F as
|
|
25
|
-
O as
|
|
26
|
-
R as
|
|
27
|
-
L as
|
|
28
|
-
g as
|
|
29
|
-
w as
|
|
30
|
-
E as
|
|
31
|
-
G as
|
|
32
|
-
_ as
|
|
33
|
-
u as
|
|
34
|
-
M as
|
|
35
|
-
P as
|
|
36
|
-
f as
|
|
37
|
-
B as
|
|
38
|
-
X as
|
|
39
|
-
x as
|
|
40
|
-
U as
|
|
24
|
+
F as arcTestnet,
|
|
25
|
+
O as botanixMainnet,
|
|
26
|
+
R as checkStarknetAlloance,
|
|
27
|
+
L as checkStarknetAllowanceAndApprove,
|
|
28
|
+
g as evmToViemChainMap,
|
|
29
|
+
w as getChainNameFromChainId,
|
|
30
|
+
E as hyperevm,
|
|
31
|
+
G as hyperliquidTestnet,
|
|
32
|
+
_ as isStarknetAllowanceSufficient,
|
|
33
|
+
u as megaethMainnet,
|
|
34
|
+
M as resolveApiConfig,
|
|
35
|
+
P as solanaProgramAddress,
|
|
36
|
+
f as switchOrAddNetwork,
|
|
37
|
+
B as toXOnly,
|
|
38
|
+
X as validateBTCAddress,
|
|
39
|
+
x as validateLTCAddress,
|
|
40
|
+
U as validateLightningAddress,
|
|
41
|
+
q as validateSparkAddress
|
|
41
42
|
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export { checkAllowanceAndApprove as checkStarknetAllowanceAndApprove, isAllowan
|
|
|
16
16
|
export { Quote } from './lib/quote/quote';
|
|
17
17
|
export type { StrategiesResponse, BaseQuoteParams, IQuote, QuoteOptions, QuoteParamsForAssets, QuoteParamsForOrderPair, QuoteResponse, Strategies, } from './lib/quote/quote.types';
|
|
18
18
|
export { validateBTCAddress, toXOnly, resolveApiConfig, validateLTCAddress, validateSparkAddress, validateLightningAddress, } from './lib/utils';
|
|
19
|
-
export { botanixMainnet, evmToViemChainMap, getChainNameFromChainId, hyperevm, hyperliquidTestnet, alpenTestnet, megaethMainnet, switchOrAddNetwork, } from './lib/switchOrAddNetwork';
|
|
19
|
+
export { botanixMainnet, evmToViemChainMap, getChainNameFromChainId, hyperevm, hyperliquidTestnet, alpenTestnet, megaethMainnet, arcTestnet, switchOrAddNetwork, } from './lib/switchOrAddNetwork';
|
|
20
20
|
export { BitcoinNetwork } from './lib/bitcoin/provider/provider.interface';
|
|
21
21
|
export { BitcoinProvider } from './lib/bitcoin/provider/provider';
|
|
22
22
|
export { BitcoinWallet } from './lib/bitcoin/wallet/wallet';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const CoreWriterAbi: ({
|
|
2
|
+
anonymous: boolean;
|
|
3
|
+
inputs: {
|
|
4
|
+
indexed: boolean;
|
|
5
|
+
internalType: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
}[];
|
|
9
|
+
name: string;
|
|
10
|
+
type: string;
|
|
11
|
+
outputs?: undefined;
|
|
12
|
+
stateMutability?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
inputs: {
|
|
15
|
+
internalType: string;
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
}[];
|
|
19
|
+
name: string;
|
|
20
|
+
outputs: never[];
|
|
21
|
+
stateMutability: string;
|
|
22
|
+
type: string;
|
|
23
|
+
anonymous?: undefined;
|
|
24
|
+
})[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WalletClient } from 'viem';
|
|
2
|
+
import { AsyncResult } from '@gardenfi/utils';
|
|
3
|
+
|
|
4
|
+
export declare const executeHyperCoreToEvmBridge: (wallet: WalletClient, bridgeTx: {
|
|
5
|
+
to: string;
|
|
6
|
+
value: string;
|
|
7
|
+
data: string;
|
|
8
|
+
gas_limit: string;
|
|
9
|
+
}) => AsyncResult<string, string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsyncResult, IAuth, Url } from '@gardenfi/utils';
|
|
2
|
-
import {
|
|
2
|
+
import { EvmOrderResponseWithCoreTransfer, Order } from '@gardenfi/orderbook';
|
|
3
3
|
import { WalletClient } from 'viem';
|
|
4
4
|
|
|
5
5
|
export declare class EvmRelay {
|
|
@@ -9,7 +9,7 @@ export declare class EvmRelay {
|
|
|
9
9
|
private relayer;
|
|
10
10
|
constructor(url: string | Url, wallet: WalletClient, auth: IAuth);
|
|
11
11
|
get htlcActorAddress(): `0x${string}`;
|
|
12
|
-
initiate(order: Order |
|
|
12
|
+
initiate(order: Order | EvmOrderResponseWithCoreTransfer): AsyncResult<string, string>;
|
|
13
13
|
private initiateFromAPI;
|
|
14
14
|
redeem(order: Order, secret: string): AsyncResult<string, string>;
|
|
15
15
|
refund(): AsyncResult<string, string>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Chain as viemChain } from 'viem/chains';
|
|
1
|
+
import { arcTestnet, Chain as viemChain } from 'viem/chains';
|
|
2
2
|
import { EVMChains } from '@gardenfi/orderbook';
|
|
3
3
|
import { WalletClient } from 'viem';
|
|
4
4
|
import { AsyncResult } from '@gardenfi/utils';
|
|
5
5
|
|
|
6
|
+
export { arcTestnet };
|
|
6
7
|
export declare const botanixMainnet: viemChain;
|
|
7
8
|
export declare const hyperliquidTestnet: viemChain;
|
|
8
9
|
export declare const hyperevm: viemChain;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gardenfi/core",
|
|
3
|
-
"version": "3.1.3-beta.
|
|
3
|
+
"version": "3.1.3-beta.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "vite build",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"@buildonspark/spark-sdk": "^0.6.3",
|
|
31
31
|
"@coral-xyz/anchor": "^0.31.1",
|
|
32
32
|
"@crossmarkio/sdk": "^0.4.0",
|
|
33
|
-
"@gardenfi/orderbook": "3.1.3-beta.
|
|
34
|
-
"@gardenfi/utils": "3.1.1-beta.
|
|
33
|
+
"@gardenfi/orderbook": "3.1.3-beta.12",
|
|
34
|
+
"@gardenfi/utils": "3.1.1-beta.10",
|
|
35
35
|
"@mysten/signers": "^0.3.4",
|
|
36
36
|
"@mysten/sui": "^1.37.1",
|
|
37
37
|
"@mysten/wallet-standard": "^0.16.9",
|