@p2pdotme/sdk 1.2.6 → 1.2.8

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/prices.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
 
@@ -1555,6 +1587,20 @@ var ZodSimpleKycSubmitParamsSchema = import_zod5.z.object({
1555
1587
  message: "signature must be a hex string"
1556
1588
  })
1557
1589
  });
1590
+ var ZodBvnSubmitParamsSchema = import_zod5.z.object({
1591
+ /** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
1592
+ nullifier: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
1593
+ message: "nullifier must be a bytes32 hex string"
1594
+ }),
1595
+ /** Remaining limit in micro-USDC (part of the signed struct). */
1596
+ limit: import_zod5.z.bigint(),
1597
+ /** Attestation expiry (unix seconds). */
1598
+ expiry: import_zod5.z.bigint(),
1599
+ /** 65-byte secp256k1 signature (hex). */
1600
+ signature: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
1601
+ message: "signature must be a hex string"
1602
+ })
1603
+ });
1558
1604
 
1559
1605
  // src/contracts/tx-limits/index.ts
1560
1606
  var import_neverthrow8 = require("neverthrow");