Skip to content

Commit

Permalink
Switch organization to sygma in package name (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrun5 authored Oct 19, 2023
1 parent 0f397e3 commit 1d184c8
Show file tree
Hide file tree
Showing 28 changed files with 55 additions and 57 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/relayer/message"
"github.com/ChainSafe/sygma-core/relayer/proposal"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/sygmaprotocol/sygma-core/relayer/message"
"github.com/sygmaprotocol/sygma-core/relayer/proposal"
)

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.com/sygmaprotocol/sygma-core/chains/evm/client"
"github.com/sygmaprotocol/sygma-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.com/sygmaprotocol/sygma-core/chains/evm/client"
"github.com/sygmaprotocol/sygma-core/chains/evm/transactor"
)

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.com/sygmaprotocol/sygma-core/chains/evm/transactor"
"github.com/sygmaprotocol/sygma-core/mock"
"go.uber.org/mock/gomock"
)

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.com/sygmaprotocol/sygma-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.com/sygmaprotocol/sygma-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.com/sygmaprotocol/sygma-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.com/sygmaprotocol/sygma-core/chains/evm/client"
"github.com/sygmaprotocol/sygma-core/chains/evm/transactor"
"github.com/sygmaprotocol/sygma-core/chains/evm/transactor/transaction"
)

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.com/sygmaprotocol/sygma-core/chains/evm/transactor"
"github.com/sygmaprotocol/sygma-core/chains/evm/transactor/monitored"
"github.com/sygmaprotocol/sygma-core/chains/evm/transactor/transaction"
"github.com/sygmaprotocol/sygma-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.com/sygmaprotocol/sygma-core/chains/evm/client"
"github.com/sygmaprotocol/sygma-core/chains/evm/transactor"
"github.com/sygmaprotocol/sygma-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.com/sygmaprotocol/sygma-core/chains/evm/transactor"
"github.com/sygmaprotocol/sygma-core/chains/evm/transactor/signAndSend"
"github.com/sygmaprotocol/sygma-core/chains/evm/transactor/transaction"
"github.com/sygmaprotocol/sygma-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.com/sygmaprotocol/sygma-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.com/sygmaprotocol/sygma-core/chains/evm/transactor/gas"
"github.com/sygmaprotocol/sygma-core/chains/evm/transactor/transaction"
"github.com/sygmaprotocol/sygma-core/crypto/secp256k1"
"github.com/sygmaprotocol/sygma-core/mock"

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

Expand Down
4 changes: 2 additions & 2 deletions chains/substrate/chain.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/relayer/message"
"github.com/ChainSafe/sygma-core/relayer/proposal"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/sygmaprotocol/sygma-core/relayer/message"
"github.com/sygmaprotocol/sygma-core/relayer/proposal"
)

type ProposalExecutor 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.com/sygmaprotocol/sygma-core/chains/substrate/connection"
"github.com/sygmaprotocol/sygma-core/chains/substrate/events"
)

type SubstrateClient struct {
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.com/sygmaprotocol/sygma-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/sygmaprotocol/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.

4 changes: 2 additions & 2 deletions mock/message.go

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

4 changes: 2 additions & 2 deletions 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 relayer/message/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package message
import (
"fmt"

"github.com/ChainSafe/sygma-core/relayer/proposal"
"github.com/sygmaprotocol/sygma-core/relayer/proposal"
)

type Handler interface {
Expand Down
6 changes: 3 additions & 3 deletions relayer/message/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"testing"

"github.com/ChainSafe/sygma-core/mock"
"github.com/ChainSafe/sygma-core/relayer/message"
"github.com/ChainSafe/sygma-core/relayer/proposal"
"github.com/stretchr/testify/suite"
"github.com/sygmaprotocol/sygma-core/mock"
"github.com/sygmaprotocol/sygma-core/relayer/message"
"github.com/sygmaprotocol/sygma-core/relayer/proposal"
"go.uber.org/mock/gomock"
)

Expand Down
4 changes: 2 additions & 2 deletions relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ package relayer
import (
"context"

"github.com/ChainSafe/sygma-core/relayer/message"
"github.com/ChainSafe/sygma-core/relayer/proposal"
"github.com/rs/zerolog/log"
"github.com/sygmaprotocol/sygma-core/relayer/message"
"github.com/sygmaprotocol/sygma-core/relayer/proposal"
)

type RelayedChain interface {
Expand Down
6 changes: 3 additions & 3 deletions relayer/relayer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"testing"
"time"

"github.com/ChainSafe/sygma-core/mock"
"github.com/ChainSafe/sygma-core/relayer/message"
"github.com/ChainSafe/sygma-core/relayer/proposal"
"github.com/stretchr/testify/suite"
"github.com/sygmaprotocol/sygma-core/mock"
"github.com/sygmaprotocol/sygma-core/relayer/message"
"github.com/sygmaprotocol/sygma-core/relayer/proposal"
"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,9 +5,9 @@ import (
"math/big"
"testing"

"github.com/ChainSafe/sygma-core/mock"
"github.com/ChainSafe/sygma-core/store"
"github.com/stretchr/testify/suite"
"github.com/sygmaprotocol/sygma-core/mock"
"github.com/sygmaprotocol/sygma-core/store"
"github.com/syndtr/goleveldb/leveldb"
"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,9 +5,9 @@ import (
"math/big"
"testing"

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

0 comments on commit 1d184c8

Please sign in to comment.