Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
714 changes: 0 additions & 714 deletions AGENTS.md

This file was deleted.

6 changes: 3 additions & 3 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

# Third-party authors / upstream copyright holders

## Portions derived from linhbkhn95/int256:
- Trịnh Đức Bảo Linh(Kevin)

## Portions derived from holiman/uint256:
This is the official list of uint256 authors for copyright purposes:

Expand All @@ -17,3 +14,6 @@ This is the official list of uint256 authors for copyright purposes:
- Yao Zengzeng <yaozengzeng@zju.edu.cn>
- Dag Arne Osvik <daosvik@users.noreply.github.com>
- Thanee Charattrakool <planxthanee@gmail.com>

## Portions derived from linhbkhn95/int256:
- Trịnh Đức Bảo Linh(Kevin)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ func main() {

This project is licensed under the BSD-3-Clause license.

Portions are derived from linhbkhn95/int256, licensed under MIT, and holiman/uint256, licensed under BSD-3-Clause. See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
Portions are derived from holiman/uint256, licensed under BSD-3-Clause, and linhbkhn95/int256, licensed under MIT. See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
54 changes: 27 additions & 27 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,6 @@

This project contains code forked from, copied from, or derived from the following projects.

## linhbkhn95/int256

Source: https://github.com/linhbkhn95/int256
License: MIT

MIT License

Copyright (c) 2023 Trịnh Đức Bảo Linh(Kevin)

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.

## holiman/uint256

Source: https://github.com/holiman/uint256
Expand Down Expand Up @@ -62,3 +35,30 @@ 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.

## linhbkhn95/int256

Source: https://github.com/linhbkhn95/int256
License: MIT

MIT License

Copyright (c) 2023 Trịnh Đức Bảo Linh(Kevin)

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.
2 changes: 1 addition & 1 deletion big_int.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package int256: Fixed-size signed integer math library represented as a 256-bit absolute value plus a sign bit.
// Copyright (c) 2023 Trịnh Đức Bảo Linh(Kevin)
// Copyright 2018-2020 uint256 Authors
// Copyright (c) 2023 Trịnh Đức Bảo Linh(Kevin)
// Copyright (c) 2026 0xsimulacra
// SPDX-License-Identifier: MIT AND BSD-3-Clause
package int256
Expand Down
2 changes: 1 addition & 1 deletion big_int_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package int256: Fixed-size signed integer math library represented as a 256-bit absolute value plus a sign bit.
// Copyright (c) 2023 Trịnh Đức Bảo Linh(Kevin)
// Copyright 2018-2020 uint256 Authors
// Copyright (c) 2023 Trịnh Đức Bảo Linh(Kevin)
// Copyright (c) 2026 0xsimulacra
// SPDX-License-Identifier: MIT AND BSD-3-Clause
package int256
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/0xsimulacra/int256

go 1.19

require github.com/holiman/uint256 v1.3.3-0.20260228135838-087f4b32f234
require github.com/holiman/uint256 v1.3.3-0.20260802171323-c77edc14537e
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/holiman/uint256 v1.3.3-0.20260228135838-087f4b32f234 h1:KWA7rdkMmM/gBfL5zb8BOmRT9yDT6mh6of+lTlYywvU=
github.com/holiman/uint256 v1.3.3-0.20260228135838-087f4b32f234/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E=
github.com/holiman/uint256 v1.3.3-0.20260802171323-c77edc14537e h1:e7XXNdFji7/xipRDdGSfLLXr+JAaYaQnvNPy8n+bci4=
github.com/holiman/uint256 v1.3.3-0.20260802171323-c77edc14537e/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E=
2 changes: 1 addition & 1 deletion int256.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package int256: Fixed-size signed integer math library represented as a 256-bit absolute value plus a sign bit.
// Copyright (c) 2023 Trịnh Đức Bảo Linh(Kevin)
// Copyright 2018-2020 uint256 Authors
// Copyright (c) 2023 Trịnh Đức Bảo Linh(Kevin)
// Copyright (c) 2026 0xsimulacra
// SPDX-License-Identifier: MIT AND BSD-3-Clause
package int256
Expand Down
4 changes: 2 additions & 2 deletions int256_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package int256: Fixed-size signed integer math library represented as a 256-bit absolute value plus a sign bit.
// Copyright (c) 2023 Trịnh Đức Bảo Linh(Kevin)
// Copyright 2018-2020 uint256 Authors
// Copyright (c) 2023 Trịnh Đức Bảo Linh(Kevin)
// Copyright (c) 2026 0xsimulacra
// SPDX-License-Identifier: MIT AND BSD-3-Clause
package int256
Expand Down Expand Up @@ -438,7 +438,7 @@ func TestInt_SetString(t *testing.T) {
}
big1, _ := new(big.Int).SetString("-10a", 16)

var MaxUint256, _ = new(big.Int).SetString("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", 16)
MaxUint256, _ := new(big.Int).SetString("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", 16)

big, _ := new(big.Int).SetString("1461446703485210103287273052203988822378723970342", 10)

Expand Down
77 changes: 5 additions & 72 deletions nix/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 14 additions & 21 deletions nix/flake.nix
Original file line number Diff line number Diff line change
@@ -1,46 +1,43 @@
{
description = "Go dev shell (gopls, delve, gotools) with CGO + direnv";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
inputs.nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.systems.url = "github:nix-systems/default";
inputs.flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
inputs.foundry.url = "github:shazow/foundry.nix/stable";

outputs =
{ nixpkgs, nixpkgs-unstable, flake-utils, foundry, ... }:
{
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ foundry.overlay ];
};

pkgsUnstable = import nixpkgs-unstable {
inherit system;
};

_pkgGo = pkgsUnstable.go_1_26;
_pkgGoModule = pkgsUnstable.buildGo126Module;
_pkgGo = pkgs.go_1_27;
_pkgGoModule = pkgs.buildGo126Module;

_pkgGopls = pkgsUnstable.gopls.override {
_pkgGopls = pkgs.gopls.override {
buildGoLatestModule = _pkgGoModule;
};

_pkgGoDelve = pkgsUnstable.delve.override {
_pkgGoDelve = pkgs.delve.override {
buildGoModule = _pkgGoModule;
};

_pkgGoTools = pkgsUnstable.gotools.override {
_pkgGoTools = pkgs.gotools.override {
buildGoModule = _pkgGoModule;
go = _pkgGo;
};

_pkgGoPerf = pkgsUnstable.goperf.override {
_pkgGoPerf = pkgs.goperf.override {
buildGoModule = _pkgGoModule;
};

Expand Down Expand Up @@ -71,9 +68,7 @@
pkgs.sqlite
];

packages = [
pkgs.foundry-bin
];
packages = [ ];

GOOS = "linux";
GOARCH = "amd64";
Expand All @@ -88,9 +83,7 @@
];

shellHook = ''
go telemetry off

echo "Go $(go version) • Telemetry=$(go telemetry 2>/dev/null || echo n/a) • CGO=$CGO_ENABLED"
echo "Go $(go version) • CGO=$CGO_ENABLED"
'';

# macOS note (harmless on Linux): uncomment if you ever build Security-dependent CGO code
Expand Down
Loading