@cityofzion/bs-neox 3.1.14 → 3.1.15

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,4 +1,4 @@
1
- import { type TBalanceResponse, type TBSNetwork, type TBSToken, type TGetTransactionsByAddressParams, type TGetTransactionsByAddressResponse, type TContractResponse, type TTransactionDefault } from '@cityofzion/blockchain-service';
1
+ import { type TBalanceResponse, type TBSNetwork, type TBSToken, type TContractResponse, type TGetTransactionsByAddressParams, type TGetTransactionsByAddressResponse, type TTransactionDefault } from '@cityofzion/blockchain-service';
2
2
  import axios from 'axios';
3
3
  import { RpcBDSEthereum } from '@cityofzion/bs-ethereum';
4
4
  import type { IBSNeoX, TBSNeoXName, TBSNeoXNetworkId } from '../../types';
@@ -103,7 +103,7 @@ class BlockscoutBDSNeoX extends bs_ethereum_1.RpcBDSEthereum {
103
103
  }
104
104
  const data = this._service.neo3NeoXBridgeService._getDataFromBlockscoutTransaction(response);
105
105
  const txId = response.hash;
106
- const transaction = {
106
+ return {
107
107
  blockchain: this._service.name,
108
108
  isPending: false,
109
109
  txId,
@@ -117,7 +117,6 @@ class BlockscoutBDSNeoX extends bs_ethereum_1.RpcBDSEthereum {
117
117
  events,
118
118
  data,
119
119
  };
120
- return transaction;
121
120
  }
122
121
  async getTransactionsByAddress(params) {
123
122
  const { data } = await __classPrivateFieldGet(this, _BlockscoutBDSNeoX_instances, "a", _BlockscoutBDSNeoX_api_get).get(`/addresses/${params.address}/transactions`, {
@@ -180,9 +179,6 @@ class BlockscoutBDSNeoX extends bs_ethereum_1.RpcBDSEthereum {
180
179
  /* empty */
181
180
  }
182
181
  }
183
- if (events.length === 0) {
184
- return;
185
- }
186
182
  const data = this._service.neo3NeoXBridgeService._getDataFromBlockscoutTransaction(item);
187
183
  const txId = item.hash;
188
184
  const transaction = {
@@ -3,7 +3,6 @@ import type { IBSNeoX, TBSNeoXName, TBlockscoutBDSNeoXTransactionApiResponse } f
3
3
  export declare class Neo3NeoXBridgeService implements INeo3NeoXBridgeService<TBSNeoXName> {
4
4
  #private;
5
5
  static readonly BRIDGE_SCRIPT_HASH = "0x1212000000000000000000000000000000000004";
6
- static readonly BRIDGE_FEE = 0.1;
7
6
  static readonly BRIDGE_BASE_CONFIRMATION_URL = "https://xexplorer.neo.org:8877/api/v1/transactions/deposits";
8
7
  readonly gasToken: TBridgeToken<TBSNeoXName>;
9
8
  readonly neoToken: TBridgeToken<TBSNeoXName>;
@@ -48,8 +48,8 @@ class Neo3NeoXBridgeService {
48
48
  if (input.name === 'withdrawNative') {
49
49
  tokenToUse = this.gasToken;
50
50
  amount = new blockchain_service_1.BSBigUnitAmount(response.value, tokenToUse.decimals)
51
+ .minus(input.args._maxFee.toString())
51
52
  .toHuman()
52
- .minus(_a.BRIDGE_FEE)
53
53
  .toFormatted();
54
54
  }
55
55
  else if (input.name === 'withdrawToken') {
@@ -224,5 +224,4 @@ _a = Neo3NeoXBridgeService, _Neo3NeoXBridgeService_service = new WeakMap(), _Neo
224
224
  return await erc20Contract.populateTransaction.approve(_a.BRIDGE_SCRIPT_HASH, amount);
225
225
  };
226
226
  Neo3NeoXBridgeService.BRIDGE_SCRIPT_HASH = '0x1212000000000000000000000000000000000004';
227
- Neo3NeoXBridgeService.BRIDGE_FEE = 0.1;
228
227
  Neo3NeoXBridgeService.BRIDGE_BASE_CONFIRMATION_URL = 'https://xexplorer.neo.org:8877/api/v1/transactions/deposits';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-neox",
3
- "version": "3.1.14",
3
+ "version": "3.1.15",
4
4
  "repository": "https://github.com/CityOfZion/blockchain-services",
5
5
  "license": "GPL-3.0-only",
6
6
  "author": "Coz",
@@ -16,9 +16,9 @@
16
16
  "neox-tpke": "~1.0.5",
17
17
  "viem": "~2.38.5",
18
18
  "zod": "~4.3.6",
19
- "@cityofzion/blockchain-service": "3.1.14",
20
- "@cityofzion/bs-ethereum": "3.1.14",
21
- "@cityofzion/bs-neo3": "3.1.14"
19
+ "@cityofzion/blockchain-service": "3.1.15",
20
+ "@cityofzion/bs-ethereum": "3.1.15",
21
+ "@cityofzion/bs-neo3": "3.1.15"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@ledgerhq/hw-transport": "~6.32.0",