@hazbase/simplicity 0.0.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.
Files changed (43) hide show
  1. package/LICENSE +182 -0
  2. package/README.md +778 -0
  3. package/dist/cli.d.ts +2 -0
  4. package/dist/cli.js +628 -0
  5. package/dist/client/ContractFactory.d.ts +13 -0
  6. package/dist/client/ContractFactory.js +50 -0
  7. package/dist/client/DeployedContract.d.ts +12 -0
  8. package/dist/client/DeployedContract.js +43 -0
  9. package/dist/client/SimplicityClient.d.ts +21 -0
  10. package/dist/client/SimplicityClient.js +65 -0
  11. package/dist/core/artifact.d.ts +6 -0
  12. package/dist/core/artifact.js +100 -0
  13. package/dist/core/compiler.d.ts +3 -0
  14. package/dist/core/compiler.js +117 -0
  15. package/dist/core/errors.d.ts +33 -0
  16. package/dist/core/errors.js +70 -0
  17. package/dist/core/executor.d.ts +5 -0
  18. package/dist/core/executor.js +664 -0
  19. package/dist/core/presets.d.ts +16 -0
  20. package/dist/core/presets.js +251 -0
  21. package/dist/core/rpc.d.ts +7 -0
  22. package/dist/core/rpc.js +37 -0
  23. package/dist/core/summary.d.ts +6 -0
  24. package/dist/core/summary.js +27 -0
  25. package/dist/core/templating.d.ts +2 -0
  26. package/dist/core/templating.js +17 -0
  27. package/dist/core/toolchain.d.ts +14 -0
  28. package/dist/core/toolchain.js +82 -0
  29. package/dist/core/types.d.ts +258 -0
  30. package/dist/core/types.js +2 -0
  31. package/dist/gasless/RelayerClient.d.ts +13 -0
  32. package/dist/gasless/RelayerClient.js +76 -0
  33. package/dist/gasless/types.d.ts +144 -0
  34. package/dist/gasless/types.js +2 -0
  35. package/dist/index.d.ts +8 -0
  36. package/dist/index.js +35 -0
  37. package/dist/presets/htlc.simf.tmpl +35 -0
  38. package/dist/presets/manifest.d.ts +1 -0
  39. package/dist/presets/manifest.js +5 -0
  40. package/dist/presets/p2pk.simf.tmpl +4 -0
  41. package/dist/presets/p2pkLockHeight.simf.tmpl +5 -0
  42. package/dist/presets/transferWithTimeout.simf.tmpl +26 -0
  43. package/package.json +45 -0
package/LICENSE ADDED
@@ -0,0 +1,182 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+ "Licensor" shall mean the copyright owner or entity authorized by
12
+ the copyright owner that is granting the License.
13
+ "Legal Entity" shall mean the union of the acting entity and all other
14
+ entities that control, are controlled by, or are under common control
15
+ with that entity. For the purposes of this definition, "control" means
16
+ (i) the power, direct or indirect, to cause the direction or management
17
+ of such entity, whether by contract or otherwise, or (ii) ownership of
18
+ fifty percent (50%) or more of the outstanding shares, or (iii) beneficial
19
+ ownership of such entity.
20
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
21
+ permissions granted by this License.
22
+ "Source" form shall mean the preferred form for making modifications,
23
+ including but not limited to software source code, documentation source,
24
+ and configuration files.
25
+ "Object" form shall mean any form resulting from mechanical transformation
26
+ or translation of a Source form, including but not limited to compiled
27
+ object code, generated documentation, and conversions to other media types.
28
+ "Work" shall mean the work of authorship, whether in Source or Object form,
29
+ made available under the License, as indicated by a copyright notice
30
+ that is included in or attached to the work (an example is provided in the
31
+ Appendix below).
32
+ "Derivative Works" shall mean any work, whether in Source or Object form,
33
+ that is based on (or derived from) the Work and for which the editorial
34
+ revisions, annotations, elaborations, or other modifications represent,
35
+ as a whole, an original work of authorship. For the purposes of this
36
+ License, Derivative Works shall not include works that remain separable
37
+ from, or merely link (or bind by name) to the interfaces of, the Work
38
+ and Derivative Works thereof.
39
+ "Contribution" shall mean any work of authorship, including the original
40
+ version of the Work and any modifications or additions to that Work or
41
+ Derivative Works thereof, that is intentionally submitted to Licensor
42
+ for inclusion in the Work by the copyright owner or by an individual or
43
+ Legal Entity authorized to submit on behalf of the copyright owner.
44
+ For the purposes of this definition, "submitted" means any form of
45
+ electronic, verbal, or written communication sent to the Licensor or its
46
+ representatives, including but not limited to communication on electronic
47
+ mailing lists, source code control systems, and issue tracking systems
48
+ that are managed by, or on behalf of, the Licensor for the purpose of
49
+ discussing and improving the Work, but excluding communication that is
50
+ conspicuously marked or otherwise designated in writing by the copyright
51
+ owner as "Not a Contribution."
52
+ "Contributor" shall mean Licensor and any individual or Legal Entity on
53
+ behalf of whom a Contribution has been received by Licensor and
54
+ subsequently incorporated within the Work.
55
+
56
+ 2. Grant of Copyright License.
57
+ Subject to the terms and conditions of this License, each Contributor
58
+ hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
59
+ royalty-free, irrevocable copyright license to reproduce, prepare
60
+ Derivative Works of, publicly display, publicly perform, sublicense,
61
+ and distribute the Work and such Derivative Works in Source or Object form.
62
+
63
+ 3. Grant of Patent License.
64
+ Subject to the terms and conditions of this License, each Contributor
65
+ hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
66
+ royalty-free, irrevocable (except as stated in this section) patent
67
+ license to make, have made, use, offer to sell, sell, import, and
68
+ otherwise transfer the Work, where such license applies only to those
69
+ patent claims licensable by such Contributor that are necessarily
70
+ infringed by their Contribution(s) alone or by combination of their
71
+ Contribution(s) with the Work to which such Contribution(s) was submitted.
72
+ If You institute patent litigation against any entity (including a
73
+ cross-claim or counterclaim in a lawsuit) alleging that the Work or a
74
+ Contribution incorporated within the Work constitutes direct or
75
+ contributory patent infringement, then any patent licenses granted to
76
+ You under this License for that Work shall terminate as of the date
77
+ such litigation is filed.
78
+
79
+ 4. Redistribution.
80
+ You may reproduce and distribute copies of the Work or Derivative Works
81
+ thereof in any medium, with or without modifications, and in Source or
82
+ Object form, provided that You meet the following conditions:
83
+ (a) You must give any other recipients of the Work or Derivative Works
84
+ a copy of this License; and
85
+ (b) You must cause any modified files to carry prominent notices stating
86
+ that You changed the files; and
87
+ (c) You must retain, in the Source form of any Derivative Works that You
88
+ distribute, all copyright, patent, trademark, and attribution notices
89
+ from the Source form of the Work, excluding those notices that do not
90
+ pertain to any part of the Derivative Works; and
91
+ (d) If the Work includes a "NOTICE" text file as part of its distribution,
92
+ then any Derivative Works that You distribute must include a readable
93
+ copy of the attribution notices contained within such NOTICE file,
94
+ excluding those notices that do not pertain to any part of the
95
+ Derivative Works, in at least one of the following places: within a
96
+ NOTICE text file distributed as part of the Derivative Works; within
97
+ the Source form or documentation, if provided along with the Derivative
98
+ Works; or, within a display generated by the Derivative Works, if and
99
+ wherever such third-party notices normally appear. The contents of the
100
+ NOTICE file are for informational purposes only and do not modify the
101
+ License. You may add Your own attribution notices within Derivative
102
+ Works that You distribute, alongside or as an addendum to the NOTICE
103
+ text from the Work, provided that such additional attribution notices
104
+ cannot be construed as modifying the License.
105
+ You may add Your own copyright statement to Your modifications and may
106
+ provide additional or different license terms and conditions for use,
107
+ reproduction, or distribution of Your modifications, or for any such
108
+ Derivative Works as a whole, provided Your use, reproduction, and
109
+ distribution of the Work otherwise complies with the conditions stated
110
+ in this License.
111
+
112
+ 5. Submission of Contributions.
113
+ Unless You explicitly state otherwise, any Contribution intentionally
114
+ submitted for inclusion in the Work by You to the Licensor shall be
115
+ under the terms and conditions of this License, without any additional
116
+ terms or conditions. Notwithstanding the above, nothing herein shall
117
+ supersede or modify the terms of any separate license agreement you may
118
+ have executed with Licensor regarding such Contributions.
119
+
120
+ 6. Trademarks.
121
+ This License does not grant permission to use the trade names, trademarks,
122
+ service marks, or product names of the Licensor, except as required for
123
+ reasonable and customary use in describing the origin of the Work and
124
+ reproducing the content of the NOTICE file.
125
+
126
+ 7. Disclaimer of Warranty.
127
+ Unless required by applicable law or agreed to in writing, Licensor
128
+ provides the Work (and each Contributor provides its Contributions) on
129
+ an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
130
+ express or implied, including, without limitation, any warranties or
131
+ conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR
132
+ A PARTICULAR PURPOSE. You are solely responsible for determining the
133
+ appropriateness of using or redistributing the Work and assume any risks
134
+ associated with Your exercise of permissions under this License.
135
+
136
+ 8. Limitation of Liability.
137
+ In no event and under no legal theory, whether in tort (including negligence),
138
+ contract, or otherwise, unless required by applicable law (such as deliberate
139
+ and grossly negligent acts) or agreed to in writing, shall any Contributor be
140
+ liable to You for damages, including any direct, indirect, special, incidental,
141
+ or consequential damages of any character arising as a result of this License
142
+ or out of the use or inability to use the Work (including but not limited to
143
+ damages for loss of goodwill, work stoppage, computer failure or malfunction,
144
+ or any and all other commercial damages or losses), even if such Contributor
145
+ has been advised of the possibility of such damages.
146
+
147
+ 9. Accepting Warranty or Additional Liability.
148
+ While redistributing the Work or Derivative Works thereof, You may choose to
149
+ offer, and charge a fee for, acceptance of support, warranty, indemnity, or
150
+ other liability obligations and/or rights consistent with this License.
151
+ However, in accepting such obligations, You may act only on Your own behalf
152
+ and on Your sole responsibility, not on behalf of any other Contributor,
153
+ and only if You agree to indemnify, defend, and hold each Contributor harmless
154
+ for any liability incurred by, or claims asserted against, such Contributor
155
+ by reason of your accepting any such warranty or additional liability.
156
+
157
+ END OF TERMS AND CONDITIONS
158
+
159
+ APPENDIX: How to apply the Apache License to your work.
160
+
161
+ To apply the Apache License to your work, attach the following
162
+ boilerplate notice, with the fields enclosed by brackets "[]"
163
+ replaced with your own identifying information. (Don't include
164
+ the brackets!) The text should be enclosed in the appropriate
165
+ comment syntax for the file format. We also recommend that a file
166
+ or class name and description of purpose be included on the same
167
+ "printed page" as the copyright notice for easier identification
168
+ within third-party archives.
169
+
170
+ Copyright 2026 IndieSquare, Inc
171
+
172
+ Licensed under the Apache License, Version 2.0 (the "License");
173
+ you may not use this file except in compliance with the License.
174
+ You may obtain a copy of the License at
175
+
176
+ http://www.apache.org/licenses/LICENSE-2.0
177
+
178
+ Unless required by applicable law or agreed to in writing, software
179
+ distributed under the License is distributed on an "AS IS" BASIS,
180
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
181
+ See the License for the specific language governing permissions and
182
+ limitations under the License.