Skip to content

Commit

Permalink
Prepare version and workflow for release
Browse files Browse the repository at this point in the history
  • Loading branch information
KingGorrin committed Aug 1, 2023
1 parent 911fae6 commit 1f3bf9e
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- bigint
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down
2 changes: 1 addition & 1 deletion src/Zenon.Tests/Api/ContractTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ public void When_Reclaim_ExpectResultToEqual()
// Setup
var expectedResult = TestHelper.CreateAccountBlockTemplate("z1qxemdeddedxhtlcxxxxxxxxxxxxxxxxxygecvw",
"zts1znnxxxxxxxxxxxxx9z4ulx", "0", "fgA8jVnkOgCVs2M3kRjJ4oOEQtwrHqWWJLGK6txc1mFWB5Qe");

// Execute
var block = this.Api.Reclaim(
Hash.Parse("59e43a0095b363379118c9e2838442dc2b1ea59624b18aeadc5cd6615607941e"));
Expand Down
6 changes: 3 additions & 3 deletions src/Zenon/Api/Embedded/AcceleratorApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,22 @@ public async Task<VoteBreakdown> GetVoteBreakdown(Hash id)
}

// Contract methods
public AccountBlockTemplate CreateProject(string name, string description,
public AccountBlockTemplate CreateProject(string name, string description,
string url, BigInteger znnFundsNeeded, BigInteger qsrFundsNeeded)
{
return AccountBlockTemplate.CallContract(Address.AcceleratorAddress, TokenStandard.ZnnZts,
Constants.ProjectCreationFeeInZnn,
Definitions.Accelerator.EncodeFunction("CreateProject", name, description, url, znnFundsNeeded, qsrFundsNeeded));
}

public AccountBlockTemplate AddPhase(Hash id, string name, string description,
public AccountBlockTemplate AddPhase(Hash id, string name, string description,
string url, BigInteger znnFundsNeeded, BigInteger qsrFundsNeeded)
{
return AccountBlockTemplate.CallContract(Address.AcceleratorAddress, TokenStandard.ZnnZts, BigInteger.Zero,
Definitions.Accelerator.EncodeFunction("AddPhase", id.Bytes, name, description, url, znnFundsNeeded, qsrFundsNeeded));
}

public AccountBlockTemplate UpdatePhase(Hash id, string name, string description,
public AccountBlockTemplate UpdatePhase(Hash id, string name, string description,
string url, BigInteger znnFundsNeeded, BigInteger qsrFundsNeeded)
{
return AccountBlockTemplate.CallContract(Address.AcceleratorAddress, TokenStandard.ZnnZts, BigInteger.Zero,
Expand Down
4 changes: 2 additions & 2 deletions src/Zenon/Api/Embedded/PillarApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public PillarApi(Lazy<IClient> client)

public async Task<BigInteger> GetDepositedQsr(Address address)
{
return AmountUtils.ParseAmount(await
return AmountUtils.ParseAmount(await
Client.Value.SendRequest<string>("embedded.pillar.getDepositedQsr", address.ToString()));
}

Expand All @@ -41,7 +41,7 @@ public async Task<RewardHistoryList> GetFrontierRewardByPage(Address address, in

public async Task<BigInteger> GetQsrRegistrationCost()
{
return AmountUtils.ParseAmount(await
return AmountUtils.ParseAmount(await
Client.Value.SendRequest<string>("embedded.pillar.getQsrRegistrationCost"));
}

Expand Down
2 changes: 1 addition & 1 deletion src/Zenon/Api/Embedded/SentinelApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public async Task<SentinelInfo> GetByOwner(Address owner)

public async Task<BigInteger> GetDepositedQsr(Address address)
{
return AmountUtils.ParseAmount(await
return AmountUtils.ParseAmount(await
Client.Value.SendRequest<string>("embedded.sentinel.getDepositedQsr", address.ToString()));
}

Expand Down
2 changes: 1 addition & 1 deletion src/Zenon/Utils/AmountUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static string CreateAndStripZerosForScale(
}

var strVal = intVal.ToString();
return scale > 0
return scale > 0
? strVal.Insert(strVal.Length - scale, CultureInfo.InvariantCulture.NumberFormat.NumberDecimalSeparator)
: strVal;
}
Expand Down
1 change: 0 additions & 1 deletion src/Zenon/Utils/BlockUtils.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Diagnostics;
using System.Numerics;
using System.Threading.Tasks;
using Zenon.Model.Embedded;
using Zenon.Model.NoM;
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "0.6-bigint",
"version": "0.6",
"release": {
"branchName": "release/v{version}",
"versionIncrement": "minor",
Expand Down

0 comments on commit 1f3bf9e

Please sign in to comment.