Commit 93b14f87 authored by Jeremy Bokobza's avatar Jeremy Bokobza Committed by GitHub

Updated build with Stratis.Breeze (#241)

* updated build scripts to use Stratis.BreezeD projects

* updating the UI to use Stratis.BreezeD

* Removed the Breeze daemon folder

* fixed build.sh file

* fix appveyor build paths
parent d13953ad
......@@ -286,15 +286,7 @@ Thumbs.db
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
################################################################################
/Breeze.Api/.vs
/Breeze.Api/src/Breeze.Api.Tests/bin
/Breeze.Api/src/Breeze.Api.Tests/obj
/Breeze.Api/src/Breeze.Api/bin
/Breeze.Api/src/Breeze.Api/obj
*.user
/Breeze.Api/src/Breeze.Api/Wallets
/Breeze.Api/src/Breeze.Wallet/bin
/Breeze.Api/src/Breeze.Wallet/obj
# DNX
project.lock.json
......
......@@ -139,9 +139,9 @@ function startBitcoinApi() {
const execBitcoin = require('child_process').exec;
//Start Breeze Bitcoin Daemon
let apiPath = path.join(__dirname, '".//assets//daemon//Breeze.Daemon"');
let apiPath = path.join(__dirname, '".//assets//daemon//Stratis.BreezeD"');
if (os.platform() === 'win32') {
apiPath = path.join(__dirname, '".\\assets\\daemon\\Breeze.Daemon.exe"');
apiPath = path.join(__dirname, '".\\assets\\daemon\\Stratis.BreezeD.exe"');
}
bitcoinProcess = execBitcoin('"' + apiPath + '" light -testnet', {
......@@ -163,9 +163,9 @@ function startStratisApi() {
const execStratis = require('child_process').exec;
//Start Breeze Stratis Daemon
let apiPath = path.join(__dirname, '".//assets//daemon//Breeze.Daemon"');
let apiPath = path.join(__dirname, '".//assets//daemon//Stratis.BreezeD"');
if (os.platform() === 'win32') {
apiPath = path.join(__dirname, '".\\assets\\daemon\\Breeze.Daemon.exe"');
apiPath = path.join(__dirname, '".\\assets\\daemon\\Stratis.BreezeD.exe"');
}
stratisProcess = execStratis('"' + apiPath + '" stratis light -testnet', {
......
root = true
# Code files
[*.cs,*.csx]
indent_size = 4
indent_style = space
# Enforce documented coding style as warnings: /Documentation/coding-style.md
# Suggestions inferred from existing code.
[*.cs]
dotnet_style_qualification_for_field = true:warning
dotnet_style_qualification_for_property = true:warning
dotnet_style_predefined_type_for_locals_parameters_members = true:warning
dotnet_style_predefined_type_for_member_access = true:warning
csharp_style_var_for_built_in_types = false:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = false:warning
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_null_propagation = true:suggestion
csharp_style_expression_bodied_constructors = false:suggestion
csharp_style_expression_bodied_operators = false:suggestion
csharp_style_expression_bodied_properties = false:suggestion
csharp_style_expression_bodied_indexers = false:suggestion
csharp_style_expression_bodied_accessors = false:suggestion
csharp_style_inlined_variable_declaration = false:suggestion
\ No newline at end of file

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.16
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "External", "External", "{807563C4-7259-434D-B604-A14C3DCF8E30}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "global", "global", "{2FF3130A-E8F3-4E0B-8733-B34C4A19910C}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
..\.travis.yml = ..\.travis.yml
..\appveyor.yml = ..\appveyor.yml
..\build.sh = ..\build.sh
global.json = global.json
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Breeze.Daemon", "src\Breeze.Daemon\Breeze.Daemon.csproj", "{AAF6163B-1BE2-48CE-9F9F-577C6D7AAB8D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stratis.Bitcoin", "..\StratisBitcoinFullNode\Stratis.Bitcoin\Stratis.Bitcoin.csproj", "{C93CB29F-C0A1-40D6-A4CC-B93C75423ED5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NBitcoin", "..\StratisBitcoinFullNode\NStratis\NBitcoin\NBitcoin.csproj", "{05787CEF-6A8F-4FF5-A57C-C8A5D4F6C2DB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HashLib", "..\StratisBitcoinFullNode\NStratis\Hashing\HashLib\HashLib.csproj", "{25A26C47-210F-4B7F-A48C-71760D0C9475}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stratis.Bitcoin.Api", "..\StratisBitcoinFullNode\Stratis.Bitcoin.Api\Stratis.Bitcoin.Api.csproj", "{D541577E-2AB1-4379-BA6D-2F23F0B1DFBB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stratis.Bitcoin.Features.LightWallet", "..\StratisBitcoinFullNode\Stratis.Bitcoin.Features.LightWallet\Stratis.Bitcoin.Features.LightWallet.csproj", "{64EF5766-40C7-46D4-87AA-ED16D0F867B1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stratis.Bitcoin.Features.BlockStore", "..\StratisBitcoinFullNode\Stratis.Bitcoin.Features.BlockStore\Stratis.Bitcoin.Features.BlockStore.csproj", "{AB686D72-2020-4FA7-8643-7B0F2E4AD7CB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stratis.Bitcoin.Features.MemoryPool", "..\StratisBitcoinFullNode\Stratis.Bitcoin.Features.MemoryPool\Stratis.Bitcoin.Features.MemoryPool.csproj", "{287961D7-D1EC-40A5-B3DE-EA8C81772D08}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stratis.Bitcoin.Features.Notifications", "..\StratisBitcoinFullNode\Stratis.Bitcoin.Features.Notifications\Stratis.Bitcoin.Features.Notifications.csproj", "{B5B03329-07DE-4B23-A6BC-C21C0F9D2A88}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stratis.Bitcoin.Features.Consensus", "..\StratisBitcoinFullNode\Stratis.Bitcoin.Features.Consensus\Stratis.Bitcoin.Features.Consensus.csproj", "{2D31A6F0-FB87-4887-978B-3D200DA12FBF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stratis.Bitcoin.Features.Wallet", "..\StratisBitcoinFullNode\Stratis.Bitcoin.Features.Wallet\Stratis.Bitcoin.Features.Wallet.csproj", "{14A999E3-B35E-42EE-9C45-5ECBF0B75E50}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stratis.Bitcoin.Features.RPC", "..\StratisBitcoinFullNode\Stratis.Bitcoin.Features.RPC\Stratis.Bitcoin.Features.RPC.csproj", "{4EC9E180-1F68-4574-89D8-97495FE387D9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{AAF6163B-1BE2-48CE-9F9F-577C6D7AAB8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AAF6163B-1BE2-48CE-9F9F-577C6D7AAB8D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AAF6163B-1BE2-48CE-9F9F-577C6D7AAB8D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AAF6163B-1BE2-48CE-9F9F-577C6D7AAB8D}.Release|Any CPU.Build.0 = Release|Any CPU
{C93CB29F-C0A1-40D6-A4CC-B93C75423ED5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C93CB29F-C0A1-40D6-A4CC-B93C75423ED5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C93CB29F-C0A1-40D6-A4CC-B93C75423ED5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C93CB29F-C0A1-40D6-A4CC-B93C75423ED5}.Release|Any CPU.Build.0 = Release|Any CPU
{05787CEF-6A8F-4FF5-A57C-C8A5D4F6C2DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{05787CEF-6A8F-4FF5-A57C-C8A5D4F6C2DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{05787CEF-6A8F-4FF5-A57C-C8A5D4F6C2DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{05787CEF-6A8F-4FF5-A57C-C8A5D4F6C2DB}.Release|Any CPU.Build.0 = Release|Any CPU
{25A26C47-210F-4B7F-A48C-71760D0C9475}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{25A26C47-210F-4B7F-A48C-71760D0C9475}.Debug|Any CPU.Build.0 = Debug|Any CPU
{25A26C47-210F-4B7F-A48C-71760D0C9475}.Release|Any CPU.ActiveCfg = Release|Any CPU
{25A26C47-210F-4B7F-A48C-71760D0C9475}.Release|Any CPU.Build.0 = Release|Any CPU
{D541577E-2AB1-4379-BA6D-2F23F0B1DFBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D541577E-2AB1-4379-BA6D-2F23F0B1DFBB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D541577E-2AB1-4379-BA6D-2F23F0B1DFBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D541577E-2AB1-4379-BA6D-2F23F0B1DFBB}.Release|Any CPU.Build.0 = Release|Any CPU
{64EF5766-40C7-46D4-87AA-ED16D0F867B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{64EF5766-40C7-46D4-87AA-ED16D0F867B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{64EF5766-40C7-46D4-87AA-ED16D0F867B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{64EF5766-40C7-46D4-87AA-ED16D0F867B1}.Release|Any CPU.Build.0 = Release|Any CPU
{AB686D72-2020-4FA7-8643-7B0F2E4AD7CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AB686D72-2020-4FA7-8643-7B0F2E4AD7CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AB686D72-2020-4FA7-8643-7B0F2E4AD7CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AB686D72-2020-4FA7-8643-7B0F2E4AD7CB}.Release|Any CPU.Build.0 = Release|Any CPU
{287961D7-D1EC-40A5-B3DE-EA8C81772D08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{287961D7-D1EC-40A5-B3DE-EA8C81772D08}.Debug|Any CPU.Build.0 = Debug|Any CPU
{287961D7-D1EC-40A5-B3DE-EA8C81772D08}.Release|Any CPU.ActiveCfg = Release|Any CPU
{287961D7-D1EC-40A5-B3DE-EA8C81772D08}.Release|Any CPU.Build.0 = Release|Any CPU
{B5B03329-07DE-4B23-A6BC-C21C0F9D2A88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B5B03329-07DE-4B23-A6BC-C21C0F9D2A88}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B5B03329-07DE-4B23-A6BC-C21C0F9D2A88}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B5B03329-07DE-4B23-A6BC-C21C0F9D2A88}.Release|Any CPU.Build.0 = Release|Any CPU
{2D31A6F0-FB87-4887-978B-3D200DA12FBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2D31A6F0-FB87-4887-978B-3D200DA12FBF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2D31A6F0-FB87-4887-978B-3D200DA12FBF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2D31A6F0-FB87-4887-978B-3D200DA12FBF}.Release|Any CPU.Build.0 = Release|Any CPU
{14A999E3-B35E-42EE-9C45-5ECBF0B75E50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{14A999E3-B35E-42EE-9C45-5ECBF0B75E50}.Debug|Any CPU.Build.0 = Debug|Any CPU
{14A999E3-B35E-42EE-9C45-5ECBF0B75E50}.Release|Any CPU.ActiveCfg = Release|Any CPU
{14A999E3-B35E-42EE-9C45-5ECBF0B75E50}.Release|Any CPU.Build.0 = Release|Any CPU
{4EC9E180-1F68-4574-89D8-97495FE387D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4EC9E180-1F68-4574-89D8-97495FE387D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4EC9E180-1F68-4574-89D8-97495FE387D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4EC9E180-1F68-4574-89D8-97495FE387D9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{C93CB29F-C0A1-40D6-A4CC-B93C75423ED5} = {807563C4-7259-434D-B604-A14C3DCF8E30}
{05787CEF-6A8F-4FF5-A57C-C8A5D4F6C2DB} = {807563C4-7259-434D-B604-A14C3DCF8E30}
{25A26C47-210F-4B7F-A48C-71760D0C9475} = {807563C4-7259-434D-B604-A14C3DCF8E30}
{D541577E-2AB1-4379-BA6D-2F23F0B1DFBB} = {807563C4-7259-434D-B604-A14C3DCF8E30}
{64EF5766-40C7-46D4-87AA-ED16D0F867B1} = {807563C4-7259-434D-B604-A14C3DCF8E30}
{AB686D72-2020-4FA7-8643-7B0F2E4AD7CB} = {807563C4-7259-434D-B604-A14C3DCF8E30}
{287961D7-D1EC-40A5-B3DE-EA8C81772D08} = {807563C4-7259-434D-B604-A14C3DCF8E30}
{B5B03329-07DE-4B23-A6BC-C21C0F9D2A88} = {807563C4-7259-434D-B604-A14C3DCF8E30}
{2D31A6F0-FB87-4887-978B-3D200DA12FBF} = {807563C4-7259-434D-B604-A14C3DCF8E30}
{14A999E3-B35E-42EE-9C45-5ECBF0B75E50} = {807563C4-7259-434D-B604-A14C3DCF8E30}
{4EC9E180-1F68-4574-89D8-97495FE387D9} = {807563C4-7259-434D-B604-A14C3DCF8E30}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {45E7631F-9783-47C2-AB68-4E3B77E250B0}
EndGlobalSection
EndGlobal
{
"projects": [ "src" ]
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<AssemblyName>Breeze.Daemon</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>Breeze.Daemon</PackageId>
<RuntimeFrameworkVersion>2.0.0</RuntimeFrameworkVersion>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\StratisBitcoinFullNode\Stratis.Bitcoin.Api\Stratis.Bitcoin.Api.csproj" />
<ProjectReference Include="..\..\..\StratisBitcoinFullNode\Stratis.Bitcoin.Features.BlockStore\Stratis.Bitcoin.Features.BlockStore.csproj" />
<ProjectReference Include="..\..\..\StratisBitcoinFullNode\Stratis.Bitcoin.Features.Consensus\Stratis.Bitcoin.Features.Consensus.csproj" />
<ProjectReference Include="..\..\..\StratisBitcoinFullNode\Stratis.Bitcoin.Features.LightWallet\Stratis.Bitcoin.Features.LightWallet.csproj" />
<ProjectReference Include="..\..\..\StratisBitcoinFullNode\Stratis.Bitcoin.Features.Notifications\Stratis.Bitcoin.Features.Notifications.csproj" />
<ProjectReference Include="..\..\..\StratisBitcoinFullNode\Stratis.Bitcoin.Features.Wallet\Stratis.Bitcoin.Features.Wallet.csproj" />
<ProjectReference Include="..\..\..\StratisBitcoinFullNode\Stratis.Bitcoin\Stratis.Bitcoin.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.0.0" />
</ItemGroup>
<PropertyGroup>
<RuntimeIdentifiers>win7-x86;win7-x64;win10-x86;win10-x64;osx.10.12-x64;ubuntu.14.04-x64;ubuntu.16.04-x64</RuntimeIdentifiers>
</PropertyGroup>
</Project>
cd ..
start cmd /k dotnet run light
timeout 7
start cmd /k dotnet run stratis light
\ No newline at end of file
cd ..
start cmd /k dotnet run light -testnet -debug=all -loglevel=debug
timeout 7
start cmd /k dotnet run stratis light -testnet -debug=all -loglevel=debug
\ No newline at end of file
using System;
using System.Linq;
using Stratis.Bitcoin.Builder;
using Stratis.Bitcoin.Configuration;
using NBitcoin;
using NBitcoin.Protocol;
using Stratis.Bitcoin.Api;
using Stratis.Bitcoin.Features.BlockStore;
using Stratis.Bitcoin.Features.Consensus;
using Stratis.Bitcoin.Features.LightWallet;
using Stratis.Bitcoin.Features.MemoryPool;
using Stratis.Bitcoin.Features.Notifications;
using Stratis.Bitcoin.Features.Wallet;
using Stratis.Bitcoin.Utilities;
namespace Breeze.Daemon
{
public class Program
{
private const string DefaultBitcoinUri = "http://localhost:5000";
private const string DefaultStratisUri = "http://localhost:5105";
public static void Main(string[] args)
{
IFullNodeBuilder fullNodeBuilder = null;
// get the api uri
var apiUri = args.GetValueOf("apiuri");
if (args.Contains("stratis"))
{
if (NodeSettings.PrintHelp(args, Network.StratisMain))
return;
var network = args.Contains("-testnet") ? InitStratisTest() : Network.StratisMain;
if (args.Contains("-testnet"))
args = args.Append("-addnode=13.64.76.48").ToArray(); // TODO: fix this temp hack
var nodeSettings = NodeSettings.FromArguments(args, "stratis", network, ProtocolVersion.ALT_PROTOCOL_VERSION);
nodeSettings.ApiUri = new Uri(string.IsNullOrEmpty(apiUri) ? DefaultStratisUri : apiUri);
if (args.Contains("light"))
{
fullNodeBuilder = new FullNodeBuilder()
.UseNodeSettings(nodeSettings)
.UseLightWallet()
.UseBlockNotification()
.UseTransactionNotification()
.UseApi();
}
else
{
fullNodeBuilder = new FullNodeBuilder()
.UseNodeSettings(nodeSettings)
.UseStratisConsensus()
.UseBlockStore()
.UseMempool()
.UseWallet()
.UseApi();
}
}
else
{
NodeSettings nodeSettings = NodeSettings.FromArguments(args);
nodeSettings.ApiUri = new Uri(string.IsNullOrEmpty(apiUri) ? DefaultBitcoinUri : apiUri);
if (args.Contains("light"))
{
fullNodeBuilder = new FullNodeBuilder()
.UseNodeSettings(nodeSettings)
.UseLightWallet()
.UseBlockNotification()
.UseTransactionNotification()
.UseApi();
}
else
{
fullNodeBuilder = new FullNodeBuilder()
.UseNodeSettings(nodeSettings)
.UseConsensus()
.UseBlockStore()
.UseMempool()
.UseWallet()
.UseApi();
}
}
var node = fullNodeBuilder.Build();
//start Full Node - this will also start the API
node.Run();
}
private static Network InitStratisTest()
{
Block.BlockSignature = true;
Transaction.TimeStamp = true;
var consensus = Network.StratisMain.Consensus.Clone();
consensus.PowLimit = new Target(uint256.Parse("0000ffff00000000000000000000000000000000000000000000000000000000"));
// The message start string is designed to be unlikely to occur in normal data.
// The characters are rarely used upper ASCII, not valid as UTF-8, and produce
// a large 4-byte int at any alignment.
var pchMessageStart = new byte[4];
pchMessageStart[0] = 0x71;
pchMessageStart[1] = 0x31;
pchMessageStart[2] = 0x21;
pchMessageStart[3] = 0x11;
var magic = BitConverter.ToUInt32(pchMessageStart, 0); //0x5223570;
var genesis = Network.StratisMain.GetGenesis().Clone();
genesis.Header.Time = 1493909211;
genesis.Header.Nonce = 2433759;
genesis.Header.Bits = consensus.PowLimit;
consensus.HashGenesisBlock = genesis.GetHash();
Guard.Assert(consensus.HashGenesisBlock == uint256.Parse("0x00000e246d7b73b88c9ab55f2e5e94d9e22d471def3df5ea448f5576b1d156b9"));
var builder = new NetworkBuilder()
.SetName("StratisTest")
.SetConsensus(consensus)
.SetMagic(magic)
.SetGenesis(genesis)
.SetPort(26178)
.SetRPCPort(26174)
.SetBase58Bytes(Base58Type.PUBKEY_ADDRESS, new byte[] { (65) })
.SetBase58Bytes(Base58Type.SCRIPT_ADDRESS, new byte[] { (196) })
.SetBase58Bytes(Base58Type.SECRET_KEY, new byte[] { (65 + 128) })
.SetBase58Bytes(Base58Type.ENCRYPTED_SECRET_KEY_NO_EC, new byte[] { 0x01, 0x42 })
.SetBase58Bytes(Base58Type.ENCRYPTED_SECRET_KEY_EC, new byte[] { 0x01, 0x43 })
.SetBase58Bytes(Base58Type.EXT_PUBLIC_KEY, new byte[] { (0x04), (0x88), (0xB2), (0x1E) })
.SetBase58Bytes(Base58Type.EXT_SECRET_KEY, new byte[] { (0x04), (0x88), (0xAD), (0xE4) })
.AddDNSSeeds(new[]
{
new DNSSeedData("stratisplatform.com", "testnode1.stratisplatform.com"),
});
return builder.BuildAndRegister();
}
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Breeze.Daemon")]
[assembly: AssemblyTrademark("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("1b598e33-667f-496d-bc0d-88276e8e7632")]
{
"profiles": {
"Bitcoin Main": {
"commandName": "Project",
"commandLineArgs": "light"
},
"Bitcoin Test": {
"commandName": "Project",
"commandLineArgs": "light -testnet -debug=all -loglevel=debug"
},
"Stratis Main": {
"commandName": "Project",
"commandLineArgs": "stratis light"
},
"Stratis Test": {
"commandName": "Project",
"commandLineArgs": "stratis light -testnet -debug=all -loglevel=debug"
}
}
}
\ No newline at end of file
......@@ -67,13 +67,11 @@ before_build:
Write-Host "*--------------------------------*" -foregroundcolor "magenta"
Write-Host "$env:log_prefix STARTED restoring dotnet and npm packages" -foregroundcolor "magenta"
cd Breeze
# Initialize dependencies
git submodule update --init --recursive
dotnet restore -v m
cd ../Breeze.UI
cd $env:APPVEYOR_BUILD_FOLDER/Breeze.UI
Install-Product node 6
npm install
......@@ -83,14 +81,15 @@ before_build:
build_script:
- ps: |
Write-Host "$env:log_prefix running 'dotnet build'" -foregroundcolor "magenta"
cd ../Breeze/src/Breeze.Daemon
cd $env:APPVEYOR_BUILD_FOLDER/StratisBitcoinFullNode/Stratis.BreezeD
dotnet restore -v m
dotnet build -c $env:configuration -r $env:win_runtime -v m
Write-Host "$env:log_prefix running 'dotnet publish'" -foregroundcolor "magenta"
dotnet publish -c $env:configuration -v m -r $env:win_runtime -o $env:APPVEYOR_BUILD_FOLDER\dotnet_out\$env:win_runtime
Write-Host "$env:log_prefix running 'npm run'" -foregroundcolor "magenta"
cd ../../../Breeze.UI
cd $env:APPVEYOR_BUILD_FOLDER/Breeze.UI
npm run build:prod
Write-Host "$env:log_prefix packaging breeze" -foregroundcolor "magenta"
node package.js --platform=$env:plat --arch=$env:arch --path=$env:APPVEYOR_BUILD_FOLDER\breeze_out
......
......@@ -35,10 +35,9 @@ dotnet --info
# Initialize dependencies
echo $log_prefix STARTED restoring dotnet and npm packages
cd $TRAVIS_BUILD_DIR/Breeze
cd $TRAVIS_BUILD_DIR
git submodule update --init --recursive
dotnet restore -v m
cd $TRAVIS_BUILD_DIR/Breeze.UI
npm install
......@@ -46,14 +45,15 @@ echo $log_prefix FINISHED restoring dotnet and npm packages
# dotnet build
echo $log_prefix running 'dotnet build'
cd $TRAVIS_BUILD_DIR/Breeze/src/Breeze.Daemon
cd $TRAVIS_BUILD_DIR/StratisBitcoinFullNode/Stratis.BreezeD
dotnet restore -v m
dotnet build -c $configuration -r $os_identifier-$arch -v m
echo $log_prefix running 'dotnet publish'
dotnet publish -c $configuration -r $os_identifier-$arch -v m -o $TRAVIS_BUILD_DIR/dotnet_out/$TRAVIS_OS_NAME
echo $log_prefix chmoding the Breeze.Daemon file
chmod +x $TRAVIS_BUILD_DIR/dotnet_out/$TRAVIS_OS_NAME/Breeze.Daemon
echo $log_prefix chmoding the Stratis.BreezeD file
chmod +x $TRAVIS_BUILD_DIR/dotnet_out/$TRAVIS_OS_NAME/Stratis.BreezeD
# node Build
cd $TRAVIS_BUILD_DIR/Breeze.UI
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment