@p2pdotme/sdk 1.2.1 → 1.2.2

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
@@ -802,6 +802,32 @@ var reputationManagerAbi = [
802
802
  outputs: [],
803
803
  stateMutability: "nonpayable",
804
804
  type: "function"
805
+ },
806
+ {
807
+ inputs: [
808
+ { internalType: "bytes32", name: "nullifier", type: "bytes32" },
809
+ { internalType: "uint256", name: "limit", type: "uint256" },
810
+ { internalType: "uint256", name: "expiry", type: "uint256" },
811
+ { internalType: "bytes", name: "signature", type: "bytes" }
812
+ ],
813
+ name: "submitKycAttestation",
814
+ outputs: [],
815
+ stateMutability: "nonpayable",
816
+ type: "function"
817
+ },
818
+ {
819
+ inputs: [],
820
+ name: "kycRp",
821
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
822
+ stateMutability: "view",
823
+ type: "function"
824
+ },
825
+ {
826
+ inputs: [{ internalType: "address", name: "", type: "address" }],
827
+ name: "kycVerified",
828
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
829
+ stateMutability: "view",
830
+ type: "function"
805
831
  }
806
832
  ];
807
833
 
@@ -1513,6 +1539,20 @@ var ZodZkPassportRegisterParamsSchema = import_zod5.z.object({
1513
1539
  params: ZodSolidityVerifierParametersSchema,
1514
1540
  isIDCard: import_zod5.z.boolean()
1515
1541
  });
1542
+ var ZodSimpleKycSubmitParamsSchema = import_zod5.z.object({
1543
+ /** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
1544
+ nullifier: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
1545
+ message: "nullifier must be a bytes32 hex string"
1546
+ }),
1547
+ /** Remaining limit in micro-USDC (part of the signed struct). */
1548
+ limit: import_zod5.z.bigint(),
1549
+ /** Attestation expiry (unix seconds). */
1550
+ expiry: import_zod5.z.bigint(),
1551
+ /** 65-byte secp256k1 signature (hex). */
1552
+ signature: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
1553
+ message: "signature must be a hex string"
1554
+ })
1555
+ });
1516
1556
 
1517
1557
  // src/contracts/tx-limits/index.ts
1518
1558
  var import_neverthrow8 = require("neverthrow");