@bigmaxwatermelon/sdk 0.4.2 → 0.4.4

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 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
+
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.4";
4693
4708
  IsometryClient = class {
4694
4709
  rpc;
4695
4710
  graph;
@@ -4831,6 +4846,7 @@ function registerSystem(parent) {
4831
4846
  var init_system = __esm({
4832
4847
  "src/cli/commands/system.ts"() {
4833
4848
  "use strict";
4849
+ init_env();
4834
4850
  loadEnv();
4835
4851
  }
4836
4852
  });
@@ -4905,25 +4921,11 @@ function registerPlatform(parent) {
4905
4921
  var init_platform2 = __esm({
4906
4922
  "src/cli/commands/platform.ts"() {
4907
4923
  "use strict";
4924
+ init_env();
4908
4925
  loadEnv();
4909
4926
  }
4910
4927
  });
4911
4928
 
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
- }
4925
- });
4926
-
4927
4929
  // src/cli/commands/tokenWrite.ts
4928
4930
  function jsonReplacer3(_key, value) {
4929
4931
  return typeof value === "bigint" ? value.toString() : value;
@@ -5147,6 +5149,7 @@ function registerTokenWrite(token) {
5147
5149
  var init_tokenWrite = __esm({
5148
5150
  "src/cli/commands/tokenWrite.ts"() {
5149
5151
  "use strict";
5152
+ init_env();
5150
5153
  loadEnv();
5151
5154
  }
5152
5155
  });
@@ -5351,7 +5354,7 @@ var init_token = __esm({
5351
5354
  init_sdk();
5352
5355
  init_analytics();
5353
5356
  init_tokenWrite();
5354
- loadEnv2();
5357
+ loadEnv();
5355
5358
  }
5356
5359
  });
5357
5360
 
@@ -5430,6 +5433,7 @@ function registerFactory(parent) {
5430
5433
  var init_factory2 = __esm({
5431
5434
  "src/cli/commands/factory.ts"() {
5432
5435
  "use strict";
5436
+ init_env();
5433
5437
  loadEnv();
5434
5438
  }
5435
5439
  });