@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/orders.mjs CHANGED
@@ -808,6 +808,38 @@ var reputationManagerAbi = [
808
808
  outputs: [{ internalType: "bool", name: "", type: "bool" }],
809
809
  stateMutability: "view",
810
810
  type: "function"
811
+ },
812
+ // ── BVN (Nigerian Bank Verification Number) attestation ─────────────────
813
+ { inputs: [], name: "BvnSignerNotSet", type: "error" },
814
+ { inputs: [], name: "BvnAttestationExpired", type: "error" },
815
+ { inputs: [], name: "BvnNullifierAlreadySpent", type: "error" },
816
+ { inputs: [], name: "BvnAlreadyVerified", type: "error" },
817
+ { inputs: [], name: "BvnInvalidSignature", type: "error" },
818
+ {
819
+ inputs: [
820
+ { internalType: "bytes32", name: "nullifier", type: "bytes32" },
821
+ { internalType: "uint256", name: "limit", type: "uint256" },
822
+ { internalType: "uint256", name: "expiry", type: "uint256" },
823
+ { internalType: "bytes", name: "signature", type: "bytes" }
824
+ ],
825
+ name: "submitBvnAttestation",
826
+ outputs: [],
827
+ stateMutability: "nonpayable",
828
+ type: "function"
829
+ },
830
+ {
831
+ inputs: [],
832
+ name: "bvnRp",
833
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
834
+ stateMutability: "view",
835
+ type: "function"
836
+ },
837
+ {
838
+ inputs: [{ internalType: "address", name: "", type: "address" }],
839
+ name: "bvnVerified",
840
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
841
+ stateMutability: "view",
842
+ type: "function"
811
843
  }
812
844
  ];
813
845
 
@@ -5402,6 +5434,20 @@ var ZodSimpleKycSubmitParamsSchema = z8.object({
5402
5434
  message: "signature must be a hex string"
5403
5435
  })
5404
5436
  });
5437
+ var ZodBvnSubmitParamsSchema = z8.object({
5438
+ /** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
5439
+ nullifier: z8.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
5440
+ message: "nullifier must be a bytes32 hex string"
5441
+ }),
5442
+ /** Remaining limit in micro-USDC (part of the signed struct). */
5443
+ limit: z8.bigint(),
5444
+ /** Attestation expiry (unix seconds). */
5445
+ expiry: z8.bigint(),
5446
+ /** 65-byte secp256k1 signature (hex). */
5447
+ signature: z8.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
5448
+ message: "signature must be a hex string"
5449
+ })
5450
+ });
5405
5451
 
5406
5452
  // src/contracts/tx-limits/index.ts
5407
5453
  import { ResultAsync as ResultAsync9 } from "neverthrow";