import { Notareum } from "@notareum/sdk";
import { Wallet } from "ethers";
const signer = new Wallet(process.env.PRIVATE_KEY!);
// Dummy contracts object, no on-chain calls below need real addresses
const contracts = {
notaToken: "0x" + "00".repeat(20),
veNota: "0x" + "00".repeat(20),
validatorStaking: "0x" + "00".repeat(20),
notaRegistry: "0x" + "00".repeat(20),
verificationEngine: "0x" + "00".repeat(20),
slashingManager: "0x" + "00".repeat(20),
feeManager: "0x" + "00".repeat(20),
accessManager: "0x" + "00".repeat(20),
};
const ntm = Notareum({ provider: signer.provider!, signer, contracts });
const signed = await ntm.nota
.create({
type: "address",
chainName: "ethereum",
chainId: 1,
identifier: await signer.getAddress(),
name: "Alice's hot wallet",
description: "Primary personal wallet",
issuerName: "Alice",
issuerEntityType: "individual",
})
.validate()
.sign(signer);
const wire = signed.serialize();
console.log(wire);