erc20-contracts 0.0.1

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/package.json ADDED
@@ -0,0 +1,73 @@
1
+ { "name": "erc20-contracts",
2
+ "version":
3
+ "0.0.1",
4
+ "description":
5
+ "The OJavaScript programs and libraries to enable seamless development of native computer applications designed to interact with Ethereum *RC-20 tokens (ERC-20, BRC-20, etc.) on Ethereum Virtual Machine-compatible networks.",
6
+ "funding": {
7
+ "type":
8
+ "patreon",
9
+ "url":
10
+ "https://patreon.com/tallero"
11
+ },
12
+ "files": [
13
+ "AUTHORS.rst",
14
+ "COPYING",
15
+ "README.md",
16
+ "Token.sol",
17
+ "Token.abi.json",
18
+ "Token.runtime.bin",
19
+ "dist",
20
+ "erc20-contracts",
21
+ "lib",
22
+ "package.json",
23
+ "webpack.config.cjs"
24
+ ],
25
+ "keywords": [
26
+ "ur",
27
+ "themartiancompany",
28
+ "dogeos",
29
+ "ethereum",
30
+ "erc-20",
31
+ "evmfs"
32
+ ],
33
+ "main":
34
+ "./data-get",
35
+ "homepage":
36
+ "https://github.com/themartiancompany/erc20-contracts",
37
+ "bugs": {
38
+ "url":
39
+ "https://github.com/themartiancompany/erc20-contracts/issues"
40
+ },
41
+ "repository": {
42
+ "type":
43
+ "git",
44
+ "url":
45
+ "git+https://github.com/themartiancompany/erc20-contracts.git"
46
+ },
47
+ "license":
48
+ "AGPL-3.0-or-later",
49
+ "author": {
50
+ "name":
51
+ "Pellegrino Prevete",
52
+ "email":
53
+ "pellegrinoprevete@gmail.com",
54
+ "url":
55
+ "https://github.com/tallero"
56
+ },
57
+ "devDependencies": {
58
+ },
59
+ "dependencies": {
60
+ },
61
+ "type":
62
+ "commonjs",
63
+ "scripts": {
64
+ "build-contracts":
65
+ "solidity-compiler -v -b 'solc' -e 'istanbul' -C 0.7.5 Token.sol",
66
+ "build":
67
+ "npm run build-contracts",
68
+ "publish-npm":
69
+ "npm run build && npm publish --access public",
70
+ "test":
71
+ "echo \"Error: no test specified\" && exit 1"
72
+ }
73
+ }
@@ -0,0 +1,142 @@
1
+ /** ----------------------------------------------------------------
2
+ * webpack.config.cjs
3
+ * ----------------------------------------------------------------
4
+ * Copyright ©
5
+ * Pellegrino Prevete
6
+ * 2024, 2025, 2026
7
+ *
8
+ * All rights reserved
9
+ * ----------------------------------------------------------------
10
+ *
11
+ * This program is free software: you can redistribute it and/or
12
+ * modify it under the terms of the GNU General Public License as
13
+ * published by the Free Software Foundation, either version 3 of
14
+ * the License, or (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program.
23
+ * If not, see <https://www.gnu.org/licenses/>.
24
+ */
25
+
26
+ const
27
+ _path =
28
+ require(
29
+ 'path');
30
+ const
31
+ _output_dir =
32
+ _path.resolve(
33
+ __dirname);
34
+ const
35
+ _input_file_name =
36
+ `data-get`;
37
+ const
38
+ _input_file_path =
39
+ `./${_input_file_name}`;
40
+ const
41
+ _output_file_name =
42
+ `${_input_file_name}.js`;
43
+ const
44
+ _output = {
45
+ path:
46
+ _output_dir,
47
+ filename:
48
+ _output_file_name
49
+ };
50
+ const
51
+ _utils_ignore =
52
+ { resourceRegExp:
53
+ /^utils$/ };
54
+ const
55
+ _web_worker_ignore =
56
+ { resourceRegExp:
57
+ /^web-worker$/ };
58
+ const
59
+ _yargs_ignore =
60
+ { resourceRegExp:
61
+ /^yargs$/ };
62
+ const
63
+ _yargs_helpers_ignore =
64
+ { resourceRegExp:
65
+ /^yargs\/helpers$/ };
66
+ const
67
+ _webpack =
68
+ require(
69
+ "webpack");
70
+ const
71
+ _ignore_plugin =
72
+ _webpack.IgnorePlugin;
73
+ const
74
+ _utils_ignore_plugin =
75
+ new _ignore_plugin(
76
+ _utils_ignore);
77
+ const
78
+ _web_worker_ignore_plugin =
79
+ new _ignore_plugin(
80
+ _web_worker_ignore);
81
+ const
82
+ _yargs_ignore_plugin =
83
+ new _ignore_plugin(
84
+ _yargs_ignore);
85
+ const
86
+ _yargs_helpers_ignore_plugin =
87
+ new _ignore_plugin(
88
+ _yargs_helpers_ignore);
89
+ module.exports = {
90
+ entry:
91
+ _input_file_path,
92
+ output:
93
+ _output,
94
+ optimization: {
95
+ moduleIds: 'deterministic',
96
+ },
97
+ resolve: {
98
+ alias: {
99
+ "fs":
100
+ _path.resolve(
101
+ __dirname,
102
+ 'node_modules/fs/fs'),
103
+ "path":
104
+ _path.resolve(
105
+ __dirname,
106
+ 'node_modules/path/mod.js'),
107
+ "web-worker":
108
+ _path.resolve(
109
+ __dirname,
110
+ 'node_modules/web-worker/mod.js'),
111
+ "yargs":
112
+ _path.resolve(
113
+ __dirname,
114
+ 'node_modules/yargs/browser.mjs'),
115
+ "yargs/helpers":
116
+ _path.resolve(
117
+ __dirname,
118
+ 'node_modules/yargs/helpers/helpers.mjs'),
119
+ "yargs-parser":
120
+ _path.resolve(
121
+ __dirname,
122
+ 'node_modules/yargs-parser/browser.mjs'),
123
+ },
124
+ fallback: {
125
+ "utils":
126
+ false,
127
+ "web-worker":
128
+ false,
129
+ "yargs":
130
+ false,
131
+ "yargs/helpers":
132
+ false,
133
+ }
134
+ },
135
+ externals:
136
+ { yargs:
137
+ 'yargs' },
138
+ plugins: [
139
+ _yargs_ignore_plugin,
140
+ _yargs_helpers_ignore_plugin
141
+ ]
142
+ };