@taquito/sapling 17.4.0 → 17.5.0-beta-RC.1

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.
@@ -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": "a908ab176a8c52c025fd43e7acd452415396f54e",
7
- "version": "17.4.0"
6
+ "commitHash": "d3bc5021c4b46ca659441501b30bda17d32219e2",
7
+ "version": "17.5.0-beta-RC.1"
8
8
  };
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/no-var-requires */
2
2
  const fs = require("fs")
3
- const axios = require("axios")
3
+ const fetch = require("node-fetch");
4
4
 
5
5
  const ZCASH_DOWNLOAD_URL = 'https://download.z.cash/downloads';
6
6
  const ZCASH_SPEND_PARAMS_FILE_NAME = 'sapling-spend.params';
@@ -9,10 +9,9 @@ const SPEND_PARAMS = 'saplingSpendParams';
9
9
  const OUTPUT_PARAMS = 'saplingOutputParams';
10
10
 
11
11
  async function fetchSaplingParams(url, name) {
12
-
13
- const response = await axios.get(`${ZCASH_DOWNLOAD_URL}/${url}`, {
14
- responseType: 'arraybuffer',
15
- });
12
+ const response = await fetch(`${ZCASH_DOWNLOAD_URL}/${url}`);
13
+ const arrBuff = await response.arrayBuffer();
14
+ const buff = Buffer.from(arrBuff);
16
15
 
17
16
  fs.writeFile(`${name}.js`, `
18
17
  (function (root, factory) {
@@ -28,7 +27,7 @@ async function fetchSaplingParams(url, name) {
28
27
  }
29
28
  }(this, function () {
30
29
  return {
31
- "${name}": "${response.data.toString('base64')}"
30
+ "${name}": "${buff.toString('base64')}"
32
31
  };
33
32
  }));
34
33
  `, (err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/sapling",
3
- "version": "17.4.0",
3
+ "version": "17.5.0-beta-RC.1",
4
4
  "description": "Allows reading and preparing sapling transactions",
5
5
  "keywords": [
6
6
  "tezos",
@@ -68,13 +68,14 @@
68
68
  "@airgap/sapling-wasm": "0.0.9",
69
69
  "@stablelib/nacl": "^1.0.4",
70
70
  "@stablelib/random": "^1.0.2",
71
- "@taquito/core": "^17.4.0",
72
- "@taquito/rpc": "^17.4.0",
73
- "@taquito/taquito": "^17.4.0",
74
- "@taquito/utils": "^17.4.0",
71
+ "@taquito/core": "^17.5.0-beta-RC.1",
72
+ "@taquito/rpc": "^17.5.0-beta-RC.1",
73
+ "@taquito/taquito": "^17.5.0-beta-RC.1",
74
+ "@taquito/utils": "^17.5.0-beta-RC.1",
75
75
  "bignumber.js": "^9.1.2",
76
76
  "bip39": "3.1.0",
77
77
  "blakejs": "^1.2.1",
78
+ "node-fetch": "^2.7.0",
78
79
  "pbkdf2": "^3.1.2",
79
80
  "typedarray-to-buffer": "^4.0.0"
80
81
  },
@@ -86,7 +87,6 @@
86
87
  "@types/typedarray-to-buffer": "^4.0.0",
87
88
  "@typescript-eslint/eslint-plugin": "^6.8.0",
88
89
  "@typescript-eslint/parser": "^6.8.0",
89
- "axios": "^0.27.2",
90
90
  "colors": "^1.4.0",
91
91
  "coveralls": "^3.1.1",
92
92
  "cross-env": "^7.0.3",
@@ -106,5 +106,5 @@
106
106
  "ts-node": "^10.9.1",
107
107
  "typescript": "~5.2.2"
108
108
  },
109
- "gitHead": "f7b158c2c93a38d59a113e0cf541960aa25c961d"
109
+ "gitHead": "18d5b30eb9b7cef41a0b48ccc165e9fd1b7ed063"
110
110
  }