int64s use [jstype = JS_STRING] to preserve big ints in javascript

This commit is contained in:
woodser 2021-09-13 12:12:54 -04:00
parent 59f3fc6385
commit 2b80385928
2 changed files with 10 additions and 10 deletions

View file

@ -116,10 +116,10 @@ message CreateOfferRequest {
string price = 3; string price = 3;
bool useMarketBasedPrice = 4; bool useMarketBasedPrice = 4;
double marketPriceMargin = 5; double marketPriceMargin = 5;
uint64 amount = 6; uint64 amount = 6 [jstype = JS_STRING];
uint64 minAmount = 7; uint64 minAmount = 7 [jstype = JS_STRING];
double buyerSecurityDeposit = 8; double buyerSecurityDeposit = 8;
uint64 triggerPrice = 9; uint64 triggerPrice = 9 [jstype = JS_STRING];
string paymentAccountId = 10; string paymentAccountId = 10;
string makerFeeCurrencyCode = 11; string makerFeeCurrencyCode = 11;
} }
@ -606,10 +606,10 @@ message BtcBalanceInfo {
} }
message XmrBalanceInfo { message XmrBalanceInfo {
uint64 unlockedBalance = 1; uint64 unlockedBalance = 1 [jstype = JS_STRING];
uint64 lockedBalance = 2; uint64 lockedBalance = 2 [jstype = JS_STRING];
uint64 reservedOfferBalance = 3; uint64 reservedOfferBalance = 3 [jstype = JS_STRING];
uint64 reservedTradeBalance = 4; uint64 reservedTradeBalance = 4 [jstype = JS_STRING];
} }
message AddressBalanceInfo { message AddressBalanceInfo {

View file

@ -2361,7 +2361,7 @@ message BlockChainExplorer {
message PaymentAccount { message PaymentAccount {
string id = 1; string id = 1;
int64 creation_date = 2; int64 creation_date = 2 [jstype = JS_STRING];
PaymentMethod payment_method = 3; PaymentMethod payment_method = 3;
string account_name = 4; string account_name = 4;
repeated TradeCurrency trade_currencies = 5; repeated TradeCurrency trade_currencies = 5;
@ -2371,8 +2371,8 @@ message PaymentAccount {
message PaymentMethod { message PaymentMethod {
string id = 1; string id = 1;
int64 max_trade_period = 2; int64 max_trade_period = 2 [jstype = JS_STRING];
int64 max_trade_limit = 3; int64 max_trade_limit = 3 [jstype = JS_STRING];
} }
// Currency // Currency