@p2pdotme/sdk 1.2.1 → 1.2.2
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 +40 -0
- package/dist/orders.cjs.map +1 -1
- package/dist/orders.mjs +40 -0
- package/dist/orders.mjs.map +1 -1
- package/dist/prices.cjs +40 -0
- package/dist/prices.cjs.map +1 -1
- package/dist/prices.mjs +40 -0
- package/dist/prices.mjs.map +1 -1
- package/dist/profile.cjs +40 -0
- package/dist/profile.cjs.map +1 -1
- package/dist/profile.mjs +40 -0
- package/dist/profile.mjs.map +1 -1
- package/dist/react.cjs +69 -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 +69 -1
- package/dist/react.mjs.map +1 -1
- package/dist/stake.cjs +26 -0
- package/dist/stake.cjs.map +1 -1
- package/dist/stake.mjs +26 -0
- package/dist/stake.mjs.map +1 -1
- package/dist/zkkyc.cjs +232 -50
- package/dist/zkkyc.cjs.map +1 -1
- package/dist/zkkyc.d.cts +106 -5
- package/dist/zkkyc.d.ts +106 -5
- package/dist/zkkyc.mjs +228 -49
- package/dist/zkkyc.mjs.map +1 -1
- package/package.json +32 -12
package/dist/prices.cjs
CHANGED
|
@@ -802,6 +802,32 @@ var reputationManagerAbi = [
|
|
|
802
802
|
outputs: [],
|
|
803
803
|
stateMutability: "nonpayable",
|
|
804
804
|
type: "function"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
inputs: [
|
|
808
|
+
{ internalType: "bytes32", name: "nullifier", type: "bytes32" },
|
|
809
|
+
{ internalType: "uint256", name: "limit", type: "uint256" },
|
|
810
|
+
{ internalType: "uint256", name: "expiry", type: "uint256" },
|
|
811
|
+
{ internalType: "bytes", name: "signature", type: "bytes" }
|
|
812
|
+
],
|
|
813
|
+
name: "submitKycAttestation",
|
|
814
|
+
outputs: [],
|
|
815
|
+
stateMutability: "nonpayable",
|
|
816
|
+
type: "function"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
inputs: [],
|
|
820
|
+
name: "kycRp",
|
|
821
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
822
|
+
stateMutability: "view",
|
|
823
|
+
type: "function"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
827
|
+
name: "kycVerified",
|
|
828
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
829
|
+
stateMutability: "view",
|
|
830
|
+
type: "function"
|
|
805
831
|
}
|
|
806
832
|
];
|
|
807
833
|
|
|
@@ -1513,6 +1539,20 @@ var ZodZkPassportRegisterParamsSchema = import_zod5.z.object({
|
|
|
1513
1539
|
params: ZodSolidityVerifierParametersSchema,
|
|
1514
1540
|
isIDCard: import_zod5.z.boolean()
|
|
1515
1541
|
});
|
|
1542
|
+
var ZodSimpleKycSubmitParamsSchema = import_zod5.z.object({
|
|
1543
|
+
/** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
|
|
1544
|
+
nullifier: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
|
|
1545
|
+
message: "nullifier must be a bytes32 hex string"
|
|
1546
|
+
}),
|
|
1547
|
+
/** Remaining limit in micro-USDC (part of the signed struct). */
|
|
1548
|
+
limit: import_zod5.z.bigint(),
|
|
1549
|
+
/** Attestation expiry (unix seconds). */
|
|
1550
|
+
expiry: import_zod5.z.bigint(),
|
|
1551
|
+
/** 65-byte secp256k1 signature (hex). */
|
|
1552
|
+
signature: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
|
|
1553
|
+
message: "signature must be a hex string"
|
|
1554
|
+
})
|
|
1555
|
+
});
|
|
1516
1556
|
|
|
1517
1557
|
// src/contracts/tx-limits/index.ts
|
|
1518
1558
|
var import_neverthrow8 = require("neverthrow");
|