bit2017 has joined #stellar-dev
koolhead17 has joined #stellar-dev
de_henne_ has joined #stellar-dev
de_henne has quit [Ping timeout: 248 seconds]
victortyau has quit [Quit: Textual IRC Client: www.textualapp.com]
koolhead17 has quit [Ping timeout: 240 seconds]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Ping timeout: 256 seconds]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Ping timeout: 245 seconds]
<stellar-slack> <sacarlson> seem's the must have changed the testnet name in sdk v0.4.0 this still works StellarSdk.Network.usePublicNetwork(); but this throws errors //StellarSdk.Network.useTestNet();
<stellar-slack> <sacarlson> ah I see it just above me ha ha
<stellar-slack> <sacarlson> yup this works StellarSdk.Network.useTestNetwork;
TheSeven has quit [Ping timeout: 250 seconds]
TheSeven has joined #stellar-dev
de_henne_ is now known as de_henne
de_henne has quit [Remote host closed the connection]
de_henne has joined #stellar-dev
stellar-slack1 has joined #stellar-dev
stellar-slack has quit [Ping timeout: 240 seconds]
bit2017 has quit [Ping timeout: 240 seconds]
de_henne has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
de_henne has joined #stellar-dev
koolhead17 has joined #stellar-dev
bit2017 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Changing host]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
edubai__ has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
<stellar-slack1> <powderfan> meant to be `source_asset_code` should be `AAA`
<stellar-slack1> <powderfan> btw. if I create a path payment from the second record, the transaction fails
stellar-slack1 has quit [Remote host closed the connection]
stellar-slack has joined #stellar-dev
<stellar-slack> <powderfan> I've got some trouble with the account sequence. Why is it a string in js-sdk and not a number. How am I supposed to manually increase it? Convert to int, add 1 and convert back to string? Thanks for your help
<stellar-slack> <eva> @powderfan you updated your js libraries, right? https://stellar-public.slack.com/archives/dev/p1453842312000240
<stellar-slack> <jed> powderfan you shouldn't have to track it. if you are using an Account object to create txs the js-sdk will increment it for you
<stellar-slack> <jed> and can you make an issue for the path problem
<stellar-slack> <irisli> @powderfan: If you do want to manually calculate it, you should use a bignum library such as the one provided by js-sdk via js-xdr's UnsignedHyper which inherits from the nodejs Long package. Here is an example of how the laboratory does math with it: https://github.com/stellar/laboratory/blob/5242ecc7e28723cfcffc74babe724a3b686bc075/src/components/TxBuilderResult.js#L74
<stellar-slack> <jed> the root issue is that normal js integers aren't 64bit
<stellar-slack> <irisli> @powderfan: here is an example how js-stellar-base increments: https://github.com/stellar/js-stellar-base/blob/master/src/transaction_builder.js#L102 and how it automatically manages your Account object by mutating it and increasing the sequence number: https://github.com/stellar/js-stellar-base/blob/master/src/transaction_builder.js#L121
<stellar-slack> <powderfan> @jed: ah I see, I'm not maintaining a permanent Account object but create it on the fly, this is why I need to increment. Maybe I have to change this. Or adopt one of @irisli's proposals. Thanks. For the paths problem I don't have a clue on where it belongs. core or horizon? otherwise no problem to create an issue
<stellar-slack> <jed> horizon
<stellar-slack> <powderfan> ok
victortyau has joined #stellar-dev
<stellar-slack> <cyberomin> Hey there, how do I generate a public key for Stellar please. Thanks.
<stellar-slack> <cyberomin> Thank you…
<stellar-slack> <jed> programtically or just one time?
<stellar-slack> <jed> cyberomin: `stellar-core --genseed` or https://stellar.github.io/js-stellar-sdk/Keypair.html#.random
<stellar-slack> <cyberomin> @jed: one time, thanks for the link too.
<stellar-slack> <jed> you can also use https://stellar.github.io/network-explorer/ if it is just a 1 off
<stellar-slack> <bartek> @powderfan: https://stellar.github.io/js-stellar-sdk/Account.html#incrementSequenceNumber but if you're using `TransactionBuilder` remember that you don't have to do it, it will increase it by one for you: https://stellar.github.io/js-stellar-sdk/node_modules_stellar-base_src_transaction_builder.js.html#line121