@secondlayer/sdk 10.4.1 → 10.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -46
- package/dist/index.d.ts +64 -11
- package/dist/index.js +7 -1
- package/dist/index.js.map +6 -6
- package/dist/streams/index.d.ts +57 -9
- package/dist/streams/index.js +2 -1
- package/dist/streams/index.js.map +5 -5
- package/dist/subgraphs/index.d.ts +62 -9
- package/dist/subgraphs/index.js +7 -1
- package/dist/subgraphs/index.js.map +4 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -595,52 +595,6 @@ verifySecondlayerSignature(
|
|
|
595
595
|
Prefer the per-webhook HMAC (Standard Webhooks) secret instead? Use
|
|
596
596
|
`verifyWebhookSignature(rawBody, headers, secret)` — raw body first.
|
|
597
597
|
|
|
598
|
-
## x402 pay-per-call (accountless)
|
|
599
|
-
|
|
600
|
-
Call the public `/v1/*` reads with **no API key, no account, no Stripe** — pay a
|
|
601
|
-
few hundredths of a cent per request from a Stacks wallet. Payment is **gasless**
|
|
602
|
-
(you sign; we sponsor the STX fee) and uses standard **x402 v2** on `stacks:1`.
|
|
603
|
-
Supported assets: **sBTC** (default), **USDCx**, **STX**.
|
|
604
|
-
|
|
605
|
-
> Keyed (`INSTANCE_TOKEN`) requests skip x402. The rail is for accountless
|
|
606
|
-
> callers on an instance that has it enabled.
|
|
607
|
-
|
|
608
|
-
Drop-in `fetch` that pays on `402` automatically:
|
|
609
|
-
|
|
610
|
-
```typescript
|
|
611
|
-
import { withX402, readX402Receipt } from "@secondlayer/sdk";
|
|
612
|
-
import { privateKeyToAccount } from "@secondlayer/stacks/accounts";
|
|
613
|
-
|
|
614
|
-
const x402fetch = withX402(fetch, {
|
|
615
|
-
account: privateKeyToAccount(process.env.AGENT_STACKS_KEY!), // funded with sBTC/USDCx
|
|
616
|
-
preferAssets: ["sBTC", "USDCx", "STX"], // optional (this is the default)
|
|
617
|
-
maxAmountPerCall: { sBTC: 2000n }, // optional spend guard (atomic units)
|
|
618
|
-
});
|
|
619
|
-
|
|
620
|
-
const res = await x402fetch(
|
|
621
|
-
"http://127.0.0.1:3800/v1/index/events?event_type=ft_transfer",
|
|
622
|
-
);
|
|
623
|
-
const data = await res.json();
|
|
624
|
-
readX402Receipt(res); // { success, txid, payer, network } | null
|
|
625
|
-
```
|
|
626
|
-
|
|
627
|
-
Or a small client returning `{ data, payment }`:
|
|
628
|
-
|
|
629
|
-
```typescript
|
|
630
|
-
import { createX402Client } from "@secondlayer/sdk";
|
|
631
|
-
|
|
632
|
-
const sl = createX402Client({ account }); // baseUrl defaults to http://127.0.0.1:3800
|
|
633
|
-
const { data, payment } = await sl.get("/v1/index/events", {
|
|
634
|
-
query: { event_type: "ft_transfer" },
|
|
635
|
-
});
|
|
636
|
-
```
|
|
637
|
-
|
|
638
|
-
The SDK selects an offer by `preferAssets` (skipping any over `maxAmountPerCall`,
|
|
639
|
-
else throws `X402SpendGuardError`), auto-resolves your account nonce, signs
|
|
640
|
-
origin-only, and retries. A paid call settles on-chain before returning
|
|
641
|
-
(confirmed-tier today, ~seconds; near-instant optimistic serve for Index/Streams
|
|
642
|
-
is rolling out). Discover capabilities at `GET /x402/supported`.
|
|
643
|
-
|
|
644
598
|
## Error Handling
|
|
645
599
|
|
|
646
600
|
```typescript
|
package/dist/index.d.ts
CHANGED
|
@@ -647,8 +647,9 @@ type SinkTx<S> = S extends ConsumerSink<infer Tx> ? Tx : never;
|
|
|
647
647
|
type WithSinkTx<TTx> = [TTx] extends [never] ? unknown : {
|
|
648
648
|
tx: TTx;
|
|
649
649
|
};
|
|
650
|
-
import {
|
|
651
|
-
import {
|
|
650
|
+
import { VmEventType } from "@secondlayer/shared";
|
|
651
|
+
import { StreamsEvent, StreamsEventType, StreamsWireEvent, VmStreamsEvent } from "@secondlayer/shared/streams-rows";
|
|
652
|
+
import { StreamsWireEvent as StreamsWireEvent2, StreamsEventPayload } from "@secondlayer/shared/streams-rows";
|
|
652
653
|
type StreamsTip = {
|
|
653
654
|
block_height: number;
|
|
654
655
|
block_hash: string;
|
|
@@ -744,9 +745,11 @@ type StreamsEventsListParams = {
|
|
|
744
745
|
cursor?: string | null;
|
|
745
746
|
fromHeight?: number;
|
|
746
747
|
toHeight?: number;
|
|
747
|
-
|
|
748
|
+
/** `vm` reads ordinal. Omit for Streams 1.0. */
|
|
749
|
+
clock?: "classic" | "vm";
|
|
750
|
+
types?: readonly (StreamsEventType | VmEventType)[];
|
|
748
751
|
/** Event types to exclude (applied after `types`). */
|
|
749
|
-
notTypes?: readonly StreamsEventType[];
|
|
752
|
+
notTypes?: readonly (StreamsEventType | VmEventType)[];
|
|
750
753
|
contractId?: StreamsFilterValue;
|
|
751
754
|
sender?: StreamsFilterValue;
|
|
752
755
|
recipient?: StreamsFilterValue;
|
|
@@ -1138,11 +1141,26 @@ type StreamsClient = {
|
|
|
1138
1141
|
}): AsyncIterableIterator<StreamsBatch<StreamsEventOfTypes<T>>>;
|
|
1139
1142
|
consume(params?: StreamsConsumeParams): AsyncIterableIterator<StreamsBatch>;
|
|
1140
1143
|
events: {
|
|
1141
|
-
/**
|
|
1142
|
-
|
|
1144
|
+
/** `clock: "vm"` pages carry vm rows only (a parallel vocabulary,
|
|
1145
|
+
* `event_index` = `ordinal`). Never `StreamsEvent`. */
|
|
1146
|
+
list(params: StreamsEventsListParams & {
|
|
1147
|
+
clock: "vm";
|
|
1148
|
+
}): Promise<StreamsEventsEnvelope<VmStreamsEvent>>;
|
|
1149
|
+
/** Narrowing overload, matching `consume`. Classic clock only —
|
|
1150
|
+
* `clock: "vm"` is overload 1, and a general `StreamsEventsListParams`
|
|
1151
|
+
* variable (clock unresolved) is the wire-union fallback. */
|
|
1152
|
+
list<const T extends readonly StreamsEventType[]>(params: Omit<StreamsEventsListParams, "clock" | "types" | "notTypes"> & {
|
|
1143
1153
|
types: T;
|
|
1154
|
+
notTypes?: readonly StreamsEventType[];
|
|
1155
|
+
clock?: "classic";
|
|
1144
1156
|
}): Promise<StreamsEventsEnvelope<StreamsEventOfTypes<T>>>;
|
|
1145
|
-
list(params?: StreamsEventsListParams
|
|
1157
|
+
list(params?: Omit<StreamsEventsListParams, "clock" | "types" | "notTypes"> & {
|
|
1158
|
+
types?: readonly StreamsEventType[];
|
|
1159
|
+
notTypes?: readonly StreamsEventType[];
|
|
1160
|
+
clock?: "classic";
|
|
1161
|
+
}): Promise<StreamsEventsEnvelope>;
|
|
1162
|
+
/** Unresolved `clock` on a general params variable: the wire union. */
|
|
1163
|
+
list(params: StreamsEventsListParams): Promise<StreamsEventsEnvelope<StreamsWireEvent>>;
|
|
1146
1164
|
byTxId(txId: string): Promise<StreamsEventsListEnvelope>;
|
|
1147
1165
|
/**
|
|
1148
1166
|
* Pull pages from Streams and call `onBatch` after each page.
|
|
@@ -1552,8 +1570,38 @@ type IndexPrint = IndexEventBase & {
|
|
|
1552
1570
|
raw_value: string | null;
|
|
1553
1571
|
};
|
|
1554
1572
|
};
|
|
1573
|
+
type IndexNestedContractCall = IndexEventBase & {
|
|
1574
|
+
event_type: "nested_contract_call";
|
|
1575
|
+
sender: string | null;
|
|
1576
|
+
caller: string;
|
|
1577
|
+
function_name: string;
|
|
1578
|
+
function_args: unknown;
|
|
1579
|
+
raw_result: string | null;
|
|
1580
|
+
};
|
|
1581
|
+
type IndexVarSet = IndexEventBase & {
|
|
1582
|
+
event_type: "var_set";
|
|
1583
|
+
var_name: string;
|
|
1584
|
+
raw_value: string;
|
|
1585
|
+
};
|
|
1586
|
+
type IndexMapSet = IndexEventBase & {
|
|
1587
|
+
event_type: "map_set";
|
|
1588
|
+
map: string;
|
|
1589
|
+
raw_key: string;
|
|
1590
|
+
raw_value: string;
|
|
1591
|
+
};
|
|
1592
|
+
type IndexMapInsert = IndexEventBase & {
|
|
1593
|
+
event_type: "map_insert";
|
|
1594
|
+
map: string;
|
|
1595
|
+
raw_key: string;
|
|
1596
|
+
raw_value: string;
|
|
1597
|
+
};
|
|
1598
|
+
type IndexMapDelete = IndexEventBase & {
|
|
1599
|
+
event_type: "map_delete";
|
|
1600
|
+
map: string;
|
|
1601
|
+
raw_key: string;
|
|
1602
|
+
};
|
|
1555
1603
|
/** Decoded chain event, discriminated by `event_type`. */
|
|
1556
|
-
type IndexEvent = IndexFtTransfer | IndexNftTransfer | IndexStxTransfer | IndexStxMint | IndexStxBurn | IndexStxLock | IndexFtMint | IndexFtBurn | IndexNftMint | IndexNftBurn | IndexPrint;
|
|
1604
|
+
type IndexEvent = IndexFtTransfer | IndexNftTransfer | IndexStxTransfer | IndexStxMint | IndexStxBurn | IndexStxLock | IndexFtMint | IndexFtBurn | IndexNftMint | IndexNftBurn | IndexPrint | IndexNestedContractCall | IndexVarSet | IndexMapSet | IndexMapInsert | IndexMapDelete;
|
|
1557
1605
|
type IndexEventType = IndexEvent["event_type"];
|
|
1558
1606
|
/** Fields every read returns regardless of `fields` — the consume contract
|
|
1559
1607
|
* (`cursor`, `block_height`) plus the union discriminant. */
|
|
@@ -1578,8 +1626,7 @@ type IndexEventOf<T extends IndexEventType> = Extract<IndexEvent, {
|
|
|
1578
1626
|
event_type: T;
|
|
1579
1627
|
}>;
|
|
1580
1628
|
type EventsListParams<T extends IndexEventType = IndexEventType> = {
|
|
1581
|
-
/**
|
|
1582
|
-
* rows every surface hands back to that event's own shape. */
|
|
1629
|
+
/** Decoded types or VM types (`nested_contract_call`, `map_set`, …). */
|
|
1583
1630
|
eventType: T;
|
|
1584
1631
|
cursor?: string | null;
|
|
1585
1632
|
fromCursor?: string | null;
|
|
@@ -1590,6 +1637,12 @@ type EventsListParams<T extends IndexEventType = IndexEventType> = {
|
|
|
1590
1637
|
assetIdentifier?: string;
|
|
1591
1638
|
sender?: string;
|
|
1592
1639
|
recipient?: string;
|
|
1640
|
+
functionName?: string;
|
|
1641
|
+
caller?: string;
|
|
1642
|
+
map?: string;
|
|
1643
|
+
varName?: string;
|
|
1644
|
+
/** Restrict to one transaction. */
|
|
1645
|
+
txId?: string;
|
|
1593
1646
|
fromHeight?: number;
|
|
1594
1647
|
toHeight?: number;
|
|
1595
1648
|
/** Restrict to contracts conforming to a trait/standard (e.g. "sip-010").
|
|
@@ -3136,4 +3189,4 @@ declare function verifySecondlayerSignature(rawBody: string, headers: WebhookHea
|
|
|
3136
3189
|
declare function decodeChainWebhook(rawBody: string): ChainWebhookDelivery;
|
|
3137
3190
|
import { RewardSet as RewardSet2 } from "@secondlayer/shared/node/consensus";
|
|
3138
3191
|
import { decodeClarityValue, toJsonSafe } from "@secondlayer/shared/streams-rows";
|
|
3139
|
-
export { verifyWebhookSignature, verifyTransactionProof, verify as verifyStandardWebhooksHeaders, verifySecondlayerSignature, trigger, toJsonSafe, shutdownSignal, resolveBaseUrl, resolveApiKey, resolveAccountKey, parseRetryAfter, isStxTransfer, isStxMint, isStxLock, isStxBurn, isPrint, isNftTransfer, isNftMint, isNftBurn, isFtTransfer, isFtMint, isFtBurn, getSubgraph, fetchRewardSet, decodeStxTransfer, decodeStxMint, decodeStxLock, decodeStxBurn, decodePrint, decodeNftTransfer, decodeNftMint, decodeNftBurn, decodeFtTransfer, decodeFtMint, decodeFtBurn, decodeClarityValue, decodeChainWebhook, decode, createStreamsClient, createArchiveClient, contextField, consumerHealth, consumeIndexFeed, WithSinkTx, Webhooks, WebhookTestResult2 as WebhookTestResult, WebhookSummary2 as WebhookSummary, WebhookStatus, WebhookRuntime, WebhookKind, WebhookHeaderInput, WebhookFormat, WebhookDetail2 as WebhookDetail, WalkOptions, ValidationError, UpdateWebhookRequest2 as UpdateWebhookRequest, TransactionsWalkParams, TransactionsListParams, TransactionsEnvelope, TransactionProofVerifyResult, TransactionProof, TransactionEnvelope, Subgraphs, SubgraphSpecOptions3 as SubgraphSpecOptions, SubgraphSpecFormat2 as SubgraphSpecFormat, SubgraphOperationStatus, SubgraphAgentSchema3 as SubgraphAgentSchema, StreamsTip, StreamsSubscription, StreamsSignatureError, StreamsServerError, StreamsReorgsListParams, StreamsReorgsListEnvelope, StreamsReorgContext, StreamsReorg, StreamsEventsSubscribeParams, StreamsEventsStreamParams, StreamsEventsListParams, StreamsEventsListEnvelope, StreamsEventsEnvelope, StreamsEventsConsumeResult, StreamsEventsConsumeParams, StreamsEventType, StreamsEventPayload, StreamsEvent, StreamsDumpsManifest, StreamsDumps, StreamsDumpFile, StreamsConsumeParams, StreamsClient, StreamsCanonicalBlock, StreamsBatchContext, StreamsBatch, StandardWebhooksHeaders2 as StandardWebhooksHeaders, StackingWalkParams, StackingListParams, StackingEnvelope, SinkTx, SecondLayerOptions, SecondLayerErrorOptions, SecondLayerError, SecondLayerArchive, SecondLayer, SbtcWithdrawalsWalkParams, SbtcWithdrawalsListParams, SbtcWithdrawalsEnvelope, SbtcWithdrawalSweptConfirmedEvent, SbtcWithdrawalStatus, SbtcWithdrawalEvent, SbtcWithdrawalEnvelope, SbtcSummaryEnvelope, SbtcResource, SbtcEventsWalkParams, SbtcEventsListParams, SbtcEventsEnvelope, SbtcEventsConsumeParams, SbtcEventTopic2 as SbtcEventTopic, SbtcDepositsWalkParams, SbtcDepositsListParams, SbtcDepositsEnvelope, SbtcDepositsConsumeParams, SbtcDepositEvent, SbtcDepositEnvelope, RotateSecretResponse2 as RotateSecretResponse, RewardSet2 as RewardSet, RequestOptions, ReplayResult2 as ReplayResult, RateLimitError, PublicStatus2 as PublicStatus, PrintSchemaResponse, PoxResource, PoxCyclesWalkParams, PoxCyclesListParams, PoxCyclesEnvelope, PoxCycleEnvelope, Pox5Resource, Pox5EventsWalkParams, Pox5EventsListParams, Pox5EventsEnvelope, NftTransfersWalkParams, NftTransfersResource, NftTransfersListParams, NftTransfersEnvelope, NftTransferPayload2 as NftTransferPayload, NftTransferEvent, NftTransfer, MempoolWalkParams, MempoolTransactionEnvelope, MempoolListParams, MempoolEnvelope, LoadedArchive, LOCAL_API_URL, InsufficientArchiveCreditsError, InstanceStatus, InstanceState, InstanceIssue, InstanceDiagnosis3 as InstanceDiagnosis, InstanceClient, IndexTransaction, IndexTip, IndexStxTransfer, IndexStxMint, IndexStxLock, IndexStxBurn, IndexStackingAction, IndexSbtcWithdrawalPhase, IndexSbtcWithdrawalDetail, IndexSbtcWithdrawal, IndexSbtcSummary, IndexSbtcEvent, IndexSbtcDepositDetail, IndexSbtcDeposit, IndexReorg, IndexPrint, IndexPoxFunctionCount, IndexPoxCycle, IndexPox5EventTopic, IndexPox5Event, IndexPostCondition, IndexNftTransfer, IndexNftMint, IndexNftBurn, IndexMempoolTransaction, IndexFtTransfer, IndexFtMint, IndexFtBurn, IndexFeedItem, IndexFeedFetcher, IndexFeedEnvelope, IndexEventsResource, IndexEventTypeFilters, IndexEventType, IndexEventOf, IndexEventFields, IndexEvent, IndexDiscovery, IndexContractCall, IndexConsumeOptions, IndexCanonicalBlock, IndexBlock, IndexAlwaysFields, Index, INSTANCE_TOKEN_ENV, INDEX_MAX_PAGE_SIZE, FtTransfersWalkParams, FtTransfersResource, FtTransfersListParams, FtTransfersEnvelope, FtTransferPayload2 as FtTransferPayload, FtTransferEvent, FtTransfer, FetchLike2 as FetchLike, EventsWalkParams, EventsListParams, EventsEnvelope, EventsConsumeParams, DeliveryRow2 as DeliveryRow, DecodedStxTransferPayload, DecodedStxTransfer, DecodedStxMintPayload, DecodedStxMint, DecodedStxLockPayload, DecodedStxLock, DecodedStxBurnPayload, DecodedStxBurn, DecodedPrintValue, DecodedPrintPayload, DecodedPrint, DecodedNftTransferPayload, DecodedNftTransfer, DecodedNftMintPayload, DecodedNftMint, DecodedNftBurnPayload, DecodedNftBurn, DecodedFtTransferPayload, DecodedFtTransfer, DecodedFtMintPayload, DecodedFtMint, DecodedFtBurnPayload, DecodedFtBurn, DecodedEventRow, DecodedEventColumns, DeadRow2 as DeadRow, DEFAULT_REQUEST_TIMEOUT_MS, Cursor, CreateWebhookResponse2 as CreateWebhookResponse, CreateWebhookRequest2 as CreateWebhookRequest, CreateArchiveClientOptions, ContractsListParams, ContractsEnvelope, Contracts, ContractSummary, ContractConformance, ContractCallsWalkParams, ContractCallsListParams, ContractCallsEnvelope, ContractCallsConsumeParams, ContextSnapshot, ContextFieldError, ContextField, ContextAccount, ConsumerSink, ConsumerHealth, ConsumerBatchContext, ChainWebhookEnvelope, ChainWebhookDelivery2 as ChainWebhookDelivery, ChainTxLevelEvent, ChainTriggerType, ChainTrigger, ChainTestDelivery, ChainStxTransferData, ChainStxMintData, ChainStxLockData, ChainStxBurnData, ChainReorgRollbackEnvelope, ChainReorgRollbackDelivery, ChainReorgOrphanedEntry, ChainPrintEventData, ChainNftTransferData, ChainNftMintData, ChainNftBurnData, ChainFtTransferData, ChainFtMintData, ChainFtBurnData, ChainEventEnvelope, ChainApplyEnvelopeOf, ChainApplyEnvelope, ChainApplyDeliveryOf, CanonicalWalkParams, CanonicalListParams, CanonicalEnvelope, BlocksWalkParams, BlocksListParams, BlocksEnvelope, BlockEnvelope, AuthError, ArchiveVerifyResult, ArchiveVerifyRangeStatus, ArchiveVerifyInput, ArchiveStatus, ArchiveSignatureError, ArchiveQuote, ArchivePartition, ArchiveManifest, ArchiveLoadOptions, ArchiveGateNotConfiguredError, ArchiveFlow, ArchiveFetchResult, ArchiveFetchItem, ArchiveDataset, ArchiveCreditsBalance, ArchiveClient, ArchiveAuthError, ApiError, ActiveSubgraphOperation, ACCOUNT_KEY_ENV };
|
|
3192
|
+
export { verifyWebhookSignature, verifyTransactionProof, verify as verifyStandardWebhooksHeaders, verifySecondlayerSignature, trigger, toJsonSafe, shutdownSignal, resolveBaseUrl, resolveApiKey, resolveAccountKey, parseRetryAfter, isStxTransfer, isStxMint, isStxLock, isStxBurn, isPrint, isNftTransfer, isNftMint, isNftBurn, isFtTransfer, isFtMint, isFtBurn, getSubgraph, fetchRewardSet, decodeStxTransfer, decodeStxMint, decodeStxLock, decodeStxBurn, decodePrint, decodeNftTransfer, decodeNftMint, decodeNftBurn, decodeFtTransfer, decodeFtMint, decodeFtBurn, decodeClarityValue, decodeChainWebhook, decode, createStreamsClient, createArchiveClient, contextField, consumerHealth, consumeIndexFeed, WithSinkTx, Webhooks, WebhookTestResult2 as WebhookTestResult, WebhookSummary2 as WebhookSummary, WebhookStatus, WebhookRuntime, WebhookKind, WebhookHeaderInput, WebhookFormat, WebhookDetail2 as WebhookDetail, WalkOptions, VmStreamsEvent, ValidationError, UpdateWebhookRequest2 as UpdateWebhookRequest, TransactionsWalkParams, TransactionsListParams, TransactionsEnvelope, TransactionProofVerifyResult, TransactionProof, TransactionEnvelope, Subgraphs, SubgraphSpecOptions3 as SubgraphSpecOptions, SubgraphSpecFormat2 as SubgraphSpecFormat, SubgraphOperationStatus, SubgraphAgentSchema3 as SubgraphAgentSchema, StreamsWireEvent2 as StreamsWireEvent, StreamsTip, StreamsSubscription, StreamsSignatureError, StreamsServerError, StreamsReorgsListParams, StreamsReorgsListEnvelope, StreamsReorgContext, StreamsReorg, StreamsEventsSubscribeParams, StreamsEventsStreamParams, StreamsEventsListParams, StreamsEventsListEnvelope, StreamsEventsEnvelope, StreamsEventsConsumeResult, StreamsEventsConsumeParams, StreamsEventType, StreamsEventPayload, StreamsEvent, StreamsDumpsManifest, StreamsDumps, StreamsDumpFile, StreamsConsumeParams, StreamsClient, StreamsCanonicalBlock, StreamsBatchContext, StreamsBatch, StandardWebhooksHeaders2 as StandardWebhooksHeaders, StackingWalkParams, StackingListParams, StackingEnvelope, SinkTx, SecondLayerOptions, SecondLayerErrorOptions, SecondLayerError, SecondLayerArchive, SecondLayer, SbtcWithdrawalsWalkParams, SbtcWithdrawalsListParams, SbtcWithdrawalsEnvelope, SbtcWithdrawalSweptConfirmedEvent, SbtcWithdrawalStatus, SbtcWithdrawalEvent, SbtcWithdrawalEnvelope, SbtcSummaryEnvelope, SbtcResource, SbtcEventsWalkParams, SbtcEventsListParams, SbtcEventsEnvelope, SbtcEventsConsumeParams, SbtcEventTopic2 as SbtcEventTopic, SbtcDepositsWalkParams, SbtcDepositsListParams, SbtcDepositsEnvelope, SbtcDepositsConsumeParams, SbtcDepositEvent, SbtcDepositEnvelope, RotateSecretResponse2 as RotateSecretResponse, RewardSet2 as RewardSet, RequestOptions, ReplayResult2 as ReplayResult, RateLimitError, PublicStatus2 as PublicStatus, PrintSchemaResponse, PoxResource, PoxCyclesWalkParams, PoxCyclesListParams, PoxCyclesEnvelope, PoxCycleEnvelope, Pox5Resource, Pox5EventsWalkParams, Pox5EventsListParams, Pox5EventsEnvelope, NftTransfersWalkParams, NftTransfersResource, NftTransfersListParams, NftTransfersEnvelope, NftTransferPayload2 as NftTransferPayload, NftTransferEvent, NftTransfer, MempoolWalkParams, MempoolTransactionEnvelope, MempoolListParams, MempoolEnvelope, LoadedArchive, LOCAL_API_URL, InsufficientArchiveCreditsError, InstanceStatus, InstanceState, InstanceIssue, InstanceDiagnosis3 as InstanceDiagnosis, InstanceClient, IndexVarSet, IndexTransaction, IndexTip, IndexStxTransfer, IndexStxMint, IndexStxLock, IndexStxBurn, IndexStackingAction, IndexSbtcWithdrawalPhase, IndexSbtcWithdrawalDetail, IndexSbtcWithdrawal, IndexSbtcSummary, IndexSbtcEvent, IndexSbtcDepositDetail, IndexSbtcDeposit, IndexReorg, IndexPrint, IndexPoxFunctionCount, IndexPoxCycle, IndexPox5EventTopic, IndexPox5Event, IndexPostCondition, IndexNftTransfer, IndexNftMint, IndexNftBurn, IndexNestedContractCall, IndexMempoolTransaction, IndexMapSet, IndexMapInsert, IndexMapDelete, IndexFtTransfer, IndexFtMint, IndexFtBurn, IndexFeedItem, IndexFeedFetcher, IndexFeedEnvelope, IndexEventsResource, IndexEventTypeFilters, IndexEventType, IndexEventOf, IndexEventFields, IndexEvent, IndexDiscovery, IndexContractCall, IndexConsumeOptions, IndexCanonicalBlock, IndexBlock, IndexAlwaysFields, Index, INSTANCE_TOKEN_ENV, INDEX_MAX_PAGE_SIZE, FtTransfersWalkParams, FtTransfersResource, FtTransfersListParams, FtTransfersEnvelope, FtTransferPayload2 as FtTransferPayload, FtTransferEvent, FtTransfer, FetchLike2 as FetchLike, EventsWalkParams, EventsListParams, EventsEnvelope, EventsConsumeParams, DeliveryRow2 as DeliveryRow, DecodedStxTransferPayload, DecodedStxTransfer, DecodedStxMintPayload, DecodedStxMint, DecodedStxLockPayload, DecodedStxLock, DecodedStxBurnPayload, DecodedStxBurn, DecodedPrintValue, DecodedPrintPayload, DecodedPrint, DecodedNftTransferPayload, DecodedNftTransfer, DecodedNftMintPayload, DecodedNftMint, DecodedNftBurnPayload, DecodedNftBurn, DecodedFtTransferPayload, DecodedFtTransfer, DecodedFtMintPayload, DecodedFtMint, DecodedFtBurnPayload, DecodedFtBurn, DecodedEventRow, DecodedEventColumns, DeadRow2 as DeadRow, DEFAULT_REQUEST_TIMEOUT_MS, Cursor, CreateWebhookResponse2 as CreateWebhookResponse, CreateWebhookRequest2 as CreateWebhookRequest, CreateArchiveClientOptions, ContractsListParams, ContractsEnvelope, Contracts, ContractSummary, ContractConformance, ContractCallsWalkParams, ContractCallsListParams, ContractCallsEnvelope, ContractCallsConsumeParams, ContextSnapshot, ContextFieldError, ContextField, ContextAccount, ConsumerSink, ConsumerHealth, ConsumerBatchContext, ChainWebhookEnvelope, ChainWebhookDelivery2 as ChainWebhookDelivery, ChainTxLevelEvent, ChainTriggerType, ChainTrigger, ChainTestDelivery, ChainStxTransferData, ChainStxMintData, ChainStxLockData, ChainStxBurnData, ChainReorgRollbackEnvelope, ChainReorgRollbackDelivery, ChainReorgOrphanedEntry, ChainPrintEventData, ChainNftTransferData, ChainNftMintData, ChainNftBurnData, ChainFtTransferData, ChainFtMintData, ChainFtBurnData, ChainEventEnvelope, ChainApplyEnvelopeOf, ChainApplyEnvelope, ChainApplyDeliveryOf, CanonicalWalkParams, CanonicalListParams, CanonicalEnvelope, BlocksWalkParams, BlocksListParams, BlocksEnvelope, BlockEnvelope, AuthError, ArchiveVerifyResult, ArchiveVerifyRangeStatus, ArchiveVerifyInput, ArchiveStatus, ArchiveSignatureError, ArchiveQuote, ArchivePartition, ArchiveManifest, ArchiveLoadOptions, ArchiveGateNotConfiguredError, ArchiveFlow, ArchiveFetchResult, ArchiveFetchItem, ArchiveDataset, ArchiveCreditsBalance, ArchiveClient, ArchiveAuthError, ApiError, ActiveSubgraphOperation, ACCOUNT_KEY_ENV };
|
package/dist/index.js
CHANGED
|
@@ -1806,6 +1806,11 @@ class Index extends BaseClient {
|
|
|
1806
1806
|
asset_identifier: params.assetIdentifier,
|
|
1807
1807
|
sender: params.sender,
|
|
1808
1808
|
recipient: params.recipient,
|
|
1809
|
+
function_name: params.functionName,
|
|
1810
|
+
caller: params.caller,
|
|
1811
|
+
map: params.map,
|
|
1812
|
+
var_name: params.varName,
|
|
1813
|
+
tx_id: params.txId,
|
|
1809
1814
|
trait: params.trait,
|
|
1810
1815
|
tx_context: params.txContext ? "true" : undefined
|
|
1811
1816
|
})}`, undefined, { signal: params.signal });
|
|
@@ -2318,6 +2323,7 @@ function createStreamsClient(options) {
|
|
|
2318
2323
|
asset_identifier: params.assetIdentifier,
|
|
2319
2324
|
types: params.types,
|
|
2320
2325
|
not_types: params.notTypes,
|
|
2326
|
+
clock: params.clock === "vm" ? "vm" : undefined,
|
|
2321
2327
|
filters: encodeFilters(params.filters)
|
|
2322
2328
|
})}`);
|
|
2323
2329
|
}
|
|
@@ -2928,5 +2934,5 @@ export {
|
|
|
2928
2934
|
ACCOUNT_KEY_ENV
|
|
2929
2935
|
};
|
|
2930
2936
|
|
|
2931
|
-
//# debugId=
|
|
2937
|
+
//# debugId=1A9F98DFDABD122264756E2164756E21
|
|
2932
2938
|
//# sourceMappingURL=index.js.map
|