Skip to content

Commit

Permalink
1113 fixed point number (#1227)
Browse files Browse the repository at this point in the history
* feat: 1110 remove Quantity class and add HexInt class

* feat: 1110 remove Quantity class and add HexInt class

* feat: 1110 HexInt class documented

* feat: 1110 HexInt class tested

* feat: 1110 HexUInt class provided

* feat: 1113 utils/hex removed

* feat: 1113 utils/hex removed

* feat: 1115 Sha256.ts class implemented

* feat: 1113 ThorId implemented

* feat: 1113 ThorId implemented

* feat: 1113 RationalNumber in dev...

* feat: 1113 RationalNumber in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math in dev...

* feat: 1113 Fixed Point Number math

* feat: 1113 Fixed Point Number math additional tests

* feat: 1113 Fixed Point Number math additional tests

* feat: 1113 Fixed Point Number math additional tests

* feat: 1113 Fixed Point Number math additional tests

---------

Co-authored-by: Fabio Rigamonti <[email protected]>
  • Loading branch information
lucanicoladebiasi and fabiorigam authored Sep 4, 2024
1 parent 80ab59d commit 0ffa75a
Show file tree
Hide file tree
Showing 7 changed files with 2,981 additions and 16 deletions.
36 changes: 35 additions & 1 deletion docs/diagrams/architecture/vcdm.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,41 @@ classDiagram
}
class Contract
class Currency {
<<interface>>
+string code
}
class ExternallyOwnedAccount
class FPN {
+FPN NaN$
+FPN NEGATIVE_INFINITY$
+FPN POSITIVE_INFINITY$
+FPN ZERO$
+FPN abs()
+null|number comparedTo(FPN that)
+FPN div(FPN that)
+FPN dp(bigint|number decimalPlaces)
+boolean eq(FPN that)
+boolean gt(FPN that)
+boolean gte(FPN that)
+FPN idiv(FPN that)
+boolean isFinite()
+boolean isInfinite()
+boolean isInteger()
+boolean isNaN()
+boolean isNegative()
+boolean isNegativeInfinite()
+boolean isPositive()
+boolean isPositiveInfinite()
+boolean isZero()
+boolean lt(FPN that)
+boolean lte(FPN that)
+FPN minus(FPN that)
+FPN modulo(FPN that)
+FPN of(bigint|number|string exp)$
+FPN plus(FPN that)
+FPN pow(FPN that)
+FPN sqrt()
+FPN times(FPN that)
}
class Hash {
<<interface>>
}
Expand Down Expand Up @@ -83,6 +115,7 @@ classDiagram
Account "1" ..|> "1" Address : has
Account "1" ..|> "1" Currency : has
Account <|-- Contract
FPN <|-- Currency
Hash <|.. Blake2b256
Hash <|.. Keccak256
Hash <|.. Sha256
Expand All @@ -98,6 +131,7 @@ classDiagram
Txt <|-- Revision
Txt <|-- Mnemonic
VeChainDataModel <|.. BloomFilter
VeChainDataModel <|.. FPN
VeChainDataModel <|.. Hex
VeChainDataModel <|.. Txt
```
Loading

1 comment on commit 0ffa75a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Coverage

Summary

Lines Statements Branches Functions
Coverage: 99%
99.5% (4031/4051) 98.27% (1254/1276) 99.87% (804/805)
Title Tests Skipped Failures Errors Time
core 799 0 💤 0 ❌ 0 🔥 1m 32s ⏱️
network 686 0 💤 0 ❌ 0 🔥 4m 7s ⏱️
errors 43 0 💤 0 ❌ 0 🔥 15.445s ⏱️

Please sign in to comment.