@p2pdotme/sdk 1.2.6 → 1.2.7

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/profile.mjs CHANGED
@@ -801,6 +801,38 @@ var reputationManagerAbi = [
801
801
  outputs: [{ internalType: "bool", name: "", type: "bool" }],
802
802
  stateMutability: "view",
803
803
  type: "function"
804
+ },
805
+ // ── BVN (Nigerian Bank Verification Number) attestation ─────────────────
806
+ { inputs: [], name: "BvnSignerNotSet", type: "error" },
807
+ { inputs: [], name: "BvnAttestationExpired", type: "error" },
808
+ { inputs: [], name: "BvnNullifierAlreadySpent", type: "error" },
809
+ { inputs: [], name: "BvnAlreadyVerified", type: "error" },
810
+ { inputs: [], name: "BvnInvalidSignature", type: "error" },
811
+ {
812
+ inputs: [
813
+ { internalType: "bytes32", name: "nullifier", type: "bytes32" },
814
+ { internalType: "uint256", name: "limit", type: "uint256" },
815
+ { internalType: "uint256", name: "expiry", type: "uint256" },
816
+ { internalType: "bytes", name: "signature", type: "bytes" }
817
+ ],
818
+ name: "submitBvnAttestation",
819
+ outputs: [],
820
+ stateMutability: "nonpayable",
821
+ type: "function"
822
+ },
823
+ {
824
+ inputs: [],
825
+ name: "bvnRp",
826
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
827
+ stateMutability: "view",
828
+ type: "function"
829
+ },
830
+ {
831
+ inputs: [{ internalType: "address", name: "", type: "address" }],
832
+ name: "bvnVerified",
833
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
834
+ stateMutability: "view",
835
+ type: "function"
804
836
  }
805
837
  ];
806
838
 
@@ -1499,6 +1531,20 @@ var ZodSimpleKycSubmitParamsSchema = z5.object({
1499
1531
  message: "signature must be a hex string"
1500
1532
  })
1501
1533
  });
1534
+ var ZodBvnSubmitParamsSchema = z5.object({
1535
+ /** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
1536
+ nullifier: z5.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
1537
+ message: "nullifier must be a bytes32 hex string"
1538
+ }),
1539
+ /** Remaining limit in micro-USDC (part of the signed struct). */
1540
+ limit: z5.bigint(),
1541
+ /** Attestation expiry (unix seconds). */
1542
+ expiry: z5.bigint(),
1543
+ /** 65-byte secp256k1 signature (hex). */
1544
+ signature: z5.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
1545
+ message: "signature must be a hex string"
1546
+ })
1547
+ });
1502
1548
 
1503
1549
  // src/contracts/tx-limits/index.ts
1504
1550
  import { ResultAsync as ResultAsync6 } from "neverthrow";