0.1.3 • Published 3 years ago

@miquel-cabot-masa-finance/masa-contracts-identity v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Masa Soul Bound NFTs

Contract Deployments

Celo: Alfajores

Rinkeby test network

Configuration

Only the owner is allowed to mint SBTs.

The base url for the Metadata url that is beeing generated from the contract

Roles

  • deployer: Deploys the contract, has no rights after everything has properlty handed over to other roles
  • owner: Delegated to the Masa Service account inside the Masa API. It has the rights to mint tokens to customers wallets.

Interface

Deployment

Preparations

  • Set DEPLOYER_PRIVATE_KEY to the deployers private key in .env.{network}.secret
  • Set INFURA_API_KEY to the Infura API key in .env.{network}.secret, if needed

Deploy

Run: yarn deploy --network {network} to deploy.

Installation and usage

Installing via npm package:

npm i @masa-finance/masa-contracts-identity

Import in your project:

import { SoulBoundIdentity, SoulBoundIdentity__factory } from "@masa-finance/masa-contracts-identity";

const soulBoundIdentity: SoulBoundIdentity = SoulBoundIdentity__factory.connect(
      <address> // address of the deployed contract,
      <provider> // web3 provider
    );
console.log(await soulBoundIdentity.symbol());