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.1 to 18.0.0-RC.0

13

dist/lib/opkind.js

@@ -11,8 +11,13 @@ "use strict";

OpKind["ACTIVATION"] = "activate_account";
OpKind["ATTESTATION"] = "attestation";
OpKind["ENDORSEMENT"] = "endorsement";
OpKind["PREATTESTATION"] = "preattestation";
OpKind["PREENDORSEMENT"] = "preendorsement";
OpKind["SET_DEPOSITS_LIMIT"] = "set_deposits_limit";
OpKind["DOUBLE_PREATTESTATION_EVIDENCE"] = "double_preattestation_evidence";
OpKind["DOUBLE_PREENDORSEMENT_EVIDENCE"] = "double_preendorsement_evidence";
OpKind["ATTESTATION_WITH_SLOT"] = "attestation_with_slot";
OpKind["ENDORSEMENT_WITH_SLOT"] = "endorsement_with_slot";
OpKind["SEED_NONCE_REVELATION"] = "seed_nonce_revelation";
OpKind["DOUBLE_ATTESTATION_EVIDENCE"] = "double_attestation_evidence";
OpKind["DOUBLE_ENDORSEMENT_EVIDENCE"] = "double_endorsement_evidence";

@@ -24,10 +29,2 @@ OpKind["DOUBLE_BAKING_EVIDENCE"] = "double_baking_evidence";

OpKind["REGISTER_GLOBAL_CONSTANT"] = "register_global_constant";
OpKind["TX_ROLLUP_ORIGINATION"] = "tx_rollup_origination";
OpKind["TX_ROLLUP_SUBMIT_BATCH"] = "tx_rollup_submit_batch";
OpKind["TX_ROLLUP_COMMIT"] = "tx_rollup_commit";
OpKind["TX_ROLLUP_RETURN_BOND"] = "tx_rollup_return_bond";
OpKind["TX_ROLLUP_FINALIZE_COMMITMENT"] = "tx_rollup_finalize_commitment";
OpKind["TX_ROLLUP_REMOVE_COMMITMENT"] = "tx_rollup_remove_commitment";
OpKind["TX_ROLLUP_REJECTION"] = "tx_rollup_rejection";
OpKind["TX_ROLLUP_DISPATCH_TICKETS"] = "tx_rollup_dispatch_tickets";
OpKind["TRANSFER_TICKET"] = "transfer_ticket";

@@ -34,0 +31,0 @@ OpKind["INCREASE_PAID_STORAGE"] = "increase_paid_storage";

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

exports.defaultChain = 'main';
exports.defaultRPCOptions = { block: 'head' };
exports.defaultRPCOptions = { block: 'head', version: '0' };
var RPCMethodName;

@@ -28,2 +28,3 @@ (function (RPCMethodName) {

RPCMethodName["GET_VOTING_INFO"] = "getVotingInfo";
RPCMethodName["GET_ATTESTATION_RIGHTS"] = "getAttestationRights";
RPCMethodName["GET_ENDORSING_RIGHTS"] = "getEndorsingRights";

@@ -41,4 +42,2 @@ RPCMethodName["GET_ENTRYPOINTS"] = "getEntrypoints";

RPCMethodName["GET_SUCCESSOR_PERIOD"] = "getSuccessorPeriod";
RPCMethodName["GET_TX_ROLLUP_INBOX"] = "getTxRollupInbox";
RPCMethodName["GET_TX_ROLLUP_STATE"] = "getTxRollupState";
RPCMethodName["GET_VOTES_LISTINGS"] = "getVotesListings";

@@ -51,4 +50,3 @@ RPCMethodName["PACK_DATA"] = "packData";

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

@@ -552,2 +552,24 @@ "use strict";

*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-attestation-rights
*/
getAttestationRights(args = {}, { block } = rpc_client_interface_2.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {
const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), rpc_client_interface_1.RPCMethodName.GET_ATTESTATION_RIGHTS, [block, args]);
if (this.has(key)) {
return this.get(key);
}
else {
const response = this.rpcClient.getAttestationRights(args, { block });
this.put(key, response);
return response;
}
});
}
/**
*
* @param args contains optional query arguments
* @param options contains generic configuration for rpc calls
*
* @description Retrieves the list of delegates allowed to bake a block.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-endorsing-rights

@@ -788,3 +810,3 @@ */

*
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/nairobi-openapi.json
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/oxford-openapi.json
*/

@@ -986,35 +1008,2 @@ simulateOperation(op, { block } = rpc_client_interface_2.defaultRPCOptions) {

}
getTxRollupState(txRollupId, { block } = rpc_client_interface_2.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {
const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), rpc_client_interface_1.RPCMethodName.GET_TX_ROLLUP_STATE, [
block,
txRollupId,
]);
if (this.has(key)) {
return this.get(key);
}
else {
const response = this.rpcClient.getTxRollupState(txRollupId, { block });
this.put(key, response);
return response;
}
});
}
getTxRollupInbox(txRollupId, blockLevel, { block } = rpc_client_interface_2.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {
const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), rpc_client_interface_1.RPCMethodName.GET_TX_ROLLUP_INBOX, [
block,
txRollupId,
blockLevel,
]);
if (this.has(key)) {
return this.get(key);
}
else {
const response = this.rpcClient.getTxRollupInbox(txRollupId, blockLevel, { block });
this.put(key, response);
return response;
}
});
}
/**

@@ -1125,23 +1114,4 @@ *

}
/**
*
* @param params contains the PVM kind and kernel to generate the origination proof from
* @description rpc call to generate the origination proof needed for the smart rollup originate operation
* @see https://tezos.gitlab.io/protocols/016_mumbai.html#rpc-changes
*/
getOriginationProof(params, { block } = rpc_client_interface_2.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {
const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), rpc_client_interface_1.RPCMethodName.GET_ORIGINATION_PROOF, [block, params]);
if (this.has(key)) {
return this.get(key);
}
else {
const response = this.rpcClient.getOriginationProof(params, { block });
this.put(key, response);
return response;
}
});
}
}
exports.RpcClientCache = RpcClientCache;
//# sourceMappingURL=rpc-cache.js.map

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

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -110,3 +110,3 @@ * @description Get the block's hash, its unique identifier.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -129,3 +129,3 @@ * @description List the ancestors of the given block which, if referred to as the branch in an operation header, are recent enough for that operation to be included in the current block.

* @param address address from which we want to retrieve the balance
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -149,3 +149,3 @@ * @description Access the balance of a contract.

* @param address contract address from which we want to retrieve the storage
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -187,3 +187,3 @@ * @description Access the data of the contract.

* @param unparsingMode default is { unparsing_mode: "Readable" }
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -205,3 +205,3 @@ * @description Access the script of the contract and normalize it using the requested unparsing mode.

* @param address contract address from which we want to retrieve
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -225,3 +225,3 @@ * @description Access the complete status of a contract.

* @param address contract address from which we want to retrieve the manager
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -244,3 +244,3 @@ * @description Access the manager key of a contract.

* @param address contract address from which we want to retrieve the delegate (baker)
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -275,3 +275,3 @@ * @description Access the delegate of a contract, if any.

* @param address contract address from which we want to retrieve the big map key
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -297,3 +297,3 @@ * @description Access the value associated with a key in the big map storage of the contract.

* @param expr Expression hash to query (A b58check encoded Blake2b hash of the expression (The expression can be packed using the pack_data method))
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -315,3 +315,3 @@ * @description Access the value associated with a key in a big map.

* @param address delegate address which we want to retrieve
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -330,11 +330,11 @@ * @description Fetches information about a delegate from RPC.

const castedResponse = utils_1.castToBigNumber(response, [
'balance',
'full_balance',
'current_frozen_deposits',
'frozen_deposits',
'frozen_balance',
'frozen_deposits_limit',
'staking_balance',
'delegated_balance',
'voting_power',
'balance',
'frozen_balance',
'frozen_deposits_limit',
]);

@@ -358,3 +358,3 @@ return Object.assign(Object.assign(Object.assign({}, response), castedResponse), { frozen_balance_by_cycle: response.frozen_balance_by_cycle

* @param address delegate address which we want to retrieve
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -376,3 +376,3 @@ * @description Returns the delegate info (e.g. voting power) found in the listings of the current voting period.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -423,3 +423,3 @@ * @description All constants

*
* @param options contains generic configuration for rpc calls. See examples for various available sytaxes.
* @param options contains generic configuration for rpc calls to specify block and version.
*

@@ -429,7 +429,7 @@ * @description All the information about a block

* @see https://tezos.gitlab.io/api/rpc.html#get-block-id
* @example getBlock() will default to /main/chains/block/head.
* @example getBlock({ block: head~2 }) will return an offset of 2 blocks.
* @example getBlock({ block: BL8fTiWcSxWCjiMVnDkbh6EuhqVPZzgWheJ2dqwrxYRm9AephXh~2 }) will return an offset of 2 blocks from given block hash..
* @example getBlock() will default to /main/chains/block/head?version=0. version=0 shows { kind: endorsement }
* @example getBlock({ version: 1 }) will return /main/chains/block/head?version=1. version=1 shows { kind: attestation }
* @example getBlock({ block: head~2 }) will return an offset of 2 blocks and default version 0.
*/
getBlock({ block } = rpc_client_interface_1.defaultRPCOptions) {
getBlock({ block, version } = rpc_client_interface_1.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -439,2 +439,3 @@ const response = yield this.httpBackend.createRequest({

method: 'GET',
query: { version },
});

@@ -446,3 +447,3 @@ return response;

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -464,3 +465,3 @@ * @description The whole block header

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block and version.
*

@@ -471,3 +472,3 @@ * @description All the metadata associated to the block

*/
getBlockMetadata({ block } = rpc_client_interface_1.defaultRPCOptions) {
getBlockMetadata({ block, version, } = rpc_client_interface_1.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -477,2 +478,3 @@ const response = yield this.httpBackend.createRequest({

method: 'GET',
query: { version },
});

@@ -485,3 +487,3 @@ return response;

* @param args contains optional query arguments
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -505,4 +507,23 @@ * @description Retrieves the list of delegates allowed to bake a block.

* @param args contains optional query arguments
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*
* @description Retrieves the delegates allowed to attest a block.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-attestation-rights
*/
getAttestationRights(args = {}, { 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/attestation_rights`),
method: 'GET',
query: args,
});
return response;
});
}
/**
*
* @param args contains optional query arguments
* @param options contains generic configuration for rpc calls to specify block
*
* @description Retrieves the list of delegates allowed to bake a block.

@@ -523,3 +544,3 @@ *

/**
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -541,3 +562,3 @@ * @description Ballots casted so far during a voting period

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -560,3 +581,3 @@ * @description Sum of ballots casted so far during a voting period.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -578,3 +599,3 @@ * @description Current proposal under evaluation.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -596,3 +617,3 @@ * @description Current expected quorum.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -620,3 +641,3 @@ * @description List of delegates with their voting weight, in number of rolls.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -642,3 +663,3 @@ * @description List of proposals with number of supporters.

* @param data operation contents to forge
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -676,3 +697,3 @@ * @description Forge an operation returning the unsigned bytes

* @param ops Operations to apply
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block and version
*

@@ -683,3 +704,3 @@ * @description Simulate the validation of an operation

*/
preapplyOperations(ops, { block } = rpc_client_interface_1.defaultRPCOptions) {
preapplyOperations(ops, { block, version } = rpc_client_interface_1.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -689,2 +710,3 @@ const response = yield this.httpBackend.createRequest({

method: 'POST',
query: { version },
}, ops);

@@ -697,5 +719,4 @@ return response;

* @param contract address of the contract we want to get the entrypoints of
*
* @param options contains generic configuration for rpc calls to specify block
* @description Return the list of entrypoints of the contract
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-entrypoints

@@ -717,3 +738,3 @@ *

* @param op Operation to run
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block and version
*

@@ -724,3 +745,3 @@ * @description Run an operation without signature checks

*/
runOperation(op, { block } = rpc_client_interface_1.defaultRPCOptions) {
runOperation(op, { block, version } = rpc_client_interface_1.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -730,2 +751,3 @@ const response = yield this.httpBackend.createRequest({

method: 'POST',
query: { version },
}, op);

@@ -737,9 +759,9 @@ return response;

* @param op Operation to simulate
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block and version
*
* @description Simulate an operation on the blockchain
*
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/nairobi-openapi.json
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/oxford-openapi.json
*/
simulateOperation(op, { block } = rpc_client_interface_1.defaultRPCOptions) {
simulateOperation(op, { block, version } = rpc_client_interface_1.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {

@@ -749,2 +771,3 @@ const response = yield this.httpBackend.createRequest({

method: 'POST',
query: { version },
}, op);

@@ -756,3 +779,3 @@ return response;

* @param code Code to run
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -774,3 +797,3 @@ * @description Run a piece of code in the current context

* @param viewScriptParams Parameters of the script view to run
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -791,3 +814,3 @@ * @description Simulate a call to a michelson view

* @param viewParams Parameters of the view to run
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -817,3 +840,3 @@ * @description Simulate a call to a view following the TZIP-4 standard. See https://gitlab.com/tzip/tzip/-/blob/master/proposals/tzip-4/tzip-4.md#view-entrypoints.

* @param data Data to pack
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -854,3 +877,3 @@ * @description Computes the serialized version of a data expression using the same algorithm as script instruction PACK

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -874,3 +897,3 @@ * @description Voting period of current block.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -895,3 +918,3 @@ * @description Voting period of next block.

* @param id Sapling state ID
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -913,3 +936,3 @@ * @description Access the value associated with a sapling state ID.

* @param contract address of the contract we want to get the sapling diff
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -938,39 +961,4 @@ * @description Access the value associated with a sapling state.

*
* @param tx_rollup_id the transaction rollup ID
* @param options contains generic configuration for rpc calls
*
* @description Access the state of a rollup
*
* @see https://tezos.gitlab.io/jakarta/rpc.html#get-block-id-context-tx-rollup-tx-rollup-id-state
*/
getTxRollupState(txRollupId, { block } = rpc_client_interface_1.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {
return this.httpBackend.createRequest({
url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/tx_rollup/${txRollupId}/state`),
method: 'GET',
});
});
}
/**
*
* @param tx_rollup_id the transaction rollup ID
* @param block_level the block level
* @param options contains generic configuration for rpc calls
*
* @description Access the inbox of a transaction rollup
*
* @see https://tezos.gitlab.io/jakarta/rpc.html#get-block-id-context-tx-rollup-tx-rollup-id-inbox-block-level
*/
getTxRollupInbox(txRollupId, blockLevel, { block } = rpc_client_interface_1.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {
return this.httpBackend.createRequest({
url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/tx_rollup/${txRollupId}/inbox/${blockLevel}`),
method: 'GET',
});
});
}
/**
*
* @param contract address of the contract we want to retrieve storage information of
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -992,3 +980,3 @@ * @description Access the amount of used space in a contract's storage

* @param contract address of the contract we want to retrieve storage information of
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -1011,3 +999,3 @@ * @description Access the amount of paid space in a contract's storage

* @param ticket object to specify a ticket by ticketer, content type and content
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
* @description Access the contract's balance of ticket with specified ticketer, content type, and content.

@@ -1028,3 +1016,3 @@ * @example ticket { ticketer: 'address', content_type: { prim: "string" }, content: { string: 'ticket1' } }

* @param contract originated address we want to retrieve ticket balances of
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
* @description Access the complete list of tickets owned by the given contract by scanning the contract's storage.

@@ -1043,3 +1031,3 @@ * @see https://tezos.gitlab.io/protocols/016_mumbai.html#rpc-changes

* @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint)
* @param args has 5 optional properties. We support version 1 with new encoding as version 0 will be deprecated soon. The rest of the properties is to filter pending operations response
* @param args has 5 optional properties. We support version 1 as default will output { applied: { kind: endorsement} } version 2 will output { validated: { kind: attestation} }. The rest of the properties is to filter pending operations response
* @default args { version: '1', applied: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined }

@@ -1057,18 +1045,4 @@ * @see https://tezos.gitlab.io/CHANGES.html?highlight=pending_operations#id4

}
/**
*
* @param params contains the PVM kind and kernel to generate the origination proof from
* @description rpc call to generate the origination proof needed for a smart rollup originate operation
* @see https://tezos.gitlab.io/protocols/016_mumbai.html#rpc-changes
*/
getOriginationProof(params, { block } = rpc_client_interface_1.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {
return this.httpBackend.createRequest({
url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/smart_rollups/all/origination_proof`),
method: 'POST',
}, params);
});
}
}
exports.RpcClient = RpcClient;
//# sourceMappingURL=taquito-rpc.js.map

@@ -10,13 +10,7 @@ "use strict";

(function (METADATA_BALANCE_UPDATES_CATEGORY) {
METADATA_BALANCE_UPDATES_CATEGORY["BAKING_REWARDS"] = "baking rewards";
METADATA_BALANCE_UPDATES_CATEGORY["REWARDS"] = "rewards";
METADATA_BALANCE_UPDATES_CATEGORY["FEES"] = "fees";
METADATA_BALANCE_UPDATES_CATEGORY["BLOCK_FEES"] = "block fees";
METADATA_BALANCE_UPDATES_CATEGORY["DEPOSITS"] = "deposits";
METADATA_BALANCE_UPDATES_CATEGORY["LEGACY_REWARDS"] = "legacy_rewards";
METADATA_BALANCE_UPDATES_CATEGORY["LEGACY_FEES"] = "legacy_fees";
METADATA_BALANCE_UPDATES_CATEGORY["LEGACY_DEPOSITS"] = "legacy_deposits";
METADATA_BALANCE_UPDATES_CATEGORY["BLOCK_FEES"] = "block fees";
METADATA_BALANCE_UPDATES_CATEGORY["NONCE_REVELATION_REWARDS"] = "nonce revelation rewards";
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_SIGNING_EVIDENCE_REWARDS"] = "double signing evidence rewards";
METADATA_BALANCE_UPDATES_CATEGORY["ENDORSING_REWARDS"] = "endorsing rewards";
METADATA_BALANCE_UPDATES_CATEGORY["BAKING_REWARDS"] = "baking rewards";
METADATA_BALANCE_UPDATES_CATEGORY["BAKING_BONUSES"] = "baking bonuses";

@@ -32,5 +26,12 @@ METADATA_BALANCE_UPDATES_CATEGORY["STORAGE_FEES"] = "storage fees";

METADATA_BALANCE_UPDATES_CATEGORY["MINTED"] = "minted";
METADATA_BALANCE_UPDATES_CATEGORY["TX_ROLLUP_REJECTION_REWARDS"] = "tx_rollup_rejection_rewards";
METADATA_BALANCE_UPDATES_CATEGORY["TX_ROLLUP_REJECTION_PUNISHMENTS"] = "tx_rollup_rejection_punishments";
METADATA_BALANCE_UPDATES_CATEGORY["BONDS"] = "bonds";
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_REFUTATION_PUNISHMENTS"] = "smart_rollup_refutation_punishments";
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_REFUTATION_REWARDS"] = "smart_rollup_refutation_rewards";
METADATA_BALANCE_UPDATES_CATEGORY["UNSTAKED_DEPOSITS"] = "unstaked_deposits";
METADATA_BALANCE_UPDATES_CATEGORY["REWARDS"] = "rewards";
METADATA_BALANCE_UPDATES_CATEGORY["FEES"] = "fees";
METADATA_BALANCE_UPDATES_CATEGORY["LEGACY_REWARDS"] = "legacy_rewards";
METADATA_BALANCE_UPDATES_CATEGORY["LEGACY_FEES"] = "legacy_fees";
METADATA_BALANCE_UPDATES_CATEGORY["LEGACY_DEPOSITS"] = "legacy_deposits";
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_SIGNING_EVIDENCE_REWARDS"] = "double signing evidence rewards";
})(METADATA_BALANCE_UPDATES_CATEGORY = exports.METADATA_BALANCE_UPDATES_CATEGORY || (exports.METADATA_BALANCE_UPDATES_CATEGORY = {}));

@@ -37,0 +38,0 @@ var PvmKind;

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

exports.VERSION = {
"commitHash": "9e27326dabf764c55402c50be4d78681f2c78cca",
"version": "17.3.1"
"commitHash": "21f25a09b87809102b0214544d2c5396eeb5872e",
"version": "18.0.0-RC.0"
};
//# sourceMappingURL=version.js.map

@@ -7,8 +7,13 @@ export declare enum OpKind {

ACTIVATION = "activate_account",
ATTESTATION = "attestation",
ENDORSEMENT = "endorsement",
PREATTESTATION = "preattestation",
PREENDORSEMENT = "preendorsement",
SET_DEPOSITS_LIMIT = "set_deposits_limit",
DOUBLE_PREATTESTATION_EVIDENCE = "double_preattestation_evidence",
DOUBLE_PREENDORSEMENT_EVIDENCE = "double_preendorsement_evidence",
ATTESTATION_WITH_SLOT = "attestation_with_slot",
ENDORSEMENT_WITH_SLOT = "endorsement_with_slot",
SEED_NONCE_REVELATION = "seed_nonce_revelation",
DOUBLE_ATTESTATION_EVIDENCE = "double_attestation_evidence",
DOUBLE_ENDORSEMENT_EVIDENCE = "double_endorsement_evidence",

@@ -20,10 +25,2 @@ DOUBLE_BAKING_EVIDENCE = "double_baking_evidence",

REGISTER_GLOBAL_CONSTANT = "register_global_constant",
TX_ROLLUP_ORIGINATION = "tx_rollup_origination",
TX_ROLLUP_SUBMIT_BATCH = "tx_rollup_submit_batch",
TX_ROLLUP_COMMIT = "tx_rollup_commit",
TX_ROLLUP_RETURN_BOND = "tx_rollup_return_bond",
TX_ROLLUP_FINALIZE_COMMITMENT = "tx_rollup_finalize_commitment",
TX_ROLLUP_REMOVE_COMMITMENT = "tx_rollup_remove_commitment",
TX_ROLLUP_REJECTION = "tx_rollup_rejection",
TX_ROLLUP_DISPATCH_TICKETS = "tx_rollup_dispatch_tickets",
TRANSFER_TICKET = "transfer_ticket",

@@ -30,0 +27,0 @@ INCREASE_PAID_STORAGE = "increase_paid_storage",

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, RPCSimulateOperationParam } from './types';
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, AttestationRightsQueryArguments, EndorsingRightsQueryArguments, AttestationRightsResponse, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingInfoResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsV1, PendingOperationsV2, PendingOperationsQueryArguments, RPCSimulateOperationParam } from './types';
export interface RPCOptions {
block: string;
version?: '0' | '1';
}

@@ -27,2 +28,3 @@ export declare const defaultChain = "main";

getBakingRights(args: BakingRightsQueryArguments, options?: RPCOptions): Promise<BakingRightsResponse>;
getAttestationRights(args: AttestationRightsQueryArguments, options?: RPCOptions): Promise<AttestationRightsResponse>;
getEndorsingRights(args: EndorsingRightsQueryArguments, options?: RPCOptions): Promise<EndorsingRightsResponse>;

@@ -55,4 +57,2 @@ getBallotList(options?: RPCOptions): Promise<BallotListResponse>;

getProtocols(options?: RPCOptions): Promise<ProtocolsResponse>;
getTxRollupState(txRollupId: string, options?: RPCOptions): Promise<TxRollupStateResponse>;
getTxRollupInbox(txRollupId: string, blockLevel: string, options?: RPCOptions): Promise<TxRollupInboxResponse | null>;
getStorageUsedSpace(contract: string, options?: RPCOptions): Promise<string>;

@@ -62,4 +62,3 @@ getStoragePaidSpace(contract: string, options?: RPCOptions): Promise<string>;

getAllTicketBalances(contract: string, options?: RPCOptions): Promise<AllTicketBalances>;
getPendingOperations(args: PendingOperationsQueryArguments): Promise<PendingOperations>;
getOriginationProof(params: OriginationProofParams, options?: RPCOptions): Promise<string>;
getPendingOperations(args: PendingOperationsQueryArguments): Promise<PendingOperationsV1 | PendingOperationsV2>;
}

@@ -86,2 +85,3 @@ export declare enum RPCMethodName {

GET_VOTING_INFO = "getVotingInfo",
GET_ATTESTATION_RIGHTS = "getAttestationRights",
GET_ENDORSING_RIGHTS = "getEndorsingRights",

@@ -99,4 +99,2 @@ GET_ENTRYPOINTS = "getEntrypoints",

GET_SUCCESSOR_PERIOD = "getSuccessorPeriod",
GET_TX_ROLLUP_INBOX = "getTxRollupInbox",
GET_TX_ROLLUP_STATE = "getTxRollupState",
GET_VOTES_LISTINGS = "getVotesListings",

@@ -108,4 +106,3 @@ PACK_DATA = "packData",

GET_ALL_TICKET_BALANCES = "getAllTicketBalances",
GET_PENDING_OPERATIONS = "getPendingOperations",
GET_ORIGINATION_PROOF = "getOriginationProof"
GET_PENDING_OPERATIONS = "getPendingOperations"
}
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, RPCSimulateOperationParam } from '../types';
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, EndorsingRightsQueryArguments, AttestationRightsResponse, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments, PendingOperationsV1, PendingOperationsV2, RPCSimulateOperationParam } from '../types';
interface CachedDataInterface {

@@ -245,2 +245,12 @@ [key: string]: {

*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-attestation-rights
*/
getAttestationRights(args?: AttestationRightsQueryArguments, { block }?: RPCOptions): Promise<AttestationRightsResponse>;
/**
*
* @param args contains optional query arguments
* @param options contains generic configuration for rpc calls
*
* @description Retrieves the list of delegates allowed to bake a block.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-endorsing-rights

@@ -357,3 +367,3 @@ */

*
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/nairobi-openapi.json
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/oxford-openapi.json
*/

@@ -456,8 +466,2 @@ simulateOperation(op: RPCSimulateOperationParam, { block }?: RPCOptions): Promise<PreapplyResponse>;

}): Promise<ProtocolsResponse>;
getTxRollupState(txRollupId: string, { block }?: {
block: string;
}): Promise<TxRollupStateResponse>;
getTxRollupInbox(txRollupId: string, blockLevel: string, { block }?: {
block: string;
}): Promise<TxRollupInboxResponse | null>;
/**

@@ -511,11 +515,4 @@ *

*/
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperations>;
/**
*
* @param params contains the PVM kind and kernel to generate the origination proof from
* @description rpc call to generate the origination proof needed for the smart rollup originate operation
* @see https://tezos.gitlab.io/protocols/016_mumbai.html#rpc-changes
*/
getOriginationProof(params: OriginationProofParams, { block }?: RPCOptions): Promise<string>;
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperationsV1 | PendingOperationsV2>;
}
export {};

@@ -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, RPCSimulateOperationParam } from './types';
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, EndorsingRightsQueryArguments, AttestationRightsResponse, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunViewParam, RPCRunScriptViewParam, RunCodeResult, RunViewResult, RunScriptViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments, PendingOperationsV1, PendingOperationsV2, RPCSimulateOperationParam } from './types';
export { castToBigNumber } from './utils/utils';

@@ -38,3 +38,3 @@ export { RPCOptions, defaultChain, defaultRPCOptions, RpcClientInterface, } from './rpc-client-interface';

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -48,3 +48,3 @@ * @description Get the block's hash, its unique identifier.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -59,3 +59,3 @@ * @description List the ancestors of the given block which, if referred to as the branch in an operation header, are recent enough for that operation to be included in the current block.

* @param address address from which we want to retrieve the balance
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -70,3 +70,3 @@ * @description Access the balance of a contract.

* @param address contract address from which we want to retrieve the storage
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -96,3 +96,3 @@ * @description Access the data of the contract.

* @param unparsingMode default is { unparsing_mode: "Readable" }
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -108,3 +108,3 @@ * @description Access the script of the contract and normalize it using the requested unparsing mode.

* @param address contract address from which we want to retrieve
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -121,3 +121,3 @@ * @description Access the complete status of a contract.

* @param address contract address from which we want to retrieve the manager
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -134,3 +134,3 @@ * @description Access the manager key of a contract.

* @param address contract address from which we want to retrieve the delegate (baker)
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -147,3 +147,3 @@ * @description Access the delegate of a contract, if any.

* @param address contract address from which we want to retrieve the big map key
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -163,3 +163,3 @@ * @description Access the value associated with a key in the big map storage of the contract.

* @param expr Expression hash to query (A b58check encoded Blake2b hash of the expression (The expression can be packed using the pack_data method))
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -176,3 +176,3 @@ * @description Access the value associated with a key in a big map.

* @param address delegate address which we want to retrieve
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -189,3 +189,3 @@ * @description Fetches information about a delegate from RPC.

* @param address delegate address which we want to retrieve
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -201,3 +201,3 @@ * @description Returns the delegate info (e.g. voting power) found in the listings of the current voting period.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -211,3 +211,3 @@ * @description All constants

*
* @param options contains generic configuration for rpc calls. See examples for various available sytaxes.
* @param options contains generic configuration for rpc calls to specify block and version.
*

@@ -217,10 +217,10 @@ * @description All the information about a block

* @see https://tezos.gitlab.io/api/rpc.html#get-block-id
* @example getBlock() will default to /main/chains/block/head.
* @example getBlock({ block: head~2 }) will return an offset of 2 blocks.
* @example getBlock({ block: BL8fTiWcSxWCjiMVnDkbh6EuhqVPZzgWheJ2dqwrxYRm9AephXh~2 }) will return an offset of 2 blocks from given block hash..
* @example getBlock() will default to /main/chains/block/head?version=0. version=0 shows { kind: endorsement }
* @example getBlock({ version: 1 }) will return /main/chains/block/head?version=1. version=1 shows { kind: attestation }
* @example getBlock({ block: head~2 }) will return an offset of 2 blocks and default version 0.
*/
getBlock({ block }?: RPCOptions): Promise<BlockResponse>;
getBlock({ block, version }?: RPCOptions): Promise<BlockResponse>;
/**
*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -234,3 +234,3 @@ * @description The whole block header

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block and version.
*

@@ -241,7 +241,7 @@ * @description All the metadata associated to the block

*/
getBlockMetadata({ block }?: RPCOptions): Promise<BlockMetadata>;
getBlockMetadata({ block, version, }?: RPCOptions): Promise<BlockMetadata>;
/**
*
* @param args contains optional query arguments
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -256,4 +256,14 @@ * @description Retrieves the list of delegates allowed to bake a block.

* @param args contains optional query arguments
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*
* @description Retrieves the delegates allowed to attest a block.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-attestation-rights
*/
getAttestationRights(args?: AttestationRightsQueryArguments, { block }?: RPCOptions): Promise<AttestationRightsResponse>;
/**
*
* @param args contains optional query arguments
* @param options contains generic configuration for rpc calls to specify block
*
* @description Retrieves the list of delegates allowed to bake a block.

@@ -265,3 +275,3 @@ *

/**
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -275,3 +285,3 @@ * @description Ballots casted so far during a voting period

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -285,3 +295,3 @@ * @description Sum of ballots casted so far during a voting period.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -295,3 +305,3 @@ * @description Current proposal under evaluation.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -305,3 +315,3 @@ * @description Current expected quorum.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -315,3 +325,3 @@ * @description List of delegates with their voting weight, in number of rolls.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -326,3 +336,3 @@ * @description List of proposals with number of supporters.

* @param data operation contents to forge
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -346,3 +356,3 @@ * @description Forge an operation returning the unsigned bytes

* @param ops Operations to apply
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block and version
*

@@ -353,9 +363,8 @@ * @description Simulate the validation of an operation

*/
preapplyOperations(ops: PreapplyParams, { block }?: RPCOptions): Promise<PreapplyResponse[]>;
preapplyOperations(ops: PreapplyParams, { block, version }?: RPCOptions): Promise<PreapplyResponse[]>;
/**
*
* @param contract address of the contract we want to get the entrypoints of
*
* @param options contains generic configuration for rpc calls to specify block
* @description Return the list of entrypoints of the contract
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-entrypoints

@@ -368,3 +377,3 @@ *

* @param op Operation to run
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block and version
*

@@ -375,15 +384,15 @@ * @description Run an operation without signature checks

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

@@ -397,3 +406,3 @@ * @description Run a piece of code in the current context

* @param viewScriptParams Parameters of the script view to run
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -406,3 +415,3 @@ * @description Simulate a call to a michelson view

* @param viewParams Parameters of the view to run
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -417,3 +426,3 @@ * @description Simulate a call to a view following the TZIP-4 standard. See https://gitlab.com/tzip/tzip/-/blob/master/proposals/tzip-4/tzip-4.md#view-entrypoints.

* @param data Data to pack
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -442,3 +451,3 @@ * @description Computes the serialized version of a data expression using the same algorithm as script instruction PACK

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -454,3 +463,3 @@ * @description Voting period of current block.

*
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -467,3 +476,3 @@ * @description Voting period of next block.

* @param id Sapling state ID
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -480,3 +489,3 @@ * @description Access the value associated with a sapling state ID.

* @param contract address of the contract we want to get the sapling diff
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -495,29 +504,4 @@ * @description Access the value associated with a sapling state.

*
* @param tx_rollup_id the transaction rollup ID
* @param options contains generic configuration for rpc calls
*
* @description Access the state of a rollup
*
* @see https://tezos.gitlab.io/jakarta/rpc.html#get-block-id-context-tx-rollup-tx-rollup-id-state
*/
getTxRollupState(txRollupId: string, { block }?: {
block: string;
}): Promise<TxRollupStateResponse>;
/**
*
* @param tx_rollup_id the transaction rollup ID
* @param block_level the block level
* @param options contains generic configuration for rpc calls
*
* @description Access the inbox of a transaction rollup
*
* @see https://tezos.gitlab.io/jakarta/rpc.html#get-block-id-context-tx-rollup-tx-rollup-id-inbox-block-level
*/
getTxRollupInbox(txRollupId: string, blockLevel: string, { block }?: {
block: string;
}): Promise<TxRollupInboxResponse | null>;
/**
*
* @param contract address of the contract we want to retrieve storage information of
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -534,3 +518,3 @@ * @description Access the amount of used space in a contract's storage

* @param contract address of the contract we want to retrieve storage information of
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
*

@@ -548,3 +532,3 @@ * @description Access the amount of paid space in a contract's storage

* @param ticket object to specify a ticket by ticketer, content type and content
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
* @description Access the contract's balance of ticket with specified ticketer, content type, and content.

@@ -560,3 +544,3 @@ * @example ticket { ticketer: 'address', content_type: { prim: "string" }, content: { string: 'ticket1' } }

* @param contract originated address we want to retrieve ticket balances of
* @param options contains generic configuration for rpc calls
* @param options contains generic configuration for rpc calls to specify block
* @description Access the complete list of tickets owned by the given contract by scanning the contract's storage.

@@ -570,16 +554,7 @@ * @see https://tezos.gitlab.io/protocols/016_mumbai.html#rpc-changes

* @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint)
* @param args has 5 optional properties. We support version 1 with new encoding as version 0 will be deprecated soon. The rest of the properties is to filter pending operations response
* @param args has 5 optional properties. We support version 1 as default will output { applied: { kind: endorsement} } version 2 will output { validated: { kind: attestation} }. The rest of the properties is to filter pending operations response
* @default args { version: '1', applied: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined }
* @see https://tezos.gitlab.io/CHANGES.html?highlight=pending_operations#id4
*/
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperations>;
/**
*
* @param params contains the PVM kind and kernel to generate the origination proof from
* @description rpc call to generate the origination proof needed for a smart rollup originate operation
* @see https://tezos.gitlab.io/protocols/016_mumbai.html#rpc-changes
*/
getOriginationProof(params: OriginationProofParams, { block }?: {
block: string;
}): Promise<string>;
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperationsV1 | PendingOperationsV2>;
}
{
"name": "@taquito/rpc",
"version": "17.3.1",
"version": "18.0.0-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.3.1",
"@taquito/http-utils": "^17.3.1",
"@taquito/utils": "^17.3.1",
"@taquito/core": "^18.0.0-RC.0",
"@taquito/http-utils": "^18.0.0-RC.0",
"@taquito/utils": "^18.0.0-RC.0",
"bignumber.js": "^9.1.0"

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

},
"gitHead": "3eac9219d501eb9c1334ee8d8aaf9f195e8300cb"
"gitHead": "998e588c7c72f45bb8d95bed54152b618aa18ec3"
}

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 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