@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/prices.cjs
CHANGED
|
@@ -860,6 +860,39 @@ var reputationManagerAbi = [
|
|
|
860
860
|
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
861
861
|
stateMutability: "view",
|
|
862
862
|
type: "function"
|
|
863
|
+
},
|
|
864
|
+
// ── Liveness (face-only, no document) attestation ───────────────────────
|
|
865
|
+
{ inputs: [], name: "LivenessSignerNotSet", type: "error" },
|
|
866
|
+
{ inputs: [], name: "LivenessAttestationExpired", type: "error" },
|
|
867
|
+
{ inputs: [], name: "LivenessNullifierZero", type: "error" },
|
|
868
|
+
{ inputs: [], name: "LivenessNullifierAlreadySpent", type: "error" },
|
|
869
|
+
{ inputs: [], name: "LivenessAlreadyVerified", type: "error" },
|
|
870
|
+
{ inputs: [], name: "LivenessInvalidSignature", type: "error" },
|
|
871
|
+
{
|
|
872
|
+
inputs: [
|
|
873
|
+
{ internalType: "bytes32", name: "nullifier", type: "bytes32" },
|
|
874
|
+
{ internalType: "uint256", name: "limit", type: "uint256" },
|
|
875
|
+
{ internalType: "uint256", name: "expiry", type: "uint256" },
|
|
876
|
+
{ internalType: "bytes", name: "signature", type: "bytes" }
|
|
877
|
+
],
|
|
878
|
+
name: "submitLivenessAttestation",
|
|
879
|
+
outputs: [],
|
|
880
|
+
stateMutability: "nonpayable",
|
|
881
|
+
type: "function"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
inputs: [],
|
|
885
|
+
name: "livenessRp",
|
|
886
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
887
|
+
stateMutability: "view",
|
|
888
|
+
type: "function"
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
892
|
+
name: "livenessVerified",
|
|
893
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
894
|
+
stateMutability: "view",
|
|
895
|
+
type: "function"
|
|
863
896
|
}
|
|
864
897
|
];
|
|
865
898
|
|
|
@@ -1603,6 +1636,20 @@ var ZodBvnSubmitParamsSchema = import_zod5.z.object({
|
|
|
1603
1636
|
message: "signature must be a hex string"
|
|
1604
1637
|
})
|
|
1605
1638
|
});
|
|
1639
|
+
var ZodLivenessSubmitParamsSchema = import_zod5.z.object({
|
|
1640
|
+
/** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
|
|
1641
|
+
nullifier: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
|
|
1642
|
+
message: "nullifier must be a bytes32 hex string"
|
|
1643
|
+
}),
|
|
1644
|
+
/** Remaining limit in micro-USDC (part of the signed struct). */
|
|
1645
|
+
limit: import_zod5.z.bigint(),
|
|
1646
|
+
/** Attestation expiry (unix seconds). */
|
|
1647
|
+
expiry: import_zod5.z.bigint(),
|
|
1648
|
+
/** 65-byte secp256k1 signature (hex). */
|
|
1649
|
+
signature: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
|
|
1650
|
+
message: "signature must be a hex string"
|
|
1651
|
+
})
|
|
1652
|
+
});
|
|
1606
1653
|
|
|
1607
1654
|
// src/contracts/tx-limits/index.ts
|
|
1608
1655
|
var import_neverthrow8 = require("neverthrow");
|