@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/orders.mjs
CHANGED
|
@@ -840,6 +840,39 @@ var reputationManagerAbi = [
|
|
|
840
840
|
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
841
841
|
stateMutability: "view",
|
|
842
842
|
type: "function"
|
|
843
|
+
},
|
|
844
|
+
// ── Liveness (face-only, no document) attestation ───────────────────────
|
|
845
|
+
{ inputs: [], name: "LivenessSignerNotSet", type: "error" },
|
|
846
|
+
{ inputs: [], name: "LivenessAttestationExpired", type: "error" },
|
|
847
|
+
{ inputs: [], name: "LivenessNullifierZero", type: "error" },
|
|
848
|
+
{ inputs: [], name: "LivenessNullifierAlreadySpent", type: "error" },
|
|
849
|
+
{ inputs: [], name: "LivenessAlreadyVerified", type: "error" },
|
|
850
|
+
{ inputs: [], name: "LivenessInvalidSignature", type: "error" },
|
|
851
|
+
{
|
|
852
|
+
inputs: [
|
|
853
|
+
{ internalType: "bytes32", name: "nullifier", type: "bytes32" },
|
|
854
|
+
{ internalType: "uint256", name: "limit", type: "uint256" },
|
|
855
|
+
{ internalType: "uint256", name: "expiry", type: "uint256" },
|
|
856
|
+
{ internalType: "bytes", name: "signature", type: "bytes" }
|
|
857
|
+
],
|
|
858
|
+
name: "submitLivenessAttestation",
|
|
859
|
+
outputs: [],
|
|
860
|
+
stateMutability: "nonpayable",
|
|
861
|
+
type: "function"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
inputs: [],
|
|
865
|
+
name: "livenessRp",
|
|
866
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
867
|
+
stateMutability: "view",
|
|
868
|
+
type: "function"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
872
|
+
name: "livenessVerified",
|
|
873
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
874
|
+
stateMutability: "view",
|
|
875
|
+
type: "function"
|
|
843
876
|
}
|
|
844
877
|
];
|
|
845
878
|
|
|
@@ -5450,6 +5483,20 @@ var ZodBvnSubmitParamsSchema = z8.object({
|
|
|
5450
5483
|
message: "signature must be a hex string"
|
|
5451
5484
|
})
|
|
5452
5485
|
});
|
|
5486
|
+
var ZodLivenessSubmitParamsSchema = z8.object({
|
|
5487
|
+
/** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
|
|
5488
|
+
nullifier: z8.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
|
|
5489
|
+
message: "nullifier must be a bytes32 hex string"
|
|
5490
|
+
}),
|
|
5491
|
+
/** Remaining limit in micro-USDC (part of the signed struct). */
|
|
5492
|
+
limit: z8.bigint(),
|
|
5493
|
+
/** Attestation expiry (unix seconds). */
|
|
5494
|
+
expiry: z8.bigint(),
|
|
5495
|
+
/** 65-byte secp256k1 signature (hex). */
|
|
5496
|
+
signature: z8.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
|
|
5497
|
+
message: "signature must be a hex string"
|
|
5498
|
+
})
|
|
5499
|
+
});
|
|
5453
5500
|
|
|
5454
5501
|
// src/contracts/tx-limits/index.ts
|
|
5455
5502
|
import { ResultAsync as ResultAsync9 } from "neverthrow";
|