Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): manual updates #319

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,16 @@ Methods:

# Bitcoin

## Transaction

Types:

- <code><a href="./src/resources/bitcoin/transaction.ts">TransactionScanResponse</a></code>
- <code><a href="./src/resources/bitcoin/bitcoin.ts">BitcoinTransactionScanRequest</a></code>
- <code><a href="./src/resources/bitcoin/bitcoin.ts">BitcoinTransactionScanResponse</a></code>

## Transaction

Methods:

- <code title="post /v0/bitcoin/transaction/scan">client.bitcoin.transaction.<a href="./src/resources/bitcoin/transaction.ts">scan</a>({ ...params }) -> TransactionScanResponse</code>
- <code title="post /v0/bitcoin/transaction/scan">client.bitcoin.transaction.<a href="./src/resources/bitcoin/transaction.ts">scan</a>({ ...params }) -> BitcoinTransactionScanResponse</code>

# Starknet

Expand All @@ -175,16 +176,13 @@ Types:
- <code><a href="./src/resources/starknet/starknet.ts">StarknetErc20Diff</a></code>
- <code><a href="./src/resources/starknet/starknet.ts">StarknetErc721Details</a></code>
- <code><a href="./src/resources/starknet/starknet.ts">StarknetErc721Diff</a></code>
- <code><a href="./src/resources/starknet/starknet.ts">StarknetTransactionScanResponse</a></code>

## Transaction

Types:

- <code><a href="./src/resources/starknet/transaction.ts">TransactionScanResponse</a></code>

Methods:

- <code title="post /v0/starknet/transaction/scan">client.starknet.transaction.<a href="./src/resources/starknet/transaction.ts">scan</a>({ ...params }) -> TransactionScanResponse</code>
- <code title="post /v0/starknet/transaction/scan">client.starknet.transaction.<a href="./src/resources/starknet/transaction.ts">scan</a>({ ...params }) -> StarknetTransactionScanResponse</code>

# Site

Expand Down
14 changes: 12 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ import {
TokenScanResponse,
} from './resources/token';
import { TokenBulk, TokenBulkScanParams, TokenBulkScanResponse } from './resources/token-bulk';
import { Bitcoin } from './resources/bitcoin/bitcoin';
import {
Bitcoin,
BitcoinTransactionScanRequest,
BitcoinTransactionScanResponse,
} from './resources/bitcoin/bitcoin';
import {
Erc1155Diff,
Erc1155Exposure,
Expand Down Expand Up @@ -92,6 +96,7 @@ import {
StarknetErc20Diff,
StarknetErc721Details,
StarknetErc721Diff,
StarknetTransactionScanResponse,
} from './resources/starknet/starknet';
import {
Stellar,
Expand Down Expand Up @@ -417,7 +422,11 @@ export declare namespace Blockaid {
type StellarTransactionScanResponse as StellarTransactionScanResponse,
};

export { Bitcoin as Bitcoin };
export {
Bitcoin as Bitcoin,
type BitcoinTransactionScanRequest as BitcoinTransactionScanRequest,
type BitcoinTransactionScanResponse as BitcoinTransactionScanResponse,
};

export {
Starknet as Starknet,
Expand All @@ -427,6 +436,7 @@ export declare namespace Blockaid {
type StarknetErc20Diff as StarknetErc20Diff,
type StarknetErc721Details as StarknetErc721Details,
type StarknetErc721Diff as StarknetErc721Diff,
type StarknetTransactionScanResponse as StarknetTransactionScanResponse,
};

export {
Expand Down
Loading