Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@taquito/rpc

Package Overview
Dependencies
Maintainers
7
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taquito/rpc - npm Package Compare versions

Comparing version 17.3.2 to 17.4.0-beta-RC.0

3

dist/lib/opkind.js

@@ -46,3 +46,2 @@ "use strict";

OpKind["SMART_ROLLUP_TIMEOUT"] = "smart_rollup_timeout";
})(OpKind = exports.OpKind || (exports.OpKind = {}));
//# sourceMappingURL=opkind.js.map
})(OpKind || (exports.OpKind = OpKind = {}));

@@ -49,3 +49,2 @@ "use strict";

RPCMethodName["GET_ORIGINATION_PROOF"] = "getOriginationProof";
})(RPCMethodName = exports.RPCMethodName || (exports.RPCMethodName = {}));
//# sourceMappingURL=rpc-client-interface.js.map
})(RPCMethodName || (exports.RPCMethodName = RPCMethodName = {}));

@@ -87,11 +87,11 @@ "use strict";

validateAddress(address) {
const addressValidation = utils_1.validateAddress(address);
const addressValidation = (0, utils_1.validateAddress)(address);
if (addressValidation !== utils_1.ValidationResult.VALID) {
throw new core_1.InvalidAddressError(address, utils_1.invalidDetail(addressValidation));
throw new core_1.InvalidAddressError(address, (0, utils_1.invalidDetail)(addressValidation));
}
}
validateContract(address) {
const addressValidation = utils_1.validateContractAddress(address);
const addressValidation = (0, utils_1.validateContractAddress)(address);
if (addressValidation !== utils_1.ValidationResult.VALID) {
throw new core_1.InvalidContractAddressError(address, utils_1.invalidDetail(addressValidation));
throw new core_1.InvalidContractAddressError(address, (0, utils_1.invalidDetail)(addressValidation));
}

@@ -815,4 +815,5 @@ }

*/
runScriptView(_a, { block } = rpc_client_interface_2.defaultRPCOptions) {
runScriptView(_a, _b) {
var { unparsing_mode = 'Readable' } = _a, rest = __rest(_a, ["unparsing_mode"]);
var _c = _b === void 0 ? rpc_client_interface_2.defaultRPCOptions : _b, block = _c.block;
return __awaiter(this, void 0, void 0, function* () {

@@ -829,4 +830,5 @@ return this.rpcClient.runScriptView(Object.assign({ unparsing_mode }, rest), { block });

*/
runView(_a, { block } = rpc_client_interface_2.defaultRPCOptions) {
runView(_a, _b) {
var { unparsing_mode = 'Readable' } = _a, rest = __rest(_a, ["unparsing_mode"]);
var _c = _b === void 0 ? rpc_client_interface_2.defaultRPCOptions : _b, block = _c.block;
return __awaiter(this, void 0, void 0, function* () {

@@ -1146,2 +1148,1 @@ return this.rpcClient.runView(Object.assign({ unparsing_mode }, rest), { block });

exports.RpcClientCache = RpcClientCache;
//# sourceMappingURL=rpc-cache.js.map
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -76,14 +80,20 @@ if (k2 === undefined) k2 = k;

// Trim trailing slashes because it is assumed to be included in path
return `${this.url.replace(/\/+$/g, '')}${path}`;
// the regex solution is prone to ReDoS. Please see: https://stackoverflow.com/questions/6680825/return-string-without-trailing-slash#comment124306698_6680877
// We also got a CodeQL error for the regex based solution
let rootUrl = this.url;
while (rootUrl.endsWith('/')) {
rootUrl = rootUrl.slice(0, -1);
}
return `${rootUrl}${path}`;
}
validateAddress(address) {
const addressValidation = utils_2.validateAddress(address);
const addressValidation = (0, utils_2.validateAddress)(address);
if (addressValidation !== utils_2.ValidationResult.VALID) {
throw new core_1.InvalidAddressError(address, utils_2.invalidDetail(addressValidation));
throw new core_1.InvalidAddressError(address, (0, utils_2.invalidDetail)(addressValidation));
}
}
validateContract(address) {
const addressValidation = utils_2.validateContractAddress(address);
const addressValidation = (0, utils_2.validateContractAddress)(address);
if (addressValidation !== utils_2.ValidationResult.VALID) {
throw new core_1.InvalidContractAddressError(address, utils_2.invalidDetail(addressValidation));
throw new core_1.InvalidContractAddressError(address, (0, utils_2.invalidDetail)(addressValidation));
}

@@ -319,3 +329,3 @@ }

});
const castedResponse = utils_1.castToBigNumber(response, [
const castedResponse = (0, utils_1.castToBigNumber)(response, [
'balance',

@@ -334,3 +344,3 @@ 'full_balance',

var { deposit, deposits, fees, rewards } = _a, rest = __rest(_a, ["deposit", "deposits", "fees", "rewards"]);
const castedToBigNumber = utils_1.castToBigNumber({ deposit, deposits, fees, rewards }, [
const castedToBigNumber = (0, utils_1.castToBigNumber)({ deposit, deposits, fees, rewards }, [
'deposit',

@@ -378,3 +388,3 @@ 'deposits',

});
const castedResponse = utils_1.castToBigNumber(response, [
const castedResponse = (0, utils_1.castToBigNumber)(response, [
'time_between_blocks',

@@ -413,3 +423,3 @@ 'hard_gas_limit_per_operation',

*
* @param options contains generic configuration for rpc calls. See examples for various available sytaxes.
* @param options contains generic configuration for rpc calls. See examples for various available syntaxes.
*

@@ -534,3 +544,3 @@ * @description All the information about a block

});
const casted = utils_1.castToBigNumber(response, ['yay', 'nay', 'pass']);
const casted = (0, utils_1.castToBigNumber)(response, ['yay', 'nay', 'pass']);
return casted;

@@ -745,4 +755,5 @@ });

*/
runScriptView(_a, { block } = rpc_client_interface_1.defaultRPCOptions) {
runScriptView(_a, _b) {
var { unparsing_mode = 'Readable' } = _a, rest = __rest(_a, ["unparsing_mode"]);
var _c = _b === void 0 ? rpc_client_interface_1.defaultRPCOptions : _b, block = _c.block;
return __awaiter(this, void 0, void 0, function* () {

@@ -762,4 +773,5 @@ return this.httpBackend.createRequest({

*/
runView(_a, { block } = rpc_client_interface_1.defaultRPCOptions) {
runView(_a, _b) {
var { unparsing_mode = 'Readable' } = _a, rest = __rest(_a, ["unparsing_mode"]);
var _c = _b === void 0 ? rpc_client_interface_1.defaultRPCOptions : _b, block = _c.block;
return __awaiter(this, void 0, void 0, function* () {

@@ -1029,2 +1041,1 @@ return this.httpBackend.createRequest({

exports.RpcClient = RpcClient;
//# sourceMappingURL=taquito-rpc.js.map

@@ -7,3 +7,3 @@ "use strict";

OPERATION_METADATA["TOO_LARGE"] = "too large";
})(OPERATION_METADATA = exports.OPERATION_METADATA || (exports.OPERATION_METADATA = {}));
})(OPERATION_METADATA || (exports.OPERATION_METADATA = OPERATION_METADATA = {}));
var METADATA_BALANCE_UPDATES_CATEGORY;

@@ -35,3 +35,3 @@ (function (METADATA_BALANCE_UPDATES_CATEGORY) {

METADATA_BALANCE_UPDATES_CATEGORY["BONDS"] = "bonds";
})(METADATA_BALANCE_UPDATES_CATEGORY = exports.METADATA_BALANCE_UPDATES_CATEGORY || (exports.METADATA_BALANCE_UPDATES_CATEGORY = {}));
})(METADATA_BALANCE_UPDATES_CATEGORY || (exports.METADATA_BALANCE_UPDATES_CATEGORY = METADATA_BALANCE_UPDATES_CATEGORY = {}));
var PvmKind;

@@ -41,3 +41,3 @@ (function (PvmKind) {

PvmKind["ARITH"] = "arith";
})(PvmKind = exports.PvmKind || (exports.PvmKind = {}));
})(PvmKind || (exports.PvmKind = PvmKind = {}));
var SmartRollupRefutationOptions;

@@ -47,3 +47,3 @@ (function (SmartRollupRefutationOptions) {

SmartRollupRefutationOptions["MOVE"] = "move";
})(SmartRollupRefutationOptions = exports.SmartRollupRefutationOptions || (exports.SmartRollupRefutationOptions = {}));
})(SmartRollupRefutationOptions || (exports.SmartRollupRefutationOptions = SmartRollupRefutationOptions = {}));
var SmartRollupInputProofKind;

@@ -54,3 +54,3 @@ (function (SmartRollupInputProofKind) {

SmartRollupInputProofKind["FIRST_INPUT"] = "first_input";
})(SmartRollupInputProofKind = exports.SmartRollupInputProofKind || (exports.SmartRollupInputProofKind = {}));
})(SmartRollupInputProofKind || (exports.SmartRollupInputProofKind = SmartRollupInputProofKind = {}));
var SmartRollupRefuteRevealProofKind;

@@ -61,3 +61,3 @@ (function (SmartRollupRefuteRevealProofKind) {

SmartRollupRefuteRevealProofKind["DAL_PAGE_PROOF"] = "dal_page_proof";
})(SmartRollupRefuteRevealProofKind = exports.SmartRollupRefuteRevealProofKind || (exports.SmartRollupRefuteRevealProofKind = {}));
})(SmartRollupRefuteRevealProofKind || (exports.SmartRollupRefuteRevealProofKind = SmartRollupRefuteRevealProofKind = {}));
var SmartRollupRefuteGameStatusOptions;

@@ -67,3 +67,3 @@ (function (SmartRollupRefuteGameStatusOptions) {

SmartRollupRefuteGameStatusOptions["ENDED"] = "ended";
})(SmartRollupRefuteGameStatusOptions = exports.SmartRollupRefuteGameStatusOptions || (exports.SmartRollupRefuteGameStatusOptions = {}));
})(SmartRollupRefuteGameStatusOptions || (exports.SmartRollupRefuteGameStatusOptions = SmartRollupRefuteGameStatusOptions = {}));
var SmartRollupRefuteGameEndedPlayerOutcomes;

@@ -73,3 +73,3 @@ (function (SmartRollupRefuteGameEndedPlayerOutcomes) {

SmartRollupRefuteGameEndedPlayerOutcomes["DRAW"] = "draw";
})(SmartRollupRefuteGameEndedPlayerOutcomes = exports.SmartRollupRefuteGameEndedPlayerOutcomes || (exports.SmartRollupRefuteGameEndedPlayerOutcomes = {}));
})(SmartRollupRefuteGameEndedPlayerOutcomes || (exports.SmartRollupRefuteGameEndedPlayerOutcomes = SmartRollupRefuteGameEndedPlayerOutcomes = {}));
var SmartRollupRefuteGameEndedReason;

@@ -79,3 +79,2 @@ (function (SmartRollupRefuteGameEndedReason) {

SmartRollupRefuteGameEndedReason["TIMEOUT"] = "timeout";
})(SmartRollupRefuteGameEndedReason = exports.SmartRollupRefuteGameEndedReason || (exports.SmartRollupRefuteGameEndedReason = {}));
//# sourceMappingURL=types.js.map
})(SmartRollupRefuteGameEndedReason || (exports.SmartRollupRefuteGameEndedReason = SmartRollupRefuteGameEndedReason = {}));

@@ -64,2 +64,1 @@ "use strict";

exports.castToString = castToString;
//# sourceMappingURL=utils.js.map

@@ -6,5 +6,4 @@ "use strict";

exports.VERSION = {
"commitHash": "a97e506efd61b86e39ae30db588401b8fda46553",
"version": "17.3.2"
"commitHash": "4f44dd73b7659554c167acb80f0c20f222f893a5",
"version": "17.4.0-beta-RC.0"
};
//# sourceMappingURL=version.js.map

@@ -0,0 +0,0 @@ export declare enum OpKind {

@@ -0,0 +0,0 @@ import { BigNumber } from 'bignumber.js';

@@ -0,0 +0,0 @@ import BigNumber from 'bignumber.js';

@@ -197,3 +197,3 @@ /**

*
* @param options contains generic configuration for rpc calls. See examples for various available sytaxes.
* @param options contains generic configuration for rpc calls. See examples for various available syntaxes.
*

@@ -200,0 +200,0 @@ * @description All the information about a block

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ export declare const VERSION: {

{
"name": "@taquito/rpc",
"version": "17.3.2",
"version": "17.4.0-beta-RC.0",
"description": "Provides low level methods, and types to invoke RPC calls from a Nomadic Tezos RPC node",

@@ -27,3 +27,3 @@ "keywords": [

"engines": {
"node": ">=16"
"node": ">=18"
},

@@ -38,4 +38,4 @@ "scripts": {

"version-stamp": "node ../taquito/version-stamping.js",
"build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts ",
"start": "rollup -c rollup.config.ts -w"
"build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts --bundleConfigAsCjs",
"start": "rollup -c rollup.config.ts --bundleConfigAsCjs -w"
},

@@ -45,4 +45,3 @@ "lint-staged": {

"prettier --write",
"eslint --fix",
"git add"
"eslint --fix"
]

@@ -73,36 +72,35 @@ },

"dependencies": {
"@taquito/core": "^17.3.2",
"@taquito/http-utils": "^17.3.2",
"@taquito/utils": "^17.3.2",
"bignumber.js": "^9.1.0"
"@taquito/core": "^17.4.0-beta-RC.0",
"@taquito/http-utils": "^17.4.0-beta-RC.0",
"@taquito/utils": "^17.4.0-beta-RC.0",
"bignumber.js": "^9.1.2"
},
"devDependencies": {
"@types/bluebird": "^3.5.36",
"@types/jest": "^26.0.23",
"@types/node": "^16",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"@types/bluebird": "^3.5.40",
"@types/jest": "^29.5.5",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"colors": "^1.4.0",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"eslint": "^8.17.0",
"jest": "^26.6.3",
"jest-config": "^26.6.3",
"lint-staged": "^13.0.1",
"eslint": "^8.51.0",
"jest": "^29.7.0",
"jest-config": "^29.7.0",
"lint-staged": "^14.0.1",
"lodash.camelcase": "^4.3.0",
"prettier": "^2.7.0",
"prettier": "^3.0.3",
"prompt": "^1.3.0",
"replace-in-file": "^6.3.5",
"rimraf": "^3.0.2",
"rollup": "^2.75.6",
"replace-in-file": "^7.0.1",
"rimraf": "^5.0.5",
"rollup": "^4.1.4",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-typescript2": "^0.32.1",
"rollup-plugin-typescript2": "^0.36.0",
"shelljs": "^0.8.5",
"ts-jest": "^26.4.4",
"ts-node": "^10.4.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"ts-toolbelt": "^9.6.0",
"typescript": "~4.1.5"
"typescript": "~5.2.2"
},
"gitHead": "a8dac9c64a1511b398fb8acb88cc8fb593d5d0f3"
"gitHead": "34103941d52e31a808e051ea19dbecf43f984dca"
}

@@ -142,3 +142,3 @@ {

"engines": {
"node": ">=16"
"node": ">=18"
},

@@ -152,3 +152,3 @@ "scripts": {

"prebuild": "rimraf dist",
"build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts ",
"build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts",
"start": "rollup -c rollup.config.ts -w"

@@ -159,4 +159,3 @@ },

"prettier --write",
"tslint --fix",
"git add"
"tslint --fix"
]

@@ -194,3 +193,3 @@ },

"@types/lodash": "^4.14.165",
"@types/node": "^16",
"@types/node": "^18",
"colors": "^1.4.0",

@@ -209,3 +208,2 @@ "coveralls": "^3.1.0",

"rollup-plugin-json": "^4.0.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-typescript2": "^0.27.3",

@@ -212,0 +210,0 @@ "shelljs": "^0.8.4",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc