Skip to content

Commit

Permalink
chore: add provider changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsonevv committed Apr 22, 2024
1 parent 80b45d8 commit 3e29daf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/providers/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,15 @@ import {
RpcQueryRequest,
EpochValidatorInfo,
} from '@near-js/types';
import { TxExecutionStatus } from '@near-js/types/src/provider/protocol';

/** @hidden */
export abstract class Provider {
abstract status(): Promise<NodeStatusResult>;

abstract sendTransactionUntil(signedTransaction: SignedTransaction, waitUntil: TxExecutionStatus): Promise<FinalExecutionOutcome>;
abstract sendTransaction(signedTransaction: SignedTransaction): Promise<FinalExecutionOutcome>;
abstract sendTransactionAsync(signedTransaction: SignedTransaction): Promise<FinalExecutionOutcome>;
abstract txStatus(txHash: Uint8Array | string, accountId: string, waitUntil: TxExecutionStatus): Promise<FinalExecutionOutcome>;
abstract txStatusReceipts(txHash: Uint8Array | string, accountId: string, waitUntil: TxExecutionStatus): Promise<FinalExecutionOutcome>;
abstract txStatus(txHash: Uint8Array | string, accountId: string): Promise<FinalExecutionOutcome>;
abstract txStatusReceipts(txHash: Uint8Array | string, accountId: string): Promise<FinalExecutionOutcome>;
abstract query<T extends QueryResponseKind>(params: RpcQueryRequest): Promise<T>;
abstract query<T extends QueryResponseKind>(path: string, data: string): Promise<T>;
// TODO: BlockQuery type?
Expand Down

0 comments on commit 3e29daf

Please sign in to comment.