lessismore has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pixelbeat has quit [Ping timeout: 256 seconds]
DomKM has joined #stellar-dev
stellar-slack has quit [Remote host closed the connection]
stellar-slack has joined #stellar-dev
mozzadrella has joined #stellar-dev
mozzadrella has quit [Client Quit]
de_henne_ has joined #stellar-dev
de_henne has quit [Ping timeout: 264 seconds]
sv-logger has quit [Remote host closed the connection]
sv-logger has joined #stellar-dev
DomKM has quit [Quit: Connection closed for inactivity]
<stellar-slack> <meetreks> sacarlson
<stellar-slack> <meetreks> Hi
<stellar-slack> <meetreks> I tried static_path_find
<stellar-slack> <meetreks> following are the info
<stellar-slack> <meetreks> issuer_account = "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE" From Account = set_account("gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA") Destination Account = stellar.set_destination("gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE")
<stellar-slack> <meetreks> so the result I got was
<sacarlson> I also wrote a test for static_path_find and published it
<stellar-slack> <meetreks> source to send 1.4444444 to receive 1
<sacarlson> ya that sounds correct
<sacarlson> so that's the price you get with that volume of an order that's on the books
<sacarlson> oh your destination account is the issuer
<sacarlson> normaly you send it to someone
<stellar-slack> <meetreks> yes
<sacarlson> or maybe I don't understand the destination value
<stellar-slack> <meetreks> before that
<stellar-slack> <meetreks> one simple querry
<sacarlson> I don't see the amount value
<stellar-slack> <meetreks> can you run this?
<stellar-slack> <meetreks> !/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
<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}"
TheSeven has quit [Ping timeout: 246 seconds]
<stellar-slack> <meetreks> I just checked your source
<sacarlson> what is that?
<stellar-slack> <meetreks> can you execute and see if you are getting an exchange value?
<sacarlson> I should see the same thing as you
TheSeven has joined #stellar-dev
<stellar-slack> <meetreks> yes
<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"}}
<stellar-slack> <meetreks> Yes I did
<stellar-slack> <meetreks> but
<sacarlson> so I"m not sure how to read those results
<sacarlson> other than value 1
<stellar-slack> <meetreks> Can you try the one I sent
<stellar-slack> <meetreks> then we can discuss
<stellar-slack> <meetreks> please
<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
<stellar-slack> <meetreks> Yes
<stellar-slack> <meetreks> thats correct
<sacarlson> again I don't think you want the destination to be the issuer or am I wrong?
<sacarlson> I don't know what values you want me to try
<sacarlson> but they should come out the same as yours
<sacarlson> it doen't require secreet to view the results
<stellar-slack> <meetreks> yes
<stellar-slack> <meetreks> no secret is required
<sacarlson> did you look at the book orders?
<sacarlson> did you setup any orders?
<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"}}
<sacarlson> so this is the order you now have on the books
<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
<sacarlson> these are the orders I now have setup on my account
koolhead17 has joined #stellar-dev
<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
koolhead17 has quit []
<stellar-slack> <meetreks> Yes
<stellar-slack> <meetreks> thats what we are supposed to get
<stellar-slack> <meetreks> now
<stellar-slack> <meetreks> if we say
<stellar-slack> <meetreks> set up 6 orders
<stellar-slack> <meetreks> then I expect 6 paths to be returned
<stellar-slack> <meetreks> also
<sacarlson> ok setup 6 orders and find out
<stellar-slack> <meetreks> the orders can in in other currencies as well
<stellar-slack> <meetreks> for ex
<stellar-slack> <meetreks> A demands B
<sacarlson> yes the chain I explained before
<stellar-slack> <meetreks> Yes
<stellar-slack> <meetreks> will set up different orders and I will try again
<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
<sacarlson> I guess to be simple you could just setup 1 to 1 trades for each
de_henne_ has quit [Remote host closed the connection]
de_henne has joined #stellar-dev
<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
<sacarlson> this didn't seem to help https://ripplelabs.atlassian.net/browse/RIPD-574
<sacarlson> "Destination tag required." is the error but I do have a destination address so not sure what it wants
<sacarlson> {"result"=>{"engine_result"=>"tefDST_TAG_NEEDED", "engine_result_code"=>-190, "engine_result_message"=>"Destination tag required.", "status"=>"success", "tx_blob"=>"12000022800000002400000001614000000039D1068068400000000000000A7320E19267EFE79689788EF51292E3313E6A7EE246AD78B3DB4D873026EECD310D29744017A493878E98CD7E842D7B9934B79A88C7115FA826A6E93DCD037030221F6945B87CADFFC0DE2E18E494E1474DA94A74DBD982E6D5C419F49242B6906E4B1B0
<sacarlson> no clue
sacarlson has left #stellar-dev [#stellar-dev]
sacarlson has joined #stellar-dev
pixelbeat has joined #stellar-dev
sacarlson has quit [Quit: Leaving.]
sacarlson has joined #stellar-dev
<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
<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
<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?
<sacarlson> is there a way to list these tag numbers?
<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
<stellar-slack> <eno> you can deposit with a random DT IMO
<sacarlson> eno oh ok so how do I add this random tag? just add it to the address string?
<stellar-slack> <eno> There is a flag that if enabled the issuer can't receiving deposit without DT in ripple ,so maybe it's similar in stellard
<sacarlson> eno yes that sounds like a posibility but I haven't found the documents to correct it
<stellar-slack> <bartek> @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.
<sacarlson> bartek perfect that sounds like we have a solution then
<stellar-slack> <eno> yes you're the best @bartek
<sacarlson> bummer my ruby lib isn't setup to support this part of the api so I'll have to use curl
<sacarlson> so this looks like the flag that can also be used to freeze accounts from the issuer I think
<sacarlson> I saw this feature was added on Ripple and I guess used to freeze the assets of someone
testfewj has joined #stellar-dev
testfewj has quit [Quit: Page closed]
<sacarlson> I found the other solution worked to add a random number to destination tag in a payment transaction
<sacarlson> I don't know how the setting was changed but that works
TheSeven has quit [Ping timeout: 256 seconds]
TheSeven has joined #stellar-dev
<stellar-slack> <priyav_shah> Hey, was looking for some advice. I'm currently working on university project
<sacarlson> and? so what is the question? just ask
<stellar-slack> <priyav_shah> sorry ended up half typing up question and pressed enter, and then editted
<stellar-slack> <priyav_shah> Or would it be ok to use inactive stellar-lib and stellard?
<stellar-slack> <priyav_shah> just for 2 months, would ideally like to b eable to keep working on this after university anyways
<sacarlson> ??? or
<sacarlson> very cryptic
<stellar-slack> <scott> @priyav_shah: Given a 2 month timeline, I personally wouldn’t build your project on top of the new stellar core
<stellar-slack> <scott> Whether you choose ripple or the legacy stellard is up to you. either way significant work would be needed if you wanted to move to the new stellar system in the future
<sacarlson> <scott> how difficult would it be to port from old to new? can't we build a bridge lib
<stellar-slack> <naumenkogs> Do u have any idea about why I get 0 peers while connecting to core-testnet using Validators from https://www.stellar.org/galaxy/getting-started? I've waited for years and got "Lost consensus".
<stellar-slack> <jed> naumenkogs: testnet is on an old version. We are reving it to master shortly
<stellar-slack> <priyav_shah> @scott: yea that helps actually. makes me sad not to be using stellar, but guess can do so after :)
<stellar-slack> <jed> I'd build on stellar-core fwiw :)
zipperhead has joined #stellar-dev
<sacarlson> I guess focus is on the server side interface not on the api side for client side apps?
<stellar-slack> <priyav_shah> haha, I was thinking about it jed, but makes me a bit too nervous :scream_cat:
<stellar-slack> <eva> @priyav_shah: what's your project? :)
<stellar-slack> <scott> sacarlson: while the concepts are very similar between the old and the new, there’s enough difference that migration won’t be trivial.
<sacarlson> I have to assume they will have the basic features of the old but a superset, I haven't looked at differences other than different length account strings
<sacarlson> so a simple payment api bride must be posible
<stellar-slack> <priyav_shah> The idea is to try to find a way to allow for people without a bank account to be able to buy stuff online. I like the idea of stellar and issuances, because then people can also transfer money between themselves, or even abroad. Was gonna connect it up to paypal, so they would send money to me in stellar, and i'd set up a way to send money into paypal account that they had/have/gets created when they s
<stellar-slack> <priyav_shah> send money to me or gateway
<stellar-slack> <priyav_shah> my* gateway
<stellar-slack> <eva> that's an awesome concept, and very much in line with Stellar's ethos, IMO.
<stellar-slack> <eva> in terms of financial inclusion (economic access for the 2 billion unbanked people worldwide)
<stellar-slack> <priyav_shah> Thanks eva :)
<stellar-slack> <eva> :thumbsup::skin-tone-2: whatever you decide to use, I'm sure folks here would be happy to help if you run into snags :)
<stellar-slack> <jed> ok testnet is on the latest master
<stellar-slack> <jed> horizon is down till it gets updated to deal with the latest changes in stellar-core
<sacarlson> <jed> testnet seems to be still working
<sacarlson> still have my original accounts
zipperhead has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sacarlson1 has joined #stellar-dev
sacarlson has quit [Ping timeout: 256 seconds]
<stellar-slack> <scott> it’s lying to you, and showing the old ledger. Horizon doesn’t yet have a system in place that detects when the stellar network has it’s history replaced from underneath, as it will only really happen during the lead up to launch.
<stellar-slack> <eno> i think sacarlson is talking about http://test.stellar.org|test.stellar.org
<stellar-slack> <naumenkogs> In this case what I should use instead of testnet? Do I have any possibility to connect to stellar network? Or I should just wait until the new version will be released?
<stellar-slack> <scott> Oh, i’m sorry. the legacy testnet on http://test.stellar.org|test.stellar.org is still running… I was referring to the stellar-core testnet that jed was referring to.
<stellar-slack> <jed> naumenkogs: you are trying to use the new network right?
pixelbeat has quit [Ping timeout: 256 seconds]
<stellar-slack> <naumenkogs> I'm trying to launch stellar-core and connect to stellar-network via it (not stellard)
<stellar-slack> <jed> it should work now
<stellar-slack> <jed> is it not?
<stellar-slack> <naumenkogs> Let me check it
<stellar-slack> <naumenkogs> It didnt work 3 hours ago. Has something changed?
<stellar-slack> <naumenkogs> Maybe the mistake is in my config but I cant figure out where exactly so I wonder if the problem is in testnet or validator address or my config
<stellar-slack> <jed> yeah I moved the testnet to master
<stellar-slack> <jed> it should work now
<stellar-slack> <jed> it was out of date when you tried before
<stellar-slack> <naumenkogs> I'll check it in 5 mins
<stellar-slack> <naumenkogs> Everything seems to be fine except one warn
<stellar-slack> <naumenkogs> [History] WARN failed to get history/00/00/05/history-000005bf.json from history archive 'vs'
<stellar-slack> <naumenkogs> But thank you anyway. Does it mean anytime I need to launch stellar-core I should ask you to move testnet to master?
<stellar-slack> <naumenkogs> Or maybe give me a link how to launch non-test version if it is possible.
<stellar-slack> <jed> no in general you should always be able to connect. We just had some protocol churn that never made it onto the testnet until today
graydon has joined #stellar-dev
stellar-slack1 has joined #stellar-dev
stellar-slack has quit [Ping timeout: 252 seconds]
graydon has quit [Quit: Leaving.]
pixelbeat has joined #stellar-dev
graydon has joined #stellar-dev
pixelbeat has quit [Ping timeout: 256 seconds]