@lifi/sdk 0.0.0-preview-267433d4 → 0.0.0-preview-dd8065ff

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lifi/sdk
2
2
 
3
- ## 0.0.0-preview-267433d4
3
+ ## 0.0.0-preview-dd8065ff
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -27,12 +27,10 @@ export type RPCUrls = Partial<Record<ChainId, string[]>>;
27
27
  export interface SDKProvider {
28
28
  readonly type: ChainType;
29
29
  /**
30
- * Validates a wallet address. Without `chainId`, the provider accepts any
31
- * address format of its ecosystem, as before. `chainId`, when given, is a
32
- * chain of this provider's ecosystem: a provider whose chains share one
33
- * address format may ignore it; a provider whose chains differ accepts only
34
- * that chain's format and refuses a chain it does not know. Never forward
35
- * `chainId` to a library function whose second parameter means something else.
30
+ * Validates a wallet address. With `chainId`, a provider whose chains use
31
+ * different address formats accepts only that chain's format and refuses a
32
+ * chain it does not know. Never forward `chainId` to a library function whose
33
+ * second parameter means something else.
36
34
  */
37
35
  isAddress(address: string, chainId?: ChainId): boolean;
38
36
  /**
@@ -5,7 +5,7 @@ const checkPackageUpdates = async (packageName, packageVersion) => {
5
5
  try {
6
6
  const pkgName = packageName ?? "@lifi/sdk";
7
7
  const latestVersion = (await (await fetch(`https://registry.npmjs.org/${pkgName}/latest`)).json()).version;
8
- const currentVersion = packageVersion ?? "0.0.0-preview-267433d4";
8
+ const currentVersion = packageVersion ?? "0.0.0-preview-dd8065ff";
9
9
  if (latestVersion > currentVersion) console.warn(`${pkgName}: new package version is available. Please update as soon as possible to enjoy the newest features. Current version: ${currentVersion}. Latest version: ${latestVersion}.`);
10
10
  } catch (_error) {}
11
11
  };
@@ -1,5 +1,5 @@
1
1
  //#region src/version.d.ts
2
2
  export declare const name = "@lifi/sdk";
3
- export declare const version = "0.0.0-preview-267433d4";
3
+ export declare const version = "0.0.0-preview-dd8065ff";
4
4
  //#endregion
5
5
  //# sourceMappingURL=version.d.ts.map
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  //#region src/version.ts
3
3
  const name = "@lifi/sdk";
4
- const version = "0.0.0-preview-267433d4";
4
+ const version = "0.0.0-preview-dd8065ff";
5
5
  //#endregion
6
6
  exports.name = name;
7
7
  exports.version = version;
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","names":[],"sources":["../../src/version.ts"],"sourcesContent":["export const name = '@lifi/sdk'\nexport const version = '0.0.0-preview-267433d4'\n"],"mappings":";;AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
1
+ {"version":3,"file":"version.js","names":[],"sources":["../../src/version.ts"],"sourcesContent":["export const name = '@lifi/sdk'\nexport const version = '0.0.0-preview-dd8065ff'\n"],"mappings":";;AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
@@ -27,12 +27,10 @@ export type RPCUrls = Partial<Record<ChainId, string[]>>;
27
27
  export interface SDKProvider {
28
28
  readonly type: ChainType;
29
29
  /**
30
- * Validates a wallet address. Without `chainId`, the provider accepts any
31
- * address format of its ecosystem, as before. `chainId`, when given, is a
32
- * chain of this provider's ecosystem: a provider whose chains share one
33
- * address format may ignore it; a provider whose chains differ accepts only
34
- * that chain's format and refuses a chain it does not know. Never forward
35
- * `chainId` to a library function whose second parameter means something else.
30
+ * Validates a wallet address. With `chainId`, a provider whose chains use
31
+ * different address formats accepts only that chain's format and refuses a
32
+ * chain it does not know. Never forward `chainId` to a library function whose
33
+ * second parameter means something else.
36
34
  */
37
35
  isAddress(address: string, chainId?: ChainId): boolean;
38
36
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","names":[],"sources":["../../../src/types/core.ts"],"mappings":";;;;YAmBY,sBACV,SAAS,wBACN,sBAAsB,QAAQ;iBAElB;EACf;EACA;EACA;EACA;EACA,eAAe;EACf,mBAAmB;EACnB,SAAS;EACT;EACA;E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L,wBACV,QAAQ,uBACL,QAAQ;iBAEI;EACf,+BAA+B;EAC/B,kBAAkB;EAClB,+BAA+B;EAC/B,mBAAmB;EACnB;EACA;;YAGU;YAEA;YAUA;YAUA;EACV,MAAM;EACN,QAAQ;EACR;EACA,YAAY;EACZ;EACA;EACA;EACA;EACA;EACA,SAAS;EACT;EAEA;IAAU;IAAuB;IAAiB;;;iBAGnC;EACf;EACA;EACA,QAAQ;EACR,SAAS,MAAM;EACf;EACA;EACA,UAAU;EACV,WAAW;EACX,WAAW;EACX;EACA;EAEA;IAAU;IAAuB;IAAiB;;;YAGxC"}
1
+ {"version":3,"file":"core.d.ts","names":[],"sources":["../../../src/types/core.ts"],"mappings":";;;;YAmBY,sBACV,SAAS,wBACN,sBAAsB,QAAQ;iBAElB;EACf;EACA;EACA;EACA;EACA,eAAe;EACf,mBAAmB;EACnB,SAAS;EACT;EACA;EACA;EACA;EACA;EACA,qBAAqB;EACrB,UAAU;;iBAGK,kBAAkB,QAAQ,KAAK;EAC9C;EACA,YAAY;;YAGF,UAAU,QAAQ,OAAO;iBAEpB;WACN,MAAM;;;;;;;EAOf,UAAU,iBAAiB,UAAU;;;;;;EAMrC,gBAAgB;EAChB,eACE,cACA,QAAQ,WACR,UAAU,SACV,QAAQ,UACP;EACH,gBAAgB,SAAS,sBAAsB,QAAQ;EACvD,WACE,QAAQ,WACR,uBACA,QAAQ,UACP,QAAQ;;iBAGI;EACf,QAAQ;EACR,WAAW;EACX,YAAY,MAAM,YAAY;EAC9B,aAAa,WAAW;EACxB,UAAU,QAAQ;EAClB,aAAa,QAAQ;EACrB,aAAa,SAAS,UAAU,QAAQ;EACxC,cAAc,QAAQ;EACtB,oBAAoB,SAAS,UAAU;;iBAGxB;EACf;EACA,mBAAmB;;iBAGJ;EACf;EACA;EACA;;;;;;YAOU,yBAAyB;iBAEpB;EACf;EACA;EACA,eAAe,WAAW;EAC1B,YACE,QAAQ,WACR,MAAM,kBACN,cAAc,yBACb,QAAQ;;iBAGI;EACf,OAAO;EACP,WAAW;EACX,mBAAmB;;YAGT,+BAA+B,QACzC,eAAe;iBAGA,sBAAsB,KAAK;EAC1C,OAAO;;iBAGQ,yBAAyB;EACxC,YAAY;;YAGF,eAAe;EACzB,YAAY;;YAGF;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;YAGU,2BAA2B,QAAQ,eAAe,QAAQ;YAE1D,mBAAmB,cAAc;iBAE5B,qCAAqC;EACpD;;YAGU,gCACV,kBAAkB,iCACf,QAAQ;iBAEI;EACf,SAAS;EACT;EACA;EACA;EACA;;YAGU,4BACV,QAAQ,mCACL;iBAEY;EACf,SAAS;EACT;EACA;;YAGU,gCACV,QAAQ,6BACL;iBAEY;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;;iBAGe;EACf,eAAe;EACf;EACA,eAAe;;YAGL,wBACV,QAAQ,uBACL,QAAQ;iBAEI;EACf,+BAA+B;EAC/B,kBAAkB;EAClB,+BAA+B;EAC/B,mBAAmB;EACnB;EACA;;YAGU;YAEA;YAUA;YAUA;EACV,MAAM;EACN,QAAQ;EACR;EACA,YAAY;EACZ;EACA;EACA;EACA;EACA;EACA,SAAS;EACT;EAEA;IAAU;IAAuB;IAAiB;;;iBAGnC;EACf;EACA;EACA,QAAQ;EACR,SAAS,MAAM;EACf;EACA;EACA,UAAU;EACV,WAAW;EACX,WAAW;EACX;EACA;EAEA;IAAU;IAAuB;IAAiB;;;YAGxC"}
@@ -4,7 +4,7 @@ const checkPackageUpdates = async (packageName, packageVersion) => {
4
4
  try {
5
5
  const pkgName = packageName ?? "@lifi/sdk";
6
6
  const latestVersion = (await (await fetch(`https://registry.npmjs.org/${pkgName}/latest`)).json()).version;
7
- const currentVersion = packageVersion ?? "0.0.0-preview-267433d4";
7
+ const currentVersion = packageVersion ?? "0.0.0-preview-dd8065ff";
8
8
  if (latestVersion > currentVersion) console.warn(`${pkgName}: new package version is available. Please update as soon as possible to enjoy the newest features. Current version: ${currentVersion}. Latest version: ${latestVersion}.`);
9
9
  } catch (_error) {}
10
10
  };
@@ -1,5 +1,5 @@
1
1
  //#region src/version.d.ts
2
2
  export declare const name = "@lifi/sdk";
3
- export declare const version = "0.0.0-preview-267433d4";
3
+ export declare const version = "0.0.0-preview-dd8065ff";
4
4
  //#endregion
5
5
  //# sourceMappingURL=version.d.ts.map
@@ -1,6 +1,6 @@
1
1
  //#region src/version.ts
2
2
  const name = "@lifi/sdk";
3
- const version = "0.0.0-preview-267433d4";
3
+ const version = "0.0.0-preview-dd8065ff";
4
4
  //#endregion
5
5
  export { name, version };
6
6
 
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","names":[],"sources":["../../src/version.ts"],"sourcesContent":["export const name = '@lifi/sdk'\nexport const version = '0.0.0-preview-267433d4'\n"],"mappings":";AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
1
+ {"version":3,"file":"version.js","names":[],"sources":["../../src/version.ts"],"sourcesContent":["export const name = '@lifi/sdk'\nexport const version = '0.0.0-preview-dd8065ff'\n"],"mappings":";AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/sdk",
3
- "version": "0.0.0-preview-267433d4",
3
+ "version": "0.0.0-preview-dd8065ff",
4
4
  "description": "LI.FI SDK for Any-to-Any Cross-Chain-Swap",
5
5
  "homepage": "https://github.com/lifinance/sdk",
6
6
  "bugs": {
package/src/types/core.ts CHANGED
@@ -48,12 +48,10 @@ export type RPCUrls = Partial<Record<ChainId, string[]>>
48
48
  export interface SDKProvider {
49
49
  readonly type: ChainType
50
50
  /**
51
- * Validates a wallet address. Without `chainId`, the provider accepts any
52
- * address format of its ecosystem, as before. `chainId`, when given, is a
53
- * chain of this provider's ecosystem: a provider whose chains share one
54
- * address format may ignore it; a provider whose chains differ accepts only
55
- * that chain's format and refuses a chain it does not know. Never forward
56
- * `chainId` to a library function whose second parameter means something else.
51
+ * Validates a wallet address. With `chainId`, a provider whose chains use
52
+ * different address formats accepts only that chain's format and refuses a
53
+ * chain it does not know. Never forward `chainId` to a library function whose
54
+ * second parameter means something else.
57
55
  */
58
56
  isAddress(address: string, chainId?: ChainId): boolean
59
57
  /**
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/sdk'
2
- export const version = '0.0.0-preview-267433d4'
2
+ export const version = '0.0.0-preview-dd8065ff'