@taquito/local-forging
Advanced tools
Comparing version 16.0.1 to 16.1.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.txRollupIdDecoder = exports.txRollupIdEncoder = exports.txRollupOriginationParamDecoder = exports.txRollupOriginationParamEncoder = 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.smartRollupContractAddressEncoder = exports.publicKeyDecoder = exports.smartContractAddressEncoder = exports.smartRollupAddressEncoder = exports.addressEncoder = exports.publicKeyEncoder = exports.pkhEncoder = 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.pkhDecoder = exports.branchDecoder = exports.tz1Decoder = exports.prefixDecoder = exports.prefixEncoder = void 0; | ||
exports.smartRollupMessageDecoder = exports.smartRollupMessageEncoder = exports.paddedBytesDecoder = exports.paddedBytesEncoder = exports.burnLimitDecoder = exports.burnLimitEncoder = exports.txRollupBatchContentDecoder = exports.txRollupBatchContentEncoder = void 0; | ||
exports.smartRollupMessageDecoder = exports.smartRollupMessageEncoder = exports.paddedBytesDecoder = exports.paddedBytesEncoder = exports.depositsLimitDecoder = exports.depositsLimitEncoder = exports.burnLimitDecoder = exports.burnLimitEncoder = exports.txRollupBatchContentDecoder = exports.txRollupBatchContentEncoder = void 0; | ||
const utils_1 = require("@taquito/utils"); | ||
@@ -440,2 +440,13 @@ const error_1 = require("./error"); | ||
exports.burnLimitDecoder = burnLimitDecoder; | ||
const depositsLimitEncoder = (val) => { | ||
return !val ? '00' : `ff${exports.zarithEncoder(val)}`; | ||
}; | ||
exports.depositsLimitEncoder = depositsLimitEncoder; | ||
const depositsLimitDecoder = (value) => { | ||
const prefix = value.consume(1); | ||
if (Buffer.from(prefix).toString('hex') !== '00') { | ||
return exports.zarithDecoder(value); | ||
} | ||
}; | ||
exports.depositsLimitDecoder = depositsLimitDecoder; | ||
const paddedBytesEncoder = (val, paddingLength = 8) => { | ||
@@ -442,0 +453,0 @@ return `${utils_2.pad(val.length / 2, paddingLength)}${val}`; |
@@ -59,2 +59,4 @@ "use strict"; | ||
CODEC["OP_DRAIN_DELEGATE"] = "drain_delegate"; | ||
CODEC["DEPOSITS_LIMIT"] = "deposits_limit"; | ||
CODEC["OP_SET_DEPOSITS_LIMIT"] = "set_deposits_limit"; | ||
CODEC["OP_SMART_ROLLUP_ORIGINATE"] = "smart_rollup_originate"; | ||
@@ -247,2 +249,3 @@ CODEC["PVM_KIND"] = "pvm_kind"; | ||
0x9e: 'transfer_ticket', | ||
0x70: 'set_deposits_limit', | ||
0x71: 'increase_paid_storage', | ||
@@ -249,0 +252,0 @@ 0x72: 'update_consensus_key', |
@@ -36,2 +36,3 @@ "use strict"; | ||
[constants_1.CODEC.BURN_LIMIT]: codec_1.burnLimitDecoder, | ||
[constants_1.CODEC.DEPOSITS_LIMIT]: codec_1.depositsLimitDecoder, | ||
[constants_1.CODEC.PVM_KIND]: codec_1.pvmKindDecoder, | ||
@@ -62,2 +63,3 @@ [constants_1.CODEC.PADDED_BYTES]: codec_1.paddedBytesDecoder, | ||
exports.decoders[constants_1.CODEC.MANAGER] = operation_1.schemaDecoder(exports.decoders)(operation_1.ManagerOperationSchema); | ||
exports.decoders[constants_1.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.SetDepositsLimitSchema)(val); | ||
//# sourceMappingURL=decoder.js.map |
@@ -35,2 +35,3 @@ "use strict"; | ||
[constants_1.CODEC.BURN_LIMIT]: codec_1.burnLimitEncoder, | ||
[constants_1.CODEC.DEPOSITS_LIMIT]: codec_1.depositsLimitEncoder, | ||
[constants_1.CODEC.PVM_KIND]: codec_1.pvmKindEncoder, | ||
@@ -61,2 +62,3 @@ [constants_1.CODEC.PADDED_BYTES]: codec_1.paddedBytesEncoder, | ||
exports.encoders[constants_1.CODEC.MANAGER] = operation_1.schemaEncoder(exports.encoders)(operation_1.ManagerOperationSchema); | ||
exports.encoders[constants_1.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.SetDepositsLimitSchema)(val); | ||
//# sourceMappingURL=encoder.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.schemaDecoder = exports.schemaEncoder = exports.operationDecoder = exports.operationEncoder = exports.SmartRollupExecuteOutboxMessageSchema = exports.SmartRollupAddMessagesSchema = exports.SmartRollupOriginateSchema = exports.DrainDelegateSchema = exports.UpdateConsensusKeySchema = exports.IncreasePaidStorageSchema = exports.TxRollupSubmitBatchSchema = exports.TxRollupOriginationSchema = exports.TransferTicketSchema = exports.RegisterGlobalConstantSchema = exports.ProposalsSchema = exports.SeedNonceRevelationSchema = exports.EndorsementSchema = exports.BallotSchema = exports.OriginationSchema = exports.TransactionSchema = exports.DelegationSchema = exports.RevealSchema = exports.ActivationSchema = exports.ManagerOperationSchema = void 0; | ||
exports.schemaDecoder = exports.schemaEncoder = exports.operationDecoder = exports.operationEncoder = exports.SmartRollupExecuteOutboxMessageSchema = exports.SmartRollupAddMessagesSchema = exports.SmartRollupOriginateSchema = exports.SetDepositsLimitSchema = exports.DrainDelegateSchema = exports.UpdateConsensusKeySchema = exports.IncreasePaidStorageSchema = exports.TxRollupSubmitBatchSchema = exports.TxRollupOriginationSchema = exports.TransferTicketSchema = exports.RegisterGlobalConstantSchema = exports.ProposalsSchema = exports.SeedNonceRevelationSchema = exports.EndorsementSchema = exports.BallotSchema = exports.OriginationSchema = exports.TransactionSchema = exports.DelegationSchema = exports.RevealSchema = exports.ActivationSchema = exports.ManagerOperationSchema = void 0; | ||
const constants_1 = require("../constants"); | ||
@@ -133,2 +133,10 @@ const utils_1 = require("@taquito/utils"); | ||
}; | ||
exports.SetDepositsLimitSchema = { | ||
source: constants_1.CODEC.PKH, | ||
fee: constants_1.CODEC.ZARITH, | ||
counter: constants_1.CODEC.ZARITH, | ||
gas_limit: constants_1.CODEC.ZARITH, | ||
storage_limit: constants_1.CODEC.ZARITH, | ||
limit: constants_1.CODEC.DEPOSITS_LIMIT, | ||
}; | ||
exports.SmartRollupOriginateSchema = { | ||
@@ -135,0 +143,0 @@ source: constants_1.CODEC.PKH, |
@@ -73,2 +73,5 @@ "use strict"; | ||
} | ||
else if (content.kind === 'set_deposits_limit' && diff[0] === 'limit') { | ||
continue; | ||
} | ||
else if (content.kind === 'tx_rollup_submit_batch' && | ||
@@ -75,0 +78,0 @@ diff[0] === 'burn_limit') { |
@@ -22,2 +22,3 @@ "use strict"; | ||
drain_delegate: operation_1.DrainDelegateSchema, | ||
set_deposits_limit: operation_1.SetDepositsLimitSchema, | ||
smart_rollup_originate: operation_1.SmartRollupOriginateSchema, | ||
@@ -24,0 +25,0 @@ smart_rollup_add_messages: operation_1.SmartRollupAddMessagesSchema, |
@@ -6,5 +6,5 @@ "use strict"; | ||
exports.VERSION = { | ||
"commitHash": "c050a62135022aa2e61ba6ef72a98f9c89f1682c", | ||
"version": "16.0.1" | ||
"commitHash": "840f2a29ce4e52826df53e5a1ac879c2deaa433b", | ||
"version": "16.1.0" | ||
}; | ||
//# sourceMappingURL=version.js.map |
@@ -63,2 +63,4 @@ import { Prefix, buf2hex, b58cdecode, prefix, prefixLength, b58cencode, InvalidKeyHashError, InvalidPublicKeyError, InvalidAddressError, InvalidContractAddressError, InvalidOperationKindError, validateBlock, ValidationResult } from '@taquito/utils'; | ||
CODEC["OP_DRAIN_DELEGATE"] = "drain_delegate"; | ||
CODEC["DEPOSITS_LIMIT"] = "deposits_limit"; | ||
CODEC["OP_SET_DEPOSITS_LIMIT"] = "set_deposits_limit"; | ||
CODEC["OP_SMART_ROLLUP_ORIGINATE"] = "smart_rollup_originate"; | ||
@@ -251,2 +253,3 @@ CODEC["PVM_KIND"] = "pvm_kind"; | ||
0x9e: 'transfer_ticket', | ||
0x70: 'set_deposits_limit', | ||
0x71: 'increase_paid_storage', | ||
@@ -1104,2 +1107,11 @@ 0x72: 'update_consensus_key', | ||
}; | ||
const depositsLimitEncoder = (val) => { | ||
return !val ? '00' : `ff${zarithEncoder(val)}`; | ||
}; | ||
const depositsLimitDecoder = (value) => { | ||
const prefix = value.consume(1); | ||
if (Buffer.from(prefix).toString('hex') !== '00') { | ||
return zarithDecoder(value); | ||
} | ||
}; | ||
const paddedBytesEncoder = (val, paddingLength = 8) => { | ||
@@ -1250,2 +1262,10 @@ return `${pad(val.length / 2, paddingLength)}${val}`; | ||
}; | ||
const SetDepositsLimitSchema = { | ||
source: CODEC.PKH, | ||
fee: CODEC.ZARITH, | ||
counter: CODEC.ZARITH, | ||
gas_limit: CODEC.ZARITH, | ||
storage_limit: CODEC.ZARITH, | ||
limit: CODEC.DEPOSITS_LIMIT, | ||
}; | ||
const SmartRollupOriginateSchema = { | ||
@@ -1372,2 +1392,3 @@ source: CODEC.PKH, | ||
[CODEC.BURN_LIMIT]: burnLimitDecoder, | ||
[CODEC.DEPOSITS_LIMIT]: depositsLimitDecoder, | ||
[CODEC.PVM_KIND]: pvmKindDecoder, | ||
@@ -1398,2 +1419,3 @@ [CODEC.PADDED_BYTES]: paddedBytesDecoder, | ||
decoders[CODEC.MANAGER] = schemaDecoder(decoders)(ManagerOperationSchema); | ||
decoders[CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => schemaDecoder(decoders)(SetDepositsLimitSchema)(val); | ||
@@ -1427,2 +1449,3 @@ const encoders = { | ||
[CODEC.BURN_LIMIT]: burnLimitEncoder, | ||
[CODEC.DEPOSITS_LIMIT]: depositsLimitEncoder, | ||
[CODEC.PVM_KIND]: pvmKindEncoder, | ||
@@ -1453,2 +1476,3 @@ [CODEC.PADDED_BYTES]: paddedBytesEncoder, | ||
encoders[CODEC.MANAGER] = schemaEncoder(encoders)(ManagerOperationSchema); | ||
encoders[CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => schemaEncoder(encoders)(SetDepositsLimitSchema)(val); | ||
@@ -1472,2 +1496,3 @@ const OperationKindMapping = { | ||
drain_delegate: DrainDelegateSchema, | ||
set_deposits_limit: SetDepositsLimitSchema, | ||
smart_rollup_originate: SmartRollupOriginateSchema, | ||
@@ -1527,4 +1552,4 @@ smart_rollup_add_messages: SmartRollupAddMessagesSchema, | ||
const VERSION = { | ||
"commitHash": "c050a62135022aa2e61ba6ef72a98f9c89f1682c", | ||
"version": "16.0.1" | ||
"commitHash": "840f2a29ce4e52826df53e5a1ac879c2deaa433b", | ||
"version": "16.1.0" | ||
}; | ||
@@ -1570,2 +1595,5 @@ | ||
} | ||
else if (content.kind === 'set_deposits_limit' && diff[0] === 'limit') { | ||
continue; | ||
} | ||
else if (content.kind === 'tx_rollup_submit_batch' && | ||
@@ -1572,0 +1600,0 @@ diff[0] === 'burn_limit') { |
@@ -70,2 +70,4 @@ (function (global, factory) { | ||
CODEC["OP_DRAIN_DELEGATE"] = "drain_delegate"; | ||
CODEC["DEPOSITS_LIMIT"] = "deposits_limit"; | ||
CODEC["OP_SET_DEPOSITS_LIMIT"] = "set_deposits_limit"; | ||
CODEC["OP_SMART_ROLLUP_ORIGINATE"] = "smart_rollup_originate"; | ||
@@ -258,2 +260,3 @@ CODEC["PVM_KIND"] = "pvm_kind"; | ||
0x9e: 'transfer_ticket', | ||
0x70: 'set_deposits_limit', | ||
0x71: 'increase_paid_storage', | ||
@@ -1111,2 +1114,11 @@ 0x72: 'update_consensus_key', | ||
}; | ||
const depositsLimitEncoder = (val) => { | ||
return !val ? '00' : `ff${zarithEncoder(val)}`; | ||
}; | ||
const depositsLimitDecoder = (value) => { | ||
const prefix = value.consume(1); | ||
if (Buffer.from(prefix).toString('hex') !== '00') { | ||
return zarithDecoder(value); | ||
} | ||
}; | ||
const paddedBytesEncoder = (val, paddingLength = 8) => { | ||
@@ -1257,2 +1269,10 @@ return `${pad(val.length / 2, paddingLength)}${val}`; | ||
}; | ||
const SetDepositsLimitSchema = { | ||
source: exports.CODEC.PKH, | ||
fee: exports.CODEC.ZARITH, | ||
counter: exports.CODEC.ZARITH, | ||
gas_limit: exports.CODEC.ZARITH, | ||
storage_limit: exports.CODEC.ZARITH, | ||
limit: exports.CODEC.DEPOSITS_LIMIT, | ||
}; | ||
const SmartRollupOriginateSchema = { | ||
@@ -1379,2 +1399,3 @@ source: exports.CODEC.PKH, | ||
[exports.CODEC.BURN_LIMIT]: burnLimitDecoder, | ||
[exports.CODEC.DEPOSITS_LIMIT]: depositsLimitDecoder, | ||
[exports.CODEC.PVM_KIND]: pvmKindDecoder, | ||
@@ -1405,2 +1426,3 @@ [exports.CODEC.PADDED_BYTES]: paddedBytesDecoder, | ||
decoders[exports.CODEC.MANAGER] = schemaDecoder(decoders)(ManagerOperationSchema); | ||
decoders[exports.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => schemaDecoder(decoders)(SetDepositsLimitSchema)(val); | ||
@@ -1434,2 +1456,3 @@ const encoders = { | ||
[exports.CODEC.BURN_LIMIT]: burnLimitEncoder, | ||
[exports.CODEC.DEPOSITS_LIMIT]: depositsLimitEncoder, | ||
[exports.CODEC.PVM_KIND]: pvmKindEncoder, | ||
@@ -1460,2 +1483,3 @@ [exports.CODEC.PADDED_BYTES]: paddedBytesEncoder, | ||
encoders[exports.CODEC.MANAGER] = schemaEncoder(encoders)(ManagerOperationSchema); | ||
encoders[exports.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => schemaEncoder(encoders)(SetDepositsLimitSchema)(val); | ||
@@ -1479,2 +1503,3 @@ const OperationKindMapping = { | ||
drain_delegate: DrainDelegateSchema, | ||
set_deposits_limit: SetDepositsLimitSchema, | ||
smart_rollup_originate: SmartRollupOriginateSchema, | ||
@@ -1534,4 +1559,4 @@ smart_rollup_add_messages: SmartRollupAddMessagesSchema, | ||
const VERSION = { | ||
"commitHash": "c050a62135022aa2e61ba6ef72a98f9c89f1682c", | ||
"version": "16.0.1" | ||
"commitHash": "840f2a29ce4e52826df53e5a1ac879c2deaa433b", | ||
"version": "16.1.0" | ||
}; | ||
@@ -1577,2 +1602,5 @@ | ||
} | ||
else if (content.kind === 'set_deposits_limit' && diff[0] === 'limit') { | ||
continue; | ||
} | ||
else if (content.kind === 'tx_rollup_submit_batch' && | ||
@@ -1579,0 +1607,0 @@ diff[0] === 'burn_limit') { |
@@ -64,2 +64,4 @@ import { Prefix } from '@taquito/utils'; | ||
export declare const burnLimitDecoder: (value: Uint8ArrayConsumer) => string | undefined; | ||
export declare const depositsLimitEncoder: (val: string) => string; | ||
export declare const depositsLimitDecoder: (value: Uint8ArrayConsumer) => string | undefined; | ||
export declare const paddedBytesEncoder: (val: string, paddingLength?: number) => string; | ||
@@ -66,0 +68,0 @@ export declare const paddedBytesDecoder: (val: Uint8ArrayConsumer) => string; |
@@ -49,2 +49,4 @@ export declare const ENTRYPOINT_MAX_LENGTH = 31; | ||
OP_DRAIN_DELEGATE = "drain_delegate", | ||
DEPOSITS_LIMIT = "deposits_limit", | ||
OP_SET_DEPOSITS_LIMIT = "set_deposits_limit", | ||
OP_SMART_ROLLUP_ORIGINATE = "smart_rollup_originate", | ||
@@ -51,0 +53,0 @@ PVM_KIND = "pvm_kind", |
@@ -130,2 +130,10 @@ import { Decoder } from '../decoder'; | ||
}; | ||
export declare const SetDepositsLimitSchema: { | ||
source: CODEC; | ||
fee: CODEC; | ||
counter: CODEC; | ||
gas_limit: CODEC; | ||
storage_limit: CODEC; | ||
limit: CODEC; | ||
}; | ||
export declare const SmartRollupOriginateSchema: { | ||
@@ -132,0 +140,0 @@ source: CODEC; |
{ | ||
"name": "@taquito/local-forging", | ||
"version": "16.0.1", | ||
"version": "16.1.0", | ||
"description": "Provide local forging functionality to be with taquito", | ||
@@ -71,7 +71,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@taquito/utils": "^16.0.1", | ||
"@taquito/utils": "^16.1.0", | ||
"bignumber.js": "^9.1.0" | ||
}, | ||
"devDependencies": { | ||
"@taquito/rpc": "^16.0.1", | ||
"@taquito/rpc": "^16.1.0", | ||
"@types/bluebird": "^3.5.36", | ||
@@ -109,3 +109,3 @@ "@types/estree": "^1.0.0", | ||
}, | ||
"gitHead": "4683257c69df56e48fd8bee23ea3e19491919e4a" | ||
"gitHead": "3159559187f1356b23fb04ffa3f4263bbda8c5bf" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
551327
5918
Updated@taquito/utils@^16.1.0