@p2pdotme/sdk 1.2.11 → 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/country.cjs +1 -1
- package/dist/country.cjs.map +1 -1
- package/dist/country.mjs +1 -1
- package/dist/country.mjs.map +1 -1
- 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/qr-parsers.cjs +50 -1
- package/dist/qr-parsers.cjs.map +1 -1
- package/dist/qr-parsers.d.cts +1 -1
- package/dist/qr-parsers.d.ts +1 -1
- package/dist/qr-parsers.mjs +50 -1
- package/dist/qr-parsers.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/profile.mjs
CHANGED
|
@@ -833,6 +833,39 @@ var reputationManagerAbi = [
|
|
|
833
833
|
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
834
834
|
stateMutability: "view",
|
|
835
835
|
type: "function"
|
|
836
|
+
},
|
|
837
|
+
// ── Liveness (face-only, no document) attestation ───────────────────────
|
|
838
|
+
{ inputs: [], name: "LivenessSignerNotSet", type: "error" },
|
|
839
|
+
{ inputs: [], name: "LivenessAttestationExpired", type: "error" },
|
|
840
|
+
{ inputs: [], name: "LivenessNullifierZero", type: "error" },
|
|
841
|
+
{ inputs: [], name: "LivenessNullifierAlreadySpent", type: "error" },
|
|
842
|
+
{ inputs: [], name: "LivenessAlreadyVerified", type: "error" },
|
|
843
|
+
{ inputs: [], name: "LivenessInvalidSignature", type: "error" },
|
|
844
|
+
{
|
|
845
|
+
inputs: [
|
|
846
|
+
{ internalType: "bytes32", name: "nullifier", type: "bytes32" },
|
|
847
|
+
{ internalType: "uint256", name: "limit", type: "uint256" },
|
|
848
|
+
{ internalType: "uint256", name: "expiry", type: "uint256" },
|
|
849
|
+
{ internalType: "bytes", name: "signature", type: "bytes" }
|
|
850
|
+
],
|
|
851
|
+
name: "submitLivenessAttestation",
|
|
852
|
+
outputs: [],
|
|
853
|
+
stateMutability: "nonpayable",
|
|
854
|
+
type: "function"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
inputs: [],
|
|
858
|
+
name: "livenessRp",
|
|
859
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
860
|
+
stateMutability: "view",
|
|
861
|
+
type: "function"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
865
|
+
name: "livenessVerified",
|
|
866
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
867
|
+
stateMutability: "view",
|
|
868
|
+
type: "function"
|
|
836
869
|
}
|
|
837
870
|
];
|
|
838
871
|
|
|
@@ -1547,6 +1580,20 @@ var ZodBvnSubmitParamsSchema = z5.object({
|
|
|
1547
1580
|
message: "signature must be a hex string"
|
|
1548
1581
|
})
|
|
1549
1582
|
});
|
|
1583
|
+
var ZodLivenessSubmitParamsSchema = z5.object({
|
|
1584
|
+
/** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
|
|
1585
|
+
nullifier: z5.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
|
|
1586
|
+
message: "nullifier must be a bytes32 hex string"
|
|
1587
|
+
}),
|
|
1588
|
+
/** Remaining limit in micro-USDC (part of the signed struct). */
|
|
1589
|
+
limit: z5.bigint(),
|
|
1590
|
+
/** Attestation expiry (unix seconds). */
|
|
1591
|
+
expiry: z5.bigint(),
|
|
1592
|
+
/** 65-byte secp256k1 signature (hex). */
|
|
1593
|
+
signature: z5.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
|
|
1594
|
+
message: "signature must be a hex string"
|
|
1595
|
+
})
|
|
1596
|
+
});
|
|
1550
1597
|
|
|
1551
1598
|
// src/contracts/tx-limits/index.ts
|
|
1552
1599
|
import { ResultAsync as ResultAsync6 } from "neverthrow";
|