@1inch/solidity-utils 3.8.1 → 3.8.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/LICENSE.md CHANGED
@@ -1,4 +1,6 @@
1
- Copyright (c) 2019-2023 1inch
1
+ MIT License
2
+
3
+ © 2019, 1inch. All rights reserved.
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
6
 
package/README.md CHANGED
@@ -64,6 +64,11 @@ Add to `package.json` file solidity compiler version and shortcut to run command
64
64
  "docify": "npx solidity-utils-docify"
65
65
  ```
66
66
 
67
+ You can set output directory with ENV variable:
68
+ ```
69
+ "docify": "DOCGEN_OUTPUT_DIR=./docs npx solidity-utils-docify"
70
+ ```
71
+
67
72
  ...
68
73
 
69
74
  #### Dependencies list (imports-list)
@@ -18,7 +18,7 @@ export declare class Networks {
18
18
  constructor(useHardhat?: boolean, forkingNetworkName?: string, saveHardhatDeployments?: boolean);
19
19
  register(name: string, chainId: number, rpc?: string, privateKey?: string, etherscanNetworkName?: string, etherscanKey?: string, hardfork?: string): void;
20
20
  registerCustom(name: string, chainId: number, url?: string, privateKey?: string, etherscanKey?: string, apiURL?: string, browserURL?: string, hardfork?: string): void;
21
- registerZksync(name: string, chainId: number, rpc?: string, ethNetwork?: string, privateKey?: string, verifyUrl?: string, hardfork?: string): void;
21
+ registerZksync(name: string, chainId: number, rpc?: string, ethNetwork?: string, privateKey?: string, verifyURL?: string, hardfork?: string): void;
22
22
  registerAll(): {
23
23
  networks: NetworksUserConfig;
24
24
  etherscan: Etherscan;
@@ -81,7 +81,7 @@ class Networks {
81
81
  this.etherscan.customChains.push({ network: name, chainId, urls: { apiURL, browserURL } });
82
82
  }
83
83
  }
84
- registerZksync(name, chainId, rpc, ethNetwork, privateKey, verifyUrl, hardfork = 'paris') {
84
+ registerZksync(name, chainId, rpc, ethNetwork, privateKey, verifyURL, hardfork = 'paris') {
85
85
  if (privateKey && rpc && ethNetwork) {
86
86
  const { url, authKeyHttpHeader } = parseRpcEnv(rpc);
87
87
  this.networks[name] = {
@@ -91,7 +91,7 @@ class Networks {
91
91
  chainId,
92
92
  accounts: [privateKey],
93
93
  hardfork,
94
- verifyUrl,
94
+ verifyURL,
95
95
  ethNetwork,
96
96
  };
97
97
  console.log(`Network '${name}' registered`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1inch/solidity-utils",
3
- "version": "3.8.1",
3
+ "version": "3.8.3",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "exports": {
@@ -3,7 +3,7 @@ const SOLC_NPM_NAME = 'solc';
3
3
  const BASE_DIR = 'docgen';
4
4
  const SCRIPT_DIR = __dirname;
5
5
  const INPUT_DIR = 'contracts';
6
- const OUTPUT_DIR = `${BASE_DIR}/docs`;
6
+ const OUTPUT_DIR = process.env.DOCGEN_OUTPUT_DIR || `${BASE_DIR}/docs`;
7
7
  const HELPERS_PATH = `${SCRIPT_DIR}/solidity-docgen-helpers.js`;
8
8
 
9
9
  const fs = require('fs');