@taquito/tzip16 24.3.0-beta.1 → 24.3.0-beta.3

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.
@@ -18,12 +18,16 @@ class TezosStorageHandler {
18
18
  if (!parsedTezosStorageUri) {
19
19
  throw new errors_1.InvalidUriError(`tezos-storage:${location}`);
20
20
  }
21
- const script = await context.readProvider.getScript(parsedTezosStorageUri.contractAddress || contractAbstraction.address, 'head');
21
+ const block = contractAbstraction.readBlock;
22
+ const targetAddress = parsedTezosStorageUri.contractAddress || contractAbstraction.address;
23
+ const script = !parsedTezosStorageUri.contractAddress && block !== 'head'
24
+ ? contractAbstraction.script
25
+ : await context.readProvider.getScript(targetAddress, block);
22
26
  const bigMapId = michelson_encoder_1.Schema.fromRPCResponse({ script }).FindFirstInTopLevelPair(script.storage, typeOfValueToFind);
23
27
  if (!bigMapId || !bigMapId.int) {
24
28
  throw new errors_1.BigMapContractMetadataNotFoundError(bigMapId);
25
29
  }
26
- const bytes = await context.contract.getBigMapKeyByID(bigMapId.int.toString(), parsedTezosStorageUri.path, new michelson_encoder_1.Schema(typeOfValueToFind));
30
+ const bytes = await context.contract.getBigMapKeyByID(bigMapId.int.toString(), parsedTezosStorageUri.path, new michelson_encoder_1.Schema(typeOfValueToFind), block);
27
31
  if (!bytes) {
28
32
  throw new errors_1.ContractMetadataNotFoundError(`No '${parsedTezosStorageUri.path}' key found in the big map %metadata of the contract ${parsedTezosStorageUri.contractAddress || contractAbstraction.address}`);
29
33
  }
@@ -3,13 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MetadataProvider = void 0;
4
4
  const errors_1 = require("./errors");
5
5
  const tzip16_utils_1 = require("./tzip16-utils");
6
+ const SHA256_PREFIX = 'sha256://0x';
7
+ const SUPPORTED_PROTOCOLS = new Set(['http', 'https', 'ipfs', 'tezos-storage']);
6
8
  /**
7
9
  \* Metadata Provider
8
10
  */
9
11
  class MetadataProvider {
10
12
  constructor(handlers) {
11
13
  this.handlers = handlers;
12
- this.PROTOCOL_REGEX = /(?:sha256:\/\/0x(.*)\/)?(https?|ipfs|tezos-storage):(.*)/;
13
14
  }
14
15
  /**
15
16
  * Fetch the metadata by using the appropriate handler based on the protcol found in the URI
@@ -44,13 +45,28 @@ class MetadataProvider {
44
45
  };
45
46
  }
46
47
  extractProtocolInfo(_uri) {
47
- const extractor = this.PROTOCOL_REGEX.exec(_uri);
48
- if (!extractor)
48
+ let uri = _uri;
49
+ let sha256hash;
50
+ if (uri.startsWith(SHA256_PREFIX)) {
51
+ const sha256EndIndex = uri.indexOf('/', SHA256_PREFIX.length);
52
+ if (sha256EndIndex === -1) {
53
+ return;
54
+ }
55
+ sha256hash = uri.slice(SHA256_PREFIX.length, sha256EndIndex);
56
+ uri = uri.slice(sha256EndIndex + 1);
57
+ }
58
+ const protocolSeparatorIndex = uri.indexOf(':');
59
+ if (protocolSeparatorIndex === -1) {
60
+ return;
61
+ }
62
+ const protocol = uri.slice(0, protocolSeparatorIndex);
63
+ if (!SUPPORTED_PROTOCOLS.has(protocol)) {
49
64
  return;
65
+ }
50
66
  return {
51
- sha256hash: extractor[1],
52
- protocol: extractor[2],
53
- location: extractor[3],
67
+ sha256hash,
68
+ protocol,
69
+ location: uri.slice(protocolSeparatorIndex + 1),
54
70
  };
55
71
  }
56
72
  }
@@ -21,11 +21,13 @@ class Tzip16ContractAbstraction {
21
21
  this._metadataProvider = context.metadataProvider;
22
22
  }
23
23
  async findMetadataBigMap() {
24
- const metadataBigMapId = this.constractAbstraction.schema.FindFirstInTopLevelPair(await this.context.readProvider.getStorage(this.constractAbstraction.address, 'head'), metadataBigMapType);
24
+ const metadataBigMapId = this.constractAbstraction.schema.FindFirstInTopLevelPair(this.constractAbstraction.readBlock === 'head'
25
+ ? await this.context.readProvider.getStorage(this.constractAbstraction.address, 'head')
26
+ : this.constractAbstraction.script.storage, metadataBigMapType);
25
27
  if (!metadataBigMapId || !metadataBigMapId.int) {
26
28
  throw new errors_1.BigMapContractMetadataNotFoundError(metadataBigMapId);
27
29
  }
28
- return new taquito_1.BigMapAbstraction(new bignumber_js_1.default(metadataBigMapId['int']), new michelson_encoder_1.Schema(metadataBigMapType), this.context.contract);
30
+ return new taquito_1.BigMapAbstraction(new bignumber_js_1.default(metadataBigMapId['int']), new michelson_encoder_1.Schema(metadataBigMapType), this.context.contract, this.constractAbstraction.readBlock);
29
31
  }
30
32
  async getUriOrFail() {
31
33
  const metadataBigMap = await this.findMetadataBigMap();
@@ -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!
5
5
  exports.VERSION = {
6
- "commitHash": "05df48fee92f846cba793920d6fa829afd6a1847",
7
- "version": "24.3.0-beta.1"
6
+ "commitHash": "a312cd3f4fc0ab0fb3351bfffe6ad855772cb077",
7
+ "version": "24.3.0-beta.3"
8
8
  };
@@ -118,10 +118,12 @@ class MichelsonStorageView {
118
118
  const storageType = this.contract.script.code.find((x) => x.prim === 'storage');
119
119
  const storageArgs = storageType.args[0];
120
120
  // currentContext
121
- const storageValue = await this.readProvider.getStorage(this.contract.address, 'head');
121
+ const storageValue = this.contract.readBlock === 'head'
122
+ ? await this.readProvider.getStorage(this.contract.address, 'head')
123
+ : this.contract.script.storage;
122
124
  const chainId = await this.readProvider.getChainId();
123
- const contractBalance = (await this.readProvider.getBalance(this.contract.address, 'head')).toString();
124
- const blockTimestamp = await this.readProvider.getBlockTimestamp('head');
125
+ const contractBalance = (await this.readProvider.getBalance(this.contract.address, this.contract.readBlock)).toString();
126
+ const blockTimestamp = await this.readProvider.getBlockTimestamp(this.contract.readBlock);
125
127
  const code = this.adaptViewCodeToContext(this.code, contractBalance, blockTimestamp, chainId);
126
128
  if (!this.viewParameterType) {
127
129
  code.unshift({ prim: 'CDR' });
@@ -160,12 +160,16 @@ class TezosStorageHandler {
160
160
  if (!parsedTezosStorageUri) {
161
161
  throw new InvalidUriError(`tezos-storage:${location}`);
162
162
  }
163
- const script = await context.readProvider.getScript(parsedTezosStorageUri.contractAddress || contractAbstraction.address, 'head');
163
+ const block = contractAbstraction.readBlock;
164
+ const targetAddress = parsedTezosStorageUri.contractAddress || contractAbstraction.address;
165
+ const script = !parsedTezosStorageUri.contractAddress && block !== 'head'
166
+ ? contractAbstraction.script
167
+ : await context.readProvider.getScript(targetAddress, block);
164
168
  const bigMapId = Schema.fromRPCResponse({ script }).FindFirstInTopLevelPair(script.storage, typeOfValueToFind);
165
169
  if (!bigMapId || !bigMapId.int) {
166
170
  throw new BigMapContractMetadataNotFoundError(bigMapId);
167
171
  }
168
- const bytes = await context.contract.getBigMapKeyByID(bigMapId.int.toString(), parsedTezosStorageUri.path, new Schema(typeOfValueToFind));
172
+ const bytes = await context.contract.getBigMapKeyByID(bigMapId.int.toString(), parsedTezosStorageUri.path, new Schema(typeOfValueToFind), block);
169
173
  if (!bytes) {
170
174
  throw new ContractMetadataNotFoundError(`No '${parsedTezosStorageUri.path}' key found in the big map %metadata of the contract ${parsedTezosStorageUri.contractAddress || contractAbstraction.address}`);
171
175
  }
@@ -326,10 +330,12 @@ class MichelsonStorageView {
326
330
  const storageType = this.contract.script.code.find((x) => x.prim === 'storage');
327
331
  const storageArgs = storageType.args[0];
328
332
  // currentContext
329
- const storageValue = await this.readProvider.getStorage(this.contract.address, 'head');
333
+ const storageValue = this.contract.readBlock === 'head'
334
+ ? await this.readProvider.getStorage(this.contract.address, 'head')
335
+ : this.contract.script.storage;
330
336
  const chainId = await this.readProvider.getChainId();
331
- const contractBalance = (await this.readProvider.getBalance(this.contract.address, 'head')).toString();
332
- const blockTimestamp = await this.readProvider.getBlockTimestamp('head');
337
+ const contractBalance = (await this.readProvider.getBalance(this.contract.address, this.contract.readBlock)).toString();
338
+ const blockTimestamp = await this.readProvider.getBlockTimestamp(this.contract.readBlock);
333
339
  const code = this.adaptViewCodeToContext(this.code, contractBalance, blockTimestamp, chainId);
334
340
  if (!this.viewParameterType) {
335
341
  code.unshift({ prim: 'CDR' });
@@ -408,11 +414,13 @@ class Tzip16ContractAbstraction {
408
414
  this._metadataProvider = context.metadataProvider;
409
415
  }
410
416
  async findMetadataBigMap() {
411
- const metadataBigMapId = this.constractAbstraction.schema.FindFirstInTopLevelPair(await this.context.readProvider.getStorage(this.constractAbstraction.address, 'head'), metadataBigMapType);
417
+ const metadataBigMapId = this.constractAbstraction.schema.FindFirstInTopLevelPair(this.constractAbstraction.readBlock === 'head'
418
+ ? await this.context.readProvider.getStorage(this.constractAbstraction.address, 'head')
419
+ : this.constractAbstraction.script.storage, metadataBigMapType);
412
420
  if (!metadataBigMapId || !metadataBigMapId.int) {
413
421
  throw new BigMapContractMetadataNotFoundError(metadataBigMapId);
414
422
  }
415
- return new BigMapAbstraction(new BigNumber(metadataBigMapId['int']), new Schema(metadataBigMapType), this.context.contract);
423
+ return new BigMapAbstraction(new BigNumber(metadataBigMapId['int']), new Schema(metadataBigMapType), this.context.contract, this.constractAbstraction.readBlock);
416
424
  }
417
425
  async getUriOrFail() {
418
426
  const metadataBigMap = await this.findMetadataBigMap();
@@ -538,13 +546,14 @@ function calculateSHA256Hash(preimage) {
538
546
  return CryptoJS.SHA256(preimage).toString(CryptoJS.enc.Hex);
539
547
  }
540
548
 
549
+ const SHA256_PREFIX = 'sha256://0x';
550
+ const SUPPORTED_PROTOCOLS = new Set(['http', 'https', 'ipfs', 'tezos-storage']);
541
551
  /**
542
552
  \* Metadata Provider
543
553
  */
544
554
  class MetadataProvider {
545
555
  constructor(handlers) {
546
556
  this.handlers = handlers;
547
- this.PROTOCOL_REGEX = /(?:sha256:\/\/0x(.*)\/)?(https?|ipfs|tezos-storage):(.*)/;
548
557
  }
549
558
  /**
550
559
  * Fetch the metadata by using the appropriate handler based on the protcol found in the URI
@@ -579,13 +588,28 @@ class MetadataProvider {
579
588
  };
580
589
  }
581
590
  extractProtocolInfo(_uri) {
582
- const extractor = this.PROTOCOL_REGEX.exec(_uri);
583
- if (!extractor)
591
+ let uri = _uri;
592
+ let sha256hash;
593
+ if (uri.startsWith(SHA256_PREFIX)) {
594
+ const sha256EndIndex = uri.indexOf('/', SHA256_PREFIX.length);
595
+ if (sha256EndIndex === -1) {
596
+ return;
597
+ }
598
+ sha256hash = uri.slice(SHA256_PREFIX.length, sha256EndIndex);
599
+ uri = uri.slice(sha256EndIndex + 1);
600
+ }
601
+ const protocolSeparatorIndex = uri.indexOf(':');
602
+ if (protocolSeparatorIndex === -1) {
584
603
  return;
604
+ }
605
+ const protocol = uri.slice(0, protocolSeparatorIndex);
606
+ if (!SUPPORTED_PROTOCOLS.has(protocol)) {
607
+ return;
608
+ }
585
609
  return {
586
- sha256hash: extractor[1],
587
- protocol: extractor[2],
588
- location: extractor[3],
610
+ sha256hash,
611
+ protocol,
612
+ location: uri.slice(protocolSeparatorIndex + 1),
589
613
  };
590
614
  }
591
615
  }
@@ -607,8 +631,8 @@ class Tzip16Module {
607
631
 
608
632
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
609
633
  const VERSION = {
610
- "commitHash": "05df48fee92f846cba793920d6fa829afd6a1847",
611
- "version": "24.3.0-beta.1"
634
+ "commitHash": "a312cd3f4fc0ab0fb3351bfffe6ad855772cb077",
635
+ "version": "24.3.0-beta.3"
612
636
  };
613
637
 
614
638
  export { BigMapContractMetadataNotFoundError, ContractMetadataNotFoundError, DEFAULT_HANDLERS, ForbiddenInstructionInViewCodeError, HttpHandler, InvalidContractMetadataError, InvalidContractMetadataTypeError, InvalidUriError, IpfsHttpHandler, MetadataProvider, MichelsonStorageView, NoParameterExpectedError, ProtocolNotSupportedError, TezosStorageHandler, Tzip16ContractAbstraction, Tzip16Module, UnconfiguredContractMetadataProviderError, UriNotFoundError, VERSION, ViewFactory, ViewImplementationType, calculateSHA256Hash, tzip16 };
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-tzip16.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taquito-tzip16.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -157,12 +157,16 @@
157
157
  if (!parsedTezosStorageUri) {
158
158
  throw new InvalidUriError(`tezos-storage:${location}`);
159
159
  }
160
- const script = await context.readProvider.getScript(parsedTezosStorageUri.contractAddress || contractAbstraction.address, 'head');
160
+ const block = contractAbstraction.readBlock;
161
+ const targetAddress = parsedTezosStorageUri.contractAddress || contractAbstraction.address;
162
+ const script = !parsedTezosStorageUri.contractAddress && block !== 'head'
163
+ ? contractAbstraction.script
164
+ : await context.readProvider.getScript(targetAddress, block);
161
165
  const bigMapId = michelsonEncoder.Schema.fromRPCResponse({ script }).FindFirstInTopLevelPair(script.storage, typeOfValueToFind);
162
166
  if (!bigMapId || !bigMapId.int) {
163
167
  throw new BigMapContractMetadataNotFoundError(bigMapId);
164
168
  }
165
- const bytes = await context.contract.getBigMapKeyByID(bigMapId.int.toString(), parsedTezosStorageUri.path, new michelsonEncoder.Schema(typeOfValueToFind));
169
+ const bytes = await context.contract.getBigMapKeyByID(bigMapId.int.toString(), parsedTezosStorageUri.path, new michelsonEncoder.Schema(typeOfValueToFind), block);
166
170
  if (!bytes) {
167
171
  throw new ContractMetadataNotFoundError(`No '${parsedTezosStorageUri.path}' key found in the big map %metadata of the contract ${parsedTezosStorageUri.contractAddress || contractAbstraction.address}`);
168
172
  }
@@ -323,10 +327,12 @@
323
327
  const storageType = this.contract.script.code.find((x) => x.prim === 'storage');
324
328
  const storageArgs = storageType.args[0];
325
329
  // currentContext
326
- const storageValue = await this.readProvider.getStorage(this.contract.address, 'head');
330
+ const storageValue = this.contract.readBlock === 'head'
331
+ ? await this.readProvider.getStorage(this.contract.address, 'head')
332
+ : this.contract.script.storage;
327
333
  const chainId = await this.readProvider.getChainId();
328
- const contractBalance = (await this.readProvider.getBalance(this.contract.address, 'head')).toString();
329
- const blockTimestamp = await this.readProvider.getBlockTimestamp('head');
334
+ const contractBalance = (await this.readProvider.getBalance(this.contract.address, this.contract.readBlock)).toString();
335
+ const blockTimestamp = await this.readProvider.getBlockTimestamp(this.contract.readBlock);
330
336
  const code = this.adaptViewCodeToContext(this.code, contractBalance, blockTimestamp, chainId);
331
337
  if (!this.viewParameterType) {
332
338
  code.unshift({ prim: 'CDR' });
@@ -405,11 +411,13 @@
405
411
  this._metadataProvider = context.metadataProvider;
406
412
  }
407
413
  async findMetadataBigMap() {
408
- const metadataBigMapId = this.constractAbstraction.schema.FindFirstInTopLevelPair(await this.context.readProvider.getStorage(this.constractAbstraction.address, 'head'), metadataBigMapType);
414
+ const metadataBigMapId = this.constractAbstraction.schema.FindFirstInTopLevelPair(this.constractAbstraction.readBlock === 'head'
415
+ ? await this.context.readProvider.getStorage(this.constractAbstraction.address, 'head')
416
+ : this.constractAbstraction.script.storage, metadataBigMapType);
409
417
  if (!metadataBigMapId || !metadataBigMapId.int) {
410
418
  throw new BigMapContractMetadataNotFoundError(metadataBigMapId);
411
419
  }
412
- return new taquito.BigMapAbstraction(new BigNumber(metadataBigMapId['int']), new michelsonEncoder.Schema(metadataBigMapType), this.context.contract);
420
+ return new taquito.BigMapAbstraction(new BigNumber(metadataBigMapId['int']), new michelsonEncoder.Schema(metadataBigMapType), this.context.contract, this.constractAbstraction.readBlock);
413
421
  }
414
422
  async getUriOrFail() {
415
423
  const metadataBigMap = await this.findMetadataBigMap();
@@ -535,13 +543,14 @@
535
543
  return CryptoJS.SHA256(preimage).toString(CryptoJS.enc.Hex);
536
544
  }
537
545
 
546
+ const SHA256_PREFIX = 'sha256://0x';
547
+ const SUPPORTED_PROTOCOLS = new Set(['http', 'https', 'ipfs', 'tezos-storage']);
538
548
  /**
539
549
  \* Metadata Provider
540
550
  */
541
551
  class MetadataProvider {
542
552
  constructor(handlers) {
543
553
  this.handlers = handlers;
544
- this.PROTOCOL_REGEX = /(?:sha256:\/\/0x(.*)\/)?(https?|ipfs|tezos-storage):(.*)/;
545
554
  }
546
555
  /**
547
556
  * Fetch the metadata by using the appropriate handler based on the protcol found in the URI
@@ -576,13 +585,28 @@
576
585
  };
577
586
  }
578
587
  extractProtocolInfo(_uri) {
579
- const extractor = this.PROTOCOL_REGEX.exec(_uri);
580
- if (!extractor)
588
+ let uri = _uri;
589
+ let sha256hash;
590
+ if (uri.startsWith(SHA256_PREFIX)) {
591
+ const sha256EndIndex = uri.indexOf('/', SHA256_PREFIX.length);
592
+ if (sha256EndIndex === -1) {
593
+ return;
594
+ }
595
+ sha256hash = uri.slice(SHA256_PREFIX.length, sha256EndIndex);
596
+ uri = uri.slice(sha256EndIndex + 1);
597
+ }
598
+ const protocolSeparatorIndex = uri.indexOf(':');
599
+ if (protocolSeparatorIndex === -1) {
581
600
  return;
601
+ }
602
+ const protocol = uri.slice(0, protocolSeparatorIndex);
603
+ if (!SUPPORTED_PROTOCOLS.has(protocol)) {
604
+ return;
605
+ }
582
606
  return {
583
- sha256hash: extractor[1],
584
- protocol: extractor[2],
585
- location: extractor[3],
607
+ sha256hash,
608
+ protocol,
609
+ location: uri.slice(protocolSeparatorIndex + 1),
586
610
  };
587
611
  }
588
612
  }
@@ -604,8 +628,8 @@
604
628
 
605
629
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
606
630
  const VERSION = {
607
- "commitHash": "05df48fee92f846cba793920d6fa829afd6a1847",
608
- "version": "24.3.0-beta.1"
631
+ "commitHash": "a312cd3f4fc0ab0fb3351bfffe6ad855772cb077",
632
+ "version": "24.3.0-beta.3"
609
633
  };
610
634
 
611
635
  Object.defineProperty(exports, "InvalidViewParameterError", {
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-tzip16.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taquito-tzip16.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -23,7 +23,6 @@ export interface Tzip16Uri {
23
23
  */
24
24
  export declare class MetadataProvider implements MetadataProviderInterface {
25
25
  private handlers;
26
- private readonly PROTOCOL_REGEX;
27
26
  constructor(handlers: Map<string, Handler>);
28
27
  /**
29
28
  * Fetch the metadata by using the appropriate handler based on the protcol found in the URI
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/tzip16",
3
- "version": "24.3.0-beta.1",
3
+ "version": "24.3.0-beta.3",
4
4
  "description": "TZIP-16 contract metadata support for Taquito.",
5
5
  "keywords": [
6
6
  "taquito",
@@ -12,7 +12,6 @@
12
12
  "module": "dist/taquito-tzip16.es6.js",
13
13
  "typings": "dist/types/taquito-tzip16.d.ts",
14
14
  "files": [
15
- "signature.json",
16
15
  "dist"
17
16
  ],
18
17
  "publishConfig": {
@@ -40,7 +39,7 @@
40
39
  "lint": "eslint --ext .js,.ts .",
41
40
  "precommit": "lint-staged",
42
41
  "prebuild": "rimraf dist",
43
- "test": "jest --collectCoverage",
42
+ "test": "vitest run --config ./vitest.config.ts",
44
43
  "version-stamp": "node ../taquito/version-stamping.js",
45
44
  "build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts --bundleConfigAsCjs",
46
45
  "start": "rollup -c rollup.config.ts --bundleConfigAsCjs -w"
@@ -51,61 +50,36 @@
51
50
  "eslint --fix"
52
51
  ]
53
52
  },
54
- "jest": {
55
- "transform": {
56
- ".(ts|tsx)": "ts-jest"
57
- },
58
- "testEnvironment": "node",
59
- "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
60
- "moduleFileExtensions": [
61
- "ts",
62
- "tsx",
63
- "js"
64
- ],
65
- "coveragePathIgnorePatterns": [
66
- "/node_modules/",
67
- "/test/"
68
- ],
69
- "collectCoverageFrom": [
70
- "src/**/*.{js,ts}"
71
- ]
72
- },
73
53
  "dependencies": {
74
- "@taquito/core": "^24.3.0-beta.1",
75
- "@taquito/http-utils": "^24.3.0-beta.1",
76
- "@taquito/michelson-encoder": "^24.3.0-beta.1",
77
- "@taquito/rpc": "^24.3.0-beta.1",
78
- "@taquito/taquito": "^24.3.0-beta.1",
79
- "@taquito/utils": "^24.3.0-beta.1",
80
- "bignumber.js": "^9.1.2",
81
- "crypto-js": "^4.2.0",
82
- "whatwg-url": "^15.1.0"
54
+ "@taquito/core": "^24.3.0-beta.3",
55
+ "@taquito/http-utils": "^24.3.0-beta.3",
56
+ "@taquito/michelson-encoder": "^24.3.0-beta.3",
57
+ "@taquito/rpc": "^24.3.0-beta.3",
58
+ "@taquito/taquito": "^24.3.0-beta.3",
59
+ "@taquito/utils": "^24.3.0-beta.3",
60
+ "bignumber.js": "^10.0.2",
61
+ "crypto-js": "^4.2.0"
83
62
  },
84
63
  "devDependencies": {
85
64
  "@types/bluebird": "^3.5.42",
86
65
  "@types/crypto-js": "^4.2.2",
87
- "@types/jest": "^29.5.12",
88
- "@types/node": "^20",
66
+ "@types/node": "^22.0.0",
89
67
  "@types/ws": "^8.5.12",
90
68
  "@typescript-eslint/eslint-plugin": "^6.21.0",
91
69
  "@typescript-eslint/parser": "^6.21.0",
92
70
  "colors": "^1.4.0",
93
- "coveralls": "^3.1.1",
94
71
  "cross-env": "^7.0.3",
95
72
  "eslint": "^8.57.0",
96
- "jest": "^29.7.0",
97
- "jest-config": "^29.7.0",
98
73
  "lint-staged": "^15.2.7",
99
74
  "lodash.camelcase": "^4.3.0",
100
75
  "prettier": "^3.3.3",
101
76
  "prompt": "^1.3.0",
102
77
  "replace-in-file": "^8.1.0",
103
78
  "rimraf": "^6.0.1",
104
- "rollup": "^4.59.0",
79
+ "rollup": "^4.60.1",
105
80
  "rollup-plugin-json": "^4.0.0",
106
- "rollup-plugin-typescript2": "^0.36.0",
81
+ "rollup-plugin-typescript2": "^0.37.0",
107
82
  "shelljs": "^0.8.5",
108
- "ts-jest": "^29.2.3",
109
83
  "ts-node": "^10.9.2",
110
84
  "ts-toolbelt": "^9.6.0",
111
85
  "typescript": "^5.9.3"
package/signature.json DELETED
@@ -1,439 +0,0 @@
1
- {
2
- "entries": [
3
- {
4
- "entry": "files/v1alpha2",
5
- "value": {
6
- "files": [
7
- {
8
- "path": "dist/lib/composer.js",
9
- "sha512": "755581ea56cdf66b1be3d2ccf7cf22fa0e94050ccda1dbe34c6633699aa31a34ca42c776d536282e9e1c1e646a2b3fc7659b8777d8bfdd28f168718b8be7e76f"
10
- },
11
- {
12
- "path": "dist/lib/handlers/http-handler.js",
13
- "sha512": "1bf195f7b321ad6fcc5409e4a515522cc5f6cd2df444ad1d3bd6d4539dc762ee30878cfcab8ec6811badb610152b7d65db734af7a3578f74744c9f510b44b52e"
14
- },
15
- {
16
- "path": "dist/lib/viewKind/interface.js",
17
- "sha512": "84f5c8ae6d7a701b8b1694326d9791c726a48902a29042d5cbe85ed3d00adf4bd8aaa61efeac4998102d6b1960235ae8f3991f409641b9fb3096e1e0942933a1"
18
- },
19
- {
20
- "path": "dist/lib/handlers/ipfs-handler.js",
21
- "sha512": "44c2f1770ae24c371adb3c9c725ac517e8afdd7df7147ca9f4fc3416e89ba26cf2c9f5ec2a5a57d807dbed26a95f9cf0a958eb41a5c35de55b617037426e900a"
22
- },
23
- {
24
- "path": "dist/lib/metadata-interface.js",
25
- "sha512": "c60d7138c5b0c56c64fcca049045bd4c85ded9746df180fbd6825afc3634d21468a3d61b7106ec9d5c46ebed1c1feff6c2195ee5b9044421b52152208037a188"
26
- },
27
- {
28
- "path": "dist/lib/metadata-provider.js",
29
- "sha512": "9de76fb53b71dfc48927912cf0b2c9ba216ec18217953b401d59b8978accaa25949a53edf7c097bb4067cac40b36d30f9617986827a45f6afd4f6c15f71e5a16"
30
- },
31
- {
32
- "path": "dist/lib/viewKind/michelson-storage-view.js",
33
- "sha512": "88186ade149bbc845e1dab71ef2a95bee2bb6af329dbcd923d816d419bed56c6e0cfca8403b8c38455dc4a5738ae7a77fbb198d7fa4701bc747d3224a4d549ee"
34
- },
35
- {
36
- "path": "dist/taquito-tzip16.es5.js",
37
- "sha512": "860d1152d68b71a94fa8e0b64caef07b328eded1e5f2667618255b574083089f945ae628e0177718e3a439c0b7781c57d0062a6ae7d307ca0c1a41a3926a1781"
38
- },
39
- {
40
- "path": "dist/lib/taquito-tzip16.js",
41
- "sha512": "f57316b8b241c5b8e7933f6f0202e752999017ce927bee04130239b26078e9308d3a0ce6d9bd21d4e9e78f55942471bfe4f4e54d72d2c1cd231c20703f0534e2"
42
- },
43
- {
44
- "path": "dist/taquito-tzip16.umd.js",
45
- "sha512": "ef833745ad2b44ea14b32f728ab12e695bfbc71cf87129e94c73c454a8a45b9a372dbad002db05979a1536fe36e3fe1bcf541c010a403045d0b046744ad809dd"
46
- },
47
- {
48
- "path": "dist/lib/handlers/tezos-storage-handler.js",
49
- "sha512": "1d685491a2bb79304923178c724b8ec6c79edadefc7add1b82b720bad14dbdce79ed2f82620d66deded9f0b1d6186805896c4a0d17acc097ee0fa10e5a75dd48"
50
- },
51
- {
52
- "path": "dist/lib/tzip16-contract-abstraction.js",
53
- "sha512": "287ff0dc23e8235a4093070f6cefee6a60f05baa7b671b0969ee3a55452952f54e141b5a1871ad19868220ff78cdedbd3298a72465123a2c98cb654d21060519"
54
- },
55
- {
56
- "path": "dist/lib/tzip16-errors.js",
57
- "sha512": "bead9beb384b0119d86d261e50b7ee9a86836581e8e741f475773af2c40845ad293d7788d171e2ab6af7f30c888e0bb55aa240838d972f55200a8c31449d6cab"
58
- },
59
- {
60
- "path": "dist/lib/tzip16-extension.js",
61
- "sha512": "6c0436d484657a6b1e25a0888af074823157a035a89d463ee63fcc5d72c2d490cb97384bb64ba3cd4347b95d676340f6977cd595e7c63d013936258dbaf27e4e"
62
- },
63
- {
64
- "path": "dist/lib/tzip16-utils.js",
65
- "sha512": "4b11206737446eeb1f7a9c866bbf81c708402e7233115c29ca3769e766bc09e675810eb0af4045eb7d9955dbc24e77bbbe0f64801b5abce4a3c73f059ac6e2c5"
66
- },
67
- {
68
- "path": "dist/lib/viewKind/viewFactory.js",
69
- "sha512": "7c068adf572dac528c042983e0b7a96f3f1292c63395c53bf25682e38c028442348f4ee7bf14fb35476832c0e30ff9932631e5d66d348d92ad3f727184bedc39"
70
- },
71
- {
72
- "path": "tsconfig.json",
73
- "sha512": "dc1726b9bdf8a3aa303d7562b73327dafca5305a1dc4c2a666bd92a74e5e06ba2363d05e25f46111695c5bfe647e4dc90352d1a9c398158b9c598ec55909a594"
74
- },
75
- {
76
- "path": "tsconfig.prod.json",
77
- "sha512": "6f9928704743d6aadadc25fdf791083fad58262f7837a7e00a9353b264bcf023963e5474aed209b69e3b36ff91fc2497ec47a62a39c7c1cb036ef34ff1b6f7c6"
78
- },
79
- {
80
- "path": "tslint.json",
81
- "sha512": "f33eefc26af1bc19e47a6cd1ac52f8a65bebfa55b1113330b66871c40c9ce7675720f20018799b394a34a6aaccafe9644ffa94306988f0a8e3f242d7f0b864ba"
82
- },
83
- {
84
- "path": "dist/lib/composer.js.map",
85
- "sha512": "65961d5c9b0d070d2b6db77ff8355bcd0866e5bf01dc35e17174fac74c0f3006f97915144156de0ff2dd1c3d2c53a662d0285438e88832e64871fafb0f5b1690"
86
- },
87
- {
88
- "path": "dist/lib/handlers/http-handler.js.map",
89
- "sha512": "c2b07e605517f9c917b754fac0e38143ae5f5c950577554a85b7b793add7bc13ea6102fc9f506a1eadc86966d03470a293740a0283624c97f6342adb0a609eed"
90
- },
91
- {
92
- "path": "dist/lib/viewKind/interface.js.map",
93
- "sha512": "f77cc8c22224ea49a6e8073ddcf25806cfcf3a38c2c54527d2333e681c1022bd278aa839c8a81c7ac91b5ef32e4959c4608465f1025c4752191293891b9a112e"
94
- },
95
- {
96
- "path": "dist/lib/handlers/ipfs-handler.js.map",
97
- "sha512": "e1140e7e0f40471b54115fc9f674ed65c992fd5ff08147beeb1a45b252a69018e76d94e7c98c6e96475a08a4969bc759a4039dda9d6cf6b10d44d3c7cfa9fa99"
98
- },
99
- {
100
- "path": "dist/lib/metadata-interface.js.map",
101
- "sha512": "3498e39c490480fa03d815ef5a6959508966ce42f5125ef1d6e3db365d165f6ee2d9c0d531440a7fcf6087383b1aaf085f9cdd2bfe22dad04f6d842a9bb15500"
102
- },
103
- {
104
- "path": "dist/lib/metadata-provider.js.map",
105
- "sha512": "594dbbbc8e1e90c475dec027192354bd938bb7af3db2c4df4717a512d5f8f15393a286b772fea199c0113d31749c955ebad81a0120cc1b610f1a8352979bf774"
106
- },
107
- {
108
- "path": "dist/lib/viewKind/michelson-storage-view.js.map",
109
- "sha512": "6f05e5f85bda02d6c491f0b275318eca41262e37e926514b85b78ea773043c8cc5c9d1eca831d907aeaac7d791ed9c4e557d95dba4221b3818650f84759386a2"
110
- },
111
- {
112
- "path": "dist/taquito-tzip16.es5.js.map",
113
- "sha512": "1c77ed20c6e2620ea6f153e62f7d35003786e175ff00a2aa6e051160c2fdbe91d5d4823d4f202850f9de8cd22b779eaba6e7eb9f23ab63bd0bddd137c590aaa6"
114
- },
115
- {
116
- "path": "dist/lib/taquito-tzip16.js.map",
117
- "sha512": "e4c16c1baa5f1d1a6b03ec6f4dfd34288007d128b3b797bcd5bb1d25e1907212f511555aa37faa4a1e6d3e6847e5d3a013100bd72a8dc025b95c8d91a30f8f53"
118
- },
119
- {
120
- "path": "dist/taquito-tzip16.umd.js.map",
121
- "sha512": "3b47d08593b427c8aab343dbb9f1b17206471139b65ae9294f42a706b48dbec0cc6d2a1454101726d8686ab932f79caeaf0aa4cefb5817a7cf6daf20e1cab00b"
122
- },
123
- {
124
- "path": "dist/lib/handlers/tezos-storage-handler.js.map",
125
- "sha512": "80ca62f6caaf58dab54570d0002cf41ab7d647b19f1bcb604edab0ab0bdc417795c1cd3067221c7b9d5e4551d54c589a47c6521355b20a1788c4b9973f9dae38"
126
- },
127
- {
128
- "path": "dist/lib/tzip16-contract-abstraction.js.map",
129
- "sha512": "a44cf2dc67ac0d7dcc031569fe7a4252dbb8d83315399ee5eac777c0e5f2c592549df33c450da75e8cad7fcfbc227084898e5db325932e41a530fd4ff161354e"
130
- },
131
- {
132
- "path": "dist/lib/tzip16-errors.js.map",
133
- "sha512": "f410c72115e774769634366136f68fb512d89fad46706923fed4a002f569a219dca3d5ad2240929ca9fad756fc453c3cba104914a78d38f1b687653903a81864"
134
- },
135
- {
136
- "path": "dist/lib/tzip16-extension.js.map",
137
- "sha512": "712d0b6b1bfc8e291ac9118990239e9726842a4b4a05122aa926ac4ff69ae904204f8c6e3ec9d20cd947b10bc7e0b7a90c12333411503dd9f2a3a6a42d60b821"
138
- },
139
- {
140
- "path": "dist/lib/tzip16-utils.js.map",
141
- "sha512": "f5fcd096aa149b48ec4c3c428ac42b0a21ad2e533b204b39612ebc29be208791c0c5a2589de33d37ca11d21e156d3b8d140d10bfce290c698449a1076b5f64f2"
142
- },
143
- {
144
- "path": "dist/lib/viewKind/viewFactory.js.map",
145
- "sha512": "812d70637f04de676d1b024583fb830a3d57e7bc1c79cbf8bec3ae53db6cf15cc07aef55b1bc8982a634745cb7b63a1dfc3f318d9a06b30ff570b46b61e30a7d"
146
- },
147
- {
148
- "path": "src/metadataProviderRequirements.md",
149
- "sha512": "092fb014dfff3e6621e4993bb9fe859801bd04915e1892bb249bb601b39e2eb02005f4f63d16308c65d20123043f1b7628126d71cff405e90bcccf62a69035ae"
150
- },
151
- {
152
- "path": "dist/types/composer.d.ts",
153
- "sha512": "cb208a037197e056088da13fc9c6416ace1eb978fa125d6c48cb0655719994da1def8dd1d4fa5e33155fe60be3cfe17d2a3ce74b0ea80c705bd04f1dfc5f15d2"
154
- },
155
- {
156
- "path": "src/composer.ts",
157
- "sha512": "da3a531df4649297e91366f4d8ed43105b060ea0411228f5d1640d8a742636e9ded5fd6838f3ca4d0e05946057a779b6e8d3d0ca984ae79ce84cdea5e21842e7"
158
- },
159
- {
160
- "path": "test/data.ts",
161
- "sha512": "da5b9f5914db258d013333f5d412a78881644d23eda0d7053cdc16ad57f7cdd53934550d70b9cb8aff25de8fc6cbbddfd37f8cd76276a123881de6e3eabe043d"
162
- },
163
- {
164
- "path": "dist/types/handlers/http-handler.d.ts",
165
- "sha512": "b362c796d29ba4c3735ada50c91c5e7538a06666fb97df04428695e8381bd07ef95253fdf0593bbac0e667a2a625b11c3c2fed75f104407ca32e0306564a49c3"
166
- },
167
- {
168
- "path": "test/handlers/http-handler.spec.ts",
169
- "sha512": "aaab55b4e2079b9b71798e48cc575efecdc1fcdeef728b96281ac48e413440b18fcb26cc93cc4412634d0c543d07fbc002be34653a5e448ba17e0c23a8bc74d9"
170
- },
171
- {
172
- "path": "src/handlers/http-handler.ts",
173
- "sha512": "825f47156760ea0211359679710623360f35ac44aabc392ab706dde528fd1c177a52e6d387a77914439dc52fb160c62379e167c2b15e7d311687f6e8f8be4ae2"
174
- },
175
- {
176
- "path": "dist/types/viewKind/interface.d.ts",
177
- "sha512": "b01045943a8ae08ead283c3cb48444c974a404da1ee58c0cb501907179e676fe933147282dc3cd5f378f4bc993ef74584f2d74f654150ea6daa45c3e8f1640a9"
178
- },
179
- {
180
- "path": "src/viewKind/interface.ts",
181
- "sha512": "11b4baf5cab86bbf17ddb119eb0bbfe6a550281a51772e3fd5675faf06c311b4ea014af36387321688b007856b27f5094dfe8502748606275fac89768da62ef6"
182
- },
183
- {
184
- "path": "dist/types/handlers/ipfs-handler.d.ts",
185
- "sha512": "2f29a3a8a04be4953e1a441e2167db36d593d923c55f216a836f8ce6095c0d8cd529e6dd4cacb0c12a36d06f2b1ba79bd8a60c612a59efc62aecff914a7ab6d4"
186
- },
187
- {
188
- "path": "test/handlers/ipfs-handler.spec.ts",
189
- "sha512": "129064b593d4c24af7f30217b32c677a870799804f1625e86ba9f6f92b07c0ba209470d6d480f4c8a2cc6aa2e3e96338bb3146f1f2b57f60fedab1dc21f1b8db"
190
- },
191
- {
192
- "path": "src/handlers/ipfs-handler.ts",
193
- "sha512": "e87c3e9d53c8e6ea49d2eedeee3acd23fc8074afa46c6d07aa85a3eb644a99cc4d74c313116fd9796a1f0e25e200e8edfb6e0db6722cbf113c7b1fd3d9885124"
194
- },
195
- {
196
- "path": "dist/types/metadata-interface.d.ts",
197
- "sha512": "d1cae04ba50e1f85d0cbd066e30465e7efc979531c209c7fc93443560fa90a706e6066489e9ff95bfd47d394045e2d51e79a9d01ae731952edd9665058a9e9b2"
198
- },
199
- {
200
- "path": "src/metadata-interface.ts",
201
- "sha512": "795820580749e2b7fa60398fb3f9353d9c1dd4ae025810e2307bb3cc466f553535a309aca96391477743b6d8d3f5cb08a507fd186bb1ad0b725ddaf100259daf"
202
- },
203
- {
204
- "path": "dist/types/metadata-provider.d.ts",
205
- "sha512": "c5958585b0f4ae652f28bceee6c99c8d1eca1ab449191caa943d4ca9d9a815b6657ce72e23ebe93cf772660f29d236dc117fdf016320260707a70e65da675c03"
206
- },
207
- {
208
- "path": "test/metadata-provider.spec.ts",
209
- "sha512": "71368aa191f7b1599003b3f19430abf7e316ee3d95d91b70e7a10c10d5d56927e922f586de9b46a99fda74223b604e3dcfd3b9994e701491681371cc70993848"
210
- },
211
- {
212
- "path": "src/metadata-provider.ts",
213
- "sha512": "26b56c5e6f1047c108f0dd06f5fb55a68bfdb14e54004731ce7a203a16be0c43949e8234e3b6eafc6c31d30d1f37dffe7488ce5a43ebfc4e00c905d44dc38d3c"
214
- },
215
- {
216
- "path": "dist/types/viewKind/michelson-storage-view.d.ts",
217
- "sha512": "788907ffc94a86ac2d215256021de23c910421af181e6a8f9b8ead9bb73c0f5e55bcb585dce12e9c60d5376666d414ba2adb8ca599a200a2a8f14153fdb4ad94"
218
- },
219
- {
220
- "path": "test/viewKind/michelson-storage-view.spec.ts",
221
- "sha512": "898b75aa1867eb13a0642894c60b5dba90c7404b64bbfd8c26d21ad6e5312636108b7690a5bb35ff89fc6d2d6492edb88ecbd6745486eaf3a15848fb068d7bec"
222
- },
223
- {
224
- "path": "src/viewKind/michelson-storage-view.ts",
225
- "sha512": "ac70a0372052b21fffd524ef4f7658dba7ce5019ea09733e8183fb3bcd33f76db10c579b80b40ffe685dec705ccff0df0ef41ce557717025e52da85a526658c0"
226
- },
227
- {
228
- "path": "rollup.config.ts",
229
- "sha512": "28bdc7bf55129ecd9d00c6f25fb7427767f7327e0bc24c3ef66e9cf73574dfb835e09813db232e006e2661e5cd7a8380f6d058969b4c2ccaee3310ca06a73769"
230
- },
231
- {
232
- "path": "dist/types/taquito-tzip16.d.ts",
233
- "sha512": "0993137ba6eb4a6b6435b096b91a285f64cbcf6942e6c2a447484a7b4d08a9eb95aec2b3c6555cd15c0f7d80e9a144ff22cb6928c2d8d6cd15f92ea19e1d22c2"
234
- },
235
- {
236
- "path": "src/taquito-tzip16.ts",
237
- "sha512": "a27096e1a66412b1046c4a399a61f1143edd09b42d5d29fbb71aa504ed0eb5c05823eb4eaa006a7a258b6ea1c5e93763718f17cbf163796b70bf5c78c23702c5"
238
- },
239
- {
240
- "path": "dist/types/handlers/tezos-storage-handler.d.ts",
241
- "sha512": "1fd579ca16060a9312fb2c41fa168a7d0756555ecdb1a0a669a2ffed0739878a1862e50b7b6ebf09141190080859ce3d06ab0a1f0881a07247d5aa8d6d009ecb"
242
- },
243
- {
244
- "path": "test/handlers/tezos-storage-handler.spec.ts",
245
- "sha512": "de95d165109e32cb7346d7257221fbd73b3e7b7996e41156a1d2972250382512ac71eb0ea1f1227c23e00820e0450bc17e9e1d18505e20e9a9a4f61a3443e1c4"
246
- },
247
- {
248
- "path": "src/handlers/tezos-storage-handler.ts",
249
- "sha512": "7df5908cbc9bff1f35f7aa51a8d09db8422c948a72cee8a00c67ab08396bdd8a31ae8c4270f371252f3353804e7eb7877fd85d1899a730474a8549f833b021b1"
250
- },
251
- {
252
- "path": "dist/types/tzip16-contract-abstraction.d.ts",
253
- "sha512": "63b7f1358f056b3ac45c43ac340b6cefae83258c07fca8204324cac29b079a4b635d9ebb7a83d280f3abde996eee3829b492436acf75c1052f1304990c955907"
254
- },
255
- {
256
- "path": "test/tzip16-contract-abstraction.spec.ts",
257
- "sha512": "64f252728d7decdfccd4dc8d97b4061fd1ea1a66a2e65e38c2c8adc94bb8429ca30753148ee034469ba13136c1546e8f66f95e708a7e1b0ed1fcc5c8c3fb93be"
258
- },
259
- {
260
- "path": "src/tzip16-contract-abstraction.ts",
261
- "sha512": "666182ff089bd43648a8e3afd5a7d8e7bdba452652ece378814c28352935abc4d55655277deba7cf0956aad76a27df7858efd996de43ec19a6ef92a5e32b6386"
262
- },
263
- {
264
- "path": "dist/types/tzip16-errors.d.ts",
265
- "sha512": "179ec6f23ba88b8092d72777416dd74a5b20e650c83718d39ce25a6ef5c43bebee5e7b4254dc0dbc3456fd859971112b7796dbd5eb7fa3ff9334b12493439370"
266
- },
267
- {
268
- "path": "src/tzip16-errors.ts",
269
- "sha512": "0b1e69afdfd6d78cecedae60eaf9b17bf65c2cb36dffaad9d34bcd2f023cb932b6fe4da352014461f5209b1d8290ca44cf843eaa256d030a28d1f1fdd6fe3d74"
270
- },
271
- {
272
- "path": "dist/types/tzip16-extension.d.ts",
273
- "sha512": "606c60934f90efbecf752372702291d700b38955cc801d561e0260407d57cd38af8e546498e3da4e157f7cd9dd98f760b0d18e1b3fb636614b2461e5cd3fbf40"
274
- },
275
- {
276
- "path": "src/tzip16-extension.ts",
277
- "sha512": "9c63d917366486249894cc5874792d34fd5dded71f575bcefb97e203df1263f11fcaddb559292ca52ec075c94e84df995355aa36b7ab620920417515006ebc3d"
278
- },
279
- {
280
- "path": "dist/types/tzip16-utils.d.ts",
281
- "sha512": "b89700c743319aa435291d3e8278c4a78c73ea61a8182074304bb4d45e6feb00ddf14719dafb587978297f9850a00db1ae3ea56f5c4d44996f55b066a8ce6eb6"
282
- },
283
- {
284
- "path": "test/tzip16-utils.spec.ts",
285
- "sha512": "10f842a9be2810e6686a5c8d311372a0181af29308d73ba857c3790f22f34ba1eaf9f135d1e41c4ba550f56ad73607053f5debc15155599ad9e22b11ff4776a4"
286
- },
287
- {
288
- "path": "src/tzip16-utils.ts",
289
- "sha512": "52546413ace4c44b747f5290ffcf03fed3f4ed87e72f7287aa6e9b3411abca44525005d0b9e839f65547421325b8105fb95beab4b4a13ae5b161291723043e53"
290
- },
291
- {
292
- "path": "dist/types/viewKind/viewFactory.d.ts",
293
- "sha512": "1b80e2b1139cbc57d74309538b42d4ac9cd05cc6367cdc977016f308df35dfa582a3f8675b660af70c6355b0672b006b70474388e710dade8202cbd7912d03f3"
294
- },
295
- {
296
- "path": "src/viewKind/viewFactory.ts",
297
- "sha512": "f7f0853764e6455ef879fb13865a0013987fb3e312eaff679683cf9db2159eb6b36b45ddaba72fe74d245aaf53f022edc0cae65dd2d4903fb5b5e607b6a66124"
298
- }
299
- ]
300
- }
301
- },
302
- {
303
- "entry": "identity/v1alpha2",
304
- "value": {
305
- "identity": {
306
- "keybaseUser": "jevonearth"
307
- }
308
- }
309
- },
310
- {
311
- "entry": "npmCompatiblePackageJson/v1alpha2",
312
- "value": {
313
- "packageJsonProperties": [
314
- "author",
315
- "dependencies",
316
- "description",
317
- "devDependencies",
318
- "engines",
319
- "gitHead",
320
- "jest",
321
- "keywords",
322
- "license",
323
- "lint-staged",
324
- "main",
325
- "module",
326
- "name",
327
- "publishConfig",
328
- "repository",
329
- "scripts",
330
- "typings",
331
- "version"
332
- ],
333
- "sha512": "e46097793963bf06de84950276dfb5ffd03fc5a0aa531fbf959e467aff78f5b25a64b45fb293e7edcd807ff0eda555de05109742c48a582fcec53d2fea330c55"
334
- }
335
- },
336
- {
337
- "entry": "packageJson/v1alpha2",
338
- "value": {
339
- "packageJson": {
340
- "name": "@taquito/tzip16",
341
- "version": "8.0.4-beta.0",
342
- "description": "Tzip16",
343
- "keywords": [
344
- "tezos",
345
- "blockchain",
346
- "tzip16"
347
- ],
348
- "main": "dist/taquito-tzip16.umd.js",
349
- "module": "dist/taquito-tzip16.es5.js",
350
- "typings": "dist/types/taquito-tzip16.d.ts",
351
- "publishConfig": {
352
- "access": "public"
353
- },
354
- "author": "Roxane Letourneau <roxane@ecadlabs.com>",
355
- "repository": {
356
- "type": "git",
357
- "url": ""
358
- },
359
- "license": "MIT",
360
- "engines": {
361
- "node": ">=18"
362
- },
363
- "scripts": {
364
- "lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
365
- "precommit": "lint-staged",
366
- "prebuild": "rimraf dist",
367
- "test": "jest --collectCoverage",
368
- "build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts",
369
- "start": "rollup -c rollup.config.ts -w"
370
- },
371
- "lint-staged": {
372
- "{src,test}/**/*.ts": [
373
- "prettier --write",
374
- "tslint --fix"
375
- ]
376
- },
377
- "jest": {
378
- "transform": {
379
- ".(ts|tsx)": "ts-jest"
380
- },
381
- "testEnvironment": "node",
382
- "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
383
- "moduleFileExtensions": [
384
- "ts",
385
- "tsx",
386
- "js"
387
- ],
388
- "coveragePathIgnorePatterns": [
389
- "/node_modules/",
390
- "/test/"
391
- ],
392
- "collectCoverageFrom": [
393
- "src/**/*.{js,ts}"
394
- ]
395
- },
396
- "dependencies": {
397
- "@taquito/http-utils": "^8.0.4-beta.0",
398
- "@taquito/michelson-encoder": "^8.0.4-beta.0",
399
- "@taquito/rpc": "^8.0.4-beta.0",
400
- "@taquito/taquito": "^8.0.4-beta.0",
401
- "@taquito/utils": "^8.0.4-beta.0",
402
- "bignumber.js": "^9.0.1",
403
- "crypto-js": "^4.0.0"
404
- },
405
- "devDependencies": {
406
- "@types/crypto-js": "^4.0.1",
407
- "@types/jest": "^26.0.14",
408
- "@types/node": "^18",
409
- "@types/ws": "^7.2.7",
410
- "colors": "^1.4.0",
411
- "coveralls": "^3.1.0",
412
- "cross-env": "^7.0.2",
413
- "jest": "^26.5.2",
414
- "jest-config": "^26.5.2",
415
- "lint-staged": "^10.4.0",
416
- "lodash.camelcase": "^4.3.0",
417
- "prettier": "^2.1.2",
418
- "prompt": "^1.0.0",
419
- "replace-in-file": "^6.1.0",
420
- "rimraf": "^3.0.2",
421
- "rollup": "^2.28.2",
422
- "rollup-plugin-json": "^4.0.0",
423
- "rollup-plugin-typescript2": "^0.27.3",
424
- "shelljs": "^0.8.4",
425
- "ts-jest": "^26.4.1",
426
- "ts-node": "^9.0.0",
427
- "tslint": "^6.1.2",
428
- "tslint-config-prettier": "^1.18.0",
429
- "tslint-config-standard": "^9.0.0",
430
- "typedoc": "^0.20.23",
431
- "typescript": "~4.1.5"
432
- },
433
- "gitHead": "551e35aeff7d6dcde1c72284238c0ed3c3aae77e"
434
- }
435
- }
436
- }
437
- ],
438
- "signature": "-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJgN/UKCRAD9Qy5GYHsngAACP8QAFuxuARWxVfL/nRgn1qZ6sMh\n5sh293vwawWlkZPlrMsg2LTmdLv1kvpNfVQn0j0w3kaQrwzXrEvGBe//ElI4RuET\nSPO1QEm/J5CHGuvKlvfXaEbdVVNSXb/iSbSAlsNyCyAp5tZKXV219H3MhUfZUmsg\nn7aJIrMnwx47tLSsvoZ074k8Ub6bsVk93sKtdMP3xIga+cpLuBzTNW1by9b4ALKY\nU+gLdD+Z39UTCa6kBbp3ea4St4WmfDVB4YYxf2TwxLG7Dz8O8IakGhaZmha39BVr\np/h3LtxSzBEMqGtAA6UOAMsakzMn8iJob9jiOsGKmsusHIFgN9trNrslG8sxduYJ\nrgXw3sU/lZbRa21vPLGAnedyFIz6kw4W6OclQFpVbHHTZPYQEB6epfh6e50GcA7A\njqwfj/JMUCaypgA/U0SEm26VY7k/psLZaqGIcH6xjQMk9kJmTtMD5rt10CRgxo8e\nvjeAR18X8xxazWqbMKU/zczY+rgGH1fXyFnIy9CZe2721FaOqkpzeLWUr9VlCqys\nBHzbv6WVyfwC2A2YEMxMoZOTW5BdGBV68SZtS0yeYi+A5G7xWr7/vq5Q/kfc8xSC\nOBTdjqCO+pXrdzOWzV594yh3IpVbrWplu9Xc/FAkcgrv2gdoCoolvVM33tqX2h+Z\n20bJXPEr7j4daJCMCz9C\n=1YIA\n-----END PGP SIGNATURE-----\n"
439
- }