@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/orders.d.cts
CHANGED
|
@@ -96,6 +96,7 @@ declare const ZodGetFeeConfigParamsSchema: z.ZodObject<{
|
|
|
96
96
|
NGN: "NGN";
|
|
97
97
|
USD: "USD";
|
|
98
98
|
COP: "COP";
|
|
99
|
+
ECU: "ECU";
|
|
99
100
|
}>;
|
|
100
101
|
}, z.core.$strip>;
|
|
101
102
|
type GetFeeConfigParams = z.infer<typeof ZodGetFeeConfigParamsSchema>;
|
|
@@ -118,6 +119,7 @@ declare const ZodPlaceOrderParamsSchema: z.ZodObject<{
|
|
|
118
119
|
NGN: "NGN";
|
|
119
120
|
USD: "USD";
|
|
120
121
|
COP: "COP";
|
|
122
|
+
ECU: "ECU";
|
|
121
123
|
}>;
|
|
122
124
|
user: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
|
|
123
125
|
amount: z.ZodBigInt;
|
package/dist/orders.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ declare const ZodGetFeeConfigParamsSchema: z.ZodObject<{
|
|
|
96
96
|
NGN: "NGN";
|
|
97
97
|
USD: "USD";
|
|
98
98
|
COP: "COP";
|
|
99
|
+
ECU: "ECU";
|
|
99
100
|
}>;
|
|
100
101
|
}, z.core.$strip>;
|
|
101
102
|
type GetFeeConfigParams = z.infer<typeof ZodGetFeeConfigParamsSchema>;
|
|
@@ -118,6 +119,7 @@ declare const ZodPlaceOrderParamsSchema: z.ZodObject<{
|
|
|
118
119
|
NGN: "NGN";
|
|
119
120
|
USD: "USD";
|
|
120
121
|
COP: "COP";
|
|
122
|
+
ECU: "ECU";
|
|
121
123
|
}>;
|
|
122
124
|
user: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
|
|
123
125
|
amount: z.ZodBigInt;
|
package/dist/orders.mjs
CHANGED
|
@@ -782,6 +782,32 @@ var reputationManagerAbi = [
|
|
|
782
782
|
outputs: [],
|
|
783
783
|
stateMutability: "nonpayable",
|
|
784
784
|
type: "function"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
inputs: [
|
|
788
|
+
{ internalType: "bytes32", name: "nullifier", type: "bytes32" },
|
|
789
|
+
{ internalType: "uint256", name: "limit", type: "uint256" },
|
|
790
|
+
{ internalType: "uint256", name: "expiry", type: "uint256" },
|
|
791
|
+
{ internalType: "bytes", name: "signature", type: "bytes" }
|
|
792
|
+
],
|
|
793
|
+
name: "submitKycAttestation",
|
|
794
|
+
outputs: [],
|
|
795
|
+
stateMutability: "nonpayable",
|
|
796
|
+
type: "function"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
inputs: [],
|
|
800
|
+
name: "kycRp",
|
|
801
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
802
|
+
stateMutability: "view",
|
|
803
|
+
type: "function"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
807
|
+
name: "kycVerified",
|
|
808
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
809
|
+
stateMutability: "view",
|
|
810
|
+
type: "function"
|
|
785
811
|
}
|
|
786
812
|
];
|
|
787
813
|
|
|
@@ -919,7 +945,8 @@ var CURRENCY = {
|
|
|
919
945
|
EUR: "EUR",
|
|
920
946
|
NGN: "NGN",
|
|
921
947
|
USD: "USD",
|
|
922
|
-
COP: "COP"
|
|
948
|
+
COP: "COP",
|
|
949
|
+
ECU: "ECU"
|
|
923
950
|
};
|
|
924
951
|
var CURRENCY_CODES = Object.values(CURRENCY);
|
|
925
952
|
|
|
@@ -5360,6 +5387,20 @@ var ZodZkPassportRegisterParamsSchema = z8.object({
|
|
|
5360
5387
|
params: ZodSolidityVerifierParametersSchema,
|
|
5361
5388
|
isIDCard: z8.boolean()
|
|
5362
5389
|
});
|
|
5390
|
+
var ZodSimpleKycSubmitParamsSchema = z8.object({
|
|
5391
|
+
/** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
|
|
5392
|
+
nullifier: z8.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
|
|
5393
|
+
message: "nullifier must be a bytes32 hex string"
|
|
5394
|
+
}),
|
|
5395
|
+
/** Remaining limit in micro-USDC (part of the signed struct). */
|
|
5396
|
+
limit: z8.bigint(),
|
|
5397
|
+
/** Attestation expiry (unix seconds). */
|
|
5398
|
+
expiry: z8.bigint(),
|
|
5399
|
+
/** 65-byte secp256k1 signature (hex). */
|
|
5400
|
+
signature: z8.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
|
|
5401
|
+
message: "signature must be a hex string"
|
|
5402
|
+
})
|
|
5403
|
+
});
|
|
5363
5404
|
|
|
5364
5405
|
// src/contracts/tx-limits/index.ts
|
|
5365
5406
|
import { ResultAsync as ResultAsync9 } from "neverthrow";
|