@taquito/rpc 23.0.2 → 23.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,6 +33,8 @@ var RPCMethodName;
33
33
  RPCMethodName["GET_ALL_DELEGATES"] = "getAllDelegates";
34
34
  RPCMethodName["GET_DELEGATES"] = "getDelegates";
35
35
  RPCMethodName["GET_VOTING_INFO"] = "getVotingInfo";
36
+ RPCMethodName["GET_ACTIVE_STAKING_PARAMETERS"] = "getActiveStakingParameters";
37
+ RPCMethodName["GET_PENDING_STAKING_PARAMETERS"] = "getPendingStakingParameters";
36
38
  RPCMethodName["GET_ATTESTATION_RIGHTS"] = "getAttestationRights";
37
39
  RPCMethodName["GET_ENTRYPOINTS"] = "getEntrypoints";
38
40
  RPCMethodName["GET_LIVE_BLOCKS"] = "getLiveBlocks";
@@ -1205,5 +1205,45 @@ class RpcClientCache {
1205
1205
  }
1206
1206
  });
1207
1207
  }
1208
+ /**
1209
+ * @param delegate delegate address which we want to retrieve active staking parameters
1210
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
1211
+ * @description Returns the currently active staking parameters for the given delegate
1212
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-active-staking-parameters
1213
+ */
1214
+ getActiveStakingParameters(delegate_1) {
1215
+ return __awaiter(this, arguments, void 0, function* (delegate, { block } = rpc_client_interface_2.defaultRPCOptions) {
1216
+ this.validateAddress(delegate);
1217
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), rpc_client_interface_1.RPCMethodName.GET_ACTIVE_STAKING_PARAMETERS, [block, delegate]);
1218
+ if (this.has(key)) {
1219
+ return this.get(key);
1220
+ }
1221
+ else {
1222
+ const response = this.rpcClient.getActiveStakingParameters(delegate, { block });
1223
+ this.put(key, response);
1224
+ return response;
1225
+ }
1226
+ });
1227
+ }
1228
+ /**
1229
+ * @param delegate delegate address which we want to retrieve pending staking parameters
1230
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
1231
+ * @description Returns the pending values for the given delegate's staking parameters
1232
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-pending-staking-parameters
1233
+ */
1234
+ getPendingStakingParameters(delegate_1) {
1235
+ return __awaiter(this, arguments, void 0, function* (delegate, { block } = rpc_client_interface_2.defaultRPCOptions) {
1236
+ this.validateAddress(delegate);
1237
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), rpc_client_interface_1.RPCMethodName.GET_PENDING_STAKING_PARAMETERS, [block, delegate]);
1238
+ if (this.has(key)) {
1239
+ return this.get(key);
1240
+ }
1241
+ else {
1242
+ const response = this.rpcClient.getPendingStakingParameters(delegate, { block });
1243
+ this.put(key, response);
1244
+ return response;
1245
+ }
1246
+ });
1247
+ }
1208
1248
  }
1209
1249
  exports.RpcClientCache = RpcClientCache;
@@ -1074,5 +1074,35 @@ class RpcClient {
1074
1074
  });
1075
1075
  });
1076
1076
  }
1077
+ /**
1078
+ * @param delegate delegate address which we want to retrieve active staking parameters
1079
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
1080
+ * @description Returns the currently active staking parameters for the given delegate
1081
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-active-staking-parameters
1082
+ */
1083
+ getActiveStakingParameters(delegate_1) {
1084
+ return __awaiter(this, arguments, void 0, function* (delegate, { block } = rpc_client_interface_1.defaultRPCOptions) {
1085
+ const response = yield this.httpBackend.createRequest({
1086
+ url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/delegates/${delegate}/active_staking_parameters`),
1087
+ method: 'GET',
1088
+ });
1089
+ return response;
1090
+ });
1091
+ }
1092
+ /**
1093
+ * @param delegate delegate address which we want to retrieve pending staking parameters
1094
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
1095
+ * @description Returns the pending values for the given delegate's staking parameters
1096
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-pending-staking-parameters
1097
+ */
1098
+ getPendingStakingParameters(delegate_1) {
1099
+ return __awaiter(this, arguments, void 0, function* (delegate, { block } = rpc_client_interface_1.defaultRPCOptions) {
1100
+ const response = yield this.httpBackend.createRequest({
1101
+ url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/delegates/${delegate}/pending_staking_parameters`),
1102
+ method: 'GET',
1103
+ });
1104
+ return response;
1105
+ });
1106
+ }
1077
1107
  }
1078
1108
  exports.RpcClient = RpcClient;
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
5
5
  exports.VERSION = {
6
- "commitHash": "20b6624f217ec85f28023ca02b2d3b73777a8df9",
7
- "version": "23.0.2"
6
+ "commitHash": "42048d039f6d4345fc59d04b03650bcb8e27bb62",
7
+ "version": "23.0.3"
8
8
  };
@@ -79,6 +79,8 @@ var RPCMethodName;
79
79
  RPCMethodName["GET_ALL_DELEGATES"] = "getAllDelegates";
80
80
  RPCMethodName["GET_DELEGATES"] = "getDelegates";
81
81
  RPCMethodName["GET_VOTING_INFO"] = "getVotingInfo";
82
+ RPCMethodName["GET_ACTIVE_STAKING_PARAMETERS"] = "getActiveStakingParameters";
83
+ RPCMethodName["GET_PENDING_STAKING_PARAMETERS"] = "getPendingStakingParameters";
82
84
  RPCMethodName["GET_ATTESTATION_RIGHTS"] = "getAttestationRights";
83
85
  RPCMethodName["GET_ENTRYPOINTS"] = "getEntrypoints";
84
86
  RPCMethodName["GET_LIVE_BLOCKS"] = "getLiveBlocks";
@@ -1311,6 +1313,46 @@ class RpcClientCache {
1311
1313
  }
1312
1314
  });
1313
1315
  }
1316
+ /**
1317
+ * @param delegate delegate address which we want to retrieve active staking parameters
1318
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
1319
+ * @description Returns the currently active staking parameters for the given delegate
1320
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-active-staking-parameters
1321
+ */
1322
+ getActiveStakingParameters(delegate_1) {
1323
+ return __awaiter(this, arguments, void 0, function* (delegate, { block } = defaultRPCOptions) {
1324
+ this.validateAddress(delegate);
1325
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_ACTIVE_STAKING_PARAMETERS, [block, delegate]);
1326
+ if (this.has(key)) {
1327
+ return this.get(key);
1328
+ }
1329
+ else {
1330
+ const response = this.rpcClient.getActiveStakingParameters(delegate, { block });
1331
+ this.put(key, response);
1332
+ return response;
1333
+ }
1334
+ });
1335
+ }
1336
+ /**
1337
+ * @param delegate delegate address which we want to retrieve pending staking parameters
1338
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
1339
+ * @description Returns the pending values for the given delegate's staking parameters
1340
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-pending-staking-parameters
1341
+ */
1342
+ getPendingStakingParameters(delegate_1) {
1343
+ return __awaiter(this, arguments, void 0, function* (delegate, { block } = defaultRPCOptions) {
1344
+ this.validateAddress(delegate);
1345
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_PENDING_STAKING_PARAMETERS, [block, delegate]);
1346
+ if (this.has(key)) {
1347
+ return this.get(key);
1348
+ }
1349
+ else {
1350
+ const response = this.rpcClient.getPendingStakingParameters(delegate, { block });
1351
+ this.put(key, response);
1352
+ return response;
1353
+ }
1354
+ });
1355
+ }
1314
1356
  }
1315
1357
 
1316
1358
  var OPERATION_METADATA;
@@ -1474,8 +1516,8 @@ var OpKind;
1474
1516
 
1475
1517
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
1476
1518
  const VERSION = {
1477
- "commitHash": "20b6624f217ec85f28023ca02b2d3b73777a8df9",
1478
- "version": "23.0.2"
1519
+ "commitHash": "42048d039f6d4345fc59d04b03650bcb8e27bb62",
1520
+ "version": "23.0.3"
1479
1521
  };
1480
1522
 
1481
1523
  /***
@@ -2495,6 +2537,36 @@ class RpcClient {
2495
2537
  });
2496
2538
  });
2497
2539
  }
2540
+ /**
2541
+ * @param delegate delegate address which we want to retrieve active staking parameters
2542
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
2543
+ * @description Returns the currently active staking parameters for the given delegate
2544
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-active-staking-parameters
2545
+ */
2546
+ getActiveStakingParameters(delegate_1) {
2547
+ return __awaiter(this, arguments, void 0, function* (delegate, { block } = defaultRPCOptions) {
2548
+ const response = yield this.httpBackend.createRequest({
2549
+ url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/delegates/${delegate}/active_staking_parameters`),
2550
+ method: 'GET',
2551
+ });
2552
+ return response;
2553
+ });
2554
+ }
2555
+ /**
2556
+ * @param delegate delegate address which we want to retrieve pending staking parameters
2557
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
2558
+ * @description Returns the pending values for the given delegate's staking parameters
2559
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-pending-staking-parameters
2560
+ */
2561
+ getPendingStakingParameters(delegate_1) {
2562
+ return __awaiter(this, arguments, void 0, function* (delegate, { block } = defaultRPCOptions) {
2563
+ const response = yield this.httpBackend.createRequest({
2564
+ url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/delegates/${delegate}/pending_staking_parameters`),
2565
+ method: 'GET',
2566
+ });
2567
+ return response;
2568
+ });
2569
+ }
2498
2570
  }
2499
2571
 
2500
2572
  export { METADATA_BALANCE_UPDATES_CATEGORY, OPERATION_METADATA, OpKind, PvmKind, RpcClient, RpcClientCache, SmartRollupInputProofKind, SmartRollupRefutationOptions, SmartRollupRefuteGameEndedPlayerOutcomes, SmartRollupRefuteGameEndedReason, SmartRollupRefuteGameStatusOptions, SmartRollupRefuteRevealProofKind, VERSION, castToBigNumber, defaultChain, defaultRPCOptions };
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-rpc.es6.js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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -80,6 +80,8 @@
80
80
  RPCMethodName["GET_ALL_DELEGATES"] = "getAllDelegates";
81
81
  RPCMethodName["GET_DELEGATES"] = "getDelegates";
82
82
  RPCMethodName["GET_VOTING_INFO"] = "getVotingInfo";
83
+ RPCMethodName["GET_ACTIVE_STAKING_PARAMETERS"] = "getActiveStakingParameters";
84
+ RPCMethodName["GET_PENDING_STAKING_PARAMETERS"] = "getPendingStakingParameters";
83
85
  RPCMethodName["GET_ATTESTATION_RIGHTS"] = "getAttestationRights";
84
86
  RPCMethodName["GET_ENTRYPOINTS"] = "getEntrypoints";
85
87
  RPCMethodName["GET_LIVE_BLOCKS"] = "getLiveBlocks";
@@ -1312,6 +1314,46 @@
1312
1314
  }
1313
1315
  });
1314
1316
  }
1317
+ /**
1318
+ * @param delegate delegate address which we want to retrieve active staking parameters
1319
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
1320
+ * @description Returns the currently active staking parameters for the given delegate
1321
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-active-staking-parameters
1322
+ */
1323
+ getActiveStakingParameters(delegate_1) {
1324
+ return __awaiter(this, arguments, void 0, function* (delegate, { block } = defaultRPCOptions) {
1325
+ this.validateAddress(delegate);
1326
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_ACTIVE_STAKING_PARAMETERS, [block, delegate]);
1327
+ if (this.has(key)) {
1328
+ return this.get(key);
1329
+ }
1330
+ else {
1331
+ const response = this.rpcClient.getActiveStakingParameters(delegate, { block });
1332
+ this.put(key, response);
1333
+ return response;
1334
+ }
1335
+ });
1336
+ }
1337
+ /**
1338
+ * @param delegate delegate address which we want to retrieve pending staking parameters
1339
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
1340
+ * @description Returns the pending values for the given delegate's staking parameters
1341
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-pending-staking-parameters
1342
+ */
1343
+ getPendingStakingParameters(delegate_1) {
1344
+ return __awaiter(this, arguments, void 0, function* (delegate, { block } = defaultRPCOptions) {
1345
+ this.validateAddress(delegate);
1346
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_PENDING_STAKING_PARAMETERS, [block, delegate]);
1347
+ if (this.has(key)) {
1348
+ return this.get(key);
1349
+ }
1350
+ else {
1351
+ const response = this.rpcClient.getPendingStakingParameters(delegate, { block });
1352
+ this.put(key, response);
1353
+ return response;
1354
+ }
1355
+ });
1356
+ }
1315
1357
  }
1316
1358
 
1317
1359
  exports.OPERATION_METADATA = void 0;
@@ -1475,8 +1517,8 @@
1475
1517
 
1476
1518
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
1477
1519
  const VERSION = {
1478
- "commitHash": "20b6624f217ec85f28023ca02b2d3b73777a8df9",
1479
- "version": "23.0.2"
1520
+ "commitHash": "42048d039f6d4345fc59d04b03650bcb8e27bb62",
1521
+ "version": "23.0.3"
1480
1522
  };
1481
1523
 
1482
1524
  /***
@@ -2496,6 +2538,36 @@
2496
2538
  });
2497
2539
  });
2498
2540
  }
2541
+ /**
2542
+ * @param delegate delegate address which we want to retrieve active staking parameters
2543
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
2544
+ * @description Returns the currently active staking parameters for the given delegate
2545
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-active-staking-parameters
2546
+ */
2547
+ getActiveStakingParameters(delegate_1) {
2548
+ return __awaiter(this, arguments, void 0, function* (delegate, { block } = defaultRPCOptions) {
2549
+ const response = yield this.httpBackend.createRequest({
2550
+ url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/delegates/${delegate}/active_staking_parameters`),
2551
+ method: 'GET',
2552
+ });
2553
+ return response;
2554
+ });
2555
+ }
2556
+ /**
2557
+ * @param delegate delegate address which we want to retrieve pending staking parameters
2558
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
2559
+ * @description Returns the pending values for the given delegate's staking parameters
2560
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-pending-staking-parameters
2561
+ */
2562
+ getPendingStakingParameters(delegate_1) {
2563
+ return __awaiter(this, arguments, void 0, function* (delegate, { block } = defaultRPCOptions) {
2564
+ const response = yield this.httpBackend.createRequest({
2565
+ url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/delegates/${delegate}/pending_staking_parameters`),
2566
+ method: 'GET',
2567
+ });
2568
+ return response;
2569
+ });
2570
+ }
2499
2571
  }
2500
2572
 
2501
2573
  exports.RpcClient = RpcClient;
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-rpc.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { BigNumber } from 'bignumber.js';
2
- import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, AttestationRightsQueryArguments, AttestationRightsResponse, 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, PendingOperationsV2, PendingOperationsQueryArguments, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse } from './types';
2
+ import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, AttestationRightsQueryArguments, AttestationRightsResponse, 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, PendingOperationsV2, PendingOperationsQueryArguments, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse, ActiveStakingParametersResponse, PendingStakingParametersResponse } from './types';
3
3
  export interface RPCOptions {
4
4
  block: string;
5
5
  version?: 1 | '1';
@@ -68,6 +68,8 @@ export interface RpcClientInterface {
68
68
  getAllTicketBalances(contract: string, options?: RPCOptions): Promise<AllTicketBalances>;
69
69
  getAdaptiveIssuanceLaunchCycle(options?: RPCOptions): Promise<AILaunchCycleResponse>;
70
70
  getPendingOperations(args: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
71
+ getActiveStakingParameters(delegate: string, options?: RPCOptions): Promise<ActiveStakingParametersResponse>;
72
+ getPendingStakingParameters(delegate: string, options?: RPCOptions): Promise<PendingStakingParametersResponse>;
71
73
  }
72
74
  export declare enum RPCMethodName {
73
75
  GET_BAKING_RIGHTS = "getBakingRights",
@@ -98,6 +100,8 @@ export declare enum RPCMethodName {
98
100
  GET_ALL_DELEGATES = "getAllDelegates",
99
101
  GET_DELEGATES = "getDelegates",
100
102
  GET_VOTING_INFO = "getVotingInfo",
103
+ GET_ACTIVE_STAKING_PARAMETERS = "getActiveStakingParameters",
104
+ GET_PENDING_STAKING_PARAMETERS = "getPendingStakingParameters",
101
105
  GET_ATTESTATION_RIGHTS = "getAttestationRights",
102
106
  GET_ENTRYPOINTS = "getEntrypoints",
103
107
  GET_LIVE_BLOCKS = "getLiveBlocks",
@@ -461,5 +461,19 @@ export declare class RpcClientCache implements RpcClientInterface {
461
461
  * @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined }
462
462
  */
463
463
  getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
464
+ /**
465
+ * @param delegate delegate address which we want to retrieve active staking parameters
466
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
467
+ * @description Returns the currently active staking parameters for the given delegate
468
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-active-staking-parameters
469
+ */
470
+ getActiveStakingParameters(delegate: string, { block }?: RPCOptions): Promise<any>;
471
+ /**
472
+ * @param delegate delegate address which we want to retrieve pending staking parameters
473
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
474
+ * @description Returns the pending values for the given delegate's staking parameters
475
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-pending-staking-parameters
476
+ */
477
+ getPendingStakingParameters(delegate: string, { block }?: RPCOptions): Promise<any>;
464
478
  }
465
479
  export {};
@@ -5,7 +5,7 @@
5
5
  import { HttpBackend } from '@taquito/http-utils';
6
6
  import BigNumber from 'bignumber.js';
7
7
  import { RpcClientInterface, RPCOptions } from './rpc-client-interface';
8
- import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, 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, PendingOperationsV2, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse } from './types';
8
+ import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, 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, PendingOperationsV2, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse, ActiveStakingParametersResponse, PendingStakingParametersResponse } from './types';
9
9
  export { castToBigNumber } from './utils/utils';
10
10
  export { RPCOptions, defaultChain, defaultRPCOptions, RpcClientInterface, } from './rpc-client-interface';
11
11
  export { RpcClientCache } from './rpc-client-modules/rpc-cache';
@@ -467,4 +467,18 @@ export declare class RpcClient implements RpcClientInterface {
467
467
  * @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/seoul-mempool-openapi.json
468
468
  */
469
469
  getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
470
+ /**
471
+ * @param delegate delegate address which we want to retrieve active staking parameters
472
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
473
+ * @description Returns the currently active staking parameters for the given delegate
474
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-active-staking-parameters
475
+ */
476
+ getActiveStakingParameters(delegate: string, { block }?: RPCOptions): Promise<ActiveStakingParametersResponse>;
477
+ /**
478
+ * @param delegate delegate address which we want to retrieve pending staking parameters
479
+ * @param options contains generic configuration for rpc calls to specified block (default to head)
480
+ * @description Returns the pending values for the given delegate's staking parameters
481
+ * @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-pending-staking-parameters
482
+ */
483
+ getPendingStakingParameters(delegate: string, { block }?: RPCOptions): Promise<PendingStakingParametersResponse>;
470
484
  }
@@ -2313,4 +2313,15 @@ export interface SmartRollupTimeoutStakers {
2313
2313
  alice: string;
2314
2314
  bob: string;
2315
2315
  }
2316
+ export interface ActiveStakingParametersResponse {
2317
+ limit_of_staking_over_baking_millionth: number;
2318
+ edge_of_baking_over_staking_billionth: number;
2319
+ }
2320
+ export type PendingStakingParametersResponse = Array<{
2321
+ cycle: number;
2322
+ parameters: {
2323
+ limit_of_staking_over_baking_millionth: number;
2324
+ edge_of_baking_over_staking_billionth: number;
2325
+ };
2326
+ }>;
2316
2327
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/rpc",
3
- "version": "23.0.2",
3
+ "version": "23.0.3",
4
4
  "description": "Provides low level methods, and types to invoke RPC calls from a Nomadic Tezos RPC node",
5
5
  "keywords": [
6
6
  "tezos",
@@ -66,9 +66,9 @@
66
66
  ]
67
67
  },
68
68
  "dependencies": {
69
- "@taquito/core": "^23.0.2",
70
- "@taquito/http-utils": "^23.0.2",
71
- "@taquito/utils": "^23.0.2",
69
+ "@taquito/core": "^23.0.3",
70
+ "@taquito/http-utils": "^23.0.3",
71
+ "@taquito/utils": "^23.0.3",
72
72
  "bignumber.js": "^9.1.2"
73
73
  },
74
74
  "devDependencies": {
@@ -98,5 +98,5 @@
98
98
  "ts-toolbelt": "^9.6.0",
99
99
  "typescript": "~5.5.4"
100
100
  },
101
- "gitHead": "f7a7e829bd8876ead6888bea6bafb2f8f76a5359"
101
+ "gitHead": "2abf349e97af45f11210b3121078b9d96699d5da"
102
102
  }