@taquito/local-forging 20.0.0-beta.0 → 20.0.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/dist/lib/codec.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.burnLimitDecoder = exports.burnLimitEncoder = exports.entrypointNameDecoder = exports.entrypointNameEncoder = exports.blockPayloadHashDecoder = exports.blockPayloadHashEncoder = exports.valueParameterDecoder = exports.valueParameterEncoder = exports.parametersEncoder = exports.entrypointEncoder = exports.parametersDecoder = exports.entrypointDecoder = exports.zarithDecoder = exports.zarithEncoder = exports.smartRollupCommitmentHashDecoder = exports.smartContractAddressDecoder = exports.smartRollupAddressDecoder = exports.addressDecoder = exports.smartRollupCommitmentHashEncoder = exports.publicKeyDecoder = exports.smartContractAddressEncoder = exports.smartRollupAddressEncoder = exports.addressEncoder = exports.publicKeyEncoder = exports.publicKeyHashesEncoder = exports.publicKeyHashEncoder = exports.delegateDecoder = exports.boolDecoder = exports.int16Decoder = exports.int16Encoder = exports.int32Decoder = exports.int32Encoder = exports.delegateEncoder = exports.pvmKindDecoder = exports.pvmKindEncoder = exports.ballotDecoder = exports.ballotEncoder = exports.proposalsEncoder = exports.proposalsDecoder = exports.proposalDecoder = exports.proposalEncoder = exports.boolEncoder = exports.tz1Encoder = exports.branchEncoder = exports.publicKeyHashesDecoder = exports.publicKeyHashDecoder = exports.branchDecoder = exports.tz1Decoder = exports.prefixDecoder = exports.prefixEncoder = void 0;
4
- exports.smartRollupMessageDecoder = exports.smartRollupMessageEncoder = exports.paddedBytesDecoder = exports.paddedBytesEncoder = exports.depositsLimitDecoder = exports.depositsLimitEncoder = void 0;
4
+ exports.slotHeaderDecoder = exports.slotHeaderEncoder = exports.dalCommitmentDecoder = exports.dalCommitmentEncoder = exports.smartRollupMessageDecoder = exports.smartRollupMessageEncoder = exports.paddedBytesDecoder = exports.paddedBytesEncoder = exports.depositsLimitDecoder = exports.depositsLimitEncoder = void 0;
5
5
  const utils_1 = require("@taquito/utils");
6
6
  const errors_1 = require("./errors");
7
7
  const bignumber_js_1 = require("bignumber.js");
@@ -414,7 +414,7 @@ const parametersEncoder = (val) => {
414
414
  }
415
415
  const encodedEntrypoint = (0, exports.entrypointEncoder)(val.entrypoint);
416
416
  const parameters = (0, codec_1.valueEncoder)(val.value);
417
- const length = (parameters.length / 2).toString(16).padStart(8, '0');
417
+ const length = (0, utils_2.pad)(parameters.length / 2);
418
418
  return `ff${encodedEntrypoint}${length}${parameters}`;
419
419
  };
420
420
  exports.parametersEncoder = parametersEncoder;
@@ -484,3 +484,32 @@ const smartRollupMessageDecoder = (val) => {
484
484
  return ret.map((value) => Buffer.from(value).toString('hex'));
485
485
  };
486
486
  exports.smartRollupMessageDecoder = smartRollupMessageDecoder;
487
+ const dalCommitmentEncoder = (val) => {
488
+ const prefix = val.substring(0, 2);
489
+ if (prefix === utils_1.Prefix.SH) {
490
+ return (0, exports.prefixEncoder)(utils_1.Prefix.SH)(val);
491
+ }
492
+ throw new errors_1.InvalidDalCommitmentError(val, (0, utils_1.invalidDetail)(utils_1.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils_1.Prefix.SH}'`);
493
+ };
494
+ exports.dalCommitmentEncoder = dalCommitmentEncoder;
495
+ const dalCommitmentDecoder = (val) => {
496
+ const commitment = (0, exports.prefixDecoder)(utils_1.Prefix.SH)(val);
497
+ if (commitment.substring(0, 2) !== utils_1.Prefix.SH) {
498
+ throw new errors_1.InvalidDalCommitmentError(commitment, (0, utils_1.invalidDetail)(utils_1.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils_1.Prefix.SH}'`);
499
+ }
500
+ return commitment;
501
+ };
502
+ exports.dalCommitmentDecoder = dalCommitmentDecoder;
503
+ const slotHeaderEncoder = (val) => {
504
+ return (0, utils_2.pad)(val.slot_index, 2) + (0, exports.dalCommitmentEncoder)(val.commitment) + val.commitment_proof;
505
+ };
506
+ exports.slotHeaderEncoder = slotHeaderEncoder;
507
+ const slotHeaderDecoder = (val) => {
508
+ const preamble = val.consume(1);
509
+ return {
510
+ slot_index: Number(preamble[0].toString(10)),
511
+ commitment: (0, exports.dalCommitmentDecoder)(val),
512
+ commitment_proof: (0, utils_2.toHexString)(val.consume(96)), // rpcForger expect commitment_proof bytes to be len 96
513
+ };
514
+ };
515
+ exports.slotHeaderDecoder = slotHeaderDecoder;
@@ -44,7 +44,7 @@ var CODEC;
44
44
  CODEC["OP_BALLOT"] = "ballot";
45
45
  CODEC["OP_FAILING_NOOP"] = "failing_noop";
46
46
  CODEC["OP_ATTESTATION"] = "attestation";
47
- CODEC["OP_ENDORSEMENT"] = "endorsement";
47
+ CODEC["OP_ATTESTATION_WITH_DAL"] = "attestation_with_dal";
48
48
  CODEC["OP_SEED_NONCE_REVELATION"] = "seed_nonce_revelation";
49
49
  CODEC["OP_REVEAL"] = "reveal";
50
50
  CODEC["OP_PROPOSALS"] = "proposals";
@@ -60,8 +60,10 @@ var CODEC;
60
60
  CODEC["PVM_KIND"] = "pvm_kind";
61
61
  CODEC["OP_SMART_ROLLUP_ADD_MESSAGES"] = "smart_rollup_add_messages";
62
62
  CODEC["OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE"] = "smart_rollup_execute_outbox_message";
63
+ CODEC["OP_DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
64
+ CODEC["SLOT_HEADER"] = "slot_header";
63
65
  })(CODEC || (exports.CODEC = CODEC = {}));
64
- // See https://tezos.gitlab.io/whitedoc/michelson.html#full-grammar
66
+ // See https://tezos.gitlab.io/shell/p2p_api.html#alpha-michelson-v1-primitives-enumeration-unsigned-8-bit-integer
65
67
  exports.opMapping = {
66
68
  '00': 'parameter',
67
69
  '01': 'storage',
@@ -220,6 +222,7 @@ exports.opMapping = {
220
222
  '9a': 'TICKET',
221
223
  '9b': 'BYTES',
222
224
  '9c': 'NAT',
225
+ '9d': 'Ticket',
223
226
  };
224
227
  exports.opMappingReverse = (() => {
225
228
  const result = {};
@@ -228,7 +231,7 @@ exports.opMappingReverse = (() => {
228
231
  });
229
232
  return result;
230
233
  })();
231
- // See https://tezos.gitlab.io/shell/p2p_api.html?highlight=p2p
234
+ // See https://tezos.gitlab.io/shell/p2p_api.html
232
235
  exports.kindMapping = {
233
236
  0x04: 'activate_account',
234
237
  0x6b: 'reveal',
@@ -237,6 +240,7 @@ exports.kindMapping = {
237
240
  0x6d: 'origination',
238
241
  0x06: 'ballot',
239
242
  0x15: 'attestation',
243
+ 0x17: 'attestation_with_dal',
240
244
  0x01: 'seed_nonce_revelation',
241
245
  0x05: 'proposals',
242
246
  0x6f: 'register_global_constant',
@@ -248,6 +252,7 @@ exports.kindMapping = {
248
252
  0xc8: 'smart_rollup_originate',
249
253
  0xc9: 'smart_rollup_add_messages',
250
254
  0xce: 'smart_rollup_execute_outbox_message',
255
+ 0xe6: 'dal_publish_commitment',
251
256
  0x11: 'failing_noop',
252
257
  };
253
258
  exports.kindMappingReverse = (() => {
@@ -35,6 +35,7 @@ exports.decoders = {
35
35
  [constants_1.CODEC.PVM_KIND]: codec_1.pvmKindDecoder,
36
36
  [constants_1.CODEC.PADDED_BYTES]: codec_1.paddedBytesDecoder,
37
37
  [constants_1.CODEC.SMART_ROLLUP_MESSAGE]: codec_1.smartRollupMessageDecoder,
38
+ [constants_1.CODEC.SLOT_HEADER]: codec_1.slotHeaderDecoder,
38
39
  };
39
40
  exports.decoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationDecoder)(exports.decoders);
40
41
  exports.decoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ActivationSchema)(val);
@@ -44,7 +45,7 @@ exports.decoders[constants_1.CODEC.OP_TRANSACTION] = (val) => (0, operation_1.sc
44
45
  exports.decoders[constants_1.CODEC.OP_ORIGINATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.OriginationSchema)(val);
45
46
  exports.decoders[constants_1.CODEC.OP_BALLOT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.BallotSchema)(val);
46
47
  exports.decoders[constants_1.CODEC.OP_ATTESTATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.AttestationSchema)(val);
47
- exports.decoders[constants_1.CODEC.OP_ENDORSEMENT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.EndorsementSchema)(val);
48
+ exports.decoders[constants_1.CODEC.OP_ATTESTATION_WITH_DAL] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.AttestationWithDalSchema)(val);
48
49
  exports.decoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SeedNonceRevelationSchema)(val);
49
50
  exports.decoders[constants_1.CODEC.OP_PROPOSALS] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ProposalsSchema)(val);
50
51
  exports.decoders[constants_1.CODEC.OP_REVEAL] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.RevealSchema)(val);
@@ -56,5 +57,6 @@ exports.decoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = (val) => (0, operation_1
56
57
  exports.decoders[constants_1.CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SmartRollupOriginateSchema)(val);
57
58
  exports.decoders[constants_1.CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SmartRollupAddMessagesSchema)(val);
58
59
  exports.decoders[constants_1.CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SmartRollupExecuteOutboxMessageSchema)(val);
60
+ exports.decoders[constants_1.CODEC.OP_DAL_PUBLISH_COMMITMENT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.DalPublishCommitmentSchema)(val);
59
61
  exports.decoders[constants_1.CODEC.MANAGER] = (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ManagerOperationSchema);
60
62
  exports.decoders[constants_1.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SetDepositsLimitSchema)(val);
@@ -34,6 +34,7 @@ exports.encoders = {
34
34
  [constants_1.CODEC.PVM_KIND]: codec_1.pvmKindEncoder,
35
35
  [constants_1.CODEC.PADDED_BYTES]: codec_1.paddedBytesEncoder,
36
36
  [constants_1.CODEC.SMART_ROLLUP_MESSAGE]: codec_1.smartRollupMessageEncoder,
37
+ [constants_1.CODEC.SLOT_HEADER]: codec_1.slotHeaderEncoder,
37
38
  };
38
39
  exports.encoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationEncoder)(exports.encoders);
39
40
  exports.encoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ActivationSchema)(val);
@@ -42,7 +43,7 @@ exports.encoders[constants_1.CODEC.OP_TRANSACTION] = (val) => (0, operation_1.sc
42
43
  exports.encoders[constants_1.CODEC.OP_ORIGINATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.OriginationSchema)(val);
43
44
  exports.encoders[constants_1.CODEC.OP_BALLOT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.BallotSchema)(val);
44
45
  exports.encoders[constants_1.CODEC.OP_ATTESTATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.AttestationSchema)(val);
45
- exports.encoders[constants_1.CODEC.OP_ENDORSEMENT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.EndorsementSchema)(val);
46
+ exports.encoders[constants_1.CODEC.OP_ATTESTATION_WITH_DAL] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.AttestationWithDalSchema)(val);
46
47
  exports.encoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SeedNonceRevelationSchema)(val);
47
48
  exports.encoders[constants_1.CODEC.OP_PROPOSALS] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ProposalsSchema)(val);
48
49
  exports.encoders[constants_1.CODEC.OP_REVEAL] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.RevealSchema)(val);
@@ -54,6 +55,7 @@ exports.encoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = (val) => (0, operation_1
54
55
  exports.encoders[constants_1.CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SmartRollupOriginateSchema)(val);
55
56
  exports.encoders[constants_1.CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SmartRollupAddMessagesSchema)(val);
56
57
  exports.encoders[constants_1.CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SmartRollupExecuteOutboxMessageSchema)(val);
58
+ exports.encoders[constants_1.CODEC.OP_DAL_PUBLISH_COMMITMENT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.DalPublishCommitmentSchema)(val);
57
59
  exports.encoders[constants_1.CODEC.MANAGER] = (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ManagerOperationSchema);
58
60
  exports.encoders[constants_1.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SetDepositsLimitSchema)(val);
59
61
  exports.encoders[constants_1.CODEC.OP_FAILING_NOOP] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.FailingNoopSchema)(val);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvalidSmartRollupCommitmentHashError = exports.InvalidSmartRollupAddressError = exports.DecodePvmKindError = exports.UnsupportedPvmKindError = exports.UnsupportedOperationError = exports.OperationEncodingError = exports.OperationDecodingError = exports.UnexpectedMichelsonValueError = exports.DecodeBallotValueError = exports.InvalidBallotValueError = exports.OversizedEntryPointError = exports.InvalidOperationSchemaError = void 0;
3
+ exports.InvalidDalCommitmentError = exports.InvalidSmartRollupCommitmentHashError = exports.InvalidSmartRollupAddressError = exports.DecodePvmKindError = exports.UnsupportedPvmKindError = exports.UnsupportedOperationError = exports.OperationEncodingError = exports.OperationDecodingError = exports.UnexpectedMichelsonValueError = exports.DecodeBallotValueError = exports.InvalidBallotValueError = exports.OversizedEntryPointError = exports.InvalidOperationSchemaError = void 0;
4
4
  const core_1 = require("@taquito/core");
5
5
  const constants_1 = require("./constants");
6
6
  /**
@@ -162,3 +162,18 @@ class InvalidSmartRollupCommitmentHashError extends core_1.ParameterValidationEr
162
162
  }
163
163
  }
164
164
  exports.InvalidSmartRollupCommitmentHashError = InvalidSmartRollupCommitmentHashError;
165
+ /**
166
+ * @category Error
167
+ * @description Error that indicates an invalid dal commitment (sh)
168
+ */
169
+ class InvalidDalCommitmentError extends core_1.ParameterValidationError {
170
+ constructor(commitment, errorDetail) {
171
+ super();
172
+ this.commitment = commitment;
173
+ this.errorDetail = errorDetail;
174
+ this.name = 'InvalidDalCommitmentError';
175
+ this.message = `Invalid dal commitment "${commitment}"`;
176
+ errorDetail ? (this.message += ` ${errorDetail}.`) : '';
177
+ }
178
+ }
179
+ exports.InvalidDalCommitmentError = InvalidDalCommitmentError;
@@ -21,6 +21,7 @@ var ProtocolsHash;
21
21
  ProtocolsHash["PtNairobi"] = "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf";
22
22
  ProtocolsHash["ProxfordY"] = "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH";
23
23
  ProtocolsHash["PtParisBQ"] = "PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz";
24
+ ProtocolsHash["PtParisBx"] = "PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ";
24
25
  ProtocolsHash["ProtoALpha"] = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK";
25
26
  })(ProtocolsHash || (exports.ProtocolsHash = ProtocolsHash = {}));
26
27
  const protoLevel = {
@@ -42,6 +43,7 @@ const protoLevel = {
42
43
  PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf: 17,
43
44
  ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH: 19,
44
45
  PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz: 20,
46
+ PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ: 20,
45
47
  ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK: 21,
46
48
  };
47
49
  function ProtoInferiorTo(a, b) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.schemaDecoder = exports.schemaEncoder = exports.operationDecoder = exports.operationEncoder = exports.FailingNoopSchema = exports.SmartRollupExecuteOutboxMessageSchema = exports.SmartRollupAddMessagesSchema = exports.SmartRollupOriginateSchema = exports.SetDepositsLimitSchema = exports.DrainDelegateSchema = exports.UpdateConsensusKeySchema = exports.IncreasePaidStorageSchema = exports.TransferTicketSchema = exports.RegisterGlobalConstantSchema = exports.ProposalsSchema = exports.SeedNonceRevelationSchema = exports.EndorsementSchema = exports.AttestationSchema = exports.BallotSchema = exports.OriginationSchema = exports.TransactionSchema = exports.DelegationSchema = exports.RevealSchema = exports.ActivationSchema = exports.ManagerOperationSchema = void 0;
3
+ exports.schemaDecoder = exports.schemaEncoder = exports.operationDecoder = exports.operationEncoder = exports.FailingNoopSchema = exports.DalPublishCommitmentSchema = exports.SmartRollupExecuteOutboxMessageSchema = exports.SmartRollupAddMessagesSchema = exports.SmartRollupOriginateSchema = exports.SetDepositsLimitSchema = exports.DrainDelegateSchema = exports.UpdateConsensusKeySchema = exports.IncreasePaidStorageSchema = exports.TransferTicketSchema = exports.RegisterGlobalConstantSchema = exports.ProposalsSchema = exports.SeedNonceRevelationSchema = exports.AttestationWithDalSchema = exports.AttestationSchema = exports.BallotSchema = exports.OriginationSchema = exports.TransactionSchema = exports.DelegationSchema = exports.RevealSchema = exports.ActivationSchema = exports.ManagerOperationSchema = void 0;
4
4
  const constants_1 = require("../constants");
5
5
  const core_1 = require("@taquito/core");
6
6
  const errors_1 = require("../errors");
@@ -60,11 +60,12 @@ exports.AttestationSchema = {
60
60
  round: constants_1.CODEC.INT32,
61
61
  block_payload_hash: constants_1.CODEC.BLOCK_PAYLOAD_HASH,
62
62
  };
63
- exports.EndorsementSchema = {
63
+ exports.AttestationWithDalSchema = {
64
64
  slot: constants_1.CODEC.INT16,
65
65
  level: constants_1.CODEC.INT32,
66
66
  round: constants_1.CODEC.INT32,
67
67
  block_payload_hash: constants_1.CODEC.BLOCK_PAYLOAD_HASH,
68
+ dal_attestation: constants_1.CODEC.ZARITH,
68
69
  };
69
70
  exports.SeedNonceRevelationSchema = {
70
71
  level: constants_1.CODEC.INT32,
@@ -155,6 +156,14 @@ exports.SmartRollupExecuteOutboxMessageSchema = {
155
156
  cemented_commitment: constants_1.CODEC.SMART_ROLLUP_COMMITMENT_HASH,
156
157
  output_proof: constants_1.CODEC.PADDED_BYTES,
157
158
  };
159
+ exports.DalPublishCommitmentSchema = {
160
+ source: constants_1.CODEC.PKH,
161
+ fee: constants_1.CODEC.ZARITH,
162
+ counter: constants_1.CODEC.ZARITH,
163
+ gas_limit: constants_1.CODEC.ZARITH,
164
+ storage_limit: constants_1.CODEC.ZARITH,
165
+ slot_header: constants_1.CODEC.SLOT_HEADER,
166
+ };
158
167
  exports.FailingNoopSchema = {
159
168
  arbitrary: constants_1.CODEC.PADDED_BYTES,
160
169
  };
@@ -40,7 +40,7 @@ var version_1 = require("./version");
40
40
  Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_1.VERSION; } });
41
41
  var protocols_2 = require("./protocols");
42
42
  Object.defineProperty(exports, "ProtocolsHash", { enumerable: true, get: function () { return protocols_2.ProtocolsHash; } });
43
- const PROTOCOL_CURRENT = protocols_1.ProtocolsHash.ProxfordY;
43
+ const PROTOCOL_CURRENT = protocols_1.ProtocolsHash.PtParisBQ;
44
44
  function getCodec(codec, _proto) {
45
45
  return {
46
46
  encoder: encoder_1.encoders[codec],
@@ -10,7 +10,7 @@ const OperationKindMapping = {
10
10
  origination: operation_1.OriginationSchema,
11
11
  ballot: operation_1.BallotSchema,
12
12
  attestation: operation_1.AttestationSchema,
13
- endorsement: operation_1.EndorsementSchema,
13
+ attestation_with_dal: operation_1.AttestationWithDalSchema,
14
14
  seed_nonce_revelation: operation_1.SeedNonceRevelationSchema,
15
15
  proposals: operation_1.ProposalsSchema,
16
16
  register_global_constant: operation_1.RegisterGlobalConstantSchema,
@@ -22,6 +22,7 @@ const OperationKindMapping = {
22
22
  smart_rollup_originate: operation_1.SmartRollupOriginateSchema,
23
23
  smart_rollup_add_messages: operation_1.SmartRollupAddMessagesSchema,
24
24
  smart_rollup_execute_outbox_message: operation_1.SmartRollupExecuteOutboxMessageSchema,
25
+ dal_publish_commitment: operation_1.DalPublishCommitmentSchema,
25
26
  failing_noop: operation_1.FailingNoopSchema,
26
27
  };
27
28
  // Asymmetric difference: only account for things in arr2 that are not present in arr1, not vice versa
@@ -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": "0ef631853ccfda5c5faed584f16069f34085817e",
7
- "version": "20.0.0-beta.0"
6
+ "commitHash": "45fea4a361f29598063e448574800220c4687001",
7
+ "version": "20.0.0"
8
8
  };
@@ -49,7 +49,7 @@ var CODEC;
49
49
  CODEC["OP_BALLOT"] = "ballot";
50
50
  CODEC["OP_FAILING_NOOP"] = "failing_noop";
51
51
  CODEC["OP_ATTESTATION"] = "attestation";
52
- CODEC["OP_ENDORSEMENT"] = "endorsement";
52
+ CODEC["OP_ATTESTATION_WITH_DAL"] = "attestation_with_dal";
53
53
  CODEC["OP_SEED_NONCE_REVELATION"] = "seed_nonce_revelation";
54
54
  CODEC["OP_REVEAL"] = "reveal";
55
55
  CODEC["OP_PROPOSALS"] = "proposals";
@@ -65,8 +65,10 @@ var CODEC;
65
65
  CODEC["PVM_KIND"] = "pvm_kind";
66
66
  CODEC["OP_SMART_ROLLUP_ADD_MESSAGES"] = "smart_rollup_add_messages";
67
67
  CODEC["OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE"] = "smart_rollup_execute_outbox_message";
68
+ CODEC["OP_DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
69
+ CODEC["SLOT_HEADER"] = "slot_header";
68
70
  })(CODEC || (CODEC = {}));
69
- // See https://tezos.gitlab.io/whitedoc/michelson.html#full-grammar
71
+ // See https://tezos.gitlab.io/shell/p2p_api.html#alpha-michelson-v1-primitives-enumeration-unsigned-8-bit-integer
70
72
  const opMapping = {
71
73
  '00': 'parameter',
72
74
  '01': 'storage',
@@ -225,6 +227,7 @@ const opMapping = {
225
227
  '9a': 'TICKET',
226
228
  '9b': 'BYTES',
227
229
  '9c': 'NAT',
230
+ '9d': 'Ticket',
228
231
  };
229
232
  const opMappingReverse = (() => {
230
233
  const result = {};
@@ -233,7 +236,7 @@ const opMappingReverse = (() => {
233
236
  });
234
237
  return result;
235
238
  })();
236
- // See https://tezos.gitlab.io/shell/p2p_api.html?highlight=p2p
239
+ // See https://tezos.gitlab.io/shell/p2p_api.html
237
240
  const kindMapping = {
238
241
  0x04: 'activate_account',
239
242
  0x6b: 'reveal',
@@ -242,6 +245,7 @@ const kindMapping = {
242
245
  0x6d: 'origination',
243
246
  0x06: 'ballot',
244
247
  0x15: 'attestation',
248
+ 0x17: 'attestation_with_dal',
245
249
  0x01: 'seed_nonce_revelation',
246
250
  0x05: 'proposals',
247
251
  0x6f: 'register_global_constant',
@@ -253,6 +257,7 @@ const kindMapping = {
253
257
  0xc8: 'smart_rollup_originate',
254
258
  0xc9: 'smart_rollup_add_messages',
255
259
  0xce: 'smart_rollup_execute_outbox_message',
260
+ 0xe6: 'dal_publish_commitment',
256
261
  0x11: 'failing_noop',
257
262
  };
258
263
  const kindMappingReverse = (() => {
@@ -431,6 +436,20 @@ class InvalidSmartRollupCommitmentHashError extends ParameterValidationError {
431
436
  errorDetail ? (this.message += ` ${errorDetail}.`) : '';
432
437
  }
433
438
  }
439
+ /**
440
+ * @category Error
441
+ * @description Error that indicates an invalid dal commitment (sh)
442
+ */
443
+ class InvalidDalCommitmentError extends ParameterValidationError {
444
+ constructor(commitment, errorDetail) {
445
+ super();
446
+ this.commitment = commitment;
447
+ this.errorDetail = errorDetail;
448
+ this.name = 'InvalidDalCommitmentError';
449
+ this.message = `Invalid dal commitment "${commitment}"`;
450
+ errorDetail ? (this.message += ` ${errorDetail}.`) : '';
451
+ }
452
+ }
434
453
 
435
454
  class Uint8ArrayConsumer {
436
455
  static fromHexString(hex) {
@@ -1083,7 +1102,7 @@ const parametersEncoder = (val) => {
1083
1102
  }
1084
1103
  const encodedEntrypoint = entrypointEncoder(val.entrypoint);
1085
1104
  const parameters = valueEncoder(val.value);
1086
- const length = (parameters.length / 2).toString(16).padStart(8, '0');
1105
+ const length = pad(parameters.length / 2);
1087
1106
  return `ff${encodedEntrypoint}${length}${parameters}`;
1088
1107
  };
1089
1108
  const valueParameterEncoder = (value) => {
@@ -1140,6 +1159,31 @@ const smartRollupMessageDecoder = (val) => {
1140
1159
  const ret = stripLengthPrefixFromBytes(new Uint8ArrayConsumer(valueArray));
1141
1160
  return ret.map((value) => Buffer.from(value).toString('hex'));
1142
1161
  };
1162
+ const dalCommitmentEncoder = (val) => {
1163
+ const prefix = val.substring(0, 2);
1164
+ if (prefix === Prefix.SH) {
1165
+ return prefixEncoder(Prefix.SH)(val);
1166
+ }
1167
+ throw new InvalidDalCommitmentError(val, invalidDetail(ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${Prefix.SH}'`);
1168
+ };
1169
+ const dalCommitmentDecoder = (val) => {
1170
+ const commitment = prefixDecoder(Prefix.SH)(val);
1171
+ if (commitment.substring(0, 2) !== Prefix.SH) {
1172
+ throw new InvalidDalCommitmentError(commitment, invalidDetail(ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${Prefix.SH}'`);
1173
+ }
1174
+ return commitment;
1175
+ };
1176
+ const slotHeaderEncoder = (val) => {
1177
+ return pad(val.slot_index, 2) + dalCommitmentEncoder(val.commitment) + val.commitment_proof;
1178
+ };
1179
+ const slotHeaderDecoder = (val) => {
1180
+ const preamble = val.consume(1);
1181
+ return {
1182
+ slot_index: Number(preamble[0].toString(10)),
1183
+ commitment: dalCommitmentDecoder(val),
1184
+ commitment_proof: toHexString(val.consume(96)), // rpcForger expect commitment_proof bytes to be len 96
1185
+ };
1186
+ };
1143
1187
 
1144
1188
  const ManagerOperationSchema = {
1145
1189
  branch: CODEC.BRANCH,
@@ -1197,11 +1241,12 @@ const AttestationSchema = {
1197
1241
  round: CODEC.INT32,
1198
1242
  block_payload_hash: CODEC.BLOCK_PAYLOAD_HASH,
1199
1243
  };
1200
- const EndorsementSchema = {
1244
+ const AttestationWithDalSchema = {
1201
1245
  slot: CODEC.INT16,
1202
1246
  level: CODEC.INT32,
1203
1247
  round: CODEC.INT32,
1204
1248
  block_payload_hash: CODEC.BLOCK_PAYLOAD_HASH,
1249
+ dal_attestation: CODEC.ZARITH,
1205
1250
  };
1206
1251
  const SeedNonceRevelationSchema = {
1207
1252
  level: CODEC.INT32,
@@ -1292,6 +1337,14 @@ const SmartRollupExecuteOutboxMessageSchema = {
1292
1337
  cemented_commitment: CODEC.SMART_ROLLUP_COMMITMENT_HASH,
1293
1338
  output_proof: CODEC.PADDED_BYTES,
1294
1339
  };
1340
+ const DalPublishCommitmentSchema = {
1341
+ source: CODEC.PKH,
1342
+ fee: CODEC.ZARITH,
1343
+ counter: CODEC.ZARITH,
1344
+ gas_limit: CODEC.ZARITH,
1345
+ storage_limit: CODEC.ZARITH,
1346
+ slot_header: CODEC.SLOT_HEADER,
1347
+ };
1295
1348
  const FailingNoopSchema = {
1296
1349
  arbitrary: CODEC.PADDED_BYTES,
1297
1350
  };
@@ -1389,6 +1442,7 @@ const decoders = {
1389
1442
  [CODEC.PVM_KIND]: pvmKindDecoder,
1390
1443
  [CODEC.PADDED_BYTES]: paddedBytesDecoder,
1391
1444
  [CODEC.SMART_ROLLUP_MESSAGE]: smartRollupMessageDecoder,
1445
+ [CODEC.SLOT_HEADER]: slotHeaderDecoder,
1392
1446
  };
1393
1447
  decoders[CODEC.OPERATION] = operationDecoder(decoders);
1394
1448
  decoders[CODEC.OP_ACTIVATE_ACCOUNT] = (val) => schemaDecoder(decoders)(ActivationSchema)(val);
@@ -1398,7 +1452,7 @@ decoders[CODEC.OP_TRANSACTION] = (val) => schemaDecoder(decoders)(TransactionSch
1398
1452
  decoders[CODEC.OP_ORIGINATION] = (val) => schemaDecoder(decoders)(OriginationSchema)(val);
1399
1453
  decoders[CODEC.OP_BALLOT] = (val) => schemaDecoder(decoders)(BallotSchema)(val);
1400
1454
  decoders[CODEC.OP_ATTESTATION] = (val) => schemaDecoder(decoders)(AttestationSchema)(val);
1401
- decoders[CODEC.OP_ENDORSEMENT] = (val) => schemaDecoder(decoders)(EndorsementSchema)(val);
1455
+ decoders[CODEC.OP_ATTESTATION_WITH_DAL] = (val) => schemaDecoder(decoders)(AttestationWithDalSchema)(val);
1402
1456
  decoders[CODEC.OP_SEED_NONCE_REVELATION] = (val) => schemaDecoder(decoders)(SeedNonceRevelationSchema)(val);
1403
1457
  decoders[CODEC.OP_PROPOSALS] = (val) => schemaDecoder(decoders)(ProposalsSchema)(val);
1404
1458
  decoders[CODEC.OP_REVEAL] = (val) => schemaDecoder(decoders)(RevealSchema)(val);
@@ -1410,6 +1464,7 @@ decoders[CODEC.OP_DRAIN_DELEGATE] = (val) => schemaDecoder(decoders)(DrainDelega
1410
1464
  decoders[CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => schemaDecoder(decoders)(SmartRollupOriginateSchema)(val);
1411
1465
  decoders[CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => schemaDecoder(decoders)(SmartRollupAddMessagesSchema)(val);
1412
1466
  decoders[CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => schemaDecoder(decoders)(SmartRollupExecuteOutboxMessageSchema)(val);
1467
+ decoders[CODEC.OP_DAL_PUBLISH_COMMITMENT] = (val) => schemaDecoder(decoders)(DalPublishCommitmentSchema)(val);
1413
1468
  decoders[CODEC.MANAGER] = schemaDecoder(decoders)(ManagerOperationSchema);
1414
1469
  decoders[CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => schemaDecoder(decoders)(SetDepositsLimitSchema)(val);
1415
1470
 
@@ -1442,6 +1497,7 @@ const encoders = {
1442
1497
  [CODEC.PVM_KIND]: pvmKindEncoder,
1443
1498
  [CODEC.PADDED_BYTES]: paddedBytesEncoder,
1444
1499
  [CODEC.SMART_ROLLUP_MESSAGE]: smartRollupMessageEncoder,
1500
+ [CODEC.SLOT_HEADER]: slotHeaderEncoder,
1445
1501
  };
1446
1502
  encoders[CODEC.OPERATION] = operationEncoder(encoders);
1447
1503
  encoders[CODEC.OP_ACTIVATE_ACCOUNT] = (val) => schemaEncoder(encoders)(ActivationSchema)(val);
@@ -1450,7 +1506,7 @@ encoders[CODEC.OP_TRANSACTION] = (val) => schemaEncoder(encoders)(TransactionSch
1450
1506
  encoders[CODEC.OP_ORIGINATION] = (val) => schemaEncoder(encoders)(OriginationSchema)(val);
1451
1507
  encoders[CODEC.OP_BALLOT] = (val) => schemaEncoder(encoders)(BallotSchema)(val);
1452
1508
  encoders[CODEC.OP_ATTESTATION] = (val) => schemaEncoder(encoders)(AttestationSchema)(val);
1453
- encoders[CODEC.OP_ENDORSEMENT] = (val) => schemaEncoder(encoders)(EndorsementSchema)(val);
1509
+ encoders[CODEC.OP_ATTESTATION_WITH_DAL] = (val) => schemaEncoder(encoders)(AttestationWithDalSchema)(val);
1454
1510
  encoders[CODEC.OP_SEED_NONCE_REVELATION] = (val) => schemaEncoder(encoders)(SeedNonceRevelationSchema)(val);
1455
1511
  encoders[CODEC.OP_PROPOSALS] = (val) => schemaEncoder(encoders)(ProposalsSchema)(val);
1456
1512
  encoders[CODEC.OP_REVEAL] = (val) => schemaEncoder(encoders)(RevealSchema)(val);
@@ -1462,6 +1518,7 @@ encoders[CODEC.OP_DRAIN_DELEGATE] = (val) => schemaEncoder(encoders)(DrainDelega
1462
1518
  encoders[CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => schemaEncoder(encoders)(SmartRollupOriginateSchema)(val);
1463
1519
  encoders[CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => schemaEncoder(encoders)(SmartRollupAddMessagesSchema)(val);
1464
1520
  encoders[CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => schemaEncoder(encoders)(SmartRollupExecuteOutboxMessageSchema)(val);
1521
+ encoders[CODEC.OP_DAL_PUBLISH_COMMITMENT] = (val) => schemaEncoder(encoders)(DalPublishCommitmentSchema)(val);
1465
1522
  encoders[CODEC.MANAGER] = schemaEncoder(encoders)(ManagerOperationSchema);
1466
1523
  encoders[CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => schemaEncoder(encoders)(SetDepositsLimitSchema)(val);
1467
1524
  encoders[CODEC.OP_FAILING_NOOP] = (val) => schemaEncoder(encoders)(FailingNoopSchema)(val);
@@ -1474,7 +1531,7 @@ const OperationKindMapping = {
1474
1531
  origination: OriginationSchema,
1475
1532
  ballot: BallotSchema,
1476
1533
  attestation: AttestationSchema,
1477
- endorsement: EndorsementSchema,
1534
+ attestation_with_dal: AttestationWithDalSchema,
1478
1535
  seed_nonce_revelation: SeedNonceRevelationSchema,
1479
1536
  proposals: ProposalsSchema,
1480
1537
  register_global_constant: RegisterGlobalConstantSchema,
@@ -1486,6 +1543,7 @@ const OperationKindMapping = {
1486
1543
  smart_rollup_originate: SmartRollupOriginateSchema,
1487
1544
  smart_rollup_add_messages: SmartRollupAddMessagesSchema,
1488
1545
  smart_rollup_execute_outbox_message: SmartRollupExecuteOutboxMessageSchema,
1546
+ dal_publish_commitment: DalPublishCommitmentSchema,
1489
1547
  failing_noop: FailingNoopSchema,
1490
1548
  };
1491
1549
  // Asymmetric difference: only account for things in arr2 that are not present in arr1, not vice versa
@@ -1536,20 +1594,21 @@ var ProtocolsHash;
1536
1594
  ProtocolsHash["PtNairobi"] = "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf";
1537
1595
  ProtocolsHash["ProxfordY"] = "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH";
1538
1596
  ProtocolsHash["PtParisBQ"] = "PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz";
1597
+ ProtocolsHash["PtParisBx"] = "PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ";
1539
1598
  ProtocolsHash["ProtoALpha"] = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK";
1540
1599
  })(ProtocolsHash || (ProtocolsHash = {}));
1541
1600
 
1542
1601
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
1543
1602
  const VERSION = {
1544
- "commitHash": "0ef631853ccfda5c5faed584f16069f34085817e",
1545
- "version": "20.0.0-beta.0"
1603
+ "commitHash": "45fea4a361f29598063e448574800220c4687001",
1604
+ "version": "20.0.0"
1546
1605
  };
1547
1606
 
1548
1607
  /**
1549
1608
  * @packageDocumentation
1550
1609
  * @module @taquito/local-forging
1551
1610
  */
1552
- const PROTOCOL_CURRENT = ProtocolsHash.ProxfordY;
1611
+ const PROTOCOL_CURRENT = ProtocolsHash.PtParisBQ;
1553
1612
  function getCodec(codec, _proto) {
1554
1613
  return {
1555
1614
  encoder: encoders[codec],
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-local-forging.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -51,7 +51,7 @@
51
51
  CODEC["OP_BALLOT"] = "ballot";
52
52
  CODEC["OP_FAILING_NOOP"] = "failing_noop";
53
53
  CODEC["OP_ATTESTATION"] = "attestation";
54
- CODEC["OP_ENDORSEMENT"] = "endorsement";
54
+ CODEC["OP_ATTESTATION_WITH_DAL"] = "attestation_with_dal";
55
55
  CODEC["OP_SEED_NONCE_REVELATION"] = "seed_nonce_revelation";
56
56
  CODEC["OP_REVEAL"] = "reveal";
57
57
  CODEC["OP_PROPOSALS"] = "proposals";
@@ -67,8 +67,10 @@
67
67
  CODEC["PVM_KIND"] = "pvm_kind";
68
68
  CODEC["OP_SMART_ROLLUP_ADD_MESSAGES"] = "smart_rollup_add_messages";
69
69
  CODEC["OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE"] = "smart_rollup_execute_outbox_message";
70
+ CODEC["OP_DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
71
+ CODEC["SLOT_HEADER"] = "slot_header";
70
72
  })(exports.CODEC || (exports.CODEC = {}));
71
- // See https://tezos.gitlab.io/whitedoc/michelson.html#full-grammar
73
+ // See https://tezos.gitlab.io/shell/p2p_api.html#alpha-michelson-v1-primitives-enumeration-unsigned-8-bit-integer
72
74
  const opMapping = {
73
75
  '00': 'parameter',
74
76
  '01': 'storage',
@@ -227,6 +229,7 @@
227
229
  '9a': 'TICKET',
228
230
  '9b': 'BYTES',
229
231
  '9c': 'NAT',
232
+ '9d': 'Ticket',
230
233
  };
231
234
  const opMappingReverse = (() => {
232
235
  const result = {};
@@ -235,7 +238,7 @@
235
238
  });
236
239
  return result;
237
240
  })();
238
- // See https://tezos.gitlab.io/shell/p2p_api.html?highlight=p2p
241
+ // See https://tezos.gitlab.io/shell/p2p_api.html
239
242
  const kindMapping = {
240
243
  0x04: 'activate_account',
241
244
  0x6b: 'reveal',
@@ -244,6 +247,7 @@
244
247
  0x6d: 'origination',
245
248
  0x06: 'ballot',
246
249
  0x15: 'attestation',
250
+ 0x17: 'attestation_with_dal',
247
251
  0x01: 'seed_nonce_revelation',
248
252
  0x05: 'proposals',
249
253
  0x6f: 'register_global_constant',
@@ -255,6 +259,7 @@
255
259
  0xc8: 'smart_rollup_originate',
256
260
  0xc9: 'smart_rollup_add_messages',
257
261
  0xce: 'smart_rollup_execute_outbox_message',
262
+ 0xe6: 'dal_publish_commitment',
258
263
  0x11: 'failing_noop',
259
264
  };
260
265
  const kindMappingReverse = (() => {
@@ -433,6 +438,20 @@
433
438
  errorDetail ? (this.message += ` ${errorDetail}.`) : '';
434
439
  }
435
440
  }
441
+ /**
442
+ * @category Error
443
+ * @description Error that indicates an invalid dal commitment (sh)
444
+ */
445
+ class InvalidDalCommitmentError extends core.ParameterValidationError {
446
+ constructor(commitment, errorDetail) {
447
+ super();
448
+ this.commitment = commitment;
449
+ this.errorDetail = errorDetail;
450
+ this.name = 'InvalidDalCommitmentError';
451
+ this.message = `Invalid dal commitment "${commitment}"`;
452
+ errorDetail ? (this.message += ` ${errorDetail}.`) : '';
453
+ }
454
+ }
436
455
 
437
456
  class Uint8ArrayConsumer {
438
457
  static fromHexString(hex) {
@@ -1085,7 +1104,7 @@
1085
1104
  }
1086
1105
  const encodedEntrypoint = entrypointEncoder(val.entrypoint);
1087
1106
  const parameters = valueEncoder(val.value);
1088
- const length = (parameters.length / 2).toString(16).padStart(8, '0');
1107
+ const length = pad(parameters.length / 2);
1089
1108
  return `ff${encodedEntrypoint}${length}${parameters}`;
1090
1109
  };
1091
1110
  const valueParameterEncoder = (value) => {
@@ -1142,6 +1161,31 @@
1142
1161
  const ret = stripLengthPrefixFromBytes(new Uint8ArrayConsumer(valueArray));
1143
1162
  return ret.map((value) => Buffer.from(value).toString('hex'));
1144
1163
  };
1164
+ const dalCommitmentEncoder = (val) => {
1165
+ const prefix = val.substring(0, 2);
1166
+ if (prefix === utils.Prefix.SH) {
1167
+ return prefixEncoder(utils.Prefix.SH)(val);
1168
+ }
1169
+ throw new InvalidDalCommitmentError(val, utils.invalidDetail(utils.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils.Prefix.SH}'`);
1170
+ };
1171
+ const dalCommitmentDecoder = (val) => {
1172
+ const commitment = prefixDecoder(utils.Prefix.SH)(val);
1173
+ if (commitment.substring(0, 2) !== utils.Prefix.SH) {
1174
+ throw new InvalidDalCommitmentError(commitment, utils.invalidDetail(utils.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils.Prefix.SH}'`);
1175
+ }
1176
+ return commitment;
1177
+ };
1178
+ const slotHeaderEncoder = (val) => {
1179
+ return pad(val.slot_index, 2) + dalCommitmentEncoder(val.commitment) + val.commitment_proof;
1180
+ };
1181
+ const slotHeaderDecoder = (val) => {
1182
+ const preamble = val.consume(1);
1183
+ return {
1184
+ slot_index: Number(preamble[0].toString(10)),
1185
+ commitment: dalCommitmentDecoder(val),
1186
+ commitment_proof: toHexString(val.consume(96)), // rpcForger expect commitment_proof bytes to be len 96
1187
+ };
1188
+ };
1145
1189
 
1146
1190
  const ManagerOperationSchema = {
1147
1191
  branch: exports.CODEC.BRANCH,
@@ -1199,11 +1243,12 @@
1199
1243
  round: exports.CODEC.INT32,
1200
1244
  block_payload_hash: exports.CODEC.BLOCK_PAYLOAD_HASH,
1201
1245
  };
1202
- const EndorsementSchema = {
1246
+ const AttestationWithDalSchema = {
1203
1247
  slot: exports.CODEC.INT16,
1204
1248
  level: exports.CODEC.INT32,
1205
1249
  round: exports.CODEC.INT32,
1206
1250
  block_payload_hash: exports.CODEC.BLOCK_PAYLOAD_HASH,
1251
+ dal_attestation: exports.CODEC.ZARITH,
1207
1252
  };
1208
1253
  const SeedNonceRevelationSchema = {
1209
1254
  level: exports.CODEC.INT32,
@@ -1294,6 +1339,14 @@
1294
1339
  cemented_commitment: exports.CODEC.SMART_ROLLUP_COMMITMENT_HASH,
1295
1340
  output_proof: exports.CODEC.PADDED_BYTES,
1296
1341
  };
1342
+ const DalPublishCommitmentSchema = {
1343
+ source: exports.CODEC.PKH,
1344
+ fee: exports.CODEC.ZARITH,
1345
+ counter: exports.CODEC.ZARITH,
1346
+ gas_limit: exports.CODEC.ZARITH,
1347
+ storage_limit: exports.CODEC.ZARITH,
1348
+ slot_header: exports.CODEC.SLOT_HEADER,
1349
+ };
1297
1350
  const FailingNoopSchema = {
1298
1351
  arbitrary: exports.CODEC.PADDED_BYTES,
1299
1352
  };
@@ -1391,6 +1444,7 @@
1391
1444
  [exports.CODEC.PVM_KIND]: pvmKindDecoder,
1392
1445
  [exports.CODEC.PADDED_BYTES]: paddedBytesDecoder,
1393
1446
  [exports.CODEC.SMART_ROLLUP_MESSAGE]: smartRollupMessageDecoder,
1447
+ [exports.CODEC.SLOT_HEADER]: slotHeaderDecoder,
1394
1448
  };
1395
1449
  decoders[exports.CODEC.OPERATION] = operationDecoder(decoders);
1396
1450
  decoders[exports.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => schemaDecoder(decoders)(ActivationSchema)(val);
@@ -1400,7 +1454,7 @@
1400
1454
  decoders[exports.CODEC.OP_ORIGINATION] = (val) => schemaDecoder(decoders)(OriginationSchema)(val);
1401
1455
  decoders[exports.CODEC.OP_BALLOT] = (val) => schemaDecoder(decoders)(BallotSchema)(val);
1402
1456
  decoders[exports.CODEC.OP_ATTESTATION] = (val) => schemaDecoder(decoders)(AttestationSchema)(val);
1403
- decoders[exports.CODEC.OP_ENDORSEMENT] = (val) => schemaDecoder(decoders)(EndorsementSchema)(val);
1457
+ decoders[exports.CODEC.OP_ATTESTATION_WITH_DAL] = (val) => schemaDecoder(decoders)(AttestationWithDalSchema)(val);
1404
1458
  decoders[exports.CODEC.OP_SEED_NONCE_REVELATION] = (val) => schemaDecoder(decoders)(SeedNonceRevelationSchema)(val);
1405
1459
  decoders[exports.CODEC.OP_PROPOSALS] = (val) => schemaDecoder(decoders)(ProposalsSchema)(val);
1406
1460
  decoders[exports.CODEC.OP_REVEAL] = (val) => schemaDecoder(decoders)(RevealSchema)(val);
@@ -1412,6 +1466,7 @@
1412
1466
  decoders[exports.CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => schemaDecoder(decoders)(SmartRollupOriginateSchema)(val);
1413
1467
  decoders[exports.CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => schemaDecoder(decoders)(SmartRollupAddMessagesSchema)(val);
1414
1468
  decoders[exports.CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => schemaDecoder(decoders)(SmartRollupExecuteOutboxMessageSchema)(val);
1469
+ decoders[exports.CODEC.OP_DAL_PUBLISH_COMMITMENT] = (val) => schemaDecoder(decoders)(DalPublishCommitmentSchema)(val);
1415
1470
  decoders[exports.CODEC.MANAGER] = schemaDecoder(decoders)(ManagerOperationSchema);
1416
1471
  decoders[exports.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => schemaDecoder(decoders)(SetDepositsLimitSchema)(val);
1417
1472
 
@@ -1444,6 +1499,7 @@
1444
1499
  [exports.CODEC.PVM_KIND]: pvmKindEncoder,
1445
1500
  [exports.CODEC.PADDED_BYTES]: paddedBytesEncoder,
1446
1501
  [exports.CODEC.SMART_ROLLUP_MESSAGE]: smartRollupMessageEncoder,
1502
+ [exports.CODEC.SLOT_HEADER]: slotHeaderEncoder,
1447
1503
  };
1448
1504
  encoders[exports.CODEC.OPERATION] = operationEncoder(encoders);
1449
1505
  encoders[exports.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => schemaEncoder(encoders)(ActivationSchema)(val);
@@ -1452,7 +1508,7 @@
1452
1508
  encoders[exports.CODEC.OP_ORIGINATION] = (val) => schemaEncoder(encoders)(OriginationSchema)(val);
1453
1509
  encoders[exports.CODEC.OP_BALLOT] = (val) => schemaEncoder(encoders)(BallotSchema)(val);
1454
1510
  encoders[exports.CODEC.OP_ATTESTATION] = (val) => schemaEncoder(encoders)(AttestationSchema)(val);
1455
- encoders[exports.CODEC.OP_ENDORSEMENT] = (val) => schemaEncoder(encoders)(EndorsementSchema)(val);
1511
+ encoders[exports.CODEC.OP_ATTESTATION_WITH_DAL] = (val) => schemaEncoder(encoders)(AttestationWithDalSchema)(val);
1456
1512
  encoders[exports.CODEC.OP_SEED_NONCE_REVELATION] = (val) => schemaEncoder(encoders)(SeedNonceRevelationSchema)(val);
1457
1513
  encoders[exports.CODEC.OP_PROPOSALS] = (val) => schemaEncoder(encoders)(ProposalsSchema)(val);
1458
1514
  encoders[exports.CODEC.OP_REVEAL] = (val) => schemaEncoder(encoders)(RevealSchema)(val);
@@ -1464,6 +1520,7 @@
1464
1520
  encoders[exports.CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => schemaEncoder(encoders)(SmartRollupOriginateSchema)(val);
1465
1521
  encoders[exports.CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => schemaEncoder(encoders)(SmartRollupAddMessagesSchema)(val);
1466
1522
  encoders[exports.CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => schemaEncoder(encoders)(SmartRollupExecuteOutboxMessageSchema)(val);
1523
+ encoders[exports.CODEC.OP_DAL_PUBLISH_COMMITMENT] = (val) => schemaEncoder(encoders)(DalPublishCommitmentSchema)(val);
1467
1524
  encoders[exports.CODEC.MANAGER] = schemaEncoder(encoders)(ManagerOperationSchema);
1468
1525
  encoders[exports.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => schemaEncoder(encoders)(SetDepositsLimitSchema)(val);
1469
1526
  encoders[exports.CODEC.OP_FAILING_NOOP] = (val) => schemaEncoder(encoders)(FailingNoopSchema)(val);
@@ -1476,7 +1533,7 @@
1476
1533
  origination: OriginationSchema,
1477
1534
  ballot: BallotSchema,
1478
1535
  attestation: AttestationSchema,
1479
- endorsement: EndorsementSchema,
1536
+ attestation_with_dal: AttestationWithDalSchema,
1480
1537
  seed_nonce_revelation: SeedNonceRevelationSchema,
1481
1538
  proposals: ProposalsSchema,
1482
1539
  register_global_constant: RegisterGlobalConstantSchema,
@@ -1488,6 +1545,7 @@
1488
1545
  smart_rollup_originate: SmartRollupOriginateSchema,
1489
1546
  smart_rollup_add_messages: SmartRollupAddMessagesSchema,
1490
1547
  smart_rollup_execute_outbox_message: SmartRollupExecuteOutboxMessageSchema,
1548
+ dal_publish_commitment: DalPublishCommitmentSchema,
1491
1549
  failing_noop: FailingNoopSchema,
1492
1550
  };
1493
1551
  // Asymmetric difference: only account for things in arr2 that are not present in arr1, not vice versa
@@ -1538,20 +1596,21 @@
1538
1596
  ProtocolsHash["PtNairobi"] = "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf";
1539
1597
  ProtocolsHash["ProxfordY"] = "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH";
1540
1598
  ProtocolsHash["PtParisBQ"] = "PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz";
1599
+ ProtocolsHash["PtParisBx"] = "PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ";
1541
1600
  ProtocolsHash["ProtoALpha"] = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK";
1542
1601
  })(exports.ProtocolsHash || (exports.ProtocolsHash = {}));
1543
1602
 
1544
1603
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
1545
1604
  const VERSION = {
1546
- "commitHash": "0ef631853ccfda5c5faed584f16069f34085817e",
1547
- "version": "20.0.0-beta.0"
1605
+ "commitHash": "45fea4a361f29598063e448574800220c4687001",
1606
+ "version": "20.0.0"
1548
1607
  };
1549
1608
 
1550
1609
  /**
1551
1610
  * @packageDocumentation
1552
1611
  * @module @taquito/local-forging
1553
1612
  */
1554
- const PROTOCOL_CURRENT = exports.ProtocolsHash.ProxfordY;
1613
+ const PROTOCOL_CURRENT = exports.ProtocolsHash.PtParisBQ;
1555
1614
  function getCodec(codec, _proto) {
1556
1615
  return {
1557
1616
  encoder: encoders[codec],
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-local-forging.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -63,3 +63,15 @@ export declare const paddedBytesEncoder: (val: string, paddingLength?: number) =
63
63
  export declare const paddedBytesDecoder: (val: Uint8ArrayConsumer) => string;
64
64
  export declare const smartRollupMessageEncoder: (val: string[]) => string;
65
65
  export declare const smartRollupMessageDecoder: (val: Uint8ArrayConsumer) => string[];
66
+ export declare const dalCommitmentEncoder: (val: string) => string;
67
+ export declare const dalCommitmentDecoder: (val: Uint8ArrayConsumer) => string;
68
+ export declare const slotHeaderEncoder: (val: {
69
+ slot_index: number;
70
+ commitment: string;
71
+ commitment_proof: string;
72
+ }) => string;
73
+ export declare const slotHeaderDecoder: (val: Uint8ArrayConsumer) => {
74
+ slot_index: number;
75
+ commitment: string;
76
+ commitment_proof: string;
77
+ };
@@ -34,7 +34,7 @@ export declare enum CODEC {
34
34
  OP_BALLOT = "ballot",
35
35
  OP_FAILING_NOOP = "failing_noop",
36
36
  OP_ATTESTATION = "attestation",
37
- OP_ENDORSEMENT = "endorsement",
37
+ OP_ATTESTATION_WITH_DAL = "attestation_with_dal",
38
38
  OP_SEED_NONCE_REVELATION = "seed_nonce_revelation",
39
39
  OP_REVEAL = "reveal",
40
40
  OP_PROPOSALS = "proposals",
@@ -49,7 +49,9 @@ export declare enum CODEC {
49
49
  OP_SMART_ROLLUP_ORIGINATE = "smart_rollup_originate",
50
50
  PVM_KIND = "pvm_kind",
51
51
  OP_SMART_ROLLUP_ADD_MESSAGES = "smart_rollup_add_messages",
52
- OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE = "smart_rollup_execute_outbox_message"
52
+ OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE = "smart_rollup_execute_outbox_message",
53
+ OP_DAL_PUBLISH_COMMITMENT = "dal_publish_commitment",
54
+ SLOT_HEADER = "slot_header"
53
55
  }
54
56
  export declare const opMapping: {
55
57
  [key: string]: string;
@@ -98,3 +98,12 @@ export declare class InvalidSmartRollupCommitmentHashError extends ParameterVali
98
98
  readonly errorDetail?: string | undefined;
99
99
  constructor(hash: string, errorDetail?: string | undefined);
100
100
  }
101
+ /**
102
+ * @category Error
103
+ * @description Error that indicates an invalid dal commitment (sh)
104
+ */
105
+ export declare class InvalidDalCommitmentError extends ParameterValidationError {
106
+ readonly commitment: string;
107
+ readonly errorDetail?: string | undefined;
108
+ constructor(commitment: string, errorDetail?: string | undefined);
109
+ }
@@ -17,6 +17,7 @@ export declare enum ProtocolsHash {
17
17
  PtNairobi = "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",
18
18
  ProxfordY = "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH",
19
19
  PtParisBQ = "PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz",
20
+ PtParisBx = "PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ",
20
21
  ProtoALpha = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"
21
22
  }
22
23
  export declare function ProtoInferiorTo(a: ProtocolsHash, b: ProtocolsHash): boolean;
@@ -57,11 +57,12 @@ export declare const AttestationSchema: {
57
57
  round: CODEC;
58
58
  block_payload_hash: CODEC;
59
59
  };
60
- export declare const EndorsementSchema: {
60
+ export declare const AttestationWithDalSchema: {
61
61
  slot: CODEC;
62
62
  level: CODEC;
63
63
  round: CODEC;
64
64
  block_payload_hash: CODEC;
65
+ dal_attestation: CODEC;
65
66
  };
66
67
  export declare const SeedNonceRevelationSchema: {
67
68
  level: CODEC;
@@ -152,6 +153,14 @@ export declare const SmartRollupExecuteOutboxMessageSchema: {
152
153
  cemented_commitment: CODEC;
153
154
  output_proof: CODEC;
154
155
  };
156
+ export declare const DalPublishCommitmentSchema: {
157
+ source: CODEC;
158
+ fee: CODEC;
159
+ counter: CODEC;
160
+ gas_limit: CODEC;
161
+ storage_limit: CODEC;
162
+ slot_header: CODEC;
163
+ };
155
164
  export declare const FailingNoopSchema: {
156
165
  arbitrary: CODEC;
157
166
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/local-forging",
3
- "version": "20.0.0-beta.0",
3
+ "version": "20.0.0",
4
4
  "description": "Provide local forging functionality to be with taquito",
5
5
  "keywords": [
6
6
  "tezos",
@@ -67,12 +67,12 @@
67
67
  ]
68
68
  },
69
69
  "dependencies": {
70
- "@taquito/core": "^20.0.0-beta.0",
71
- "@taquito/utils": "^20.0.0-beta.0",
70
+ "@taquito/core": "^20.0.0",
71
+ "@taquito/utils": "^20.0.0",
72
72
  "bignumber.js": "^9.1.2"
73
73
  },
74
74
  "devDependencies": {
75
- "@taquito/rpc": "^20.0.0-beta.0",
75
+ "@taquito/rpc": "^20.0.0",
76
76
  "@types/bluebird": "^3.5.40",
77
77
  "@types/estree": "^1.0.2",
78
78
  "@types/jest": "^29.5.5",
@@ -104,5 +104,5 @@
104
104
  "webpack": "^5.89.0",
105
105
  "webpack-cli": "^5.1.4"
106
106
  },
107
- "gitHead": "88980709574468fad5e4e7d63d34e1d71accf550"
107
+ "gitHead": "4871f03155be8dfce81ff24cb45fe0e3049c7646"
108
108
  }