@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.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
- issuerRegistryGetIssuerFlatAbi,
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 issuerTuple = await this.provider.readContract({
4478
+ const issuerStruct = await this.provider.readContract({
4479
4479
  address: this.registryAddress,
4480
- abi: issuerRegistryGetIssuerFlatAbi,
4480
+ abi: issuerRegistryAbi,
4481
4481
  functionName: "getIssuer",
4482
4482
  args: [issuerAddr]
4483
4483
  });
4484
4484
  const issuer = {
4485
- issuerAddress: issuerTuple[0],
4486
- signerAddress: issuerTuple[1],
4487
- name: issuerTuple[2],
4488
- symbol: issuerTuple[3],
4489
- active: issuerTuple[4],
4490
- pointToken: issuerTuple[5],
4491
- mintingOracle: issuerTuple[6]
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),