@pafi-dev/issuer 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1310,16 +1310,21 @@ var IssuerApiHandlers = class {
|
|
|
1310
1310
|
`handleUser: unsupported pointToken ${pointToken}`
|
|
1311
1311
|
);
|
|
1312
1312
|
}
|
|
1313
|
-
const [mintRequestNonce, receiverConsentNonce,
|
|
1313
|
+
const [mintRequestNonce, receiverConsentNonce, offChainBalance, onChainBalance, minter] = await Promise.all([
|
|
1314
1314
|
(0, import_core5.getMintRequestNonce)(this.provider, pointToken, normalizedAuthed),
|
|
1315
1315
|
(0, import_core5.getReceiverConsentNonce)(this.provider, pointToken, normalizedAuthed),
|
|
1316
1316
|
this.ledger.getBalance(normalizedAuthed),
|
|
1317
|
+
(0, import_core5.getPointTokenBalance)(this.provider, pointToken, normalizedAuthed),
|
|
1317
1318
|
(0, import_core5.isMinter)(this.provider, pointToken, normalizedAuthed)
|
|
1318
1319
|
]);
|
|
1319
1320
|
return {
|
|
1320
1321
|
mintRequestNonce,
|
|
1321
1322
|
receiverConsentNonce,
|
|
1322
|
-
|
|
1323
|
+
offChainBalance,
|
|
1324
|
+
onChainBalance,
|
|
1325
|
+
totalBalance: offChainBalance + onChainBalance,
|
|
1326
|
+
balance: offChainBalance,
|
|
1327
|
+
// deprecated alias
|
|
1323
1328
|
isMinter: minter
|
|
1324
1329
|
};
|
|
1325
1330
|
}
|