Quickstart
Solidity
git clone https://github.com/coti-io/coti-contracts-examples.gitcd ./coti-contracts-examplesnpm installnpx hardhat compilenpm run test-private-tokenPrivate Token 1) "before all" hook in "Private Token" 0 passing (39ms) 1 failing 1) Confidential ERC20 "before all" hook in "Private Token": Error: Created new random account 0x17EDB982c3569D29EbaF407F72aDD05722d5f179. Please use faucet to fund it.npm run test-private-tokenPrivate Token ************* Onboarding user 0x17EDB982c3569D29EbaF407F72aDD05722d5f179 ************* ************* Onboarding user 0xe1E7315F6970F353661fc84FFd9238133cED3677 ************* ************* Onboarded! created user key and saved into .env file ************* ************* Onboarded! created user key and saved into .env file ************* Deployment ✔ Deployed address should not be undefined ✔ Owner initial balance (123ms) ✔ Function 'name' should be correct (130ms) ✔ Function 'symbol' should be correct (123ms) ✔ Function 'decimals' should be correct (119ms) ✔ Function 'totalSupply' should be correct (117ms) Transfer 5 ✔ Transfer - clear (9469ms) ✔ Transfer - Confidential (5260ms) ✔ TransferFrom - clear without giving allowance should fail (9905ms) ✔ TransferFrom - clear (9770ms) ✔ TransferFrom - Confidential (10265ms) ✔ Approve/Allowance - Confidential (10255ms) 12 passing (1m) ✨ Done in 69.69s.npm run test-private-nftnpm run test-private-tokennpm run test-private-auctionnpm run test-private-identity-registrynpm run test-on-chain-database
TypeScript
Python
Last updated
Was this helpful?