diff --git a/src/Directory.Build.props b/src/Directory.Build.props index e7559728..8c167314 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -6,12 +6,12 @@ 12.0 The EpicChain Lab's true - neo.png - https://github.com/epicchainlabs/epiccha + epicchain.png + https://github.com/epicchainlabs/epicchain MIT README.md git - https://github.com/epicchainlabs/epiccha.git + https://github.com/epicchainlabs/epicchain.git true snupkg The EpicChain Lab's @@ -20,8 +20,8 @@ - - + + diff --git a/src/Neo/EpicChainSystem.cs b/src/Neo/EpicChainSystem.cs index ef318edc..f391128a 100644 --- a/src/Neo/EpicChainSystem.cs +++ b/src/Neo/EpicChainSystem.cs @@ -39,7 +39,7 @@ namespace Neo { /// - /// Represents the basic unit that contains all the components required for running of a NEO node. + /// Represents the basic unit that contains all the components required for running of a EpicChain node. /// public class EpicChainSystem : IDisposable { @@ -63,7 +63,7 @@ public class EpicChainSystem : IDisposable $"remote-node-mailbox {{ mailbox-type: \"{typeof(RemoteNodeMailbox).AssemblyQualifiedName}\" }}"); /// - /// The genesis block of the NEO blockchain. + /// The genesis block of the EpicChain blockchain. /// public Block GenesisBlock { get; } @@ -156,9 +156,9 @@ public EpicChainSystem(ProtocolSettings settings, IStoreProvider storageProvider } /// - /// Creates the genesis block for the NEO blockchain. + /// Creates the genesis block for the EpicChain blockchain. /// - /// The of the NEO system. + /// The of the EpicChain system. /// The genesis block. public static Block CreateGenesisBlock(ProtocolSettings settings) => new() { diff --git a/src/Neo/SmartContract/ApplicationEngine.cs b/src/Neo/SmartContract/ApplicationEngine.cs index 2fe0526d..0f3b9d5b 100644 --- a/src/Neo/SmartContract/ApplicationEngine.cs +++ b/src/Neo/SmartContract/ApplicationEngine.cs @@ -38,7 +38,7 @@ namespace Neo.SmartContract { /// - /// A virtual machine used to execute smart contracts in the NEO system. + /// A virtual machine used to execute smart contracts in the EpicChain system. /// public partial class ApplicationEngine : ExecutionEngine { @@ -81,7 +81,7 @@ public partial class ApplicationEngine : ExecutionEngine public static IApplicationEngineProvider Provider { get; set; } /// - /// Gets the descriptors of all interoperable services available in NEO. + /// Gets the descriptors of all interoperable services available in EpicChain. /// public static IReadOnlyDictionary Services => services; diff --git a/src/Neo/SmartContract/ContractBasicMethod.cs b/src/Neo/SmartContract/ContractBasicMethod.cs index eec602bd..637e3bb7 100644 --- a/src/Neo/SmartContract/ContractBasicMethod.cs +++ b/src/Neo/SmartContract/ContractBasicMethod.cs @@ -22,7 +22,7 @@ namespace Neo.SmartContract { /// - /// This class provides a guideline for basic methods used in the Neo blockchain, offering + /// This class provides a guideline for basic methods used in the EpicChain blockchain, offering /// a generalized interaction mechanism for smart contract deployment, verification, updates, and destruction. /// public record ContractBasicMethod @@ -79,7 +79,7 @@ public record ContractBasicMethod /// /// The update method. Requires or , or both, and is passed to _deploy. - /// Should verify the signer's address using SYSCALL Neo.Runtime.CheckWitness. + /// Should verify the signer's address using SYSCALL EpicChain.Runtime.CheckWitness. /// /// { /// "name": "update", @@ -106,7 +106,7 @@ public record ContractBasicMethod /// /// The destruction method. Deletes all the storage of the contract. - /// Should verify the signer's address using SYSCALL Neo.Runtime.CheckWitness. + /// Should verify the signer's address using SYSCALL EpicChain.Runtime.CheckWitness. /// Any tokens in the contract must be transferred before destruction. /// /// { diff --git a/src/Neo/SmartContract/Native/EpicChain.cs b/src/Neo/SmartContract/Native/EpicChain.cs index 4158cca3..a6b46cf9 100644 --- a/src/Neo/SmartContract/Native/EpicChain.cs +++ b/src/Neo/SmartContract/Native/EpicChain.cs @@ -36,7 +36,7 @@ namespace Neo.SmartContract.Native { /// - /// Represents the NEO token in the NEO system. + /// Represents the EpicChain token in the EpicChain system. /// public sealed class EpicChain : FungibleToken { @@ -44,12 +44,12 @@ public sealed class EpicChain : FungibleToken public override byte Decimals => 0; /// - /// Indicates the total amount of NEO. + /// Indicates the total amount of EpicChain. /// public BigInteger TotalAmount { get; } /// - /// Indicates the effective voting turnout in NEO. The voted candidates will only be effective when the voting turnout exceeds this value. + /// Indicates the effective voting turnout in EpicChain. The voted candidates will only be effective when the voting turnout exceeds this value. /// public const decimal EffectiveVoterTurnout = 0.2M; @@ -60,7 +60,7 @@ public sealed class EpicChain : FungibleToken private const byte Prefix_RegisterPrice = 13; private const byte Prefix_VoterRewardPerCommittee = 23; - private const byte NeoHolderRewardRatio = 10; + private const byte epicchainHolderRewardRatio = 10; private const byte CommitteeRewardRatio = 10; private const byte VoterRewardRatio = 80; @@ -142,17 +142,17 @@ private BigInteger CalculateBonus(DataCache snapshot, EpicChainAccountState stat if (expectEnd != end) throw new ArgumentOutOfRangeException(nameof(end)); if (state.BalanceHeight >= end) return BigInteger.Zero; // In the unit of datoshi, 1 datoshi = 1e-8 EpicPulse - BigInteger neoHolderReward = CalculateNeoHolderReward(snapshot, state.Balance, state.BalanceHeight, end); - if (state.VoteTo is null) return neoHolderReward; + BigInteger epicchainHolderReward = CalculateEpicChainHolderReward(snapshot, state.Balance, state.BalanceHeight, end); + if (state.VoteTo is null) return epicchainHolderReward; var keyLastest = CreateStorageKey(Prefix_VoterRewardPerCommittee).Add(state.VoteTo); var latestEpicPulsePerVote = snapshot.TryGet(keyLastest) ?? BigInteger.Zero; var voteReward = state.Balance * (latestEpicPulsePerVote - state.LastEpicPulsePerVote) / 100000000L; - return neoHolderReward + voteReward; + return epicchainHolderReward + voteReward; } - private BigInteger CalculateNeoHolderReward(DataCache snapshot, BigInteger value, uint start, uint end) + private BigInteger CalculateEpicChainHolderReward(DataCache snapshot, BigInteger value, uint start, uint end) { // In the unit of datoshi, 1 EpicPulse = 10^8 datoshi BigInteger sum = 0; @@ -169,7 +169,7 @@ private BigInteger CalculateNeoHolderReward(DataCache snapshot, BigInteger value break; } } - return value * sum * NeoHolderRewardRatio / 100 / TotalAmount; + return value * sum * epicchainHolderRewardRatio / 100 / TotalAmount; } private void CheckCandidate(DataCache snapshot, ECPoint pubkey, CandidateState candidate) @@ -259,10 +259,10 @@ internal override async ContractTask PostPersistAsync(ApplicationEngine engine) var factor = index < n ? 2 : 1; // The `voter` rewards of validator will double than other committee's if (Votes > 0) { - BigInteger voterSumRewardPerNEO = factor * voterRewardOfEachCommittee / Votes; + BigInteger voterSumRewardPerEpicChain = factor * voterRewardOfEachCommittee / Votes; StorageKey voterRewardKey = CreateStorageKey(Prefix_VoterRewardPerCommittee).Add(PublicKey); - StorageItem lastRewardPerNeo = engine.SnapshotCache.GetAndChange(voterRewardKey, () => new StorageItem(BigInteger.Zero)); - lastRewardPerNeo.Add(voterSumRewardPerNEO); + StorageItem lastRewardPerEpicChain = engine.SnapshotCache.GetAndChange(voterRewardKey, () => new StorageItem(BigInteger.Zero)); + lastRewardPerEpicChain.Add(voterSumRewardPerEpicChain); } } } diff --git a/src/Neo/SmartContract/NefFile.cs b/src/Neo/SmartContract/NefFile.cs index 0d32ea19..98a7afe5 100644 --- a/src/Neo/SmartContract/NefFile.cs +++ b/src/Neo/SmartContract/NefFile.cs @@ -32,7 +32,7 @@ namespace Neo.SmartContract { /* ┌───────────────────────────────────────────────────────────────────────┐ - │ NEO Executable Format 3 (NEF3) │ + │ EpicChain Executable Format 3 (NEF3) │ ├──────────┬───────────────┬────────────────────────────────────────────┤ │ Field │ Type │ Comment │ ├──────────┼───────────────┼────────────────────────────────────────────┤ @@ -49,17 +49,17 @@ namespace Neo.SmartContract └──────────┴───────────────┴────────────────────────────────────────────┘ */ /// - /// Represents the structure of NEO Executable Format. + /// Represents the structure of EpicChain Executable Format. /// public class NefFile : ISerializable { /// - /// NEO Executable Format 3 (NEF3) + /// EpicChain Executable Format 3 (NEF3) /// private const uint Magic = 0x3346454E; /// - /// The name and version of the compiler that generated this nef file. + /// The name and version of the compiler that generated this xef file. /// public string Compiler { get; set; } diff --git a/src/Neo/TimeProvider.cs b/src/Neo/TimeProvider.cs index f1107b79..3ac498b3 100644 --- a/src/Neo/TimeProvider.cs +++ b/src/Neo/TimeProvider.cs @@ -24,7 +24,7 @@ namespace Neo { /// - /// The time provider for the NEO system. + /// The time provider for the EpicChain system. /// public class TimeProvider {