@p2pdotme/sdk 1.2.1 → 1.2.3
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/README.md +1 -1
- package/dist/country.cjs +117 -2
- package/dist/country.cjs.map +1 -1
- package/dist/country.d.cts +13 -1
- package/dist/country.d.ts +13 -1
- package/dist/country.mjs +114 -2
- package/dist/country.mjs.map +1 -1
- package/dist/fraud-engine.cjs +2 -1
- package/dist/fraud-engine.cjs.map +1 -1
- package/dist/fraud-engine.mjs +2 -1
- package/dist/fraud-engine.mjs.map +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/orders.cjs +42 -1
- package/dist/orders.cjs.map +1 -1
- package/dist/orders.d.cts +2 -0
- package/dist/orders.d.ts +2 -0
- package/dist/orders.mjs +42 -1
- package/dist/orders.mjs.map +1 -1
- package/dist/prices.cjs +42 -1
- package/dist/prices.cjs.map +1 -1
- package/dist/prices.d.cts +1 -0
- package/dist/prices.d.ts +1 -0
- 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.d.cts +2 -0
- package/dist/profile.d.ts +2 -0
- package/dist/profile.mjs +42 -1
- package/dist/profile.mjs.map +1 -1
- package/dist/qr-parsers.cjs +50 -1
- package/dist/qr-parsers.cjs.map +1 -1
- package/dist/qr-parsers.d.cts +1 -0
- package/dist/qr-parsers.d.ts +1 -0
- package/dist/qr-parsers.mjs +50 -1
- package/dist/qr-parsers.mjs.map +1 -1
- package/dist/react.cjs +71 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +18 -1
- package/dist/react.d.ts +18 -1
- package/dist/react.mjs +71 -2
- package/dist/react.mjs.map +1 -1
- package/dist/stake.cjs +28 -1
- package/dist/stake.cjs.map +1 -1
- package/dist/stake.d.cts +1 -0
- package/dist/stake.d.ts +1 -0
- package/dist/stake.mjs +28 -1
- package/dist/stake.mjs.map +1 -1
- package/dist/zkkyc.cjs +234 -51
- 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 +230 -50
- package/dist/zkkyc.mjs.map +1 -1
- package/package.json +32 -12
package/dist/profile.d.cts
CHANGED
|
@@ -43,6 +43,7 @@ declare const ZodGetBalancesParamsSchema: z.ZodObject<{
|
|
|
43
43
|
NGN: "NGN";
|
|
44
44
|
USD: "USD";
|
|
45
45
|
COP: "COP";
|
|
46
|
+
ECU: "ECU";
|
|
46
47
|
}>;
|
|
47
48
|
}, z.core.$strip>;
|
|
48
49
|
type GetBalancesParams = z.infer<typeof ZodGetBalancesParamsSchema>;
|
|
@@ -59,6 +60,7 @@ declare const ZodTxLimitsParamsSchema: z.ZodObject<{
|
|
|
59
60
|
NGN: "NGN";
|
|
60
61
|
USD: "USD";
|
|
61
62
|
COP: "COP";
|
|
63
|
+
ECU: "ECU";
|
|
62
64
|
}>;
|
|
63
65
|
}, z.core.$strip>;
|
|
64
66
|
type TxLimitsParams = z.infer<typeof ZodTxLimitsParamsSchema>;
|
package/dist/profile.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ declare const ZodGetBalancesParamsSchema: z.ZodObject<{
|
|
|
43
43
|
NGN: "NGN";
|
|
44
44
|
USD: "USD";
|
|
45
45
|
COP: "COP";
|
|
46
|
+
ECU: "ECU";
|
|
46
47
|
}>;
|
|
47
48
|
}, z.core.$strip>;
|
|
48
49
|
type GetBalancesParams = z.infer<typeof ZodGetBalancesParamsSchema>;
|
|
@@ -59,6 +60,7 @@ declare const ZodTxLimitsParamsSchema: z.ZodObject<{
|
|
|
59
60
|
NGN: "NGN";
|
|
60
61
|
USD: "USD";
|
|
61
62
|
COP: "COP";
|
|
63
|
+
ECU: "ECU";
|
|
62
64
|
}>;
|
|
63
65
|
}, z.core.$strip>;
|
|
64
66
|
type TxLimitsParams = z.infer<typeof ZodTxLimitsParamsSchema>;
|
package/dist/profile.mjs
CHANGED
|
@@ -775,6 +775,32 @@ var reputationManagerAbi = [
|
|
|
775
775
|
outputs: [],
|
|
776
776
|
stateMutability: "nonpayable",
|
|
777
777
|
type: "function"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
inputs: [
|
|
781
|
+
{ internalType: "bytes32", name: "nullifier", type: "bytes32" },
|
|
782
|
+
{ internalType: "uint256", name: "limit", type: "uint256" },
|
|
783
|
+
{ internalType: "uint256", name: "expiry", type: "uint256" },
|
|
784
|
+
{ internalType: "bytes", name: "signature", type: "bytes" }
|
|
785
|
+
],
|
|
786
|
+
name: "submitKycAttestation",
|
|
787
|
+
outputs: [],
|
|
788
|
+
stateMutability: "nonpayable",
|
|
789
|
+
type: "function"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
inputs: [],
|
|
793
|
+
name: "kycRp",
|
|
794
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
795
|
+
stateMutability: "view",
|
|
796
|
+
type: "function"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
800
|
+
name: "kycVerified",
|
|
801
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
802
|
+
stateMutability: "view",
|
|
803
|
+
type: "function"
|
|
778
804
|
}
|
|
779
805
|
];
|
|
780
806
|
|
|
@@ -1259,7 +1285,8 @@ var CURRENCY = {
|
|
|
1259
1285
|
EUR: "EUR",
|
|
1260
1286
|
NGN: "NGN",
|
|
1261
1287
|
USD: "USD",
|
|
1262
|
-
COP: "COP"
|
|
1288
|
+
COP: "COP",
|
|
1289
|
+
ECU: "ECU"
|
|
1263
1290
|
};
|
|
1264
1291
|
var CURRENCY_CODES = Object.values(CURRENCY);
|
|
1265
1292
|
|
|
@@ -1457,6 +1484,20 @@ var ZodZkPassportRegisterParamsSchema = z5.object({
|
|
|
1457
1484
|
params: ZodSolidityVerifierParametersSchema,
|
|
1458
1485
|
isIDCard: z5.boolean()
|
|
1459
1486
|
});
|
|
1487
|
+
var ZodSimpleKycSubmitParamsSchema = z5.object({
|
|
1488
|
+
/** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
|
|
1489
|
+
nullifier: z5.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
|
|
1490
|
+
message: "nullifier must be a bytes32 hex string"
|
|
1491
|
+
}),
|
|
1492
|
+
/** Remaining limit in micro-USDC (part of the signed struct). */
|
|
1493
|
+
limit: z5.bigint(),
|
|
1494
|
+
/** Attestation expiry (unix seconds). */
|
|
1495
|
+
expiry: z5.bigint(),
|
|
1496
|
+
/** 65-byte secp256k1 signature (hex). */
|
|
1497
|
+
signature: z5.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
|
|
1498
|
+
message: "signature must be a hex string"
|
|
1499
|
+
})
|
|
1500
|
+
});
|
|
1460
1501
|
|
|
1461
1502
|
// src/contracts/tx-limits/index.ts
|
|
1462
1503
|
import { ResultAsync as ResultAsync6 } from "neverthrow";
|