diff --git a/.github/workflows/lint-and-tests.yml b/.github/workflows/lint-and-tests.yml index 406344b..8680f1e 100644 --- a/.github/workflows/lint-and-tests.yml +++ b/.github/workflows/lint-and-tests.yml @@ -6,27 +6,23 @@ on: - main pull_request: -env: - GO_VERSION: "1.21.7" - jobs: lint: name: Lint - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: ${{ env.GO_VERSION }} - - uses: actions/checkout@v3 + go-version-file: 'go.mod' - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.56.2 + version: v1.64.5 working-directory: . args: --timeout 5m - name: Install license check run: go install github.com/google/addlicense@v1.0.0 - name: Check license - run: addlicense -f ./LICENSE.header -check -v ./**/*.go - #run: addlicense -f ./LICENSE.header -check -v ./**/*.go ./**/**/*.go ./**/**/**/*.go ./**/**/**/**/*.go + run: addlicense -f ./LICENSE.header -check -v ./**/*.go ./**/**/*.go diff --git a/.golangci.yml b/.golangci.yml index 3a2bc02..ca4fb31 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -19,7 +19,6 @@ linters: - depguard - errcheck - errorlint - - exportloopref - goconst - gocritic - gofmt diff --git a/LICENSE b/LICENSE index 8fbd758..21b1491 100644 --- a/LICENSE +++ b/LICENSE @@ -1,66 +1,29 @@ -Copyright (C) 2024, Ava Labs, Inc. All rights reserved. - -Ecosystem License -Version: 1.1 - -Subject to the terms herein, Ava Labs, Inc. (**“Ava Labs”**) hereby grants you -a limited, royalty-free, worldwide, non-sublicensable, non-transferable, -non-exclusive license to use, copy, modify, create derivative works based on, -and redistribute the Software, in source code, binary, or any other form, -including any modifications or derivative works of the Software (collectively, -**“Licensed Software”**), in each case subject to this Ecosystem License -(**“License”**). - -This License applies to all copies, modifications, derivative works, and any -other form or usage of the Licensed Software. You will include and display -this License, without modification, with all uses of the Licensed Software, -regardless of form. - -You will use the Licensed Software solely (i) in connection with the Avalanche -Public Blockchain platform, having a NetworkID of 1 (Mainnet) or 5 (Fuji), and -associated blockchains, comprised exclusively of the Avalanche X-Chain, -C-Chain, P-Chain and any subnets linked to the P-Chain (“Avalanche Authorized -Platform”) or (ii) for non-production, testing or research purposes within the -Avalanche ecosystem, in each case, without any commercial application -(“Non-Commercial Use”); provided that this License does not permit use of the -Licensed Software in connection with (a) any forks of the Avalanche Authorized -Platform or (b) in any manner not operationally connected to the Avalanche -Authorized Platform other than, for the avoidance of doubt, the limited -exception for Non-Commercial Use. Ava Labs may publicly announce changes or -additions to the Avalanche Authorized Platform, which may expand or modify -usage of the Licensed Software. Upon such announcement, the Avalanche -Authorized Platform will be deemed to be the then-current iteration of such -platform. - -You hereby acknowledge and agree to the terms set forth at -www.avalabs.org/important-notice. - -If you use the Licensed Software in violation of this License, this License -will automatically terminate and Ava Labs reserves all rights to seek any -remedy for such violation. - -Except for uses explicitly permitted in this License, Ava Labs retains all -rights in the Licensed Software, including without limitation the ability to -modify it. - -Except as required or explicitly permitted by this License, you will not use -any Ava Labs names, logos, or trademarks without Ava Labs’ prior written -consent. - -You may use this License for software other than the “Licensed Software” -specified above, as long as the only change to this License is the definition -of the term “Licensed Software.” - -The Licensed Software may reference third party components. You acknowledge -and agree that these third party components may be governed by a separate -license or terms and that you will comply with them. - -**TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE LICENSED SOFTWARE IS PROVIDED -ON AN “AS IS” BASIS, AND AVA LABS EXPRESSLY DISCLAIMS AND EXCLUDES ALL -REPRESENTATIONS, WARRANTIES AND OTHER TERMS AND CONDITIONS, WHETHER EXPRESS OR -IMPLIED, INCLUDING WITHOUT LIMITATION BY OPERATION OF LAW OR BY CUSTOM, -STATUTE OR OTHERWISE, AND INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED WARRANTY, -TERM, OR CONDITION OF NON-INFRINGEMENT, MERCHANTABILITY, TITLE, OR FITNESS FOR -PARTICULAR PURPOSE. YOU USE THE LICENSED SOFTWARE AT YOUR OWN RISK. AVA LABS -EXPRESSLY DISCLAIMS ALL LIABILITY (INCLUDING FOR ALL DIRECT, CONSEQUENTIAL OR -OTHER DAMAGES OR LOSSES) RELATED TO ANY USE OF THE LICENSED SOFTWARE.** +BSD 3-Clause License + +Copyright (c) 2021, Ava Labs, Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.