Usage Testing of droplinked contract
** Note : We are about to do a major release so this document would get updated as the system is updated
This repository contains the logic and code for the droplinked's contract, below is a short introduction to droplinked :
On the droplinked protocol, we are registering products on chain and to enable 3rd party publishers to leverage these registered products and sell them across any marketplace, dapp or native site in order to earn commission. We are complimenting this with headless tooling for NFT Gated store fronts on droplinked.com and other valued added NFT solutions. This particular repository contains the customized contract for the Casper Network.
You'll need 3 accounts to test the contract, you can name them producer
, publisher
and customer
as we will use these names in this documentation.
You should create these accounts on your casper wallet
and faucet them on testnet, the process is as follows :
Unlock the casper wallet first
Select the settings section and hit the Create Account button there
Give a name to your account and hit create account
You should do this for all the 3 mentioned accounts. Then you'll need to faucet your accounts on testnet, Select your account on your wallet and hit Manage Account
Hit view on CSPR.live
When you are on casper testnet, hit the connect button on your account
Then, from the tools menu, hit the faucet button,
Fill in the captcha, and hit the Request Tokens
button, It would take up to 2 minutes to give you 2000 CSPRs. Do as so for other 2 accounts, So at the end you would have 3 accounts with 2000 CSPRs in each of them.
Move to https://ngsf.flatlay.io/, Enter your username and hit the sign up button
Fill the requested information and hit sign up
Then you have to verify the link sent to your email
Hit the Login button and fill in your data
And log into your account
You should fill in the requested data
** In the address part, make sure you enter a valid address (for easypost to access), A valid address is brought to you in the next pic
Hit save, And fill the store design part as you desire, Then in the payment options
page, choose the IMS type to droplinked,
Activate the casper payment and paste the publickey of the producer
here and hit Next.
Fill in the next page (contact page) as you desire and hit the Publish Store
button.
You would be transferred to the Products
page of droplinked.
Hit the New Product
Button to create a new product. Fill in the needed information as I do :
Add variants to your prodcut and hit save on each of them
And push the Publish
button to create your product.
From the above page, select edit product (on the right hand of the product)
Open up your wallet, move to Producer
account, and hit Connect
button to connect to droplinked, And then
In the product variants section, click on the green icon (Record product)
Choose the BlockchainNetwork to casper, and enter a comisson (between 1 and 100) and hit the Drop
button
your wallet would be opened and ask you to sign a text, click on sign
Then another wallet pop up would be open to ask you verify the deploy, hit sign on that too
A popup window would open to you which shows you the deploy hash and the link to testnet, click on it, you would go to the deployment page on testnet, and after a minute or two, the deploy would execute succssfully
The deploy hash that was shown in this example was : https://testnet.cspr.live/deploy/004ba727d6175c274eff53177998579b0c35c35cab848f01a11c12b035ba6ef1