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): OpenAPI spec update via Stainless API #242

Merged
merged 1 commit into from
Sep 4, 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
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 19
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-589a4d2cf4a075a6f8798c67792c098d3aaa7d5b95164464d0e69a1be50414c2.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-ee82f1cd6cc69f1cc2a54c096e0e5ffe1ae521a4c079a3e445bfe5de700a1d76.yml
4 changes: 0 additions & 4 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,9 @@ Methods:

Types:

- <code><a href="./src/resources/starknet/starknet.ts">StarknetErc1155Details</a></code>
- <code><a href="./src/resources/starknet/starknet.ts">StarknetErc1155Diff</a></code>
- <code><a href="./src/resources/starknet/starknet.ts">StarknetErc20Details</a></code>
- <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">StarknetNativeDiff</a></code>

## Transaction

Expand Down
4 changes: 0 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,9 @@ export namespace Blockaid {
export import Bitcoin = API.Bitcoin;

export import Starknet = API.Starknet;
export import StarknetErc1155Details = API.StarknetErc1155Details;
export import StarknetErc1155Diff = API.StarknetErc1155Diff;
export import StarknetErc20Details = API.StarknetErc20Details;
export import StarknetErc20Diff = API.StarknetErc20Diff;
export import StarknetErc721Details = API.StarknetErc721Details;
export import StarknetErc721Diff = API.StarknetErc721Diff;
export import StarknetNativeDiff = API.StarknetNativeDiff;

export import Site = API.Site;
export import SiteScanHitResponse = API.SiteScanHitResponse;
Expand Down
11 changes: 1 addition & 10 deletions src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,7 @@ export {
SiteScanParams,
Site,
} from './site';
export {
StarknetErc1155Details,
StarknetErc1155Diff,
StarknetErc20Details,
StarknetErc20Diff,
StarknetErc721Details,
StarknetErc721Diff,
StarknetNativeDiff,
Starknet,
} from './starknet/starknet';
export { StarknetErc1155Diff, StarknetErc20Diff, StarknetErc721Diff, Starknet } from './starknet/starknet';
export {
StellarAssetContractDetailsSchema,
StellarAssetTransferDetailsSchema,
Expand Down
11 changes: 1 addition & 10 deletions src/resources/starknet/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

export {
StarknetErc1155Details,
StarknetErc1155Diff,
StarknetErc20Details,
StarknetErc20Diff,
StarknetErc721Details,
StarknetErc721Diff,
StarknetNativeDiff,
Starknet,
} from './starknet';
export { StarknetErc1155Diff, StarknetErc20Diff, StarknetErc721Diff, Starknet } from './starknet';
export { TransactionScanResponse, TransactionScanParams, Transaction } from './transaction';
125 changes: 4 additions & 121 deletions src/resources/starknet/starknet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,6 @@ export class Starknet extends APIResource {
transaction: TransactionAPI.Transaction = new TransactionAPI.Transaction(this._client);
}

export interface StarknetErc1155Details {
/**
* Address of the token's contract
*/
address: string;

/**
* token's name
*/
name: string;

/**
* token's symbol
*/
symbol: string;

/**
* Type of the asset (`ERC1155`)
*/
type?: 'ERC1155';
}

export interface StarknetErc1155Diff {
/**
* Token ID of the transfer
Expand All @@ -39,51 +17,19 @@ export interface StarknetErc1155Diff {
/**
* USD price of the asset
*/
usd_price: number;
usd_price: string;

/**
* Value of the transfer
*/
value: number;

/**
* URL of the asset's logo
*/
logo_url?: string | null;

/**
* Summarized description of the transfer
*/
summary?: string | null;
}

export interface StarknetErc20Details {
/**
* Address of the token's contract
*/
address: string;

/**
* token's decimals
*/
decimals: number;

/**
* token's name
*/
name: string;

/**
* token's symbol
*/
symbol: string;

/**
* Type of the asset (`ERC20`)
*/
type?: 'ERC20';
}

export interface StarknetErc20Diff {
/**
* Raw value of the transfer
Expand All @@ -93,46 +39,19 @@ export interface StarknetErc20Diff {
/**
* USD price of the asset
*/
usd_price: number;
usd_price: string;

/**
* Value of the transfer
*/
value: number;

/**
* URL of the asset's logo
*/
logo_url?: string | null;
value: string;

/**
* Summarized description of the transfer
*/
summary?: string | null;
}

export interface StarknetErc721Details {
/**
* Address of the token's contract
*/
address: string;

/**
* token's name
*/
name: string;

/**
* token's symbol
*/
symbol: string;

/**
* Type of the asset (`ERC721`)
*/
type?: 'ERC721';
}

export interface StarknetErc721Diff {
/**
* Token ID of the transfer
Expand All @@ -142,39 +61,7 @@ export interface StarknetErc721Diff {
/**
* USD price of the asset
*/
usd_price: number;

/**
* URL of the asset's logo
*/
logo_url?: string | null;

/**
* Summarized description of the transfer
*/
summary?: string | null;
}

export interface StarknetNativeDiff {
/**
* Raw value of the transfer
*/
raw_value: number;

/**
* USD price of the asset
*/
usd_price: number;

/**
* Value of the transfer
*/
value: number;

/**
* URL of the asset's logo
*/
logo_url?: string | null;
usd_price: string;

/**
* Summarized description of the transfer
Expand All @@ -183,13 +70,9 @@ export interface StarknetNativeDiff {
}

export namespace Starknet {
export import StarknetErc1155Details = StarknetAPI.StarknetErc1155Details;
export import StarknetErc1155Diff = StarknetAPI.StarknetErc1155Diff;
export import StarknetErc20Details = StarknetAPI.StarknetErc20Details;
export import StarknetErc20Diff = StarknetAPI.StarknetErc20Diff;
export import StarknetErc721Details = StarknetAPI.StarknetErc721Details;
export import StarknetErc721Diff = StarknetAPI.StarknetErc721Diff;
export import StarknetNativeDiff = StarknetAPI.StarknetNativeDiff;
export import Transaction = TransactionAPI.Transaction;
export import TransactionScanResponse = TransactionAPI.TransactionScanResponse;
export import TransactionScanParams = TransactionAPI.TransactionScanParams;
Expand Down
Loading