Bible Pay

Read 2725 times

  • Rob Andrews
  • Administrator

    • 4189


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #15 on: January 24, 2025, 06:58:31 AM »
Sounds good!

So, does it drive demand for BBP by requiring a sanctuary to be hosted by each currency that will be listed?

Up til now I was only thinking about 1) Getting a new groundbreaking feature in so people would actually use BBP (IE maybe first Bitcoin based wallet to host a true DEX inside the core wallet), 2) Possibly helping smaller crypto communities who desperately want to be listed and cant, 3) It may tie in to our future Index product - where - we can issue fractional shares of the wrapped currencies to create a virtual cryptoindex investment fund in the core wallet, but that maintains your keys your money etc.

From that other side of the coin, IE the service side, we definitely need to approach it where its profitable and not free.
Im starting to like your idea, about needing to host a Temple (Im saying Temple because I think we would need them to host our full suite, which is 45MM bbp).  The full suite runs the sidechain also.  So they host a temple, and run a BX, and run a synced full node (of their currency) which provides our ability to do pushTX to them. 
Otherwise, one of our volunteers who have a temple can host a second market, if they feel like it.
Possibly a third option may be for them to pay a monthly fee for one of our Temples to do it all for them, but we would have to work that out.

Foreign community would need to be vetted to be "good" relationship (IE not SatanCoin). 

Note :  We can make so that trading room goes dark or more specifically, just the deposits and withdraws  are disabled when one of their components goes down (it cant operate for example if their full node node is down, because we cant broadcast tx's from a sanc to them). 



  • Rob Andrews
  • Administrator

    • 4189


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #16 on: January 26, 2025, 07:57:11 AM »
** ATTENTION **


If everyone could please cancel their trades in the doge/bbp trading room as I am now working on v2.0 which will not be compatible with the old version.

Thanks.

To cancel the trade do:

exec listorderbook buy
Find the ID (** your trades have an M on them)
exec canceltrade ID

Then do the same with any of your Sells.



Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #17 on: January 28, 2025, 09:49:51 PM »
** ATTENTION **


If everyone could please cancel their trades in the doge/bbp trading room as I am now working on v2.0 which will not be compatible with the old version.

Thanks.

To cancel the trade do:

exec listorderbook buy
Find the ID (** your trades have an M on them)
exec canceltrade ID

Then do the same with any of your Sells.

Sorry just saw this and canceled!


  • Rob Andrews
  • Administrator

    • 4189


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #18 on: January 30, 2025, 04:33:17 PM »
Biblepay v022.8 - Mandatory Upgrade
https://github.com/biblepay/biblepay/releases/tag/v022.8-Mandatory


- Lower Tx fee down to .000001 so we can trade assets with very low tx fees in trading rooms
- Add BBP atomic trading v2.0 and underpinnings
- Add colored coins (which are colored assets) and add one asset: DOGE, which is BBP Wrapped Doge
- Add sendasset (send colored asset from BBP wallet to BBP wallet) and getassetbalance
- Add memory pool rule to reject tx's that violate the colored asset protocol
- Remove colored assets from coin control and accidental wallet spending
- Add background thread to mine first colored DOGE asset address
- Add createassetaddress, which will allow you to create another asset address like BBP-Wrapped-DASH, etc.
- Add exec bankroll, which creates denominated bbp vout transactions.
- Add exec wrap and exec unwrap. This allows you to WRAP doge, and Unwrap doge (or other assets).
- Add getassetbalance to query the colored asset balance by asset type.
- Added TEST version of our next trading room (see testnet thread)




  • Rob Andrews
  • Administrator

    • 4189


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #19 on: January 30, 2025, 04:42:21 PM »
Alright everyone, this release is ready to test.
Let me explain how this works.

1) Wallet will be able to support more than one Asset (IE Trading Room) in the future as the architecture is created.
Right now, we just have DOGE-BBP.
2) There is a trading UI now, click Exchange.
3) On boot, the Exchange will not load for 2 minutes, to keep the wallet boot fast.
4) In order to trade, the wallet needs both a TRADING-PUBLIC-KEY and a TRADING-ASSET-DOGE address.
Each unique trading room we create, we need one corresponding public key for the foreign currency.
Its very easy to fund the BBP side for trading: simply go to receive addresses and copy the TRADING-PUBLIC-KEY and send yourself some BBP and that will allow you to make SELL transactions in the DOGE/BBP room.

However, now that we have a new concept (Assets), your wallet needs to MINE a TRADING-ASSET-DOGE address in the background.
It will do this automatically, but you need to unlock your wallet on boot for it to happen.

Just unlock it and wait 15 mins or so before placing your first trade.
If you place a BUY trade in the exchange room and your wallet has not yet mined the ASSET address, you will see a warning.

5) To send an ASSET from one BBP wallet to another, from the rpc do a :
exec sendasset SYMBOL dest_asset_address amount
Note that you can only send assets to another ASSET address (you would need to set up a second BBP terminal and copy it to the clipboard, as it must end in DGZZ if its a DOGE asset.

6) In order to BUY in the exchange room, you obviously need some wrapped DOGE.
To get that do this:
exec wrap DOGE amount
Note that before you do that, you will need REAL doge, so try:
exec getdogebalance
You can fund your DOGE public key with some DOGE first, then you can wrap the DOGE into BBP-DOGE with the wrap command.
Once you have wrapped DOGE, you can trade in the trading room with it and it does support Instantsend.

7) To Unwrap your doge (I recommend doing this sparingly because it is a heavy process):
unwrap doge amount
The doge will be unwrapped and sent back to your DOGE public key.
Always wait a DOGE block before doing a 'exec getdogebalance'.

8 ) The transaction fees have been lowered by a magnitude in this version so that Wrapped BBP-DOGE will have miniscule fees that will not interfere with a wrap or unwrap.

9) In this first version, only complete MATCH trades will execute.  IE:
Sell 9000 BBP for .002 from USER 1
Buy 9000 BBP for .002 from USER 2
Will match and execute.

10) The Flags column in the exchange:  M = Mine , T=Theirs

I've got a TODO to create partial fills asap.

Just let me know if Ive forgotten anything.

Good luck!

« Last Edit: January 30, 2025, 04:46:32 PM by Rob Andrews »


  • Budinga
  • Jr. Member

    • 34


    • 3
    • January 28, 2020, 02:21:29 AM
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #20 on: January 31, 2025, 09:28:36 AM »
Alright everyone, this release is ready to test.
Let me explain how this works.

1) Wallet will be able to support more than one Asset (IE Trading Room) in the future as the architecture is created.
Right now, we just have DOGE-BBP.
2) There is a trading UI now, click Exchange.
3) On boot, the Exchange will not load for 2 minutes, to keep the wallet boot fast.
4) In order to trade, the wallet needs both a TRADING-PUBLIC-KEY and a TRADING-ASSET-DOGE address.
Each unique trading room we create, we need one corresponding public key for the foreign currency.
Its very easy to fund the BBP side for trading: simply go to receive addresses and copy the TRADING-PUBLIC-KEY and send yourself some BBP and that will allow you to make SELL transactions in the DOGE/BBP room.

However, now that we have a new concept (Assets), your wallet needs to MINE a TRADING-ASSET-DOGE address in the background.
It will do this automatically, but you need to unlock your wallet on boot for it to happen.

Just unlock it and wait 15 mins or so before placing your first trade.
If you place a BUY trade in the exchange room and your wallet has not yet mined the ASSET address, you will see a warning.

5) To send an ASSET from one BBP wallet to another, from the rpc do a :
exec sendasset SYMBOL dest_asset_address amount
Note that you can only send assets to another ASSET address (you would need to set up a second BBP terminal and copy it to the clipboard, as it must end in DGZZ if its a DOGE asset.

6) In order to BUY in the exchange room, you obviously need some wrapped DOGE.
To get that do this:
exec wrap DOGE amount
Note that before you do that, you will need REAL doge, so try:
exec getdogebalance
You can fund your DOGE public key with some DOGE first, then you can wrap the DOGE into BBP-DOGE with the wrap command.
Once you have wrapped DOGE, you can trade in the trading room with it and it does support Instantsend.

7) To Unwrap your doge (I recommend doing this sparingly because it is a heavy process):
unwrap doge amount
The doge will be unwrapped and sent back to your DOGE public key.
Always wait a DOGE block before doing a 'exec getdogebalance'.

8 ) The transaction fees have been lowered by a magnitude in this version so that Wrapped BBP-DOGE will have miniscule fees that will not interfere with a wrap or unwrap.

9) In this first version, only complete MATCH trades will execute.  IE:
Sell 9000 BBP for .002 from USER 1
Buy 9000 BBP for .002 from USER 2
Will match and execute.

10) The Flags column in the exchange:  M = Mine , T=Theirs

I've got a TODO to create partial fills asap.

Just let me know if Ive forgotten anything.

Good luck!

Great work Rob,

Im just wondering am i missing something as when i try to sell bbp i get cannot create atomic tx?

Thanks


  • Rob Andrews
  • Administrator

    • 4189


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #21 on: January 31, 2025, 10:00:31 AM »
Great work Rob,

Im just wondering am i missing something as when i try to sell bbp i get cannot create atomic tx?

Thanks

Thanks bro.
Just double checking, are you definitely on v0.22.8?

And you are in this Exchange trading room (see pic) right?

If so what is the exact error message?

We moved to the UI version.

PS Try downloading it from the Github link above; our biblepay.org probably takes 24 more hours to uncache.
« Last Edit: January 31, 2025, 10:40:11 AM by Rob Andrews »


Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #22 on: January 31, 2025, 01:05:37 PM »
I will say the majority of the time exec getdogebalance returns 0 even though the balance is 7.3

then exec wrap doge returns this

14:03:37
exec wrap DOGE 5


14:03:37
{
  "Command": "wrap",
  "id": "0",
  "Tx": "{\"SymbolBuy\":\"\",\"SymbolSell\":\"\",\"Action\":\"\",\"id\":\"0\",\"Version\":1,\"Quantity\":0,\"Price\":0,\"Status\":\"NA\",\"Signer\":\"\",\"Signature\":\"\",\"CollateralBBPAddress\":\"\",\"CollateralDOGEAddress\":\"\",\"CollateralALTAddress\":\"\",\"CollateralAssetAddress\":\"\",\"CollateralTXID\":\"\",\"ReturnTXID\":\"\",\"BlockExplorerURL\":\"\",\"Message\":\"\",\"AltAddress\":\"\",\"TXID\":\"\",\"MatchedTo\":\"\",\"FilledQuantity\":0,\"Time\":1738350217,\"Height\":0,\"Error\":\"\"}\n",
  "Error": ""
}


or am I missing steps?



  • Rob Andrews
  • Administrator

    • 4189


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #23 on: January 31, 2025, 02:17:21 PM »
I will say the majority of the time exec getdogebalance returns 0 even though the balance is 7.3

then exec wrap doge returns this

14:03:37
exec wrap DOGE 5


14:03:37
{
  "Command": "wrap",
  "id": "0",
  "Tx": "{\"SymbolBuy\":\"\",\"SymbolSell\":\"\",\"Action\":\"\",\"id\":\"0\",\"Version\":1,\"Quantity\":0,\"Price\":0,\"Status\":\"NA\",\"Signer\":\"\",\"Signature\":\"\",\"CollateralBBPAddress\":\"\",\"CollateralDOGEAddress\":\"\",\"CollateralALTAddress\":\"\",\"CollateralAssetAddress\":\"\",\"CollateralTXID\":\"\",\"ReturnTXID\":\"\",\"BlockExplorerURL\":\"\",\"Message\":\"\",\"AltAddress\":\"\",\"TXID\":\"\",\"MatchedTo\":\"\",\"FilledQuantity\":0,\"Time\":1738350217,\"Height\":0,\"Error\":\"\"}\n",
  "Error": ""
}


or am I missing steps?

1) I have not had that problem where getdogebalance returns 0 most of the time, however I think I know what it may be.
The only time getdogebalance is 0, should be after you spend the doge on an unconfirmed tx for 1 block.
Fortunately, once you wrap the DOGE into BBP-DOGE, you do not have to use the "real" DOGE again, so that problem will be minimalized.
Try this, if you go to your BBP Doge address on blockcypher:
https://live.blockcypher.com/doge/address/DSb6QT7eEsMLFgL4vzPKTBqgQnqEDLPmGE/
Whenever you have an unconfirmed tx, you may see the 0 balance.
If you have everything confirmed, you should see the right balance.
Wait for that to be stable before moving to the WRAP step.
2) Now do the exec wrap command and it should wrap.
Once you wrap, dont do any more DOGE wraps until your balance is > 1 confirm again (or you may see the 0).

3) You can then do this:
exec getassetbalance doge
And now see the total of your wrapped address (the DOGE is either in one place or another, but never missing).



  • Budinga
  • Jr. Member

    • 34


    • 3
    • January 28, 2020, 02:21:29 AM
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #24 on: February 03, 2025, 01:53:48 AM »
Thanks bro.
Just double checking, are you definitely on v0.22.8?

And you are in this Exchange trading room (see pic) right?

If so what is the exact error message?

We moved to the UI version.

PS Try downloading it from the Github link above; our biblepay.org probably takes 24 more hours to uncache.

Hi Rob,

100% i am on the right version but my trading room is blank, please see attached image. The error is unable to create atomic tx.

Thanks


  • Rob Andrews
  • Administrator

    • 4189


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #25 on: February 03, 2025, 11:27:43 AM »
Hi Rob,

100% i am on the right version but my trading room is blank, please see attached image. The error is unable to create atomic tx.

Thanks

Its not normal at all, so we start with a few questions.
1) If on windows, try to go into this folder and delete this file :
%appdata%\Biblepay\SAN
Delete the sidechain file.
Then stop the node and restart the node.

Wait more than 2 minutes then see if the exchange room is populated (there are something like 10 orders in there).
It does stay blank the first 2 minutes normally.

If it still happens, please paste a screenshot of the error.

2) When you go to Window | Receiving addresses, and search by Trading, do you have both a Trading-public-key and a Trading-asset-doge populated?




  • Budinga
  • Jr. Member

    • 34


    • 3
    • January 28, 2020, 02:21:29 AM
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #26 on: February 04, 2025, 01:54:39 AM »
Its not normal at all, so we start with a few questions.
1) If on windows, try to go into this folder and delete this file :
%appdata%\Biblepay\SAN
Delete the sidechain file.
Then stop the node and restart the node.

Wait more than 2 minutes then see if the exchange room is populated (there are something like 10 orders in there).
It does stay blank the first 2 minutes normally.

If it still happens, please paste a screenshot of the error.

2) When you go to Window | Receiving addresses, and search by Trading, do you have both a Trading-public-key and a Trading-asset-doge populated?

I deleted the files in SAN and restarted , after about 5 min it showed up as i went to place an order the whole order book went blank. and now i have the same i had in the previous image
I have the receiving addresses too.


Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #27 on: February 04, 2025, 01:41:13 PM »
Ive had the order book blank before

when i did

exec listorderbook buy

in the console the GUI order book populated

update: it disappeared after a few minutes, i will try deleting SAN
« Last Edit: February 04, 2025, 01:43:10 PM by AIDS_SKRILLEX »


Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #28 on: February 04, 2025, 01:59:42 PM »
I'm not sure if these screenshots help but just documenting what's happening. I have intermittently been able to post buy and sell trades previously but not today and orderbook appears briefly before disappearing.


  • Rob Andrews
  • Administrator

    • 4189


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: BIBLEPAY - DOGE DECENTRALIZED EXCHANGE
« Reply #29 on: February 04, 2025, 07:20:12 PM »
Ahh, thank you for the screenshots.
Actually its really good to see that you both had the same problem, because ironically I have not had it from my VM or my home pc.

Its possible that I fixed something that did not get in the latest release; really busy at work, so Im going to have to try to reproduce this on my laptop which is not using the compiled version.

Give me a couple days for things to settle down and ill be back asap.

PS In theory you do not have to list orderbook or create atomic from command line (command line should only be needed for the exec getdogebalance etc).  Aids_S,  out of curiosity, on those instances where you had a 0 return for getdogebalance, were those after spends or were they just random problems?  (Cause that should only happen after a spend). 

PS II:  One other thing can you both try in the mean time:  There is a timer meant to save resources, inside the Exchange page inside the order book grid.
It goes to sleep once every few mins and only wakes up if there is mouse move Over the top or bottom grid.  Try this, after the orderbook goes blank (and after 2+ mins after a cold boot) click around in the grid area and wait a few secs and see if that fixes it? 

« Last Edit: February 04, 2025, 07:40:12 PM by Rob Andrews »