@cityofzion/bs-neox 3.1.7 → 3.1.9
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 +1 -1
- package/dist/BSNeoX.js +4 -1
- package/dist/services/blockchain-data/BlockscoutBDSNeoX.d.ts +2 -2
- package/dist/services/blockchain-data/BlockscoutBDSNeoX.js +5 -0
- package/dist/services/full-transactions-data/BlockscoutFullTransactionsDataService.d.ts +3 -3
- package/dist/services/full-transactions-data/BlockscoutFullTransactionsDataService.js +3 -0
- package/dist/services/neo3-neox-bridge/Neo3NeoXBridgeService.d.ts +2 -2
- package/package.json +4 -4
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,9 @@ 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,
|
|
149
|
+
relatedAddress: address,
|
|
147
150
|
txId: transactionHash,
|
|
148
151
|
txIdUrl: this.explorerService.buildTransactionUrl(transactionHash),
|
|
149
152
|
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,9 @@ 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,
|
|
197
|
+
relatedAddress: params.address,
|
|
193
198
|
txId,
|
|
194
199
|
txIdUrl: this._service.explorerService.buildTransactionUrl(txId),
|
|
195
200
|
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,9 @@ 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
|
+
relatedAddress: params.address,
|
|
46
|
+
isPending: false,
|
|
44
47
|
txId,
|
|
45
48
|
txIdUrl,
|
|
46
49
|
block: item.block,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INeo3NeoXBridgeService, TBridgeToken, TNeo3NeoXBridgeServiceBridgeParam, TNeo3NeoXBridgeServiceConstants, TNeo3NeoXBridgeServiceGetApprovalParam, TNeo3NeoXBridgeServiceGetNonceParams, TNeo3NeoXBridgeServiceGetTransactionHashByNonceParams, type TNeo3NeoXBridgeTransactionData, type
|
|
1
|
+
import { INeo3NeoXBridgeService, TBridgeToken, TNeo3NeoXBridgeServiceBridgeParam, TNeo3NeoXBridgeServiceConstants, TNeo3NeoXBridgeServiceGetApprovalParam, TNeo3NeoXBridgeServiceGetNonceParams, TNeo3NeoXBridgeServiceGetTransactionHashByNonceParams, type TNeo3NeoXBridgeTransactionData, type TTransactionBase } from '@cityofzion/blockchain-service';
|
|
2
2
|
import type { IBSNeoX, TBSNeoXName, TBlockscoutBDSNeoXTransactionApiResponse } from '../../types';
|
|
3
3
|
export declare class Neo3NeoXBridgeService implements INeo3NeoXBridgeService<TBSNeoXName> {
|
|
4
4
|
#private;
|
|
@@ -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:
|
|
18
|
+
getTransactionData(transaction: TTransactionBase): 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.
|
|
3
|
+
"version": "3.1.9",
|
|
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-
|
|
19
|
-
"@cityofzion/bs-
|
|
20
|
-
"@cityofzion/blockchain-service": "3.1.
|
|
18
|
+
"@cityofzion/bs-ethereum": "3.1.9",
|
|
19
|
+
"@cityofzion/bs-neo3": "3.1.9",
|
|
20
|
+
"@cityofzion/blockchain-service": "3.1.9"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@ledgerhq/hw-transport": "~6.32.0",
|