pixelbeat_ has joined #stellar-dev
sacarlson1 has quit [Quit: Leaving.]
sacarlson has joined #stellar-dev
<sacarlson> yes I'm also interested in mulisig. I've read what I can find on it so far but no real examples of the process from sign to release of funds
<sacarlson> I've writen documents on how it's done on bitcoin so I would be glad to also help document your method
<sacarlson> examples are the best method to start
<sacarlson> aren't there any published projects that already use the feature? if not I guess my pokerth_accounting will be the first to publish an example app using multisig
_whitelogger has quit [Ping timeout: 252 seconds]
_whitelogger has joined #stellar-dev
sv-logger has quit [Remote host closed the connection]
sv-logger has joined #stellar-dev
<stellar-slack> <meetreks> any links to cross border transactions?
<stellar-slack> <meetreks> Like if I have to set up from the scratch, how the set up would look like?
<sacarlson> like usd > eur ?
pixelbeat_ has quit [Ping timeout: 248 seconds]
TheSeven has quit [Ping timeout: 256 seconds]
TheSeven has joined #stellar-dev
_whitelogger has quit [Ping timeout: 252 seconds]
_whitelogger has joined #stellar-dev
pixelbeat_ has joined #stellar-dev
<stellar-slack> <meetreks> sacarlson, yes
<sacarlson> so you would have to have two accounts with the oposite currency ballances a has 10usd b has 10eur do have that?
<sacarlson> on an issuer they both have as trusted
<sacarlson> they would both setup orders to the oposite that would cross in price say even trade 10usd for 10eur to make it easy
<sacarlson> that's about it then A would have his eur and B would have his USD
<sacarlson> before you setup the orders they could have looked at the order book to see what bids are being asked to know what to set there order value to
<stellar-slack> <meetreks> like USD to EUR
<stellar-slack> <meetreks> So
<stellar-slack> <meetreks> Let us say
<stellar-slack> <meetreks> I have one account-A
<stellar-slack> <meetreks> and that has 100 dollars
<stellar-slack> <meetreks> and another account-B
<stellar-slack> <meetreks> and that account has 100 EUR
<stellar-slack> <meetreks> now all i want is transfer 10 dollars from A to B
<stellar-slack> <meetreks> the result would leave A with 90 dollars
<stellar-slack> <meetreks> the result with leave B with 109 EUR (aster conversion)
<stellar-slack> <meetreks> question is
<stellar-slack> <meetreks> how do I do this with a trusted entity such as an isuer
<stellar-slack> <meetreks> Let us say I have an issuer-C who both A & B trust
<stellar-slack> <meetreks> so A sends to Issuer who in turn sends this to B
pixelbeat_ has quit [Ping timeout: 255 seconds]
<sacarlson> meetreks no you don't send the issuer anything. the issuer is the one that sent you the original credit
<stellar-slack> <meetreks> The issuer - -is it with respect to the sender or the receiver
<sacarlson> example I setup the other day from_pair is the issuer the to_pair is you https://github.com/sacarlson/pokerth_accounting/blob/master/send_currency.rb
<stellar-slack> <meetreks> OK
<stellar-slack> <meetreks> so you send the fund_pair to the issuer and I get the funds from the issuer
<sacarlson> the to_pair when he has the credit from the issuer in this example from_pair he can now send or setup orders with that credit to your B
<sacarlson> no
<sacarlson> from_pair IS the issuer
<stellar-slack> <meetreks> OK, got it
<stellar-slack> <meetreks> just to reiterate
<stellar-slack> <meetreks> I am am sending a payment from my account to someones account
<stellar-slack> <meetreks> I first ask stellar the path
<stellar-slack> <meetreks> stellar returns the bets path
<stellar-slack> <meetreks> so I use the best path info
<stellar-slack> <meetreks> and from there who ever is my trusted entity
<stellar-slack> <meetreks> I initiate a payment from myself to the other party
<sacarlson> here is an example of sending native STR https://github.com/sacarlson/pokerth_accounting/blob/master/send_stellar.rb
<stellar-slack> <meetreks> can you validate the above sequence for me
<sacarlson> the path is only going to calculate the present price from the issuer you have chosen
<sacarlson> you can look at the books before you setup an order to decide what to ask or bid
<sacarlson> you then setup the order with the chosen issuer, if price of your bid is crossed your order will exicute
<stellar-slack> <meetreks> OK
<stellar-slack> <meetreks> I prefer to get the path before I issue the order
<sacarlson> path just provides you a look at the price
pixelbeat_ has joined #stellar-dev
<sacarlson> maybe the path your thinking of is chosing a differenc issurer
<sacarlson> different
<sacarlson> the value of an asset from one issuer may not be the same price of the same thing from another issuer
<sacarlson> and thanks bartek I'll take a look at those links you sent us
pixelbeat_ has quit [Ping timeout: 264 seconds]
<stellar-slack> <meetreks> Yes I am aware
<stellar-slack> <meetreks> but if the liquidity players are there in the market
<stellar-slack> <meetreks> I must get a better rate by calling path
<sacarlson> why don't you just setup two accounts with the script I sent you and setup trades between them to try it out
<sacarlson> I think you will find that path provides you that same info that looking at the booked orders only in a single value depending on how many orders it has to buy to get the volume needed
<sacarlson> when you look at the results I think you will get the idea
<sacarlson> or you could prove me wrong
<stellar-slack> <meetreks> Can you let me know how to execute your scripts
<stellar-slack> <meetreks> I use Node JS for mine
<sacarlson> it's ruby
<stellar-slack> <meetreks> so I go to ruby and execute that code?
<sacarlson> do you run on linux?
<stellar-slack> <meetreks> NO
<stellar-slack> <meetreks> Windows
<sacarlson> then I'm not sure, my code was developed on linux. ruby is cross platform but I've never run my code on windows
<stellar-slack> <meetreks> let me try ruby
<stellar-slack> <meetreks> you might have to guide me
<sacarlson> sure I would love to know if my code runs on windows since at some point I do plan to port it
<stellar-slack> <meetreks> OK
<stellar-slack> <meetreks> I am in ruby
<stellar-slack> <meetreks> what next
<sacarlson> then you will want to download my git
<stellar-slack> <meetreks> like npm install and the link?
<sacarlson> after you have the files uncompressed in a directory you will need to install some gem stuf
<stellar-slack> <meetreks> I have gems already
<sacarlson> that's the part I'm unsure of in windows
<sacarlson> oh ok
<stellar-slack> <meetreks> how do I run?
<sacarlson> so how would you get sqlite3 ruby-sqlite3 support?
<sacarlson> on linux we just sudo apt-get install ruby-full sqlite3 ruby-sqlite3
<stellar-slack> <meetreks> I have everything sacarlson
<stellar-slack> <meetreks> I now have your files uncompressed
<sacarlson> oh then gem install rest-client
<sacarlson> gem install json
<stellar-slack> <meetreks> I have Json
<stellar-slack> <meetreks> I have rest-client as well
<sacarlson> ok
<sacarlson> so we need to create some accounts
<stellar-slack> <meetreks> right
<stellar-slack> <meetreks> how do we do that?
<stellar-slack> <meetreks> use Stellar BOT itself
<sacarlson> well I guess if all the parts are installed you could just cd to the directory and run pokerth_accounting.rb
<sacarlson> that would auto create an account
<sacarlson> my software in theory would also fund the account for you
<stellar-slack> <meetreks> ok
<stellar-slack> <meetreks> let me try
<stellar-slack> <meetreks> just for saftey i tried json
<stellar-slack> <meetreks> it is taking a while
<stellar-slack> <meetreks> ok done
<sacarlson> you will also want a sqlite browser do they have one on windows?
<stellar-slack> <meetreks> Yes :)
<sacarlson> well I don't see account number sent to http://poker.surething.biz/ so something didn't work
<stellar-slack> <meetreks> Well
<stellar-slack> <meetreks> I ran it
<stellar-slack> <meetreks> it asked me to open your rb fil
<sacarlson> so any output on the console?
<stellar-slack> <meetreks> i chose IE
<stellar-slack> <meetreks> and i just gives me the full source code
<stellar-slack> <meetreks> nope
<stellar-slack> <meetreks> nothing on th console
<sacarlson> I would assume in a console you would type ruby ./pokerth_accounting.rb to get the interpreter to run it
<stellar-slack> <meetreks> in windows
<stellar-slack> <meetreks> it is ruby pokerth_accounting.rb
<sacarlson> in your command window
<stellar-slack> <meetreks> yes
<stellar-slack> <meetreks> now getting proper error
<sacarlson> you should see errors output if you don't have the gems installed
<stellar-slack> <meetreks> I have gems
<sacarlson> errors being what?
<stellar-slack> <meetreks> 'require' cannot load such file -- sys/proctable <Loaderror >
<sacarlson> gem install rest-client
<stellar-slack> <meetreks> I did
<stellar-slack> <meetreks> and it sucessfully installed
<sacarlson> ok we can comment out the sys/proctable we won't need it for what you want
<sacarlson> oh maybe we can install that too?
<stellar-slack> <meetreks> how
<stellar-slack> <meetreks> gem install ??
<sacarlson> gem install sys-proctable
<stellar-slack> <meetreks> ok got it
<sacarlson> ok
<stellar-slack> <meetreks> now
<sacarlson> ruby ./pokerth_accounting.rb and see what other error we see
<stellar-slack> <meetreks> modir: no such file or directory
<stellar-slack> <meetreks> C:/userrs/user2/ ...
<stellar-slack> <meetreks> ENOENT
<sacarlson> oh these paths won't work in windows ~/.pokerth/log-files/
<stellar-slack> <meetreks> so what whould I remove?
<sacarlson> so I would have to change them to something windows would use
<sacarlson> what was this C:/userrs/user2/ ?
<sacarlson> was that in the error ?
<stellar-slack> <meetreks> Yes
<stellar-slack> <meetreks> Guess
<stellar-slack> <meetreks> it is trying to log it in windows defautl
<sacarlson> so do those dir exist?
<sacarlson> I guess at this point you will have to pick a directory maybe a subdir of where you uncompressed it
<sacarlson> that you would have to create then modify the lines 12 and 13 to point at them
<sacarlson> another option is run everything on linux mint in a virtualbox running on your windows
<stellar-slack> <meetreks> guess gem install sqllite3
<stellar-slack> <meetreks> I changed the logs path
<stellar-slack> <meetreks> now I get SQL exception :)
<sacarlson> what line is that pointing at?
<sacarlson> you did install sqlite3?
<stellar-slack> <meetreks> just giving this now...to be usre
<stellar-slack> <meetreks> gem install sqlite3
<sacarlson> yes you will need that
<stellar-slack> <meetreks> very quickly it has done that
<stellar-slack> <meetreks> again
<stellar-slack> <meetreks> OK
<stellar-slack> <meetreks> I get these things
<stellar-slack> <meetreks> last log filename = accountlog.pdb
<stellar-slack> <meetreks> got here not exist
<stellar-slack> <meetreks> Exception occured in configs
<stellar-slack> <meetreks> no such table : Player
<stellar-slack> <meetreks> Guess it is an SQL exception
<stellar-slack> <meetreks> looking for table Player
<stellar-slack> <meetreks> but cant find the schema
<sacarlson> if it didn't exist it was supposed to create it
<stellar-slack> <meetreks> Hmm
<sacarlson> oh at this point it is looking for log files generated by pokerth
<stellar-slack> <meetreks> Yes
<stellar-slack> <meetreks> any suggestions
<sacarlson> well for the full package you could install pokerth there is a windows version but..
<sacarlson> you just want the tools so maybe they will already work
<stellar-slack> <meetreks> OK
<stellar-slack> <meetreks> send me that
<sacarlson> try run ruby check_account.rb
<stellar-slack> <meetreks> ok
<sacarlson> I think we won't need it for what you want
<sacarlson> we will just use the payment class at this point
<stellar-slack> <meetreks> That is running fine
<sacarlson> cool
<stellar-slack> <meetreks> I use nodejs
<sacarlson> so all we really need is an account number set then or 2
<stellar-slack> <meetreks> this rubs is so diffent
<stellar-slack> <meetreks> what is this ruby by the way?
<sacarlson> ruby it's just an interpreted object oriented language
<sacarlson> I prefer it's simplicity
<stellar-slack> <meetreks> does the same as node JS
<stellar-slack> <meetreks> node JS is also simple
<stellar-slack> <meetreks> can you send me a link to learn ruby?
<sacarlson> I guess they are all simple if you know them
<stellar-slack> <meetreks> :)
<stellar-slack> <meetreks> Yes
<sacarlson> the example code is the best
<stellar-slack> <meetreks> OK
<stellar-slack> <meetreks> will try and follow it
<stellar-slack> <meetreks> so now what is the step?
<sacarlson> so all we would have to do to get send_currency.rb to create your accounts would be to add your accounts numbers in the code
<stellar-slack> <meetreks> which code sacarlson
<stellar-slack> <meetreks> send_currency.rb?
<sacarlson> change the #from_pair = {"account"=>"gLan...","secret"=>"s3zD..."} and #to_pair = {"account"=>"gKzt...","secret"=>"sfyq..."}
<sacarlson> to your accounts
<sacarlson> yes that's what creates accounts with trust
<sacarlson> run it two times with a different to_pair the secound time and you will have two accounts with all the currencys
<sacarlson> you will also have to take out the # commented lines to enable them again
<stellar-slack> <meetreks> OK
<stellar-slack> <meetreks> for a start
<sacarlson> with those account you can then setup orders between them with your JS or other
<stellar-slack> <meetreks> can you share any accounts and keys
<sacarlson> don't you have any?
<sacarlson> you can get them from the faucet
<stellar-slack> <meetreks> link?
<sacarlson> https://www.stellar.org/ scroll down to start tutorial
<sacarlson> it will generate account pairs and deposit 1000 STR in them for you
<stellar-slack> <meetreks> I have
<stellar-slack> <meetreks> gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE sf2GCNjmvf5Ng8Dak4bAmuYqYBk9hkZuFqMMQiLYdEf3BRMX1GW
<stellar-slack> <meetreks> gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA s3wXzQDc638s3dYrrfJbF1nNQSsUW1JATBinLGb8VjQuaXiay3F
<sacarlson> I have a function in my class_payment.rb that creates new accounts with funding but you need one account with funding to create more
<sacarlson> ok
<stellar-slack> <meetreks> and it has deposited money
<sacarlson> yup
<stellar-slack> <meetreks> not sure with the syntax
<stellar-slack> <meetreks> so
<stellar-slack> <meetreks> uncommented
<stellar-slack> <meetreks> from_pair = {"account" : "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE"
<stellar-slack> <meetreks> like that
<stellar-slack> <meetreks> or any other formats?
pixelbeat_ has joined #stellar-dev
<sacarlson> from_pair = {"account"=>"gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE", "secret"=>"sf2GCNjmvf5Ng8Dak4bAmuYqYBk9hkZuFqMMQiLYdEf3BRMX1GW"}
<sacarlson> put it bellow he YAML
<sacarlson> the yaml is used to import the secreet numbers from a sucured file
<stellar-slack> <meetreks> guess it went to sleep mode
<stellar-slack> <meetreks> guess the function itself worked
<stellar-slack> <meetreks> but check balance failed
<stellar-slack> <meetreks> shouldnt matter i guess
<stellar-slack> <meetreks> let me try with another set of pair
<sacarlson> I'm not sure you put the from_pair and to_pair in the correct location . I see that the names are used bellow the Yaml that could be replaced with yours
<sacarlson> or I have the numbers what am I thinking I could run them
<sacarlson> or = oh
<stellar-slack> <meetreks> I did
<stellar-slack> <meetreks> Ok
<stellar-slack> <meetreks> ran it for 2 different pairs
<stellar-slack> <meetreks> what is the next step?
<sacarlson> next step check the ballance
<sacarlson> I'm also running it on the first set that is sending 10,000 to each currency
<stellar-slack> <meetreks> OK
<sacarlson> just change the ammount and run it again to get more money
<sacarlson> so for your orders and payment transaction you will us the from_pair account as the issure
<sacarlson> opps you will need a 3rd set of account numbers
<sacarlson> the to_pair will be changed but the from_pair will stay the same
<sacarlson> your from_pair will be your primary issuer
<sacarlson> I looked at the account ballance of "gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA" and I note that it only has trust set for CHP, seems I failed to put the delay in the first one that makes the others not work
pixelbeat_ has quit [Ping timeout: 250 seconds]
<sacarlson> even with the added delay and running it again I still only see AUS, USD, CHP with positive ballances, maybe I need to add delays between the add trust?
<sacarlson> after adding a 12 second delay between each add trust it seems to have worked for the rest of the currenies
<sacarlson> "gBuYT5AQpjw1mEiDBJNJshtV3GyV5A2UKA" now has all these USD EUR JPN AUS GBP CHP from the issuer "gpHUkTY9c7qviqSbAkPMm5v9ZyTDho9GAE" with minimum 10k each
koolhead17 has joined #stellar-dev
koolhead17 has joined #stellar-dev
pixelbeat_ has joined #stellar-dev
pixelbeat_ has quit [Ping timeout: 246 seconds]
koolhead17 has quit [Remote host closed the connection]
sacarlson has quit [Read error: Connection reset by peer]
sacarlson has joined #stellar-dev
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
pixelbeat_ has joined #stellar-dev
pixelbeat_ has quit [Ping timeout: 246 seconds]
_whitelogger has joined #stellar-dev