@sentio/sdk 0.3.8 → 0.3.9
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/dist/numberish.js +1 -2
- package/dist/numberish.js.map +1 -1
- package/package.json +2 -2
package/dist/numberish.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MetricValueToNumber = exports.toBigInteger = exports.convertNumber = void 0;
|
|
4
4
|
const ethers_1 = require("ethers");
|
|
5
5
|
const processor_1 = require("./gen/processor/protos/processor");
|
|
6
|
-
const chai_1 = require("chai");
|
|
7
6
|
function convertNumber(value) {
|
|
8
7
|
if (value instanceof ethers_1.BigNumber) {
|
|
9
8
|
return processor_1.MetricValue.fromPartial({
|
|
@@ -67,7 +66,7 @@ function MetricValueToNumber(v) {
|
|
|
67
66
|
return intValue;
|
|
68
67
|
}
|
|
69
68
|
if (v.bigInt !== undefined) {
|
|
70
|
-
|
|
69
|
+
return ethers_1.BigNumber.from(v.bigInt);
|
|
71
70
|
}
|
|
72
71
|
return undefined;
|
|
73
72
|
}
|
package/dist/numberish.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numberish.js","sourceRoot":"","sources":["../src/numberish.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAClC,gEAA0E;
|
|
1
|
+
{"version":3,"file":"numberish.js","sourceRoot":"","sources":["../src/numberish.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAClC,gEAA0E;AAM1E,SAAgB,aAAa,CAAC,KAAgB;IAC5C,IAAI,KAAK,YAAY,kBAAS,EAAE;QAC9B,OAAO,uBAAW,CAAC,WAAW,CAAC;YAC7B,UAAU,EAAE,YAAY,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;SAC3C,CAAC,CAAA;KACH;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC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,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAA;QAC5D,IAAI,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE;YACzB,QAAQ,GAAG,CAAC,QAAQ,CAAA;SACrB;QACD,OAAO,QAAQ,CAAA;KAChB;IACD,IAAI,CAAC,CAAC,MAAM,KAAK,SAAS,EAAE;QAC1B,OAAO,kBAAS,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;KAChC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AAnBD,kDAmBC"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"scripts": {
|
|
5
5
|
"compile": "tsc --build tsconfig.json && cp src/cli/webpack.config.js dist/cli",
|
|
6
6
|
"build": "yarn compile && yarn gen_test_abi",
|
|
7
|
-
"pub": "yarn publish --no-git-tag-version --access public",
|
|
7
|
+
"pub": "yarn compile && yarn publish --no-git-tag-version --access public",
|
|
8
8
|
"start_ts": "ts-node --files src/processor.ts ../examples/x2y2/src/processor.ts",
|
|
9
9
|
"start_ts_solana": "ts-node --files src/processor.ts ../examples/mirrorworld/src/processor.ts",
|
|
10
10
|
"start": "ts-node --files src/processor.ts ../examples/x2y2/dist/lib.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"processor": "./dist/processor.js",
|
|
21
21
|
"sentio": "./dist/cli/cli.js"
|
|
22
22
|
},
|
|
23
|
-
"version": "0.3.
|
|
23
|
+
"version": "0.3.9",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@ethersproject/providers": "^5.6.7",
|
|
26
26
|
"@project-serum/anchor": "^0.25.0",
|