NFT’s on ICP are superior as they store the asset data WITH the token. However, EVM chains capture most of the trading liquidity for now.
ckNFT is a direct integration of an ICRC7-based NFT wit evm blockchains such as Bitfinity or Ethereum using ERC-1155 standard.
- DFINITY Canister SDK
- Node.js
- Rust
- Basic understanding of Ethereum and smart contracts
After cloning the repository, the next step is to run the project locally to ensure everything is set up correctly. Follow the commands below based on your package manager (Yarn or npm).
First, let's install all the required dependencies:
yarn install:all
# or
npm run install:all
To start the local Internet Computer environment, run:
yarn dfx:start
# or
npm run dfx:start
Deploy your the backend canister to the local Internet Computer by running:
yarn deploy icrc7 --argument '(record { tx_window=24; permitted_drift=2; name="Icrc7 Token"; symbol="ICRC7"; minting_authority=principal"'$(dfx identity get-principal)'";royalties=null;royalties_recipient=null;description=opt "ICRC7 Standard Token";image=null;supply_cap=null;cknft_eth_address="0x22c64ea6fa6c67b9331cc45967a257456b03d518";ecdsa_key_name="dfx_test_key";})'
# or
npm run deploy icrc7 --argument '(record { tx_window=24; permitted_drift=2; name="Icrc7 Token"; symbol="ICRC7"; minting_authority=principal"'$(dfx identity get-principal)'";royalties=null;royalties_recipient=null;description=opt "ICRC7 Standard Token";image=null;supply_cap=null;cknft_eth_address="0x22c64ea6fa6c67b9331cc45967a257456b03d518";ecdsa_key_name="dfx_test_key";})'
yarn identity:deploy
# or
npm run identity:deploy
To run the Next.js(frontend) app, execute:
yarn dev
# or
npm run dev
Open your browser and navigate to http://localhost:3000 to see your app running.
Finally, to mint the ICRC7 NFT:
# Mints token
dfx canister call icrc7 icrc7_mint '(record{
id=10;
name="Icrc7 10";
description=opt "10th token of the collection";
image=null;
to=record{
owner=principal"2vxsx-fae";
subaccount=null;
};
})'
dfx canister call icrc7 icrc7_transfer '(10)'
https://a4gq6-oaaaa-aaaab-qaa4q-cai.raw.ic0.app/?id=i6s5o-xaaaa-aaaap-abrmq-cai
https://explorer.bitfinity.network/address/0x10624aF1B7223984b308a179911CE02A1B796C6b
https://sepolia.etherscan.io/address/0x10624aF1B7223984b308a179911CE02A1B796C6b
you can find the deployed smart contract with this address 0x10624aF1B7223984b308a179911CE02A1B796C6b on other chain also.
https://sepolia.etherscan.io/tx/0xfef76bd7af56a97cf97fca1ab461bfadd197652612b64870c012f0234916dd75