@thru/sdk 0.2.22 → 0.2.23

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.
Files changed (33) hide show
  1. package/README.abi.md +10 -0
  2. package/dist/abi/index.cjs +156 -7
  3. package/dist/abi/index.cjs.map +1 -1
  4. package/dist/abi/index.d.cts +38 -3
  5. package/dist/abi/index.d.ts +38 -3
  6. package/dist/abi/index.js +155 -8
  7. package/dist/abi/index.js.map +1 -1
  8. package/dist/abi/wasm/bundler/abi_reflect_wasm_bg.wasm +0 -0
  9. package/dist/abi/wasm/node/abi_reflect_wasm_bg.wasm +0 -0
  10. package/dist/abi/wasm/web/abi_reflect_wasm_bg.wasm +0 -0
  11. package/dist/{chunk-YQDWOMNO.js → chunk-7IYMAAGA.js} +2 -2
  12. package/dist/{chunk-YQDWOMNO.js.map → chunk-7IYMAAGA.js.map} +1 -1
  13. package/dist/{chunk-CVBQ4UPL.js → chunk-UFG6YDCG.js} +3 -3
  14. package/dist/{chunk-CVBQ4UPL.js.map → chunk-UFG6YDCG.js.map} +1 -1
  15. package/dist/{client-worIo0a3.d.ts → client-BmDvZzhb.d.ts} +1 -1
  16. package/dist/{client-Cfi7zRLm.d.cts → client-DjifFmSR.d.cts} +1 -1
  17. package/dist/client.cjs.map +1 -1
  18. package/dist/client.d.cts +2 -2
  19. package/dist/client.d.ts +2 -2
  20. package/dist/client.js +2 -2
  21. package/dist/metafile-cjs.json +1 -1
  22. package/dist/metafile-esm.json +1 -1
  23. package/dist/proto/index.cjs.map +1 -1
  24. package/dist/proto/index.d.cts +2 -2
  25. package/dist/proto/index.d.ts +2 -2
  26. package/dist/proto/index.js +1 -1
  27. package/dist/sdk.cjs.map +1 -1
  28. package/dist/sdk.d.cts +3 -3
  29. package/dist/sdk.d.ts +3 -3
  30. package/dist/sdk.js +2 -2
  31. package/dist/{streaming_service_pb-DvCdJiCr.d.ts → streaming_service_pb-CqoILI8i.d.cts} +10 -0
  32. package/dist/{streaming_service_pb-DvCdJiCr.d.cts → streaming_service_pb-CqoILI8i.d.ts} +10 -0
  33. package/package.json +1 -1
package/dist/sdk.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { m as BuildTransactionParams, ah as Transaction, Z as SignedTransactionResult } from './client-Cfi7zRLm.cjs';
2
- export { A as Account, a as AccountNonceObserver, b as AccountNonceObserverOptions, c as AccountQueryOptions, B as BatchSendAndTrackOptions, d as BatchSendAndTrackResult, e as BatchSendTransactionsOptions, f as BatchTrackStatus, g as Block, h as BlockList, i as BlockQueryOptions, j as BlockSelector, k as BuildAndSignTransactionOptions, l as BuildTransactionOptions, C as ChainEvent, n as CreateAccountOptions, D as DeriveAddressInput, o as DeriveAddressResult, p as DeriveProgramAddressOptions, q as DeriveProgramAddressResult, F as FeePayerNonceAllocation, r as FeePayerNonceManager, s as FeePayerNonceManagerOptions, t as Filter, u as FilterParamValue, G as GenerateStateProofOptions, v as GeneratedKeyPair, w as GetEventOptions, x as GetStateRootsOptions, H as HeightSnapshot, y as HeightSnapshotParams, I as InstructionContext, z as InstructionData, L as ListAccountsOptions, E as ListBlocksOptions, J as ListSlotMetricsOptions, K as ListTransactionsForAccountOptions, P as PageRequest, M as PageRequestParams, N as PageResponse, O as PageResponseParams, Q as Pubkey, R as PubkeyInput, S as RawAccountQueryOptions, T as RawBlockQueryOptions, U as RawTransactionQueryOptions, V as SendAndTrackTxnOptions, W as SendAndTrackTxnUpdate, X as Signature, Y as SignatureInput, _ as StateProof, $ as StreamAccountUpdate, a0 as StreamAccountUpdatesOptions, a1 as StreamAccountUpdatesResult, a2 as StreamBlocksOptions, a3 as StreamBlocksResult, a4 as StreamEventsOptions, a5 as StreamEventsResult, a6 as StreamNodeRecordsOptions, a7 as StreamNodeRecordsResult, a8 as StreamSlotMetricsOptions, a9 as StreamSlotMetricsResult, aa as StreamTransactionUpdate, ab as StreamTransactionsOptions, ac as StreamTransactionsResult, ad as Thru, ae as ThruClientConfig, af as TrackTransactionOptions, ag as TrackTransactionUpdate, ai as TransactionAccountsConfig, aj as TransactionExecutionEvent, ak as TransactionExecutionResultData, al as TransactionFeePayerConfig, am as TransactionHeaderConfig, an as TransactionList, ao as TransactionQueryOptions, ap as TransactionStatusSnapshot, aq as VersionContextInput, ar as VersionInfo, as as WaitForNonceOptions, at as accounts, au as blocks, av as chain, aw as collectStream, ax as consensus, ay as createThruClient, az as deriveAddress, aA as deriveProgramAddress, aB as events, aC as firstStreamValue, aD as forEachStreamValue, aE as height, aF as keys, aG as node, aH as nonce, aI as proofs, aJ as slots, aK as streaming, aL as transactions } from './client-Cfi7zRLm.cjs';
3
- export { l as AccountView, E as BlockView, L as ConsensusStatus, V as ExecutionStatus, Z as FilterParamValueSchema, _ as FilterSchema, cr as SubmissionStatus, cJ as TransactionView, cL as TransactionVmError } from './streaming_service_pb-DvCdJiCr.cjs';
1
+ import { m as BuildTransactionParams, ah as Transaction, Z as SignedTransactionResult } from './client-DjifFmSR.cjs';
2
+ export { A as Account, a as AccountNonceObserver, b as AccountNonceObserverOptions, c as AccountQueryOptions, B as BatchSendAndTrackOptions, d as BatchSendAndTrackResult, e as BatchSendTransactionsOptions, f as BatchTrackStatus, g as Block, h as BlockList, i as BlockQueryOptions, j as BlockSelector, k as BuildAndSignTransactionOptions, l as BuildTransactionOptions, C as ChainEvent, n as CreateAccountOptions, D as DeriveAddressInput, o as DeriveAddressResult, p as DeriveProgramAddressOptions, q as DeriveProgramAddressResult, F as FeePayerNonceAllocation, r as FeePayerNonceManager, s as FeePayerNonceManagerOptions, t as Filter, u as FilterParamValue, G as GenerateStateProofOptions, v as GeneratedKeyPair, w as GetEventOptions, x as GetStateRootsOptions, H as HeightSnapshot, y as HeightSnapshotParams, I as InstructionContext, z as InstructionData, L as ListAccountsOptions, E as ListBlocksOptions, J as ListSlotMetricsOptions, K as ListTransactionsForAccountOptions, P as PageRequest, M as PageRequestParams, N as PageResponse, O as PageResponseParams, Q as Pubkey, R as PubkeyInput, S as RawAccountQueryOptions, T as RawBlockQueryOptions, U as RawTransactionQueryOptions, V as SendAndTrackTxnOptions, W as SendAndTrackTxnUpdate, X as Signature, Y as SignatureInput, _ as StateProof, $ as StreamAccountUpdate, a0 as StreamAccountUpdatesOptions, a1 as StreamAccountUpdatesResult, a2 as StreamBlocksOptions, a3 as StreamBlocksResult, a4 as StreamEventsOptions, a5 as StreamEventsResult, a6 as StreamNodeRecordsOptions, a7 as StreamNodeRecordsResult, a8 as StreamSlotMetricsOptions, a9 as StreamSlotMetricsResult, aa as StreamTransactionUpdate, ab as StreamTransactionsOptions, ac as StreamTransactionsResult, ad as Thru, ae as ThruClientConfig, af as TrackTransactionOptions, ag as TrackTransactionUpdate, ai as TransactionAccountsConfig, aj as TransactionExecutionEvent, ak as TransactionExecutionResultData, al as TransactionFeePayerConfig, am as TransactionHeaderConfig, an as TransactionList, ao as TransactionQueryOptions, ap as TransactionStatusSnapshot, aq as VersionContextInput, ar as VersionInfo, as as WaitForNonceOptions, at as accounts, au as blocks, av as chain, aw as collectStream, ax as consensus, ay as createThruClient, az as deriveAddress, aA as deriveProgramAddress, aB as events, aC as firstStreamValue, aD as forEachStreamValue, aE as height, aF as keys, aG as node, aH as nonce, aI as proofs, aJ as slots, aK as streaming, aL as transactions } from './client-DjifFmSR.cjs';
3
+ export { l as AccountView, E as BlockView, L as ConsensusStatus, V as ExecutionStatus, Z as FilterParamValueSchema, _ as FilterSchema, cr as SubmissionStatus, cJ as TransactionView, cL as TransactionVmError } from './streaming_service_pb-CqoILI8i.cjs';
4
4
  import '@connectrpc/connect';
5
5
  import '@connectrpc/connect-web';
6
6
  import '@bufbuild/protobuf/wkt';
package/dist/sdk.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { m as BuildTransactionParams, ah as Transaction, Z as SignedTransactionResult } from './client-worIo0a3.js';
2
- export { A as Account, a as AccountNonceObserver, b as AccountNonceObserverOptions, c as AccountQueryOptions, B as BatchSendAndTrackOptions, d as BatchSendAndTrackResult, e as BatchSendTransactionsOptions, f as BatchTrackStatus, g as Block, h as BlockList, i as BlockQueryOptions, j as BlockSelector, k as BuildAndSignTransactionOptions, l as BuildTransactionOptions, C as ChainEvent, n as CreateAccountOptions, D as DeriveAddressInput, o as DeriveAddressResult, p as DeriveProgramAddressOptions, q as DeriveProgramAddressResult, F as FeePayerNonceAllocation, r as FeePayerNonceManager, s as FeePayerNonceManagerOptions, t as Filter, u as FilterParamValue, G as GenerateStateProofOptions, v as GeneratedKeyPair, w as GetEventOptions, x as GetStateRootsOptions, H as HeightSnapshot, y as HeightSnapshotParams, I as InstructionContext, z as InstructionData, L as ListAccountsOptions, E as ListBlocksOptions, J as ListSlotMetricsOptions, K as ListTransactionsForAccountOptions, P as PageRequest, M as PageRequestParams, N as PageResponse, O as PageResponseParams, Q as Pubkey, R as PubkeyInput, S as RawAccountQueryOptions, T as RawBlockQueryOptions, U as RawTransactionQueryOptions, V as SendAndTrackTxnOptions, W as SendAndTrackTxnUpdate, X as Signature, Y as SignatureInput, _ as StateProof, $ as StreamAccountUpdate, a0 as StreamAccountUpdatesOptions, a1 as StreamAccountUpdatesResult, a2 as StreamBlocksOptions, a3 as StreamBlocksResult, a4 as StreamEventsOptions, a5 as StreamEventsResult, a6 as StreamNodeRecordsOptions, a7 as StreamNodeRecordsResult, a8 as StreamSlotMetricsOptions, a9 as StreamSlotMetricsResult, aa as StreamTransactionUpdate, ab as StreamTransactionsOptions, ac as StreamTransactionsResult, ad as Thru, ae as ThruClientConfig, af as TrackTransactionOptions, ag as TrackTransactionUpdate, ai as TransactionAccountsConfig, aj as TransactionExecutionEvent, ak as TransactionExecutionResultData, al as TransactionFeePayerConfig, am as TransactionHeaderConfig, an as TransactionList, ao as TransactionQueryOptions, ap as TransactionStatusSnapshot, aq as VersionContextInput, ar as VersionInfo, as as WaitForNonceOptions, at as accounts, au as blocks, av as chain, aw as collectStream, ax as consensus, ay as createThruClient, az as deriveAddress, aA as deriveProgramAddress, aB as events, aC as firstStreamValue, aD as forEachStreamValue, aE as height, aF as keys, aG as node, aH as nonce, aI as proofs, aJ as slots, aK as streaming, aL as transactions } from './client-worIo0a3.js';
3
- export { l as AccountView, E as BlockView, L as ConsensusStatus, V as ExecutionStatus, Z as FilterParamValueSchema, _ as FilterSchema, cr as SubmissionStatus, cJ as TransactionView, cL as TransactionVmError } from './streaming_service_pb-DvCdJiCr.js';
1
+ import { m as BuildTransactionParams, ah as Transaction, Z as SignedTransactionResult } from './client-BmDvZzhb.js';
2
+ export { A as Account, a as AccountNonceObserver, b as AccountNonceObserverOptions, c as AccountQueryOptions, B as BatchSendAndTrackOptions, d as BatchSendAndTrackResult, e as BatchSendTransactionsOptions, f as BatchTrackStatus, g as Block, h as BlockList, i as BlockQueryOptions, j as BlockSelector, k as BuildAndSignTransactionOptions, l as BuildTransactionOptions, C as ChainEvent, n as CreateAccountOptions, D as DeriveAddressInput, o as DeriveAddressResult, p as DeriveProgramAddressOptions, q as DeriveProgramAddressResult, F as FeePayerNonceAllocation, r as FeePayerNonceManager, s as FeePayerNonceManagerOptions, t as Filter, u as FilterParamValue, G as GenerateStateProofOptions, v as GeneratedKeyPair, w as GetEventOptions, x as GetStateRootsOptions, H as HeightSnapshot, y as HeightSnapshotParams, I as InstructionContext, z as InstructionData, L as ListAccountsOptions, E as ListBlocksOptions, J as ListSlotMetricsOptions, K as ListTransactionsForAccountOptions, P as PageRequest, M as PageRequestParams, N as PageResponse, O as PageResponseParams, Q as Pubkey, R as PubkeyInput, S as RawAccountQueryOptions, T as RawBlockQueryOptions, U as RawTransactionQueryOptions, V as SendAndTrackTxnOptions, W as SendAndTrackTxnUpdate, X as Signature, Y as SignatureInput, _ as StateProof, $ as StreamAccountUpdate, a0 as StreamAccountUpdatesOptions, a1 as StreamAccountUpdatesResult, a2 as StreamBlocksOptions, a3 as StreamBlocksResult, a4 as StreamEventsOptions, a5 as StreamEventsResult, a6 as StreamNodeRecordsOptions, a7 as StreamNodeRecordsResult, a8 as StreamSlotMetricsOptions, a9 as StreamSlotMetricsResult, aa as StreamTransactionUpdate, ab as StreamTransactionsOptions, ac as StreamTransactionsResult, ad as Thru, ae as ThruClientConfig, af as TrackTransactionOptions, ag as TrackTransactionUpdate, ai as TransactionAccountsConfig, aj as TransactionExecutionEvent, ak as TransactionExecutionResultData, al as TransactionFeePayerConfig, am as TransactionHeaderConfig, an as TransactionList, ao as TransactionQueryOptions, ap as TransactionStatusSnapshot, aq as VersionContextInput, ar as VersionInfo, as as WaitForNonceOptions, at as accounts, au as blocks, av as chain, aw as collectStream, ax as consensus, ay as createThruClient, az as deriveAddress, aA as deriveProgramAddress, aB as events, aC as firstStreamValue, aD as forEachStreamValue, aE as height, aF as keys, aG as node, aH as nonce, aI as proofs, aJ as slots, aK as streaming, aL as transactions } from './client-BmDvZzhb.js';
3
+ export { l as AccountView, E as BlockView, L as ConsensusStatus, V as ExecutionStatus, Z as FilterParamValueSchema, _ as FilterSchema, cr as SubmissionStatus, cJ as TransactionView, cL as TransactionVmError } from './streaming_service_pb-CqoILI8i.js';
4
4
  import '@connectrpc/connect';
5
5
  import '@connectrpc/connect-web';
6
6
  import '@bufbuild/protobuf/wkt';
package/dist/sdk.js CHANGED
@@ -1,5 +1,5 @@
1
- export { Account, AccountNonceObserver, Block, ChainEvent, FeePayerNonceManager, Filter, FilterParamValue, HeightSnapshot, PageRequest, PageResponse, Pubkey, Signature, SignatureDomain, StateProof, Transaction, TransactionBuilder, TransactionStatusSnapshot, VersionInfo, accounts_exports as accounts, blocks_exports as blocks, chain_exports as chain, collectStream, consensus_exports as consensus, createThruClient, deriveAddress, deriveProgramAddress, events_exports as events, firstStreamValue, forEachStreamValue, height_exports as height, keys_exports as keys, node_exports as node, nonce_exports as nonce, proofs_exports as proofs, signWithDomain, slots_exports as slots, streaming_exports as streaming, transactions_exports as transactions, verifyWithDomain } from './chunk-CVBQ4UPL.js';
2
- export { AccountView, BlockView, ConsensusStatus, ExecutionStatus, FilterParamValueSchema, FilterSchema, SubmissionStatus, TransactionView, TransactionVmError } from './chunk-YQDWOMNO.js';
1
+ export { Account, AccountNonceObserver, Block, ChainEvent, FeePayerNonceManager, Filter, FilterParamValue, HeightSnapshot, PageRequest, PageResponse, Pubkey, Signature, SignatureDomain, StateProof, Transaction, TransactionBuilder, TransactionStatusSnapshot, VersionInfo, accounts_exports as accounts, blocks_exports as blocks, chain_exports as chain, collectStream, consensus_exports as consensus, createThruClient, deriveAddress, deriveProgramAddress, events_exports as events, firstStreamValue, forEachStreamValue, height_exports as height, keys_exports as keys, node_exports as node, nonce_exports as nonce, proofs_exports as proofs, signWithDomain, slots_exports as slots, streaming_exports as streaming, transactions_exports as transactions, verifyWithDomain } from './chunk-UFG6YDCG.js';
2
+ export { AccountView, BlockView, ConsensusStatus, ExecutionStatus, FilterParamValueSchema, FilterSchema, SubmissionStatus, TransactionView, TransactionVmError } from './chunk-7IYMAAGA.js';
3
3
  import './chunk-RL3Q6FDE.js';
4
4
  import './chunk-UDIXYJXC.js';
5
5
  import './chunk-NSBPE2FW.js';
@@ -4158,6 +4158,16 @@ declare const StreamBlocksResponseSchema: GenMessage<StreamBlocksResponse>;
4158
4158
  */
4159
4159
  type StreamAccountUpdatesRequest = Message<"thru.services.v1.StreamAccountUpdatesRequest"> & {
4160
4160
  /**
4161
+ * Projects delivered snapshots and updates to the requested fields. The
4162
+ * server strips fields the view excludes before sending: META_ONLY omits
4163
+ * Account.data and AccountUpdate.page; DATA_ONLY omits the meta; PUBKEY_ONLY
4164
+ * delivers only the address. On AccountUpdate deltas the slot and the
4165
+ * AccountUpdate.delete flag are always preserved regardless of view, so every
4166
+ * view can detect account deletion; without delete a deletion would be
4167
+ * indistinguishable from a page-less update.
4168
+ * ACCOUNT_VIEW_UNSPECIFIED defaults to ACCOUNT_VIEW_FULL, matching the unary
4169
+ * GetAccount RPC.
4170
+ *
4161
4171
  * @generated from field: optional thru.core.v1.AccountView view = 2;
4162
4172
  */
4163
4173
  view?: AccountView | undefined;
@@ -4158,6 +4158,16 @@ declare const StreamBlocksResponseSchema: GenMessage<StreamBlocksResponse>;
4158
4158
  */
4159
4159
  type StreamAccountUpdatesRequest = Message<"thru.services.v1.StreamAccountUpdatesRequest"> & {
4160
4160
  /**
4161
+ * Projects delivered snapshots and updates to the requested fields. The
4162
+ * server strips fields the view excludes before sending: META_ONLY omits
4163
+ * Account.data and AccountUpdate.page; DATA_ONLY omits the meta; PUBKEY_ONLY
4164
+ * delivers only the address. On AccountUpdate deltas the slot and the
4165
+ * AccountUpdate.delete flag are always preserved regardless of view, so every
4166
+ * view can detect account deletion; without delete a deletion would be
4167
+ * indistinguishable from a page-less update.
4168
+ * ACCOUNT_VIEW_UNSPECIFIED defaults to ACCOUNT_VIEW_FULL, matching the unary
4169
+ * GetAccount RPC.
4170
+ *
4161
4171
  * @generated from field: optional thru.core.v1.AccountView view = 2;
4162
4172
  */
4163
4173
  view?: AccountView | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thru/sdk",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "type": "module",
5
5
  "main": "./dist/sdk.cjs",
6
6
  "module": "./dist/sdk.js",