Logged Conversation (all times UTC)
[03:23] <stellar-slack> sacarlson
[03:23] <stellar-slack> Hi
[03:23] <stellar-slack> I tried static_path_find
[03:24] <stellar-slack> following are the info
[03:24] <stellar-slack> issuer_account = "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE" From Account = set_account("gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA") Destination Account = stellar.set_destination("gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE")
[03:24] <stellar-slack> so the result I got was
[03:24] <sacarlson> I also wrote a test for static_path_find and published it
[03:24] <stellar-slack> source to send 1.4444444 to receive 1
[03:25] <sacarlson> ya that sounds correct
[03:25] <sacarlson> so that's the price you get with that volume of an order that's on the books
[03:26] <sacarlson> oh your destination account is the issuer
[03:26] <sacarlson> normaly you send it to someone
[03:26] <stellar-slack> yes
[03:26] <sacarlson> or maybe I don't understand the destination value
[03:27] <stellar-slack> before that
[03:27] <stellar-slack> one simple querry
[03:27] <sacarlson> I don't see the amount value
[03:28] <stellar-slack> can you run this?
[03:28] <stellar-slack> !/usr/bin/ruby require 'yaml' require './class_payment' issuer_account = "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE" stellar = Payment.new # my test account gHVS... that has trust and ballances on issuer gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE # in static_path_find account is used for source_account stellar.set_account("gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA") #gBuY... is meetreks users account we will play w
[03:28] <stellar-slack> trust from issuer gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE # and will use it as our destination address here stellar.set_destination("gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE") stellar.set_issuer(issuer_account) stellar.set_currency("USD") stellar.set_value(1) results = stellar.static_path_find puts "#{results}"
[03:28] <stellar-slack> I just checked your source
[03:29] <sacarlson> what is that?
[03:29] <stellar-slack> can you execute and see if you are getting an exchange value?
[03:29] <sacarlson> I should see the same thing as you
[03:30] <stellar-slack> yes
[03:31] <sacarlson> did you see this https://github.com/sacarlson/pokerth_accounting/blob/master/static_path_find.rb
[03:31] <sacarlson> {"result"=>{"alternatives"=>[{"paths_computed"=>[[{"account"=>"gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE", "type"=>1}]], "source_amount"=>{"currency"=>"USD", "issuer"=>"gHVS8kkZVfhUcbv11hpRVGMB7r8gEwhzKm", "value"=>"1"}}], "destination_account"=>"gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA", "destination_currencies"=>["GPB", "JPN", "USD", "AUS", "EUR", "CHP", "STR"], "status"=>"success"}}
[03:31] <stellar-slack> Yes I did
[03:32] <stellar-slack> but
[03:32] <sacarlson> so I"m not sure how to read those results
[03:32] <sacarlson> other than value 1
[03:32] <stellar-slack> Can you try the one I sent
[03:32] <stellar-slack> then we can discuss
[03:32] <stellar-slack> please
[03:33] <sacarlson> if I put in a large amount like 100000 as amount I get no results as there are no open orders for that ammount
[03:33] <stellar-slack> Yes
[03:33] <stellar-slack> thats correct
[03:34] <sacarlson> again I don't think you want the destination to be the issuer or am I wrong?
[03:34] <sacarlson> I don't know what values you want me to try
[03:35] <sacarlson> but they should come out the same as yours
[03:35] <sacarlson> it doen't require secreet to view the results
[03:36] <stellar-slack> yes
[03:36] <stellar-slack> no secret is required
[03:39] <sacarlson> did you look at the book orders?
[03:40] <sacarlson> did you setup any orders?
[03:41] <sacarlson> {"result"=>{"ledger_current_index"=>1020514, "offers"=>[{"Account"=>"gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA", "Sequence"=>10, "TakerGets"=>{"currency"=>"EUR", "issuer"=>"gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE", "value"=>"100"}, "TakerPays"=>{"currency"=>"USD", "issuer"=>"gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE", "value"=>"140"}, "quality"=>"1.4"}], "status"=>"success"}}
[03:42] <sacarlson> so this is the order you now have on the books
[03:44] <sacarlson> {"result"=>{"ledger_current_index"=>1020514, "offers"=>[{"Account"=>"gHVS8kkZVfhUcbv11hpRVGMB7r8gEwhzKm", "Sequence"=>16, "TakerGets"=>{"currency"=>"USD", "issuer"=>"gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE", "value"=>"90"}, "TakerPays"=>{"currency"=>"EUR", "issuer"=>"gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE", "value"=>"130"}, "quality"=>"1.444444444444444"}, {"Account"=>"gHVS8kkZVfhUcbv11hpRVGMB7r8gEwhzKm", "Sequence"=>18, "TakerGets
[03:44] <sacarlson> these are the orders I now have setup on my account
[03:50] <sacarlson> so I guess all the static_path_find is telling us is there is liquidity for that order and at this time it only requires one account "gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA" it seems to get the price you have to look at the book offers from that account
[03:57] <stellar-slack> Yes
[03:57] <stellar-slack> thats what we are supposed to get
[03:57] <stellar-slack> now
[03:57] <stellar-slack> if we say
[03:57] <stellar-slack> set up 6 orders
[03:57] <stellar-slack> then I expect 6 paths to be returned
[03:57] <stellar-slack> also
[03:57] <sacarlson> ok setup 6 orders and find out
[03:57] <stellar-slack> the orders can in in other currencies as well
[03:58] <stellar-slack> for ex
[03:58] <stellar-slack> A demands B
[03:58] <sacarlson> yes the chain I explained before
[03:58] <stellar-slack> Yes
[04:00] <stellar-slack> will set up different orders and I will try again
[04:07] <sacarlson> so A wants EUR to USD B wants USD to JPN C wants JPN to AUS D wants AUS to USD, I would assume that would create a chain event
[04:07] <sacarlson> I guess to be simple you could just setup 1 to 1 trades for each
[05:19] <sacarlson> meetreks seems our issuer account has run out of STR and I can't seem to refill it as I get this error tefDST_TAG_NEEDED" not sure what this is
[05:20] <sacarlson> this didn't seem to help https://ripplelabs.atlassian.net/browse/RIPD-574
[05:27] <sacarlson> "Destination tag required." is the error but I do have a destination address so not sure what it wants
[06:01] <sacarlson> {"result"=>{"engine_result"=>"tefDST_TAG_NEEDED", "engine_result_code"=>-190, "engine_result_message"=>"Destination tag required.", "status"=>"success", "tx_blob"=>"12000022800000002400000001614000000039D1068068400000000000000A7320E19267EFE79689788EF51292E3313E6A7EE246AD78B3DB4D873026EECD310D29744017A493878E98CD7E842D7B9934B79A88C7115FA826A6E93DCD037030221F6945B87CADFFC0DE2E18E494E1474DA94A74DBD982E6D5C419F49242B6906E4B1B0
[06:01] <sacarlson> no clue
[12:39] <Kwelstr> sacarlson, a destination tag is different than an address, as in: a gateway can have one address and each of their customers will have a different destination tag to send funds into the gateway's address
[12:41] <sacarlson> kwelstr I'm not sure how this tag got set and how it is that I can deposit STR into the account because of it
[12:44] <sacarlson> as I am not the only human with this accounts number and secreet key, I have to assume one of the other holders may have changed the destination tag address making it imposible to deposit STR?
[12:45] <sacarlson> is there a way to list these tag numbers?
[12:47] <sacarlson> I would also like to add that I just tested my software on live.stellar.org and it's working there just the same as it has on test.stellar.org
[12:47] <stellar-slack> you can deposit with a random DT IMO
[12:48] <sacarlson> eno oh ok so how do I add this random tag? just add it to the address string?
[12:49] <stellar-slack> There is a flag that if enabled the issuer can't receiving deposit without DT in ripple ,so maybe it's similar in stellard
[12:50] <sacarlson> eno yes that sounds like a posibility but I haven't found the documents to correct it
[12:52] <stellar-slack> @sacarlson @eno you’re looking for this: https://www.stellar.org/api/#api-accountset SetFlag 1- Require Destination tag flag. This flag is a hint to the client that this account only wants transactions with a destination tag.
[12:52] <sacarlson> bartek perfect that sounds like we have a solution then
[12:54] <stellar-slack> yes you're the best @bartek
[12:55] <sacarlson> bummer my ruby lib isn't setup to support this part of the api so I'll have to use curl
[12:57] <sacarlson> so this looks like the flag that can also be used to freeze accounts from the issuer I think
[12:58] <sacarlson> I saw this feature was added on Ripple and I guess used to freeze the assets of someone
[13:17] <sacarlson> I found the other solution worked to add a random number to destination tag in a payment transaction
[13:17] <sacarlson> I don't know how the setting was changed but that works
About StellarVerse IRC Logger
StellarValue IRC Logger
is part of