Skip to content

Commit

Permalink
(chore) Up Ergo 0.0.61
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed Jun 2, 2018
1 parent 37f5d33 commit 96df8c2
Show file tree
Hide file tree
Showing 10 changed files with 3,578 additions and 2,289 deletions.
4,550 changes: 2,275 additions & 2,275 deletions package-lock.json

Large diffs are not rendered by default.

1,296 changes: 1,296 additions & 0 deletions packages/cicero-cli/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/cicero-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"dependencies": {
"@accordproject/cicero-core": "0.3.15",
"@accordproject/cicero-engine": "0.3.15",
"@accordproject/ergo-compiler": "0.0.61",
"@accordproject/ergo-compiler": "0.0.48",
"composer-common": "0.19.6",
"yargs": "9.0.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ contract LateDeliveryAndPenalty over TemplateModel {
;

// Calculate the time difference between current date and agreed upon date
define variable diff = momentDiff(now,agreed);
define variable diff = momentDiffDays(now,agreed);
// Penalty formula
define variable penalty =
(diff / contract.penaltyDuration.amount) * contract.penaltyPercentage/100.0 * request.goodsValue;
Expand Down
2 changes: 1 addition & 1 deletion packages/cicero-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"dependencies": {
"@accordproject/cicero-common": "0.3.15",
"@accordproject/ergo-compiler": "0.0.48",
"@accordproject/ergo-compiler": "0.0.61",
"composer-common": "0.19.6",
"debug": "2.6.2",
"glob": "7.1.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ contract LateDeliveryAndPenalty over TemplateModel {
;

// Calculate the time difference between current date and agreed upon date
define variable diff = momentDiff(now,agreed);
define variable diff = momentDiffDays(now,agreed);
// Penalty formula
define variable penalty =
(diff / contract.penaltyDuration.amount) * contract.penaltyPercentage/100.0 * request.goodsValue;
Expand Down
2 changes: 1 addition & 1 deletion packages/cicero-core/test/data/mix-logic/lib/logic.ergo
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ contract LateDeliveryAndPenalty over TemplateModel {
;

// Calculate the time difference between current date and agreed upon date
define variable diff = momentDiff(now,agreed);
define variable diff = momentDiffDays(now,agreed);
// Penalty formula
define variable penalty =
(diff / contract.penaltyDuration.amount) * contract.penaltyPercentage/100.0 * request.goodsValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ contract LateDeliveryAndPenalty over TemplateModel {
;

// Calculate the time difference between current date and agreed upon date
define variable diff = momentDiff(now,agreed);
define variable diff = momentDiffDays(now,agreed);
// Penalty formula
define variable penalty =
(diff / contract.penaltyDuration.amount) * contract.penaltyPercentage/100.0 * request.goodsValue;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ contract LateDeliveryAndPenalty over TemplateModel {
;

// Calculate the time difference between current date and agreed upon date
define variable diff = momentDiff(now,agreed);
define variable diff = momentDiffDays(now,agreed);
// Penalty formula
define variable penalty =
(diff / contract.penaltyDuration.amount) * contract.penaltyPercentage/100.0 * request.goodsValue;
Expand Down

0 comments on commit 96df8c2

Please sign in to comment.