@secondlayer/stacks 7.0.0 → 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.
- package/dist/shared/{stacks-esm-0t9vwtwh.js → stacks-esm-m5cf2pgd.js} +3 -3
- package/dist/shared/{stacks-esm-0t9vwtwh.js.map → stacks-esm-m5cf2pgd.js.map} +2 -2
- package/dist/shared/{stacks-esm-m8ph0bvw.js → stacks-esm-mqa4kfwy.js} +2 -2
- package/dist/shared/{stacks-esm-1f46cr7b.js → stacks-esm-t693pnqz.js} +3 -3
- package/dist/shared/{stacks-esm-wjg9aer9.js → stacks-esm-xd1mydkh.js} +8 -6
- package/dist/shared/{stacks-esm-wjg9aer9.js.map → stacks-esm-xd1mydkh.js.map} +3 -3
- package/dist/src/actions/index.cjs +7 -4
- package/dist/src/actions/index.cjs.map +4 -4
- package/dist/src/actions/index.d.cts +6 -0
- package/dist/src/actions/index.d.ts +6 -0
- package/dist/src/actions/index.js +4 -4
- package/dist/src/bns/index.cjs +7 -4
- package/dist/src/bns/index.cjs.map +3 -3
- package/dist/src/bns/index.js +3 -3
- package/dist/src/index.cjs +7 -4
- package/dist/src/index.cjs.map +5 -5
- package/dist/src/index.d.cts +12 -0
- package/dist/src/index.d.ts +12 -0
- package/dist/src/index.js +3 -3
- package/dist/src/index.js.map +2 -2
- package/dist/src/pox/index.cjs +7 -4
- package/dist/src/pox/index.cjs.map +3 -3
- package/dist/src/pox/index.js +3 -3
- package/dist/src/pox5/index.cjs +7 -4
- package/dist/src/pox5/index.cjs.map +3 -3
- package/dist/src/pox5/index.js +3 -3
- package/dist/src/sbtc/index.cjs +7 -4
- package/dist/src/sbtc/index.cjs.map +3 -3
- package/dist/src/sbtc/index.js +3 -3
- package/dist/src/stackingdao/index.cjs +7 -4
- package/dist/src/stackingdao/index.cjs.map +3 -3
- package/dist/src/stackingdao/index.js +3 -3
- package/dist/src/transactions/index.cjs +7 -4
- package/dist/src/transactions/index.cjs.map +3 -3
- package/dist/src/transactions/index.d.cts +6 -0
- package/dist/src/transactions/index.d.ts +6 -0
- package/dist/src/transactions/index.js +1 -1
- package/package.json +1 -1
- /package/dist/shared/{stacks-esm-m8ph0bvw.js.map → stacks-esm-mqa4kfwy.js.map} +0 -0
- /package/dist/shared/{stacks-esm-1f46cr7b.js.map → stacks-esm-t693pnqz.js.map} +0 -0
package/dist/src/bns/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
21
|
-
import"../../shared/stacks-esm-
|
|
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
|
package/dist/src/index.cjs
CHANGED
|
@@ -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=
|
|
4664
|
+
//# debugId=2C4C8D992D1287DC64756E2164756E21
|
|
4662
4665
|
//# sourceMappingURL=index.cjs.map
|