wasmlock 0.0.0-stage → 0.1.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.
@@ -0,0 +1,580 @@
1
+ Third party notices
2
+
3
+ wasmlock is published as one bundle with no runtime dependencies. The bundle contains the code of
4
+ the packages below, each under its own license, at the exact versions that bun.lock fixes. This
5
+ file is produced by scripts/build.ts from the packages that ended up in the bundle.
6
+
7
+ ==============================================================================
8
+ @exodus/bytes 1.16.0
9
+ License: MIT
10
+ ==============================================================================
11
+
12
+ --- LICENSE ---
13
+ MIT License
14
+
15
+ Copyright (c) 2024-2025 Exodus Movement
16
+
17
+ Permission is hereby granted, free of charge, to any person obtaining a copy
18
+ of this software and associated documentation files (the "Software"), to deal
19
+ in the Software without restriction, including without limitation the rights
20
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21
+ copies of the Software, and to permit persons to whom the Software is
22
+ furnished to do so, subject to the following conditions:
23
+
24
+ The above copyright notice and this permission notice shall be included in all
25
+ copies or substantial portions of the Software.
26
+
27
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
+ SOFTWARE.
34
+
35
+ ==============================================================================
36
+ @noble/ed25519 3.2.0
37
+ License: MIT
38
+ ==============================================================================
39
+
40
+ --- LICENSE ---
41
+ The MIT License (MIT)
42
+
43
+ Copyright (c) 2019 Paul Miller (https://paulmillr.com)
44
+
45
+ Permission is hereby granted, free of charge, to any person obtaining a copy
46
+ of this software and associated documentation files (the “Software”), to deal
47
+ in the Software without restriction, including without limitation the rights
48
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
49
+ copies of the Software, and to permit persons to whom the Software is
50
+ furnished to do so, subject to the following conditions:
51
+
52
+ The above copyright notice and this permission notice shall be included in
53
+ all copies or substantial portions of the Software.
54
+
55
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
56
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
57
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
58
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
59
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
60
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
61
+ THE SOFTWARE.
62
+
63
+ ==============================================================================
64
+ @noble/hashes 2.4.0
65
+ License: MIT
66
+ ==============================================================================
67
+
68
+ --- LICENSE ---
69
+ The MIT License (MIT)
70
+
71
+ Copyright (c) 2022 Paul Miller (https://paulmillr.com)
72
+
73
+ Permission is hereby granted, free of charge, to any person obtaining a copy
74
+ of this software and associated documentation files (the “Software”), to deal
75
+ in the Software without restriction, including without limitation the rights
76
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
77
+ copies of the Software, and to permit persons to whom the Software is
78
+ furnished to do so, subject to the following conditions:
79
+
80
+ The above copyright notice and this permission notice shall be included in
81
+ all copies or substantial portions of the Software.
82
+
83
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
84
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
85
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
86
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
87
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
88
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
89
+ THE SOFTWARE.
90
+
91
+ ==============================================================================
92
+ @stellar/js-xdr 5.0.0
93
+ License: Apache-2.0
94
+ ==============================================================================
95
+
96
+ --- LICENSE.md ---
97
+
98
+ Apache License
99
+ Version 2.0, January 2004
100
+ http://www.apache.org/licenses/
101
+
102
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
103
+
104
+ 1. Definitions.
105
+
106
+ "License" shall mean the terms and conditions for use, reproduction,
107
+ and distribution as defined by Sections 1 through 9 of this document.
108
+
109
+ "Licensor" shall mean the copyright owner or entity authorized by
110
+ the copyright owner that is granting the License.
111
+
112
+ "Legal Entity" shall mean the union of the acting entity and all
113
+ other entities that control, are controlled by, or are under common
114
+ control with that entity. For the purposes of this definition,
115
+ "control" means (i) the power, direct or indirect, to cause the
116
+ direction or management of such entity, whether by contract or
117
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
118
+ outstanding shares, or (iii) beneficial ownership of such entity.
119
+
120
+ "You" (or "Your") shall mean an individual or Legal Entity
121
+ exercising permissions granted by this License.
122
+
123
+ "Source" form shall mean the preferred form for making modifications,
124
+ including but not limited to software source code, documentation
125
+ source, and configuration files.
126
+
127
+ "Object" form shall mean any form resulting from mechanical
128
+ transformation or translation of a Source form, including but
129
+ not limited to compiled object code, generated documentation,
130
+ and conversions to other media types.
131
+
132
+ "Work" shall mean the work of authorship, whether in Source or
133
+ Object form, made available under the License, as indicated by a
134
+ copyright notice that is included in or attached to the work
135
+ (an example is provided in the Appendix below).
136
+
137
+ "Derivative Works" shall mean any work, whether in Source or Object
138
+ form, that is based on (or derived from) the Work and for which the
139
+ editorial revisions, annotations, elaborations, or other modifications
140
+ represent, as a whole, an original work of authorship. For the purposes
141
+ of this License, Derivative Works shall not include works that remain
142
+ separable from, or merely link (or bind by name) to the interfaces of,
143
+ the Work and Derivative Works thereof.
144
+
145
+ "Contribution" shall mean any work of authorship, including
146
+ the original version of the Work and any modifications or additions
147
+ to that Work or Derivative Works thereof, that is intentionally
148
+ submitted to Licensor for inclusion in the Work by the copyright owner
149
+ or by an individual or Legal Entity authorized to submit on behalf of
150
+ the copyright owner. For the purposes of this definition, "submitted"
151
+ means any form of electronic, verbal, or written communication sent
152
+ to the Licensor or its representatives, including but not limited to
153
+ communication on electronic mailing lists, source code control systems,
154
+ and issue tracking systems that are managed by, or on behalf of, the
155
+ Licensor for the purpose of discussing and improving the Work, but
156
+ excluding communication that is conspicuously marked or otherwise
157
+ designated in writing by the copyright owner as "Not a Contribution."
158
+
159
+ "Contributor" shall mean Licensor and any individual or Legal Entity
160
+ on behalf of whom a Contribution has been received by Licensor and
161
+ subsequently incorporated within the Work.
162
+
163
+ 2. Grant of Copyright License. Subject to the terms and conditions of
164
+ this License, each Contributor hereby grants to You a perpetual,
165
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
166
+ copyright license to reproduce, prepare Derivative Works of,
167
+ publicly display, publicly perform, sublicense, and distribute the
168
+ Work and such Derivative Works in Source or Object form.
169
+
170
+ 3. Grant of Patent License. Subject to the terms and conditions of
171
+ this License, each Contributor hereby grants to You a perpetual,
172
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
173
+ (except as stated in this section) patent license to make, have made,
174
+ use, offer to sell, sell, import, and otherwise transfer the Work,
175
+ where such license applies only to those patent claims licensable
176
+ by such Contributor that are necessarily infringed by their
177
+ Contribution(s) alone or by combination of their Contribution(s)
178
+ with the Work to which such Contribution(s) was submitted. If You
179
+ institute patent litigation against any entity (including a
180
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
181
+ or a Contribution incorporated within the Work constitutes direct
182
+ or contributory patent infringement, then any patent licenses
183
+ granted to You under this License for that Work shall terminate
184
+ as of the date such litigation is filed.
185
+
186
+ 4. Redistribution. You may reproduce and distribute copies of the
187
+ Work or Derivative Works thereof in any medium, with or without
188
+ modifications, and in Source or Object form, provided that You
189
+ meet the following conditions:
190
+
191
+ (a) You must give any other recipients of the Work or
192
+ Derivative Works a copy of this License; and
193
+
194
+ (b) You must cause any modified files to carry prominent notices
195
+ stating that You changed the files; and
196
+
197
+ (c) You must retain, in the Source form of any Derivative Works
198
+ that You distribute, all copyright, patent, trademark, and
199
+ attribution notices from the Source form of the Work,
200
+ excluding those notices that do not pertain to any part of
201
+ the Derivative Works; and
202
+
203
+ (d) If the Work includes a "NOTICE" text file as part of its
204
+ distribution, then any Derivative Works that You distribute must
205
+ include a readable copy of the attribution notices contained
206
+ within such NOTICE file, excluding those notices that do not
207
+ pertain to any part of the Derivative Works, in at least one
208
+ of the following places: within a NOTICE text file distributed
209
+ as part of the Derivative Works; within the Source form or
210
+ documentation, if provided along with the Derivative Works; or,
211
+ within a display generated by the Derivative Works, if and
212
+ wherever such third-party notices normally appear. The contents
213
+ of the NOTICE file are for informational purposes only and
214
+ do not modify the License. You may add Your own attribution
215
+ notices within Derivative Works that You distribute, alongside
216
+ or as an addendum to the NOTICE text from the Work, provided
217
+ that such additional attribution notices cannot be construed
218
+ as modifying the License.
219
+
220
+ You may add Your own copyright statement to Your modifications and
221
+ may provide additional or different license terms and conditions
222
+ for use, reproduction, or distribution of Your modifications, or
223
+ for any such Derivative Works as a whole, provided Your use,
224
+ reproduction, and distribution of the Work otherwise complies with
225
+ the conditions stated in this License.
226
+
227
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
228
+ any Contribution intentionally submitted for inclusion in the Work
229
+ by You to the Licensor shall be under the terms and conditions of
230
+ this License, without any additional terms or conditions.
231
+ Notwithstanding the above, nothing herein shall supersede or modify
232
+ the terms of any separate license agreement you may have executed
233
+ with Licensor regarding such Contributions.
234
+
235
+ 6. Trademarks. This License does not grant permission to use the trade
236
+ names, trademarks, service marks, or product names of the Licensor,
237
+ except as required for reasonable and customary use in describing the
238
+ origin of the Work and reproducing the content of the NOTICE file.
239
+
240
+ 7. Disclaimer of Warranty. Unless required by applicable law or
241
+ agreed to in writing, Licensor provides the Work (and each
242
+ Contributor provides its Contributions) on an "AS IS" BASIS,
243
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
244
+ implied, including, without limitation, any warranties or conditions
245
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
246
+ PARTICULAR PURPOSE. You are solely responsible for determining the
247
+ appropriateness of using or redistributing the Work and assume any
248
+ risks associated with Your exercise of permissions under this License.
249
+
250
+ 8. Limitation of Liability. In no event and under no legal theory,
251
+ whether in tort (including negligence), contract, or otherwise,
252
+ unless required by applicable law (such as deliberate and grossly
253
+ negligent acts) or agreed to in writing, shall any Contributor be
254
+ liable to You for damages, including any direct, indirect, special,
255
+ incidental, or consequential damages of any character arising as a
256
+ result of this License or out of the use or inability to use the
257
+ Work (including but not limited to damages for loss of goodwill,
258
+ work stoppage, computer failure or malfunction, or any and all
259
+ other commercial damages or losses), even if such Contributor
260
+ has been advised of the possibility of such damages.
261
+
262
+ 9. Accepting Warranty or Additional Liability. While redistributing
263
+ the Work or Derivative Works thereof, You may choose to offer,
264
+ and charge a fee for, acceptance of support, warranty, indemnity,
265
+ or other liability obligations and/or rights consistent with this
266
+ License. However, in accepting such obligations, You may act only
267
+ on Your own behalf and on Your sole responsibility, not on behalf
268
+ of any other Contributor, and only if You agree to indemnify,
269
+ defend, and hold each Contributor harmless for any liability
270
+ incurred by, or claims asserted against, such Contributor by reason
271
+ of your accepting any such warranty or additional liability.
272
+
273
+ END OF TERMS AND CONDITIONS
274
+
275
+ APPENDIX: How to apply the Apache License to your work.
276
+
277
+ To apply the Apache License to your work, attach the following
278
+ boilerplate notice, with the fields enclosed by brackets "[]"
279
+ replaced with your own identifying information. (Don't include
280
+ the brackets!) The text should be enclosed in the appropriate
281
+ comment syntax for the file format. We also recommend that a
282
+ file or class name and description of purpose be included on the
283
+ same "printed page" as the copyright notice for easier
284
+ identification within third-party archives.
285
+
286
+ Copyright 2015 Stellar Development Foundation
287
+
288
+ Licensed under the Apache License, Version 2.0 (the "License");
289
+ you may not use this file except in compliance with the License.
290
+ You may obtain a copy of the License at
291
+
292
+ http://www.apache.org/licenses/LICENSE-2.0
293
+
294
+ Unless required by applicable law or agreed to in writing, software
295
+ distributed under the License is distributed on an "AS IS" BASIS,
296
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
297
+ See the License for the specific language governing permissions and
298
+ limitations under the License.
299
+
300
+ ==============================================================================
301
+ @stellar/stellar-sdk 17.4.0
302
+ License: Apache-2.0
303
+ ==============================================================================
304
+
305
+ --- LICENSE ---
306
+
307
+ Apache License
308
+ Version 2.0, January 2004
309
+ http://www.apache.org/licenses/
310
+
311
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
312
+
313
+ 1. Definitions.
314
+
315
+ "License" shall mean the terms and conditions for use, reproduction,
316
+ and distribution as defined by Sections 1 through 9 of this document.
317
+
318
+ "Licensor" shall mean the copyright owner or entity authorized by
319
+ the copyright owner that is granting the License.
320
+
321
+ "Legal Entity" shall mean the union of the acting entity and all
322
+ other entities that control, are controlled by, or are under common
323
+ control with that entity. For the purposes of this definition,
324
+ "control" means (i) the power, direct or indirect, to cause the
325
+ direction or management of such entity, whether by contract or
326
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
327
+ outstanding shares, or (iii) beneficial ownership of such entity.
328
+
329
+ "You" (or "Your") shall mean an individual or Legal Entity
330
+ exercising permissions granted by this License.
331
+
332
+ "Source" form shall mean the preferred form for making modifications,
333
+ including but not limited to software source code, documentation
334
+ source, and configuration files.
335
+
336
+ "Object" form shall mean any form resulting from mechanical
337
+ transformation or translation of a Source form, including but
338
+ not limited to compiled object code, generated documentation,
339
+ and conversions to other media types.
340
+
341
+ "Work" shall mean the work of authorship, whether in Source or
342
+ Object form, made available under the License, as indicated by a
343
+ copyright notice that is included in or attached to the work
344
+ (an example is provided in the Appendix below).
345
+
346
+ "Derivative Works" shall mean any work, whether in Source or Object
347
+ form, that is based on (or derived from) the Work and for which the
348
+ editorial revisions, annotations, elaborations, or other modifications
349
+ represent, as a whole, an original work of authorship. For the purposes
350
+ of this License, Derivative Works shall not include works that remain
351
+ separable from, or merely link (or bind by name) to the interfaces of,
352
+ the Work and Derivative Works thereof.
353
+
354
+ "Contribution" shall mean any work of authorship, including
355
+ the original version of the Work and any modifications or additions
356
+ to that Work or Derivative Works thereof, that is intentionally
357
+ submitted to Licensor for inclusion in the Work by the copyright owner
358
+ or by an individual or Legal Entity authorized to submit on behalf of
359
+ the copyright owner. For the purposes of this definition, "submitted"
360
+ means any form of electronic, verbal, or written communication sent
361
+ to the Licensor or its representatives, including but not limited to
362
+ communication on electronic mailing lists, source code control systems,
363
+ and issue tracking systems that are managed by, or on behalf of, the
364
+ Licensor for the purpose of discussing and improving the Work, but
365
+ excluding communication that is conspicuously marked or otherwise
366
+ designated in writing by the copyright owner as "Not a Contribution."
367
+
368
+ "Contributor" shall mean Licensor and any individual or Legal Entity
369
+ on behalf of whom a Contribution has been received by Licensor and
370
+ subsequently incorporated within the Work.
371
+
372
+ 2. Grant of Copyright License. Subject to the terms and conditions of
373
+ this License, each Contributor hereby grants to You a perpetual,
374
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
375
+ copyright license to reproduce, prepare Derivative Works of,
376
+ publicly display, publicly perform, sublicense, and distribute the
377
+ Work and such Derivative Works in Source or Object form.
378
+
379
+ 3. Grant of Patent License. Subject to the terms and conditions of
380
+ this License, each Contributor hereby grants to You a perpetual,
381
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
382
+ (except as stated in this section) patent license to make, have made,
383
+ use, offer to sell, sell, import, and otherwise transfer the Work,
384
+ where such license applies only to those patent claims licensable
385
+ by such Contributor that are necessarily infringed by their
386
+ Contribution(s) alone or by combination of their Contribution(s)
387
+ with the Work to which such Contribution(s) was submitted. If You
388
+ institute patent litigation against any entity (including a
389
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
390
+ or a Contribution incorporated within the Work constitutes direct
391
+ or contributory patent infringement, then any patent licenses
392
+ granted to You under this License for that Work shall terminate
393
+ as of the date such litigation is filed.
394
+
395
+ 4. Redistribution. You may reproduce and distribute copies of the
396
+ Work or Derivative Works thereof in any medium, with or without
397
+ modifications, and in Source or Object form, provided that You
398
+ meet the following conditions:
399
+
400
+ (a) You must give any other recipients of the Work or
401
+ Derivative Works a copy of this License; and
402
+
403
+ (b) You must cause any modified files to carry prominent notices
404
+ stating that You changed the files; and
405
+
406
+ (c) You must retain, in the Source form of any Derivative Works
407
+ that You distribute, all copyright, patent, trademark, and
408
+ attribution notices from the Source form of the Work,
409
+ excluding those notices that do not pertain to any part of
410
+ the Derivative Works; and
411
+
412
+ (d) If the Work includes a "NOTICE" text file as part of its
413
+ distribution, then any Derivative Works that You distribute must
414
+ include a readable copy of the attribution notices contained
415
+ within such NOTICE file, excluding those notices that do not
416
+ pertain to any part of the Derivative Works, in at least one
417
+ of the following places: within a NOTICE text file distributed
418
+ as part of the Derivative Works; within the Source form or
419
+ documentation, if provided along with the Derivative Works; or,
420
+ within a display generated by the Derivative Works, if and
421
+ wherever such third-party notices normally appear. The contents
422
+ of the NOTICE file are for informational purposes only and
423
+ do not modify the License. You may add Your own attribution
424
+ notices within Derivative Works that You distribute, alongside
425
+ or as an addendum to the NOTICE text from the Work, provided
426
+ that such additional attribution notices cannot be construed
427
+ as modifying the License.
428
+
429
+ You may add Your own copyright statement to Your modifications and
430
+ may provide additional or different license terms and conditions
431
+ for use, reproduction, or distribution of Your modifications, or
432
+ for any such Derivative Works as a whole, provided Your use,
433
+ reproduction, and distribution of the Work otherwise complies with
434
+ the conditions stated in this License.
435
+
436
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
437
+ any Contribution intentionally submitted for inclusion in the Work
438
+ by You to the Licensor shall be under the terms and conditions of
439
+ this License, without any additional terms or conditions.
440
+ Notwithstanding the above, nothing herein shall supersede or modify
441
+ the terms of any separate license agreement you may have executed
442
+ with Licensor regarding such Contributions.
443
+
444
+ 6. Trademarks. This License does not grant permission to use the trade
445
+ names, trademarks, service marks, or product names of the Licensor,
446
+ except as required for reasonable and customary use in describing the
447
+ origin of the Work and reproducing the content of the NOTICE file.
448
+
449
+ 7. Disclaimer of Warranty. Unless required by applicable law or
450
+ agreed to in writing, Licensor provides the Work (and each
451
+ Contributor provides its Contributions) on an "AS IS" BASIS,
452
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
453
+ implied, including, without limitation, any warranties or conditions
454
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
455
+ PARTICULAR PURPOSE. You are solely responsible for determining the
456
+ appropriateness of using or redistributing the Work and assume any
457
+ risks associated with Your exercise of permissions under this License.
458
+
459
+ 8. Limitation of Liability. In no event and under no legal theory,
460
+ whether in tort (including negligence), contract, or otherwise,
461
+ unless required by applicable law (such as deliberate and grossly
462
+ negligent acts) or agreed to in writing, shall any Contributor be
463
+ liable to You for damages, including any direct, indirect, special,
464
+ incidental, or consequential damages of any character arising as a
465
+ result of this License or out of the use or inability to use the
466
+ Work (including but not limited to damages for loss of goodwill,
467
+ work stoppage, computer failure or malfunction, or any and all
468
+ other commercial damages or losses), even if such Contributor
469
+ has been advised of the possibility of such damages.
470
+
471
+ 9. Accepting Warranty or Additional Liability. While redistributing
472
+ the Work or Derivative Works thereof, You may choose to offer,
473
+ and charge a fee for, acceptance of support, warranty, indemnity,
474
+ or other liability obligations and/or rights consistent with this
475
+ License. However, in accepting such obligations, You may act only
476
+ on Your own behalf and on Your sole responsibility, not on behalf
477
+ of any other Contributor, and only if You agree to indemnify,
478
+ defend, and hold each Contributor harmless for any liability
479
+ incurred by, or claims asserted against, such Contributor by reason
480
+ of your accepting any such warranty or additional liability.
481
+
482
+ END OF TERMS AND CONDITIONS
483
+
484
+ APPENDIX: How to apply the Apache License to your work.
485
+
486
+ To apply the Apache License to your work, attach the following
487
+ boilerplate notice, with the fields enclosed by brackets "[]"
488
+ replaced with your own identifying information. (Don't include
489
+ the brackets!) The text should be enclosed in the appropriate
490
+ comment syntax for the file format. We also recommend that a
491
+ file or class name and description of purpose be included on the
492
+ same "printed page" as the copyright notice for easier
493
+ identification within third-party archives.
494
+
495
+ Copyright 2015 Stellar Development Foundation
496
+
497
+ Licensed under the Apache License, Version 2.0 (the "License");
498
+ you may not use this file except in compliance with the License.
499
+ You may obtain a copy of the License at
500
+
501
+ http://www.apache.org/licenses/LICENSE-2.0
502
+
503
+ Unless required by applicable law or agreed to in writing, software
504
+ distributed under the License is distributed on an "AS IS" BASIS,
505
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
506
+ See the License for the specific language governing permissions and
507
+ limitations under the License.
508
+
509
+ ----
510
+
511
+ Included code for base58 encoding is licensed under the MIT license:
512
+
513
+ Copyright (c) 2011 Google Inc
514
+ Copyright (c) 2013 BitPay Inc
515
+
516
+ Permission is hereby granted, free of charge, to any person obtaining a copy
517
+ of this software and associated documentation files (the "Software"), to deal
518
+ in the Software without restriction, including without limitation the rights
519
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
520
+ copies of the Software, and to permit persons to whom the Software is
521
+ furnished to do so, subject to the following conditions:
522
+
523
+ The above copyright notice and this permission notice shall be included in
524
+ all copies or substantial portions of the Software.
525
+
526
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
527
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
528
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
529
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
530
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
531
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
532
+ THE SOFTWARE.
533
+
534
+ ==============================================================================
535
+ bignumber.js 11.1.5
536
+ License: MIT
537
+ ==============================================================================
538
+
539
+ --- LICENCE.md ---
540
+ The MIT License (MIT)
541
+ =====================
542
+
543
+ Copyright © `<2026>` `Michael Mclaughlin`
544
+
545
+ Permission is hereby granted, free of charge, to any person
546
+ obtaining a copy of this software and associated documentation
547
+ files (the “Software”), to deal in the Software without
548
+ restriction, including without limitation the rights to use,
549
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
550
+ copies of the Software, and to permit persons to whom the
551
+ Software is furnished to do so, subject to the following
552
+ conditions:
553
+
554
+ The above copyright notice and this permission notice shall be
555
+ included in all copies or substantial portions of the Software.
556
+
557
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
558
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
559
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
560
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
561
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
562
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
563
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
564
+ OTHER DEALINGS IN THE SOFTWARE.
565
+
566
+ ==============================================================================
567
+ uint8array-extras 1.6.0
568
+ License: MIT
569
+ ==============================================================================
570
+
571
+ --- license ---
572
+ MIT License
573
+
574
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
575
+
576
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
577
+
578
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
579
+
580
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/dist/add.d.ts ADDED
@@ -0,0 +1,38 @@
1
+ import { type ContractEntry, type Lockfile } from "./lockfile.ts";
2
+ import type { RpcTransport } from "./rpc.ts";
3
+ import type { Rule } from "./rules.ts";
4
+ export interface AddOptions {
5
+ readonly id: string;
6
+ readonly label?: string;
7
+ /** Functions the integrator calls; each must be one the live contract exports. */
8
+ readonly uses?: readonly string[];
9
+ /** Names of pending-upgrade rules to record; each must be a preset or a rule in `rules`. */
10
+ readonly pending?: readonly string[];
11
+ /** The user rules (from `wasmlock.rules.json`), to resolve `pending` against. */
12
+ readonly rules?: readonly Rule[];
13
+ /** False stores the interface digest only. */
14
+ readonly snapshot: boolean;
15
+ /** Replace an entry that already exists. */
16
+ readonly force: boolean;
17
+ }
18
+ export type AddResult = {
19
+ readonly status: "added";
20
+ readonly entry: ContractEntry;
21
+ /** The lockfile with the entry in it, validated. */
22
+ readonly lockfile: Lockfile;
23
+ readonly replaced: boolean;
24
+ readonly notes: readonly string[];
25
+ /** Things to look at before relying on the entry: a rule whose keys are not in the instance storage. */
26
+ readonly warnings: readonly string[];
27
+ } | {
28
+ readonly status: "stellar-asset";
29
+ } | {
30
+ readonly status: "incomplete";
31
+ readonly reasons: readonly string[];
32
+ };
33
+ /**
34
+ * Reads a live contract and builds its lockfile entry. Read-only. Throws `ConfigError` for an id
35
+ * that is already pinned (without `force`) and `UsesError` for a function the contract does not
36
+ * export; `NetworkMismatchError` for an endpoint of another network.
37
+ */
38
+ export declare function addContract(lockfile: Lockfile, transport: RpcTransport, options: AddOptions): Promise<AddResult>;
@@ -0,0 +1,12 @@
1
+ /** The file operations an atomic write is made of. Injected by tests to make one of them fail. */
2
+ export interface FileOps {
3
+ write(path: string, text: string): void;
4
+ rename(from: string, to: string): void;
5
+ remove(path: string): void;
6
+ }
7
+ /**
8
+ * Writes a file so that a reader sees the old content or the new content, never a part: the text
9
+ * goes to a temporary file in the same directory (same filesystem), which is then renamed over the
10
+ * target. When anything fails the temporary file is removed and the target is untouched.
11
+ */
12
+ export declare function writeFileAtomic(path: string, text: string, ops?: FileOps): void;
@@ -0,0 +1,5 @@
1
+ import type { CheckReport } from "./check.ts";
2
+ /** Seconds as the two largest nonzero units, for a person: "2 days 23 hours", "5 minutes", "40 seconds". */
3
+ export declare function formatDuration(totalSeconds: number): string;
4
+ /** The report for a person: drift first, then pending, incomplete, clean. */
5
+ export declare function formatReport(report: CheckReport): string;