diff --git a/README.md b/README.md index de8fdfb1..b54f85f6 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This repository contains the implementation of The Innovation Game (TIG). * [TIG Whitepaper](docs/whitepaper.pdf) * [TIG Tech Explainer](docs/tech/1_basics.md) -* [TIG Licensing Explainer](docs/licenses/anatomy.md) +* [TIG Licensing Explainer](docs/guides/anatomy.md) * [Getting Started with Innovating](docs/guides/innovating.md) * [Challenge Descriptions](docs/challenges/satisfiability.md) @@ -25,4 +25,4 @@ This repository contains the implementation of The Innovation Game (TIG). ## License -Placeholder \ No newline at end of file +See README for individual folders \ No newline at end of file diff --git a/docs/agreements/cookie_notice.pdf b/docs/agreements/cookie_notice.pdf new file mode 100644 index 00000000..ca4d2feb Binary files /dev/null and b/docs/agreements/cookie_notice.pdf differ diff --git a/docs/agreements/download_agreement.pdf b/docs/agreements/download_agreement.pdf new file mode 100644 index 00000000..9449279f Binary files /dev/null and b/docs/agreements/download_agreement.pdf differ diff --git a/docs/agreements/end_user_license_agreement.pdf b/docs/agreements/end_user_license_agreement.pdf new file mode 100644 index 00000000..1e9b5a24 Binary files /dev/null and b/docs/agreements/end_user_license_agreement.pdf differ diff --git a/docs/agreements/game_rules.pdf b/docs/agreements/game_rules.pdf new file mode 100644 index 00000000..0361b544 Binary files /dev/null and b/docs/agreements/game_rules.pdf differ diff --git a/docs/agreements/game_terms.pdf b/docs/agreements/game_terms.pdf new file mode 100644 index 00000000..e4800f91 Binary files /dev/null and b/docs/agreements/game_terms.pdf differ diff --git a/docs/agreements/ip_policy.pdf b/docs/agreements/ip_policy.pdf new file mode 100644 index 00000000..01e28858 Binary files /dev/null and b/docs/agreements/ip_policy.pdf differ diff --git a/docs/licenses/anatomy.md b/docs/guides/anatomy.md similarity index 100% rename from docs/licenses/anatomy.md rename to docs/guides/anatomy.md diff --git a/docs/guides/innovating.md b/docs/guides/innovating.md index 3abc03d5..e7d37285 100644 --- a/docs/guides/innovating.md +++ b/docs/guides/innovating.md @@ -35,9 +35,13 @@ Every algorithm has its own `` with name `/.rs` -2. Wasm blob @ `tig-algorithms/wasm/.wasm` +Each algorithm branch will have 6 key files: +1. Rust code with TIG commercial license header @ `tig-algorithms/src//commercial.rs` +2. Rust code with TIG open data license header @ `tig-algorithms/src//open_data.rs` +3. Rust code with TIG benchmarker outbound license header @ `tig-algorithms/src//benchmarker_outbound.rs` +4. Rust code with TIG innovator outbound license header @ `tig-algorithms/src//innovator_outbound.rs` +5. Rust code with TIG inbound license header @ `tig-algorithms/src//inbound.rs` +6. Wasm blob @ `tig-algorithms/wasm/.wasm` To pull an existing algorithm from TIG public repository, run the following command: ``` @@ -48,9 +52,24 @@ git pull public ## Developing Your Algorithm 1. Pick a challenge (``) to develop an algorithm for -2. Make a copy of an existing algorithm's rust code or `tig-algorithms//template.rs` -3. Rename the file with your own `` -4. Edit `tig-algorithms//mod.rs` to export your algorithm and test it: +2. Make a copy of `tig-algorithms//template.rs` or an existing algorithm (see notes) +3. Make sure your file has the following notice in its header if you intend to submit it to TIG: +``` +Copyright [yyyy] [name of copyright owner] + +Licensed under the TIG Inbound Game License v1.0 or (at your option) any later +version (the "License"); you may not use this file except in compliance with the +License. You may obtain a copy of the License at + +https://github.com/tig-foundation/tig-monorepo/tree/main/docs/licenses + +Unless required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +CONDITIONS OF ANY KIND, either express or implied. See the License for the specific +language governing permissions and limitations under the License. +``` +4. Rename the file with your own `` +5. Edit `tig-algorithms//mod.rs` to export your algorithm and test it: ``` pub mod ; @@ -82,12 +101,13 @@ git pull public } } ``` -5. Check that your algorithm compiles & runs: +6. Check that your algorithm compiles & runs: ``` cargo test -p tig-algorithms ``` Notes: +* If you are copying and modifying an algorithm that has been submitted to TIG, make sure to use the `innovator_outbound` version * Do not include tests in your algorithm file. TIG will reject your algorithm submission. * Only your algorithm's rust code gets submitted. You should not be adding dependencies to `tig-algorithms` as they will not be available when TIG compiles your algorithm diff --git a/docs/licenses/benchmarker_outbound_game_license b/docs/licenses/benchmarker_outbound_game_license deleted file mode 100644 index b0257776..00000000 --- a/docs/licenses/benchmarker_outbound_game_license +++ /dev/null @@ -1,123 +0,0 @@ -TIG Benchmarker Outbound Game License -Version 1.0, January 2024 -https://www.tig.foundation - -By exercising any right granted under this Licence, You irrevocably accept -these terms and conditions. - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"Benchmarking" shall mean the use of a Work, subject to the Innovation -Game Terms and Conditions, to solve random instances of challenges -published by TIG from time to time. - -"Innovation Game Terms and Conditions" shall mean the terms and conditions -for the Innovation Game offered by TIG at the time of exercise of rights -by You under this License, a copy of which can be obtained at -https://www.tig.foundation/terms-and-conditions. - -"Licensable" shall mean having the right to grant, to the maximum extent -possible, whether at the time of the initial grant or subsequently any, -and all, of the rights conveyed by this License. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 7 of this document. - -"Licensor" shall mean the copyright owner or entity authorised by the -copyright owner to grant the license to the copyright in the Work in -accordance with Section 2 of this License. - -"Object" form shall mean any form resulting from mechanical transformation -or translation of a Source form, including but not limited to compiled -object code, generated documentation, and conversions to other media -types. - -"Patent Claims" of TIG shall mean any patent claim(s) in any TIG Patent, -including without limitation, method, process, and apparatus claims, -Licensable by TIG that would necessarily be infringed, but for the grant -of the License, by the making, using, selling, offering for sale, having -made, import, or transfer of the Work alone or by combination of the Work -with other software distributed by Licensor with the Work. - -"Source" form shall mean the preferred form for making modifications, -including but not limited to software source code, documentation source, -and configuration files. - -"TIG" shall mean The TIG Foundation, a company registered in Germany with -a registered office at Kurfurstendamm 15, 10719 Berlin, Deutschland. - -"TIG Patent" shall mean a patent, patent application, and all -continuations, continuations in part, divisions, extensions, renewals, -reissues, and re-examinations relating thereto, in any jurisdiction -throughout the world owned or controlled by TIG. - -"Work" shall mean the work of authorship, whether in Source or Object -form, made available under this License, as indicated by the copyright -notice that is included in or attached to the work [an example is provided -in the Appendix 1 below]. - -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. -2. Grant of Copyright License. Subject to the terms and conditions of this -License, Licensor hereby grants to You a worldwide, non-exclusive, no -charge, royalty-free, copyright license to use and reproduce the Work only -for the purpose of Benchmarking. - -3. Grant of Patent License. Subject to the terms and conditions of this -License, Licensor hereby grants to You a worldwide, non-exclusive, no -charge, royalty-free, license under Patent Claims of TIG to make, have -made and use the Work only for the purposes of Benchmarking. - -NO MODIFICATION OF THE WORK BY YOU IS PERMITTED UNDER THE TERMS OF THIS -LICENSE. - -NO USE OF THE WORK BY YOU IS PERMITTED EXCEPT AS EXPRESSLY LICENSED IN -SECTIONS 2 AND 3 ABOVE. - -4. Trademarks. This License does not grant permission to use the trade -names, trademarks, service marks, or product names of the Licensor, except -as required for reasonable and customary use in describing the origin of -the Work and reproducing the content of the NOTICE file. - -5. Disclaimer of Warranty. Unless required by applicable law or agreed to -in writing, Licensor provides the Work on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, -including, without limitation, any warranties or conditions of TITLE, NON -INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You -are solely responsible for determining the appropriateness of using or -redistributing the Work and assume any risks associated with Your exercise -of permissions under this License. - -6. Limitation of Liability. In no event and under no legal theory, whether -in tort (including negligence), contract, or otherwise, unless required by -applicable law (such as deliberate and grossly negligent acts) or agreed -to in writing, shall TIG or Licensor be liable to You for damages, -including any direct, indirect, special, incidental, or consequential -damages of any character arising as a result of this License or out of the -use or inability to use the Work (including but not limited to damages for -loss of goodwill, work stoppage, computer failure or malfunction, or any -and all other commercial damages or losses), even if TIG or Licensor, as -the case may be, has been advised of the possibility of such damages. - -7. Termination. The rights granted under this License will terminate -automatically if You fail to comply with any of its terms. - -END OF TERMS AND CONDITIONS - -APPENDIX 1: The TIG Benchmarker Outbound Game License. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the TIG Benchmarker Outbound Game License v1.0 (the -"License"); you may not use this file except in compliance with the -License. You may obtain a copy of the License at - -https://github.com/tig-foundation/tig-monorepo/tree/main/docs/licenses - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations -under the License. \ No newline at end of file diff --git a/docs/licenses/benchmarker_outbound_license.pdf b/docs/licenses/benchmarker_outbound_license.pdf new file mode 100644 index 00000000..db84bf82 Binary files /dev/null and b/docs/licenses/benchmarker_outbound_license.pdf differ diff --git a/docs/licenses/commercial_license b/docs/licenses/commercial_license deleted file mode 100644 index 92842d8d..00000000 --- a/docs/licenses/commercial_license +++ /dev/null @@ -1,198 +0,0 @@ -TIG Commercial License -Version 1.0, January 2024 -https://www.tig.foundation - -TERMS AND CONDITIONS CONTRIBUTIONS, USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"Derivative Work" shall mean any work, whether in Source or Object form, -that is based on (or derived from) the Work and for which the editorial -revisions, annotations, elaborations, or other modifications represent, as a -whole, an original work of authorship. - -"Licensable" shall mean having the right to grant, to the maximum extent -possible, whether at the time of the initial grant or subsequently any, and -all, of the rights conveyed by this License. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorised by the -copyright owner to grant the license to the copyright in the Work in -accordance with Section 2 of this License. - -"Licensee" shall mean [Name and address of Entity] - -"Licensee Product" shall mean a product made by or for Licensee which -incorporates the Work or any Derivative Work and a processing unit on which -the Work is executed together with significant additional features and -functionality contributed by Licensee. - -"Object" form shall mean any form resulting from mechanical transformation -or translation of a Source form, including but not limited to compiled -object code, generated documentation, and conversions to other media types. -"Patent Claims" of TIG shall mean any patent claim(s), including without -limitation, method, process, and apparatus claims, in any patent Licensable -by TIG that would necessarily be infringed, but for the grant of the -License, by the making, using, selling, offering for sale, having made, -import, or transfer of a Work and any Derivative Works alone or by -combination of the Work or Derivative Work with other software provided by -TIG to Licensee. - -"Rate Card" shall mean the schedule for license fees published by TIG from -time to time. - -"Source" form shall mean the preferred form for making modifications, -including but not limited to software source code, documentation source, and -configuration files. - -"Term" shall mean the period commencing on the date of execution of the -License by Licensee and ending twelve (12) months thereafter. - -"TIG" shall mean The TIG Foundation, a limited company registered in Germany -with a registered office at Kurfurstendamm 15, 10719 Berlin, Deutschland. - -"TIG Inbound Game License" shall mean the TIG Inbound Game License v1.0 and -later versions a copy of which can be obtained at https://github.com/tig -foundation/tig-monorepo/tree/main/docs/licenses. - -"TIG Commercial Licensee" shall mean an entity that has a subsisting TIG -Commercial License. An entity shall only be a TIG Commercial Licensee for as -long as the TIG Commercial License subsists. - -"TIG Commercial License" shall mean the TIG Commercial License v1.0 and -later versions a copy of which can be obtained at https://github.com/tig -foundation/tig-monorepo/tree/main/docs/licenses. - -"TIG Open Data License" shall mean the TIG Open Data License v1.0 and later -versions a copy of which can be obtained at https://github.com/tig -foundation/tig-monorepo/tree/main/docs/licenses. - -"Work" shall mean the work of authorship, whether in Source or Object form, -made available under this License. - -2. Grant of Copyright License. Subject to payment of the relevant fee -determined in accordance with the Rate Card, and the terms and conditions of -this License, Licensor hereby grants to Licensee for the Term, a revocable, -worldwide, non-exclusive, royalty-free, copyright license: -Internal Use - -(i) To use, reproduce and modify the Work to prepare Derivative Works; - -(ii) To use the Work and Derivative Works for processing Licensee’s own data -for any purpose; -Distribution to TIG - -(iii) To distribute the Work and Derivative Works, in Source or Object form, -to TIG under the terms of the TIG Inbound Game License; -Distribution to Third Parties - -(iv) To distribute the Work and Derivative Works, in Source or Object form, -to any third party under the TIG Open Data License; -Distribution in Product - -(v) To distribute the Work and Derivative Works, in Object form only, under -Licensee’s own license terms solely for execution on a Licensee Product; -Distribution to TIG Commercial Licensees - -(vi) To distribute the Work and Derivative Works, in Source or Object form, -to a third party that is subsisting TIG Commercial Licensee for the term of -that subsisting license and subject to the terms of that TIG Commercial -License; and - -Provision of SAAS -(vii) To use the Work and Derivative Works for processing third party data -provided to Licensee by any TIG Commercial Licensee interacting with -Licensee remotely through a computer network. - -3. Grant of Patent License. Subject to payment of the relevant fee -determined in accordance with the Rate Card and the terms and conditions of -this License, TIG hereby grants to Licensee for the Term, a revocable, -worldwide, non-exclusive, license under the Patent Claims of TIG: -Internal Use - -(i) To use, reproduce and modify the Work to prepare Derivative Works; - -(ii) To use the Work and Derivative Works for processing Licensee’s own data -for any purpose; - -Distribution to TIG - -(iii) To distribute the Work and Derivative Works in Source or Object form -to TIG under the terms of the TIG Inbound Game License; - -Distribution to Third Parties - -(iv) To distribute the Work and Derivative Works, in Source or Object form, -to any third party under the TIG Open Data License; -Distribution in Product - -(v) To distribute the Work and Derivative Works, in Object form only, under -Licensee’s own license terms solely for execution on a Licensee Product; -Distribution to TIG Commercial Licensees - -(vi) To distribute the Work and Derivative Works, in Source or Object form, -to a third party that is a subsisting TIG Commercial Licensee for the term -of that subsisting license and subject to the terms of that TIG Commercial -License; and - -Provision of SAAS - -(vii) To use the Work and Derivative Works for processing third party data -provided to Licensee by any TIG Commercial Licensee interacting with -Licensee remotely through a computer network. - -4. Patent Non-Assert. If Licensee institutes patent litigation against any -entity (except by way of counterclaim in a lawsuit brought against Licensee -by the relevant entity) alleging that use of the Work by that entity under -and in accordance with the terms of the TIG Open Data License constitutes -direct or contributory patent infringement, then any patent licenses granted -to Licensee under this License for that Work shall terminate as of the date -such litigation is filed. - -5. Trademarks. This License does not grant permission to use the trade -names, trademarks, service marks, or product names of the Licensor, except -as required for reasonable and customary use in describing the origin of the -Work and reproducing the content of the NOTICE file. - -6. Disclaimer of Warranty. Unless required by applicable law or agreed to in -writing, Licensor provides the Work on an "AS IS" BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied, including, without -limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, -MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. - -7. Limitation of Liability. In no event and under no legal theory, whether -in tort (including negligence), contract, or otherwise, unless required by -applicable law (such as deliberate and grossly negligent acts) or agreed to -in writing, shall TIG or Licensor be liable to Licensee for damages, -including any direct, indirect, special, incidental, or consequential -damages of any character arising as a result of this License or out of the -use or inability to use the Work (including but not limited to damages for -loss of goodwill, work stoppage, computer failure or malfunction, or any and -all other commercial damages or losses), even if TIG or Licensor, as the -case may be, has been advised of the possibility of such damages. - -8. Assignment. Licensee may not assign or otherwise transfer this License -and its rights and obligations hereunder, in whole or in part, by operation -of law or otherwise, without the written consent of TIG. In the case of any -permitted assignment or transfer of or under this License, this Licensee or -the relevant provisions shall be binding upon, and inure to the benefit of, -the successors, executors, heirs, representatives, administrators and -assigns of the parties hereto. - -9. Term and Termination. Except as provided below, this License shall -continue in force for the Term unless terminated earlier in accordance with -the provisions of this Section 8. Without prejudice to any other rights, TIG -may terminate this License at any time if Licensee fails to comply with any -of the terms of the License. Upon termination of this License, the license -granted hereunder will terminate and Licensee must stop all use of the Work -and Licensee must delete all copies of Work. - -END OF TERMS AND CONDITIONS - - -Executed by TIG - - -Executed by Licensee \ No newline at end of file diff --git a/docs/licenses/commercial_license.pdf b/docs/licenses/commercial_license.pdf new file mode 100644 index 00000000..a4ad93d2 Binary files /dev/null and b/docs/licenses/commercial_license.pdf differ diff --git a/docs/licenses/inbound_game_license b/docs/licenses/inbound_game_license deleted file mode 100644 index e339fa6f..00000000 --- a/docs/licenses/inbound_game_license +++ /dev/null @@ -1,202 +0,0 @@ -TIG Inbound Game License -Version 1.0, January 2024 -https://www.tig.foundation - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"Licensable" means having the right to grant, to the maximum extent -possible, whether at the time of the initial grant or subsequently any, -and all, of the rights conveyed by this License. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or, person or entity authorised -by the copyright owner to grant the license to the copyright in the Work -in accordance with Section 2 of this License. - -"Object" form shall mean any form resulting from mechanical transformation -or translation of a Source form, including but not limited to compiled -object code, generated documentation, and conversions to other media -types. - -"Patent Claims" of a Submitter means any patent claim(s), including -without limitation, method, process, and apparatus claims, in any patent -Licensable by such Submitter that would necessarily be infringed, but for -the grant of the License, by the making, using, selling, offering for -sale, having made, import, or transfer of the Work alone or by combination -of the Work with other software submitted to TIG by Submitter with the -Work. - -"Permissive License" shall mean any license agreement which is compatible -with the terms of all of; (i) the TIG Game Outbound License; (ii) the TIG -Open Data License; and (iii) the TIG Commercial License. [examples include -MIT, BSD and Apache software licenses]. A license shall be compatible with -another license if code licensed under the original license can be merged -with code licensed under the new license whilst still complying with the -terms of the original license. - -"Source" form shall mean the preferred form for making modifications, -including but not limited to software source code, documentation source, -and configuration files. - -"Submitter" shall mean the person or entity that submits the Work to TIG -in accordance with the TIG Game Rules. - -"TIG" shall mean The TIG Foundation, a company registered in -Germany with a registered office at Kurfurstendamm 15, 10719 -Berlin, Deutschland. - -"TIG Game Round" means the number of blocks specified for each round of -the innovation game as specified in the TIG Game Rules. - -"TIG Game Rules" shall mean the rules published from time to time at -https://www.tig.foundation/game-rules. - -"TIG Innovator Outbound Game License" shall mean the TIG Innovator -Outbound Game License v1.0 and later versions copies of which can be -obtained at https://github.com/tig-foundation/tig -monorepo/tree/main/docs/licenses. - -"TIG Benchmarker Outbound Game License" shall mean the TIG Benchmarker -Outbound Game License v1.0 and later versions copies of which can be -obtained at https://github.com/tig-foundation/tig -monorepo/tree/main/docs/licenses. - -"TIG Open Data License" shall mean the TIG Open Data License v1.0 and -later versions copies of which can be obtained at https://github.com/tig -foundation/tig-monorepo/tree/main/docs/licenses. - -"TIG Commercial License" shall mean the TIG Commercial License v1.0 and -later versions copies of which can be obtained at https://github.com/tig -foundation/tig-monorepo/tree/main/docs/licenses. - -"Work" shall mean the work of authorship, whether in Source or Object -form, made available under the License, as indicated by a copyright notice -that is included in or attached to the work [an example is provided in the -Appendix 1 below]. - -2. Grant of Copyright License. Subject to the terms and conditions of this -License, Licensor hereby grants to TIG a perpetual, worldwide, non -exclusive, no charge, royalty-free, irrevocable copyright license to -reproduce, sublicense, and distribute the Work in Source or Object form -under the terms of any, or all of; (i) the TIG Innovator Outbound Game -License; (ii) the TIG Benchmarker Outbound Game License; (iii) the TIG -Open Data License; and (iv) the TIG Commercial License. - -3. Grant of Patent License. Subject to the terms and conditions of this -License, Submitter hereby grants to TIG a perpetual, worldwide, non -exclusive, no-charge, royalty-free, irrevocable patent license to make, -have made, use, offer to sell, sell, import, and otherwise transfer the -Work in Source or Object form. - -4. Submitter Representations. Submitter represents that Submitter is -legally entitled to grant the above licenses. - -Submitter represents that any code which is submitted to TIG which is a -work of authorship in which the copyright is owned by Submitter, will be -submitted to TIG under the terms of this License. - -Submitter represents that any code which is submitted with the Work to TIG -which is not a work of authorship in which the copyright is owned by -Submitter, and which is submitted under a separate license from this -License, will be under the terms of a Permissive License only. - -Submitter represents that any code which is incorporated into the Work -which is not a work of authorship in which the copyright is owned by -Submitter, and which is submitted to TIG under this License was licensed -to Submitter under the terms of a Permissive License which permits -relicensing under the terms of this License. - -5. Submitter Licensing Undertaking. At the same time, that Submitter -submits a Work to TIG under the License, Submitter shall also submit that -Work to TIG under the terms of the TIG Open Data License [See Appendix 2 -below for how to apply the TIG Open Data License to your work]. - -6. TIG Licensing Undertaking. In consideration of the submission of the -Work to TIG under this License by Submitter, TIG shall publish and make -each Work submitted to TIG by a Submitter available under the TIG -Innovator Outbound Game License and the TIG Benchmarker Outbound Game -License at the start of, but no sooner than, the Game Round after the next -two (2) complete Game Rounds following the Game Round in which the Work -was submitted by Submitter to TIG. At the same time as TIG publishes and -makes the Work available under the TIG Innovator Outbound Game License and -the TIG Benchmarker Outbound Game License, TIG shall also publish and make -the Work available under the terms of the TIG Open Data License and the -TIG Commercial License. - -7. Trademarks. This License does not grant permission to use the trade -names, trademarks, service marks, or product names of the Licensor, except -as required for reasonable and customary use in describing the origin of -the Work and reproducing the content of the NOTICE file. - -8. Disclaimer of Warranty. Unless required by applicable law or agreed to -in writing, Licensor provides the Work (and each Contributor provides its -Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF -ANY KIND, either express or implied, including, without limitation, any -warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or -FITNESS FOR A PARTICULAR PURPOSE. - -9. Limitation of Liability. In no event and under no legal theory, whether -in tort (including negligence), contract, or otherwise, unless required by -applicable law (such as deliberate and grossly negligent acts) or agreed -to in writing, shall Licensor or Submitter be liable to Licensee for -damages, including any direct, indirect, special, incidental, or -consequential damages of any character arising as a result of this License -or out of the use or inability to use the Work (including but not limited -to damages for loss of goodwill, work stoppage, computer failure or -malfunction, or any and all other commercial damages or losses), even if -Licensee or Submitter, as the case may be, has been advised of the -possibility of such damages. - -END OF TERMS AND CONDITIONS - -APPENDIX 1: How to apply the TIG Inbound Game License to your work. - -To apply the TIG Inbound Game License to your work, attach the following -boilerplate notice, with the fields enclosed by brackets "[]"replaced with -your own identifying information. (Don't include the brackets!) The text -should be enclosed in the appropriate comment syntax for the file format. -We also recommend that a file or class name and description of purpose be -included on the same "printed page" as the copyright notice for easier -identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the TIG Inbound Game License v1.0 or (at your option) any -later version (the "License"); you may not use this file except in -compliance with the License. You may obtain a copy of the License at - -https://github.com/tig-foundation/tig-monorepo/tree/main/docs/licenses - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations -under the License. - -APPENDIX 2: How to apply the TIG Open Data License to your work. - -To apply the TIG Open Data License to your work, attach the following -boilerplate notice, with the fields enclosed by brackets "[]"replaced with -your own identifying information. (Don't include the brackets!) The text -should be enclosed in the appropriate comment syntax for the file format. -We also recommend that a file or class name and description of purpose be -included on the same "printed page" as the copyright notice for easier -identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the TIG Open Data License v1.0 or (at your option) any -later version (the "License"); you may not use this file except in -compliance with the License. You may obtain a copy of the License at - -https://github.com/tig-foundation/tig-monorepo/tree/main/docs/licenses - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations -under the License. \ No newline at end of file diff --git a/docs/licenses/inbound_license.pdf b/docs/licenses/inbound_license.pdf new file mode 100644 index 00000000..8ba6dd80 Binary files /dev/null and b/docs/licenses/inbound_license.pdf differ diff --git a/docs/licenses/innovator_outbound_game_license b/docs/licenses/innovator_outbound_game_license deleted file mode 100644 index 1f40de9e..00000000 --- a/docs/licenses/innovator_outbound_game_license +++ /dev/null @@ -1,186 +0,0 @@ -TIG Innovator Outbound Game License -Version 1.0, January 2024 -https://www.tig.foundation - -By exercising any right granted under this Licence, You irrevocably accept -these terms and conditions. - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"Derivative Work" shall mean any work, whether in Source or Object form, -that is based on (or derived from) the Work and for which the editorial -revisions, annotations, elaborations, or other modifications represent, as -a whole, an original work of authorship. - -"Licensable" shall mean having the right to grant, to the maximum extent -possible, whether at the time of the initial grant or subsequently any, -and all, of the rights conveyed by this License. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 7 of this document. - -"Licensor" shall mean the copyright owner or entity authorised by the -copyright owner to grant the license to the copyright in the Work in -accordance with Section 2 of this License. - -"Object" form shall mean any form resulting from mechanical transformation -or translation of a Source form, including but not limited to compiled -object code, generated documentation, and conversions to other media -types. - -"Patent Claims" of TIG shall mean any patent claim(s) in any TIG Patent, -including without limitation, method, process, and apparatus claims, -Licensable by TIG that would necessarily be infringed, but for the grant -of the License, by the making, using, selling, offering for sale, having -made, import, or transfer of the Work alone or by combination of the Work -with other software distributed by TIG with the Work. - -"Source" form shall mean the preferred form for making modifications, -including but not limited to software source code, documentation source, -and configuration files. - -"TIG" shall mean The TIG Foundation, a company registered in Germany with -a registered office at Kurfurstendamm 15, 10719 Berlin, Deutschland. - -"TIG Patent" shall mean a patent, patent application, and all -continuations, continuations in part, divisions, extensions, renewals, -reissues, and re-examinations relating thereto, in any jurisdiction -throughout the world owned or controlled by TIG. - -"TIG Inbound Game License" shall mean the TIG Inbound Game License offered -by TIG at the time of exercise of rights by You under this License, a copy -of which can be obtained at https://github.com/tig-foundation/tig -monorepo/tree/main/docs/licenses. - -"TIG Open Data License" shall mean the TIG Open Data License v1.0 and -later versions copies of which can be obtained at https://github.com/tig -foundation/tig-monorepo/tree/main/docs/licenses. - -"Work" shall mean the work of authorship, whether in Source or Object -form, made available under the License, as indicated by the copyright -notice that is included in or attached to the work [an example is provided -in the Appendix 1 below]. - -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. - -2. Grant of Copyright License. Subject to the terms and conditions of this -License, Licensor hereby grants to You a worldwide, non-exclusive, no -charge, royalty-free, copyright license; (i) to use, reproduce and modify -the Work only for the purposes of preparing Derivative Works for -sublicensing, and distribution in accordance with 2(ii) of this license; -and (ii) to sublicense and distribute the Work and Derivative Works in -Source or Object form only under and subject to the terms of each of; (a) -the TIG Inbound Game License [See Appendix 2 below for how to apply the -TIG Inbound Game License to your work]; and (b) the TIG Open Data License -[See Appendix 3 below for how to apply the TIG Open Data License to your -work]. - -3. Grant of Patent License. Subject to the terms and conditions of this -License, Licensor hereby grants to You a worldwide, non-exclusive, no -charge, royalty-free, license under Patent Claims of TIG; (i) to make, -have made and use and modify the Work only for the purposes of preparing -Derivative Works to offer to sell, sell, import, and otherwise transfer in -accordance with 2(ii) of this license; and (ii) to offer to sell, sell, -import, and otherwise transfer the Work and such Derivative Works in -Source or Object form only under and subject to the terms of each of; (a) -the TIG Inbound Game License; and (b) the TIG Open Data License. - -NO USE OF THE WORK OR ANY DERIVATIVE WORKS BY YOU IS PERMITTED EXCEPT AS -EXPRESSLY LICENSED IN SECTIONS 2 AND 3 ABOVE. - -4. Trademarks. This License does not grant permission to use the trade -names, trademarks, service marks, or product names of the Licensor, except -as required for reasonable and customary use in describing the origin of -the Work and reproducing the content of the NOTICE file. - -5. Disclaimer of Warranty. Unless required by applicable law or agreed to -in writing, Licensor provides the Work on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, -including, without limitation, any warranties or conditions of TITLE, NON -INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You -are solely responsible for determining the appropriateness of using or -redistributing the Work and assume any risks associated with Your exercise -of permissions under this License. - -6. Limitation of Liability. In no event and under no legal theory, whether -in tort (including negligence), contract, or otherwise, unless required by -applicable law (such as deliberate and grossly negligent acts) or agreed -to in writing, shall TIG or Licensor be liable to You for damages, -including any direct, indirect, special, incidental, or consequential -damages of any character arising as a result of this License or out of the -use or inability to use the Work (including but not limited to damages for -loss of goodwill, work stoppage, computer failure or malfunction, or any -and all other commercial damages or losses), even if TIG or Licensor, as -the case may be, has been advised of the possibility of such damages. - -7. Termination. The rights granted under this License will terminate -automatically if You fail to comply with any of its terms. - -END OF TERMS AND CONDITIONS - -APPENDIX 1: The TIG Innovator Outbound Game License. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the TIG Innovator Outbound Game License v1.0 (the -"License"); you may not use this file except in compliance with the -License. You may obtain a copy of the License at - -https://github.com/tig-foundation/tig-monorepo/tree/main/docs/licenses - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations -under the License. - -APPENDIX 2: How to apply the TIG Inbound Game License to your work. - -To apply the TIG Inbound Game License to your work, attach the following -boilerplate notice, with the fields enclosed by brackets "[]"replaced with -your own identifying information. (Don't include the brackets!) The text -should be enclosed in the appropriate comment syntax for the file format. -We also recommend that a file or class name and description of purpose be -included on the same "printed page" as the copyright notice for easier -identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the TIG Inbound Game License v1.0 or (at your option) any -later version (the "License"); you may not use this file except in -compliance with the License. You may obtain a copy of the License at - -https://github.com/tig-foundation/tig-monorepo/tree/main/docs/licenses - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations -under the License. - -APPENDIX 3: How to apply the TIG Open Data License to your work. - -To apply the TIG Open Data License to your work, attach the following -boilerplate notice, with the fields enclosed by brackets "[]"replaced with -your own identifying information. (Don't include the brackets!) The text -should be enclosed in the appropriate comment syntax for the file format. -We also recommend that a file or class name and description of purpose be -included on the same "printed page" as the copyright notice for easier -identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the TIG Open Data License v1.0 or (at your option) any -later version (the "License"); you may not use this file except in -compliance with the License. You may obtain a copy of the License at - -https://github.com/tig-foundation/tig-monorepo/tree/main/docs/licenses - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations -under the License. \ No newline at end of file diff --git a/docs/licenses/innovator_outbound_license.pdf b/docs/licenses/innovator_outbound_license.pdf new file mode 100644 index 00000000..51d8b994 Binary files /dev/null and b/docs/licenses/innovator_outbound_license.pdf differ diff --git a/docs/licenses/open_data_license b/docs/licenses/open_data_license deleted file mode 100644 index 4084f55d..00000000 --- a/docs/licenses/open_data_license +++ /dev/null @@ -1,286 +0,0 @@ -TIG Open Data License -Version 1.3, May 2024 -https://www.tig.foundation - -By exercising any right granted under this Licence, You irrevocably accept -these terms and conditions. - -1. Definitions - -1.1. "Anonymised Version" means a version of a data set that does not -retain any personally identifiable information ("PII"). - -1.2. "Contributor" means each individual or legal entity that creates, -contributes to the creation of, or owns Covered Software. - -1.3. "Contributor Version" means the combination of the Contributions of -others (if any) used by a Contributor and that, particular -Contributor’s Contribution. - -1.4. "Contribution" means Covered Software of a particular Contributor. - -1.5. "Covered Software" means Source Code Form to which the initial -Contributor has attached the notice in Exhibit A, the Executable -Form of such Source Code Form, and Modifications of such Source -Code Form, in each case including portions thereof. - -1.6. "Executable Form" means any form of the work other than Source Code -Form. - -1.7. "Larger Work" means a work that combines Covered Software with other -material, in a separate file or files, that is not Covered Software. - -1.8. "License" means this document. - -1.9. "Licensable" means having the right to grant, to the maximum extent -possible, whether at the time of the initial grant or subsequently -any, and all, of the rights conveyed by this License. - -1.10. "Modifications" means any of the following: - -a. any file in Source Code Form that results from an addition -to, deletion from, or modification of the contents of Covered -Software; or - -b. any new file in Source Code Form that contains any Covered -Software. - -1.11. "Output Data" means the data output from running Covered Software. - -1.12. "Patent Claims" of a Contributor means any patent claim(s), -including without limitation, method, process, and apparatus -claims, in any patent Licensable by such Contributor that would -necessarily be infringed, but for the grant of the License, by the -making, using, selling, offering for sale, having made, import, or -transfer of either its Contributions or its Contributor Version. - -1.13. "Patent Claims" of TIG means any patent claim(s), including without -limitation, method, process, and apparatus claims, in any patent -Licensable by TIG that would necessarily be infringed, but for the -grant of the License, by the making, using, selling, offering for -sale, having made, import, or transfer of Covered Software or -Product. - -1.14. "Product" means Output Data and any service, device, component, -work or physical object, whether in finished or intermediate form, -arising from the use, application, or processing of Output Data. - -1.15. "Product Information" means with respect to a Product, the minimum -information, in the preferred form for making modifications, -regardless of its medium or how it is expressed, necessary to -reproduce and make modifications to the Product, including but not -limited to, the Covered Software, in Source Code Form, used to -generate the Product, and any necessary installation and -interfacing information for the Product. Product Information need -not include information necessary to reproduce any component, -provided that, You include sufficient information to enable a -recipient to source and use the component to be able to reproduce -the Product. Where the information includes PII which would at the -time of any public disclosure breach any relevant privacy -regulations then in force, the preferred form shall be an -Anonymised Version of the information. If the format of the data -is proprietary, it must also be made available in a format (if the -proprietary tool can create it) which is viewable with a tool -available to potential licensees and licensed under a licence -approved by the Free Software Foundation or the Open Source -Initiative. - -1.16. "Source Code Form" means the form of the work preferred for making -modifications to the Covered Software. - -1.17. "TIG" means The TIG Foundation, a limited company registered in -Germany with a registered office at Kurfurstendamm 15, 10719 Berlin, -Deutschland. - -1.18. "You" (or "Your") means an individual or a legal entity exercising -rights under this License. For legal entities, "You" includes any -entity that controls, is controlled by, or is under common control -with You. For purposes of this definition, "control" means (a) the -power, direct or indirect, to cause the direction or management of -such entity, whether by contract or otherwise, or (b) ownership of -more than fifty percent (50%) of the outstanding shares or -beneficial ownership of such entity. - -2. License Grants and Conditions - -2.1. Copyright Grants - -Subject to the terms of this License, each Contributor hereby grants You -a world-wide, royalty-free, non-exclusive license under intellectual -property rights (other than patent or trademark) Licensable by such -Contributor: - -(i) to reproduce and use, its Contributions, either unmodified, -with Modifications, or as part of a Larger Work; and - -(ii) to make available, modify, display, perform, distribute, and -otherwise exploit its Contributions, either unmodified, with -Modifications, or as part of a Larger Work. - -2.2. Patent Grants - -(i) Subject to the terms of this License, TIG hereby grants You -a world-wide, royalty-free, non-exclusive license under -Patent Claims of TIG to make, use, sell, offer for sale, have -made, import, and otherwise transfer the Covered Software and -Products. - -(ii) Subject to the terms of this License, each Contributor hereby -grants You a world-wide, royalty-free, non-exclusive license -under Patent Claims of such Contributor to make, use, sell, -offer for sale, have made, import, and otherwise transfer its -Contributions or its Contributor Version. - -2.3. Effective Date - -The licenses granted in Section 2.2(i) with respect to any Patent Claims -of TIG become effective on the date TIG first distributes the Covered -Work. - -The licenses granted in Sections 2.1 and 2.2(ii) with respect to any -Contribution or Contributor Version become effective for each -Contribution or Contributor Version on the date the Contributor first -distributes such Contribution or Contributor Version. - -2.4. Limitations on Grant Scope - -The licenses granted in this Section 2 are the only rights granted under -this License. No additional rights or licenses will be implied from the -distribution or licensing of Covered Software under this License. - -2.5. Representation - -Each Contributor represents that the Contributor believes its -Contributions are its original creation(s) or that it has sufficient -rights to grant the rights to its Contributions conveyed by this License. - -2.6. Fair Use - -This License is not intended to limit any rights You have under applicable -copyright doctrines of fair use, fair dealing, or other equivalents. - -2.7. Conditions - -Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in -Sections 2.1 and 2.2. - -3. Responsibilities - -3.1. Distribution of Source Form - -Share Alike: All distribution of Covered Software in Source Code Form, -including any Modifications that You create or to which You contribute, -must be under the terms of this License. You must inform recipients that -the Source Code Form of the Covered Software is governed by the terms of -this License, and how they can obtain a copy of this License. - -3.2. Distribution of Executable Form - -Availability of Source Code Form: If You distribute Covered Software in -Executable Form then such Covered Software must also be made available in -Source Code Form, subject to Section 3.1 above, and You must inform -recipients of the Executable Form how they can obtain a copy of such -Source Code Form by reasonable means in a timely manner, at a charge no -more than the cost of distribution to the recipient. - -3.3. Distribution of a Larger Work - -You may create and distribute a Larger Work under terms of Your choice, -provided that, You, also comply with the requirements of this License for -the Covered Software. - -3.4. Provision of Product - -If You provide (whether by way of service, distribution or otherwise) -Product the corresponding Product Information must also be made generally -available, and You must publicly state how a third party can obtain a -copy of such Product Information by reasonable means in a timely manner, -at a charge no more than the cost of distribution to the recipient. - -3.5. Notices - -You may not remove or alter the substance of any license notices -(including copyright notices, patent notices, disclaimers of warranty, or -limitations of liability) contained within the Source Code Form of the -Covered Software, except that You may alter any license notices to the -extent required to remedy known factual inaccuracies. - -4. Inability to Comply Due to Statute or Regulation - -If it is impossible for You to comply with any of the terms of this -License with respect to some or all of, the Covered Software or Product -Information due to statute, judicial order, or regulation then You must: -(a) comply with the terms of this License to the maximum extent possible; -and (b) describe the limitations and the code or information they affect. -Such description must be placed in a text file included with all -distributions of the Covered Software under this License and any relevant -Product Information. Except to the extent prohibited by statute or -regulation, such description must be sufficiently detailed for a recipient -of ordinary skill to be able to understand it. - -5. Termination - -The rights granted under this License will terminate automatically if You -fail to comply with any of its terms. However, if You become compliant, -then the rights granted under this License from TIG or a particular -Contributor are reinstated (a) provisionally, unless and until TIG or -such Contributor explicitly and finally terminates Your grants, and (b) -on an ongoing basis, if TIG or such Contributor fails to notify You of -the non-compliance by some reasonable means prior to 60 days after You -have come back into compliance. Moreover, Your grants, from TIG or a -particular Contributor, are reinstated on an ongoing basis if TIG or such -Contributor notifies You of the non-compliance by some reasonable means, -this is the first time You have received notice of non-compliance with -this License from TIG or such Contributor, and You become compliant prior -to 30 days after Your receipt of the notice. - -6. Disclaimer of Warranty - -Covered Software is provided under this License and Product Information -is provided pursuant to this License on an "as is" basis, without -warranty of any kind, either expressed, implied, or statutory, -including, without limitation, warranties that the Covered Software and -Product Information, as the case may be, is free of defects, -merchantable, fit for a particular purpose or non-infringing. The -entire risk as to the quality and performance of the Covered Software -and Product Information is with You. Should any Covered Software or -Product Information prove defective in any respect, You (not TIG or any -Contributor) assume the cost of any necessary servicing, repair, or -correction. This disclaimer of warranty constitutes an essential part -of this License. No use of Product Information, or use of any Covered -Software is authorized under this License, except under this -disclaimer. - -7. Limitation of Liability - -Under no circumstances and under no legal theory, whether tort -(including negligence), contract, or otherwise, shall TIG, any -Contributor, or anyone who distributes Covered Software as permitted -above, be liable to You for any direct, indirect, special, incidental, -or consequential damages of any character including, without -limitation, damages for lost profits, loss of goodwill, work stoppage, -computer failure or malfunction, or any and all other commercial damages -or losses, even if such party shall have been informed of the -possibility of such damages. This limitation of liability shall not -apply to liability for death or personal injury resulting from such -party’s negligence to the extent applicable law prohibits such -limitation. Some jurisdictions do not allow the exclusion or limitation -of incidental or consequential damages, so this exclusion and -limitation may not apply to You. - -8. Miscellaneous - -This License represents the complete agreement concerning the subject -matter hereof. If any provision of this License is held to be -unenforceable, such provision shall be reformed only to the extent -necessary to make it enforceable. Any law or regulation which provides -that the language of a contract shall be construed against the drafter -shall not be used to construe this License against a Contributor or -against TIG. - -Exhibit A - Source Code Form License Notice - -This Source Code Form is subject to the terms of the TIG Open Data License, -v1.0. If a copy of the TIG Open data License v1.0 was not distributed -with this file, You can obtain one at -https://github.com/tig-foundation/tig-monorepo/tree/main/docs/licenses. \ No newline at end of file diff --git a/docs/licenses/open_data_license.pdf b/docs/licenses/open_data_license.pdf new file mode 100644 index 00000000..e9f27a2e Binary files /dev/null and b/docs/licenses/open_data_license.pdf differ diff --git a/docs/licenses/terms_of_use.pdf b/docs/licenses/terms_of_use.pdf new file mode 100644 index 00000000..1b58c9c7 Binary files /dev/null and b/docs/licenses/terms_of_use.pdf differ diff --git a/tig-algorithms/README.md b/tig-algorithms/README.md index 831c7a41..d20bd6ee 100644 --- a/tig-algorithms/README.md +++ b/tig-algorithms/README.md @@ -6,6 +6,10 @@ Each submissions is committed to their own branch with the naming pattern: `\` +## Getting Started with Innovating + +See [the guide](../docs/guides/innovating.md) + ## Downloading an Algorithm WASM blobs for an algorithm are stored in the `wasm` subfolder and can be downloaded via: @@ -21,3 +25,12 @@ WASM blobs for an algorithm are stored in the `wasm` subfolder and can be downlo 5. Every block, algorithms with at least 25% adoption earn a merge point 6. At the end of a round, a the algorithm from each challenge with the most merge points, meeting the minimum threshold of 5040, gets merged to the `main` branch +# License + +Each algorithm submission will have 5 versions, each under a specific license: + +* `commercial.rs` will be under TIG commercial license +* `open_data.rs` will be under TIG open data license +* `benchmarker_outbound.rs` will be under TIG benchmarker outbound license +* `innovator_outbound.rs` will be under TIG innovator outbound license +* `inbound.rs` will be under TIG inbound license \ No newline at end of file diff --git a/tig-algorithms/src/knapsack/template.rs b/tig-algorithms/src/knapsack/template.rs index f68eb60b..fd068f9b 100644 --- a/tig-algorithms/src/knapsack/template.rs +++ b/tig-algorithms/src/knapsack/template.rs @@ -1,17 +1,17 @@ -//! -//! -//! # Authors -//! -//! -//! # Description -//! -//! -//! # References -//! -//! -//! # License -//! -//! +/*! +Copyright [yyyy] [name of copyright owner] + +Licensed under the TIG Inbound Game License v1.0 or (at your option) any later +version (the "License"); you may not use this file except in compliance with the +License. You may obtain a copy of the License at + +https://github.com/tig-foundation/tig-monorepo/tree/main/docs/licenses + +Unless required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +CONDITIONS OF ANY KIND, either express or implied. See the License for the specific +language governing permissions and limitations under the License. +*/ // TIG's UI uses the pattern `tig_challenges::` to automatically detect your algorithm's challenge use anyhow::{anyhow, Result}; diff --git a/tig-algorithms/src/satisfiability/template.rs b/tig-algorithms/src/satisfiability/template.rs index 88e4608a..a3d04e0b 100644 --- a/tig-algorithms/src/satisfiability/template.rs +++ b/tig-algorithms/src/satisfiability/template.rs @@ -1,17 +1,17 @@ -//! -//! -//! # Authors -//! -//! -//! # Description -//! -//! -//! # References -//! -//! -//! # License -//! -//! +/*! +Copyright [yyyy] [name of copyright owner] + +Licensed under the TIG Inbound Game License v1.0 or (at your option) any later +version (the "License"); you may not use this file except in compliance with the +License. You may obtain a copy of the License at + +https://github.com/tig-foundation/tig-monorepo/tree/main/docs/licenses + +Unless required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +CONDITIONS OF ANY KIND, either express or implied. See the License for the specific +language governing permissions and limitations under the License. +*/ // TIG's UI uses the pattern `tig_challenges::` to automatically detect your algorithm's challenge use anyhow::{anyhow, Result}; diff --git a/tig-algorithms/src/vehicle_routing/template.rs b/tig-algorithms/src/vehicle_routing/template.rs index 55f9d38f..1d56ef15 100644 --- a/tig-algorithms/src/vehicle_routing/template.rs +++ b/tig-algorithms/src/vehicle_routing/template.rs @@ -1,17 +1,17 @@ -//! -//! -//! # Authors -//! -//! -//! # Description -//! -//! -//! # References -//! -//! -//! # License -//! -//! +/*! +Copyright [yyyy] [name of copyright owner] + +Licensed under the TIG Inbound Game License v1.0 or (at your option) any later +version (the "License"); you may not use this file except in compliance with the +License. You may obtain a copy of the License at + +https://github.com/tig-foundation/tig-monorepo/tree/main/docs/licenses + +Unless required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +CONDITIONS OF ANY KIND, either express or implied. See the License for the specific +language governing permissions and limitations under the License. +*/ // TIG's UI uses the pattern `tig_challenges::` to automatically detect your algorithm's challenge use anyhow::{anyhow, Result}; diff --git a/tig-api/Cargo.toml b/tig-api/Cargo.toml index c842ecc9..d4f9f9d0 100644 --- a/tig-api/Cargo.toml +++ b/tig-api/Cargo.toml @@ -5,6 +5,7 @@ readme = "README.md" authors.workspace = true repository.workspace = true edition.workspace = true +license = "https://github.com/tig-foundation/tig-monorepo/tree/main/docs/agreements/end_user_license_agreement.pdf" [lib] crate-type = ["cdylib", "rlib"] diff --git a/tig-api/README.md b/tig-api/README.md index d0e0eff0..7473f5c9 100644 --- a/tig-api/README.md +++ b/tig-api/README.md @@ -19,4 +19,8 @@ Requires `x-api-key` header to be set * `submit-algorithm` * `submit-benchmark` -* `submit-proof` \ No newline at end of file +* `submit-proof` + +# License + +[End User License Agreement](../docs/agreements/end_user_license_agreement.pdf) \ No newline at end of file diff --git a/tig-benchmarker/Cargo.toml b/tig-benchmarker/Cargo.toml index 7977b857..32eb6f98 100644 --- a/tig-benchmarker/Cargo.toml +++ b/tig-benchmarker/Cargo.toml @@ -2,6 +2,7 @@ name = "tig-benchmarker" version = "0.1.0" readme = "README.md" +license = "https://github.com/tig-foundation/tig-monorepo/tree/main/docs/agreements/end_user_license_agreement.pdf" authors.workspace = true repository.workspace = true edition.workspace = true diff --git a/tig-benchmarker/README.md b/tig-benchmarker/README.md index 239a2652..01e4f593 100644 --- a/tig-benchmarker/README.md +++ b/tig-benchmarker/README.md @@ -12,4 +12,8 @@ To run it locally, run the following commands before visiting localhost in your cd tig-benchmarker wasm-pack build --release --target web python3 -m http.server 80 -``` \ No newline at end of file +``` + +# License + +[End User License Agreement](../docs/agreements/end_user_license_agreement.pdf) \ No newline at end of file diff --git a/tig-challenges/Cargo.toml b/tig-challenges/Cargo.toml index f63f7f5d..9e3aac9a 100644 --- a/tig-challenges/Cargo.toml +++ b/tig-challenges/Cargo.toml @@ -2,6 +2,7 @@ name = "tig-challenges" version = "0.1.0" readme = "README.md" +license = "https://github.com/tig-foundation/tig-monorepo/tree/main/docs/agreements/end_user_license_agreement.pdf" authors.workspace = true repository.workspace = true edition.workspace = true diff --git a/tig-challenges/README.md b/tig-challenges/README.md index 6cd6d8bd..4ddda81f 100644 --- a/tig-challenges/README.md +++ b/tig-challenges/README.md @@ -8,3 +8,7 @@ Presently, TIG features three challenges: 3. [Knapsack problem](../docs/challenges/knapsack.md) Over the coming year, an additional seven challenges from domains including artificial intelligence, biology, medicine, and climate science will be phased in. + +# License + +[End User License Agreement](../docs/agreements/end_user_license_agreement.pdf) \ No newline at end of file diff --git a/tig-protocol/Cargo.toml b/tig-protocol/Cargo.toml index 1191df41..51aee960 100644 --- a/tig-protocol/Cargo.toml +++ b/tig-protocol/Cargo.toml @@ -2,6 +2,7 @@ name = "tig-protocol" version = "0.1.0" readme = "README.md" +license = "https://github.com/tig-foundation/tig-monorepo/tree/main/docs/agreements/end_user_license_agreement.pdf" authors.workspace = true repository.workspace = true edition.workspace = true diff --git a/tig-protocol/README.md b/tig-protocol/README.md index 99c5c7ce..bc9abad6 100644 --- a/tig-protocol/README.md +++ b/tig-protocol/README.md @@ -11,4 +11,8 @@ A Rust crate that contains the implementation of TIG's core protocol logic. * distribution block rewards amongst benchmarkers and innovators * updating algorithm merge points 3. `submit_algorithm.rs`/`submit_benchmark.rs`/`submit_proof.rs` implements the logic for validating an algorithm/benchmark/proof submission before adding it to the mempool -4. `verify_proof.rs` implements the logic for validating the runtime signature of a solution \ No newline at end of file +4. `verify_proof.rs` implements the logic for validating the runtime signature of a solution + +# License + +[Download Agreement](../docs/agreements/download_agreement.pdf) \ No newline at end of file diff --git a/tig-structs/Cargo.toml b/tig-structs/Cargo.toml index 5e42224c..f0d12e07 100644 --- a/tig-structs/Cargo.toml +++ b/tig-structs/Cargo.toml @@ -2,6 +2,7 @@ name = "tig-structs" version = "0.1.0" readme = "README.md" +license = "https://github.com/tig-foundation/tig-monorepo/tree/main/docs/agreements/end_user_license_agreement.pdf" authors.workspace = true repository.workspace = true edition.workspace = true diff --git a/tig-structs/README.md b/tig-structs/README.md index ceca82fe..2da69204 100644 --- a/tig-structs/README.md +++ b/tig-structs/README.md @@ -1,3 +1,7 @@ # tig-structs -A Rust crate that contains the definitions of structs used throughout TIG. \ No newline at end of file +A Rust crate that contains the definitions of structs used throughout TIG. + +# License + +[End User License Agreement](../docs/agreements/end_user_license_agreement.pdf) \ No newline at end of file diff --git a/tig-token/README.md b/tig-token/README.md index 5273bb7a..e6f81c5b 100644 --- a/tig-token/README.md +++ b/tig-token/README.md @@ -50,3 +50,13 @@ Solidity code for TIG token ``` 5. Goto relevant etherscan site and verify contract using flattened code + +# License + +Copyright (c) 2024 TIG UG, Kurfurstendamm 15, 10719 Berlin, Deutschland + +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: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +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. \ No newline at end of file diff --git a/tig-utils/Cargo.toml b/tig-utils/Cargo.toml index ee61918c..03b580c2 100644 --- a/tig-utils/Cargo.toml +++ b/tig-utils/Cargo.toml @@ -2,6 +2,7 @@ name = "tig-utils" version = "0.1.0" readme = "README.md" +license = "https://github.com/tig-foundation/tig-monorepo/tree/main/docs/agreements/end_user_license_agreement.pdf" authors.workspace = true repository.workspace = true edition.workspace = true diff --git a/tig-utils/README.md b/tig-utils/README.md index b376b8cc..a88dd1a3 100644 --- a/tig-utils/README.md +++ b/tig-utils/README.md @@ -6,4 +6,8 @@ A Rust crate that contains utility functions used throughout TIG. * `web3` - uses `web3` crate for querying: gnosis safe (multisig) contracts, sender/receiver/amount for a transaction, and more * `request-js` - uses `web-sys` amongst other crates to implemenet `get` and `post` utility functions -* `request` - uses `reqwest` crate to implemenet `get` and `post` utility functions \ No newline at end of file +* `request` - uses `reqwest` crate to implemenet `get` and `post` utility functions + +# License + +[End User License Agreement](../docs/agreements/end_user_license_agreement.pdf) \ No newline at end of file diff --git a/tig-wasm/Cargo.toml b/tig-wasm/Cargo.toml index b6b2c0cb..3b4c21f3 100644 --- a/tig-wasm/Cargo.toml +++ b/tig-wasm/Cargo.toml @@ -2,6 +2,7 @@ name = "tig-wasm" version = "0.1.0" readme = "README.md" +license = "https://github.com/tig-foundation/tig-monorepo/tree/main/docs/agreements/end_user_license_agreement.pdf" authors.workspace = true repository.workspace = true edition.workspace = true diff --git a/tig-wasm/README.md b/tig-wasm/README.md index 4dfc52d8..34279d70 100644 --- a/tig-wasm/README.md +++ b/tig-wasm/README.md @@ -19,4 +19,8 @@ These steps replicate what TIG's CI does (`.github/workflows/build_algorithm.yml ``` mkdir -p tig-algorithms/wasm/${CHALLENGE} wasm-opt target/wasm32-wasi/release/tig_wasm.wasm -o tig-algorithms/wasm/${CHALLENGE}/${ALGORITHM}.wasm -O2 --remove-imports - ``` \ No newline at end of file + ``` + +# License + +[End User License Agreement](../docs/agreements/end_user_license_agreement.pdf) \ No newline at end of file diff --git a/tig-worker/Cargo.toml b/tig-worker/Cargo.toml index ba749a9f..3a7614cb 100644 --- a/tig-worker/Cargo.toml +++ b/tig-worker/Cargo.toml @@ -2,6 +2,7 @@ name = "tig-worker" version = "0.1.0" readme = "README.md" +license = "https://github.com/tig-foundation/tig-monorepo/tree/main/docs/agreements/end_user_license_agreement.pdf" authors.workspace = true repository.workspace = true edition.workspace = true diff --git a/tig-worker/README.md b/tig-worker/README.md index 666cade0..7b18c141 100644 --- a/tig-worker/README.md +++ b/tig-worker/README.md @@ -36,4 +36,8 @@ Notes: ``` query https://api.tig.foundation/play/get-block for query https://api.tig.foundation/play/get-challenges?block_id= for qualifier_difficulties - ``` \ No newline at end of file + ``` + +# License + +[End User License Agreement](../docs/agreements/end_user_license_agreement.pdf) \ No newline at end of file