@taquito/local-forging 24.3.0-beta.7 → 24.3.0-rc.2
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.
|
@@ -134,7 +134,7 @@ const stringDecoder = (value) => {
|
|
|
134
134
|
};
|
|
135
135
|
exports.stringDecoder = stringDecoder;
|
|
136
136
|
const intEncoder = ({ int }) => {
|
|
137
|
-
const num = new bignumber_js_1.
|
|
137
|
+
const num = new bignumber_js_1.default(int, 10);
|
|
138
138
|
const positiveMark = num.toString(2)[0] === '-' ? '1' : '0';
|
|
139
139
|
const binary = num.toString(2).replace(/-/g, '');
|
|
140
140
|
const pad = binary.length <= 6
|
|
@@ -171,7 +171,7 @@ const intDecoder = (value) => {
|
|
|
171
171
|
.slice(i === 0 ? -6 : -7)
|
|
172
172
|
.padStart(i === 0 ? 6 : 7, '0'))
|
|
173
173
|
.reverse();
|
|
174
|
-
let num = new bignumber_js_1.
|
|
174
|
+
let num = new bignumber_js_1.default(numBin.join(''), 2);
|
|
175
175
|
if (isNegative) {
|
|
176
176
|
num = num.times(-1);
|
|
177
177
|
}
|
package/dist/lib/version.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "24.3.0-
|
|
6
|
+
"commitHash": "7e99d97864147bbcc2291f12aac10e368afd9055",
|
|
7
|
+
"version": "24.3.0-rc.2"
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'fast-text-encoding';
|
|
2
2
|
import { PrefixV2, payloadLength, b58Encode, b58DecodeAndCheckPrefix, buf2hex, ValidationResult, InvalidPublicKeyError, b58DecodeAddress, b58DecodePublicKeyHash, b58DecodePublicKey, signaturePrefixes, validateBlock } from '@taquito/utils';
|
|
3
3
|
import { ParameterValidationError, InvalidHexStringError, InvalidContractAddressError, InvalidAddressError, ProhibitedActionError, InvalidKeyHashError, InvalidSignatureError, InvalidOperationKindError, InvalidBlockHashError } from '@taquito/core';
|
|
4
|
-
import BigNumber
|
|
4
|
+
import BigNumber from 'bignumber.js';
|
|
5
5
|
|
|
6
6
|
const toHexString = (bytes) => bytes.reduce((str, byte) => str + byte.toString(16).padStart(2, '0'), '');
|
|
7
7
|
const pad = (num, paddingLen = 8) => {
|
|
@@ -1005,7 +1005,7 @@ const smartRollupCommitmentHashDecoder = (val) => {
|
|
|
1005
1005
|
};
|
|
1006
1006
|
const zarithEncoder = (n) => {
|
|
1007
1007
|
const fn = [];
|
|
1008
|
-
let nn = new BigNumber
|
|
1008
|
+
let nn = new BigNumber(n, 10);
|
|
1009
1009
|
if (nn.isNaN()) {
|
|
1010
1010
|
throw new TypeError(`Invalid zarith number ${n}`);
|
|
1011
1011
|
}
|
|
@@ -1032,14 +1032,14 @@ const zarithDecoder = (n) => {
|
|
|
1032
1032
|
while (mostSignificantByte < n.length() && (n.get(mostSignificantByte) & 128) !== 0) {
|
|
1033
1033
|
mostSignificantByte += 1;
|
|
1034
1034
|
}
|
|
1035
|
-
let num = new BigNumber
|
|
1035
|
+
let num = new BigNumber(0);
|
|
1036
1036
|
for (let i = mostSignificantByte; i >= 0; i -= 1) {
|
|
1037
1037
|
const tmp = n.get(i) & 0x7f;
|
|
1038
1038
|
num = num.multipliedBy(128);
|
|
1039
1039
|
num = num.plus(tmp);
|
|
1040
1040
|
}
|
|
1041
1041
|
n.consume(mostSignificantByte + 1);
|
|
1042
|
-
return new BigNumber
|
|
1042
|
+
return new BigNumber(num).toString();
|
|
1043
1043
|
};
|
|
1044
1044
|
const entrypointDecoder = (value) => {
|
|
1045
1045
|
const preamble = pad(value.consume(1)[0], 2);
|
|
@@ -1661,8 +1661,8 @@ var ProtocolsHash;
|
|
|
1661
1661
|
|
|
1662
1662
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
1663
1663
|
const VERSION = {
|
|
1664
|
-
"commitHash": "
|
|
1665
|
-
"version": "24.3.0-
|
|
1664
|
+
"commitHash": "7e99d97864147bbcc2291f12aac10e368afd9055",
|
|
1665
|
+
"version": "24.3.0-rc.2"
|
|
1666
1666
|
};
|
|
1667
1667
|
|
|
1668
1668
|
/**
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
};
|
|
604
604
|
};
|
|
605
605
|
const intEncoder = ({ int }) => {
|
|
606
|
-
const num = new BigNumber
|
|
606
|
+
const num = new BigNumber(int, 10);
|
|
607
607
|
const positiveMark = num.toString(2)[0] === '-' ? '1' : '0';
|
|
608
608
|
const binary = num.toString(2).replace(/-/g, '');
|
|
609
609
|
const pad = binary.length <= 6
|
|
@@ -639,7 +639,7 @@
|
|
|
639
639
|
.slice(i === 0 ? -6 : -7)
|
|
640
640
|
.padStart(i === 0 ? 6 : 7, '0'))
|
|
641
641
|
.reverse();
|
|
642
|
-
let num = new BigNumber
|
|
642
|
+
let num = new BigNumber(numBin.join(''), 2);
|
|
643
643
|
if (isNegative) {
|
|
644
644
|
num = num.times(-1);
|
|
645
645
|
}
|
|
@@ -1662,8 +1662,8 @@
|
|
|
1662
1662
|
|
|
1663
1663
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
1664
1664
|
const VERSION = {
|
|
1665
|
-
"commitHash": "
|
|
1666
|
-
"version": "24.3.0-
|
|
1665
|
+
"commitHash": "7e99d97864147bbcc2291f12aac10e368afd9055",
|
|
1666
|
+
"version": "24.3.0-rc.2"
|
|
1667
1667
|
};
|
|
1668
1668
|
|
|
1669
1669
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/local-forging",
|
|
3
|
-
"version": "24.3.0-
|
|
3
|
+
"version": "24.3.0-rc.2",
|
|
4
4
|
"description": "Local Tezos operation forging for Taquito.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"taquito",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@taquito/core": "^24.3.0-
|
|
61
|
-
"@taquito/utils": "^24.3.0-
|
|
60
|
+
"@taquito/core": "^24.3.0-rc.2",
|
|
61
|
+
"@taquito/utils": "^24.3.0-rc.2",
|
|
62
62
|
"bignumber.js": "^10.0.2",
|
|
63
63
|
"fast-text-encoding": "^1.0.6"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@taquito/rpc": "^24.3.0-
|
|
66
|
+
"@taquito/rpc": "^24.3.0-rc.2",
|
|
67
67
|
"@types/bluebird": "^3.5.42",
|
|
68
68
|
"@types/estree": "^1.0.5",
|
|
69
69
|
"@types/fast-text-encoding": "^1.0.3",
|