Skip to content

Releases: Augmint/augmint-js

augmint-contracts to 1.1.1

13 Sep 10:19
Compare
Choose a tag to compare
Pre-release

upgrade augmint-contracts to 1.1.1 #112

margin-under-the-hood

23 Aug 13:49
1f3f1e0
Compare
Choose a tag to compare
margin-under-the-hood Pre-release
Pre-release
  • bugfix: do not convert borrower address in Loan to decimal number
  • minor changes needed for under-the-hood pages (under-the-hood support for new margin-loanmanagers)

Margin loan release

09 Aug 13:34
229ea4f
Compare
Choose a tag to compare
Margin loan release Pre-release
Pre-release
  • move loan methods from web to augmint-js
  • upgrade bn.js to 5.0
  • expose new eth backed loan on augmint js
  • new eth backed loan with min rate!
  • fix Wei's toNumber and extend Tokens with toNumber
  • update Loan to handle margin loan
  • units: rounding modes for mul and div, tests
  • use Tokens.toString() instead of internal BN.toString()
  • connect contract with ethersjs
  • margin call rate calculator
  • throw plain error on evironment configuration error instead of MissingContractError
  • optimize chunked query

Market order matching estimates and documentation

17 Jun 09:04
9628606
Compare
Choose a tag to compare

New features

  • publish API documentation #83
  • add toNumber to Wei #85
  • Market order matching estimates #79

Component upgrades

  • upgrade rollup to 1.12.4 #80

Check out our new documentation at https://docs.augmint.org/ !

Units and zeros

27 May 11:51
0ab2656
Compare
Choose a tag to compare
Units and zeros Pre-release
Pre-release
  • units: handle real-world parsing
  • units: can be converted to null if the value is zero (bc EVM cannot send null)

NPM autopublish fix

21 May 08:15
4b81fd3
Compare
Choose a tag to compare
NPM autopublish fix Pre-release
Pre-release

The v0.3.0 was published automatically from github (which is good) but it wasn't built (which is bad).

This release try to fix the empty package on npm.

BigNumber of features

20 May 16:22
1f3230c
Compare
Choose a tag to compare
BigNumber of features Pre-release
Pre-release

New features

  • LoanManager class #53
    augmint.loanManager.getAllProducts() and getActiveProducts()
  • LoanProduct class #55
    calculateLoanFromCollateral(_collateralAmount: BN, ethFiatRate: BN): ILoanValues
    calculateLoanFromDisbursedAmount(_disbursedAmount: BN, ethFiatRate: BN): ILoanValues
  • unit classes: Tokens, Wei, Ratio #59
  • Exchange improvements (#56 , #67)

Breaking changes

  • unit classes: Tokens, Wei, Ratio #59 and use of BN from bn.js in the background see #44 & #46
    This is a breaking change in almost all interfaces. E.g.:
    • Rates.getEthFiatRate : renamed and returns Tokens instead of BigNumber
    • Rates.getAugmintRate : returns Rate for .rate instead of BigNumber
    • Exchange.getOrderBook : returns a different object
    • Exchange.matchMultipleOrders : accepts Orders in new format from getOrderBook

Internal improvements

  • readme updates #54
  • legacy contract connections and tests #51
  • use @augmint/contracts version to determine docker image name #58
  • ignore node types in greenkeeper #63
  • fix module declarations (#61)
  • fix some linter warnings (#64)
  • handle web3 connect with http , trustwallet and coinbase wallet providers #68
  • fix type declaration path (#70)

Component upgrades

place order and deployedEnvironment

08 May 07:55
993b41d
Compare
Choose a tag to compare
Pre-release

New features

  • Exchange.placeSellTokenOrder & placeBuyTokenOrder #42

Breaking changes

  • Augmint.environment became Augmint.deployedEnvironment.name
  • Transaction.onConfirmation callback doesn't include receipt anymore #48

Internal improvements

  • Create and use environment types #33, #47
  • test updates: run ganache container with --blockTime 1 (which is closer how real chains work) #36
  • Use @augmint/contracts npm package instead of abiniser folder copy-paste #47

Component upgrades

  • update dotenv to 8.0.0 #37
  • update rollup to 1.11.3 #39

Petty tweaks

02 May 14:39
86c4fb3
Compare
Choose a tag to compare
Petty tweaks Pre-release
Pre-release
  • augmint-cli to accept additional ganache launch flags #34
  • yarn ganache:run script (shorthand to augmint-cli ganache run to recreate container) #34
  • fix build badge on README #32

A Small One

01 May 21:31
2bcc1fe
Compare
Choose a tag to compare
A Small One Pre-release
Pre-release
  • fix repo url and augmint-cli path in package.json #30