@bigmaxwatermelon/sdk 0.4.4 → 0.4.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/cli.js CHANGED
@@ -9,21 +9,6 @@ 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 loadEnv() {
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
-
27
12
  // src/sdk/rpc/wallet.ts
28
13
  import { ethers } from "ethers";
29
14
  function createWallet2(rpcUrl, privateKey) {
@@ -4704,7 +4689,7 @@ var init_client2 = __esm({
4704
4689
  factory: "0x73D6BC64f4f54F9dF05851216F70F42135d56864",
4705
4690
  beacon: "0x99d6512B5483DFA003F73F737f87e7DAE9482F89"
4706
4691
  };
4707
- SDK_VERSION2 = "0.4.4";
4692
+ SDK_VERSION2 = "0.4.5";
4708
4693
  IsometryClient = class {
4709
4694
  rpc;
4710
4695
  graph;
@@ -4846,8 +4831,6 @@ function registerSystem(parent) {
4846
4831
  var init_system = __esm({
4847
4832
  "src/cli/commands/system.ts"() {
4848
4833
  "use strict";
4849
- init_env();
4850
- loadEnv();
4851
4834
  }
4852
4835
  });
4853
4836
 
@@ -4921,8 +4904,6 @@ function registerPlatform(parent) {
4921
4904
  var init_platform2 = __esm({
4922
4905
  "src/cli/commands/platform.ts"() {
4923
4906
  "use strict";
4924
- init_env();
4925
- loadEnv();
4926
4907
  }
4927
4908
  });
4928
4909
 
@@ -5149,8 +5130,6 @@ function registerTokenWrite(token) {
5149
5130
  var init_tokenWrite = __esm({
5150
5131
  "src/cli/commands/tokenWrite.ts"() {
5151
5132
  "use strict";
5152
- init_env();
5153
- loadEnv();
5154
5133
  }
5155
5134
  });
5156
5135
 
@@ -5350,11 +5329,9 @@ function registerToken(parent) {
5350
5329
  var init_token = __esm({
5351
5330
  "src/cli/commands/token.ts"() {
5352
5331
  "use strict";
5353
- init_env();
5354
5332
  init_sdk();
5355
5333
  init_analytics();
5356
5334
  init_tokenWrite();
5357
- loadEnv();
5358
5335
  }
5359
5336
  });
5360
5337
 
@@ -5433,8 +5410,6 @@ function registerFactory(parent) {
5433
5410
  var init_factory2 = __esm({
5434
5411
  "src/cli/commands/factory.ts"() {
5435
5412
  "use strict";
5436
- init_env();
5437
- loadEnv();
5438
5413
  }
5439
5414
  });
5440
5415
 
@@ -5443,7 +5418,19 @@ import { Command } from "commander";
5443
5418
  import { readFileSync } from "fs";
5444
5419
  import { resolve as resolve2 } from "path";
5445
5420
  import { fileURLToPath as fileURLToPath2 } from "url";
5421
+
5422
+ // src/env.ts
5423
+ import { config } from "dotenv";
5424
+ import { resolve, dirname } from "path";
5425
+ import { fileURLToPath } from "url";
5426
+ var __dirname = dirname(fileURLToPath(import.meta.url));
5427
+ function loadEnv() {
5428
+ config({ path: resolve(__dirname, "../.env") });
5429
+ }
5430
+
5431
+ // src/cli/index.ts
5446
5432
  var __dirname2 = fileURLToPath2(new URL(".", import.meta.url));
5433
+ loadEnv();
5447
5434
  var pkg = JSON.parse(
5448
5435
  readFileSync(resolve2(__dirname2, "../package.json"), "utf-8")
5449
5436
  );