@miquel-cabot-masa-finance/masa-contracts-identity
v0.1.3
Published
## Contract Deployments
Downloads
5
Readme
Masa Soul Bound NFTs
Contract Deployments
Celo: Alfajores
SoulBoundCreditReport
:0x6F5a1CEfB1021cb188EBAe4c0118bfD5c71edBD7
SoulBoundIdentity
:0x1be6c425d17380D0BCF62099a27BE4e9c5cF8719
SoulLinker
:0xa703e73025f8169cbf299ED727a80eD845315dF2
Rinkeby test network
SoulBoundCreditReport
:0xadAC98BB4f783Fea5478D496c777677521Ce305a
SoulBoundIdentity
:0x241333a729aE0a49Eb5d595a8866162EE5a5920c
SoulLinker
:0x0c142eCec9B4f8fD2C967b4698D3927ce1532eCF
Configuration
Only the owner
is allowed to mint SBTs.
BASE_URI
: https://dev.api.masa.finance/v1.0
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 rolesowner
: Delegated to the Masa Service account inside the Masa API. It has the rights to mint tokens to customers wallets.
Interface
- Abstract Soul Bound Token Definition
- Soul Bound Identity Definition
- Soul Bound Credit Report Definition
- Soul Linker Definition
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());