Skip to content

Commit

Permalink
Switch organization to sygma in package name
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrun5 committed Oct 18, 2023
1 parent 299cefd commit cc8c6c7
Show file tree
Hide file tree
Showing 29 changed files with 52 additions and 54 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ When implementing a change:
7. Title the PR in a meaningful way and describe the rationale and the thought process in the PR description.
8. Write clean, thoughtful, and detailed [commit messages](https://chris.beams.io/posts/git-commit/).

If change entails an update that needs to be documented, please submit a PR to [chainbridge-docs](https://github.com/ChainSafe/chainbridge-docs/tree/develop/docs) repo.


### Submiting a PR

Expand Down
4 changes: 2 additions & 2 deletions chains/evm/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"context"
"math/big"

"github.com/ChainSafe/sygma-core/store"
"github.com/ChainSafe/sygma-core/types"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.comsygmaprotcolsygma-core/store"

Check failure on line 12 in chains/evm/chain.go

View workflow job for this annotation

GitHub Actions / vet-check

no required module provides package github.comsygmaprotcolsygma-core/store; to add it:

Check failure on line 12 in chains/evm/chain.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, ubuntu-latest)

no required module provides package github.comsygmaprotcolsygma-core/store; to add it:
"github.comsygmaprotcolsygma-core/types"

Check failure on line 13 in chains/evm/chain.go

View workflow job for this annotation

GitHub Actions / vet-check

no required module provides package github.comsygmaprotcolsygma-core/types; to add it:

Check failure on line 13 in chains/evm/chain.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, ubuntu-latest)

no required module provides package github.comsygmaprotcolsygma-core/types; to add it:
)

type EventListener interface {
Expand Down
4 changes: 2 additions & 2 deletions chains/evm/client/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"math/big"
"testing"

"github.com/ChainSafe/sygma-core/chains/evm/client"
"github.com/ChainSafe/sygma-core/crypto/secp256k1"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/stretchr/testify/suite"
"github.comsygmaprotcolsygma-core/chains/evm/client"
"github.comsygmaprotcolsygma-core/crypto/secp256k1"
)

type UtilsTestSuite struct {
Expand Down
4 changes: 2 additions & 2 deletions chains/evm/contracts/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"context"
"fmt"

"github.com/ChainSafe/sygma-core/chains/evm/client"
"github.com/ChainSafe/sygma-core/chains/evm/transactor"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/rs/zerolog/log"
"github.comsygmaprotcolsygma-core/chains/evm/client"

Check failure on line 11 in chains/evm/contracts/contract.go

View workflow job for this annotation

GitHub Actions / vet-check

no required module provides package github.comsygmaprotcolsygma-core/chains/evm/client; to add it:

Check failure on line 11 in chains/evm/contracts/contract.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, ubuntu-latest)

no required module provides package github.comsygmaprotcolsygma-core/chains/evm/client; to add it:
"github.comsygmaprotcolsygma-core/chains/evm/transactor"

Check failure on line 12 in chains/evm/contracts/contract.go

View workflow job for this annotation

GitHub Actions / vet-check

no required module provides package github.comsygmaprotcolsygma-core/chains/evm/transactor; to add it:

Check failure on line 12 in chains/evm/contracts/contract.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, ubuntu-latest)

no required module provides package github.comsygmaprotcolsygma-core/chains/evm/transactor; to add it:
)

const DefaultDeployGasLimit = 6000000
Expand Down
4 changes: 2 additions & 2 deletions chains/evm/contracts/contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"strings"
"testing"

"github.com/ChainSafe/sygma-core/chains/evm/transactor"
"github.com/ChainSafe/sygma-core/mock"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/suite"
"github.comsygmaprotcolsygma-core/chains/evm/transactor"
"github.comsygmaprotcolsygma-core/mock"
"go.uber.org/mock/gomock"
)

Expand Down
2 changes: 1 addition & 1 deletion chains/evm/executor/message-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package executor
import (
"fmt"

"github.com/ChainSafe/sygma-core/types"
"github.com/ethereum/go-ethereum/common"
"github.com/rs/zerolog/log"
"github.comsygmaprotcolsygma-core/types"
)

type HandlerMatcher interface {
Expand Down
2 changes: 1 addition & 1 deletion chains/evm/listener/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"math/big"
"time"

"github.com/ChainSafe/sygma-core/store"
"github.comsygmaprotcolsygma-core/store"

"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
Expand Down
2 changes: 1 addition & 1 deletion chains/evm/transactor/gas/london_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/suite"
"go.uber.org/mock/gomock"

"github.com/ChainSafe/sygma-core/mock"
"github.comsygmaprotcolsygma-core/mock"
)

type LondonGasPriceTestSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion chains/evm/transactor/gas/static_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/stretchr/testify/suite"

"github.com/ChainSafe/sygma-core/mock"
"github.comsygmaprotcolsygma-core/mock"
)

type StaticGasPriceTestSuite struct {
Expand Down
6 changes: 3 additions & 3 deletions chains/evm/transactor/monitored/monitored.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/rs/zerolog/log"

"github.com/ChainSafe/sygma-core/chains/evm/client"
"github.com/ChainSafe/sygma-core/chains/evm/transactor"
"github.com/ChainSafe/sygma-core/chains/evm/transactor/transaction"
"github.comsygmaprotcolsygma-core/chains/evm/client"
"github.comsygmaprotcolsygma-core/chains/evm/transactor"
"github.comsygmaprotcolsygma-core/chains/evm/transactor/transaction"

Check failure on line 15 in chains/evm/transactor/monitored/monitored.go

View workflow job for this annotation

GitHub Actions / vet-check

no required module provides package github.comsygmaprotcolsygma-core/chains/evm/transactor/transaction; to add it:

Check failure on line 15 in chains/evm/transactor/monitored/monitored.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, ubuntu-latest)

no required module provides package github.comsygmaprotcolsygma-core/chains/evm/transactor/transaction; to add it:
)

type GasPricer interface {
Expand Down
8 changes: 4 additions & 4 deletions chains/evm/transactor/monitored/monitored_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
"testing"
"time"

"github.com/ChainSafe/sygma-core/chains/evm/transactor"
"github.com/ChainSafe/sygma-core/chains/evm/transactor/monitored"
"github.com/ChainSafe/sygma-core/chains/evm/transactor/transaction"
"github.com/ChainSafe/sygma-core/mock"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/stretchr/testify/suite"
"github.comsygmaprotcolsygma-core/chains/evm/transactor"
"github.comsygmaprotcolsygma-core/chains/evm/transactor/monitored"
"github.comsygmaprotcolsygma-core/chains/evm/transactor/transaction"
"github.comsygmaprotcolsygma-core/mock"
"go.uber.org/mock/gomock"
)

Expand Down
6 changes: 3 additions & 3 deletions chains/evm/transactor/signAndSend/signAndSend.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"context"
"math/big"

"github.com/ChainSafe/sygma-core/chains/evm/client"
"github.com/ChainSafe/sygma-core/chains/evm/transactor"
"github.com/ChainSafe/sygma-core/chains/evm/transactor/transaction"
"github.com/ethereum/go-ethereum/common"
"github.com/rs/zerolog/log"
"github.comsygmaprotcolsygma-core/chains/evm/client"
"github.comsygmaprotcolsygma-core/chains/evm/transactor"
"github.comsygmaprotcolsygma-core/chains/evm/transactor/transaction"
)

type GasPricer interface {
Expand Down
8 changes: 4 additions & 4 deletions chains/evm/transactor/signAndSend/signAndSend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"math/big"
"testing"

"github.com/ChainSafe/sygma-core/chains/evm/transactor"
"github.com/ChainSafe/sygma-core/chains/evm/transactor/signAndSend"
"github.com/ChainSafe/sygma-core/chains/evm/transactor/transaction"
"github.com/ChainSafe/sygma-core/mock"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/stretchr/testify/suite"
"github.comsygmaprotcolsygma-core/chains/evm/transactor"
"github.comsygmaprotcolsygma-core/chains/evm/transactor/signAndSend"
"github.comsygmaprotcolsygma-core/chains/evm/transactor/transaction"
"github.comsygmaprotcolsygma-core/mock"
"go.uber.org/mock/gomock"
)

Expand Down
2 changes: 1 addition & 1 deletion chains/evm/transactor/transaction/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"math/big"

"github.com/ChainSafe/sygma-core/chains/evm/client"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.comsygmaprotcolsygma-core/chains/evm/client"
)

type TxFabric func(nonce uint64, to *common.Address, amount *big.Int, gasLimit uint64, gasPrices []*big.Int, data []byte) (client.CommonTransaction, error)
Expand Down
8 changes: 4 additions & 4 deletions chains/evm/transactor/transaction/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"math/big"
"testing"

"github.com/ChainSafe/sygma-core/chains/evm/transactor/gas"
"github.com/ChainSafe/sygma-core/chains/evm/transactor/transaction"
"github.com/ChainSafe/sygma-core/crypto/secp256k1"
"github.com/ChainSafe/sygma-core/mock"
"github.comsygmaprotcolsygma-core/chains/evm/transactor/gas"
"github.comsygmaprotcolsygma-core/chains/evm/transactor/transaction"
"github.comsygmaprotcolsygma-core/crypto/secp256k1"
"github.comsygmaprotcolsygma-core/mock"

"github.com/ethereum/go-ethereum/core/types"

Expand Down
6 changes: 3 additions & 3 deletions chains/substrate/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"context"
"math/big"

"github.com/ChainSafe/sygma-core/chains/substrate/client"
"github.com/ChainSafe/sygma-core/store"
"github.com/ChainSafe/sygma-core/types"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.comsygmaprotcolsygma-core/chains/substrate/client"

Check failure on line 9 in chains/substrate/chain.go

View workflow job for this annotation

GitHub Actions / vet-check

no required module provides package github.comsygmaprotcolsygma-core/chains/substrate/client; to add it:

Check failure on line 9 in chains/substrate/chain.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, ubuntu-latest)

no required module provides package github.comsygmaprotcolsygma-core/chains/substrate/client; to add it:
"github.comsygmaprotcolsygma-core/store"
"github.comsygmaprotcolsygma-core/types"
)

type BatchProposalExecutor interface {
Expand Down
4 changes: 2 additions & 2 deletions chains/substrate/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (
"sync"
"time"

"github.com/ChainSafe/sygma-core/chains/substrate/connection"
"github.com/ChainSafe/sygma-core/chains/substrate/events"
"github.com/centrifuge/go-substrate-rpc-client/v4/rpc/author"
"github.com/centrifuge/go-substrate-rpc-client/v4/scale"
"github.com/centrifuge/go-substrate-rpc-client/v4/signature"
"github.com/centrifuge/go-substrate-rpc-client/v4/types"
"github.com/rs/zerolog/log"
"github.comsygmaprotcolsygma-core/chains/substrate/connection"

Check failure on line 19 in chains/substrate/client/client.go

View workflow job for this annotation

GitHub Actions / vet-check

no required module provides package github.comsygmaprotcolsygma-core/chains/substrate/connection; to add it:

Check failure on line 19 in chains/substrate/client/client.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, ubuntu-latest)

no required module provides package github.comsygmaprotcolsygma-core/chains/substrate/connection; to add it:
"github.comsygmaprotcolsygma-core/chains/substrate/events"

Check failure on line 20 in chains/substrate/client/client.go

View workflow job for this annotation

GitHub Actions / vet-check

no required module provides package github.comsygmaprotcolsygma-core/chains/substrate/events; to add it:

Check failure on line 20 in chains/substrate/client/client.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, ubuntu-latest)

no required module provides package github.comsygmaprotcolsygma-core/chains/substrate/events; to add it:
)

type SubstrateClient struct {
Expand Down
2 changes: 1 addition & 1 deletion chains/substrate/executor/message-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package executor
import (
"fmt"

"github.com/ChainSafe/sygma-core/types"
"github.comsygmaprotcolsygma-core/types"

"github.com/rs/zerolog/log"
)
Expand Down
4 changes: 2 additions & 2 deletions chains/substrate/executor/message-handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"testing"
"unsafe"

"github.com/ChainSafe/sygma-core/chains/substrate/executor"
"github.com/ChainSafe/sygma-core/types"
"github.com/centrifuge/go-substrate-rpc-client/v4/scale"
"github.com/centrifuge/go-substrate-rpc-client/v4/signature"
substrateTypes "github.com/centrifuge/go-substrate-rpc-client/v4/types"
"github.com/ethereum/go-ethereum/common"
"github.comsygmaprotcolsygma-core/chains/substrate/executor"
"github.comsygmaprotcolsygma-core/types"

"github.com/stretchr/testify/suite"
)
Expand Down
2 changes: 1 addition & 1 deletion chains/substrate/listener/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"math/big"
"time"

"github.com/ChainSafe/sygma-core/store"
"github.com/centrifuge/go-substrate-rpc-client/v4/registry/parser"
"github.com/centrifuge/go-substrate-rpc-client/v4/types"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.comsygmaprotcolsygma-core/store"
)

type EventHandler interface {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/ChainSafe/sygma-core
module github.com/sygmaprotcol/sygma-core

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion mock/client.go

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

2 changes: 1 addition & 1 deletion mock/relayer.go

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

2 changes: 1 addition & 1 deletion mock/transact.go

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

2 changes: 1 addition & 1 deletion observability/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"
"time"

"github.com/ChainSafe/sygma-core/types"
"github.comsygmaprotcolsygma-core/types"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp"
"go.opentelemetry.io/otel/metric"
Expand Down
2 changes: 1 addition & 1 deletion relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package relayer
import (
"context"

"github.com/ChainSafe/sygma-core/types"
"github.com/rs/zerolog/log"
"github.comsygmaprotcolsygma-core/types"
)

type DepositMeter interface {
Expand Down
4 changes: 2 additions & 2 deletions relayer/relayer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"testing"

"github.com/ChainSafe/sygma-core/mock"
"github.com/ChainSafe/sygma-core/types"
"github.com/stretchr/testify/suite"
"github.comsygmaprotcolsygma-core/mock"
"github.comsygmaprotcolsygma-core/types"
"go.uber.org/mock/gomock"
)

Expand Down
4 changes: 2 additions & 2 deletions store/blockstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"math/big"
"testing"

"github.com/ChainSafe/sygma-core/mock"
"github.com/ChainSafe/sygma-core/store"
"github.com/stretchr/testify/suite"
"github.com/syndtr/goleveldb/leveldb"
"github.comsygmaprotcolsygma-core/mock"
"github.comsygmaprotcolsygma-core/store"
"go.uber.org/mock/gomock"
)

Expand Down
4 changes: 2 additions & 2 deletions store/noncestore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"math/big"
"testing"

"github.com/ChainSafe/sygma-core/mock"
"github.com/ChainSafe/sygma-core/store"
"github.com/stretchr/testify/suite"
"github.com/syndtr/goleveldb/leveldb"
"github.comsygmaprotcolsygma-core/mock"
"github.comsygmaprotcolsygma-core/store"
"go.uber.org/mock/gomock"
)

Expand Down

0 comments on commit cc8c6c7

Please sign in to comment.