1.0.7 • Published 2 years ago

@spacebudz/spacebudz-identity v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Validity

The policy id for the identity tokens:

e47f849c5262b93b46789251519ec0a7921087b84b3782b871497e8f

Usage

import Identity from "@spacebudz/spacebudz-identity"

const lucid = await Identity.Lucid.new(new Identity.Blockfrost("https://cardano-mainnet.blockfrost.io/api/v0", projectId));
const api = await window.cardano.nami.enable();
lucid.selectWallet(api);

const contract = new Identity.Contract(lucid);

// Update the identity for SpaceBud #995
const txHash = await contract.updateIdentity(995, {nickname: "Berry"});

await lucid.awaitTx(txHash);

const identity = await contract.getIdentity(995);
console.log(identity);

NPM

npm install @spacebudz/spacebudz-identity

From source

Install dependencies

npm install

Generate build

npm run build

Verify contract

npm run build:contract

This will generate the serialized scripts under ./src/onchain/scripts.json

How the contract works

Schema

All keys are optional

{
    "nickname": "string",
    "urbit": ["urbit_id"],
    "twitter": ["@profile"],
    "discord": ["username"],
    "email": ["email_address"],
    "color": "string hex color"
}
1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago