@bigmaxwatermelon/sdk 0.4.2 → 0.4.3

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/cli.js CHANGED
@@ -9,6 +9,21 @@ var __export = (target, all) => {
9
9
  __defProp(target, name, { get: all[name], enumerable: true });
10
10
  };
11
11
 
12
+ // src/env.ts
13
+ import { config } from "dotenv";
14
+ import { resolve, dirname } from "path";
15
+ import { fileURLToPath } from "url";
16
+ function loadEnv2() {
17
+ config({ path: resolve(__dirname, "../.env") });
18
+ }
19
+ var __dirname;
20
+ var init_env = __esm({
21
+ "src/env.ts"() {
22
+ "use strict";
23
+ __dirname = dirname(fileURLToPath(import.meta.url));
24
+ }
25
+ });
26
+
12
27
  // src/sdk/rpc/wallet.ts
13
28
  import { ethers } from "ethers";
14
29
  function createWallet2(rpcUrl, privateKey) {
@@ -4689,7 +4704,7 @@ var init_client2 = __esm({
4689
4704
  factory: "0x73D6BC64f4f54F9dF05851216F70F42135d56864",
4690
4705
  beacon: "0x99d6512B5483DFA003F73F737f87e7DAE9482F89"
4691
4706
  };
4692
- SDK_VERSION2 = "0.4.2";
4707
+ SDK_VERSION2 = "0.4.3";
4693
4708
  IsometryClient = class {
4694
4709
  rpc;
4695
4710
  graph;
@@ -4831,7 +4846,8 @@ function registerSystem(parent) {
4831
4846
  var init_system = __esm({
4832
4847
  "src/cli/commands/system.ts"() {
4833
4848
  "use strict";
4834
- loadEnv();
4849
+ init_env();
4850
+ loadEnv2();
4835
4851
  }
4836
4852
  });
4837
4853
 
@@ -4905,22 +4921,8 @@ function registerPlatform(parent) {
4905
4921
  var init_platform2 = __esm({
4906
4922
  "src/cli/commands/platform.ts"() {
4907
4923
  "use strict";
4908
- loadEnv();
4909
- }
4910
- });
4911
-
4912
- // src/env.ts
4913
- import { config } from "dotenv";
4914
- import { resolve, dirname } from "path";
4915
- import { fileURLToPath } from "url";
4916
- function loadEnv2() {
4917
- config({ path: resolve(__dirname, "../.env") });
4918
- }
4919
- var __dirname;
4920
- var init_env = __esm({
4921
- "src/env.ts"() {
4922
- "use strict";
4923
- __dirname = dirname(fileURLToPath(import.meta.url));
4924
+ init_env();
4925
+ loadEnv2();
4924
4926
  }
4925
4927
  });
4926
4928
 
@@ -5430,7 +5432,8 @@ function registerFactory(parent) {
5430
5432
  var init_factory2 = __esm({
5431
5433
  "src/cli/commands/factory.ts"() {
5432
5434
  "use strict";
5433
- loadEnv();
5435
+ init_env();
5436
+ loadEnv2();
5434
5437
  }
5435
5438
  });
5436
5439