@longdotxyz/shared 0.0.131 → 0.0.133
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 +3519 -3547
- package/dist/contracts/asset.contract.js +57 -94
- package/dist/contracts/asset.contract.js.map +1 -1
- package/dist/contracts/auction-template.contract.d.ts +208 -186
- package/dist/contracts/auction-template.contract.js +54 -64
- package/dist/contracts/auction-template.contract.js.map +1 -1
- package/dist/contracts/auction.contract.d.ts +113 -133
- package/dist/contracts/auction.contract.js +31 -51
- package/dist/contracts/auction.contract.js.map +1 -1
- package/dist/contracts/charts.contract.d.ts +91 -119
- package/dist/contracts/charts.contract.js +13 -32
- package/dist/contracts/charts.contract.js.map +1 -1
- package/dist/contracts/community.contract.d.ts +73 -86
- package/dist/contracts/community.contract.js +7 -27
- package/dist/contracts/community.contract.js.map +1 -1
- package/dist/contracts/github-activity.contract.d.ts +507 -0
- package/dist/contracts/github-activity.contract.js +43 -0
- package/dist/contracts/github-activity.contract.js.map +1 -0
- package/dist/contracts/index.d.ts +6071 -6159
- package/dist/contracts/index.js +5 -4
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/ipfs.contract.d.ts +66 -83
- package/dist/contracts/ipfs.contract.js +30 -49
- package/dist/contracts/ipfs.contract.js.map +1 -1
- package/dist/contracts/market.contract.d.ts +1268 -1418
- package/dist/contracts/market.contract.js +69 -132
- package/dist/contracts/market.contract.js.map +1 -1
- package/dist/contracts/pathfinding.contract.d.ts +191 -202
- package/dist/contracts/pathfinding.contract.js +13 -23
- package/dist/contracts/pathfinding.contract.js.map +1 -1
- package/dist/contracts/sponsorship.contract.d.ts +230 -331
- package/dist/contracts/sponsorship.contract.js +78 -138
- package/dist/contracts/sponsorship.contract.js.map +1 -1
- package/dist/contracts/tokens.contract.d.ts +62 -61
- package/dist/contracts/tokens.contract.js +42 -51
- package/dist/contracts/tokens.contract.js.map +1 -1
- package/package.json +4 -3
|
@@ -4,9 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ChartCurrency = exports.ChartResolution = exports.BarSchema = exports.ChartBarsResponseSchema = exports.chartsContract = void 0;
|
|
7
|
-
const
|
|
7
|
+
const contract_1 = require("@orpc/contract");
|
|
8
8
|
const zod_1 = __importDefault(require("zod"));
|
|
9
|
-
const contract = (0, core_1.initContract)();
|
|
10
9
|
const ChartResolution = zod_1.default.enum(["1S", "5S", "15S", "30S", "1", "5", "15", "30", "60", "240", "720", "1D", "7D"]);
|
|
11
10
|
exports.ChartResolution = ChartResolution;
|
|
12
11
|
const ChartCurrency = zod_1.default.enum(["USD", "TOKEN"]);
|
|
@@ -27,35 +26,17 @@ const ChartBarsResponseSchema = zod_1.default.object({
|
|
|
27
26
|
currency: ChartCurrency,
|
|
28
27
|
});
|
|
29
28
|
exports.ChartBarsResponseSchema = ChartBarsResponseSchema;
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
responses: {
|
|
43
|
-
200: zod_1.default.object({
|
|
44
|
-
result: ChartBarsResponseSchema,
|
|
45
|
-
}),
|
|
46
|
-
400: zod_1.default.object({
|
|
47
|
-
code: zod_1.default.literal("BAD_REQUEST"),
|
|
48
|
-
message: zod_1.default.string(),
|
|
49
|
-
}),
|
|
50
|
-
500: zod_1.default.object({
|
|
51
|
-
code: zod_1.default.literal("INTERNAL_SERVER_ERROR"),
|
|
52
|
-
message: zod_1.default.string(),
|
|
53
|
-
}),
|
|
54
|
-
},
|
|
55
|
-
description: "Get OHLCV chart bars for a token or trading pair",
|
|
56
|
-
},
|
|
57
|
-
}, {
|
|
58
|
-
pathPrefix: "/charts",
|
|
59
|
-
});
|
|
29
|
+
const getBars = contract_1.oc
|
|
30
|
+
.route({ method: "GET", path: "/charts/bars", description: "Get OHLCV chart bars for a token or trading pair", tags: ["charts"] })
|
|
31
|
+
.input(zod_1.default.object({
|
|
32
|
+
symbol: zod_1.default.string().describe("Token or pair identifier. Format: `address:networkId` (e.g., `0x123...abc:8453`)"),
|
|
33
|
+
from: zod_1.default.coerce.number().int().describe("Start of time range as Unix timestamp in seconds"),
|
|
34
|
+
to: zod_1.default.coerce.number().int().describe("End of time range as Unix timestamp in seconds"),
|
|
35
|
+
resolution: ChartResolution.describe("Candle timeframe. Seconds: 1S, 5S, 15S, 30S. Minutes: 1, 5, 15, 30, 60, 240, 720. Days: 1D, 7D"),
|
|
36
|
+
currency: ChartCurrency.optional().default("USD").describe("Currency for pricing: USD (default) or TOKEN for native token"),
|
|
37
|
+
countback: zod_1.default.coerce.number().int().min(1).max(1500).optional().describe("Maximum number of bars to return (max 1500). Overrides `from` when provided."),
|
|
38
|
+
}))
|
|
39
|
+
.output(zod_1.default.object({ result: ChartBarsResponseSchema }));
|
|
40
|
+
const chartsContract = { getBars };
|
|
60
41
|
exports.chartsContract = chartsContract;
|
|
61
42
|
//# sourceMappingURL=charts.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charts.contract.js","sourceRoot":"","sources":["../../src/contracts/charts.contract.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"charts.contract.js","sourceRoot":"","sources":["../../src/contracts/charts.contract.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAoC;AACpC,8CAAoB;AAQpB,MAAM,eAAe,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAmEpD,0CAAe;AA1D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,QAAQ,CAAC,gGAAgG,CAAC;IACtI,QAAQ,EAAE,aAAa,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,+DAA+D,CAAC;IAC3H,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8EAA8E,CAAC;CAC1J,CAAC,CACL;KACA,MAAM,CAAC,aAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,uBAAuB,EAAE,CAAC,CAAC,CAAC;AAE3D,MAAM,cAAc,GAAG,EAAE,OAAO,EAAE,CAAC;AAE1B,wCAAc"}
|
|
@@ -20,99 +20,86 @@ declare const CommunityResponseSchema: z.ZodObject<{
|
|
|
20
20
|
}>;
|
|
21
21
|
type CommunityResponse = z.output<typeof CommunityResponseSchema>;
|
|
22
22
|
declare const communityContract: {
|
|
23
|
-
listCommunities: {
|
|
24
|
-
|
|
25
|
-
path: "/communities/";
|
|
26
|
-
responses: {
|
|
27
|
-
200: z.ZodObject<{
|
|
28
|
-
result: z.ZodArray<z.ZodObject<{
|
|
29
|
-
id: z.ZodNumber;
|
|
30
|
-
label: z.ZodString;
|
|
31
|
-
description: z.ZodNullable<z.ZodString>;
|
|
32
|
-
funding_amount: z.ZodNumber;
|
|
33
|
-
image_url: z.ZodNullable<z.ZodString>;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
description: string | null;
|
|
36
|
-
label: string;
|
|
37
|
-
id: number;
|
|
38
|
-
funding_amount: number;
|
|
39
|
-
image_url: string | null;
|
|
40
|
-
}, {
|
|
41
|
-
description: string | null;
|
|
42
|
-
label: string;
|
|
43
|
-
id: number;
|
|
44
|
-
funding_amount: number;
|
|
45
|
-
image_url: string | null;
|
|
46
|
-
}>, "many">;
|
|
47
|
-
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
result: {
|
|
49
|
-
description: string | null;
|
|
50
|
-
label: string;
|
|
51
|
-
id: number;
|
|
52
|
-
funding_amount: number;
|
|
53
|
-
image_url: string | null;
|
|
54
|
-
}[];
|
|
55
|
-
}, {
|
|
56
|
-
result: {
|
|
57
|
-
description: string | null;
|
|
58
|
-
label: string;
|
|
59
|
-
id: number;
|
|
60
|
-
funding_amount: number;
|
|
61
|
-
image_url: string | null;
|
|
62
|
-
}[];
|
|
63
|
-
}>;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
getCommunityById: {
|
|
67
|
-
pathParams: z.ZodObject<{
|
|
23
|
+
listCommunities: import("@orpc/contract", { with: { "resolution-mode": "import" } }).ContractProcedureBuilderWithOutput<import("@orpc/contract", { with: { "resolution-mode": "import" } }).Schema<unknown, unknown>, z.ZodObject<{
|
|
24
|
+
result: z.ZodArray<z.ZodObject<{
|
|
68
25
|
id: z.ZodNumber;
|
|
26
|
+
label: z.ZodString;
|
|
27
|
+
description: z.ZodNullable<z.ZodString>;
|
|
28
|
+
funding_amount: z.ZodNumber;
|
|
29
|
+
image_url: z.ZodNullable<z.ZodString>;
|
|
69
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
description: string | null;
|
|
32
|
+
label: string;
|
|
70
33
|
id: number;
|
|
34
|
+
funding_amount: number;
|
|
35
|
+
image_url: string | null;
|
|
71
36
|
}, {
|
|
37
|
+
description: string | null;
|
|
38
|
+
label: string;
|
|
39
|
+
id: number;
|
|
40
|
+
funding_amount: number;
|
|
41
|
+
image_url: string | null;
|
|
42
|
+
}>, "many">;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
result: {
|
|
45
|
+
description: string | null;
|
|
46
|
+
label: string;
|
|
47
|
+
id: number;
|
|
48
|
+
funding_amount: number;
|
|
49
|
+
image_url: string | null;
|
|
50
|
+
}[];
|
|
51
|
+
}, {
|
|
52
|
+
result: {
|
|
53
|
+
description: string | null;
|
|
54
|
+
label: string;
|
|
55
|
+
id: number;
|
|
56
|
+
funding_amount: number;
|
|
57
|
+
image_url: string | null;
|
|
58
|
+
}[];
|
|
59
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
60
|
+
getCommunityById: import("@orpc/contract", { with: { "resolution-mode": "import" } }).ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
61
|
+
id: z.ZodNumber;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
id: number;
|
|
64
|
+
}, {
|
|
65
|
+
id: number;
|
|
66
|
+
}>, z.ZodObject<{
|
|
67
|
+
result: z.ZodObject<{
|
|
68
|
+
id: z.ZodNumber;
|
|
69
|
+
label: z.ZodString;
|
|
70
|
+
description: z.ZodNullable<z.ZodString>;
|
|
71
|
+
funding_amount: z.ZodNumber;
|
|
72
|
+
image_url: z.ZodNullable<z.ZodString>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
description: string | null;
|
|
75
|
+
label: string;
|
|
72
76
|
id: number;
|
|
77
|
+
funding_amount: number;
|
|
78
|
+
image_url: string | null;
|
|
79
|
+
}, {
|
|
80
|
+
description: string | null;
|
|
81
|
+
label: string;
|
|
82
|
+
id: number;
|
|
83
|
+
funding_amount: number;
|
|
84
|
+
image_url: string | null;
|
|
73
85
|
}>;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
image_url: string | null;
|
|
90
|
-
}, {
|
|
91
|
-
description: string | null;
|
|
92
|
-
label: string;
|
|
93
|
-
id: number;
|
|
94
|
-
funding_amount: number;
|
|
95
|
-
image_url: string | null;
|
|
96
|
-
}>;
|
|
97
|
-
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
result: {
|
|
99
|
-
description: string | null;
|
|
100
|
-
label: string;
|
|
101
|
-
id: number;
|
|
102
|
-
funding_amount: number;
|
|
103
|
-
image_url: string | null;
|
|
104
|
-
};
|
|
105
|
-
}, {
|
|
106
|
-
result: {
|
|
107
|
-
description: string | null;
|
|
108
|
-
label: string;
|
|
109
|
-
id: number;
|
|
110
|
-
funding_amount: number;
|
|
111
|
-
image_url: string | null;
|
|
112
|
-
};
|
|
113
|
-
}>;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
result: {
|
|
88
|
+
description: string | null;
|
|
89
|
+
label: string;
|
|
90
|
+
id: number;
|
|
91
|
+
funding_amount: number;
|
|
92
|
+
image_url: string | null;
|
|
93
|
+
};
|
|
94
|
+
}, {
|
|
95
|
+
result: {
|
|
96
|
+
description: string | null;
|
|
97
|
+
label: string;
|
|
98
|
+
id: number;
|
|
99
|
+
funding_amount: number;
|
|
100
|
+
image_url: string | null;
|
|
114
101
|
};
|
|
115
|
-
}
|
|
102
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
116
103
|
};
|
|
117
104
|
export { communityContract, CommunityResponseSchema };
|
|
118
105
|
export type { CommunityResponse };
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CommunityResponseSchema = exports.communityContract = void 0;
|
|
7
|
-
const
|
|
7
|
+
const contract_1 = require("@orpc/contract");
|
|
8
8
|
const zod_1 = __importDefault(require("zod"));
|
|
9
9
|
const CommunityResponseSchema = zod_1.default.object({
|
|
10
10
|
id: zod_1.default.number(),
|
|
@@ -14,31 +14,11 @@ const CommunityResponseSchema = zod_1.default.object({
|
|
|
14
14
|
image_url: zod_1.default.string().nullable(),
|
|
15
15
|
});
|
|
16
16
|
exports.CommunityResponseSchema = CommunityResponseSchema;
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
200: zod_1.default.object({
|
|
24
|
-
result: zod_1.default.array(CommunityResponseSchema),
|
|
25
|
-
}),
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
getCommunityById: {
|
|
29
|
-
method: "GET",
|
|
30
|
-
path: "/:id",
|
|
31
|
-
pathParams: zod_1.default.object({
|
|
32
|
-
id: zod_1.default.number(),
|
|
33
|
-
}),
|
|
34
|
-
responses: {
|
|
35
|
-
200: zod_1.default.object({
|
|
36
|
-
result: CommunityResponseSchema,
|
|
37
|
-
}),
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
}, {
|
|
41
|
-
pathPrefix: "/communities",
|
|
42
|
-
});
|
|
17
|
+
const listCommunities = contract_1.oc.route({ method: "GET", path: "/communities", tags: ["communities"] }).output(zod_1.default.object({ result: zod_1.default.array(CommunityResponseSchema) }));
|
|
18
|
+
const getCommunityById = contract_1.oc
|
|
19
|
+
.route({ method: "GET", path: "/communities/{id}", tags: ["communities"] })
|
|
20
|
+
.input(zod_1.default.object({ id: zod_1.default.coerce.number() }))
|
|
21
|
+
.output(zod_1.default.object({ result: CommunityResponseSchema }));
|
|
22
|
+
const communityContract = { listCommunities, getCommunityById };
|
|
43
23
|
exports.communityContract = communityContract;
|
|
44
24
|
//# sourceMappingURL=community.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"community.contract.js","sourceRoot":"","sources":["../../src/contracts/community.contract.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"community.contract.js","sourceRoot":"","sources":["../../src/contracts/community.contract.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAoC;AACpC,8CAAoB;AAEpB,MAAM,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,cAAc,EAAE,aAAC,CAAC,MAAM,EAAE;IAC1B,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAayB,0DAAuB;AATnD,MAAM,eAAe,GAAG,aAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,aAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,aAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC,CAAC;AAEhK,MAAM,gBAAgB,GAAG,aAAE;KACtB,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;KAC1E,KAAK,CAAC,aAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;KAC1C,MAAM,CAAC,aAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,uBAAuB,EAAE,CAAC,CAAC,CAAC;AAE3D,MAAM,iBAAiB,GAAG,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAC;AAEvD,8CAAiB"}
|