All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Add getAmmFundingOrder method to track AMM operations
- Add poolTvlHistory endpoint
- When user denies register TX, respond with more friendly message
- Assuming default web3 provider is an Ethereum mainnet or testnet
useAuthHeader
authentication mode for all examples
- Add manual xDVF support
- Fixed issue preventing native tokens to be deposited from sidechains
- Updated Ledger data provision for Goerli test tokens (USDT, WBTC, DVF, xDVF)
- Using RPC_URL instead of INFURA_PROJECT_ID in config for more flexibility
- Update feeRate check on order payload creation to replace feeRate only if not present and preserve falsy values like 0 to allow staking
- Bridged deposit to call deposit validation endpoint for sanity checks
- Fixed issues causing Ledger transactions to require reload after error
- Adding DVF token metadata for Ledger compatibility
- Support of multiple web3 providers passed in the constructor
- Add
bridgedDeposit
andbridgedWithdraw
methods
- Use GET method when getting gas price from API in
getGasPrice
- Add optional
memo
to transfer API
- Adding optional
permitParams
argument todepositV2
andregisterAndDeposit
(will try to use signature-based eip-2612 permit instead ofapprove
if passed)
- Accomodating changes in configuration tokenRegistry structure (
tokenAddressPerChain
) dvf.approve
to accept an extra argumentchain
(defaults to'ETHEREUM'
)- accept transaction hash callback option when doing token approval, deposit and register + deposit
dvf.depositV2
anddvf.registerAndDeposit
to accept optionalweb3Options
parameter for internal use (better gas limit estimates)
dvf.getFeeRate
to acceptsymbol
andfeature
parameters
- Public user permissioning added to the client
dvf.getMinMaxOrderSize
to get order size limitations bysymbol
dvf.register
anddvf.registerAndDeposit
to accept an optionalmeta
parameter for interal use
- Exposing
dvf.getAuthenticated
for arbitrary calls to GET endpoints - Allowing custom headers in
dvf.getAuthenticated
dvf.getRegistrationStatuses
endpoint for checking both Deversifi and on-chain registration statuses - seeexamples/29.getRegistrationStatuses.js
- Schema validated using
validateWithJoi
to berequired()
by default
dvf.transfer
method signature changes :starkPrivateKey
to be set via configuration instead of input argument - seeexamples/27.transfer.js
- Updated examples
- Handle errors in getConfig during initialisation
- Use dvf pub api to get range of gas prices
- gas Station API optional
- Use recommended gas price from config
- Use Deversifi Symbol format in config file
- Use API Key for eth gas station api call
- web3 provider calls for blocknumber