90d27d342c0ad956db535a6157d6d7eee6e13c547c1e3abe8a2f26c7e9f02a5b.json raw
1 {"ast":null,"code":"import { v4 as uuidv4 } from 'uuid';\nimport { EntityId } from './entity-id';\n/**\n * Strongly-typed identifier for NWC wallet connection entities.\n */\nexport class NwcConnectionId extends EntityId {\n _brand = 'NwcConnectionId';\n constructor(value) {\n super(value);\n }\n static generate() {\n return new NwcConnectionId(uuidv4());\n }\n static from(value) {\n return new NwcConnectionId(value);\n }\n equals(other) {\n return other instanceof NwcConnectionId && this._value === other._value;\n }\n}\n/**\n * Strongly-typed identifier for Cashu mint entities.\n */\nexport class CashuMintId extends EntityId {\n _brand = 'CashuMintId';\n constructor(value) {\n super(value);\n }\n static generate() {\n return new CashuMintId(uuidv4());\n }\n static from(value) {\n return new CashuMintId(value);\n }\n equals(other) {\n return other instanceof CashuMintId && this._value === other._value;\n }\n}","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}