Skip to content

Commit

Permalink
Merge pull request #308 from blockaid-official/release-please--branch…
Browse files Browse the repository at this point in the history
…es--main--changes--next--components--client

release: 0.29.0
  • Loading branch information
omricohen1 authored Nov 13, 2024
2 parents 2d874ea + 23b53e2 commit e464aff
Show file tree
Hide file tree
Showing 39 changed files with 2,951 additions and 2,255 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ yarn-error.log
codegen.log
Brewfile.lock.json
dist
/deno
dist-deno
/*.tgz
.idea/

2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.28.1"
".": "0.29.0"
}
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-247e47596e9ade7b9e7bb4e1ae9f3febeff30e98066b7fef4daae8eb60673fd2.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-4074d2a2daa26c0381dcb705a69ca8142ec74086afd06240bc5e4ae452fe8ee7.yml
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

## 0.29.0 (2024-11-12)

Full Changelog: [v0.28.1...v0.29.0](https://github.com/blockaid-official/blockaid-client-node/compare/v0.28.1...v0.29.0)

### Features

* **api:** api update ([#302](https://github.com/blockaid-official/blockaid-client-node/issues/302)) ([807fdec](https://github.com/blockaid-official/blockaid-client-node/commit/807fdecbb07a69dee0ffde87cfa163a8d7bfac1e))
* **api:** api update ([#304](https://github.com/blockaid-official/blockaid-client-node/issues/304)) ([41acd8d](https://github.com/blockaid-official/blockaid-client-node/commit/41acd8dff941c9d348c2ae3ce2eac104d7121713))
* **api:** api update ([#305](https://github.com/blockaid-official/blockaid-client-node/issues/305)) ([fd62a3b](https://github.com/blockaid-official/blockaid-client-node/commit/fd62a3b15e10ebae48d70359b047e39ac113f050))
* **api:** api update ([#306](https://github.com/blockaid-official/blockaid-client-node/issues/306)) ([557a745](https://github.com/blockaid-official/blockaid-client-node/commit/557a745e5065c6fdc903540f9a3c116dffe82d39))
* **api:** api update ([#309](https://github.com/blockaid-official/blockaid-client-node/issues/309)) ([e74673c](https://github.com/blockaid-official/blockaid-client-node/commit/e74673c33e3a6af27b9bb8150f92598f62cfc600))
* **api:** api update ([#312](https://github.com/blockaid-official/blockaid-client-node/issues/312)) ([c16b46f](https://github.com/blockaid-official/blockaid-client-node/commit/c16b46fd4e08af73d6a0cdb012c82df0609d21a4))
* **api:** api update ([#313](https://github.com/blockaid-official/blockaid-client-node/issues/313)) ([1a19626](https://github.com/blockaid-official/blockaid-client-node/commit/1a19626b4dbf697a8d2c802f18c1d985b737da8a))
* **api:** api update ([#316](https://github.com/blockaid-official/blockaid-client-node/issues/316)) ([e63fddd](https://github.com/blockaid-official/blockaid-client-node/commit/e63fddda1580e67f2befea6a772e8d40e0b2576a))
* **api:** api update ([#317](https://github.com/blockaid-official/blockaid-client-node/issues/317)) ([85b6f49](https://github.com/blockaid-official/blockaid-client-node/commit/85b6f49fca0cf0c9e81351c060bcf5e9ad4ce8d8))
* **api:** api update ([#320](https://github.com/blockaid-official/blockaid-client-node/issues/320)) ([91468dd](https://github.com/blockaid-official/blockaid-client-node/commit/91468ddf6d495db79bfc5b772afd5a376b7b0857))
* **api:** api update ([#321](https://github.com/blockaid-official/blockaid-client-node/issues/321)) ([066a070](https://github.com/blockaid-official/blockaid-client-node/commit/066a0706775714db4bcd98b39b1aac3b7fbf8cab))
* **api:** manual updates ([#311](https://github.com/blockaid-official/blockaid-client-node/issues/311)) ([c10997e](https://github.com/blockaid-official/blockaid-client-node/commit/c10997ec4c8efec4e36dfe844961a1f5605b76d6))
* **api:** manual updates ([#314](https://github.com/blockaid-official/blockaid-client-node/issues/314)) ([319bc69](https://github.com/blockaid-official/blockaid-client-node/commit/319bc69256c3b78bb85fbc5a920d268ced13e969))
* **api:** manual updates ([#315](https://github.com/blockaid-official/blockaid-client-node/issues/315)) ([94a4e8c](https://github.com/blockaid-official/blockaid-client-node/commit/94a4e8cca931d5e292692ab7fc108545e2d4764e))
* **api:** manual updates ([#318](https://github.com/blockaid-official/blockaid-client-node/issues/318)) ([9579ef1](https://github.com/blockaid-official/blockaid-client-node/commit/9579ef1a984c6a94c0859175761cb27ff0f72c0a))
* **api:** manual updates ([#319](https://github.com/blockaid-official/blockaid-client-node/issues/319)) ([945e3f2](https://github.com/blockaid-official/blockaid-client-node/commit/945e3f22cb00e7739efcc0a3e533015029586cde))


### Chores

* remove custom code ([6b34d68](https://github.com/blockaid-official/blockaid-client-node/commit/6b34d682b9f6c6d47f1fc5fad6feefb893ad7a9c))

## 0.28.1 (2024-10-28)

Full Changelog: [v0.28.0...v0.28.1](https://github.com/blockaid-official/blockaid-client-node/compare/v0.28.0...v0.28.1)
Expand Down
41 changes: 19 additions & 22 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,18 @@

Types:

- <code><a href="./src/resources/evm/evm.ts">AddressAssetExposure</a></code>
- <code><a href="./src/resources/evm/evm.ts">AssetDiff</a></code>
- <code><a href="./src/resources/evm/evm.ts">Erc1155AddressAssetExposure</a></code>
- <code><a href="./src/resources/evm/evm.ts">Erc1155Diff</a></code>
- <code><a href="./src/resources/evm/evm.ts">Erc1155Exposure</a></code>
- <code><a href="./src/resources/evm/evm.ts">Erc1155TokenDetails</a></code>
- <code><a href="./src/resources/evm/evm.ts">Erc20AddressAssetExposure</a></code>
- <code><a href="./src/resources/evm/evm.ts">Erc20Diff</a></code>
- <code><a href="./src/resources/evm/evm.ts">Erc20Exposure</a></code>
- <code><a href="./src/resources/evm/evm.ts">Erc20TokenDetails</a></code>
- <code><a href="./src/resources/evm/evm.ts">Erc721AddressAssetExposure</a></code>
- <code><a href="./src/resources/evm/evm.ts">Erc721Diff</a></code>
- <code><a href="./src/resources/evm/evm.ts">Erc721Exposure</a></code>
- <code><a href="./src/resources/evm/evm.ts">Erc721TokenDetails</a></code>
- <code><a href="./src/resources/evm/evm.ts">Metadata</a></code>
- <code><a href="./src/resources/evm/evm.ts">NativeAssetDetails</a></code>
- <code><a href="./src/resources/evm/evm.ts">NativeDiff</a></code>
- <code><a href="./src/resources/evm/evm.ts">NonercAddressAssetExposure</a></code>
- <code><a href="./src/resources/evm/evm.ts">NonercDiff</a></code>
- <code><a href="./src/resources/evm/evm.ts">NonercExposure</a></code>
- <code><a href="./src/resources/evm/evm.ts">NonercTokenDetails</a></code>
- <code><a href="./src/resources/evm/evm.ts">TokenScanSupportedChain</a></code>
- <code><a href="./src/resources/evm/evm.ts">TransactionScanFeature</a></code>
Expand Down Expand Up @@ -109,8 +101,8 @@ Types:
- <code><a href="./src/resources/solana/solana.ts">DelegatedAssetDetailsSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">FungibleMintAccountDetailsSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">InstructionErrorDetails</a></code>
- <code><a href="./src/resources/solana/solana.ts">NativeSolDetailsSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">NativeSolDiffSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">NativeDetailsSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">NativeDiffSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">NativeSolOwnershipDiffSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">NonFungibleMintAccountDetailsSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">PdaAccountSchema</a></code>
Expand All @@ -121,7 +113,7 @@ Types:
- <code><a href="./src/resources/solana/solana.ts">SplNonFungibleTokenDetailsSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">SplNonFungibleTokenDiffSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">SplTokenOwnershipDiffSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">StakedSolAssetDetailsSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">StakedAssetDetailsSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">StakedSolWithdrawAuthorityDiffSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">SuccessfulSimulationResultSchema</a></code>
- <code><a href="./src/resources/solana/solana.ts">SystemAccountDetailsSchema</a></code>
Expand All @@ -147,8 +139,11 @@ Methods:

Types:

- <code><a href="./src/resources/stellar/stellar.ts">StellarAssetContractDetailsSchema</a></code>
- <code><a href="./src/resources/stellar/stellar.ts">StellarAssetTransferDetailsSchema</a></code>
- <code><a href="./src/resources/stellar/stellar.ts">StellarAssetContractDetails</a></code>
- <code><a href="./src/resources/stellar/stellar.ts">StellarAssetTransferDetails</a></code>
- <code><a href="./src/resources/stellar/stellar.ts">StellarLegacyAssetDetails</a></code>
- <code><a href="./src/resources/stellar/stellar.ts">StellarNativeAssetDetails</a></code>
- <code><a href="./src/resources/stellar/stellar.ts">StellarSingleAssetExposure</a></code>
- <code><a href="./src/resources/stellar/stellar.ts">StellarTransactionScanRequest</a></code>
- <code><a href="./src/resources/stellar/stellar.ts">StellarTransactionScanResponse</a></code>

Expand All @@ -160,33 +155,35 @@ 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

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">StarknetTransactionScanRequest</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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blockaid/client",
"version": "0.28.1",
"version": "0.29.0",
"description": "The official TypeScript library for the Blockaid API",
"author": "Blockaid <feedback@blockaid.io>",
"types": "dist/index.d.ts",
Expand All @@ -10,7 +10,7 @@
"license": "Apache-2.0",
"packageManager": "yarn@1.22.22",
"files": [
"*"
"**/*"
],
"private": false,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ node scripts/utils/postprocess-files.cjs
(cd dist && node -e 'require("@blockaid/client")')
(cd dist && node -e 'import("@blockaid/client")' --input-type=module)

if command -v deno &> /dev/null && [ -e ./scripts/build-deno ]
if [ -e ./scripts/build-deno ]
then
./scripts/build-deno
fi
10 changes: 5 additions & 5 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export abstract class APIClient {
error: Object | undefined,
message: string | undefined,
headers: Headers | undefined,
) {
): APIError {
return APIError.generate(status, error, message, headers);
}

Expand Down Expand Up @@ -668,17 +668,17 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
return await this.#client.requestAPIList(this.constructor as any, nextOptions);
}

async *iterPages() {
async *iterPages(): AsyncGenerator<this> {
// eslint-disable-next-line @typescript-eslint/no-this-alias
let page: AbstractPage<Item> = this;
let page: this = this;
yield page;
while (page.hasNextPage()) {
page = await page.getNextPage();
yield page;
}
}

async *[Symbol.asyncIterator]() {
async *[Symbol.asyncIterator](): AsyncGenerator<Item> {
for await (const page of this.iterPages()) {
for (const item of page.getPaginatedItems()) {
yield item;
Expand Down Expand Up @@ -721,7 +721,7 @@ export class PagePromise<
* console.log(item)
* }
*/
async *[Symbol.asyncIterator]() {
async *[Symbol.asyncIterator](): AsyncGenerator<Item> {
const page = await this;
for await (const item of page) {
yield item;
Expand Down
2 changes: 1 addition & 1 deletion src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class APIError extends BlockaidError {
errorResponse: Object | undefined,
message: string | undefined,
headers: Headers | undefined,
) {
): APIError {
if (!status) {
return new APIConnectionError({ message, cause: castToError(errorResponse) });
}
Expand Down
Loading

0 comments on commit e464aff

Please sign in to comment.