Selfkey ID soulbound NFT token (SBT NFT)
All smart contracts are implemented in Solidity ^0.8.19
, using Hardhat as the Solidity development framework.
- NodeJS, v16.1.0+
- Hardhat, which is a comprehensive framework for Ethereum development.
`npm install`
`npx hardhat test`
setAuthorizationContractAddress(address _newContractAddress)
onlyOwners: allows owners to change authorization contract addresssetBaseURI(string calldata _newURI)
onlyOwners: allows owners to change NFT metadata base URItransferFrom(address from, address to, uint256 tokenId)
onlyOwners: transfers NFTburn(uint256 tokenId)
: Burns Selfkey.ID NFTbalanceOf(address owner)
: Returns NFT balance for a specific addressownerOf(uint256 tokenId)
: Returns address that owns tokenIdtokenURI(uint256 tokenId)
: Returns tokenURI for tokenIdtokenOfOwnerByIndex(address owner, uint256 index)
: Returns token ID for owner by indexmint(address to, bytes32 param, uint timestamp, address signer, bytes memory signature)
: Mints new token
Please see the contributing notes.
Copyright SelfKey DAO Foundation 2024. All rights reserved.