remove Nim 1.2-compatible `push raise`s and update copyright notice years (#4528)

This commit is contained in:
tersec 2023-01-20 14:14:37 +00:00 committed by GitHub
parent b975455254
commit aacc8d702d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
128 changed files with 190 additions and 577 deletions

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[typetraits, tables], std/[typetraits, tables],

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
./spec/datatypes/[base, altair, bellatrix], ./spec/datatypes/[base, altair, bellatrix],

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Status libraries # Status libraries

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/math, std/math,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronicles, chronicles,

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
type type
# "state" is already taken by BeaconState # "state" is already taken by BeaconState

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2022 Status Research & Development GmbH # Copyright (c) 2022-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
json_serialization/std/net, json_serialization/std/net,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Standard libraries # Standard libraries

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronicles, chronicles,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronicles, chronicles,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Standard library # Standard library

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Beacon chain internals # Beacon chain internals

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[tables], std/[tables],

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[algorithm, sequtils, tables, sets], std/[algorithm, sequtils, tables, sets],

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Status libraries # Status libraries

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronicles, chronos, chronicles, chronos,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Standard libraries # Standard libraries

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Status libraries # Status libraries

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/sequtils, std/sequtils,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[sets, tables], std/[sets, tables],

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2022 Status Research & Development GmbH # Copyright (c) 2022-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/os, std/os,

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2022 Status Research & Development GmbH # Copyright (c) 2022-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import spec/datatypes/constants import spec/datatypes/constants

View File

@ -1,13 +1,10 @@
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[os, sequtils, times], std/[os, sequtils, times],

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
os, sequtils, strutils, options, json, terminal, os, sequtils, strutils, options, json, terminal,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[deques, options, strformat, strutils, sequtils, tables, std/[deques, options, strformat, strutils, sequtils, tables,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
# https://github.com/ethereum/consensus-specs/blob/v1.3.0-rc.1/tests/core/pyspec/eth2spec/utils/merkle_minimal.py # https://github.com/ethereum/consensus-specs/blob/v1.3.0-rc.1/tests/core/pyspec/eth2spec/utils/merkle_minimal.py

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
# Temporary dumping ground for extra types and helpers that could make it into # Temporary dumping ground for extra types and helpers that could make it into
# the spec potentially # the spec potentially

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2021 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import chronicles import chronicles
import stew/io2 import stew/io2

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Standard library # Standard library

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Standard library # Standard library

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Standard library # Standard library

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2019-2022 Status Research & Development GmbH # Copyright (c) 2019-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at http://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at http://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at http://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at http://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[deques, sequtils], std/[deques, sequtils],

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
stew/results, stew/results,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/tables, std/tables,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at http://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at http://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Status # Status

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
stew/objects, stew/objects,

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2019-2022 Status Research & Development GmbH # Copyright (c) 2019-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at http://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at http://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at http://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at http://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronicles, chronos, chronicles, chronos,

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
stew/endians2, stint, stew/endians2, stint,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronicles, chronicles,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Status libraries # Status libraries

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[os, strutils], std/[os, strutils],

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Std lib # Std lib

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import libp2p/[peerid, multiaddress], json_serialization import libp2p/[peerid, multiaddress], json_serialization
export json_serialization export json_serialization

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[sequtils, strutils, os], std/[sequtils, strutils, os],

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import std/[tables, heapqueue] import std/[tables, heapqueue]
import chronos import chronos

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
const const
NewPeerScore* = 300 NewPeerScore* = 300

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2022 Status Research & Development GmbH # Copyright (c) 2022-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import chronos import chronos

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[os, random, sequtils, terminal, times], std/[os, random, sequtils, terminal, times],

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
# Common routines for a BeaconNode and a ValidatorClient # Common routines for a BeaconNode and a ValidatorClient

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
## The `rest_api` module is a server implementation for the common REST API for ## The `rest_api` module is a server implementation for the common REST API for
## Ethereum 2 found at https://ethereum.github.io/eth2.0-APIs/# ## Ethereum 2 found at https://ethereum.github.io/eth2.0-APIs/#

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
../spec/beacon_time ../spec/beacon_time

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
stew/results, stew/results,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import chronicles import chronicles
import ../beacon_node, import ../beacon_node,

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2022 Status Research & Development GmbH # Copyright (c) 2022-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import std/[options, macros], import std/[options, macros],
stew/byteutils, presto, stew/byteutils, presto,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[hashes, typetraits], std/[hashes, typetraits],

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
stew/assign2, stew/assign2,

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronicles, chronicles,

View File

@ -21,10 +21,7 @@
# A, B and C, and another with B, C and D, we cannot practically combine them # A, B and C, and another with B, C and D, we cannot practically combine them
# even if in theory it is possible to allow this in BLS. # even if in theory it is possible to allow this in BLS.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Status # Status

View File

@ -13,10 +13,7 @@
# https://github.com/nim-lang/RFCs/issues/250 # https://github.com/nim-lang/RFCs/issues/250
{.experimental: "notnil".} {.experimental: "notnil".}
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[typetraits, sets, hashes], std/[typetraits, sets, hashes],

View File

@ -58,10 +58,7 @@
# https://github.com/nim-lang/RFCs/issues/250 # https://github.com/nim-lang/RFCs/issues/250
{.experimental: "notnil".} {.experimental: "notnil".}
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[macros, hashes, sets, strutils, tables, typetraits], std/[macros, hashes, sets, strutils, tables, typetraits],

View File

@ -13,10 +13,7 @@
# https://github.com/nim-lang/RFCs/issues/250 # https://github.com/nim-lang/RFCs/issues/250
{.experimental: "notnil".} {.experimental: "notnil".}
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
stew/byteutils, stew/byteutils,

View File

@ -13,10 +13,7 @@
# https://github.com/nim-lang/RFCs/issues/250 # https://github.com/nim-lang/RFCs/issues/250
{.experimental: "notnil".} {.experimental: "notnil".}
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronicles, chronicles,

View File

@ -13,10 +13,7 @@
# https://github.com/nim-lang/RFCs/issues/250 # https://github.com/nim-lang/RFCs/issues/250
{.experimental: "notnil".} {.experimental: "notnil".}
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronicles, chronicles,

View File

@ -13,10 +13,7 @@
# https://github.com/nim-lang/RFCs/issues/250 # https://github.com/nim-lang/RFCs/issues/250
{.experimental: "notnil".} {.experimental: "notnil".}
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronicles, chronicles,

View File

@ -19,10 +19,7 @@
# (already did Blake2b --> Keccak256 --> SHA2-256), # (already did Blake2b --> Keccak256 --> SHA2-256),
# we call this function `eth2digest`, and it outputs a `Eth2Digest`. Easy to sed :) # we call this function `eth2digest`, and it outputs a `Eth2Digest`. Easy to sed :)
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Standard library # Standard library

View File

@ -1,5 +1,5 @@
# beacon_chain # beacon_chain
# Copyright (c) 2022 Status Research & Development GmbH # Copyright (c) 2022-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -19,10 +19,7 @@ from std/strutils import replace
export rand, results export rand, results
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
proc base64urlEncode(x: auto): string = proc base64urlEncode(x: auto): string =
# The only strings this gets are internally generated, and don't have # The only strings this gets are internally generated, and don't have

View File

@ -142,10 +142,7 @@ type
jsonVersion*: BeaconStateFork jsonVersion*: BeaconStateFork
sszContext*: ForkDigest sszContext*: ForkDigest
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
proc prepareJsonResponse*(t: typedesc[RestApiResponse], d: auto): seq[byte] = proc prepareJsonResponse*(t: typedesc[RestApiResponse], d: auto): seq[byte] =
let res = let res =

View File

@ -1,13 +1,10 @@
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronos, presto/client, chronicles, chronos, presto/client, chronicles,

View File

@ -1,13 +1,10 @@
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronos, presto/client, chronos, presto/client,

View File

@ -1,13 +1,10 @@
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronos, presto/client, chronos, presto/client,

View File

@ -1,13 +1,10 @@
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronos, presto/client, chronos, presto/client,

View File

@ -1,13 +1,10 @@
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronos, presto/client, chronos, presto/client,

View File

@ -1,13 +1,10 @@
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronos, presto/client, chronicles, chronos, presto/client, chronicles,

View File

@ -1,13 +1,10 @@
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronos, presto/client, chronos, presto/client,

View File

@ -1,13 +1,10 @@
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronicles, metrics, chronicles, metrics,

View File

@ -11,10 +11,7 @@
# in the API which may lead to incompatibilities between clients - tread # in the API which may lead to incompatibilities between clients - tread
# carefully! # carefully!
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/json, std/json,

View File

@ -1,13 +1,10 @@
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronos, presto/client, chronos, presto/client,

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
# Import this module to get access to `hash_tree_root` for spec types # Import this module to get access to `hash_tree_root` for spec types

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
# This module exports SSZ.encode and SSZ.decode for spec types - don't use # This module exports SSZ.encode and SSZ.decode for spec types - don't use
# ssz_serialization directly! To bypass root updates, use `readSszBytes` # ssz_serialization directly! To bypass root updates, use `readSszBytes`

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
stew/assign2, stew/assign2,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
./datatypes/[phase0, altair, bellatrix, capella, eip4844], ./datatypes/[phase0, altair, bellatrix, capella, eip4844],

View File

@ -7,10 +7,7 @@
# Uncategorized helper functions from the spec # Uncategorized helper functions from the spec
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Status libraries # Status libraries

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
# Standard library # Standard library

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
stew/[bitops2, objects], stew/[bitops2, objects],

View File

@ -8,10 +8,7 @@
import ".."/datatypes/[altair, bellatrix] import ".."/datatypes/[altair, bellatrix]
from stew/byteutils import to0xHex from stew/byteutils import to0xHex
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
type type
# https://github.com/ethereum/builder-specs/blob/v0.2.0/specs/builder.md#validatorregistrationv1 # https://github.com/ethereum/builder-specs/blob/v0.2.0/specs/builder.md#validatorregistrationv1

View File

@ -1,13 +1,10 @@
# Copyright (c) 2022 Status Research & Development GmbH # Copyright (c) 2022-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronos, presto/client, chronos, presto/client,

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
"."/[helpers, forks], "."/[helpers, forks],

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[strutils, parseutils, tables, typetraits], std/[strutils, parseutils, tables, typetraits],

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
## Signature production and verification for spec types - for every type of ## Signature production and verification for spec types - for every type of
## signature, there are 3 functions: ## signature, there are 3 functions:

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
## This module contains signature verification helpers corresponding to those ## This module contains signature verification helpers corresponding to those
## in signatures.nim, for use with signature sets / batch signature verification ## in signatures.nim, for use with signature sets / batch signature verification

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
{.pragma: raisesssz, raises: [Defect, MalformedSszError, SszSizeMismatchError].} {.pragma: raisesssz, raises: [Defect, MalformedSszError, SszSizeMismatchError].}
import import

View File

@ -38,10 +38,7 @@
# overload is used, the hash tree cache is cleared, which, aside from being # overload is used, the hash tree cache is cleared, which, aside from being
# slow itself, causes additional processing to recalculate the merkle tree. # slow itself, causes additional processing to recalculate the merkle tree.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronicles, chronicles,

View File

@ -17,10 +17,7 @@
# improvements to be made - other than that, keep things similar to spec unless # improvements to be made - other than that, keep things similar to spec unless
# motivated by security or performance considerations # motivated by security or performance considerations
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
chronicles, metrics, chronicles, metrics,

View File

@ -18,10 +18,7 @@
# improvements to be made - other than that, keep things similar to spec unless # improvements to be made - other than that, keep things similar to spec unless
# motivated by security or performance considerations # motivated by security or performance considerations
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
stew/bitops2, chronicles, stew/bitops2, chronicles,

View File

@ -6,10 +6,7 @@
# Helpers and functions pertaining to managing the validator set # Helpers and functions pertaining to managing the validator set
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
./datatypes/[phase0, altair, bellatrix], ./datatypes/[phase0, altair, bellatrix],

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
./datatypes/base, ./forks, ./helpers ./datatypes/base, ./forks, ./helpers

View File

@ -5,10 +5,7 @@
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[os, strformat], std/[os, strformat],

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2020-2022 Status Research & Development GmbH # Copyright (c) 2020-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
stew/assign2, stew/assign2,

View File

@ -1,14 +1,11 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018-2022 Status Research & Development GmbH # Copyright (c) 2018-2023 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
when (NimMajor, NimMinor) < (1, 4): {.push raises: [].}
{.push raises: [Defect].}
else:
{.push raises: [].}
import import
std/[strutils, parseutils, sequtils, terminal, colors] std/[strutils, parseutils, sequtils, terminal, colors]

Some files were not shown because too many files have changed in this diff Show More