@p2pdotme/sdk 1.2.5 → 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/orders.cjs CHANGED
@@ -857,6 +857,38 @@ var reputationManagerAbi = [
857
857
  outputs: [{ internalType: "bool", name: "", type: "bool" }],
858
858
  stateMutability: "view",
859
859
  type: "function"
860
+ },
861
+ // ── BVN (Nigerian Bank Verification Number) attestation ─────────────────
862
+ { inputs: [], name: "BvnSignerNotSet", type: "error" },
863
+ { inputs: [], name: "BvnAttestationExpired", type: "error" },
864
+ { inputs: [], name: "BvnNullifierAlreadySpent", type: "error" },
865
+ { inputs: [], name: "BvnAlreadyVerified", type: "error" },
866
+ { inputs: [], name: "BvnInvalidSignature", type: "error" },
867
+ {
868
+ inputs: [
869
+ { internalType: "bytes32", name: "nullifier", type: "bytes32" },
870
+ { internalType: "uint256", name: "limit", type: "uint256" },
871
+ { internalType: "uint256", name: "expiry", type: "uint256" },
872
+ { internalType: "bytes", name: "signature", type: "bytes" }
873
+ ],
874
+ name: "submitBvnAttestation",
875
+ outputs: [],
876
+ stateMutability: "nonpayable",
877
+ type: "function"
878
+ },
879
+ {
880
+ inputs: [],
881
+ name: "bvnRp",
882
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
883
+ stateMutability: "view",
884
+ type: "function"
885
+ },
886
+ {
887
+ inputs: [{ internalType: "address", name: "", type: "address" }],
888
+ name: "bvnVerified",
889
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
890
+ stateMutability: "view",
891
+ type: "function"
860
892
  }
861
893
  ];
862
894
 
@@ -5451,6 +5483,20 @@ var ZodSimpleKycSubmitParamsSchema = import_zod8.z.object({
5451
5483
  message: "signature must be a hex string"
5452
5484
  })
5453
5485
  });
5486
+ var ZodBvnSubmitParamsSchema = import_zod8.z.object({
5487
+ /** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
5488
+ nullifier: import_zod8.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
5489
+ message: "nullifier must be a bytes32 hex string"
5490
+ }),
5491
+ /** Remaining limit in micro-USDC (part of the signed struct). */
5492
+ limit: import_zod8.z.bigint(),
5493
+ /** Attestation expiry (unix seconds). */
5494
+ expiry: import_zod8.z.bigint(),
5495
+ /** 65-byte secp256k1 signature (hex). */
5496
+ signature: import_zod8.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
5497
+ message: "signature must be a hex string"
5498
+ })
5499
+ });
5454
5500
 
5455
5501
  // src/contracts/tx-limits/index.ts
5456
5502
  var import_neverthrow11 = require("neverthrow");