@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/profile.mjs
CHANGED
|
@@ -775,6 +775,32 @@ var reputationManagerAbi = [
|
|
|
775
775
|
outputs: [],
|
|
776
776
|
stateMutability: "nonpayable",
|
|
777
777
|
type: "function"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
inputs: [
|
|
781
|
+
{ internalType: "bytes32", name: "nullifier", type: "bytes32" },
|
|
782
|
+
{ internalType: "uint256", name: "limit", type: "uint256" },
|
|
783
|
+
{ internalType: "uint256", name: "expiry", type: "uint256" },
|
|
784
|
+
{ internalType: "bytes", name: "signature", type: "bytes" }
|
|
785
|
+
],
|
|
786
|
+
name: "submitKycAttestation",
|
|
787
|
+
outputs: [],
|
|
788
|
+
stateMutability: "nonpayable",
|
|
789
|
+
type: "function"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
inputs: [],
|
|
793
|
+
name: "kycRp",
|
|
794
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
795
|
+
stateMutability: "view",
|
|
796
|
+
type: "function"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
800
|
+
name: "kycVerified",
|
|
801
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
802
|
+
stateMutability: "view",
|
|
803
|
+
type: "function"
|
|
778
804
|
}
|
|
779
805
|
];
|
|
780
806
|
|
|
@@ -1457,6 +1483,20 @@ var ZodZkPassportRegisterParamsSchema = z5.object({
|
|
|
1457
1483
|
params: ZodSolidityVerifierParametersSchema,
|
|
1458
1484
|
isIDCard: z5.boolean()
|
|
1459
1485
|
});
|
|
1486
|
+
var ZodSimpleKycSubmitParamsSchema = z5.object({
|
|
1487
|
+
/** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
|
|
1488
|
+
nullifier: z5.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
|
|
1489
|
+
message: "nullifier must be a bytes32 hex string"
|
|
1490
|
+
}),
|
|
1491
|
+
/** Remaining limit in micro-USDC (part of the signed struct). */
|
|
1492
|
+
limit: z5.bigint(),
|
|
1493
|
+
/** Attestation expiry (unix seconds). */
|
|
1494
|
+
expiry: z5.bigint(),
|
|
1495
|
+
/** 65-byte secp256k1 signature (hex). */
|
|
1496
|
+
signature: z5.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
|
|
1497
|
+
message: "signature must be a hex string"
|
|
1498
|
+
})
|
|
1499
|
+
});
|
|
1460
1500
|
|
|
1461
1501
|
// src/contracts/tx-limits/index.ts
|
|
1462
1502
|
import { ResultAsync as ResultAsync6 } from "neverthrow";
|