@taquito/tzip12 25.2.0-beta1 → 25.2.0-beta3

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.
@@ -1,12 +1,7 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.InvalidTokenMetadata = exports.TokenIdNotFound = exports.TokenMetadataNotFound = void 0;
7
4
  const core_1 = require("@taquito/core");
8
- const bignumber_js_1 = __importDefault(require("bignumber.js"));
9
- const BigNumber = bignumber_js_1.default;
10
5
  /**
11
6
  * @category Error
12
7
  * Error that indicates the metadata not being found on the contract
@@ -1,14 +1,9 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.Tzip12ContractAbstraction = void 0;
7
4
  const michelson_encoder_1 = require("@taquito/michelson-encoder");
8
5
  const tzip16_1 = require("@taquito/tzip16");
9
6
  const utils_1 = require("@taquito/utils");
10
- const bignumber_js_1 = __importDefault(require("bignumber.js"));
11
- const BigNumber = bignumber_js_1.default;
12
7
  const errors_1 = require("./errors");
13
8
  const tokenMetadataBigMapType = {
14
9
  prim: 'big_map',
@@ -40,7 +35,7 @@ class Tzip12ContractAbstraction {
40
35
  const contractMetadata = await this._tzip16ContractAbstraction.getMetadata();
41
36
  return contractMetadata.metadata;
42
37
  }
43
- catch (err) {
38
+ catch {
44
39
  // The contract is not compliant with Tzip-016. There is no contract metadata.
45
40
  }
46
41
  }
@@ -149,7 +144,7 @@ class Tzip12ContractAbstraction {
149
144
  try {
150
145
  pairNatMap = await this.context.contract.getBigMapKeyByID(bigmapTokenMetadataId['int'].toString(), tokenId.toString(), new michelson_encoder_1.Schema(tokenMetadataBigMapType));
151
146
  }
152
- catch (err) {
147
+ catch {
153
148
  throw new errors_1.TokenIdNotFound(tokenId);
154
149
  }
155
150
  const michelsonMap = pairNatMap['token_info'];
@@ -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": "f79aa35b2b21310921f9170da32d441aff54b110",
7
- "version": "25.2.0-beta1"
6
+ "commitHash": "ef213b695ad2612be52315f787f1d719c968eddc",
7
+ "version": "25.2.0-beta3"
8
8
  };
@@ -1,7 +1,6 @@
1
1
  import { MichelsonMap, Schema } from '@taquito/michelson-encoder';
2
2
  import { Tzip16ContractAbstraction, MetadataProvider, DEFAULT_HANDLERS } from '@taquito/tzip16';
3
3
  import { bytesToString } from '@taquito/utils';
4
- import 'bignumber.js';
5
4
  import { TaquitoError } from '@taquito/core';
6
5
 
7
6
  /**
@@ -71,7 +70,7 @@ class Tzip12ContractAbstraction {
71
70
  const contractMetadata = await this._tzip16ContractAbstraction.getMetadata();
72
71
  return contractMetadata.metadata;
73
72
  }
74
- catch (err) {
73
+ catch {
75
74
  // The contract is not compliant with Tzip-016. There is no contract metadata.
76
75
  }
77
76
  }
@@ -180,7 +179,7 @@ class Tzip12ContractAbstraction {
180
179
  try {
181
180
  pairNatMap = await this.context.contract.getBigMapKeyByID(bigmapTokenMetadataId['int'].toString(), tokenId.toString(), new Schema(tokenMetadataBigMapType));
182
181
  }
183
- catch (err) {
182
+ catch {
184
183
  throw new TokenIdNotFound(tokenId);
185
184
  }
186
185
  const michelsonMap = pairNatMap['token_info'];
@@ -225,8 +224,8 @@ class Tzip12Module {
225
224
 
226
225
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
227
226
  const VERSION = {
228
- "commitHash": "f79aa35b2b21310921f9170da32d441aff54b110",
229
- "version": "25.2.0-beta1"
227
+ "commitHash": "ef213b695ad2612be52315f787f1d719c968eddc",
228
+ "version": "25.2.0-beta3"
230
229
  };
231
230
 
232
231
  export { InvalidTokenMetadata, TokenIdNotFound, TokenMetadataNotFound, Tzip12ContractAbstraction, Tzip12Module, VERSION, tzip12 };
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-tzip12.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taquito-tzip12.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taquito/michelson-encoder'), require('@taquito/tzip16'), require('@taquito/utils'), require('bignumber.js'), require('@taquito/core')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@taquito/michelson-encoder', '@taquito/tzip16', '@taquito/utils', 'bignumber.js', '@taquito/core'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoTzip12 = {}, global.michelsonEncoder, global.tzip16, global.utils, null, global.taquitoCore));
5
- })(this, (function (exports, michelsonEncoder, tzip16, utils, BigNumberJs, core) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taquito/michelson-encoder'), require('@taquito/tzip16'), require('@taquito/utils'), require('@taquito/core')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@taquito/michelson-encoder', '@taquito/tzip16', '@taquito/utils', '@taquito/core'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoTzip12 = {}, global.michelsonEncoder, global.tzip16, global.utils, global.taquitoCore));
5
+ })(this, (function (exports, michelsonEncoder, tzip16, utils, core) { 'use strict';
6
6
 
7
7
  /**
8
8
  * @category Error
@@ -71,7 +71,7 @@
71
71
  const contractMetadata = await this._tzip16ContractAbstraction.getMetadata();
72
72
  return contractMetadata.metadata;
73
73
  }
74
- catch (err) {
74
+ catch {
75
75
  // The contract is not compliant with Tzip-016. There is no contract metadata.
76
76
  }
77
77
  }
@@ -180,7 +180,7 @@
180
180
  try {
181
181
  pairNatMap = await this.context.contract.getBigMapKeyByID(bigmapTokenMetadataId['int'].toString(), tokenId.toString(), new michelsonEncoder.Schema(tokenMetadataBigMapType));
182
182
  }
183
- catch (err) {
183
+ catch {
184
184
  throw new TokenIdNotFound(tokenId);
185
185
  }
186
186
  const michelsonMap = pairNatMap['token_info'];
@@ -225,8 +225,8 @@
225
225
 
226
226
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
227
227
  const VERSION = {
228
- "commitHash": "f79aa35b2b21310921f9170da32d441aff54b110",
229
- "version": "25.2.0-beta1"
228
+ "commitHash": "ef213b695ad2612be52315f787f1d719c968eddc",
229
+ "version": "25.2.0-beta3"
230
230
  };
231
231
 
232
232
  exports.InvalidTokenMetadata = InvalidTokenMetadata;
@@ -1,7 +1,6 @@
1
1
  import { TaquitoError } from '@taquito/core';
2
- import BigNumberJs from 'bignumber.js';
2
+ import type BigNumberJs from 'bignumber.js';
3
3
  type BigNumber = InstanceType<typeof BigNumberJs>;
4
- declare const BigNumber: typeof BigNumberJs;
5
4
  /**
6
5
  * @category Error
7
6
  * Error that indicates the metadata not being found on the contract
@@ -1,8 +1,7 @@
1
1
  import { ContractAbstraction, ContractProvider, Wallet } from '@taquito/taquito';
2
2
  import { MetadataContext } from '@taquito/tzip16';
3
- import BigNumberJs from 'bignumber.js';
3
+ import type BigNumberJs from 'bignumber.js';
4
4
  type BigNumber = InstanceType<typeof BigNumberJs>;
5
- declare const BigNumber: typeof BigNumberJs;
6
5
  export interface TokenMetadata {
7
6
  token_id: BigNumber;
8
7
  decimals: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/tzip12",
3
- "version": "25.2.0-beta1",
3
+ "version": "25.2.0-beta3",
4
4
  "description": "TZIP-12 token metadata support for Taquito.",
5
5
  "keywords": [
6
6
  "taquito",
@@ -51,19 +51,17 @@
51
51
  ]
52
52
  },
53
53
  "dependencies": {
54
- "@taquito/utils": "^25.2.0-beta1",
55
- "@taquito/core": "^25.2.0-beta1",
56
- "@taquito/michelson-encoder": "^25.2.0-beta1",
57
- "@taquito/taquito": "^25.2.0-beta1",
58
- "@taquito/tzip16": "^25.2.0-beta1",
54
+ "@taquito/utils": "^25.2.0-beta3",
55
+ "@taquito/core": "^25.2.0-beta3",
56
+ "@taquito/michelson-encoder": "^25.2.0-beta3",
57
+ "@taquito/taquito": "^25.2.0-beta3",
58
+ "@taquito/tzip16": "^25.2.0-beta3",
59
59
  "bignumber.js": "^10.0.2"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@rollup/plugin-json": "^6.1.0",
63
63
  "@types/node": "^22.20.5",
64
- "@typescript-eslint/eslint-plugin": "^6.21.0",
65
- "@typescript-eslint/parser": "^6.21.0",
66
- "eslint": "^8.57.0",
64
+ "eslint": "^10.15.0",
67
65
  "lint-staged": "^15.2.7",
68
66
  "lodash.camelcase": "^4.3.0",
69
67
  "prettier": "^3.9.10",