@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/prices.d.cts CHANGED
@@ -61,6 +61,7 @@ declare const ZodCurrencyScopedParamsSchema: z.ZodObject<{
61
61
  NGN: "NGN";
62
62
  USD: "USD";
63
63
  COP: "COP";
64
+ ECU: "ECU";
64
65
  }>;
65
66
  }, z.core.$strip>;
66
67
  type CurrencyScopedParams = z.infer<typeof ZodCurrencyScopedParamsSchema>;
package/dist/prices.d.ts CHANGED
@@ -61,6 +61,7 @@ declare const ZodCurrencyScopedParamsSchema: z.ZodObject<{
61
61
  NGN: "NGN";
62
62
  USD: "USD";
63
63
  COP: "COP";
64
+ ECU: "ECU";
64
65
  }>;
65
66
  }, z.core.$strip>;
66
67
  type CurrencyScopedParams = z.infer<typeof ZodCurrencyScopedParamsSchema>;
package/dist/prices.mjs CHANGED
@@ -775,6 +775,32 @@ var reputationManagerAbi = [
775
775
  outputs: [],
776
776
  stateMutability: "nonpayable",
777
777
  type: "function"
778
+ },
779
+ {
780
+ inputs: [
781
+ { internalType: "bytes32", name: "nullifier", type: "bytes32" },
782
+ { internalType: "uint256", name: "limit", type: "uint256" },
783
+ { internalType: "uint256", name: "expiry", type: "uint256" },
784
+ { internalType: "bytes", name: "signature", type: "bytes" }
785
+ ],
786
+ name: "submitKycAttestation",
787
+ outputs: [],
788
+ stateMutability: "nonpayable",
789
+ type: "function"
790
+ },
791
+ {
792
+ inputs: [],
793
+ name: "kycRp",
794
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
795
+ stateMutability: "view",
796
+ type: "function"
797
+ },
798
+ {
799
+ inputs: [{ internalType: "address", name: "", type: "address" }],
800
+ name: "kycVerified",
801
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
802
+ stateMutability: "view",
803
+ type: "function"
778
804
  }
779
805
  ];
780
806
 
@@ -1259,7 +1285,8 @@ var CURRENCY = {
1259
1285
  EUR: "EUR",
1260
1286
  NGN: "NGN",
1261
1287
  USD: "USD",
1262
- COP: "COP"
1288
+ COP: "COP",
1289
+ ECU: "ECU"
1263
1290
  };
1264
1291
  var CURRENCY_CODES = Object.values(CURRENCY);
1265
1292
 
@@ -1486,6 +1513,20 @@ var ZodZkPassportRegisterParamsSchema = z5.object({
1486
1513
  params: ZodSolidityVerifierParametersSchema,
1487
1514
  isIDCard: z5.boolean()
1488
1515
  });
1516
+ var ZodSimpleKycSubmitParamsSchema = z5.object({
1517
+ /** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
1518
+ nullifier: z5.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
1519
+ message: "nullifier must be a bytes32 hex string"
1520
+ }),
1521
+ /** Remaining limit in micro-USDC (part of the signed struct). */
1522
+ limit: z5.bigint(),
1523
+ /** Attestation expiry (unix seconds). */
1524
+ expiry: z5.bigint(),
1525
+ /** 65-byte secp256k1 signature (hex). */
1526
+ signature: z5.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
1527
+ message: "signature must be a hex string"
1528
+ })
1529
+ });
1489
1530
 
1490
1531
  // src/contracts/tx-limits/index.ts
1491
1532
  import { ResultAsync as ResultAsync6 } from "neverthrow";