This repository contains contract interfaces for various languages.
!!Important!!
State contract abi is stable, and in minor versions new functionality can be added. Meantime Onchain Resovler and Identity are not stable yet and ABI can be updated in minor versions of package.
jq
npm
Before running the ./generator
script, you need to clone the contracts repository or create a symlink to it:
ln -s $PATH_TO_CONTRACTS contracts
./generator
- Copy
package.json
,tsconfig.json
and.gitignore
from existing project withjs
folder. - Change corresponding name in the
package.json
. - Install dependencies with
npm i
. - Create
src
folder. - Copy abi
.json
insrc
folder from compiled artifacts incontracts/artifacts
fromiden3/contracts
hardhat project. - Run command
npx typechain --target=ethers-v6 src/<your_abi>.json --out-dir ./src
replacing<your_abi>
with the correct filename.
Method signature | Method id |
---|---|
IIdentifiable | 0x5d1ca631 |
INonMerklizedIssuer | 0x58874949 |
supportsInterface(bytes4) | 0x01ffc9a7 |
getUserCredentialIds(uint256) | 0x668d0bd4 |
getCredential(uint256,uint256) | 0x37c1d9ff |
getCredentialAdapterVersion() | 0x09cb9b62 |
Method signature | Method id |
---|---|
getZKPRequestsCount() | 0x6508e1b4 |
getZKPRequest(uint64) | 0xc76d0845 |
getZKPRequests(uint256,uint256) | 0x5f9e60d7 |
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as below, without any additional terms or conditions.
Copyright 2023 0kims Association
This project is licensed under either of
at your option.