@offckb/cli 0.3.0-canary-cfe9b48.0 → 0.3.0-canary-a9175e7.0

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.
@@ -1,11 +1,7 @@
1
1
  "use strict";
2
2
  // this file is generated by offckb-cli
3
- var __importDefault = (this && this.__importDefault) || function (mod) {
4
- return (mod && mod.__esModule) ? mod : { "default": mod };
5
- };
6
3
  Object.defineProperty(exports, "__esModule", { value: true });
7
4
  exports.readEnvNetwork = exports.SystemScriptName = void 0;
8
- const path_1 = __importDefault(require("path"));
9
5
  var SystemScriptName;
10
6
  (function (SystemScriptName) {
11
7
  SystemScriptName["secp256k1_blake160_sighash_all"] = "secp256k1_blake160_sighash_all";
@@ -38,7 +34,9 @@ exports.readEnvNetwork = readEnvNetwork;
38
34
  const offCKBConfig = {
39
35
  version: '@offckb-update-version',
40
36
  contractBinFolder: '../build/release',
41
- contractInfoFolder: './offckb', // this folder record the script deployment information
37
+ // this folder record the script deployment information
38
+ // If you change this folder, you need to update the following get systemScripts and get myScripts method
39
+ contractInfoFolder: './offckb',
42
40
  networks: {
43
41
  devnet: {
44
42
  rpc_url: 'http://127.0.0.1:8114',
@@ -67,13 +65,13 @@ const offCKBConfig = {
67
65
  },
68
66
  get systemScripts() {
69
67
  const network = readEnvNetwork();
70
- const networkSystemScripts = require(path_1.default.resolve(this.contractInfoFolder, 'system-scripts.json'));
68
+ const networkSystemScripts = require('./offckb/system-scripts.json');
71
69
  const systemScripts = networkSystemScripts[network];
72
70
  return systemScripts;
73
71
  },
74
72
  get myScripts() {
75
73
  const network = readEnvNetwork();
76
- const networkMyScripts = require(path_1.default.resolve(this.contractInfoFolder, 'my-scripts.json'));
74
+ const networkMyScripts = require('./offckb/my-scripts.json');
77
75
  const myScripts = networkMyScripts[network];
78
76
  return myScripts;
79
77
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@offckb/cli",
3
- "version": "0.3.0-canary-cfe9b48.0",
3
+ "version": "0.3.0-canary-a9175e7.0",
4
4
  "description": "ckb development network for your first try",
5
5
  "author": "Retric Su <retric@cryptape.com>",
6
6
  "license": "MIT",