@sentio/sdk 1.40.5-rc.1 → 1.40.5-rc.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { BigDecimal } from '@sentio/bigdecimal';
|
package/lib/core/big-decimal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BigDecimal = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "BigDecimal", { enumerable: true, get: function () { return
|
|
4
|
+
var bigdecimal_1 = require("@sentio/bigdecimal");
|
|
5
|
+
Object.defineProperty(exports, "BigDecimal", { enumerable: true, get: function () { return bigdecimal_1.BigDecimal; } });
|
|
6
6
|
//# sourceMappingURL=big-decimal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"big-decimal.js","sourceRoot":"","sources":["../../src/core/big-decimal.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"big-decimal.js","sourceRoot":"","sources":["../../src/core/big-decimal.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAAtC,wGAAA,UAAU,OAAA","sourcesContent":["export { BigDecimal } from '@sentio/bigdecimal'\n"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
const path = require('path')
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
entry: {
|
|
6
|
+
lib: './src/processor.ts',
|
|
7
|
+
},
|
|
8
|
+
devtool: 'inline-source-map',
|
|
9
|
+
module: {
|
|
10
|
+
rules: [
|
|
11
|
+
{
|
|
12
|
+
test: /\.tsx?$/,
|
|
13
|
+
use: 'ts-loader',
|
|
14
|
+
exclude: /node_modules/,
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
resolve: {
|
|
19
|
+
extensions: ['.ts', '.js'],
|
|
20
|
+
},
|
|
21
|
+
output: {
|
|
22
|
+
filename: '[name].js',
|
|
23
|
+
path: path.resolve(process.cwd(), 'dist'),
|
|
24
|
+
},
|
|
25
|
+
target: 'node',
|
|
26
|
+
mode: 'production',
|
|
27
|
+
externals: [
|
|
28
|
+
{
|
|
29
|
+
protobufjs: 'commonjs2 protobufjs',
|
|
30
|
+
aptos: 'commonjs2 aptos-sdk',
|
|
31
|
+
ethers: 'commonjs2 ethers',
|
|
32
|
+
bs58: 'commonjs2 bs58',
|
|
33
|
+
"bignumber.js": 'commonjs2 bignumber.js',
|
|
34
|
+
'bn.js': 'commonjs2 bn.js',
|
|
35
|
+
'csv-parse': 'commonjs2 csv-parse',
|
|
36
|
+
},
|
|
37
|
+
function ({ context, request }, callback) {
|
|
38
|
+
if (/^@(ethersproject|solana|project-serum|nice-grpc).*$/.test(request)) {
|
|
39
|
+
return callback(null, 'commonjs ' + request)
|
|
40
|
+
}
|
|
41
|
+
if (/^nice-grpc.*$/.test(request)) {
|
|
42
|
+
return callback(null, 'commonjs ' + request)
|
|
43
|
+
}
|
|
44
|
+
if (/^@sentio\/(sdk|runtime|base|protos|bigdecimal).*$/.test(request)) {
|
|
45
|
+
return callback(null, 'commonjs ' + request)
|
|
46
|
+
}
|
|
47
|
+
callback()
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentio/sdk",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "1.40.5-rc.
|
|
4
|
+
"version": "1.40.5-rc.3",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"compile_target": "yarn tsc -b src/target-ethers-sentio/tsconfig.json",
|
|
7
|
-
"compile": "tsc -p . && cp src/utils/*.csv lib/utils",
|
|
7
|
+
"compile": "tsc -p . && cp src/utils/*.csv lib/utils && cp src/webpack.config.js lib",
|
|
8
8
|
"build": "yarn gen && yarn compile",
|
|
9
9
|
"build_all": "yarn lerna run --scope=@sentio/sdk build --include-dependencies",
|
|
10
10
|
"start_ts": "ts-node --files ../runtime/src/processor-runner.ts --log-format=json ../../examples/x2y2/src/processor.ts",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@ethersproject/providers": "~5.7.0",
|
|
21
|
-
"@sentio/
|
|
22
|
-
"@sentio/
|
|
21
|
+
"@sentio/bigdecimal": "9.1.1-patch.1",
|
|
22
|
+
"@sentio/protos": "^1.40.5-rc.3",
|
|
23
|
+
"@sentio/runtime": "^1.40.5-rc.3",
|
|
23
24
|
"@typechain/ethers-v5": "^10.0.0",
|
|
24
|
-
"bignumber.js": "^9.1.0",
|
|
25
25
|
"command-line-args": "^5.2.1",
|
|
26
26
|
"command-line-usage": "^6.1.3",
|
|
27
27
|
"csv-parse": "^5.3.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"typedoc": {
|
|
52
52
|
"entryPoint": "./src/index.ts"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "5341a1833e57f5be4c265092816653b92528f920"
|
|
55
55
|
}
|
package/src/core/big-decimal.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { BigDecimal } from '@sentio/bigdecimal'
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
const path = require('path')
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
entry: {
|
|
6
|
+
lib: './src/processor.ts',
|
|
7
|
+
},
|
|
8
|
+
devtool: 'inline-source-map',
|
|
9
|
+
module: {
|
|
10
|
+
rules: [
|
|
11
|
+
{
|
|
12
|
+
test: /\.tsx?$/,
|
|
13
|
+
use: 'ts-loader',
|
|
14
|
+
exclude: /node_modules/,
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
resolve: {
|
|
19
|
+
extensions: ['.ts', '.js'],
|
|
20
|
+
},
|
|
21
|
+
output: {
|
|
22
|
+
filename: '[name].js',
|
|
23
|
+
path: path.resolve(process.cwd(), 'dist'),
|
|
24
|
+
},
|
|
25
|
+
target: 'node',
|
|
26
|
+
mode: 'production',
|
|
27
|
+
externals: [
|
|
28
|
+
{
|
|
29
|
+
protobufjs: 'commonjs2 protobufjs',
|
|
30
|
+
aptos: 'commonjs2 aptos-sdk',
|
|
31
|
+
ethers: 'commonjs2 ethers',
|
|
32
|
+
bs58: 'commonjs2 bs58',
|
|
33
|
+
"bignumber.js": 'commonjs2 bignumber.js',
|
|
34
|
+
'bn.js': 'commonjs2 bn.js',
|
|
35
|
+
'csv-parse': 'commonjs2 csv-parse',
|
|
36
|
+
},
|
|
37
|
+
function ({ context, request }, callback) {
|
|
38
|
+
if (/^@(ethersproject|solana|project-serum|nice-grpc).*$/.test(request)) {
|
|
39
|
+
return callback(null, 'commonjs ' + request)
|
|
40
|
+
}
|
|
41
|
+
if (/^nice-grpc.*$/.test(request)) {
|
|
42
|
+
return callback(null, 'commonjs ' + request)
|
|
43
|
+
}
|
|
44
|
+
if (/^@sentio\/(sdk|runtime|base|protos|bigdecimal).*$/.test(request)) {
|
|
45
|
+
return callback(null, 'commonjs ' + request)
|
|
46
|
+
}
|
|
47
|
+
callback()
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
}
|