diff --git a/Bin/Light/Tera-light.zip b/Bin/Light/Tera-light.zip index 03eb611..124fd78 100644 Binary files a/Bin/Light/Tera-light.zip and b/Bin/Light/Tera-light.zip differ diff --git a/Bin/Light/tera_light_setup.exe b/Bin/Light/tera_light_setup.exe index 6015443..3bbaf15 100644 Binary files a/Bin/Light/tera_light_setup.exe and b/Bin/Light/tera_light_setup.exe differ diff --git a/Doc/Eng/API2.md b/Doc/Eng/API2.md index 35cebab..fb344f7 100644 --- a/Doc/Eng/API2.md +++ b/Doc/Eng/API2.md @@ -1,5 +1,5 @@ # API v2 (for exchanges) -Works with update version 0.897 +Works with update version 0.901 The API is designed to make it easier to write third-party applications. Server-side cryptography and POW operations are performed. Therefore, it is not recommended for public access, because it is not protected from DDOS attacks. Use it if applications such as the exchange server are on the same private network. @@ -159,6 +159,7 @@ return: "result": 1, "SumCOIN": 5589146, "SumCENT": 555765670, + "Currency": 0, "PubKey": "02769165A6F9950D023A415EE668B80BB96B5C9AE2035D97BDFB44F356175A44FF" } ``` diff --git a/Doc/Rus/API2.md b/Doc/Rus/API2.md index 313fb65..4233cea 100644 --- a/Doc/Rus/API2.md +++ b/Doc/Rus/API2.md @@ -1,5 +1,5 @@ # API v2 (для бирж и обменников) -Работает с версии обновления 0.897 +Работает с версии обновления 0.901 API предназначено для облегчения написания сторонних приложений. На стороне сервера выполняется криптография и операции POW. Поэтому оно не рекомендуется для публичного доступа, т.к. нет защиты от DDOS атак. Используйте его, если приложения такие как сервер биржи находятся в одной приватной сети. @@ -158,8 +158,10 @@ return: ```js { "result": 1, - "SumCOIN": 580222966, - "SumCENT": 527313901 + "SumCOIN": 5589146, + "SumCENT": 555765670, + "Currency": 0, + "PubKey": "02769165A6F9950D023A415EE668B80BB96B5C9AE2035D97BDFB44F356175A44FF" } ``` diff --git a/Source/core/constant.js b/Source/core/constant.js index 2ea1d07..bdbb37d 100644 --- a/Source/core/constant.js +++ b/Source/core/constant.js @@ -8,7 +8,7 @@ * Telegram: https://web.telegram.org/#/im?p=@terafoundation */ -global.UPDATE_CODE_VERSION_NUM = 899; +global.UPDATE_CODE_VERSION_NUM = 901; global.MIN_CODE_VERSION_NUM = 884; global.MINING_VERSION_NUM = 3; global.InitParamsArg = InitParamsArg; diff --git a/Source/process/api-exchange.js b/Source/process/api-exchange.js index 20ccc81..58eff1e 100644 --- a/Source/process/api-exchange.js +++ b/Source/process/api-exchange.js @@ -104,9 +104,10 @@ WebApi2.GetBalance = function (Params,response) var arr = DApps.Accounts.GetRowsAccounts(ParseNum(Params.AccountID), 1); if(arr.length) { - var Value = arr[0].Value; - var Result = {result:1, SumCOIN:Value.SumCOIN, SumCENT:Value.SumCENT, PubKey:GetHexFromArr(arr[0].PubKey), Meta:Params.Meta, - }; + var Account = arr[0]; + var Value = Account.Value; + var Result = {result:1, SumCOIN:Value.SumCOIN, SumCENT:Value.SumCENT, Currency:Account.Currency, PubKey:GetHexFromArr(Account.PubKey), + Meta:Params.Meta, }; return Result; } }