@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/index.cjs
CHANGED
|
@@ -64,7 +64,7 @@ var ZodAddressSchema = import_zod.z.string().refine((s) => (0, import_viem.isAdd
|
|
|
64
64
|
var ZodCurrencySchema = import_zod.z.enum(CURRENCY_CODES);
|
|
65
65
|
|
|
66
66
|
// src/index.ts
|
|
67
|
-
var VERSION = "1.2.
|
|
67
|
+
var VERSION = "1.2.2";
|
|
68
68
|
// Annotate the CommonJS export names for ESM import in node:
|
|
69
69
|
0 && (module.exports = {
|
|
70
70
|
SdkError,
|
package/dist/index.mjs
CHANGED
package/dist/orders.cjs
CHANGED
|
@@ -831,6 +831,32 @@ var reputationManagerAbi = [
|
|
|
831
831
|
outputs: [],
|
|
832
832
|
stateMutability: "nonpayable",
|
|
833
833
|
type: "function"
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
inputs: [
|
|
837
|
+
{ internalType: "bytes32", name: "nullifier", type: "bytes32" },
|
|
838
|
+
{ internalType: "uint256", name: "limit", type: "uint256" },
|
|
839
|
+
{ internalType: "uint256", name: "expiry", type: "uint256" },
|
|
840
|
+
{ internalType: "bytes", name: "signature", type: "bytes" }
|
|
841
|
+
],
|
|
842
|
+
name: "submitKycAttestation",
|
|
843
|
+
outputs: [],
|
|
844
|
+
stateMutability: "nonpayable",
|
|
845
|
+
type: "function"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
inputs: [],
|
|
849
|
+
name: "kycRp",
|
|
850
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
851
|
+
stateMutability: "view",
|
|
852
|
+
type: "function"
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
856
|
+
name: "kycVerified",
|
|
857
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
858
|
+
stateMutability: "view",
|
|
859
|
+
type: "function"
|
|
834
860
|
}
|
|
835
861
|
];
|
|
836
862
|
|
|
@@ -5409,6 +5435,20 @@ var ZodZkPassportRegisterParamsSchema = import_zod8.z.object({
|
|
|
5409
5435
|
params: ZodSolidityVerifierParametersSchema,
|
|
5410
5436
|
isIDCard: import_zod8.z.boolean()
|
|
5411
5437
|
});
|
|
5438
|
+
var ZodSimpleKycSubmitParamsSchema = import_zod8.z.object({
|
|
5439
|
+
/** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
|
|
5440
|
+
nullifier: import_zod8.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
|
|
5441
|
+
message: "nullifier must be a bytes32 hex string"
|
|
5442
|
+
}),
|
|
5443
|
+
/** Remaining limit in micro-USDC (part of the signed struct). */
|
|
5444
|
+
limit: import_zod8.z.bigint(),
|
|
5445
|
+
/** Attestation expiry (unix seconds). */
|
|
5446
|
+
expiry: import_zod8.z.bigint(),
|
|
5447
|
+
/** 65-byte secp256k1 signature (hex). */
|
|
5448
|
+
signature: import_zod8.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
|
|
5449
|
+
message: "signature must be a hex string"
|
|
5450
|
+
})
|
|
5451
|
+
});
|
|
5412
5452
|
|
|
5413
5453
|
// src/contracts/tx-limits/index.ts
|
|
5414
5454
|
var import_neverthrow11 = require("neverthrow");
|