@stacks/clarinet-sdk-wasm-browser 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,53 +1,20 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- type List = {
4
- List: Expression[];
5
- };
6
-
7
- export type EpochString =
8
- | "2.0"
9
- | "2.05"
10
- | "2.1"
11
- | "2.2"
12
- | "2.3"
13
- | "2.4"
14
- | "2.5"
15
- | "3.0"
16
- | "3.1"
17
- | "3.2"
18
- | "3.3";
19
-
20
-
21
3
  type Field = {
22
4
  Field: any;
23
5
  };
24
6
 
25
- type ContractInterfaceFunction = {
7
+ type ContractInterfaceMap = {
26
8
  name: string;
27
- access: ContractInterfaceFunctionAccess;
28
- args: ContractInterfaceFunctionArg[];
29
- outputs: ContractInterfaceFunctionOutput;
9
+ key: ContractInterfaceAtomType;
10
+ value: ContractInterfaceAtomType;
30
11
  };
31
12
 
32
- type ContractInterfaceVariable = {
33
- name: string;
34
- type: ContractInterfaceAtomType;
35
- access: ContractInterfaceVariableAccess;
13
+ type Atom = {
14
+ Atom: String;
36
15
  };
37
16
 
38
- type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
39
-
40
- type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
41
-
42
- export type IContractInterface = {
43
- functions: ContractInterfaceFunction[];
44
- variables: ContractInterfaceVariable[];
45
- maps: ContractInterfaceMap[];
46
- fungible_tokens: ContractInterfaceFungibleTokens[];
47
- non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
48
- epoch: StacksEpochId;
49
- clarity_version: ClarityVersionString;
50
- };
17
+ type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
51
18
 
52
19
  export type StacksEpochId =
53
20
  | "Epoch10"
@@ -63,28 +30,13 @@ export type StacksEpochId =
63
30
  | "Epoch32"
64
31
  | "Epoch33";
65
32
 
66
- type AtomValue = {
67
- AtomValue: any;
68
- };
69
-
70
33
  type TraitReference = {
71
34
  TraitReference: any;
72
35
  };
73
36
 
74
- type LiteralValue = {
75
- LiteralValue: any;
76
- };
77
-
78
- type ContractInterfaceFungibleTokens = { name: string };
37
+ type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
79
38
 
80
- type IContractAST = {
81
- contract_identifier: any;
82
- pre_expressions: any[];
83
- expressions: Expression[];
84
- top_level_expression_sorting: number[];
85
- referenced_traits: Map<any, any>;
86
- implemented_traits: any[];
87
- };
39
+ type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
88
40
 
89
41
  type Span = {
90
42
  start_line: number;
@@ -93,25 +45,22 @@ type Span = {
93
45
  end_column: number;
94
46
  };
95
47
 
96
- type ContractInterfaceMap = {
48
+ type ContractInterfaceFungibleTokens = { name: string };
49
+
50
+ type ContractInterfaceFunction = {
97
51
  name: string;
98
- key: ContractInterfaceAtomType;
99
- value: ContractInterfaceAtomType;
52
+ access: ContractInterfaceFunctionAccess;
53
+ args: ContractInterfaceFunctionArg[];
54
+ outputs: ContractInterfaceFunctionOutput;
100
55
  };
101
56
 
102
- export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
103
-
104
- type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
57
+ type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
105
58
 
106
- type Expression = {
107
- expr: ExpressionType;
108
- id: number;
109
- span: Span;
59
+ type LiteralValue = {
60
+ LiteralValue: any;
110
61
  };
111
62
 
112
- type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
113
-
114
- type ContractInterfaceVariableAccess = "constant" | "variable";
63
+ export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
115
64
 
116
65
  type ContractInterfaceAtomType =
117
66
  | "none"
@@ -128,14 +77,65 @@ type ContractInterfaceAtomType =
128
77
  | { list: { type: ContractInterfaceAtomType; length: number } }
129
78
  | "trait_reference";
130
79
 
131
- type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
80
+ type Expression = {
81
+ expr: ExpressionType;
82
+ id: number;
83
+ span: Span;
84
+ };
132
85
 
133
- type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
86
+ type ContractInterfaceVariable = {
87
+ name: string;
88
+ type: ContractInterfaceAtomType;
89
+ access: ContractInterfaceVariableAccess;
90
+ };
134
91
 
135
- type Atom = {
136
- Atom: String;
92
+ type AtomValue = {
93
+ AtomValue: any;
137
94
  };
138
95
 
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
+ };
105
+
106
+ type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
107
+
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[];
115
+ };
116
+
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";
129
+
130
+
131
+ type List = {
132
+ List: Expression[];
133
+ };
134
+
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);
package/clarinet_sdk.js CHANGED
@@ -246,11 +246,11 @@ function passArray8ToWasm0(arg, malloc) {
246
246
  WASM_VECTOR_LEN = arg.length;
247
247
  return ptr;
248
248
  }
249
- function __wbg_adapter_6(arg0, arg1) {
249
+ function __wbg_adapter_16(arg0, arg1) {
250
250
  wasm.wasm_bindgen__convert__closures_____invoke__h640ed087ddae9bb5(arg0, arg1);
251
251
  }
252
252
 
253
- function __wbg_adapter_15(arg0, arg1, arg2) {
253
+ function __wbg_adapter_19(arg0, arg1, arg2) {
254
254
  wasm.closure618_externref_shim(arg0, arg1, arg2);
255
255
  }
256
256
 
@@ -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_69b72ae30e05032b = function(arg0, arg1, arg2) {
1653
+ imports.wbg.__wbg_vfs_f55de1a13819b6e9 = function(arg0, arg1, arg2) {
1654
1654
  let deferred0_0;
1655
1655
  let deferred0_1;
1656
1656
  try {
@@ -1742,12 +1742,12 @@ function __wbg_get_imports() {
1742
1742
  };
1743
1743
  imports.wbg.__wbindgen_cast_4ee81445540451b2 = function(arg0, arg1) {
1744
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_15);
1745
+ const ret = makeMutClosure(arg0, arg1, 617, __wbg_adapter_19);
1746
1746
  return ret;
1747
1747
  };
1748
1748
  imports.wbg.__wbindgen_cast_73996509814681e3 = function(arg0, arg1) {
1749
1749
  // 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_6);
1750
+ const ret = makeMutClosure(arg0, arg1, 420, __wbg_adapter_16);
1751
1751
  return ret;
1752
1752
  };
1753
1753
  imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(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.0",
5
+ "version": "3.9.1",
6
6
  "license": "GPL-3.0",
7
7
  "repository": {
8
8
  "type": "git",