@taquito/contracts-library 23.0.3 → 23.1.0

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.
@@ -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": "42048d039f6d4345fc59d04b03650bcb8e27bb62",
7
- "version": "23.0.3"
6
+ "commitHash": "c77fe4b0989665d8b5cfd15a7cc977499021f6fd",
7
+ "version": "23.1.0"
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/contracts-library",
3
- "version": "23.0.3",
3
+ "version": "23.1.0",
4
4
  "description": "Can be used as an extension on the TezosToolkit to provide contracts data",
5
5
  "keywords": [
6
6
  "tezos"
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "engines": {
25
- "node": ">=18"
25
+ "node": ">=20"
26
26
  },
27
27
  "scripts": {
28
28
  "test": "jest --coverage",
@@ -67,16 +67,16 @@
67
67
  ]
68
68
  },
69
69
  "dependencies": {
70
- "@taquito/core": "^23.0.3",
71
- "@taquito/rpc": "^23.0.3",
72
- "@taquito/taquito": "^23.0.3",
73
- "@taquito/utils": "^23.0.3",
70
+ "@taquito/core": "^23.1.0",
71
+ "@taquito/rpc": "^23.1.0",
72
+ "@taquito/taquito": "^23.1.0",
73
+ "@taquito/utils": "^23.1.0",
74
74
  "bignumber.js": "^9.1.2"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/bluebird": "^3.5.42",
78
78
  "@types/jest": "^29.5.12",
79
- "@types/node": "^18",
79
+ "@types/node": "^20",
80
80
  "@types/superagent": "^8.1.8",
81
81
  "@typescript-eslint/eslint-plugin": "^6.21.0",
82
82
  "@typescript-eslint/parser": "^6.21.0",
@@ -101,5 +101,5 @@
101
101
  "ts-toolbelt": "^9.6.0",
102
102
  "typescript": "~5.5.4"
103
103
  },
104
- "gitHead": "2abf349e97af45f11210b3121078b9d96699d5da"
104
+ "gitHead": "bcf60513cade1e3272cd50c47a786d4bd45f70c8"
105
105
  }
@@ -1,350 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __rest = (this && this.__rest) || function (s, e) {
12
- var t = {};
13
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
- t[p] = s[p];
15
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
- t[p[i]] = s[p[i]];
19
- }
20
- return t;
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.RpcWrapperContractsLibrary = void 0;
24
- const bignumber_js_1 = require("bignumber.js");
25
- const rpc_1 = require("@taquito/rpc");
26
- /**
27
- * @deprecated RpcWrapperContractsLibrary has been deprecated in favor of ReadWrapperContractsLibrary
28
- *
29
- */
30
- class RpcWrapperContractsLibrary {
31
- constructor(rpc, contractslibrary) {
32
- this.rpc = rpc;
33
- this.contractslibrary = contractslibrary;
34
- }
35
- getContract(address_1) {
36
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
37
- const contractData = this.contractslibrary.getContract(address);
38
- if (contractData) {
39
- return { script: contractData.script, balance: new bignumber_js_1.BigNumber(NaN) };
40
- }
41
- else {
42
- return this.rpc.getContract(address, { block });
43
- }
44
- });
45
- }
46
- getEntrypoints(contract_1) {
47
- return __awaiter(this, arguments, void 0, function* (contract, { block } = rpc_1.defaultRPCOptions) {
48
- const contractData = this.contractslibrary.getContract(contract);
49
- if (contractData) {
50
- return contractData.entrypoints;
51
- }
52
- else {
53
- return this.rpc.getEntrypoints(contract, { block });
54
- }
55
- });
56
- }
57
- getBalance(address_1) {
58
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
59
- return this.rpc.getBalance(address, { block });
60
- });
61
- }
62
- getSpendable(address_1) {
63
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
64
- return this.rpc.getSpendable(address, { block });
65
- });
66
- }
67
- getBalanceAndFrozenBonds(address_1) {
68
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
69
- return this.rpc.getBalanceAndFrozenBonds(address, { block });
70
- });
71
- }
72
- getSpendableAndFrozenBonds(address_1) {
73
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
74
- return this.rpc.getSpendableAndFrozenBonds(address, { block });
75
- });
76
- }
77
- getFullBalance(address_1) {
78
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
79
- return this.rpc.getFullBalance(address, { block });
80
- });
81
- }
82
- getStakedBalance(address_1) {
83
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
84
- return this.rpc.getStakedBalance(address, { block });
85
- });
86
- }
87
- getUnstakedFinalizableBalance(address_1) {
88
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
89
- return this.rpc.getUnstakedFinalizableBalance(address, { block });
90
- });
91
- }
92
- getUnstakedFrozenBalance(address_1) {
93
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
94
- return this.rpc.getUnstakedFrozenBalance(address, { block });
95
- });
96
- }
97
- getUnstakeRequests(address_1) {
98
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
99
- return this.rpc.getUnstakeRequests(address, { block });
100
- });
101
- }
102
- getBlockHash() {
103
- return __awaiter(this, arguments, void 0, function* ({ block } = rpc_1.defaultRPCOptions) {
104
- return this.rpc.getBlockHash({ block });
105
- });
106
- }
107
- getLiveBlocks() {
108
- return __awaiter(this, arguments, void 0, function* ({ block } = rpc_1.defaultRPCOptions) {
109
- return this.rpc.getLiveBlocks({ block });
110
- });
111
- }
112
- getStorage(address_1) {
113
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
114
- return this.rpc.getStorage(address, { block });
115
- });
116
- }
117
- getScript(address_1) {
118
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
119
- return this.rpc.getScript(address, { block });
120
- });
121
- }
122
- getNormalizedScript(address_1) {
123
- return __awaiter(this, arguments, void 0, function* (address, unparsingMode = { unparsing_mode: 'Readable' }, { block } = rpc_1.defaultRPCOptions) {
124
- return this.rpc.getNormalizedScript(address, unparsingMode, { block });
125
- });
126
- }
127
- getManagerKey(address_1) {
128
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
129
- return this.rpc.getManagerKey(address, { block });
130
- });
131
- }
132
- getDelegate(address_1) {
133
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
134
- return this.rpc.getDelegate(address, { block });
135
- });
136
- }
137
- getBigMapKey(address_1, key_1) {
138
- return __awaiter(this, arguments, void 0, function* (address, key, { block } = rpc_1.defaultRPCOptions) {
139
- return this.rpc.getBigMapKey(address, key, { block });
140
- });
141
- }
142
- getBigMapExpr(id_1, expr_1) {
143
- return __awaiter(this, arguments, void 0, function* (id, expr, { block } = rpc_1.defaultRPCOptions) {
144
- return this.rpc.getBigMapExpr(id, expr, { block });
145
- });
146
- }
147
- getAllDelegates(args_1) {
148
- return __awaiter(this, arguments, void 0, function* (args, { block } = rpc_1.defaultRPCOptions) {
149
- return this.rpc.getAllDelegates(args, { block });
150
- });
151
- }
152
- getDelegates(address_1) {
153
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
154
- return this.rpc.getDelegates(address, { block });
155
- });
156
- }
157
- getVotingInfo(address_1) {
158
- return __awaiter(this, arguments, void 0, function* (address, { block } = rpc_1.defaultRPCOptions) {
159
- return this.rpc.getVotingInfo(address, { block });
160
- });
161
- }
162
- getConstants() {
163
- return __awaiter(this, arguments, void 0, function* ({ block } = rpc_1.defaultRPCOptions) {
164
- return this.rpc.getConstants({ block });
165
- });
166
- }
167
- getBlock() {
168
- return __awaiter(this, arguments, void 0, function* ({ block } = rpc_1.defaultRPCOptions) {
169
- return this.rpc.getBlock({ block });
170
- });
171
- }
172
- getBlockHeader() {
173
- return __awaiter(this, arguments, void 0, function* ({ block } = rpc_1.defaultRPCOptions) {
174
- return this.rpc.getBlockHeader({ block });
175
- });
176
- }
177
- getBlockMetadata() {
178
- return __awaiter(this, arguments, void 0, function* ({ block } = rpc_1.defaultRPCOptions) {
179
- return this.rpc.getBlockMetadata({ block });
180
- });
181
- }
182
- getBakingRights(args_1) {
183
- return __awaiter(this, arguments, void 0, function* (args, { block } = rpc_1.defaultRPCOptions) {
184
- return this.rpc.getBakingRights(args, { block });
185
- });
186
- }
187
- getAttestationRights(args_1) {
188
- return __awaiter(this, arguments, void 0, function* (args, { block } = rpc_1.defaultRPCOptions) {
189
- return this.rpc.getAttestationRights(args, { block });
190
- });
191
- }
192
- getBallotList() {
193
- return __awaiter(this, arguments, void 0, function* ({ block } = rpc_1.defaultRPCOptions) {
194
- return this.rpc.getBallotList({ block });
195
- });
196
- }
197
- getBallots() {
198
- return __awaiter(this, arguments, void 0, function* ({ block } = rpc_1.defaultRPCOptions) {
199
- return this.rpc.getBallots({ block });
200
- });
201
- }
202
- getCurrentProposal() {
203
- return __awaiter(this, arguments, void 0, function* ({ block, } = rpc_1.defaultRPCOptions) {
204
- return this.rpc.getCurrentProposal({ block });
205
- });
206
- }
207
- getCurrentQuorum() {
208
- return __awaiter(this, arguments, void 0, function* ({ block } = rpc_1.defaultRPCOptions) {
209
- return this.rpc.getCurrentQuorum({ block });
210
- });
211
- }
212
- getVotesListings() {
213
- return __awaiter(this, arguments, void 0, function* ({ block, } = rpc_1.defaultRPCOptions) {
214
- return this.rpc.getVotesListings({ block });
215
- });
216
- }
217
- getProposals() {
218
- return __awaiter(this, arguments, void 0, function* ({ block } = rpc_1.defaultRPCOptions) {
219
- return this.rpc.getProposals({ block });
220
- });
221
- }
222
- forgeOperations(data_1) {
223
- return __awaiter(this, arguments, void 0, function* (data, { block } = rpc_1.defaultRPCOptions) {
224
- return this.rpc.forgeOperations(data, { block });
225
- });
226
- }
227
- injectOperation(signedOpBytes) {
228
- return __awaiter(this, void 0, void 0, function* () {
229
- return this.rpc.injectOperation(signedOpBytes);
230
- });
231
- }
232
- packData(data_1) {
233
- return __awaiter(this, arguments, void 0, function* (data, { block } = rpc_1.defaultRPCOptions) {
234
- return this.rpc.packData(data, { block });
235
- });
236
- }
237
- preapplyOperations(ops_1) {
238
- return __awaiter(this, arguments, void 0, function* (ops, { block } = rpc_1.defaultRPCOptions) {
239
- return this.rpc.preapplyOperations(ops, { block });
240
- });
241
- }
242
- runOperation(op_1) {
243
- return __awaiter(this, arguments, void 0, function* (op, { block } = rpc_1.defaultRPCOptions) {
244
- return this.rpc.runOperation(op, { block });
245
- });
246
- }
247
- simulateOperation(op_1) {
248
- return __awaiter(this, arguments, void 0, function* (op, { block } = rpc_1.defaultRPCOptions) {
249
- return this.rpc.simulateOperation(op, { block });
250
- });
251
- }
252
- runCode(code_1) {
253
- return __awaiter(this, arguments, void 0, function* (code, { block } = rpc_1.defaultRPCOptions) {
254
- return this.rpc.runCode(code, { block });
255
- });
256
- }
257
- runScriptView(_a, _b) {
258
- return __awaiter(this, void 0, void 0, function* () {
259
- var { unparsing_mode = 'Readable' } = _a, rest = __rest(_a, ["unparsing_mode"]);
260
- var _c = _b === void 0 ? rpc_1.defaultRPCOptions : _b, block = _c.block;
261
- return this.rpc.runScriptView(Object.assign({ unparsing_mode }, rest), { block });
262
- });
263
- }
264
- runView(_a, _b) {
265
- return __awaiter(this, void 0, void 0, function* () {
266
- var { unparsing_mode = 'Readable' } = _a, rest = __rest(_a, ["unparsing_mode"]);
267
- var _c = _b === void 0 ? rpc_1.defaultRPCOptions : _b, block = _c.block;
268
- return this.rpc.runView(Object.assign({ unparsing_mode }, rest), { block });
269
- });
270
- }
271
- getChainId() {
272
- return __awaiter(this, void 0, void 0, function* () {
273
- return this.rpc.getChainId();
274
- });
275
- }
276
- getRpcUrl() {
277
- return this.rpc.getRpcUrl();
278
- }
279
- getCurrentPeriod() {
280
- return __awaiter(this, arguments, void 0, function* ({ block, } = rpc_1.defaultRPCOptions) {
281
- return this.rpc.getCurrentPeriod({ block });
282
- });
283
- }
284
- getSuccessorPeriod() {
285
- return __awaiter(this, arguments, void 0, function* ({ block, } = rpc_1.defaultRPCOptions) {
286
- return this.rpc.getSuccessorPeriod({ block });
287
- });
288
- }
289
- getSaplingDiffById(id_1) {
290
- return __awaiter(this, arguments, void 0, function* (id, { block } = rpc_1.defaultRPCOptions) {
291
- return this.rpc.getSaplingDiffById(id, { block });
292
- });
293
- }
294
- getSaplingDiffByContract(contract_1) {
295
- return __awaiter(this, arguments, void 0, function* (contract, { block } = rpc_1.defaultRPCOptions) {
296
- return this.rpc.getSaplingDiffByContract(contract, { block });
297
- });
298
- }
299
- getProtocols() {
300
- return __awaiter(this, arguments, void 0, function* ({ block } = rpc_1.defaultRPCOptions) {
301
- return this.rpc.getProtocols({ block });
302
- });
303
- }
304
- getProtocolActivations() {
305
- return __awaiter(this, arguments, void 0, function* (protocol = '') {
306
- return this.rpc.getProtocolActivations(protocol);
307
- });
308
- }
309
- getStorageUsedSpace(contract_1) {
310
- return __awaiter(this, arguments, void 0, function* (contract, { block } = rpc_1.defaultRPCOptions) {
311
- return this.rpc.getStorageUsedSpace(contract, { block });
312
- });
313
- }
314
- getStoragePaidSpace(contract_1) {
315
- return __awaiter(this, arguments, void 0, function* (contract, { block } = rpc_1.defaultRPCOptions) {
316
- return this.rpc.getStoragePaidSpace(contract, { block });
317
- });
318
- }
319
- getTicketBalance(contract_1, ticket_1) {
320
- return __awaiter(this, arguments, void 0, function* (contract, ticket, { block } = rpc_1.defaultRPCOptions) {
321
- return this.rpc.getTicketBalance(contract, ticket, { block });
322
- });
323
- }
324
- getAllTicketBalances(contract_1) {
325
- return __awaiter(this, arguments, void 0, function* (contract, { block } = rpc_1.defaultRPCOptions) {
326
- return this.rpc.getAllTicketBalances(contract, { block });
327
- });
328
- }
329
- getAdaptiveIssuanceLaunchCycle() {
330
- return __awaiter(this, arguments, void 0, function* ({ block, } = rpc_1.defaultRPCOptions) {
331
- return this.rpc.getAdaptiveIssuanceLaunchCycle({ block });
332
- });
333
- }
334
- getPendingOperations(args) {
335
- return __awaiter(this, void 0, void 0, function* () {
336
- return this.rpc.getPendingOperations(args);
337
- });
338
- }
339
- getActiveStakingParameters(delegate_1) {
340
- return __awaiter(this, arguments, void 0, function* (delegate, { block } = rpc_1.defaultRPCOptions) {
341
- return this.rpc.getActiveStakingParameters(delegate, { block });
342
- });
343
- }
344
- getPendingStakingParameters(delegate_1) {
345
- return __awaiter(this, arguments, void 0, function* (delegate, { block } = rpc_1.defaultRPCOptions) {
346
- return this.rpc.getPendingStakingParameters(delegate, { block });
347
- });
348
- }
349
- }
350
- exports.RpcWrapperContractsLibrary = RpcWrapperContractsLibrary;
@@ -1,75 +0,0 @@
1
- import { BigNumber } from 'bignumber.js';
2
- import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, MichelsonV1Expression, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RpcClientInterface, RPCOptions, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsV2, PendingOperationsQueryArguments, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse, ActiveStakingParametersResponse, PendingStakingParametersResponse } from '@taquito/rpc';
3
- import { ContractsLibrary } from './taquito-contracts-library';
4
- /**
5
- * @deprecated RpcWrapperContractsLibrary has been deprecated in favor of ReadWrapperContractsLibrary
6
- *
7
- */
8
- export declare class RpcWrapperContractsLibrary implements RpcClientInterface {
9
- private rpc;
10
- private contractslibrary;
11
- constructor(rpc: RpcClientInterface, contractslibrary: ContractsLibrary);
12
- getContract(address: string, { block }?: RPCOptions): Promise<ContractResponse>;
13
- getEntrypoints(contract: string, { block }?: RPCOptions): Promise<EntrypointsResponse>;
14
- getBalance(address: string, { block }?: RPCOptions): Promise<BalanceResponse>;
15
- getSpendable(address: string, { block }?: RPCOptions): Promise<BalanceResponse>;
16
- getBalanceAndFrozenBonds(address: string, { block }?: RPCOptions): Promise<BalanceResponse>;
17
- getSpendableAndFrozenBonds(address: string, { block }?: RPCOptions): Promise<BalanceResponse>;
18
- getFullBalance(address: string, { block }?: RPCOptions): Promise<BalanceResponse>;
19
- getStakedBalance(address: string, { block }?: RPCOptions): Promise<BalanceResponse>;
20
- getUnstakedFinalizableBalance(address: string, { block }?: RPCOptions): Promise<BalanceResponse>;
21
- getUnstakedFrozenBalance(address: string, { block }?: RPCOptions): Promise<BalanceResponse>;
22
- getUnstakeRequests(address: string, { block }?: RPCOptions): Promise<UnstakeRequestsResponse>;
23
- getBlockHash({ block }?: RPCOptions): Promise<string>;
24
- getLiveBlocks({ block }?: RPCOptions): Promise<string[]>;
25
- getStorage(address: string, { block }?: RPCOptions): Promise<MichelsonV1Expression>;
26
- getScript(address: string, { block }?: RPCOptions): Promise<ScriptResponse>;
27
- getNormalizedScript(address: string, unparsingMode?: UnparsingMode, { block }?: RPCOptions): Promise<ScriptResponse>;
28
- getManagerKey(address: string, { block }?: RPCOptions): Promise<ManagerKeyResponse>;
29
- getDelegate(address: string, { block }?: RPCOptions): Promise<DelegateResponse>;
30
- getBigMapKey(address: string, key: BigMapKey, { block }?: RPCOptions): Promise<MichelsonV1Expression>;
31
- getBigMapExpr(id: string, expr: string, { block }?: RPCOptions): Promise<BigMapResponse>;
32
- getAllDelegates(args: AllDelegatesQueryArguments, { block }?: RPCOptions): Promise<string[]>;
33
- getDelegates(address: string, { block }?: RPCOptions): Promise<DelegatesResponse>;
34
- getVotingInfo(address: string, { block }?: RPCOptions): Promise<VotingInfoResponse>;
35
- getConstants({ block }?: RPCOptions): Promise<ConstantsResponse>;
36
- getBlock({ block }?: RPCOptions): Promise<BlockResponse>;
37
- getBlockHeader({ block }?: RPCOptions): Promise<BlockHeaderResponse>;
38
- getBlockMetadata({ block }?: RPCOptions): Promise<BlockMetadata>;
39
- getBakingRights(args: BakingRightsQueryArguments, { block }?: RPCOptions): Promise<BakingRightsResponse>;
40
- getAttestationRights(args: AttestationRightsQueryArguments, { block }?: RPCOptions): Promise<AttestationRightsResponse>;
41
- getBallotList({ block }?: RPCOptions): Promise<BallotListResponse>;
42
- getBallots({ block }?: RPCOptions): Promise<BallotsResponse>;
43
- getCurrentProposal({ block, }?: RPCOptions): Promise<CurrentProposalResponse>;
44
- getCurrentQuorum({ block }?: RPCOptions): Promise<number>;
45
- getVotesListings({ block, }?: RPCOptions): Promise<VotesListingsResponse>;
46
- getProposals({ block }?: RPCOptions): Promise<ProposalsResponse>;
47
- forgeOperations(data: ForgeOperationsParams, { block }?: RPCOptions): Promise<string>;
48
- injectOperation(signedOpBytes: string): Promise<string>;
49
- packData(data: PackDataParams, { block }?: RPCOptions): Promise<{
50
- packed: string;
51
- gas: BigNumber | 'unaccounted' | undefined;
52
- }>;
53
- preapplyOperations(ops: PreapplyParams, { block }?: RPCOptions): Promise<PreapplyResponse[]>;
54
- runOperation(op: RPCRunOperationParam, { block }?: RPCOptions): Promise<PreapplyResponse>;
55
- simulateOperation(op: RPCSimulateOperationParam, { block }?: RPCOptions): Promise<PreapplyResponse>;
56
- runCode(code: RPCRunCodeParam, { block }?: RPCOptions): Promise<RunCodeResult>;
57
- runScriptView({ unparsing_mode, ...rest }: RPCRunScriptViewParam, { block }?: RPCOptions): Promise<RunScriptViewResult>;
58
- runView({ unparsing_mode, ...rest }: RPCRunViewParam, { block }?: RPCOptions): Promise<RunViewResult>;
59
- getChainId(): Promise<string>;
60
- getRpcUrl(): string;
61
- getCurrentPeriod({ block, }?: RPCOptions): Promise<VotingPeriodBlockResult>;
62
- getSuccessorPeriod({ block, }?: RPCOptions): Promise<VotingPeriodBlockResult>;
63
- getSaplingDiffById(id: string, { block }?: RPCOptions): Promise<SaplingDiffResponse>;
64
- getSaplingDiffByContract(contract: string, { block }?: RPCOptions): Promise<SaplingDiffResponse>;
65
- getProtocols({ block }?: RPCOptions): Promise<ProtocolsResponse>;
66
- getProtocolActivations(protocol?: string): Promise<ProtocolActivationsResponse>;
67
- getStorageUsedSpace(contract: string, { block }?: RPCOptions): Promise<string>;
68
- getStoragePaidSpace(contract: string, { block }?: RPCOptions): Promise<string>;
69
- getTicketBalance(contract: string, ticket: TicketTokenParams, { block }?: RPCOptions): Promise<string>;
70
- getAllTicketBalances(contract: string, { block }?: RPCOptions): Promise<AllTicketBalances>;
71
- getAdaptiveIssuanceLaunchCycle({ block, }?: RPCOptions): Promise<AILaunchCycleResponse>;
72
- getPendingOperations(args: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
73
- getActiveStakingParameters(delegate: string, { block }?: RPCOptions): Promise<ActiveStakingParametersResponse>;
74
- getPendingStakingParameters(delegate: string, { block }?: RPCOptions): Promise<PendingStakingParametersResponse>;
75
- }