@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.cjs CHANGED
@@ -828,6 +828,38 @@ var reputationManagerAbi = [
828
828
  outputs: [{ internalType: "bool", name: "", type: "bool" }],
829
829
  stateMutability: "view",
830
830
  type: "function"
831
+ },
832
+ // ── BVN (Nigerian Bank Verification Number) attestation ─────────────────
833
+ { inputs: [], name: "BvnSignerNotSet", type: "error" },
834
+ { inputs: [], name: "BvnAttestationExpired", type: "error" },
835
+ { inputs: [], name: "BvnNullifierAlreadySpent", type: "error" },
836
+ { inputs: [], name: "BvnAlreadyVerified", type: "error" },
837
+ { inputs: [], name: "BvnInvalidSignature", type: "error" },
838
+ {
839
+ inputs: [
840
+ { internalType: "bytes32", name: "nullifier", type: "bytes32" },
841
+ { internalType: "uint256", name: "limit", type: "uint256" },
842
+ { internalType: "uint256", name: "expiry", type: "uint256" },
843
+ { internalType: "bytes", name: "signature", type: "bytes" }
844
+ ],
845
+ name: "submitBvnAttestation",
846
+ outputs: [],
847
+ stateMutability: "nonpayable",
848
+ type: "function"
849
+ },
850
+ {
851
+ inputs: [],
852
+ name: "bvnRp",
853
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
854
+ stateMutability: "view",
855
+ type: "function"
856
+ },
857
+ {
858
+ inputs: [{ internalType: "address", name: "", type: "address" }],
859
+ name: "bvnVerified",
860
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
861
+ stateMutability: "view",
862
+ type: "function"
831
863
  }
832
864
  ];
833
865
 
@@ -1526,6 +1558,20 @@ var ZodSimpleKycSubmitParamsSchema = import_zod5.z.object({
1526
1558
  message: "signature must be a hex string"
1527
1559
  })
1528
1560
  });
1561
+ var ZodBvnSubmitParamsSchema = import_zod5.z.object({
1562
+ /** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
1563
+ nullifier: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
1564
+ message: "nullifier must be a bytes32 hex string"
1565
+ }),
1566
+ /** Remaining limit in micro-USDC (part of the signed struct). */
1567
+ limit: import_zod5.z.bigint(),
1568
+ /** Attestation expiry (unix seconds). */
1569
+ expiry: import_zod5.z.bigint(),
1570
+ /** 65-byte secp256k1 signature (hex). */
1571
+ signature: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
1572
+ message: "signature must be a hex string"
1573
+ })
1574
+ });
1529
1575
 
1530
1576
  // src/contracts/tx-limits/index.ts
1531
1577
  var import_neverthrow8 = require("neverthrow");