<stellar-slack>
<sacarlson> then I assume addr2 is the issuer of this USD? as far as I know there is no kept record of issuer debt
Anduck has joined #stellar-dev
<stellar-slack>
<sacarlson> oh yes that is what I would expect then
<stellar-slack>
<jojopoper> Addr2 should also has field "USD=-10" in balance?
sdehaan_ has quit [Ping timeout: 448 seconds]
proppy has quit [Ping timeout: 448 seconds]
<stellar-slack>
<jojopoper> I expect then
<stellar-slack>
<sacarlson> ya you would think but I don't think that is the case. I think there is talk of keeping record of this
<stellar-slack>
<jojopoper> ,:(
<stellar-slack>
<sacarlson> that does make sense and I could be wrong
proppy has joined #stellar-dev
<stellar-slack>
<jojopoper> I think it should be in the query, provide this field.
sdehaan_ has joined #stellar-dev
<stellar-slack>
<sacarlson> I guess to keep the value of +10 and -10 would just be keeping redundant data in the database as the value is already held on the holder side
<stellar-slack>
<sacarlson> I guess I could devise a database query to determine the debt from the data already contained in stellar-core db
<stellar-slack>
<sacarlson> all you need do is search an asset on an issuer and total it in an sql search
<stellar-slack>
<sacarlson> I could write it in about 10 min and add t to the mss-server
<stellar-slack>
<sacarlson> {action:total_issued_asset, "issuer": "GXTYDH....", "asset":"USD"} maybe like that?
<stellar-slack>
<jojopoper> I just wanted to be able to fast and simple queries to an address all balance information. For what kind of format did not ask.
<stellar-slack>
<sacarlson> to get the debt balance owed to a single account you just look up the balance on that holder to look at his balance and put a negitive in front of it.
<stellar-slack>
<sacarlson> to look at all assets issued and the total of each? then just drop the asset field above
<stellar-slack>
<sacarlson> {"action":"total_issuer_assets", "issuer": GXTYDH..." } will return an array of issued debit and total of each
<stellar-slack>
<jojopoper> like this, but balance is negative.
<stellar-slack>
<sacarlson> {"debits":[{"asset":"USD", "debit":10000},{"asset":"YEN", "debit":200}]} maybe like that
<stellar-slack>
<sacarlson> ya I think they could modify that to include issued debt also
<stellar-slack>
<sacarlson> but for me to create it I think it would be better to just focus on what missing
<stellar-slack>
<jojopoper> your format is best!
<stellar-slack>
<sacarlson> wow thanks
<stellar-slack>
<sacarlson> but that is starting to look like 2 days of codeing
gst has quit [Remote host closed the connection]
bit2017 has joined #stellar-dev
<stellar-slack>
<sacarlson> so you sure that's the way you want it jojopoper ? otherwise what I wrote above will be what I create, estimated completion maybe 5 hours
nivah has quit [Ping timeout: 272 seconds]
<stellar-slack>
<sacarlson> as I feel this is a needed tool that should exist it shall be done
de_henne has quit [Remote host closed the connection]
bit2017 has quit [Max SendQ exceeded]
de_henne has joined #stellar-dev
<stellar-slack>
<jojopoper> I can wait, I just think we should offer this way.
<stellar-slack>
<jojopoper> I can wait, I just think the official should be provided in this way.
<stellar-slack>
<sacarlson> remind you this will be a mss-server feature not a horizon branch
<stellar-slack>
<jojopoper> :)
<stellar-slack>
<sacarlson> I think stellar will also add it at some point, I think I've already heard the chat about it
<stellar-slack>
<regisg27> no need to use call() I guess
<stellar-slack>
<regisg27> With StellarSdk, server.accounts(address).then(function (accountResult) {res.send(accountResult.balances);}) works fine
Anduck has quit [Ping timeout: 240 seconds]
Anduck has joined #stellar-dev
pixelbeat has joined #stellar-dev
<stellar-slack>
<powderfan> @regisg27: I did not know this, thx. However I don't think this is the problem. I think I've created a race condition somehow, which I have to fix. However I'm interested in the stellar-sdk behaviour that produces the above error. It differs from usual "account not found" and is also not a simple network connection issue. Must be something else
de_henne has quit [Remote host closed the connection]
de_henne has joined #stellar-dev
Anduck has quit [Ping timeout: 240 seconds]
Anduck has joined #stellar-dev
Anduck has quit [Ping timeout: 240 seconds]
Anduck has joined #stellar-dev
Anduck has quit [Ping timeout: 240 seconds]
Anduck has joined #stellar-dev
proppy has quit [Ping timeout: 240 seconds]
ggherdov` has quit [Ping timeout: 240 seconds]
etrepum has quit [Ping timeout: 240 seconds]
dch has quit [Ping timeout: 240 seconds]
olinkl has quit [Ping timeout: 240 seconds]
olinkl has joined #stellar-dev
etrepum has joined #stellar-dev
proppy has joined #stellar-dev
dch has joined #stellar-dev
ggherdov` has joined #stellar-dev
<stellar-slack>
<sacarlson> jojopoper: I now have the prototype working of the action 'get_issuer_debt' in my mss-server, just have to document it
<stellar-slack>
<ripplefox> http://horizon.stellar.org|horizon.stellar.org seems down. cannot send or fund
<stellar-slack>
<raymens> Using the `test.x` file from the xdrgen fixtures: ```csharp Color c1 = new Color(); c1.Value = Color.ColorEnum.GREEN; var writer = new ByteWriter(); Color.encode(writer, c1); var buffer = writer.ToArray(); var reader = new ByteReader(buffer); var c2 = Color.decode(reader); Console.WriteLine(c1.Value == c2.Va
<stellar-slack>
<jed> ripplefox: the importer crashed. fixing it now
<stellar-slack>
<scott> importer is fixed, http://horizon.stellar.org|horizon.stellar.org will be caught up in a minute or two.
gst has joined #stellar-dev
gst has joined #stellar-dev
<stellar-slack>
<raymens> Generated C# files using the Stellar XDR files. It's valid C# code but untested
<stellar-slack>
<scott> thats pretty sweet raymens. I’m excited to test it out
<stellar-slack>
<raymens> Still a bunch of improvements and tests to do, but it's a start :)
<stellar-slack>
<scott> Someone should build a client as a universal app
<stellar-slack>
<raymens> The Apache Cordova someone is working on should be deployable as an universal app IIRC
<stellar-slack>
<raymens> Not the same as a native one though :)
<stellar-slack>
<bartek> @powderfan: can you try to check what's the actual network request sent to horizon? and is it still happening? there were some horizon issues earlier today.