Kinto ID gives developers all the functionality to verify on-chain whether a given address has the appropriate KYC, accreditation requirements. Kinto ID also provides functionality to check AML sanctions.
Check to our gitbook to see all the documentation.
You can check all the public methods in the interface here
function isKYC(address _account) external view returns (bool);
function isSanctionsMonitored(uint32 _days) external view returns (bool);
function isSanctionsSafe(address _account) external view returns (bool);
function isSanctionsSafeIn(address _account, uint8 _countryId) external view returns (bool);
function isCompany(address _account) external view returns (bool);
function isIndividual(address _account) external view returns (bool);
function mintedAt(address _account) external view returns (uint256);
function hasTrait(address _account, uint8 index) external view returns (bool);
function traits(address _account) external view returns (bool[] memory);
- Install Foundry
- Copy .env.sample to .env and fill the values. After you deploy the proxy make sure to fill its address as well.
In order to run the tests, execute the following command:
forge test
source .env && forge script script/deploy.sol:KintoInitialDeployScript --rpc-url $KINTO_RPC_URL --broadcast -vvvv
source .env && forge script script/deploy.sol:KintoUpgradeScript --rpc-url $KINTO_RPC_URL --broadcast -vvvv
Check that the contract is deployed:
cast call $ID_PROXY_ADDRESS "name()(string)" --rpc-url $KINTO_RPC_URL
Call KYC on an address
cast call $ID_PROXY_ADDRESS "isKYC(address)(bool)" 0xa8beb41cf4721121ea58837ebdbd36169a7f246e --rpc-url $KINTO_RPC_URL
In order to deploy non upgradeable contracts, use the following command:
forge create --rpc-url $KINTO_RPC_URL --private-key <your_private_key> src/<CONTRACT_NAME>
On Testnet:
forge verify-contract --watch --verifier blockscout --chain-id 42888 --verifier-url http://test-explorer.kinto.xyz/api --num-of-optimizations 100000 0xE40C427226D78060062670E341b0d8D8e66d725A ETHPriceIsRight