@stacks/clarinet-sdk-wasm-browser 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,20 +1,23 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- type Field = {
4
- Field: any;
5
- };
3
+ export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
6
4
 
7
- type ContractInterfaceMap = {
8
- name: string;
9
- key: ContractInterfaceAtomType;
10
- value: ContractInterfaceAtomType;
5
+ type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
6
+
7
+ type Span = {
8
+ start_line: number;
9
+ start_column: number;
10
+ end_line: number;
11
+ end_column: number;
11
12
  };
12
13
 
13
- type Atom = {
14
- Atom: String;
14
+ type LiteralValue = {
15
+ LiteralValue: any;
15
16
  };
16
17
 
17
- type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
18
+ type AtomValue = {
19
+ AtomValue: any;
20
+ };
18
21
 
19
22
  export type StacksEpochId =
20
23
  | "Epoch10"
@@ -30,38 +33,59 @@ export type StacksEpochId =
30
33
  | "Epoch32"
31
34
  | "Epoch33";
32
35
 
33
- type TraitReference = {
34
- TraitReference: any;
35
- };
36
+ type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
36
37
 
37
- type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
38
+ type ContractInterfaceFungibleTokens = { name: string };
38
39
 
39
- type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
40
+ export type EpochString =
41
+ | "2.0"
42
+ | "2.05"
43
+ | "2.1"
44
+ | "2.2"
45
+ | "2.3"
46
+ | "2.4"
47
+ | "2.5"
48
+ | "3.0"
49
+ | "3.1"
50
+ | "3.2"
51
+ | "3.3";
40
52
 
41
- type Span = {
42
- start_line: number;
43
- start_column: number;
44
- end_line: number;
45
- end_column: number;
53
+
54
+ export type IContractInterface = {
55
+ functions: ContractInterfaceFunction[];
56
+ variables: ContractInterfaceVariable[];
57
+ maps: ContractInterfaceMap[];
58
+ fungible_tokens: ContractInterfaceFungibleTokens[];
59
+ non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
60
+ epoch: StacksEpochId;
61
+ clarity_version: ClarityVersionString;
46
62
  };
47
63
 
48
- type ContractInterfaceFungibleTokens = { name: string };
64
+ type IContractAST = {
65
+ contract_identifier: any;
66
+ pre_expressions: any[];
67
+ expressions: Expression[];
68
+ top_level_expression_sorting: number[];
69
+ referenced_traits: Map<any, any>;
70
+ implemented_traits: any[];
71
+ };
49
72
 
50
- type ContractInterfaceFunction = {
73
+ type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
74
+
75
+ type ContractInterfaceMap = {
51
76
  name: string;
52
- access: ContractInterfaceFunctionAccess;
53
- args: ContractInterfaceFunctionArg[];
54
- outputs: ContractInterfaceFunctionOutput;
77
+ key: ContractInterfaceAtomType;
78
+ value: ContractInterfaceAtomType;
55
79
  };
56
80
 
57
- type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
81
+ type ContractInterfaceVariableAccess = "constant" | "variable";
58
82
 
59
- type LiteralValue = {
60
- LiteralValue: any;
83
+ type Expression = {
84
+ expr: ExpressionType;
85
+ id: number;
86
+ span: Span;
61
87
  };
62
88
 
63
- export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
64
-
65
89
  type ContractInterfaceAtomType =
66
90
  | "none"
67
91
  | "int128"
@@ -77,65 +101,41 @@ type ContractInterfaceAtomType =
77
101
  | { list: { type: ContractInterfaceAtomType; length: number } }
78
102
  | "trait_reference";
79
103
 
80
- type Expression = {
81
- expr: ExpressionType;
82
- id: number;
83
- span: Span;
84
- };
85
-
86
104
  type ContractInterfaceVariable = {
87
105
  name: string;
88
106
  type: ContractInterfaceAtomType;
89
107
  access: ContractInterfaceVariableAccess;
90
108
  };
91
109
 
92
- type AtomValue = {
93
- AtomValue: any;
110
+ type ContractInterfaceFunction = {
111
+ name: string;
112
+ access: ContractInterfaceFunctionAccess;
113
+ args: ContractInterfaceFunctionArg[];
114
+ outputs: ContractInterfaceFunctionOutput;
94
115
  };
95
116
 
96
- export type IContractInterface = {
97
- functions: ContractInterfaceFunction[];
98
- variables: ContractInterfaceVariable[];
99
- maps: ContractInterfaceMap[];
100
- fungible_tokens: ContractInterfaceFungibleTokens[];
101
- non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
102
- epoch: StacksEpochId;
103
- clarity_version: ClarityVersionString;
104
- };
117
+ type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
105
118
 
106
- type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
119
+ type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
107
120
 
108
- type IContractAST = {
109
- contract_identifier: any;
110
- pre_expressions: any[];
111
- expressions: Expression[];
112
- top_level_expression_sorting: number[];
113
- referenced_traits: Map<any, any>;
114
- implemented_traits: any[];
121
+ type TraitReference = {
122
+ TraitReference: any;
115
123
  };
116
124
 
117
- export type EpochString =
118
- | "2.0"
119
- | "2.05"
120
- | "2.1"
121
- | "2.2"
122
- | "2.3"
123
- | "2.4"
124
- | "2.5"
125
- | "3.0"
126
- | "3.1"
127
- | "3.2"
128
- | "3.3";
125
+ type Field = {
126
+ Field: any;
127
+ };
129
128
 
129
+ type Atom = {
130
+ Atom: String;
131
+ };
132
+
133
+ type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
130
134
 
131
135
  type List = {
132
136
  List: Expression[];
133
137
  };
134
138
 
135
- type ContractInterfaceVariableAccess = "constant" | "variable";
136
-
137
- type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
138
-
139
139
  export class CallFnArgs {
140
140
  free(): void;
141
141
  constructor(contract: string, method: string, args: Uint8Array[], sender: string);
@@ -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 closure619_externref_shim: (a: number, b: number, c: any) => void;
317
318
  readonly wasm_bindgen__convert__closures_____invoke__h640ed087ddae9bb5: (a: number, b: number) => void;
318
- readonly closure618_externref_shim: (a: number, b: number, c: any) => void;
319
- readonly closure3353_externref_shim: (a: number, b: number, c: any, d: any) => void;
319
+ readonly closure3358_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_16(arg0, arg1) {
250
- wasm.wasm_bindgen__convert__closures_____invoke__h640ed087ddae9bb5(arg0, arg1);
249
+ function __wbg_adapter_8(arg0, arg1, arg2) {
250
+ wasm.closure619_externref_shim(arg0, arg1, arg2);
251
251
  }
252
252
 
253
- function __wbg_adapter_19(arg0, arg1, arg2) {
254
- wasm.closure618_externref_shim(arg0, arg1, arg2);
253
+ function __wbg_adapter_13(arg0, arg1) {
254
+ wasm.wasm_bindgen__convert__closures_____invoke__h640ed087ddae9bb5(arg0, arg1);
255
255
  }
256
256
 
257
257
  function __wbg_adapter_228(arg0, arg1, arg2, arg3) {
258
- wasm.closure3353_externref_shim(arg0, arg1, arg2, arg3);
258
+ wasm.closure3358_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_f55de1a13819b6e9 = function(arg0, arg1, arg2) {
1653
+ imports.wbg.__wbg_vfs_ca7411debc291cc5 = function(arg0, arg1, arg2) {
1654
1654
  let deferred0_0;
1655
1655
  let deferred0_1;
1656
1656
  try {
@@ -1740,14 +1740,9 @@ function __wbg_get_imports() {
1740
1740
  const ret = BigInt.asUintN(64, arg0);
1741
1741
  return ret;
1742
1742
  };
1743
- imports.wbg.__wbindgen_cast_4ee81445540451b2 = function(arg0, arg1) {
1744
- // Cast intrinsic for `Closure(Closure { dtor_idx: 617, function: Function { arguments: [Externref], shim_idx: 618, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1745
- const ret = makeMutClosure(arg0, arg1, 617, __wbg_adapter_19);
1746
- return ret;
1747
- };
1748
1743
  imports.wbg.__wbindgen_cast_73996509814681e3 = function(arg0, arg1) {
1749
1744
  // Cast intrinsic for `Closure(Closure { dtor_idx: 420, function: Function { arguments: [], shim_idx: 421, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1750
- const ret = makeMutClosure(arg0, arg1, 420, __wbg_adapter_16);
1745
+ const ret = makeMutClosure(arg0, arg1, 420, __wbg_adapter_13);
1751
1746
  return ret;
1752
1747
  };
1753
1748
  imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
@@ -1757,6 +1752,11 @@ function __wbg_get_imports() {
1757
1752
  const ret = v0;
1758
1753
  return ret;
1759
1754
  };
1755
+ imports.wbg.__wbindgen_cast_a9e0c53a9be02a22 = function(arg0, arg1) {
1756
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 618, function: Function { arguments: [Externref], shim_idx: 619, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1757
+ const ret = makeMutClosure(arg0, arg1, 618, __wbg_adapter_8);
1758
+ return ret;
1759
+ };
1760
1760
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
1761
1761
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1762
1762
  const ret = getArrayU8FromWasm0(arg0, arg1);
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.9.1",
5
+ "version": "3.9.2",
6
6
  "license": "GPL-3.0",
7
7
  "repository": {
8
8
  "type": "git",