@eosdt/eosdt-js
Advanced tools
Changelog
[1.3.6] - 2021-03-30 - No changes
Update just to increment npm version
Changelog
[1.3.5] - 2021-03-29 - Updates for 'pricefeed.eq' contract
A new table 'newrates' was added to 'pricefeed.eq' contract, it contains Equilibrium prices feed data. Previously you could use getRates
on BasicPositionsContract
to get system rates. This works same as before, but now you can also use getRatesNew
. Property rate
property would be the same in both old and new TokenRate
objects, but TokenRateNew
contains more system data.
TokenRateNew
getRatesNew
to BasicPositionsContract
Changelog
[1.3.4] - 2021-03-15 - Optional argument is now interface with contract data
Default behavior didn't change. If it is needed to explicitly configure contract - use optional argument. Contract that support optional argument configuration:
BasicPositionsContract
PositionsContract
TokenSwapContract
LiquidatorContract
Changelog
[1.3.3] - 2021-03-11 - Optional argument added to main positions contract
Default contract name didn't change. If optional argument is not stated mainnet contract name is used. Contract that now support two networks names:
PositionsContract
Changelog
[1.3.2] - 2021-03-11 - Added optional argument for different networks contracts names
Default contracts names didn't change. If optional argument is not stated mainnet contract name is used. Contracts that now support two networks names:
TokenSwapContract
LiquidatorContract
BasicPositionsContract
Changelog
[1.3.1] - 2020-11-05 - Added support for PETH positions contracts
EosdtConnector
can now construct adapters to work with PETH positions and liquidator contracts. BasicPositionsContract
and LiquidatorContract
can now be instantiated with PETH as collateral token.getPeth
added to BalanceGetter
amountToAssetString
now supports PETH tokens.Changelog
[1.2.1] - 2020-08-27 - Updated wrappers for 'tokenswap.eq' contract
TokenswapContract
wrapper.
Both methods accept string with prefix "0x", without prefix and with spaces on any side: - transferNut
method now doesn't have limitations for Ethereum address in memo - claim
method now doesn't have limitations for Ethereum signature in parametersChangelog
[1.2.0] - 2020-08-19 - Added wrappers for 'tokenswap.eq' contract
Updated to support liquidator and position contracts changes
Liquidator
updated interface LiquidatorSettings
: field set_aside_rate
renamed to tokenswap_rate
BasicPositionsContract
updated interface PosContractSettings
: new field tokenswap_account
Added TokenswapContract
wrapper and method to create instance of it to EosdtConnector
.
It is used to interact with contract tokenswap.eq
: - getParameters
method to get contract parameters - getSettings
method to get contract settings - getAllPositions
method to get array of all positions created on contract - transferNut
method to transfer NUT to contract with Ethereum address in memo - claim
method to get back NUT and verify Ethereum signature
Tokenswap
new interfaces:
TokenswapContractParams
TokenswapContractSettings
TokenswapPositions
Changelog
[1.1.0] - 2020-07-15 - Added wrappers for 'arm.eq' contract
Added ArmContract
as an export, added method to create instance of it to EosdtConnector