166
Active Discussions / Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« on: January 17, 2025, 04:57:23 PM »
Alright, biblepay-doge atomic transactions 1.0 are being released now:
First question: Why don't we have a separate wallet for TestNet:
This build runs in the latest Production wallet (0.22.4-HamansHanging).
I chose to release this into the prod version rather than the testnet version because the AtomicTx uses real DOGE and real BBP.
(I did not want the feature to work with TBBP).
So please download the latest version with the link in the OP post and we can do testing with real coins.
Up to this point there are 3 primary architectures that we can use to accomplish these atomic tx's:
1) Coins are sent directly from user to user, Doge tx's are not mined into the chain unless the UTXO is confirmed by 6 sanctuaries, requires buyers and sellers to be online to trade, and requires a hard fork. I originally wrote the whole system this way, but decided to remove that code and make method 1 dormant, because I didnt like the hard fork nor the fact the users have to be online constantly to trade.
2) Escrow Tx's are sent to a sanc, the sanc holds on to the Tx and does the atomic swap if a match occurs, however, if a match does not occur or if the user Cancels the trade, the coins are returned. <-- This is actually how the AtomicTx works right now.
3) Colored Coins are used to send WDOGE back and forth. A user can Wrap a doge using a Wrapping Tx, or Redeem DOGE using an unwrapping tx against a sanc. This will allow frictionless trading whether online or offline and almost fee-free trading for fractional quantities, and some other exciting things. Im actually working on this proof-of-concept in the background and this may be the best method of all, but more on that later.
Now moving to my mini instructions (will make a Wiki for this page asap):
Assume that you must go the RPC console to do any of these.
How do I list the orders?
exec listorderbook buy
exec listorderbook sell
How do I place a trace?
exec placetrade buy NNNN pppp
Where NNNN is the Qty and pppp is the price.
You can also place a trade to SELL bbp for DOGE using:
exec placetrade sell NNNN_bbp pppp
How do I cancel a trade and get my collateral back?
Take note of the order id by either 'listorderbook buy-sell and find it' or the ID that was printed when you placed the trade.
You can see your orders in the orderbook by looking for a FLAG="M". You can also find your ID in the trading_log. You can also find your id in the
BBP transactionlist, double click it and read the advanced information (IE <atomictransaction>ID: nnnn</atomictransaction>).
Once you know the ID of the trade type:
exec canceltrade ID
How do I see my integrated DOGE wallet balance?
exec getdogebalance
This command also shows your DOGE public key, and your doge balance, and your BX link.
How do I send DOGE from my BBP wallet?
exec senddoge destination_address amount
NOTE: The BBP wallet will not spend any of your funds from your normal keys.
To start trading you will have to go to receiving addresses, and find your TRADING-PUBLIC-KEY, and send funds to it.
Also your wallet must be unlocked to trade.
All atomic tx funds are spent from the TRADING-PUBLIC-KEY, and all canceled transactions and filled transactions from other users are sent to your TRADING-PUBLIC-KEY. All inbound DOGE comes to your 'exec getdogebalance' key. All outbound doge comes out of your 'exec getdogebalance' key.
In version 1.0, this atomic trading system is only capable of matching Exact trades (meaning that the buyer and seller are selling the same quantity of coins) and the price must be at or better than the sellers price.
Example:
If I am selling 1000 BBP for .0001 doge, the buyer must be buying 1000 BBP for .0001 or .00011 or .00015 (IE at that price or higher) to get the coins.
In v1.1, we will attempt to introduce fractional fills.
Enjoy.
First question: Why don't we have a separate wallet for TestNet:
This build runs in the latest Production wallet (0.22.4-HamansHanging).
I chose to release this into the prod version rather than the testnet version because the AtomicTx uses real DOGE and real BBP.
(I did not want the feature to work with TBBP).
So please download the latest version with the link in the OP post and we can do testing with real coins.
Up to this point there are 3 primary architectures that we can use to accomplish these atomic tx's:
1) Coins are sent directly from user to user, Doge tx's are not mined into the chain unless the UTXO is confirmed by 6 sanctuaries, requires buyers and sellers to be online to trade, and requires a hard fork. I originally wrote the whole system this way, but decided to remove that code and make method 1 dormant, because I didnt like the hard fork nor the fact the users have to be online constantly to trade.
2) Escrow Tx's are sent to a sanc, the sanc holds on to the Tx and does the atomic swap if a match occurs, however, if a match does not occur or if the user Cancels the trade, the coins are returned. <-- This is actually how the AtomicTx works right now.
3) Colored Coins are used to send WDOGE back and forth. A user can Wrap a doge using a Wrapping Tx, or Redeem DOGE using an unwrapping tx against a sanc. This will allow frictionless trading whether online or offline and almost fee-free trading for fractional quantities, and some other exciting things. Im actually working on this proof-of-concept in the background and this may be the best method of all, but more on that later.
Now moving to my mini instructions (will make a Wiki for this page asap):
Assume that you must go the RPC console to do any of these.
How do I list the orders?
exec listorderbook buy
exec listorderbook sell
How do I place a trace?
exec placetrade buy NNNN pppp
Where NNNN is the Qty and pppp is the price.
You can also place a trade to SELL bbp for DOGE using:
exec placetrade sell NNNN_bbp pppp
How do I cancel a trade and get my collateral back?
Take note of the order id by either 'listorderbook buy-sell and find it' or the ID that was printed when you placed the trade.
You can see your orders in the orderbook by looking for a FLAG="M". You can also find your ID in the trading_log. You can also find your id in the
BBP transactionlist, double click it and read the advanced information (IE <atomictransaction>ID: nnnn</atomictransaction>).
Once you know the ID of the trade type:
exec canceltrade ID
How do I see my integrated DOGE wallet balance?
exec getdogebalance
This command also shows your DOGE public key, and your doge balance, and your BX link.
How do I send DOGE from my BBP wallet?
exec senddoge destination_address amount
NOTE: The BBP wallet will not spend any of your funds from your normal keys.
To start trading you will have to go to receiving addresses, and find your TRADING-PUBLIC-KEY, and send funds to it.
Also your wallet must be unlocked to trade.
All atomic tx funds are spent from the TRADING-PUBLIC-KEY, and all canceled transactions and filled transactions from other users are sent to your TRADING-PUBLIC-KEY. All inbound DOGE comes to your 'exec getdogebalance' key. All outbound doge comes out of your 'exec getdogebalance' key.
In version 1.0, this atomic trading system is only capable of matching Exact trades (meaning that the buyer and seller are selling the same quantity of coins) and the price must be at or better than the sellers price.
Example:
If I am selling 1000 BBP for .0001 doge, the buyer must be buying 1000 BBP for .0001 or .00011 or .00015 (IE at that price or higher) to get the coins.
In v1.1, we will attempt to introduce fractional fills.
Enjoy.
