@pafi-dev/issuer 0.12.3 → 0.12.4
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 +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4348,7 +4348,7 @@ function createIssuerService(config) {
|
|
|
4348
4348
|
import { getAddress as getAddress12 } from "viem";
|
|
4349
4349
|
import {
|
|
4350
4350
|
POINT_TOKEN_V2_ABI as POINT_TOKEN_V2_ABI3,
|
|
4351
|
-
|
|
4351
|
+
issuerRegistryAbi,
|
|
4352
4352
|
getContractAddresses as getContractAddresses8,
|
|
4353
4353
|
getTokenCap
|
|
4354
4354
|
} from "@pafi-dev/core";
|
|
@@ -4475,20 +4475,20 @@ var IssuerStateValidator = class _IssuerStateValidator {
|
|
|
4475
4475
|
}
|
|
4476
4476
|
async fetchIssuerState(tokenAddr) {
|
|
4477
4477
|
const issuerAddr = await this.getIssuerAddressForPointToken(tokenAddr);
|
|
4478
|
-
const
|
|
4478
|
+
const issuerStruct = await this.provider.readContract({
|
|
4479
4479
|
address: this.registryAddress,
|
|
4480
|
-
abi:
|
|
4480
|
+
abi: issuerRegistryAbi,
|
|
4481
4481
|
functionName: "getIssuer",
|
|
4482
4482
|
args: [issuerAddr]
|
|
4483
4483
|
});
|
|
4484
4484
|
const issuer = {
|
|
4485
|
-
issuerAddress:
|
|
4486
|
-
signerAddress:
|
|
4487
|
-
name:
|
|
4488
|
-
symbol:
|
|
4489
|
-
active:
|
|
4490
|
-
pointToken:
|
|
4491
|
-
mintingOracle:
|
|
4485
|
+
issuerAddress: issuerStruct.issuerAddress,
|
|
4486
|
+
signerAddress: issuerStruct.signerAddress,
|
|
4487
|
+
name: issuerStruct.name,
|
|
4488
|
+
symbol: issuerStruct.symbol,
|
|
4489
|
+
active: issuerStruct.active,
|
|
4490
|
+
pointToken: issuerStruct.pointToken,
|
|
4491
|
+
mintingOracle: issuerStruct.mintingOracle
|
|
4492
4492
|
};
|
|
4493
4493
|
const [tokenCap, totalSupply] = await Promise.all([
|
|
4494
4494
|
getTokenCap(this.provider, issuer.mintingOracle, tokenAddr),
|