Handle Verification SBTs
const sbtContract = new ethers.Contract(
sbtContractAddr,
VerificationSbtABI.abi,
provider,
);
const sbtInfo = await sbtContract.getVerificationSBTInfo(
loggedUser,
loggedDApp,
);// go through all logs adding a verification SBT for the user
const filter = {
address: sbtContractAddr,
topics: [
ethers.utils.id('VerificationSBTMinted(address,address,bytes32)'),
dAppAddr ? ethers.utils.hexZeroPad(dAppAddr, 32) : null,
userAddr ? ethers.utils.hexZeroPad(userAddr, 32) : null,
humanID ? ethers.utils.hexZeroPad(humanID, 32) : null,
],
};
const createStakeLogs = await sbtContract.queryFilter(
filter as EventFilter,
0,
currentBlock,
);Last updated