@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.
- 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/filters/index.d.cts +2 -2
- package/dist/src/filters/index.d.ts +2 -2
- package/dist/src/index.cjs +7 -4
- package/dist/src/index.cjs.map +5 -5
- package/dist/src/index.d.cts +14 -2
- package/dist/src/index.d.ts +14 -2
- 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
|
@@ -1044,6 +1044,12 @@ declare function callContract(client: Client, params: CallContractParams): Promi
|
|
|
1044
1044
|
type DeployContractParams = {
|
|
1045
1045
|
contractName: string
|
|
1046
1046
|
codeBody: string
|
|
1047
|
+
/**
|
|
1048
|
+
* Pin a Clarity version. Leave it out: the contract then deploys at the
|
|
1049
|
+
* epoch's version.
|
|
1050
|
+
* @deprecated Stacks epoch 4.1 (Bitcoin block 979,500) rejects every
|
|
1051
|
+
* deploy that names a version, including the epoch's own.
|
|
1052
|
+
*/
|
|
1047
1053
|
clarityVersion?: ClarityVersion
|
|
1048
1054
|
fee?: FeeParam
|
|
1049
1055
|
nonce?: IntegerType
|
|
@@ -1044,6 +1044,12 @@ declare function callContract(client: Client, params: CallContractParams): Promi
|
|
|
1044
1044
|
type DeployContractParams = {
|
|
1045
1045
|
contractName: string
|
|
1046
1046
|
codeBody: string
|
|
1047
|
+
/**
|
|
1048
|
+
* Pin a Clarity version. Leave it out: the contract then deploys at the
|
|
1049
|
+
* epoch's version.
|
|
1050
|
+
* @deprecated Stacks epoch 4.1 (Bitcoin block 979,500) rejects every
|
|
1051
|
+
* deploy that names a version, including the epoch's own.
|
|
1052
|
+
*/
|
|
1047
1053
|
clarityVersion?: ClarityVersion
|
|
1048
1054
|
fee?: FeeParam
|
|
1049
1055
|
nonce?: IntegerType
|
|
@@ -2,7 +2,7 @@ import"../../shared/stacks-esm-8p8xy3dz.js";
|
|
|
2
2
|
import"../../shared/stacks-esm-jwgtksgq.js";
|
|
3
3
|
import"../../shared/stacks-esm-h60faj2n.js";
|
|
4
4
|
import"../../shared/stacks-esm-2z40q8gs.js";
|
|
5
|
-
import"../../shared/stacks-esm-
|
|
5
|
+
import"../../shared/stacks-esm-xd1mydkh.js";
|
|
6
6
|
import"../../shared/stacks-esm-zsdw7fq3.js";
|
|
7
7
|
import {
|
|
8
8
|
getAccountHistory2,
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
signTransactionAction2,
|
|
21
21
|
sponsorTransaction2,
|
|
22
22
|
transferStx2
|
|
23
|
-
} from "../../shared/stacks-esm-
|
|
23
|
+
} from "../../shared/stacks-esm-m5cf2pgd.js";
|
|
24
24
|
import"../../shared/stacks-esm-4rjjsz3p.js";
|
|
25
25
|
import {
|
|
26
26
|
getContract2,
|
|
27
27
|
buildFunctionArgs2,
|
|
28
28
|
isResponseOutput2,
|
|
29
29
|
ContractResponseError2
|
|
30
|
-
} from "../../shared/stacks-esm-
|
|
30
|
+
} from "../../shared/stacks-esm-t693pnqz.js";
|
|
31
31
|
import {
|
|
32
32
|
getBalance2,
|
|
33
33
|
getDataVar2,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
isNoEstimateAvailable2,
|
|
50
50
|
resolveFee2,
|
|
51
51
|
callContract2
|
|
52
|
-
} from "../../shared/stacks-esm-
|
|
52
|
+
} from "../../shared/stacks-esm-mqa4kfwy.js";
|
|
53
53
|
import {
|
|
54
54
|
readContract2
|
|
55
55
|
} from "../../shared/stacks-esm-mqhwqhq4.js";
|
package/dist/src/bns/index.cjs
CHANGED
|
@@ -2439,7 +2439,6 @@ function buildContractDeploy(options) {
|
|
|
2439
2439
|
const fee = intToBigInt(options.fee);
|
|
2440
2440
|
const nonce = intToBigInt(options.nonce);
|
|
2441
2441
|
const spendingCondition = resolveSpendingCondition(options, nonce, fee);
|
|
2442
|
-
const clarityVersion = options.clarityVersion ?? ClarityVersion.Clarity4;
|
|
2443
2442
|
const tx = {
|
|
2444
2443
|
version,
|
|
2445
2444
|
chainId,
|
|
@@ -2447,9 +2446,13 @@ function buildContractDeploy(options) {
|
|
|
2447
2446
|
anchorMode: AnchorMode.Any,
|
|
2448
2447
|
postConditionMode: resolvePcMode(options.postConditionMode),
|
|
2449
2448
|
postConditions: convertPostConditions(options.postConditions),
|
|
2450
|
-
payload: {
|
|
2449
|
+
payload: options.clarityVersion === undefined ? {
|
|
2450
|
+
payloadType: PayloadType.SmartContract,
|
|
2451
|
+
contractName: options.contractName,
|
|
2452
|
+
codeBody: options.codeBody
|
|
2453
|
+
} : {
|
|
2451
2454
|
payloadType: PayloadType.VersionedSmartContract,
|
|
2452
|
-
clarityVersion,
|
|
2455
|
+
clarityVersion: options.clarityVersion,
|
|
2453
2456
|
contractName: options.contractName,
|
|
2454
2457
|
codeBody: options.codeBody
|
|
2455
2458
|
}
|
|
@@ -5080,5 +5083,5 @@ function bns() {
|
|
|
5080
5083
|
});
|
|
5081
5084
|
}
|
|
5082
5085
|
|
|
5083
|
-
//# debugId=
|
|
5086
|
+
//# debugId=91D14A989E945F8964756E2164756E21
|
|
5084
5087
|
//# sourceMappingURL=index.cjs.map
|