de_henne has quit [Ping timeout: 264 seconds]
de_henne has joined #stellar-dev
sv-logger has quit [Remote host closed the connection]
sv-logger has joined #stellar-dev
TheSeven has quit [Ping timeout: 244 seconds]
TheSeven has joined #stellar-dev
graydon has joined #stellar-dev
graydon has quit [Quit: Leaving.]
graydon has joined #stellar-dev
de_henne has quit [Remote host closed the connection]
de_henne has joined #stellar-dev
alty_ has joined #stellar-dev
alty has quit [Ping timeout: 252 seconds]
ggherdov` has quit [Ping timeout: 252 seconds]
alty_ is now known as alty
ggherdov` has joined #stellar-dev
<stellar-slack> <meetreks> welcome jakecart
<stellar-slack> <lab> upgraded and be catching up.
graydon has quit [Quit: Leaving.]
<stellar-slack> <lab> it seems cann't get .xdr.gz files
graydon has joined #stellar-dev
graydon has quit [Client Quit]
sacarlson1 has joined #stellar-dev
sacarlson has quit [Ping timeout: 250 seconds]
gst has quit [Remote host closed the connection]
sacarlson1 has quit [Client Quit]
gst has joined #stellar-dev
gst has quit [Changing host]
gst has joined #stellar-dev
sacarlson has joined #stellar-dev
<sacarlson> did I add a typo at some point?
<sacarlson> oh I think you all mensioned you reset something so this account is no longer valid?
pixelbeat_ has joined #stellar-dev
<sacarlson> so assuming the problem I'm having above is due to reset, then I will need new funded accounts to try. At one point I knew where the faucet for galaxy stellar was but I seem to have lost it
<sacarlson> I"m getting the same 404 error messages in return!': 404 Resource Not Found that I get on my software here: http://docs.stellarhorizon.apiary.io/#reference/default/effect/all-effects?console=1
<sacarlson> { "type": "not_found", "title": "Resource Missing", "status": 404, "detail": "The resource at the url requested was not found. This is usually occurs for one of two reasons: The url requested is not valid, or no data in our database could be found with the parameters provided.", "instance": "horizon-testnet-001.prd.stellar001.internal.stellar-ops.com/hCYL7oezXs-196108" }
<stellar-slack> <bartek> @sacarlson yes, it was testnet reset. get some stellars to create an account at https://www.stellar.org/galaxy/
<stellar-slack> <bartek> I’ve just funded mine so this link „works” again: https://horizon-testnet.stellar.org/accounts/gWRYUerEKuz53tstxEuR3NCkiQDcV4wzFHmvLnZmj7PUqxW2wn
<sacarlson> ok I thought I was look at the galaxy but failed to find the faucet
<stellar-slack> <bartek> it’s under: "Building on Stellar is easy. Create a test account in 3 steps.” you need to generate a new address but in the next step you can fund another one if you want
<sacarlson> ya that's what I was looking for
<sacarlson> I have accounts now
<sacarlson> seems my google search took me here https://www.stellar.org/galaxy/getting-started/ that had no links to https://www.stellar.org/galaxy
<sacarlson> ya and the new account has fixed my other problem
<sacarlson> seems even after adding the sequence number to my payment transaction I still get this return {"hash"=>"43befe24ce5c84b609a4c2ddf21f758757ad17fce1498b505b443f1d7e2b2cae", "result"=>"failed", "error"=>"0000000000000000fffffffb00000000"}
<sacarlson> I'll pastebin the code I'm now running to get these results
<stellar-slack> <bartek> "The sequence number must be 1 greater than whatever the account's sequence number currently says in the ledger."
<sacarlson> oh ha ok let me try add 1
<sacarlson> ha ha it now works {"hash"=>"436d6b81f70f429e6b6450fcb2c4cf6c8f4c43b4301dd0294a4ae1ba28820eca", "result"=>"received", "error"=>nil}
<sacarlson> ya da man @bartek thanks again
<stellar-slack> <bartek> great!
<stellar-slack> <bartek> no problem
<sacarlson> I'm not finding any info on how to setup credit lines on this galaxy version, don't credit lines still exist? I'm looking here http://docs.stellarhorizon.apiary.io/#reference/default/transaction is there better docs?
<sacarlson> trust lines
<sacarlson> oh I should have looked at that thanks
<stellar-slack> <scott> @sacarlson: as a rubyist you might also get some value out of the examples here: https://github.com/stellar/stellar_core_commander/tree/master/examples We use stellar_core_commander to drive a bunch of our acceptance tests for stellar-core and ppopulate test fixtures for horizon. Those examples have much more complicated and complete interactions with the network, and they can give you an idea about how to
<stellar-slack> types.
<stellar-slack> <scott> For example: https://github.com/stellar/stellar_core_commander/blob/master/examples/pathed_payment.rb shows how to make a payment that routes through an offer to convert between two credit types.
<sacarlson> @scott thanks I"ll take a look
<sacarlson> @scott I took a quick look at some in that directory for example this one https://github.com/stellar/stellar_core_commander/blob/master/examples/non_native_payment.rb and don't see any require statements in them so I assume they are not ruby
<sacarlson> or not run alone
<stellar-slack> <scott> stellar_core_commander is a tool that runs a recipe written in ruby. https://github.com/stellar/stellar_core_commander#usage-as-command-line-tool
<sacarlson> ok so they are like scripts that run from something else
<stellar-slack> <scott> If you install it, you can also run `scc` to get help output
<stellar-slack> <scott> yes, those are examples of scripts that can be input into scc
<sacarlson> I not sure why I'm seeing this "balance": 99900000799999990 from this account I just created https://horizon-testnet.stellar.org/accounts/gspbxqXqEUZkiCCEFFCN9Vu4FLucdjLLdLcsV6E82Qc1T7ehsTC
<sacarlson> I only deposited 20 stellar
<sacarlson> it's still at sequence 1
<sacarlson> I guess I will never need the faucet again?
<stellar-slack> <scott> sacarlson: that’s the master account, the account that is imbued for 100 billion lumens at the creation of a ledger
<stellar-slack> <scott> you can tell because it’s paging_token is 0
<stellar-slack> <scott> I’m betting you simply copy pasted some keypair from a different example. What script did you use?
<sacarlson> oh ok so I now have the secret password for that so I now have unlimited lumens in testnet
<stellar-slack> <scott> until the next reset. The secret is in the source code for stellar-core, it can’t be protected. In the live net, we will move those funds to a private secret prior to launching it
<sacarlson> I thought it just created a random pair from the seed, I didn't know you used that seed any other place
<stellar-slack> <scott> allmylifemyhearthasbeensearching is the raw seed for the master account
<sacarlson> yes
<stellar-slack> <scott> I’ll add some notes to the example
<sacarlson> IC now I thought it was a bug as I didn't put the native in it
<sacarlson> I have the example some what rewriten so that it works
<sacarlson> almost
<stellar-slack> <scott> yep, sorry about the misunderstanding: in general, those example scripts aren’t meant to be run directly, especially from the ruby-stellar-base repository where the sequence number cannot be loaded from the network. They’re meant for illustrative purposes on how to use the api for you own scripts.
<sacarlson> well it was the best example for what I needed
<sacarlson> I've added a utility that gets the sequence numbers
<stellar-slack> <scott> What I’m saying poorly (sorry, I’m fairly sick today); those examples are only meant to be workable against "http://localhost:39132”… once you change that host the state is unknown and as such breakages happen
<sacarlson> well until you show me examples that are any better that do non_native_payment this will have to do. I've already have a working native send function using the same examples
<sacarlson> this is the last step I need to have my p2p poker ported to your new horizon network
<sacarlson> it seems I was wrong my native payment is not working
<sacarlson> {"hash"=>"f8bacbaaff68cd935dda185ac84eb7e13f3cd4718d1f2145bbbc98fe721eaa72", "result"=>"received", "error"=>nil}
<sacarlson> is the result of native payment but when I check balance the destination address returns with 404 error like it didn't get it
<sacarlson> so I must be missing something? http://pastebin.com/bfYEuLWa is the code I ran
<stellar-slack> <scott> what was the destination address you were sending to?
<sacarlson> @scott this is one of them gDdwC1bAR5KgquoKU5A2Zt8VXck4kL5U6fK1GnszD7kQt13udL
<sacarlson> I guess you will also need the utilities to run this
<stellar-slack> <scott> not necessary, I’m just going to check the db.
<sacarlson> ok but for anyone else this is the ./stellar_utilities.rb that's a part of the last pastebin http://pastebin.com/hC0Yup3A
<stellar-slack> <scott> There error is “payment_no_destination"
<sacarlson> ok
<stellar-slack> <scott> which makes sense, since you’re just trying to pay a random account. sorry I missed that
<sacarlson> yes it's a new account that should be funded with the master has has funds
<sacarlson> that has funds
<stellar-slack> <scott> When horizon is finished, by default a tx submission will wait around for consensus and return the final submission result, which will make things simpler to understand
<stellar-slack> <scott> Where do you fund the new random account? Your script doesn’t have that.
<sacarlson> the master account was from the faucet
<sacarlson> it checks out with funds
<sacarlson> the random account destination is created with destination = Stellar::KeyPair.random
<stellar-slack> <scott> both accounts must exist, both payee and payer. In this instance, the master account exists, but the payee (the random keypair you generate) does not exist. You must first post a “create_account” transaction.
<stellar-slack> <scott> Stellar::KeyPair.random just rolls a random keypair… it doesn’t create an account for that keypair automatically in the ledger
<sacarlson> oh I should read the create_account.rb I think it's also contained in the examples
<sacarlson> I thought to activate an account you just deposited native 30 in it
<sacarlson> oh so me not knowing that the other account existed already made me think my program worked
<sacarlson> I found this tx = Stellar::Transaction.create_account({
<stellar-slack> <scott> to activate an account you need to successfully post a `CreateAccountOp` operation. https://github.com/stellar/stellar-core/blob/master/src/xdr/Stellar-transaction.x#L30
<sacarlson> yes I'll try this example after it's reworked a bit
<sacarlson> well tried the createAccount example and it also returns error 404 http://pastebin.com/H5EShNjc
<sacarlson> {"type"=>"not_found", "title"=>"Resource Missing", "status"=>404, "detail"=>"The resource at the url requested was not found. This is usually occurs for one of two reasons: The url requested is not valid, or no data in our database could be found with the parameters provided.", "instance"=>"horizon-testnet-001.prd.stellar001.internal.stellar-ops.com/hCYL7oezXs-219531"}
<sacarlson> any idea's @scott ?
Vinnie_win has joined #stellar-dev
pixelbeat_ has quit [Ping timeout: 248 seconds]