From b823721c73828a823fd1eb7b5ad4957635c6a361 Mon Sep 17 00:00:00 2001 From: Pravdyvy Date: Wed, 15 Apr 2026 11:45:37 +0300 Subject: [PATCH] init: licenses and shared files --- .clang-format | 26 ++++++++++++++++++++++++++ .gitignore | 12 ++++++++++++ LICENSE => LICENSE-APACHE-v2 | 1 + LICENSE-MIT | 21 +++++++++++++++++++++ README .md | 16 ++++++++++++++++ README.md | 2 -- 6 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 .clang-format create mode 100644 .gitignore rename LICENSE => LICENSE-APACHE-v2 (99%) create mode 100644 LICENSE-MIT create mode 100644 README .md delete mode 100644 README.md diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..b2b9dca --- /dev/null +++ b/.clang-format @@ -0,0 +1,26 @@ +BasedOnStyle: LLVM + +IndentWidth: 4 +ColumnLimit: 120 + +IndentAccessModifiers: false +AccessModifierOffset: -4 + +AlignAfterOpenBracket: BlockIndent +BinPackParameters: false +BinPackArguments: false + +AllowAllParametersOfDeclarationOnNextLine: false +PenaltyBreakBeforeFirstCallParameter: 1 + +PointerAlignment: Left +ReferenceAlignment: Left + +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: Never +AllowShortLoopsOnASingleLine: false + +BreakAfterReturnType: None +PenaltyReturnTypeOnItsOwnLine: 1000 + +NamespaceIndentation: All diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cabf2a7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +.idea/ +.qt/ +*.bak + +# CMake generated files +.cache/ +build/ +target/ +result + +# Node +resources/ diff --git a/LICENSE b/LICENSE-APACHE-v2 similarity index 99% rename from LICENSE rename to LICENSE-APACHE-v2 index 261eeb9..d645695 100644 --- a/LICENSE +++ b/LICENSE-APACHE-v2 @@ -1,3 +1,4 @@ + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ diff --git a/LICENSE-MIT b/LICENSE-MIT new file mode 100644 index 0000000..d4c6970 --- /dev/null +++ b/LICENSE-MIT @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright © 2025-2026 Logos + +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/README .md b/README .md new file mode 100644 index 0000000..33b6715 --- /dev/null +++ b/README .md @@ -0,0 +1,16 @@ +# Logos Blockchain Indexer Module + +### Setup + +#### IDE + +If you're using an IDE with CMake integration make sure it points to the same cmake directory as the `justfile`, which defaults to `build`. + +This will reduce friction when working on the project. + +#### Nix + +* Use `nix flake update` to bring all nix context and packages +* Use `nix build` to build the package +* Use `nix run` to launch the module-viewer and check your module loads properly +* Use `nix develop` to setup your IDE diff --git a/README.md b/README.md deleted file mode 100644 index ff2d9c6..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# logos-execution-zone-indexer-module -Logos Blockchain Indexer Module