@p2pdotme/sdk 1.2.12 → 1.2.13
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/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/orders.cjs +47 -0
- package/dist/orders.cjs.map +1 -1
- package/dist/orders.mjs +47 -0
- package/dist/orders.mjs.map +1 -1
- package/dist/prices.cjs +47 -0
- package/dist/prices.cjs.map +1 -1
- package/dist/prices.mjs +47 -0
- package/dist/prices.mjs.map +1 -1
- package/dist/profile.cjs +47 -0
- package/dist/profile.cjs.map +1 -1
- package/dist/profile.mjs +47 -0
- package/dist/profile.mjs.map +1 -1
- package/dist/react.cjs +76 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +12 -1
- package/dist/react.d.ts +12 -1
- package/dist/react.mjs +76 -1
- package/dist/react.mjs.map +1 -1
- package/dist/stake.cjs +33 -0
- package/dist/stake.cjs.map +1 -1
- package/dist/stake.mjs +33 -0
- package/dist/stake.mjs.map +1 -1
- package/dist/zkkyc.cjs +190 -29
- package/dist/zkkyc.cjs.map +1 -1
- package/dist/zkkyc.d.cts +107 -10
- package/dist/zkkyc.d.ts +107 -10
- package/dist/zkkyc.mjs +187 -29
- package/dist/zkkyc.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -68,7 +68,7 @@ var ZodAddressSchema = import_zod.z.string().refine((s) => (0, import_viem.isAdd
|
|
|
68
68
|
var ZodCurrencySchema = import_zod.z.enum(CURRENCY_CODES);
|
|
69
69
|
|
|
70
70
|
// src/index.ts
|
|
71
|
-
var VERSION = "1.2.
|
|
71
|
+
var VERSION = "1.2.13";
|
|
72
72
|
// Annotate the CommonJS export names for ESM import in node:
|
|
73
73
|
0 && (module.exports = {
|
|
74
74
|
SdkError,
|
package/dist/index.mjs
CHANGED
package/dist/orders.cjs
CHANGED
|
@@ -889,6 +889,39 @@ var reputationManagerAbi = [
|
|
|
889
889
|
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
890
890
|
stateMutability: "view",
|
|
891
891
|
type: "function"
|
|
892
|
+
},
|
|
893
|
+
// ── Liveness (face-only, no document) attestation ───────────────────────
|
|
894
|
+
{ inputs: [], name: "LivenessSignerNotSet", type: "error" },
|
|
895
|
+
{ inputs: [], name: "LivenessAttestationExpired", type: "error" },
|
|
896
|
+
{ inputs: [], name: "LivenessNullifierZero", type: "error" },
|
|
897
|
+
{ inputs: [], name: "LivenessNullifierAlreadySpent", type: "error" },
|
|
898
|
+
{ inputs: [], name: "LivenessAlreadyVerified", type: "error" },
|
|
899
|
+
{ inputs: [], name: "LivenessInvalidSignature", type: "error" },
|
|
900
|
+
{
|
|
901
|
+
inputs: [
|
|
902
|
+
{ internalType: "bytes32", name: "nullifier", type: "bytes32" },
|
|
903
|
+
{ internalType: "uint256", name: "limit", type: "uint256" },
|
|
904
|
+
{ internalType: "uint256", name: "expiry", type: "uint256" },
|
|
905
|
+
{ internalType: "bytes", name: "signature", type: "bytes" }
|
|
906
|
+
],
|
|
907
|
+
name: "submitLivenessAttestation",
|
|
908
|
+
outputs: [],
|
|
909
|
+
stateMutability: "nonpayable",
|
|
910
|
+
type: "function"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
inputs: [],
|
|
914
|
+
name: "livenessRp",
|
|
915
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
916
|
+
stateMutability: "view",
|
|
917
|
+
type: "function"
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
921
|
+
name: "livenessVerified",
|
|
922
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
923
|
+
stateMutability: "view",
|
|
924
|
+
type: "function"
|
|
892
925
|
}
|
|
893
926
|
];
|
|
894
927
|
|
|
@@ -5499,6 +5532,20 @@ var ZodBvnSubmitParamsSchema = import_zod8.z.object({
|
|
|
5499
5532
|
message: "signature must be a hex string"
|
|
5500
5533
|
})
|
|
5501
5534
|
});
|
|
5535
|
+
var ZodLivenessSubmitParamsSchema = import_zod8.z.object({
|
|
5536
|
+
/** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
|
|
5537
|
+
nullifier: import_zod8.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
|
|
5538
|
+
message: "nullifier must be a bytes32 hex string"
|
|
5539
|
+
}),
|
|
5540
|
+
/** Remaining limit in micro-USDC (part of the signed struct). */
|
|
5541
|
+
limit: import_zod8.z.bigint(),
|
|
5542
|
+
/** Attestation expiry (unix seconds). */
|
|
5543
|
+
expiry: import_zod8.z.bigint(),
|
|
5544
|
+
/** 65-byte secp256k1 signature (hex). */
|
|
5545
|
+
signature: import_zod8.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
|
|
5546
|
+
message: "signature must be a hex string"
|
|
5547
|
+
})
|
|
5548
|
+
});
|
|
5502
5549
|
|
|
5503
5550
|
// src/contracts/tx-limits/index.ts
|
|
5504
5551
|
var import_neverthrow11 = require("neverthrow");
|