From 14166590585acd33df457aa5179f3204cbef7749 Mon Sep 17 00:00:00 2001 From: Elrond/ Date: Mon, 9 Jan 2023 13:02:07 +0200 Subject: [PATCH] FIX: Rename to multiversx --- README.md | 5 +- core/accumulator/timeAccumulator.go | 4 +- core/accumulator/timeAccumulator_test.go | 8 +-- core/alarm/alarm_test.go | 4 +- core/appStatusPolling/appStatusPolling.go | 4 +- .../appStatusPolling/appStatusPolling_test.go | 6 +-- core/check/ifNil_test.go | 2 +- core/check/ifZero_test.go | 2 +- core/closing/safeChanCloser_test.go | 2 +- core/closing/shuffleOutCloser.go | 8 +-- core/closing/shuffleOutCloser_test.go | 8 +-- core/computers.go | 4 +- core/computers_test.go | 6 +-- core/constants.go | 50 +++++++++---------- core/converters.go | 6 +-- core/converters_test.go | 6 +-- .../concurrentShardedCountsWithSize.go | 2 +- .../concurrentShardedCountsWithSize_test.go | 2 +- core/file_test.go | 2 +- core/keyValStorage/keyValStorage.go | 2 +- core/keyValStorage/keyValStorage_test.go | 4 +- core/libLocator/vmLocator_darwin.go | 3 +- core/libLocator/vmLocator_linux.go | 3 +- core/libLocator/vmLocator_windows.go | 3 +- core/loggingFunctions_test.go | 2 +- core/mock/headerHandlerStub.go | 2 +- core/nodetype/nodeTypeProvider.go | 2 +- core/nodetype/nodeTypeProvider_test.go | 4 +- core/partitioning/dataSplit.go | 2 +- core/partitioning/dataSplit_test.go | 4 +- core/partitioning/simpleDataPacker.go | 6 +-- core/partitioning/simpleDataPacker_test.go | 6 +-- core/partitioning/sizeDataPacker.go | 6 +-- core/partitioning/sizeDataPacker_test.go | 10 ++-- core/pubkeyConverter/bech32PubkeyConverter.go | 4 +- .../bech32PubkeyConverter_test.go | 6 +-- .../hexPubkeyConverter_test.go | 4 +- core/random/fisherYates_test.go | 2 +- core/sharding/multiShardCoordinator.go | 2 +- core/sliceUtil/sliceUtil_test.go | 2 +- core/stopWatch_test.go | 2 +- core/throttler/numGoRoutinesThrottler.go | 2 +- core/throttler/numGoRoutinesThrottler_test.go | 6 +-- core/transaction/transactionSorter.go | 6 +-- core/transaction/transactionSorter_test.go | 8 +-- core/trimmers_test.go | 2 +- core/versioning/txVersionChecker.go | 4 +- core/versioning/txVersionChecker_test.go | 4 +- core/versioning/versionComparator.go | 2 +- core/versioning/versionComparator_test.go | 4 +- core/watchdog/watchdog.go | 6 +-- core/watchdog/watchdog_test.go | 8 +-- data/api/apiBlock.go | 4 +- data/api/apiBlock_test.go | 2 +- data/api/apiHyperBlock.go | 2 +- data/api/options.go | 2 +- data/batch/batch.go | 2 +- data/block/block.go | 6 +-- data/block/block.pb.go | 6 +-- data/block/block.proto | 4 +- data/block/blockV2.go | 8 +-- data/block/blockV2.pb.go | 6 +-- data/block/blockV2.proto | 4 +- data/block/blockV2_test.go | 8 +-- data/block/block_test.go | 6 +-- data/block/economicsHandler.go | 2 +- data/block/epochStartHandler.go | 2 +- data/block/epochStartShardDataHandler.go | 2 +- data/block/metaBlock.go | 8 +-- data/block/metaBlock.pb.go | 28 +++++------ data/block/metaBlock.proto | 26 +++++----- data/block/metaBlock_test.go | 8 +-- data/block/miniBlockHeader.go | 2 +- data/block/miniBlockHeader_test.go | 2 +- data/block/peerBlock.go | 2 +- data/block/shardDataHandler.go | 2 +- data/block/trigger.go | 4 +- data/block/trigger_test.go | 2 +- data/esdt/esdt.go | 2 +- data/esdt/esdt.pb.go | 4 +- data/esdt/proto/esdt.proto | 4 +- data/generatedCode.md | 4 +- data/guardians/guardians.go | 2 +- data/interface.go | 2 +- data/metrics/metrics.go | 2 +- data/mock/shardCoordinatorMock.go | 2 +- data/outport/dtos.go | 2 +- data/outport/txWithFee.go | 2 +- data/outport/txWithFee_test.go | 2 +- data/receipt/receipt.go | 4 +- data/receipt/receipt.pb.go | 4 +- data/receipt/receipt.proto | 2 +- data/receipt/receipt_test.go | 2 +- data/rewardTx/rewardTx.go | 4 +- data/rewardTx/rewardTx.pb.go | 4 +- data/rewardTx/rewardTx.proto | 2 +- data/rewardTx/rewardTx_test.go | 4 +- data/scheduled/scheduled.go | 10 ++-- data/scheduled/scheduled.pb.go | 12 ++--- data/scheduled/scheduled.proto | 10 ++-- data/scheduled/scheduled_test.go | 10 ++-- .../smartContractResult.go | 4 +- .../smartContractResult.pb.go | 10 ++-- .../smartContractResult.proto | 6 +-- .../smartContractResult_test.go | 4 +- data/transaction/apiTransactionResult.go | 4 +- data/transaction/interface.go | 2 +- data/transaction/log.go | 4 +- data/transaction/log_test.go | 4 +- data/transaction/transaction.go | 8 +-- data/transaction/transaction.pb.go | 4 +- data/transaction/transaction.proto | 2 +- data/transaction/transaction_test.go | 8 +-- .../uint64ByteSlice/bigEndianConverter.go | 2 +- .../bigEndianConverter_test.go | 6 +-- display/placeholders_test.go | 2 +- go.mod | 4 +- go.sum | 4 +- hashing/blake2b/blake2b.go | 2 +- hashing/blake2b/blake2b_test.go | 2 +- hashing/factory/hasherFactory.go | 8 +-- hashing/factory/hasherFactory_test.go | 6 +-- hashing/fnv/fnv.go | 2 +- hashing/hasher_test.go | 10 ++-- hashing/keccak/keccak.go | 2 +- hashing/sha256/sha256.go | 2 +- marshal/benchmarks_test.go | 6 +-- marshal/factory/marshalizerFactory.go | 2 +- marshal/factory/marshalizerFactory_test.go | 4 +- marshal/gogoProtoMarshalizer_test.go | 6 +-- marshal/marshalizer_test.go | 2 +- .../testStructs_test.go | 4 +- storage/lrucache/capacity/capacityLRUCache.go | 2 +- .../capacity/capacityLRUCache_test.go | 4 +- storage/lrucache/lrucache.go | 4 +- storage/lrucache/lrucache_test.go | 6 +-- storage/lrucache/simpleLRUCacheAdapter.go | 2 +- websocketOutportDriver/data/shared.go | 6 +-- websocketOutportDriver/factory/factory.go | 12 ++--- websocketOutportDriver/interface.go | 6 +-- .../mock/webSocketSenderStub.go | 2 +- websocketOutportDriver/payloadParser.go | 8 +-- websocketOutportDriver/payloadParser_test.go | 6 +-- .../sender/webSocketSender.go | 6 +-- .../sender/webSocketSender_test.go | 6 +-- .../sender/websocketClientsHolder.go | 2 +- .../sender/websocketClientsHolder_test.go | 4 +- .../tests/realtest/client/bin/main.go | 4 +- .../tests/realtest/client/client.go | 14 +++--- .../tests/realtest/server/interface.go | 4 +- .../tests/realtest/server/server.go | 12 ++--- .../websocketOutportDriverNodePart.go | 14 +++--- .../websocketOutportDriverNodePart_test.go | 16 +++--- 153 files changed, 395 insertions(+), 391 deletions(-) diff --git a/README.md b/README.md index 19c304e04..c175ef2a3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ -# elrond-go-core -elrond-go common components and data that can be used in other repositories as well +# mx-chain-core-go + +mx-chain-go common components and data that can be used in other repositories as well diff --git a/core/accumulator/timeAccumulator.go b/core/accumulator/timeAccumulator.go index 443ffbf6e..60fb7522b 100644 --- a/core/accumulator/timeAccumulator.go +++ b/core/accumulator/timeAccumulator.go @@ -8,8 +8,8 @@ import ( "sync" "time" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/check" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/check" ) var _ core.Accumulator = (*timeAccumulator)(nil) diff --git a/core/accumulator/timeAccumulator_test.go b/core/accumulator/timeAccumulator_test.go index 8d51de047..c6d9244aa 100644 --- a/core/accumulator/timeAccumulator_test.go +++ b/core/accumulator/timeAccumulator_test.go @@ -5,10 +5,10 @@ import ( "testing" "time" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/accumulator" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/core/mock" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/accumulator" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/core/mock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/core/alarm/alarm_test.go b/core/alarm/alarm_test.go index c2a7f7f03..3354ddf98 100644 --- a/core/alarm/alarm_test.go +++ b/core/alarm/alarm_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/ElrondNetwork/elrond-go-core/core/alarm" - "github.com/ElrondNetwork/elrond-go-core/core/atomic" + "github.com/multiversx/mx-chain-core-go/core/alarm" + "github.com/multiversx/mx-chain-core-go/core/atomic" "github.com/stretchr/testify/require" ) diff --git a/core/appStatusPolling/appStatusPolling.go b/core/appStatusPolling/appStatusPolling.go index 021737dd6..b688e2e67 100644 --- a/core/appStatusPolling/appStatusPolling.go +++ b/core/appStatusPolling/appStatusPolling.go @@ -5,8 +5,8 @@ import ( "sync" "time" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/check" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/check" ) const minPollingDuration = time.Second diff --git a/core/appStatusPolling/appStatusPolling_test.go b/core/appStatusPolling/appStatusPolling_test.go index 0809047b7..e3a0e2137 100644 --- a/core/appStatusPolling/appStatusPolling_test.go +++ b/core/appStatusPolling/appStatusPolling_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/appStatusPolling" - "github.com/ElrondNetwork/elrond-go-core/core/mock" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/appStatusPolling" + "github.com/multiversx/mx-chain-core-go/core/mock" "github.com/stretchr/testify/assert" ) diff --git a/core/check/ifNil_test.go b/core/check/ifNil_test.go index e82fd6661..09cbfeccc 100644 --- a/core/check/ifNil_test.go +++ b/core/check/ifNil_test.go @@ -3,7 +3,7 @@ package check_test import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/core/check" + "github.com/multiversx/mx-chain-core-go/core/check" "github.com/stretchr/testify/assert" ) diff --git a/core/check/ifZero_test.go b/core/check/ifZero_test.go index 17ed330ac..f7071b368 100644 --- a/core/check/ifZero_test.go +++ b/core/check/ifZero_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/ElrondNetwork/elrond-go-core/core/check" + "github.com/multiversx/mx-chain-core-go/core/check" "github.com/stretchr/testify/assert" ) diff --git a/core/closing/safeChanCloser_test.go b/core/closing/safeChanCloser_test.go index cab34965f..1ee5b56ad 100644 --- a/core/closing/safeChanCloser_test.go +++ b/core/closing/safeChanCloser_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/ElrondNetwork/elrond-go-core/core/check" + "github.com/multiversx/mx-chain-core-go/core/check" "github.com/stretchr/testify/assert" ) diff --git a/core/closing/shuffleOutCloser.go b/core/closing/shuffleOutCloser.go index 71aa55bf0..816b9e95e 100644 --- a/core/closing/shuffleOutCloser.go +++ b/core/closing/shuffleOutCloser.go @@ -5,10 +5,10 @@ import ( "fmt" "time" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/core/random" - "github.com/ElrondNetwork/elrond-go-core/data/endProcess" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/core/random" + "github.com/multiversx/mx-chain-core-go/data/endProcess" ) const minDuration = time.Second diff --git a/core/closing/shuffleOutCloser_test.go b/core/closing/shuffleOutCloser_test.go index 29047b94a..df5ae2894 100644 --- a/core/closing/shuffleOutCloser_test.go +++ b/core/closing/shuffleOutCloser_test.go @@ -5,10 +5,10 @@ import ( "testing" "time" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/core/mock" - "github.com/ElrondNetwork/elrond-go-core/data/endProcess" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/core/mock" + "github.com/multiversx/mx-chain-core-go/data/endProcess" "github.com/stretchr/testify/assert" ) diff --git a/core/computers.go b/core/computers.go index 371560460..687369e51 100644 --- a/core/computers.go +++ b/core/computers.go @@ -6,8 +6,8 @@ import ( "strings" "time" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/data" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/data" ) // MaxInt32 returns the maximum of two given numbers diff --git a/core/computers_test.go b/core/computers_test.go index aae41c251..1155cf4b3 100644 --- a/core/computers_test.go +++ b/core/computers_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/ElrondNetwork/elrond-go-core/core" - dataCore "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/block" + "github.com/multiversx/mx-chain-core-go/core" + dataCore "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/block" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/core/constants.go b/core/constants.go index d57bc6e2f..5417d4002 100644 --- a/core/constants.go +++ b/core/constants.go @@ -52,69 +52,69 @@ const BuiltInFunctionSetUserName = "SetUserName" // BuiltInFunctionSaveKeyValue is the key for the save key value built-in function const BuiltInFunctionSaveKeyValue = "SaveKeyValue" -// BuiltInFunctionESDTTransfer is the key for the elrond standard digital token transfer built-in function +// BuiltInFunctionESDTTransfer is the key for the electronic standard digital token transfer built-in function const BuiltInFunctionESDTTransfer = "ESDTTransfer" -// BuiltInFunctionESDTBurn is the key for the elrond standard digital token burn built-in function +// BuiltInFunctionESDTBurn is the key for the electronic standard digital token burn built-in function const BuiltInFunctionESDTBurn = "ESDTBurn" -// BuiltInFunctionESDTFreeze is the key for the elrond standard digital token freeze built-in function +// BuiltInFunctionESDTFreeze is the key for the electronic standard digital token freeze built-in function const BuiltInFunctionESDTFreeze = "ESDTFreeze" -// BuiltInFunctionESDTUnFreeze is the key for the elrond standard digital token unfreeze built-in function +// BuiltInFunctionESDTUnFreeze is the key for the electronic standard digital token unfreeze built-in function const BuiltInFunctionESDTUnFreeze = "ESDTUnFreeze" -// BuiltInFunctionESDTWipe is the key for the elrond standard digital token wipe built-in function +// BuiltInFunctionESDTWipe is the key for the electronic standard digital token wipe built-in function const BuiltInFunctionESDTWipe = "ESDTWipe" -// BuiltInFunctionESDTPause is the key for the elrond standard digital token pause built-in function +// BuiltInFunctionESDTPause is the key for the electronic standard digital token pause built-in function const BuiltInFunctionESDTPause = "ESDTPause" -// BuiltInFunctionESDTUnPause is the key for the elrond standard digital token unpause built-in function +// BuiltInFunctionESDTUnPause is the key for the electronic standard digital token unpause built-in function const BuiltInFunctionESDTUnPause = "ESDTUnPause" -// BuiltInFunctionSetESDTRole is the key for the elrond standard digital token set built-in function +// BuiltInFunctionSetESDTRole is the key for the electronic standard digital token set built-in function const BuiltInFunctionSetESDTRole = "ESDTSetRole" -// BuiltInFunctionUnSetESDTRole is the key for the elrond standard digital token unset built-in function +// BuiltInFunctionUnSetESDTRole is the key for the electronic standard digital token unset built-in function const BuiltInFunctionUnSetESDTRole = "ESDTUnSetRole" -// BuiltInFunctionESDTSetLimitedTransfer is the key for the elrond standard digital token built-in function which sets the property +// BuiltInFunctionESDTSetLimitedTransfer is the key for the electronic standard digital token built-in function which sets the property // for the token to be transferable only through accounts with transfer roles const BuiltInFunctionESDTSetLimitedTransfer = "ESDTSetLimitedTransfer" -// BuiltInFunctionESDTUnSetLimitedTransfer is the key for the elrond standard digital token built-in function which unsets the property +// BuiltInFunctionESDTUnSetLimitedTransfer is the key for the electronic standard digital token built-in function which unsets the property // for the token to be transferable only through accounts with transfer roles const BuiltInFunctionESDTUnSetLimitedTransfer = "ESDTUnSetLimitedTransfer" -// BuiltInFunctionESDTLocalMint is the key for the elrond standard digital token local mint built-in function +// BuiltInFunctionESDTLocalMint is the key for the electronic standard digital token local mint built-in function const BuiltInFunctionESDTLocalMint = "ESDTLocalMint" -// BuiltInFunctionESDTLocalBurn is the key for the elrond standard digital token local burn built-in function +// BuiltInFunctionESDTLocalBurn is the key for the electronic standard digital token local burn built-in function const BuiltInFunctionESDTLocalBurn = "ESDTLocalBurn" -// BuiltInFunctionESDTNFTTransfer is the key for the elrond standard digital token NFT transfer built-in function +// BuiltInFunctionESDTNFTTransfer is the key for the electronic standard digital token NFT transfer built-in function const BuiltInFunctionESDTNFTTransfer = "ESDTNFTTransfer" -// BuiltInFunctionESDTNFTCreate is the key for the elrond standard digital token NFT create built-in function +// BuiltInFunctionESDTNFTCreate is the key for the electronic standard digital token NFT create built-in function const BuiltInFunctionESDTNFTCreate = "ESDTNFTCreate" -// BuiltInFunctionESDTNFTAddQuantity is the key for the elrond standard digital token NFT add quantity built-in function +// BuiltInFunctionESDTNFTAddQuantity is the key for the electronic standard digital token NFT add quantity built-in function const BuiltInFunctionESDTNFTAddQuantity = "ESDTNFTAddQuantity" -// BuiltInFunctionESDTNFTCreateRoleTransfer is the key for the elrond standard digital token create role transfer function +// BuiltInFunctionESDTNFTCreateRoleTransfer is the key for the electronic standard digital token create role transfer function const BuiltInFunctionESDTNFTCreateRoleTransfer = "ESDTNFTCreateRoleTransfer" -// BuiltInFunctionESDTNFTBurn is the key for the elrond standard digital token NFT burn built-in function +// BuiltInFunctionESDTNFTBurn is the key for the electronic standard digital token NFT burn built-in function const BuiltInFunctionESDTNFTBurn = "ESDTNFTBurn" -// BuiltInFunctionESDTNFTAddURI is the key for the elrond standard digital token NFT add URI built-in function +// BuiltInFunctionESDTNFTAddURI is the key for the electronic standard digital token NFT add URI built-in function const BuiltInFunctionESDTNFTAddURI = "ESDTNFTAddURI" -// BuiltInFunctionESDTNFTUpdateAttributes is the key for the elrond standard digital token NFT update attributes built-in function +// BuiltInFunctionESDTNFTUpdateAttributes is the key for the electronic standard digital token NFT update attributes built-in function const BuiltInFunctionESDTNFTUpdateAttributes = "ESDTNFTUpdateAttributes" -// BuiltInFunctionMultiESDTNFTTransfer is the key for the elrond standard digital token multi transfer built-in function +// BuiltInFunctionMultiESDTNFTTransfer is the key for the electronic standard digital token multi transfer built-in function const BuiltInFunctionMultiESDTNFTTransfer = "MultiESDTNFTTransfer" // BuiltInFunctionSetGuardian is the key for setting a guardian built-in function @@ -175,17 +175,17 @@ const SemiFungibleESDT = "SemiFungibleESDT" // MaxRoyalty defines 100% as uint32 const MaxRoyalty = uint32(10000) -// RelayedTransaction is the key for the elrond meta/gassless/relayed transaction standard +// RelayedTransaction is the key for the electronic meta/gassless/relayed transaction standard const RelayedTransaction = "relayedTx" -// RelayedTransactionV2 is the key for the optimized elrond meta/gassless/relayed transaction standard +// RelayedTransactionV2 is the key for the optimized electronic meta/gassless/relayed transaction standard const RelayedTransactionV2 = "relayedTxV2" // SCDeployInitFunctionName is the key for the function which is called at smart contract deploy time const SCDeployInitFunctionName = "_init" -// ElrondProtectedKeyPrefix is the key prefix which is protected from writing in the trie - only for special builtin functions -const ElrondProtectedKeyPrefix = "ELROND" +// ProtectedKeyPrefix is the key prefix which is protected from writing in the trie - only for special builtin functions +const ProtectedKeyPrefix = "electronic" // DelegationSystemSCKey is the key under which there is data in case of system delegation smart contracts const DelegationSystemSCKey = "delegation" diff --git a/core/converters.go b/core/converters.go index 8019248cd..f3e395194 100644 --- a/core/converters.go +++ b/core/converters.go @@ -7,9 +7,9 @@ import ( "strconv" "strings" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/hashing" - "github.com/ElrondNetwork/elrond-go-core/marshal" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/hashing" + "github.com/multiversx/mx-chain-core-go/marshal" ) // ConvertBytes converts the input bytes in a readable string using multipliers (k, M, G) diff --git a/core/converters_test.go b/core/converters_test.go index f220e2035..dc0951765 100644 --- a/core/converters_test.go +++ b/core/converters_test.go @@ -8,9 +8,9 @@ import ( "strings" "testing" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/mock" - "github.com/ElrondNetwork/elrond-go-core/data/batch" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/mock" + "github.com/multiversx/mx-chain-core-go/data/batch" "github.com/stretchr/testify/assert" ) diff --git a/core/counting/concurrentShardedCountsWithSize.go b/core/counting/concurrentShardedCountsWithSize.go index 4e1907ee6..5ba503064 100644 --- a/core/counting/concurrentShardedCountsWithSize.go +++ b/core/counting/concurrentShardedCountsWithSize.go @@ -6,7 +6,7 @@ import ( "strings" "sync" - "github.com/ElrondNetwork/elrond-go-core/core" + "github.com/multiversx/mx-chain-core-go/core" ) var _ CountsWithSize = (*ConcurrentShardedCountsWithSize)(nil) diff --git a/core/counting/concurrentShardedCountsWithSize_test.go b/core/counting/concurrentShardedCountsWithSize_test.go index 3be0d5cef..31d60895a 100644 --- a/core/counting/concurrentShardedCountsWithSize_test.go +++ b/core/counting/concurrentShardedCountsWithSize_test.go @@ -4,7 +4,7 @@ import ( "sync" "testing" - "github.com/ElrondNetwork/elrond-go-core/core" + "github.com/multiversx/mx-chain-core-go/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/core/file_test.go b/core/file_test.go index 29b09a79b..8d80d9627 100644 --- a/core/file_test.go +++ b/core/file_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "github.com/ElrondNetwork/elrond-go-core/core" + "github.com/multiversx/mx-chain-core-go/core" "github.com/stretchr/testify/assert" ) diff --git a/core/keyValStorage/keyValStorage.go b/core/keyValStorage/keyValStorage.go index a66bf5b20..b3cbc49b6 100644 --- a/core/keyValStorage/keyValStorage.go +++ b/core/keyValStorage/keyValStorage.go @@ -3,7 +3,7 @@ package keyValStorage import ( "bytes" - "github.com/ElrondNetwork/elrond-go-core/core" + "github.com/multiversx/mx-chain-core-go/core" ) // KeyValStorage holds a key and an associated value diff --git a/core/keyValStorage/keyValStorage_test.go b/core/keyValStorage/keyValStorage_test.go index de5dd5753..57a4001f8 100644 --- a/core/keyValStorage/keyValStorage_test.go +++ b/core/keyValStorage/keyValStorage_test.go @@ -3,8 +3,8 @@ package keyValStorage_test import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/keyValStorage" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/keyValStorage" "github.com/stretchr/testify/assert" ) diff --git a/core/libLocator/vmLocator_darwin.go b/core/libLocator/vmLocator_darwin.go index f5eb77f85..8a42ea15c 100644 --- a/core/libLocator/vmLocator_darwin.go +++ b/core/libLocator/vmLocator_darwin.go @@ -1,3 +1,4 @@ +//go:build darwin // +build darwin package vm @@ -13,5 +14,5 @@ func WASMLibLocation() string { if err != nil { return "" } - return usr.HomeDir + "/elrond-vm-binaries/" + libName + return usr.HomeDir + "/multiversx-vm-binaries/" + libName } diff --git a/core/libLocator/vmLocator_linux.go b/core/libLocator/vmLocator_linux.go index ca31f8282..36fd5c9c0 100644 --- a/core/libLocator/vmLocator_linux.go +++ b/core/libLocator/vmLocator_linux.go @@ -1,3 +1,4 @@ +//go:build linux // +build linux package vm @@ -14,5 +15,5 @@ func WASMLibLocation() string { if err != nil { return "" } - return usr.HomeDir + "/elrond-vm-binaries/" + libName + return usr.HomeDir + "/multiversx-vm-binaries/" + libName } diff --git a/core/libLocator/vmLocator_windows.go b/core/libLocator/vmLocator_windows.go index 9b44adf2b..a86f6abcc 100644 --- a/core/libLocator/vmLocator_windows.go +++ b/core/libLocator/vmLocator_windows.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package vm @@ -13,5 +14,5 @@ func WASMLibLocation() string { if err != nil { return "" } - return usr.HomeDir + "\\elrond-vm-binaries\\" + libName + return usr.HomeDir + "\\multiversx-vm-binaries\\" + libName } diff --git a/core/loggingFunctions_test.go b/core/loggingFunctions_test.go index f77ea9b04..6aed20a01 100644 --- a/core/loggingFunctions_test.go +++ b/core/loggingFunctions_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/ElrondNetwork/elrond-go-core/core/mock" + "github.com/multiversx/mx-chain-core-go/core/mock" "github.com/stretchr/testify/require" ) diff --git a/core/mock/headerHandlerStub.go b/core/mock/headerHandlerStub.go index 29d5df68c..fe3198998 100644 --- a/core/mock/headerHandlerStub.go +++ b/core/mock/headerHandlerStub.go @@ -3,7 +3,7 @@ package mock import ( "math/big" - "github.com/ElrondNetwork/elrond-go-core/data" + "github.com/multiversx/mx-chain-core-go/data" ) // HeaderHandlerStub - diff --git a/core/nodetype/nodeTypeProvider.go b/core/nodetype/nodeTypeProvider.go index ba08dfbff..feb059bc2 100644 --- a/core/nodetype/nodeTypeProvider.go +++ b/core/nodetype/nodeTypeProvider.go @@ -3,7 +3,7 @@ package nodetype import ( "sync" - "github.com/ElrondNetwork/elrond-go-core/core" + "github.com/multiversx/mx-chain-core-go/core" ) type nodeTypeProvider struct { diff --git a/core/nodetype/nodeTypeProvider_test.go b/core/nodetype/nodeTypeProvider_test.go index 371140b4d..1b4251ab7 100644 --- a/core/nodetype/nodeTypeProvider_test.go +++ b/core/nodetype/nodeTypeProvider_test.go @@ -4,8 +4,8 @@ import ( "sync" "testing" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/check" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/check" "github.com/stretchr/testify/require" ) diff --git a/core/partitioning/dataSplit.go b/core/partitioning/dataSplit.go index 911711606..08ef2b678 100644 --- a/core/partitioning/dataSplit.go +++ b/core/partitioning/dataSplit.go @@ -1,7 +1,7 @@ package partitioning import ( - "github.com/ElrondNetwork/elrond-go-core/core" + "github.com/multiversx/mx-chain-core-go/core" ) const minimumMaxPacketNum = 1 diff --git a/core/partitioning/dataSplit_test.go b/core/partitioning/dataSplit_test.go index ebb555dba..41d09f641 100644 --- a/core/partitioning/dataSplit_test.go +++ b/core/partitioning/dataSplit_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/partitioning" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/partitioning" "github.com/stretchr/testify/assert" ) diff --git a/core/partitioning/simpleDataPacker.go b/core/partitioning/simpleDataPacker.go index 841c9e415..1c54f7359 100644 --- a/core/partitioning/simpleDataPacker.go +++ b/core/partitioning/simpleDataPacker.go @@ -1,9 +1,9 @@ package partitioning import ( - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/data/batch" - "github.com/ElrondNetwork/elrond-go-core/marshal" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/data/batch" + "github.com/multiversx/mx-chain-core-go/marshal" ) // SimpleDataPacker can split a large slice of byte slices in chunks <= maxPacketSize diff --git a/core/partitioning/simpleDataPacker_test.go b/core/partitioning/simpleDataPacker_test.go index dc02e62ee..e57b41718 100644 --- a/core/partitioning/simpleDataPacker_test.go +++ b/core/partitioning/simpleDataPacker_test.go @@ -4,9 +4,9 @@ import ( "crypto/rand" "testing" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/mock" - "github.com/ElrondNetwork/elrond-go-core/core/partitioning" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/mock" + "github.com/multiversx/mx-chain-core-go/core/partitioning" "github.com/stretchr/testify/assert" ) diff --git a/core/partitioning/sizeDataPacker.go b/core/partitioning/sizeDataPacker.go index a7e2301ea..10f6781f7 100644 --- a/core/partitioning/sizeDataPacker.go +++ b/core/partitioning/sizeDataPacker.go @@ -1,9 +1,9 @@ package partitioning import ( - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/data/batch" - "github.com/ElrondNetwork/elrond-go-core/marshal" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/data/batch" + "github.com/multiversx/mx-chain-core-go/marshal" ) const minimumMaxPacketSizeInBytes = 1 diff --git a/core/partitioning/sizeDataPacker_test.go b/core/partitioning/sizeDataPacker_test.go index 4dfbfe0f7..22104c12a 100644 --- a/core/partitioning/sizeDataPacker_test.go +++ b/core/partitioning/sizeDataPacker_test.go @@ -6,11 +6,11 @@ import ( "fmt" "testing" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/mock" - "github.com/ElrondNetwork/elrond-go-core/core/partitioning" - "github.com/ElrondNetwork/elrond-go-core/data/batch" - "github.com/ElrondNetwork/elrond-go-core/marshal" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/mock" + "github.com/multiversx/mx-chain-core-go/core/partitioning" + "github.com/multiversx/mx-chain-core-go/data/batch" + "github.com/multiversx/mx-chain-core-go/marshal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/core/pubkeyConverter/bech32PubkeyConverter.go b/core/pubkeyConverter/bech32PubkeyConverter.go index 8ae475f5e..3361d007b 100644 --- a/core/pubkeyConverter/bech32PubkeyConverter.go +++ b/core/pubkeyConverter/bech32PubkeyConverter.go @@ -5,9 +5,9 @@ import ( "fmt" "runtime/debug" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/check" "github.com/btcsuite/btcd/btcutil/bech32" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/check" ) type config struct { diff --git a/core/pubkeyConverter/bech32PubkeyConverter_test.go b/core/pubkeyConverter/bech32PubkeyConverter_test.go index 5b99b3f7b..cb8f896b5 100644 --- a/core/pubkeyConverter/bech32PubkeyConverter_test.go +++ b/core/pubkeyConverter/bech32PubkeyConverter_test.go @@ -6,9 +6,9 @@ import ( "strings" "testing" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/core/mock" - "github.com/ElrondNetwork/elrond-go-core/core/pubkeyConverter" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/core/mock" + "github.com/multiversx/mx-chain-core-go/core/pubkeyConverter" "github.com/stretchr/testify/assert" ) diff --git a/core/pubkeyConverter/hexPubkeyConverter_test.go b/core/pubkeyConverter/hexPubkeyConverter_test.go index 4d3025380..84f1b7c91 100644 --- a/core/pubkeyConverter/hexPubkeyConverter_test.go +++ b/core/pubkeyConverter/hexPubkeyConverter_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/core/pubkeyConverter" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/core/pubkeyConverter" "github.com/stretchr/testify/assert" ) diff --git a/core/random/fisherYates_test.go b/core/random/fisherYates_test.go index 53a961f80..c881e31cf 100644 --- a/core/random/fisherYates_test.go +++ b/core/random/fisherYates_test.go @@ -3,7 +3,7 @@ package random import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/core/mock" + "github.com/multiversx/mx-chain-core-go/core/mock" "github.com/stretchr/testify/assert" ) diff --git a/core/sharding/multiShardCoordinator.go b/core/sharding/multiShardCoordinator.go index ce2298ca5..ce4b39540 100644 --- a/core/sharding/multiShardCoordinator.go +++ b/core/sharding/multiShardCoordinator.go @@ -4,7 +4,7 @@ import ( "bytes" "math" - "github.com/ElrondNetwork/elrond-go-core/core" + "github.com/multiversx/mx-chain-core-go/core" ) // multiShardCoordinator struct defines the functionality for handling transaction dispatching to diff --git a/core/sliceUtil/sliceUtil_test.go b/core/sliceUtil/sliceUtil_test.go index 2e3d3f1ee..107aa21cb 100644 --- a/core/sliceUtil/sliceUtil_test.go +++ b/core/sliceUtil/sliceUtil_test.go @@ -3,7 +3,7 @@ package sliceUtil_test import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/core/sliceUtil" + "github.com/multiversx/mx-chain-core-go/core/sliceUtil" "github.com/stretchr/testify/assert" ) diff --git a/core/stopWatch_test.go b/core/stopWatch_test.go index 947651cd6..135def969 100644 --- a/core/stopWatch_test.go +++ b/core/stopWatch_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/ElrondNetwork/elrond-go-core/core/mock" + "github.com/multiversx/mx-chain-core-go/core/mock" "github.com/stretchr/testify/assert" ) diff --git a/core/throttler/numGoRoutinesThrottler.go b/core/throttler/numGoRoutinesThrottler.go index 01b4ed782..2286e6cbc 100644 --- a/core/throttler/numGoRoutinesThrottler.go +++ b/core/throttler/numGoRoutinesThrottler.go @@ -3,7 +3,7 @@ package throttler import ( "sync/atomic" - "github.com/ElrondNetwork/elrond-go-core/core" + "github.com/multiversx/mx-chain-core-go/core" ) // NumGoRoutinesThrottler can limit the number of go routines launched diff --git a/core/throttler/numGoRoutinesThrottler_test.go b/core/throttler/numGoRoutinesThrottler_test.go index 996103847..28dc28f20 100644 --- a/core/throttler/numGoRoutinesThrottler_test.go +++ b/core/throttler/numGoRoutinesThrottler_test.go @@ -3,9 +3,9 @@ package throttler_test import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/core/throttler" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/core/throttler" "github.com/stretchr/testify/assert" ) diff --git a/core/transaction/transactionSorter.go b/core/transaction/transactionSorter.go index e6448aa2e..5f6267cb2 100644 --- a/core/transaction/transactionSorter.go +++ b/core/transaction/transactionSorter.go @@ -4,8 +4,8 @@ import ( "bytes" "sort" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/hashing" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/hashing" ) // SortTransactionsBySenderAndNonceWithFrontRunningProtection - sorts the transactions by address and randomness source to protect from front running @@ -34,7 +34,7 @@ func SortTransactionsBySenderAndNonceWithFrontRunningProtection(transactions []d sort.Slice(transactions, sorter) } -// TODO remove duplicated function when will use the version of elrond-go which exports transaction order during processing +// TODO remove duplicated function when will use the version of mx-chain-go which exports transaction order during processing // SortTransactionsBySenderAndNonceWithFrontRunningProtectionExtendedTransactions - sorts the transactions by address and randomness source to protect from front running func SortTransactionsBySenderAndNonceWithFrontRunningProtectionExtendedTransactions(transactions []data.TransactionHandlerWithGasUsedAndFee, hasher hashing.Hasher, randomness []byte) { diff --git a/core/transaction/transactionSorter_test.go b/core/transaction/transactionSorter_test.go index 3e88e3837..f690f2269 100644 --- a/core/transaction/transactionSorter_test.go +++ b/core/transaction/transactionSorter_test.go @@ -6,10 +6,10 @@ import ( "math/big" "testing" - "github.com/ElrondNetwork/elrond-go-core/core/mock" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/outport" - "github.com/ElrondNetwork/elrond-go-core/data/transaction" + "github.com/multiversx/mx-chain-core-go/core/mock" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/outport" + "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/stretchr/testify/assert" ) diff --git a/core/trimmers_test.go b/core/trimmers_test.go index 588f7c1da..4064ca105 100644 --- a/core/trimmers_test.go +++ b/core/trimmers_test.go @@ -3,7 +3,7 @@ package core_test import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/core" + "github.com/multiversx/mx-chain-core-go/core" "github.com/stretchr/testify/assert" ) diff --git a/core/versioning/txVersionChecker.go b/core/versioning/txVersionChecker.go index 0c010ac97..3dc2c8d53 100644 --- a/core/versioning/txVersionChecker.go +++ b/core/versioning/txVersionChecker.go @@ -1,8 +1,8 @@ package versioning import ( - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/data/transaction" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/data/transaction" ) const ( diff --git a/core/versioning/txVersionChecker_test.go b/core/versioning/txVersionChecker_test.go index caefc517d..d54d4fd66 100644 --- a/core/versioning/txVersionChecker_test.go +++ b/core/versioning/txVersionChecker_test.go @@ -3,8 +3,8 @@ package versioning import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/data/transaction" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/stretchr/testify/require" ) diff --git a/core/versioning/versionComparator.go b/core/versioning/versionComparator.go index 98f4a9472..9c0d3b4c0 100644 --- a/core/versioning/versionComparator.go +++ b/core/versioning/versionComparator.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/ElrondNetwork/elrond-go-core/core" + "github.com/multiversx/mx-chain-core-go/core" ) const numComponents = 3 diff --git a/core/versioning/versionComparator_test.go b/core/versioning/versionComparator_test.go index 48c0d113f..fb84e3d4c 100644 --- a/core/versioning/versionComparator_test.go +++ b/core/versioning/versionComparator_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/check" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/check" "github.com/stretchr/testify/assert" ) diff --git a/core/watchdog/watchdog.go b/core/watchdog/watchdog.go index 9b0594339..240732d2c 100644 --- a/core/watchdog/watchdog.go +++ b/core/watchdog/watchdog.go @@ -5,9 +5,9 @@ import ( "runtime/pprof" "time" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/data/endProcess" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/data/endProcess" ) type watchdog struct { diff --git a/core/watchdog/watchdog_test.go b/core/watchdog/watchdog_test.go index 5a519ca9a..c87de8a40 100644 --- a/core/watchdog/watchdog_test.go +++ b/core/watchdog/watchdog_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/core/mock" - "github.com/ElrondNetwork/elrond-go-core/core/watchdog" - "github.com/ElrondNetwork/elrond-go-core/data/endProcess" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/core/mock" + "github.com/multiversx/mx-chain-core-go/core/watchdog" + "github.com/multiversx/mx-chain-core-go/data/endProcess" "github.com/stretchr/testify/assert" ) diff --git a/data/api/apiBlock.go b/data/api/apiBlock.go index cd7044a40..5387c1099 100644 --- a/data/api/apiBlock.go +++ b/data/api/apiBlock.go @@ -4,8 +4,8 @@ import ( "math/big" "time" - "github.com/ElrondNetwork/elrond-go-core/data/outport" - "github.com/ElrondNetwork/elrond-go-core/data/transaction" + "github.com/multiversx/mx-chain-core-go/data/outport" + "github.com/multiversx/mx-chain-core-go/data/transaction" ) // Block represents the structure for block that is returned by api routes diff --git a/data/api/apiBlock_test.go b/data/api/apiBlock_test.go index 740644e5c..3528369c1 100644 --- a/data/api/apiBlock_test.go +++ b/data/api/apiBlock_test.go @@ -3,7 +3,7 @@ package api_test import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/data/api" + "github.com/multiversx/mx-chain-core-go/data/api" "github.com/stretchr/testify/require" ) diff --git a/data/api/apiHyperBlock.go b/data/api/apiHyperBlock.go index 01575df45..84bceae39 100644 --- a/data/api/apiHyperBlock.go +++ b/data/api/apiHyperBlock.go @@ -3,7 +3,7 @@ package api import ( "time" - "github.com/ElrondNetwork/elrond-go-core/data/transaction" + "github.com/multiversx/mx-chain-core-go/data/transaction" ) // Hyperblock contains all fully executed (both in source and in destination shards) transactions notarized in a given metablock diff --git a/data/api/options.go b/data/api/options.go index 0b4e773ec..66ce40dd4 100644 --- a/data/api/options.go +++ b/data/api/options.go @@ -1,6 +1,6 @@ package api -import "github.com/ElrondNetwork/elrond-go-core/core" +import "github.com/multiversx/mx-chain-core-go/core" // AccountQueryOptions holds options for account queries type AccountQueryOptions struct { diff --git a/data/batch/batch.go b/data/batch/batch.go index 6bcb7d228..353994a1d 100644 --- a/data/batch/batch.go +++ b/data/batch/batch.go @@ -1,4 +1,4 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. batch.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. batch.proto package batch // New returns a new batch from given buffers diff --git a/data/block/block.go b/data/block/block.go index bc1e91a29..5147be5d6 100644 --- a/data/block/block.go +++ b/data/block/block.go @@ -1,11 +1,11 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. block.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. block.proto package block import ( "math/big" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/headerVersionData" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/headerVersionData" ) // TODO: add access protection through wrappers diff --git a/data/block/block.pb.go b/data/block/block.pb.go index 080fb4781..e4641933b 100644 --- a/data/block/block.pb.go +++ b/data/block/block.pb.go @@ -6,9 +6,9 @@ package block import ( bytes "bytes" fmt "fmt" - github_com_ElrondNetwork_elrond_go_core_data "github.com/ElrondNetwork/elrond-go-core/data" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" + github_com_ElrondNetwork_elrond_go_core_data "github.com/multiversx/mx-chain-core-go/data" io "io" math "math" math_big "math/big" @@ -336,8 +336,8 @@ type Header struct { ReceiptsHash []byte `protobuf:"bytes,19,opt,name=ReceiptsHash,proto3" json:"ReceiptsHash,omitempty"` ChainID []byte `protobuf:"bytes,20,opt,name=ChainID,proto3" json:"ChainID,omitempty"` SoftwareVersion []byte `protobuf:"bytes,21,opt,name=SoftwareVersion,proto3" json:"SoftwareVersion,omitempty"` - AccumulatedFees *math_big.Int `protobuf:"bytes,22,opt,name=AccumulatedFees,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"AccumulatedFees,omitempty"` - DeveloperFees *math_big.Int `protobuf:"bytes,23,opt,name=DeveloperFees,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"DeveloperFees,omitempty"` + AccumulatedFees *math_big.Int `protobuf:"bytes,22,opt,name=AccumulatedFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"AccumulatedFees,omitempty"` + DeveloperFees *math_big.Int `protobuf:"bytes,23,opt,name=DeveloperFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"DeveloperFees,omitempty"` Reserved []byte `protobuf:"bytes,24,opt,name=Reserved,proto3" json:"Reserved,omitempty"` } diff --git a/data/block/block.proto b/data/block/block.proto index c8290675f..0ace1958f 100644 --- a/data/block/block.proto +++ b/data/block/block.proto @@ -83,8 +83,8 @@ message Header { bytes ReceiptsHash = 19; bytes ChainID = 20; bytes SoftwareVersion = 21; - bytes AccumulatedFees = 22 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; - bytes DeveloperFees = 23 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; + bytes AccumulatedFees = 22 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + bytes DeveloperFees = 23 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; bytes Reserved = 24; } diff --git a/data/block/blockV2.go b/data/block/blockV2.go index 4aa1ec3b6..1d020c06f 100644 --- a/data/block/blockV2.go +++ b/data/block/blockV2.go @@ -1,12 +1,12 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. blockV2.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. blockV2.proto package block import ( "math/big" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/headerVersionData" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/headerVersionData" ) // GetShardID returns the header shardID diff --git a/data/block/blockV2.pb.go b/data/block/blockV2.pb.go index 4599aa8ed..35316383b 100644 --- a/data/block/blockV2.pb.go +++ b/data/block/blockV2.pb.go @@ -6,9 +6,9 @@ package block import ( bytes "bytes" fmt "fmt" - github_com_ElrondNetwork_elrond_go_core_data "github.com/ElrondNetwork/elrond-go-core/data" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" + github_com_ElrondNetwork_elrond_go_core_data "github.com/multiversx/mx-chain-core-go/data" io "io" math "math" math_big "math/big" @@ -32,8 +32,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type HeaderV2 struct { Header *Header `protobuf:"bytes,1,opt,name=Header,proto3" json:"Header,omitempty"` ScheduledRootHash []byte `protobuf:"bytes,2,opt,name=ScheduledRootHash,proto3" json:"ScheduledRootHash,omitempty"` - ScheduledAccumulatedFees *math_big.Int `protobuf:"bytes,3,opt,name=ScheduledAccumulatedFees,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"ScheduledAccumulatedFees,omitempty"` - ScheduledDeveloperFees *math_big.Int `protobuf:"bytes,4,opt,name=ScheduledDeveloperFees,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"ScheduledDeveloperFees,omitempty"` + ScheduledAccumulatedFees *math_big.Int `protobuf:"bytes,3,opt,name=ScheduledAccumulatedFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"ScheduledAccumulatedFees,omitempty"` + ScheduledDeveloperFees *math_big.Int `protobuf:"bytes,4,opt,name=ScheduledDeveloperFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"ScheduledDeveloperFees,omitempty"` ScheduledGasProvided uint64 `protobuf:"varint,5,opt,name=ScheduledGasProvided,proto3" json:"ScheduledGasProvided,omitempty"` ScheduledGasPenalized uint64 `protobuf:"varint,6,opt,name=ScheduledGasPenalized,proto3" json:"ScheduledGasPenalized,omitempty"` ScheduledGasRefunded uint64 `protobuf:"varint,7,opt,name=ScheduledGasRefunded,proto3" json:"ScheduledGasRefunded,omitempty"` diff --git a/data/block/blockV2.proto b/data/block/blockV2.proto index 5d4b7b9c1..274f179cf 100644 --- a/data/block/blockV2.proto +++ b/data/block/blockV2.proto @@ -13,8 +13,8 @@ import "block.proto"; message HeaderV2 { Header Header = 1; bytes ScheduledRootHash = 2; - bytes ScheduledAccumulatedFees = 3 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; - bytes ScheduledDeveloperFees = 4 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; + bytes ScheduledAccumulatedFees = 3 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + bytes ScheduledDeveloperFees = 4 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; uint64 ScheduledGasProvided = 5; uint64 ScheduledGasPenalized = 6; uint64 ScheduledGasRefunded = 7; diff --git a/data/block/blockV2_test.go b/data/block/blockV2_test.go index 6503f92d1..a0e28f582 100644 --- a/data/block/blockV2_test.go +++ b/data/block/blockV2_test.go @@ -5,10 +5,10 @@ import ( "reflect" "testing" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/block" - "github.com/ElrondNetwork/elrond-go-core/data/headerVersionData" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/block" + "github.com/multiversx/mx-chain-core-go/data/headerVersionData" "github.com/stretchr/testify/require" ) diff --git a/data/block/block_test.go b/data/block/block_test.go index fd86e1c16..980543b24 100644 --- a/data/block/block_test.go +++ b/data/block/block_test.go @@ -5,9 +5,9 @@ import ( "reflect" "testing" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/block" - "github.com/ElrondNetwork/elrond-go-core/data/headerVersionData" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/block" + "github.com/multiversx/mx-chain-core-go/data/headerVersionData" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/data/block/economicsHandler.go b/data/block/economicsHandler.go index d47ba1806..9f96a6185 100644 --- a/data/block/economicsHandler.go +++ b/data/block/economicsHandler.go @@ -3,7 +3,7 @@ package block import ( "math/big" - "github.com/ElrondNetwork/elrond-go-core/data" + "github.com/multiversx/mx-chain-core-go/data" ) // SetTotalSupply sets the total supply diff --git a/data/block/epochStartHandler.go b/data/block/epochStartHandler.go index 5c5fde24b..a96fdc217 100644 --- a/data/block/epochStartHandler.go +++ b/data/block/epochStartHandler.go @@ -1,7 +1,7 @@ package block import ( - "github.com/ElrondNetwork/elrond-go-core/data" + "github.com/multiversx/mx-chain-core-go/data" ) // GetLastFinalizedHeaderHandlers returns the last finalized header handlers diff --git a/data/block/epochStartShardDataHandler.go b/data/block/epochStartShardDataHandler.go index 0bc329193..5d3c5392a 100644 --- a/data/block/epochStartShardDataHandler.go +++ b/data/block/epochStartShardDataHandler.go @@ -1,6 +1,6 @@ package block -import "github.com/ElrondNetwork/elrond-go-core/data" +import "github.com/multiversx/mx-chain-core-go/data" // GetPendingMiniBlockHeaderHandlers returns the pending miniBlock header handlers func (essd *EpochStartShardData) GetPendingMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler { diff --git a/data/block/metaBlock.go b/data/block/metaBlock.go index 041dc9010..3d78d5754 100644 --- a/data/block/metaBlock.go +++ b/data/block/metaBlock.go @@ -1,13 +1,13 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. metaBlock.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. metaBlock.proto package block import ( "math/big" "sort" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/headerVersionData" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/headerVersionData" ) // don't break the interface diff --git a/data/block/metaBlock.pb.go b/data/block/metaBlock.pb.go index bce26ae0a..3326bad07 100644 --- a/data/block/metaBlock.pb.go +++ b/data/block/metaBlock.pb.go @@ -6,9 +6,9 @@ package block import ( bytes "bytes" fmt "fmt" - github_com_ElrondNetwork_elrond_go_core_data "github.com/ElrondNetwork/elrond-go-core/data" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" + github_com_ElrondNetwork_elrond_go_core_data "github.com/multiversx/mx-chain-core-go/data" io "io" math "math" math_big "math/big" @@ -77,7 +77,7 @@ type PeerData struct { PublicKey []byte `protobuf:"bytes,2,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"` Action PeerAction `protobuf:"varint,3,opt,name=Action,proto3,enum=proto.PeerAction" json:"Action,omitempty"` TimeStamp uint64 `protobuf:"varint,4,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` - ValueChange *math_big.Int `protobuf:"bytes,5,opt,name=ValueChange,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"ValueChange,omitempty"` + ValueChange *math_big.Int `protobuf:"bytes,5,opt,name=ValueChange,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"ValueChange,omitempty"` } func (m *PeerData) Reset() { *m = PeerData{} } @@ -153,8 +153,8 @@ type ShardData struct { Round uint64 `protobuf:"varint,8,opt,name=Round,proto3" json:"Round,omitempty"` PrevHash []byte `protobuf:"bytes,9,opt,name=PrevHash,proto3" json:"PrevHash,omitempty"` Nonce uint64 `protobuf:"varint,10,opt,name=Nonce,proto3" json:"Nonce,omitempty"` - AccumulatedFees *math_big.Int `protobuf:"bytes,12,opt,name=AccumulatedFees,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"AccumulatedFees,omitempty"` - DeveloperFees *math_big.Int `protobuf:"bytes,14,opt,name=DeveloperFees,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"DeveloperFees,omitempty"` + AccumulatedFees *math_big.Int `protobuf:"bytes,12,opt,name=AccumulatedFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"AccumulatedFees,omitempty"` + DeveloperFees *math_big.Int `protobuf:"bytes,14,opt,name=DeveloperFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"DeveloperFees,omitempty"` NumPendingMiniBlocks uint32 `protobuf:"varint,11,opt,name=NumPendingMiniBlocks,proto3" json:"NumPendingMiniBlocks,omitempty"` LastIncludedMetaNonce uint64 `protobuf:"varint,13,opt,name=LastIncludedMetaNonce,proto3" json:"LastIncludedMetaNonce,omitempty"` ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"ShardID,omitempty"` @@ -401,12 +401,12 @@ func (m *EpochStartShardData) GetPendingMiniBlockHeaders() []MiniBlockHeader { // Economics holds the block information for total supply and rewards type Economics struct { - TotalSupply *math_big.Int `protobuf:"bytes,1,opt,name=TotalSupply,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"TotalSupply,omitempty"` - TotalToDistribute *math_big.Int `protobuf:"bytes,2,opt,name=TotalToDistribute,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"TotalToDistribute,omitempty"` - TotalNewlyMinted *math_big.Int `protobuf:"bytes,3,opt,name=TotalNewlyMinted,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"TotalNewlyMinted,omitempty"` - RewardsPerBlock *math_big.Int `protobuf:"bytes,4,opt,name=RewardsPerBlock,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"RewardsPerBlock,omitempty"` - RewardsForProtocolSustainability *math_big.Int `protobuf:"bytes,5,opt,name=RewardsForProtocolSustainability,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"RewardsForProtocolSustainability,omitempty"` - NodePrice *math_big.Int `protobuf:"bytes,6,opt,name=NodePrice,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"NodePrice,omitempty"` + TotalSupply *math_big.Int `protobuf:"bytes,1,opt,name=TotalSupply,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"TotalSupply,omitempty"` + TotalToDistribute *math_big.Int `protobuf:"bytes,2,opt,name=TotalToDistribute,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"TotalToDistribute,omitempty"` + TotalNewlyMinted *math_big.Int `protobuf:"bytes,3,opt,name=TotalNewlyMinted,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"TotalNewlyMinted,omitempty"` + RewardsPerBlock *math_big.Int `protobuf:"bytes,4,opt,name=RewardsPerBlock,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"RewardsPerBlock,omitempty"` + RewardsForProtocolSustainability *math_big.Int `protobuf:"bytes,5,opt,name=RewardsForProtocolSustainability,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"RewardsForProtocolSustainability,omitempty"` + NodePrice *math_big.Int `protobuf:"bytes,6,opt,name=NodePrice,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"NodePrice,omitempty"` PrevEpochStartRound uint64 `protobuf:"varint,7,opt,name=PrevEpochStartRound,proto3" json:"PrevEpochStartRound,omitempty"` PrevEpochStartHash []byte `protobuf:"bytes,8,opt,name=PrevEpochStartHash,proto3" json:"PrevEpochStartHash,omitempty"` } @@ -564,10 +564,10 @@ type MetaBlock struct { EpochStart EpochStart `protobuf:"bytes,18,opt,name=EpochStart,proto3" json:"EpochStart"` ChainID []byte `protobuf:"bytes,19,opt,name=ChainID,proto3" json:"ChainID,omitempty"` SoftwareVersion []byte `protobuf:"bytes,20,opt,name=SoftwareVersion,proto3" json:"SoftwareVersion,omitempty"` - AccumulatedFees *math_big.Int `protobuf:"bytes,21,opt,name=AccumulatedFees,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"AccumulatedFees,omitempty"` - AccumulatedFeesInEpoch *math_big.Int `protobuf:"bytes,22,opt,name=AccumulatedFeesInEpoch,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"AccumulatedFeesInEpoch,omitempty"` - DeveloperFees *math_big.Int `protobuf:"bytes,23,opt,name=DeveloperFees,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"DeveloperFees,omitempty"` - DevFeesInEpoch *math_big.Int `protobuf:"bytes,24,opt,name=DevFeesInEpoch,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"DevFeesInEpoch,omitempty"` + AccumulatedFees *math_big.Int `protobuf:"bytes,21,opt,name=AccumulatedFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"AccumulatedFees,omitempty"` + AccumulatedFeesInEpoch *math_big.Int `protobuf:"bytes,22,opt,name=AccumulatedFeesInEpoch,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"AccumulatedFeesInEpoch,omitempty"` + DeveloperFees *math_big.Int `protobuf:"bytes,23,opt,name=DeveloperFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"DeveloperFees,omitempty"` + DevFeesInEpoch *math_big.Int `protobuf:"bytes,24,opt,name=DevFeesInEpoch,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"DevFeesInEpoch,omitempty"` TxCount uint32 `protobuf:"varint,25,opt,name=TxCount,proto3" json:"TxCount,omitempty"` Reserved []byte `protobuf:"bytes,26,opt,name=Reserved,proto3" json:"Reserved,omitempty"` } diff --git a/data/block/metaBlock.proto b/data/block/metaBlock.proto index c90c2d2f8..5b1055e96 100644 --- a/data/block/metaBlock.proto +++ b/data/block/metaBlock.proto @@ -31,7 +31,7 @@ message PeerData { bytes PublicKey = 2; PeerAction Action = 3; uint64 TimeStamp = 4; - bytes ValueChange = 5 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; + bytes ValueChange = 5 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; } // ShardData holds the block information sent by the shards to the metachain @@ -44,8 +44,8 @@ message ShardData { uint64 Round = 8; bytes PrevHash = 9; uint64 Nonce = 10; - bytes AccumulatedFees = 12 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; - bytes DeveloperFees = 14 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; + bytes AccumulatedFees = 12 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + bytes DeveloperFees = 14 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; uint32 NumPendingMiniBlocks = 11; uint64 LastIncludedMetaNonce = 13; uint32 ShardID = 1; @@ -68,12 +68,12 @@ message EpochStartShardData { // Economics holds the block information for total supply and rewards message Economics { - bytes TotalSupply = 1 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; - bytes TotalToDistribute = 2 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; - bytes TotalNewlyMinted = 3 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; - bytes RewardsPerBlock = 4 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; - bytes RewardsForProtocolSustainability = 5 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; - bytes NodePrice = 6 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; + bytes TotalSupply = 1 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + bytes TotalToDistribute = 2 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + bytes TotalNewlyMinted = 3 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + bytes RewardsPerBlock = 4 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + bytes RewardsForProtocolSustainability = 5 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + bytes NodePrice = 6 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; uint64 PrevEpochStartRound = 7; bytes PrevEpochStartHash = 8; } @@ -105,10 +105,10 @@ message MetaBlock { EpochStart EpochStart = 18 [(gogoproto.nullable) = false]; bytes ChainID = 19; bytes SoftwareVersion = 20; - bytes AccumulatedFees = 21 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; - bytes AccumulatedFeesInEpoch = 22 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; - bytes DeveloperFees = 23 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; - bytes DevFeesInEpoch = 24 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; + bytes AccumulatedFees = 21 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + bytes AccumulatedFeesInEpoch = 22 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + bytes DeveloperFees = 23 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + bytes DevFeesInEpoch = 24 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; uint32 TxCount = 25; bytes Reserved = 26; } diff --git a/data/block/metaBlock_test.go b/data/block/metaBlock_test.go index 3ed724b60..1eca12602 100644 --- a/data/block/metaBlock_test.go +++ b/data/block/metaBlock_test.go @@ -3,10 +3,10 @@ package block_test import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/block" - "github.com/ElrondNetwork/elrond-go-core/data/headerVersionData" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/block" + "github.com/multiversx/mx-chain-core-go/data/headerVersionData" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/data/block/miniBlockHeader.go b/data/block/miniBlockHeader.go index 098f78602..44b06a7ce 100644 --- a/data/block/miniBlockHeader.go +++ b/data/block/miniBlockHeader.go @@ -1,6 +1,6 @@ package block -import "github.com/ElrondNetwork/elrond-go-core/data" +import "github.com/multiversx/mx-chain-core-go/data" // GetTypeInt32 gets the miniBlock type func (m *MiniBlockHeader) GetTypeInt32() int32 { diff --git a/data/block/miniBlockHeader_test.go b/data/block/miniBlockHeader_test.go index dbc6b2726..02a671ae1 100644 --- a/data/block/miniBlockHeader_test.go +++ b/data/block/miniBlockHeader_test.go @@ -4,7 +4,7 @@ import ( "math" "testing" - "github.com/ElrondNetwork/elrond-go-core/data/block" + "github.com/multiversx/mx-chain-core-go/data/block" "github.com/stretchr/testify/require" ) diff --git a/data/block/peerBlock.go b/data/block/peerBlock.go index 3b5e2e3ff..115131523 100644 --- a/data/block/peerBlock.go +++ b/data/block/peerBlock.go @@ -1,6 +1,6 @@ package block -import "github.com/ElrondNetwork/elrond-go-core/data" +import "github.com/multiversx/mx-chain-core-go/data" // SetPubKey - setter for public key func (pc *PeerChange) SetPubKey(pubKey []byte) error { diff --git a/data/block/shardDataHandler.go b/data/block/shardDataHandler.go index dce41b421..2599d0c19 100644 --- a/data/block/shardDataHandler.go +++ b/data/block/shardDataHandler.go @@ -3,7 +3,7 @@ package block import ( "math/big" - "github.com/ElrondNetwork/elrond-go-core/data" + "github.com/multiversx/mx-chain-core-go/data" ) // GetShardMiniBlockHeaderHandlers returns the shard miniBlockHeaders as MiniBlockHeaderHandlers diff --git a/data/block/trigger.go b/data/block/trigger.go index 2a9a6dacf..c8b511e37 100644 --- a/data/block/trigger.go +++ b/data/block/trigger.go @@ -1,7 +1,7 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. trigger.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. trigger.proto package block -import "github.com/ElrondNetwork/elrond-go-core/data" +import "github.com/multiversx/mx-chain-core-go/data" // GetEpochStartHeaderHandler returns the epoch start headerHandler func (str *ShardTriggerRegistry) GetEpochStartHeaderHandler() data.HeaderHandler { diff --git a/data/block/trigger_test.go b/data/block/trigger_test.go index 854c76ae6..f0b7c785d 100644 --- a/data/block/trigger_test.go +++ b/data/block/trigger_test.go @@ -3,7 +3,7 @@ package block import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/data" + "github.com/multiversx/mx-chain-core-go/data" "github.com/stretchr/testify/require" ) diff --git a/data/esdt/esdt.go b/data/esdt/esdt.go index c3563ec8b..955dac063 100644 --- a/data/esdt/esdt.go +++ b/data/esdt/esdt.go @@ -1,4 +1,4 @@ -//go:generate protoc -I=proto -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. esdt.proto +//go:generate protoc -I=proto -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. esdt.proto package esdt import "math/big" diff --git a/data/esdt/esdt.pb.go b/data/esdt/esdt.pb.go index 9345669f5..7eeab10e3 100644 --- a/data/esdt/esdt.pb.go +++ b/data/esdt/esdt.pb.go @@ -6,9 +6,9 @@ package esdt import ( bytes "bytes" fmt "fmt" - github_com_ElrondNetwork_elrond_go_core_data "github.com/ElrondNetwork/elrond-go-core/data" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" + github_com_ElrondNetwork_elrond_go_core_data "github.com/multiversx/mx-chain-core-go/data" io "io" math "math" math_big "math/big" @@ -31,7 +31,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // ESDigitalToken holds the data for a Elrond standard digital token transaction type ESDigitalToken struct { Type uint32 `protobuf:"varint,1,opt,name=Type,proto3" json:"Type"` - Value *math_big.Int `protobuf:"bytes,2,opt,name=Value,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"Value"` + Value *math_big.Int `protobuf:"bytes,2,opt,name=Value,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"Value"` Properties []byte `protobuf:"bytes,3,opt,name=Properties,proto3" json:"Properties"` TokenMetaData *MetaData `protobuf:"bytes,4,opt,name=TokenMetaData,proto3" json:"MetaData"` Reserved []byte `protobuf:"bytes,5,opt,name=Reserved,proto3" json:"Reserved"` diff --git a/data/esdt/proto/esdt.proto b/data/esdt/proto/esdt.proto index 48d99570b..861b79bca 100644 --- a/data/esdt/proto/esdt.proto +++ b/data/esdt/proto/esdt.proto @@ -8,10 +8,10 @@ option (gogoproto.stable_marshaler_all) = true; import "github.com/gogo/protobuf/gogoproto/gogo.proto"; -// ESDigitalToken holds the data for a Elrond standard digital token transaction +// ESDigitalToken holds the data for a Electronic standard digital token transaction message ESDigitalToken { uint32 Type = 1 [(gogoproto.jsontag) = "Type"]; - bytes Value = 2 [(gogoproto.jsontag) = "Value", (gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; + bytes Value = 2 [(gogoproto.jsontag) = "Value", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; bytes Properties = 3 [(gogoproto.jsontag) = "Properties"]; MetaData TokenMetaData = 4 [(gogoproto.jsontag) = "MetaData"]; bytes Reserved = 5 [(gogoproto.jsontag) = "Reserved"]; diff --git a/data/generatedCode.md b/data/generatedCode.md index 3a58b00b0..fa499220b 100644 --- a/data/generatedCode.md +++ b/data/generatedCode.md @@ -19,14 +19,14 @@ Contains the protobuf message definition (with gogo/protobuf extensions) Should contain the go generate directive ``` -//go:generate protoc -I=proto -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. message.proto +//go:generate protoc -I=proto -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. message.proto ``` And any necessary methods that are not generated. #### Generating code #### -Check [gogo protobuf geting started](https://github.com/ElrondNetwork/protobuf#getting-started) for initial setup. +Check [gogo protobuf geting started](https://github.com/multiversx/protobuf#getting-started) for initial setup. To regenerate all the data structures run: ``` diff --git a/data/guardians/guardians.go b/data/guardians/guardians.go index 9960da059..87f684ec6 100644 --- a/data/guardians/guardians.go +++ b/data/guardians/guardians.go @@ -1,2 +1,2 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. guardians.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. guardians.proto package guardians diff --git a/data/interface.go b/data/interface.go index e2ac94b2a..270bd6bd4 100644 --- a/data/interface.go +++ b/data/interface.go @@ -3,7 +3,7 @@ package data import ( "math/big" - "github.com/ElrondNetwork/elrond-go-core/data/headerVersionData" + "github.com/multiversx/mx-chain-core-go/data/headerVersionData" ) // TriggerRegistryHandler defines getters and setters for the trigger registry diff --git a/data/metrics/metrics.go b/data/metrics/metrics.go index 50bd26191..aa4ce4b6c 100644 --- a/data/metrics/metrics.go +++ b/data/metrics/metrics.go @@ -1,4 +1,4 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. metrics.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. metrics.proto package metrics // ListFromMap returns a list of values from the provided map diff --git a/data/mock/shardCoordinatorMock.go b/data/mock/shardCoordinatorMock.go index 431057c97..ed6bd5539 100644 --- a/data/mock/shardCoordinatorMock.go +++ b/data/mock/shardCoordinatorMock.go @@ -1,7 +1,7 @@ package mock import ( - "github.com/ElrondNetwork/elrond-go-core/core" + "github.com/multiversx/mx-chain-core-go/core" ) // ShardCoordinatorMock - diff --git a/data/outport/dtos.go b/data/outport/dtos.go index 73026c4c1..69641f648 100644 --- a/data/outport/dtos.go +++ b/data/outport/dtos.go @@ -3,7 +3,7 @@ package outport import ( "time" - "github.com/ElrondNetwork/elrond-go-core/data" + "github.com/multiversx/mx-chain-core-go/data" ) // TokenMetaData is the api metaData struct for tokens diff --git a/data/outport/txWithFee.go b/data/outport/txWithFee.go index d8c71c576..c515d1a82 100644 --- a/data/outport/txWithFee.go +++ b/data/outport/txWithFee.go @@ -3,7 +3,7 @@ package outport import ( "math/big" - "github.com/ElrondNetwork/elrond-go-core/data" + "github.com/multiversx/mx-chain-core-go/data" ) // FeeInfo holds information about the fee and gas used diff --git a/data/outport/txWithFee_test.go b/data/outport/txWithFee_test.go index 68fb4a5d3..d24724455 100644 --- a/data/outport/txWithFee_test.go +++ b/data/outport/txWithFee_test.go @@ -4,7 +4,7 @@ import ( "math/big" "testing" - "github.com/ElrondNetwork/elrond-go-core/data/transaction" + "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/stretchr/testify/require" ) diff --git a/data/receipt/receipt.go b/data/receipt/receipt.go index d96bef783..decc94d8f 100644 --- a/data/receipt/receipt.go +++ b/data/receipt/receipt.go @@ -1,10 +1,10 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. receipt.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. receipt.proto package receipt import ( "math/big" - "github.com/ElrondNetwork/elrond-go-core/data" + "github.com/multiversx/mx-chain-core-go/data" ) var _ = data.TransactionHandler(&Receipt{}) diff --git a/data/receipt/receipt.pb.go b/data/receipt/receipt.pb.go index 93238c104..67a9f244a 100644 --- a/data/receipt/receipt.pb.go +++ b/data/receipt/receipt.pb.go @@ -6,9 +6,9 @@ package receipt import ( bytes "bytes" fmt "fmt" - github_com_ElrondNetwork_elrond_go_core_data "github.com/ElrondNetwork/elrond-go-core/data" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" + github_com_ElrondNetwork_elrond_go_core_data "github.com/multiversx/mx-chain-core-go/data" io "io" math "math" math_big "math/big" @@ -30,7 +30,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Receipt holds all the data needed for a transaction receipt type Receipt struct { - Value *math_big.Int `protobuf:"bytes,1,opt,name=Value,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"value"` + Value *math_big.Int `protobuf:"bytes,1,opt,name=Value,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"value"` SndAddr []byte `protobuf:"bytes,2,opt,name=SndAddr,proto3" json:"sender"` Data []byte `protobuf:"bytes,3,opt,name=Data,proto3" json:"data,omitempty"` TxHash []byte `protobuf:"bytes,4,opt,name=TxHash,proto3" json:"txHash"` diff --git a/data/receipt/receipt.proto b/data/receipt/receipt.proto index 15158bdd1..0fbe44c12 100644 --- a/data/receipt/receipt.proto +++ b/data/receipt/receipt.proto @@ -10,7 +10,7 @@ import "github.com/gogo/protobuf/gogoproto/gogo.proto"; // Receipt holds all the data needed for a transaction receipt message Receipt { - bytes Value = 1 [(gogoproto.jsontag) = "value", (gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; + bytes Value = 1 [(gogoproto.jsontag) = "value", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; bytes SndAddr = 2 [(gogoproto.jsontag) = "sender"]; bytes Data = 3 [(gogoproto.jsontag) = "data,omitempty"]; bytes TxHash = 4 [(gogoproto.jsontag) = "txHash"]; diff --git a/data/receipt/receipt_test.go b/data/receipt/receipt_test.go index 8cc17375a..84f689413 100644 --- a/data/receipt/receipt_test.go +++ b/data/receipt/receipt_test.go @@ -4,7 +4,7 @@ import ( "math/big" "testing" - "github.com/ElrondNetwork/elrond-go-core/data/receipt" + "github.com/multiversx/mx-chain-core-go/data/receipt" "github.com/stretchr/testify/assert" ) diff --git a/data/rewardTx/rewardTx.go b/data/rewardTx/rewardTx.go index 024fc4fcf..0e4a3ed43 100644 --- a/data/rewardTx/rewardTx.go +++ b/data/rewardTx/rewardTx.go @@ -1,10 +1,10 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. rewardTx.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. rewardTx.proto package rewardTx import ( "math/big" - "github.com/ElrondNetwork/elrond-go-core/data" + "github.com/multiversx/mx-chain-core-go/data" ) var _ = data.TransactionHandler(&RewardTx{}) diff --git a/data/rewardTx/rewardTx.pb.go b/data/rewardTx/rewardTx.pb.go index 7eae9cabf..f1e36ec7f 100644 --- a/data/rewardTx/rewardTx.pb.go +++ b/data/rewardTx/rewardTx.pb.go @@ -6,9 +6,9 @@ package rewardTx import ( bytes "bytes" fmt "fmt" - github_com_ElrondNetwork_elrond_go_core_data "github.com/ElrondNetwork/elrond-go-core/data" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" + github_com_ElrondNetwork_elrond_go_core_data "github.com/multiversx/mx-chain-core-go/data" io "io" math "math" math_big "math/big" @@ -71,7 +71,7 @@ func (Type) EnumDescriptor() ([]byte, []int) { // RewardTx holds the data for a reward transaction type RewardTx struct { Round uint64 `protobuf:"varint,1,opt,name=Round,proto3" json:"round"` - Value *math_big.Int `protobuf:"bytes,3,opt,name=Value,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"value"` + Value *math_big.Int `protobuf:"bytes,3,opt,name=Value,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"value"` RcvAddr []byte `protobuf:"bytes,4,opt,name=RcvAddr,proto3" json:"receiver"` Epoch uint32 `protobuf:"varint,2,opt,name=Epoch,proto3" json:"epoch"` } diff --git a/data/rewardTx/rewardTx.proto b/data/rewardTx/rewardTx.proto index 6d7cbf82b..f74966c79 100644 --- a/data/rewardTx/rewardTx.proto +++ b/data/rewardTx/rewardTx.proto @@ -27,7 +27,7 @@ enum Type { // RewardTx holds the data for a reward transaction message RewardTx { uint64 Round = 1 [(gogoproto.jsontag) = "round"]; - bytes Value = 3 [(gogoproto.jsontag) = "value", (gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; + bytes Value = 3 [(gogoproto.jsontag) = "value", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; bytes RcvAddr = 4 [(gogoproto.jsontag) = "receiver"]; uint32 Epoch = 2 [(gogoproto.jsontag) = "epoch"]; } diff --git a/data/rewardTx/rewardTx_test.go b/data/rewardTx/rewardTx_test.go index 7db4df9ea..2f8680e26 100644 --- a/data/rewardTx/rewardTx_test.go +++ b/data/rewardTx/rewardTx_test.go @@ -4,8 +4,8 @@ import ( "math/big" "testing" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/rewardTx" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/rewardTx" "github.com/stretchr/testify/assert" ) diff --git a/data/scheduled/scheduled.go b/data/scheduled/scheduled.go index f830132c3..9f8e95142 100644 --- a/data/scheduled/scheduled.go +++ b/data/scheduled/scheduled.go @@ -1,11 +1,11 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. scheduled.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. scheduled.proto package scheduled import ( - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/block" - "github.com/ElrondNetwork/elrond-go-core/data/smartContractResult" - "github.com/ElrondNetwork/elrond-go-core/data/transaction" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/block" + "github.com/multiversx/mx-chain-core-go/data/smartContractResult" + "github.com/multiversx/mx-chain-core-go/data/transaction" ) // GetTransactionHandlersMap returns the smart contract results as a map of transaction handlers diff --git a/data/scheduled/scheduled.pb.go b/data/scheduled/scheduled.pb.go index 040e5e0b2..5a7f8041e 100644 --- a/data/scheduled/scheduled.pb.go +++ b/data/scheduled/scheduled.pb.go @@ -6,12 +6,12 @@ package scheduled import ( bytes "bytes" fmt "fmt" - github_com_ElrondNetwork_elrond_go_core_data "github.com/ElrondNetwork/elrond-go-core/data" - block "github.com/ElrondNetwork/elrond-go-core/data/block" - smartContractResult "github.com/ElrondNetwork/elrond-go-core/data/smartContractResult" - transaction "github.com/ElrondNetwork/elrond-go-core/data/transaction" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" + github_com_ElrondNetwork_elrond_go_core_data "github.com/multiversx/mx-chain-core-go/data" + block "github.com/multiversx/mx-chain-core-go/data/block" + smartContractResult "github.com/multiversx/mx-chain-core-go/data/smartContractResult" + transaction "github.com/multiversx/mx-chain-core-go/data/transaction" io "io" math "math" math_big "math/big" @@ -32,8 +32,8 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type GasAndFees struct { - AccumulatedFees *math_big.Int `protobuf:"bytes,1,opt,name=AccumulatedFees,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"AccumulatedFees,omitempty"` - DeveloperFees *math_big.Int `protobuf:"bytes,2,opt,name=DeveloperFees,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"DeveloperFees,omitempty"` + AccumulatedFees *math_big.Int `protobuf:"bytes,1,opt,name=AccumulatedFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"AccumulatedFees,omitempty"` + DeveloperFees *math_big.Int `protobuf:"bytes,2,opt,name=DeveloperFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"DeveloperFees,omitempty"` GasProvided uint64 `protobuf:"varint,3,opt,name=GasProvided,proto3" json:"GasProvided,omitempty"` GasPenalized uint64 `protobuf:"varint,4,opt,name=GasPenalized,proto3" json:"GasPenalized,omitempty"` GasRefunded uint64 `protobuf:"varint,5,opt,name=GasRefunded,proto3" json:"GasRefunded,omitempty"` diff --git a/data/scheduled/scheduled.proto b/data/scheduled/scheduled.proto index 65ef42d9b..2949edb80 100644 --- a/data/scheduled/scheduled.proto +++ b/data/scheduled/scheduled.proto @@ -6,13 +6,13 @@ option go_package = "scheduled"; option (gogoproto.stable_marshaler_all) = true; import "github.com/gogo/protobuf/gogoproto/gogo.proto"; -import "github.com/ElrondNetwork/elrond-go-core/data/smartContractResult/smartContractResult.proto"; -import "github.com/ElrondNetwork/elrond-go-core/data/block/block.proto"; -import "github.com/ElrondNetwork/elrond-go-core/data/transaction/transaction.proto"; +import "github.com/multiversx/mx-chain-core-go/data/smartContractResult/smartContractResult.proto"; +import "github.com/multiversx/mx-chain-core-go/data/block/block.proto"; +import "github.com/multiversx/mx-chain-core-go/data/transaction/transaction.proto"; message GasAndFees { - bytes AccumulatedFees = 1 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; - bytes DeveloperFees = 2 [(gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; + bytes AccumulatedFees = 1 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + bytes DeveloperFees = 2 [(gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; uint64 GasProvided = 3; uint64 GasPenalized = 4; uint64 GasRefunded = 5; diff --git a/data/scheduled/scheduled_test.go b/data/scheduled/scheduled_test.go index 84ec12f7a..81c952109 100644 --- a/data/scheduled/scheduled_test.go +++ b/data/scheduled/scheduled_test.go @@ -3,11 +3,11 @@ package scheduled_test import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/block" - "github.com/ElrondNetwork/elrond-go-core/data/scheduled" - "github.com/ElrondNetwork/elrond-go-core/data/smartContractResult" - "github.com/ElrondNetwork/elrond-go-core/data/transaction" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/block" + "github.com/multiversx/mx-chain-core-go/data/scheduled" + "github.com/multiversx/mx-chain-core-go/data/smartContractResult" + "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/stretchr/testify/require" ) diff --git a/data/smartContractResult/smartContractResult.go b/data/smartContractResult/smartContractResult.go index 22ca32668..c6ab0f8a6 100644 --- a/data/smartContractResult/smartContractResult.go +++ b/data/smartContractResult/smartContractResult.go @@ -1,10 +1,10 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. smartContractResult.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. smartContractResult.proto package smartContractResult import ( "math/big" - "github.com/ElrondNetwork/elrond-go-core/data" + "github.com/multiversx/mx-chain-core-go/data" ) var _ = data.TransactionHandler(&SmartContractResult{}) diff --git a/data/smartContractResult/smartContractResult.pb.go b/data/smartContractResult/smartContractResult.pb.go index 7d21b11ea..31a80665a 100644 --- a/data/smartContractResult/smartContractResult.pb.go +++ b/data/smartContractResult/smartContractResult.pb.go @@ -6,10 +6,10 @@ package smartContractResult import ( bytes "bytes" fmt "fmt" - github_com_ElrondNetwork_elrond_go_core_data "github.com/ElrondNetwork/elrond-go-core/data" - github_com_ElrondNetwork_elrond_go_core_data_vm "github.com/ElrondNetwork/elrond-go-core/data/vm" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" + github_com_ElrondNetwork_elrond_go_core_data "github.com/multiversx/mx-chain-core-go/data" + github_com_ElrondNetwork_elrond_go_core_data_vm "github.com/multiversx/mx-chain-core-go/data/vm" io "io" math "math" math_big "math/big" @@ -31,18 +31,18 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type SmartContractResult struct { Nonce uint64 `protobuf:"varint,1,opt,name=Nonce,proto3" json:"nonce"` - Value *math_big.Int `protobuf:"bytes,2,opt,name=Value,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"value"` + Value *math_big.Int `protobuf:"bytes,2,opt,name=Value,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"value"` RcvAddr []byte `protobuf:"bytes,3,opt,name=RcvAddr,proto3" json:"receiver"` SndAddr []byte `protobuf:"bytes,4,opt,name=SndAddr,proto3" json:"sender"` RelayerAddr []byte `protobuf:"bytes,5,opt,name=RelayerAddr,proto3" json:"relayer"` - RelayedValue *math_big.Int `protobuf:"bytes,6,opt,name=RelayedValue,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"relayedValue"` + RelayedValue *math_big.Int `protobuf:"bytes,6,opt,name=RelayedValue,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"relayedValue"` Code []byte `protobuf:"bytes,7,opt,name=Code,proto3" json:"code,omitempty"` Data []byte `protobuf:"bytes,8,opt,name=Data,proto3" json:"data,omitempty"` PrevTxHash []byte `protobuf:"bytes,9,opt,name=PrevTxHash,proto3" json:"prevTxHash"` OriginalTxHash []byte `protobuf:"bytes,10,opt,name=OriginalTxHash,proto3" json:"originalTxHash"` GasLimit uint64 `protobuf:"varint,11,opt,name=GasLimit,proto3" json:"gasLimit"` GasPrice uint64 `protobuf:"varint,12,opt,name=GasPrice,proto3" json:"gasPrice"` - CallType github_com_ElrondNetwork_elrond_go_core_data_vm.CallType `protobuf:"varint,13,opt,name=CallType,proto3,casttype=github.com/ElrondNetwork/elrond-go-core/data/vm.CallType" json:"callType"` + CallType github_com_ElrondNetwork_elrond_go_core_data_vm.CallType `protobuf:"varint,13,opt,name=CallType,proto3,casttype=github.com/multiversx/mx-chain-core-go/data/vm.CallType" json:"callType"` CodeMetadata []byte `protobuf:"bytes,14,opt,name=CodeMetadata,proto3" json:"codeMetadata,omitempty"` ReturnMessage []byte `protobuf:"bytes,15,opt,name=ReturnMessage,proto3" json:"returnMessage,omitempty"` OriginalSender []byte `protobuf:"bytes,16,opt,name=OriginalSender,proto3" json:"originalSender,omitempty"` diff --git a/data/smartContractResult/smartContractResult.proto b/data/smartContractResult/smartContractResult.proto index 0827559eb..4f074fc73 100644 --- a/data/smartContractResult/smartContractResult.proto +++ b/data/smartContractResult/smartContractResult.proto @@ -10,18 +10,18 @@ import "github.com/gogo/protobuf/gogoproto/gogo.proto"; message SmartContractResult { uint64 Nonce = 1 [(gogoproto.jsontag) = "nonce"]; - bytes Value = 2 [(gogoproto.jsontag) = "value", (gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; + bytes Value = 2 [(gogoproto.jsontag) = "value", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; bytes RcvAddr = 3 [(gogoproto.jsontag) = "receiver"]; bytes SndAddr = 4 [(gogoproto.jsontag) = "sender"]; bytes RelayerAddr = 5 [(gogoproto.jsontag) = "relayer"]; - bytes RelayedValue = 6 [(gogoproto.jsontag) = "relayedValue", (gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; + bytes RelayedValue = 6 [(gogoproto.jsontag) = "relayedValue", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; bytes Code = 7 [(gogoproto.jsontag) = "code,omitempty"]; bytes Data = 8 [(gogoproto.jsontag) = "data,omitempty"]; bytes PrevTxHash = 9 [(gogoproto.jsontag) = "prevTxHash"]; bytes OriginalTxHash = 10 [(gogoproto.jsontag) = "originalTxHash"]; uint64 GasLimit = 11 [(gogoproto.jsontag) = "gasLimit"]; uint64 GasPrice = 12 [(gogoproto.jsontag) = "gasPrice"]; - int64 CallType = 13 [(gogoproto.jsontag) = "callType", (gogoproto.casttype) = "github.com/ElrondNetwork/elrond-go-core/data/vm.CallType"]; + int64 CallType = 13 [(gogoproto.jsontag) = "callType", (gogoproto.casttype) = "github.com/multiversx/mx-chain-core-go/data/vm.CallType"]; bytes CodeMetadata = 14 [(gogoproto.jsontag) = "codeMetadata,omitempty"]; bytes ReturnMessage = 15 [(gogoproto.jsontag) = "returnMessage,omitempty"]; bytes OriginalSender = 16 [(gogoproto.jsontag) = "originalSender,omitempty"]; diff --git a/data/smartContractResult/smartContractResult_test.go b/data/smartContractResult/smartContractResult_test.go index 4e02e9a21..75eba8287 100644 --- a/data/smartContractResult/smartContractResult_test.go +++ b/data/smartContractResult/smartContractResult_test.go @@ -4,8 +4,8 @@ import ( "math/big" "testing" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/smartContractResult" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/smartContractResult" "github.com/stretchr/testify/assert" ) diff --git a/data/transaction/apiTransactionResult.go b/data/transaction/apiTransactionResult.go index eda0349c0..1fa95e509 100644 --- a/data/transaction/apiTransactionResult.go +++ b/data/transaction/apiTransactionResult.go @@ -3,8 +3,8 @@ package transaction import ( "math/big" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/vm" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/vm" ) // ApiTransactionResult is the data transfer object which will be returned on the get transaction by hash endpoint diff --git a/data/transaction/interface.go b/data/transaction/interface.go index 879444676..0d24c06c6 100644 --- a/data/transaction/interface.go +++ b/data/transaction/interface.go @@ -1,6 +1,6 @@ package transaction -import "github.com/ElrondNetwork/elrond-go-core/data/block" +import "github.com/multiversx/mx-chain-core-go/data/block" // Encoder represents a byte slice to string encoder type Encoder interface { diff --git a/data/transaction/log.go b/data/transaction/log.go index 2bd9b6d17..3f917c0f3 100644 --- a/data/transaction/log.go +++ b/data/transaction/log.go @@ -1,8 +1,8 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. log.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. log.proto package transaction import ( - "github.com/ElrondNetwork/elrond-go-core/data" + "github.com/multiversx/mx-chain-core-go/data" ) // GetLogEvents returns the interface for the underlying events of the log structure diff --git a/data/transaction/log_test.go b/data/transaction/log_test.go index 148892e9a..34f88c687 100644 --- a/data/transaction/log_test.go +++ b/data/transaction/log_test.go @@ -3,8 +3,8 @@ package transaction_test import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/data/transaction" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/stretchr/testify/require" ) diff --git a/data/transaction/transaction.go b/data/transaction/transaction.go index 951b10cf8..e0daa67e7 100644 --- a/data/transaction/transaction.go +++ b/data/transaction/transaction.go @@ -1,12 +1,12 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. transaction.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. transaction.proto package transaction import ( "math/big" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/data" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/data" ) var _ = data.TransactionHandler(&Transaction{}) diff --git a/data/transaction/transaction.pb.go b/data/transaction/transaction.pb.go index 199cb8d35..c59ea7580 100644 --- a/data/transaction/transaction.pb.go +++ b/data/transaction/transaction.pb.go @@ -6,9 +6,9 @@ package transaction import ( bytes "bytes" fmt "fmt" - github_com_ElrondNetwork_elrond_go_core_data "github.com/ElrondNetwork/elrond-go-core/data" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" + github_com_ElrondNetwork_elrond_go_core_data "github.com/multiversx/mx-chain-core-go/data" io "io" math "math" math_big "math/big" @@ -31,7 +31,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Transaction holds all the data needed for a value transfer or SC call type Transaction struct { Nonce uint64 `protobuf:"varint,1,opt,name=Nonce,proto3" json:"nonce"` - Value *math_big.Int `protobuf:"bytes,2,opt,name=Value,proto3,casttypewith=math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster" json:"value"` + Value *math_big.Int `protobuf:"bytes,2,opt,name=Value,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"value"` RcvAddr []byte `protobuf:"bytes,3,opt,name=RcvAddr,proto3" json:"receiver"` RcvUserName []byte `protobuf:"bytes,4,opt,name=RcvUserName,proto3" json:"rcvUserName,omitempty"` SndAddr []byte `protobuf:"bytes,5,opt,name=SndAddr,proto3" json:"sender"` diff --git a/data/transaction/transaction.proto b/data/transaction/transaction.proto index 80ff195e5..409c43f76 100644 --- a/data/transaction/transaction.proto +++ b/data/transaction/transaction.proto @@ -16,7 +16,7 @@ import "github.com/gogo/protobuf/gogoproto/gogo.proto"; // Transaction holds all the data needed for a value transfer or SC call message Transaction { uint64 Nonce = 1 [(gogoproto.jsontag) = "nonce"]; - bytes Value = 2 [(gogoproto.jsontag) = "value", (gogoproto.casttypewith) = "math/big.Int;github.com/ElrondNetwork/elrond-go-core/data.BigIntCaster"]; + bytes Value = 2 [(gogoproto.jsontag) = "value", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; bytes RcvAddr = 3 [(gogoproto.jsontag) = "receiver"]; bytes RcvUserName = 4 [(gogoproto.jsontag) = "rcvUserName,omitempty"]; bytes SndAddr = 5 [(gogoproto.jsontag) = "sender"]; diff --git a/data/transaction/transaction_test.go b/data/transaction/transaction_test.go index 1e20e9c78..9df081bce 100644 --- a/data/transaction/transaction_test.go +++ b/data/transaction/transaction_test.go @@ -6,10 +6,10 @@ import ( "math/big" "testing" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/mock" - "github.com/ElrondNetwork/elrond-go-core/data/transaction" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/mock" + "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/stretchr/testify/assert" ) diff --git a/data/typeConverters/uint64ByteSlice/bigEndianConverter.go b/data/typeConverters/uint64ByteSlice/bigEndianConverter.go index dac99af0f..fcca54cf9 100644 --- a/data/typeConverters/uint64ByteSlice/bigEndianConverter.go +++ b/data/typeConverters/uint64ByteSlice/bigEndianConverter.go @@ -3,7 +3,7 @@ package uint64ByteSlice import ( "encoding/binary" - "github.com/ElrondNetwork/elrond-go-core/data/typeConverters" + "github.com/multiversx/mx-chain-core-go/data/typeConverters" ) type bigEndianConverter struct { diff --git a/data/typeConverters/uint64ByteSlice/bigEndianConverter_test.go b/data/typeConverters/uint64ByteSlice/bigEndianConverter_test.go index f05dcf9bf..20b6c1bcf 100644 --- a/data/typeConverters/uint64ByteSlice/bigEndianConverter_test.go +++ b/data/typeConverters/uint64ByteSlice/bigEndianConverter_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/data/typeConverters" - "github.com/ElrondNetwork/elrond-go-core/data/typeConverters/uint64ByteSlice" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/data/typeConverters" + "github.com/multiversx/mx-chain-core-go/data/typeConverters/uint64ByteSlice" "github.com/stretchr/testify/assert" ) diff --git a/display/placeholders_test.go b/display/placeholders_test.go index b0d0d2772..f176fd058 100644 --- a/display/placeholders_test.go +++ b/display/placeholders_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/ElrondNetwork/elrond-go-core/display" + "github.com/multiversx/mx-chain-core-go/display" "github.com/stretchr/testify/assert" ) diff --git a/go.mod b/go.mod index 22eb60163..75abb36b0 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ElrondNetwork/elrond-go-core +module github.com/multiversx/mx-chain-core-go go 1.17 @@ -25,4 +25,4 @@ require ( gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect ) -replace github.com/gogo/protobuf => github.com/ElrondNetwork/protobuf v1.3.2 +replace github.com/gogo/protobuf => github.com/multiversx/protobuf v1.3.2 diff --git a/go.sum b/go.sum index 72281b735..c3c008783 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -github.com/ElrondNetwork/protobuf v1.3.2 h1:qoCSYiO+8GtXBEZWEjw0WPcZfM3g7QuuJrwpN+y6Mvg= -github.com/ElrondNetwork/protobuf v1.3.2/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c/go.mod h1:tjmYdS6MLJ5/s0Fj4DbLgSbDHbEqLJrtnHecBFkdz5M= @@ -64,6 +62,8 @@ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+o github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= +github.com/multiversx/protobuf v1.3.2 h1:RaNkxvGTGbA0lMcnHAN24qE1G1i+Xs5yHA6MDvQ4mSM= +github.com/multiversx/protobuf v1.3.2/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= diff --git a/hashing/blake2b/blake2b.go b/hashing/blake2b/blake2b.go index 270a3c6c9..2a6b843ef 100644 --- a/hashing/blake2b/blake2b.go +++ b/hashing/blake2b/blake2b.go @@ -3,7 +3,7 @@ package blake2b import ( "hash" - "github.com/ElrondNetwork/elrond-go-core/hashing" + "github.com/multiversx/mx-chain-core-go/hashing" blake2bLib "golang.org/x/crypto/blake2b" ) diff --git a/hashing/blake2b/blake2b_test.go b/hashing/blake2b/blake2b_test.go index 44bc3ce4b..cd6200c69 100644 --- a/hashing/blake2b/blake2b_test.go +++ b/hashing/blake2b/blake2b_test.go @@ -3,7 +3,7 @@ package blake2b_test import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/hashing/blake2b" + "github.com/multiversx/mx-chain-core-go/hashing/blake2b" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" blake2bLib "golang.org/x/crypto/blake2b" diff --git a/hashing/factory/hasherFactory.go b/hashing/factory/hasherFactory.go index e6b188a83..64b5d63ad 100644 --- a/hashing/factory/hasherFactory.go +++ b/hashing/factory/hasherFactory.go @@ -1,10 +1,10 @@ package factory import ( - "github.com/ElrondNetwork/elrond-go-core/hashing" - "github.com/ElrondNetwork/elrond-go-core/hashing/blake2b" - "github.com/ElrondNetwork/elrond-go-core/hashing/keccak" - "github.com/ElrondNetwork/elrond-go-core/hashing/sha256" + "github.com/multiversx/mx-chain-core-go/hashing" + "github.com/multiversx/mx-chain-core-go/hashing/blake2b" + "github.com/multiversx/mx-chain-core-go/hashing/keccak" + "github.com/multiversx/mx-chain-core-go/hashing/sha256" ) // NewHasher will return a new instance of hasher based on the value stored in config diff --git a/hashing/factory/hasherFactory_test.go b/hashing/factory/hasherFactory_test.go index 8a70838dd..6ea9fa90a 100644 --- a/hashing/factory/hasherFactory_test.go +++ b/hashing/factory/hasherFactory_test.go @@ -3,9 +3,9 @@ package factory import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/hashing" - "github.com/ElrondNetwork/elrond-go-core/hashing/blake2b" - "github.com/ElrondNetwork/elrond-go-core/hashing/sha256" + "github.com/multiversx/mx-chain-core-go/hashing" + "github.com/multiversx/mx-chain-core-go/hashing/blake2b" + "github.com/multiversx/mx-chain-core-go/hashing/sha256" "github.com/stretchr/testify/assert" ) diff --git a/hashing/fnv/fnv.go b/hashing/fnv/fnv.go index 300007c29..9361095d9 100644 --- a/hashing/fnv/fnv.go +++ b/hashing/fnv/fnv.go @@ -3,7 +3,7 @@ package fnv import ( fnvLib "hash/fnv" - "github.com/ElrondNetwork/elrond-go-core/hashing" + "github.com/multiversx/mx-chain-core-go/hashing" ) var _ hashing.Hasher = (*fnv)(nil) diff --git a/hashing/hasher_test.go b/hashing/hasher_test.go index 746fab8c2..ec7245b10 100644 --- a/hashing/hasher_test.go +++ b/hashing/hasher_test.go @@ -4,11 +4,11 @@ import ( "sync" "testing" - "github.com/ElrondNetwork/elrond-go-core/hashing" - "github.com/ElrondNetwork/elrond-go-core/hashing/blake2b" - "github.com/ElrondNetwork/elrond-go-core/hashing/fnv" - "github.com/ElrondNetwork/elrond-go-core/hashing/keccak" - "github.com/ElrondNetwork/elrond-go-core/hashing/sha256" + "github.com/multiversx/mx-chain-core-go/hashing" + "github.com/multiversx/mx-chain-core-go/hashing/blake2b" + "github.com/multiversx/mx-chain-core-go/hashing/fnv" + "github.com/multiversx/mx-chain-core-go/hashing/keccak" + "github.com/multiversx/mx-chain-core-go/hashing/sha256" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/hashing/keccak/keccak.go b/hashing/keccak/keccak.go index 1712f8ca2..c39920d2b 100644 --- a/hashing/keccak/keccak.go +++ b/hashing/keccak/keccak.go @@ -1,7 +1,7 @@ package keccak import ( - "github.com/ElrondNetwork/elrond-go-core/hashing" + "github.com/multiversx/mx-chain-core-go/hashing" "golang.org/x/crypto/sha3" ) diff --git a/hashing/sha256/sha256.go b/hashing/sha256/sha256.go index 9517ead9e..079782e8b 100644 --- a/hashing/sha256/sha256.go +++ b/hashing/sha256/sha256.go @@ -3,7 +3,7 @@ package sha256 import ( sha256Lib "crypto/sha256" - "github.com/ElrondNetwork/elrond-go-core/hashing" + "github.com/multiversx/mx-chain-core-go/hashing" ) var _ hashing.Hasher = (*sha256)(nil) diff --git a/marshal/benchmarks_test.go b/marshal/benchmarks_test.go index 4f1b6b829..78405c328 100644 --- a/marshal/benchmarks_test.go +++ b/marshal/benchmarks_test.go @@ -6,9 +6,9 @@ import ( "math/rand" "testing" - "github.com/ElrondNetwork/elrond-go-core/data/block" - "github.com/ElrondNetwork/elrond-go-core/data/transaction" - "github.com/ElrondNetwork/elrond-go-core/marshal" + "github.com/multiversx/mx-chain-core-go/data/block" + "github.com/multiversx/mx-chain-core-go/data/transaction" + "github.com/multiversx/mx-chain-core-go/marshal" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/marshal/factory/marshalizerFactory.go b/marshal/factory/marshalizerFactory.go index a27ab8cce..4f8387475 100644 --- a/marshal/factory/marshalizerFactory.go +++ b/marshal/factory/marshalizerFactory.go @@ -3,7 +3,7 @@ package factory import ( "fmt" - "github.com/ElrondNetwork/elrond-go-core/marshal" + "github.com/multiversx/mx-chain-core-go/marshal" ) // JsonMarshalizer is the name reserved for the json marshalizer diff --git a/marshal/factory/marshalizerFactory_test.go b/marshal/factory/marshalizerFactory_test.go index 0b9e94ec7..1c8e9a091 100644 --- a/marshal/factory/marshalizerFactory_test.go +++ b/marshal/factory/marshalizerFactory_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/marshal" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/marshal" "github.com/stretchr/testify/assert" ) diff --git a/marshal/gogoProtoMarshalizer_test.go b/marshal/gogoProtoMarshalizer_test.go index 8f2b08fba..2ceb9f423 100644 --- a/marshal/gogoProtoMarshalizer_test.go +++ b/marshal/gogoProtoMarshalizer_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/ElrondNetwork/elrond-go-core/data/block" - "github.com/ElrondNetwork/elrond-go-core/marshal" + "github.com/multiversx/mx-chain-core-go/data/block" + "github.com/multiversx/mx-chain-core-go/marshal" "github.com/stretchr/testify/assert" ) @@ -49,7 +49,7 @@ func TestGogoProtoMarshalizer_Marshal(t *testing.T) { func TestGogoProtoMarshalizer_MarshalWrongObj(t *testing.T) { - obj := "elrond" + obj := "multiversx" encNode, err := recovedMarshal(obj) assert.Nil(t, encNode) assert.NotNil(t, err) diff --git a/marshal/marshalizer_test.go b/marshal/marshalizer_test.go index 7fce104e7..5ae9b8fde 100644 --- a/marshal/marshalizer_test.go +++ b/marshal/marshalizer_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/ElrondNetwork/elrond-go-core/marshal" + "github.com/multiversx/mx-chain-core-go/marshal" "github.com/stretchr/testify/assert" ) diff --git a/marshal/testSizeCheckUnmarshal/testStructs_test.go b/marshal/testSizeCheckUnmarshal/testStructs_test.go index fbe2a92c2..cac76ae93 100644 --- a/marshal/testSizeCheckUnmarshal/testStructs_test.go +++ b/marshal/testSizeCheckUnmarshal/testStructs_test.go @@ -1,11 +1,11 @@ -//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/ElrondNetwork/protobuf/protobuf --gogoslick_out=. testStruct.proto +//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/multiversx/protobuf/protobuf --gogoslick_out=. testStruct.proto package testSizeCheckUnmarshal import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/marshal" + "github.com/multiversx/mx-chain-core-go/marshal" "github.com/stretchr/testify/assert" ) diff --git a/storage/lrucache/capacity/capacityLRUCache.go b/storage/lrucache/capacity/capacityLRUCache.go index cbb5f476e..275a440d6 100644 --- a/storage/lrucache/capacity/capacityLRUCache.go +++ b/storage/lrucache/capacity/capacityLRUCache.go @@ -4,7 +4,7 @@ import ( "container/list" "sync" - "github.com/ElrondNetwork/elrond-go-core/storage" + "github.com/multiversx/mx-chain-core-go/storage" ) // capacityLRU implements a non thread safe LRU Cache with a max capacity size diff --git a/storage/lrucache/capacity/capacityLRUCache_test.go b/storage/lrucache/capacity/capacityLRUCache_test.go index b9a6bf070..c59d4877e 100644 --- a/storage/lrucache/capacity/capacityLRUCache_test.go +++ b/storage/lrucache/capacity/capacityLRUCache_test.go @@ -3,8 +3,8 @@ package capacity import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/storage" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/storage" "github.com/stretchr/testify/assert" ) diff --git a/storage/lrucache/lrucache.go b/storage/lrucache/lrucache.go index b8d0c44ba..93a8d767c 100644 --- a/storage/lrucache/lrucache.go +++ b/storage/lrucache/lrucache.go @@ -3,9 +3,9 @@ package lrucache import ( "sync" - "github.com/ElrondNetwork/elrond-go-core/storage" - "github.com/ElrondNetwork/elrond-go-core/storage/lrucache/capacity" lru "github.com/hashicorp/golang-lru" + "github.com/multiversx/mx-chain-core-go/storage" + "github.com/multiversx/mx-chain-core-go/storage/lrucache/capacity" ) var _ storage.Cacher = (*lruCache)(nil) diff --git a/storage/lrucache/lrucache_test.go b/storage/lrucache/lrucache_test.go index 7e34bdcaa..8265b00cf 100644 --- a/storage/lrucache/lrucache_test.go +++ b/storage/lrucache/lrucache_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/storage" - "github.com/ElrondNetwork/elrond-go-core/storage/lrucache" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/storage" + "github.com/multiversx/mx-chain-core-go/storage/lrucache" "github.com/stretchr/testify/assert" ) diff --git a/storage/lrucache/simpleLRUCacheAdapter.go b/storage/lrucache/simpleLRUCacheAdapter.go index 6affa266b..82b481bd3 100644 --- a/storage/lrucache/simpleLRUCacheAdapter.go +++ b/storage/lrucache/simpleLRUCacheAdapter.go @@ -1,6 +1,6 @@ package lrucache -import "github.com/ElrondNetwork/elrond-go-core/storage" +import "github.com/multiversx/mx-chain-core-go/storage" // simpleLRUCacheAdapter provides an adapter between LRUCacheHandler and SizeLRUCacheHandler type simpleLRUCacheAdapter struct { diff --git a/websocketOutportDriver/data/shared.go b/websocketOutportDriver/data/shared.go index 5c4809538..414a98cf2 100644 --- a/websocketOutportDriver/data/shared.go +++ b/websocketOutportDriver/data/shared.go @@ -1,9 +1,9 @@ package data import ( - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/outport" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/outport" ) // WsSendArgs holds the arguments needed for performing a web socket request diff --git a/websocketOutportDriver/factory/factory.go b/websocketOutportDriver/factory/factory.go index 2d532fc6e..2bdf8a8dd 100644 --- a/websocketOutportDriver/factory/factory.go +++ b/websocketOutportDriver/factory/factory.go @@ -3,14 +3,14 @@ package factory import ( "net/http" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/marshal" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver" - outportData "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/data" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/sender" "github.com/gorilla/mux" "github.com/gorilla/websocket" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/marshal" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver" + outportData "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/data" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/sender" ) // OutportDriverWebSocketSenderFactoryArgs holds the arguments needed for creating a outportDriverWebSocketSenderFactory diff --git a/websocketOutportDriver/interface.go b/websocketOutportDriver/interface.go index ab98af7c3..10c31c76f 100644 --- a/websocketOutportDriver/interface.go +++ b/websocketOutportDriver/interface.go @@ -1,9 +1,9 @@ package websocketOutportDriver import ( - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/outport" - outportSenderData "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/data" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/outport" + outportSenderData "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/data" ) // Driver is an interface for saving node specific data to other storage. diff --git a/websocketOutportDriver/mock/webSocketSenderStub.go b/websocketOutportDriver/mock/webSocketSenderStub.go index 0c8aef277..e475245d6 100644 --- a/websocketOutportDriver/mock/webSocketSenderStub.go +++ b/websocketOutportDriver/mock/webSocketSenderStub.go @@ -1,7 +1,7 @@ package mock import ( - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/data" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/data" ) // WebSocketSenderStub - diff --git a/websocketOutportDriver/payloadParser.go b/websocketOutportDriver/payloadParser.go index f2ca7b7d9..ca752fdd6 100644 --- a/websocketOutportDriver/payloadParser.go +++ b/websocketOutportDriver/payloadParser.go @@ -5,10 +5,10 @@ import ( "encoding/hex" "fmt" - "github.com/ElrondNetwork/elrond-go-core/core/check" - dataCore "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/outport" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/data" + "github.com/multiversx/mx-chain-core-go/core/check" + dataCore "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/outport" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/data" ) const ( diff --git a/websocketOutportDriver/payloadParser_test.go b/websocketOutportDriver/payloadParser_test.go index 3d099809b..7a97ca7d6 100644 --- a/websocketOutportDriver/payloadParser_test.go +++ b/websocketOutportDriver/payloadParser_test.go @@ -6,9 +6,9 @@ import ( "strings" "testing" - "github.com/ElrondNetwork/elrond-go-core/data/typeConverters/uint64ByteSlice" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/data" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/mock" + "github.com/multiversx/mx-chain-core-go/data/typeConverters/uint64ByteSlice" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/data" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/mock" "github.com/stretchr/testify/require" ) diff --git a/websocketOutportDriver/sender/webSocketSender.go b/websocketOutportDriver/sender/webSocketSender.go index 9236a9666..9bbfd2730 100644 --- a/websocketOutportDriver/sender/webSocketSender.go +++ b/websocketOutportDriver/sender/webSocketSender.go @@ -7,10 +7,10 @@ import ( "sync/atomic" "time" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/check" - outportData "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/data" "github.com/gorilla/websocket" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/check" + outportData "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/data" ) var ( diff --git a/websocketOutportDriver/sender/webSocketSender_test.go b/websocketOutportDriver/sender/webSocketSender_test.go index 6be062823..b150f733c 100644 --- a/websocketOutportDriver/sender/webSocketSender_test.go +++ b/websocketOutportDriver/sender/webSocketSender_test.go @@ -5,10 +5,10 @@ import ( "testing" "time" - coreMock "github.com/ElrondNetwork/elrond-go-core/core/mock" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/data" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/mock" "github.com/gorilla/websocket" + coreMock "github.com/multiversx/mx-chain-core-go/core/mock" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/data" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/mock" "github.com/stretchr/testify/require" ) diff --git a/websocketOutportDriver/sender/websocketClientsHolder.go b/websocketOutportDriver/sender/websocketClientsHolder.go index baa623f3b..2e2060087 100644 --- a/websocketOutportDriver/sender/websocketClientsHolder.go +++ b/websocketOutportDriver/sender/websocketClientsHolder.go @@ -3,7 +3,7 @@ package sender import ( "sync" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/data" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/data" ) type websocketClientsHolder struct { diff --git a/websocketOutportDriver/sender/websocketClientsHolder_test.go b/websocketOutportDriver/sender/websocketClientsHolder_test.go index 18fa5ba27..8c06f4e3f 100644 --- a/websocketOutportDriver/sender/websocketClientsHolder_test.go +++ b/websocketOutportDriver/sender/websocketClientsHolder_test.go @@ -3,8 +3,8 @@ package sender import ( "testing" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/data" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/mock" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/data" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/mock" "github.com/stretchr/testify/require" ) diff --git a/websocketOutportDriver/tests/realtest/client/bin/main.go b/websocketOutportDriver/tests/realtest/client/bin/main.go index d6dc4f487..b77f2ebb7 100644 --- a/websocketOutportDriver/tests/realtest/client/bin/main.go +++ b/websocketOutportDriver/tests/realtest/client/bin/main.go @@ -4,8 +4,8 @@ import ( "flag" "log" - "github.com/ElrondNetwork/elrond-go-core/marshal" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/tests/realtest/client" + "github.com/multiversx/mx-chain-core-go/marshal" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/tests/realtest/client" ) var ( diff --git a/websocketOutportDriver/tests/realtest/client/client.go b/websocketOutportDriver/tests/realtest/client/client.go index aa62cab12..730502f63 100644 --- a/websocketOutportDriver/tests/realtest/client/client.go +++ b/websocketOutportDriver/tests/realtest/client/client.go @@ -9,14 +9,14 @@ import ( "os/signal" "time" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/core/mock" - "github.com/ElrondNetwork/elrond-go-core/data/outport" - "github.com/ElrondNetwork/elrond-go-core/data/typeConverters/uint64ByteSlice" - "github.com/ElrondNetwork/elrond-go-core/marshal" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/data" "github.com/gorilla/websocket" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/core/mock" + "github.com/multiversx/mx-chain-core-go/data/outport" + "github.com/multiversx/mx-chain-core-go/data/typeConverters/uint64ByteSlice" + "github.com/multiversx/mx-chain-core-go/marshal" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/data" ) // WSConn defines what a sender shall do diff --git a/websocketOutportDriver/tests/realtest/server/interface.go b/websocketOutportDriver/tests/realtest/server/interface.go index 758dad71a..df1393f71 100644 --- a/websocketOutportDriver/tests/realtest/server/interface.go +++ b/websocketOutportDriver/tests/realtest/server/interface.go @@ -1,8 +1,8 @@ package main import ( - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/outport" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/outport" ) // Driver is an interface for saving node specific data to other storage. diff --git a/websocketOutportDriver/tests/realtest/server/server.go b/websocketOutportDriver/tests/realtest/server/server.go index ae33e7b17..29641eedb 100644 --- a/websocketOutportDriver/tests/realtest/server/server.go +++ b/websocketOutportDriver/tests/realtest/server/server.go @@ -4,12 +4,12 @@ import ( "fmt" "time" - "github.com/ElrondNetwork/elrond-go-core/core/mock" - "github.com/ElrondNetwork/elrond-go-core/data/outport" - "github.com/ElrondNetwork/elrond-go-core/data/typeConverters/uint64ByteSlice" - "github.com/ElrondNetwork/elrond-go-core/marshal" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/data" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/factory" + "github.com/multiversx/mx-chain-core-go/core/mock" + "github.com/multiversx/mx-chain-core-go/data/outport" + "github.com/multiversx/mx-chain-core-go/data/typeConverters/uint64ByteSlice" + "github.com/multiversx/mx-chain-core-go/marshal" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/data" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/factory" ) var jsonMarshaller = &marshal.JsonMarshalizer{} diff --git a/websocketOutportDriver/websocketOutportDriverNodePart.go b/websocketOutportDriver/websocketOutportDriverNodePart.go index 46e5556ec..3244c71bf 100644 --- a/websocketOutportDriver/websocketOutportDriverNodePart.go +++ b/websocketOutportDriver/websocketOutportDriverNodePart.go @@ -3,13 +3,13 @@ package websocketOutportDriver import ( "fmt" - "github.com/ElrondNetwork/elrond-go-core/core" - "github.com/ElrondNetwork/elrond-go-core/core/atomic" - "github.com/ElrondNetwork/elrond-go-core/core/check" - "github.com/ElrondNetwork/elrond-go-core/data" - "github.com/ElrondNetwork/elrond-go-core/data/outport" - "github.com/ElrondNetwork/elrond-go-core/marshal" - outportSenderData "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/data" + "github.com/multiversx/mx-chain-core-go/core" + "github.com/multiversx/mx-chain-core-go/core/atomic" + "github.com/multiversx/mx-chain-core-go/core/check" + "github.com/multiversx/mx-chain-core-go/data" + "github.com/multiversx/mx-chain-core-go/data/outport" + "github.com/multiversx/mx-chain-core-go/marshal" + outportSenderData "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/data" ) // WebsocketOutportDriverNodePartArgs holds the arguments needed for creating a new websocketOutportDriverNodePart diff --git a/websocketOutportDriver/websocketOutportDriverNodePart_test.go b/websocketOutportDriver/websocketOutportDriverNodePart_test.go index 82f6fcd4c..441f84934 100644 --- a/websocketOutportDriver/websocketOutportDriverNodePart_test.go +++ b/websocketOutportDriver/websocketOutportDriverNodePart_test.go @@ -4,14 +4,14 @@ import ( "errors" "testing" - "github.com/ElrondNetwork/elrond-go-core/core" - coreMock "github.com/ElrondNetwork/elrond-go-core/core/mock" - "github.com/ElrondNetwork/elrond-go-core/data/block" - "github.com/ElrondNetwork/elrond-go-core/data/outport" - "github.com/ElrondNetwork/elrond-go-core/data/typeConverters/uint64ByteSlice" - "github.com/ElrondNetwork/elrond-go-core/marshal" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/data" - "github.com/ElrondNetwork/elrond-go-core/websocketOutportDriver/mock" + "github.com/multiversx/mx-chain-core-go/core" + coreMock "github.com/multiversx/mx-chain-core-go/core/mock" + "github.com/multiversx/mx-chain-core-go/data/block" + "github.com/multiversx/mx-chain-core-go/data/outport" + "github.com/multiversx/mx-chain-core-go/data/typeConverters/uint64ByteSlice" + "github.com/multiversx/mx-chain-core-go/marshal" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/data" + "github.com/multiversx/mx-chain-core-go/websocketOutportDriver/mock" "github.com/stretchr/testify/require" )