opnet 1.0.13 → 1.0.14
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/CONTRIBUTING.md +71 -0
- package/README.md +6 -7
- package/docs/classes/AbstractRpcProvider.html +15 -15
- package/docs/classes/BitcoinAddress.html +2 -2
- package/docs/classes/Block.html +3 -3
- package/docs/classes/CallResult.html +2 -2
- package/docs/classes/ContractData.html +2 -2
- package/docs/classes/DeploymentTransaction.html +2 -2
- package/docs/classes/GenericTransaction.html +2 -2
- package/docs/classes/InteractionTransaction.html +2 -2
- package/docs/classes/JSONRpcProvider.html +14 -14
- package/docs/classes/StoredValue.html +2 -2
- package/docs/classes/TransactionBase.html +2 -2
- package/docs/classes/TransactionInput.html +2 -2
- package/docs/classes/TransactionOutput.html +2 -2
- package/docs/classes/TransactionParser.html +2 -2
- package/docs/classes/TransactionReceipt.html +2 -2
- package/docs/classes/UTXO.html +2 -2
- package/docs/classes/WebSocketRpcProvider.html +14 -14
- package/docs/enums/OPNetTransactionTypes.html +2 -2
- package/docs/interfaces/IAccessList.html +1 -1
- package/docs/interfaces/IAccessListItem.html +1 -1
- package/docs/interfaces/IBlock.html +3 -3
- package/docs/interfaces/IBlockCommon.html +3 -3
- package/docs/interfaces/ICallRequestError.html +2 -2
- package/docs/interfaces/ICallResultData.html +2 -2
- package/docs/interfaces/IDeploymentTransaction.html +2 -2
- package/docs/interfaces/IGenericTransaction.html +2 -2
- package/docs/interfaces/IInteractionTransaction.html +2 -2
- package/docs/interfaces/IRawContract.html +2 -2
- package/docs/interfaces/IStorageValue.html +2 -2
- package/docs/interfaces/ITransactionBase.html +2 -2
- package/docs/interfaces/ITransactionInput.html +2 -2
- package/docs/interfaces/ITransactionOutput.html +2 -2
- package/docs/interfaces/ITransactionReceipt.html +2 -2
- package/docs/interfaces/IUTXO.html +2 -2
- package/docs/types/BitcoinAddressLike.html +1 -1
- package/docs/types/BlockHeaderChecksumProof.html +1 -1
- package/docs/types/ICallResult.html +1 -1
- package/docs/types/ITransaction.html +1 -1
- package/docs/types/PointerLike.html +1 -1
- package/docs/types/UTXOs.html +1 -1
- package/docs/variables/version.html +1 -1
- package/package.json +2 -3
- package/src/providers/AbstractRpcProvider.ts +351 -351
- package/webpack.config.js +71 -75
package/webpack.config.js
CHANGED
|
@@ -1,75 +1,71 @@
|
|
|
1
|
-
import webpack from 'webpack';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
mode: 'production',
|
|
5
|
-
entry: './src/index.ts',
|
|
6
|
-
watch: false,
|
|
7
|
-
output: {
|
|
8
|
-
filename: 'index.js',
|
|
9
|
-
path: import.meta.dirname + '/browser',
|
|
10
|
-
libraryTarget: 'module',
|
|
11
|
-
},
|
|
12
|
-
node: {
|
|
13
|
-
__dirname: false,
|
|
14
|
-
},
|
|
15
|
-
experiments: {
|
|
16
|
-
outputModule: true,
|
|
17
|
-
asyncWebAssembly: true,
|
|
18
|
-
syncWebAssembly: true,
|
|
19
|
-
},
|
|
20
|
-
resolve: {
|
|
21
|
-
extensionAlias: {
|
|
22
|
-
'.js': ['.js', '.ts'],
|
|
23
|
-
},
|
|
24
|
-
modules: ['.', 'node_modules'],
|
|
25
|
-
extensions: ['.*', '.js', '.jsx', '.tsx', '.ts', '.wasm'],
|
|
26
|
-
fallback: {
|
|
27
|
-
buffer: import.meta.resolve('buffer/'),
|
|
28
|
-
|
|
29
|
-
assert: import.meta.resolve('assert/'),
|
|
30
|
-
crypto: import.meta.resolve('./src/crypto/crypto-browser.js'),
|
|
31
|
-
http: import.meta.resolve('stream-http/'),
|
|
32
|
-
https: import.meta.resolve('https-browserify/'),
|
|
33
|
-
os: import.meta.resolve('os-browserify/browser/'),
|
|
34
|
-
stream: import.meta.resolve('stream-browserify'),
|
|
35
|
-
process: import.meta.resolve('process/browser'),
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
cache: false,
|
|
39
|
-
module: {
|
|
40
|
-
rules: [
|
|
41
|
-
{
|
|
42
|
-
test: /\.(js|jsx|tsx|ts)$/,
|
|
43
|
-
exclude: /node_modules/,
|
|
44
|
-
resolve: {
|
|
45
|
-
fullySpecified: false,
|
|
46
|
-
},
|
|
47
|
-
use: [
|
|
48
|
-
{
|
|
49
|
-
loader: 'babel-loader',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
loader: 'ts-loader',
|
|
53
|
-
options: {
|
|
54
|
-
configFile: 'tsconfig.webpack.json',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
optimization: {
|
|
62
|
-
usedExports: true,
|
|
63
|
-
},
|
|
64
|
-
plugins: [
|
|
65
|
-
new webpack.ProvidePlugin({
|
|
66
|
-
Buffer: ['buffer', 'Buffer'],
|
|
67
|
-
process: 'process/browser',
|
|
68
|
-
stream: 'stream-browserify',
|
|
69
|
-
}),
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
excludeAliases: ['console', 'buffer'],
|
|
73
|
-
}),*/
|
|
74
|
-
],
|
|
75
|
-
};
|
|
1
|
+
import webpack from 'webpack';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
mode: 'production',
|
|
5
|
+
entry: './src/index.ts',
|
|
6
|
+
watch: false,
|
|
7
|
+
output: {
|
|
8
|
+
filename: 'index.js',
|
|
9
|
+
path: import.meta.dirname + '/browser',
|
|
10
|
+
libraryTarget: 'module',
|
|
11
|
+
},
|
|
12
|
+
node: {
|
|
13
|
+
__dirname: false,
|
|
14
|
+
},
|
|
15
|
+
experiments: {
|
|
16
|
+
outputModule: true,
|
|
17
|
+
asyncWebAssembly: true,
|
|
18
|
+
syncWebAssembly: true,
|
|
19
|
+
},
|
|
20
|
+
resolve: {
|
|
21
|
+
extensionAlias: {
|
|
22
|
+
'.js': ['.js', '.ts'],
|
|
23
|
+
},
|
|
24
|
+
modules: ['.', 'node_modules'],
|
|
25
|
+
extensions: ['.*', '.js', '.jsx', '.tsx', '.ts', '.wasm'],
|
|
26
|
+
fallback: {
|
|
27
|
+
buffer: import.meta.resolve('buffer/'),
|
|
28
|
+
|
|
29
|
+
assert: import.meta.resolve('assert/'),
|
|
30
|
+
crypto: import.meta.resolve('./src/crypto/crypto-browser.js'),
|
|
31
|
+
http: import.meta.resolve('stream-http/'),
|
|
32
|
+
https: import.meta.resolve('https-browserify/'),
|
|
33
|
+
os: import.meta.resolve('os-browserify/browser/'),
|
|
34
|
+
stream: import.meta.resolve('stream-browserify'),
|
|
35
|
+
process: import.meta.resolve('process/browser'),
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
cache: false,
|
|
39
|
+
module: {
|
|
40
|
+
rules: [
|
|
41
|
+
{
|
|
42
|
+
test: /\.(js|jsx|tsx|ts)$/,
|
|
43
|
+
exclude: /node_modules/,
|
|
44
|
+
resolve: {
|
|
45
|
+
fullySpecified: false,
|
|
46
|
+
},
|
|
47
|
+
use: [
|
|
48
|
+
{
|
|
49
|
+
loader: 'babel-loader',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
loader: 'ts-loader',
|
|
53
|
+
options: {
|
|
54
|
+
configFile: 'tsconfig.webpack.json',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
optimization: {
|
|
62
|
+
usedExports: true,
|
|
63
|
+
},
|
|
64
|
+
plugins: [
|
|
65
|
+
new webpack.ProvidePlugin({
|
|
66
|
+
Buffer: ['buffer', 'Buffer'],
|
|
67
|
+
process: 'process/browser',
|
|
68
|
+
stream: 'stream-browserify',
|
|
69
|
+
}),
|
|
70
|
+
],
|
|
71
|
+
};
|