<stellar-slack>
<sacarlson> it might have something to do with making it possible for a issuer to freeze accounts.
etrepum has quit [Read error: Connection reset by peer]
etrepum has joined #stellar-dev
<stellar-slack>
<sacarlson> oh also have to set this bit Allow an account to hold trustline to your account. This requires that your account have AUTH_REQUIRED_FLAG set, and the account you're authorizing has already set a trustline to your account for the asset you're authorizing.
<stellar-slack>
<eno> let me guess : if A set AUTH_REQUIRED_FLAG =1 , issue 'BEER' , and make a allow_trust op to B , B and C can set trustline to A for BEER, but B cann't send 'BEER' to C.
<stellar-slack>
<regisg> @sacarlson: yes, this is AUTH_REQUIRED_FLAG & AUTH_REVOCABLE_FLAG
nivah has joined #stellar-dev
<stellar-slack>
<regisg> @eno, I'm going to test the usercase you describe to see if you guess well. Thanks
jbenet has quit [Ping timeout: 264 seconds]
jbenet has joined #stellar-dev
nivah has quit [Ping timeout: 260 seconds]
gst has quit [Ping timeout: 264 seconds]
gst has joined #stellar-dev
gst has quit [Changing host]
gst has joined #stellar-dev
gst has quit [Ping timeout: 264 seconds]
nivah has joined #stellar-dev
gst has joined #stellar-dev
gst has joined #stellar-dev
nivah has quit [Quit: Leaving]
nivah has joined #stellar-dev
edubai__ has quit [Ping timeout: 240 seconds]
edubai__ has joined #stellar-dev
etrepum_ has joined #stellar-dev
etrepum has quit [Ping timeout: 264 seconds]
etrepum_ is now known as etrepum
pixelbeat has joined #stellar-dev
bit2017 has joined #stellar-dev
nivah has quit [Ping timeout: 261 seconds]
pixelbeat has quit [Ping timeout: 255 seconds]
<stellar-slack>
<fredolafritte> Is there a way to cancel an order just by knowing its id ?
<stellar-slack>
<eno> i am not sure ,you may need to test this : post a new manage_offer op , take this id and set price to 0 .
bit2017 has quit [Ping timeout: 240 seconds]
<stellar-slack>
<jed> Yeah but set amount to 0 not price
<stellar-slack>
<fredolafritte> buying selling code/issuer are not necessary then ?
<stellar-slack>
<fredolafritte> I've had the orders cancelled already but I was filling buying selling code/issuer,
<stellar-slack>
<fredolafritte> however, the order id should be enough, shouldn't be ?
<stellar-slack>
<jed> Oh I see. I think so but I'm not in front of a computer so can't check.
<stellar-slack>
<fredolafritte> unfortunately, it seems that buying and selling are required to cancel an order, otherwise: `Cannot read property 'toXdrObject' of undefined`
<stellar-slack>
<powderfan> Any ideas on my issue with `paths` request? Do I miss something, or is it a bug? Should I open an issue for that?
<stellar-slack>
<jed> Scott ^
<stellar-slack>
<scott> let me check it out
<stellar-slack>
<jed> Fredolafritte: the fields have to be there but I think you can set them to 0 or garbage
loglaunch has quit [Ping timeout: 260 seconds]
loglaunch has joined #stellar-dev
<stellar-slack>
<scott> @powderfan: I believe this is an issue when trying to find paths involving a destination account that is also the issuer of the destination asset.
<stellar-slack>
<scott> (i’m starting to regret that stellar-core doesn’t track issuer balances)
<stellar-slack>
<sacarlson> I wrote a function that creates issuer balance from stellar-core db data
<stellar-slack>
<sacarlson> not that this will help in this case
<stellar-slack>
<scott> yeah, if it’s not tracked in the core it doesn’t really help me here
<stellar-slack>
<sacarlson> I think my test orders of AAA BBB
<stellar-slack>
<scott> I don't really understand what your test is, or what you’re expecting. If you can explain a little more concretely I can look into it.
<stellar-slack>
<sacarlson> well that is part of the problem as I'm not sure what to expect in the results of path
<stellar-slack>
<scott> in that case, path should be `[]`, the source and destination asset are the same
<stellar-slack>
<sacarlson> that makes sence
<stellar-slack>
<scott> the `path` attribute will contain “asset” objects each intermediary hop needed for a given result
<stellar-slack>
<sacarlson> then I need to setup test orders so that a path is required
<stellar-slack>
<scott> yep. horizon does have test cases for a bunch of the scenarios, but the specific case powderfan is encountering is not covered
<stellar-slack>
<sacarlson> so I should have an order setup that could require a hop with three assets on order. I'll try to find a way to make one show in the path
<stellar-slack>
<scott> Alright, I’ve confirmed it’s not specifically related to the issuer being the destination. Further checking the situation now
<stellar-slack>
<scott> ah! Found the cause. The current pathfinder won’t continue searching for longer paths using a given asset if that asset is already an acceptable end point. Looking into the solution now
ultrashag has quit [Ping timeout: 264 seconds]
ultrashag has joined #stellar-dev
<stellar-slack>
<sacarlson> I was attempting to try to cancel an offer using stellar-sdk.js. I'm getting this error TypeError: amount argument must be of type String and represent a positive number. I have opts.amount = '0'; isn't that how you cancel offers is by setting amount to "0" ? maybe need "0.0"?
<stellar-slack>
<sacarlson> no I'm on older 0.2.12 so I'll try upgrade
<stellar-slack>
<scott> np!
<stellar-slack>
<scott> alright, so the short circuit issue I found doesn’t fix the paths issue that powderfan was seeing. I now believe the cause is due to how we handle the native currency in pathfinding. Getting a regression test in place first before solving the issue, but it’ll probably take a bit longer (hopefully before EOD)
loglaunch has quit [Ping timeout: 245 seconds]
loglaunch has joined #stellar-dev
<stellar-slack>
<sacarlson> now using stellar-sdk.js v 0.2.21 and got my first offer transaction to cancel ok. but seems everything must be entered and match the order, not just the orderid
<stellar-slack>
<richiela> you guys should update people when important sdk bugs get fixed ;)
<stellar-slack>
<richiela> i think 0.2.12 was the version out when the new blockchain came up
<stellar-slack>
<richiela> so a lot of people are probably still on that version
<stellar-slack>
<sacarlson> yes I only change when I have to now when they come out
<stellar-slack>
<scott> richiela: have recommendations about how we notify people? I believe bartek discussed the fix being pushed to npm in this channel back when it was made
<stellar-slack>
<richiela> ETH does a realy good job with their blog and a tweet
<stellar-slack>
<richiela> personally contacting exchanges/service providers wouldn't hurt but its a lot to ask ;)
<stellar-slack>
<bartek> @scott @richiela this bug was fixed about month ago. @jed sent emails to partners. I think tweeting and email to devs is ok.
<stellar-slack>
<scott> IMO, if we’re going to email developer releases we should really just setup a mailing list and announce there. Our current newsletter mailing list is not appropriate, IMO
<stellar-slack>
<richiela> who actually owns the sdk?