@gardenfi/core 0.2.0-beta.99 → 0.3.0-beta.10
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/index.cjs +12 -12
- package/dist/index.js +849 -784
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/bitcoin/htlc.d.ts +1 -0
- package/dist/src/lib/garden/garden.d.ts +2 -0
- package/dist/src/lib/utils.d.ts +0 -1
- package/package.json +3 -3
package/dist/src/index.d.ts
CHANGED
|
@@ -11,4 +11,4 @@ export { SecretManager } from './lib/secretManager/secretManager';
|
|
|
11
11
|
export type { ISecretManager, Secret, } from './lib/secretManager/secretManager.types';
|
|
12
12
|
export { Quote } from './lib/quote/quote';
|
|
13
13
|
export type { IQuote, QuoteResponse, Strategies, } from './lib/quote/quote.types';
|
|
14
|
-
export { switchOrAddNetwork, constructOrderPair, evmToViemChainMap, validateBTCAddress,
|
|
14
|
+
export { switchOrAddNetwork, constructOrderPair, evmToViemChainMap, validateBTCAddress, } from './lib/utils';
|
|
@@ -64,6 +64,7 @@ export declare class GardenHTLC implements IHTLCWallet {
|
|
|
64
64
|
*/
|
|
65
65
|
private getOutputScript;
|
|
66
66
|
init(fee?: number): Promise<string>;
|
|
67
|
+
generateInstantRefundSACP(receiver: string, fee?: number): Promise<string>;
|
|
67
68
|
/**
|
|
68
69
|
* Instantly refunds the funds to the initiator given the counterparty's signatures and pubkey
|
|
69
70
|
*
|
|
@@ -21,6 +21,7 @@ export declare class Garden implements IGardenJS {
|
|
|
21
21
|
private evmAddress;
|
|
22
22
|
private orderExecutorCache;
|
|
23
23
|
private blockNumberFetcher;
|
|
24
|
+
private refundSacpCache;
|
|
24
25
|
constructor(config: {
|
|
25
26
|
orderbookURl: string;
|
|
26
27
|
secretManager: ISecretManager;
|
|
@@ -43,6 +44,7 @@ export declare class Garden implements IGardenJS {
|
|
|
43
44
|
private btcRedeem;
|
|
44
45
|
private btcRefund;
|
|
45
46
|
private getWallet;
|
|
47
|
+
private postRefundSACP;
|
|
46
48
|
private emit;
|
|
47
49
|
on<E extends keyof GardenEvents>(event: E, cb: GardenEvents[E]): void;
|
|
48
50
|
off<E extends keyof GardenEvents>(event: E, cb: GardenEvents[E]): void;
|
package/dist/src/lib/utils.d.ts
CHANGED
|
@@ -35,4 +35,3 @@ export declare const switchOrAddNetwork: (chain: Chain, walletClient: WalletClie
|
|
|
35
35
|
}, string>;
|
|
36
36
|
export declare const constructOrderPair: (sourceChain: Chain, sourceAsset: string, destChain: Chain, destAsset: string) => string;
|
|
37
37
|
export declare function validateBTCAddress(address: string, networkType: NetworkType): boolean;
|
|
38
|
-
export declare const testForReactHooks: () => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gardenfi/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-beta.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@catalogfi/utils": "^0.1.6",
|
|
30
30
|
"@catalogfi/wallets": "^0.2.51",
|
|
31
|
-
"@gardenfi/orderbook": "^0.2.0-beta.
|
|
32
|
-
"@gardenfi/utils": "^0.0.1-beta.
|
|
31
|
+
"@gardenfi/orderbook": "^0.2.0-beta.38",
|
|
32
|
+
"@gardenfi/utils": "^0.0.1-beta.19",
|
|
33
33
|
"bignumber.js": "^9.1.2",
|
|
34
34
|
"bitcoinjs-lib": "^6.1.6",
|
|
35
35
|
"tiny-secp256k1": "^2.2.3",
|