Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview4 #4

Merged
merged 64 commits into from
Dec 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
6968494
Make BinarySerializer public (#2041)
devhawk Nov 3, 2020
1d4db2c
Add role designation history (#2007)
Nov 3, 2020
3f50925
public MaxResultSize (#2048)
Tommo-L Nov 4, 2020
6163faf
Increase oracle response size (#1984)
shargon Nov 4, 2020
606eb77
Distribute more GAS reward for committee (#2049)
Tommo-L Nov 5, 2020
fc721d5
Add oracle Request/Response event (#2036)
Tommo-L Nov 5, 2020
402e9b1
Move MaxValidUntilBlockIncrement & MaxTraceableBlocks to protocol (#2…
Qiao-Jin Nov 5, 2020
f26db56
Fix CallFromNativeContract (#2051)
erikzhang Nov 8, 2020
788b2b2
Add Itoa atoi syscalls (#2043)
shargon Nov 8, 2020
5d5bd02
Add oracle InsufficientFunds code (#2037)
Tommo-L Nov 8, 2020
188b131
Fixed some opcode price (#2020)
Qiao-Jin Nov 12, 2020
62a3ca2
Remove ContractFeatures (#2060)
erikzhang Nov 12, 2020
03f9001
Fix OracleContract.Request() (#2067)
erikzhang Nov 17, 2020
2d0e612
Allow to add services to plugins (#2068)
erikzhang Nov 18, 2020
54eff7e
Reuse BinarySerializer for checking notifications (#2071)
erikzhang Nov 18, 2020
72eb3e6
Implement NEP-17 (#2024)
shargon Nov 18, 2020
a1590b0
Optimizations to CallFromNativeContract (#2073)
erikzhang Nov 19, 2020
a5d3099
Fix mint (#2080)
shargon Nov 21, 2020
ddb1184
Fix native contract stack (#2087)
erikzhang Nov 24, 2020
7a36f80
Centralize _initialize call (#2052)
shargon Nov 24, 2020
0c24322
Extend the return value of GetRequestsByUrl (#2091)
Tommo-L Nov 24, 2020
0880ed7
Drop `Addr` messages if we didn't send `GetAddr` (#2097)
erikzhang Nov 25, 2020
ff5006f
Public TestModeGas (#2084)
devhawk Nov 25, 2020
8979c40
Make KeyBuilder public so neo-debugger can use it (#2099)
devhawk Nov 25, 2020
75757bd
Add data to transfer/onPayment (#2096)
shargon Nov 25, 2020
87a9b35
Remove name (#2103)
shargon Nov 26, 2020
9638a88
Fix EmitPush (#2106)
erikzhang Nov 26, 2020
1fda8dc
Fix sentCommands (#2105)
erikzhang Nov 26, 2020
abc145e
remove mpt (#2100)
Nov 26, 2020
b6ebbbe
Fix Oracle PostPersist (#2074)
shargon Nov 27, 2020
0997d0e
Avoid call onPayment on specific cases (#2098)
shargon Nov 29, 2020
8cd52df
Make some class public to plugin (#2109)
Nov 30, 2020
6b139e3
Update contract without change the hash (#2044)
shargon Dec 1, 2020
2051fdc
Add data (#2112)
superboyiii Dec 2, 2020
e835631
fix block_cache (#2111)
Qiao-Jin Dec 2, 2020
5b48ee8
Optimize VerifyWitness and tx.verify (#2054)
Tommo-L Dec 7, 2020
77a33d2
Fix CallFlags (#2121)
erikzhang Dec 8, 2020
2e63501
Update InteropDescriptor.cs (#2126)
devhawk Dec 8, 2020
beac9a9
Create ManagementContract (#2119)
erikzhang Dec 9, 2020
e55c356
Call from native contract synchronously (#2130)
erikzhang Dec 9, 2020
f520ee5
Check safeMethods (#2120)
shargon Dec 9, 2020
22c2477
SmartContract/Native: implement adjustable opcode pricing (#2045)
roman-khimov Dec 10, 2020
a68cbb6
Fix asset symbol (#2136)
erikzhang Dec 11, 2020
e79fa96
Move namespace of native contracts (#2137)
erikzhang Dec 11, 2020
85d180d
Use type name as the name of native contracts (#2138)
erikzhang Dec 11, 2020
dc890b2
Internals Visible to neodebug-3-adapter (#2139)
erikzhang Dec 11, 2020
2e4f659
add ManagementContract.ListContracts (#2134)
devhawk Dec 11, 2020
d3f51ec
Add CreateArray and CreateMap to Helper (#2145)
erikzhang Dec 12, 2020
eb63d30
Fix CallNative (#2144)
erikzhang Dec 12, 2020
780c325
Fix gas for engine run. (#2147)
superboyiii Dec 15, 2020
06d4345
Add MinimumDeploymentFee (#2140)
erikzhang Dec 15, 2020
2f26134
Add contract Deploy/Update/Destory event (#2150)
Tommo-L Dec 16, 2020
c89b687
Clean up code (#2156)
Qiao-Jin Dec 16, 2020
2ab9bc7
fix blockchain on transaction array logic (#2146)
Qiao-Jin Dec 16, 2020
309981c
Public SignatureContractCost (#2149)
Tommo-L Dec 16, 2020
9d83549
Refactor native activation block Index (#2141)
shargon Dec 16, 2020
6add2eb
Reduce deploy fee (#2153)
Tommo-L Dec 17, 2020
d5b22f3
Fix CallFromNativeContract (#2159)
erikzhang Dec 17, 2020
15e09ed
make verifywitness public (#2161)
Dec 17, 2020
414dab1
Preview4 (#2165)
erikzhang Dec 17, 2020
e8d08a5
Add ProtocolNotSupported to OracleResponseCode (#2164)
erikzhang Dec 17, 2020
13c626c
Rename native contracts (#2152)
erikzhang Dec 17, 2020
2cc1766
.NET 5.0 (#2083)
erikzhang Dec 17, 2020
cb03a1d
Remove System.Contract.Call (#2166)
erikzhang Dec 19, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:

env:
DOTNET_VERSION: 3.1.402
DOTNET_VERSION: 5.0.100

jobs:

Expand All @@ -21,8 +21,8 @@ jobs:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Check format
run: |
dotnet tool install --version 3.2.111002 --tool-path ./ dotnet-format --add-source https://dotnet.myget.org/F/format/api/v3/index.json
./dotnet-format --check --dry-run -v diagnostic
dotnet tool install --version 5.0.142902 --tool-path ./ dotnet-format --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json
./dotnet-format --check -v diagnostic
- name: Test
run: |
find tests -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild
Expand Down
2 changes: 1 addition & 1 deletion src/neo/Cryptography/ECC/ECCurve.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class ECCurve
private ECCurve(BigInteger Q, BigInteger A, BigInteger B, BigInteger N, byte[] G)
{
this.Q = Q;
this.ExpectedECPointLength = (Q.GetBitLength() + 7) / 8;
this.ExpectedECPointLength = ((int)Q.GetBitLength() + 7) / 8;
this.A = new ECFieldElement(A, this);
this.B = new ECFieldElement(B, this);
this.N = N;
Expand Down
4 changes: 2 additions & 2 deletions src/neo/Cryptography/ECC/ECDsa.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public BigInteger[] GenerateSignature(ReadOnlySpan<byte> message)
{
do
{
k = rng.NextBigInteger(curve.N.GetBitLength());
k = rng.NextBigInteger((int)curve.N.GetBitLength());
}
while (k.Sign == 0 || k.CompareTo(curve.N) >= 0);
ECPoint p = ECPoint.Multiply(curve.G, k);
Expand All @@ -67,7 +67,7 @@ public BigInteger[] GenerateSignature(ReadOnlySpan<byte> message)

private static ECPoint SumOfTwoMultiplies(ECPoint P, BigInteger k, ECPoint Q, BigInteger l)
{
int m = Math.Max(k.GetBitLength(), l.GetBitLength());
int m = (int)Math.Max(k.GetBitLength(), l.GetBitLength());
ECPoint Z = P + Q;
ECPoint R = P.Curve.Infinity;
for (int i = m - 1; i >= 0; --i)
Expand Down
4 changes: 2 additions & 2 deletions src/neo/Cryptography/ECC/ECFieldElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public bool Equals(ECFieldElement other)

private static BigInteger[] FastLucasSequence(BigInteger p, BigInteger P, BigInteger Q, BigInteger k)
{
int n = k.GetBitLength();
int n = (int)k.GetBitLength();
int s = k.GetLowestSetBit();

BigInteger Uh = 1;
Expand Down Expand Up @@ -115,7 +115,7 @@ public ECFieldElement Sqrt()
BigInteger P;
do
{
P = rand.NextBigInteger(curve.Q.GetBitLength());
P = rand.NextBigInteger((int)curve.Q.GetBitLength());
}
while (P >= curve.Q || BigInteger.ModPow(P * P - fourQ, legendreExponent, curve.Q) != qMinusOne);
BigInteger[] result = FastLucasSequence(curve.Q, P, Q, k);
Expand Down
2 changes: 1 addition & 1 deletion src/neo/Cryptography/ECC/ECPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public override int GetHashCode()
internal static ECPoint Multiply(ECPoint p, BigInteger k)
{
// floor(log2(k))
int m = k.GetBitLength();
int m = (int)k.GetBitLength();

// width of the Window NAF
sbyte width;
Expand Down
35 changes: 0 additions & 35 deletions src/neo/Cryptography/MPT/BranchNode.cs

This file was deleted.

30 changes: 0 additions & 30 deletions src/neo/Cryptography/MPT/ExtensionNode.cs

This file was deleted.

41 changes: 0 additions & 41 deletions src/neo/Cryptography/MPT/HashNode.cs

This file was deleted.

36 changes: 0 additions & 36 deletions src/neo/Cryptography/MPT/LeafNode.cs

This file was deleted.

61 changes: 0 additions & 61 deletions src/neo/Cryptography/MPT/MPTNode.cs

This file was deleted.

16 changes: 0 additions & 16 deletions src/neo/Cryptography/MPT/MPTNodeType.cs

This file was deleted.

Loading