@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.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
 
@@ -1528,6 +1560,20 @@ var ZodSimpleKycSubmitParamsSchema = z5.object({
1528
1560
  message: "signature must be a hex string"
1529
1561
  })
1530
1562
  });
1563
+ var ZodBvnSubmitParamsSchema = z5.object({
1564
+ /** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
1565
+ nullifier: z5.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
1566
+ message: "nullifier must be a bytes32 hex string"
1567
+ }),
1568
+ /** Remaining limit in micro-USDC (part of the signed struct). */
1569
+ limit: z5.bigint(),
1570
+ /** Attestation expiry (unix seconds). */
1571
+ expiry: z5.bigint(),
1572
+ /** 65-byte secp256k1 signature (hex). */
1573
+ signature: z5.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
1574
+ message: "signature must be a hex string"
1575
+ })
1576
+ });
1531
1577
 
1532
1578
  // src/contracts/tx-limits/index.ts
1533
1579
  import { ResultAsync as ResultAsync6 } from "neverthrow";