@pear-protocol/types 1.32.0 → 1.33.0
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/users/entities.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export declare const BoundReferralReferee: z.ZodObject<{
|
|
|
24
24
|
address: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
25
25
|
referredAt: z.ZodOptional<z.ZodNumber>;
|
|
26
26
|
tradeCount: z.ZodNumber;
|
|
27
|
+
volumeUsd: z.ZodString;
|
|
27
28
|
}, z.core.$strip>;
|
|
28
29
|
export declare const PendingReferralReferee: z.ZodObject<{
|
|
29
30
|
status: z.ZodLiteral<"PENDING">;
|
|
@@ -34,6 +35,7 @@ export declare const ReferralReferee: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
34
35
|
address: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
35
36
|
referredAt: z.ZodOptional<z.ZodNumber>;
|
|
36
37
|
tradeCount: z.ZodNumber;
|
|
38
|
+
volumeUsd: z.ZodString;
|
|
37
39
|
}, z.core.$strip>, z.ZodObject<{
|
|
38
40
|
status: z.ZodLiteral<"PENDING">;
|
|
39
41
|
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
package/dist/users/entities.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { EthereumAddress } from '../common/address';
|
|
3
|
+
import { UnsignedDecimalString } from '../common/schema';
|
|
3
4
|
|
|
4
5
|
const UserPreferences = z.object({
|
|
5
6
|
slippageToleranceBps: z.int().describe("User slippage preference in basis points")
|
|
@@ -28,7 +29,8 @@ const BoundReferralReferee = z.object({
|
|
|
28
29
|
status: z.literal("BOUND").describe("The referee resolves to a V3 user with a permanent binding"),
|
|
29
30
|
address: EthereumAddress.optional().describe("Linked EVM wallet address when the referee has one"),
|
|
30
31
|
referredAt: z.number().int().nonnegative().optional().describe("V3 attribution time in epoch milliseconds; not the original legacy on-chain referral time, and absent on a historical binding without a recoverable date"),
|
|
31
|
-
tradeCount: z.number().int().nonnegative().describe("Distinct Pear executions with at least one real confirmed fill")
|
|
32
|
+
tradeCount: z.number().int().nonnegative().describe("Distinct Pear executions with at least one real confirmed fill"),
|
|
33
|
+
volumeUsd: UnsignedDecimalString.describe("Post-binding V3 volume from real confirmed Pear fills, in USD")
|
|
32
34
|
});
|
|
33
35
|
const PendingReferralReferee = z.object({
|
|
34
36
|
status: z.literal("PENDING").describe("A verified legacy referee that has no V3 identity yet"),
|
package/dist/users/response.d.ts
CHANGED
|
@@ -40,11 +40,13 @@ export declare const ReferralRefereeListResponse: z.ZodObject<{
|
|
|
40
40
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
41
41
|
count: z.ZodNumber;
|
|
42
42
|
pendingCount: z.ZodNumber;
|
|
43
|
+
totalVolumeUsd: z.ZodString;
|
|
43
44
|
referees: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44
45
|
status: z.ZodLiteral<"BOUND">;
|
|
45
46
|
address: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
46
47
|
referredAt: z.ZodOptional<z.ZodNumber>;
|
|
47
48
|
tradeCount: z.ZodNumber;
|
|
49
|
+
volumeUsd: z.ZodString;
|
|
48
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
49
51
|
status: z.ZodLiteral<"PENDING">;
|
|
50
52
|
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
package/dist/users/response.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { CursorResponse } from '../common/response';
|
|
3
|
+
import { UnsignedDecimalString } from '../common/schema';
|
|
3
4
|
import { UserPreferences, UserProfile, ReferralReferee } from './entities';
|
|
4
5
|
|
|
5
6
|
const ProfileResponse = z.object({
|
|
@@ -19,6 +20,7 @@ const ReferralStatusResponse = z.object({
|
|
|
19
20
|
const ReferralRefereeListResponse = CursorResponse.extend({
|
|
20
21
|
count: z.number().int().nonnegative().describe("Total referees this list yields, counting bound V3 users and pending legacy wallets together"),
|
|
21
22
|
pendingCount: z.number().int().nonnegative().describe("Subset of count whose verified legacy wallet has no V3 identity yet, so no binding exists"),
|
|
23
|
+
totalVolumeUsd: UnsignedDecimalString.describe("Post-binding V3 volume from real confirmed Pear fills across the complete bound referee set, independent of pagination"),
|
|
22
24
|
referees: z.array(ReferralReferee)
|
|
23
25
|
});
|
|
24
26
|
|