Skip to content

Commit cc0ebb1

Browse files
committed
Merge branch 'master' into release/v2.1
2 parents dc46a1c + 1423077 commit cc0ebb1

37 files changed

+348
-184
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
1616
- Creating a Java smart contract automatically targets the latest version of neow3j (per Maven Central)
1717
- Make use of the ms-dotnettools.vscode-dotnet-sdk extension to acquire a path to dotnet
1818
(instead of requiring a global installation accessible in the PATH)
19-
- Updated Neo Express to latest RC1 build
19+
- Updated Neo Express to latest RC2 build
20+
- Updated @cityofzion/neon-core to version 5.0.0-next.10 (latest RC2 build)
2021
- Outdated npm package dependencies have been updated (now using TypeScript 4, Node 14, React 17, webpack 5)
2122

2223
## [2.0-preview] - 2021-03-24

package-lock.json

Lines changed: 99 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
},
322322
"scripts": {
323323
"bundle-nxp": "npm run bundle-nxp-download && npm run bundle-nxp-extract",
324-
"bundle-nxp-download": "shx rm -rf deps/nxp && shx mkdir -p deps/nxp && nwget \"https://github.com/neo-project/neo-express/releases/download/2.0.23-preview/Neo.Express.2.0.23-preview.nupkg\" -O deps/nxp/nxp.nupkg",
324+
"bundle-nxp-download": "shx rm -rf deps/nxp && shx mkdir -p deps/nxp && nwget \"https://github.com/neo-project/neo-express/releases/download/2.0.32-preview/Neo.Express.2.0.32-preview.nupkg\" -O deps/nxp/nxp.nupkg",
325325
"bundle-nxp-extract": "cd deps/nxp && extract-zip nxp.nupkg",
326326
"compile": "npm run compile-ext && npm run compile-panel",
327327
"compile-ext": "webpack --config src/extension/webpack.config.js --mode development",
@@ -341,7 +341,7 @@
341341
"ms-dotnettools.vscode-dotnet-sdk"
342342
],
343343
"devDependencies": {
344-
"@cityofzion/neon-core": "^5.0.0-next.7",
344+
"@cityofzion/neon-core": "^5.0.0-next.10",
345345
"@types/crypto-js": "^4.0.1",
346346
"@types/glob": "^7.1.3",
347347
"@types/gulp": "^4.0.7",

resources/new-contract/csharp/$_CLASSNAME_$.cs.template.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ using System.ComponentModel;
33
using System.Numerics;
44

55
using Neo.SmartContract.Framework;
6-
using Neo.SmartContract.Framework.Services.Neo;
7-
using Neo.SmartContract.Framework.Services.System;
6+
using Neo.SmartContract.Framework.Services;
87

98
namespace $_CONTRACTNAME_$
109
{
@@ -26,9 +25,9 @@ namespace $_CONTRACTNAME_$
2625
throw new Exception("Only positive numbers are allowed.");
2726
}
2827

29-
var tx = (Transaction) ExecutionEngine.ScriptContainer;
28+
var tx = (Transaction) Runtime.ScriptContainer;
3029

31-
var storageMap = Storage.CurrentContext.CreateMap(MAP_NAME);
30+
var storageMap = new StorageMap(Storage.CurrentContext, MAP_NAME);
3231

3332
storageMap.Put(tx.Sender, positiveNumber);
3433

@@ -39,9 +38,9 @@ namespace $_CONTRACTNAME_$
3938

4039
public static ByteString GetNumber()
4140
{
42-
var tx = (Transaction) ExecutionEngine.ScriptContainer;
41+
var tx = (Transaction) Runtime.ScriptContainer;
4342

44-
var storageMap = Storage.CurrentContext.CreateMap(MAP_NAME);
43+
var storageMap = new StorageMap(Storage.CurrentContext, MAP_NAME);
4544

4645
return storageMap.Get(tx.Sender);
4746
}

resources/new-contract/csharp/$_CLASSNAME_$.csproj.template.txt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Neo.SmartContract.Framework" Version="3.0.0-rc1" />
8+
<PackageReference Include="Neo.SmartContract.Framework" Version="3.0.0-rc2" />
99
</ItemGroup>
1010

1111
<Target
12-
Name="NeonBuild"
13-
AfterTargets="Build"
14-
Inputs="$(TargetPath)"
15-
Outputs="$(TargetDir)$(TargetName).nef;$(TargetDir)$(TargetName).nefdbgnfo;$(TargetDir)$(TargetName).manifest.json;$(TargetDir)$(TargetName).abi.json;">
16-
<Exec WorkingDirectory="$(TargetDir)" Command="neon -f $(TargetFileName)"/>
12+
Name="NccsBuild"
13+
AfterTargets="Build"
14+
Inputs="$(MSBuildProjectFullPath);@(Compile);"
15+
Outputs="$(TargetDir)/sc/$(TargetName).nef;$(TargetDir)/sc/$(TargetName).nefdbgnfo;$(TargetDir)/sc/$(TargetName).manifest.json;">
16+
<PropertyGroup>
17+
<_NccsDebugArguments Condition="'$(Configuration)'=='Debug'">--debug --no-optimize</_NccsDebugArguments>
18+
<_NccsDebugArguments Condition="'$(Configuration)'!='Debug'"></_NccsDebugArguments>
19+
</PropertyGroup>
20+
<Exec WorkingDirectory="$(ProjectDir)" Command="nccs $(_NccsDebugArguments) $(MSBuildProjectFullPath)" />
1721
</Target>
1822

1923
</Project>

0 commit comments

Comments
 (0)