@taquito/rpc 24.3.0-beta.2 → 24.3.0-beta.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,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RPCMethodName = exports.defaultRPCOptions = exports.defaultChain = void 0;
4
+ const bignumber_js_1 = require("bignumber.js");
5
+ const BigNumber = bignumber_js_1.BigNumber;
4
6
  exports.defaultChain = 'main';
5
7
  exports.defaultRPCOptions = { block: 'head' };
6
8
  var RPCMethodName;
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RpcClientCache = void 0;
4
4
  const rpc_client_interface_1 = require("./../rpc-client-interface");
5
+ const bignumber_js_1 = require("bignumber.js");
6
+ const BigNumber = bignumber_js_1.default;
5
7
  const rpc_client_interface_2 = require("../rpc-client-interface");
6
8
  const core_1 = require("@taquito/core");
7
9
  const utils_1 = require("@taquito/utils");
@@ -767,9 +767,13 @@ class RpcClient {
767
767
  method: 'POST',
768
768
  }, data);
769
769
  let formattedGas = gas;
770
- const tryBigNumber = new bignumber_js_1.default(gas || '');
771
- if (!tryBigNumber.isNaN()) {
772
- formattedGas = tryBigNumber;
770
+ if (typeof gas === 'string') {
771
+ try {
772
+ formattedGas = new bignumber_js_1.default(gas);
773
+ }
774
+ catch {
775
+ formattedGas = gas;
776
+ }
773
777
  }
774
778
  return { gas: formattedGas, ...rest };
775
779
  }
package/dist/lib/types.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SmartRollupRefuteGameEndedReason = exports.SmartRollupRefuteGameEndedPlayerOutcomes = exports.SmartRollupRefuteGameStatusOptions = exports.SmartRollupRefuteRevealProofKind = exports.SmartRollupInputProofKind = exports.SmartRollupRefutationOptions = exports.PvmKind = exports.METADATA_BALANCE_UPDATES_CATEGORY = exports.OPERATION_METADATA = void 0;
4
+ const bignumber_js_1 = require("bignumber.js");
5
+ const BigNumber = bignumber_js_1.default;
4
6
  var OPERATION_METADATA;
5
7
  (function (OPERATION_METADATA) {
6
8
  OPERATION_METADATA["TOO_LARGE"] = "too large";
@@ -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": "fb73f1546d3dff2fbba7741ca6006680212bef16",
7
- "version": "24.3.0-beta.2"
6
+ "commitHash": "a312cd3f4fc0ab0fb3351bfffe6ad855772cb077",
7
+ "version": "24.3.0-beta.3"
8
8
  };
@@ -1362,8 +1362,8 @@ var OpKind;
1362
1362
 
1363
1363
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
1364
1364
  const VERSION = {
1365
- "commitHash": "fb73f1546d3dff2fbba7741ca6006680212bef16",
1366
- "version": "24.3.0-beta.2"
1365
+ "commitHash": "a312cd3f4fc0ab0fb3351bfffe6ad855772cb077",
1366
+ "version": "24.3.0-beta.3"
1367
1367
  };
1368
1368
 
1369
1369
  /**
@@ -2100,9 +2100,13 @@ class RpcClient {
2100
2100
  method: 'POST',
2101
2101
  }, data);
2102
2102
  let formattedGas = gas;
2103
- const tryBigNumber = new BigNumber(gas || '');
2104
- if (!tryBigNumber.isNaN()) {
2105
- formattedGas = tryBigNumber;
2103
+ if (typeof gas === 'string') {
2104
+ try {
2105
+ formattedGas = new BigNumber(gas);
2106
+ }
2107
+ catch {
2108
+ formattedGas = gas;
2109
+ }
2106
2110
  }
2107
2111
  return { gas: formattedGas, ...rest };
2108
2112
  }
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-rpc.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1363,8 +1363,8 @@
1363
1363
 
1364
1364
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
1365
1365
  const VERSION = {
1366
- "commitHash": "fb73f1546d3dff2fbba7741ca6006680212bef16",
1367
- "version": "24.3.0-beta.2"
1366
+ "commitHash": "a312cd3f4fc0ab0fb3351bfffe6ad855772cb077",
1367
+ "version": "24.3.0-beta.3"
1368
1368
  };
1369
1369
 
1370
1370
  /**
@@ -2101,9 +2101,13 @@
2101
2101
  method: 'POST',
2102
2102
  }, data);
2103
2103
  let formattedGas = gas;
2104
- const tryBigNumber = new BigNumber(gas || '');
2105
- if (!tryBigNumber.isNaN()) {
2106
- formattedGas = tryBigNumber;
2104
+ if (typeof gas === 'string') {
2105
+ try {
2106
+ formattedGas = new BigNumber(gas);
2107
+ }
2108
+ catch {
2109
+ formattedGas = gas;
2110
+ }
2107
2111
  }
2108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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +1,6 @@
1
+ import { BigNumber as BigNumberJs } from 'bignumber.js';
2
+ type BigNumber = InstanceType<typeof BigNumberJs>;
3
+ declare const BigNumber: typeof import("bignumber.js");
1
4
  import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingInfoResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsV2, PendingOperationsQueryArguments, MempoolFilterQueryArguments, MempoolFilterResponse, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse, ActiveStakingParametersResponse, PendingStakingParametersResponse, DestinationIndexResponse } from './types';
2
5
  export interface RPCOptions {
3
6
  block: string;
@@ -124,3 +127,4 @@ export declare enum RPCMethodName {
124
127
  GET_MEMPOOL_FILTER = "getMempoolFilter",
125
128
  GET_DESTINATION_INDEX = "getDestinationIndex"
126
129
  }
130
+ export {};
@@ -1,4 +1,6 @@
1
- import BigNumber from 'bignumber.js';
1
+ import BigNumberJs from 'bignumber.js';
2
+ type BigNumber = InstanceType<typeof BigNumberJs>;
3
+ declare const BigNumber: typeof BigNumberJs;
2
4
  import { RpcClientInterface, RPCOptions } from '../rpc-client-interface';
3
5
  import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments, PendingOperationsV2, MempoolFilterQueryArguments, MempoolFilterResponse, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse, DestinationIndexResponse, PendingStakingParametersResponse, ActiveStakingParametersResponse } from '../types';
4
6
  interface CachedDataInterface {
@@ -1,4 +1,6 @@
1
- import BigNumber from 'bignumber.js';
1
+ import BigNumberJs from 'bignumber.js';
2
+ type BigNumber = InstanceType<typeof BigNumberJs>;
3
+ declare const BigNumber: typeof BigNumberJs;
2
4
  import { OpKind } from './opkind';
3
5
  export type BalanceResponse = BigNumber;
4
6
  export type StorageResponse = ScriptedContracts['storage'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/rpc",
3
- "version": "24.3.0-beta.2",
3
+ "version": "24.3.0-beta.3",
4
4
  "description": "TypeScript client and types for the Tezos RPC used by Taquito.",
5
5
  "keywords": [
6
6
  "taquito",
@@ -14,7 +14,6 @@
14
14
  "module": "dist/taquito-rpc.es6.js",
15
15
  "typings": "dist/types/taquito-rpc.d.ts",
16
16
  "files": [
17
- "signature.json",
18
17
  "dist"
19
18
  ],
20
19
  "publishConfig": {
@@ -57,11 +56,10 @@
57
56
  ]
58
57
  },
59
58
  "dependencies": {
60
- "@taquito/core": "^24.3.0-beta.2",
61
- "@taquito/http-utils": "^24.3.0-beta.2",
62
- "@taquito/utils": "^24.3.0-beta.2",
63
- "bignumber.js": "^9.1.2",
64
- "whatwg-url": "^15.1.0"
59
+ "@taquito/core": "^24.3.0-beta.3",
60
+ "@taquito/http-utils": "^24.3.0-beta.3",
61
+ "@taquito/utils": "^24.3.0-beta.3",
62
+ "bignumber.js": "^10.0.2"
65
63
  },
66
64
  "devDependencies": {
67
65
  "@types/bluebird": "^3.5.42",
@@ -69,7 +67,6 @@
69
67
  "@typescript-eslint/eslint-plugin": "^6.21.0",
70
68
  "@typescript-eslint/parser": "^6.21.0",
71
69
  "colors": "^1.4.0",
72
- "coveralls": "^3.1.1",
73
70
  "cross-env": "^7.0.3",
74
71
  "eslint": "^8.57.0",
75
72
  "lint-staged": "^15.2.7",
@@ -78,10 +75,10 @@
78
75
  "prompt": "^1.3.0",
79
76
  "replace-in-file": "^8.1.0",
80
77
  "rimraf": "^6.0.1",
81
- "rollup": "^4.59.0",
78
+ "rollup": "^4.60.1",
82
79
  "rollup-plugin-json": "^4.0.0",
83
80
  "rollup-plugin-polyfill-node": "^0.13.0",
84
- "rollup-plugin-typescript2": "^0.36.0",
81
+ "rollup-plugin-typescript2": "^0.37.0",
85
82
  "shelljs": "^0.8.5",
86
83
  "ts-node": "^10.9.2",
87
84
  "ts-toolbelt": "^9.6.0",
package/signature.json DELETED
@@ -1,219 +0,0 @@
1
- {
2
- "entries": [
3
- {
4
- "entry": "files/v1alpha2",
5
- "value": {
6
- "files": [
7
- {
8
- "path": "dist/lib/opkind.js",
9
- "sha512": "0e60d8f65513650e544e857ef89c748fd0974a7cf0cc35caff5a5b07a631d4596f08b6dec30c8bf1a9bfc489dd935fd6268e0b2498dcd3b5fcff919f37020e78"
10
- },
11
- {
12
- "path": "dist/taquito-rpc.es5.js",
13
- "sha512": "788082fb28a66b77bf242ae03a1ce12ef396885279aec22794e4cd9ba21f0fc932f6abbf0f0f148ba381cd9df42b6524352cbe430e510176aa054743e8983236"
14
- },
15
- {
16
- "path": "dist/lib/taquito-rpc.js",
17
- "sha512": "539a668372f3c2b9279a3e66822d6ba62f4727d120c10c43cab2979ca5474c031982bec60027e9eb3b27523789e72e97fdfb80fef21da07d726afbdd3f6f2627"
18
- },
19
- {
20
- "path": "dist/taquito-rpc.umd.js",
21
- "sha512": "a93ffe6e57854717ab4a115532c0432936289a8edada56f9f876e3dae52c5b15036e6e60daae4fc9561b63548076dfa61d8de2e46004d61754e2e9c6e75195f7"
22
- },
23
- {
24
- "path": "dist/lib/types.js",
25
- "sha512": "9e153af0176a3eb9c340bc30c016b6fc5410466e8f4cd5ce09a73fdb98265c937c30677fbacf526ff7555c93e7da855c8a170fd76798a74693e3fdbcc182380a"
26
- },
27
- {
28
- "path": "dist/lib/utils/utils.js",
29
- "sha512": "368fc6e948d268cf36adcadf6f95f3bec041b242ccd334381e6491ae0566f59b3f8d7b4688c2dc29220efa2cb1f38ec523c5815c042e351aa967086e9e80521c"
30
- },
31
- {
32
- "path": "dist/lib/opkind.js.map",
33
- "sha512": "08c6f08341a04d079da0a7cf6b5d063892f7b4de8ae863725846c6bf38dd01607b750047ec065bb8764a2b66ed1c86bfc6313b4cc3b8bc817d0333b055c27c25"
34
- },
35
- {
36
- "path": "dist/taquito-rpc.es5.js.map",
37
- "sha512": "9819b574b325a5e9c31d1caefbaf7fc1d3aafaf438bd66cf0c7d3cca26ed7278c5de0adddd08b619b8ae25503442dacb2b9faa998f24fb733536f8b1613a36f3"
38
- },
39
- {
40
- "path": "dist/lib/taquito-rpc.js.map",
41
- "sha512": "bf12d5a4ae75c7767f1dcc34ae7f4b3c7ec116a06390c2a4611a8be2ed4f1411050f0a61c65efb152070efac7bae1fac65c3c74c11e02867c789611fbc974d56"
42
- },
43
- {
44
- "path": "dist/taquito-rpc.umd.js.map",
45
- "sha512": "884b5fecbac5744551abc7cf48d10e1ae126476568368a1eafe4bb43a79955ad96019df7f32de6e832a9d2fe86f5a5619fc629784597d78ea75cf08c85226093"
46
- },
47
- {
48
- "path": "dist/lib/types.js.map",
49
- "sha512": "74f2b583fe48066885b78689d02c463274b52b71becdb19f1306fb1c7bbaf63fa7987695f725babcb58a23d772b032877b80340181d70d0b612f49a9d0e3d0e2"
50
- },
51
- {
52
- "path": "dist/lib/utils/utils.js.map",
53
- "sha512": "f1c37cdece493de301df86245baf12314dbbd389fddf5b870257f979d6d6ea01ea67a9b271c8b8645134c0b1fe0eb012ec93e85ed42d42e350ee6ccd60c3f719"
54
- },
55
- {
56
- "path": "README.md",
57
- "sha512": "b36cb4ca675118a195dc72909bb47a45fdc7e6ace50d764d3647c25ae51a0afe01307d835bd76068c0c2d6c15087382f2ec40dbc5a4e117a88326692a4d530b9"
58
- },
59
- {
60
- "path": "dist/types/opkind.d.ts",
61
- "sha512": "617d0d0568a701e211020509a7302fb7747588e661536a9b39e2234a9c0e62fdafcf72c295590a34dbfca16cde378f96557dd87be5ac731642b6d57ebb922c5a"
62
- },
63
- {
64
- "path": "dist/types/taquito-rpc.d.ts",
65
- "sha512": "34cafdca77482b39989bfe32c75dee83791021c45af7efa2c4bee5695e9ec21959451c1834de6c756a45dbb313e038f17ee3703df97f55391476fae0f2bc95a9"
66
- },
67
- {
68
- "path": "dist/types/types.d.ts",
69
- "sha512": "22f689a72332c8718a1ed5bf1dd59962a713a38da5ad73d08238766cf1ce3ed8a0cef30ddb3a7f997ee2516d3228a75d3f4f09e4116278f3451540d129bf3293"
70
- },
71
- {
72
- "path": "dist/types/utils/utils.d.ts",
73
- "sha512": "5006fab10ab85ea4034195bc95d5fbc8e51f374e9fd76b9b6b9d0bc091471209755644247475a153be6ee21fdb6cd6a350512a81e52be321cf0ff56f92acebae"
74
- }
75
- ]
76
- }
77
- },
78
- {
79
- "entry": "identity/v1alpha2",
80
- "value": {
81
- "identity": {
82
- "keybaseUser": "jevonearth"
83
- }
84
- }
85
- },
86
- {
87
- "entry": "npmCompatiblePackageJson/v1alpha2",
88
- "value": {
89
- "packageJsonProperties": [
90
- "author",
91
- "dependencies",
92
- "description",
93
- "devDependencies",
94
- "engines",
95
- "files",
96
- "gitHead",
97
- "jest",
98
- "keywords",
99
- "license",
100
- "lint-staged",
101
- "main",
102
- "module",
103
- "name",
104
- "publishConfig",
105
- "repository",
106
- "scripts",
107
- "typings",
108
- "version"
109
- ],
110
- "sha512": "2317247803f1176714b7fab235762e5fdcff1b064773b9debb3d42aa34a1f27ec83e5eb77e75228f9348be5430faf6fd2ccae6c67cacf1460bafd242c45a4514"
111
- }
112
- },
113
- {
114
- "entry": "packageJson/v1alpha2",
115
- "value": {
116
- "packageJson": {
117
- "name": "@taquito/rpc",
118
- "version": "8.0.4-beta.0",
119
- "description": "Provides low level methods, and types to invoke RPC calls from a Nomadic Tezos RPC node",
120
- "keywords": [
121
- "tezos",
122
- "blockchain",
123
- "rpc"
124
- ],
125
- "main": "dist/taquito-rpc.umd.js",
126
- "module": "dist/taquito-rpc.es5.js",
127
- "typings": "dist/types/taquito-rpc.d.ts",
128
- "files": [
129
- "signature.json",
130
- "dist"
131
- ],
132
- "publishConfig": {
133
- "access": "public"
134
- },
135
- "author": "Simon Boissonneault-Robert <simon@ecadlabs.com>",
136
- "repository": {
137
- "type": "git",
138
- "url": ""
139
- },
140
- "license": "MIT",
141
- "engines": {
142
- "node": ">=18"
143
- },
144
- "scripts": {
145
- "test": "jest --coverage",
146
- "test:watch": "jest --coverage --watch",
147
- "test:prod": "npm run lint && npm run test -- --no-cache",
148
- "lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
149
- "precommit": "lint-staged",
150
- "prebuild": "rimraf dist",
151
- "build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts",
152
- "start": "rollup -c rollup.config.ts -w"
153
- },
154
- "lint-staged": {
155
- "{src,test}/**/*.ts": [
156
- "prettier --write",
157
- "tslint --fix"
158
- ]
159
- },
160
- "jest": {
161
- "transform": {
162
- ".(ts|tsx)": "ts-jest"
163
- },
164
- "testEnvironment": "node",
165
- "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
166
- "moduleFileExtensions": [
167
- "ts",
168
- "tsx",
169
- "js"
170
- ],
171
- "moduleNameMapper": {
172
- "^@taquito/http-utils$": "<rootDir>/../taquito-http-utils/src/taquito-http-utils.ts"
173
- },
174
- "coveragePathIgnorePatterns": [
175
- "/node_modules/",
176
- "/test/"
177
- ],
178
- "collectCoverageFrom": [
179
- "src/**/*.{js,ts}"
180
- ]
181
- },
182
- "dependencies": {
183
- "@taquito/http-utils": "^8.0.4-beta.0",
184
- "bignumber.js": "^9.0.1",
185
- "lodash": "^4.17.20"
186
- },
187
- "devDependencies": {
188
- "@types/jest": "^26.0.16",
189
- "@types/lodash": "^4.14.165",
190
- "@types/node": "^18",
191
- "colors": "^1.4.0",
192
- "coveralls": "^3.1.0",
193
- "cross-env": "^7.0.2",
194
- "jest": "^26.6.3",
195
- "jest-config": "^26.6.3",
196
- "lint-staged": "^10.4.0",
197
- "lodash.camelcase": "^4.3.0",
198
- "prettier": "^2.1.2",
199
- "prompt": "^1.0.0",
200
- "replace-in-file": "^6.1.0",
201
- "rimraf": "^3.0.2",
202
- "rollup": "^2.28.2",
203
- "rollup-plugin-json": "^4.0.0",
204
- "rollup-plugin-typescript2": "^0.27.3",
205
- "shelljs": "^0.8.4",
206
- "ts-jest": "^26.4.4",
207
- "ts-node": "^9.1.1",
208
- "tslint": "^6.1.3",
209
- "tslint-config-prettier": "^1.18.0",
210
- "tslint-config-standard": "^9.0.0",
211
- "typescript": "~4.1.5"
212
- },
213
- "gitHead": "551e35aeff7d6dcde1c72284238c0ed3c3aae77e"
214
- }
215
- }
216
- }
217
- ],
218
- "signature": "-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJgN/UFCRAD9Qy5GYHsngAA4OMQABBJUQMVjjoSYtm9JL/He9c9\ngjqPUgJ3emzVtAagfOB1eNHr2nD0U+r2NSBj20NE+wF3eLBmlnRvIJFsvjakMj5E\nbRMUV+vcB3SWBGZLG8MhC6OShcrWk8Zy08qRkMkOEMhb9v6CQfHJ+y6vyc1iDOhF\njkrPpEviqwLrbiG2m1Bh20DLzG+W8L1q/ndaY1XlhObps1d9th2YbCb+gBExQEbg\nCKb/mGuj1XfU8rG4t3R2EDKlnVpwiEtSolzboznt3vnJN2S73K7Td/i8PzrxWSNX\nDkA5GBqaDa+RQ8k7IqVOAeAQzdcCSzD++LXR0IzbTUfYUneGtwhsr3at65wkYuMS\nT4Dv57S8rcS50xijuOhPWKuSH+mVnkJmd/tpHsVYt9vwjudRtFe3JeJ/xXFymJVs\ntOWhlBNMs+zRMfRtnHM/Nn1nbgXWpyIyLIKh6pFuQTPvQhCGcS7BVs1oNZP6dPcX\n0KCI+O2NcVPSALc5ZmEdZsZ7AWkvuqDFLkLo+M7oPrJOrWxwIq4Zjr+sOLpaesN5\nCX0l8e+QC/kV0tnoILBhitHNQ9d3j0fxrl4h3q9k5XvnbwyfnqPy1uszqHRsExJo\nMQmeyRhNeO5UrtqtVv8dudq9XaD0tSV8PsJdg/Ao/LKi3Wut9PsV6NypMYl1N1k5\nQOXEoWtq2i9XVePw9TNk\n=mjPP\n-----END PGP SIGNATURE-----\n"
219
- }