@taquito/taquito 17.5.2 → 19.0.0-beta-RC.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 +11 -11
- package/dist/lib/constants.js +4 -1
- package/dist/lib/contract/prepare.js +1 -2
- package/dist/lib/contract/rpc-contract-provider.js +1 -6
- package/dist/lib/operations/smart-rollup-originate-operation.js +0 -3
- package/dist/lib/operations/types.js +0 -4
- package/dist/lib/prepare/prepare-provider.js +1 -5
- package/dist/lib/read-provider/rpc-read-adapter.js +1 -2
- package/dist/lib/subscribe/filters.js +2 -0
- package/dist/lib/version.js +2 -2
- package/dist/taquito.es6.js +12 -25
- package/dist/taquito.es6.js.map +1 -1
- package/dist/taquito.min.js +1 -1
- package/dist/taquito.umd.js +12 -25
- package/dist/taquito.umd.js.map +1 -1
- package/dist/types/batch/rpc-batch-provider.d.ts +2 -2
- package/dist/types/constants.d.ts +5 -2
- package/dist/types/contract/prepare.d.ts +2 -2
- package/dist/types/operations/errors.d.ts +2 -2
- package/dist/types/operations/smart-rollup-originate-operation.d.ts +0 -1
- package/dist/types/operations/types.d.ts +4 -51
- package/dist/types/read-provider/interface.d.ts +0 -1
- package/dist/types/read-provider/rpc-read-adapter.d.ts +0 -1
- package/dist/types/signer/interface.d.ts +1 -1
- package/package.json +9 -9
- package/dist/lib/operations/tx-rollup-batch-operation.js +0 -52
- package/dist/lib/operations/tx-rollup-origination-operation.js +0 -52
- package/dist/types/operations/tx-rollup-batch-operation.d.ts +0 -21
- package/dist/types/operations/tx-rollup-origination-operation.d.ts +0 -24
package/dist/taquito.umd.js
CHANGED
|
@@ -204,6 +204,7 @@
|
|
|
204
204
|
Protocols["PtMumbaii"] = "PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc";
|
|
205
205
|
Protocols["PtMumbai2"] = "PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1";
|
|
206
206
|
Protocols["PtNairobi"] = "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf";
|
|
207
|
+
Protocols["ProxfordY"] = "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH";
|
|
207
208
|
Protocols["ProtoALpha"] = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK";
|
|
208
209
|
})(exports.Protocols || (exports.Protocols = {}));
|
|
209
210
|
const protocols = {
|
|
@@ -221,7 +222,8 @@
|
|
|
221
222
|
'015': [exports.Protocols.PtLimaPtL],
|
|
222
223
|
'016': [exports.Protocols.PtMumbai2],
|
|
223
224
|
'017': [exports.Protocols.PtNairobi],
|
|
224
|
-
'
|
|
225
|
+
'019': [exports.Protocols.ProxfordY],
|
|
226
|
+
'020': [exports.Protocols.ProtoALpha],
|
|
225
227
|
};
|
|
226
228
|
exports.ChainIds = void 0;
|
|
227
229
|
(function (ChainIds) {
|
|
@@ -240,6 +242,7 @@
|
|
|
240
242
|
ChainIds["MUMBAINET"] = "NetXQw6nWSnrJ5t";
|
|
241
243
|
ChainIds["MUMBAINET2"] = "NetXgbcrNtXD2yA";
|
|
242
244
|
ChainIds["NAIROBINET"] = "NetXyuzvDo2Ugzb";
|
|
245
|
+
ChainIds["OXFORDNET2"] = "NetXxWsskGahzQB";
|
|
243
246
|
})(exports.ChainIds || (exports.ChainIds = {}));
|
|
244
247
|
const getRevealGasLimit = (address) => Math.round((getRevealGasLimitInternal(address) * 11) / 10);
|
|
245
248
|
const getRevealGasLimitInternal = (address) => {
|
|
@@ -554,7 +557,7 @@
|
|
|
554
557
|
message,
|
|
555
558
|
};
|
|
556
559
|
});
|
|
557
|
-
const createSmartRollupOriginateOperation = ({ source, fee, gasLimit, storageLimit, pvmKind, kernel,
|
|
560
|
+
const createSmartRollupOriginateOperation = ({ source, fee, gasLimit, storageLimit, pvmKind, kernel, parametersType, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
558
561
|
return {
|
|
559
562
|
kind: rpc.OpKind.SMART_ROLLUP_ORIGINATE,
|
|
560
563
|
source,
|
|
@@ -563,7 +566,6 @@
|
|
|
563
566
|
storage_limit: storageLimit,
|
|
564
567
|
pvm_kind: pvmKind,
|
|
565
568
|
kernel,
|
|
566
|
-
origination_proof: originationProof,
|
|
567
569
|
parameters_ty: parametersType,
|
|
568
570
|
};
|
|
569
571
|
});
|
|
@@ -590,8 +592,6 @@
|
|
|
590
592
|
'reveal',
|
|
591
593
|
'register_global_constant',
|
|
592
594
|
'increase_paid_storage',
|
|
593
|
-
'tx_rollup_origination',
|
|
594
|
-
'tx_rollup_submit_batch',
|
|
595
595
|
'transfer_ticket',
|
|
596
596
|
'update_consensus_key',
|
|
597
597
|
'smart_rollup_add_messages',
|
|
@@ -605,8 +605,6 @@
|
|
|
605
605
|
'origination',
|
|
606
606
|
'register_global_constant',
|
|
607
607
|
'increase_paid_storage',
|
|
608
|
-
'tx_rollup_origination',
|
|
609
|
-
'tx_rollup_submit_batch',
|
|
610
608
|
'transfer_ticket',
|
|
611
609
|
'update_consensus_key',
|
|
612
610
|
'smart_rollup_add_messages',
|
|
@@ -3053,13 +3051,9 @@
|
|
|
3053
3051
|
var { fee, storageLimit, gasLimit } = _a, rest = __rest(_a, ["fee", "storageLimit", "gasLimit"]);
|
|
3054
3052
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3055
3053
|
const { pkh } = yield this.getKeys();
|
|
3056
|
-
const originationProof = yield this.rpc.getOriginationProof({
|
|
3057
|
-
kind: rest.pvmKind,
|
|
3058
|
-
kernel: rest.kernel,
|
|
3059
|
-
});
|
|
3060
3054
|
const protocolConstants = yield this.context.readProvider.getProtocolConstants('head');
|
|
3061
3055
|
const DEFAULT_PARAMS = yield this.getAccountLimits(pkh, protocolConstants);
|
|
3062
|
-
const op = yield createSmartRollupOriginateOperation(Object.assign(Object.assign(
|
|
3056
|
+
const op = yield createSmartRollupOriginateOperation(Object.assign(Object.assign({}, mergeLimits({ fee, storageLimit, gasLimit }, DEFAULT_PARAMS)), rest));
|
|
3063
3057
|
const operation = yield this.addRevealOperationIfNeeded(op, pkh);
|
|
3064
3058
|
const ops = this.convertIntoArray(operation);
|
|
3065
3059
|
const hash = yield this.getBlockHash();
|
|
@@ -4808,9 +4802,6 @@
|
|
|
4808
4802
|
get kernel() {
|
|
4809
4803
|
return this.params.kernel;
|
|
4810
4804
|
}
|
|
4811
|
-
get originationProof() {
|
|
4812
|
-
return this.params.origination_proof;
|
|
4813
|
-
}
|
|
4814
4805
|
get errors() {
|
|
4815
4806
|
var _a;
|
|
4816
4807
|
return (_a = this.operationResults) === null || _a === void 0 ? void 0 : _a.errors;
|
|
@@ -5288,12 +5279,7 @@
|
|
|
5288
5279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5289
5280
|
const publicKeyHash = yield this.signer.publicKeyHash();
|
|
5290
5281
|
const estimate = yield this.estimate(params, this.estimator.smartRollupOriginate.bind(this.estimator));
|
|
5291
|
-
const
|
|
5292
|
-
kind: params.pvmKind,
|
|
5293
|
-
kernel: params.kernel,
|
|
5294
|
-
});
|
|
5295
|
-
const completeParams = Object.assign(Object.assign({}, params), { originationProof });
|
|
5296
|
-
const prepared = yield this.prepare.smartRollupOriginate(Object.assign(Object.assign({}, completeParams), estimate));
|
|
5282
|
+
const prepared = yield this.prepare.smartRollupOriginate(Object.assign(Object.assign({}, params), estimate));
|
|
5297
5283
|
const content = prepared.opOb.contents.find((op) => op.kind === rpc.OpKind.SMART_ROLLUP_ORIGINATE);
|
|
5298
5284
|
const opBytes = yield this.forge(prepared);
|
|
5299
5285
|
const { hash, context, forgedBytes, opResponse } = yield this.signAndInject(opBytes);
|
|
@@ -5582,7 +5568,7 @@
|
|
|
5582
5568
|
*/
|
|
5583
5569
|
getProtocolConstants(block) {
|
|
5584
5570
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5585
|
-
const { time_between_blocks, minimal_block_delay, hard_gas_limit_per_operation, hard_gas_limit_per_block, hard_storage_limit_per_operation, cost_per_byte,
|
|
5571
|
+
const { time_between_blocks, minimal_block_delay, hard_gas_limit_per_operation, hard_gas_limit_per_block, hard_storage_limit_per_operation, cost_per_byte, smart_rollup_origination_size, } = yield this.rpc.getConstants({ block: String(block) });
|
|
5586
5572
|
return {
|
|
5587
5573
|
time_between_blocks,
|
|
5588
5574
|
minimal_block_delay,
|
|
@@ -5590,7 +5576,6 @@
|
|
|
5590
5576
|
hard_gas_limit_per_block,
|
|
5591
5577
|
hard_storage_limit_per_operation,
|
|
5592
5578
|
cost_per_byte,
|
|
5593
|
-
tx_rollup_origination_size,
|
|
5594
5579
|
smart_rollup_origination_size,
|
|
5595
5580
|
};
|
|
5596
5581
|
});
|
|
@@ -5764,6 +5749,8 @@
|
|
|
5764
5749
|
const opHashFilter = (op, filter) => op.hash === filter.opHash;
|
|
5765
5750
|
const sourceFilter = (x, filter) => {
|
|
5766
5751
|
switch (x.kind) {
|
|
5752
|
+
case 'attestation':
|
|
5753
|
+
return 'metadata' in x && x.metadata.delegate === filter.source;
|
|
5767
5754
|
case 'endorsement':
|
|
5768
5755
|
return 'metadata' in x && x.metadata.delegate === filter.source;
|
|
5769
5756
|
case 'activate_account':
|
|
@@ -6196,8 +6183,8 @@
|
|
|
6196
6183
|
|
|
6197
6184
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
6198
6185
|
const VERSION = {
|
|
6199
|
-
"commitHash": "
|
|
6200
|
-
"version": "
|
|
6186
|
+
"commitHash": "bd52c12d05e329e4cf3a81fe55c4778a47879ccd",
|
|
6187
|
+
"version": "19.0.0-beta-RC.0"
|
|
6201
6188
|
};
|
|
6202
6189
|
|
|
6203
6190
|
/**
|
package/dist/taquito.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taquito.umd.js","sources":[],"sourcesCont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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -4,7 +4,7 @@ import { ContractMethod } from '../contract/contract-methods/contract-method-fla
|
|
|
4
4
|
import { SendParams } from '../contract/contract-methods/contract-method-interface';
|
|
5
5
|
import { ContractProvider } from '../contract/interface';
|
|
6
6
|
import { BatchOperation } from '../operations/batch-operation';
|
|
7
|
-
import { ActivationParams, DelegateParams, OriginateParams, TransferParams, ParamsWithKind, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, SmartRollupAddMessagesParams,
|
|
7
|
+
import { ActivationParams, DelegateParams, OriginateParams, TransferParams, ParamsWithKind, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams } from '../operations/types';
|
|
8
8
|
import { OpKind } from '@taquito/rpc';
|
|
9
9
|
import { ContractMethodObject } from '../contract/contract-methods/contract-method-object-param';
|
|
10
10
|
import { EstimationProvider } from '../estimate/estimate-provider-interface';
|
|
@@ -87,7 +87,7 @@ export declare class OperationBatch extends Provider {
|
|
|
87
87
|
*
|
|
88
88
|
* @param params Smart Rollup Originate operation parameter
|
|
89
89
|
*/
|
|
90
|
-
withSmartRollupOriginate(params:
|
|
90
|
+
withSmartRollupOriginate(params: SmartRollupOriginateParams): this;
|
|
91
91
|
getRPCOp(param: ParamsWithKind): Promise<import("../operations/types").RPCTransferOperation | import("../operations/types").RPCOriginationOperation | import("../operations/types").RPCDelegateOperation | import("../operations/types").RPCRegisterGlobalConstantOperation | import("../operations/types").RPCIncreasePaidStorageOperation | import("../operations/types").RPCTransferTicketOperation | import("../operations/types").RPCSmartRollupAddMessagesOperation | import("../operations/types").RPCSmartRollupOriginateOperation>;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
@@ -38,6 +38,7 @@ export declare enum Protocols {
|
|
|
38
38
|
PtMumbaii = "PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",
|
|
39
39
|
PtMumbai2 = "PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",
|
|
40
40
|
PtNairobi = "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",
|
|
41
|
+
ProxfordY = "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH",
|
|
41
42
|
ProtoALpha = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"
|
|
42
43
|
}
|
|
43
44
|
export declare const protocols: {
|
|
@@ -55,7 +56,8 @@ export declare const protocols: {
|
|
|
55
56
|
'015': Protocols[];
|
|
56
57
|
'016': Protocols[];
|
|
57
58
|
'017': Protocols[];
|
|
58
|
-
'
|
|
59
|
+
'019': Protocols[];
|
|
60
|
+
'020': Protocols[];
|
|
59
61
|
};
|
|
60
62
|
export declare enum ChainIds {
|
|
61
63
|
MAINNET = "NetXdQprcVkpaWU",
|
|
@@ -72,6 +74,7 @@ export declare enum ChainIds {
|
|
|
72
74
|
LIMANET = "NetXizpkH94bocH",
|
|
73
75
|
MUMBAINET = "NetXQw6nWSnrJ5t",
|
|
74
76
|
MUMBAINET2 = "NetXgbcrNtXD2yA",
|
|
75
|
-
NAIROBINET = "NetXyuzvDo2Ugzb"
|
|
77
|
+
NAIROBINET = "NetXyuzvDo2Ugzb",
|
|
78
|
+
OXFORDNET2 = "NetXxWsskGahzQB"
|
|
76
79
|
}
|
|
77
80
|
export declare const getRevealGasLimit: (address: string) => number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OriginateParams, RPCOriginationOperation, TransferParams, RPCTransferOperation, DelegateParams, RPCDelegateOperation, RegisterDelegateParams, RPCRevealOperation, RevealParams, RegisterGlobalConstantParams, RPCRegisterGlobalConstantOperation, TransferTicketParams, RPCTransferTicketOperation, IncreasePaidStorageParams, RPCIncreasePaidStorageOperation, DrainDelegateParams, RPCDrainDelegateOperation, BallotParams, RPCBallotOperation, ProposalsParams, RPCProposalsOperation, UpdateConsensusKeyParams, RPCUpdateConsensusKeyOperation, SmartRollupAddMessagesParams, RPCSmartRollupAddMessagesOperation, RPCSmartRollupOriginateOperation,
|
|
1
|
+
import { OriginateParams, RPCOriginationOperation, TransferParams, RPCTransferOperation, DelegateParams, RPCDelegateOperation, RegisterDelegateParams, RPCRevealOperation, RevealParams, RegisterGlobalConstantParams, RPCRegisterGlobalConstantOperation, TransferTicketParams, RPCTransferTicketOperation, IncreasePaidStorageParams, RPCIncreasePaidStorageOperation, DrainDelegateParams, RPCDrainDelegateOperation, BallotParams, RPCBallotOperation, ProposalsParams, RPCProposalsOperation, UpdateConsensusKeyParams, RPCUpdateConsensusKeyOperation, SmartRollupAddMessagesParams, RPCSmartRollupAddMessagesOperation, RPCSmartRollupOriginateOperation, ActivationParams, RPCActivateOperation, SmartRollupOriginateParams } from '../operations/types';
|
|
2
2
|
export declare const createActivationOperation: ({ pkh, secret }: ActivationParams) => Promise<RPCActivateOperation>;
|
|
3
3
|
export declare const createOriginationOperation: ({ code, init, balance, delegate, storage, fee, gasLimit, storageLimit, mutez, }: OriginateParams) => Promise<RPCOriginationOperation>;
|
|
4
4
|
export declare const createTransferOperation: ({ to, amount, parameter, fee, gasLimit, storageLimit, mutez, }: TransferParams) => Promise<RPCTransferOperation>;
|
|
@@ -13,4 +13,4 @@ export declare const createBallotOperation: ({ source, proposal, ballot }: Ballo
|
|
|
13
13
|
export declare const createProposalsOperation: ({ source, proposals }: ProposalsParams) => Promise<RPCProposalsOperation>;
|
|
14
14
|
export declare const createUpdateConsensusKeyOperation: ({ source, fee, gasLimit, storageLimit, pk, }: UpdateConsensusKeyParams) => Promise<RPCUpdateConsensusKeyOperation>;
|
|
15
15
|
export declare const createSmartRollupAddMessagesOperation: ({ source, fee, gasLimit, storageLimit, message, }: SmartRollupAddMessagesParams) => Promise<RPCSmartRollupAddMessagesOperation>;
|
|
16
|
-
export declare const createSmartRollupOriginateOperation: ({ source, fee, gasLimit, storageLimit, pvmKind, kernel,
|
|
16
|
+
export declare const createSmartRollupOriginateOperation: ({ source, fee, gasLimit, storageLimit, pvmKind, kernel, parametersType, }: SmartRollupOriginateParams) => Promise<RPCSmartRollupOriginateOperation>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ParameterValidationError, RpcError, TaquitoError } from '@taquito/core';
|
|
2
|
-
import { MichelsonV1ExpressionBase, OperationResultDelegation, OperationResultOrigination, OperationResultRegisterGlobalConstant, OperationResultReveal, OperationResultSmartRollupOriginate, OperationResultTransaction, OperationResultTransferTicket,
|
|
2
|
+
import { MichelsonV1ExpressionBase, OperationResultDelegation, OperationResultOrigination, OperationResultRegisterGlobalConstant, OperationResultReveal, OperationResultSmartRollupOriginate, OperationResultTransaction, OperationResultTransferTicket, PreapplyResponse, TezosGenericOperationError } from '@taquito/rpc';
|
|
3
3
|
export interface TezosOperationErrorWithMessage extends TezosGenericOperationError {
|
|
4
4
|
with: MichelsonV1ExpressionBase;
|
|
5
5
|
}
|
|
@@ -22,7 +22,7 @@ export declare class TezosPreapplyFailureError extends Error {
|
|
|
22
22
|
readonly result: any;
|
|
23
23
|
constructor(result: any);
|
|
24
24
|
}
|
|
25
|
-
export type MergedOperationResult = OperationResultTransaction & OperationResultOrigination & OperationResultDelegation & OperationResultRegisterGlobalConstant &
|
|
25
|
+
export type MergedOperationResult = OperationResultTransaction & OperationResultOrigination & OperationResultDelegation & OperationResultRegisterGlobalConstant & OperationResultTransferTicket & Partial<OperationResultSmartRollupOriginate> & OperationResultReveal & {
|
|
26
26
|
fee?: string;
|
|
27
27
|
};
|
|
28
28
|
export declare const flattenOperationResult: (response: PreapplyResponse | PreapplyResponse[]) => MergedOperationResult[];
|
|
@@ -19,6 +19,5 @@ export declare class SmartRollupOriginateOperation extends Operation implements
|
|
|
19
19
|
get consumedMilliGas(): string | undefined;
|
|
20
20
|
get pvmKind(): import("@taquito/rpc").PvmKind;
|
|
21
21
|
get kernel(): string;
|
|
22
|
-
get originationProof(): string;
|
|
23
22
|
get errors(): import("@taquito/rpc").TezosGenericOperationError[] | undefined;
|
|
24
23
|
}
|
|
@@ -4,7 +4,7 @@ export { OpKind } from '@taquito/rpc';
|
|
|
4
4
|
export type withKind<T, K extends OpKind> = T & {
|
|
5
5
|
kind: K;
|
|
6
6
|
};
|
|
7
|
-
export type ParamsWithKind = withKind<OriginateParams, OpKind.ORIGINATION> | withKind<DelegateParams, OpKind.DELEGATION> | withKind<TransferParams, OpKind.TRANSACTION> | withKind<ActivationParams, OpKind.ACTIVATION> | withKind<RegisterGlobalConstantParams, OpKind.REGISTER_GLOBAL_CONSTANT> | withKind<IncreasePaidStorageParams, OpKind.INCREASE_PAID_STORAGE> | withKind<
|
|
7
|
+
export type ParamsWithKind = withKind<OriginateParams, OpKind.ORIGINATION> | withKind<DelegateParams, OpKind.DELEGATION> | withKind<TransferParams, OpKind.TRANSACTION> | withKind<ActivationParams, OpKind.ACTIVATION> | withKind<RegisterGlobalConstantParams, OpKind.REGISTER_GLOBAL_CONSTANT> | withKind<IncreasePaidStorageParams, OpKind.INCREASE_PAID_STORAGE> | withKind<TransferTicketParams, OpKind.TRANSFER_TICKET> | withKind<UpdateConsensusKeyParams, OpKind.UPDATE_CONSENSUS_KEY> | withKind<SmartRollupAddMessagesParams, OpKind.SMART_ROLLUP_ADD_MESSAGES> | withKind<FailingNoopParams, OpKind.FAILING_NOOP> | withKind<SmartRollupOriginateParams, OpKind.SMART_ROLLUP_ORIGINATE>;
|
|
8
8
|
export type ParamsWithKindExtended = ParamsWithKind | withKind<RevealParams, OpKind.REVEAL>;
|
|
9
9
|
export declare const attachKind: <T, K extends OpKind>(op: T, kind: K) => withKind<T, K>;
|
|
10
10
|
export declare const findWithKind: <T extends {
|
|
@@ -15,11 +15,11 @@ export declare const findWithKind: <T extends {
|
|
|
15
15
|
export declare const isKind: <T extends {
|
|
16
16
|
kind: OpKind;
|
|
17
17
|
}, K extends OpKind>(op: T, kind: K) => op is withKind<T, K>;
|
|
18
|
-
export type RPCOpWithFee = RPCTransferOperation | RPCOriginationOperation | RPCDelegateOperation | RPCRevealOperation | RPCRegisterGlobalConstantOperation | RPCIncreasePaidStorageOperation |
|
|
19
|
-
export type RPCOpWithSource = RPCTransferOperation | RPCOriginationOperation | RPCDelegateOperation | RPCRevealOperation | RPCRegisterGlobalConstantOperation | RPCIncreasePaidStorageOperation |
|
|
18
|
+
export type RPCOpWithFee = RPCTransferOperation | RPCOriginationOperation | RPCDelegateOperation | RPCRevealOperation | RPCRegisterGlobalConstantOperation | RPCIncreasePaidStorageOperation | RPCTransferTicketOperation | RPCUpdateConsensusKeyOperation | RPCSmartRollupAddMessagesOperation | RPCSmartRollupOriginateOperation;
|
|
19
|
+
export type RPCOpWithSource = RPCTransferOperation | RPCOriginationOperation | RPCDelegateOperation | RPCRevealOperation | RPCRegisterGlobalConstantOperation | RPCIncreasePaidStorageOperation | RPCTransferTicketOperation | RPCUpdateConsensusKeyOperation | RPCSmartRollupAddMessagesOperation | RPCSmartRollupOriginateOperation;
|
|
20
20
|
export declare const isOpWithFee: <T extends {
|
|
21
21
|
kind: OpKind;
|
|
22
|
-
}>(op: T) => op is withKind<T, OpKind.ORIGINATION | OpKind.DELEGATION | OpKind.REVEAL | OpKind.TRANSACTION | OpKind.
|
|
22
|
+
}>(op: T) => op is withKind<T, OpKind.ORIGINATION | OpKind.DELEGATION | OpKind.REVEAL | OpKind.TRANSACTION | OpKind.ATTESTATION | OpKind.ENDORSEMENT | OpKind.PREATTESTATION | OpKind.PREENDORSEMENT | OpKind.SET_DEPOSITS_LIMIT | OpKind.DOUBLE_PREATTESTATION_EVIDENCE | OpKind.DOUBLE_PREENDORSEMENT_EVIDENCE | OpKind.ATTESTATION_WITH_SLOT | OpKind.ENDORSEMENT_WITH_SLOT | OpKind.SEED_NONCE_REVELATION | OpKind.DOUBLE_ATTESTATION_EVIDENCE | OpKind.DOUBLE_ENDORSEMENT_EVIDENCE | OpKind.DOUBLE_BAKING_EVIDENCE | OpKind.PROPOSALS | OpKind.BALLOT | OpKind.REGISTER_GLOBAL_CONSTANT | OpKind.TRANSFER_TICKET | OpKind.INCREASE_PAID_STORAGE | OpKind.UPDATE_CONSENSUS_KEY | OpKind.DRAIN_DELEGATE | OpKind.VDF_REVELATION | OpKind.EVENT | OpKind.TICKET_UPDATES | OpKind.SMART_ROLLUP_ORIGINATE | OpKind.SMART_ROLLUP_ADD_MESSAGES | OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE | OpKind.SMART_ROLLUP_PUBLISH | OpKind.SMART_ROLLUP_CEMENT | OpKind.SMART_ROLLUP_RECOVER_BOND | OpKind.SMART_ROLLUP_REFUTE | OpKind.SMART_ROLLUP_TIMEOUT>;
|
|
23
23
|
export declare const isOpRequireReveal: <T extends {
|
|
24
24
|
kind: OpKind;
|
|
25
25
|
}>(op: T) => op is withKind<T, OpKind.ORIGINATION | OpKind.DELEGATION | OpKind.TRANSACTION | OpKind.EVENT>;
|
|
@@ -207,49 +207,6 @@ export interface RPCActivateOperation {
|
|
|
207
207
|
pkh: string;
|
|
208
208
|
secret: string;
|
|
209
209
|
}
|
|
210
|
-
/**
|
|
211
|
-
* @description RPC tx rollup origination operation
|
|
212
|
-
*/
|
|
213
|
-
export interface RPCTxRollupOriginationOperation {
|
|
214
|
-
kind: OpKind.TX_ROLLUP_ORIGINATION;
|
|
215
|
-
fee: number;
|
|
216
|
-
gas_limit: number;
|
|
217
|
-
storage_limit: number;
|
|
218
|
-
source: string;
|
|
219
|
-
tx_rollup_origination: object;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* @description Parameters for the `txRollupOriginate` method
|
|
223
|
-
*/
|
|
224
|
-
export interface TxRollupOriginateParams {
|
|
225
|
-
source?: string;
|
|
226
|
-
fee?: number;
|
|
227
|
-
gasLimit?: number;
|
|
228
|
-
storageLimit?: number;
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* @description Parameters for the `txRollupSubmitBatch` method
|
|
232
|
-
*/
|
|
233
|
-
export interface TxRollupBatchParams {
|
|
234
|
-
source?: string;
|
|
235
|
-
fee?: number;
|
|
236
|
-
gasLimit?: number;
|
|
237
|
-
storageLimit?: number;
|
|
238
|
-
rollup: string;
|
|
239
|
-
content: string;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* @description RPC tx rollup batch operation
|
|
243
|
-
*/
|
|
244
|
-
export interface RPCTxRollupBatchOperation {
|
|
245
|
-
kind: OpKind.TX_ROLLUP_SUBMIT_BATCH;
|
|
246
|
-
fee: number;
|
|
247
|
-
gas_limit: number;
|
|
248
|
-
storage_limit: number;
|
|
249
|
-
source: string;
|
|
250
|
-
rollup: string;
|
|
251
|
-
content: string;
|
|
252
|
-
}
|
|
253
210
|
/**
|
|
254
211
|
* @description Parameters for the transferTicket contract provider
|
|
255
212
|
*/
|
|
@@ -385,9 +342,6 @@ export interface SmartRollupOriginateParams {
|
|
|
385
342
|
kernel: string;
|
|
386
343
|
parametersType: MichelsonV1Expression;
|
|
387
344
|
}
|
|
388
|
-
export interface SmartRollupOriginateParamsWithProof extends SmartRollupOriginateParams {
|
|
389
|
-
originationProof: string;
|
|
390
|
-
}
|
|
391
345
|
export interface RPCSmartRollupOriginateOperation {
|
|
392
346
|
kind: OpKind.SMART_ROLLUP_ORIGINATE;
|
|
393
347
|
source: string;
|
|
@@ -396,7 +350,6 @@ export interface RPCSmartRollupOriginateOperation {
|
|
|
396
350
|
storage_limit: number;
|
|
397
351
|
pvm_kind: PvmKind;
|
|
398
352
|
kernel: string;
|
|
399
|
-
origination_proof: string;
|
|
400
353
|
parameters_ty: MichelsonV1Expression;
|
|
401
354
|
}
|
|
402
355
|
/**
|
|
@@ -37,7 +37,6 @@ export declare class RpcReadAdapter implements TzReadProvider {
|
|
|
37
37
|
hard_gas_limit_per_block: BigNumber;
|
|
38
38
|
hard_storage_limit_per_operation: BigNumber;
|
|
39
39
|
cost_per_byte: BigNumber;
|
|
40
|
-
tx_rollup_origination_size?: number;
|
|
41
40
|
smart_rollup_origination_size: number;
|
|
42
41
|
}>;
|
|
43
42
|
/**
|
|
@@ -5,7 +5,7 @@ export interface Signer {
|
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
7
|
* @param op Operation to sign
|
|
8
|
-
* @param magicByte Magic bytes 11 for block, 12 for preendorsement, 13 for endorsements, 3 for generic, 5 for the PACK format of michelson
|
|
8
|
+
* @param magicByte Magic bytes 11 for block, 12 for preattestation/preendorsement, 13 for attestation/endorsements, 3 for generic, 5 for the PACK format of michelson
|
|
9
9
|
*/
|
|
10
10
|
sign(op: string, magicByte?: Uint8Array): Promise<{
|
|
11
11
|
bytes: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/taquito",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.0.0-beta-RC.0",
|
|
4
4
|
"description": "High level functionality that builds upon the other packages in the Tezos Typescript Library Suite.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tezos",
|
|
@@ -77,13 +77,13 @@
|
|
|
77
77
|
]
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@taquito/core": "^
|
|
81
|
-
"@taquito/http-utils": "^
|
|
82
|
-
"@taquito/local-forging": "^
|
|
83
|
-
"@taquito/michel-codec": "^
|
|
84
|
-
"@taquito/michelson-encoder": "^
|
|
85
|
-
"@taquito/rpc": "^
|
|
86
|
-
"@taquito/utils": "^
|
|
80
|
+
"@taquito/core": "^19.0.0-beta-RC.0",
|
|
81
|
+
"@taquito/http-utils": "^19.0.0-beta-RC.0",
|
|
82
|
+
"@taquito/local-forging": "^19.0.0-beta-RC.0",
|
|
83
|
+
"@taquito/michel-codec": "^19.0.0-beta-RC.0",
|
|
84
|
+
"@taquito/michelson-encoder": "^19.0.0-beta-RC.0",
|
|
85
|
+
"@taquito/rpc": "^19.0.0-beta-RC.0",
|
|
86
|
+
"@taquito/utils": "^19.0.0-beta-RC.0",
|
|
87
87
|
"bignumber.js": "^9.1.2",
|
|
88
88
|
"rxjs": "^7.8.1"
|
|
89
89
|
},
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"webpack-cli": "^5.1.4",
|
|
126
126
|
"webpack-subresource-integrity": "^5.1.0"
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "959e385ba06d8932866503bb538252a3912acbc9"
|
|
129
129
|
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TxRollupBatchOperation = void 0;
|
|
4
|
-
const bignumber_js_1 = require("bignumber.js");
|
|
5
|
-
const operations_1 = require("./operations");
|
|
6
|
-
/**
|
|
7
|
-
* @description TxRollupBatchOperation provides utility functions to fetch a newly issued operation of kind tx_rollup_submit_batch
|
|
8
|
-
*/
|
|
9
|
-
class TxRollupBatchOperation extends operations_1.Operation {
|
|
10
|
-
constructor(hash, params, source, raw, results, context) {
|
|
11
|
-
super(hash, raw, results, context);
|
|
12
|
-
this.params = params;
|
|
13
|
-
this.source = source;
|
|
14
|
-
}
|
|
15
|
-
get operationResults() {
|
|
16
|
-
const txrollupBatchOp = Array.isArray(this.results) &&
|
|
17
|
-
this.results.find((op) => op.kind === 'tx_rollup_submit_batch');
|
|
18
|
-
const result = txrollupBatchOp && txrollupBatchOp.metadata && txrollupBatchOp.metadata.operation_result;
|
|
19
|
-
return result ? result : undefined;
|
|
20
|
-
}
|
|
21
|
-
get status() {
|
|
22
|
-
var _a, _b;
|
|
23
|
-
return (_b = (_a = this.operationResults) === null || _a === void 0 ? void 0 : _a.status) !== null && _b !== void 0 ? _b : 'unknown';
|
|
24
|
-
}
|
|
25
|
-
get content() {
|
|
26
|
-
return this.params.content;
|
|
27
|
-
}
|
|
28
|
-
get fee() {
|
|
29
|
-
return this.params.fee;
|
|
30
|
-
}
|
|
31
|
-
get gasLimit() {
|
|
32
|
-
return this.params.gas_limit;
|
|
33
|
-
}
|
|
34
|
-
get storageLimit() {
|
|
35
|
-
return this.params.storage_limit;
|
|
36
|
-
}
|
|
37
|
-
get errors() {
|
|
38
|
-
var _a;
|
|
39
|
-
return (_a = this.operationResults) === null || _a === void 0 ? void 0 : _a.errors;
|
|
40
|
-
}
|
|
41
|
-
get consumedGas() {
|
|
42
|
-
bignumber_js_1.BigNumber.config({ DECIMAL_PLACES: 0, ROUNDING_MODE: bignumber_js_1.BigNumber.ROUND_UP });
|
|
43
|
-
return this.consumedMilliGas
|
|
44
|
-
? new bignumber_js_1.BigNumber(this.consumedMilliGas).dividedBy(1000).toString()
|
|
45
|
-
: undefined;
|
|
46
|
-
}
|
|
47
|
-
get consumedMilliGas() {
|
|
48
|
-
var _a;
|
|
49
|
-
return (_a = this.operationResults) === null || _a === void 0 ? void 0 : _a.consumed_milligas;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.TxRollupBatchOperation = TxRollupBatchOperation;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TxRollupOriginationOperation = void 0;
|
|
4
|
-
const bignumber_js_1 = require("bignumber.js");
|
|
5
|
-
const operations_1 = require("./operations");
|
|
6
|
-
/**
|
|
7
|
-
* @description TxRollupOriginationOperation provides utility functions to fetch a newly issued operation of kind tx_rollup_origination
|
|
8
|
-
*/
|
|
9
|
-
class TxRollupOriginationOperation extends operations_1.Operation {
|
|
10
|
-
constructor(hash, params, source, raw, results, context) {
|
|
11
|
-
super(hash, raw, results, context);
|
|
12
|
-
this.params = params;
|
|
13
|
-
this.source = source;
|
|
14
|
-
this.originatedRollup = this.operationResults && this.operationResults.originated_rollup;
|
|
15
|
-
}
|
|
16
|
-
get operationResults() {
|
|
17
|
-
const rollupOriginationOp = Array.isArray(this.results) &&
|
|
18
|
-
this.results.find((op) => op.kind === 'tx_rollup_origination');
|
|
19
|
-
const result = rollupOriginationOp &&
|
|
20
|
-
rollupOriginationOp.metadata &&
|
|
21
|
-
rollupOriginationOp.metadata.operation_result;
|
|
22
|
-
return result ? result : undefined;
|
|
23
|
-
}
|
|
24
|
-
get status() {
|
|
25
|
-
var _a, _b;
|
|
26
|
-
return (_b = (_a = this.operationResults) === null || _a === void 0 ? void 0 : _a.status) !== null && _b !== void 0 ? _b : 'unknown';
|
|
27
|
-
}
|
|
28
|
-
get fee() {
|
|
29
|
-
return this.params.fee;
|
|
30
|
-
}
|
|
31
|
-
get gasLimit() {
|
|
32
|
-
return this.params.gas_limit;
|
|
33
|
-
}
|
|
34
|
-
get storageLimit() {
|
|
35
|
-
return this.params.storage_limit;
|
|
36
|
-
}
|
|
37
|
-
get errors() {
|
|
38
|
-
var _a;
|
|
39
|
-
return (_a = this.operationResults) === null || _a === void 0 ? void 0 : _a.errors;
|
|
40
|
-
}
|
|
41
|
-
get consumedGas() {
|
|
42
|
-
bignumber_js_1.BigNumber.config({ DECIMAL_PLACES: 0, ROUNDING_MODE: bignumber_js_1.BigNumber.ROUND_UP });
|
|
43
|
-
return this.consumedMilliGas
|
|
44
|
-
? new bignumber_js_1.BigNumber(this.consumedMilliGas).dividedBy(1000).toString()
|
|
45
|
-
: undefined;
|
|
46
|
-
}
|
|
47
|
-
get consumedMilliGas() {
|
|
48
|
-
var _a;
|
|
49
|
-
return (_a = this.operationResults) === null || _a === void 0 ? void 0 : _a.consumed_milligas;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.TxRollupOriginationOperation = TxRollupOriginationOperation;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OperationContentsAndResult } from '@taquito/rpc';
|
|
2
|
-
import { Context } from '../context';
|
|
3
|
-
import { Operation } from './operations';
|
|
4
|
-
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, RPCTxRollupBatchOperation, StorageConsumingOperation } from './types';
|
|
5
|
-
/**
|
|
6
|
-
* @description TxRollupBatchOperation provides utility functions to fetch a newly issued operation of kind tx_rollup_submit_batch
|
|
7
|
-
*/
|
|
8
|
-
export declare class TxRollupBatchOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|
|
9
|
-
private readonly params;
|
|
10
|
-
readonly source: string;
|
|
11
|
-
constructor(hash: string, params: RPCTxRollupBatchOperation, source: string, raw: ForgedBytes, results: OperationContentsAndResult[], context: Context);
|
|
12
|
-
get operationResults(): import("@taquito/rpc").OperationResultTxRollupSubmitBatch | undefined;
|
|
13
|
-
get status(): import("@taquito/rpc").OperationResultStatusEnum | "unknown";
|
|
14
|
-
get content(): string;
|
|
15
|
-
get fee(): number;
|
|
16
|
-
get gasLimit(): number;
|
|
17
|
-
get storageLimit(): number;
|
|
18
|
-
get errors(): import("@taquito/rpc").TezosGenericOperationError[] | undefined;
|
|
19
|
-
get consumedGas(): string | undefined;
|
|
20
|
-
get consumedMilliGas(): string | undefined;
|
|
21
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { OperationContentsAndResult } from '@taquito/rpc';
|
|
2
|
-
import { Context } from '../context';
|
|
3
|
-
import { Operation } from './operations';
|
|
4
|
-
import { FeeConsumingOperation, ForgedBytes, GasConsumingOperation, RPCTxRollupOriginationOperation, StorageConsumingOperation } from './types';
|
|
5
|
-
/**
|
|
6
|
-
* @description TxRollupOriginationOperation provides utility functions to fetch a newly issued operation of kind tx_rollup_origination
|
|
7
|
-
*/
|
|
8
|
-
export declare class TxRollupOriginationOperation extends Operation implements GasConsumingOperation, StorageConsumingOperation, FeeConsumingOperation {
|
|
9
|
-
private readonly params;
|
|
10
|
-
readonly source: string;
|
|
11
|
-
/**
|
|
12
|
-
* @description Address the newly originate rollup
|
|
13
|
-
*/
|
|
14
|
-
readonly originatedRollup?: string;
|
|
15
|
-
constructor(hash: string, params: RPCTxRollupOriginationOperation, source: string, raw: ForgedBytes, results: OperationContentsAndResult[], context: Context);
|
|
16
|
-
get operationResults(): import("@taquito/rpc").OperationResultTxRollupOrigination | undefined;
|
|
17
|
-
get status(): import("@taquito/rpc").OperationResultStatusEnum | "unknown";
|
|
18
|
-
get fee(): number;
|
|
19
|
-
get gasLimit(): number;
|
|
20
|
-
get storageLimit(): number;
|
|
21
|
-
get errors(): import("@taquito/rpc").TezosGenericOperationError[] | undefined;
|
|
22
|
-
get consumedGas(): string | undefined;
|
|
23
|
-
get consumedMilliGas(): string | undefined;
|
|
24
|
-
}
|