Skip to content

Commit

Permalink
feat(api): api update (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 23, 2025
1 parent 514a5c2 commit 5f4d465
Show file tree
Hide file tree
Showing 8 changed files with 691 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 23
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-d50f8cc3899ed84ed3abf5e5c409455b1bba1f4b013eef0ee0a0b24490e6a366.yml
configured_endpoints: 24
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-92f494420e75bd722cd5c25d16c20b2e6d31b2af1a966ff249dcd4011098691e.yml
17 changes: 17 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,23 @@ Methods:
- <code title="post /v0/starknet/transaction/report">client.starknet.transaction.<a href="./src/resources/starknet/transaction.ts">report</a>({ ...params }) -> TransactionReportResponse</code>
- <code title="post /v0/starknet/transaction/scan">client.starknet.transaction.<a href="./src/resources/starknet/transaction.ts">scan</a>({ ...params }) -> StarknetTransactionScanResponse</code>

# Sui

Types:

- <code><a href="./src/resources/sui/sui.ts">SuiAssetTransferDetailsSchema</a></code>
- <code><a href="./src/resources/sui/sui.ts">SuiNativeAssetDetailsSchema</a></code>
- <code><a href="./src/resources/sui/sui.ts">SuiNFTDetailsSchema</a></code>
- <code><a href="./src/resources/sui/sui.ts">SuiNFTDiffSchema</a></code>
- <code><a href="./src/resources/sui/sui.ts">SuiTransactionScanRequest</a></code>
- <code><a href="./src/resources/sui/sui.ts">SuiTransactionScanResponse</a></code>

## Transaction

Methods:

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

# Site

Types:
Expand Down
21 changes: 21 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ import {
StellarTransactionScanRequest,
StellarTransactionScanResponse,
} from './resources/stellar/stellar';
import {
Sui,
SuiAssetTransferDetailsSchema,
SuiNFTDetailsSchema,
SuiNFTDiffSchema,
SuiNativeAssetDetailsSchema,
SuiTransactionScanRequest,
SuiTransactionScanResponse,
} from './resources/sui/sui';

const environments = {
production: 'https://api.blockaid.io',
Expand Down Expand Up @@ -256,6 +265,7 @@ export class Blockaid extends Core.APIClient {
stellar: API.Stellar = new API.Stellar(this);
bitcoin: API.Bitcoin = new API.Bitcoin(this);
starknet: API.Starknet = new API.Starknet(this);
sui: API.Sui = new API.Sui(this);
site: API.Site = new API.Site(this);
scan: API.Scan = new API.Scan(this);
token: API.Token = new API.Token(this);
Expand Down Expand Up @@ -346,6 +356,7 @@ Blockaid.Solana = Solana;
Blockaid.Stellar = Stellar;
Blockaid.Bitcoin = Bitcoin;
Blockaid.Starknet = Starknet;
Blockaid.Sui = Sui;
Blockaid.Site = Site;
Blockaid.Scan = Scan;
Blockaid.Token = Token;
Expand Down Expand Up @@ -445,6 +456,16 @@ export declare namespace Blockaid {
type StarknetTransactionScanResponse as StarknetTransactionScanResponse,
};

export {
Sui as Sui,
type SuiAssetTransferDetailsSchema as SuiAssetTransferDetailsSchema,
type SuiNativeAssetDetailsSchema as SuiNativeAssetDetailsSchema,
type SuiNFTDetailsSchema as SuiNFTDetailsSchema,
type SuiNFTDiffSchema as SuiNFTDiffSchema,
type SuiTransactionScanRequest as SuiTransactionScanRequest,
type SuiTransactionScanResponse as SuiTransactionScanResponse,
};

export {
Site as Site,
type SiteScanHitResponse as SiteScanHitResponse,
Expand Down
9 changes: 9 additions & 0 deletions src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ export {
type StellarTransactionScanRequest,
type StellarTransactionScanResponse,
} from './stellar/stellar';
export {
Sui,
type SuiAssetTransferDetailsSchema,
type SuiNativeAssetDetailsSchema,
type SuiNFTDetailsSchema,
type SuiNFTDiffSchema,
type SuiTransactionScanRequest,
type SuiTransactionScanResponse,
} from './sui/sui';
export {
Token,
type TokenReportResponse,
Expand Down
12 changes: 12 additions & 0 deletions src/resources/sui/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

export {
Sui,
type SuiAssetTransferDetailsSchema,
type SuiNativeAssetDetailsSchema,
type SuiNFTDetailsSchema,
type SuiNFTDiffSchema,
type SuiTransactionScanRequest,
type SuiTransactionScanResponse,
} from './sui';
export { Transaction, type TransactionScanParams } from './transaction';
Loading

0 comments on commit 5f4d465

Please sign in to comment.