@secondlayer/stacks 6.6.1 → 7.1.0

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 (42) hide show
  1. package/dist/shared/{stacks-esm-0t9vwtwh.js → stacks-esm-m5cf2pgd.js} +3 -3
  2. package/dist/shared/{stacks-esm-0t9vwtwh.js.map → stacks-esm-m5cf2pgd.js.map} +2 -2
  3. package/dist/shared/{stacks-esm-m8ph0bvw.js → stacks-esm-mqa4kfwy.js} +2 -2
  4. package/dist/shared/{stacks-esm-1f46cr7b.js → stacks-esm-t693pnqz.js} +3 -3
  5. package/dist/shared/{stacks-esm-wjg9aer9.js → stacks-esm-xd1mydkh.js} +8 -6
  6. package/dist/shared/{stacks-esm-wjg9aer9.js.map → stacks-esm-xd1mydkh.js.map} +3 -3
  7. package/dist/src/actions/index.cjs +7 -4
  8. package/dist/src/actions/index.cjs.map +4 -4
  9. package/dist/src/actions/index.d.cts +6 -0
  10. package/dist/src/actions/index.d.ts +6 -0
  11. package/dist/src/actions/index.js +4 -4
  12. package/dist/src/bns/index.cjs +7 -4
  13. package/dist/src/bns/index.cjs.map +3 -3
  14. package/dist/src/bns/index.js +3 -3
  15. package/dist/src/filters/index.d.cts +2 -2
  16. package/dist/src/filters/index.d.ts +2 -2
  17. package/dist/src/index.cjs +7 -4
  18. package/dist/src/index.cjs.map +5 -5
  19. package/dist/src/index.d.cts +14 -2
  20. package/dist/src/index.d.ts +14 -2
  21. package/dist/src/index.js +3 -3
  22. package/dist/src/index.js.map +2 -2
  23. package/dist/src/pox/index.cjs +7 -4
  24. package/dist/src/pox/index.cjs.map +3 -3
  25. package/dist/src/pox/index.js +3 -3
  26. package/dist/src/pox5/index.cjs +7 -4
  27. package/dist/src/pox5/index.cjs.map +3 -3
  28. package/dist/src/pox5/index.js +3 -3
  29. package/dist/src/sbtc/index.cjs +7 -4
  30. package/dist/src/sbtc/index.cjs.map +3 -3
  31. package/dist/src/sbtc/index.js +3 -3
  32. package/dist/src/stackingdao/index.cjs +7 -4
  33. package/dist/src/stackingdao/index.cjs.map +3 -3
  34. package/dist/src/stackingdao/index.js +3 -3
  35. package/dist/src/transactions/index.cjs +7 -4
  36. package/dist/src/transactions/index.cjs.map +3 -3
  37. package/dist/src/transactions/index.d.cts +6 -0
  38. package/dist/src/transactions/index.d.ts +6 -0
  39. package/dist/src/transactions/index.js +1 -1
  40. package/package.json +1 -1
  41. /package/dist/shared/{stacks-esm-m8ph0bvw.js.map → stacks-esm-mqa4kfwy.js.map} +0 -0
  42. /package/dist/shared/{stacks-esm-1f46cr7b.js.map → stacks-esm-t693pnqz.js.map} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  } from "../../shared/stacks-esm-jwgtksgq.js";
8
8
  import"../../shared/stacks-esm-4rjjsz3p.js";
9
9
  import"../../shared/stacks-esm-2z40q8gs.js";
10
- import"../../shared/stacks-esm-wjg9aer9.js";
10
+ import"../../shared/stacks-esm-xd1mydkh.js";
11
11
  import"../../shared/stacks-esm-zsdw7fq3.js";
12
12
  import"../../shared/stacks-esm-hcaycch3.js";
13
13
  import {
@@ -17,8 +17,8 @@ import {
17
17
  getContract2,
18
18
  resolveNetworkContract,
19
19
  ContractResponseError2
20
- } from "../../shared/stacks-esm-1f46cr7b.js";
21
- import"../../shared/stacks-esm-m8ph0bvw.js";
20
+ } from "../../shared/stacks-esm-t693pnqz.js";
21
+ import"../../shared/stacks-esm-mqa4kfwy.js";
22
22
  import"../../shared/stacks-esm-mqhwqhq4.js";
23
23
 
24
24
  // src/bns/abi.ts
@@ -323,11 +323,11 @@ interface PrintEventSpec extends TraitScope, FactoryScope {
323
323
  }
324
324
  interface SbtcDepositSpec {
325
325
  type: "sbtc_deposit";
326
- sender?: string;
326
+ /** Stacks principal the deposit minted sBTC to. */
327
+ recipient?: string;
327
328
  minAmount?: bigint;
328
329
  maxAmount?: bigint;
329
330
  bitcoinTxid?: string;
330
- requestId?: number;
331
331
  }
332
332
  interface SbtcWithdrawalCreateSpec {
333
333
  type: "sbtc_withdrawal_create";
@@ -323,11 +323,11 @@ interface PrintEventSpec extends TraitScope, FactoryScope {
323
323
  }
324
324
  interface SbtcDepositSpec {
325
325
  type: "sbtc_deposit";
326
- sender?: string;
326
+ /** Stacks principal the deposit minted sBTC to. */
327
+ recipient?: string;
327
328
  minAmount?: bigint;
328
329
  maxAmount?: bigint;
329
330
  bitcoinTxid?: string;
330
- requestId?: number;
331
331
  }
332
332
  interface SbtcWithdrawalCreateSpec {
333
333
  type: "sbtc_withdrawal_create";
@@ -2988,7 +2988,6 @@ function buildContractDeploy(options) {
2988
2988
  const fee = intToBigInt(options.fee);
2989
2989
  const nonce = intToBigInt(options.nonce);
2990
2990
  const spendingCondition = resolveSpendingCondition(options, nonce, fee);
2991
- const clarityVersion = options.clarityVersion ?? ClarityVersion.Clarity4;
2992
2991
  const tx = {
2993
2992
  version,
2994
2993
  chainId,
@@ -2996,9 +2995,13 @@ function buildContractDeploy(options) {
2996
2995
  anchorMode: AnchorMode.Any,
2997
2996
  postConditionMode: resolvePcMode(options.postConditionMode),
2998
2997
  postConditions: convertPostConditions(options.postConditions),
2999
- payload: {
2998
+ payload: options.clarityVersion === undefined ? {
2999
+ payloadType: PayloadType.SmartContract,
3000
+ contractName: options.contractName,
3001
+ codeBody: options.codeBody
3002
+ } : {
3000
3003
  payloadType: PayloadType.VersionedSmartContract,
3001
- clarityVersion,
3004
+ clarityVersion: options.clarityVersion,
3002
3005
  contractName: options.contractName,
3003
3006
  codeBody: options.codeBody
3004
3007
  }
@@ -4658,5 +4661,5 @@ function parseStx(stx) {
4658
4661
  return parseUnits(stx, 6);
4659
4662
  }
4660
4663
 
4661
- //# debugId=0E41631B1B55B42664756E2164756E21
4664
+ //# debugId=2C4C8D992D1287DC64756E2164756E21
4662
4665
  //# sourceMappingURL=index.cjs.map