smart-chain-fr / cardano-vesting-lib-integration-mock

Mocked website to test the lucid-cardano based library for claiming vested tokens.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vesting-lib-integration-mock

Mocked website to test the cardano-simple-script-vesting library for claiming vested tokens with a Nami wallet.

Step 1: Generate simple script and address

You can do it using cardano-cli (cf. tuto).

Step 2: Lock funds

Send funds to the generated address(es).

Note: You can get testnet ADA from the faucet.

Step 3: Edit index file

Edit the toClaim object in the index.ts file replacing address, ̀requireTimeAfterSlot, requireSignature, currencySymbol and tokenName by the values corresponding to the ones you have set in the previous steps.

Step 4: Get Blockfrost API key

Create a Blockfrost account and create a "project" on a Testnet. Rename the config_example.ts file: mv config_example.ts config.ts Replace the network and API key in the config.ts file.

Step 5: Launch the mock

npm install npm run start

Step 6: Claim funds

Go to http://localhost:8080 and claim funds.

About

Mocked website to test the lucid-cardano based library for claiming vested tokens.


Languages

Language:TypeScript 66.7%Language:JavaScript 20.9%Language:HTML 12.4%