@near-js/providers
Advanced tools
Comparing version 0.2.1 to 0.2.2
import { AccessKeyWithPublicKey, BlockId, BlockReference, BlockResult, BlockChangeResult, ChangeResult, ChunkId, ChunkResult, EpochValidatorInfo, FinalExecutionOutcome, GasPrice, LightClientProof, LightClientProofRequest, NextLightClientBlockRequest, NextLightClientBlockResponse, NearProtocolConfig, NodeStatusResult, QueryResponseKind, RpcQueryRequest } from '@near-js/types'; | ||
import { SignedTransaction } from '@near-js/transactions'; | ||
import { Provider } from './provider'; | ||
import { TxExecutionStatus } from '@near-js/types/src/provider/protocol'; | ||
import { TxExecutionStatus } from '@near-js/types'; | ||
/** | ||
@@ -6,0 +6,0 @@ * Client class to interact with the [NEAR RPC API](https://docs.near.org/api/rpc/introduction). |
@@ -5,3 +5,3 @@ import { AccessKeyWithPublicKey, BlockId, BlockReference, BlockResult, BlockChangeResult, ChangeResult, ChunkId, ChunkResult, EpochValidatorInfo, FinalExecutionOutcome, GasPrice, LightClientProof, LightClientProofRequest, NextLightClientBlockRequest, NextLightClientBlockResponse, NearProtocolConfig, NodeStatusResult, QueryResponseKind } from '@near-js/types'; | ||
import { ConnectionInfo } from './fetch_json'; | ||
import { TxExecutionStatus } from '@near-js/types/src/provider/protocol'; | ||
import { TxExecutionStatus } from '@near-js/types'; | ||
type RequestOptions = { | ||
@@ -8,0 +8,0 @@ /** |
@@ -93,3 +93,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.sendTransactionUntil(signedTransaction, 'FINAL'); | ||
return this.sendTransactionUntil(signedTransaction, 'EXECUTED_OPTIMISTIC'); | ||
}); | ||
@@ -116,3 +116,3 @@ } | ||
*/ | ||
txStatus(txHash, accountId, waitUntil = 'FINAL') { | ||
txStatus(txHash, accountId, waitUntil = 'EXECUTED_OPTIMISTIC') { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -145,3 +145,3 @@ if (typeof txHash === 'string') { | ||
*/ | ||
txStatusReceipts(txHash, accountId, waitUntil = 'FINAL') { | ||
txStatusReceipts(txHash, accountId, waitUntil = 'EXECUTED_OPTIMISTIC') { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -148,0 +148,0 @@ if (typeof txHash === 'string') { |
@@ -7,3 +7,3 @@ /** | ||
import { AccessKeyWithPublicKey, BlockChangeResult, BlockId, BlockReference, BlockResult, ChangeResult, ChunkId, ChunkResult, FinalExecutionOutcome, GasPrice, LightClientProof, LightClientProofRequest, NextLightClientBlockRequest, NextLightClientBlockResponse, NearProtocolConfig, NodeStatusResult, QueryResponseKind, RpcQueryRequest, EpochValidatorInfo } from '@near-js/types'; | ||
import { TxExecutionStatus } from '@near-js/types/src/provider/protocol'; | ||
import { TxExecutionStatus } from '@near-js/types'; | ||
/** @hidden */ | ||
@@ -10,0 +10,0 @@ export declare abstract class Provider { |
{ | ||
"name": "@near-js/providers", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Library of implementations for interfacing with the NEAR blockchain", | ||
@@ -12,5 +12,5 @@ "main": "lib/index.js", | ||
"http-errors": "1.7.2", | ||
"@near-js/transactions": "1.2.1", | ||
"@near-js/types": "0.2.0", | ||
"@near-js/utils": "0.2.1" | ||
"@near-js/transactions": "1.2.2", | ||
"@near-js/types": "0.2.1", | ||
"@near-js/utils": "0.2.2" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76946
+ Added@near-js/crypto@1.2.4(transitive)
+ Added@near-js/keystores@0.0.12(transitive)
+ Added@near-js/signers@0.1.4(transitive)
+ Added@near-js/transactions@1.2.2(transitive)
+ Added@near-js/types@0.2.1(transitive)
+ Added@near-js/utils@0.2.2(transitive)
- Removed@near-js/crypto@1.2.3(transitive)
- Removed@near-js/keystores@0.0.11(transitive)
- Removed@near-js/signers@0.1.3(transitive)
- Removed@near-js/transactions@1.2.1(transitive)
- Removed@near-js/types@0.2.0(transitive)
- Removed@near-js/utils@0.2.1(transitive)
Updated@near-js/transactions@1.2.2
Updated@near-js/types@0.2.1
Updated@near-js/utils@0.2.2