-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: provider options and missing types
- Loading branch information
1 parent
843de04
commit 53c2d27
Showing
7 changed files
with
89 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './dependencies'; | ||
export * from './providers'; | ||
export * from './transactions'; | ||
export * from './view'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import type { | ||
BlockReference, | ||
BlockResult, | ||
ChunkId, | ||
ChunkResult, | ||
FinalExecutionOutcome, | ||
QueryResponseKind, | ||
TxExecutionStatus, | ||
} from '@near-js/types'; | ||
import type { SignedTransaction } from '@near-js/transactions'; | ||
|
||
interface GetTransactionParams { | ||
transactionHash: string; | ||
account: string; | ||
includeReceipts?: boolean; | ||
waitUntil?: TxExecutionStatus; | ||
} | ||
|
||
export interface RpcQueryProvider { | ||
block(block: BlockReference): Promise<BlockResult>; | ||
chunk(chunkId: ChunkId): Promise<ChunkResult>; | ||
getTransaction(params: GetTransactionParams): Promise<FinalExecutionOutcome>; | ||
sendTransaction(transaction: SignedTransaction): Promise<FinalExecutionOutcome>; | ||
query<T extends QueryResponseKind>(...args: any[]): Promise<T>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters