@p2pdotme/sdk 1.2.1 → 1.2.3

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.
Files changed (60) hide show
  1. package/README.md +1 -1
  2. package/dist/country.cjs +117 -2
  3. package/dist/country.cjs.map +1 -1
  4. package/dist/country.d.cts +13 -1
  5. package/dist/country.d.ts +13 -1
  6. package/dist/country.mjs +114 -2
  7. package/dist/country.mjs.map +1 -1
  8. package/dist/fraud-engine.cjs +2 -1
  9. package/dist/fraud-engine.cjs.map +1 -1
  10. package/dist/fraud-engine.mjs +2 -1
  11. package/dist/fraud-engine.mjs.map +1 -1
  12. package/dist/index.cjs +3 -2
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +1 -0
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.mjs +3 -2
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/orders.cjs +42 -1
  19. package/dist/orders.cjs.map +1 -1
  20. package/dist/orders.d.cts +2 -0
  21. package/dist/orders.d.ts +2 -0
  22. package/dist/orders.mjs +42 -1
  23. package/dist/orders.mjs.map +1 -1
  24. package/dist/prices.cjs +42 -1
  25. package/dist/prices.cjs.map +1 -1
  26. package/dist/prices.d.cts +1 -0
  27. package/dist/prices.d.ts +1 -0
  28. package/dist/prices.mjs +42 -1
  29. package/dist/prices.mjs.map +1 -1
  30. package/dist/profile.cjs +42 -1
  31. package/dist/profile.cjs.map +1 -1
  32. package/dist/profile.d.cts +2 -0
  33. package/dist/profile.d.ts +2 -0
  34. package/dist/profile.mjs +42 -1
  35. package/dist/profile.mjs.map +1 -1
  36. package/dist/qr-parsers.cjs +50 -1
  37. package/dist/qr-parsers.cjs.map +1 -1
  38. package/dist/qr-parsers.d.cts +1 -0
  39. package/dist/qr-parsers.d.ts +1 -0
  40. package/dist/qr-parsers.mjs +50 -1
  41. package/dist/qr-parsers.mjs.map +1 -1
  42. package/dist/react.cjs +71 -2
  43. package/dist/react.cjs.map +1 -1
  44. package/dist/react.d.cts +18 -1
  45. package/dist/react.d.ts +18 -1
  46. package/dist/react.mjs +71 -2
  47. package/dist/react.mjs.map +1 -1
  48. package/dist/stake.cjs +28 -1
  49. package/dist/stake.cjs.map +1 -1
  50. package/dist/stake.d.cts +1 -0
  51. package/dist/stake.d.ts +1 -0
  52. package/dist/stake.mjs +28 -1
  53. package/dist/stake.mjs.map +1 -1
  54. package/dist/zkkyc.cjs +234 -51
  55. package/dist/zkkyc.cjs.map +1 -1
  56. package/dist/zkkyc.d.cts +106 -5
  57. package/dist/zkkyc.d.ts +106 -5
  58. package/dist/zkkyc.mjs +230 -50
  59. package/dist/zkkyc.mjs.map +1 -1
  60. package/package.json +32 -12
package/dist/profile.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
 
@@ -1286,7 +1312,8 @@ var CURRENCY = {
1286
1312
  EUR: "EUR",
1287
1313
  NGN: "NGN",
1288
1314
  USD: "USD",
1289
- COP: "COP"
1315
+ COP: "COP",
1316
+ ECU: "ECU"
1290
1317
  };
1291
1318
  var CURRENCY_CODES = Object.values(CURRENCY);
1292
1319
 
@@ -1484,6 +1511,20 @@ var ZodZkPassportRegisterParamsSchema = import_zod5.z.object({
1484
1511
  params: ZodSolidityVerifierParametersSchema,
1485
1512
  isIDCard: import_zod5.z.boolean()
1486
1513
  });
1514
+ var ZodSimpleKycSubmitParamsSchema = import_zod5.z.object({
1515
+ /** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
1516
+ nullifier: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
1517
+ message: "nullifier must be a bytes32 hex string"
1518
+ }),
1519
+ /** Remaining limit in micro-USDC (part of the signed struct). */
1520
+ limit: import_zod5.z.bigint(),
1521
+ /** Attestation expiry (unix seconds). */
1522
+ expiry: import_zod5.z.bigint(),
1523
+ /** 65-byte secp256k1 signature (hex). */
1524
+ signature: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
1525
+ message: "signature must be a hex string"
1526
+ })
1527
+ });
1487
1528
 
1488
1529
  // src/contracts/tx-limits/index.ts
1489
1530
  var import_neverthrow8 = require("neverthrow");