diff --git a/README.md b/README.md index 6f38bcab..88441f4f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/chains/evm/chain.go b/chains/evm/chain.go index 121ba39b..26a4e297 100644 --- a/chains/evm/chain.go +++ b/chains/evm/chain.go @@ -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" + "github.comsygmaprotcolsygma-core/types" ) type EventListener interface { diff --git a/chains/evm/client/util_test.go b/chains/evm/client/util_test.go index a622dd7e..adaa5103 100644 --- a/chains/evm/client/util_test.go +++ b/chains/evm/client/util_test.go @@ -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 { diff --git a/chains/evm/contracts/contract.go b/chains/evm/contracts/contract.go index 105d251e..a6f8f2f7 100644 --- a/chains/evm/contracts/contract.go +++ b/chains/evm/contracts/contract.go @@ -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" + "github.comsygmaprotcolsygma-core/chains/evm/transactor" ) const DefaultDeployGasLimit = 6000000 diff --git a/chains/evm/contracts/contract_test.go b/chains/evm/contracts/contract_test.go index cd395b1a..51e792b7 100644 --- a/chains/evm/contracts/contract_test.go +++ b/chains/evm/contracts/contract_test.go @@ -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" ) diff --git a/chains/evm/executor/message-handler.go b/chains/evm/executor/message-handler.go index 6803a945..c722c41a 100644 --- a/chains/evm/executor/message-handler.go +++ b/chains/evm/executor/message-handler.go @@ -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 { diff --git a/chains/evm/listener/listener.go b/chains/evm/listener/listener.go index e6429bc2..0fe496cb 100644 --- a/chains/evm/listener/listener.go +++ b/chains/evm/listener/listener.go @@ -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" diff --git a/chains/evm/transactor/gas/london_test.go b/chains/evm/transactor/gas/london_test.go index 182eb28c..e29b3c47 100644 --- a/chains/evm/transactor/gas/london_test.go +++ b/chains/evm/transactor/gas/london_test.go @@ -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 { diff --git a/chains/evm/transactor/gas/static_test.go b/chains/evm/transactor/gas/static_test.go index da15e869..41c70c0c 100644 --- a/chains/evm/transactor/gas/static_test.go +++ b/chains/evm/transactor/gas/static_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/suite" - "github.com/ChainSafe/sygma-core/mock" + "github.comsygmaprotcolsygma-core/mock" ) type StaticGasPriceTestSuite struct { diff --git a/chains/evm/transactor/monitored/monitored.go b/chains/evm/transactor/monitored/monitored.go index e958d227..45a7d8af 100644 --- a/chains/evm/transactor/monitored/monitored.go +++ b/chains/evm/transactor/monitored/monitored.go @@ -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" ) type GasPricer interface { diff --git a/chains/evm/transactor/monitored/monitored_test.go b/chains/evm/transactor/monitored/monitored_test.go index 215c2da2..f6d792db 100644 --- a/chains/evm/transactor/monitored/monitored_test.go +++ b/chains/evm/transactor/monitored/monitored_test.go @@ -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" ) diff --git a/chains/evm/transactor/signAndSend/signAndSend.go b/chains/evm/transactor/signAndSend/signAndSend.go index 10531017..8e8f3511 100644 --- a/chains/evm/transactor/signAndSend/signAndSend.go +++ b/chains/evm/transactor/signAndSend/signAndSend.go @@ -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 { diff --git a/chains/evm/transactor/signAndSend/signAndSend_test.go b/chains/evm/transactor/signAndSend/signAndSend_test.go index 09782ca0..4dea7c5d 100644 --- a/chains/evm/transactor/signAndSend/signAndSend_test.go +++ b/chains/evm/transactor/signAndSend/signAndSend_test.go @@ -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" ) diff --git a/chains/evm/transactor/transaction/transaction.go b/chains/evm/transactor/transaction/transaction.go index a97d5e2d..18d4de69 100644 --- a/chains/evm/transactor/transaction/transaction.go +++ b/chains/evm/transactor/transaction/transaction.go @@ -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) diff --git a/chains/evm/transactor/transaction/transaction_test.go b/chains/evm/transactor/transaction/transaction_test.go index 41aa9bd0..383ece27 100644 --- a/chains/evm/transactor/transaction/transaction_test.go +++ b/chains/evm/transactor/transaction/transaction_test.go @@ -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" diff --git a/chains/substrate/chain.go b/chains/substrate/chain.go index acd3358d..31c3065d 100644 --- a/chains/substrate/chain.go +++ b/chains/substrate/chain.go @@ -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" + "github.comsygmaprotcolsygma-core/store" + "github.comsygmaprotcolsygma-core/types" ) type BatchProposalExecutor interface { diff --git a/chains/substrate/client/client.go b/chains/substrate/client/client.go index 68040240..9cb52a5a 100644 --- a/chains/substrate/client/client.go +++ b/chains/substrate/client/client.go @@ -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" + "github.comsygmaprotcolsygma-core/chains/substrate/events" ) type SubstrateClient struct { diff --git a/chains/substrate/executor/message-handler.go b/chains/substrate/executor/message-handler.go index ea8ef225..a885e61a 100644 --- a/chains/substrate/executor/message-handler.go +++ b/chains/substrate/executor/message-handler.go @@ -6,7 +6,7 @@ package executor import ( "fmt" - "github.com/ChainSafe/sygma-core/types" + "github.comsygmaprotcolsygma-core/types" "github.com/rs/zerolog/log" ) diff --git a/chains/substrate/executor/message-handler_test.go b/chains/substrate/executor/message-handler_test.go index 8bed70a3..fae517ae 100644 --- a/chains/substrate/executor/message-handler_test.go +++ b/chains/substrate/executor/message-handler_test.go @@ -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" ) diff --git a/chains/substrate/listener/listener.go b/chains/substrate/listener/listener.go index 5aa9e9b6..85653703 100644 --- a/chains/substrate/listener/listener.go +++ b/chains/substrate/listener/listener.go @@ -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 { diff --git a/go.mod b/go.mod index a4227d5b..5c44f7ff 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ChainSafe/sygma-core +module github.com/sygmaprotcol/sygma-core go 1.19 diff --git a/mock/client.go b/mock/client.go index 81eb1efb..5b4ab68b 100644 --- a/mock/client.go +++ b/mock/client.go @@ -13,7 +13,7 @@ import ( big "math/big" reflect "reflect" - client "github.com/ChainSafe/sygma-core/chains/evm/client" + client "github.comsygmaprotcolsygma-core/chains/evm/client" common "github.com/ethereum/go-ethereum/common" types "github.com/ethereum/go-ethereum/core/types" gomock "go.uber.org/mock/gomock" diff --git a/mock/relayer.go b/mock/relayer.go index 3e202412..6360cead 100644 --- a/mock/relayer.go +++ b/mock/relayer.go @@ -12,7 +12,7 @@ import ( context "context" reflect "reflect" - types "github.com/ChainSafe/sygma-core/types" + types "github.comsygmaprotcolsygma-core/types" gomock "go.uber.org/mock/gomock" ) diff --git a/mock/transact.go b/mock/transact.go index 5a41eb0a..849c3616 100644 --- a/mock/transact.go +++ b/mock/transact.go @@ -11,7 +11,7 @@ package mock import ( reflect "reflect" - transactor "github.com/ChainSafe/sygma-core/chains/evm/transactor" + transactor "github.comsygmaprotcolsygma-core/chains/evm/transactor" common "github.com/ethereum/go-ethereum/common" gomock "go.uber.org/mock/gomock" ) diff --git a/observability/metrics.go b/observability/metrics.go index 0d3d4397..91d48d33 100644 --- a/observability/metrics.go +++ b/observability/metrics.go @@ -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" diff --git a/relayer/relayer.go b/relayer/relayer.go index 7cd3defa..f8fe29a6 100644 --- a/relayer/relayer.go +++ b/relayer/relayer.go @@ -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 { diff --git a/relayer/relayer_test.go b/relayer/relayer_test.go index f18bf4b0..e3c05955 100644 --- a/relayer/relayer_test.go +++ b/relayer/relayer_test.go @@ -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" ) diff --git a/store/blockstore_test.go b/store/blockstore_test.go index c3f60958..5bc5f087 100644 --- a/store/blockstore_test.go +++ b/store/blockstore_test.go @@ -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" ) diff --git a/store/noncestore_test.go b/store/noncestore_test.go index 3d375bf8..0c0d1ebb 100644 --- a/store/noncestore_test.go +++ b/store/noncestore_test.go @@ -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" )