@lacasoft/openrelay-protocol 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.
package/LICENSE ADDED
@@ -0,0 +1,118 @@
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
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included
37
+ in or attached to the work.
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other
42
+ transformations represent, as a whole, an original work of authorship.
43
+
44
+ "Contribution" shall mean any work of authorship submitted to the
45
+ Licensor for inclusion in the Work by the copyright owner or by an
46
+ individual or Legal Entity authorized to submit on behalf of the
47
+ copyright owner.
48
+
49
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
50
+ whom a Contribution has been received by the Licensor and included
51
+ within the Work.
52
+
53
+ 2. Grant of Copyright License. Subject to the terms and conditions of
54
+ this License, each Contributor hereby grants to You a perpetual,
55
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
56
+ copyright license to reproduce, prepare Derivative Works of,
57
+ publicly display, publicly perform, sublicense, and distribute the
58
+ Work and such Derivative Works in Source or Object form.
59
+
60
+ 3. Grant of Patent License. Subject to the terms and conditions of
61
+ this License, each Contributor hereby grants to You a perpetual,
62
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
63
+ patent license to make, use, sell, offer for sale, import, and
64
+ otherwise transfer the Work.
65
+
66
+ 4. Redistribution. You may reproduce and distribute copies of the
67
+ Work or Derivative Works thereof in any medium, with or without
68
+ modifications, and in Source or Object form, provided that You
69
+ meet the following conditions:
70
+
71
+ (a) You must give any other recipients of the Work or
72
+ Derivative Works a copy of this License; and
73
+
74
+ (b) You must cause any modified files to carry prominent notices
75
+ stating that You changed the files; and
76
+
77
+ (c) You must retain, in the Source form of any Derivative Works
78
+ that You distribute, all copyright, patent, trademark, and
79
+ attribution notices from the Source form of the Work; and
80
+
81
+ (d) If the Work includes a "NOTICE" text file, You must include
82
+ a readable copy of the attribution notices contained
83
+ within such NOTICE file.
84
+
85
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
86
+ any Contribution submitted for inclusion in the Work shall be under
87
+ the terms and conditions of this License, without any additional
88
+ terms or conditions.
89
+
90
+ 6. Trademarks. This License does not grant permission to use the trade
91
+ names, trademarks, service marks, or product names of the Licensor.
92
+
93
+ 7. Disclaimer of Warranty. Unless required by applicable law or
94
+ agreed to in writing, Licensor provides the Work on an "AS IS"
95
+ BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
96
+
97
+ 8. Limitation of Liability. In no event and under no legal theory
98
+ shall any Contributor be liable for any damages arising from this
99
+ Work, including direct, indirect, special, incidental, or
100
+ consequential damages.
101
+
102
+ 9. Accepting Warranty or Additional Liability. While redistributing
103
+ the Work, You may offer acceptance of support, warranty, indemnity,
104
+ or other liability obligations consistent with this License.
105
+
106
+ END OF TERMS AND CONDITIONS
107
+
108
+ Copyright 2025 OpenRelay Contributors
109
+
110
+ Licensed under the Apache License, Version 2.0 (the "License");
111
+ you may not use this file except in compliance with the License.
112
+ You may obtain a copy of the License at
113
+
114
+ http://www.apache.org/licenses/LICENSE-2.0
115
+
116
+ Unless required by applicable law or agreed to in writing, software
117
+ distributed under the License is distributed on an "AS IS" BASIS,
118
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # @lacasoft/openrelay-protocol
2
+
3
+ Shared types, interfaces, and constants for the OpenRelay protocol.
4
+
5
+ ## Development
6
+
7
+ ```bash
8
+ pnpm build # Compile TypeScript to dist/
9
+ pnpm dev # Watch mode
10
+ pnpm typecheck # Type-check without emitting
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ This package is consumed by other workspace packages via `workspace:*` dependency:
16
+
17
+ ```typescript
18
+ import { PaymentIntent, NodeInfo } from '@lacasoft/openrelay-protocol'
19
+ ```