@stacks/clarinet-sdk-wasm 3.9.0 → 3.9.1

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,46 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
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 };
15
-
16
3
  type Expression = {
17
4
  expr: ExpressionType;
18
5
  id: number;
19
6
  span: Span;
20
7
  };
21
8
 
22
- type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
23
-
24
- type ContractInterfaceVariable = {
25
- name: string;
26
- type: ContractInterfaceAtomType;
27
- access: ContractInterfaceVariableAccess;
28
- };
29
-
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;
38
- };
39
-
40
- type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
41
-
42
- type ContractInterfaceVariableAccess = "constant" | "variable";
43
-
44
9
  export type EpochString =
45
10
  | "2.0"
46
11
  | "2.05"
@@ -55,20 +20,6 @@ export type EpochString =
55
20
  | "3.3";
56
21
 
57
22
 
58
- type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
59
-
60
- type Field = {
61
- Field: any;
62
- };
63
-
64
- type ContractInterfaceMap = {
65
- name: string;
66
- key: ContractInterfaceAtomType;
67
- value: ContractInterfaceAtomType;
68
- };
69
-
70
- type ContractInterfaceFungibleTokens = { name: string };
71
-
72
23
  export type StacksEpochId =
73
24
  | "Epoch10"
74
25
  | "Epoch20"
@@ -83,23 +34,35 @@ export type StacksEpochId =
83
34
  | "Epoch32"
84
35
  | "Epoch33";
85
36
 
86
- type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
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
+ };
87
45
 
88
- type ContractInterfaceFunction = {
89
- name: string;
90
- access: ContractInterfaceFunctionAccess;
91
- args: ContractInterfaceFunctionArg[];
92
- outputs: ContractInterfaceFunctionOutput;
46
+ type Atom = {
47
+ Atom: String;
48
+ };
49
+
50
+ export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
51
+
52
+ type TraitReference = {
53
+ TraitReference: any;
93
54
  };
94
55
 
95
56
  type AtomValue = {
96
57
  AtomValue: any;
97
58
  };
98
59
 
99
- type TraitReference = {
100
- TraitReference: any;
60
+ type List = {
61
+ List: Expression[];
101
62
  };
102
63
 
64
+ type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
65
+
103
66
  type ContractInterfaceAtomType =
104
67
  | "none"
105
68
  | "int128"
@@ -115,20 +78,35 @@ type ContractInterfaceAtomType =
115
78
  | { list: { type: ContractInterfaceAtomType; length: number } }
116
79
  | "trait_reference";
117
80
 
118
- export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
81
+ type ContractInterfaceFungibleTokens = { name: string };
82
+
83
+ type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
119
84
 
120
85
  type LiteralValue = {
121
86
  LiteralValue: any;
122
87
  };
123
88
 
124
- type Atom = {
125
- Atom: String;
89
+ type ContractInterfaceFunction = {
90
+ name: string;
91
+ access: ContractInterfaceFunctionAccess;
92
+ args: ContractInterfaceFunctionArg[];
93
+ outputs: ContractInterfaceFunctionOutput;
126
94
  };
127
95
 
128
- type List = {
129
- List: Expression[];
96
+ type ContractInterfaceVariable = {
97
+ name: string;
98
+ type: ContractInterfaceAtomType;
99
+ access: ContractInterfaceVariableAccess;
100
+ };
101
+
102
+ type Field = {
103
+ Field: any;
130
104
  };
131
105
 
106
+ type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
107
+
108
+ type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
109
+
132
110
  type Span = {
133
111
  start_line: number;
134
112
  start_column: number;
@@ -136,6 +114,28 @@ type Span = {
136
114
  end_column: number;
137
115
  };
138
116
 
117
+ type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
118
+
119
+ type ContractInterfaceVariableAccess = "constant" | "variable";
120
+
121
+ type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
122
+
123
+ export type IContractInterface = {
124
+ functions: ContractInterfaceFunction[];
125
+ variables: ContractInterfaceVariable[];
126
+ maps: ContractInterfaceMap[];
127
+ fungible_tokens: ContractInterfaceFungibleTokens[];
128
+ non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
129
+ epoch: StacksEpochId;
130
+ clarity_version: ClarityVersionString;
131
+ };
132
+
133
+ type ContractInterfaceMap = {
134
+ name: string;
135
+ key: ContractInterfaceAtomType;
136
+ value: ContractInterfaceAtomType;
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,12 +245,12 @@ 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_12(arg0, arg1, arg2) {
249
+ wasm.closure618_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_21(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) {
@@ -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_0b87c54da019cc65 = 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_9f9a0de4ab9af40a = 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_0529d6d790fbd62d = 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_6cf9fa67839a4150 = 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_5474b47faaddba65 = 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_5d3ca91a9a650e75 = function(arg0, arg1, arg2, arg3) {
1790
1790
  writeFileSync(getStringFromWasm0(arg0, arg1), getArrayU8FromWasm0(arg2, arg3));
1791
1791
  };
1792
1792
 
@@ -1810,13 +1810,13 @@ module.exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
1810
1810
 
1811
1811
  module.exports.__wbindgen_cast_4ee81445540451b2 = function(arg0, arg1) {
1812
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);
1813
+ const ret = makeMutClosure(arg0, arg1, 617, __wbg_adapter_12);
1814
1814
  return ret;
1815
1815
  };
1816
1816
 
1817
1817
  module.exports.__wbindgen_cast_73996509814681e3 = function(arg0, arg1) {
1818
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);
1819
+ const ret = makeMutClosure(arg0, arg1, 420, __wbg_adapter_21);
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.1",
5
5
  "license": "GPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",