@stacks/clarinet-sdk-wasm-browser 3.10.0 → 3.11.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/clarinet_sdk.d.ts CHANGED
@@ -1,5 +1,19 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ type Atom = {
4
+ Atom: String;
5
+ };
6
+
7
+ type Field = {
8
+ Field: any;
9
+ };
10
+
11
+ type Expression = {
12
+ expr: ExpressionType;
13
+ id: number;
14
+ span: Span;
15
+ };
16
+
3
17
  type ContractInterfaceAtomType =
4
18
  | "none"
5
19
  | "int128"
@@ -15,6 +29,35 @@ type ContractInterfaceAtomType =
15
29
  | { list: { type: ContractInterfaceAtomType; length: number } }
16
30
  | "trait_reference";
17
31
 
32
+ type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
33
+
34
+ type ContractInterfaceVariableAccess = "constant" | "variable";
35
+
36
+ export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
37
+
38
+ type ContractInterfaceFunction = {
39
+ name: string;
40
+ access: ContractInterfaceFunctionAccess;
41
+ args: ContractInterfaceFunctionArg[];
42
+ outputs: ContractInterfaceFunctionOutput;
43
+ };
44
+
45
+ export type StacksEpochId =
46
+ | "Epoch10"
47
+ | "Epoch20"
48
+ | "Epoch2_05"
49
+ | "Epoch21"
50
+ | "Epoch22"
51
+ | "Epoch23"
52
+ | "Epoch24"
53
+ | "Epoch25"
54
+ | "Epoch30"
55
+ | "Epoch31"
56
+ | "Epoch32"
57
+ | "Epoch33";
58
+
59
+ type ContractInterfaceFungibleTokens = { name: string };
60
+
18
61
  export type EpochString =
19
62
  | "2.0"
20
63
  | "2.05"
@@ -29,14 +72,23 @@ export type EpochString =
29
72
  | "3.3";
30
73
 
31
74
 
32
- type Expression = {
33
- expr: ExpressionType;
34
- id: number;
35
- span: Span;
75
+ type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
76
+
77
+ type LiteralValue = {
78
+ LiteralValue: any;
36
79
  };
37
80
 
38
- type Field = {
39
- Field: any;
81
+ type IContractAST = {
82
+ contract_identifier: any;
83
+ pre_expressions: any[];
84
+ expressions: Expression[];
85
+ top_level_expression_sorting: number[];
86
+ referenced_traits: Map<any, any>;
87
+ implemented_traits: any[];
88
+ };
89
+
90
+ type TraitReference = {
91
+ TraitReference: any;
40
92
  };
41
93
 
42
94
  export type IContractInterface = {
@@ -49,79 +101,22 @@ export type IContractInterface = {
49
101
  clarity_version: ClarityVersionString;
50
102
  };
51
103
 
52
- type Atom = {
53
- Atom: String;
54
- };
55
-
56
- type ContractInterfaceFunction = {
57
- name: string;
58
- access: ContractInterfaceFunctionAccess;
59
- args: ContractInterfaceFunctionArg[];
60
- outputs: ContractInterfaceFunctionOutput;
61
- };
104
+ type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
62
105
 
63
- type AtomValue = {
64
- AtomValue: any;
65
- };
106
+ type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
66
107
 
67
108
  type List = {
68
109
  List: Expression[];
69
110
  };
70
111
 
71
- type TraitReference = {
72
- TraitReference: any;
73
- };
74
-
75
112
  type ContractInterfaceMap = {
76
113
  name: string;
77
114
  key: ContractInterfaceAtomType;
78
115
  value: ContractInterfaceAtomType;
79
116
  };
80
117
 
81
- type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
82
-
83
- type ContractInterfaceVariableAccess = "constant" | "variable";
84
-
85
- type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
86
-
87
- type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
88
-
89
- type Span = {
90
- start_line: number;
91
- start_column: number;
92
- end_line: number;
93
- end_column: number;
94
- };
95
-
96
- type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
97
-
98
- export type StacksEpochId =
99
- | "Epoch10"
100
- | "Epoch20"
101
- | "Epoch2_05"
102
- | "Epoch21"
103
- | "Epoch22"
104
- | "Epoch23"
105
- | "Epoch24"
106
- | "Epoch25"
107
- | "Epoch30"
108
- | "Epoch31"
109
- | "Epoch32"
110
- | "Epoch33";
111
-
112
- type LiteralValue = {
113
- LiteralValue: any;
114
- };
115
-
116
- type ContractInterfaceFungibleTokens = { name: string };
117
-
118
- type IContractAST = {
119
- contract_identifier: any;
120
- pre_expressions: any[];
121
- expressions: Expression[];
122
- top_level_expression_sorting: number[];
123
- referenced_traits: Map<any, any>;
124
- implemented_traits: any[];
118
+ type AtomValue = {
119
+ AtomValue: any;
125
120
  };
126
121
 
127
122
  type ContractInterfaceVariable = {
@@ -130,11 +125,16 @@ type ContractInterfaceVariable = {
130
125
  access: ContractInterfaceVariableAccess;
131
126
  };
132
127
 
133
- export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
128
+ type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
134
129
 
135
130
  type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
136
131
 
137
- type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
132
+ type Span = {
133
+ start_line: number;
134
+ start_column: number;
135
+ end_line: number;
136
+ end_column: number;
137
+ };
138
138
 
139
139
  export class CallFnArgs {
140
140
  free(): void;
@@ -314,9 +314,9 @@ export interface InitOutput {
314
314
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
315
315
  readonly __wbindgen_export_6: WebAssembly.Table;
316
316
  readonly __externref_table_dealloc: (a: number) => void;
317
+ readonly closure616_externref_shim: (a: number, b: number, c: any) => void;
317
318
  readonly wasm_bindgen__convert__closures_____invoke__h565e262deb2f0b88: (a: number, b: number) => void;
318
- readonly closure617_externref_shim: (a: number, b: number, c: any) => void;
319
- readonly closure3380_externref_shim: (a: number, b: number, c: any, d: any) => void;
319
+ readonly closure3379_externref_shim: (a: number, b: number, c: any, d: any) => void;
320
320
  readonly __wbindgen_start: () => void;
321
321
  }
322
322
 
package/clarinet_sdk.js CHANGED
@@ -246,16 +246,16 @@ function passArray8ToWasm0(arg, malloc) {
246
246
  WASM_VECTOR_LEN = arg.length;
247
247
  return ptr;
248
248
  }
249
- function __wbg_adapter_10(arg0, arg1) {
250
- wasm.wasm_bindgen__convert__closures_____invoke__h565e262deb2f0b88(arg0, arg1);
249
+ function __wbg_adapter_16(arg0, arg1, arg2) {
250
+ wasm.closure616_externref_shim(arg0, arg1, arg2);
251
251
  }
252
252
 
253
- function __wbg_adapter_19(arg0, arg1, arg2) {
254
- wasm.closure617_externref_shim(arg0, arg1, arg2);
253
+ function __wbg_adapter_21(arg0, arg1) {
254
+ wasm.wasm_bindgen__convert__closures_____invoke__h565e262deb2f0b88(arg0, arg1);
255
255
  }
256
256
 
257
257
  function __wbg_adapter_198(arg0, arg1, arg2, arg3) {
258
- wasm.closure3380_externref_shim(arg0, arg1, arg2, arg3);
258
+ wasm.closure3379_externref_shim(arg0, arg1, arg2, arg3);
259
259
  }
260
260
 
261
261
  const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
@@ -1650,7 +1650,7 @@ function __wbg_get_imports() {
1650
1650
  const ret = arg0.versions;
1651
1651
  return ret;
1652
1652
  };
1653
- imports.wbg.__wbg_vfs_198b1c167c7590ad = function(arg0, arg1, arg2) {
1653
+ imports.wbg.__wbg_vfs_59c96e85235882cf = function(arg0, arg1, arg2) {
1654
1654
  let deferred0_0;
1655
1655
  let deferred0_1;
1656
1656
  try {
@@ -1735,16 +1735,16 @@ function __wbg_get_imports() {
1735
1735
  const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
1736
1736
  return ret;
1737
1737
  };
1738
- imports.wbg.__wbindgen_cast_3e03ca06e54d5215 = function(arg0, arg1) {
1739
- // Cast intrinsic for `Closure(Closure { dtor_idx: 616, function: Function { arguments: [Externref], shim_idx: 617, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1740
- const ret = makeMutClosure(arg0, arg1, 616, __wbg_adapter_19);
1741
- return ret;
1742
- };
1743
1738
  imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
1744
1739
  // Cast intrinsic for `U64 -> Externref`.
1745
1740
  const ret = BigInt.asUintN(64, arg0);
1746
1741
  return ret;
1747
1742
  };
1743
+ imports.wbg.__wbindgen_cast_6a7642062628890f = function(arg0, arg1) {
1744
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 421, function: Function { arguments: [], shim_idx: 422, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1745
+ const ret = makeMutClosure(arg0, arg1, 421, __wbg_adapter_21);
1746
+ return ret;
1747
+ };
1748
1748
  imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
1749
1749
  var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
1750
1750
  wasm.__wbindgen_free(arg0, arg1 * 1, 1);
@@ -1752,6 +1752,11 @@ function __wbg_get_imports() {
1752
1752
  const ret = v0;
1753
1753
  return ret;
1754
1754
  };
1755
+ imports.wbg.__wbindgen_cast_b6b8ceaff092c36a = function(arg0, arg1) {
1756
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 615, function: Function { arguments: [Externref], shim_idx: 616, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1757
+ const ret = makeMutClosure(arg0, arg1, 615, __wbg_adapter_16);
1758
+ return ret;
1759
+ };
1755
1760
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
1756
1761
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1757
1762
  const ret = getArrayU8FromWasm0(arg0, arg1);
@@ -1767,11 +1772,6 @@ function __wbg_get_imports() {
1767
1772
  const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
1768
1773
  return ret;
1769
1774
  };
1770
- imports.wbg.__wbindgen_cast_fc9cd109d50cf4e9 = function(arg0, arg1) {
1771
- // Cast intrinsic for `Closure(Closure { dtor_idx: 422, function: Function { arguments: [], shim_idx: 423, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1772
- const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_10);
1773
- return ret;
1774
- };
1775
1775
  imports.wbg.__wbindgen_init_externref_table = function() {
1776
1776
  const table = wasm.__wbindgen_export_4;
1777
1777
  const offset = table.grow(4);
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacks/clarinet-sdk-wasm-browser",
3
3
  "type": "module",
4
4
  "description": "The core lib that powers @stacks/clarinet-sdk",
5
- "version": "3.10.0",
5
+ "version": "3.11.0",
6
6
  "license": "GPL-3.0",
7
7
  "repository": {
8
8
  "type": "git",