@velocitycareerlabs/revocation-list-contract 1.25.0-dev-build.14cb545cb → 1.25.0-dev-build.168a64a93

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 CHANGED
@@ -1,248 +1,202 @@
1
- Velocity License Version 1.0
2
-
3
- PLEASE READ CAREFULLY THESE LICENSE TERMS (THE “TERMS”) BEFORE OBTAINING A
4
- COPY, INSTALLING, ACCESSING, OR USING THE SOFTWARE (AS DEFINED BELOW) PROVIDED
5
- TO YOU (“USER”, “YOU”) BY VCL (AS DEFINED BELOW). BY INSTALLING, HAVING
6
- INSTALLED, CONTROLLING, ACCESSING OR OTHERWISE USING THE SOFTWARE IN ANY
7
- MANNER, YOU ARE ACCEPTING AND AGREEING TO BE BOUND BY THE LICENSE TERMS AND
8
- CONDITIONS HEREOF AND REPRESENTING THAT YOU HAVE FULL RIGHT, POWER, AND
9
- AUTHORITY TO ENTER INTO AND PERFORM THE TERMS HEREUNDER. THESE TERMS ARE MADE
10
- BETWEEN YOU AND VELOCITY CAREER LABS, INC., A DELAWARE CORPORATION AND ITS
11
- AFFILIATES (“VCL”, AND COLLECTIVELY THE “PARTIES”), WITH RESPECT TO THE
12
- SOFTWARE, AND NOTWITHSTANDING ANYTHING TO THE CONTRARY IN ANY OTHER DOCUMENT,
13
- AGREEMENT OR ARRANGEMENT BETWEEN YOU AND ANY THIRD PARTY OR ANYONE ON ITS
14
- BEHALF. YOU ASSUME ALL RESPONSIBILITY FOR THE SELECTION OF THE SOFTWARE, FOR
15
- YOUR RELIANCE ON THE RESULTS OF USE OF THE SOFTWARE AND FOR ANY USE OF THE
16
- SOFTWARE NOT IN ACCORDANCE WITH THE TERMS HEREOF.
17
-
18
- 1. DEFINITIONS.
19
-
20
- 1.1 “Affiliate” means any entity which controls, is controlled by or is under
21
- common control with either of the parties, whether by ownership or management.
22
- Any entity shall be deemed to “control” another entity if it owns directly or
23
- indirectly more than 50% of the outstanding voting securities or capital of
24
- other entity or other comparable equity with respect to an entity other than a
25
- company.
26
-
27
- 1.2 “Documentation” means the instructions, user guides, manuals and release
28
- notes provided by VCL, at any time, in printed and/or electronic form, that
29
- describe the operation, use or technical specifications of the Software.
30
-
31
- 1.3 “Software” means the software components comprised of proprietary software
32
- and solution currently distributed under the name “Velocity Network”, offering
33
- developers a blockchain-based “internet of careers” utility layer. Software may
34
- include one or more of the following components:(i) Credential Holder App –
35
- SDK\Reference Application, (ii) Credential Agent and\or (iii) Velocity
36
- Blockchain Node.
37
-
38
- 2. RIGHTS TO USE; RESTRICTIONS ON USE
39
-
40
- 2.1 VCL hereby grants User, during the Term (as defined below), free of charge,
41
- a limited, revocable, non-exclusive, non-transferable and non-assignable right,
42
- to 1) access, use, and install (if applicable) the Software, and 2) develop
43
- applications which are separate from the Software (separate in architecture and
44
- require only use of the Software in object code for proper functioning) which
45
- interface with the Software or otherwise include it (“User Applications”),
46
- solely for (i) internal use in development and testing environments, including
47
- reviewing the Software code for functionality and/or security evaluations
48
- purposes, and (ii) demonstrating the functionality and structure of User
49
- Applications, including when operated in connection with the Software, all
50
- solely in connection with the Velocity Network and in accordance with the Terms
51
- herein.
52
-
53
- 2.2 VCL may make available Documentation to User for User’s internal business
54
- purposes and solely in connection with the use of the Software during the Term.
55
- User may print or copy the Documentation as needed for its own internal
56
- business purposes provided that all copyright notices are included therein. The
57
- Documentation shall be considered as VCL's Confidential Information (as further
58
- defined). Unless the Documentation is separately referred to herein, all
59
- references in these Terms to the Software shall include the Documentation.
60
-
61
- 2.3 Additional Rights and Restrictions.
62
-
63
- 2.3.1 The Software is licensed, not sold. These Terms only gives the User
64
- limited rights to use the Software as explicitly set forth in these Terms
65
- during the Term and VCL reserves all other rights. The User may use the
66
- Software and related Velocity Network services only as expressly permitted in
67
- the Terms except if otherwise required under applicable law.
68
-
69
- 2.3.2 User agrees that it will not, and will not permit others to: (i) use a
70
- derivative work of the Software not in connection with the Velocity Network, or
71
- in any production capacity, on a temporary or permanent basis; (ii) reverse
72
- engineer, decompile, disassemble or attempt to derive the underlying know-how
73
- and algorithms of the Software and/or any part thereof; (iii) exceed the
74
- license scope as specified in these Terms; (iv) sublicense, transfer, publish
75
- or make available to the public or any third party, rent, lease or lend the
76
- Software; (v) use the Software to operate a service bureau or subscription
77
- service or for commercial software hosting services, or otherwise attempt to
78
- use the Software to provide or make available materially the same functionality
79
- of the Software to third parties; (vi) directly or indirectly, take any action
80
- to contest VCL’s intellectual property rights in or in connection to the
81
- Software or related services or infringe them in any way; or (vii) use the
82
- Software or output for the purpose of competing with the Software and/or
83
- Velocity Network.
84
-
85
- 2.4 Marks and Use of VCL’s Name. These Terms do not grant User any rights to
86
- VCL’s trademarks or service marks. The User will not remove or modify any
87
- Software markings or any notice of VCL’s proprietary rights.
88
-
89
- 3. DISCLAIMER OF WARRANTIES AND LIMITATION OF LIABILITY
90
-
91
- 3.1 Disclaimer of Any Warranties. TO THE MAXIMUM EXTENT PERMITTED UNDER
92
- APPLICABLE LAW, THE SOFTWARE IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND,
93
- AND VCL EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, WHETHER EXPRESS OR IMPLIED,
94
- REGARDING OR RELATING TO THE SOFTWARE.
95
-
96
- 3.2 Limitation of Liability. UNDER NO CIRCUMSTANCES SHALL VCL BE LIABLE FOR
97
- ANY DIRECT, INDIRECT, INCIDENTAL, WITHOUT LIMITATION, FOR ANY LOSS OF PROFITS,
98
- LOSS OF USE, BUSINESS INTERRUPTION, LOSS OF DATA, COST OF SUBSTITUTE GOODS OR
99
- SERVICES, PRODUCTION, ANTICIPATED SAVINGS, OR FOR ANY SPECIAL, INCIDENTAL OR
100
- CONSEQUENTIAL DAMAGES OF ANY KIND, IN CONNECTION WITH OR ARISING OUT OF THE USE
101
- OR INABILITY TO USE THE SOFTWARE. USER ACKNOWLEDGES THAT THESE LIMITATIONS
102
- SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITED
103
- REMEDY. IN THE EVENT THIS LIMITATION OF LIABILITY SHALL BE FOR ANY REASON HELD
104
- UNENFORCEABLE OR INAPPLICABLE, VCL’S AGGREGATE LIABILITY SHALL NOT EXCEED THE
105
- AMOUNT OF US$1,000. YOU HEEREBY WAIVE THE RIGHT TO LITIGATE IN COURT OR
106
- ARBITRATE ANY CLAIM OR DISPUTE AS A CLASS ACTION, EITHER AS A MEMBER OF A CLASS
107
- OR AS A REPRESENTATIVE, OR TO ACT AS A PRIVATE ATTORNEY GENERAL.
108
-
109
- 4. INTELLECTUAL PROPERTY; Confidential Information
110
-
111
- 4.1 Intellectual Property. No rights other than the limited license rights
112
- expressly set forth herein shall pass to the User. User acknowledges and agrees
113
- that as between User and VCL, the Software including any related services and
114
- any revisions, corrections, modifications, enhancements and/or upgrades
115
- thereto, are VCL’s property protected under copyright laws, patent law, and/or
116
- other laws protecting intellectual property rights and international treaties.
117
- User further acknowledges and agrees that all right, title, and interest in and
118
- to the Software, including associated intellectual property rights (including,
119
- without limitation, copyrights, trade secrets, trademarks, etc.), evidenced by
120
- or embodied in and/or attached/connected/related to the Software (including,
121
- without limitation, the code), Documentation and any related services, are and
122
- shall remain with VCL. Nothing in these Terms constitutes a waiver of VCL’s
123
- intellectual property rights under any law. In the event User provides VCL with
124
- any suggestions, comments or other feedback relating to the Software, or if VCL
125
- generates any knowledge in connection with its provision of the Software
126
- including any related services (collectively “Feedback”), whether such Feedback
127
- is provided or generated (as applicable) prior to, on or after the Term, such
128
- Feedback shall become the sole and exclusive property of VCL and/or its
129
- affiliates, and User hereby irrevocably assigns to VCL and/or its affiliates
130
- all of its right, title and interest in and to such Feedback. Without
131
- derogating from the aforementioned, VCL acknowledges and agrees that as between
132
- VCL and User, User shall exclusively own intellectual property rights to any
133
- User Applications, subject to its compliance with these Terms.
134
-
135
- 4.2 Confidential Information. Prior to or during the Term, VCL may, directly
136
- or indirectly, disclose to you, or allow you access to, certain Confidential
137
- Information (as defined below), whether in writing, oral form or in any other
138
- manner. For the purposes of these Terms, "Confidential Information" means any
139
- and all information, data and know-how of a private, non-public or confidential
140
- nature, in whatever form, that relates to the technology and/or products of
141
- VCL, its Affiliates, vendors, suppliers, provided or disclosed to you or which
142
- becomes known to you, whether or not marked as such. “Confidential Information”
143
- shall not include information or any matter that you can demonstrate by written
144
- and dated evidence: (a) was already known to you from a source other than VCL
145
- prior to disclosure; (b) was independently developed by you without use of, or
146
- reference to, the Confidential Information; (c) has become a part of the public
147
- knowledge, through no fault of, or breach of these Terms; (d) was lawfully
148
- received by you from another person or entity having no confidentiality
149
- obligation to VCL or its affiliates; or (e) is explicitly approved in writing
150
- by VCL for release by the User. The User shall treat all Confidential
151
- Information as strictly confidential, and except as expressly contemplated
152
- hereunder it shall: (a) not, directly or indirectly use or otherwise exploit
153
- Confidential Information for any other purpose other than for performing
154
- hereunder; (b) protect and safeguard the Confidential Information against any
155
- unauthorized use, disclosure, transfer or publication with at least the same
156
- degree of care as it uses for its own confidential or proprietary information,
157
- but in no event using less than a reasonable degree of care; (c) restrict
158
- disclosure of the Confidential Information to those directors, officers,
159
- employees, agents, consultants, contractors, or representatives of itself or of
160
- its affiliates (“Representatives”) who clearly have a need-to-know such
161
- Confidential Information; (d) advise such Representatives of their obligations
162
- to comply with these Terms, and the User shall be liable for any failure of its
163
- Representatives to comply with any of the Terms; and (e) notify VCL immediately
164
- upon discovery of any unauthorized use or disclosure of the Confidential
165
- Information and take reasonable steps to regain possession of the Confidential
166
- Information and prevent further unauthorized actions or other breach of these
167
- Terms.
168
-
169
- 5. THIRD PARTY COMPONENTS. The Software includes third party software, files
170
- and components that are subject to open source and third party license terms (
171
- “Third Party Components”). User’s right to use such Third Party Components as
172
- part of, or in connection with, the Software is subject to any applicable
173
- acknowledgements and license terms accompanying such Third Party Components,
174
- contained therein or related thereto. If there is a conflict between the
175
- licensing terms of such Third Party Components and these Terms, the licensing
176
- terms of the Third Party Components shall prevail only in connection with the
177
- related Third Party Components. These Terms do not apply to any Third Party
178
- Components accompanying or contained in the Software and VCL disclaims all
179
- liability related thereto. User acknowledge that VCL is not the author, owner
180
- or licensor of any Third Party Components, and that VCL makes no warranties or
181
- representations, express or implied, as to the quality, capabilities,
182
- operations, performance or suitability of Third Party Components.
183
-
184
- 6. USAGE DATA. User acknowledges and agrees that VCL may from time to time use
185
- and process data about User’s use of the Software for the purposes of creating
186
- statistics and analytics data. VCL may use such data for its own internal
187
- purposes, including to maintain and improve the Software and to monitor its
188
- activities and performance. User acknowledges that certain features of the
189
- Software are configured to collect and report telemetry data to VCL.
190
-
191
- 7. TERM AND TERMINATION. User will have the rights set forth herein for the
192
- duration of the period commencing upon User accessing the Software and shall
193
- continue for a period of six (6) months thereafter (the “Initial Term”). Upon
194
- the lapse of the Initial Term, these Terms shall automatically renew for
195
- subsequent periods of six (6) months (each, a “Renewal Term”, and collectively
196
- with the Initial Term – the “Term”). During the Renewal Term, VCL may terminate
197
- these Terms at any time by providing the User at least thirty (30) days prior
198
- written notice. These Terms and all rights and licenses granted hereunder shall
199
- automatically terminate if you breach the terms hereof and such breach is not
200
- cured within fourteen (14) days of written notice of such breach. Sections 2.1-
201
- 2.3, 3, 4, 5, 7, 8 and 9 will survive any termination or expiration of these
202
- Terms.
203
-
204
- 8. SUSPENTION, RETURN OR DESTRUCTION OF SOFTWARE AND DOCUMENTATION UPON
205
- TERMINATION OF SUBSCRIPTION. Upon termination or expiration of these Terms:
206
- User must within thirty (30) days thereafter cease using the Software and
207
- promptly return to VCL or permanently destroy, the Software, Documentation,
208
- Confidential Information of VCL and any copies thereof (in all forms, partial
209
- and complete, in and on all types of media and computer memory, and whether or
210
- not modified or merged into other materials) and certify in writing the same.
211
- VCL reserves the rights to suspend unilaterally and without notice the use of
212
- the Software, upon termination or expiration or upon any breach by User of
213
- these Terms or otherwise any event of harmful use or misuse by or on behalf of
214
- User of the Software.
215
-
216
- 9. GENERAL
217
-
218
- 9.1 Severability. In the event any provision or part of these Terms are held
219
- to be invalid or unenforceable by any court of competent jurisdiction, it shall
220
- be amended to the extent required to render it valid, legal and enforceable, or
221
- deleted if no such amendment is feasible, and such amendment or deletion shall
222
- not affect the enforceability of the other provisions hereof.
223
-
224
- 9.2 Waiver. No waiver of any breach of these Terms will be a waiver of any
225
- other breach, and no waiver will be effective unless made in writing and signed
226
- by an authorized representative of VCL. The failure of VCL to enforce any
227
- rights granted hereunder or to take action against the User in the event of any
228
- breach hereunder shall not be deemed a waiver by VCL as to subsequent
229
- enforcement of rights or subsequent actions in the event of future breaches.
230
-
231
- 9.3 Governing Law. The validity, interpretation, and performance of these
232
- Terms shall be controlled by and construed under the laws of the State of New
233
- York as if performed wholly within New York and without giving effect to the
234
- principles of conflicts of laws. The User hereby consents to the exclusive
235
- jurisdiction of the courts located in New York, NY to settle any dispute or
236
- claim that arises out of or in connection with these Terms or its subject
237
- matter. The User specifically excludes application of the United Nations
238
- Convention on Contracts for the International Sale of Goods to these Terms.
239
-
240
- 9.4 Entire Terms. These Terms supersede all previous agreements or
241
- representations, written or oral, with respect to the subject matter hereof
242
- between User and VCL. VCL has sole discretion to amend or publish revised
243
- and/or new versions of these Terms from time to time and will either provide
244
- generally available notice, or otherwise notify User directly of such changes
245
- or modifications. Changes to these Terms shall become effective as of seven (7)
246
- days after such notification. The continued use of any part of the Software by
247
- User will constitute its binding acceptance of such applicable changes to these
248
- Terms.
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1 @@
1
+ Copyright 2023 Velocity Team Authors
@@ -1,4 +1,4 @@
1
- const Web3 = require('web3');
1
+ const ethers = require('ethers');
2
2
  const Migrations = require('./build/contracts/Migrations.json');
3
3
  const truffleConfig = require('./truffle-config');
4
4
 
@@ -11,17 +11,17 @@ console.log(`ENV: ${env} Network Id: ${networkId}`);
11
11
 
12
12
  const config = {
13
13
  contractAddress: Migrations.networks[networkId].address,
14
- provider: truffleConfig.networks[env].provider,
14
+ rpcUrl: truffleConfig.networks[env].rpcUrl,
15
15
  gas: truffleConfig.networks[env].gas,
16
16
  gasPrice: truffleConfig.networks[env].gasPrice,
17
17
  };
18
18
 
19
19
  const main = async () => {
20
- const web3 = new Web3(config.provider);
21
-
22
- const instance = new web3.eth.Contract(
20
+ const provider = new ethers.JsonRpcProvider(config.rpcUrl);
21
+ const instance = new ethers.Contract(
22
+ config.contractAddress,
23
23
  Migrations.abi,
24
- config.contractAddress
24
+ provider
25
25
  );
26
26
 
27
27
  if (cmd === 'set') {
@@ -32,10 +32,8 @@ const main = async () => {
32
32
  });
33
33
  }
34
34
 
35
- const lastCompletedMigration = await instance.methods
36
- .lastCompletedMigration()
37
- .call();
38
- console.log('last_completed_migration:', lastCompletedMigration);
35
+ const lastCompletedMigration = await instance.last_completed_migration();
36
+ console.log(`last_completed_migration: ${lastCompletedMigration}`);
39
37
  };
40
38
 
41
39
  main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/revocation-list-contract",
3
- "version": "1.25.0-dev-build.14cb545cb",
3
+ "version": "1.25.0-dev-build.168a64a93",
4
4
  "description": "",
5
5
  "main": "truffle-config.js",
6
6
  "directories": {
@@ -20,21 +20,18 @@
20
20
  "publishConfig": {
21
21
  "access": "public"
22
22
  },
23
- "dependencies": {
23
+ "devDependencies": {
24
24
  "@openzeppelin/contracts": "4.9.6",
25
25
  "@openzeppelin/contracts-upgradeable": "4.9.6",
26
26
  "@openzeppelin/truffle-upgrades": "^1.11.0",
27
27
  "@truffle/hdwallet-provider": "^1.7.0",
28
- "@velocitycareerlabs/blockchain-functions": "1.25.0-dev-build.14cb545cb",
29
- "@velocitycareerlabs/permissions-contract": "1.25.0-dev-build.14cb545cb",
30
- "@velocitycareerlabs/signature-verification-library": "1.25.0-dev-build.14cb545cb",
31
- "truffle-flattener": "1.5.0",
32
- "web3": "^1.3.6"
33
- },
34
- "devDependencies": {
28
+ "@velocitycareerlabs/blockchain-functions": "1.25.0-dev-build.168a64a93",
29
+ "@velocitycareerlabs/permissions-contract": "1.25.0-dev-build.168a64a93",
30
+ "@velocitycareerlabs/signature-verification-library": "1.25.0-dev-build.168a64a93",
35
31
  "ethers": "6.13.5",
36
32
  "ganache": "7.9.2",
37
- "truffle": "5.11.5"
33
+ "truffle": "5.11.5",
34
+ "truffle-flattener": "1.5.0"
38
35
  },
39
- "gitHead": "c6be3bc4aecb8a438ed9668371785f47c5b1f553"
36
+ "gitHead": "9a8b6b5ba70a52f1454dcd28d9fe3af8083c5558"
40
37
  }
package/truffle-config.js CHANGED
@@ -1,18 +1,18 @@
1
- const PrivateKeyProvider = require('@truffle/hdwallet-provider');
2
- const Web3HttpProvider = require('web3-providers-http');
1
+ const HDWalletProvider = require('@truffle/hdwallet-provider');
3
2
 
4
- const options = {
5
- timeout: 120000,
3
+ const privateKey = '';
4
+ const rpcUrl = '';
5
+
6
+ const networks = {
7
+ test: {
8
+ host: 'localhost',
9
+ port: 8545,
10
+ network_id: '*',
11
+ },
6
12
  };
7
13
 
8
14
  module.exports = {
9
- networks: {
10
- test: {
11
- host: 'localhost',
12
- port: 8545,
13
- network_id: '*',
14
- },
15
- },
15
+ networks,
16
16
  compilers: {
17
17
  solc: {
18
18
  version: '0.8.4', // Fetch exact version from solc-bin (default: truffle's version)