Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jun 5, 2024
1 parent 6f7b115 commit 721434c
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 95 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: 7
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-dbdb9cdcb11bf5cff7ce744d33b91fdfd6eda085a453d524224d4abe7c77379c.yml
configured_endpoints: 6
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-a82d4aaa385143b0ef4a1d37334a837b1a6c6717cb85bc8c5acc28b7159aaf97.yml
4 changes: 0 additions & 4 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ Methods:

## TransactionRaw

Methods:

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

## UserOperation

Methods:
Expand Down
1 change: 0 additions & 1 deletion src/resources/evm/evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,6 @@ export namespace Evm {
export import TransactionBulkScanResponse = TransactionBulkAPI.TransactionBulkScanResponse;
export import TransactionBulkScanParams = TransactionBulkAPI.TransactionBulkScanParams;
export import TransactionRaw = TransactionRawAPI.TransactionRaw;
export import TransactionRawScanParams = TransactionRawAPI.TransactionRawScanParams;
export import UserOperation = UserOperationAPI.UserOperation;
export import UserOperationScanParams = UserOperationAPI.UserOperationScanParams;
}
2 changes: 1 addition & 1 deletion src/resources/evm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ export {
} from './evm';
export { JsonRpcScanParams, JsonRpc } from './json-rpc';
export { TransactionBulkScanResponse, TransactionBulkScanParams, TransactionBulk } from './transaction-bulk';
export { TransactionRawScanParams, TransactionRaw } from './transaction-raw';
export { TransactionRaw } from './transaction-raw';
export { TransactionScanParams, Transaction } from './transaction';
export { UserOperationScanParams, UserOperation } from './user-operation';
51 changes: 1 addition & 50 deletions src/resources/evm/transaction-raw.ts
Original file line number Diff line number Diff line change
@@ -1,54 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from '@blockaid/client/core';
import { APIResource } from '@blockaid/client/resource';
import * as TransactionRawAPI from '@blockaid/client/resources/evm/transaction-raw';
import * as EvmAPI from '@blockaid/client/resources/evm/evm';

export class TransactionRaw extends APIResource {
/**
* Gets a raw transaction and returns a full simulation indicating what will happen
* in the transaction together with a recommended action and some textual reasons
* of why the transaction was flagged that way.
*/
scan(
body: TransactionRawScanParams,
options?: Core.RequestOptions,
): Core.APIPromise<EvmAPI.TransactionScanResponse> {
return this._client.post('/v0/evm/transaction-raw/scan', { body, ...options });
}
}

export interface TransactionRawScanParams {
/**
* The address to relate the transaction to. Account address determines in which
* perspective the transaction is simulated and validated.
*/
account_address: string;

/**
* The chain name or chain ID
*/
chain: EvmAPI.TransactionScanSupportedChain | (string & {});

/**
* Hex string of the raw transaction data
*/
data: string;

/**
* Object of additional information to validate against.
*/
metadata: EvmAPI.Metadata;

/**
* list of one or both of options for the desired output. "simulation" - include
* simulation output in your response. "validation" - include security validation
* of the transaction in your response. Default is ["validation"]
*/
options?: Array<'validation' | 'simulation' | 'gas_estimation' | 'events'>;
}

export namespace TransactionRaw {
export import TransactionRawScanParams = TransactionRawAPI.TransactionRawScanParams;
}
export class TransactionRaw extends APIResource {}
37 changes: 0 additions & 37 deletions tests/api-resources/evm/transaction-raw.test.ts

This file was deleted.

0 comments on commit 721434c

Please sign in to comment.