Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-managedblockchain-query

Package Overview
Dependencies
Maintainers
5
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-managedblockchain-query - npm Package Compare versions

Comparing version 3.477.0 to 3.478.0

9

dist-cjs/models/models_0.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SortOrder = exports.ListTransactionsSortBy = exports.QueryTransactionEventType = exports.QueryTransactionStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ResourceType = exports.InternalServerException = exports.ErrorType = exports.QueryTokenStandard = exports.QueryNetwork = exports.AccessDeniedException = void 0;
exports.SortOrder = exports.ListTransactionsSortBy = exports.QueryTransactionEventType = exports.QueryTransactionStatus = exports.ExecutionStatus = exports.ConfirmationStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ResourceType = exports.InternalServerException = exports.ErrorType = exports.QueryTokenStandard = exports.QueryNetwork = exports.AccessDeniedException = void 0;
const ManagedBlockchainQueryServiceException_1 = require("./ManagedBlockchainQueryServiceException");

@@ -123,2 +123,9 @@ class AccessDeniedException extends ManagedBlockchainQueryServiceException_1.ManagedBlockchainQueryServiceException {

exports.ValidationException = ValidationException;
exports.ConfirmationStatus = {
FINAL: "FINAL",
};
exports.ExecutionStatus = {
FAILED: "FAILED",
SUCCEEDED: "SUCCEEDED",
};
exports.QueryTransactionStatus = {

@@ -125,0 +132,0 @@ FAILED: "FAILED",

26

dist-cjs/pagination/ListAssetContractsPaginator.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.paginateListAssetContracts = void 0;
const core_1 = require("@smithy/core");
const ListAssetContractsCommand_1 = require("../commands/ListAssetContractsCommand");
const ManagedBlockchainQueryClient_1 = require("../ManagedBlockchainQueryClient");
const makePagedClientRequest = async (client, input, ...args) => {
return await client.send(new ListAssetContractsCommand_1.ListAssetContractsCommand(input), ...args);
};
async function* paginateListAssetContracts(config, input, ...additionalArguments) {
let token = config.startingToken || undefined;
let hasNext = true;
let page;
while (hasNext) {
input.nextToken = token;
input["maxResults"] = config.pageSize;
if (config.client instanceof ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient) {
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
}
else {
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
}
yield page;
const prevToken = token;
token = page.nextToken;
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
}
return undefined;
}
exports.paginateListAssetContracts = paginateListAssetContracts;
exports.paginateListAssetContracts = (0, core_1.createPaginator)(ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient, ListAssetContractsCommand_1.ListAssetContractsCommand, "nextToken", "nextToken", "maxResults");
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.paginateListTokenBalances = void 0;
const core_1 = require("@smithy/core");
const ListTokenBalancesCommand_1 = require("../commands/ListTokenBalancesCommand");
const ManagedBlockchainQueryClient_1 = require("../ManagedBlockchainQueryClient");
const makePagedClientRequest = async (client, input, ...args) => {
return await client.send(new ListTokenBalancesCommand_1.ListTokenBalancesCommand(input), ...args);
};
async function* paginateListTokenBalances(config, input, ...additionalArguments) {
let token = config.startingToken || undefined;
let hasNext = true;
let page;
while (hasNext) {
input.nextToken = token;
input["maxResults"] = config.pageSize;
if (config.client instanceof ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient) {
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
}
else {
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
}
yield page;
const prevToken = token;
token = page.nextToken;
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
}
return undefined;
}
exports.paginateListTokenBalances = paginateListTokenBalances;
exports.paginateListTokenBalances = (0, core_1.createPaginator)(ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient, ListTokenBalancesCommand_1.ListTokenBalancesCommand, "nextToken", "nextToken", "maxResults");
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.paginateListTransactionEvents = void 0;
const core_1 = require("@smithy/core");
const ListTransactionEventsCommand_1 = require("../commands/ListTransactionEventsCommand");
const ManagedBlockchainQueryClient_1 = require("../ManagedBlockchainQueryClient");
const makePagedClientRequest = async (client, input, ...args) => {
return await client.send(new ListTransactionEventsCommand_1.ListTransactionEventsCommand(input), ...args);
};
async function* paginateListTransactionEvents(config, input, ...additionalArguments) {
let token = config.startingToken || undefined;
let hasNext = true;
let page;
while (hasNext) {
input.nextToken = token;
input["maxResults"] = config.pageSize;
if (config.client instanceof ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient) {
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
}
else {
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
}
yield page;
const prevToken = token;
token = page.nextToken;
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
}
return undefined;
}
exports.paginateListTransactionEvents = paginateListTransactionEvents;
exports.paginateListTransactionEvents = (0, core_1.createPaginator)(ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient, ListTransactionEventsCommand_1.ListTransactionEventsCommand, "nextToken", "nextToken", "maxResults");
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.paginateListTransactions = void 0;
const core_1 = require("@smithy/core");
const ListTransactionsCommand_1 = require("../commands/ListTransactionsCommand");
const ManagedBlockchainQueryClient_1 = require("../ManagedBlockchainQueryClient");
const makePagedClientRequest = async (client, input, ...args) => {
return await client.send(new ListTransactionsCommand_1.ListTransactionsCommand(input), ...args);
};
async function* paginateListTransactions(config, input, ...additionalArguments) {
let token = config.startingToken || undefined;
let hasNext = true;
let page;
while (hasNext) {
input.nextToken = token;
input["maxResults"] = config.pageSize;
if (config.client instanceof ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient) {
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
}
else {
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
}
yield page;
const prevToken = token;
token = page.nextToken;
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
}
return undefined;
}
exports.paginateListTransactions = paginateListTransactions;
exports.paginateListTransactions = (0, core_1.createPaginator)(ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient, ListTransactionsCommand_1.ListTransactionsCommand, "nextToken", "nextToken", "maxResults");

@@ -702,5 +702,7 @@ "use strict";

blockNumber: smithy_client_1.expectString,
confirmationStatus: smithy_client_1.expectString,
contractAddress: smithy_client_1.expectString,
cumulativeGasUsed: smithy_client_1.expectString,
effectiveGasPrice: smithy_client_1.expectString,
executionStatus: smithy_client_1.expectString,
from: smithy_client_1.expectString,

@@ -707,0 +709,0 @@ gasUsed: smithy_client_1.expectString,

@@ -114,2 +114,9 @@ import { ManagedBlockchainQueryServiceException as __BaseException } from "./ManagedBlockchainQueryServiceException";

}
export const ConfirmationStatus = {
FINAL: "FINAL",
};
export const ExecutionStatus = {
FAILED: "FAILED",
SUCCEEDED: "SUCCEEDED",
};
export const QueryTransactionStatus = {

@@ -116,0 +123,0 @@ FAILED: "FAILED",

@@ -0,25 +1,4 @@

import { createPaginator } from "@smithy/core";
import { ListAssetContractsCommand, } from "../commands/ListAssetContractsCommand";
import { ManagedBlockchainQueryClient } from "../ManagedBlockchainQueryClient";
const makePagedClientRequest = async (client, input, ...args) => {
return await client.send(new ListAssetContractsCommand(input), ...args);
};
export async function* paginateListAssetContracts(config, input, ...additionalArguments) {
let token = config.startingToken || undefined;
let hasNext = true;
let page;
while (hasNext) {
input.nextToken = token;
input["maxResults"] = config.pageSize;
if (config.client instanceof ManagedBlockchainQueryClient) {
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
}
else {
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
}
yield page;
const prevToken = token;
token = page.nextToken;
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
}
return undefined;
}
export const paginateListAssetContracts = createPaginator(ManagedBlockchainQueryClient, ListAssetContractsCommand, "nextToken", "nextToken", "maxResults");

@@ -0,25 +1,4 @@

import { createPaginator } from "@smithy/core";
import { ListTokenBalancesCommand, } from "../commands/ListTokenBalancesCommand";
import { ManagedBlockchainQueryClient } from "../ManagedBlockchainQueryClient";
const makePagedClientRequest = async (client, input, ...args) => {
return await client.send(new ListTokenBalancesCommand(input), ...args);
};
export async function* paginateListTokenBalances(config, input, ...additionalArguments) {
let token = config.startingToken || undefined;
let hasNext = true;
let page;
while (hasNext) {
input.nextToken = token;
input["maxResults"] = config.pageSize;
if (config.client instanceof ManagedBlockchainQueryClient) {
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
}
else {
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
}
yield page;
const prevToken = token;
token = page.nextToken;
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
}
return undefined;
}
export const paginateListTokenBalances = createPaginator(ManagedBlockchainQueryClient, ListTokenBalancesCommand, "nextToken", "nextToken", "maxResults");

@@ -0,25 +1,4 @@

import { createPaginator } from "@smithy/core";
import { ListTransactionEventsCommand, } from "../commands/ListTransactionEventsCommand";
import { ManagedBlockchainQueryClient } from "../ManagedBlockchainQueryClient";
const makePagedClientRequest = async (client, input, ...args) => {
return await client.send(new ListTransactionEventsCommand(input), ...args);
};
export async function* paginateListTransactionEvents(config, input, ...additionalArguments) {
let token = config.startingToken || undefined;
let hasNext = true;
let page;
while (hasNext) {
input.nextToken = token;
input["maxResults"] = config.pageSize;
if (config.client instanceof ManagedBlockchainQueryClient) {
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
}
else {
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
}
yield page;
const prevToken = token;
token = page.nextToken;
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
}
return undefined;
}
export const paginateListTransactionEvents = createPaginator(ManagedBlockchainQueryClient, ListTransactionEventsCommand, "nextToken", "nextToken", "maxResults");

@@ -0,25 +1,4 @@

import { createPaginator } from "@smithy/core";
import { ListTransactionsCommand, } from "../commands/ListTransactionsCommand";
import { ManagedBlockchainQueryClient } from "../ManagedBlockchainQueryClient";
const makePagedClientRequest = async (client, input, ...args) => {
return await client.send(new ListTransactionsCommand(input), ...args);
};
export async function* paginateListTransactions(config, input, ...additionalArguments) {
let token = config.startingToken || undefined;
let hasNext = true;
let page;
while (hasNext) {
input.nextToken = token;
input["maxResults"] = config.pageSize;
if (config.client instanceof ManagedBlockchainQueryClient) {
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
}
else {
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
}
yield page;
const prevToken = token;
token = page.nextToken;
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
}
return undefined;
}
export const paginateListTransactions = createPaginator(ManagedBlockchainQueryClient, ListTransactionsCommand, "nextToken", "nextToken", "maxResults");

@@ -683,5 +683,7 @@ import { requestBuilder as rb } from "@smithy/core";

blockNumber: __expectString,
confirmationStatus: __expectString,
contractAddress: __expectString,
cumulativeGasUsed: __expectString,
effectiveGasPrice: __expectString,
executionStatus: __expectString,
from: __expectString,

@@ -688,0 +690,0 @@ gasUsed: __expectString,

@@ -48,3 +48,3 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";

* // numberOfTransactions: Number("long"), // required
* // status: "STRING_VALUE", // required
* // status: "STRING_VALUE",
* // to: "STRING_VALUE", // required

@@ -61,2 +61,4 @@ * // from: "STRING_VALUE",

* // transactionId: "STRING_VALUE",
* // confirmationStatus: "STRING_VALUE",
* // executionStatus: "STRING_VALUE",
* // },

@@ -63,0 +65,0 @@ * // };

@@ -78,3 +78,3 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";

* <p>The container for the contract identifier containing its blockchain network
* and address.</p>
* and address.</p>
*/

@@ -462,2 +462,13 @@ contractIdentifier: ContractIdentifier | undefined;

* @public
* @enum
*/
export declare const ConfirmationStatus: {
readonly FINAL: "FINAL";
};
/**
* @public
*/
export type ConfirmationStatus = (typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
/**
* @public
* <p>The contract or wallet address by which to filter the request.</p>

@@ -505,3 +516,15 @@ */

* @public
* @enum
*/
export declare const ExecutionStatus: {
readonly FAILED: "FAILED";
readonly SUCCEEDED: "SUCCEEDED";
};
/**
* @public
*/
export type ExecutionStatus = (typeof ExecutionStatus)[keyof typeof ExecutionStatus];
/**
* @public
*/
export interface GetAssetContractInput {

@@ -687,5 +710,22 @@ /**

* @public
* @deprecated
*
* <p>The status of the transaction.</p>
* <important>
* <p>This property is deprecated. You must use the <code>confirmationStatus</code>
* and the <code>executionStatus</code> properties to determine if the <code>status</code>
* of the transaction is <code>FINAL</code> or <code>FAILED</code>.</p>
* <ul>
* <li>
* <p>Transactions with a <code>status</code> of <code>FINAL</code> will now have the <code>confirmationStatus</code> set
* to <code>FINAL</code> and the <code>executionStatus</code> set to <code>SUCCEEDED</code>.</p>
* </li>
* <li>
* <p>Transactions with a <code>status</code> of <code>FAILED</code> will now have the <code>confirmationStatus</code> set
* to <code>FINAL</code> and the <code>executionStatus</code> set to <code>FAILED</code>.</p>
* </li>
* </ul>
* </important>
*/
status: QueryTransactionStatus | undefined;
status?: QueryTransactionStatus;
/**

@@ -747,2 +787,12 @@ * @public

transactionId?: string;
/**
* @public
* <p>Specifies whether the transaction has reached Finality.</p>
*/
confirmationStatus?: ConfirmationStatus;
/**
* @public
* <p>Identifies whether the transaction has succeeded or failed.</p>
*/
executionStatus?: ExecutionStatus;
}

@@ -749,0 +799,0 @@ /**

@@ -7,2 +7,2 @@ import { Paginator } from "@smithy/types";

*/
export declare function paginateListAssetContracts(config: ManagedBlockchainQueryPaginationConfiguration, input: ListAssetContractsCommandInput, ...additionalArguments: any): Paginator<ListAssetContractsCommandOutput>;
export declare const paginateListAssetContracts: (config: ManagedBlockchainQueryPaginationConfiguration, input: ListAssetContractsCommandInput, ...rest: any[]) => Paginator<ListAssetContractsCommandOutput>;

@@ -7,2 +7,2 @@ import { Paginator } from "@smithy/types";

*/
export declare function paginateListTokenBalances(config: ManagedBlockchainQueryPaginationConfiguration, input: ListTokenBalancesCommandInput, ...additionalArguments: any): Paginator<ListTokenBalancesCommandOutput>;
export declare const paginateListTokenBalances: (config: ManagedBlockchainQueryPaginationConfiguration, input: ListTokenBalancesCommandInput, ...rest: any[]) => Paginator<ListTokenBalancesCommandOutput>;

@@ -7,2 +7,2 @@ import { Paginator } from "@smithy/types";

*/
export declare function paginateListTransactionEvents(config: ManagedBlockchainQueryPaginationConfiguration, input: ListTransactionEventsCommandInput, ...additionalArguments: any): Paginator<ListTransactionEventsCommandOutput>;
export declare const paginateListTransactionEvents: (config: ManagedBlockchainQueryPaginationConfiguration, input: ListTransactionEventsCommandInput, ...rest: any[]) => Paginator<ListTransactionEventsCommandOutput>;

@@ -7,2 +7,2 @@ import { Paginator } from "@smithy/types";

*/
export declare function paginateListTransactions(config: ManagedBlockchainQueryPaginationConfiguration, input: ListTransactionsCommandInput, ...additionalArguments: any): Paginator<ListTransactionsCommandOutput>;
export declare const paginateListTransactions: (config: ManagedBlockchainQueryPaginationConfiguration, input: ListTransactionsCommandInput, ...rest: any[]) => Paginator<ListTransactionsCommandOutput>;

@@ -143,2 +143,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";

}
export declare const ConfirmationStatus: {
readonly FINAL: "FINAL";
};
export type ConfirmationStatus =
(typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
export interface ContractFilter {

@@ -154,2 +159,8 @@ network: QueryNetwork | undefined;

}
export declare const ExecutionStatus: {
readonly FAILED: "FAILED";
readonly SUCCEEDED: "SUCCEEDED";
};
export type ExecutionStatus =
(typeof ExecutionStatus)[keyof typeof ExecutionStatus];
export interface GetAssetContractInput {

@@ -194,3 +205,3 @@ contractIdentifier: ContractIdentifier | undefined;

numberOfTransactions: number | undefined;
status: QueryTransactionStatus | undefined;
status?: QueryTransactionStatus;
to: string | undefined;

@@ -207,2 +218,4 @@ from?: string;

transactionId?: string;
confirmationStatus?: ConfirmationStatus;
executionStatus?: ExecutionStatus;
}

@@ -209,0 +222,0 @@ export interface GetTransactionOutput {

@@ -7,6 +7,6 @@ import { Paginator } from "@smithy/types";

import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
export declare function paginateListAssetContracts(
export declare const paginateListAssetContracts: (
config: ManagedBlockchainQueryPaginationConfiguration,
input: ListAssetContractsCommandInput,
...additionalArguments: any
): Paginator<ListAssetContractsCommandOutput>;
...rest: any[]
) => Paginator<ListAssetContractsCommandOutput>;

@@ -7,6 +7,6 @@ import { Paginator } from "@smithy/types";

import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
export declare function paginateListTokenBalances(
export declare const paginateListTokenBalances: (
config: ManagedBlockchainQueryPaginationConfiguration,
input: ListTokenBalancesCommandInput,
...additionalArguments: any
): Paginator<ListTokenBalancesCommandOutput>;
...rest: any[]
) => Paginator<ListTokenBalancesCommandOutput>;

@@ -7,6 +7,6 @@ import { Paginator } from "@smithy/types";

import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
export declare function paginateListTransactionEvents(
export declare const paginateListTransactionEvents: (
config: ManagedBlockchainQueryPaginationConfiguration,
input: ListTransactionEventsCommandInput,
...additionalArguments: any
): Paginator<ListTransactionEventsCommandOutput>;
...rest: any[]
) => Paginator<ListTransactionEventsCommandOutput>;

@@ -7,6 +7,6 @@ import { Paginator } from "@smithy/types";

import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
export declare function paginateListTransactions(
export declare const paginateListTransactions: (
config: ManagedBlockchainQueryPaginationConfiguration,
input: ListTransactionsCommandInput,
...additionalArguments: any
): Paginator<ListTransactionsCommandOutput>;
...rest: any[]
) => Paginator<ListTransactionsCommandOutput>;
{
"name": "@aws-sdk/client-managedblockchain-query",
"description": "AWS SDK for JavaScript Managedblockchain Query Client for Node.js, Browser and React Native",
"version": "3.477.0",
"version": "3.478.0",
"scripts": {

@@ -23,5 +23,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "3.477.0",
"@aws-sdk/client-sts": "3.478.0",
"@aws-sdk/core": "3.477.0",
"@aws-sdk/credential-provider-node": "3.477.0",
"@aws-sdk/credential-provider-node": "3.478.0",
"@aws-sdk/middleware-host-header": "3.468.0",

@@ -31,6 +31,6 @@ "@aws-sdk/middleware-logger": "3.468.0",

"@aws-sdk/middleware-signing": "3.468.0",
"@aws-sdk/middleware-user-agent": "3.470.0",
"@aws-sdk/middleware-user-agent": "3.478.0",
"@aws-sdk/region-config-resolver": "3.470.0",
"@aws-sdk/types": "3.468.0",
"@aws-sdk/util-endpoints": "3.470.0",
"@aws-sdk/util-endpoints": "3.478.0",
"@aws-sdk/util-user-agent-browser": "3.468.0",

@@ -37,0 +37,0 @@ "@aws-sdk/util-user-agent-node": "3.470.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc