@longdotxyz/shared 0.0.73 → 0.0.74
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/contracts/asset.contract.d.ts +66 -3695
- package/dist/contracts/auction-template.contract.d.ts +28 -335
- package/dist/contracts/auction.contract.d.ts +9 -147
- package/dist/contracts/community.contract.d.ts +4 -98
- package/dist/contracts/index.d.ts +50 -3670
- package/dist/contracts/ipfs.contract.d.ts +5 -61
- package/dist/contracts/sponsorship.contract.d.ts +3 -40
- package/dist/types/bigint.type.d.ts +1 -1
- package/dist/types/hex.type.d.ts +1 -1
- package/dist/types/pool-key.type.d.ts +4 -16
- package/package.json +2 -2
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
2
|
declare const ipfsContract: {
|
|
3
3
|
uploadImage: {
|
|
4
|
+
[x: string]: any;
|
|
4
5
|
description: "Upload an image to IPFS";
|
|
5
6
|
method: "POST";
|
|
6
7
|
contentType: "multipart/form-data";
|
|
7
8
|
body: z.ZodAny;
|
|
8
|
-
path: "/ipfs/upload-image";
|
|
9
|
-
responses: {
|
|
10
|
-
200: z.ZodObject<{
|
|
11
|
-
result: z.ZodString;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
result: string;
|
|
14
|
-
}, {
|
|
15
|
-
result: string;
|
|
16
|
-
}>;
|
|
17
|
-
};
|
|
18
9
|
};
|
|
19
10
|
uploadMetadata: {
|
|
11
|
+
[x: string]: any;
|
|
20
12
|
description: "Upload metadata to IPFS";
|
|
21
13
|
method: "POST";
|
|
22
14
|
body: z.ZodObject<{
|
|
@@ -26,61 +18,13 @@ declare const ipfsContract: {
|
|
|
26
18
|
social_links: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
19
|
label: z.ZodString;
|
|
28
20
|
url: z.ZodString;
|
|
29
|
-
},
|
|
30
|
-
label: string;
|
|
31
|
-
url: string;
|
|
32
|
-
}, {
|
|
33
|
-
label: string;
|
|
34
|
-
url: string;
|
|
35
|
-
}>, "many">>>;
|
|
21
|
+
}, z.core.$strip>>>>;
|
|
36
22
|
vesting_recipients: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
23
|
address: z.ZodString;
|
|
38
24
|
amount: z.ZodNumber;
|
|
39
|
-
},
|
|
40
|
-
address: string;
|
|
41
|
-
amount: number;
|
|
42
|
-
}, {
|
|
43
|
-
address: string;
|
|
44
|
-
amount: number;
|
|
45
|
-
}>, "many">>>;
|
|
25
|
+
}, z.core.$strip>>>>;
|
|
46
26
|
fee_receiver: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
47
|
-
},
|
|
48
|
-
name: string;
|
|
49
|
-
description: string;
|
|
50
|
-
image_hash: string;
|
|
51
|
-
fee_receiver: string;
|
|
52
|
-
social_links: {
|
|
53
|
-
label: string;
|
|
54
|
-
url: string;
|
|
55
|
-
}[];
|
|
56
|
-
vesting_recipients: {
|
|
57
|
-
address: string;
|
|
58
|
-
amount: number;
|
|
59
|
-
}[];
|
|
60
|
-
}, {
|
|
61
|
-
name: string;
|
|
62
|
-
description: string;
|
|
63
|
-
image_hash: string;
|
|
64
|
-
fee_receiver?: string | undefined;
|
|
65
|
-
social_links?: {
|
|
66
|
-
label: string;
|
|
67
|
-
url: string;
|
|
68
|
-
}[] | undefined;
|
|
69
|
-
vesting_recipients?: {
|
|
70
|
-
address: string;
|
|
71
|
-
amount: number;
|
|
72
|
-
}[] | undefined;
|
|
73
|
-
}>;
|
|
74
|
-
path: "/ipfs/upload-metadata";
|
|
75
|
-
responses: {
|
|
76
|
-
200: z.ZodObject<{
|
|
77
|
-
result: z.ZodString;
|
|
78
|
-
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
result: string;
|
|
80
|
-
}, {
|
|
81
|
-
result: string;
|
|
82
|
-
}>;
|
|
83
|
-
};
|
|
27
|
+
}, z.core.$strip>;
|
|
84
28
|
};
|
|
85
29
|
};
|
|
86
30
|
export { ipfsContract };
|
|
@@ -1,48 +1,11 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
2
|
export declare const sponsorshipContract: {
|
|
3
3
|
broadcastSponsored: {
|
|
4
|
+
[x: string]: any;
|
|
4
5
|
description: "Broadcast a transaction with gas sponsorship using Privy server wallet";
|
|
5
6
|
method: "POST";
|
|
6
7
|
body: z.ZodObject<{
|
|
7
|
-
encoded_payload: z.
|
|
8
|
-
},
|
|
9
|
-
encoded_payload: `0x${string}`;
|
|
10
|
-
}, {
|
|
11
|
-
encoded_payload: string;
|
|
12
|
-
}>;
|
|
13
|
-
path: "/sponsorship";
|
|
14
|
-
responses: {
|
|
15
|
-
200: z.ZodObject<{
|
|
16
|
-
result: z.ZodObject<{
|
|
17
|
-
transaction_hash: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
transaction_hash: `0x${string}`;
|
|
20
|
-
}, {
|
|
21
|
-
transaction_hash: string;
|
|
22
|
-
}>;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
result: {
|
|
25
|
-
transaction_hash: `0x${string}`;
|
|
26
|
-
};
|
|
27
|
-
}, {
|
|
28
|
-
result: {
|
|
29
|
-
transaction_hash: string;
|
|
30
|
-
};
|
|
31
|
-
}>;
|
|
32
|
-
400: z.ZodObject<{
|
|
33
|
-
message: z.ZodString;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
message: string;
|
|
36
|
-
}, {
|
|
37
|
-
message: string;
|
|
38
|
-
}>;
|
|
39
|
-
500: z.ZodObject<{
|
|
40
|
-
message: z.ZodString;
|
|
41
|
-
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
message: string;
|
|
43
|
-
}, {
|
|
44
|
-
message: string;
|
|
45
|
-
}>;
|
|
46
|
-
};
|
|
8
|
+
encoded_payload: z.ZodPipe<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
47
10
|
};
|
|
48
11
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
-
export declare const coerceBigInt: z.
|
|
2
|
+
export declare const coerceBigInt: z.ZodPipe<z.ZodAny, z.ZodTransform<bigint, any>>;
|
package/dist/types/hex.type.d.ts
CHANGED
|
@@ -8,21 +8,9 @@ export type PoolKey = {
|
|
|
8
8
|
hooks: Hex;
|
|
9
9
|
};
|
|
10
10
|
export declare const poolKeySchema: z.ZodObject<{
|
|
11
|
-
currency0: z.
|
|
12
|
-
currency1: z.
|
|
11
|
+
currency0: z.ZodPipe<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
12
|
+
currency1: z.ZodPipe<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
13
13
|
fee: z.ZodNumber;
|
|
14
14
|
tickSpacing: z.ZodNumber;
|
|
15
|
-
hooks: z.
|
|
16
|
-
},
|
|
17
|
-
currency0: `0x${string}`;
|
|
18
|
-
currency1: `0x${string}`;
|
|
19
|
-
fee: number;
|
|
20
|
-
tickSpacing: number;
|
|
21
|
-
hooks: `0x${string}`;
|
|
22
|
-
}, {
|
|
23
|
-
currency0: string;
|
|
24
|
-
currency1: string;
|
|
25
|
-
fee: number;
|
|
26
|
-
tickSpacing: number;
|
|
27
|
-
hooks: string;
|
|
28
|
-
}>;
|
|
15
|
+
hooks: z.ZodPipe<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
16
|
+
}, z.core.$strip>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longdotxyz/shared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.74",
|
|
4
4
|
"description": "Shared types and utilities for Long.xyz API",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"ts-jest": "^29.2.5",
|
|
36
36
|
"tsx": "^4.20.6",
|
|
37
37
|
"typescript": "^5.7.3",
|
|
38
|
-
"typescript-eslint": "^8.46.
|
|
38
|
+
"typescript-eslint": "^8.46.4"
|
|
39
39
|
},
|
|
40
40
|
"jest": {
|
|
41
41
|
"moduleFileExtensions": [
|