@p2pdotme/sdk 1.2.6 → 1.2.7
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 +46 -0
- package/dist/orders.cjs.map +1 -1
- package/dist/orders.mjs +46 -0
- package/dist/orders.mjs.map +1 -1
- package/dist/prices.cjs +46 -0
- package/dist/prices.cjs.map +1 -1
- package/dist/prices.mjs +46 -0
- package/dist/prices.mjs.map +1 -1
- package/dist/profile.cjs +46 -0
- package/dist/profile.cjs.map +1 -1
- package/dist/profile.mjs +46 -0
- package/dist/profile.mjs.map +1 -1
- package/dist/react.cjs +75 -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 +75 -1
- package/dist/react.mjs.map +1 -1
- package/dist/stake.cjs +32 -0
- package/dist/stake.cjs.map +1 -1
- package/dist/stake.mjs +32 -0
- package/dist/stake.mjs.map +1 -1
- package/dist/zkkyc.cjs +228 -10
- package/dist/zkkyc.cjs.map +1 -1
- package/dist/zkkyc.d.cts +97 -2
- package/dist/zkkyc.d.ts +97 -2
- package/dist/zkkyc.mjs +226 -10
- package/dist/zkkyc.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -66,7 +66,7 @@ var ZodAddressSchema = import_zod.z.string().refine((s) => (0, import_viem.isAdd
|
|
|
66
66
|
var ZodCurrencySchema = import_zod.z.enum(CURRENCY_CODES);
|
|
67
67
|
|
|
68
68
|
// src/index.ts
|
|
69
|
-
var VERSION = "1.2.
|
|
69
|
+
var VERSION = "1.2.7";
|
|
70
70
|
// Annotate the CommonJS export names for ESM import in node:
|
|
71
71
|
0 && (module.exports = {
|
|
72
72
|
SdkError,
|
package/dist/index.mjs
CHANGED
package/dist/orders.cjs
CHANGED
|
@@ -857,6 +857,38 @@ var reputationManagerAbi = [
|
|
|
857
857
|
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
858
858
|
stateMutability: "view",
|
|
859
859
|
type: "function"
|
|
860
|
+
},
|
|
861
|
+
// ── BVN (Nigerian Bank Verification Number) attestation ─────────────────
|
|
862
|
+
{ inputs: [], name: "BvnSignerNotSet", type: "error" },
|
|
863
|
+
{ inputs: [], name: "BvnAttestationExpired", type: "error" },
|
|
864
|
+
{ inputs: [], name: "BvnNullifierAlreadySpent", type: "error" },
|
|
865
|
+
{ inputs: [], name: "BvnAlreadyVerified", type: "error" },
|
|
866
|
+
{ inputs: [], name: "BvnInvalidSignature", type: "error" },
|
|
867
|
+
{
|
|
868
|
+
inputs: [
|
|
869
|
+
{ internalType: "bytes32", name: "nullifier", type: "bytes32" },
|
|
870
|
+
{ internalType: "uint256", name: "limit", type: "uint256" },
|
|
871
|
+
{ internalType: "uint256", name: "expiry", type: "uint256" },
|
|
872
|
+
{ internalType: "bytes", name: "signature", type: "bytes" }
|
|
873
|
+
],
|
|
874
|
+
name: "submitBvnAttestation",
|
|
875
|
+
outputs: [],
|
|
876
|
+
stateMutability: "nonpayable",
|
|
877
|
+
type: "function"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
inputs: [],
|
|
881
|
+
name: "bvnRp",
|
|
882
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
883
|
+
stateMutability: "view",
|
|
884
|
+
type: "function"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
888
|
+
name: "bvnVerified",
|
|
889
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
890
|
+
stateMutability: "view",
|
|
891
|
+
type: "function"
|
|
860
892
|
}
|
|
861
893
|
];
|
|
862
894
|
|
|
@@ -5451,6 +5483,20 @@ var ZodSimpleKycSubmitParamsSchema = import_zod8.z.object({
|
|
|
5451
5483
|
message: "signature must be a hex string"
|
|
5452
5484
|
})
|
|
5453
5485
|
});
|
|
5486
|
+
var ZodBvnSubmitParamsSchema = import_zod8.z.object({
|
|
5487
|
+
/** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
|
|
5488
|
+
nullifier: import_zod8.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
|
|
5489
|
+
message: "nullifier must be a bytes32 hex string"
|
|
5490
|
+
}),
|
|
5491
|
+
/** Remaining limit in micro-USDC (part of the signed struct). */
|
|
5492
|
+
limit: import_zod8.z.bigint(),
|
|
5493
|
+
/** Attestation expiry (unix seconds). */
|
|
5494
|
+
expiry: import_zod8.z.bigint(),
|
|
5495
|
+
/** 65-byte secp256k1 signature (hex). */
|
|
5496
|
+
signature: import_zod8.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
|
|
5497
|
+
message: "signature must be a hex string"
|
|
5498
|
+
})
|
|
5499
|
+
});
|
|
5454
5500
|
|
|
5455
5501
|
// src/contracts/tx-limits/index.ts
|
|
5456
5502
|
var import_neverthrow11 = require("neverthrow");
|