Releases: CelsiusNetwork/celsius-js-sdk
Releases · CelsiusNetwork/celsius-js-sdk
Release 1.0.0
[1.0.0] - 2022-03-08
Added
- Functionalities:
- Added functionality to
http-client
for sending PUT requests. Kudos to @ptlls
- Added functionality to
- Methods:
CelsiusInstance.getSupportedCountries(userSecret)
that returns the list of countries supported by Celsius.CelsiusInstance.health(message)
checks the health of the server. Kudos to @andreujuancCelsiusInstance.getKycVerificationStatus(userId, userSecret)
checks the KYC status, similar to existinggetKycStatus
method, but takes alsouserId
as a parameter
and returns a response containing propertystatus
which shows the status of KYC andreason
which states the reason for the status if needed.CelsiusInstance.startKycVerification(userId, documentType, userDocuments, userSecret)
starts the KYC verification same as existingverifyKyc
method, but it doesn't
create the user, but rather receives an existing user's id -userId
as a parameterCelsiusInstance.createUser(user)
which returnsuserId
which can be used to manipulate user info and starting KYC verification. Also, theuser_token
property will be used asuserSecret
CelsiusInstance.updateUser(userId, user, userSecret)
CelsiusInstance.updateUserEmail(email, userSecret)
CelsiusInstance.confirmTermsOfUse(termsOfUseId, confirmationDate, userSecret)
use to accept the latest terms of use. Kudos to @ptlls
- Types:
CreateUser
with propertiesfirst_name
,last_name
,middle_name
?,email
?,title
?,date_of_birth
,
citizenship
,country
,state
?,city
,zip
,street
,building_number
?,flat_number
,itin
?, national_id?,
ssn
?,gender
,user_token
UpdateUser
with propertiesfirst_name
,last_name
,middle_name
?,email
?,title
?,date_of_birth
,
citizenship
,country
,state
?,city
,zip
,street
,building_number
?,flat_number
?,itin
?,
national_id
?,ssn
?,gender
,UpdateEmail
withemail
property, for updating user email.CreateUserResponse
with propertiesuserId
,userToken
SupportedCountriesResponse
with propertiesalpha2
,alpha3
,countryCallingCodes
,currencies
emoji
,ioc
,languages
,name
andstatus
KYCStatusResponse
with propertiesstatus
andreasons
Updated
- Updated methods:
getInterestRates
return type changed toPromise<InterestRates[]>
. Kudos to @barathvkgetTransactionSummary
, pagination options parameter changed fromPaginationOptions
toCelsiusPaginationOptions
. Kudos to @crypto-diplodocus and @rbaylissgetCoinTransactions
, pagination options changed fromPaginationOptions
toCelsiusPaginationOptions
. Kudos to @crypto-diplodocus and @rbayliss
- Updated types:
- added
coin
property toCelsiusWithdrawOptions
- added
- Updated dependencies:
- Bump
nokogiri
from 1.10.8 to 1.12.5 - Bump
path-parse
from 1.0.6 to 1.0.7 - Bump
addressable
from 2.5.2 to 2.8.0 - Bump
hosted-git-info
from 2.7.1 to 2.8.9 - Bump
lodash
from 4.17.19 to 4.17.21 - Bump
axios
from 0.18.1 to 0.21.1
- Bump
Deleted:
- Deleted methods:
CelsiusInstance.createUser
CelsiusInstance.getUsers
CelsiusInstance.changeMetadata
CelsiusInstance.changeWithdrawalAddress
- Deleted types:
PaginationOptions
UserWithdrawalAddress
UserMetadataResponse
UserCreateResponse
UsersResponse
WithdrawalAddress
InstitutionalUser
v0.10.15
v0.10.14
- Fixing error handling to cover unhandled cases such as Wallet API being offline and signature verification failing.
- Adding a new class
CelsiusSDKError
that encapsulates errors raised within the Celsius SDK. This class extends the Error class and contains the following additional attributes:- slug - Unique identifier tied to the error, returned by the API;
- status - Status code returned by the API;
- originalError - Original error which was used to instantiate CelsiusSDKError.
- Exporting
CelsiusSDKError
andValidationError
classes used by Celsius SDK to encapsulate errors. - Fixing unhandled promise rejections in http-client.js::post method.
v0.10.13
- Adding new properties to response received when using
CelsiusInstance.getTransctionSummary(pagination, userSecret)
andCelsiusInstance.getCoinTransactions(coin, pagination, userSecret)
.- original_interest_coin - Name of the original coin for which the interest has been accrued.
- interest_amount_in_original_coin - Amount accrued in
original_interest_coin
, before conversion to another asset.
Adding originating withdrawal scheme support
This release adds the following support for originating withdrawal scheme for whitelabel partners:
- Method
getWithdrawalAddresses(userSecret)
which allows retrieving all withdrawal addresses for the given user; - Method
getWithdrawalAddressForCoin(coin, userSecret)
which allows retrieving withdrawal address for the given coin and user.