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.1.1 to 17.2.0-beta-RC.0

13

dist/lib/rpc-client-modules/rpc-cache.js

@@ -782,2 +782,15 @@ "use strict";

/**
* @param op Operation to simulate
* @param options contains generic configuration for rpc calls
*
* @description Simulate an operation
*
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/nairobi-openapi.json
*/
simulateOperation(op, { block } = rpc_client_interface_2.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {
return this.rpcClient.simulateOperation(op, { block });
});
}
/**
* @param code Code to run

@@ -784,0 +797,0 @@ * @param options contains generic configuration for rpc calls

@@ -699,2 +699,19 @@ "use strict";

/**
* @param op Operation to simulate
* @param options contains generic configuration for rpc calls
*
* @description Simulate an operation on the blockchain
*
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/nairobi-openapi.json
*/
simulateOperation(op, { block } = rpc_client_interface_1.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.httpBackend.createRequest({
url: this.createURL(`/chains/${this.chain}/blocks/${block}/helpers/scripts/simulate_operation`),
method: 'POST',
}, op);
return response;
});
}
/**
* @param code Code to run

@@ -701,0 +718,0 @@ * @param options contains generic configuration for rpc calls

4

dist/lib/version.js

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

exports.VERSION = {
"commitHash": "15732f9b7d575aa46427c94501fb8677a754b733",
"version": "17.1.1"
"commitHash": "96c9d60e1d08c7ac01d81e4d23ba5038c7779c92",
"version": "17.2.0-beta-RC.0"
};
//# sourceMappingURL=version.js.map
import { BigNumber } from 'bignumber.js';
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, TxRollupInboxResponse, TxRollupStateResponse, UnparsingMode, VotesListingsResponse, VotingInfoResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperations, PendingOperationsQueryArguments, OriginationProofParams } from './types';
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, TxRollupInboxResponse, TxRollupStateResponse, UnparsingMode, VotesListingsResponse, VotingInfoResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperations, PendingOperationsQueryArguments, OriginationProofParams, RPCSimulateOperationParam } from './types';
export interface RPCOptions {

@@ -39,2 +39,3 @@ block: string;

runOperation(op: RPCRunOperationParam, options?: RPCOptions): Promise<PreapplyResponse>;
simulateOperation(op: RPCSimulateOperationParam, options?: RPCOptions): Promise<PreapplyResponse>;
runCode(code: RPCRunCodeParam, options?: RPCOptions): Promise<RunCodeResult>;

@@ -41,0 +42,0 @@ runScriptView(viewScriptParams: RPCRunScriptViewParam, options?: RPCOptions): Promise<RunScriptViewResult>;

import BigNumber from 'bignumber.js';
import { RpcClientInterface, RPCOptions } from '../rpc-client-interface';
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, TxRollupInboxResponse, TxRollupStateResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments, PendingOperations, OriginationProofParams } from '../types';
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, TxRollupInboxResponse, TxRollupStateResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments, PendingOperations, OriginationProofParams, RPCSimulateOperationParam } from '../types';
interface CachedDataInterface {

@@ -351,2 +351,11 @@ [key: string]: {

/**
* @param op Operation to simulate
* @param options contains generic configuration for rpc calls
*
* @description Simulate an operation
*
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/nairobi-openapi.json
*/
simulateOperation(op: RPCSimulateOperationParam, { block }?: RPCOptions): Promise<PreapplyResponse>;
/**
* @param code Code to run

@@ -353,0 +362,0 @@ * @param options contains generic configuration for rpc calls

@@ -8,3 +8,3 @@ /**

import { RpcClientInterface, RPCOptions } from './rpc-client-interface';
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunViewParam, RPCRunScriptViewParam, RunCodeResult, RunViewResult, RunScriptViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TxRollupStateResponse, TxRollupInboxResponse, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments, PendingOperations, OriginationProofParams } from './types';
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunViewParam, RPCRunScriptViewParam, RunCodeResult, RunViewResult, RunScriptViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TxRollupStateResponse, TxRollupInboxResponse, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments, PendingOperations, OriginationProofParams, RPCSimulateOperationParam } from './types';
export { castToBigNumber } from './utils/utils';

@@ -349,2 +349,11 @@ export { RPCOptions, defaultChain, defaultRPCOptions, RpcClientInterface, } from './rpc-client-interface';

/**
* @param op Operation to simulate
* @param options contains generic configuration for rpc calls
*
* @description Simulate an operation on the blockchain
*
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/nairobi-openapi.json
*/
simulateOperation(op: RPCSimulateOperationParam, { block }?: RPCOptions): Promise<PreapplyResponse>;
/**
* @param code Code to run

@@ -351,0 +360,0 @@ * @param options contains generic configuration for rpc calls

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

@@ -70,5 +70,5 @@ "keywords": [

"dependencies": {
"@taquito/core": "^17.1.1",
"@taquito/http-utils": "^17.1.1",
"@taquito/utils": "^17.1.1",
"@taquito/core": "^17.2.0-beta-RC.0",
"@taquito/http-utils": "^17.2.0-beta-RC.0",
"@taquito/utils": "^17.2.0-beta-RC.0",
"bignumber.js": "^9.1.0"

@@ -104,3 +104,3 @@ },

},
"gitHead": "8f685d3d4fef68a2cfc44f8da7ba866a11478681"
"gitHead": "14abfbab9dc46c1370a6c2e4483c2585b0f76d88"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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