Proof of Position
  • â„šī¸What is POPP?
    • Position Verification
    • Cryptographic Linking of Social Profiles
    • Cryptographic Linking of Communication Channels
    • Access to Exclusive Online Spaces
  • âš™ī¸How does it work?
    • đŸ•´ī¸Employer Badge
      • How do I get one?
    • 🔑Employee Access Card
    • 📃Employee Badge
  • đŸš´â€â™€ī¸Quick Start
    • Employer Badge
    • Employee Access Card
    • Employee Badge
    • Token Gates
  • â›“ī¸Reference
    • Employer Badge
    • Employee Badge
    • Employee Access Card
  • đŸ”ĻCode Audit
  • 🛒POPP Job Marketplace
Powered by GitBook
On this page
  • employerIdFromWallet
  • addToMyTeam
  • removeFromMyTeam
  • invalidFrom
  1. Reference

Employer Badge

A deep dive into the various methods in the Employer Badge ERC-1155 contract

The following assumes you have installed the required interface package and imported the working contract into your codebase.

employerIdFromWallet

This external function allows anyone to get an employer's unique identifier from any given wallet. This can be used to verify a particular message sender is a POPP verified employer from a particular organisation.

uint256 _employerId = employerSft.employerIdFromWallet(msg.sender);
require(_employerId == 1, "You need to be a Hooli employer to access");

addToMyTeam

Once you become a verified employer, you can now add wallets to your team using the addToMyTeam method. This will will allow you to scale the onboarding process for your organisation.

employerSft.addToMyTeam(_newEmployerWallet);

removeFromMyTeam

You can remove any team member using the external removeFromMyTeam function. This will burn the token and set the `inValidFrom` date (as a timestamp).

The invalidFrom timestamp is used for when an employer's wallet is compromised and any activity holding that token becomes invalid.

employerSft.removeFromMyTeam(_employerWallet, 1546360800);

invalidFrom

A way to check the timestamp when a given employer wallet was removed form the team.

employerSft.invalidFrom(_employerWallet);
PreviousReferenceNextEmployee Badge

Last updated 1 year ago

â›“ī¸