Skip to content

Commit

Permalink
Merge pull request #148 from multiversx/EN-13635-rebranding
Browse files Browse the repository at this point in the history
Rebranding
  • Loading branch information
mariusmihaic authored Jan 9, 2023
2 parents 79100bb + 243f8b7 commit 0672a55
Show file tree
Hide file tree
Showing 153 changed files with 874 additions and 870 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions core/accumulator/timeAccumulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions core/accumulator/timeAccumulator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions core/alarm/alarm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions core/appStatusPolling/appStatusPolling.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions core/appStatusPolling/appStatusPolling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion core/check/ifNil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion core/check/ifZero_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion core/closing/safeChanCloser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
8 changes: 4 additions & 4 deletions core/closing/shuffleOutCloser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions core/closing/shuffleOutCloser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions core/computers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions core/computers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
50 changes: 25 additions & 25 deletions core/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = "E" + "L" + "R" + "O" + "N" + "D"

// DelegationSystemSCKey is the key under which there is data in case of system delegation smart contracts
const DelegationSystemSCKey = "delegation"
Expand Down
6 changes: 3 additions & 3 deletions core/converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions core/converters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion core/counting/concurrentShardedCountsWithSize.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion core/counting/concurrentShardedCountsWithSize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion core/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion core/keyValStorage/keyValStorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions core/keyValStorage/keyValStorage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
3 changes: 2 additions & 1 deletion core/libLocator/vmLocator_darwin.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build darwin
// +build darwin

package vm
Expand All @@ -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
}
3 changes: 2 additions & 1 deletion core/libLocator/vmLocator_linux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

package vm
Expand All @@ -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
}
3 changes: 2 additions & 1 deletion core/libLocator/vmLocator_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package vm
Expand All @@ -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
}
2 changes: 1 addition & 1 deletion core/loggingFunctions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion core/mock/headerHandlerStub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand Down
2 changes: 1 addition & 1 deletion core/nodetype/nodeTypeProvider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading

0 comments on commit 0672a55

Please sign in to comment.