@stacks/clarinet-sdk-wasm 3.9.1 → 3.9.2

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/clarinet_sdk.d.ts CHANGED
@@ -1,9 +1,30 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- type Expression = {
4
- expr: ExpressionType;
5
- id: number;
6
- span: Span;
3
+ type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
4
+
5
+ type ContractInterfaceFungibleTokens = { name: string };
6
+
7
+ type ContractInterfaceFunction = {
8
+ name: string;
9
+ access: ContractInterfaceFunctionAccess;
10
+ args: ContractInterfaceFunctionArg[];
11
+ outputs: ContractInterfaceFunctionOutput;
12
+ };
13
+
14
+ type ContractInterfaceMap = {
15
+ name: string;
16
+ key: ContractInterfaceAtomType;
17
+ value: ContractInterfaceAtomType;
18
+ };
19
+
20
+ type LiteralValue = {
21
+ LiteralValue: any;
22
+ };
23
+
24
+ export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
25
+
26
+ type Atom = {
27
+ Atom: String;
7
28
  };
8
29
 
9
30
  export type EpochString =
@@ -20,49 +41,24 @@ export type EpochString =
20
41
  | "3.3";
21
42
 
22
43
 
23
- export type StacksEpochId =
24
- | "Epoch10"
25
- | "Epoch20"
26
- | "Epoch2_05"
27
- | "Epoch21"
28
- | "Epoch22"
29
- | "Epoch23"
30
- | "Epoch24"
31
- | "Epoch25"
32
- | "Epoch30"
33
- | "Epoch31"
34
- | "Epoch32"
35
- | "Epoch33";
36
-
37
- type IContractAST = {
38
- contract_identifier: any;
39
- pre_expressions: any[];
40
- expressions: Expression[];
41
- top_level_expression_sorting: number[];
42
- referenced_traits: Map<any, any>;
43
- implemented_traits: any[];
44
- };
44
+ type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
45
45
 
46
- type Atom = {
47
- Atom: String;
46
+ type Field = {
47
+ Field: any;
48
48
  };
49
49
 
50
- export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
51
-
52
50
  type TraitReference = {
53
51
  TraitReference: any;
54
52
  };
55
53
 
56
- type AtomValue = {
57
- AtomValue: any;
58
- };
54
+ type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
55
+
56
+ type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
59
57
 
60
58
  type List = {
61
59
  List: Expression[];
62
60
  };
63
61
 
64
- type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
65
-
66
62
  type ContractInterfaceAtomType =
67
63
  | "none"
68
64
  | "int128"
@@ -78,48 +74,32 @@ type ContractInterfaceAtomType =
78
74
  | { list: { type: ContractInterfaceAtomType; length: number } }
79
75
  | "trait_reference";
80
76
 
81
- type ContractInterfaceFungibleTokens = { name: string };
82
-
83
- type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
84
-
85
- type LiteralValue = {
86
- LiteralValue: any;
87
- };
88
-
89
- type ContractInterfaceFunction = {
90
- name: string;
91
- access: ContractInterfaceFunctionAccess;
92
- args: ContractInterfaceFunctionArg[];
93
- outputs: ContractInterfaceFunctionOutput;
94
- };
95
-
96
- type ContractInterfaceVariable = {
97
- name: string;
98
- type: ContractInterfaceAtomType;
99
- access: ContractInterfaceVariableAccess;
100
- };
77
+ type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
101
78
 
102
- type Field = {
103
- Field: any;
104
- };
79
+ type ContractInterfaceVariableAccess = "constant" | "variable";
105
80
 
106
81
  type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
107
82
 
108
- type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
83
+ export type StacksEpochId =
84
+ | "Epoch10"
85
+ | "Epoch20"
86
+ | "Epoch2_05"
87
+ | "Epoch21"
88
+ | "Epoch22"
89
+ | "Epoch23"
90
+ | "Epoch24"
91
+ | "Epoch25"
92
+ | "Epoch30"
93
+ | "Epoch31"
94
+ | "Epoch32"
95
+ | "Epoch33";
109
96
 
110
- type Span = {
111
- start_line: number;
112
- start_column: number;
113
- end_line: number;
114
- end_column: number;
97
+ type Expression = {
98
+ expr: ExpressionType;
99
+ id: number;
100
+ span: Span;
115
101
  };
116
102
 
117
- type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
118
-
119
- type ContractInterfaceVariableAccess = "constant" | "variable";
120
-
121
- type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
122
-
123
103
  export type IContractInterface = {
124
104
  functions: ContractInterfaceFunction[];
125
105
  variables: ContractInterfaceVariable[];
@@ -130,10 +110,30 @@ export type IContractInterface = {
130
110
  clarity_version: ClarityVersionString;
131
111
  };
132
112
 
133
- type ContractInterfaceMap = {
113
+ type AtomValue = {
114
+ AtomValue: any;
115
+ };
116
+
117
+ type IContractAST = {
118
+ contract_identifier: any;
119
+ pre_expressions: any[];
120
+ expressions: Expression[];
121
+ top_level_expression_sorting: number[];
122
+ referenced_traits: Map<any, any>;
123
+ implemented_traits: any[];
124
+ };
125
+
126
+ type Span = {
127
+ start_line: number;
128
+ start_column: number;
129
+ end_line: number;
130
+ end_column: number;
131
+ };
132
+
133
+ type ContractInterfaceVariable = {
134
134
  name: string;
135
- key: ContractInterfaceAtomType;
136
- value: ContractInterfaceAtomType;
135
+ type: ContractInterfaceAtomType;
136
+ access: ContractInterfaceVariableAccess;
137
137
  };
138
138
 
139
139
  export class CallFnArgs {
package/clarinet_sdk.js CHANGED
@@ -245,16 +245,16 @@ function takeFromExternrefTable0(idx) {
245
245
  wasm.__externref_table_dealloc(idx);
246
246
  return value;
247
247
  }
248
- function __wbg_adapter_12(arg0, arg1, arg2) {
249
- wasm.closure618_externref_shim(arg0, arg1, arg2);
248
+ function __wbg_adapter_8(arg0, arg1, arg2) {
249
+ wasm.closure619_externref_shim(arg0, arg1, arg2);
250
250
  }
251
251
 
252
- function __wbg_adapter_21(arg0, arg1) {
252
+ function __wbg_adapter_15(arg0, arg1) {
253
253
  wasm.wasm_bindgen__convert__closures_____invoke__ha61c3f571615b8ef(arg0, arg1);
254
254
  }
255
255
 
256
256
  function __wbg_adapter_224(arg0, arg1, arg2, arg3) {
257
- wasm.closure3361_externref_shim(arg0, arg1, arg2, arg3);
257
+ wasm.closure3360_externref_shim(arg0, arg1, arg2, arg3);
258
258
  }
259
259
 
260
260
  const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
@@ -1312,7 +1312,7 @@ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
1312
1312
  }
1313
1313
  };
1314
1314
 
1315
- module.exports.__wbg_execSync_0b87c54da019cc65 = function(arg0, arg1, arg2) {
1315
+ module.exports.__wbg_execSync_7172ba8f8d02ab3f = function(arg0, arg1, arg2) {
1316
1316
  const ret = execSync(getStringFromWasm0(arg1, arg2));
1317
1317
  const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
1318
1318
  const len1 = WASM_VECTOR_LEN;
@@ -1320,7 +1320,7 @@ module.exports.__wbg_execSync_0b87c54da019cc65 = function(arg0, arg1, arg2) {
1320
1320
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1321
1321
  };
1322
1322
 
1323
- module.exports.__wbg_existsSync_9f9a0de4ab9af40a = function(arg0, arg1) {
1323
+ module.exports.__wbg_existsSync_193d18cc70a6f307 = function(arg0, arg1) {
1324
1324
  const ret = existsSync(getStringFromWasm0(arg0, arg1));
1325
1325
  return ret;
1326
1326
  };
@@ -1431,7 +1431,7 @@ module.exports.__wbg_log_f3c04200b995730f = function(arg0) {
1431
1431
  console.log(arg0);
1432
1432
  };
1433
1433
 
1434
- module.exports.__wbg_mkdirSync_0529d6d790fbd62d = function(arg0, arg1, arg2) {
1434
+ module.exports.__wbg_mkdirSync_2689a4f0c94628d0 = function(arg0, arg1, arg2) {
1435
1435
  mkdirSync(getStringFromWasm0(arg0, arg1), arg2);
1436
1436
  };
1437
1437
 
@@ -1561,7 +1561,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handl
1561
1561
  arg0.randomFillSync(arg1);
1562
1562
  }, arguments) };
1563
1563
 
1564
- module.exports.__wbg_readFileSync_6cf9fa67839a4150 = function(arg0, arg1, arg2) {
1564
+ module.exports.__wbg_readFileSync_5caf382179d7febc = function(arg0, arg1, arg2) {
1565
1565
  const ret = readFileSync(getStringFromWasm0(arg1, arg2));
1566
1566
  const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
1567
1567
  const len1 = WASM_VECTOR_LEN;
@@ -1643,7 +1643,7 @@ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
1643
1643
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1644
1644
  };
1645
1645
 
1646
- module.exports.__wbg_static_accessor_ENV_5474b47faaddba65 = function() {
1646
+ module.exports.__wbg_static_accessor_ENV_202ea9e5e3a478ca = function() {
1647
1647
  const ret = env;
1648
1648
  return ret;
1649
1649
  };
@@ -1786,7 +1786,7 @@ module.exports.__wbg_wbindgenthrow_4c11a24fca429ccf = function(arg0, arg1) {
1786
1786
  throw new Error(getStringFromWasm0(arg0, arg1));
1787
1787
  };
1788
1788
 
1789
- module.exports.__wbg_writeFileSync_5d3ca91a9a650e75 = function(arg0, arg1, arg2, arg3) {
1789
+ module.exports.__wbg_writeFileSync_8a0f3626696be1c9 = function(arg0, arg1, arg2, arg3) {
1790
1790
  writeFileSync(getStringFromWasm0(arg0, arg1), getArrayU8FromWasm0(arg2, arg3));
1791
1791
  };
1792
1792
 
@@ -1808,15 +1808,15 @@ module.exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
1808
1808
  return ret;
1809
1809
  };
1810
1810
 
1811
- module.exports.__wbindgen_cast_4ee81445540451b2 = function(arg0, arg1) {
1812
- // Cast intrinsic for `Closure(Closure { dtor_idx: 617, function: Function { arguments: [Externref], shim_idx: 618, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1813
- const ret = makeMutClosure(arg0, arg1, 617, __wbg_adapter_12);
1811
+ module.exports.__wbindgen_cast_73996509814681e3 = function(arg0, arg1) {
1812
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 420, function: Function { arguments: [], shim_idx: 421, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1813
+ const ret = makeMutClosure(arg0, arg1, 420, __wbg_adapter_15);
1814
1814
  return ret;
1815
1815
  };
1816
1816
 
1817
- module.exports.__wbindgen_cast_73996509814681e3 = function(arg0, arg1) {
1818
- // Cast intrinsic for `Closure(Closure { dtor_idx: 420, function: Function { arguments: [], shim_idx: 421, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1819
- const ret = makeMutClosure(arg0, arg1, 420, __wbg_adapter_21);
1817
+ module.exports.__wbindgen_cast_a9e0c53a9be02a22 = function(arg0, arg1) {
1818
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 618, function: Function { arguments: [Externref], shim_idx: 619, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1819
+ const ret = makeMutClosure(arg0, arg1, 618, __wbg_adapter_8);
1820
1820
  return ret;
1821
1821
  };
1822
1822
 
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacks/clarinet-sdk-wasm",
3
3
  "description": "The core lib that powers @stacks/clarinet-sdk",
4
- "version": "3.9.1",
4
+ "version": "3.9.2",
5
5
  "license": "GPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",