Skip to content

Commit 22c1a7a

Browse files
committed
EpicChain Core - EpicChain Lab's
1 parent 4c45f6c commit 22c1a7a

21 files changed

+34
-34
lines changed

benchmarks/Neo.Benchmarks/Benchmarks.POC.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class Benchmarks_PoCs
3535
[Benchmark]
3636
public void NeoIssue2725()
3737
{
38-
// https://github.com/neo-project/neo/issues/2725
38+
// https://github.com/epicchainlabs/epiccha/issues/2725
3939
// L00: INITSSLOT 1
4040
// L01: NEWARRAY0
4141
// L02: PUSHDATA1 6161616161 //"aaaaa"

benchmarks/Neo.VM.Benchmarks/Benchmarks.POC.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class Benchmarks_PoCs
2929
[Benchmark]
3030
public void NeoIssue2528()
3131
{
32-
// https://github.com/neo-project/neo/issues/2528
32+
// https://github.com/epicchainlabs/epiccha/issues/2528
3333
// L01: INITSLOT 1, 0
3434
// L02: NEWARRAY0
3535
// L03: DUP
@@ -62,7 +62,7 @@ public void NeoIssue2528()
6262
[Benchmark]
6363
public void NeoVMIssue418()
6464
{
65-
// https://github.com/neo-project/neo-vm/issues/418
65+
// https://github.com/epicchainlabs/epiccha-vm/issues/418
6666
// L00: NEWARRAY0
6767
// L01: PUSH0
6868
// L02: PICK

src/Directory.Build.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<Authors>The Neo Project</Authors>
88
<IsPackable>true</IsPackable>
99
<PackageIcon>neo.png</PackageIcon>
10-
<PackageProjectUrl>https://github.com/neo-project/neo</PackageProjectUrl>
10+
<PackageProjectUrl>https://github.com/epicchainlabs/epiccha</PackageProjectUrl>
1111
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1212
<PackageReadmeFile>README.md</PackageReadmeFile>
1313
<RepositoryType>git</RepositoryType>
14-
<RepositoryUrl>https://github.com/neo-project/neo.git</RepositoryUrl>
14+
<RepositoryUrl>https://github.com/epicchainlabs/epiccha.git</RepositoryUrl>
1515
<IncludeSymbols>true</IncludeSymbols>
1616
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1717
<Company>The Neo Project</Company>

src/Neo/SmartContract/ApplicationEngine.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ private ExecutionContext CallContractInternal(ContractState contract, ContractMe
311311
else
312312
{
313313
var executingContract = IsHardforkEnabled(Hardfork.HF_Domovoi)
314-
? state.Contract // use executing contract state to avoid possible contract update/destroy side-effects, ref. https://github.com/neo-project/neo/pull/3290.
314+
? state.Contract // use executing contract state to avoid possible contract update/destroy side-effects, ref. https://github.com/epicchainlabs/epiccha/pull/3290.
315315
: NativeContract.ContractManagement.GetContract(SnapshotCache, CurrentScriptHash);
316316
if (executingContract?.CanCall(contract, method.Name) == false)
317317
throw new InvalidOperationException($"Cannot Call Method {method.Name} Of Contract {contract.Hash} From Contract {CurrentScriptHash}");

src/Neo/SmartContract/Manifest/ContractAbi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace Neo.SmartContract.Manifest
3232
/// <summary>
3333
/// Represents the ABI of a smart contract.
3434
/// </summary>
35-
/// <remarks>For more details, see NEP-14.</remarks>
35+
/// <remarks>For more details, see XEP-14.</remarks>
3636
public class ContractAbi : IInteroperable
3737
{
3838
private IReadOnlyDictionary<(string, int), ContractMethodDescriptor> methodDictionary;

src/Neo/SmartContract/Manifest/ContractManifest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace Neo.SmartContract.Manifest
3434
/// When a smart contract is deployed, it must explicitly declare the features and permissions it will use.
3535
/// When it is running, it will be limited by its declared list of features and permissions, and cannot make any behavior beyond the scope of the list.
3636
/// </summary>
37-
/// <remarks>For more details, see NEP-15.</remarks>
37+
/// <remarks>For more details, see XEP-15.</remarks>
3838
public class ContractManifest : IInteroperable
3939
{
4040
/// <summary>

src/Neo/SmartContract/Native/CryptoLib.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static bool VerifyWithECDsa(byte[] message, byte[] pubkey, byte[] signatu
109109
}
110110
}
111111

112-
// This is for solving the hardfork issue in https://github.com/neo-project/neo/pull/3209
112+
// This is for solving the hardfork issue in https://github.com/epicchainlabs/epiccha/pull/3209
113113
[ContractMethod(true, Hardfork.HF_Cockatrice, CpuFee = 1 << 15, Name = "verifyWithECDsa")]
114114
public static bool VerifyWithECDsaV0(byte[] message, byte[] pubkey, byte[] signature, NamedCurveHash curve)
115115
{

src/Neo/SmartContract/Native/EpicChain.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ internal override ContractTask OnPersistAsync(ApplicationEngine engine)
216216
cachedCommittee.Clear();
217217
cachedCommittee.AddRange(ComputeCommitteeMembers(engine.SnapshotCache, engine.ProtocolSettings));
218218

219-
// Hardfork check for https://github.com/neo-project/neo/pull/3158
219+
// Hardfork check for https://github.com/epicchainlabs/epiccha/pull/3158
220220
// New notification will case 3.7.0 and 3.6.0 have different behavior
221221
var index = engine.PersistingBlock?.Index ?? Ledger.CurrentIndex(engine.SnapshotCache);
222222
if (engine.ProtocolSettings.IsHardforkEnabled(Hardfork.HF_Cockatrice, index))

src/Neo/Wallets/KeyPair.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ public string Export()
9797
}
9898

9999
/// <summary>
100-
/// Exports the private key in NEP-2 format.
100+
/// Exports the private key in XEP-2 format.
101101
/// </summary>
102102
/// <param name="passphrase">The passphrase of the private key.</param>
103103
/// <param name="version">The address version.</param>
104104
/// <param name="N">The N field of the <see cref="ScryptParameters"/> to be used.</param>
105105
/// <param name="r">The R field of the <see cref="ScryptParameters"/> to be used.</param>
106106
/// <param name="p">The P field of the <see cref="ScryptParameters"/> to be used.</param>
107-
/// <returns>The private key in NEP-2 format.</returns>
107+
/// <returns>The private key in XEP-2 format.</returns>
108108
public string Export(string passphrase, byte version, int N = 16384, int r = 8, int p = 8)
109109
{
110110
byte[] passphrasedata = Encoding.UTF8.GetBytes(passphrase);
@@ -119,14 +119,14 @@ public string Export(string passphrase, byte version, int N = 16384, int r = 8,
119119
}
120120

121121
/// <summary>
122-
/// Exports the private key in NEP-2 format.
122+
/// Exports the private key in XEP-2 format.
123123
/// </summary>
124124
/// <param name="passphrase">The passphrase of the private key.</param>
125125
/// <param name="version">The address version.</param>
126126
/// <param name="N">The N field of the <see cref="ScryptParameters"/> to be used.</param>
127127
/// <param name="r">The R field of the <see cref="ScryptParameters"/> to be used.</param>
128128
/// <param name="p">The P field of the <see cref="ScryptParameters"/> to be used.</param>
129-
/// <returns>The private key in NEP-2 format.</returns>
129+
/// <returns>The private key in XEP-2 format.</returns>
130130
public string Export(byte[] passphrase, byte version, int N = 16384, int r = 8, int p = 8)
131131
{
132132
UInt160 script_hash = Contract.CreateSignatureRedeemScript(PublicKey).ToScriptHash();

src/Neo/Wallets/Wallet.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ private static byte[] Decrypt(byte[] data, byte[] key)
321321
}
322322

323323
/// <summary>
324-
/// Decodes a private key from the specified NEP-2 string.
324+
/// Decodes a private key from the specified XEP-2 string.
325325
/// </summary>
326-
/// <param name="nep2">The NEP-2 string to be decoded.</param>
326+
/// <param name="nep2">The XEP-2 string to be decoded.</param>
327327
/// <param name="passphrase">The passphrase of the private key.</param>
328328
/// <param name="version">The address version of NEO system.</param>
329329
/// <param name="N">The N field of the <see cref="ScryptParameters"/> to be used.</param>
@@ -344,9 +344,9 @@ public static byte[] GetPrivateKeyFromNEP2(string nep2, string passphrase, byte
344344
}
345345

346346
/// <summary>
347-
/// Decodes a private key from the specified NEP-2 string.
347+
/// Decodes a private key from the specified XEP-2 string.
348348
/// </summary>
349-
/// <param name="nep2">The NEP-2 string to be decoded.</param>
349+
/// <param name="nep2">The XEP-2 string to be decoded.</param>
350350
/// <param name="passphrase">The passphrase of the private key.</param>
351351
/// <param name="version">The address version of NEO system.</param>
352352
/// <param name="N">The N field of the <see cref="ScryptParameters"/> to be used.</param>
@@ -452,9 +452,9 @@ public virtual WalletAccount Import(string wif)
452452
}
453453

454454
/// <summary>
455-
/// Imports an account from the specified NEP-2 string.
455+
/// Imports an account from the specified XEP-2 string.
456456
/// </summary>
457-
/// <param name="nep2">The NEP-2 string to import.</param>
457+
/// <param name="nep2">The XEP-2 string to import.</param>
458458
/// <param name="passphrase">The passphrase of the private key.</param>
459459
/// <param name="N">The N field of the <see cref="ScryptParameters"/> to be used.</param>
460460
/// <param name="r">The R field of the <see cref="ScryptParameters"/> to be used.</param>

src/Neo/Wallets/XEP6/XEP6Wallet.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
namespace Neo.Wallets.XEP6
3636
{
3737
/// <summary>
38-
/// An implementation of the NEP-6 wallet standard.
38+
/// An implementation of the XEP-6 wallet standard.
3939
/// </summary>
40-
/// <remarks>https://github.com/neo-project/proposals/blob/master/nep-6.mediawiki</remarks>
40+
/// <remarks>https://github.com/epicchainlabs/epicchain
4141
public class XEP6Wallet : Wallet
4242
{
4343
private SecureString password;
@@ -194,9 +194,9 @@ public override WalletAccount CreateAccount(UInt160 scriptHash)
194194
}
195195

196196
/// <summary>
197-
/// Decrypts the specified NEP-2 string with the password of the wallet.
197+
/// Decrypts the specified XEP-2 string with the password of the wallet.
198198
/// </summary>
199-
/// <param name="nep2key">The NEP-2 string to decrypt.</param>
199+
/// <param name="nep2key">The XEP-2 string to decrypt.</param>
200200
/// <returns>The decrypted private key.</returns>
201201
internal KeyPair DecryptKey(string nep2key)
202202
{

src/Plugins/DBFTPlugin/Consensus/ConsensusContext.MakePayload.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public ExtensiblePayload MakePrepareResponse()
177177
});
178178
}
179179

180-
// Related to issue https://github.com/neo-project/neo/issues/3431
180+
// Related to issue https://github.com/epicchainlabs/epiccha/issues/3431
181181
// Ref. https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.randomnumbergenerator?view=net-8.0
182182
//
183183
//The System.Random class relies on a seed value that can be predictable,

src/Plugins/RpcServer/RpcError.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class RpcError
4242
public static readonly RpcError InternalServerError = new(-32603, "Internal server RpcError");
4343
public static readonly RpcError BadRequest = new(-32700, "Bad request");
4444

45-
// https://github.com/neo-project/proposals/pull/156/files
45+
// https://github.com/epicchainlabs/epicchain
4646
public static readonly RpcError UnknownBlock = new(-101, "Unknown block");
4747
public static readonly RpcError UnknownContract = new(-102, "Unknown contract");
4848
public static readonly RpcError UnknownTransaction = new(-103, "Unknown transaction");

tests/Neo.Network.RPC.Tests/UT_ContractClient.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public async Task TestDeployContract()
7272
},
7373
Groups = new ContractGroup[0],
7474
Trusts = WildcardContainer<ContractPermissionDescriptor>.Create(),
75-
SupportedStandards = new string[] { "NEP-10" },
75+
SupportedStandards = new string[] { "XEP-10" },
7676
Extra = null,
7777
};
7878
using (ScriptBuilder sb = new ScriptBuilder())
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"SampleContractCall","groups":[],"features":{},"supportedstandards":[],"abi":{"methods":[{"name":"onNEP17Payment","parameters":[{"name":"from","type":"Hash160"},{"name":"amount","type":"Integer"},{"name":"data","type":"Integer"}],"returntype":"Void","offset":0,"safe":false},{"name":"_initialize","parameters":[],"returntype":"Void","offset":91,"safe":false}],"events":[]},"permissions":[],"trusts":[],"extra":{"Author":"core-dev","Version":"0.0.1","Description":"A sample contract to demonstrate how to call a contract","Sourcecode":"https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/"}}
1+
{"name":"SampleContractCall","groups":[],"features":{},"supportedstandards":[],"abi":{"methods":[{"name":"onNEP17Payment","parameters":[{"name":"from","type":"Hash160"},{"name":"amount","type":"Integer"},{"name":"data","type":"Integer"}],"returntype":"Void","offset":0,"safe":false},{"name":"_initialize","parameters":[],"returntype":"Void","offset":91,"safe":false}],"events":[]},"permissions":[],"trusts":[],"extra":{"Author":"core-dev","Version":"0.0.1","Description":"A sample contract to demonstrate how to call a contract","Sourcecode":"https://github.com/epicchainlabs/epiccha-devpack-dotnet/tree/master/examples/"}}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"SampleEvent","groups":[],"features":{},"supportedstandards":[],"abi":{"methods":[{"name":"main","parameters":[],"returntype":"Boolean","offset":0,"safe":false}],"events":[{"name":"new_event_name","parameters":[{"name":"arg1","type":"ByteArray"},{"name":"arg2","type":"String"},{"name":"arg3","type":"Integer"}]},{"name":"event2","parameters":[{"name":"arg1","type":"ByteArray"},{"name":"arg2","type":"Integer"}]}]},"permissions":[{"contract":"*","methods":"*"}],"trusts":[],"extra":{"Author":"code-dev","Description":"A sample contract that demonstrates how to use Events","Version":"0.0.1","Sourcecode":"https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/"}}
1+
{"name":"SampleEvent","groups":[],"features":{},"supportedstandards":[],"abi":{"methods":[{"name":"main","parameters":[],"returntype":"Boolean","offset":0,"safe":false}],"events":[{"name":"new_event_name","parameters":[{"name":"arg1","type":"ByteArray"},{"name":"arg2","type":"String"},{"name":"arg3","type":"Integer"}]},{"name":"event2","parameters":[{"name":"arg1","type":"ByteArray"},{"name":"arg2","type":"Integer"}]}]},"permissions":[{"contract":"*","methods":"*"}],"trusts":[],"extra":{"Author":"code-dev","Description":"A sample contract that demonstrates how to use Events","Version":"0.0.1","Sourcecode":"https://github.com/epicchainlabs/epiccha-devpack-dotnet/tree/master/examples/"}}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"SampleException","groups":[],"features":{},"supportedstandards":[],"abi":{"methods":[{"name":"try01","parameters":[],"returntype":"Any","offset":0,"safe":false},{"name":"try02","parameters":[],"returntype":"Any","offset":77,"safe":false},{"name":"try03","parameters":[],"returntype":"Any","offset":166,"safe":false},{"name":"tryNest","parameters":[],"returntype":"Any","offset":259,"safe":false},{"name":"tryFinally","parameters":[],"returntype":"Any","offset":404,"safe":false},{"name":"tryFinallyAndRethrow","parameters":[],"returntype":"Any","offset":474,"safe":false},{"name":"tryCatch","parameters":[],"returntype":"Any","offset":550,"safe":false},{"name":"tryWithTwoFinally","parameters":[],"returntype":"Any","offset":628,"safe":false},{"name":"tryecpointCast","parameters":[],"returntype":"Any","offset":920,"safe":false},{"name":"tryvalidByteString2Ecpoint","parameters":[],"returntype":"Any","offset":1010,"safe":false},{"name":"tryinvalidByteArray2UInt160","parameters":[],"returntype":"Any","offset":1100,"safe":false},{"name":"tryvalidByteArray2UInt160","parameters":[],"returntype":"Any","offset":1190,"safe":false},{"name":"tryinvalidByteArray2UInt256","parameters":[],"returntype":"Any","offset":1280,"safe":false},{"name":"tryvalidByteArray2UInt256","parameters":[],"returntype":"Any","offset":1370,"safe":false},{"name":"tryNULL2Ecpoint_1","parameters":[],"returntype":"Array","offset":1476,"safe":false},{"name":"tryNULL2Uint160_1","parameters":[],"returntype":"Array","offset":1652,"safe":false},{"name":"tryNULL2Uint256_1","parameters":[],"returntype":"Array","offset":1828,"safe":false},{"name":"tryNULL2Bytestring_1","parameters":[],"returntype":"Array","offset":1990,"safe":false},{"name":"tryUncatchableException","parameters":[],"returntype":"Any","offset":2141,"safe":false},{"name":"_initialize","parameters":[],"returntype":"Void","offset":2219,"safe":false}],"events":[]},"permissions":[{"contract":"*","methods":"*"}],"trusts":[],"extra":{"Author":"core-dev","Description":"A sample contract to demonstrate how to handle exception","Version":"0.0.1","Sourcecode":"https://github.com/neo-project/neo-devpack-dotnet/tree/master/examples/"}}
1+
{"name":"SampleException","groups":[],"features":{},"supportedstandards":[],"abi":{"methods":[{"name":"try01","parameters":[],"returntype":"Any","offset":0,"safe":false},{"name":"try02","parameters":[],"returntype":"Any","offset":77,"safe":false},{"name":"try03","parameters":[],"returntype":"Any","offset":166,"safe":false},{"name":"tryNest","parameters":[],"returntype":"Any","offset":259,"safe":false},{"name":"tryFinally","parameters":[],"returntype":"Any","offset":404,"safe":false},{"name":"tryFinallyAndRethrow","parameters":[],"returntype":"Any","offset":474,"safe":false},{"name":"tryCatch","parameters":[],"returntype":"Any","offset":550,"safe":false},{"name":"tryWithTwoFinally","parameters":[],"returntype":"Any","offset":628,"safe":false},{"name":"tryecpointCast","parameters":[],"returntype":"Any","offset":920,"safe":false},{"name":"tryvalidByteString2Ecpoint","parameters":[],"returntype":"Any","offset":1010,"safe":false},{"name":"tryinvalidByteArray2UInt160","parameters":[],"returntype":"Any","offset":1100,"safe":false},{"name":"tryvalidByteArray2UInt160","parameters":[],"returntype":"Any","offset":1190,"safe":false},{"name":"tryinvalidByteArray2UInt256","parameters":[],"returntype":"Any","offset":1280,"safe":false},{"name":"tryvalidByteArray2UInt256","parameters":[],"returntype":"Any","offset":1370,"safe":false},{"name":"tryNULL2Ecpoint_1","parameters":[],"returntype":"Array","offset":1476,"safe":false},{"name":"tryNULL2Uint160_1","parameters":[],"returntype":"Array","offset":1652,"safe":false},{"name":"tryNULL2Uint256_1","parameters":[],"returntype":"Array","offset":1828,"safe":false},{"name":"tryNULL2Bytestring_1","parameters":[],"returntype":"Array","offset":1990,"safe":false},{"name":"tryUncatchableException","parameters":[],"returntype":"Any","offset":2141,"safe":false},{"name":"_initialize","parameters":[],"returntype":"Void","offset":2219,"safe":false}],"events":[]},"permissions":[{"contract":"*","methods":"*"}],"trusts":[],"extra":{"Author":"core-dev","Description":"A sample contract to demonstrate how to handle exception","Version":"0.0.1","Sourcecode":"https://github.com/epicchainlabs/epiccha-devpack-dotnet/tree/master/examples/"}}

0 commit comments

Comments
 (0)