solidity-math-utils 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +5 -5
- package/project/contracts/AdvancedMath.sol +1 -1
- package/project/contracts/AnalyticMath.sol +1 -1
- package/project/contracts/BondingCurve.sol +1 -1
- package/project/contracts/DynamicCurve.sol +1 -1
- package/project/contracts/FractionMath.sol +1 -1
- package/project/contracts/IntegralMath.sol +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ This package consists of the following modules:
|
|
|
5
5
|
- [FractionMath](#fractionmath) - a set of functions, each of which returning a rational result
|
|
6
6
|
- [AnalyticMath](#analyticmath) - a set of exponential and logarithmic functions
|
|
7
7
|
- [AdvancedMath](#advancedmath) - a function for solving xA^x = B, given rational values of A and B
|
|
8
|
-
- [
|
|
8
|
+
- [BondingCurve](#bondingcurve) - a set of functions implementing the bonding-curve mechanism
|
|
9
9
|
- [DynamicCurve](#dynamiccurve) - a function for equalizing the weights in a bonding-curve model
|
|
10
10
|
|
|
11
11
|
### Class Hierarchy
|
|
@@ -20,7 +20,7 @@ AnalyticMath < - - - - AdvancedMath
|
|
|
20
20
|
| |
|
|
21
21
|
| |
|
|
22
22
|
| |
|
|
23
|
-
|
|
23
|
+
BondingCurve DynamicCurve
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
Note that some of these modules are implemented as `library`, while others are implemented as `contract`.
|
|
@@ -231,7 +231,7 @@ The full customization manual can be found [here](#customization).
|
|
|
231
231
|
|
|
232
232
|
<br/><br/>
|
|
233
233
|
|
|
234
|
-
##
|
|
234
|
+
## BondingCurve
|
|
235
235
|
|
|
236
236
|
This module is implemented as a contract, because a library cannot extend (inherit) a contract.
|
|
237
237
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solidity-math-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Solidity Mathematical Utilities",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"verify": "hardhat coverage"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@nomiclabs/hardhat-truffle5": "2.0.
|
|
20
|
+
"@nomiclabs/hardhat-truffle5": "2.0.7",
|
|
21
21
|
"@nomiclabs/hardhat-web3": "2.0.0",
|
|
22
|
-
"decimal.js": "10.
|
|
23
|
-
"hardhat": "2.
|
|
24
|
-
"solidity-coverage": "0.
|
|
22
|
+
"decimal.js": "10.4.0",
|
|
23
|
+
"hardhat": "2.11.1",
|
|
24
|
+
"solidity-coverage": "0.8.1"
|
|
25
25
|
}
|
|
26
26
|
}
|