@gardenfi/core 3.1.3-beta.11 → 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-BaRjzpqL.js → ccip-BWn0XTSk.js} +1 -1
- package/dist/{ccip-sZYxy5vq.cjs → ccip-nA35Qoqq.cjs} +1 -1
- package/dist/{index-DMnjK6KV.cjs → index-KYoyd7o6.cjs} +5 -5
- package/dist/{index-Do3FJhaT.js → index-eQAvhrQk.js} +957 -933
- package/dist/index.cjs +1 -1
- package/dist/index.js +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/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 { 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-
|
|
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,
|
|
@@ -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>;
|
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",
|