@p2pdotme/sdk 1.2.0 → 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 +61 -7
- package/dist/orders.cjs.map +1 -1
- package/dist/orders.mjs +61 -7
- package/dist/orders.mjs.map +1 -1
- package/dist/prices.cjs +42 -1
- package/dist/prices.cjs.map +1 -1
- package/dist/prices.mjs +42 -1
- package/dist/prices.mjs.map +1 -1
- package/dist/profile.cjs +42 -1
- package/dist/profile.cjs.map +1 -1
- package/dist/profile.mjs +42 -1
- package/dist/profile.mjs.map +1 -1
- package/dist/react.cjs +90 -8
- 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 +90 -8
- 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.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
|
|
|
@@ -1304,7 +1330,8 @@ function validate(schema, data, toError) {
|
|
|
1304
1330
|
// src/orders/internal/routing/validation.ts
|
|
1305
1331
|
var import_zod2 = require("zod");
|
|
1306
1332
|
var ZodCircleScoreStateSchema = import_zod2.z.object({
|
|
1307
|
-
activeMerchantsCount: import_zod2.z.coerce.number()
|
|
1333
|
+
activeMerchantsCount: import_zod2.z.coerce.number(),
|
|
1334
|
+
availableMerchantsCount: import_zod2.z.coerce.number()
|
|
1308
1335
|
});
|
|
1309
1336
|
var ZodCircleMetricsForRoutingSchema = import_zod2.z.object({
|
|
1310
1337
|
circleScore: import_zod2.z.coerce.number(),
|
|
@@ -1483,6 +1510,20 @@ var ZodZkPassportRegisterParamsSchema = import_zod5.z.object({
|
|
|
1483
1510
|
params: ZodSolidityVerifierParametersSchema,
|
|
1484
1511
|
isIDCard: import_zod5.z.boolean()
|
|
1485
1512
|
});
|
|
1513
|
+
var ZodSimpleKycSubmitParamsSchema = import_zod5.z.object({
|
|
1514
|
+
/** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
|
|
1515
|
+
nullifier: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
|
|
1516
|
+
message: "nullifier must be a bytes32 hex string"
|
|
1517
|
+
}),
|
|
1518
|
+
/** Remaining limit in micro-USDC (part of the signed struct). */
|
|
1519
|
+
limit: import_zod5.z.bigint(),
|
|
1520
|
+
/** Attestation expiry (unix seconds). */
|
|
1521
|
+
expiry: import_zod5.z.bigint(),
|
|
1522
|
+
/** 65-byte secp256k1 signature (hex). */
|
|
1523
|
+
signature: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
|
|
1524
|
+
message: "signature must be a hex string"
|
|
1525
|
+
})
|
|
1526
|
+
});
|
|
1486
1527
|
|
|
1487
1528
|
// src/contracts/tx-limits/index.ts
|
|
1488
1529
|
var import_neverthrow8 = require("neverthrow");
|