From 0f0b28e68079f56926d9d2f872533d69ce7eec05 Mon Sep 17 00:00:00 2001 From: ccoVeille <3875889+ccoVeille@users.noreply.github.com> Date: Thu, 28 May 2026 21:41:43 +0200 Subject: [PATCH] Bump github.com/ccoveille/go-safecast to 2.0.1 Only github.com/ccoveille/go-safecast/v2 is maintained. --- bold/api/backend/backend.go | 2 +- bold/assertions/confirmation.go | 2 +- bold/assertions/manager.go | 2 +- bold/assertions/poster.go | 2 +- bold/challenge/manager.go | 2 +- bold/challenge/stack.go | 2 +- bold/challenge/tracker/challenge_confirmation.go | 2 +- bold/commitment/history/history.go | 2 +- bold/commitment/legacy/legacy.go | 2 +- bold/commitment/proof/prefix/prefix.go | 2 +- bold/protocol/interfaces.go | 2 +- bold/protocol/sol/assertion_chain.go | 2 +- bold/protocol/sol/edge_challenge_manager.go | 2 +- bold/protocol/sol/transact.go | 2 +- bold/state/history_commitment_provider.go | 2 +- bold/testing/casttest/safe.go | 2 +- bold/testing/mocks/state-provider/layer2_state_provider.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- system_tests/overflow_assertions_test.go | 2 +- 20 files changed, 21 insertions(+), 21 deletions(-) diff --git a/bold/api/backend/backend.go b/bold/api/backend/backend.go index 8a93fc4f40a..fa2d1fef3e2 100644 --- a/bold/api/backend/backend.go +++ b/bold/api/backend/backend.go @@ -12,7 +12,7 @@ import ( "strconv" "strings" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" diff --git a/bold/assertions/confirmation.go b/bold/assertions/confirmation.go index 8dcc349c7a8..9c951ca2738 100644 --- a/bold/assertions/confirmation.go +++ b/bold/assertions/confirmation.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/log" diff --git a/bold/assertions/manager.go b/bold/assertions/manager.go index 8d162df18c9..73359b0c2a2 100644 --- a/bold/assertions/manager.go +++ b/bold/assertions/manager.go @@ -13,7 +13,7 @@ import ( "sync" "time" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/pkg/errors" "github.com/ethereum/go-ethereum/accounts/abi/bind" diff --git a/bold/assertions/poster.go b/bold/assertions/poster.go index e23074b2012..4cf1c3c4696 100644 --- a/bold/assertions/poster.go +++ b/bold/assertions/poster.go @@ -9,7 +9,7 @@ import ( "math/big" "time" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/pkg/errors" "github.com/ethereum/go-ethereum/log" diff --git a/bold/challenge/manager.go b/bold/challenge/manager.go index bf0d7ca698b..80fd1e7237c 100644 --- a/bold/challenge/manager.go +++ b/bold/challenge/manager.go @@ -10,7 +10,7 @@ import ( "fmt" "time" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/pkg/errors" "github.com/ethereum/go-ethereum/accounts/abi/bind" diff --git a/bold/challenge/stack.go b/bold/challenge/stack.go index cfd9911ade2..952e26a430a 100644 --- a/bold/challenge/stack.go +++ b/bold/challenge/stack.go @@ -6,7 +6,7 @@ package challenge import ( "time" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/ethereum/go-ethereum/common" diff --git a/bold/challenge/tracker/challenge_confirmation.go b/bold/challenge/tracker/challenge_confirmation.go index a392bde0577..858da2934f0 100644 --- a/bold/challenge/tracker/challenge_confirmation.go +++ b/bold/challenge/tracker/challenge_confirmation.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/pkg/errors" "github.com/ethereum/go-ethereum/accounts/abi/bind" diff --git a/bold/commitment/history/history.go b/bold/commitment/history/history.go index d7774349574..0543349e382 100644 --- a/bold/commitment/history/history.go +++ b/bold/commitment/history/history.go @@ -42,7 +42,7 @@ import ( "errors" "fmt" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" diff --git a/bold/commitment/legacy/legacy.go b/bold/commitment/legacy/legacy.go index b8d245d05d2..041617962e2 100644 --- a/bold/commitment/legacy/legacy.go +++ b/bold/commitment/legacy/legacy.go @@ -9,7 +9,7 @@ import ( "errors" "sync" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/ethereum/go-ethereum/common" diff --git a/bold/commitment/proof/prefix/prefix.go b/bold/commitment/proof/prefix/prefix.go index 0faa358ac4e..1fb2b11485e 100644 --- a/bold/commitment/proof/prefix/prefix.go +++ b/bold/commitment/proof/prefix/prefix.go @@ -106,7 +106,7 @@ import ( "math" "math/bits" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/pkg/errors" "github.com/ethereum/go-ethereum/common" diff --git a/bold/protocol/interfaces.go b/bold/protocol/interfaces.go index 2ef1e1f553b..395c8ebb891 100644 --- a/bold/protocol/interfaces.go +++ b/bold/protocol/interfaces.go @@ -10,7 +10,7 @@ import ( "regexp" "strconv" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/accounts/abi/bind" diff --git a/bold/protocol/sol/assertion_chain.go b/bold/protocol/sol/assertion_chain.go index 341cee608a8..ab71d1b2238 100644 --- a/bold/protocol/sol/assertion_chain.go +++ b/bold/protocol/sol/assertion_chain.go @@ -15,7 +15,7 @@ import ( "strings" "time" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/pkg/errors" "github.com/ethereum/go-ethereum" diff --git a/bold/protocol/sol/edge_challenge_manager.go b/bold/protocol/sol/edge_challenge_manager.go index c617aef35b3..092345138be 100644 --- a/bold/protocol/sol/edge_challenge_manager.go +++ b/bold/protocol/sol/edge_challenge_manager.go @@ -9,7 +9,7 @@ import ( "math/big" "strings" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/pkg/errors" "github.com/ethereum/go-ethereum/accounts/abi" diff --git a/bold/protocol/sol/transact.go b/bold/protocol/sol/transact.go index 4a93208b1da..18e915e2f97 100644 --- a/bold/protocol/sol/transact.go +++ b/bold/protocol/sol/transact.go @@ -8,7 +8,7 @@ import ( "math/big" "time" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/pkg/errors" "github.com/ethereum/go-ethereum" diff --git a/bold/state/history_commitment_provider.go b/bold/state/history_commitment_provider.go index b068c69c3cc..0819267d1bc 100644 --- a/bold/state/history_commitment_provider.go +++ b/bold/state/history_commitment_provider.go @@ -11,7 +11,7 @@ import ( "strconv" "time" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/common" diff --git a/bold/testing/casttest/safe.go b/bold/testing/casttest/safe.go index aa7289b921e..6cabb77b105 100644 --- a/bold/testing/casttest/safe.go +++ b/bold/testing/casttest/safe.go @@ -7,7 +7,7 @@ package casttest import ( "testing" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/stretchr/testify/require" ) diff --git a/bold/testing/mocks/state-provider/layer2_state_provider.go b/bold/testing/mocks/state-provider/layer2_state_provider.go index 73232010716..f770f72db90 100644 --- a/bold/testing/mocks/state-provider/layer2_state_provider.go +++ b/bold/testing/mocks/state-provider/layer2_state_provider.go @@ -12,7 +12,7 @@ import ( "math/big" "testing" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/common" diff --git a/go.mod b/go.mod index 5a057d287c7..985c21bac93 100644 --- a/go.mod +++ b/go.mod @@ -18,7 +18,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/s3 v1.97.3 github.com/aws/aws-sdk-go-v2/service/sqs v1.42.25 github.com/cavaliergopher/grab/v3 v3.0.1 - github.com/ccoveille/go-safecast v1.1.0 + github.com/ccoveille/go-safecast/v2 v2.0.1 github.com/cockroachdb/pebble v1.1.5 github.com/codeclysm/extract/v3 v3.0.2 github.com/enescakir/emoji v1.0.0 diff --git a/go.sum b/go.sum index d762281d520..f89b5ba8709 100644 --- a/go.sum +++ b/go.sum @@ -103,8 +103,8 @@ github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA= github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0= github.com/cavaliergopher/grab/v3 v3.0.1 h1:4z7TkBfmPjmLAAmkkAZNX/6QJ1nNFdv3SdIHXju0Fr4= github.com/cavaliergopher/grab/v3 v3.0.1/go.mod h1:1U/KNnD+Ft6JJiYoYBAimKH2XrYptb8Kl3DFGmsjpq4= -github.com/ccoveille/go-safecast v1.1.0 h1:iHKNWaZm+OznO7Eh6EljXPjGfGQsSfa6/sxPlIEKO+g= -github.com/ccoveille/go-safecast v1.1.0/go.mod h1:QqwNjxQ7DAqY0C721OIO9InMk9zCwcsO7tnRuHytad8= +github.com/ccoveille/go-safecast/v2 v2.0.1 h1:2+mIu3gXtwmWelBia2kkxfB8eP4orTHDH7ClSlWkd6I= +github.com/ccoveille/go-safecast/v2 v2.0.1/go.mod h1:JIYA4CAR33blIDuE6fSwCp2sz1oOBahXnvmdBhOAABs= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/cp v0.1.0 h1:SE+dxFebS7Iik5LK0tsi1k9ZCxEaFX4AjQmoyA+1dJk= github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= diff --git a/system_tests/overflow_assertions_test.go b/system_tests/overflow_assertions_test.go index 34e5afbe289..7a81aa4aa91 100644 --- a/system_tests/overflow_assertions_test.go +++ b/system_tests/overflow_assertions_test.go @@ -13,7 +13,7 @@ import ( "testing" "time" - "github.com/ccoveille/go-safecast" + "github.com/ccoveille/go-safecast/v2" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/accounts/abi/bind"