@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.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
|
|
|
@@ -1574,6 +1607,20 @@ var ZodBvnSubmitParamsSchema = import_zod5.z.object({
|
|
|
1574
1607
|
message: "signature must be a hex string"
|
|
1575
1608
|
})
|
|
1576
1609
|
});
|
|
1610
|
+
var ZodLivenessSubmitParamsSchema = import_zod5.z.object({
|
|
1611
|
+
/** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
|
|
1612
|
+
nullifier: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
|
|
1613
|
+
message: "nullifier must be a bytes32 hex string"
|
|
1614
|
+
}),
|
|
1615
|
+
/** Remaining limit in micro-USDC (part of the signed struct). */
|
|
1616
|
+
limit: import_zod5.z.bigint(),
|
|
1617
|
+
/** Attestation expiry (unix seconds). */
|
|
1618
|
+
expiry: import_zod5.z.bigint(),
|
|
1619
|
+
/** 65-byte secp256k1 signature (hex). */
|
|
1620
|
+
signature: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
|
|
1621
|
+
message: "signature must be a hex string"
|
|
1622
|
+
})
|
|
1623
|
+
});
|
|
1577
1624
|
|
|
1578
1625
|
// src/contracts/tx-limits/index.ts
|
|
1579
1626
|
var import_neverthrow8 = require("neverthrow");
|