Skip to content

Commit acfb6ab

Browse files
authored
used forked whoops instead of the original one (#101)
1 parent e450918 commit acfb6ab

29 files changed

+36
-38
lines changed

app/app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"strings"
66
gotime "time"
77

8+
"github.com/VolumeFi/whoops"
89
sdk "github.com/cosmos/cosmos-sdk/types"
910
"github.com/gogo/protobuf/proto"
1011
"github.com/palomachain/pigeon/chain"
@@ -20,7 +21,6 @@ import (
2021
log "github.com/sirupsen/logrus"
2122
"github.com/strangelove-ventures/lens/byop"
2223
lens "github.com/strangelove-ventures/lens/client"
23-
"github.com/vizualni/whoops"
2424
)
2525

2626
const (

chain/errors.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package chain
22

33
import (
4-
"github.com/vizualni/whoops"
4+
"github.com/VolumeFi/whoops"
55
)
66

77
const (
@@ -21,4 +21,3 @@ const (
2121
EnrichedID whoops.Field[uint64] = "id"
2222
EnrichedItemType whoops.Field[string] = "type"
2323
)
24-

chain/evm/client.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ import (
44
"bytes"
55
"context"
66
"embed"
7+
"io/fs"
8+
"io/ioutil"
79
"math"
810
"math/big"
911
"path/filepath"
1012
"strings"
1113
"sync"
1214
"time"
1315

14-
"io/fs"
15-
"io/ioutil"
16-
16+
"github.com/VolumeFi/whoops"
1717
"github.com/ethereum/go-ethereum"
1818
etherum "github.com/ethereum/go-ethereum"
1919
"github.com/ethereum/go-ethereum/accounts"
@@ -25,13 +25,12 @@ import (
2525
etherumtypes "github.com/ethereum/go-ethereum/core/types"
2626
ethtypes "github.com/ethereum/go-ethereum/core/types"
2727
"github.com/ethereum/go-ethereum/ethclient"
28-
proto "github.com/gogo/protobuf/proto"
28+
"github.com/gogo/protobuf/proto"
2929
"github.com/palomachain/pigeon/config"
3030
"github.com/palomachain/pigeon/errors"
3131
"github.com/palomachain/pigeon/types/paloma/x/evm/types"
3232
"github.com/palomachain/pigeon/util/slice"
3333
log "github.com/sirupsen/logrus"
34-
"github.com/vizualni/whoops"
3534
)
3635

3736
const (

chain/evm/client_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import (
66
"testing"
77
"time"
88

9+
"github.com/VolumeFi/whoops"
910
"github.com/ethereum/go-ethereum"
1011
"github.com/ethereum/go-ethereum/accounts/keystore"
1112
"github.com/ethereum/go-ethereum/common"
13+
"github.com/ethereum/go-ethereum/core/types"
1214
ethtypes "github.com/ethereum/go-ethereum/core/types"
13-
types "github.com/ethereum/go-ethereum/core/types"
1415
"github.com/ethereum/go-ethereum/crypto"
1516
"github.com/stretchr/testify/mock"
1617
"github.com/stretchr/testify/require"
17-
"github.com/vizualni/whoops"
1818
)
1919

2020
var (

chain/evm/compass.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"strings"
1010
"time"
1111

12+
"github.com/VolumeFi/whoops"
1213
etherum "github.com/ethereum/go-ethereum"
1314
"github.com/ethereum/go-ethereum/accounts/abi"
1415
"github.com/ethereum/go-ethereum/common"
@@ -20,7 +21,6 @@ import (
2021
"github.com/palomachain/pigeon/types/paloma/x/evm/types"
2122
"github.com/palomachain/pigeon/util/slice"
2223
log "github.com/sirupsen/logrus"
23-
"github.com/vizualni/whoops"
2424
)
2525

2626
const (

chain/evm/compass_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"testing"
99
"time"
1010

11+
"github.com/VolumeFi/whoops"
1112
"github.com/ethereum/go-ethereum/common"
1213
etherumtypes "github.com/ethereum/go-ethereum/core/types"
1314
ethtypes "github.com/ethereum/go-ethereum/core/types"
@@ -18,7 +19,6 @@ import (
1819
"github.com/palomachain/pigeon/types/paloma/x/evm/types"
1920
"github.com/stretchr/testify/mock"
2021
"github.com/stretchr/testify/require"
21-
"github.com/vizualni/whoops"
2222
)
2323

2424
const (

chain/evm/deploy_contract.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66
"math/big"
77

8+
"github.com/VolumeFi/whoops"
89
"github.com/ethereum/go-ethereum/accounts"
910
"github.com/ethereum/go-ethereum/accounts/abi"
1011
"github.com/ethereum/go-ethereum/accounts/abi/bind"
@@ -13,7 +14,6 @@ import (
1314
ethtypes "github.com/ethereum/go-ethereum/core/types"
1415
"github.com/ethereum/go-ethereum/crypto"
1516
log "github.com/sirupsen/logrus"
16-
"github.com/vizualni/whoops"
1717
)
1818

1919
func (c Client) DeployContract(

chain/evm/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package evm
22

33
import (
4-
"github.com/vizualni/whoops"
4+
"github.com/VolumeFi/whoops"
55
)
66

77
const (

chain/evm/health_check_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"math/big"
66
"testing"
77

8+
"github.com/VolumeFi/whoops"
89
"github.com/ethereum/go-ethereum/common"
910
. "github.com/onsi/ginkgo/v2"
1011
. "github.com/onsi/gomega"
1112
"github.com/palomachain/pigeon/chain"
1213
"github.com/stretchr/testify/mock"
13-
"github.com/vizualni/whoops"
1414
)
1515

1616
func TestGinkgo(t *testing.T) {

chain/evm/processor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import (
66
"math/big"
77
"strings"
88

9+
"github.com/VolumeFi/whoops"
910
"github.com/ethereum/go-ethereum/common"
1011
"github.com/ethereum/go-ethereum/crypto"
1112
"github.com/palomachain/pigeon/chain"
1213
"github.com/palomachain/pigeon/errors"
1314
"github.com/palomachain/pigeon/util/slice"
1415
log "github.com/sirupsen/logrus"
15-
"github.com/vizualni/whoops"
1616
)
1717

1818
const (

chain/paloma/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import (
55
"strings"
66
"time"
77

8+
"github.com/VolumeFi/whoops"
89
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
910
sdk "github.com/cosmos/cosmos-sdk/types"
1011
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
1112
"github.com/gogo/protobuf/grpc"
12-
proto "github.com/gogo/protobuf/proto"
13+
"github.com/gogo/protobuf/proto"
1314
"github.com/strangelove-ventures/lens/client/query"
14-
"github.com/vizualni/whoops"
1515

1616
"github.com/cosmos/cosmos-sdk/crypto/keyring"
1717
"github.com/palomachain/pigeon/chain"

chain/paloma/client_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323

2424
"google.golang.org/grpc/test/bufconn"
2525

26+
"github.com/VolumeFi/whoops"
2627
"github.com/cosmos/cosmos-sdk/types/module"
27-
"github.com/vizualni/whoops"
2828
"google.golang.org/grpc"
2929
)
3030

chain/paloma/collision/zero_collision_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"fmt"
66
"testing"
77

8+
"github.com/VolumeFi/whoops"
89
sdk "github.com/cosmos/cosmos-sdk/types"
910
valsettypes "github.com/palomachain/pigeon/types/paloma/x/valset/types"
1011
"github.com/palomachain/pigeon/util/slice"
11-
mock "github.com/stretchr/testify/mock"
12+
"github.com/stretchr/testify/mock"
1213
"github.com/stretchr/testify/require"
13-
"github.com/vizualni/whoops"
1414
)
1515

1616
func TestCollisions(t *testing.T) {

chain/paloma/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"net"
66

7-
"github.com/vizualni/whoops"
7+
"github.com/VolumeFi/whoops"
88
)
99

1010
const (

chain/paloma/wrappers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package paloma
33
import (
44
"context"
55

6+
"github.com/VolumeFi/whoops"
67
sdk "github.com/cosmos/cosmos-sdk/types"
78
"github.com/gogo/protobuf/grpc"
8-
"github.com/vizualni/whoops"
99

1010
ggrpc "google.golang.org/grpc"
1111
)

cmd/pigeon/cmd_keys.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package main
33
import (
44
"fmt"
55

6+
"github.com/VolumeFi/whoops"
67
sdk "github.com/cosmos/cosmos-sdk/types"
78
"github.com/palomachain/pigeon/app"
89
"github.com/spf13/cobra"
9-
"github.com/vizualni/whoops"
1010
)
1111

1212
var (

config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"path"
88
"strings"
99

10-
"github.com/vizualni/whoops"
10+
"github.com/VolumeFi/whoops"
1111

1212
"gopkg.in/yaml.v2"
1313
)

config/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package config
22

3-
import "github.com/vizualni/whoops"
3+
import "github.com/VolumeFi/whoops"
44

55
const (
66
ErrUnableToLocateKeyringEnvironmentVar = whoops.String("unable to locate keyring ENV variable")

errors/unrecoverable.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package errors
33
import (
44
"errors"
55

6-
"github.com/vizualni/whoops"
6+
"github.com/VolumeFi/whoops"
77
)
88

99
const (

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/palomachain/pigeon
33
go 1.18
44

55
require (
6+
github.com/VolumeFi/whoops v0.7.2
67
github.com/cosmos/cosmos-sdk v0.45.1
78
github.com/ethereum/go-ethereum v1.10.18
89
github.com/gogo/protobuf v1.3.3
@@ -14,7 +15,6 @@ require (
1415
github.com/strangelove-ventures/lens v0.3.1-0.20220329150126-16b15e90cf34
1516
github.com/stretchr/testify v1.7.1
1617
github.com/tendermint/tendermint v0.34.15
17-
github.com/vizualni/whoops v0.7.1
1818
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
1919
google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac
2020
google.golang.org/grpc v1.45.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ github.com/VictoriaMetrics/fastcache v1.6.0 h1:C/3Oi3EiBCqufydp1neRZkqcwmEiuRT9c
101101
github.com/VictoriaMetrics/fastcache v1.6.0/go.mod h1:0qHz5QP0GMX4pfmMA/zt5RgfNuXJrTP0zS7DqpHGGTw=
102102
github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE=
103103
github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
104+
github.com/VolumeFi/whoops v0.7.2 h1:BMxDRo1N14QPPkruA9tsqivpWFXlujvFR+CtWGeQ0cc=
105+
github.com/VolumeFi/whoops v0.7.2/go.mod h1:WH5v7h5SzHTOIx28WZ9kJqdMqOX2VQNPBelwlrgg5PQ=
104106
github.com/Workiva/go-datastructures v1.0.52/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA=
105107
github.com/Workiva/go-datastructures v1.0.53 h1:J6Y/52yX10Xc5JjXmGtWoSSxs3mZnGSaq37xZZh7Yig=
106108
github.com/Workiva/go-datastructures v1.0.53/go.mod h1:1yZL+zfsztete+ePzZz/Zb1/t5BnDuE2Ya2MMGhzP6A=
@@ -1081,8 +1083,6 @@ github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPU
10811083
github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
10821084
github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE=
10831085
github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU=
1084-
github.com/vizualni/whoops v0.7.1 h1:1HUk7HZOQstyx50cEEQ08rZCqMmlNfpu1KdWZ2aMWJQ=
1085-
github.com/vizualni/whoops v0.7.1/go.mod h1:V5mMF1aBNKTtOpQvlka6V/5F6AaUlCOw3exsBFYPX/M=
10861086
github.com/vmihailenco/msgpack/v5 v5.1.4/go.mod h1:C5gboKD0TJPqWDTVTtrQNfRbiBwHZGo8UTqP/9/XvLI=
10871087
github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI=
10881088
github.com/volumefi/lens-1 v0.3.1-0.20220502123822-4cb1add1e482 h1:8RYuDx9ovDLc3qpueA7D+WFWoTNps/nT40NijG2gH1Y=

health/background_check.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"context"
55
"time"
66

7+
"github.com/VolumeFi/whoops"
78
"github.com/palomachain/pigeon/util/channels"
89
log "github.com/sirupsen/logrus"
9-
"github.com/vizualni/whoops"
1010
)
1111

1212
const (

health/wait_for_chain_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import (
55
"testing"
66
"time"
77

8+
"github.com/VolumeFi/whoops"
89
. "github.com/onsi/ginkgo/v2"
910
. "github.com/onsi/gomega"
1011
"github.com/palomachain/pigeon/health/mocks"
1112
"github.com/stretchr/testify/mock"
12-
"github.com/vizualni/whoops"
1313
)
1414

1515
func TestGinkgo(t *testing.T) {

relayer/build_processors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import (
44
"context"
55
"math/big"
66

7+
"github.com/VolumeFi/whoops"
78
"github.com/ethereum/go-ethereum/common"
89
"github.com/palomachain/pigeon/chain"
910
"github.com/palomachain/pigeon/errors"
1011
evmtypes "github.com/palomachain/pigeon/types/paloma/x/evm/types"
1112
log "github.com/sirupsen/logrus"
12-
"github.com/vizualni/whoops"
1313
)
1414

1515
func (r *Relayer) buildProcessors(ctx context.Context) ([]chain.Processor, error) {

relayer/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package relayer
22

33
import (
4+
"github.com/VolumeFi/whoops"
45
"github.com/palomachain/pigeon/errors"
5-
"github.com/vizualni/whoops"
66
)
77

88
var (

relayer/health_check.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"errors"
66
"strings"
77

8+
"github.com/VolumeFi/whoops"
89
"github.com/palomachain/pigeon/chain/evm"
910
log "github.com/sirupsen/logrus"
10-
"github.com/vizualni/whoops"
1111

1212
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
1313
)

relayer/health_check_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import (
44
"context"
55
"testing"
66

7+
"github.com/VolumeFi/whoops"
78
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
89
. "github.com/onsi/ginkgo/v2"
910
. "github.com/onsi/gomega"
1011
chainmocks "github.com/palomachain/pigeon/chain/mocks"
1112
"github.com/palomachain/pigeon/config"
1213
"github.com/palomachain/pigeon/relayer/mocks"
1314
"github.com/stretchr/testify/mock"
14-
"github.com/vizualni/whoops"
1515

1616
evmtypes "github.com/palomachain/pigeon/types/paloma/x/evm/types"
1717
)

relayer/keep_alive_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"testing"
66
"time"
77

8+
"github.com/VolumeFi/whoops"
89
"github.com/palomachain/pigeon/relayer/mocks"
910
timemock "github.com/palomachain/pigeon/util/time/mocks"
1011
"github.com/stretchr/testify/mock"
11-
"github.com/vizualni/whoops"
1212
)
1313

1414
func TestKeepAlive(t *testing.T) {

0 commit comments

Comments
 (0)