stxer 0.8.0 → 0.10.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/types.d.ts CHANGED
@@ -108,13 +108,13 @@ export interface ClarityAbiNonFungibleToken {
108
108
  name: string;
109
109
  type: ClarityAbiType;
110
110
  }
111
- export type ClarityEpoch = 'Epoch10' | 'Epoch20' | 'Epoch2_05' | 'Epoch21' | 'Epoch22' | 'Epoch23' | 'Epoch24' | 'Epoch25' | 'Epoch30' | 'Epoch31' | 'Epoch32' | 'Epoch33' | 'Epoch34' | 'Epoch35';
111
+ export type ClarityEpoch = 'Epoch10' | 'Epoch20' | 'Epoch2_05' | 'Epoch21' | 'Epoch22' | 'Epoch23' | 'Epoch24' | 'Epoch25' | 'Epoch30' | 'Epoch31' | 'Epoch32' | 'Epoch33' | 'Epoch34' | 'Epoch40';
112
112
  /**
113
113
  * Wire-format Clarity version name as emitted by the stxer AST parser
114
114
  * (`/contracts:parse-ast`). Used in {@link ClarityAbi.clarity_version}.
115
115
  *
116
116
  * **Distinct from the numeric `ClarityVersion` enum re-exported by
117
- * `@stacks/transactions`** (1..5), which is what the SDK builder
117
+ * `@stacks/transactions`** (1..6), which is what the SDK builder
118
118
  * methods (`addContractDeploy`, `makeUnsignedContractDeploy`, etc.)
119
119
  * accept. To build transactions:
120
120
  *
@@ -126,7 +126,7 @@ export type ClarityEpoch = 'Epoch10' | 'Epoch20' | 'Epoch2_05' | 'Epoch21' | 'Ep
126
126
  * import type { ClarityVersionName } from 'stxer';
127
127
  * if (abi.clarity_version === 'Clarity5') { ... }
128
128
  */
129
- export type ClarityVersionName = 'Clarity1' | 'Clarity2' | 'Clarity3' | 'Clarity4' | 'Clarity5';
129
+ export type ClarityVersionName = 'Clarity1' | 'Clarity2' | 'Clarity3' | 'Clarity4' | 'Clarity5' | 'Clarity6';
130
130
  /** @deprecated Renamed to {@link ClarityVersionName} in 0.8.0 to avoid collision with `@stacks/transactions`'s numeric `ClarityVersion` enum. Re-exported for back-compat — will be removed in a future major. */
131
131
  export type ClarityVersion = ClarityVersionName;
132
132
  export interface ClarityAbi {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stxer",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "license": "MIT",
5
5
  "author": "Kyle Fang",
6
6
  "repository": {
@@ -45,22 +45,22 @@
45
45
  }
46
46
  ],
47
47
  "devDependencies": {
48
- "@biomejs/biome": "2.4.14",
48
+ "@biomejs/biome": "2.5.5",
49
49
  "@size-limit/preset-small-lib": "12.1.0",
50
50
  "@tsconfig/recommended": "^1.0.13",
51
51
  "@types/node": "25.6.0",
52
52
  "dts-cli": "^2.0.5",
53
53
  "husky": "^9.1.7",
54
54
  "size-limit": "12.1.0",
55
- "tsx": "^4.21.0",
56
- "typescript": "5.9.3",
57
- "vitest": "^4.1.5"
55
+ "tsx": "^4.23.1",
56
+ "typescript": "7.0.2",
57
+ "vitest": "^4.1.10"
58
58
  },
59
59
  "dependencies": {
60
60
  "@noble/hashes": "^2.2.0",
61
- "@stacks/network": "^7.3.1",
61
+ "@stacks/network": "^7.5.0",
62
62
  "@stacks/stacks-blockchain-api-types": "^7.14.1",
63
- "@stacks/transactions": "7.4.0",
63
+ "@stacks/transactions": "7.5.0",
64
64
  "c32check": "^2.0.0",
65
65
  "clarity-abi": "^0.1.0",
66
66
  "ts-clarity": "^0.1.1"
package/src/ast.ts CHANGED
@@ -50,7 +50,7 @@ export async function getContractAST(
50
50
  export interface ParseContractOptions extends AstOptions {
51
51
  sourceCode: string;
52
52
  contractId: string;
53
- clarityVersion?: '1' | '2' | '3' | '4' | '5';
53
+ clarityVersion?: '1' | '2' | '3' | '4' | '5' | '6';
54
54
  epoch?: ClarityEpoch;
55
55
  }
56
56
 
package/src/simulation.ts CHANGED
@@ -504,8 +504,10 @@ function clarityVersionToNumber(version: ClarityVersion): number {
504
504
  return 4;
505
505
  case ClarityVersion.Clarity5:
506
506
  return 5;
507
+ case ClarityVersion.Clarity6:
508
+ return 6;
507
509
  default:
508
- return 5;
510
+ return 6;
509
511
  }
510
512
  }
511
513
 
package/src/types.ts CHANGED
@@ -124,14 +124,14 @@ export type ClarityEpoch =
124
124
  | 'Epoch32'
125
125
  | 'Epoch33'
126
126
  | 'Epoch34'
127
- | 'Epoch35';
127
+ | 'Epoch40';
128
128
 
129
129
  /**
130
130
  * Wire-format Clarity version name as emitted by the stxer AST parser
131
131
  * (`/contracts:parse-ast`). Used in {@link ClarityAbi.clarity_version}.
132
132
  *
133
133
  * **Distinct from the numeric `ClarityVersion` enum re-exported by
134
- * `@stacks/transactions`** (1..5), which is what the SDK builder
134
+ * `@stacks/transactions`** (1..6), which is what the SDK builder
135
135
  * methods (`addContractDeploy`, `makeUnsignedContractDeploy`, etc.)
136
136
  * accept. To build transactions:
137
137
  *
@@ -148,7 +148,8 @@ export type ClarityVersionName =
148
148
  | 'Clarity2'
149
149
  | 'Clarity3'
150
150
  | 'Clarity4'
151
- | 'Clarity5';
151
+ | 'Clarity5'
152
+ | 'Clarity6';
152
153
 
153
154
  /** @deprecated Renamed to {@link ClarityVersionName} in 0.8.0 to avoid collision with `@stacks/transactions`'s numeric `ClarityVersion` enum. Re-exported for back-compat — will be removed in a future major. */
154
155
  export type ClarityVersion = ClarityVersionName;