elective-stereophonic
elective-stereophonic
Quack FAQ  
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client: Nxt 1.11.15

Author Topic: Quack FAQ  (Read 2185 times)

blackyblack1

  • Board Moderator
  • Hero Member
  • ****
  • Karma: +165/-82
  • Offline Offline
  • Posts: 1763
    • View Profile
Quack FAQ
« on: January 07, 2016, 06:26:38 pm »

Q: How to install?
A: Make sure you have NRS 1.7.4 installed. Download https://bitbucket.org/blackyblack/quackplugin/downloads/quack-1.4.zip. Unzip into [NRS installation directory]/html/ui/plugins. Allow plugins for your account: open your NRS settings (click gear icon on the top right side of the wallet -> Settings), set Enable Plugins to Yes. Login to your wallet again and click Plugins->Quack.

Q: How to use?
A:
To sell your assets:
Click "Create Swap" to create new swap offer. Set your recipient NXT account. Fill your assets for sale (eg choose Asset Type = Asset and Asset Id = 12982485703607823902 for CoinoUSD), set quantity of your assets for sale. Fill desired assets to receive (eg Asset Id = 12659653638116877017 for SuperBTC). Type your passphrase and click "Create" to initiate your swap offer. Now you should wait until the recipient sends his assets. Click refresh button with current blockchain height to update Quack history. You will see "Accept" button on your swap when the other side's assets are sent. Click this button to check details of the swap. If everything is fine type your passphrase and click "Accept" button.

To accept someone's sale offer:
Click refresh button with current blockchain height to update Quack history. You will see new swap offer with "Accept" button. Click "Accept" button to see details of the offer. We recommend to wait for 3 confirmations for safe exchange of the assets. If the offer is good for you type your passphrase and click "Accept" button.

See the tutorial here: https://nxtforum.org/quack/quack-tutorial/

Q: How to find a buyer?
A: Create a post with your offer in the NXT Marketplace section of the forum: https://nxtforum.org/nxt-marketplace/
We recommend a specific template for your convinience:
Quack sell: <account> is selling up to N <asset name 1> (<asset id 1>) for M <asset name 2> (<asset id 2>) each. Deadline is K block/timestamp GMT.

eg: Quack sell: NXT-YTBB-LT9J-SRRR-7KLBQ is selling up to 10 CoinoUSD (12982485703607823902) for 0.022 SuperBTC (12659653638116877017) each. Deadline is 07/01/2016 22:48:44 GMT.

Now wait for incoming swap requests and accept them if they fit your offer. Add red "sold" mark to your offer on the forum when it is sold or over.

Q: Where is the source code repository?
A: https://bitbucket.org/blackyblack/quackplugin

Q: How does it work?
A: Alice initiates asset swap by preparing a trigger tx. She does not broadcast it but uses it's fullhash as linked hash for phased transactions.
Now she broadcasts phased transactions linked to trigger tx and sets finish height to some reasonable number (eg 100 blocks ahead).
Bob can see incoming transactions. He waits until they are confirmed and sends his own phased transactions linked to the same trigger tx. Ideally he uses the same finish height as Alice's transactions.
Alice checks if Bob's transactions are confirmed and she is OK with his offer. Now she broadcasts her trigger tx and all transfers are executed.

Q: I do not see new features. How to refresh the plugin?
A: Open chrome dev tools with F12 -> click and hold refresh button -> choose "empty cache and hard reload". Or try the Incognito Mode.
« Last Edit: January 23, 2016, 05:52:40 pm by blackyblack1 »
Logged

allwelder

  • Hero Member
  • *****
  • Karma: +196/-13
  • Offline Offline
  • Posts: 1867
  • NxtChina.org
    • View Profile
    • NxtChina.org
Re: Quack FAQ
« Reply #1 on: January 12, 2016, 03:05:16 am »

After the sender and received both accepted the transaction,they will only receive respective assets after the Finish Height,right?
« Last Edit: January 12, 2016, 02:58:06 pm by blackyblack1 »
Logged
NxtChina |Weibo |Twitter Donation welcomed:NXT-APL9-66GU-K8LY-B3JJJ

blackyblack1

  • Board Moderator
  • Hero Member
  • ****
  • Karma: +165/-82
  • Offline Offline
  • Posts: 1763
    • View Profile
Re: Quack FAQ
« Reply #2 on: January 12, 2016, 05:25:53 am »

After the sender and received both accepted the transaction,they will only receive respective assets after the Finish Height,right?
Right now they will receive assets after the finish height. After the block 621000 (estimate 21st January) they will receive assets immediately.
Logged

CryptKeeper

  • Hero Member
  • *****
  • Karma: +78/-5
  • Offline Offline
  • Posts: 1235
    • View Profile
Re: Quack FAQ
« Reply #3 on: January 12, 2016, 08:56:14 am »

After the sender and received both accepted the transaction,they will only receive respective assets after the Finish Height,right?
Right now they will receive assets after the finish height. After the block 621000 (estimate 21st January) they will receive assets immediately.

IMHO for testing before the hard fork, a sooner finish height would be better.
You can change the quack finish height yourself bei opening "nxt/html/ui/plugins/quack/js/nrs.quack.js" and changing "Quack.constants.swapBlocks". I'm using it with a value of 30 instead of 1440, so if the quack tx got stuck during your test, it will be released within 1-2 hours.

BTW awesome achievement blackyblack1, both thumbs up!!!  ;D
Logged
Follow me on twitter for the latest news on bitcoin and altcoins!
Vanity Accounts Sale :-)

allwelder

  • Hero Member
  • *****
  • Karma: +196/-13
  • Offline Offline
  • Posts: 1867
  • NxtChina.org
    • View Profile
    • NxtChina.org
Re: Quack FAQ
« Reply #4 on: January 13, 2016, 06:00:52 am »

Is it possible that sender created a swap order and accepted it at the same time,so just need receiver to accept it to finish the order?
Logged
NxtChina |Weibo |Twitter Donation welcomed:NXT-APL9-66GU-K8LY-B3JJJ

blackyblack1

  • Board Moderator
  • Hero Member
  • ****
  • Karma: +165/-82
  • Offline Offline
  • Posts: 1763
    • View Profile
Re: Quack FAQ
« Reply #5 on: January 13, 2016, 06:31:22 am »

Is it possible that sender created a swap order and accepted it at the same time,so just need receiver to accept it to finish the order?
What do you want to achieve with this scheme?
Logged

allwelder

  • Hero Member
  • *****
  • Karma: +196/-13
  • Offline Offline
  • Posts: 1867
  • NxtChina.org
    • View Profile
    • NxtChina.org
Re: Quack FAQ
« Reply #6 on: January 13, 2016, 08:53:13 am »

Is it possible that sender created a swap order and accepted it at the same time,so just need receiver to accept it to finish the order?
What do you want to achieve with this scheme?
Current scheme need sender accept the order after receiver accepted it.
Because order is created by sender,he should accept it by default,so no further accept needed from sender,it can reduce exchange time.
Logged
NxtChina |Weibo |Twitter Donation welcomed:NXT-APL9-66GU-K8LY-B3JJJ

blackyblack1

  • Board Moderator
  • Hero Member
  • ****
  • Karma: +165/-82
  • Offline Offline
  • Posts: 1763
    • View Profile
Re: Quack FAQ
« Reply #7 on: January 13, 2016, 09:05:25 am »

Is it possible that sender created a swap order and accepted it at the same time,so just need receiver to accept it to finish the order?
What do you want to achieve with this scheme?
Current scheme need sender accept the order after receiver accepted it.
Because order is created by sender,he should accept it by default,so no further accept needed from sender,it can reduce exchange time.
What if recipient sent assets not expected by sender? Or didn't send anything - just an empty accept message.
I have an idea of automatic finalizing of swaps but it requires trusting a 3rd party service.
Logged

allwelder

  • Hero Member
  • *****
  • Karma: +196/-13
  • Offline Offline
  • Posts: 1867
  • NxtChina.org
    • View Profile
    • NxtChina.org
Re: Quack FAQ
« Reply #8 on: January 13, 2016, 12:44:32 pm »

Is it possible that sender created a swap order and accepted it at the same time,so just need receiver to accept it to finish the order?
What do you want to achieve with this scheme?
Current scheme need sender accept the order after receiver accepted it.
Because order is created by sender,he should accept it by default,so no further accept needed from sender,it can reduce exchange time.
What if recipient sent assets not expected by sender? Or didn't send anything - just an empty accept message.
I have an idea of automatic finalizing of swaps but it requires trusting a 3rd party service.
Got it,thanks.
Logged
NxtChina |Weibo |Twitter Donation welcomed:NXT-APL9-66GU-K8LY-B3JJJ
 

elective-stereophonic
elective-stereophonic
assembly
assembly