@cityofzion/bs-ethereum 0.7.2 → 0.7.3
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/.rush/temp/package-deps_build.json +3 -3
- package/dist/BitqueryBDSEthereum.d.ts +1 -0
- package/dist/BitqueryBDSEthereum.js +1 -0
- package/dist/RpcBDSEthereum.d.ts +1 -0
- package/dist/RpcBDSEthereum.js +1 -0
- package/package.json +2 -2
- package/src/BitqueryBDSEthereum.ts +2 -0
- package/src/RpcBDSEthereum.ts +2 -0
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"files": {
|
|
3
3
|
"packages/bs-ethereum/jest.config.ts": "d944475db93cbe41a9339187fd94b9962e411c43",
|
|
4
4
|
"packages/bs-ethereum/jest.setup.ts": "9a1976a32050616d4d2ee95b1aa21041bc4daca3",
|
|
5
|
-
"packages/bs-ethereum/package.json": "
|
|
5
|
+
"packages/bs-ethereum/package.json": "2388bfb836c6ba67fe7af26bcffb3668306b0a61",
|
|
6
6
|
"packages/bs-ethereum/src/BSEthereum.ts": "ea8070202977445b77ff67135f7fc7093f0ed2b9",
|
|
7
|
-
"packages/bs-ethereum/src/BitqueryBDSEthereum.ts": "
|
|
7
|
+
"packages/bs-ethereum/src/BitqueryBDSEthereum.ts": "aee408a61b1accc750723ce6addf8c99f365c8a4",
|
|
8
8
|
"packages/bs-ethereum/src/BitqueryEDSEthereum.ts": "c04aa2be223166140f3b98e01390a6f5f7ded8df",
|
|
9
9
|
"packages/bs-ethereum/src/GhostMarketNDSEthereum.ts": "145273284b3c27494eea0e80c0c1de8001b11c57",
|
|
10
|
-
"packages/bs-ethereum/src/RpcBDSEthereum.ts": "
|
|
10
|
+
"packages/bs-ethereum/src/RpcBDSEthereum.ts": "6cbca256420b09cef7182cbc485eb4799ff9b614",
|
|
11
11
|
"packages/bs-ethereum/src/__tests__/BDSEthereum.spec.ts": "8b66ba80d8457601fac69819cc1fae4d7bc7b08a",
|
|
12
12
|
"packages/bs-ethereum/src/__tests__/BSEthereum.spec.ts": "0da33cb4c9f89a3b6c2c8445d800ff4ddb41d161",
|
|
13
13
|
"packages/bs-ethereum/src/__tests__/BitqueryEDSEthereum.spec.ts": "8e26084a00916be48eeeb65d3918e5eed6368f0c",
|
|
@@ -3,6 +3,7 @@ import { RpcBDSEthereum } from './RpcBDSEthereum';
|
|
|
3
3
|
export declare class BitqueryBDSEthereum extends RpcBDSEthereum {
|
|
4
4
|
private readonly client;
|
|
5
5
|
private readonly networkType;
|
|
6
|
+
maxTimeToConfirmTransactionInMs: number;
|
|
6
7
|
constructor(network: Network);
|
|
7
8
|
getTransaction(hash: string): Promise<TransactionResponse>;
|
|
8
9
|
getTransactionsByAddress({ address, page, }: TransactionsByAddressParams): Promise<TransactionsByAddressResponse>;
|
|
@@ -21,6 +21,7 @@ const RpcBDSEthereum_1 = require("./RpcBDSEthereum");
|
|
|
21
21
|
class BitqueryBDSEthereum extends RpcBDSEthereum_1.RpcBDSEthereum {
|
|
22
22
|
constructor(network) {
|
|
23
23
|
super(network);
|
|
24
|
+
this.maxTimeToConfirmTransactionInMs = 1000 * 60 * 8;
|
|
24
25
|
if (network.type === 'custom')
|
|
25
26
|
throw new Error('Custom network not supported');
|
|
26
27
|
this.networkType = network.type;
|
package/dist/RpcBDSEthereum.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BalanceResponse, BlockchainDataService, ContractResponse, Network, Token, TransactionResponse, TransactionsByAddressParams, TransactionsByAddressResponse } from '@cityofzion/blockchain-service';
|
|
2
2
|
export declare class RpcBDSEthereum implements BlockchainDataService {
|
|
3
3
|
private readonly network;
|
|
4
|
+
maxTimeToConfirmTransactionInMs: number;
|
|
4
5
|
constructor(network: Network);
|
|
5
6
|
getTransaction(hash: string): Promise<TransactionResponse>;
|
|
6
7
|
getTransactionsByAddress(_params: TransactionsByAddressParams): Promise<TransactionsByAddressResponse>;
|
package/dist/RpcBDSEthereum.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityofzion/bs-ethereum",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"repository": "https://github.com/CityOfZion/blockchain-services",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"test": "jest --config jest.config.ts"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@cityofzion/blockchain-service": "0.7.
|
|
14
|
+
"@cityofzion/blockchain-service": "0.7.3",
|
|
15
15
|
"ethers": "5.7.2",
|
|
16
16
|
"@urql/core": "~4.1.1",
|
|
17
17
|
"graphql": "~16.8.0",
|
|
@@ -26,6 +26,8 @@ export class BitqueryBDSEthereum extends RpcBDSEthereum {
|
|
|
26
26
|
private readonly client: Client
|
|
27
27
|
private readonly networkType: Exclude<NetworkType, 'custom'>
|
|
28
28
|
|
|
29
|
+
maxTimeToConfirmTransactionInMs: number = 1000 * 60 * 8
|
|
30
|
+
|
|
29
31
|
constructor(network: Network) {
|
|
30
32
|
super(network)
|
|
31
33
|
|
package/src/RpcBDSEthereum.ts
CHANGED
|
@@ -14,6 +14,8 @@ import { TOKENS } from './constants'
|
|
|
14
14
|
export class RpcBDSEthereum implements BlockchainDataService {
|
|
15
15
|
private readonly network: Network
|
|
16
16
|
|
|
17
|
+
maxTimeToConfirmTransactionInMs: number = 1000 * 60 * 5
|
|
18
|
+
|
|
17
19
|
constructor(network: Network) {
|
|
18
20
|
this.network = network
|
|
19
21
|
}
|