Employer Badge
Learn how to integrate the POPP employer badge into your code
To integrate our smart contracts you will need to install our interface
package
npm install popp-interfaces
After the npm package has been installed, you can now import the IEmployerSft
into your contract.
import "popp-interfaces/IEmployerSft.sol";
Then you will need to instantiate the contract:
IEmployerSft private employerSft;
function constructor(address _employerSftAddress) {
employerSft = IEmployerSft(_employerSftAddress);
}
You can now use the contract accordingly (refer to the reference):
uint256 _employerId = employerSft.employerIdFromWallet(msg.sender);
Last updated