From 541a1350c0ff50ed3df0cfbfae33d378cbdc218a Mon Sep 17 00:00:00 2001 From: antonis19 Date: Tue, 3 Dec 2024 13:57:39 +0100 Subject: [PATCH] Remove leftovers of `common` package (#12978) The `u256` package is now in `erigon-lib/common/u256` . It seems I forgot to delete this file in this PR: https://github.com/erigontech/erigon/pull/12923 --------- Co-authored-by: antonis19 --- common/u256/big.go | 36 ------------------------------- docs/readthedocs/source/types.rst | 4 ++-- 2 files changed, 2 insertions(+), 38 deletions(-) delete mode 100644 common/u256/big.go diff --git a/common/u256/big.go b/common/u256/big.go deleted file mode 100644 index f03cba28ef7..00000000000 --- a/common/u256/big.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2014 The go-ethereum Authors -// (original work) -// Copyright 2024 The Erigon Authors -// (modifications) -// This file is part of Erigon. -// -// Erigon is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Erigon is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with Erigon. If not, see . - -package u256 - -import ( - "github.com/holiman/uint256" -) - -// Common big integers often used -var ( - Num0 = uint256.NewInt(0) - Num1 = uint256.NewInt(1) - Num2 = uint256.NewInt(2) - Num4 = uint256.NewInt(4) - Num8 = uint256.NewInt(8) - Num27 = uint256.NewInt(27) - Num32 = uint256.NewInt(32) - Num35 = uint256.NewInt(35) -) diff --git a/docs/readthedocs/source/types.rst b/docs/readthedocs/source/types.rst index a947eebb768..83db47db7da 100644 --- a/docs/readthedocs/source/types.rst +++ b/docs/readthedocs/source/types.rst @@ -3,12 +3,12 @@ Erigon Types ================ This document will list each major types defined and used by Erigon. -They are found in `github.com/erigontech/erigon/core/types` and `github.com/erigontech/erigon/common` +They are found in `github.com/erigontech/erigon/core/types` and `github.com/erigontech/erigon-lib/common` Address and Hash ================ -package: `github.com/erigontech/erigon/common` +package: `github.com/erigontech/erigon-lib/common` .. code-block:: go