@cityofzion/bs-multichain 1.0.5 → 1.0.7

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.
@@ -196,8 +196,8 @@ class Neo3NeoXBridgeOrchestrator {
196
196
  return __awaiter(this, void 0, void 0, function* () {
197
197
  __classPrivateFieldSet(this, _Neo3NeoXBridgeOrchestrator_instances, { value: amount }, "a", _Neo3NeoXBridgeOrchestrator_amountToUse_set);
198
198
  if (!amount) {
199
- __classPrivateFieldSet(this, _Neo3NeoXBridgeOrchestrator_instances, { valid: null, loading: false }, "a", _Neo3NeoXBridgeOrchestrator_amountToUse_set);
200
- __classPrivateFieldSet(this, _Neo3NeoXBridgeOrchestrator_instances, { value: null, loading: false }, "a", _Neo3NeoXBridgeOrchestrator_amountToReceive_set);
199
+ __classPrivateFieldSet(this, _Neo3NeoXBridgeOrchestrator_instances, { valid: null, loading: false, error: null }, "a", _Neo3NeoXBridgeOrchestrator_amountToUse_set);
200
+ __classPrivateFieldSet(this, _Neo3NeoXBridgeOrchestrator_instances, { value: null, loading: false, error: null }, "a", _Neo3NeoXBridgeOrchestrator_amountToReceive_set);
201
201
  return;
202
202
  }
203
203
  if (__classPrivateFieldGet(this, _Neo3NeoXBridgeOrchestrator_amountToUseTimeout, "f") !== null)
@@ -243,7 +243,7 @@ class Neo3NeoXBridgeOrchestrator {
243
243
  if (newBridgeFee.plus(isFeeToken ? amountToUseBn : 0).isGreaterThan((_b = (_a = __classPrivateFieldGet(this, _Neo3NeoXBridgeOrchestrator_feeTokenBalance, "f")) === null || _a === void 0 ? void 0 : _a.amount) !== null && _b !== void 0 ? _b : 0)) {
244
244
  throw new blockchain_service_1.BSError('You do not have enough fee token balance to cover the bridge fee', 'INSUFFICIENT_FEE_TOKEN_BALANCE');
245
245
  }
246
- __classPrivateFieldSet(this, _Neo3NeoXBridgeOrchestrator_instances, { valid: true }, "a", _Neo3NeoXBridgeOrchestrator_amountToUse_set);
246
+ __classPrivateFieldSet(this, _Neo3NeoXBridgeOrchestrator_instances, { valid: true, error: null }, "a", _Neo3NeoXBridgeOrchestrator_amountToUse_set);
247
247
  }
248
248
  catch (error) {
249
249
  const treatedError = __classPrivateFieldGet(this, _Neo3NeoXBridgeOrchestrator_instances, "m", _Neo3NeoXBridgeOrchestrator_treatError).call(this, error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-multichain",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": "https://github.com/CityOfZion/blockchain-services",
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "axios": "~1.8.2",
14
14
  "lodash": "~4.17.21",
15
- "@cityofzion/blockchain-service": "1.19.3"
15
+ "@cityofzion/blockchain-service": "1.20.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/jest": "29.5.3",
@@ -20,17 +20,17 @@
20
20
  "eslint": "^8.48.0",
21
21
  "jest": "29.6.2",
22
22
  "ts-jest": "29.1.1",
23
- "ts-node": "10.9.1",
23
+ "ts-node": "~10.9.2",
24
24
  "typescript": "4.9.5",
25
25
  "typed-emitter": "~2.1.0",
26
26
  "@types/lodash": "~4.17.12",
27
27
  "@types/node": "~22.8.6",
28
28
  "@typescript-eslint/eslint-plugin": "~8.12.2",
29
29
  "@typescript-eslint/parser": "~8.12.2",
30
- "@cityofzion/bs-neo3": "1.15.4",
31
- "@cityofzion/bs-neo-legacy": "1.12.8",
32
- "@cityofzion/bs-ethereum": "2.12.8",
33
- "@cityofzion/bs-neox": "1.2.5"
30
+ "@cityofzion/bs-ethereum": "2.13.0",
31
+ "@cityofzion/bs-neo3": "1.16.0",
32
+ "@cityofzion/bs-neo-legacy": "1.13.0",
33
+ "@cityofzion/bs-neox": "1.3.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsc --project tsconfig.build.json",