Bible Pay

Read 46741 times

  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #45 on: April 10, 2021, 12:48:27 PM »
HI Rob,

Now sure I get what you are saying about the gift card, what shout this line look like....

Christmas blessings to you" 5.00 1

Yes correct, and as I mentioned about the necessity for a GUI, Im committed to making a GUI for this before our Harvest release, but for now the goal is to at least test the ability to make  a mailing, a custom paragraph, and a virtual gift card so thats why we need to go through the command line.  In a couple days, I will also show how we can send the paramter to get it deliverered to the house for real.

Anyway yes just set it like this:

exec testmail "Destination Name,Destination Address-Line-1,Destination City,Destination State,DestinationZip" "Your custom paragraph goes here!" gift_amount_in_usd 1

Just replace the gift_amount_in_usd with a 5 for example (or another dollar amount but dont go above $20 cause we dont want to lose all your tBBP).

Then paste the outcome and Ill try to cash in the card from my end - this will test the "virtual gift card passphrase".

Thanks!





  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #46 on: April 10, 2021, 01:20:17 PM »
As promised I added endpoints for our NFT marketplace: One for purchasing digital goods; and a separate marketplace for sponsoring orphans.

The reason we have a separate marketplace for orphans is so that we can caption interactions with orphans as "Sponsorships", Sponsor (instead of buy or purchase), Child unavailable instead of Item, and to conform to regulatory reqs with our partners.  It also makes the system cleaner because we have separate pages for storefront vs children.  It will also be good because we dont have people 'bidding on children' like they bid on items.  (Although we could have sponsor to the highest bidder in the sense that the sponsorship lasts longer if someone pays more).

I also added the pagination that I know we will need (as soon as we have more than 14 items in the chain), and I added the 'suppress bought items mutex'.

So now I will need to create test cases for NFTs.
In the mean time you can view the marketplace/sponsorship URLs:

Goods:
https://foundation.biblepay.org/NFTBrowse
Children:
https://foundation.biblepay.org/NFTOrphans

Please dont share these URLs with anyone outside testnet yet, because these are testnet only URLs and I dont want anyone from foundation's pool to try to sponsor an orphan with real BBP yet as maybe it will do something strange etc til we are ready to release harvest to the server side etc.

Ill make test cases for NFTs next.





  • Pat Buckley
  • Developer

    • 84


    • 18
    • February 22, 2021, 02:15:12 PM
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #47 on: April 10, 2021, 01:58:22 PM »
Excellent Rob,

The NFT's are looking really  good, and they will add real utility and functionality to BiblePay.

I believe they will be a big success,  they are a type of digital asset, essentially a tradeable, digital ownership certificate, authenticated through the blockchain networks that hold a record of the underlying data....

Bring on the Christian artists, musicians, etc...this new feature offers a new way to give them:

Indisputable rights and royalties on projects.
Licensing contracts with guaranteed terms.
Authenticity verification for any digital file.



  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #48 on: April 10, 2021, 02:23:24 PM »
NFT (Non Fungible Tokens) Test cases:

NFT Add:
- Create a brand new NFT by going to "NFTs | NFT Add".  Fill in the fields.  For the type be sure to select digital good.  For the URL, choose the final URL of the product-good-service you are selling a copy of (or the original of).  Side Note we will need to address copyright laws - most likely with a process to blacklist non-verified owners or plagiarizers etc.  Also on another side note, I would like to add a 'private encrypted URL' that can be deciphered when the item is purchased - this would be useful for us to render a low quality version of a product and/or a demo URL (for binaries), but when purchased, the user receives the high-quality asset URL.  Save the new NFT.  (We hash the NFT by its distinct URL so no two can exist that are the same).
- After a few blocks verify you can see the NFT in the NFT list (NFTs | List NFTs).
Also, verify you can see the NFT in the marketplace:
Goods:
https://foundation.biblepay.org/NFTBrowse

- Edit the NFT.  Verify you can change the marketable status, and the minimum offer price.
- View the NFT in the marketplace.  Verify you can see it.
- Buy the NFT in the marketplace.  Verify you receive the NFT in your NFT list.  For this test, buy one that you did NOT create, and let us buy one that you created so we can cross check the buy operation from each other.

Let us know if we have any serious considerations to fix, etc.

EDIT:  I think one way we can establish the 'private encrypted URL for a high-quality deliverable' is to add the HQ URL (or final deliverable URL) field to NFT create, and what we can do is RSA-encrypt it with the public key of the marketplace.  This means that the marketplace can decrypt the HQ url for the buyer upon a buy.  Yet, all other BBP users cannot decrypt it.



« Last Edit: April 10, 2021, 02:32:01 PM by Rob Andrews »




  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #50 on: April 12, 2021, 01:48:27 PM »
Hi Rob,

Send another Card and here is the proof PDF link....

exec testmail "Patrick Buckley,15499 NW Norwich Street,Beaverton,OR,97006" "Christmas blessings to you" 5 1


"Proof": "https://dmprint.s3-us-west-2.amazonaws.com/assets/621e7260682e4f0cb5de0c43dfdc1485bdc75f3a39d1b180ef03bd4a60c09adf.pdf?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJ2GKFO2GYKMXXMHQ%2F20210412%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20210412T161312Z&X-Amz-SignedHeaders=host&X-Amz-Expires=518400&X-Amz-Signature=4c45887da5c72a563acc1b13d72b18eb1c16939874dc29e61f99365c81235e31

Hi Pat!

Oh ok I see the problem-- in this case the problem was NOT on your end!  It was in the code.  So basically whats happening here is its adding the extra paragraph and the virtual gift card but its not going into the card!

Ok, let me do a fix on this issue and redeploy it so we can test this as a team (this ensures its actually fixed).

Ill get back to you asap.

In the mean time everyone can still test NFTs as this wont break compatibility when we release the fix.

Thanks,
Rob


  • earlzmoade
  • Super Developer

    • 311


    • 48
    • August 02, 2018, 03:22:01 AM
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #51 on: April 12, 2021, 02:59:20 PM »
Hello Rob and Pat.

So yeah finally i have the testnet sanctuary up and running.

Its the 37.120.... one

Still have some stuff to set up on the VM , but by all looks i ran the ./biblepay-cli masternode status  and i got ready ready
Im thinking gonna let it run over the night and see what happends, if its stable or reboots or whatever.

What would you like me to test out Rob?

Suppose could try out the test cases for the nfts that i saw you wrote.
Have a good one// earlz


Joshua 1:9
Have i not commanded you?
Be strong and courageous. Do not be afraid;
do not be discouraged, for the Lord your God
will be with you wherever you go.


  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #52 on: April 12, 2021, 07:34:55 PM »
1.6.0.7-Leisure Upgrade

- Add Send Greeting Card UI

** Could you all please upgrade at your leisure so we can test Greeting Cards from the UI?
I will post some test cases for this one too and circle back to Pat's test case.



  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #53 on: April 12, 2021, 07:38:06 PM »
Hi Pat!

Oh ok I see the problem-- in this case the problem was NOT on your end!  It was in the code.  So basically whats happening here is its adding the extra paragraph and the virtual gift card but its not going into the card!

Ok, let me do a fix on this issue and redeploy it so we can test this as a team (this ensures its actually fixed).

Ill get back to you asap.

In the mean time everyone can still test NFTs as this wont break compatibility when we release the fix.

Thanks,
Rob

Hi Pat,

Since we are anticipating a blockbuster release toward the end of June I went ahead and added the UI for the Greeting Card generator.
To finish testing send and receive (and redeem) virtual gift cards, could you please upgrade first.

Then to test this, go to Greeting Card | Create.
Then populate the fields for a new one and you can now populate the 5.00 in the Gift Card amount.
When you create one you can copy the link address (and of course look at it and ensure that it inserted the verbiage for the actual gift card also) then paste it here and I will go ahead and try to redeem it on my end as if I am the recipient.

Others feel free to test this also!  Remember, if you are just coming back, Earlz first you will have to read the wiki on gift cards and run the step that sets your From address (exec setmyaddress) before you use the UI (you only have to do that once).

Thanks!




  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #54 on: April 12, 2021, 07:43:33 PM »
Hello Rob and Pat.

So yeah finally i have the testnet sanctuary up and running.

Its the 37.120.... one

Still have some stuff to set up on the VM , but by all looks i ran the ./biblepay-cli masternode status  and i got ready ready
Im thinking gonna let it run over the night and see what happends, if its stable or reboots or whatever.

What would you like me to test out Rob?

Suppose could try out the test cases for the nfts that i saw you wrote.
Have a good one// earlz
Hi Earlz, welcome back brother!
Its great to have you helping out especially with a sanctuary cause we really need to ensure chainlocks are rock solid!  Thanks for setting up a sanc!

Ok, I see you 37.120 in sanctuaries and your status is perfect (not pose banned).  As I mentioned POOS banned is OK (that means a sanc is on the level 2 payment tranche which is currently 1 bbp, but we were just recently discussing on our Sunday prayer call, that it might be an excellent idea to raise this level 2 tranche payment to maybe 200-500 bbp, just to allow non-orphan-sponsoring sancs to optionally help keep the network running and that helps keep us decentralized). 

Anyway yes, it would be cool for us to send at least a few IX locks to each other.
Can you please send me a small amount of tBBP to yQE49VaaaF599dJgQzmFkHqjHp4xbQ2oAu and immediately look at the txlist and see if the lightning bolt appears within 7 seconds?  Then double click and see if it says verified via instantsend?

Then do a getblock blocknumber of the Prior block and just see if it says  chainlock:true.

Then on your sanc do a 'quorum dkgstatus' and 'quorum list' and you should see some quorum info of the current quorum.

Then you can also test out greeting card Create - send a greeting card with some USD in it, and paste the URL here.  Ill then show you how the recipient will cash in the value and then I will send one back to you.

Thanks!



  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #55 on: April 12, 2021, 08:13:58 PM »
Pat--

I see that you created an NFT pdf on deliverance.

I went into the pool and bought the NFT for 5 (which currently btw is the only option, because we dont have auctions, we just have buy it now).

Then I waited a few blocks and I can see the NFT in "my nfts".
Then I edited it and change it to 5555 minimum bid amount - and marketable.

Now it should be back in the marketplace.

Btw, now that I own it you should not be able to see it in your list or edit it.

But if you want, you can buy it again.




  • Pat Buckley
  • Developer

    • 84


    • 18
    • February 22, 2021, 02:15:12 PM
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #56 on: April 13, 2021, 12:22:14 PM »
Hi Rob,

Tried to purchase my NFT

With the following error...

Sorry, the purchase failed. You have not been charged.


  • earlzmoade
  • Super Developer

    • 311


    • 48
    • August 02, 2018, 03:22:01 AM
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #57 on: April 13, 2021, 12:27:03 PM »
Hi Earlz, welcome back brother!
Its great to have you helping out especially with a sanctuary cause we really need to ensure chainlocks are rock solid!  Thanks for setting up a sanc!

Ok, I see you 37.120 in sanctuaries and your status is perfect (not pose banned).  As I mentioned POOS banned is OK (that means a sanc is on the level 2 payment tranche which is currently 1 bbp, but we were just recently discussing on our Sunday prayer call, that it might be an excellent idea to raise this level 2 tranche payment to maybe 200-500 bbp, just to allow non-orphan-sponsoring sancs to optionally help keep the network running and that helps keep us decentralized). 

Anyway yes, it would be cool for us to send at least a few IX locks to each other.
Can you please send me a small amount of tBBP to yQE49VaaaF599dJgQzmFkHqjHp4xbQ2oAu and immediately look at the txlist and see if the lightning bolt appears within 7 seconds?  Then double click and see if it says verified via instantsend?

Then do a getblock blocknumber of the Prior block and just see if it says  chainlock:true.

Then on your sanc do a 'quorum dkgstatus' and 'quorum list' and you should see some quorum info of the current quorum.

Then you can also test out greeting card Create - send a greeting card with some USD in it, and paste the URL here.  Ill then show you how the recipient will cash in the value and then I will send one back to you.

Thanks!

I sent 777 tbbp   to your adress and swiftly i checked transactions and saw the Lightning bolt on the transactation, then i clicked on details on the transactions and i saw it said "verified via instantsend" i believe it said then after Another few seconds i read the details changed to "locked  via chainlocks".
Code: [Select]
Status: 1 confirmations, locked via ChainLocks
Date: 2021-04-13 19:13
To: yQE49VaaaF599dJgQzmFkHqjHp4xbQ2oAu
Debit: -777.00000000 tBBP
Transaction fee: -0.02300000 tBBP
Net amount: -777.02300000 tBBP
Transaction ID: 9e760de3985c03bcd7380c9c4a1644a4b0d9621ffe645463abd34bf61cae8c21
Output index: 1
Transaction total size: 2293 bytes

Height: 78467
Difficulty: 0.00
Time: 04-13-2021 17:14:18
Subsidy: 7806.0724

then i wrote in terminal : getblock 78466 and got this output:

Code: [Select]
19:22:01
{
  "hash": "d31fc0bdd1689e9557d283199ab204198344afdf2ae9ea43f0caf0817fc658ac",
  "confirmations": 4,
  "size": 831,
  "height": 78466,
  "version": 1342177280,
  "versionHex": "50000000",
  "merkleroot": "102655573f92ca8bc39141ef8a515c1e5e624d3ec83b1519f0fd349fb97a911c",
  "tx": [
    "d9db7adc1f284597ac6a0184e9a5d4296323325961ccb474c3a0f29b867c8ddc",
    "0f92c94be23f09a5287b428a596bc8dd6e34f9fc4c64c34391e1b171ebf9d54e"
  ],
  "cbTx": {
    "version": 2,
    "height": 78466,
    "merkleRootMNList": "9844f3964b70392ede45b01271dbabde52dd8a9941d3e477df41e369722ac92a",
    "merkleRootQuorums": "e80d380788feea436fb1409f94fe86c240fe9e19eaebb67d385e4fa6813a179e"
  },
  "time": 1618333924,
  "mediantime": 1618332881,
  "hrtime": "04-13-2021 17:12:04",
  "nonce": 187,
  "bits": "1f0e494c",
  "difficulty": 1.068053955930286e-005,
  "chainwork": "00000000000000000000000000000000000000000000000000016ceefe1fd8a9",
  "nTx": 2,
  "subsidy": 7806,
  "blockversion": 1605,
  "sanctuary_reward": 1,
  "previousblockhash": "8a0a1f0e842ee1865ab375c65196c633a1f30cf2c10da4ce1448c98d43e12937",
  "verses": "Phi|1|17| But the other of love, knowing that I am set for the defence of the gospel.\r\nPhi|1|18| What then? notwithstanding, every way, whether in pretence, or in truth, Christ is preached; and I therein do rejoice, yea, and will rejoice.\r\nPhi|1|19| For I know that this shall turn to my salvation through your prayer, and the supply of the Spirit of Jesus Christ,\r\nPhi|1|20| According to my earnest expectation and my hope, that in nothing I shall be ashamed, but that with all boldness, as always, so now also Christ shall be magnified in my body, whether it be by life, or by death.\r\nPhi|1|21| For to me to live is Christ, and to die is gain.\r\nPhi|1|22| But if I live in the flesh, this is the fruit of my labour: yet what I shall choose I wot not.\r\nPhi|1|23| For I am in a strait betwixt two, having a desire to depart, and to be with Christ; which is far better:\r\n",
  "chaindata": "<VER>v1.6.0.5-Harvest</VER>",
  "chainlock": true,
  "nextblockhash": "5a78915237af134015af86475685756d20ca241d802e3f85063274441363572b"
}

chainlocks seems fine from what i can tell.

then i went into sanc and ran in terminal ./biblepay-cli quorum dkgstatus and output:
Code: [Select]
{
  "time": 1618331916,
  "timeStr": "2021-04-13 16:38:36",
  "session": {
  },
  "minableCommitments": {
    "llmq_test": {
      "version": 1,
      "llmqType": 100,
      "quorumHash": "ac0e58cfdec640afac752cb1f3ef6a3848fe1d97b4b9ddc0dc15c042238aa563",
      "signersCount": 0,
      "signers": "00",
      "validMembersCount": 0,
      "validMembers": "00",
      "quorumPublicKey": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "quorumVvecHash": "0000000000000000000000000000000000000000000000000000000000000000",
      "quorumSig": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "membersSig": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }
  },
  "quorumConnections": {
    "llmq_test": [
      {
        "proTxHash": "d9a408bd3fd01e7e8a777cca4e9ddfce77b0185db3190bdb306cfa047ca09d52",
        "connected": true,
        "address": "149.28.254.165:58278",
        "outbound": false
      },
      {
        "proTxHash": "dd89c7cf8a50dae35b35895f11cc3d82c736d7b62349dbaeca799b4df2f6ed52",
        "connected": true,
        "address": "149.28.249.117:56358",
        "outbound": false
      },
      {
        "proTxHash": "71ed4d5cde3449731cf6aafd30fcd331d7ba10afcdcb80610040e97e7762f35a",
        "connected": true,
        "address": "45.76.62.90:60812",
        "outbound": true
      }
    ]
  }
}

then i did the other command that you wrote and output:

Code: [Select]
{
  "llmq_test": [
    "d77079cde2465f432e9170262ba7bb69317500c3264b309124d422f993380320",
    "18cbe73f89bb14d5fbc1d7a5f6c2cc295a00d76efe8623b4f2ffe48b322432cf"
  ]
}

« Last Edit: April 13, 2021, 12:34:59 PM by earlzmoade »
Joshua 1:9
Have i not commanded you?
Be strong and courageous. Do not be afraid;
do not be discouraged, for the Lord your God
will be with you wherever you go.


  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #58 on: April 13, 2021, 01:04:50 PM »
Hi Rob,

Tried to purchase my NFT

With the following error...

Sorry, the purchase failed. You have not been charged.

Pat, Im not sure if I am not passing through the proper error message (Ill check when I get back to the house in a couple hours) in the mean time please check that in your Account Settings, you have your tBBP address (for the ownership of the NFT) pasted in that field?  And try it again in steps, and if that does not work please try to deposit some Real BBP into your account (IE more than the cost of the tBBP), dont worry it wont be spent and if it gets spent Ill send it back to you etc.

Remember please also test NFT Edit, and NFT view (from the core wallet etc to make sure you can View the nft by double clicking on the nft you own).  You can always create more for these tests.



  • Pat Buckley
  • Developer

    • 84


    • 18
    • February 22, 2021, 02:15:12 PM
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #59 on: April 13, 2021, 02:55:00 PM »
Figured out the problem, it was my tBBP, added some, and the NFT purchase now works...

Success


You are now the proud new owner of an NFT. Please see your biblepaycore home wallet NFT list to find 242be9fcc840427cadd33d2dd1c9fafae5261577c8b5e503b0663c7ad288f1d5.