@secondlayer/stacks 6.1.2 → 6.2.1

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 (53) hide show
  1. package/dist/shared/{stacks-esm-qfzxhdqz.js → stacks-esm-1b2rhv6y.js} +2 -2
  2. package/dist/shared/{stacks-esm-snj9s2q8.js → stacks-esm-7n5wd5md.js} +3 -3
  3. package/dist/shared/stacks-esm-b54n1jdx.js.map +4 -4
  4. package/dist/shared/{stacks-esm-pxv6ny92.js → stacks-esm-exgw8j2j.js} +4 -4
  5. package/dist/shared/{stacks-esm-phgy8yqf.js → stacks-esm-p3zypwsw.js} +15 -3
  6. package/dist/shared/{stacks-esm-phgy8yqf.js.map → stacks-esm-p3zypwsw.js.map} +3 -3
  7. package/dist/shared/{stacks-esm-cmtj5vky.js → stacks-esm-pq0e379d.js} +2 -2
  8. package/dist/shared/{stacks-esm-ea4m4bk7.js → stacks-esm-xcd4sv1h.js} +3 -3
  9. package/dist/src/actions/index.cjs +13 -1
  10. package/dist/src/actions/index.cjs.map +3 -3
  11. package/dist/src/actions/index.js +5 -5
  12. package/dist/src/bns/index.cjs +13 -1
  13. package/dist/src/bns/index.cjs.map +3 -3
  14. package/dist/src/bns/index.js +5 -5
  15. package/dist/src/filters/index.cjs.map +4 -4
  16. package/dist/src/filters/index.d.cts +153 -17
  17. package/dist/src/filters/index.d.ts +153 -17
  18. package/dist/src/index.cjs +13 -1
  19. package/dist/src/index.cjs.map +6 -6
  20. package/dist/src/index.d.cts +133 -5
  21. package/dist/src/index.d.ts +133 -5
  22. package/dist/src/index.js +4 -4
  23. package/dist/src/postconditions/index.cjs +13 -1
  24. package/dist/src/postconditions/index.cjs.map +3 -3
  25. package/dist/src/postconditions/index.js +2 -2
  26. package/dist/src/pox/index.cjs +13 -1
  27. package/dist/src/pox/index.cjs.map +3 -3
  28. package/dist/src/pox/index.js +5 -5
  29. package/dist/src/pox5/index.cjs +13 -1
  30. package/dist/src/pox5/index.cjs.map +3 -3
  31. package/dist/src/pox5/index.js +4 -4
  32. package/dist/src/sbtc/index.cjs +13 -1
  33. package/dist/src/sbtc/index.cjs.map +3 -3
  34. package/dist/src/sbtc/index.js +4 -4
  35. package/dist/src/simnet/index.cjs +4 -2
  36. package/dist/src/simnet/index.cjs.map +3 -3
  37. package/dist/src/simnet/index.js +4 -2
  38. package/dist/src/simnet/index.js.map +3 -3
  39. package/dist/src/stackingdao/index.cjs +13 -1
  40. package/dist/src/stackingdao/index.cjs.map +3 -3
  41. package/dist/src/stackingdao/index.js +5 -5
  42. package/dist/src/transactions/index.cjs +15 -2
  43. package/dist/src/transactions/index.cjs.map +3 -3
  44. package/dist/src/transactions/index.d.cts +9 -1
  45. package/dist/src/transactions/index.d.ts +9 -1
  46. package/dist/src/transactions/index.js +7 -5
  47. package/dist/src/transactions/index.js.map +1 -1
  48. package/package.json +2 -1
  49. /package/dist/shared/{stacks-esm-qfzxhdqz.js.map → stacks-esm-1b2rhv6y.js.map} +0 -0
  50. /package/dist/shared/{stacks-esm-snj9s2q8.js.map → stacks-esm-7n5wd5md.js.map} +0 -0
  51. /package/dist/shared/{stacks-esm-pxv6ny92.js.map → stacks-esm-exgw8j2j.js.map} +0 -0
  52. /package/dist/shared/{stacks-esm-cmtj5vky.js.map → stacks-esm-pq0e379d.js.map} +0 -0
  53. /package/dist/shared/{stacks-esm-ea4m4bk7.js.map → stacks-esm-xcd4sv1h.js.map} +0 -0
@@ -1454,6 +1454,7 @@ type WebSocketTransport = Transport & {
1454
1454
  * HTTP requests use the resolved RPC URL; subscriptions use the WS endpoint.
1455
1455
  */
1456
1456
  declare function webSocket(url?: string, config?: WebSocketTransportConfig): TransportFactory;
1457
+ /** The decoded event types. Index and Streams expose the same set. */
1457
1458
  declare const DECODED_EVENT_TYPES: readonly ["stx_transfer", "stx_mint", "stx_burn", "stx_lock", "ft_transfer", "ft_mint", "ft_burn", "nft_transfer", "nft_mint", "nft_burn", "print"];
1458
1459
  type DecodedEventType = (typeof DECODED_EVENT_TYPES)[number];
1459
1460
  /** Opt-in node vm_events, stored names. Parallel to DECODED_EVENT_TYPES — not
@@ -1873,18 +1874,74 @@ type Fields<T extends ChainEventFilterType> = Omit<SpecFor<T>, "type">;
1873
1874
  * annotation on exported values (an inferred object of generic factories
1874
1875
  * collapses to `{}` in the emitted declarations). */
1875
1876
  interface OnNamespace {
1877
+ /**
1878
+ * Matches STX transfers.
1879
+ *
1880
+ * @param fields The members of {@link StxTransferSpec}, without `type`.
1881
+ */
1876
1882
  stxTransfer(fields?: Fields<"stx_transfer">): ChainEventFilter<"stx_transfer">;
1883
+ /**
1884
+ * Matches STX mints.
1885
+ *
1886
+ * @param fields The members of {@link StxMintSpec}, without `type`.
1887
+ */
1877
1888
  stxMint(fields?: Fields<"stx_mint">): ChainEventFilter<"stx_mint">;
1889
+ /**
1890
+ * Matches STX burns.
1891
+ *
1892
+ * @param fields The members of {@link StxBurnSpec}, without `type`.
1893
+ */
1878
1894
  stxBurn(fields?: Fields<"stx_burn">): ChainEventFilter<"stx_burn">;
1895
+ /**
1896
+ * Matches STX lock events.
1897
+ *
1898
+ * @param fields The members of {@link StxLockSpec}, without `type`.
1899
+ */
1879
1900
  stxLock(fields?: Fields<"stx_lock">): ChainEventFilter<"stx_lock">;
1901
+ /**
1902
+ * Matches fungible token transfers.
1903
+ *
1904
+ * @param fields The members of {@link FtTransferSpec}, without `type`.
1905
+ */
1880
1906
  ftTransfer(fields?: Fields<"ft_transfer">): ChainEventFilter<"ft_transfer">;
1907
+ /**
1908
+ * Matches fungible token mints.
1909
+ *
1910
+ * @param fields The members of {@link FtMintSpec}, without `type`.
1911
+ */
1881
1912
  ftMint(fields?: Fields<"ft_mint">): ChainEventFilter<"ft_mint">;
1913
+ /**
1914
+ * Matches fungible token burns.
1915
+ *
1916
+ * @param fields The members of {@link FtBurnSpec}, without `type`.
1917
+ */
1882
1918
  ftBurn(fields?: Fields<"ft_burn">): ChainEventFilter<"ft_burn">;
1919
+ /**
1920
+ * Matches NFT transfers.
1921
+ *
1922
+ * @param fields The members of {@link NftTransferSpec}, without `type`.
1923
+ */
1883
1924
  nftTransfer(fields?: Fields<"nft_transfer">): ChainEventFilter<"nft_transfer">;
1925
+ /**
1926
+ * Matches NFT mints.
1927
+ *
1928
+ * @param fields The members of {@link NftMintSpec}, without `type`.
1929
+ */
1884
1930
  nftMint(fields?: Fields<"nft_mint">): ChainEventFilter<"nft_mint">;
1931
+ /**
1932
+ * Matches NFT burns.
1933
+ *
1934
+ * @param fields The members of {@link NftBurnSpec}, without `type`.
1935
+ */
1885
1936
  nftBurn(fields?: Fields<"nft_burn">): ChainEventFilter<"nft_burn">;
1886
- /** `abi` literals are preserved (`const A`) so `toSubgraphSource()` keeps
1887
- * typing `event.input` inside `defineSubgraph`. */
1937
+ /**
1938
+ * Matches contract calls.
1939
+ *
1940
+ * `abi` literals are preserved (`const A`), so `toSubgraphSource()` keeps
1941
+ * typing `event.input` inside `defineSubgraph`.
1942
+ *
1943
+ * @param fields The members of {@link ContractCallSpec}, without `type`.
1944
+ */
1888
1945
  contractCall<const A extends AbiContract | undefined = undefined>(fields?: Omit<SpecFor<"contract_call">, "type" | "abi"> & {
1889
1946
  abi?: A
1890
1947
  }): ChainEventFilter<"contract_call", {
@@ -1892,10 +1949,21 @@ interface OnNamespace {
1892
1949
  } & Omit<SpecFor<"contract_call">, "type" | "abi"> & {
1893
1950
  abi?: A
1894
1951
  }>;
1952
+ /**
1953
+ * Matches contract deployments.
1954
+ *
1955
+ * @param fields The members of {@link ContractDeploySpec}, without `type`.
1956
+ */
1895
1957
  contractDeploy(fields?: Fields<"contract_deploy">): ChainEventFilter<"contract_deploy">;
1896
- /** Canonical member is `print_event` (as Subgraphs and Webhooks spell
1897
- * it); `toIndexParams`/`toStreamsParams` project to `print`. `prints`
1898
- * literals are preserved (`const P`) for per-topic `event.data` narrowing. */
1958
+ /**
1959
+ * Matches `print` events.
1960
+ *
1961
+ * The canonical member is `print_event`, as Subgraphs and Webhooks spell it;
1962
+ * `toIndexParams` and `toStreamsParams` project to `print`. `prints` literals
1963
+ * are preserved (`const P`), so `event.data` narrows per topic.
1964
+ *
1965
+ * @param fields The members of {@link PrintEventSpec}, without `type`.
1966
+ */
1899
1967
  print<const P extends Record<string, Record<string, PrintFieldType>> | undefined = undefined>(fields?: Omit<SpecFor<"print_event">, "type" | "prints"> & {
1900
1968
  prints?: P
1901
1969
  }): ChainEventFilter<"print_event", {
@@ -1903,15 +1971,75 @@ interface OnNamespace {
1903
1971
  } & Omit<SpecFor<"print_event">, "type" | "prints"> & {
1904
1972
  prints?: P
1905
1973
  }>;
1974
+ /**
1975
+ * Matches contract calls made from inside another contract.
1976
+ *
1977
+ * @param fields The members of {@link NestedContractCallSpec}, without `type`.
1978
+ */
1906
1979
  nestedCall(fields?: Fields<"nested_contract_call">): ChainEventFilter<"nested_contract_call">;
1980
+ /**
1981
+ * Matches data variable writes.
1982
+ *
1983
+ * @param fields The members of {@link VarSetSpec}, without `type`.
1984
+ */
1907
1985
  varSet(fields?: Fields<"var_set">): ChainEventFilter<"var_set">;
1986
+ /**
1987
+ * Matches `map-set` writes.
1988
+ *
1989
+ * @param fields The members of {@link MapSetSpec}, without `type`.
1990
+ */
1908
1991
  mapSet(fields?: Fields<"map_set">): ChainEventFilter<"map_set">;
1992
+ /**
1993
+ * Matches `map-insert` writes.
1994
+ *
1995
+ * @param fields The members of {@link MapInsertSpec}, without `type`.
1996
+ */
1909
1997
  mapInsert(fields?: Fields<"map_insert">): ChainEventFilter<"map_insert">;
1998
+ /**
1999
+ * Matches `map-delete` writes.
2000
+ *
2001
+ * @param fields The members of {@link MapDeleteSpec}, without `type`.
2002
+ */
1910
2003
  mapDelete(fields?: Fields<"map_delete">): ChainEventFilter<"map_delete">;
2004
+ /**
2005
+ * Matches sBTC deposits.
2006
+ *
2007
+ * Webhooks only: it has no Index, Streams or subgraph projection.
2008
+ *
2009
+ * @param fields The members of {@link SbtcDepositSpec}, without `type`.
2010
+ */
1911
2011
  sbtcDeposit(fields?: Fields<"sbtc_deposit">): ChainEventFilter<"sbtc_deposit">;
2012
+ /**
2013
+ * Matches sBTC withdrawal requests.
2014
+ *
2015
+ * Webhooks only: it has no Index, Streams or subgraph projection.
2016
+ *
2017
+ * @param fields The members of {@link SbtcWithdrawalCreateSpec}, without `type`.
2018
+ */
1912
2019
  sbtcWithdrawalCreate(fields?: Fields<"sbtc_withdrawal_create">): ChainEventFilter<"sbtc_withdrawal_create">;
2020
+ /**
2021
+ * Matches accepted sBTC withdrawals.
2022
+ *
2023
+ * Webhooks only: it has no Index, Streams or subgraph projection.
2024
+ *
2025
+ * @param fields The members of {@link SbtcWithdrawalAcceptSpec}, without `type`.
2026
+ */
1913
2027
  sbtcWithdrawalAccept(fields?: Fields<"sbtc_withdrawal_accept">): ChainEventFilter<"sbtc_withdrawal_accept">;
2028
+ /**
2029
+ * Matches rejected sBTC withdrawals.
2030
+ *
2031
+ * Webhooks only: it has no Index, Streams or subgraph projection.
2032
+ *
2033
+ * @param fields The members of {@link SbtcWithdrawalRejectSpec}, without `type`.
2034
+ */
1914
2035
  sbtcWithdrawalReject(fields?: Fields<"sbtc_withdrawal_reject">): ChainEventFilter<"sbtc_withdrawal_reject">;
2036
+ /**
2037
+ * Matches sBTC withdrawals whose sweep has confirmed.
2038
+ *
2039
+ * Webhooks only: it has no Index, Streams or subgraph projection.
2040
+ *
2041
+ * @param fields The members of {@link SbtcWithdrawalSweptConfirmedSpec}, without `type`.
2042
+ */
1915
2043
  sbtcWithdrawalSweptConfirmed(fields?: Fields<"sbtc_withdrawal_swept_confirmed">): ChainEventFilter<"sbtc_withdrawal_swept_confirmed">;
1916
2044
  }
1917
2045
  /**
@@ -1454,6 +1454,7 @@ type WebSocketTransport = Transport & {
1454
1454
  * HTTP requests use the resolved RPC URL; subscriptions use the WS endpoint.
1455
1455
  */
1456
1456
  declare function webSocket(url?: string, config?: WebSocketTransportConfig): TransportFactory;
1457
+ /** The decoded event types. Index and Streams expose the same set. */
1457
1458
  declare const DECODED_EVENT_TYPES: readonly ["stx_transfer", "stx_mint", "stx_burn", "stx_lock", "ft_transfer", "ft_mint", "ft_burn", "nft_transfer", "nft_mint", "nft_burn", "print"];
1458
1459
  type DecodedEventType = (typeof DECODED_EVENT_TYPES)[number];
1459
1460
  /** Opt-in node vm_events, stored names. Parallel to DECODED_EVENT_TYPES — not
@@ -1873,18 +1874,74 @@ type Fields<T extends ChainEventFilterType> = Omit<SpecFor<T>, "type">;
1873
1874
  * annotation on exported values (an inferred object of generic factories
1874
1875
  * collapses to `{}` in the emitted declarations). */
1875
1876
  interface OnNamespace {
1877
+ /**
1878
+ * Matches STX transfers.
1879
+ *
1880
+ * @param fields The members of {@link StxTransferSpec}, without `type`.
1881
+ */
1876
1882
  stxTransfer(fields?: Fields<"stx_transfer">): ChainEventFilter<"stx_transfer">;
1883
+ /**
1884
+ * Matches STX mints.
1885
+ *
1886
+ * @param fields The members of {@link StxMintSpec}, without `type`.
1887
+ */
1877
1888
  stxMint(fields?: Fields<"stx_mint">): ChainEventFilter<"stx_mint">;
1889
+ /**
1890
+ * Matches STX burns.
1891
+ *
1892
+ * @param fields The members of {@link StxBurnSpec}, without `type`.
1893
+ */
1878
1894
  stxBurn(fields?: Fields<"stx_burn">): ChainEventFilter<"stx_burn">;
1895
+ /**
1896
+ * Matches STX lock events.
1897
+ *
1898
+ * @param fields The members of {@link StxLockSpec}, without `type`.
1899
+ */
1879
1900
  stxLock(fields?: Fields<"stx_lock">): ChainEventFilter<"stx_lock">;
1901
+ /**
1902
+ * Matches fungible token transfers.
1903
+ *
1904
+ * @param fields The members of {@link FtTransferSpec}, without `type`.
1905
+ */
1880
1906
  ftTransfer(fields?: Fields<"ft_transfer">): ChainEventFilter<"ft_transfer">;
1907
+ /**
1908
+ * Matches fungible token mints.
1909
+ *
1910
+ * @param fields The members of {@link FtMintSpec}, without `type`.
1911
+ */
1881
1912
  ftMint(fields?: Fields<"ft_mint">): ChainEventFilter<"ft_mint">;
1913
+ /**
1914
+ * Matches fungible token burns.
1915
+ *
1916
+ * @param fields The members of {@link FtBurnSpec}, without `type`.
1917
+ */
1882
1918
  ftBurn(fields?: Fields<"ft_burn">): ChainEventFilter<"ft_burn">;
1919
+ /**
1920
+ * Matches NFT transfers.
1921
+ *
1922
+ * @param fields The members of {@link NftTransferSpec}, without `type`.
1923
+ */
1883
1924
  nftTransfer(fields?: Fields<"nft_transfer">): ChainEventFilter<"nft_transfer">;
1925
+ /**
1926
+ * Matches NFT mints.
1927
+ *
1928
+ * @param fields The members of {@link NftMintSpec}, without `type`.
1929
+ */
1884
1930
  nftMint(fields?: Fields<"nft_mint">): ChainEventFilter<"nft_mint">;
1931
+ /**
1932
+ * Matches NFT burns.
1933
+ *
1934
+ * @param fields The members of {@link NftBurnSpec}, without `type`.
1935
+ */
1885
1936
  nftBurn(fields?: Fields<"nft_burn">): ChainEventFilter<"nft_burn">;
1886
- /** `abi` literals are preserved (`const A`) so `toSubgraphSource()` keeps
1887
- * typing `event.input` inside `defineSubgraph`. */
1937
+ /**
1938
+ * Matches contract calls.
1939
+ *
1940
+ * `abi` literals are preserved (`const A`), so `toSubgraphSource()` keeps
1941
+ * typing `event.input` inside `defineSubgraph`.
1942
+ *
1943
+ * @param fields The members of {@link ContractCallSpec}, without `type`.
1944
+ */
1888
1945
  contractCall<const A extends AbiContract | undefined = undefined>(fields?: Omit<SpecFor<"contract_call">, "type" | "abi"> & {
1889
1946
  abi?: A
1890
1947
  }): ChainEventFilter<"contract_call", {
@@ -1892,10 +1949,21 @@ interface OnNamespace {
1892
1949
  } & Omit<SpecFor<"contract_call">, "type" | "abi"> & {
1893
1950
  abi?: A
1894
1951
  }>;
1952
+ /**
1953
+ * Matches contract deployments.
1954
+ *
1955
+ * @param fields The members of {@link ContractDeploySpec}, without `type`.
1956
+ */
1895
1957
  contractDeploy(fields?: Fields<"contract_deploy">): ChainEventFilter<"contract_deploy">;
1896
- /** Canonical member is `print_event` (as Subgraphs and Webhooks spell
1897
- * it); `toIndexParams`/`toStreamsParams` project to `print`. `prints`
1898
- * literals are preserved (`const P`) for per-topic `event.data` narrowing. */
1958
+ /**
1959
+ * Matches `print` events.
1960
+ *
1961
+ * The canonical member is `print_event`, as Subgraphs and Webhooks spell it;
1962
+ * `toIndexParams` and `toStreamsParams` project to `print`. `prints` literals
1963
+ * are preserved (`const P`), so `event.data` narrows per topic.
1964
+ *
1965
+ * @param fields The members of {@link PrintEventSpec}, without `type`.
1966
+ */
1899
1967
  print<const P extends Record<string, Record<string, PrintFieldType>> | undefined = undefined>(fields?: Omit<SpecFor<"print_event">, "type" | "prints"> & {
1900
1968
  prints?: P
1901
1969
  }): ChainEventFilter<"print_event", {
@@ -1903,15 +1971,75 @@ interface OnNamespace {
1903
1971
  } & Omit<SpecFor<"print_event">, "type" | "prints"> & {
1904
1972
  prints?: P
1905
1973
  }>;
1974
+ /**
1975
+ * Matches contract calls made from inside another contract.
1976
+ *
1977
+ * @param fields The members of {@link NestedContractCallSpec}, without `type`.
1978
+ */
1906
1979
  nestedCall(fields?: Fields<"nested_contract_call">): ChainEventFilter<"nested_contract_call">;
1980
+ /**
1981
+ * Matches data variable writes.
1982
+ *
1983
+ * @param fields The members of {@link VarSetSpec}, without `type`.
1984
+ */
1907
1985
  varSet(fields?: Fields<"var_set">): ChainEventFilter<"var_set">;
1986
+ /**
1987
+ * Matches `map-set` writes.
1988
+ *
1989
+ * @param fields The members of {@link MapSetSpec}, without `type`.
1990
+ */
1908
1991
  mapSet(fields?: Fields<"map_set">): ChainEventFilter<"map_set">;
1992
+ /**
1993
+ * Matches `map-insert` writes.
1994
+ *
1995
+ * @param fields The members of {@link MapInsertSpec}, without `type`.
1996
+ */
1909
1997
  mapInsert(fields?: Fields<"map_insert">): ChainEventFilter<"map_insert">;
1998
+ /**
1999
+ * Matches `map-delete` writes.
2000
+ *
2001
+ * @param fields The members of {@link MapDeleteSpec}, without `type`.
2002
+ */
1910
2003
  mapDelete(fields?: Fields<"map_delete">): ChainEventFilter<"map_delete">;
2004
+ /**
2005
+ * Matches sBTC deposits.
2006
+ *
2007
+ * Webhooks only: it has no Index, Streams or subgraph projection.
2008
+ *
2009
+ * @param fields The members of {@link SbtcDepositSpec}, without `type`.
2010
+ */
1911
2011
  sbtcDeposit(fields?: Fields<"sbtc_deposit">): ChainEventFilter<"sbtc_deposit">;
2012
+ /**
2013
+ * Matches sBTC withdrawal requests.
2014
+ *
2015
+ * Webhooks only: it has no Index, Streams or subgraph projection.
2016
+ *
2017
+ * @param fields The members of {@link SbtcWithdrawalCreateSpec}, without `type`.
2018
+ */
1912
2019
  sbtcWithdrawalCreate(fields?: Fields<"sbtc_withdrawal_create">): ChainEventFilter<"sbtc_withdrawal_create">;
2020
+ /**
2021
+ * Matches accepted sBTC withdrawals.
2022
+ *
2023
+ * Webhooks only: it has no Index, Streams or subgraph projection.
2024
+ *
2025
+ * @param fields The members of {@link SbtcWithdrawalAcceptSpec}, without `type`.
2026
+ */
1913
2027
  sbtcWithdrawalAccept(fields?: Fields<"sbtc_withdrawal_accept">): ChainEventFilter<"sbtc_withdrawal_accept">;
2028
+ /**
2029
+ * Matches rejected sBTC withdrawals.
2030
+ *
2031
+ * Webhooks only: it has no Index, Streams or subgraph projection.
2032
+ *
2033
+ * @param fields The members of {@link SbtcWithdrawalRejectSpec}, without `type`.
2034
+ */
1914
2035
  sbtcWithdrawalReject(fields?: Fields<"sbtc_withdrawal_reject">): ChainEventFilter<"sbtc_withdrawal_reject">;
2036
+ /**
2037
+ * Matches sBTC withdrawals whose sweep has confirmed.
2038
+ *
2039
+ * Webhooks only: it has no Index, Streams or subgraph projection.
2040
+ *
2041
+ * @param fields The members of {@link SbtcWithdrawalSweptConfirmedSpec}, without `type`.
2042
+ */
1915
2043
  sbtcWithdrawalSweptConfirmed(fields?: Fields<"sbtc_withdrawal_swept_confirmed">): ChainEventFilter<"sbtc_withdrawal_swept_confirmed">;
1916
2044
  }
1917
2045
  /**
package/dist/src/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  SerializationError2,
9
9
  SigningError2
10
10
  } from "../shared/stacks-esm-hkw1kvd4.js";
11
- import"../shared/stacks-esm-phgy8yqf.js";
11
+ import"../shared/stacks-esm-p3zypwsw.js";
12
12
  import {
13
13
  AddressVersion2,
14
14
  ZERO_ADDRESS2,
@@ -25,7 +25,7 @@ import {
25
25
  buildTokenTransfer2,
26
26
  buildContractCall2,
27
27
  buildContractDeploy2
28
- } from "../shared/stacks-esm-cmtj5vky.js";
28
+ } from "../shared/stacks-esm-pq0e379d.js";
29
29
  import"../shared/stacks-esm-tdrdye4y.js";
30
30
  import {
31
31
  getAccountHistory2,
@@ -44,7 +44,7 @@ import {
44
44
  signTransactionAction2,
45
45
  sponsorTransaction2,
46
46
  transferStx2
47
- } from "../shared/stacks-esm-pxv6ny92.js";
47
+ } from "../shared/stacks-esm-exgw8j2j.js";
48
48
  import {
49
49
  on2
50
50
  } from "../shared/stacks-esm-b54n1jdx.js";
@@ -90,7 +90,7 @@ import {
90
90
  broadcastWithNonceReset2,
91
91
  setUnsignedFee,
92
92
  callContract2
93
- } from "../shared/stacks-esm-ea4m4bk7.js";
93
+ } from "../shared/stacks-esm-xcd4sv1h.js";
94
94
  import {
95
95
  MalformedResponseError2,
96
96
  ReadContractError2,
@@ -1200,7 +1200,19 @@ function deserializePostConditionWire(input) {
1200
1200
  }
1201
1201
  function deserializeTransaction(input, meta) {
1202
1202
  const bytes = typeof input === "string" ? hexToBytes(without0x(input)) : input;
1203
+ return readTransaction(new BytesReader(bytes), meta);
1204
+ }
1205
+ function splitTransactions(bytes, count) {
1203
1206
  const r = new BytesReader(bytes);
1207
+ const out = [];
1208
+ for (let i = 0;i < count; i++) {
1209
+ const start = r.offset;
1210
+ readTransaction(r);
1211
+ out.push(bytes.subarray(start, r.offset));
1212
+ }
1213
+ return out;
1214
+ }
1215
+ function readTransaction(r, meta) {
1204
1216
  const tx = {
1205
1217
  version: r.readUInt8(),
1206
1218
  chainId: r.readUInt32BE(),
@@ -1726,5 +1738,5 @@ var Pc = {
1726
1738
  fromHex: (hex) => fromHex(hex)
1727
1739
  };
1728
1740
 
1729
- //# debugId=DCA14D0ED662F6C664756E2164756E21
1741
+ //# debugId=C387C573C68AB8DF64756E2164756E21
1730
1742
  //# sourceMappingURL=index.cjs.map