Skip to content

Latest commit

 

History

History
134 lines (69 loc) · 6.75 KB

usageTesting.md

File metadata and controls

134 lines (69 loc) · 6.75 KB

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.

The Process of testing the contract (and droplinked's system) is as follows :


1. Create 3 accounts on your casper wallet and fund them using casper's testnet faucet

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

image

Select the settings section and hit the Create Account button there

image

Give a name to your account and hit create account

image

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

image

Hit view on CSPR.live

image

When you are on casper testnet, hit the connect button on your account

image

Then, from the tools menu, hit the faucet button,

image

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.


2. Create an account on droplinked & Record your Product

Move to https://ngsf.flatlay.io/, Enter your username and hit the sign up button

image

Fill the requested information and hit sign up

image

Then you have to verify the link sent to your email

image

Hit the Login button and fill in your data

image

And log into your account

You should fill in the requested data

image

** 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

image

Hit save, And fill the store design part as you desire, Then in the payment options page, choose the IMS type to droplinked,

image

Activate the casper payment and paste the publickey of the producer here and hit Next.

image

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.

image

Hit the New Product Button to create a new product. Fill in the needed information as I do :

image

image

image

Add variants to your prodcut and hit save on each of them

image

image

And push the Publish button to create your product.

image

From the above page, select edit product (on the right hand of the product)

image

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)

image

image

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

image

Then another wallet pop up would be open to ask you verify the deploy, hit sign on that too

image

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

image