evm-contracts-tools 0.0.1 → 0.0.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.
@@ -4,7 +4,7 @@
4
4
  // SPDX-License-Identifier: AGPL-3.0-or-later
5
5
 
6
6
  /** ----------------------------------------------------------------
7
- * libevm-chains-info
7
+ * libevm-contracts-tools
8
8
  * ----------------------------------------------------------------
9
9
  * Copyright ©
10
10
  * Pellegrino Prevete
@@ -29,10 +29,6 @@
29
29
  * If not, see <https://www.gnu.org/licenses/>.
30
30
  */
31
31
 
32
- // const
33
- // _libcrash =
34
- // require(
35
- // '../libcrash-js/crash-js');
36
32
  const
37
33
  _libcrash_module =
38
34
  require(
@@ -43,6 +39,48 @@ _json_read =
43
39
  _libcrash_module._json_read;
44
40
  _path_join =
45
41
  _libcrash_module._path_join;
42
+ const
43
+ _bytecode_creation_get_module =
44
+ require(
45
+ "./lib/bytecode_creation_get");
46
+ const
47
+ _bytecode_creation_get =
48
+ _bytecode_creation_get_module._bytecode_creation_get;
49
+ const
50
+ _contract_get_module =
51
+ require(
52
+ "./lib/contract_get");
53
+ const
54
+ _contract_get =
55
+ _contract_get_module._contract_get;
56
+ const
57
+ _deployer_get_module =
58
+ require(
59
+ "./lib/deployer_get");
60
+ const
61
+ _deployer_get =
62
+ _deployer_get_module._deployer_get;
63
+ const
64
+ _deployer_verify_module =
65
+ require(
66
+ "./lib/deployer_verify");
67
+ const
68
+ _deployer_verify =
69
+ _deployer_verify_module._deployer_verify;
70
+ const
71
+ _evm_contract_call_dynamic_module =
72
+ require(
73
+ "./lib/evm-contract-call-dynamic");
74
+ const
75
+ _evm_contract_call_dynamic =
76
+ _evm_contract_call_dynamic_module._evm_contract_call_dynamic;
77
+ const
78
+ _evm_contract_call_static_module =
79
+ require(
80
+ "./lib/evm-contract-call-static");
81
+ const
82
+ _evm_contract_call_static =
83
+ _evm_contract_call_static_module._evm_contract_call_static;
46
84
 
47
85
  function
48
86
  _evm_chains_db_path_get(
@@ -195,10 +233,20 @@ function _rpc_backends_get(
195
233
  }
196
234
 
197
235
  module.exports = {
236
+ _bytecode_creation_get:
237
+ _bytecode_creation_get,
238
+ _bytecode_runtime_get:
239
+ _bytecode_runtime_get,
240
+ _contract_get:
241
+ _contract_get,
198
242
  _evm_chains_db_path_get:
199
243
  _evm_chains_db_path_get,
200
244
  _evm_chain_info_get:
201
245
  _evm_chain_info_get,
246
+ _evm_contract_call_dynamic:
247
+ _evm_contract_call_dynamic,
248
+ _evm_contract_call_static:
249
+ _evm_contract_call_static,
202
250
  _rpc_backend_get:
203
251
  _rpc_backend_get,
204
252
  _rpc_backends_get:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  { "name": "evm-contracts-tools",
2
2
  "version":
3
- "0.0.1",
3
+ "0.0.3",
4
4
  "description":
5
5
  "JavaScript programs and libraries to enable seamless development of native computer applications designed to interact with Ethereum Virtual Machine-compatible networks.",
6
6
  "funding": {
@@ -16,22 +16,25 @@
16
16
  "AUTHORS.rst",
17
17
  "COPYING",
18
18
  "README.md",
19
- "lib",
20
- "libevm-wallet",
21
- "evm-wallet",
22
- "evm-wallet.js",
19
+ "evm-contract-call",
20
+ "evm-contract-call.js",
21
+ "evm-contract-call.webpack.config.js",
23
22
  "fs-worker.js",
24
23
  "fs-worker.webpack.config.js",
25
24
  "index.html",
25
+ "libevm-contract-call",
26
+ "libevm-contract-call.webpack.config.js",
27
+ "lib",
28
+ "libevm-contracts-tools",
26
29
  "package.json",
27
- "serve.json",
28
- "webpack.config.js"
30
+ "serve.json"
29
31
  ],
30
32
  "keywords": [
31
33
  "ur",
32
34
  "themartiancompany",
33
35
  "dogeos",
34
- "ethereum"
36
+ "ethereum",
37
+ "evmfs"
35
38
  ],
36
39
  "homepage":
37
40
  "https://github.com/themartiancompany/evm-contracts-tools",
@@ -43,7 +46,7 @@
43
46
  "type":
44
47
  "git",
45
48
  "url":
46
- "git+https://github.com/themartiancompany/evm-contracts-tools.git"
49
+ "git+https://github.com/themartiancompany/evm-contracts-tools.js.git"
47
50
  },
48
51
  "license":
49
52
  "AGPL-3.0-or-later",
@@ -57,9 +60,9 @@
57
60
  },
58
61
  "devDependencies": {
59
62
  "crash-js-webpack":
60
- "^0.0.3",
63
+ "^0.0.6",
61
64
  "flatted":
62
- "3.4.1",
65
+ "^3.2.9",
63
66
  "eslint":
64
67
  "^10.0.3",
65
68
  "globals":
@@ -75,15 +78,13 @@
75
78
  },
76
79
  "dependencies": {
77
80
  "crash-js":
78
- "^0.1.88",
79
- "ethereum-data":
80
- "^0.0.1",
81
+ "^0.1.101",
81
82
  "ethers":
82
83
  "^6.13.2",
83
84
  "evm-chains-info":
84
- "^0.0.1",
85
+ "^0.0.16",
85
86
  "libevm":
86
- "^0.0.1",
87
+ "^0.0.6",
87
88
  "yargs":
88
89
  "18.0.0"
89
90
  },
@@ -92,7 +93,10 @@
92
93
  "main":
93
94
  "libevm-contracts-tools",
94
95
  "bin":
95
- { "evm-contract-call-dynamic.js":
96
+ {
97
+ "evm-contract-call.js":
98
+ "evm-contract-call",
99
+ "evm-contract-call-dynamic.js":
96
100
  "lib/evm-contract-call-dynamic",
97
101
  "evm-contract-call-static.js":
98
102
  "lib/evm-contract-call-static" },
@@ -100,7 +104,7 @@
100
104
  "build-fs-worker":
101
105
  "npx webpack --mode 'production' --config 'fs-worker.webpack.config.cjs' --stats-error-details",
102
106
  "build-lib":
103
- "npx webpack --mode 'production' --config 'webpack.config.cjs' --stats-error-details",
107
+ "npx webpack --mode 'production' --config 'libevm-contracts-tools.webpack.config.cjs' --stats-error-details",
104
108
  "build":
105
109
  "npm run lint && npm run build-fs-worker && npm run build-lib",
106
110
  "lint":
package/fs-worker.js DELETED
@@ -1 +0,0 @@
1
- (()=>{var e={816(e,o,n){function t(){let e;return"undefined"==typeof window&&void 0!==n.g&&n.g.global===n.g&&"function"!=typeof n||(e=function(){let e;try{e=n(816)}catch(e){console.log(e);const o="Error importing the '@themartiancompany/opfs' module as 'opfs'. If you got this error while bundling a webpack for a project depending on this module double check its 'webpack.config.js' file or whether the 'opfs' module is listed in developer dependencies and install them.I'm sorry for this inconvenience but Node packagement system does not currently distinguish 'development' from 'build' dependencies.";throw console.error(o),e}return e}()),e}const r=t();e.exports=r,e.exports.getModule=function(e){let o;if(""==_module_name||"undefined"==typeof _module_name)o=t();else if("opfs"==_module_name)o=n(816);else{if("fs"!=_module_name){const e="Unknown file system module "+`'${_module_name}'.`.const;throw _error={msg:e},console.error(e),_error}o=n(816)}return o}},314(e,o,n){const t=n(816);_sync_agent=t.startSyncAgent,e.exports={_sync_agent},_sync_agent()}},o={};function n(t){var r=o[t];if(void 0!==r)return r.exports;var s=o[t]={exports:{}};return e[t](s,s.exports,n),s.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n(314)})();