@stacks/clarinet-sdk-wasm 3.9.0 → 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
@@ -2,44 +2,30 @@
2
2
  /* eslint-disable */
3
3
  type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
4
4
 
5
- type IContractAST = {
6
- contract_identifier: any;
7
- pre_expressions: any[];
8
- expressions: Expression[];
9
- top_level_expression_sorting: number[];
10
- referenced_traits: Map<any, any>;
11
- implemented_traits: any[];
12
- };
13
-
14
- type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
5
+ type ContractInterfaceFungibleTokens = { name: string };
15
6
 
16
- type Expression = {
17
- expr: ExpressionType;
18
- id: number;
19
- span: Span;
7
+ type ContractInterfaceFunction = {
8
+ name: string;
9
+ access: ContractInterfaceFunctionAccess;
10
+ args: ContractInterfaceFunctionArg[];
11
+ outputs: ContractInterfaceFunctionOutput;
20
12
  };
21
13
 
22
- type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
23
-
24
- type ContractInterfaceVariable = {
14
+ type ContractInterfaceMap = {
25
15
  name: string;
26
- type: ContractInterfaceAtomType;
27
- access: ContractInterfaceVariableAccess;
16
+ key: ContractInterfaceAtomType;
17
+ value: ContractInterfaceAtomType;
28
18
  };
29
19
 
30
- export type IContractInterface = {
31
- functions: ContractInterfaceFunction[];
32
- variables: ContractInterfaceVariable[];
33
- maps: ContractInterfaceMap[];
34
- fungible_tokens: ContractInterfaceFungibleTokens[];
35
- non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
36
- epoch: StacksEpochId;
37
- clarity_version: ClarityVersionString;
20
+ type LiteralValue = {
21
+ LiteralValue: any;
38
22
  };
39
23
 
40
- type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
24
+ export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
41
25
 
42
- type ContractInterfaceVariableAccess = "constant" | "variable";
26
+ type Atom = {
27
+ Atom: String;
28
+ };
43
29
 
44
30
  export type EpochString =
45
31
  | "2.0"
@@ -55,49 +41,22 @@ export type EpochString =
55
41
  | "3.3";
56
42
 
57
43
 
58
- type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
44
+ type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
59
45
 
60
46
  type Field = {
61
47
  Field: any;
62
48
  };
63
49
 
64
- type ContractInterfaceMap = {
65
- name: string;
66
- key: ContractInterfaceAtomType;
67
- value: ContractInterfaceAtomType;
50
+ type TraitReference = {
51
+ TraitReference: any;
68
52
  };
69
53
 
70
- type ContractInterfaceFungibleTokens = { name: string };
71
-
72
- export type StacksEpochId =
73
- | "Epoch10"
74
- | "Epoch20"
75
- | "Epoch2_05"
76
- | "Epoch21"
77
- | "Epoch22"
78
- | "Epoch23"
79
- | "Epoch24"
80
- | "Epoch25"
81
- | "Epoch30"
82
- | "Epoch31"
83
- | "Epoch32"
84
- | "Epoch33";
85
-
86
54
  type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
87
55
 
88
- type ContractInterfaceFunction = {
89
- name: string;
90
- access: ContractInterfaceFunctionAccess;
91
- args: ContractInterfaceFunctionArg[];
92
- outputs: ContractInterfaceFunctionOutput;
93
- };
94
-
95
- type AtomValue = {
96
- AtomValue: any;
97
- };
56
+ type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
98
57
 
99
- type TraitReference = {
100
- TraitReference: any;
58
+ type List = {
59
+ List: Expression[];
101
60
  };
102
61
 
103
62
  type ContractInterfaceAtomType =
@@ -115,18 +74,53 @@ type ContractInterfaceAtomType =
115
74
  | { list: { type: ContractInterfaceAtomType; length: number } }
116
75
  | "trait_reference";
117
76
 
118
- export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
77
+ type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
119
78
 
120
- type LiteralValue = {
121
- LiteralValue: any;
79
+ type ContractInterfaceVariableAccess = "constant" | "variable";
80
+
81
+ type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
82
+
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";
96
+
97
+ type Expression = {
98
+ expr: ExpressionType;
99
+ id: number;
100
+ span: Span;
122
101
  };
123
102
 
124
- type Atom = {
125
- Atom: String;
103
+ export type IContractInterface = {
104
+ functions: ContractInterfaceFunction[];
105
+ variables: ContractInterfaceVariable[];
106
+ maps: ContractInterfaceMap[];
107
+ fungible_tokens: ContractInterfaceFungibleTokens[];
108
+ non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
109
+ epoch: StacksEpochId;
110
+ clarity_version: ClarityVersionString;
126
111
  };
127
112
 
128
- type List = {
129
- List: Expression[];
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[];
130
124
  };
131
125
 
132
126
  type Span = {
@@ -136,6 +130,12 @@ type Span = {
136
130
  end_column: number;
137
131
  };
138
132
 
133
+ type ContractInterfaceVariable = {
134
+ name: string;
135
+ type: ContractInterfaceAtomType;
136
+ access: ContractInterfaceVariableAccess;
137
+ };
138
+
139
139
  export class CallFnArgs {
140
140
  free(): void;
141
141
  constructor(contract: string, method: string, args: Uint8Array[], sender: string);
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_10(arg0, arg1) {
249
- wasm.wasm_bindgen__convert__closures_____invoke__ha61c3f571615b8ef(arg0, arg1);
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, arg2) {
253
- wasm.closure618_externref_shim(arg0, arg1, arg2);
252
+ function __wbg_adapter_15(arg0, arg1) {
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_556dd4ede81723fc = 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_556dd4ede81723fc = function(arg0, arg1, arg2) {
1320
1320
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1321
1321
  };
1322
1322
 
1323
- module.exports.__wbg_existsSync_46aca4398d5a262b = 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_4cfa053ed2a67697 = 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_049189bc267c8635 = 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_44aae7330b9b3546 = 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_5b6ae73880998457 = 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_21);
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_10);
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.0",
4
+ "version": "3.9.2",
5
5
  "license": "GPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",