@gardenfi/orderbook 0.2.0-beta.4 → 0.2.0-beta.5

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/index7.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=(n,o,t)=>{const r=n.endpoint(o);return t&&Object.entries(t).forEach(([c,e])=>{e!==void 0&&r.searchParams.append(c,e.toString())}),r};exports.ConstructUrl=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@catalogfi/utils");const c=(n,o,t)=>{const r=n.endpoint(o);return t&&Object.entries(t).forEach(([i,e])=>{e!==void 0&&r.searchParams.append(i,e.toString())}),r};exports.ConstructUrl=c;
package/dist/index7.js CHANGED
@@ -1,9 +1,10 @@
1
- const i = (o, e, t) => {
1
+ import "@catalogfi/utils";
2
+ const s = (o, e, t) => {
2
3
  const r = o.endpoint(e);
3
- return t && Object.entries(t).forEach(([c, n]) => {
4
- n !== void 0 && r.searchParams.append(c, n.toString());
4
+ return t && Object.entries(t).forEach(([i, n]) => {
5
+ n !== void 0 && r.searchParams.append(i, n.toString());
5
6
  }), r;
6
7
  };
7
8
  export {
8
- i as ConstructUrl
9
+ s as ConstructUrl
9
10
  };
@@ -1,4 +1,6 @@
1
+ import { WalletClient, Chain } from 'viem';
1
2
  import { Url } from '@gardenfi/utils';
3
+ import { EvmChain, Chain as GardenChain } from './asset';
2
4
 
3
5
  /**
4
6
  * Constructs a URL with the given base URL, endpoint and parameters (query params)
@@ -9,3 +11,5 @@ import { Url } from '@gardenfi/utils';
9
11
  export declare const ConstructUrl: (baseUrl: Url, endPoint: string, params?: {
10
12
  [key: string]: string | number | boolean | undefined;
11
13
  }) => URL;
14
+ export declare const ChainToID: Record<EvmChain, Chain>;
15
+ export declare const switchOrAddNetwork: (chain: GardenChain, walletClient: WalletClient) => Promise<import('@catalogfi/utils').Result<string, never> | import('@catalogfi/utils').Result<never, string>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gardenfi/orderbook",
3
- "version": "0.2.0-beta.4",
3
+ "version": "0.2.0-beta.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@catalogfi/utils": "^0.1.6",
30
30
  "@catalogfi/wallets": "0.2.43",
31
- "@gardenfi/utils": "^0.0.1-beta.4",
31
+ "@gardenfi/utils": "^0.0.1-beta.6",
32
32
  "bufferutil": "^4.0.8",
33
33
  "siwe": "^2.1.4",
34
34
  "utf-8-validate": "^6.0.3",