Socket
Socket
Sign inDemoInstall

@taquito/rpc

Package Overview
Dependencies
Maintainers
7
Versions
199
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 18.0.0-RC.0 to 19.0.0-beta-RC.0

3

dist/lib/opkind.js

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

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

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

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

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

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

@@ -87,19 +87,16 @@ "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));
}
}
/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Get the block's hash, its unique identifier.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-hash

@@ -123,7 +120,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @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.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-live-blocks

@@ -147,8 +141,5 @@ */

/**
*
* @param address address from which we want to retrieve the balance
* @param options contains generic configuration for rpc calls
*
* @description Access the balance of a contract.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the spendable balance of a contract, excluding frozen bonds
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-balance

@@ -174,8 +165,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the storage
* @param options contains generic configuration for rpc calls
* @throws {@link InvalidContractAddressError}
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the data of the contract.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-storage

@@ -201,8 +189,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the script
* @param options contains generic configuration for rpc calls
* @throws {@link InvalidContractAddressError}
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the code and data of the contract.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-script

@@ -228,9 +213,6 @@ */

/**
*
* @param address contract address from which we want to retrieve the script
* @param unparsingMode default is { unparsing_mode: "Readable" }
* @param options contains generic configuration for rpc calls
* @throws {@link InvalidContractAddressError}
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the script of the contract and normalize it using the requested unparsing mode.
*
*/

@@ -252,8 +234,5 @@ getNormalizedScript(address, unparsingMode = { unparsing_mode: 'Readable' }, { block } = rpc_client_interface_2.defaultRPCOptions) {

/**
*
* @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 specified block (default to head)
* @description Access the complete status of a contract.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id

@@ -279,8 +258,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the manager
* @param options contains generic configuration for rpc calls
*
* @description Access the manager key of a contract.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the manager of an implicit contract
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-manager-key

@@ -306,8 +282,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the delegate (baker)
* @param options contains generic configuration for rpc calls
*
* @description Access the delegate of a contract, if any.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the delegate of a contract, if any
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-delegate

@@ -333,10 +306,6 @@ */

/**
*
* @deprecated Deprecated in favor of getBigMapKeyByID
* @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 specified block (default to head)
* @description Access the value associated with a key in the big map storage of the contract.
*
* @deprecated Deprecated in favor of getBigMapKeyByID
*
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-context-contracts-contract-id-big-map-get

@@ -359,9 +328,6 @@ */

/**
*
* @param id Big Map ID
* @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 specified block (default to head)
* @description Access the value associated with a key in a big map.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-big-maps-big-map-id-script-expr

@@ -387,8 +353,5 @@ */

/**
*
* @param address delegate address which we want to retrieve
* @param options contains generic configuration for rpc calls
*
* @description Fetches information about a delegate from RPC.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Everything about a delegate
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-delegates-pkh

@@ -414,9 +377,6 @@ */

/**
*
* @param address delegate address which we want to retrieve
* @param options contains generic configuration for rpc calls
*
* @description Returns the delegate info (e.g. voting power) found in the listings of the current voting period.
*
* @see https://tezos.gitlab.io/kathmandu/rpc.html#get-block-id-context-delegates-pkh-voting-info
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the delegate info (e.g. voting power) found in the listings of the current voting period
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-voting-info
*/

@@ -441,7 +401,4 @@ getVotingInfo(address, { block } = rpc_client_interface_2.defaultRPCOptions) {

/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description All constants
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-constants

@@ -465,11 +422,8 @@ */

/**
*
* @param options contains generic configuration for rpc calls. See examples for various available sytaxes.
*
* @param options contains generic configuration for rpc calls to specified block (default to head) and version.
* @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` which shows { kind: endorsement }
* @example getBlock({ block: 'head~2', version: 1 }) will return an offset of 2 from head blocks and shows { kind: attestation }
* @example getBlock({ block: 'BL8fTiWcSxWCjiMVnDkbh6EuhqVPZzgWheJ2dqwrxYRm9AephXh~2' }) will return an offset of 2 blocks from given block hash..
*/

@@ -490,7 +444,4 @@ getBlock({ block } = rpc_client_interface_2.defaultRPCOptions) {

/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description The whole block header
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-header

@@ -514,7 +465,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head) and version
* @description All the metadata associated to the block
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-metadata

@@ -538,8 +486,5 @@ */

/**
*
* @param args contains optional query arguments
* @param options contains generic configuration for rpc calls
*
* @param args contains optional query arguments (level, cycle, delegate, consensus_key, and max_round)
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Retrieves the list of delegates allowed to bake a block.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-baking-rights

@@ -564,9 +509,6 @@ */

/**
*
* @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-attestation-rights
* @param args contains optional query arguments (level, cycle, delegate, and consensus_key)
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Retrieves the delegates allowed to attest a block
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-endorsing-rights
*/

@@ -587,8 +529,6 @@ getAttestationRights(args = {}, { block } = rpc_client_interface_2.defaultRPCOptions) {

/**
*
* @param args contains optional query arguments
* @deprecated Deprecated in favor of getAttestationRights
* @param args contains optional query arguments (level, cycle, delegate, and consensus_key)
* @param options contains generic configuration for rpc calls
*
* @description Retrieves the list of delegates allowed to bake a block.
*
* @description Retrieves the delegates allowed to endorse a block
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-endorsing-rights

@@ -610,6 +550,4 @@ */

/**
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Ballots casted so far during a voting period
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-ballot-list

@@ -633,7 +571,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @description Sum of ballots casted so far during a voting period.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Sum of ballots casted so far during a voting period
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-ballots

@@ -655,7 +590,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Current proposal under evaluation.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-current-proposal

@@ -677,7 +609,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Current expected quorum.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-current-quorum

@@ -701,7 +630,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @description List of delegates with their voting weight, in number of rolls.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description List of delegates with their voting power
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-listings

@@ -725,7 +651,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @description List of proposals with number of supporters.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description List of proposals with number of supporters
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-proposals

@@ -749,8 +672,5 @@ */

/**
*
* @param data operation contents to forge
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Forge an operation returning the unsigned bytes
*
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-forge-operations

@@ -764,7 +684,4 @@ */

/**
*
* @param signedOpBytes signed bytes to inject
*
* @description Inject an operation in node and broadcast it. Returns the ID of the operation. The `signedOperationContents` should be constructed using a contextual RPCs from the latest block and signed by the client. By default, the RPC will wait for the operation to be (pre-)validated before answering. See RPCs under /blocks/prevalidation for more details on the prevalidation context.
*
* @description Inject an operation in node and broadcast it and return the ID of the operation
* @see https://tezos.gitlab.io/api/rpc.html#post-injection-operation

@@ -778,8 +695,5 @@ */

/**
*
* @param ops Operations to apply
* @param options contains generic configuration for rpc calls
*
* @description Simulate the validation of an operation
*
* @param options contains generic configuration for rpc calls to specified block and version
* @description Simulate the application of the operations with the context of the given block and return the result of each operation application
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-preapply-operations

@@ -793,9 +707,6 @@ */

/**
*
* @param contract address of the contract we want to get the entrypoints of
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Return the list of entrypoints of the contract
* @throws {@link InvalidContractAddressError}
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-entrypoints
*
* @version 005_PsBABY5H

@@ -821,7 +732,6 @@ */

/**
* @deprecated Deprecated in favor of simulateOperation
* @param op Operation to run
* @param options contains generic configuration for rpc calls
*
* @description Run an operation without signature checks
*
* @param options contains generic configuration for rpc calls to specified block and version
* @description Run an operation with the context of the given block and without signature checks and return the operation application result, including the consumed gas.
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-scripts-run-operation

@@ -836,6 +746,4 @@ */

* @param op Operation to simulate
* @param options contains generic configuration for rpc calls
*
* @description Simulate an operation
*
* @param options contains generic configuration for rpc calls to specified block and version
* @description Simulate running an operation at some future moment (based on the number of blocks given in the `latency` argument), and return the operation application result.
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/oxford-openapi.json

@@ -850,6 +758,4 @@ */

* @param code Code to run
* @param options contains generic configuration for rpc calls
*
* @description Run a piece of code in the current context
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Run a Michelson script in the current context
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-scripts-run-code

@@ -864,9 +770,8 @@ */

* @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 specified block (default to head)
* @description Simulate a call to a michelson view
*
*/
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* () {

@@ -878,9 +783,8 @@ return this.rpcClient.runScriptView(Object.assign({ unparsing_mode }, rest), { block });

* @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 specified block (default to head)
* @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.
*
*/
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* () {

@@ -904,10 +808,10 @@ return this.rpcClient.runView(Object.assign({ unparsing_mode }, rest), { block });

/**
*
* @param data Data to pack
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Computes the serialized version of a data expression using the same algorithm as script instruction PACK
*
* Note: You should always verify the packed bytes before signing or requesting that they be signed when using the the RPC to pack.
* This precaution helps protect you and your applications users from RPC nodes that have been compromised.
* A node that is operated by a bad actor, or compromised by a bad actor could return a fully formed operation that does not correspond to the input provided to the RPC endpoint.
* A safer solution to pack and sign data would be to use the `packDataBytes` function available in the `@taquito/michel-codec` package.
* @example packData({ data: { string: "test" }, type: { prim: "string" } })
*
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-scripts-pack-data

@@ -936,9 +840,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @description Voting period of current block.
*
* @example getCurrentPeriod() will default to current voting period for /main/chains/block/head.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the voting period (index, kind, starting position) and related information (position, remaining) of the interrogated block
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-current-period

@@ -962,9 +861,5 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @description Voting period of next block.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the voting period (index, kind, starting position) and related information (position, remaining) of the next block.Useful to craft operations that will be valid in the next block
* @example getSuccessorPeriod() will default to successor voting period for /main/chains/block/head.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-successor-period

@@ -986,8 +881,5 @@ */

/**
*
* @param id Sapling state ID
* @param options contains generic configuration for rpc calls
*
* @description Access the value associated with a sapling state ID.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the root and a diff of a state starting from an optional offset which is zero by default
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-sapling-sapling-state-id-get-diff

@@ -1009,8 +901,5 @@ */

/**
*
* @param contract address of the contract we want to get the sapling diff
* @param options contains generic configuration for rpc calls
*
* @description Access the value associated with a sapling state.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the root and a diff of a state starting from an optional offset which is zero by default
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-contracts-contract-id-single-sapling-get-diff

@@ -1031,2 +920,7 @@ */

}
/**
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description get current and next protocol
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-protocols
*/
getProtocols({ block } = rpc_client_interface_2.defaultRPCOptions) {

@@ -1048,8 +942,5 @@ return __awaiter(this, void 0, void 0, function* () {

/**
*
* @param contract address of the contract we want to retrieve storage information of
* @param options contains generic configuration for rpc calls
*
* @description Access the amount of used space used in a contract's storage
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the used storage space of the contract
* @see https://tezos.gitlab.io/lima/rpc.html#get-block-id-context-contracts-contract-id-storage

@@ -1071,8 +962,5 @@ */

/**
*
* @param contract address of the contract we want to retrieve storage information of
* @param options contains generic configuration for rpc calls
*
* @description Access the amount of paid space in a contract's storage
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
= * @description Access the paid storage space of the contract
* @see https://tezos.gitlab.io/lima/rpc.html#get-block-id-context-contracts-contract-id-storage

@@ -1094,8 +982,7 @@ */

/**
*
* @param contract address of the contract we want to retrieve ticket balance of
* @param ticket Ticket token parameter object that contains ticketer, content type, and content
* @param options contains generic configuration for rpc calls
* @param contract implicit or originated address we want to retrieve ticket balance of
* @param ticket object to specify a ticket by ticketer, content type and content
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the contract's balance of ticket with specified ticketer, content type, and content.
* @example ticket{ ticketer: 'address', content_type: { prim: "string" }, content: { string: 'ticket1' } }
* @example ticket { ticketer: 'address', content_type: { prim: "string" }, content: { string: 'ticket1' } }
* @see https://tezos.gitlab.io/protocols/016_mumbai.html#rpc-changes

@@ -1117,5 +1004,4 @@ */

/**
*
* @param contract address of the contract to retrieve all ticket balances from
* @param options contains generic configuration for rpc calls
* @param contract originated address we want to retrieve ticket balances of
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the complete list of tickets owned by the given contract by scanning the contract's storage.

@@ -1139,3 +1025,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 }

@@ -1159,2 +1045,1 @@ * @see https://tezos.gitlab.io/CHANGES.html?highlight=pending_operations#id4

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,22 +80,25 @@ 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));
}
}
/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Get the block's hash, its unique identifier.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-hash

@@ -109,7 +116,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @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.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-live-blocks

@@ -127,8 +131,5 @@ */

/**
*
* @param address address from which we want to retrieve the balance
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the balance of a contract.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the spendable balance of a contract, excluding frozen bonds
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-balance

@@ -147,8 +148,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the storage
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the data of the contract.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-storage

@@ -166,8 +164,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the script
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the code and data of the contract.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-script

@@ -185,9 +180,6 @@ */

/**
*
* @param address contract address from which we want to retrieve the script
* @param unparsingMode default is { unparsing_mode: "Readable" }
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the script of the contract and normalize it using the requested unparsing mode.
*
*/

@@ -204,8 +196,5 @@ getNormalizedScript(address, unparsingMode = { unparsing_mode: 'Readable' }, { block } = rpc_client_interface_1.defaultRPCOptions) {

/**
*
* @param address contract address from which we want to retrieve
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the complete status of a contract.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id

@@ -224,8 +213,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the manager
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the manager key of a contract.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the manager of an implicit contract
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-manager-key

@@ -243,8 +229,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the delegate (baker)
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the delegate of a contract, if any.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the delegate of a contract, if any
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-delegate

@@ -274,10 +257,6 @@ */

/**
*
* @deprecated Deprecated in favor of getBigMapKeyByID
* @param address contract address from which we want to retrieve the big map key
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the value associated with a key in the big map storage of the contract.
*
* @deprecated Deprecated in favor of getBigMapKeyByID
*
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-context-contracts-contract-id-big-map-get

@@ -295,9 +274,6 @@ */

/**
*
* @param id Big Map ID
* @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 to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the value associated with a key in a big map.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-big-maps-big-map-id-script-expr

@@ -314,8 +290,5 @@ */

/**
*
* @param address delegate address which we want to retrieve
* @param options contains generic configuration for rpc calls to specify block
*
* @description Fetches information about a delegate from RPC.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Everything about a delegate
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-delegates-pkh

@@ -330,12 +303,14 @@ */

});
const castedResponse = utils_1.castToBigNumber(response, [
const castedResponse = (0, 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',
'total_delegated_stake',
'staking_denominator',
]);

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

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

@@ -358,9 +333,6 @@ 'deposits',

/**
*
* @param address delegate address which we want to retrieve
* @param options contains generic configuration for rpc calls to specify block
*
* @description Returns the delegate info (e.g. voting power) found in the listings of the current voting period.
*
* @see https://tezos.gitlab.io/kathmandu/rpc.html#get-block-id-context-delegates-pkh-voting-info
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the delegate info (e.g. voting power) found in the listings of the current voting period
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-voting-info
*/

@@ -377,7 +349,4 @@ getVotingInfo(address, { block } = rpc_client_interface_1.defaultRPCOptions) {

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description All constants
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-constants

@@ -391,3 +360,3 @@ */

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

@@ -425,28 +394,24 @@ 'hard_gas_limit_per_operation',

/**
*
* @param options contains generic configuration for rpc calls to specify block and version.
*
* @param options contains generic configuration for rpc calls to specified block (default to head) and version.
* @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?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.
* @example getBlock() will default to `/main/chains/block/head?version=0` which shows { kind: endorsement }
* @example getBlock({ block: 'head~2', version: 1 }) will return an offset of 2 from head blocks and shows { kind: attestation }
* @example getBlock({ block: 'BL8fTiWcSxWCjiMVnDkbh6EuhqVPZzgWheJ2dqwrxYRm9AephXh~2' }) will return an offset of 2 blocks from given block hash..
*/
getBlock({ block, version } = rpc_client_interface_1.defaultRPCOptions) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.httpBackend.createRequest({
const requestOptions = {
url: this.createURL(`/chains/${this.chain}/blocks/${block}`),
method: 'GET',
query: { version },
});
return response;
};
if (version !== undefined) {
requestOptions.query = { version };
}
return yield this.httpBackend.createRequest(requestOptions);
});
}
/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description The whole block header
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-header

@@ -464,7 +429,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block and version.
*
* @param options contains generic configuration for rpc calls to specified block (default to head) and version
* @description All the metadata associated to the block
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-metadata

@@ -474,17 +436,16 @@ */

return __awaiter(this, void 0, void 0, function* () {
const response = yield this.httpBackend.createRequest({
const requestOptions = {
url: this.createURL(`/chains/${this.chain}/blocks/${block}/metadata`),
method: 'GET',
query: { version },
});
return response;
};
if (version !== undefined) {
requestOptions.query = { version };
}
return yield this.httpBackend.createRequest(requestOptions);
});
}
/**
*
* @param args contains optional query arguments
* @param options contains generic configuration for rpc calls to specify block
*
* @param args contains optional query arguments (level, cycle, delegate, consensus_key, and max_round)
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Retrieves the list of delegates allowed to bake a block.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-baking-rights

@@ -503,9 +464,6 @@ */

/**
*
* @param args contains optional query arguments
* @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
* @param args contains optional query arguments (level, cycle, delegate, and consensus_key)
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Retrieves the delegates allowed to attest a block
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-endorsing-rights
*/

@@ -523,8 +481,6 @@ getAttestationRights(args = {}, { block } = rpc_client_interface_1.defaultRPCOptions) {

/**
*
* @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.
*
* @deprecated Deprecated in favor of getAttestationRights
* @param args contains optional query arguments (level, cycle, delegate, and consensus_key)
* @param options contains generic configuration for rpc calls
* @description Retrieves the delegates allowed to endorse a block
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-endorsing-rights

@@ -543,6 +499,4 @@ */

/**
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Ballots casted so far during a voting period
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-ballot-list

@@ -560,7 +514,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @description Sum of ballots casted so far during a voting period.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Sum of ballots casted so far during a voting period
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-ballots

@@ -574,3 +525,3 @@ */

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

@@ -580,7 +531,4 @@ });

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Current proposal under evaluation.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-current-proposal

@@ -598,7 +546,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Current expected quorum.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-current-quorum

@@ -616,7 +561,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @description List of delegates with their voting weight, in number of rolls.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description List of delegates with their voting power
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-listings

@@ -640,7 +582,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @description List of proposals with number of supporters.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description List of proposals with number of supporters
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-proposals

@@ -661,8 +600,5 @@ */

/**
*
* @param data operation contents to forge
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Forge an operation returning the unsigned bytes
*
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-forge-operations

@@ -679,7 +615,4 @@ */

/**
*
* @param signedOpBytes signed bytes to inject
*
* @description Inject an operation in node and broadcast it. Returns the ID of the operation. The `signedOperationContents` should be constructed using a contextual RPCs from the latest block and signed by the client. By default, the RPC will wait for the operation to be (pre-)validated before answering. See RPCs under /blocks/prevalidation for more details on the prevalidation context.
*
* @description Inject an operation in node and broadcast it and return the ID of the operation
* @see https://tezos.gitlab.io/api/rpc.html#post-injection-operation

@@ -696,8 +629,5 @@ */

/**
*
* @param ops Operations to apply
* @param options contains generic configuration for rpc calls to specify block and version
*
* @description Simulate the validation of an operation
*
* @param options contains generic configuration for rpc calls to specified block and version
* @description Simulate the application of the operations with the context of the given block and return the result of each operation application
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-preapply-operations

@@ -707,17 +637,17 @@ */

return __awaiter(this, void 0, void 0, function* () {
const response = yield this.httpBackend.createRequest({
const requestOptions = {
url: this.createURL(`/chains/${this.chain}/blocks/${block}/helpers/preapply/operations`),
method: 'POST',
query: { version },
}, ops);
return response;
};
if (version !== undefined) {
requestOptions.query = { version };
}
return yield this.httpBackend.createRequest(requestOptions, ops);
});
}
/**
*
* @param contract address of the contract we want to get the entrypoints of
* @param options contains generic configuration for rpc calls to specify block
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @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
*
* @version 005_PsBABY5H

@@ -736,7 +666,6 @@ */

/**
* @deprecated Deprecated in favor of simulateOperation
* @param op Operation to run
* @param options contains generic configuration for rpc calls to specify block and version
*
* @description Run an operation without signature checks
*
* @param options contains generic configuration for rpc calls to specified block and version
* @description Run an operation with the context of the given block and without signature checks and return the operation application result, including the consumed gas.
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-scripts-run-operation

@@ -746,8 +675,10 @@ */

return __awaiter(this, void 0, void 0, function* () {
const response = yield this.httpBackend.createRequest({
const requestOptions = {
url: this.createURL(`/chains/${this.chain}/blocks/${block}/helpers/scripts/run_operation`),
method: 'POST',
query: { version },
}, op);
return response;
};
if (version !== undefined) {
requestOptions.query = { version };
}
return yield this.httpBackend.createRequest(requestOptions, op);
});

@@ -757,6 +688,4 @@ }

* @param op Operation to simulate
* @param options contains generic configuration for rpc calls to specify block and version
*
* @description Simulate an operation on the blockchain
*
* @param options contains generic configuration for rpc calls to specified block and version
* @description Simulate running an operation at some future moment (based on the number of blocks given in the `latency` argument), and return the operation application result.
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/oxford-openapi.json

@@ -766,8 +695,10 @@ */

return __awaiter(this, void 0, void 0, function* () {
const response = yield this.httpBackend.createRequest({
const requestOptions = {
url: this.createURL(`/chains/${this.chain}/blocks/${block}/helpers/scripts/simulate_operation`),
method: 'POST',
query: { version },
}, op);
return response;
};
if (version !== undefined) {
requestOptions.query = { version };
}
return yield this.httpBackend.createRequest(requestOptions, op);
});

@@ -777,6 +708,4 @@ }

* @param code Code to run
* @param options contains generic configuration for rpc calls to specify block
*
* @description Run a piece of code in the current context
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Run a Michelson script in the current context
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-scripts-run-code

@@ -795,9 +724,8 @@ */

* @param viewScriptParams Parameters of the script view to run
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Simulate a call to a michelson view
*
*/
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* () {

@@ -812,9 +740,8 @@ return this.httpBackend.createRequest({

* @param viewParams Parameters of the view to run
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @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.
*
*/
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* () {

@@ -836,6 +763,4 @@ return this.httpBackend.createRequest({

/**
*
* @param data Data to pack
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Computes the serialized version of a data expression using the same algorithm as script instruction PACK

@@ -846,6 +771,3 @@ * Note: You should always verify the packed bytes before signing or requesting that they be signed when using the the RPC to pack.

* A safer solution to pack and sign data would be to use the `packDataBytes` function available in the `@taquito/michel-codec` package.
*
* @example packData({ data: { string: "test" }, type: { prim: "string" } })
*
*
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-scripts-pack-data

@@ -875,9 +797,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @description Voting period of current block.
*
* @example getCurrentPeriod() will default to current voting period for /main/chains/block/head.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the voting period (index, kind, starting position) and related information (position, remaining) of the interrogated block
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-current-period

@@ -895,9 +812,5 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @description Voting period of next block.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the voting period (index, kind, starting position) and related information (position, remaining) of the next block.Useful to craft operations that will be valid in the next block
* @example getSuccessorPeriod() will default to successor voting period for /main/chains/block/head.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-successor-period

@@ -915,8 +828,5 @@ */

/**
*
* @param id Sapling state ID
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the value associated with a sapling state ID.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the root and a diff of a state starting from an optional offset which is zero by default
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-sapling-sapling-state-id-get-diff

@@ -933,8 +843,5 @@ */

/**
*
* @param contract address of the contract we want to get the sapling diff
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the value associated with a sapling state.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the root and a diff of a state starting from an optional offset which is zero by default
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-contracts-contract-id-single-sapling-get-diff

@@ -950,2 +857,7 @@ */

}
/**
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description get current and next protocol
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-protocols
*/
getProtocols({ block } = rpc_client_interface_1.defaultRPCOptions) {

@@ -960,8 +872,5 @@ return __awaiter(this, void 0, void 0, function* () {

/**
*
* @param contract address of the contract we want to retrieve storage information of
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the amount of used space in a contract's storage
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the used storage space of the contract
* @see https://tezos.gitlab.io/lima/rpc.html#get-block-id-context-contracts-contract-id-storage

@@ -978,8 +887,5 @@ */

/**
*
* @param contract address of the contract we want to retrieve storage information of
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the amount of paid space in a contract's storage
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
= * @description Access the paid storage space of the contract
* @see https://tezos.gitlab.io/lima/rpc.html#get-block-id-context-contracts-contract-id-storage

@@ -996,6 +902,5 @@ */

/**
*
* @param contract implicit or originated address we want to retrieve ticket balance of
* @param ticket object to specify a ticket by ticketer, content type and content
* @param options contains generic configuration for rpc calls to specify block
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the contract's balance of ticket with specified ticketer, content type, and content.

@@ -1014,5 +919,4 @@ * @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 to specify block
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the complete list of tickets owned by the given contract by scanning the contract's storage.

@@ -1046,2 +950,1 @@ * @see https://tezos.gitlab.io/protocols/016_mumbai.html#rpc-changes

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

@@ -7,31 +7,27 @@ "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;
(function (METADATA_BALANCE_UPDATES_CATEGORY) {
METADATA_BALANCE_UPDATES_CATEGORY["BAKING_BONUSES"] = "baking bonuses";
METADATA_BALANCE_UPDATES_CATEGORY["BAKING_REWARDS"] = "baking rewards";
METADATA_BALANCE_UPDATES_CATEGORY["BLOCK_FEES"] = "block fees";
METADATA_BALANCE_UPDATES_CATEGORY["BONDS"] = "bonds";
METADATA_BALANCE_UPDATES_CATEGORY["BOOTSTRAP"] = "bootstrap";
METADATA_BALANCE_UPDATES_CATEGORY["BURNED"] = "burned";
METADATA_BALANCE_UPDATES_CATEGORY["COMMITMENT"] = "commitment";
METADATA_BALANCE_UPDATES_CATEGORY["DELEGATE_DENOMINATOR"] = "delegate_denominator";
METADATA_BALANCE_UPDATES_CATEGORY["DELEGATOR_NUMERATOR"] = "delegator_numerator";
METADATA_BALANCE_UPDATES_CATEGORY["DEPOSITS"] = "deposits";
METADATA_BALANCE_UPDATES_CATEGORY["NONCE_REVELATION_REWARDS"] = "nonce revelation 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";
METADATA_BALANCE_UPDATES_CATEGORY["STORAGE_FEES"] = "storage fees";
METADATA_BALANCE_UPDATES_CATEGORY["PUNISHMENTS"] = "punishments";
METADATA_BALANCE_UPDATES_CATEGORY["INVOICE"] = "invoice";
METADATA_BALANCE_UPDATES_CATEGORY["LOST_ENDORSING_REWARDS"] = "lost endorsing rewards";
METADATA_BALANCE_UPDATES_CATEGORY["SUBSIDY"] = "subsidy";
METADATA_BALANCE_UPDATES_CATEGORY["BURNED"] = "burned";
METADATA_BALANCE_UPDATES_CATEGORY["COMMITMENT"] = "commitment";
METADATA_BALANCE_UPDATES_CATEGORY["BOOTSTRAP"] = "bootstrap";
METADATA_BALANCE_UPDATES_CATEGORY["INVOICE"] = "invoice";
METADATA_BALANCE_UPDATES_CATEGORY["MINTED"] = "minted";
METADATA_BALANCE_UPDATES_CATEGORY["BONDS"] = "bonds";
METADATA_BALANCE_UPDATES_CATEGORY["NONCE_REVELATION_REWARDS"] = "nonce revelation rewards";
METADATA_BALANCE_UPDATES_CATEGORY["PUNISHMENTS"] = "punishments";
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["STORAGE_FEES"] = "storage fees";
METADATA_BALANCE_UPDATES_CATEGORY["SUBSIDY"] = "subsidy";
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 = {}));
})(METADATA_BALANCE_UPDATES_CATEGORY || (exports.METADATA_BALANCE_UPDATES_CATEGORY = METADATA_BALANCE_UPDATES_CATEGORY = {}));
var PvmKind;

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

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

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

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

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

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

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

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

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

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

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

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

@@ -79,3 +76,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": "21f25a09b87809102b0214544d2c5396eeb5872e",
"version": "18.0.0-RC.0"
"commitHash": "bd52c12d05e329e4cf3a81fe55c4778a47879ccd",
"version": "19.0.0-beta-RC.0"
};
//# sourceMappingURL=version.js.map

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

import { BigNumber } from 'bignumber.js';
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';
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EndorsingRightsQueryArguments, 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';
version?: 0 | 1 | '0' | '1';
}

@@ -7,0 +7,0 @@ export declare const defaultChain = "main";

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, 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';
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EndorsingRightsQueryArguments, 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 {

@@ -39,7 +39,4 @@ [key: string]: {

/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Get the block's hash, its unique identifier.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-hash

@@ -49,7 +46,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @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.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-live-blocks

@@ -59,8 +53,5 @@ */

/**
*
* @param address address from which we want to retrieve the balance
* @param options contains generic configuration for rpc calls
*
* @description Access the balance of a contract.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the spendable balance of a contract, excluding frozen bonds
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-balance

@@ -70,8 +61,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the storage
* @param options contains generic configuration for rpc calls
* @throws {@link InvalidContractAddressError}
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the data of the contract.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-storage

@@ -83,8 +71,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the script
* @param options contains generic configuration for rpc calls
* @throws {@link InvalidContractAddressError}
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the code and data of the contract.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-script

@@ -96,9 +81,6 @@ */

/**
*
* @param address contract address from which we want to retrieve the script
* @param unparsingMode default is { unparsing_mode: "Readable" }
* @param options contains generic configuration for rpc calls
* @throws {@link InvalidContractAddressError}
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the script of the contract and normalize it using the requested unparsing mode.
*
*/

@@ -109,8 +91,5 @@ getNormalizedScript(address: string, unparsingMode?: UnparsingMode, { block }?: {

/**
*
* @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 specified block (default to head)
* @description Access the complete status of a contract.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id

@@ -122,8 +101,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the manager
* @param options contains generic configuration for rpc calls
*
* @description Access the manager key of a contract.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the manager of an implicit contract
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-manager-key

@@ -135,8 +111,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the delegate (baker)
* @param options contains generic configuration for rpc calls
*
* @description Access the delegate of a contract, if any.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the delegate of a contract, if any
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-delegate

@@ -148,10 +121,6 @@ */

/**
*
* @deprecated Deprecated in favor of getBigMapKeyByID
* @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 specified block (default to head)
* @description Access the value associated with a key in the big map storage of the contract.
*
* @deprecated Deprecated in favor of getBigMapKeyByID
*
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-context-contracts-contract-id-big-map-get

@@ -163,9 +132,6 @@ */

/**
*
* @param id Big Map ID
* @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 specified block (default to head)
* @description Access the value associated with a key in a big map.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-big-maps-big-map-id-script-expr

@@ -177,8 +143,5 @@ */

/**
*
* @param address delegate address which we want to retrieve
* @param options contains generic configuration for rpc calls
*
* @description Fetches information about a delegate from RPC.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Everything about a delegate
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-delegates-pkh

@@ -190,9 +153,6 @@ */

/**
*
* @param address delegate address which we want to retrieve
* @param options contains generic configuration for rpc calls
*
* @description Returns the delegate info (e.g. voting power) found in the listings of the current voting period.
*
* @see https://tezos.gitlab.io/kathmandu/rpc.html#get-block-id-context-delegates-pkh-voting-info
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the delegate info (e.g. voting power) found in the listings of the current voting period
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-voting-info
*/

@@ -203,7 +163,4 @@ getVotingInfo(address: string, { block }?: {

/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description All constants
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-constants

@@ -213,19 +170,13 @@ */

/**
*
* @param options contains generic configuration for rpc calls. See examples for various available sytaxes.
*
* @param options contains generic configuration for rpc calls to specified block (default to head) and version.
* @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` which shows { kind: endorsement }
* @example getBlock({ block: 'head~2', version: 1 }) will return an offset of 2 from head blocks and shows { kind: attestation }
* @example getBlock({ block: 'BL8fTiWcSxWCjiMVnDkbh6EuhqVPZzgWheJ2dqwrxYRm9AephXh~2' }) will return an offset of 2 blocks from given block hash..
*/
getBlock({ block }?: RPCOptions): Promise<BlockResponse>;
/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description The whole block header
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-header

@@ -235,7 +186,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head) and version
* @description All the metadata associated to the block
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-metadata

@@ -245,8 +193,5 @@ */

/**
*
* @param args contains optional query arguments
* @param options contains generic configuration for rpc calls
*
* @param args contains optional query arguments (level, cycle, delegate, consensus_key, and max_round)
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Retrieves the list of delegates allowed to bake a block.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-baking-rights

@@ -256,18 +201,13 @@ */

/**
*
* @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-attestation-rights
* @param args contains optional query arguments (level, cycle, delegate, and consensus_key)
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Retrieves the delegates allowed to attest a block
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-endorsing-rights
*/
getAttestationRights(args?: AttestationRightsQueryArguments, { block }?: RPCOptions): Promise<AttestationRightsResponse>;
/**
*
* @param args contains optional query arguments
* @deprecated Deprecated in favor of getAttestationRights
* @param args contains optional query arguments (level, cycle, delegate, and consensus_key)
* @param options contains generic configuration for rpc calls
*
* @description Retrieves the list of delegates allowed to bake a block.
*
* @description Retrieves the delegates allowed to endorse a block
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-endorsing-rights

@@ -277,6 +217,4 @@ */

/**
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Ballots casted so far during a voting period
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-ballot-list

@@ -286,7 +224,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @description Sum of ballots casted so far during a voting period.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Sum of ballots casted so far during a voting period
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-ballots

@@ -296,7 +231,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Current proposal under evaluation.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-current-proposal

@@ -306,7 +238,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Current expected quorum.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-current-quorum

@@ -316,7 +245,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @description List of delegates with their voting weight, in number of rolls.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description List of delegates with their voting power
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-listings

@@ -326,7 +252,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @description List of proposals with number of supporters.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description List of proposals with number of supporters
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-proposals

@@ -336,8 +259,5 @@ */

/**
*
* @param data operation contents to forge
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Forge an operation returning the unsigned bytes
*
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-forge-operations

@@ -347,7 +267,4 @@ */

/**
*
* @param signedOpBytes signed bytes to inject
*
* @description Inject an operation in node and broadcast it. Returns the ID of the operation. The `signedOperationContents` should be constructed using a contextual RPCs from the latest block and signed by the client. By default, the RPC will wait for the operation to be (pre-)validated before answering. See RPCs under /blocks/prevalidation for more details on the prevalidation context.
*
* @description Inject an operation in node and broadcast it and return the ID of the operation
* @see https://tezos.gitlab.io/api/rpc.html#post-injection-operation

@@ -357,8 +274,5 @@ */

/**
*
* @param ops Operations to apply
* @param options contains generic configuration for rpc calls
*
* @description Simulate the validation of an operation
*
* @param options contains generic configuration for rpc calls to specified block and version
* @description Simulate the application of the operations with the context of the given block and return the result of each operation application
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-preapply-operations

@@ -368,9 +282,6 @@ */

/**
*
* @param contract address of the contract we want to get the entrypoints of
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Return the list of entrypoints of the contract
* @throws {@link InvalidContractAddressError}
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-entrypoints
*
* @version 005_PsBABY5H

@@ -380,7 +291,6 @@ */

/**
* @deprecated Deprecated in favor of simulateOperation
* @param op Operation to run
* @param options contains generic configuration for rpc calls
*
* @description Run an operation without signature checks
*
* @param options contains generic configuration for rpc calls to specified block and version
* @description Run an operation with the context of the given block and without signature checks and return the operation application result, including the consumed gas.
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-scripts-run-operation

@@ -391,6 +301,4 @@ */

* @param op Operation to simulate
* @param options contains generic configuration for rpc calls
*
* @description Simulate an operation
*
* @param options contains generic configuration for rpc calls to specified block and version
* @description Simulate running an operation at some future moment (based on the number of blocks given in the `latency` argument), and return the operation application result.
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/oxford-openapi.json

@@ -401,6 +309,4 @@ */

* @param code Code to run
* @param options contains generic configuration for rpc calls
*
* @description Run a piece of code in the current context
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Run a Michelson script in the current context
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-scripts-run-code

@@ -411,6 +317,4 @@ */

* @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 specified block (default to head)
* @description Simulate a call to a michelson view
*
*/

@@ -420,6 +324,4 @@ runScriptView({ unparsing_mode, ...rest }: RPCRunScriptViewParam, { block }?: RPCOptions): Promise<RunScriptViewResult>;

* @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 specified block (default to head)
* @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.
*
*/

@@ -429,10 +331,10 @@ runView({ unparsing_mode, ...rest }: RPCRunViewParam, { block }?: RPCOptions): Promise<RunViewResult>;

/**
*
* @param data Data to pack
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Computes the serialized version of a data expression using the same algorithm as script instruction PACK
*
* Note: You should always verify the packed bytes before signing or requesting that they be signed when using the the RPC to pack.
* This precaution helps protect you and your applications users from RPC nodes that have been compromised.
* A node that is operated by a bad actor, or compromised by a bad actor could return a fully formed operation that does not correspond to the input provided to the RPC endpoint.
* A safer solution to pack and sign data would be to use the `packDataBytes` function available in the `@taquito/michel-codec` package.
* @example packData({ data: { string: "test" }, type: { prim: "string" } })
*
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-scripts-pack-data

@@ -450,9 +352,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @description Voting period of current block.
*
* @example getCurrentPeriod() will default to current voting period for /main/chains/block/head.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the voting period (index, kind, starting position) and related information (position, remaining) of the interrogated block
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-current-period

@@ -462,9 +359,5 @@ */

/**
*
* @param options contains generic configuration for rpc calls
*
* @description Voting period of next block.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the voting period (index, kind, starting position) and related information (position, remaining) of the next block.Useful to craft operations that will be valid in the next block
* @example getSuccessorPeriod() will default to successor voting period for /main/chains/block/head.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-successor-period

@@ -474,8 +367,5 @@ */

/**
*
* @param id Sapling state ID
* @param options contains generic configuration for rpc calls
*
* @description Access the value associated with a sapling state ID.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the root and a diff of a state starting from an optional offset which is zero by default
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-sapling-sapling-state-id-get-diff

@@ -487,8 +377,5 @@ */

/**
*
* @param contract address of the contract we want to get the sapling diff
* @param options contains generic configuration for rpc calls
*
* @description Access the value associated with a sapling state.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the root and a diff of a state starting from an optional offset which is zero by default
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-contracts-contract-id-single-sapling-get-diff

@@ -499,2 +386,7 @@ */

}): Promise<SaplingDiffResponse>;
/**
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description get current and next protocol
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-protocols
*/
getProtocols({ block }?: {

@@ -504,8 +396,5 @@ block: string;

/**
*
* @param contract address of the contract we want to retrieve storage information of
* @param options contains generic configuration for rpc calls
*
* @description Access the amount of used space used in a contract's storage
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the used storage space of the contract
* @see https://tezos.gitlab.io/lima/rpc.html#get-block-id-context-contracts-contract-id-storage

@@ -517,8 +406,5 @@ */

/**
*
* @param contract address of the contract we want to retrieve storage information of
* @param options contains generic configuration for rpc calls
*
* @description Access the amount of paid space in a contract's storage
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
= * @description Access the paid storage space of the contract
* @see https://tezos.gitlab.io/lima/rpc.html#get-block-id-context-contracts-contract-id-storage

@@ -530,8 +416,7 @@ */

/**
*
* @param contract address of the contract we want to retrieve ticket balance of
* @param ticket Ticket token parameter object that contains ticketer, content type, and content
* @param options contains generic configuration for rpc calls
* @param contract implicit or originated address we want to retrieve ticket balance of
* @param ticket object to specify a ticket by ticketer, content type and content
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the contract's balance of ticket with specified ticketer, content type, and content.
* @example ticket{ ticketer: 'address', content_type: { prim: "string" }, content: { string: 'ticket1' } }
* @example ticket { ticketer: 'address', content_type: { prim: "string" }, content: { string: 'ticket1' } }
* @see https://tezos.gitlab.io/protocols/016_mumbai.html#rpc-changes

@@ -541,5 +426,4 @@ */

/**
*
* @param contract address of the contract to retrieve all ticket balances from
* @param options contains generic configuration for rpc calls
* @param contract originated address we want to retrieve ticket balances of
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the complete list of tickets owned by the given contract by scanning the contract's storage.

@@ -551,3 +435,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 }

@@ -554,0 +438,0 @@ * @see https://tezos.gitlab.io/CHANGES.html?highlight=pending_operations#id4

@@ -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, 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';
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EndorsingRightsQueryArguments, 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';

@@ -37,7 +37,4 @@ export { RPCOptions, defaultChain, defaultRPCOptions, RpcClientInterface, } from './rpc-client-interface';

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Get the block's hash, its unique identifier.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-hash

@@ -47,7 +44,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @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.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-live-blocks

@@ -57,8 +51,5 @@ */

/**
*
* @param address address from which we want to retrieve the balance
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the balance of a contract.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the spendable balance of a contract, excluding frozen bonds
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-balance

@@ -68,8 +59,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the storage
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the data of the contract.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-storage

@@ -81,8 +69,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the script
* @param options contains generic configuration for rpc calls
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the code and data of the contract.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-script

@@ -94,9 +79,6 @@ */

/**
*
* @param address contract address from which we want to retrieve the script
* @param unparsingMode default is { unparsing_mode: "Readable" }
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the script of the contract and normalize it using the requested unparsing mode.
*
*/

@@ -107,8 +89,5 @@ getNormalizedScript(address: string, unparsingMode?: UnparsingMode, { block }?: {

/**
*
* @param address contract address from which we want to retrieve
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the complete status of a contract.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id

@@ -120,8 +99,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the manager
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the manager key of a contract.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the manager of an implicit contract
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-manager-key

@@ -133,8 +109,5 @@ */

/**
*
* @param address contract address from which we want to retrieve the delegate (baker)
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the delegate of a contract, if any.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the delegate of a contract, if any
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-contracts-contract-id-delegate

@@ -146,10 +119,6 @@ */

/**
*
* @deprecated Deprecated in favor of getBigMapKeyByID
* @param address contract address from which we want to retrieve the big map key
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the value associated with a key in the big map storage of the contract.
*
* @deprecated Deprecated in favor of getBigMapKeyByID
*
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-context-contracts-contract-id-big-map-get

@@ -161,9 +130,6 @@ */

/**
*
* @param id Big Map ID
* @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 to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the value associated with a key in a big map.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-big-maps-big-map-id-script-expr

@@ -175,8 +141,5 @@ */

/**
*
* @param address delegate address which we want to retrieve
* @param options contains generic configuration for rpc calls to specify block
*
* @description Fetches information about a delegate from RPC.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Everything about a delegate
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-delegates-pkh

@@ -188,9 +151,6 @@ */

/**
*
* @param address delegate address which we want to retrieve
* @param options contains generic configuration for rpc calls to specify block
*
* @description Returns the delegate info (e.g. voting power) found in the listings of the current voting period.
*
* @see https://tezos.gitlab.io/kathmandu/rpc.html#get-block-id-context-delegates-pkh-voting-info
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the delegate info (e.g. voting power) found in the listings of the current voting period
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-voting-info
*/

@@ -201,7 +161,4 @@ getVotingInfo(address: string, { block }?: {

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description All constants
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-context-constants

@@ -211,19 +168,13 @@ */

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

@@ -233,7 +184,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block and version.
*
* @param options contains generic configuration for rpc calls to specified block (default to head) and version
* @description All the metadata associated to the block
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-metadata

@@ -243,8 +191,5 @@ */

/**
*
* @param args contains optional query arguments
* @param options contains generic configuration for rpc calls to specify block
*
* @param args contains optional query arguments (level, cycle, delegate, consensus_key, and max_round)
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Retrieves the list of delegates allowed to bake a block.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-baking-rights

@@ -254,18 +199,13 @@ */

/**
*
* @param args contains optional query arguments
* @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
* @param args contains optional query arguments (level, cycle, delegate, and consensus_key)
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Retrieves the delegates allowed to attest a block
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-endorsing-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.
*
* @deprecated Deprecated in favor of getAttestationRights
* @param args contains optional query arguments (level, cycle, delegate, and consensus_key)
* @param options contains generic configuration for rpc calls
* @description Retrieves the delegates allowed to endorse a block
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-helpers-endorsing-rights

@@ -275,6 +215,4 @@ */

/**
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Ballots casted so far during a voting period
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-ballot-list

@@ -284,7 +222,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @description Sum of ballots casted so far during a voting period.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Sum of ballots casted so far during a voting period
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-ballots

@@ -294,7 +229,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Current proposal under evaluation.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-current-proposal

@@ -304,7 +236,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Current expected quorum.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-current-quorum

@@ -314,7 +243,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @description List of delegates with their voting weight, in number of rolls.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description List of delegates with their voting power
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-listings

@@ -324,7 +250,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @description List of proposals with number of supporters.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description List of proposals with number of supporters
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-proposals

@@ -334,8 +257,5 @@ */

/**
*
* @param data operation contents to forge
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Forge an operation returning the unsigned bytes
*
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-forge-operations

@@ -345,7 +265,4 @@ */

/**
*
* @param signedOpBytes signed bytes to inject
*
* @description Inject an operation in node and broadcast it. Returns the ID of the operation. The `signedOperationContents` should be constructed using a contextual RPCs from the latest block and signed by the client. By default, the RPC will wait for the operation to be (pre-)validated before answering. See RPCs under /blocks/prevalidation for more details on the prevalidation context.
*
* @description Inject an operation in node and broadcast it and return the ID of the operation
* @see https://tezos.gitlab.io/api/rpc.html#post-injection-operation

@@ -355,8 +272,5 @@ */

/**
*
* @param ops Operations to apply
* @param options contains generic configuration for rpc calls to specify block and version
*
* @description Simulate the validation of an operation
*
* @param options contains generic configuration for rpc calls to specified block and version
* @description Simulate the application of the operations with the context of the given block and return the result of each operation application
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-preapply-operations

@@ -366,8 +280,6 @@ */

/**
*
* @param contract address of the contract we want to get the entrypoints of
* @param options contains generic configuration for rpc calls to specify block
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @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
*
* @version 005_PsBABY5H

@@ -377,7 +289,6 @@ */

/**
* @deprecated Deprecated in favor of simulateOperation
* @param op Operation to run
* @param options contains generic configuration for rpc calls to specify block and version
*
* @description Run an operation without signature checks
*
* @param options contains generic configuration for rpc calls to specified block and version
* @description Run an operation with the context of the given block and without signature checks and return the operation application result, including the consumed gas.
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-scripts-run-operation

@@ -388,6 +299,4 @@ */

* @param op Operation to simulate
* @param options contains generic configuration for rpc calls to specify block and version
*
* @description Simulate an operation on the blockchain
*
* @param options contains generic configuration for rpc calls to specified block and version
* @description Simulate running an operation at some future moment (based on the number of blocks given in the `latency` argument), and return the operation application result.
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/oxford-openapi.json

@@ -398,6 +307,4 @@ */

* @param code Code to run
* @param options contains generic configuration for rpc calls to specify block
*
* @description Run a piece of code in the current context
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Run a Michelson script in the current context
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-scripts-run-code

@@ -408,6 +315,4 @@ */

* @param viewScriptParams Parameters of the script view to run
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Simulate a call to a michelson view
*
*/

@@ -417,6 +322,4 @@ runScriptView({ unparsing_mode, ...rest }: RPCRunScriptViewParam, { block }?: RPCOptions): Promise<RunScriptViewResult>;

* @param viewParams Parameters of the view to run
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @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.
*
*/

@@ -426,6 +329,4 @@ runView({ unparsing_mode, ...rest }: RPCRunViewParam, { block }?: RPCOptions): Promise<RunViewResult>;

/**
*
* @param data Data to pack
* @param options contains generic configuration for rpc calls to specify block
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Computes the serialized version of a data expression using the same algorithm as script instruction PACK

@@ -436,6 +337,3 @@ * Note: You should always verify the packed bytes before signing or requesting that they be signed when using the the RPC to pack.

* A safer solution to pack and sign data would be to use the `packDataBytes` function available in the `@taquito/michel-codec` package.
*
* @example packData({ data: { string: "test" }, type: { prim: "string" } })
*
*
* @see https://tezos.gitlab.io/api/rpc.html#post-block-id-helpers-scripts-pack-data

@@ -453,9 +351,4 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @description Voting period of current block.
*
* @example getCurrentPeriod() will default to current voting period for /main/chains/block/head.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the voting period (index, kind, starting position) and related information (position, remaining) of the interrogated block
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-current-period

@@ -465,9 +358,5 @@ */

/**
*
* @param options contains generic configuration for rpc calls to specify block
*
* @description Voting period of next block.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the voting period (index, kind, starting position) and related information (position, remaining) of the next block.Useful to craft operations that will be valid in the next block
* @example getSuccessorPeriod() will default to successor voting period for /main/chains/block/head.
*
* @see https://tezos.gitlab.io/api/rpc.html#get-block-id-votes-successor-period

@@ -477,8 +366,5 @@ */

/**
*
* @param id Sapling state ID
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the value associated with a sapling state ID.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the root and a diff of a state starting from an optional offset which is zero by default
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-sapling-sapling-state-id-get-diff

@@ -490,8 +376,5 @@ */

/**
*
* @param contract address of the contract we want to get the sapling diff
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the value associated with a sapling state.
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Returns the root and a diff of a state starting from an optional offset which is zero by default
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-contracts-contract-id-single-sapling-get-diff

@@ -502,2 +385,7 @@ */

}): Promise<SaplingDiffResponse>;
/**
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description get current and next protocol
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-protocols
*/
getProtocols({ block }?: {

@@ -507,8 +395,5 @@ block: string;

/**
*
* @param contract address of the contract we want to retrieve storage information of
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the amount of used space in a contract's storage
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the used storage space of the contract
* @see https://tezos.gitlab.io/lima/rpc.html#get-block-id-context-contracts-contract-id-storage

@@ -520,8 +405,5 @@ */

/**
*
* @param contract address of the contract we want to retrieve storage information of
* @param options contains generic configuration for rpc calls to specify block
*
* @description Access the amount of paid space in a contract's storage
*
* @param options contains generic configuration for rpc calls to specified block (default to head)
= * @description Access the paid storage space of the contract
* @see https://tezos.gitlab.io/lima/rpc.html#get-block-id-context-contracts-contract-id-storage

@@ -533,6 +415,5 @@ */

/**
*
* @param contract implicit or originated address we want to retrieve ticket balance of
* @param ticket object to specify a ticket by ticketer, content type and content
* @param options contains generic configuration for rpc calls to specify block
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the contract's balance of ticket with specified ticketer, content type, and content.

@@ -546,5 +427,4 @@ * @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 to specify block
* @param options contains generic configuration for rpc calls to specified block (default to head)
* @description Access the complete list of tickets owned by the given contract by scanning the contract's storage.

@@ -551,0 +431,0 @@ * @see https://tezos.gitlab.io/protocols/016_mumbai.html#rpc-changes

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

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

{
"name": "@taquito/rpc",
"version": "18.0.0-RC.0",
"version": "19.0.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": "^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"
"@taquito/core": "^19.0.0-beta-RC.0",
"@taquito/http-utils": "^19.0.0-beta-RC.0",
"@taquito/utils": "^19.0.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": "998e588c7c72f45bb8d95bed54152b618aa18ec3"
"gitHead": "959e385ba06d8932866503bb538252a3912acbc9"
}

@@ -29,3 +29,3 @@ # Taquito RPC package

// Fetching the balance of an account
// Fetching the balance of an account in mutez (micro ꜩ)
const balance = await client.getBalance('tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb');

@@ -32,0 +32,0 @@ ```

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