<stellar-slack1>
<sacarlson> on the server side mss-server doesn't care if it's a number or a string it looks in both when "memo" is searched.
<stellar-slack1>
<dzham> Doesn’t the SDM keep track of memotype? It’s in the XDR
<stellar-slack1>
<sacarlson> I'm not sure. I should take out that code and see if it does the same
<stellar-slack1>
<sacarlson> it seems you have a choice in sdk StellarSdk.Memo.text(memo.value) or StellarSdk.Memo.id(memo.value) maybe there is another way?
<stellar-slack1>
<sacarlson> with the small added code it decides for you
<stellar-slack1>
<sacarlson> on the send client side
koolhead17 has quit [Remote host closed the connection]
TheSeven has quit [Ping timeout: 264 seconds]
TheSeven has joined #stellar-dev
koolhead17 has joined #stellar-dev
koolhead17 has quit [Ping timeout: 240 seconds]
<stellar-slack1>
<dzham> does ‘manage_offer' ever create any effects other than ‘trade’?
<stellar-slack1>
<sacarlson> it sits doing nothing if it doesn't hit a price target
<stellar-slack1>
<sacarlson> other than that I can't think of any
<stellar-slack1>
<dzham> But looking at the db there are tonnes of offers posted
<stellar-slack1>
<dzham> but I can’t find the effects for that
<stellar-slack1>
<sacarlson> looking at transactions?
<stellar-slack1>
<dzham> yeah,, well `/effects`
<stellar-slack1>
<sacarlson> a change does take place in lastmodified if an order strike price is changed
<stellar-slack1>
<dzham> Oh, in Horizon, I mean
<stellar-slack1>
<sacarlson> oh ok I us mss-server to get results
koolhead17 has joined #stellar-dev
<stellar-slack1>
<dzham> Oh, man, this is f-ed up. If I find a ‘trade’-effect and look at it’s operation to find the OTHER effects that operation had, there are nothing but ‘trade'
<stellar-slack1>
<dzham> no “offer removed” or “offer updated"
<stellar-slack1>
<dzham> @jed: ^^^
<stellar-slack1>
<sacarlson> what is your final goal of result?
<stellar-slack1>
<dzham> tracking the effects are the easiest way to have a nice “transaction” history
<stellar-slack1>
<dzham> … in a wallet
<stellar-slack1>
<sacarlson> oh IC, ya I have no method to look at transaction history yet ether. only thing I have is {"action":"get_markt_price", "sell_asset":"BBB","sell_amount":4,"buy_asset":"AAA"}
<stellar-slack1>
<sacarlson> I might be able to create a search for trades that took place from the stellar-core db
<stellar-slack1>
<jed> dzham: can you make an issue in horizon
<stellar-slack1>
<dzham> jed, I will, just looking around a little first to make sure I’m not making things up
<stellar-slack1>
<sacarlson> done added this function in mss-server {"action":"get_tx_offer_hist"}
<stellar-slack1>
<sacarlson> In a few minuts I'll add these filters {"action":"get_tx_offer_hist", "sell_asset":"BBB","buy_asset":"AAA"}
koolhead17 has quit [Remote host closed the connection]
<stellar-slack1>
<sacarlson> I've added filters for both sell and buy assets and issuers of each example: {"action":"get_tx_offer_hist","sell_asset":"BBB","sell_issuer":"GAX4CUJEOUA27MDHTLSQCFRGQPEXCC6GMO2P2TZCG7IEBZIEGPOD6HKF"}. I'm going to add one more filter to return only open or closed offers
koolhead17 has joined #stellar-dev
koolhead17 has quit [Changing host]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
pixelbeat has joined #stellar-dev
ggherdov` has quit [Ping timeout: 240 seconds]
stellar-slack1 has quit [Ping timeout: 240 seconds]
ggherdov` has joined #stellar-dev
stellar-slack has joined #stellar-dev
<stellar-slack>
<sacarlson> I'm sure it's not 100% solution but it should work until the server side is fixed by the gateways
<stellar-slack>
<sacarlson> it also seems to just do an int if you send 1.234 you get "memo_id","memo_id":1,"memo_value":"1"
<stellar-slack>
<sacarlson> but I assume that the gateway won't send you anything but an int or a string
<stellar-slack>
<sacarlson> @bartek so from reading you link you think this is a better solution using Number.isNaN("37"); ?
<stellar-slack>
<sacarlson> I tried using Number.isNaN but it fails when string is "abcd" as it still thinks that is a number so maybe neather would work
<stellar-slack>
<powderfan> I would definately urge gateways to look at both text_memo *and* id_memo. As a wallet developer I can say: 1. I can only send id *or* text 2. as discussed above it is hard to tell, when to use which one 3. I definately want to bother my users with this decision 4. This results in centaurus always sending text
<stellar-slack>
<dzham> why did people start using text tags?
<stellar-slack>
<powderfan> Or is it, that a destination account can specify, which type of memo it preferes to receive? Than I could imagine to make a switch in my wallet to send an id (and restrict input to integer) as soon as the destination address is specified
<stellar-slack>
<powderfan> If you don't send to a gatway but to a friend, text memos are just nicer
<stellar-slack>
<powderfan> I know that kraken accepts both text *or* id
<stellar-slack>
<bartek> I don't think there is a function that checks if a value is an integer (also in string) in js. You'd probably need to use regexp.
koolhead17 has joined #stellar-dev
pixelbeat has quit [Ping timeout: 272 seconds]
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
stellar-slack has quit [Remote host closed the connection]
stellar-slack has joined #stellar-dev
<stellar-slack>
<sacarlson> as shown @bartek my present method works between the two different gateways. if you show me a third gatway the my method dosen't work then we will make a new one
<stellar-slack>
<sacarlson> but like powderfan states the gateways should accept both text of int id
<stellar-slack>
<sacarlson> @dzham: text tags can be conveted to int or float or stay strings, but int is not easy to convert the other way. way would you want to be using int?
<stellar-slack>
<jed> it is nicer to the network
<stellar-slack>
<sacarlson> why?
<stellar-slack>
<sacarlson> why not both?
<stellar-slack>
<sacarlson> if you didn't want to use strings why did you add them to the network?
<stellar-slack>
<sacarlson> mss-server can't tell the difference
koolhead17 has joined #stellar-dev
bit2017 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
bit2017 has quit [Ping timeout: 272 seconds]
pixelbeat has joined #stellar-dev
stellar-slack1 has joined #stellar-dev
stellar-slack has quit [Ping timeout: 256 seconds]
pixelbeat has quit [Ping timeout: 256 seconds]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Changing host]
koolhead17 has joined #stellar-dev
_whitelogger has joined #stellar-dev
koolhead_ has joined #stellar-dev
jbenet_ has joined #stellar-dev
dobson` has joined #stellar-dev
koolhead17 has quit [Ping timeout: 250 seconds]
robins has joined #stellar-dev
ggherdov` has quit [*.net *.split]
jbenet has quit [*.net *.split]
sdehaan has quit [*.net *.split]
etrepum has quit [*.net *.split]
moo-_- has quit [*.net *.split]
_whitelogger_ has quit [*.net *.split]
dobson has quit [*.net *.split]
robinsmidsrod has quit [*.net *.split]
sdehaan__ is now known as sdehaan
etrepum_ is now known as etrepum
jbenet_ is now known as jbenet
moo-_- has joined #stellar-dev
pixelbeat has quit [Ping timeout: 250 seconds]
ggherdov`_ has joined #stellar-dev
pixelbeat has joined #stellar-dev
pixelbeat has quit [Ping timeout: 240 seconds]
pixelbeat has joined #stellar-dev
koolhead_ has quit [Remote host closed the connection]
pixelbeat has quit [Ping timeout: 272 seconds]
Kwelstr has quit [Ping timeout: 260 seconds]
Kwelstr has joined #stellar-dev
<stellar-slack1>
<bartek> Memo.id takes less space
AhmedElGamil is now known as DigitalFlux
robins is now known as robinsmidsrod
<stellar-slack1>
<p41n3st> Hello guys. Ahm, i have a question. How can i compile stellar? I try at VS on windows 7 and it throw error. If someone can help me i would be grateful
<stellar-slack1>
<sacarlson> you might add what error message you see and at what point