@gardenfi/core 0.2.0-beta.38 → 0.2.0-beta.39
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 -9
- package/dist/index.js +4356 -2722
- package/dist/src/lib/utils.d.ts +3 -1
- package/package.json +2 -2
package/dist/src/lib/utils.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Chain as viemChain } from 'viem/chains';
|
|
1
2
|
import { IBaseWallet } from '@catalogfi/wallets';
|
|
2
|
-
import { Chain } from '@gardenfi/orderbook';
|
|
3
|
+
import { Chain, EvmChain } from '@gardenfi/orderbook';
|
|
3
4
|
import { WalletClient } from 'viem';
|
|
4
5
|
import { AsyncResult } from '@catalogfi/utils';
|
|
5
6
|
|
|
@@ -21,6 +22,7 @@ export declare function prefixScriptLength(s: Buffer): Buffer;
|
|
|
21
22
|
export declare function sortLeaves(leaf1: Buffer, leaf2: Buffer): Buffer[];
|
|
22
23
|
export declare const toXOnly: (pubKey: string) => string;
|
|
23
24
|
export declare const isValidBitcoinPubKey: (pubKey: string) => boolean;
|
|
25
|
+
export declare const ChainToID: Record<EvmChain, viemChain>;
|
|
24
26
|
/**
|
|
25
27
|
* Switches or adds a network to the wallet
|
|
26
28
|
* @param chain Garden supported chain
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gardenfi/core",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.39",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@catalogfi/utils": "^0.1.6",
|
|
30
30
|
"@catalogfi/wallets": "^0.2.50",
|
|
31
|
-
"@gardenfi/orderbook": "^0.2.0-beta.
|
|
31
|
+
"@gardenfi/orderbook": "^0.2.0-beta.14",
|
|
32
32
|
"@gardenfi/utils": "^0.0.1-beta.18",
|
|
33
33
|
"bignumber.js": "^9.1.2",
|
|
34
34
|
"bitcoinjs-lib": "^6.1.6",
|