@taquito/taquito 24.2.0 → 24.3.0-beta.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.
- package/README.md +1 -1
- package/dist/lib/batch/rpc-batch-provider.js +91 -83
- package/dist/lib/context.js +22 -26
- package/dist/lib/contract/big-map.js +16 -29
- package/dist/lib/contract/contract-methods/contract-method-object-param.js +7 -7
- package/dist/lib/contract/contract-methods/contract-on-chain-view.js +31 -44
- package/dist/lib/contract/contract.js +21 -32
- package/dist/lib/contract/errors.js +9 -9
- package/dist/lib/contract/prepare.js +36 -45
- package/dist/lib/contract/rpc-contract-provider.js +426 -475
- package/dist/lib/contract/sapling-state-abstraction.js +3 -14
- package/dist/lib/contract/semantic.js +2 -2
- package/dist/lib/errors.js +3 -3
- package/dist/lib/estimate/errors.js +1 -1
- package/dist/lib/estimate/estimate.js +66 -20
- package/dist/lib/estimate/rpc-estimate-provider.js +427 -460
- package/dist/lib/forger/composite-forger.js +16 -27
- package/dist/lib/forger/errors.js +2 -2
- package/dist/lib/forger/taquito-local-forger.js +9 -22
- package/dist/lib/global-constants/default-global-constants-provider.js +8 -19
- package/dist/lib/global-constants/errors.js +2 -2
- package/dist/lib/global-constants/noop-global-constants-provider.js +2 -13
- package/dist/lib/import-key.js +23 -34
- package/dist/lib/injector/rpc-injector.js +13 -24
- package/dist/lib/operations/ballot-operation.js +2 -3
- package/dist/lib/operations/delegate-operation.js +5 -8
- package/dist/lib/operations/drain-delegate-operation.js +1 -1
- package/dist/lib/operations/errors.js +9 -6
- package/dist/lib/operations/increase-paid-storage-operation.js +4 -7
- package/dist/lib/operations/operations.js +100 -30
- package/dist/lib/operations/origination-operation.js +16 -27
- package/dist/lib/operations/proposals-operation.js +2 -3
- package/dist/lib/operations/register-global-constant-operation.js +4 -7
- package/dist/lib/operations/reveal-operation.js +1 -1
- package/dist/lib/operations/smart-rollup-add-messages-operation.js +4 -7
- package/dist/lib/operations/smart-rollup-execute-outbox-message-operation.js +4 -7
- package/dist/lib/operations/smart-rollup-originate-operation.js +4 -7
- package/dist/lib/operations/transaction-operation.js +2 -2
- package/dist/lib/operations/transfer-ticket-operation.js +4 -6
- package/dist/lib/operations/types.js +17 -19
- package/dist/lib/operations/update-companion-key-operation.js +4 -7
- package/dist/lib/operations/update-consensus-key-operation.js +4 -7
- package/dist/lib/packer/michel-codec-packer.js +3 -14
- package/dist/lib/packer/rpc-packer.js +2 -13
- package/dist/lib/parser/michel-codec-parser.js +82 -107
- package/dist/lib/parser/noop-parser.js +2 -13
- package/dist/lib/prepare/prepare-provider.js +780 -744
- package/dist/lib/provider.js +322 -128
- package/dist/lib/read-provider/rpc-read-adapter.js +76 -121
- package/dist/lib/signer/errors.js +1 -1
- package/dist/lib/signer/noop.js +9 -26
- package/dist/lib/subscribe/errors.js +2 -2
- package/dist/lib/subscribe/polling-subcribe-provider.js +35 -38
- package/dist/lib/taquito.js +33 -33
- package/dist/lib/tz/rpc-tz-provider.js +27 -44
- package/dist/lib/version.js +2 -2
- package/dist/lib/wallet/batch-operation.js +32 -45
- package/dist/lib/wallet/delegation-operation.js +25 -40
- package/dist/lib/wallet/errors.js +15 -3
- package/dist/lib/wallet/increase-paid-storage-operation.js +25 -40
- package/dist/lib/wallet/legacy.js +28 -63
- package/dist/lib/wallet/operation-factory.js +27 -56
- package/dist/lib/wallet/operation.js +123 -59
- package/dist/lib/wallet/origination-operation.js +34 -46
- package/dist/lib/wallet/register-global-constant-operation.js +26 -43
- package/dist/lib/wallet/transaction-operation.js +21 -36
- package/dist/lib/wallet/transfer-ticket-operation.js +21 -36
- package/dist/lib/wallet/wallet.js +187 -184
- package/dist/taquito.es6.js +3424 -3197
- package/dist/taquito.es6.js.map +1 -1
- package/dist/taquito.min.js +1 -1
- package/dist/taquito.umd.js +7930 -7701
- package/dist/taquito.umd.js.map +1 -1
- package/dist/types/batch/rpc-batch-provider.d.ts +18 -18
- package/dist/types/context.d.ts +4 -4
- package/dist/types/contract/big-map.d.ts +3 -3
- package/dist/types/contract/contract-methods/contract-method-interface.d.ts +4 -4
- package/dist/types/contract/contract-methods/contract-method-object-param.d.ts +6 -6
- package/dist/types/contract/contract-methods/contract-on-chain-view.d.ts +3 -3
- package/dist/types/contract/contract.d.ts +6 -6
- package/dist/types/contract/errors.d.ts +11 -11
- package/dist/types/contract/interface.d.ts +42 -42
- package/dist/types/contract/rpc-contract-provider.d.ts +44 -43
- package/dist/types/contract/sapling-state-abstraction.d.ts +1 -1
- package/dist/types/contract/semantic.d.ts +2 -2
- package/dist/types/errors.d.ts +5 -5
- package/dist/types/estimate/errors.d.ts +1 -1
- package/dist/types/estimate/estimate-provider-interface.d.ts +81 -84
- package/dist/types/estimate/estimate.d.ts +28 -11
- package/dist/types/estimate/rpc-estimate-provider.d.ts +34 -30
- package/dist/types/forger/errors.d.ts +2 -2
- package/dist/types/global-constants/default-global-constants-provider.d.ts +2 -2
- package/dist/types/global-constants/errors.d.ts +2 -2
- package/dist/types/global-constants/interface-global-constants-provider.d.ts +1 -1
- package/dist/types/import-key.d.ts +2 -2
- package/dist/types/operations/ballot-operation.d.ts +1 -1
- package/dist/types/operations/delegate-operation.d.ts +2 -2
- package/dist/types/operations/drain-delegate-operation.d.ts +1 -1
- package/dist/types/operations/errors.d.ts +5 -5
- package/dist/types/operations/failing-noop-operation.d.ts +1 -1
- package/dist/types/operations/increase-paid-storage-operation.d.ts +1 -1
- package/dist/types/operations/operations.d.ts +2 -2
- package/dist/types/operations/origination-operation.d.ts +5 -5
- package/dist/types/operations/proposals-operation.d.ts +1 -1
- package/dist/types/operations/register-global-constant-operation.d.ts +2 -2
- package/dist/types/operations/reveal-operation.d.ts +1 -1
- package/dist/types/operations/smart-rollup-add-messages-operation.d.ts +1 -1
- package/dist/types/operations/smart-rollup-execute-outbox-message-operation.d.ts +1 -1
- package/dist/types/operations/smart-rollup-originate-operation.d.ts +1 -1
- package/dist/types/operations/transaction-operation.d.ts +2 -2
- package/dist/types/operations/transfer-ticket-operation.d.ts +2 -2
- package/dist/types/operations/types.d.ts +387 -25
- package/dist/types/operations/update-companion-key-operation.d.ts +1 -1
- package/dist/types/operations/update-consensus-key-operation.d.ts +1 -1
- package/dist/types/prepare/interface.d.ts +32 -33
- package/dist/types/prepare/prepare-provider.d.ts +34 -60
- package/dist/types/provider.d.ts +7 -1
- package/dist/types/read-provider/interface.d.ts +21 -21
- package/dist/types/read-provider/rpc-read-adapter.d.ts +22 -22
- package/dist/types/signer/errors.d.ts +1 -1
- package/dist/types/signer/noop.d.ts +1 -1
- package/dist/types/subscribe/errors.d.ts +2 -2
- package/dist/types/taquito.d.ts +33 -33
- package/dist/types/wallet/errors.d.ts +10 -2
- package/dist/types/wallet/interface.d.ts +13 -13
- package/dist/types/wallet/operation.d.ts +4 -3
- package/dist/types/wallet/wallet.d.ts +36 -35
- package/package.json +27 -15
- package/LICENSE +0 -202
|
@@ -17,13 +17,17 @@ export declare const isKind: <T extends {
|
|
|
17
17
|
}, K extends OpKind>(op: T, kind: K) => op is withKind<T, K>;
|
|
18
18
|
export type RPCOpWithFee = RPCTransferOperation | RPCOriginationOperation | RPCDelegateOperation | RPCRevealOperation | RPCRegisterGlobalConstantOperation | RPCIncreasePaidStorageOperation | RPCTransferTicketOperation | RPCUpdateConsensusKeyOperation | RPCUpdateCompanionKeyOperation | RPCSmartRollupAddMessagesOperation | RPCSmartRollupOriginateOperation | RPCSmartRollupOutboxMessageOperation;
|
|
19
19
|
export type RPCOpWithSource = RPCTransferOperation | RPCOriginationOperation | RPCDelegateOperation | RPCRevealOperation | RPCRegisterGlobalConstantOperation | RPCIncreasePaidStorageOperation | RPCTransferTicketOperation | RPCUpdateConsensusKeyOperation | RPCUpdateCompanionKeyOperation | RPCSmartRollupAddMessagesOperation | RPCSmartRollupOriginateOperation | RPCSmartRollupOutboxMessageOperation | RPCBallotOperation | RPCProposalsOperation;
|
|
20
|
+
declare const feeConsumingOpKinds: readonly [OpKind.TRANSACTION, OpKind.DELEGATION, OpKind.ORIGINATION, OpKind.REVEAL, OpKind.REGISTER_GLOBAL_CONSTANT, OpKind.INCREASE_PAID_STORAGE, OpKind.TRANSFER_TICKET, OpKind.UPDATE_CONSENSUS_KEY, OpKind.UPDATE_COMPANION_KEY, OpKind.SMART_ROLLUP_ADD_MESSAGES, OpKind.SMART_ROLLUP_ORIGINATE, OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE];
|
|
21
|
+
type FeeConsumingOpKind = (typeof feeConsumingOpKinds)[number];
|
|
20
22
|
export declare const isOpWithGasBuffer: <T extends {
|
|
21
23
|
kind: OpKind;
|
|
22
24
|
destination?: string;
|
|
23
25
|
}>(op: T) => boolean;
|
|
24
26
|
export declare const isOpWithFee: <T extends {
|
|
25
27
|
kind: OpKind;
|
|
26
|
-
}>(op: T) => op is
|
|
28
|
+
}>(op: T) => op is Extract<T, {
|
|
29
|
+
kind: FeeConsumingOpKind;
|
|
30
|
+
}>;
|
|
27
31
|
export declare const isOpRequireReveal: <T extends {
|
|
28
32
|
kind: OpKind;
|
|
29
33
|
}>(op: T) => op is withKind<T, Exclude<InternalOperationResultKindEnum, OpKind.REVEAL>>;
|
|
@@ -63,16 +67,45 @@ export interface FeeConsumingOperation {
|
|
|
63
67
|
fee: number;
|
|
64
68
|
}
|
|
65
69
|
export type OriginateParamsBase = {
|
|
70
|
+
/**
|
|
71
|
+
* Initial contract balance.
|
|
72
|
+
*
|
|
73
|
+
* Interpreted as tez by default. Set `mutez: true` to pass this value in mutez.
|
|
74
|
+
*/
|
|
66
75
|
balance?: string | number;
|
|
76
|
+
/**
|
|
77
|
+
* Contract code in Micheline JSON (`object[]`) or Michelson string.
|
|
78
|
+
*/
|
|
67
79
|
code: string | object[];
|
|
80
|
+
/**
|
|
81
|
+
* Optional delegate for the originated contract.
|
|
82
|
+
*/
|
|
68
83
|
delegate?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Fee in mutez.
|
|
86
|
+
*
|
|
87
|
+
* If omitted, Taquito estimates and fills a fee.
|
|
88
|
+
*/
|
|
69
89
|
fee?: number;
|
|
90
|
+
/**
|
|
91
|
+
* Gas limit.
|
|
92
|
+
*
|
|
93
|
+
* If omitted, Taquito derives it from protocol constants and simulation.
|
|
94
|
+
*/
|
|
70
95
|
gasLimit?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Storage limit.
|
|
98
|
+
*
|
|
99
|
+
* If omitted, Taquito derives it from protocol constants and simulation.
|
|
100
|
+
*/
|
|
71
101
|
storageLimit?: number;
|
|
102
|
+
/**
|
|
103
|
+
* When `true`, `balance` is interpreted as mutez.
|
|
104
|
+
*/
|
|
72
105
|
mutez?: boolean;
|
|
73
106
|
};
|
|
74
107
|
/**
|
|
75
|
-
*
|
|
108
|
+
* Parameters for originate method
|
|
76
109
|
*/
|
|
77
110
|
export type OriginateParams<TStorage = any> = OriginateParamsBase & ({
|
|
78
111
|
init?: never;
|
|
@@ -88,7 +121,7 @@ export interface ActivationParams {
|
|
|
88
121
|
secret: string;
|
|
89
122
|
}
|
|
90
123
|
/**
|
|
91
|
-
*
|
|
124
|
+
* RPC origination operation
|
|
92
125
|
*/
|
|
93
126
|
export interface RPCOriginationOperation {
|
|
94
127
|
kind: OpKind.ORIGINATION;
|
|
@@ -104,7 +137,7 @@ export interface RPCOriginationOperation {
|
|
|
104
137
|
};
|
|
105
138
|
}
|
|
106
139
|
/**
|
|
107
|
-
*
|
|
140
|
+
* RPC reveal operation
|
|
108
141
|
*/
|
|
109
142
|
export interface RPCRevealOperation {
|
|
110
143
|
kind: OpKind.REVEAL;
|
|
@@ -116,13 +149,27 @@ export interface RPCRevealOperation {
|
|
|
116
149
|
proof?: string;
|
|
117
150
|
}
|
|
118
151
|
export interface RevealParams {
|
|
152
|
+
/**
|
|
153
|
+
* Reveal fee in mutez.
|
|
154
|
+
*/
|
|
119
155
|
fee?: number;
|
|
156
|
+
/**
|
|
157
|
+
* Reveal gas limit.
|
|
158
|
+
*/
|
|
120
159
|
gasLimit?: number;
|
|
160
|
+
/**
|
|
161
|
+
* Reveal storage limit.
|
|
162
|
+
*/
|
|
121
163
|
storageLimit?: number;
|
|
164
|
+
/**
|
|
165
|
+
* Proof of possession for BLS (`tz4`) reveal.
|
|
166
|
+
*
|
|
167
|
+
* Required for BLS reveal and ignored for non-BLS sources.
|
|
168
|
+
*/
|
|
122
169
|
proof?: string;
|
|
123
170
|
}
|
|
124
171
|
/**
|
|
125
|
-
*
|
|
172
|
+
* Result of a forge operation contains the operation plus its encoded version
|
|
126
173
|
*/
|
|
127
174
|
export interface ForgedBytes {
|
|
128
175
|
opbytes: string;
|
|
@@ -130,25 +177,51 @@ export interface ForgedBytes {
|
|
|
130
177
|
counter: number;
|
|
131
178
|
}
|
|
132
179
|
/**
|
|
133
|
-
*
|
|
180
|
+
* Parameters for setDelegate method
|
|
134
181
|
*/
|
|
135
182
|
export interface DelegateParams {
|
|
183
|
+
/**
|
|
184
|
+
* Operation source. Defaults to the active signer pkh.
|
|
185
|
+
*/
|
|
136
186
|
source?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Delegate address.
|
|
189
|
+
*
|
|
190
|
+
* Omit to clear delegation.
|
|
191
|
+
*/
|
|
137
192
|
delegate?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Fee in mutez.
|
|
195
|
+
*/
|
|
138
196
|
fee?: number;
|
|
197
|
+
/**
|
|
198
|
+
* Gas limit.
|
|
199
|
+
*/
|
|
139
200
|
gasLimit?: number;
|
|
201
|
+
/**
|
|
202
|
+
* Storage limit.
|
|
203
|
+
*/
|
|
140
204
|
storageLimit?: number;
|
|
141
205
|
}
|
|
142
206
|
/**
|
|
143
|
-
*
|
|
207
|
+
* Parameters for registerDelegate method
|
|
144
208
|
*/
|
|
145
209
|
export interface RegisterDelegateParams {
|
|
210
|
+
/**
|
|
211
|
+
* Fee in mutez.
|
|
212
|
+
*/
|
|
146
213
|
fee?: number;
|
|
214
|
+
/**
|
|
215
|
+
* Gas limit.
|
|
216
|
+
*/
|
|
147
217
|
gasLimit?: number;
|
|
218
|
+
/**
|
|
219
|
+
* Storage limit.
|
|
220
|
+
*/
|
|
148
221
|
storageLimit?: number;
|
|
149
222
|
}
|
|
150
223
|
/**
|
|
151
|
-
*
|
|
224
|
+
* RPC delegation operation
|
|
152
225
|
*/
|
|
153
226
|
export interface RPCDelegateOperation {
|
|
154
227
|
kind: OpKind.DELEGATION;
|
|
@@ -159,59 +232,170 @@ export interface RPCDelegateOperation {
|
|
|
159
232
|
delegate?: string;
|
|
160
233
|
}
|
|
161
234
|
/**
|
|
162
|
-
*
|
|
235
|
+
* Parameters for transfer method
|
|
163
236
|
*/
|
|
164
237
|
export interface TransferParams {
|
|
238
|
+
/**
|
|
239
|
+
* Destination account or contract address.
|
|
240
|
+
*/
|
|
165
241
|
to: string;
|
|
242
|
+
/**
|
|
243
|
+
* Operation source. Defaults to the active signer pkh.
|
|
244
|
+
*/
|
|
166
245
|
source?: string;
|
|
246
|
+
/**
|
|
247
|
+
* Transfer amount.
|
|
248
|
+
*
|
|
249
|
+
* Interpreted as tez by default. Set `mutez: true` to pass mutez.
|
|
250
|
+
*/
|
|
167
251
|
amount: number;
|
|
252
|
+
/**
|
|
253
|
+
* Fee in mutez.
|
|
254
|
+
*/
|
|
168
255
|
fee?: number;
|
|
256
|
+
/**
|
|
257
|
+
* Optional transaction parameter for contract calls.
|
|
258
|
+
*/
|
|
169
259
|
parameter?: TransactionOperationParameter;
|
|
260
|
+
/**
|
|
261
|
+
* Gas limit.
|
|
262
|
+
*/
|
|
170
263
|
gasLimit?: number;
|
|
264
|
+
/**
|
|
265
|
+
* Storage limit.
|
|
266
|
+
*/
|
|
171
267
|
storageLimit?: number;
|
|
268
|
+
/**
|
|
269
|
+
* When `true`, `amount` is interpreted as mutez.
|
|
270
|
+
*/
|
|
172
271
|
mutez?: boolean;
|
|
173
272
|
}
|
|
174
273
|
/**
|
|
175
|
-
*
|
|
274
|
+
* RPC Stake pseudo operation params
|
|
176
275
|
*/
|
|
177
276
|
export interface StakeParams {
|
|
277
|
+
/**
|
|
278
|
+
* Destination staking contract/account.
|
|
279
|
+
*
|
|
280
|
+
* Defaults to source when omitted.
|
|
281
|
+
*/
|
|
178
282
|
to?: string;
|
|
283
|
+
/**
|
|
284
|
+
* Operation source. Defaults to the active signer pkh.
|
|
285
|
+
*/
|
|
179
286
|
source?: string;
|
|
287
|
+
/**
|
|
288
|
+
* Amount to stake.
|
|
289
|
+
*
|
|
290
|
+
* Interpreted as tez by default. Set `mutez: true` to pass mutez.
|
|
291
|
+
*/
|
|
180
292
|
amount: number;
|
|
293
|
+
/**
|
|
294
|
+
* Fee in mutez.
|
|
295
|
+
*/
|
|
181
296
|
fee?: number;
|
|
297
|
+
/**
|
|
298
|
+
* Optional RPC-level parameter override.
|
|
299
|
+
*/
|
|
182
300
|
parameter?: TransactionOperationParameter;
|
|
301
|
+
/**
|
|
302
|
+
* Gas limit.
|
|
303
|
+
*/
|
|
183
304
|
gasLimit?: number;
|
|
305
|
+
/**
|
|
306
|
+
* Storage limit.
|
|
307
|
+
*/
|
|
184
308
|
storageLimit?: number;
|
|
309
|
+
/**
|
|
310
|
+
* When `true`, `amount` is interpreted as mutez.
|
|
311
|
+
*/
|
|
185
312
|
mutez?: boolean;
|
|
186
313
|
}
|
|
187
314
|
/**
|
|
188
|
-
*
|
|
315
|
+
* RPC unstake pseudo operation params
|
|
189
316
|
*/
|
|
190
317
|
export interface UnstakeParams {
|
|
318
|
+
/**
|
|
319
|
+
* Destination staking contract/account.
|
|
320
|
+
*
|
|
321
|
+
* Defaults to source when omitted.
|
|
322
|
+
*/
|
|
191
323
|
to?: string;
|
|
324
|
+
/**
|
|
325
|
+
* Operation source. Defaults to the active signer pkh.
|
|
326
|
+
*/
|
|
192
327
|
source?: string;
|
|
328
|
+
/**
|
|
329
|
+
* Amount to unstake.
|
|
330
|
+
*
|
|
331
|
+
* Interpreted as tez by default. Set `mutez: true` to pass mutez.
|
|
332
|
+
*/
|
|
193
333
|
amount: number;
|
|
334
|
+
/**
|
|
335
|
+
* Fee in mutez.
|
|
336
|
+
*/
|
|
194
337
|
fee?: number;
|
|
338
|
+
/**
|
|
339
|
+
* Optional RPC-level parameter override.
|
|
340
|
+
*/
|
|
195
341
|
parameter?: TransactionOperationParameter;
|
|
342
|
+
/**
|
|
343
|
+
* Gas limit.
|
|
344
|
+
*/
|
|
196
345
|
gasLimit?: number;
|
|
346
|
+
/**
|
|
347
|
+
* Storage limit.
|
|
348
|
+
*/
|
|
197
349
|
storageLimit?: number;
|
|
350
|
+
/**
|
|
351
|
+
* When `true`, `amount` is interpreted as mutez.
|
|
352
|
+
*/
|
|
198
353
|
mutez?: boolean;
|
|
199
354
|
}
|
|
200
355
|
/**
|
|
201
|
-
*
|
|
356
|
+
* RPC finalize_unstake pseudo operation params
|
|
202
357
|
*/
|
|
203
358
|
export interface FinalizeUnstakeParams {
|
|
359
|
+
/**
|
|
360
|
+
* Destination account for finalized funds.
|
|
361
|
+
*
|
|
362
|
+
* Defaults to source when omitted.
|
|
363
|
+
*/
|
|
204
364
|
to?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Operation source. Defaults to the active signer pkh.
|
|
367
|
+
*/
|
|
205
368
|
source?: string;
|
|
369
|
+
/**
|
|
370
|
+
* Transaction amount in mutez for the underlying `finalize_unstake` transaction.
|
|
371
|
+
*
|
|
372
|
+
* Protocol requires this to be `0` when present. Non-zero values are rejected with
|
|
373
|
+
* `operations.invalid_nonzero_transaction_amount`.
|
|
374
|
+
*/
|
|
206
375
|
amount?: number;
|
|
376
|
+
/**
|
|
377
|
+
* Fee in mutez.
|
|
378
|
+
*/
|
|
207
379
|
fee?: number;
|
|
380
|
+
/**
|
|
381
|
+
* Optional RPC-level parameter override.
|
|
382
|
+
*/
|
|
208
383
|
parameter?: TransactionOperationParameter;
|
|
384
|
+
/**
|
|
385
|
+
* Gas limit.
|
|
386
|
+
*/
|
|
209
387
|
gasLimit?: number;
|
|
388
|
+
/**
|
|
389
|
+
* Storage limit.
|
|
390
|
+
*/
|
|
210
391
|
storageLimit?: number;
|
|
392
|
+
/**
|
|
393
|
+
* When `true`, numeric amounts are interpreted as mutez.
|
|
394
|
+
*/
|
|
211
395
|
mutez?: boolean;
|
|
212
396
|
}
|
|
213
397
|
/**
|
|
214
|
-
*
|
|
398
|
+
* RPC register global constant operation
|
|
215
399
|
*/
|
|
216
400
|
export interface RPCRegisterGlobalConstantOperation {
|
|
217
401
|
kind: OpKind.REGISTER_GLOBAL_CONSTANT;
|
|
@@ -222,17 +406,32 @@ export interface RPCRegisterGlobalConstantOperation {
|
|
|
222
406
|
value: MichelsonV1Expression;
|
|
223
407
|
}
|
|
224
408
|
/**
|
|
225
|
-
*
|
|
409
|
+
* Parameters for the `registerGlobalConstant` method
|
|
226
410
|
*/
|
|
227
411
|
export interface RegisterGlobalConstantParams {
|
|
412
|
+
/**
|
|
413
|
+
* Micheline expression to register.
|
|
414
|
+
*/
|
|
228
415
|
value: MichelsonV1Expression;
|
|
416
|
+
/**
|
|
417
|
+
* Operation source. Defaults to the active signer pkh.
|
|
418
|
+
*/
|
|
229
419
|
source?: string;
|
|
420
|
+
/**
|
|
421
|
+
* Fee in mutez.
|
|
422
|
+
*/
|
|
230
423
|
fee?: number;
|
|
424
|
+
/**
|
|
425
|
+
* Gas limit.
|
|
426
|
+
*/
|
|
231
427
|
gasLimit?: number;
|
|
428
|
+
/**
|
|
429
|
+
* Storage limit.
|
|
430
|
+
*/
|
|
232
431
|
storageLimit?: number;
|
|
233
432
|
}
|
|
234
433
|
/**
|
|
235
|
-
*
|
|
434
|
+
* RPC transfer operation
|
|
236
435
|
*/
|
|
237
436
|
export interface RPCTransferOperation {
|
|
238
437
|
kind: OpKind.TRANSACTION;
|
|
@@ -245,7 +444,7 @@ export interface RPCTransferOperation {
|
|
|
245
444
|
parameters?: TransactionOperationParameter;
|
|
246
445
|
}
|
|
247
446
|
/**
|
|
248
|
-
*
|
|
447
|
+
* RPC activate account operation
|
|
249
448
|
*/
|
|
250
449
|
export interface RPCActivateOperation {
|
|
251
450
|
kind: OpKind.ACTIVATION;
|
|
@@ -253,22 +452,55 @@ export interface RPCActivateOperation {
|
|
|
253
452
|
secret: string;
|
|
254
453
|
}
|
|
255
454
|
/**
|
|
256
|
-
*
|
|
455
|
+
* Parameters for the transferTicket contract provider
|
|
257
456
|
*/
|
|
258
457
|
export interface TransferTicketParams {
|
|
458
|
+
/**
|
|
459
|
+
* Operation source. Defaults to the active signer pkh.
|
|
460
|
+
*/
|
|
259
461
|
source?: string;
|
|
462
|
+
/**
|
|
463
|
+
* Fee in mutez.
|
|
464
|
+
*/
|
|
260
465
|
fee?: number;
|
|
466
|
+
/**
|
|
467
|
+
* Gas limit.
|
|
468
|
+
*/
|
|
261
469
|
gasLimit?: number;
|
|
470
|
+
/**
|
|
471
|
+
* Storage limit.
|
|
472
|
+
*/
|
|
262
473
|
storageLimit?: number;
|
|
474
|
+
/**
|
|
475
|
+
* Ticket payload.
|
|
476
|
+
*/
|
|
263
477
|
ticketContents: MichelsonV1Expression;
|
|
478
|
+
/**
|
|
479
|
+
* Ticket Micheline type.
|
|
480
|
+
*/
|
|
264
481
|
ticketTy: MichelsonV1Expression;
|
|
482
|
+
/**
|
|
483
|
+
* Ticket ticketer contract address.
|
|
484
|
+
*/
|
|
265
485
|
ticketTicketer: string;
|
|
486
|
+
/**
|
|
487
|
+
* Quantity of tickets to transfer.
|
|
488
|
+
*/
|
|
266
489
|
ticketAmount: number;
|
|
490
|
+
/**
|
|
491
|
+
* Destination contract or implicit account.
|
|
492
|
+
*/
|
|
267
493
|
destination: string;
|
|
494
|
+
/**
|
|
495
|
+
* Destination entrypoint name (1-31 bytes).
|
|
496
|
+
*
|
|
497
|
+
* For implicit destinations (`tz...`), this must be `default`; otherwise protocol
|
|
498
|
+
* rejects with `michelson_v1.no_such_entrypoint`.
|
|
499
|
+
*/
|
|
268
500
|
entrypoint: string;
|
|
269
501
|
}
|
|
270
502
|
/**
|
|
271
|
-
*
|
|
503
|
+
* Rpc transfer-ticket operation
|
|
272
504
|
*/
|
|
273
505
|
export interface RPCTransferTicketOperation {
|
|
274
506
|
kind: OpKind.TRANSFER_TICKET;
|
|
@@ -284,18 +516,38 @@ export interface RPCTransferTicketOperation {
|
|
|
284
516
|
entrypoint: string;
|
|
285
517
|
}
|
|
286
518
|
/**
|
|
287
|
-
*
|
|
519
|
+
* Parameters for the increasePaidStorage method
|
|
288
520
|
*/
|
|
289
521
|
export interface IncreasePaidStorageParams {
|
|
522
|
+
/**
|
|
523
|
+
* Operation source. Defaults to the active signer pkh.
|
|
524
|
+
*/
|
|
290
525
|
source?: string;
|
|
526
|
+
/**
|
|
527
|
+
* Fee in mutez.
|
|
528
|
+
*/
|
|
291
529
|
fee?: number;
|
|
530
|
+
/**
|
|
531
|
+
* Gas limit.
|
|
532
|
+
*/
|
|
292
533
|
gasLimit?: number;
|
|
534
|
+
/**
|
|
535
|
+
* Storage limit.
|
|
536
|
+
*/
|
|
293
537
|
storageLimit?: number;
|
|
538
|
+
/**
|
|
539
|
+
* Additional storage bytes to pre-pay for the target contract.
|
|
540
|
+
*
|
|
541
|
+
* Must be a positive integer. Burn cost is `amount * cost_per_byte`.
|
|
542
|
+
*/
|
|
294
543
|
amount: number;
|
|
544
|
+
/**
|
|
545
|
+
* Destination contract address.
|
|
546
|
+
*/
|
|
295
547
|
destination: string;
|
|
296
548
|
}
|
|
297
549
|
/**
|
|
298
|
-
*
|
|
550
|
+
* RPC IncreasePaidStorage operation
|
|
299
551
|
*/
|
|
300
552
|
export interface RPCIncreasePaidStorageOperation {
|
|
301
553
|
kind: OpKind.INCREASE_PAID_STORAGE;
|
|
@@ -307,7 +559,7 @@ export interface RPCIncreasePaidStorageOperation {
|
|
|
307
559
|
destination: string;
|
|
308
560
|
}
|
|
309
561
|
/**
|
|
310
|
-
*
|
|
562
|
+
* Parameters for the DrainDelegate method
|
|
311
563
|
*/
|
|
312
564
|
export interface DrainDelegateParams {
|
|
313
565
|
consensus_key: string;
|
|
@@ -315,7 +567,7 @@ export interface DrainDelegateParams {
|
|
|
315
567
|
destination: string;
|
|
316
568
|
}
|
|
317
569
|
/**
|
|
318
|
-
*
|
|
570
|
+
* RPC DrainDelegate operation
|
|
319
571
|
*/
|
|
320
572
|
export interface RPCDrainDelegateOperation {
|
|
321
573
|
kind: OpKind.DRAIN_DELEGATE;
|
|
@@ -324,7 +576,7 @@ export interface RPCDrainDelegateOperation {
|
|
|
324
576
|
destination: string;
|
|
325
577
|
}
|
|
326
578
|
/**
|
|
327
|
-
*
|
|
579
|
+
* Ballot operation params
|
|
328
580
|
*/
|
|
329
581
|
export interface BallotParams {
|
|
330
582
|
source?: string;
|
|
@@ -349,11 +601,33 @@ export interface RPCProposalsOperation {
|
|
|
349
601
|
proposals: string[];
|
|
350
602
|
}
|
|
351
603
|
export interface UpdateConsensusKeyParams {
|
|
604
|
+
/**
|
|
605
|
+
* Operation source. Defaults to the active signer pkh.
|
|
606
|
+
*/
|
|
352
607
|
source?: string;
|
|
608
|
+
/**
|
|
609
|
+
* Fee in mutez.
|
|
610
|
+
*/
|
|
353
611
|
fee?: number;
|
|
612
|
+
/**
|
|
613
|
+
* Gas limit.
|
|
614
|
+
*/
|
|
354
615
|
gasLimit?: number;
|
|
616
|
+
/**
|
|
617
|
+
* Storage limit.
|
|
618
|
+
*/
|
|
355
619
|
storageLimit?: number;
|
|
620
|
+
/**
|
|
621
|
+
* New consensus public key.
|
|
622
|
+
*/
|
|
356
623
|
pk: string;
|
|
624
|
+
/**
|
|
625
|
+
* BLS proof-of-possession for `pk`.
|
|
626
|
+
*
|
|
627
|
+
* Required when `pk` is a BLS (`tz4`) key, otherwise validation fails with
|
|
628
|
+
* `validate.operation.missing_bls_proof`. Invalid proofs fail with
|
|
629
|
+
* `validate.operation.incorrect_bls_proof`. Must be omitted for non-BLS keys.
|
|
630
|
+
*/
|
|
357
631
|
proof?: string;
|
|
358
632
|
}
|
|
359
633
|
export interface RPCUpdateConsensusKeyOperation {
|
|
@@ -366,11 +640,34 @@ export interface RPCUpdateConsensusKeyOperation {
|
|
|
366
640
|
proof?: string;
|
|
367
641
|
}
|
|
368
642
|
export interface UpdateCompanionKeyParams {
|
|
643
|
+
/**
|
|
644
|
+
* Operation source. Defaults to the active signer pkh.
|
|
645
|
+
*/
|
|
369
646
|
source?: string;
|
|
647
|
+
/**
|
|
648
|
+
* Fee in mutez.
|
|
649
|
+
*/
|
|
370
650
|
fee?: number;
|
|
651
|
+
/**
|
|
652
|
+
* Gas limit.
|
|
653
|
+
*/
|
|
371
654
|
gasLimit?: number;
|
|
655
|
+
/**
|
|
656
|
+
* Storage limit.
|
|
657
|
+
*/
|
|
372
658
|
storageLimit?: number;
|
|
659
|
+
/**
|
|
660
|
+
* New companion public key (BLS).
|
|
661
|
+
*/
|
|
373
662
|
pk: string;
|
|
663
|
+
/**
|
|
664
|
+
* BLS proof-of-possession for the companion key.
|
|
665
|
+
*
|
|
666
|
+
* Companion keys must be `tz4`; non-BLS keys fail with
|
|
667
|
+
* `validate.operation.update_companion_key_not_tz4`.
|
|
668
|
+
* Missing proof fails with `validate.operation.missing_bls_proof` and invalid proof
|
|
669
|
+
* fails with `validate.operation.incorrect_bls_proof`.
|
|
670
|
+
*/
|
|
374
671
|
proof?: string;
|
|
375
672
|
}
|
|
376
673
|
export interface RPCUpdateCompanionKeyOperation {
|
|
@@ -383,10 +680,27 @@ export interface RPCUpdateCompanionKeyOperation {
|
|
|
383
680
|
proof?: string;
|
|
384
681
|
}
|
|
385
682
|
export interface SmartRollupAddMessagesParams {
|
|
683
|
+
/**
|
|
684
|
+
* Operation source. Defaults to the active signer pkh.
|
|
685
|
+
*/
|
|
386
686
|
source?: string;
|
|
687
|
+
/**
|
|
688
|
+
* Fee in mutez.
|
|
689
|
+
*/
|
|
387
690
|
fee?: number;
|
|
691
|
+
/**
|
|
692
|
+
* Gas limit.
|
|
693
|
+
*/
|
|
388
694
|
gasLimit?: number;
|
|
695
|
+
/**
|
|
696
|
+
* Storage limit.
|
|
697
|
+
*/
|
|
389
698
|
storageLimit?: number;
|
|
699
|
+
/**
|
|
700
|
+
* Hex-encoded message bytes posted to the global smart-rollup inbox.
|
|
701
|
+
*
|
|
702
|
+
* At least one message is required. Each message is limited to 4096 bytes after decoding.
|
|
703
|
+
*/
|
|
390
704
|
message: string[];
|
|
391
705
|
}
|
|
392
706
|
export interface RPCSmartRollupAddMessagesOperation {
|
|
@@ -398,12 +712,37 @@ export interface RPCSmartRollupAddMessagesOperation {
|
|
|
398
712
|
message: string[];
|
|
399
713
|
}
|
|
400
714
|
export interface SmartRollupOriginateParams {
|
|
715
|
+
/**
|
|
716
|
+
* Operation source. Defaults to the active signer pkh.
|
|
717
|
+
*/
|
|
401
718
|
source?: string;
|
|
719
|
+
/**
|
|
720
|
+
* Fee in mutez.
|
|
721
|
+
*/
|
|
402
722
|
fee?: number;
|
|
723
|
+
/**
|
|
724
|
+
* Gas limit.
|
|
725
|
+
*/
|
|
403
726
|
gasLimit?: number;
|
|
727
|
+
/**
|
|
728
|
+
* Storage limit.
|
|
729
|
+
*/
|
|
404
730
|
storageLimit?: number;
|
|
731
|
+
/**
|
|
732
|
+
* PVM kind for the rollup.
|
|
733
|
+
*/
|
|
405
734
|
pvmKind: PvmKind;
|
|
735
|
+
/**
|
|
736
|
+
* Hex-encoded boot sector binary for the selected PVM.
|
|
737
|
+
*
|
|
738
|
+
* Effective size is constrained by the operation data size limit.
|
|
739
|
+
*/
|
|
406
740
|
kernel: string;
|
|
741
|
+
/**
|
|
742
|
+
* Micheline type for L1-to-rollup deposited values.
|
|
743
|
+
*
|
|
744
|
+
* Must be a valid Michelson type accepted by protocol rollup parameter typing rules.
|
|
745
|
+
*/
|
|
407
746
|
parametersType: MichelsonV1Expression;
|
|
408
747
|
}
|
|
409
748
|
export interface RPCSmartRollupOriginateOperation {
|
|
@@ -417,12 +756,35 @@ export interface RPCSmartRollupOriginateOperation {
|
|
|
417
756
|
parameters_ty: MichelsonV1Expression;
|
|
418
757
|
}
|
|
419
758
|
export interface SmartRollupExecuteOutboxMessageParams {
|
|
759
|
+
/**
|
|
760
|
+
* Operation source. Defaults to the active signer pkh.
|
|
761
|
+
*/
|
|
420
762
|
source?: string;
|
|
763
|
+
/**
|
|
764
|
+
* Fee in mutez.
|
|
765
|
+
*/
|
|
421
766
|
fee?: number;
|
|
767
|
+
/**
|
|
768
|
+
* Gas limit.
|
|
769
|
+
*/
|
|
422
770
|
gasLimit?: number;
|
|
771
|
+
/**
|
|
772
|
+
* Storage limit.
|
|
773
|
+
*/
|
|
423
774
|
storageLimit?: number;
|
|
775
|
+
/**
|
|
776
|
+
* Target smart-rollup address (`sr1...`).
|
|
777
|
+
*/
|
|
424
778
|
rollup: string;
|
|
779
|
+
/**
|
|
780
|
+
* Cemented commitment hash (`src1...`) referenced by the outbox proof.
|
|
781
|
+
*
|
|
782
|
+
* Must still be present in the chain of stored cemented commitments.
|
|
783
|
+
*/
|
|
425
784
|
cementedCommitment: string;
|
|
785
|
+
/**
|
|
786
|
+
* Hex-encoded PVM outbox proof bytes produced by a rollup node.
|
|
787
|
+
*/
|
|
426
788
|
outputProof: string;
|
|
427
789
|
}
|
|
428
790
|
export interface RPCSmartRollupOutboxMessageOperation {
|
|
@@ -436,14 +798,14 @@ export interface RPCSmartRollupOutboxMessageOperation {
|
|
|
436
798
|
output_proof: string;
|
|
437
799
|
}
|
|
438
800
|
/**
|
|
439
|
-
*
|
|
801
|
+
* RPC failing noop operation
|
|
440
802
|
*/
|
|
441
803
|
export interface RPCFailingNoopOperation {
|
|
442
804
|
kind: OpKind.FAILING_NOOP;
|
|
443
805
|
arbitrary: string;
|
|
444
806
|
}
|
|
445
807
|
/**
|
|
446
|
-
*
|
|
808
|
+
* Parameters for the `failingNoop` method
|
|
447
809
|
*/
|
|
448
810
|
export interface FailingNoopParams {
|
|
449
811
|
arbitrary: string;
|
|
@@ -4,7 +4,7 @@ import { Operation } from './operations';
|
|
|
4
4
|
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, StorageConsumingOperation } from './types';
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* UpdateCompanionKeyOperation provides utility to fetch properties for Operation of kind UpdateCompanionKey
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
export declare class UpdateCompanionKeyOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|
|
@@ -4,7 +4,7 @@ import { Operation } from './operations';
|
|
|
4
4
|
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, StorageConsumingOperation } from './types';
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* UpdateConsensusKeyOperation provides utility to fetch properties for Operation of kind UpdateConsensusKey
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
export declare class UpdateConsensusKeyOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|