@cityofzion/bs-neox 3.1.6 → 3.1.8

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.
package/dist/BSNeoX.d.ts CHANGED
@@ -9,5 +9,5 @@ export declare class BSNeoX extends BSEthereum<TBSNeoXName, TBSNeoXNetworkId> im
9
9
  constructor(network?: TBSNetwork<TBSNeoXNetworkId>, getLedgerTransport?: TGetLedgerTransport<TBSNeoXName>);
10
10
  _sendTransaction({ signer, gasPrice, params }: TSendTransactionParams): Promise<TSendTransactionResponse>;
11
11
  setNetwork(network: TBSNetwork<TBSNeoXNetworkId>): void;
12
- transfer({ senderAccount, intents }: TTransferParams<TBSNeoXName>): Promise<TTransactionDefault[]>;
12
+ transfer({ senderAccount, intents, }: TTransferParams<TBSNeoXName>): Promise<TTransactionDefault<TBSNeoXName>[]>;
13
13
  }
package/dist/BSNeoX.js CHANGED
@@ -130,7 +130,7 @@ class BSNeoX extends bs_ethereum_1.BSEthereum {
130
130
  this.walletConnectService = new WalletConnectServiceNeoX_1.WalletConnectServiceNeoX(this);
131
131
  this.fullTransactionsDataService = new BlockscoutFullTransactionsDataService_1.BlockscoutFullTransactionsDataService(this);
132
132
  }
133
- async transfer({ senderAccount, intents }) {
133
+ async transfer({ senderAccount, intents, }) {
134
134
  const signer = await this._generateSigner(senderAccount);
135
135
  const { address } = senderAccount;
136
136
  const addressUrl = this.explorerService.buildAddressUrl(address);
@@ -144,6 +144,8 @@ class BSNeoX extends bs_ethereum_1.BSEthereum {
144
144
  const { receiverAddress, token } = intent;
145
145
  const tokenHash = token.hash;
146
146
  transactions.push({
147
+ blockchain: this.name,
148
+ isPending: true,
147
149
  txId: transactionHash,
148
150
  txIdUrl: this.explorerService.buildTransactionUrl(transactionHash),
149
151
  date: new Date().toJSON(),
@@ -8,8 +8,8 @@ export declare class BlockscoutBDSNeoX extends RpcBDSEthereum<TBSNeoXName, TBSNe
8
8
  static getClient(network: TBSNetwork<TBSNeoXNetworkId>): axios.AxiosInstance;
9
9
  readonly maxTimeToConfirmTransactionInMs: number;
10
10
  constructor(service: IBSNeoX);
11
- getTransaction(txid: string): Promise<TTransactionDefault>;
12
- getTransactionsByAddress(params: TGetTransactionsByAddressParams): Promise<TGetTransactionsByAddressResponse<TTransactionDefault>>;
11
+ getTransaction(txid: string): Promise<TTransactionDefault<TBSNeoXName>>;
12
+ getTransactionsByAddress(params: TGetTransactionsByAddressParams): Promise<TGetTransactionsByAddressResponse<TBSNeoXName, TTransactionDefault<TBSNeoXName>>>;
13
13
  getContract(contractHash: string): Promise<TContractResponse>;
14
14
  getTokenInfo(tokenHash: string): Promise<TBSToken>;
15
15
  getBalance(address: string): Promise<TBalanceResponse[]>;
@@ -106,6 +106,8 @@ class BlockscoutBDSNeoX extends bs_ethereum_1.RpcBDSEthereum {
106
106
  const data = this._service.neo3NeoXBridgeService._getDataFromBlockscoutTransaction(response);
107
107
  const txId = response.hash;
108
108
  const transaction = {
109
+ blockchain: this._service.name,
110
+ isPending: false,
109
111
  txId,
110
112
  txIdUrl: this._service.explorerService.buildTransactionUrl(txId),
111
113
  block: response.block,
@@ -190,6 +192,8 @@ class BlockscoutBDSNeoX extends bs_ethereum_1.RpcBDSEthereum {
190
192
  const data = this._service.neo3NeoXBridgeService._getDataFromBlockscoutTransaction(item);
191
193
  const txId = item.hash;
192
194
  const transaction = {
195
+ blockchain: this._service.name,
196
+ isPending: false,
193
197
  txId,
194
198
  txIdUrl: this._service.explorerService.buildTransactionUrl(txId),
195
199
  block: item.block,
@@ -1,11 +1,11 @@
1
1
  import { type IFullTransactionsDataService, type TExportFullTransactionsByAddressParams, type TGetFullTransactionsByAddressParams, type TGetTransactionsByAddressResponse, type TTransactionDefault } from '@cityofzion/blockchain-service';
2
- import type { IBSNeoX, TBSNeoXNetworkId } from '../../types';
3
- export declare class BlockscoutFullTransactionsDataService implements IFullTransactionsDataService {
2
+ import type { IBSNeoX, TBSNeoXName, TBSNeoXNetworkId } from '../../types';
3
+ export declare class BlockscoutFullTransactionsDataService implements IFullTransactionsDataService<TBSNeoXName> {
4
4
  #private;
5
5
  static readonly SUPPORTED_NETWORKS_IDS: TBSNeoXNetworkId[];
6
6
  static readonly ERC721_STANDARDS: string[];
7
7
  static readonly ERC1155_STANDARDS: string[];
8
8
  constructor(service: IBSNeoX);
9
- getFullTransactionsByAddress({ nextPageParams, ...params }: TGetFullTransactionsByAddressParams): Promise<TGetTransactionsByAddressResponse<TTransactionDefault>>;
9
+ getFullTransactionsByAddress({ nextPageParams, ...params }: TGetFullTransactionsByAddressParams): Promise<TGetTransactionsByAddressResponse<TBSNeoXName, TTransactionDefault<TBSNeoXName>>>;
10
10
  exportFullTransactionsByAddress(params: TExportFullTransactionsByAddressParams): Promise<string>;
11
11
  }
@@ -41,6 +41,8 @@ class BlockscoutFullTransactionsDataService {
41
41
  const txId = item.transactionID;
42
42
  const txIdUrl = __classPrivateFieldGet(this, _BlockscoutFullTransactionsDataService_service, "f").explorerService.buildTransactionUrl(txId);
43
43
  let newItem = {
44
+ blockchain: __classPrivateFieldGet(this, _BlockscoutFullTransactionsDataService_service, "f").name,
45
+ isPending: false,
44
46
  txId,
45
47
  txIdUrl,
46
48
  block: item.block,
@@ -15,5 +15,5 @@ export declare class Neo3NeoXBridgeService implements INeo3NeoXBridgeService<TBS
15
15
  getNonce(params: TNeo3NeoXBridgeServiceGetNonceParams<TBSNeoXName>): Promise<string>;
16
16
  getTransactionHashByNonce(params: TNeo3NeoXBridgeServiceGetTransactionHashByNonceParams<TBSNeoXName>): Promise<string>;
17
17
  getTokenByMultichainId(multichainId: string): TBridgeToken<TBSNeoXName> | undefined;
18
- getTransactionData(transaction: TTransaction): TNeo3NeoXBridgeTransactionData<TBSNeoXName> | undefined;
18
+ getTransactionData(transaction: TTransaction<TBSNeoXName>): TNeo3NeoXBridgeTransactionData<TBSNeoXName> | undefined;
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-neox",
3
- "version": "3.1.6",
3
+ "version": "3.1.8",
4
4
  "repository": "https://github.com/CityOfZion/blockchain-services",
5
5
  "license": "GPL-3.0-only",
6
6
  "author": "Coz",
@@ -15,9 +15,9 @@
15
15
  "ethers": "~5.7.2",
16
16
  "neox-tpke": "~1.0.5",
17
17
  "viem": "~2.38.5",
18
- "@cityofzion/bs-neo3": "3.1.6",
19
- "@cityofzion/blockchain-service": "3.1.6",
20
- "@cityofzion/bs-ethereum": "3.1.6"
18
+ "@cityofzion/blockchain-service": "3.1.8",
19
+ "@cityofzion/bs-neo3": "3.1.8",
20
+ "@cityofzion/bs-ethereum": "3.1.8"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@ledgerhq/hw-transport": "~6.32.0",