@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 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.1";
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
@@ -37,7 +37,7 @@ var ZodAddressSchema = z.string().refine((s) => isAddress(s), { message: "Invali
37
37
  var ZodCurrencySchema = z.enum(CURRENCY_CODES);
38
38
 
39
39
  // src/index.ts
40
- var VERSION = "1.2.1";
40
+ var VERSION = "1.2.2";
41
41
  export {
42
42
  SdkError,
43
43
  VERSION
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");