@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/orders.mjs
CHANGED
|
@@ -782,6 +782,32 @@ var reputationManagerAbi = [
|
|
|
782
782
|
outputs: [],
|
|
783
783
|
stateMutability: "nonpayable",
|
|
784
784
|
type: "function"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
inputs: [
|
|
788
|
+
{ internalType: "bytes32", name: "nullifier", type: "bytes32" },
|
|
789
|
+
{ internalType: "uint256", name: "limit", type: "uint256" },
|
|
790
|
+
{ internalType: "uint256", name: "expiry", type: "uint256" },
|
|
791
|
+
{ internalType: "bytes", name: "signature", type: "bytes" }
|
|
792
|
+
],
|
|
793
|
+
name: "submitKycAttestation",
|
|
794
|
+
outputs: [],
|
|
795
|
+
stateMutability: "nonpayable",
|
|
796
|
+
type: "function"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
inputs: [],
|
|
800
|
+
name: "kycRp",
|
|
801
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
802
|
+
stateMutability: "view",
|
|
803
|
+
type: "function"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
807
|
+
name: "kycVerified",
|
|
808
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
809
|
+
stateMutability: "view",
|
|
810
|
+
type: "function"
|
|
785
811
|
}
|
|
786
812
|
];
|
|
787
813
|
|
|
@@ -5360,6 +5386,20 @@ var ZodZkPassportRegisterParamsSchema = z8.object({
|
|
|
5360
5386
|
params: ZodSolidityVerifierParametersSchema,
|
|
5361
5387
|
isIDCard: z8.boolean()
|
|
5362
5388
|
});
|
|
5389
|
+
var ZodSimpleKycSubmitParamsSchema = z8.object({
|
|
5390
|
+
/** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
|
|
5391
|
+
nullifier: z8.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
|
|
5392
|
+
message: "nullifier must be a bytes32 hex string"
|
|
5393
|
+
}),
|
|
5394
|
+
/** Remaining limit in micro-USDC (part of the signed struct). */
|
|
5395
|
+
limit: z8.bigint(),
|
|
5396
|
+
/** Attestation expiry (unix seconds). */
|
|
5397
|
+
expiry: z8.bigint(),
|
|
5398
|
+
/** 65-byte secp256k1 signature (hex). */
|
|
5399
|
+
signature: z8.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
|
|
5400
|
+
message: "signature must be a hex string"
|
|
5401
|
+
})
|
|
5402
|
+
});
|
|
5363
5403
|
|
|
5364
5404
|
// src/contracts/tx-limits/index.ts
|
|
5365
5405
|
import { ResultAsync as ResultAsync9 } from "neverthrow";
|